function jsonpCallbackCounters(n){jQuery("#Counters").removeClass("hide"),hideCounters=n.HideCounters,null==amount&&(amount=n.TotalWinTodayStart),null==amountThisMonth&&(amountThisMonth=n.TotalWinThisMonth+n.TotalWinTodayStart),jQuery(function(t){t(".Wins").countTo({from:amount,to:n.TotalWinTodayStop,speed:updateinterval,refreshInterval:200,decimals:2,onUpdate:function(n){totalWinTodayCounter.setValue(n,200)},onComplete:function(){amount=n.TotalWinTodayStop,amountThisMonth=n.TotalWinThisMonth+n.TotalWinTodayStop,updateData()}}),jQuery(function(t){t(".WinsThisMonth").countTo({from:amountThisMonth,to:n.TotalWinThisMonth+n.TotalWinTodayStop,speed:updateinterval,refreshInterval:200,decimals:2,onUpdate:function(n){totalWinThisMonthCounter.setValue(n,200),window.innerWidth<1200?t("#Counters").addClass("hide"):t("#Counters").removeClass("hide")}})}),totalWinLastMonthCounter.setValue(n.TotalWinLastMonth,1e3)})}function format(n,t){return t+" "+n.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function dayMonth(n){return n.split("T")[0].split("-")[2]+"/"+n.split("T")[0].split("-")[1]}function hourMinutes(n){return n.split("T")[1].split(":")[0]+":"+n.split("T")[1].split(":")[1]}function updateData(){try{$.ajax({data:{},cache:!1,dataType:"jsonp",type:"GET",crossDomain:!0,jsonp:!1,jsonpCallback:"jsonpCallbackCounters",url:"https://casinos.starcasino.be/casinostats_api/CasinoStats/TotalWins/jsonp?callback=jsonpCallbackCounters",async:!1,error:function(){setTimeout(updateData,2e3)}})}catch(n){$("#Counters").addClass("hide")}}function capitaliseFirstLetter(n){return n.charAt(0).toUpperCase()+n.slice(1)}function loadCounters(){totalWinTodayCounter=new Counter("totalWinToday",{digitsNumber:10,direction:Counter.ScrollDirection.Upwards,scrollAnimation:Counter.ScrollAnimation.FixedTime,characterSet:Counter.DefaultCharacterSets.numericUp,charsImageUrl:"https://casinos.starcasino.be/Content/Images/counter/numeric_up_blackbg5.png",markerImageUrl:"https://casinos.starcasino.be/Content/Images/marker.png",prefixText:"€",showDecimalSeparator:!0,showThousandsSeparator:!0,decimalSeparator:",",thousandsSeparator:".",value:0}),totalWinThisMonthCounter=new Counter("totalWinThisMonth",{digitsNumber:10,direction:Counter.ScrollDirection.Upwards,scrollAnimation:Counter.ScrollAnimation.FixedTime,characterSet:Counter.DefaultCharacterSets.numericUp,charsImageUrl:"https://casinos.starcasino.be/Content/Images/counter/numeric_up_blackbg5.png",markerImageUrl:"https://casinos.starcasino.be/Content/Images/marker.png",prefixText:"€",showDecimalSeparator:!0,showThousandsSeparator:!0,decimalSeparator:",",thousandsSeparator:".",value:0}),totalWinLastMonthCounter=new Counter("totalWinLastMonth",{digitsNumber:10,direction:Counter.ScrollDirection.Upwards,scrollAnimation:Counter.ScrollAnimation.FixedTime,characterSet:Counter.DefaultCharacterSets.numericUp,charsImageUrl:"https://casinos.starcasino.be/Content/Images/counter/numeric_up_blackbg5.png",markerImageUrl:"https://casinos.starcasino.be/Content/Images/marker.png",prefixText:"€",showDecimalSeparator:!0,showThousandsSeparator:!0,decimalSeparator:",",thousandsSeparator:".",value:0});var n=function(){var n=.51;$(".Wins").first().css(Modernizr.prefixed("transform"),"scale("+n+")"),$(".Wins").first().css(Modernizr.prefixed("transformOrigin"),"0 0"),$(".WinsThisMonth").first().css(Modernizr.prefixed("transform"),"scale("+n+")"),$(".WinsThisMonth").first().css(Modernizr.prefixed("transformOrigin"),"0 0"),$(".WinsLastMonth").first().css(Modernizr.prefixed("transform"),"scale("+n+")"),$(".WinsLastMonth").first().css(Modernizr.prefixed("transformOrigin"),"0 0")};n()}function Counter(n,t){var r,i,u;for(this.wrapper=document.getElementById(n),this.wrapperId=n,this.intervalTimerId=null,this.timeoutTimerId=null,this.isAnimating=!1,this.animationStep=0,this.animationProgress=0,this.beforeAnimation=[],this.afterAnimation=[],this.itemAnimationProgress=[],this.digitsNumber=t.digitsNumber||6,this.direction=t.direction||Counter.ScrollDirection.Mixed,this.value=t.value||0,this.decimalSeparator=t.decimalSeparator||".",this.thousandsSeparator=t.thousandsSeparator||",",this.showDecimalSeparator=t.showDecimalSeparator||!1,this.showThousandsSeparator=t.showThousandsSeparator||!1,this.decimalPoints=t.decimalPoints||(this.showDecimalSeparator?2:0),this.prefixText=t.prefixText||"",this.postfixText=t.postfixText||"",this.scrollAnimation=t.scrollAnimation||Counter.ScrollAnimation.FixedTime,this.characterSet=t.characterSet||Counter.DefaultCharacterSets.allCharacters,this.characterNumber=this.characterSet.length,this.animationDuration=t.animationDuration||50,r=["wrapper","left","inner","right","marker"],this.extraClassName={},i=0;i<r.length;i++)this.extraClassName[r[i]]=t.extraClassName?"string"==typeof t.extraClassName?t.extraClassName:t.extraClassName[r[i]]||"":"";this.onLoad=t.onLoad||null,this.onValueChanged=t.onValueChanged||null,u=this,this.imageLoadCounter=0,this.charsImage=new Image,this.charsImage.onload=function(){u.finishLoading()},this.charsImage.src=t.charsImageUrl,this.markerImage=new Image,this.markerImage.onload=function(){u.finishLoading()},this.markerImage.src=t.markerImageUrl}function customSwiperSlides(){$("[data-slider=background]").remove()}function scaleSwiper(){var f=1660,r=680,e=1920,o=1080,u=window.innerWidth,i=window.innerHeight,n,t;n=Math.min(u/f,i/r),$("#mysterydoorsscene").css(Modernizr.prefixed("transform"),"scale("+n+")"),$("#mysterydoorsscene").css("top",i-n*r+"px"),n=Math.max(u/e,i/o),$("#takeorshootsscene").css(Modernizr.prefixed("transform"),"scale("+n+")"),$("#stardicescene").css(Modernizr.prefixed("transform"),"scale("+n+")"),t=window.innerWidth/1e3,t<1?($(".swiper-container").first().css(Modernizr.prefixed("transform"),"scale("+t+")"),$(".swiper-container").first().css(Modernizr.prefixed("transformOrigin"),"0 0"),$(".swiper-container").first().css("width","1000px"),$(".content.container.black").css("margin-top",-(350*(1-t))+"px")):($(".swiper-container").first().css(Modernizr.prefixed("transform"),"scale(1)"),$(".swiper-container").first().css("width","100%"),$(".content.container.black").css("margin-top",0)),$(".reddicelogozoom").first().parent().css(Modernizr.prefixed("transform"),"scale(0.6)"),$(".reddicelogozoom").first().parent().css(Modernizr.prefixed("transformOrigin"),"0 0")}var Swiper,gameGrid;this.createjs=this.createjs||{},function(){"use strict";var n=createjs.PreloadJS=createjs.PreloadJS||{};n.version="0.6.0",n.buildDate="Thu, 11 Dec 2014 23:32:09 GMT"}(),this.createjs=this.createjs||{},createjs.extend=function(n,t){"use strict";function i(){this.constructor=n}return i.prototype=t.prototype,n.prototype=new i},this.createjs=this.createjs||{},createjs.promote=function(n,t){"use strict";var i=n.prototype,r=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__,u;if(r){i[(t+="_")+"constructor"]=r.constructor;for(u in r)i.hasOwnProperty(u)&&"function"==typeof r[u]&&(i[t+u]=r[u])}return n},this.createjs=this.createjs||{},createjs.indexOf=function(n,t){"use strict";for(var i=0,r=n.length;r>i;i++)if(t===n[i])return i;return-1},this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(n,t){var i=Array.prototype.slice.call(arguments,2);return function(){return n.apply(t,Array.prototype.slice.call(arguments,0).concat(i))}}}(),this.createjs=this.createjs||{},function(){"use strict";function n(){throw"BrowserDetect cannot be instantiated";}var t=n.agent=window.navigator.userAgent;n.isWindowPhone=t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,n.isFirefox=t.indexOf("Firefox")>-1,n.isOpera=null!=window.opera,n.isChrome=t.indexOf("Chrome")>-1,n.isIOS=(t.indexOf("iPod")>-1||t.indexOf("iPhone")>-1||t.indexOf("iPad")>-1)&&!n.isWindowPhone,n.isAndroid=t.indexOf("Android")>-1&&!n.isWindowPhone,n.isBlackberry=t.indexOf("Blackberry")>-1,createjs.BrowserDetect=n}(),this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.type=n,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!t,this.cancelable=!!i,this.timeStamp=+new Date,this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var n=t.prototype;n.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},n.stopPropagation=function(){this.propagationStopped=!0},n.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},n.remove=function(){this.removed=!0},n.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},n.set=function(n){for(var t in n)this[t]=n[t];return this},n.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=t}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t,i){this.Event_constructor("error"),this.title=n,this.message=t,this.data=i}var t=createjs.extend(n,createjs.Event);t.clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(n,"Event")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var n=t.prototype;t.initialize=function(t){t.addEventListener=n.addEventListener,t.on=n.on,t.removeEventListener=t.off=n.removeEventListener,t.removeAllEventListeners=n.removeAllEventListeners,t.hasEventListener=n.hasEventListener,t.dispatchEvent=n.dispatchEvent,t._dispatchEvent=n._dispatchEvent,t.willTrigger=n.willTrigger},n.addEventListener=function(n,t,i){var u,r;return u=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{},r=u[n],r&&this.removeEventListener(n,t,i),r=u[n],r?r.push(t):u[n]=[t],t},n.on=function(n,t,i,r,u,f){return t.handleEvent&&(i=i||t,t=t.handleEvent),i=i||this,this.addEventListener(n,function(n){t.call(i,n,u),r&&n.remove()},f)},n.removeEventListener=function(n,t,i){var f=i?this._captureListeners:this._listeners,r,u,e;if(f&&(r=f[n],r))for(u=0,e=r.length;e>u;u++)if(r[u]==t){1==e?delete f[n]:r.splice(u,1);break}},n.off=n.removeEventListener,n.removeAllEventListeners=function(n){n?(this._listeners&&delete this._listeners[n],this._captureListeners&&delete this._captureListeners[n]):this._listeners=this._captureListeners=null},n.dispatchEvent=function(n){var u,i,r,t,f;if("string"==typeof n){if(u=this._listeners,!u||!u[n])return!1;n=new createjs.Event(n)}else n.target&&n.clone&&(n=n.clone());try{n.target=this}catch(e){}if(n.bubbles&&this.parent){for(i=this,r=[i];i.parent;)r.push(i=i.parent);for(f=r.length,t=f-1;t>=0&&!n.propagationStopped;t--)r[t]._dispatchEvent(n,1+(0==t));for(t=1;f>t&&!n.propagationStopped;t++)r[t]._dispatchEvent(n,3)}else this._dispatchEvent(n,2);return n.defaultPrevented},n.hasEventListener=function(n){var t=this._listeners,i=this._captureListeners;return!!(t&&t[n]||i&&i[n])},n.willTrigger=function(n){for(var t=this;t;){if(t.hasEventListener(n))return!0;t=t.parent}return!1},n.toString=function(){return"[EventDispatcher]"},n._dispatchEvent=function(n,t){var f,e=1==t?this._captureListeners:this._listeners,i,u,r;if(n&&e){if(i=e[n.type],!i||!(f=i.length))return;try{n.currentTarget=this}catch(o){}try{n.eventPhase=t}catch(o){}for(n.removed=!1,i=i.slice(),u=0;f>u&&!n.immediatePropagationStopped;u++)r=i[u],r.handleEvent?r.handleEvent(n):r(n),n.removed&&(this.off(n.type,r,1==t),n.removed=!1)}},createjs.EventDispatcher=t}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.Event_constructor("progress"),this.loaded=n,this.total=null==t?1:t,this.progress=0==t?0:this.loaded/this.total}var t=createjs.extend(n,createjs.Event);t.clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(n,"Event")}(window),function(){function u(t,r){function l(n){var e,i,a,t,o,f,u;if(l[n]!==h)return l[n];if("bug-string-char-index"==n)e="a"!="a"[0];else if("json"==n)e=l("json-stringify")&&l("json-parse");else{if(a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}',"json-stringify"==n){if(t=r.stringify,o="function"==typeof t&&c,o){(i=function(){return 1}).toJSON=i;try{o="0"===t(0)&&"0"===t(new lt)&&'""'==t(new et)&&t(s)===h&&t(h)===h&&t()===h&&"1"===t(i)&&"[1]"==t([i])&&"[null]"==t([h])&&"null"==t(null)&&"[null,null,null]"==t([h,s,null])&&t({a:[i,!0,!1,null,"\x00\b\n\f\r\t"]})==a&&"1"===t(null,i)&&"[\n 1,\n 2\n]"==t([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==t(new w(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==t(new w(864e13))&&'"-000001-01-01T00:00:00.000Z"'==t(new w(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==t(new w(-1))}catch(v){o=!1}}e=o}if("json-parse"==n){if(f=r.parse,"function"==typeof f)try{if(0===f("0")&&!f(!1)&&(i=f(a),u=5==i.a.length&&1===i.a[0],u)){try{u=!f('"\t"')}catch(v){}if(u)try{u=1!==f("01")}catch(v){}if(u)try{u=1!==f("1.")}catch(v){}}}catch(v){u=!1}e=u}}return l[n]=!!e}t||(t=n.Object()),r||(r=n.Object());var lt=t.Number||n.Number,et=t.String||n.String,at=t.Object||n.Object,w=t.Date||n.Date,vt=t.SyntaxError||n.SyntaxError,yt=t.TypeError||n.TypeError,pt=t.Math||n.Math,g=t.JSON||n.JSON;"object"==typeof g&&g&&(r.stringify=g.stringify,r.parse=g.parse);var o,p,h,ot=at.prototype,s=ot.toString,c=new w(-0xc782b5b800cec);try{c=-109252==c.getUTCFullYear()&&0===c.getUTCMonth()&&1===c.getUTCDate()&&10==c.getUTCHours()&&37==c.getUTCMinutes()&&6==c.getUTCSeconds()&&708==c.getUTCMilliseconds()}catch(ri){}if(!l("json")){var b="[object Function]",wt="[object Date]",nt="[object Number]",tt="[object String]",it="[object Array]",bt="[object Boolean]",k=l("bug-string-char-index");if(!c)var a=pt.floor,kt=[0,31,59,90,120,151,181,212,243,273,304,334],d=function(n,t){return kt[t]+365*(n-1970)+a((n-1969+(t=+(t>1)))/4)-a((n-1901+t)/100)+a((n-1601+t)/400)};if((o=ot.hasOwnProperty)||(o=function(n){var i,t={};return(t.__proto__=null,t.__proto__={toString:1},t).toString!=s?o=function(n){var t=this.__proto__,i=n in(this.__proto__=null,this);return this.__proto__=t,i}:(i=t.constructor,o=function(n){var t=(this.constructor||i).prototype;return n in this&&!(n in t&&this[n]===t[n])}),t=null,o.call(this,n)}),p=function(n,t){var u,r,e,f=0;(u=function(){this.valueOf=0}).prototype.valueOf=0,r=new u;for(e in r)o.call(r,e)&&f++;return u=r=null,f?p=2==f?function(n,t){var i,r={},u=s.call(n)==b;for(i in n)(!u||"prototype"!=i)&&!o.call(r,i)&&(r[i]=1)&&o.call(n,i)&&t(i)}:function(n,t){var i,r,u=s.call(n)==b;for(i in n)u&&"prototype"==i||!o.call(n,i)||(r="constructor"===i)||t(i);(r||o.call(n,i="constructor"))&&t(i)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],p=function(n,t){var u,f,e=s.call(n)==b,h=!e&&"function"!=typeof n.constructor&&i[typeof n.hasOwnProperty]&&n.hasOwnProperty||o;for(u in n)e&&"prototype"==u||!h.call(n,u)||t(u);for(f=r.length;u=r[--f];h.call(n,u)&&t(u));}),p(n,t)},!l("json-stringify")){var dt={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},gt="000000",v=function(n,t){return(gt+(t||0)).slice(-n)},ni="\\u00",st=function(n){for(var i,r='"',t=0,u=n.length,f=!k||u>10,e=f&&(k?n.split(""):n);u>t;t++){i=n.charCodeAt(t);switch(i){case 8:case 9:case 10:case 12:case 13:case 34:case 92:r+=dt[i];break;default:if(32>i){r+=ni+v(2,i.toString(16));break}r+=f?e[t]:n.charAt(t)}}return r+'"'},ut=function(n,t,i,r,u,f,e){var c,y,l,k,w,g,et,ot,ht,ct,b,lt,ft,rt,at,vt;try{c=t[n]}catch(pt){}if("object"==typeof c&&c)if(y=s.call(c),y!=wt||o.call(c,"toJSON"))"function"==typeof c.toJSON&&(y!=nt&&y!=tt&&y!=it||o.call(c,"toJSON"))&&(c=c.toJSON(n));else if(c>-1/0&&1/0>c){if(d){for(w=a(c/864e5),l=a(w/365.2425)+1970-1;d(l+1,0)<=w;l++);for(k=a((w-d(l,0))/30.42);d(l,k+1)<=w;k++);w=1+w-d(l,k),g=(c%864e5+864e5)%864e5,et=a(g/36e5)%24,ot=a(g/6e4)%60,ht=a(g/1e3)%60,ct=g%1e3}else l=c.getUTCFullYear(),k=c.getUTCMonth(),w=c.getUTCDate(),et=c.getUTCHours(),ot=c.getUTCMinutes(),ht=c.getUTCSeconds(),ct=c.getUTCMilliseconds();c=(0>=l||l>=1e4?(0>l?"-":"+")+v(6,0>l?-l:l):v(4,l))+"-"+v(2,k+1)+"-"+v(2,w)+"T"+v(2,et)+":"+v(2,ot)+":"+v(2,ht)+"."+v(3,ct)+"Z"}else c=null;if(i&&(c=i.call(t,n,c)),null===c)return"null";if(y=s.call(c),y==bt)return""+c;if(y==nt)return c>-1/0&&1/0>c?""+c:"null";if(y==tt)return st(""+c);if("object"==typeof c){for(rt=e.length;rt--;)if(e[rt]===c)throw yt();if(e.push(c),b=[],at=f,f+=u,y==it){for(ft=0,rt=c.length;rt>ft;ft++)lt=ut(ft,c,i,r,u,f,e),b.push(lt===h?"null":lt);vt=b.length?u?"[\n"+f+b.join(",\n"+f)+"\n"+at+"]":"["+b.join(",")+"]":"[]"}else p(r||c,function(n){var t=ut(n,c,i,r,u,f,e);t!==h&&b.push(st(n)+":"+(u?" ":"")+t)}),vt=b.length?u?"{\n"+f+b.join(",\n"+f)+"\n"+at+"}":"{"+b.join(",")+"}":"{}";return e.pop(),vt}};r.stringify=function(n,t,r){var e,c,o,u,f,h,l;if(i[typeof t]&&t)if((u=s.call(t))==b)c=t;else if(u==it)for(o={},h=0,l=t.length;l>h;f=t[h++],u=s.call(f),(u==tt||u==nt)&&(o[f]=1));if(r)if((u=s.call(r))==nt){if((r-=r%1)>0)for(e="",r>10&&(r=10);e.length<r;e+=" ");}else u==tt&&(e=r.length<=10?r:r.slice(0,10));return ut("",(f={},f[""]=n,f),c,o,e,"",[])}}if(!l("json-parse")){var f,rt,ti=et.fromCharCode,ii={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},e=function(){throw f=rt=null,vt();},y=function(){for(var r,u,i,s,n,t=rt,o=t.length;o>f;)switch(n=t.charCodeAt(f)){case 9:case 10:case 13:case 32:f++;break;case 123:case 125:case 91:case 93:case 58:case 44:return r=k?t.charAt(f):t[f],f++,r;case 34:for(r="@",f++;o>f;)if(n=t.charCodeAt(f),32>n)e();else if(92==n)switch(n=t.charCodeAt(++f)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:r+=ii[n],f++;break;case 117:for(u=++f,i=f+4;i>f;f++)n=t.charCodeAt(f),n>=48&&57>=n||n>=97&&102>=n||n>=65&&70>=n||e();r+=ti("0x"+t.slice(u,f));break;default:e()}else{if(34==n)break;for(n=t.charCodeAt(f),u=f;n>=32&&92!=n&&34!=n;)n=t.charCodeAt(++f);r+=t.slice(u,f)}if(34==t.charCodeAt(f))return f++,r;e();default:if(u=f,45==n&&(s=!0,n=t.charCodeAt(++f)),n>=48&&57>=n){for(48==n&&(n=t.charCodeAt(f+1),n>=48&&57>=n)&&e(),s=!1;o>f&&(n=t.charCodeAt(f),n>=48&&57>=n);f++);if(46==t.charCodeAt(f)){for(i=++f;o>i&&(n=t.charCodeAt(i),n>=48&&57>=n);i++);i==f&&e(),f=i}if(n=t.charCodeAt(f),101==n||69==n){for(n=t.charCodeAt(++f),(43==n||45==n)&&f++,i=f;o>i&&(n=t.charCodeAt(i),n>=48&&57>=n);i++);i==f&&e(),f=i}return+t.slice(u,f)}if(s&&e(),"true"==t.slice(f,f+4))return f+=4,!0;if("false"==t.slice(f,f+5))return f+=5,!1;if("null"==t.slice(f,f+4))return f+=4,null;e()}return"$"},ft=function(n){var t,i;if("$"==n&&e(),"string"==typeof n){if("@"==(k?n.charAt(0):n[0]))return n.slice(1);if("["==n){for(t=[];n=y(),"]"!=n;i||(i=!0))i&&(","==n?(n=y(),"]"==n&&e()):e()),","==n&&e(),t.push(ft(n));return t}if("{"==n){for(t={};n=y(),"}"!=n;i||(i=!0))i&&(","==n?(n=y(),"}"==n&&e()):e()),(","==n||"string"!=typeof n||"@"!=(k?n.charAt(0):n[0])||":"!=y())&&e(),t[n.slice(1)]=ft(y());return t}e()}return n},ht=function(n,t,i){var r=ct(n,t,i);r===h?delete n[t]:n[t]=r},ct=function(n,t,i){var u,r=n[t];if("object"==typeof r&&r)if(s.call(r)==it)for(u=r.length;u--;)ht(r,u,i);else p(r,function(n){ht(r,n,i)});return i.call(n,t,r)};r.parse=function(n,t){var i,r;return f=0,rt=""+n,i=ft(y()),"$"!=y()&&e(),f=rt=null,t&&s.call(t)==b?ct((r={},r[""]=i,r),"",t):i}}}return r.runInContext=u,r}var e="function"==typeof define&&define.amd,i={"function":!0,object:!0},f=i[typeof exports]&&exports&&!exports.nodeType&&exports,n=i[typeof window]&&window||this,t=f&&i[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;if(!t||t.global!==t&&t.window!==t&&t.self!==t||(n=t),f&&!e)u(n,f);else{var o=n.JSON,s=n.JSON3,h=!1,r=u(n,n.JSON3={noConflict:function(){return h||(h=!0,n.JSON=o,n.JSON3=s,o=s=null),r}});n.JSON={parse:r.parse,stringify:r.stringify}}e&&define(function(){return r})}.call(this),function(){var n={};n.parseXML=function(n,t){var i=null,r;try{window.DOMParser?(r=new DOMParser,i=r.parseFromString(n,t)):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async=!1,i.loadXML(n))}catch(u){}return i},n.parseJSON=function(n){if(null==n)return null;try{return JSON.parse(n)}catch(t){throw t;}},createjs.DataUtils=n}(),this.createjs=this.createjs||{},function(){"use strict";function n(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.LoadItem.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=8e3}var i=n.prototype={},t=n;t.create=function(i){if("string"==typeof i){var r=new n;return r.src=i,r}if(i instanceof t||i instanceof Object)return i;throw new Error("Type not recognized.");},i.set=function(n){for(var t in n)this[t]=n[t];return this},createjs.LoadItem=t}(),function(){var n={};n.ABSOLUTE_PATT=/^(?:\w+:)?\/{2}/i,n.RELATIVE_PATT=/^[./]*?\//i,n.EXTENSION_PATT=/\/?[^/]+\.(\w{1,5})$/i,n.parseURI=function(t){var i={absolute:!1,relative:!1},r,u;return null==t?i:(r=t.indexOf("?"),r>-1&&(t=t.substr(0,r)),n.ABSOLUTE_PATT.test(t)?i.absolute=!0:n.RELATIVE_PATT.test(t)&&(i.relative=!0),(u=t.match(n.EXTENSION_PATT))&&(i.extension=u[1].toLowerCase()),i)},n.formatQueryString=function(n,t){var i,r;if(null==n)throw new Error("You must specify data.");i=[];for(r in n)i.push(r+"="+escape(n[r]));return t&&(i=i.concat(t)),i.join("&")},n.buildPath=function(n,t){var i,r,u;return null==t?n:(i=[],r=n.indexOf("?"),-1!=r&&(u=n.slice(r+1),i=i.concat(u.split("&"))),-1!=r?n.slice(0,r)+"?"+this._formatQueryString(t,i):n+"?"+this._formatQueryString(t,i))},n.isCrossDomain=function(n){var t=document.createElement("a"),i,r;return t.href=n.src,i=document.createElement("a"),i.href=location.href,r=""!=t.hostname&&(t.port!=i.port||t.protocol!=i.protocol||t.hostname!=i.hostname)},n.isLocal=function(n){var t=document.createElement("a");return t.href=n.src,""==t.hostname&&"file:"==t.protocol},n.isBinary=function(n){switch(n){case createjs.AbstractLoader.IMAGE:case createjs.AbstractLoader.BINARY:return!0;default:return!1}},n.isImageTag=function(n){return n instanceof HTMLImageElement},n.isAudioTag=function(n){return window.HTMLAudioElement?n instanceof HTMLAudioElement:!1},n.isVideoTag=function(n){if(window.HTMLVideoElement)return n instanceof HTMLVideoElement},n.isText=function(n){switch(n){case createjs.AbstractLoader.TEXT:case createjs.AbstractLoader.JSON:case createjs.AbstractLoader.MANIFEST:case createjs.AbstractLoader.XML:case createjs.AbstractLoader.CSS:case createjs.AbstractLoader.SVG:case createjs.AbstractLoader.JAVASCRIPT:return!0;default:return!1}},n.getTypeByExtension=function(n){if(null==n)return createjs.AbstractLoader.TEXT;switch(n.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.AbstractLoader.IMAGE;case"ogg":case"mp3":case"webm":return createjs.AbstractLoader.SOUND;case"mp4":case"webm":case"ts":return createjs.AbstractLoader.VIDEO;case"json":return createjs.AbstractLoader.JSON;case"xml":return createjs.AbstractLoader.XML;case"css":return createjs.AbstractLoader.CSS;case"js":return createjs.AbstractLoader.JAVASCRIPT;case"svg":return createjs.AbstractLoader.SVG;default:return createjs.AbstractLoader.TEXT}},createjs.RequestUtils=n}(),this.createjs=this.createjs||{},function(){"use strict";function i(n,t,i){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=i,this.resultFormatter=null,this._item=n?createjs.LoadItem.create(n):null,this._preferXHR=t,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var n=createjs.extend(i,createjs.EventDispatcher),t=i;t.POST="POST",t.GET="GET",t.BINARY="binary",t.CSS="css",t.IMAGE="image",t.JAVASCRIPT="javascript",t.JSON="json",t.JSONP="jsonp",t.MANIFEST="manifest",t.SOUND="sound",t.VIDEO="video",t.SPRITESHEET="spritesheet",t.SVG="svg",t.TEXT="text",t.XML="xml",n.getItem=function(){return this._item},n.getResult=function(n){return n?this._rawResult:this._result},n.getTag=function(){return this._tag},n.setTag=function(n){this._tag=n},n.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var n=new createjs.Event("initialize");n.loader=this._request,this.dispatchEvent(n),this._request.load()},n.cancel=function(){this.canceled=!0,this.destroy()},n.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},n.getLoadedItems=function(){return this._loadedItems},n._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},n._createTag=function(){return null},n._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},n._sendProgress=function(n){if(!this._isCanceled()){var t=null;"number"==typeof n?(this.progress=n,t=new createjs.ProgressEvent(this.progress)):(t=n,this.progress=n.loaded/n.total,t.progress=this.progress,(isNaN(this.progress)||1/0==this.progress)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(t)}},n._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var n=new createjs.Event("complete");n.rawResult=this._rawResult,null!=this._result&&(n.result=this._result),this.dispatchEvent(n)}},n._sendError=function(n){!this._isCanceled()&&this.hasEventListener("error")&&(null==n&&(n=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(n))},n._isCanceled=function(){return null==window.createjs||this.canceled?!0:!1},n.resultFormatter=null,n.handleEvent=function(n){switch(n.type){case"complete":this._rawResult=n.target._response;var t=this.resultFormatter&&this.resultFormatter(this),i=this;t instanceof Function?t(function(n){i._result=n,i._sendComplete()}):(this._result=t||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(n);break;case"error":this._sendError(n);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(n.type)}},n.buildPath=function(n,t){return createjs.RequestUtils.buildPath(n,t)},n.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(i,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.AbstractLoader_constructor(n,t,i),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src"}var n=createjs.extend(t,createjs.AbstractLoader);n.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},n._createTag=function(){},n._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},n._formatResult=function(n){return this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR&&(n.getTag().src=n.getResult(!0)),n.getTag()},createjs.AbstractMediaLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(n){this._item=n},n=createjs.extend(t,createjs.EventDispatcher);n.load=function(){},n.destroy=function(){},n.cancel=function(){},createjs.AbstractRequest=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.AbstractRequest_constructor(n),this._tag=t,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1,this._startTagVisibility=null}var n=createjs.extend(t,createjs.AbstractRequest);n.load=function(){null==this._tag.parentNode&&(window.document.body.appendChild(this._tag),this._addedToDOM=!0),this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this);var n=new createjs.Event("initialize");n.loader=this._tag,this.dispatchEvent(n),this._hideTag(),this._tag[this._tagSrcAttribute]=this._item.src},n.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},n._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var n=this._tag;("loaded"==n.readyState||"complete"==n.readyState)&&this._handleTagComplete()},n._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this._showTag(),this.dispatchEvent("complete")},n._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag)},n._hideTag=function(){this._startTagVisibility=this._tag.style.visibility,this._tag.style.visibility="hidden"},n._showTag=function(){this._tag.style.visibility=this._startTagVisibility},n._handleStalled=function(){},createjs.TagRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.AbstractRequest_constructor(n),this._tag=t,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var n=createjs.extend(t,createjs.TagRequest);n.load=function(){this._tag.onstalled=createjs.proxy(this._handleStalled,this),this._tag.onprogress=createjs.proxy(this._handleProgress,this),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},n._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var n=this._tag;("loaded"==n.readyState||"complete"==n.readyState)&&this._handleTagComplete()},n._handleStalled=function(){},n._handleProgress=function(n){if(n&&!(n.loaded>0&&0==n.total)){var t=new createjs.ProgressEvent(n.loaded,n.total);this.dispatchEvent(t)}},n._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._tag.onprogress=null,this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(t,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(n){this.AbstractRequest_constructor(n),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),!this._createXHR(n)}var n=createjs.extend(t,createjs.AbstractRequest);t.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n.getResult=function(n){return n&&this._rawResponse?this._rawResponse:this._response},n.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},n.load=function(){if(null==this._request)return void this._handleError();this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values&&this._item.method!=createjs.AbstractLoader.GET?this._item.method==createjs.AbstractLoader.POST&&this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)):this._request.send()}catch(n){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,n))}},n.setResponseType=function(n){this._request.responseType=n},n.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},n.getResponseHeader=function(n){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(n):null},n._handleProgress=function(n){if(n&&!(n.loaded>0&&0==n.total)){var t=new createjs.ProgressEvent(n.loaded,n.total);this.dispatchEvent(t)}},n._handleLoadStart=function(){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},n._handleAbort=function(n){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,n))},n._handleError=function(n){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(n.message))},n._handleReadyStateChange=function(){4==this._request.readyState&&this._handleLoad()},n._handleLoad=function(){if(!this.loaded){this.loaded=!0;var n=this._checkError();if(n)return void this._handleError(n);this._response=this._getResponse(),this._clean(),this.dispatchEvent(new createjs.Event("complete"))}},n._handleTimeout=function(n){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,n))},n._checkError=function(){var n=parseInt(this._request.status);switch(n){case 404:case 0:return new Error(n)}return null},n._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(n){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(n){}return null},n._createXHR=function(n){var f=createjs.RequestUtils.isCrossDomain(n),i={},t=null,u,o,e,r;if(window.XMLHttpRequest)t=new XMLHttpRequest,f&&void 0===t.withCredentials&&window.XDomainRequest&&(t=new XDomainRequest);else{for(u=0,o=s.ACTIVEX_VERSIONS.length;o>u;u++){s.ACTIVEX_VERSIONS[u];try{t=new ActiveXObject(axVersions);break}catch(h){}}if(null==t)return!1}if(n.mimeType&&t.overrideMimeType&&t.overrideMimeType(n.mimeType),this._xhrLevel="string"==typeof t.responseType?2:1,e=null,e=n.method==createjs.AbstractLoader.GET?createjs.RequestUtils.buildPath(n.src,n.values):n.src,t.open(n.method||createjs.AbstractLoader.GET,e,!0),f&&t instanceof XMLHttpRequest&&1==this._xhrLevel&&(i.Origin=location.origin),n.values&&n.method==createjs.AbstractLoader.POST&&(i["Content-Type"]="application/x-www-form-urlencoded"),f||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),n.headers)for(r in n.headers)i[r]=n.headers[r];for(r in i)t.setRequestHeader(r,i[r]);return t instanceof XMLHttpRequest&&void 0!==n.withCredentials&&(t.withCredentials=n.withCredentials),this._request=t,!0},n._clean=function(){clearTimeout(this._loadTimeout),this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)},n.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function i(n,t,i){this.AbstractLoader_constructor(),this.init(n,t,i)}var n=createjs.extend(i,createjs.AbstractLoader),t=i;n.init=function(n,t,i){this.useXHR=!0,this.preferXHR=!0,this._preferXHR=!0,this.setPreferXHR(n),this.stopOnError=!1,this.maintainScriptOrder=!0,this.next=null,this._paused=!1,this._basePath=t,this._crossOrigin=i,this._typeCallbacks={},this._extensionCallbacks={},this._loadStartWasDispatched=!1,this._maxConnections=1,this._currentlyLoadingScript=null,this._currentLoads=[],this._loadQueue=[],this._loadQueueBackup=[],this._loadItemsById={},this._loadItemsBySrc={},this._loadedResults={},this._loadedRawResults={},this._numItems=0,this._numItemsLoaded=0,this._scriptOrder=[],this._loadedScripts=[],this._lastProgress=NaN,this._availableLoaders=[createjs.ImageLoader,createjs.JavaScriptLoader,createjs.CSSLoader,createjs.JSONLoader,createjs.JSONPLoader,createjs.SoundLoader,createjs.ManifestLoader,createjs.SpriteSheetLoader,createjs.XMLLoader,createjs.SVGLoader,createjs.BinaryLoader,createjs.VideoLoader,createjs.TextLoader],this._defaultLoaderLength=this._availableLoaders.length},t.loadTimeout=8e3,t.LOAD_TIMEOUT=0,t.BINARY=createjs.AbstractLoader.BINARY,t.CSS=createjs.AbstractLoader.CSS,t.IMAGE=createjs.AbstractLoader.IMAGE,t.JAVASCRIPT=createjs.AbstractLoader.JAVASCRIPT,t.JSON=createjs.AbstractLoader.JSON,t.JSONP=createjs.AbstractLoader.JSONP,t.MANIFEST=createjs.AbstractLoader.MANIFEST,t.SOUND=createjs.AbstractLoader.SOUND,t.VIDEO=createjs.AbstractLoader.VIDEO,t.SVG=createjs.AbstractLoader.SVG,t.TEXT=createjs.AbstractLoader.TEXT,t.XML=createjs.AbstractLoader.XML,t.POST=createjs.AbstractLoader.POST,t.GET=createjs.AbstractLoader.GET,n.registerLoader=function(n){if(!n||!n.canLoadItem)throw new Error("loader is of an incorrect type.");if(-1!=this._availableLoaders.indexOf(n))throw new Error("loader already exists.");this._availableLoaders.unshift(n)},n.unregisterLoader=function(n){var t=this._availableLoaders.indexOf(n);-1!=t&&t<this._defaultLoaderLength-1&&this._availableLoaders.splice(t,1)},n.setUseXHR=function(n){return this.setPreferXHR(n)},n.setPreferXHR=function(n){return this.preferXHR=0!=n&&null!=window.XMLHttpRequest,this.preferXHR},n.removeAll=function(){this.remove()},n.remove=function(n){var u=null,e,r,f,t,i,o;if(!n||n instanceof Array){if(n)u=n;else if(arguments.length>0)return}else u=[n];if(e=!1,u){for(;u.length;){for(r=u.pop(),f=this.getResult(r),t=this._loadQueue.length-1;t>=0;t--)if(i=this._loadQueue[t].getItem(),i.id==r||i.src==r){this._loadQueue.splice(t,1)[0].cancel();break}for(t=this._loadQueueBackup.length-1;t>=0;t--)if(i=this._loadQueueBackup[t].getItem(),i.id==r||i.src==r){this._loadQueueBackup.splice(t,1)[0].cancel();break}if(f)delete this._loadItemsById[f.id],delete this._loadItemsBySrc[f.src],this._disposeItem(f);else for(t=this._currentLoads.length-1;t>=0;t--)if(i=this._currentLoads[t].getItem(),i.id==r||i.src==r){this._currentLoads.splice(t,1)[0].cancel(),e=!0;break}}e&&this._loadNext()}else{this.close();for(o in this._loadItemsById)this._disposeItem(this._loadItemsById[o]);this.init(this.preferXHR,this._basePath)}},n.reset=function(){var t;this.close();for(t in this._loadItemsById)this._disposeItem(this._loadItemsById[t]);for(var i=[],n=0,r=this._loadQueueBackup.length;r>n;n++)i.push(this._loadQueueBackup[n].getItem());this.loadManifest(i,!1)},n.installPlugin=function(n){var t,i,r;if(null!=n&&null!=n.getPreloadHandlers){if(t=n.getPreloadHandlers(),t.scope=n,null!=t.types)for(i=0,r=t.types.length;r>i;i++)this._typeCallbacks[t.types[i]]=t;if(null!=t.extensions)for(i=0,r=t.extensions.length;r>i;i++)this._extensionCallbacks[t.extensions[i]]=t}},n.setMaxConnections=function(n){this._maxConnections=n,!this._paused&&this._loadQueue.length>0&&this._loadNext()},n.loadFile=function(n,t,i){if(null==n){var r=new createjs.ErrorEvent("PRELOAD_NO_FILE");return void this._sendError(r)}this._addItem(n,null,i),this.setPaused(t!==!1?!1:!0)},n.loadManifest=function(n,i,r){var u=null,o=null,f,e,s;if(n instanceof Array){if(0==n.length)return f=new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY"),void this._sendError(f);u=n}else if("string"==typeof n)u=[{src:n,type:t.MANIFEST}];else{if("object"!=typeof n)return f=new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL"),void this._sendError(f);void 0!==n.src?(null==n.type?n.type=t.MANIFEST:n.type!=t.MANIFEST&&(f=new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE"),this._sendError(f)),u=[n]):void 0!==n.manifest&&(u=n.manifest,o=n.path)}for(e=0,s=u.length;s>e;e++)this._addItem(u[e],o,r);this.setPaused(i!==!1?!1:!0)},n.load=function(){this.setPaused(!1)},n.getItem=function(n){return this._loadItemsById[n]||this._loadItemsBySrc[n]},n.getResult=function(n,t){var r=this._loadItemsById[n]||this._loadItemsBySrc[n],i;return null==r?null:(i=r.id,t&&this._loadedRawResults[i]?this._loadedRawResults[i]:this._loadedResults[i])},n.getItems=function(n){for(var r,t,u=[],i=0,f=this._loadQueueBackup.length;f>i;i++)r=this._loadQueueBackup[i],t=r.getItem(),(n!==!0||r.loaded)&&u.push({item:t,result:this.getResult(t.id),rawResult:this.getResult(t.id,!0)});return u},n.setPaused=function(n){this._paused=n,this._paused||this._loadNext()},n.close=function(){for(;this._currentLoads.length;)this._currentLoads.pop().cancel();this._scriptOrder.length=0,this._loadedScripts.length=0,this.loadStartWasDispatched=!1,this._itemCount=0,this._lastProgress=NaN},n._addItem=function(n,t,i){var r=this._createLoadItem(n,t,i),u;null!=r&&(u=this._createLoader(r),null!=u&&(r._loader=u,this._loadQueue.push(u),this._loadQueueBackup.push(u),this._numItems++,this._updateProgress(),(this.maintainScriptOrder&&r.type==createjs.LoadQueue.JAVASCRIPT||r.maintainOrder===!0)&&(this._scriptOrder.push(r),this._loadedScripts.push(null))))},n._createLoadItem=function(n,i,r){var u=createjs.LoadItem.create(n),f,l,h,o;if(null==u)return null;f=createjs.RequestUtils.parseURI(u.src),f.extension&&(u.ext=f.extension),null==u.type&&(u.type=createjs.RequestUtils.getTypeByExtension(u.ext));var e="",s=r||this._basePath,c=u.src;if(f.absolute||f.relative||(i?(e=i,l=createjs.RequestUtils.parseURI(i),c=i+c,null==s||l.absolute||l.relative||(e=s+e)):null!=s&&(e=s)),u.src=e+u.src,u.path=e,(void 0===u.id||null===u.id||""===u.id)&&(u.id=c),h=this._typeCallbacks[u.type]||this._extensionCallbacks[u.ext],h){if(o=h.callback.call(h.scope,u,this),o===!1)return null;o===!0||null!=o&&(u._loader=o),f=createjs.RequestUtils.parseURI(u.src),null!=f.extension&&(u.ext=f.extension)}return this._loadItemsById[u.id]=u,this._loadItemsBySrc[u.src]=u,null==u.loadTimeout&&(u.loadTimeout=t.loadTimeout),null==u.crossOrigin&&(u.crossOrigin=this._crossOrigin),u},n._createLoader=function(n){var r,t,i;if(null!=n._loader)return n._loader;for(r=this.preferXHR,t=0;t<this._availableLoaders.length;t++)if(i=this._availableLoaders[t],i&&i.canLoadItem(n))return new i(n,r);return null},n._loadNext=function(){var n,t;if(!this._paused)for(this._loadStartWasDispatched||(this._sendLoadStart(),this._loadStartWasDispatched=!0),this._numItems==this._numItemsLoaded?(this.loaded=!0,this._sendComplete(),this.next&&this.next.load&&this.next.load()):this.loaded=!1,n=0;n<this._loadQueue.length&&!(this._currentLoads.length>=this._maxConnections);n++)t=this._loadQueue[n],this._canStartLoad(t)&&(this._loadQueue.splice(n,1),n--,this._loadItem(t))},n._loadItem=function(n){n.on("fileload",this._handleFileLoad,this),n.on("progress",this._handleProgress,this),n.on("complete",this._handleFileComplete,this),n.on("error",this._handleError,this),n.on("fileerror",this._handleFileError,this),this._currentLoads.push(n),this._sendFileStart(n.getItem()),n.load()},n._handleFileLoad=function(n){n.target=null,this.dispatchEvent(n)},n._handleFileError=function(n){var t=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,n.item);this._sendError(t)},n._handleError=function(n){var t=n.target,i;this._numItemsLoaded++,this._finishOrderedItem(t,!0),this._updateProgress(),i=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,t.getItem()),this._sendError(i),this.stopOnError||(this._removeLoadItem(t),this._loadNext())},n._handleFileComplete=function(n){var t=n.target,r=t.getItem(),u=t.getResult(),i;this._loadedResults[r.id]=u,i=t.getResult(!0),null!=i&&i!==u&&(this._loadedRawResults[r.id]=i),this._saveLoadedItems(t),this._removeLoadItem(t),this._finishOrderedItem(t)||this._processFinishedLoad(r,t)},n._saveLoadedItems=function(n){var r=n.getLoadedItems(),i,t;if(null!==r)for(i=0;i<r.length;i++)t=r[i].item,this._loadItemsBySrc[t.src]=t,this._loadItemsById[t.id]=t,this._loadedResults[t.id]=r[i].result,this._loadedRawResults[t.id]=r[i].rawResult},n._finishOrderedItem=function(n,t){var i=n.getItem(),r;return this.maintainScriptOrder&&i.type==createjs.LoadQueue.JAVASCRIPT||i.maintainOrder?(n instanceof createjs.JavaScriptLoader&&(this._currentlyLoadingScript=!1),r=createjs.indexOf(this._scriptOrder,i),-1==r?!1:(this._loadedScripts[r]=t===!0?!0:i,this._checkScriptLoadOrder(),!0)):!1},n._checkScriptLoadOrder=function(){for(var n,r,u,i=this._loadedScripts.length,t=0;i>t;t++){if(n=this._loadedScripts[t],null===n)break;n!==!0&&(r=this._loadedResults[n.id],n.type==createjs.LoadQueue.JAVASCRIPT&&(document.body||document.getElementsByTagName("body")[0]).appendChild(r),u=n._loader,this._processFinishedLoad(n,u),this._loadedScripts[t]=!0)}},n._processFinishedLoad=function(n,t){this._numItemsLoaded++,this._updateProgress(),this._sendFileComplete(n,t),this._loadNext()},n._canStartLoad=function(n){var i,r,t,u;if(!this.maintainScriptOrder||n.preferXHR||(i=n.getItem(),i.type!=createjs.LoadQueue.JAVASCRIPT))return!0;if(this._currentlyLoadingScript)return!1;for(r=this._scriptOrder.indexOf(i),t=0;r>t;){if(u=this._loadedScripts[t],null==u)return!1;t++}return this._currentlyLoadingScript=!0,!0},n._removeLoadItem=function(n){var r=n.getItem(),i,t;for(delete r._loader,i=this._currentLoads.length,t=0;i>t;t++)if(this._currentLoads[t]==n){this._currentLoads.splice(t,1);break}},n._handleProgress=function(n){var t=n.target;this._sendFileProgress(t.getItem(),t.progress),this._updateProgress()},n._updateProgress=function(){var n=this._numItemsLoaded/this._numItems,t=this._numItems-this._numItemsLoaded;if(t>0){for(var r=0,i=0,u=this._currentLoads.length;u>i;i++)r+=this._currentLoads[i].progress;n+=r/t*(t/this._numItems)}this._lastProgress!=n&&(this._sendProgress(n),this._lastProgress=n)},n._disposeItem=function(n){delete this._loadedResults[n.id],delete this._loadedRawResults[n.id],delete this._loadItemsById[n.id],delete this._loadItemsBySrc[n.src]},n._sendFileProgress=function(n,t){if(this._isCanceled())return void this._cleanUp();if(this.hasEventListener("fileprogress")){var i=new createjs.Event("fileprogress");i.progress=t,i.loaded=t,i.total=1,i.item=n,this.dispatchEvent(i)}},n._sendFileComplete=function(n,t){if(!this._isCanceled()){var i=new createjs.Event("fileload");i.loader=t,i.item=n,i.result=this._loadedResults[n.id],i.rawResult=this._loadedRawResults[n.id],n.completeHandler&&n.completeHandler(i),this.hasEventListener("fileload")&&this.dispatchEvent(i)}},n._sendFileStart=function(n){var t=new createjs.Event("filestart");t.item=n,this.hasEventListener("filestart")&&this.dispatchEvent(t)},n.toString=function(){return"[PreloadJS LoadQueue]"},createjs.LoadQueue=createjs.promote(i,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.TEXT)}var t=(createjs.extend(n,createjs.AbstractLoader),n);t.canLoadItem=function(n){return n.type==createjs.AbstractLoader.TEXT},createjs.TextLoader=createjs.promote(n,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.BINARY),this.on("initialize",this._updateXHR,this)}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.BINARY},t._updateXHR=function(n){n.loader.setResponseType("arraybuffer")},createjs.BinaryLoader=createjs.promote(n,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.CSS),this.resultFormatter=this._formatResult,this._tagSrcAttribute="href",this._tag=document.createElement(t?"style":"link"),this._tag.rel="stylesheet",this._tag.type="text/css"}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.CSS},t._formatResult=function(n){var t,i,r;return this._preferXHR?(t=n.getTag(),i=document.getElementsByTagName("head")[0],(i.appendChild(t),t.styleSheet)?t.styleSheet.cssText=n.getResult(!0):(r=document.createTextNode(n.getResult(!0)),t.appendChild(r))):t=this._tag,t},createjs.CSSLoader=createjs.promote(n,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.IMAGE),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",createjs.RequestUtils.isImageTag(n)?this._tag=n:createjs.RequestUtils.isImageTag(n.src)?this._tag=n.src:createjs.RequestUtils.isImageTag(n.tag)&&(this._tag=n.tag),null!=this._tag?this._preferXHR=!1:this._tag=document.createElement("img"),this.on("initialize",this._updateXHR,this)}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.IMAGE},t.load=function(){if(""!=this._tag.src&&this._tag.complete)return void this._sendComplete();var n=this._item.crossOrigin;1==n&&(n="Anonymous"),null==n||createjs.RequestUtils.isLocal(this._item.src)||(this._tag.crossOrigin=n),this.AbstractLoader_load()},t._updateXHR=function(n){n.loader.mimeType="text/plain; charset=x-user-defined-binary",n.loader.setResponseType&&n.loader.setResponseType("blob")},t._formatResult=function(n){var t=this;return function(i){var r=t._tag,u=window.URL||window.webkitURL,f;t._preferXHR&&(u?(f=u.createObjectURL(n.getResult(!0)),r.src=f,r.onload=function(){u.revokeObjectURL(t.src)}):r.src=n.getItem().src),r.complete?i(r):r.onload=function(){i(this)}}},createjs.ImageLoader=createjs.promote(n,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.JAVASCRIPT),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.setTag(document.createElement("script"))}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.JAVASCRIPT},t._formatResult=function(n){var t=n.getTag();return this._preferXHR&&(t.text=n.getResult(!0)),t},createjs.JavaScriptLoader=createjs.promote(n,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.JSON),this.resultFormatter=this._formatResult}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.JSON&&!n._loadAsJSONP},t._formatResult=function(n){var t=null,i;try{t=createjs.DataUtils.parseJSON(n.getResult(!0))}catch(r){return i=new createjs.ErrorEvent("JSON_FORMAT",null,r),this._sendError(i),r}return t},createjs.JSONLoader=createjs.promote(n,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(n){this.AbstractLoader_constructor(n,!1,createjs.AbstractLoader.JSONP),this.setTag(document.createElement("script")),this.getTag().type="text/javascript"}var n=createjs.extend(t,createjs.AbstractLoader),i=t;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.JSONP||n._loadAsJSONP},n.cancel=function(){this.AbstractLoader_cancel(),this._dispose()},n.load=function(){if(null==this._item.callback)throw new Error("callback is required for loading JSONP requests.");if(null!=window[this._item.callback])throw new Error("JSONP callback '"+this._item.callback+"' already exists on window. You need to specify a different callback or re-name the current one.");window[this._item.callback]=createjs.proxy(this._handleLoad,this),window.document.body.appendChild(this._tag),this._tag.src=this._item.src},n._handleLoad=function(n){this._result=this._rawResult=n,this._sendComplete(),this._dispose()},n._dispose=function(){window.document.body.removeChild(this._tag),delete window[this._item.callback]},createjs.JSONPLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function i(n){this.AbstractLoader_constructor(n,null,createjs.AbstractLoader.MANIFEST),this._manifestQueue=null}var n=createjs.extend(i,createjs.AbstractLoader),t=i;t.MANIFEST_PROGRESS=.25,t.canLoadItem=function(n){return n.type==createjs.AbstractLoader.MANIFEST},n.load=function(){this.AbstractLoader_load()},n._createRequest=function(){var n=this._item.callback;this._request=null!=n?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)},n.handleEvent=function(n){switch(n.type){case"complete":return this._rawResult=n.target.getResult(!0),this._result=n.target.getResult(),this._sendProgress(t.MANIFEST_PROGRESS),void this._loadManifest(this._result);case"progress":return n.loaded*=t.MANIFEST_PROGRESS,this.progress=n.loaded/n.total,(isNaN(this.progress)||1/0==this.progress)&&(this.progress=0),void this._sendProgress(n)}this.AbstractLoader_handleEvent(n)},n.destroy=function(){this.AbstractLoader_destroy(),this._manifestQueue.close()},n._loadManifest=function(n){if(n&&n.manifest){var t=this._manifestQueue=new createjs.LoadQueue;t.on("fileload",this._handleManifestFileLoad,this),t.on("progress",this._handleManifestProgress,this),t.on("complete",this._handleManifestComplete,this,!0),t.on("error",this._handleManifestError,this,!0),t.loadManifest(n)}else this._sendComplete()},n._handleManifestFileLoad=function(n){n.target=null,this.dispatchEvent(n)},n._handleManifestComplete=function(){this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},n._handleManifestProgress=function(n){this.progress=n.progress*(1-t.MANIFEST_PROGRESS)+t.MANIFEST_PROGRESS,this._sendProgress(this.progress)},n._handleManifestError=function(n){var t=new createjs.Event("fileerror");t.item=n.data,this.dispatchEvent(t)},createjs.ManifestLoader=createjs.promote(i,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractMediaLoader_constructor(n,t,createjs.AbstractLoader.SOUND),createjs.RequestUtils.isAudioTag(n)?this._tag=n:createjs.RequestUtils.isAudioTag(n.src)?this._tag=n:createjs.RequestUtils.isAudioTag(n.tag)&&(this._tag=createjs.RequestUtils.isAudioTag(n)?n:n.src),null!=this._tag&&(this._preferXHR=!1)}var t=createjs.extend(n,createjs.AbstractMediaLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.SOUND},t._createTag=function(n){var t=document.createElement("audio");return t.autoplay=!1,t.preload="none",t.src=n,t},createjs.SoundLoader=createjs.promote(n,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractMediaLoader_constructor(n,t,createjs.AbstractLoader.VIDEO),createjs.RequestUtils.isVideoTag(n)||createjs.RequestUtils.isVideoTag(n.src)?(this.setTag(createjs.RequestUtils.isVideoTag(n)?n:n.src),this._preferXHR=!1):this.setTag(this._createTag())}var t=createjs.extend(n,createjs.AbstractMediaLoader),i=n;t._createTag=function(){return document.createElement("video")},i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.VIDEO},createjs.VideoLoader=createjs.promote(n,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function i(n){this.AbstractLoader_constructor(n,null,createjs.AbstractLoader.SPRITESHEET),this._manifestQueue=null}var n=createjs.extend(i,createjs.AbstractLoader),t=i;t.SPRITESHEET_PROGRESS=.25,t.canLoadItem=function(n){return n.type==createjs.AbstractLoader.SPRITESHEET},n.destroy=function(){this.AbstractLoader_destroy,this._manifestQueue.close()},n._createRequest=function(){var n=this._item.callback;this._request=null!=n&&n instanceof Function?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)},n.handleEvent=function(n){switch(n.type){case"complete":return this._rawResult=n.target.getResult(!0),this._result=n.target.getResult(),this._sendProgress(t.SPRITESHEET_PROGRESS),void this._loadManifest(this._result);case"progress":return n.loaded*=t.SPRITESHEET_PROGRESS,this.progress=n.loaded/n.total,(isNaN(this.progress)||1/0==this.progress)&&(this.progress=0),void this._sendProgress(n)}this.AbstractLoader_handleEvent(n)},n._loadManifest=function(n){if(n&&n.images){var t=this._manifestQueue=new createjs.LoadQueue;t.on("complete",this._handleManifestComplete,this,!0),t.on("fileload",this._handleManifestFileLoad,this),t.on("progress",this._handleManifestProgress,this),t.on("error",this._handleManifestError,this,!0),t.loadManifest(n.images)}},n._handleManifestFileLoad=function(n){var i=n.result,t,r;null!=i&&(t=this.getResult().images,r=t.indexOf(n.item.src),t[r]=i)},n._handleManifestComplete=function(){this._result=new createjs.SpriteSheet(this._result),this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},n._handleManifestProgress=function(n){this.progress=n.progress*(1-t.SPRITESHEET_PROGRESS)+t.SPRITESHEET_PROGRESS,this._sendProgress(this.progress)},n._handleManifestError=function(n){var t=new createjs.Event("fileerror");t.item=n.data,this.dispatchEvent(t)},createjs.SpriteSheetLoader=createjs.promote(i,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.SVG),this.resultFormatter=this._formatResult,this._tagSrcAttribute="data",t?this.setTag(document.createElement("svg")):(this.setTag(document.createElement("object")),this.getTag().type="image/svg+xml"),this.getTag().style.visibility="hidden"}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.SVG},t._formatResult=function(n){var i=createjs.DataUtils.parseXML(n.getResult(!0),"text/xml"),t=n.getTag();return!this._preferXHR&&document.body.contains(t)&&document.body.removeChild(t),null!=i.documentElement?(t.appendChild(i.documentElement),t.style.visibility="visible",t):i},createjs.SVGLoader=createjs.promote(n,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.XML),this.resultFormatter=this._formatResult}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.XML},t._formatResult=function(n){return createjs.DataUtils.parseXML(n.getResult(!0),"text/xml")},createjs.XMLLoader=createjs.promote(n,"AbstractLoader")}(),Swiper=function(n,t){"use strict";function h(n,t){return document.querySelectorAll?(t||document).querySelectorAll(n):jQuery(n,t)}function si(n){return Object.prototype.toString.apply(n)==="[object Array]"?!0:!1}function f(){var n=v-u;return t.freeMode&&(n=v-u),t.slidesPerView>i.slides.length&&!t.centeredSlides&&(n=0),n<0&&(n=0),n}function hi(){function f(n){var r,f,u=function(){typeof i!="undefined"&&i!==null&&(i.imagesLoaded!==undefined&&i.imagesLoaded++,i.imagesLoaded===i.imagesToLoad.length&&(i.reInit(),t.onImagesReady&&i.fireCallback(t.onImagesReady,i)))};n.complete?u():(f=n.currentSrc||n.getAttribute("src"),f?(r=new Image,r.onload=u,r.onerror=u,r.src=f):u())}var n=i.h.addEventListener,r=t.eventTarget==="wrapper"?i.wrapper:i.container,u;if(i.browser.ie10||i.browser.ie11?(n(r,i.touchEvents.touchStart,w),n(document,i.touchEvents.touchMove,b),n(document,i.touchEvents.touchEnd,k)):(i.support.touch&&(n(r,"touchstart",w),n(r,"touchmove",b),n(r,"touchend",k)),t.simulateTouch&&(n(r,"mousedown",w),n(document,"mousemove",b),n(document,"mouseup",k))),t.autoResize&&n(window,"resize",i.resizeFix),gt(),i._wheelEvent=!1,t.mousewheelControl){if(document.onmousewheel!==undefined&&(i._wheelEvent="mousewheel"),!i._wheelEvent)try{new WheelEvent("wheel"),i._wheelEvent="wheel"}catch(e){}i._wheelEvent||(i._wheelEvent="DOMMouseScroll"),i._wheelEvent&&n(i.container,i._wheelEvent,ht)}if(t.keyboardControl&&n(document,"keydown",st),t.updateOnImagesReady)for(i.imagesToLoad=h("img",i.container),u=0;u<i.imagesToLoad.length;u++)f(i.imagesToLoad[u])}function gt(){var r=i.h.addEventListener,n,f,u;if(t.preventLinks)for(f=h("a",i.container),n=0;n<f.length;n++)r(f[n],"click",ui);if(t.releaseFormElements)for(u=h("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,ct,!0),i.support.touch&&t.simulateTouch&&r(u[n],"mousedown",ct,!0);if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",ti);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,ii)}function ni(){var r=i.h.removeEventListener,n,u,f;if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",ti);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,ii);if(t.releaseFormElements)for(u=h("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,ct,!0),i.support.touch&&t.simulateTouch&&r(u[n],"mousedown",ct,!0);if(t.preventLinks)for(f=h("a",i.container),n=0;n<f.length;n++)r(f[n],"click",ui)}function st(n){var t=n.keyCode||n.charCode,e,f;if(!n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey){if(t===37||t===39||t===38||t===40){var o=!1,u=i.h.getOffset(i.container),s=i.h.windowScroll().left,h=i.h.windowScroll().top,l=i.h.windowWidth(),a=i.h.windowHeight(),c=[[u.left,u.top],[u.left+i.width,u.top],[u.left,u.top+i.height],[u.left+i.width,u.top+i.height]];for(e=0;e<c.length;e++)f=c[e],f[0]>=s&&f[0]<=s+l&&f[1]>=h&&f[1]<=h+a&&(o=!0);if(!o)return}r?((t===37||t===39)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t===39&&i.swipeNext(),t===37&&i.swipePrev()):((t===38||t===40)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t===40&&i.swipeNext(),t===38&&i.swipePrev())}}function ht(n){var o=i._wheelEvent,u=0,e;if(n.detail)u=-n.detail;else if(o==="mousewheel")if(t.mousewheelControlForceToAxis)if(r)if(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY))u=n.wheelDeltaX;else return;else if(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX))u=n.wheelDeltaY;else return;else u=n.wheelDelta;else if(o==="DOMMouseScroll")u=-n.detail;else if(o==="wheel")if(t.mousewheelControlForceToAxis)if(r)if(Math.abs(n.deltaX)>Math.abs(n.deltaY))u=-n.deltaX;else return;else if(Math.abs(n.deltaY)>Math.abs(n.deltaX))u=-n.deltaY;else return;else u=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX:-n.deltaY;if(t.freeMode){if(e=i.getWrapperTranslate()+u,e>0&&(e=0),e<-f()&&(e=-f()),i.setWrapperTransition(0),i.setWrapperTranslate(e),i.updateActiveSlide(e),e===0||e===-f())return}else+new Date-kt>60&&(u<0?i.swipeNext():i.swipePrev()),kt=+new Date;return t.autoplay&&i.stopAutoplay(!0),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function ti(n){i.allowSlideClick&&(ri(n),i.fireCallback(t.onSlideClick,i,n))}function ii(n){ri(n),i.fireCallback(t.onSlideTouch,i,n)}function ri(n){if(n.currentTarget)i.clickedSlide=n.currentTarget;else{var r=n.srcElement;do{if(r.className.indexOf(t.slideClass)>-1)break;r=r.parentNode}while(r);i.clickedSlide=r}i.clickedSlideIndex=i.slides.indexOf(i.clickedSlide),i.clickedSlideLoopIndex=i.clickedSlideIndex-(i.loopedSlides||0)}function ui(n){if(!i.allowLinks)return n.preventDefault?n.preventDefault():n.returnValue=!1,t.preventLinksPropagation&&"stopPropagation"in n&&n.stopPropagation(),!1}function ct(n){return n.stopPropagation?n.stopPropagation():n.returnValue=!1,!1}function w(n){var u,o,f,e;if((t.preventLinks&&(i.allowLinks=!0),i.isTouched||t.onlyExternal)||(u=n.target||n.srcElement,document.activeElement&&document.activeElement!==document.body&&document.activeElement!==u&&document.activeElement.blur(),o="input select textarea".split(" "),t.noSwiping&&u&&ci(u)))return!1;if(it=!1,i.isTouched=!0,s=n.type==="touchstart",!s&&"which"in n&&n.which===3)return i.isTouched=!1,!1;s&&n.targetTouches.length!==1||(i.callPlugins("onTouchStartBegin"),!s&&!i.isAndroid&&o.indexOf(u.tagName.toLowerCase())<0&&(n.preventDefault?n.preventDefault():n.returnValue=!1),f=s?n.targetTouches[0].pageX:n.pageX||n.clientX,e=s?n.targetTouches[0].pageY:n.pageY||n.clientY,i.touches.startX=i.touches.currentX=f,i.touches.startY=i.touches.currentY=e,i.touches.start=i.touches.current=r?f:e,i.setWrapperTransition(0),i.positions.start=i.positions.current=i.getWrapperTranslate(),i.setWrapperTranslate(i.positions.start),i.times.start=+new Date,a=undefined,t.moveStartThreshold>0&&(lt=!1),t.onTouchStart&&i.fireCallback(t.onTouchStart,i,n),i.callPlugins("onTouchStartEnd"))}function b(n){var e,o,h,c,l,v;if(i.isTouched&&!t.onlyExternal&&(!s||n.type!=="mousemove")){if(e=s?n.targetTouches[0].pageX:n.pageX||n.clientX,o=s?n.targetTouches[0].pageY:n.pageY||n.clientY,typeof a=="undefined"&&r&&(a=!!(a||Math.abs(o-i.touches.startY)>Math.abs(e-i.touches.startX))),typeof a!="undefined"||r||(a=!!(a||Math.abs(o-i.touches.startY)<Math.abs(e-i.touches.startX))),a){i.isTouched=!1;return}if(r){if(!t.swipeToNext&&e<i.touches.startX||!t.swipeToPrev&&e>i.touches.startX)return}else if(!t.swipeToNext&&o<i.touches.startY||!t.swipeToPrev&&o>i.touches.startY)return;if(n.assignedToSwiper){i.isTouched=!1;return}if(n.assignedToSwiper=!0,t.preventLinks&&(i.allowLinks=!1),t.onSlideClick&&(i.allowSlideClick=!1),t.autoplay&&i.stopAutoplay(!0),!s||n.touches.length===1){if(i.isMoved||(i.callPlugins("onTouchMoveStart"),t.loop&&(i.fixLoop(),i.positions.start=i.getWrapperTranslate()),t.onTouchMoveStart&&i.fireCallback(t.onTouchMoveStart,i)),i.isMoved=!0,n.preventDefault?n.preventDefault():n.returnValue=!1,i.touches.current=r?e:o,i.positions.current=(i.touches.current-i.touches.start)*t.touchRatio+i.positions.start,i.positions.current>0&&t.onResistanceBefore&&i.fireCallback(t.onResistanceBefore,i,i.positions.current),i.positions.current<-f()&&t.onResistanceAfter&&i.fireCallback(t.onResistanceAfter,i,Math.abs(i.positions.current+f())),t.resistance&&t.resistance!=="100%"&&(i.positions.current>0&&(h=1-i.positions.current/u/2,i.positions.current=h<.5?u/2:i.positions.current*h),i.positions.current<-f()&&(c=(i.touches.current-i.touches.start)*t.touchRatio+(f()+i.positions.start),h=(u+c)/u,l=i.positions.current-c*(1-h)/2,v=-f()-u/2,i.positions.current=l<v||h<=0?v:l)),t.resistance&&t.resistance==="100%"&&(i.positions.current>0&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=0),i.positions.current<-f()&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=-f())),!t.followFinger)return;if(t.moveStartThreshold)if(Math.abs(i.touches.current-i.touches.start)>t.moveStartThreshold||lt){if(!lt){lt=!0,i.touches.start=i.touches.current;return}i.setWrapperTranslate(i.positions.current)}else i.positions.current=i.positions.start;else i.setWrapperTranslate(i.positions.current);return(t.freeMode||t.watchActiveIndex)&&i.updateActiveSlide(i.positions.current),t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grabbing",i.container.style.cursor="-moz-grabbin",i.container.style.cursor="-webkit-grabbing"),rt||(rt=i.touches.current),at||(at=+new Date),i.velocity=(i.touches.current-rt)/(+new Date-at)/2,Math.abs(i.touches.current-rt)<2&&(i.velocity=0),rt=i.touches.current,at=+new Date,i.callPlugins("onTouchMoveEnd"),t.onTouchMove&&i.fireCallback(t.onTouchMove,i,n),!1}}}function k(n){var s,h,nt,k,g,v;if(a&&i.swipeReset(),!t.onlyExternal&&i.isTouched){i.isTouched=!1,t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grab",i.container.style.cursor="-moz-grab",i.container.style.cursor="-webkit-grab"),i.positions.current||i.positions.current===0||(i.positions.current=i.positions.start),t.followFinger&&i.setWrapperTranslate(i.positions.current),i.times.end=+new Date,i.touches.diff=i.touches.current-i.touches.start,i.touches.abs=Math.abs(i.touches.diff),i.positions.diff=i.positions.current-i.positions.start,i.positions.abs=Math.abs(i.positions.diff);var tt=i.positions.diff,c=i.positions.abs,l=i.times.end-i.times.start;if(c<5&&l<300&&i.allowLinks===!1&&(t.freeMode||c===0||i.swipeReset(),t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0)),setTimeout(function(){typeof i!="undefined"&&i!==null&&(t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0))},100),s=f(),!i.isMoved&&t.freeMode){i.isMoved=!1,t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n),i.callPlugins("onTouchEnd");return}if(!i.isMoved||i.positions.current>0||i.positions.current<-s){i.swipeReset(),t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n),i.callPlugins("onTouchEnd");return}if(i.isMoved=!1,t.freeMode){if(t.freeModeFluid){var p=1e3*t.momentumRatio,rt=i.velocity*p,o=i.positions.current+rt,w=!1,b,y=Math.abs(i.velocity)*20*t.momentumBounceRatio;o<-s&&(t.momentumBounce&&i.support.transitions?(o+s<-y&&(o=-s-y),b=-s,w=!0,it=!0):o=-s),o>0&&(t.momentumBounce&&i.support.transitions?(o>y&&(o=y),b=0,w=!0,it=!0):o=0),i.velocity!==0&&(p=Math.abs((o-i.positions.current)/i.velocity)),i.setWrapperTranslate(o),i.setWrapperTransition(p),t.momentumBounce&&w&&i.wrapperTransitionEnd(function(){it&&(t.onMomentumBounce&&i.fireCallback(t.onMomentumBounce,i),i.callPlugins("onMomentumBounce"),i.setWrapperTranslate(b),i.setWrapperTransition(300))}),i.updateActiveSlide(o)}(!t.freeModeFluid||l>=300)&&i.updateActiveSlide(i.positions.current),t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n),i.callPlugins("onTouchEnd");return}if(d=tt<0?"toNext":"toPrev",d==="toNext"&&l<=300&&(c<30||!t.shortSwipes?i.swipeReset():i.swipeNext(!0,!0)),d==="toPrev"&&l<=300&&(c<30||!t.shortSwipes?i.swipeReset():i.swipePrev(!0,!0)),h=0,t.slidesPerView==="auto"){for(nt=Math.abs(i.getWrapperTranslate()),k=0,v=0;v<i.slides.length;v++)if(g=r?i.slides[v].getWidth(!0,t.roundLengths):i.slides[v].getHeight(!0,t.roundLengths),k+=g,k>nt){h=g;break}h>u&&(h=u)}else h=e*t.slidesPerView;d==="toNext"&&l>300&&(c>=h*t.longSwipesRatio?i.swipeNext(!0,!0):i.swipeReset()),d==="toPrev"&&l>300&&(c>=h*t.longSwipesRatio?i.swipePrev(!0,!0):i.swipeReset()),t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n),i.callPlugins("onTouchEnd")}}function vt(n,t){return n&&n.getAttribute("class")&&n.getAttribute("class").indexOf(t)>-1}function ci(n){var i=!1;do vt(n,t.noSwipingClass)&&(i=!0),n=n.parentElement;while(!i&&n.parentElement&&!vt(n,t.wrapperClass));return!i&&vt(n,t.wrapperClass)&&vt(n,t.noSwipingClass)&&(i=!0),i}function fi(n,t){var r=document.createElement("div"),i;return r.innerHTML=t,i=r.firstChild,i.className+=" "+n,i.outerHTML}function yt(n,r,u){function s(){var o=+new Date,a=o-c;f+=l*a/(1e3/60),h=e==="toNext"?f>n:f<n,h?(i.setWrapperTranslate(Math.ceil(f)),i._DOMAnimating=!0,window.setTimeout(function(){s()},1e3/60)):(t.onSlideChangeEnd&&(r==="to"?u.runCallbacks===!0&&i.fireCallback(t.onSlideChangeEnd,i,e):i.fireCallback(t.onSlideChangeEnd,i,e)),i.setWrapperTranslate(n),i._DOMAnimating=!1)}var o=r==="to"&&u.speed>=0?u.speed:t.speed,c=+new Date;if(i.support.transitions||!t.DOMAnimation)i.setWrapperTranslate(n),i.setWrapperTransition(o);else{var f=i.getWrapperTranslate(),l=Math.ceil((n-f)/o*(1e3/60)),e=f>n?"toNext":"toPrev",h=e==="toNext"?f>n:f<n;if(i._DOMAnimating)return;s()}i.updateActiveSlide(n),t.onSlideNext&&r==="next"&&u.runCallbacks===!0&&i.fireCallback(t.onSlideNext,i,n),t.onSlidePrev&&r==="prev"&&u.runCallbacks===!0&&i.fireCallback(t.onSlidePrev,i,n),t.onSlideReset&&r==="reset"&&u.runCallbacks===!0&&i.fireCallback(t.onSlideReset,i,n),(r==="next"||r==="prev"||r==="to")&&u.runCallbacks===!0&&li(r)}function li(n){if(i.callPlugins("onSlideChangeStart"),t.onSlideChangeStart)if(t.queueStartCallbacks&&i.support.transitions){if(i._queueStartCallbacks)return;i._queueStartCallbacks=!0,i.fireCallback(t.onSlideChangeStart,i,n),i.wrapperTransitionEnd(function(){i._queueStartCallbacks=!1})}else i.fireCallback(t.onSlideChangeStart,i,n);if(t.onSlideChangeEnd)if(i.support.transitions)if(t.queueEndCallbacks){if(i._queueEndCallbacks)return;i._queueEndCallbacks=!0,i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)})}else i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)});else t.DOMAnimation||setTimeout(function(){i.fireCallback(t.onSlideChangeEnd,i,n)},10)}function ei(){var t=i.paginationButtons,n;if(t)for(n=0;n<t.length;n++)i.h.removeEventListener(t[n],"click",oi)}function ai(){var t=i.paginationButtons,n;if(t)for(n=0;n<t.length;n++)i.h.addEventListener(t[n],"click",oi)}function oi(n){for(var u,e=n.target||n.srcElement,f=i.paginationButtons,r=0;r<f.length;r++)e===f[r]&&(u=r);t.autoplay&&i.stopAutoplay(!0),i.swipeTo(u)}function dt(){o=setTimeout(function(){t.loop?(i.fixLoop(),i.swipeNext(!0,!0)):i.swipeNext(!0,!0)||(t.autoplayStopOnLast?(clearTimeout(o),o=undefined):i.swipeTo(0)),i.wrapperTransitionEnd(function(){typeof o!="undefined"&&dt()})},t.autoplay)}function vi(){i.calcSlides(),t.loader.slides.length>0&&i.slides.length===0&&i.loadSlides(),t.loop&&i.createLoop(),i.init(),hi(),t.pagination&&i.createPagination(!0),t.loop||t.initialSlide>0?i.swipeTo(t.initialSlide,0,!1):i.updateActiveSlide(0),t.autoplay&&i.startAutoplay(),i.centerIndex=i.activeIndex,t.onSwiperCreated&&i.fireCallback(t.onSwiperCreated,i),i.callPlugins("onSwiperCreated")}var pt,i,ut,e,v,d,a,u,g,c,ft,r,y,p,wt,et,nt,ot,bt,kt,tt,s,lt,it,rt,at,o,l;if((!document.body.outerHTML&&document.body.__defineGetter__&&HTMLElement&&(pt=HTMLElement.prototype,pt.__defineGetter__&&pt.__defineGetter__("outerHTML",function(){return(new XMLSerializer).serializeToString(this)})),window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return t==="float"&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(){return arguments[2].toUpperCase()})),n.currentStyle[t]?n.currentStyle[t]:null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1}),document.querySelectorAll||window.jQuery)&&typeof n!="undefined"&&(n.nodeType||h(n).length!==0)){i=this,i.touches={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,diff:0,abs:0},i.positions={start:0,abs:0,diff:0,current:0},i.times={start:0,end:0},i.id=+new Date,i.container=n.nodeType?n:h(n)[0],i.isTouched=!1,i.isMoved=!1,i.activeIndex=0,i.centerIndex=0,i.activeLoaderIndex=0,i.activeLoopIndex=0,i.previousIndex=null,i.velocity=0,i.snapGrid=[],i.slidesGrid=[],i.imagesToLoad=[],i.imagesLoaded=0,i.wrapperLeft=0,i.wrapperRight=0,i.wrapperTop=0,i.wrapperBottom=0,i.isAndroid=navigator.userAgent.toLowerCase().indexOf("android")>=0,g={eventTarget:"wrapper",mode:"horizontal",touchRatio:1,speed:300,freeMode:!1,freeModeFluid:!1,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,slidesPerView:1,slidesPerGroup:1,slidesPerViewFit:!0,simulateTouch:!0,followFinger:!0,shortSwipes:!0,longSwipesRatio:.5,moveStartThreshold:!1,onlyExternal:!1,createPagination:!0,pagination:!1,paginationElement:"span",paginationClickable:!1,paginationAsRange:!0,resistance:!0,scrollContainer:!1,preventLinks:!0,preventLinksPropagation:!1,noSwiping:!1,noSwipingClass:"swiper-no-swiping",initialSlide:0,keyboardControl:!1,mousewheelControl:!1,mousewheelControlForceToAxis:!1,useCSS3Transforms:!0,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,loop:!1,loopAdditionalSlides:0,roundLengths:!1,calculateHeight:!1,cssWidthAndHeight:!1,updateOnImagesReady:!0,releaseFormElements:!0,watchActiveIndex:!1,visibilityFullFit:!1,offsetPxBefore:0,offsetPxAfter:0,offsetSlidesBefore:0,offsetSlidesAfter:0,centeredSlides:!1,queueStartCallbacks:!1,queueEndCallbacks:!1,autoResize:!0,resizeReInit:!1,DOMAnimation:!0,loader:{slides:[],slidesHTMLType:"inner",surroundGroups:1,logic:"reload",loadAllSlides:!1},swipeToPrev:!0,swipeToNext:!0,slideElement:"div",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",wrapperClass:"swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"},t=t||{};for(c in g)if(c in t&&typeof t[c]=="object")for(ft in g[c])ft in t[c]||(t[c][ft]=g[c][ft]);else c in t||(t[c]=g[c]);for(i.params=t,t.scrollContainer&&(t.freeMode=!0,t.freeModeFluid=!0),t.loop&&(t.resistance="100%"),r=t.mode==="horizontal",y=["mousedown","mousemove","mouseup"],i.browser.ie10&&(y=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.browser.ie11&&(y=["pointerdown","pointermove","pointerup"]),i.touchEvents={touchStart:i.support.touch||!t.simulateTouch?"touchstart":y[0],touchMove:i.support.touch||!t.simulateTouch?"touchmove":y[1],touchEnd:i.support.touch||!t.simulateTouch?"touchend":y[2]},p=i.container.childNodes.length-1;p>=0;p--)if(i.container.childNodes[p].className)for(wt=i.container.childNodes[p].className.split(/\s+/),et=0;et<wt.length;et++)wt[et]===t.wrapperClass&&(ut=i.container.childNodes[p]);i.wrapper=ut,i._extendSwiperSlide=function(n){return n.append=function(){return t.loop?n.insertAfter(i.slides.length-i.loopedSlides):(i.wrapper.appendChild(n),i.reInit()),n},n.prepend=function(){return t.loop?(i.wrapper.insertBefore(n,i.slides[i.loopedSlides]),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.insertBefore(n,i.wrapper.firstChild),i.reInit(),n},n.insertAfter=function(r){if(typeof r=="undefined")return!1;var u;return t.loop?(u=i.slides[r+1+i.loopedSlides],u?i.wrapper.insertBefore(n,u):i.wrapper.appendChild(n),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):(u=i.slides[r+1],i.wrapper.insertBefore(n,u)),i.reInit(),n},n.clone=function(){return i._extendSwiperSlide(n.cloneNode(!0))},n.remove=function(){i.wrapper.removeChild(n),i.reInit()},n.html=function(t){return typeof t=="undefined"?n.innerHTML:(n.innerHTML=t,n)},n.index=function(){for(var r,t=i.slides.length-1;t>=0;t--)n===i.slides[t]&&(r=t);return r},n.isActive=function(){return n.index()===i.activeIndex?!0:!1},n.swiperSlideDataStorage||(n.swiperSlideDataStorage={}),n.getData=function(t){return n.swiperSlideDataStorage[t]},n.setData=function(t,i){return n.swiperSlideDataStorage[t]=i,n},n.data=function(t,i){return typeof i=="undefined"?n.getAttribute("data-"+t):(n.setAttribute("data-"+t,i),n)},n.getWidth=function(t,r){return i.h.getWidth(n,t,r)},n.getHeight=function(t,r){return i.h.getHeight(n,t,r)},n.getOffset=function(){return i.h.getOffset(n)},n},i.calcSlides=function(n){var e=i.slides?i.slides.length:!1,r,o,f,u;for(i.slides=[],i.displaySlides=[],r=0;r<i.wrapper.childNodes.length;r++)if(i.wrapper.childNodes[r].className)for(o=i.wrapper.childNodes[r].className,f=o.split(/\s+/),u=0;u<f.length;u++)f[u]===t.slideClass&&i.slides.push(i.wrapper.childNodes[r]);for(r=i.slides.length-1;r>=0;r--)i._extendSwiperSlide(i.slides[r]);e!==!1&&(e!==i.slides.length||n)&&(ni(),gt(),i.updateActiveSlide(),i.params.pagination&&i.createPagination(),i.callPlugins("numberOfSlidesChanged"))},i.createSlide=function(n,r,u){r=r||i.params.slideClass,u=u||t.slideElement;var f=document.createElement(u);return f.innerHTML=n||"",f.className=r,i._extendSwiperSlide(f)},i.appendSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).append():i.createSlide(n,t,r).append()},i.prependSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).prepend():i.createSlide(n,t,r).prepend()},i.insertSlideAfter=function(n,t,r,u){return typeof n=="undefined"?!1:t.nodeType?i._extendSwiperSlide(t).insertAfter(n):i.createSlide(t,r,u).insertAfter(n)},i.removeSlide=function(n){if(i.slides[n]){if(t.loop){if(!i.slides[n+i.loopedSlides])return!1;i.slides[n+i.loopedSlides].remove(),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()}else i.slides[n].remove();return!0}return!1},i.removeLastSlide=function(){return i.slides.length>0?(t.loop?(i.slides[i.slides.length-1-i.loopedSlides].remove(),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.slides[i.slides.length-1].remove(),!0):!1},i.removeAllSlides=function(){for(var t=i.slides.length,n=i.slides.length-1;n>=0;n--)i.slides[n].remove(),n===t-1&&i.setWrapperTranslate(0)},i.getSlide=function(n){return i.slides[n]},i.getLastSlide=function(){return i.slides[i.slides.length-1]},i.getFirstSlide=function(){return i.slides[0]},i.activeSlide=function(){return i.slides[i.activeIndex]},i.fireCallback=function(){var n=arguments[0],r;if(Object.prototype.toString.call(n)==="[object Array]")for(r=0;r<n.length;r++)typeof n[r]=="function"&&n[r](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);else Object.prototype.toString.call(n)==="[object String]"?t["on"+n]&&i.fireCallback(t["on"+n],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]):n(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},i.addCallback=function(n,t){var r=this,i;if(r.params["on"+n]){if(si(this.params["on"+n]))return this.params["on"+n].push(t);if(typeof this.params["on"+n]=="function")return i=this.params["on"+n],this.params["on"+n]=[],this.params["on"+n].push(i),this.params["on"+n].push(t)}else return this.params["on"+n]=[],this.params["on"+n].push(t)},i.removeCallbacks=function(n){i.params["on"+n]&&(i.params["on"+n]=null)},nt=[];for(ot in i.plugins)t[ot]&&(bt=i.plugins[ot](i,t[ot]),bt&&nt.push(bt));i.callPlugins=function(n,t){t||(t={});for(var i=0;i<nt.length;i++)n in nt[i]&&nt[i][n](t)},(i.browser.ie10||i.browser.ie11)&&!t.onlyExternal&&i.wrapper.classList.add("swiper-wp8-"+(r?"horizontal":"vertical")),t.freeMode&&(i.container.className+=" swiper-free-mode"),i.initialized=!1,i.init=function(n,f){var tt=i.h.getWidth(i.container,!1,t.roundLengths),it=i.h.getHeight(i.container,!1,t.roundLengths),a,c,p,w,l,h,s,o,k,d,g,y,b,nt;if(tt!==i.width||it!==i.height||n){if(i.width=tt,i.height=it,u=r?tt:it,o=i.wrapper,n&&i.calcSlides(f),t.slidesPerView==="auto"){for(k=0,d=0,t.slidesOffset>0&&(o.style.paddingLeft="",o.style.paddingRight="",o.style.paddingTop="",o.style.paddingBottom=""),o.style.width="",o.style.height="",t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-this.slides[0].getWidth(!0,t.roundLengths))/2,i.wrapperRight=(u-i.slides[i.slides.length-1].getWidth(!0,t.roundLengths))/2):(i.wrapperTop=(u-i.slides[0].getHeight(!0,t.roundLengths))/2,i.wrapperBottom=(u-i.slides[i.slides.length-1].getHeight(!0,t.roundLengths))/2)),r?(i.wrapperLeft>=0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>=0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>=0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>=0&&(o.style.paddingBottom=i.wrapperBottom+"px")),h=0,g=0,i.snapGrid=[],i.slidesGrid=[],p=0,s=0;s<i.slides.length;s++){if(a=i.slides[s].getWidth(!0,t.roundLengths),c=i.slides[s].getHeight(!0,t.roundLengths),t.calculateHeight&&(p=Math.max(p,c)),y=r?a:c,t.centeredSlides){var rt=s===i.slides.length-1?0:i.slides[s+1].getWidth(!0,t.roundLengths),ut=s===i.slides.length-1?0:i.slides[s+1].getHeight(!0,t.roundLengths),ft=r?rt:ut;if(y>u){if(t.slidesPerViewFit)i.snapGrid.push(h+i.wrapperLeft),i.snapGrid.push(h+y-u+i.wrapperLeft);else for(b=0;b<=Math.floor(y/(u+i.wrapperLeft));b++)b===0?i.snapGrid.push(h+i.wrapperLeft):i.snapGrid.push(h+i.wrapperLeft+u*b);i.slidesGrid.push(h+i.wrapperLeft)}else i.snapGrid.push(g),i.slidesGrid.push(g);g+=y/2+ft/2}else{if(y>u)if(t.slidesPerViewFit)i.snapGrid.push(h),i.snapGrid.push(h+y-u);else if(u!==0)for(nt=0;nt<=Math.floor(y/u);nt++)i.snapGrid.push(h+u*nt);else i.snapGrid.push(h);else i.snapGrid.push(h);i.slidesGrid.push(h)}h+=y,k+=a,d+=c}t.calculateHeight&&(i.height=p),r?(v=k+i.wrapperRight+i.wrapperLeft,t.cssWidthAndHeight&&t.cssWidthAndHeight!=="height"||(o.style.width=k+"px"),t.cssWidthAndHeight&&t.cssWidthAndHeight!=="width"||(o.style.height=i.height+"px")):(t.cssWidthAndHeight&&t.cssWidthAndHeight!=="height"||(o.style.width=i.width+"px"),t.cssWidthAndHeight&&t.cssWidthAndHeight!=="width"||(o.style.height=d+"px"),v=d+i.wrapperTop+i.wrapperBottom)}else if(t.scrollContainer)o.style.width="",o.style.height="",w=i.slides[0].getWidth(!0,t.roundLengths),l=i.slides[0].getHeight(!0,t.roundLengths),v=r?w:l,o.style.width=w+"px",o.style.height=l+"px",e=r?w:l;else{if(t.calculateHeight){for(p=0,l=0,r||(i.container.style.height=""),o.style.height="",s=0;s<i.slides.length;s++)i.slides[s].style.height="",p=Math.max(i.slides[s].getHeight(!0),p),r||(l+=i.slides[s].getHeight(!0));c=p,i.height=c,r?l=c:(u=c,i.container.style.height=u+"px")}else c=r?i.height:i.height/t.slidesPerView,t.roundLengths&&(c=Math.ceil(c)),l=r?i.height:i.slides.length*c;for(a=r?i.width/t.slidesPerView:i.width,t.roundLengths&&(a=Math.ceil(a)),w=r?i.slides.length*a:i.width,e=r?a:c,t.offsetSlidesBefore>0&&(r?i.wrapperLeft=e*t.offsetSlidesBefore:i.wrapperTop=e*t.offsetSlidesBefore),t.offsetSlidesAfter>0&&(r?i.wrapperRight=e*t.offsetSlidesAfter:i.wrapperBottom=e*t.offsetSlidesAfter),t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-e)/2,i.wrapperRight=(u-e)/2):(i.wrapperTop=(u-e)/2,i.wrapperBottom=(u-e)/2)),r?(i.wrapperLeft>0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>0&&(o.style.paddingBottom=i.wrapperBottom+"px")),v=r?w+i.wrapperRight+i.wrapperLeft:l+i.wrapperTop+i.wrapperBottom,parseFloat(w)>0&&(!t.cssWidthAndHeight||t.cssWidthAndHeight==="height")&&(o.style.width=w+"px"),parseFloat(l)>0&&(!t.cssWidthAndHeight||t.cssWidthAndHeight==="width")&&(o.style.height=l+"px"),h=0,i.snapGrid=[],i.slidesGrid=[],s=0;s<i.slides.length;s++)i.snapGrid.push(h),i.slidesGrid.push(h),h+=e,parseFloat(a)>0&&(!t.cssWidthAndHeight||t.cssWidthAndHeight==="height")&&(i.slides[s].style.width=a+"px"),parseFloat(c)>0&&(!t.cssWidthAndHeight||t.cssWidthAndHeight==="width")&&(i.slides[s].style.height=c+"px")}i.initialized?(i.callPlugins("onInit"),t.onInit&&i.fireCallback(t.onInit,i)):(i.callPlugins("onFirstInit"),t.onFirstInit&&i.fireCallback(t.onFirstInit,i)),i.initialized=!0}},i.reInit=function(n){i.init(!0,n)},i.resizeFix=function(n){i.callPlugins("beforeResizeFix"),i.init(t.resizeReInit||n),t.freeMode?i.getWrapperTranslate()<-f()&&(i.setWrapperTransition(0),i.setWrapperTranslate(-f())):(i.swipeTo(t.loop?i.activeLoopIndex:i.activeIndex,0,!1),t.autoplay&&(i.support.transitions&&typeof o!="undefined"?typeof o!="undefined"&&(clearTimeout(o),o=undefined,i.startAutoplay()):typeof l!="undefined"&&(clearInterval(l),l=undefined,i.startAutoplay()))),i.callPlugins("afterResizeFix")},i.destroy=function(n){var r=i.h.removeEventListener,u=t.eventTarget==="wrapper"?i.wrapper:i.container,f;if(i.browser.ie10||i.browser.ie11?(r(u,i.touchEvents.touchStart,w),r(document,i.touchEvents.touchMove,b),r(document,i.touchEvents.touchEnd,k)):(i.support.touch&&(r(u,"touchstart",w),r(u,"touchmove",b),r(u,"touchend",k)),t.simulateTouch&&(r(u,"mousedown",w),r(document,"mousemove",b),r(document,"mouseup",k))),t.autoResize&&r(window,"resize",i.resizeFix),ni(),t.paginationClickable&&ei(),t.mousewheelControl&&i._wheelEvent&&r(i.container,i._wheelEvent,ht),t.keyboardControl&&r(document,"keydown",st),t.autoplay&&i.stopAutoplay(),n)for(i.wrapper.removeAttribute("style"),f=0;f<i.slides.length;f++)i.slides[f].removeAttribute("style");i.callPlugins("onDestroy"),window.jQuery&&window.jQuery(i.container).data("swiper")&&window.jQuery(i.container).removeData("swiper"),window.Zepto&&window.Zepto(i.container).data("swiper")&&window.Zepto(i.container).removeData("swiper"),i=null},i.disableKeyboardControl=function(){t.keyboardControl=!1,i.h.removeEventListener(document,"keydown",st)},i.enableKeyboardControl=function(){t.keyboardControl=!0,i.h.addEventListener(document,"keydown",st)},kt=+new Date,i.disableMousewheelControl=function(){return i._wheelEvent?(t.mousewheelControl=!1,i.h.removeEventListener(i.container,i._wheelEvent,ht),!0):!1},i.enableMousewheelControl=function(){return i._wheelEvent?(t.mousewheelControl=!0,i.h.addEventListener(i.container,i._wheelEvent,ht),!0):!1},t.grabCursor&&(tt=i.container.style,tt.cursor="move",tt.cursor="grab",tt.cursor="-moz-grab",tt.cursor="-webkit-grab"),i.allowSlideClick=!0,i.allowLinks=!0,s=!1,it=!0,i.swipeNext=function(n,r){var o,u,s,h;if(typeof n=="undefined"&&(n=!0),!r&&t.loop&&i.fixLoop(),!r&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipeNext"),o=i.getWrapperTranslate().toFixed(2),u=o,t.slidesPerView==="auto"){for(s=0;s<i.snapGrid.length;s++)if(-o>=i.snapGrid[s].toFixed(2)&&-o<i.snapGrid[s+1].toFixed(2)){u=-i.snapGrid[s+1];break}}else h=e*t.slidesPerGroup,u=-(Math.floor(Math.abs(o)/Math.floor(h))*h+h);return(u<-f()&&(u=-f()),u===o)?!1:(yt(u,"next",{runCallbacks:n}),!0)},i.swipePrev=function(n,r){var o,u,f,s;if(typeof n=="undefined"&&(n=!0),!r&&t.loop&&i.fixLoop(),!r&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipePrev"),o=Math.ceil(i.getWrapperTranslate()),t.slidesPerView==="auto")for(u=0,f=1;f<i.snapGrid.length;f++){if(-o===i.snapGrid[f]){u=-i.snapGrid[f-1];break}if(-o>i.snapGrid[f]&&-o<i.snapGrid[f+1]){u=-i.snapGrid[f];break}}else s=e*t.slidesPerGroup,u=-(Math.ceil(-o/s)-1)*s;return(u>0&&(u=0),u===o)?!1:(yt(u,"prev",{runCallbacks:n}),!0)},i.swipeReset=function(n){var s;typeof n=="undefined"&&(n=!0),i.callPlugins("onSwipeReset");var o=i.getWrapperTranslate(),h=e*t.slidesPerGroup,r,c=-f();if(t.slidesPerView==="auto"){for(r=0,s=0;s<i.snapGrid.length;s++){if(-o===i.snapGrid[s])return;if(-o>=i.snapGrid[s]&&-o<i.snapGrid[s+1]){r=i.positions.diff>0?-i.snapGrid[s+1]:-i.snapGrid[s];break}}-o>=i.snapGrid[i.snapGrid.length-1]&&(r=-i.snapGrid[i.snapGrid.length-1]),o<=-f()&&(r=-f())}else r=o<0?Math.round(o/h)*h:0,o<=-f()&&(r=-f());return(t.scrollContainer&&(r=o<0?o:0),r<-f()&&(r=-f()),t.scrollContainer&&u>e&&(r=0),r===o)?!1:(yt(r,"reset",{runCallbacks:n}),!0)},i.swipeTo=function(n,r,u){var s,o;if(n=parseInt(n,10),i.callPlugins("onSwipeTo",{index:n,speed:r}),t.loop&&(n=n+i.loopedSlides),s=i.getWrapperTranslate(),isFinite(n)&&!(n>i.slides.length-1)&&!(n<0))return(o=t.slidesPerView==="auto"?-i.slidesGrid[n]:-n*e,o<-f()&&(o=-f()),o===s)?!1:(typeof u=="undefined"&&(u=!0),yt(o,"to",{index:n,speed:r,runCallbacks:u}),!0)},i._queueStartCallbacks=!1,i._queueEndCallbacks=!1,i.updateActiveSlide=function(n){var r,l,o,s,u,h,c,f;if(i.initialized&&i.slides.length!==0){if(i.previousIndex=i.activeIndex,typeof n=="undefined"&&(n=i.getWrapperTranslate()),n>0&&(n=0),t.slidesPerView==="auto"){if(l=0,i.activeIndex=i.slidesGrid.indexOf(-n),i.activeIndex<0){for(r=0;r<i.slidesGrid.length-1;r++)if(-n>i.slidesGrid[r]&&-n<i.slidesGrid[r+1])break;o=Math.abs(i.slidesGrid[r]+n),s=Math.abs(i.slidesGrid[r+1]+n),i.activeIndex=o<=s?r:r+1}}else i.activeIndex=Math[t.visibilityFullFit?"ceil":"round"](-n/e);if(i.activeIndex===i.slides.length&&(i.activeIndex=i.slides.length-1),i.activeIndex<0&&(i.activeIndex=0),i.slides[i.activeIndex]){if(i.calcVisibleSlides(n),i.support.classList){for(r=0;r<i.slides.length;r++)u=i.slides[r],u.classList.remove(t.slideActiveClass),i.visibleSlides.indexOf(u)>=0?u.classList.add(t.slideVisibleClass):u.classList.remove(t.slideVisibleClass);i.slides[i.activeIndex].classList.add(t.slideActiveClass)}else{for(h=new RegExp("\\s*"+t.slideActiveClass),c=new RegExp("\\s*"+t.slideVisibleClass),r=0;r<i.slides.length;r++)i.slides[r].className=i.slides[r].className.replace(h,"").replace(c,""),i.visibleSlides.indexOf(i.slides[r])>=0&&(i.slides[r].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass}t.loop?(f=i.loopedSlides,i.activeLoopIndex=i.activeIndex-f,i.activeLoopIndex>=i.slides.length-f*2&&(i.activeLoopIndex=i.slides.length-f*2-i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=i.slides.length-f*2+i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=0)):i.activeLoopIndex=i.activeIndex,t.pagination&&i.updatePagination(n)}}},i.createPagination=function(n){var r;if(t.paginationClickable&&i.paginationButtons&&ei(),i.paginationContainer=t.pagination.nodeType?t.pagination:h(t.pagination)[0],t.createPagination){var u="",e=i.slides.length,f=e;for(t.loop&&(f-=i.loopedSlides*2),r=0;r<f;r++)u+="<"+t.paginationElement+' class="'+t.paginationElementClass+'"><\/'+t.paginationElement+">";i.paginationContainer.innerHTML=u}i.paginationButtons=h("."+t.paginationElementClass,i.paginationContainer),n||i.updatePagination(),i.callPlugins("onCreatePagination"),t.paginationClickable&&ai()},i.updatePagination=function(n){var s,r,o,c,e,f,u;if(t.pagination&&!(i.slides.length<1)&&(s=h("."+t.paginationActiveClass,i.paginationContainer),s)&&(r=i.paginationButtons,r.length!==0)){for(o=0;o<r.length;o++)r[o].className=t.paginationElementClass;if(c=t.loop?i.loopedSlides:0,t.paginationAsRange){for(i.visibleSlides||i.calcVisibleSlides(n),e=[],f=0;f<i.visibleSlides.length;f++)u=i.slides.indexOf(i.visibleSlides[f])-c,t.loop&&u<0&&(u=i.slides.length-i.loopedSlides*2+u),t.loop&&u>=i.slides.length-i.loopedSlides*2&&(u=i.slides.length-i.loopedSlides*2-u,u=Math.abs(u)),e.push(u);for(f=0;f<e.length;f++)r[e[f]]&&(r[e[f]].className+=" "+t.paginationVisibleClass);t.loop?r[i.activeLoopIndex]!==undefined&&(r[i.activeLoopIndex].className+=" "+t.paginationActiveClass):r[i.activeIndex]&&(r[i.activeIndex].className+=" "+t.paginationActiveClass)}else t.loop?r[i.activeLoopIndex]&&(r[i.activeLoopIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass):r[i.activeIndex]&&(r[i.activeIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass)}},i.calcVisibleSlides=function(n){var c=[],f=0,l=0,s=0,h,o;for(r&&i.wrapperLeft>0&&(n=n+i.wrapperLeft),!r&&i.wrapperTop>0&&(n=n+i.wrapperTop),h=0;h<i.slides.length;h++)f+=l,l=t.slidesPerView==="auto"?r?i.h.getWidth(i.slides[h],!0,t.roundLengths):i.h.getHeight(i.slides[h],!0,t.roundLengths):e,s=f+l,o=!1,t.visibilityFullFit?(f>=-n&&s<=-n+u&&(o=!0),f<=-n&&s>=-n+u&&(o=!0)):(s>-n&&s<=-n+u&&(o=!0),f>=-n&&f<-n+u&&(o=!0),f<-n&&s>-n+u&&(o=!0)),o&&c.push(i.slides[h]);c.length===0&&(c=[i.slides[i.activeIndex]]),i.visibleSlides=c},i.startAutoplay=function(){if(i.support.transitions){if(typeof o!="undefined")return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart"),t.onAutoplayStart&&i.fireCallback(t.onAutoplayStart,i),dt()}else{if(typeof l!="undefined")return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart"),t.onAutoplayStart&&i.fireCallback(t.onAutoplayStart,i),l=setInterval(function(){t.loop?(i.fixLoop(),i.swipeNext(!0,!0)):i.swipeNext(!0,!0)||(t.autoplayStopOnLast?(clearInterval(l),l=undefined):i.swipeTo(0))},t.autoplay)}},i.stopAutoplay=function(n){if(i.support.transitions){if(!o)return;o&&clearTimeout(o),o=undefined,n&&!t.autoplayDisableOnInteraction&&i.wrapperTransitionEnd(function(){dt()}),i.callPlugins("onAutoplayStop"),t.onAutoplayStop&&i.fireCallback(t.onAutoplayStop,i)}else l&&clearInterval(l),l=undefined,i.callPlugins("onAutoplayStop"),t.onAutoplayStop&&i.fireCallback(t.onAutoplayStop,i)},i.loopCreated=!1,i.removeLoopedSlides=function(){if(i.loopCreated)for(var n=0;n<i.slides.length;n++)i.slides[n].getData("looped")===!0&&i.wrapper.removeChild(i.slides[n])},i.createLoop=function(){var f,h,c;if(i.slides.length!==0){i.loopedSlides=t.slidesPerView==="auto"?t.loopedSlides||1:Math.floor(t.slidesPerView)+t.loopAdditionalSlides,i.loopedSlides>i.slides.length&&(i.loopedSlides=i.slides.length);for(var e="",o="",u="",r=i.slides.length,l=Math.floor(i.loopedSlides/r),s=i.loopedSlides%r,n=0;n<l*r;n++)f=n,n>=r&&(h=Math.floor(n/r),f=n-r*h),u+=i.slides[f].outerHTML;for(n=0;n<s;n++)o+=fi(t.slideDuplicateClass,i.slides[n].outerHTML);for(n=r-s;n<r;n++)e+=fi(t.slideDuplicateClass,i.slides[n].outerHTML);for(c=e+u+ut.innerHTML+u+o,ut.innerHTML=c,i.loopCreated=!0,i.calcSlides(),n=0;n<i.slides.length;n++)(n<i.loopedSlides||n>=i.slides.length-i.loopedSlides)&&i.slides[n].setData("looped",!0);i.callPlugins("onCreateLoop")}},i.fixLoop=function(){var n;i.activeIndex<i.loopedSlides?(n=i.slides.length-i.loopedSlides*3+i.activeIndex,i.swipeTo(n,0,!1)):(t.slidesPerView==="auto"&&i.activeIndex>=i.loopedSlides*2||i.activeIndex>i.slides.length-t.slidesPerView*2)&&(n=-i.slides.length+i.activeIndex+i.loopedSlides,i.swipeTo(n,0,!1))},i.loadSlides=function(){var u="",r,f,n;for(i.activeLoaderIndex=0,r=t.loader.slides,f=t.loader.loadAllSlides?r.length:t.slidesPerView*(1+t.loader.surroundGroups),n=0;n<f;n++)u+=t.loader.slidesHTMLType==="outer"?r[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+r[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=u,i.calcSlides(!0),t.loader.loadAllSlides||i.wrapperTransitionEnd(i.reloadSlides,!0)},i.reloadSlides=function(){var f=t.loader.slides,u=parseInt(i.activeSlide().data("swiperindex"),10),o,h,v,n,a,c,l,s,r;if(!(u<0)&&!(u>f.length-1)){if(i.activeLoaderIndex=u,o=Math.max(0,u-t.slidesPerView*t.loader.surroundGroups),h=Math.min(u+t.slidesPerView*(1+t.loader.surroundGroups)-1,f.length-1),u>0&&(v=-e*(u-o),i.setWrapperTranslate(v),i.setWrapperTransition(0)),t.loader.logic==="reload"){for(i.wrapper.innerHTML="",a="",n=o;n<=h;n++)a+=t.loader.slidesHTMLType==="outer"?f[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+f[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=a}else{for(c=1e3,l=0,n=0;n<i.slides.length;n++)s=i.slides[n].data("swiperindex"),s<o||s>h?i.wrapper.removeChild(i.slides[n]):(c=Math.min(s,c),l=Math.max(s,l));for(n=o;n<=h;n++)n<c&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.insertBefore(r,i.wrapper.firstChild)),n>l&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.appendChild(r))}i.reInit(!0)}},vi()}},Swiper.prototype={plugins:{},wrapperTransitionEnd:function(n,t){"use strict";function e(o){if(o.target===f&&(n(r),r.params.queueEndCallbacks&&(r._queueEndCallbacks=!1),!t))for(i=0;i<u.length;i++)r.h.removeEventListener(f,u[i],e)}var r=this,f=r.wrapper,u=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i;if(n)for(i=0;i<u.length;i++)r.h.addEventListener(f,u[i],e)},getWrapperTranslate:function(n){"use strict";var f=this.wrapper,r,t,i,u;return typeof n=="undefined"&&(n=this.params.mode==="horizontal"?"x":"y"),this.support.transforms&&this.params.useCSS3Transforms?(i=window.getComputedStyle(f,null),window.WebKitCSSMatrix?u=new WebKitCSSMatrix(i.webkitTransform==="none"?"":i.webkitTransform):(u=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=u.toString().split(",")),n==="x"&&(t=window.WebKitCSSMatrix?u.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),n==="y"&&(t=window.WebKitCSSMatrix?u.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5]))):(n==="x"&&(t=parseFloat(f.style.left,10)||0),n==="y"&&(t=parseFloat(f.style.top,10)||0)),t||0},setWrapperTranslate:function(n,t,i){"use strict";var u=this.wrapper.style,r={x:0,y:0,z:0},f;arguments.length===3?(r.x=n,r.y=t,r.z=i):(typeof t=="undefined"&&(t=this.params.mode==="horizontal"?"x":"y"),r[t]=n),this.support.transforms&&this.params.useCSS3Transforms?(f=this.support.transforms3d?"translate3d("+r.x+"px, "+r.y+"px, "+r.z+"px)":"translate("+r.x+"px, "+r.y+"px)",u.webkitTransform=u.MsTransform=u.msTransform=u.MozTransform=u.OTransform=u.transform=f):(u.left=r.x+"px",u.top=r.y+"px"),this.callPlugins("onSetWrapperTransform",r),this.params.onSetWrapperTransform&&this.fireCallback(this.params.onSetWrapperTransform,this,r)},setWrapperTransition:function(n){"use strict";var t=this.wrapper.style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n/1e3+"s",this.callPlugins("onSetWrapperTransition",{duration:n}),this.params.onSetWrapperTransition&&this.fireCallback(this.params.onSetWrapperTransition,this,n)},h:{getWidth:function(n,t,i){"use strict";var u=window.getComputedStyle(n,null).getPropertyValue("width"),r=parseFloat(u);return(isNaN(r)||u.indexOf("%")>0||r<0)&&(r=n.offsetWidth-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),t&&(r+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),i?Math.ceil(r):r},getHeight:function(n,t,i){"use strict";if(t)return n.offsetHeight;var u=window.getComputedStyle(n,null).getPropertyValue("height"),r=parseFloat(u);return(isNaN(r)||u.indexOf("%")>0||r<0)&&(r=n.offsetHeight-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),t&&(r+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),i?Math.ceil(r):r},getOffset:function(n){"use strict";var t=n.getBoundingClientRect(),i=document.body,f=n.clientTop||i.clientTop||0,e=n.clientLeft||i.clientLeft||0,r=window.pageYOffset||n.scrollTop,u=window.pageXOffset||n.scrollLeft;return document.documentElement&&!window.pageYOffset&&(r=document.documentElement.scrollTop,u=document.documentElement.scrollLeft),{top:t.top+r-f,left:t.left+u-e}},windowWidth:function(){"use strict";return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:void 0},windowHeight:function(){"use strict";return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:void 0},windowScroll:function(){"use strict";return typeof pageYOffset!="undefined"?{left:window.pageXOffset,top:window.pageYOffset}:document.documentElement?{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}:void 0},addEventListener:function(n,t,i,r){"use strict";typeof r=="undefined"&&(r=!1),n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},removeEventListener:function(n,t,i,r){"use strict";typeof r=="undefined"&&(r=!1),n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}},setTransform:function(n,t){"use strict";var i=n.style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t},setTranslate:function(n,t){"use strict";var i=n.style,r={x:t.x||0,y:t.y||0,z:t.z||0},u=this.support.transforms3d?"translate3d("+r.x+"px,"+r.y+"px,"+r.z+"px)":"translate("+r.x+"px,"+r.y+"px)";i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=u,this.support.transforms||(i.left=r.x+"px",i.top=r.y+"px")},setTransition:function(n,t){"use strict";var i=n.style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t+"ms"},support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){"use strict";return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){"use strict";var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),transforms:window.Modernizr&&Modernizr.csstransforms===!0||function(){"use strict";var n=document.createElement("div").style;return"transform"in n||"WebkitTransform"in n||"MozTransform"in n||"msTransform"in n||"MsTransform"in n||"OTransform"in n}(),transitions:window.Modernizr&&Modernizr.csstransitions===!0||function(){"use strict";var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"MsTransition"in n||"OTransition"in n}(),classList:function(){"use strict";var n=document.createElement("div");return"classList"in n}()},browser:{ie8:function(){"use strict";var n=-1,t,i;return navigator.appName==="Microsoft Internet Explorer"&&(t=navigator.userAgent,i=new RegExp(/MSIE ([0-9]{1,}[\.0-9]{0,})/),i.exec(t)!==null&&(n=parseFloat(RegExp.$1))),n!==-1&&n<9}(),ie10:window.navigator.msPointerEnabled,ie11:window.navigator.pointerEnabled}},(window.jQuery||window.Zepto)&&function(n){"use strict";n.fn.swiper=function(t){var i;return this.each(function(r){var u=n(this),f=new Swiper(u[0],t);r||(i=f),u.data("swiper",f)}),i}}(window.jQuery||window.Zepto),typeof module!="undefined"?module.exports=Swiper:typeof define=="function"&&define.amd&&define([],function(){"use strict";return Swiper}),function(n,t,i,r){"use strict";function u(t,i){var r,u;this.element=t,this.$context=n(t).data("api",this),this.$layers=this.$context.find(".layer"),r={calibrateX:this.$context.data("calibrate-x")||null,calibrateY:this.$context.data("calibrate-y")||null,invertX:this.$context.data("invert-x")||null,invertY:this.$context.data("invert-y")||null,limitX:parseFloat(this.$context.data("limit-x"))||null,limitY:parseFloat(this.$context.data("limit-y"))||null,scalarX:parseFloat(this.$context.data("scalar-x"))||null,scalarY:parseFloat(this.$context.data("scalar-y"))||null,frictionX:parseFloat(this.$context.data("friction-x"))||null,frictionY:parseFloat(this.$context.data("friction-y"))||null,originX:parseFloat(this.$context.data("origin-x"))||null,originY:parseFloat(this.$context.data("origin-y"))||null};for(u in r)r[u]===null&&delete r[u];n.extend(this,s,i,r),this.calibrationTimer=null,this.calibrationFlag=!0,this.enabled=!1,this.depths=[],this.raf=null,this.bounds=null,this.ex=0,this.ey=0,this.ew=0,this.eh=0,this.ecx=0,this.ecy=0,this.erx=0,this.ery=0,this.cx=0,this.cy=0,this.ix=0,this.iy=0,this.mx=0,this.my=0,this.vx=0,this.vy=0,this.onMouseMove=this.onMouseMove.bind(this),this.onDeviceOrientation=this.onDeviceOrientation.bind(this),this.onOrientationTimer=this.onOrientationTimer.bind(this),this.onCalibrationTimer=this.onCalibrationTimer.bind(this),this.onAnimationFrame=this.onAnimationFrame.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.initialise()}var f="parallax",e=30,s={relativeInput:!1,clipRelativeInput:!1,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5},o;u.prototype.transformSupport=function(n){for(var f=i.createElement("div"),c=!1,o=null,l=!1,a=null,s=null,u=0,v=this.vendors.length;u<v;u++)if(this.vendors[u]!==null?(a=this.vendors[u][0]+"transform",s=this.vendors[u][1]+"Transform"):(a="transform",s="transform"),f.style[s]!==r){c=!0;break}switch(n){case"2D":l=c;break;case"3D":if(c){var e=i.body||i.createElement("body"),h=i.documentElement,y=h.style.overflow;i.body||(h.style.overflow="hidden",h.appendChild(e),e.style.overflow="hidden",e.style.background=""),e.appendChild(f),f.style[s]="translate3d(1px,1px,1px)",o=t.getComputedStyle(f).getPropertyValue(a),l=o!==r&&o.length>0&&o!=="none",h.style.overflow=y,e.removeChild(f)}}return l},u.prototype.ww=null,u.prototype.wh=null,u.prototype.wcx=null,u.prototype.wcy=null,u.prototype.wrx=null,u.prototype.wry=null,u.prototype.portrait=null,u.prototype.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),u.prototype.vendors=[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]],u.prototype.motionSupport=!!t.DeviceMotionEvent,u.prototype.orientationSupport=!!t.DeviceOrientationEvent,u.prototype.orientationStatus=0,u.prototype.transform2DSupport=u.prototype.transformSupport("2D"),u.prototype.transform3DSupport=u.prototype.transformSupport("3D"),u.prototype.propertyCache={},u.prototype.initialise=function(){this.$context.css("position")==="static"&&this.$context.css({position:"relative"}),this.accelerate(this.$context),this.updateLayers(),this.updateDimensions(),this.enable(),this.queueCalibration(this.calibrationDelay)},u.prototype.updateLayers=function(){this.$layers=this.$context.find(".layer"),this.depths=[],this.$layers.css({position:"absolute",display:"block",left:0,top:0}),this.$layers.first().css({position:"relative"}),this.accelerate(this.$layers),this.$layers.each(n.proxy(function(t,i){this.depths.push(n(i).data("depth")||0)},this))},u.prototype.updateDimensions=function(){this.ww=t.innerWidth,this.wh=t.innerHeight,this.wcx=this.ww*this.originX,this.wcy=this.wh*this.originY,this.wrx=Math.max(this.wcx,this.ww-this.wcx),this.wry=Math.max(this.wcy,this.wh-this.wcy)},u.prototype.updateBounds=function(){this.bounds=this.element.getBoundingClientRect(),this.ex=this.bounds.left,this.ey=this.bounds.top,this.ew=this.bounds.width,this.eh=this.bounds.height,this.ecx=this.ew*this.originX,this.ecy=this.eh*this.originY,this.erx=Math.max(this.ecx,this.ew-this.ecx),this.ery=Math.max(this.ecy,this.eh-this.ecy)},u.prototype.queueCalibration=function(n){clearTimeout(this.calibrationTimer),this.calibrationTimer=setTimeout(this.onCalibrationTimer,n)},u.prototype.enable=function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=null,t.addEventListener("deviceorientation",this.onDeviceOrientation),setTimeout(this.onOrientationTimer,this.supportDelay)):(this.cx=0,this.cy=0,this.portrait=!1,t.addEventListener("mousemove",this.onMouseMove)),t.addEventListener("resize",this.onWindowResize),this.raf=requestAnimationFrame(this.onAnimationFrame))},u.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.orientationSupport?t.removeEventListener("deviceorientation",this.onDeviceOrientation):t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("resize",this.onWindowResize),cancelAnimationFrame(this.raf))},u.prototype.calibrate=function(n,t){this.calibrateX=n===r?this.calibrateX:n,this.calibrateY=t===r?this.calibrateY:t},u.prototype.invert=function(n,t){this.invertX=n===r?this.invertX:n,this.invertY=t===r?this.invertY:t},u.prototype.friction=function(n,t){this.frictionX=n===r?this.frictionX:n,this.frictionY=t===r?this.frictionY:t},u.prototype.scalar=function(n,t){this.scalarX=n===r?this.scalarX:n,this.scalarY=t===r?this.scalarY:t},u.prototype.limit=function(n,t){this.limitX=n===r?this.limitX:n,this.limitY=t===r?this.limitY:t},u.prototype.origin=function(n,t){this.originX=n===r?this.originX:n,this.originY=t===r?this.originY:t},u.prototype.clamp=function(n,t,i){return n=Math.max(n,t),n=Math.min(n,i)},u.prototype.css=function(t,i,u){var f=this.propertyCache[i],e,o;if(!f)for(e=0,o=this.vendors.length;e<o;e++)if(f=this.vendors[e]!==null?n.camelCase(this.vendors[e][1]+"-"+i):i,t.style[f]!==r){this.propertyCache[i]=f;break}t.style[f]=u},u.prototype.accelerate=function(n){for(var i,t=0,r=n.length;t<r;t++)i=n[t],this.css(i,"transform","translate3d(0,0,0)"),this.css(i,"transform-style","preserve-3d"),this.css(i,"backface-visibility","hidden")},u.prototype.setPosition=function(n,t,i){t+="px",i+="px",this.transform3DSupport?this.css(n,"transform","translate3d("+t+","+i+",0)"):this.transform2DSupport?this.css(n,"transform","translate("+t+","+i+")"):(n.style.left=t,n.style.top=i)},u.prototype.onOrientationTimer=function(){this.orientationSupport&&this.orientationStatus===0&&(this.disable(),this.orientationSupport=!1,this.enable())},u.prototype.onCalibrationTimer=function(){this.calibrationFlag=!0},u.prototype.onWindowResize=function(){this.updateDimensions()},u.prototype.onAnimationFrame=function(){var t,i,n,r;for(this.updateBounds(),t=this.ix-this.cx,i=this.iy-this.cy,(Math.abs(t)>this.calibrationThreshold||Math.abs(i)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.mx=this.calibrateX?i:this.iy,this.my=this.calibrateY?t:this.ix):(this.mx=this.calibrateX?t:this.ix,this.my=this.calibrateY?i:this.iy),this.mx*=this.ew*(this.scalarX/100),this.my*=this.eh*(this.scalarY/100),isNaN(parseFloat(this.limitX))||(this.mx=this.clamp(this.mx,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.my=this.clamp(this.my,-this.limitY,this.limitY)),this.vx+=(this.mx-this.vx)*this.frictionX,this.vy+=(this.my-this.vy)*this.frictionY,n=0,r=this.$layers.length;n<r;n++){var u=this.depths[n],f=this.$layers[n],e=this.vx*u*(this.invertX?-1:1),o=this.vy*u*(this.invertY?-1:1);this.setPosition(f,e,o)}this.raf=requestAnimationFrame(this.onAnimationFrame)},u.prototype.onDeviceOrientation=function(n){if(!this.desktop&&n.beta!==null&&n.gamma!==null){this.orientationStatus=1;var i=(n.beta||0)/e,r=(n.gamma||0)/e,u=t.innerHeight>t.innerWidth;this.portrait!==u&&(this.portrait=u,this.calibrationFlag=!0),this.calibrationFlag&&(this.calibrationFlag=!1,this.cx=i,this.cy=r),this.ix=i,this.iy=r}},u.prototype.onMouseMove=function(n){var t=n.clientX,i=n.clientY;!this.orientationSupport&&this.relativeInput?(this.clipRelativeInput&&(t=Math.max(t,this.ex),t=Math.min(t,this.ex+this.ew),i=Math.max(i,this.ey),i=Math.min(i,this.ey+this.eh)),this.ix=(t-this.ex-this.ecx)/this.erx,this.iy=(i-this.ey-this.ecy)/this.ery):(this.ix=(t-this.wcx)/this.wrx,this.iy=(i-this.wcy)/this.wry)},o={enable:u.prototype.enable,disable:u.prototype.disable,updateLayers:u.prototype.updateLayers,calibrate:u.prototype.calibrate,friction:u.prototype.friction,invert:u.prototype.invert,scalar:u.prototype.scalar,limit:u.prototype.limit,origin:u.prototype.origin},n.fn[f]=function(t){var i=arguments;return this.each(function(){var e=n(this),r=e.data(f);r||(r=new u(this,t),e.data(f,r)),o[t]&&r[t].apply(r,Array.prototype.slice.call(i,1))})}}(window.jQuery||window.Zepto,window,document);var slideFunctions=[],updateinterval=3e5,counterInterval,amount=null,amountThisMonth=null,amountLastMonth=null,hideCounters=!0;!function(n){n.fn.countTo=function(t){t=n.extend({},n.fn.countTo.defaults,t||{});var r=Math.ceil(t.speed/t.refreshInterval),i=(t.to-t.from)/r;return i=Math.floor(i)+.34,n(this).each(function(){function e(){n+=i,f++,"function"==typeof t.onUpdate&&t.onUpdate.call(u,n),f>=r&&(clearInterval(o),n=t.to,"function"==typeof t.onComplete&&t.onComplete.call(u,n))}var u=this,f=0,n=t.from,o=setInterval(e,t.refreshInterval)})},n.fn.countTo.defaults={from:0,to:100,speed:1e3,refreshInterval:100,decimals:0,onUpdate:null,onComplete:null}}(jQuery);var refresh=!1,totalWinTodayCounter=null,totalWinThisMonthCounter=null,totalWinLastMonthCounter=null;Counter.DefaultCharacterSets={numericUp:"0123456789",numericDown:"9876543210",alphabeticUp:" ABCDEFGHIJKLMNOPQRSTUVWXYZ",alphabeticDown:"ZYXWVUTSRQPONMLKJIHGFEDCBA ",alphanumericUp:"0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ",alphanumericDown:"9876543210ZYXWVUTSRQPONMLKJIHGFEDCBA ",calculator:"0123456789.,+-*/= ",qwertyKeybord:" QWERTYUIOPASDFGHJKLZXCVBNM1234567890-=[]\\;',./~`!@#$%^&*()_+{}|:\"<>?",allCharacters:" ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=[]\\;',./~`!@#$%^&*()_+{}|:\"<>?"},Counter.ScrollDirection={Downwards:-1,Mixed:0,Upwards:1},Counter.ScrollAnimation={FixedTime:0,FixedSpeed:1,SlotMachine:2},Counter.prototype.finishLoading=function(){var t,n;if(this.imageLoadCounter++,2==this.imageLoadCounter&&this.charsImage.width&&this.markerImage.width){for(this.digitWidth=this.charsImage.width,this.digitHeight=Math.ceil(this.charsImage.height/this.characterNumber),this.offsetHeight=(this.markerImage.height-this.digitHeight)/2,this.makrer=document.createElement("DIV"),this.makrer.className="counter_marker"+(this.extraClassName.marker?" ":"")+this.extraClassName.marker,this.makrer.style.backgroundImage="url('"+this.markerImage.src+"')",this.makrer.style.width=this.digitWidth*this.digitsNumber+this.digitsNumber+"px",this.makrer.style.height=this.markerImage.height+"px",this.wrapper.className=this.wrapper.className+(this.extraClassName.marker?" ":"")+this.extraClassName.marker,this.wrapper.style.width=this.makrer.style.width,this.wrapper.style.height=this.makrer.style.height,this.wrapper.appendChild(this.makrer),t=0,totalWidth=0,""!=this.prefixText&&(totalWidth+=this.createTextElement(this.prefixText,"prefix","counter_character_left"),totalWidth+=this.createTextElement(" ","prefix_space","counter_character_left")),t=0;t<this.digitsNumber;t++)this.showDecimalSeparator&&this.decimalSeparator&&this.decimalPoints>0&&t==this.digitsNumber-this.decimalPoints&&(totalWidth+=this.createTextElement(this.decimalSeparator,"decimal","counter_character_inner")),this.showThousandsSeparator&&this.thousandsSeparator&&this.decimalPoints>=0&&t>0&&t<this.digitsNumber-this.decimalPoints&&t%3==(this.digitsNumber-this.decimalPoints)%3&&(totalWidth+=this.createTextElement(this.thousandsSeparator,"thousand_"+t,"counter_character_inner")),n=document.createElement("DIV"),n.id=this.wrapperId+"_"+t,n.className="counter_character",n.className+=0==t?(""!=this.prefixText?" counter_character_inner":" counter_character_left")+(this.extraClassName.left?" ":"")+this.extraClassName.left:t==this.digitsNumber-1?(""!=this.posfixText?" counter_character_inner":" counter_character_right")+(this.extraClassName.right?" ":"")+this.extraClassName.right:" counter_character_inner"+(this.extraClassName.inner?" ":"")+this.extraClassName.inner,n.style.backgroundImage="url('"+this.charsImage.src+"')",n.style.width=this.digitWidth+"px",n.style.height=this.markerImage.height+"px",n.style.top=-this.markerImage.height+"px",this.wrapper.appendChild(n),totalWidth+=Counter._parseInt(Counter._elementCurrentStyle(n,"margin-left")),totalWidth+=Counter._parseInt(Counter._elementCurrentStyle(n,"margin-right")),totalWidth+=Counter._parseInt(Counter._elementCurrentStyle(n,"border-left-width")),totalWidth+=Counter._parseInt(Counter._elementCurrentStyle(n,"border-right-width")),totalWidth+=this.digitWidth;""!=this.postfixText&&(totalWidth+=this.createTextElement(this.postfixText,"postfix","counter_character_right")),this.makrer.style.width=totalWidth+"px",this.wrapper.style.width=totalWidth+"px",null!=this.onLoad&&this.onLoad(),this.setValue(this.value,100)}},Counter.prototype.createTextElement=function(n,t,i){var u=0,r=document.createElement("DIV");return r.id=this.wrapperId+"_"+t,r.className="counter_character counter_text "+i,r.innerHTML=n,r.style.width=this.digitWidth+"px",r.style.height=this.markerImage.height+"px",r.style.top=-this.markerImage.height+"px",this.wrapper.appendChild(r),u+=Counter._parseInt(Counter._elementCurrentStyle(r,"margin-left")),u+=Counter._parseInt(Counter._elementCurrentStyle(r,"margin-right")),u+=Counter._parseInt(Counter._elementCurrentStyle(r,"border-left-width")),u+=Counter._parseInt(Counter._elementCurrentStyle(r,"border-right-width")),u+=this.digitWidth},Counter.prototype.animate=function(n){var t,f,r,i,u;for(n?this.animationProgress=1:this.animationProgress+=this.animationStep,this.animationProgress>=1&&(this.animationProgress=1,this.timeoutTimerId&&clearTimeout(this.timeoutTimerId),this.intervalTimerId&&clearTimeout(this.intervalTimerId),this.isAnimating=!1,this.timeoutTimerId=null,this.intervalTimerId=null),t=0,f=this.wrapper.id+"_",t=0;t<this.beforeAnimation.length;t++)r=document.getElementById(f+(this.digitsNumber-t-1)),r&&(i=0,this.animationProgress<1?this.scrollAnimation==Counter.ScrollAnimation.FixedSpeed?(u=this.animationProgress/this.itemAnimationProgress[t],i=1>u?this.beforeAnimation[t]+(this.afterAnimation[t]-this.beforeAnimation[t])*u:this.beforeAnimation[t]+1*(this.afterAnimation[t]-this.beforeAnimation[t])):i=this.scrollAnimation==Counter.ScrollAnimation.SlotMachine?this.beforeAnimation[t]+(this.afterAnimation[t]-this.beforeAnimation[t])*(2*this.animationProgress-Math.pow(this.animationProgress,2)):this.beforeAnimation[t]+(this.afterAnimation[t]-this.beforeAnimation[t])*this.animationProgress:i=this.afterAnimation[t],r.style.backgroundPosition="0px "+Counter._parseInt(i)+"px")},Counter.prototype.add=function(n,t){this.setValue(parseFloat(this.value)+n,t)},Counter.prototype.setValue=function(n,t){var i,h,f,e,a,u,p,r,w,o,s,v;if(2!=this.imageLoadCounter||!this.charsImage.width||!this.markerImage.width)return this.value=n,void(null!=this.onValueChanged&&this.onValueChanged());for(this.timeoutTimerId&&clearTimeout(this.timeoutTimerId),this.intervalTimerId&&clearTimeout(this.intervalTimerId),i=0,h=this.wrapper.id+"_",this.beforeAnimation=[],this.afterAnimation=[],i=this.digitsNumber-1;i>=0;i--)a=document.getElementById(h+(this.digitsNumber-i-1)),this.beforeAnimation[i]=new Number(a.style.backgroundPosition.substr(4).replace("px",""));if(f=this.value.toString?this.value.toString():new String(this.value),e=n.toString?n.toString():new String(n),this.showDecimalSeparator&&this.decimalSeparator&&this.decimalPoints>0)var y=Math.pow(10,this.decimalPoints),c=Math.round(this.value*y),l=Math.round(n*y),f=c.toString?c.toString():new String(c),e=l.toString?l.toString():new String(l);for(i=this.digitsNumber-1;i>=0;i--)a=document.getElementById(h+(this.digitsNumber-i-1)),u=-1,f.length-i-1>=0&&(p=f.charAt(f.length-i-1).toUpperCase(),u=this.characterSet.indexOf(p)),-1==u&&(u=this.characterSet.indexOf(" ")),-1==u&&(u=this.characterSet.indexOf("0")),-1==u&&(u=0),r=-1,e.length-i-1>=0&&(w=e.charAt(e.length-i-1).toUpperCase(),r=this.characterSet.indexOf(w)),-1==r&&(r=this.characterSet.indexOf(" ")),-1==r&&(r=this.characterSet.indexOf("0")),-1==r&&(r=0),this.afterAnimation[i]=Math.round(-this.digitHeight*r+this.offsetHeight),this.direction==Counter.ScrollDirection.Mixed?Math.abs(u-r)>this.characterNumber/2&&(this.beforeAnimation[i]=u>r?this.beforeAnimation[i]+this.digitHeight*this.characterNumber:this.beforeAnimation[i]-this.digitHeight*this.characterNumber):this.direction==Counter.ScrollDirection.Downwards?this.beforeAnimation[i]>this.afterAnimation[i]&&(this.beforeAnimation[i]=this.beforeAnimation[i]-this.digitHeight*this.characterNumber):this.direction==Counter.ScrollDirection.Upwards&&this.beforeAnimation[i]<this.afterAnimation[i]&&(this.beforeAnimation[i]=this.beforeAnimation[i]+this.digitHeight*this.characterNumber);if(this.scrollAnimation==Counter.ScrollAnimation.FixedSpeed){for(o=0,i=0;i<this.beforeAnimation.length;i++)Math.abs(this.beforeAnimation[i]-this.afterAnimation[i])>o&&(o=Math.abs(this.beforeAnimation[i]-this.afterAnimation[i]));for(i=0;i<this.beforeAnimation.length;i++)this.itemAnimationProgress[i]=Math.abs(this.beforeAnimation[i]-this.afterAnimation[i])/o}this.value=n,null!=this.onValueChanged&&this.onValueChanged(),t&&parseInt(t)>0||(t=1e3),this.isAnimating=!0,s=this.animationDuration,this.animationStep=s/t,this.animationProgress=0,v=this,t>s&&(this.intervalTimerId=setInterval(function(){v.animate(!1)},s)),this.timeoutTimerId=setTimeout(function(){v.animate(!0)},t)},Counter.prototype.zoom=function(){},Counter._parseInt=function(n){var t=parseInt(n);return isNaN(t)&&(t=0),t},Counter._elementCurrentStyle=function(n,t){if(n.currentStyle){for(var i=0,u="",r=!1,i=0;i<t.length;i++)!t.charAt(i)||"-"==t.charAt(i)&&"-"==t.charAt(i).toString()?r=!0:(u+=t.charAt(i).toString?r?t.charAt(i).toString().toUpperCase():t.charAt(i).toString():r?t.charAt(i).toUpperCase():t.charAt(i),r=!1);return t=u,n.currentStyle[t]}return getComputedStyle(n,null).getPropertyValue(t)},$(document).ready(function(){function t(){var n=new createjs.LoadQueue;n.addEventListener("complete",i),n.loadFile("/Content/Images/homepage/sports.jpg")}function i(){$.getJSON("/Game/Slide?partial=Sports",{},function(n){$(n.SlideBackground).insertAfter("#swiper-container"),mySwiper.activeSlide().html(n.Slide),scaleSwiper(),$("#loader_container").hide(),$("#sportsBanner").removeClass("hide"),$("#sportsBannerBackground").addClass("hide"),setTimeout(function(){$("#sportsBannerBackground").removeClass("hide")})})}function r(){var n=new createjs.LoadQueue;n.addEventListener("complete",u),n.loadFile("/Content/Images/Homepage/rooksrevengelogo.png"),n.loadFile("/Content/Images/Homepage/rooksrevenge.jpg")}function u(){$.getJSON("/Game/Slide?partial=DragonDice",{},function(n){$(n.SlideBackground).insertAfter("#swiper-container"),mySwiper.activeSlide().html(n.Slide),scaleSwiper(),$("#loader_container").hide(),$("#dragonDiceBanner").removeClass("hide"),$("#dragonDiceBannerBackground").addClass("hide"),setTimeout(function(){$("#dragonDiceBannerBackground").removeClass("hide")}),setTimeout(function(){$(".rooksrevenge").removeClass("hide")},100)})}function f(){var n=new createjs.LoadQueue;n.addEventListener("complete",e),n.loadFile("/Content/Images/homepage/livecasino.png")}function e(){$.getJSON("/Game/Slide?partial=Roulette",{},function(n){$(n.SlideBackground).insertAfter("#swiper-container"),mySwiper.activeSlide().html(n.Slide),scaleSwiper(),$("#loader_container").hide(),$("#rouletteBanner").removeClass("hide"),setTimeout(function(){$(".roulettelogo").removeClass("hide")},500)})}function o(){var n=new createjs.LoadQueue;n.addEventListener("complete",s),n.loadFile("/Content/Images/homepage/starnight.jpg")}function s(){function t(n){$(n.SlideBackground).insertAfter("#swiper-container"),scaleSwiper(),$("#jackpotsBannerBackground").addClass("hide"),$("#loader_container").hide(),$("#jackpotsBannerBackground").removeClass("hide")}n.jackPotsBanner==undefined?$.getJSON("/Game/Slide?partial=Jackpots",{},function(i){var r,f,u;for(n.jackPotsBanner=i,mySwiper.activeSlide().html(i.Slide),r=[],f=[],$.each(gameGrid.jackpotsValues,function(n,t){$.inArray(t.Amount,r)===-1&&(r.push(t.Amount),f.push(t.AverageIncreasePerSecond))}),totalJackpots=0,totalJackpotSpeed=0,u=0;u<r.length;u++)totalJackpots+=r[u],totalJackpotSpeed+=f[u];totalJackpotSpeed>10&&(totalJackpotSpeed=9.99),$("#jackPotsBannerCounter").attr("data-from",totalJackpots.toString()),$("#jackPotsBannerCounter").attr("data-speed",totalJackpotSpeed.toString()),Soon.create(document.getElementById("jackPotsBannerCounter")),t(i)}):t(n.jackPotsBanner)}slideFunctions[0]=o,slideFunctions[1]=t,slideFunctions[2]=r,slideFunctions[3]=f;var n={}}),function(n){function r(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(r,u){n.fn[r]=function(f){var h,o,c,l,e,s;if(typeof f=="string"){for(h=i.call(arguments,1),o=0,c=this.length;o<c;o++){if(l=this[o],e=n.data(l,r),!e){t("cannot call methods on "+r+" prior to initialization; attempted to call '"+f+"'");continue}if(!n.isFunction(e[f])||f.charAt(0)==="_"){t("no such method '"+f+"' for "+r+" instance");continue}if(s=e[f].apply(e,h),s!==undefined)return s}return this}return this.each(function(){var t=n.data(this,r);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,r,t))})}}if(n){var t=typeof console=="undefined"?r:function(n){console.error(n)};return n.bridget=function(n,t){u(t),f(n,t)}}}var i=Array.prototype.slice;typeof define=="function"&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):typeof exports=="object"?t(require("jquery")):t(n.jQuery)}(window),function(n){function f(n){return new RegExp("(^|\\s+)"+n+"(\\s+|$)")}function e(n,u){var f=t(n,u)?r:i;f(n,u)}var t,i,r,u;"classList"in document.documentElement?(t=function(n,t){return n.classList.contains(t)},i=function(n,t){n.classList.add(t)},r=function(n,t){n.classList.remove(t)}):(t=function(n,t){return f(t).test(n.className)},i=function(n,i){t(n,i)||(n.className=n.className+" "+i)},r=function(n,t){n.className=n.className.replace(f(t)," ")}),u={hasClass:t,addClass:i,removeClass:r,toggleClass:e,has:t,add:i,remove:r,toggle:e},typeof define=="function"&&define.amd?define("classie/classie",u):typeof exports=="object"?module.exports=u:n.classie=u}(window),function(n){function t(n){var u,t,f;if(n){if(typeof r[n]=="string")return n;for(n=n.charAt(0).toUpperCase()+n.slice(1),t=0,f=i.length;t<f;t++)if(u=i[t]+n,typeof r[u]=="string")return u}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;typeof define=="function"&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):typeof exports=="object"?module.exports=t:n.getStyleProperty=t}(window),function(n){function r(n){var t=parseFloat(n),i=n.indexOf("%")===-1&&!isNaN(t);return i&&t}function f(){}function o(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},u,n=0,r=i.length;n<r;n++)u=i[n],t[u]=0;return t}function u(t){function c(){var o,i,c,l;s||(s=!0,o=n.getComputedStyle,f=function(){var n=o?function(n){return o(n,null)}:function(n){return n.currentStyle};return function(t){var i=n(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),u=t("boxSizing"),u&&(i=document.createElement("div"),i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style[u]="border-box",c=document.body||document.documentElement,c.appendChild(i),l=f(i),h=r(l.width)===200,c.removeChild(i)))}function l(n){var e,t,w,s,b,v,l,y,p;if(c(),typeof n=="string"&&(n=document.querySelector(n)),n&&typeof n=="object"&&n.nodeType){if(e=f(n),e.display==="none")return o();for(t={},t.width=n.offsetWidth,t.height=n.offsetHeight,w=t.isBorderBox=!!(u&&e[u]&&e[u]==="border-box"),s=0,b=i.length;s<b;s++)v=i[s],l=e[v],l=a(n,l),y=parseFloat(l),t[v]=isNaN(y)?0:y;var k=t.paddingLeft+t.paddingRight,d=t.paddingTop+t.paddingBottom,rt=t.marginLeft+t.marginRight,ut=t.marginTop+t.marginBottom,g=t.borderLeftWidth+t.borderRightWidth,nt=t.borderTopWidth+t.borderBottomWidth,tt=w&&h,it=r(e.width);return it!==!1&&(t.width=it+(tt?0:k+g)),p=r(e.height),p!==!1&&(t.height=p+(tt?0:d+nt)),t.innerWidth=t.width-(k+g),t.innerHeight=t.height-(d+nt),t.outerWidth=t.width+rt,t.outerHeight=t.height+ut,t}}function a(t,i){if(n.getComputedStyle||i.indexOf("%")===-1)return i;var r=t.style,e=r.left,u=t.runtimeStyle,f=u&&u.left;return f&&(u.left=t.currentStyle.left),r.left=i,i=r.pixelLeft,r.left=e,f&&(u.left=f),i}var s=!1,f,u,h;return l}var e=typeof console=="undefined"?f:function(n){console.error(n)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];typeof define=="function"&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],u):typeof exports=="object"?module.exports=u(require("desandro-get-style-property")):n.getSize=u(n.getStyleProperty)}(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)},n.attachEvent("on"+t,n[t+i])}),i=function(){},t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=undefined}}),r={bind:u,unbind:i},typeof define=="function"&&define.amd?define("eventie/eventie",r):typeof exports=="object"?module.exports=r:n.eventie=r}(window),function(){function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var t=this._getEvents(),r,i;if(n instanceof RegExp){r={};for(i in t)t.hasOwnProperty(i)&&n.test(i)&&(r[i]=t[i])}else r=t[n]||(t[n]=[]);return r},n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i},n.getListenersAsObject=function(n){var t=this.getListeners(n),i;return t instanceof Array&&(i={},i[n]=t),i||t},n.addListener=function(n,t){var i=this.getListenersAsObject(n),f=typeof t=="object",r;for(r in i)i.hasOwnProperty(r)&&u(i[r],t)===-1&&i[r].push(f?t:{listener:t,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(n){return this.getListeners(n),this},n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this},n.removeListener=function(n,t){var i=this.getListenersAsObject(n),f,r;for(r in i)i.hasOwnProperty(r)&&(f=u(i[r],t),f!==-1&&i[r].splice(f,1));return this},n.off=i("removeListener"),n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)},n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)},n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if(typeof t!="object"||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&(typeof u=="function"?f.call(this,r,u):e.call(this,r,u));return this},n.removeEvent=function(n){var r=typeof n,t=this._getEvents(),i;if(r==="string")delete t[n];else if(n instanceof RegExp)for(i in t)t.hasOwnProperty(i)&&n.test(i)&&delete t[i];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(n,t){var r=this.getListenersAsObject(n),i,f,u,e;for(u in r)if(r.hasOwnProperty(u))for(f=r[u].length;f--;)i=r[u][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)},n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this},n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return r.EventEmitter=f,t},typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):typeof module=="object"&&module.exports?module.exports=t:r.EventEmitter=t}.call(this),function(n){function t(n){typeof n=="function"&&(t.isReady?n():r.push(n))}function u(n){var r=n.type==="readystatechange"&&i.readyState!=="complete";t.isReady||r||e()}function e(){var n,i,u;for(t.isReady=!0,n=0,i=r.length;n<i;n++)u=r[n],u()}function f(r){return i.readyState==="complete"?e():(r.bind(i,"DOMContentLoaded",u),r.bind(i,"readystatechange",u),r.bind(n,"load",u)),t}var i=n.document,r=[];t.isReady=!1,typeof define=="function"&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],f):typeof exports=="object"?module.exports=f(require("eventie")):n.docReady=f(n.eventie)}(window),function(n){function i(n,t){return n[r](t)}function u(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function o(n,t){var r,i,f;for(u(n),r=n.parentNode.querySelectorAll(t),i=0,f=r.length;i<f;i++)if(r[i]===n)return!0;return!1}function s(n,t){return u(n),i(n,t)}var r=function(){var i,t,u,f,r;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(i=["webkit","moz","ms","o"],t=0,u=i.length;t<u;t++)if(f=i[t],r=f+"MatchesSelector",n[r])return r}(),t,f,e;r?(f=document.createElement("div"),e=i(f,"div"),t=e?i:s):t=o,typeof define=="function"&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):typeof exports=="object"?module.exports=t:window.matchesSelector=t}(Element.prototype),function(n,t){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,r){return t(n,i,r)}):typeof exports=="object"?module.exports=t(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.docReady,n.matchesSelector)}(window,function(n,t,i){var r={},f,u;return r.extend=function(n,t){for(var i in t)n[i]=t[i];return n},r.modulo=function(n,t){return(n%t+t)%t},f=Object.prototype.toString,r.isArray=function(n){return f.call(n)=="[object Array]"},r.makeArray=function(n){var t=[],i,u;if(r.isArray(n))t=n;else if(n&&typeof n.length=="number")for(i=0,u=n.length;i<u;i++)t.push(n[i]);else t.push(n);return t},r.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},r.removeFrom=function(n,t){var i=r.indexOf(n,t);i!=-1&&n.splice(i,1)},r.isElement=typeof HTMLElement=="function"||typeof HTMLElement=="object"?function(n){return n instanceof HTMLElement}:function(n){return n&&typeof n=="object"&&n.nodeType==1&&typeof n.nodeName=="string"},r.setText=function(){function t(t,i){n=n||(document.documentElement.textContent!==undefined?"textContent":"innerText"),t[n]=i}var n;return t}(),r.getParent=function(n,t){while(n!=document.body)if(n=n.parentNode,i(n,t))return n},r.getQueryElement=function(n){return typeof n=="string"?document.querySelector(n):n},r.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.filterFindElements=function(n,t){var f,e,h,u,s,o,c;for(n=r.makeArray(n),f=[],e=0,h=n.length;e<h;e++)if(u=n[e],r.isElement(u))if(t)for(i(u,t)&&f.push(u),s=u.querySelectorAll(t),o=0,c=s.length;o<c;o++)f.push(s[o]);else f.push(u);return f},r.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t),f=arguments,n=this,this[r]=setTimeout(function(){u.apply(n,f),delete n[r]},i||100)}},r.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},u=n.console,r.htmlInit=function(i,f){t(function(){for(var h=r.toDashed(f),c=document.querySelectorAll(".js-"+h),l="data-"+h+"-options",t,o,v,y,s,e=0,a=c.length;e<a;e++){t=c[e],o=t.getAttribute(l);try{v=o&&JSON.parse(o)}catch(p){u&&u.error("Error parsing "+l+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}y=new i(t,v),s=n.jQuery,s&&s.data(t,f,y)}})},r}),function(n,t){typeof define=="function"&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,r,u,f){return t(n,i,r,u,f)}):typeof exports=="object"?module.exports=t(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=t(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(n,t,i,r,u){function p(n){for(var t in n)return!1;return t=null,!0}function f(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}function d(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}var o=n.getComputedStyle,y=o?function(n){return o(n,null)}:function(n){return n.currentStyle},e=r("transition"),w=r("transform"),b=e&&w,k=!!r("perspective"),s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[e],h=["transform","transition","transitionDuration","transitionProperty"],c=function(){for(var u={},t,i,n=0,f=h.length;n<f;n++)t=h[n],i=r(t),i&&i!==t&&(u[t]=i);return u}(),l,a,v;return u.extend(f.prototype,t.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},f.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=c[t]||t,r[i]=n[t]},f.prototype.getPosition=function(){var r=y(this.element),u=this.layout.options,f=u.isOriginLeft,e=u.isOriginTop,o=r[f?"left":"right"],s=r[e?"top":"bottom"],n=parseInt(o,10),t=parseInt(s,10),i=this.layout.size;n=o.indexOf("%")!=-1?n/100*i.width:n,t=s.indexOf("%")!=-1?t/100*i.height:t,n=isNaN(n)?0:n,t=isNaN(t)?0:t,n-=f?i.paddingLeft:i.paddingRight,t-=e?i.paddingTop:i.paddingBottom,this.position.x=n,this.position.y=t},f.prototype.layoutPosition=function(){var i=this.layout.size,n=this.layout.options,t={},r=n.isOriginLeft?"paddingLeft":"paddingRight",u=n.isOriginLeft?"left":"right",f=n.isOriginLeft?"right":"left",e=this.position.x+i[r];t[u]=this.getXValue(e),t[f]="";var o=n.isOriginTop?"paddingTop":"paddingBottom",s=n.isOriginTop?"top":"bottom",h=n.isOriginTop?"bottom":"top",c=this.position.y+i[o];t[s]=this.getYValue(c),t[h]="",this.css(t),this.emitEvent("layout",[this])},f.prototype.getXValue=function(n){var t=this.layout.options;return t.percentPosition&&!t.isHorizontal?n/this.layout.size.width*100+"%":n+"px"},f.prototype.getYValue=function(n){var t=this.layout.options;return t.percentPosition&&t.isHorizontal?n/this.layout.size.height*100+"%":n+"px"},f.prototype._transitionTo=function(n,t){this.getPosition();var r=this.position.x,u=this.position.y,f=parseInt(n,10),e=parseInt(t,10),o=f===this.position.x&&e===this.position.y;if(this.setPosition(n,t),o&&!this.isTransitioning){this.layoutPosition();return}var s=n-r,h=t-u,i={};i.transform=this.getTranslate(s,h),this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.prototype.getTranslate=function(n,t){var i=this.layout.options;return(n=i.isOriginLeft?n:-n,t=i.isOriginTop?t:-t,n=this.getXValue(n),t=this.getYValue(t),k)?"translate3d("+n+", "+t+", 0)":"translate("+n+", "+t+")"},f.prototype.goTo=function(n,t){this.setPosition(n,t),this.layoutPosition()},f.prototype.moveTo=b?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10),this.position.y=parseInt(t,10)},f.prototype._nonTransition=function(n){this.css(n.to),n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},f.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(n);return}i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null),this.enableTransition(n.to),this.css(n.to),this.isTransitioning=!0},l="opacity,"+d(c.transform||"transform"),f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:l,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(s,this,!1))},f.prototype.transition=f.prototype[e?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},f.prototype.onotransitionend=function(n){this.ontransitionend(n)},a={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},f.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=a[n.propertyName]||n.propertyName,delete t.ingProperties[i],p(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},f.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},f.prototype._removeStyles=function(n){var t={},i;for(i in n)t[i]="";this.css(t)},v={transitionProperty:"",transitionDuration:""},f.prototype.removeTransitionStyles=function(){this.css(v)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},f.prototype.remove=function(){if(!e||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}var n=this;this.once("transitionEnd",function(){n.removeElem()});this.hide()},f.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd,this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},f.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd,this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(n,t){typeof define=="function"&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f,e){return t(n,i,r,u,f,e)}):typeof exports=="object"?module.exports=t(n,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.eventie,n.EventEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(n,t,i,r,u,f){function e(n,t){var i=u.getQueryElement(n),r;if(!i){h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n));return}this.element=i,o&&(this.$element=o(this.element)),this.options=u.extend({},this.constructor.defaults),this.option(t),r=++l,this.element.outlayerGUID=r,s[r]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=n.console,o=n.jQuery,c=function(){},l=0,s={};return e.namespace="outlayer",e.Item=f,e.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},u.extend(e.prototype,i.prototype),e.prototype.option=function(n){u.extend(this.options,n)},e.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),u.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},e.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},e.prototype._itemize=function(n){for(var i=this._filterFindItemElements(n),o=this.constructor.Item,r=[],f,e,t=0,u=i.length;t<u;t++)f=i[t],e=new o(f,this),r.push(e);return r},e.prototype._filterFindItemElements=function(n){return u.filterFindElements(n,this.options.itemSelector)},e.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;n<i;n++)t.push(this.items[n].element);return t},e.prototype.layout=function(){this._resetLayout(),this._manageStamps();var n=this.options.isLayoutInstant!==undefined?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n),this._isLayoutInited=!0},e.prototype._init=e.prototype.layout,e.prototype._resetLayout=function(){this.getSize()},e.prototype.getSize=function(){this.size=r(this.element)},e.prototype._getMeasurement=function(n,t){var i=this.options[n],f;i?(typeof i=="string"?f=this.element.querySelector(i):u.isElement(i)&&(f=i),this[n]=f?r(f)[t]:i):this[n]=0},e.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n),this._layoutItems(n,t),this._postLayout()},e.prototype._getItemsForLayout=function(n){for(var r=[],i,t=0,u=n.length;t<u;t++)i=n[t],i.isIgnored||r.push(i);return r},e.prototype._layoutItems=function(n,t){var f,i,e,r,u;if(this._emitCompleteOnItems("layout",n),n&&n.length){for(f=[],i=0,e=n.length;i<e;i++)r=n[i],u=this._getItemLayoutPosition(r),u.item=r,u.isInstant=t||r.isLayoutInstant,f.push(u);this._processLayoutQueue(f)}},e.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},e.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;i<r;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},e.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},e.prototype._postLayout=function(){this.resizeContainer()},e.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},e.prototype._getContainerSize=c,e.prototype._setContainerMeasure=function(n,t){if(n!==undefined){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),n=Math.max(n,0),this.element.style[t?"width":"height"]=n+"px"}},e.prototype._emitCompleteOnItems=function(n,t){function u(){s.dispatchEvent(n+"Complete",null,[t])}function h(){r++,r===f&&u()}var s=this,f=t.length,r,i,e,o;if(!t||!f){u();return}for(r=0,i=0,e=t.length;i<e;i++){o=t[i];o.once(n,h)}},e.prototype.dispatchEvent=function(n,t,i){var u=t?[t].concat(i):i,r;this.emitEvent(n,u),o&&(this.$element=this.$element||o(this.element),t?(r=o.Event(t),r.type=n,this.$element.trigger(r,i)):this.$element.trigger(n,i))},e.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},e.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},e.prototype.stamp=function(n){var t,i,r;if(n=this._find(n),n)for(this.stamps=this.stamps.concat(n),t=0,i=n.length;t<i;t++)r=n[t],this.ignore(r)},e.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n),n)for(t=0,r=n.length;t<r;t++)i=n[t],u.removeFrom(this.stamps,i),this.unignore(i)},e.prototype._find=function(n){if(n)return typeof n=="string"&&(n=this.element.querySelectorAll(n)),n=u.makeArray(n)},e.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;n<t;n++)i=this.stamps[n],this._manageStamp(i)},e.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},e.prototype._manageStamp=c,e.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,u=r(n);return{left:t.left-i.left-u.marginLeft,top:t.top-i.top-u.marginTop,right:i.right-t.right-u.marginRight,bottom:i.bottom-t.bottom-u.marginBottom}},e.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},e.prototype.bindResize=function(){this.isResizeBound||(t.bind(n,"resize",this),this.isResizeBound=!0)},e.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(n,"resize",this),this.isResizeBound=!1},e.prototype.onresize=function(){function t(){n.resize(),delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},e.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},e.prototype.needsResizeLayout=function(){var n=r(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},e.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},e.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},e.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},e.prototype.reveal=function(n){var i,t,r;for(this._emitCompleteOnItems("reveal",n),i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.reveal()},e.prototype.hide=function(n){var i,t,r;for(this._emitCompleteOnItems("hide",n),i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.hide()},e.prototype.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},e.prototype.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},e.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;t<r;t++)if(i=this.items[t],i.element===n)return i},e.prototype.getItems=function(n){var i,t,f,e,r;for(n=u.makeArray(n),i=[],t=0,f=n.length;t<f;t++)e=n[t],r=this.getItem(e),r&&i.push(r);return i},e.prototype.remove=function(n){var t=this.getItems(n),i,f,r;if(this._emitCompleteOnItems("remove",t),t&&t.length)for(i=0,f=t.length;i<f;i++)r=t[i],r.remove(),u.removeFrom(this.items,r)},e.prototype.destroy=function(){var t=this.element.style,n,i,r,u;for(t.height="",t.position="",t.width="",n=0,i=this.items.length;n<i;n++)r=this.items[n],r.destroy();this.unbindResize(),u=this.element.outlayerGUID,delete s[u],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=u.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){function i(){e.apply(this,arguments)}return Object.create?i.prototype=Object.create(e.prototype):u.extend(i.prototype,e.prototype),i.prototype.constructor=i,i.defaults=u.extend({},e.defaults),u.extend(i.defaults,t),i.prototype.settings={},i.namespace=n,i.data=e.data,i.Item=function(){f.apply(this,arguments)},i.Item.prototype=new f,u.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},e.Item=f,e}),function(n,t){typeof define=="function"&&define.amd?define("packery/js/rect",t):typeof exports=="object"?module.exports=t():(n.Packery=n.Packery||{},n.Packery.Rect=t())}(window,function(){function n(t){for(var i in n.defaults)this[i]=n.defaults[i];for(i in t)this[i]=t[i]}var t=window.Packery=function(){};return t.Rect=n,n.defaults={x:0,y:0,width:0,height:0},n.prototype.contains=function(n){var t=n.width||0,i=n.height||0;return this.x<=n.x&&this.y<=n.y&&this.x+this.width>=n.x+t&&this.y+this.height>=n.y+i},n.prototype.overlaps=function(n){var t=this.x+this.width,i=this.y+this.height,r=n.x+n.width,u=n.y+n.height;return this.x<r&&t>n.x&&this.y<u&&i>n.y},n.prototype.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var r=[],i,e=this.x+this.width,o=this.y+this.height,u=t.x+t.width,f=t.y+t.height;return this.y<t.y&&(i=new n({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),r.push(i)),e>u&&(i=new n({x:u,y:this.y,width:e-u,height:this.height}),r.push(i)),o>f&&(i=new n({x:this.x,y:f,width:this.width,height:o-f}),r.push(i)),this.x<t.x&&(i=new n({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),r.push(i)),r},n.prototype.canFit=function(n){return this.width>=n.width&&this.height>=n.height},n}),function(n,t){if(typeof define=="function"&&define.amd)define("packery/js/packer",["./rect"],t);else if(typeof exports=="object")module.exports=t(require("./rect"));else{var i=n.Packery=n.Packery||{};i.Packer=t(i.Rect)}}(window,function(n){function t(n,t,i){this.width=n||0,this.height=t||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}t.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var t=new n({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=i[this.sortDirection]||i.downwardLeftToRight},t.prototype.pack=function(n){for(var i,t=0,r=this.spaces.length;t<r;t++)if(i=this.spaces[t],i.canFit(n)){this.placeInSpace(n,i);break}},t.prototype.placeInSpace=function(n,t){n.x=t.x,n.y=t.y,this.placed(n)},t.prototype.placed=function(n){for(var t=[],r,u,i=0,f=this.spaces.length;i<f;i++)r=this.spaces[i],u=r.getMaximalFreeRects(n),u?t.push.apply(t,u):t.push(r);this.spaces=t,this.mergeSortSpaces()},t.prototype.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},t.prototype.addSpace=function(n){this.spaces.push(n),this.mergeSortSpaces()},t.mergeRects=function(n){for(var u,r,f,i,o,s,h,t=0,e=n.length;t<e;t++)if(u=n[t],u)for(r=n.slice(0),r.splice(t,1),f=0,i=0,o=r.length;i<o;i++)s=r[i],h=t>i?0:1,u.contains(s)&&(n.splice(i+h-f,1),f++);return n};var i={downwardLeftToRight:function(n,t){return n.y-t.y||n.x-t.x},rightwardTopToBottom:function(n,t){return n.x-t.x||n.y-t.y}};return t}),function(n,t){typeof define=="function"&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],t):typeof exports=="object"?module.exports=t(require("desandro-get-style-property"),require("outlayer"),require("./rect")):n.Packery.Item=t(n.getStyleProperty,n.Outlayer,n.Packery.Rect)}(window,function(n,t,i){var u=n("transform"),r=function(){t.Item.apply(this,arguments)},f;return r.prototype=new t.Item,f=r.prototype._create,r.prototype._create=function(){f.call(this),this.rect=new i,this.placeRect=new i},r.prototype.dragStart=function(){this.getPosition(),this.removeTransitionStyles(),this.isTransitioning&&u&&(this.element.style[u]="none"),this.getSize(),this.isPlacing=!0,this.needsPositioning=!1,this.positionPlaceRect(this.position.x,this.position.y),this.isTransitioning=!1,this.didDrag=!1},r.prototype.dragMove=function(n,t){this.didDrag=!0;var i=this.layout.size;n-=i.paddingLeft,t-=i.paddingTop,this.positionPlaceRect(n,t)},r.prototype.dragStop=function(){this.getPosition();var n=this.position.x!=this.placeRect.x,t=this.position.y!=this.placeRect.y;this.needsPositioning=n||t,this.didDrag=!1},r.prototype.positionPlaceRect=function(n,t,i){this.placeRect.x=this.getPlaceRectCoord(n,!0),this.placeRect.y=this.getPlaceRectCoord(t,!1,i)},r.prototype.getPlaceRectCoord=function(n,t,i){var s=t?"Width":"Height",h=this.size["outer"+s],r=this.layout[t?"columnWidth":"rowHeight"],u=this.layout.size["inner"+s],f,e,o;return t||(u=Math.max(u,this.layout.maxY),this.layout.rowHeight||(u-=this.layout.gutter)),r?(r+=this.layout.gutter,u+=t?this.layout.gutter:0,n=Math.round(n/r),e=this.layout.options.isHorizontal?t?"ceil":"floor":t?"floor":"ceil",o=Math[e](u/r),o-=Math.ceil(h/r),f=o):f=u-h,n=i?n:Math.min(n,f),n*=r||1,Math.max(0,n)},r.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},r}),function(n,t){typeof define=="function"&&define.amd?define(["classie/classie","get-size/get-size","outlayer/outlayer","packery/js/rect","packery/js/packer","packery/js/item"],t):typeof exports=="object"?module.exports=t(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):n.Packery=t(n.classie,n.getSize,n.Outlayer,n.Packery.Rect,n.Packery.Packer,n.Packery.Item)}(window,function(n,t,i,r,u,f){function o(n,t){return n.position.y-t.position.y||n.position.x-t.position.x}function s(n,t){return n.position.x-t.position.x||n.position.y-t.position.y}r.prototype.canFit=function(n){return this.width>=n.width-1&&this.height>=n.height-1};var e=i.create("packery");return e.Item=f,e.prototype._create=function(){i.prototype._create.call(this),this.packer=new u,this.stamp(this.options.stamped);var n=this;this.handleDraggabilly={dragStart:function(){n.itemDragStart(this.element)},dragMove:function(){n.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){n.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,i){i&&n.itemDragStart(t.currentTarget)},drag:function(t,i){i&&n.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t,i){i&&n.itemDragEnd(t.currentTarget)}}},e.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var n=this.packer;this.options.isHorizontal?(n.width=Number.POSITIVE_INFINITY,n.height=this.size.innerHeight+this.gutter,n.sortDirection="rightwardTopToBottom"):(n.width=this.size.innerWidth+this.gutter,n.height=Number.POSITIVE_INFINITY,n.sortDirection="downwardLeftToRight"),n.reset(),this.maxY=0,this.maxX=0},e.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},e.prototype._getItemLayoutPosition=function(n){return this._packItem(n),n.rect},e.prototype._packItem=function(n){this._setRectSize(n.element,n.rect),this.packer.pack(n.rect),this._setMaxXY(n.rect)},e.prototype._setMaxXY=function(n){this.maxX=Math.max(n.x+n.width,this.maxX),this.maxY=Math.max(n.y+n.height,this.maxY)},e.prototype._setRectSize=function(n,i){var f=t(n),r=f.outerWidth,u=f.outerHeight;(r||u)&&(r=this._applyGridGutter(r,this.columnWidth),u=this._applyGridGutter(u,this.rowHeight)),i.width=Math.min(r,this.packer.width),i.height=Math.min(u,this.packer.height)},e.prototype._applyGridGutter=function(n,t){if(!t)return n+this.gutter;t+=this.gutter;var i=n%t,r=i&&i<1?"round":"ceil";return n=Math[r](n/t)*t},e.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e.prototype._manageStamp=function(n){var u=this.getItem(n),t,i;u&&u.isPlacing?t=u.placeRect:(i=this._getElementOffset(n),t=new r({x:this.options.isOriginLeft?i.left:i.right,y:this.options.isOriginTop?i.top:i.bottom})),this._setRectSize(n,t),this.packer.placed(t),this._setMaxXY(t)},e.prototype.sortItemsByPosition=function(){var n=this.options.isHorizontal?s:o;this.items.sort(n)},e.prototype.fit=function(n,t,i){var r=this.getItem(n);r&&(this._getMeasurements(),this.stamp(r.element),r.getSize(),r.isPlacing=!0,t=t===undefined?r.rect.x:t,i=i===undefined?r.rect.y:i,r.positionPlaceRect(t,i,!0),this._bindFitEvents(r),r.moveTo(r.placeRect.x,r.placeRect.y),this.layout(),this.unstamp(r.element),this.sortItemsByPosition(),r.isPlacing=!1,r.copyPlaceRectPosition())},e.prototype._bindFitEvents=function(n){function i(){(t++,t==2)&&r.dispatchEvent("fitComplete",null,[n])}var r=this,t=0;n.on("layout",function(){return i(),!0});this.on("layoutComplete",function(){return i(),!0})},e.prototype.resize=function(){var n=t(this.element),r=this.size&&n,i=this.options.isHorizontal?"innerHeight":"innerWidth";r&&n[i]==this.size[i]||this.layout()},e.prototype.itemDragStart=function(n){this.stamp(n);var t=this.getItem(n);t&&t.dragStart()},e.prototype.itemDragMove=function(n,t,i){function f(){r.layout(),delete r.dragTimeout}var u=this.getItem(n),r;u&&u.dragMove(t,i),r=this,this.clearDragTimeout(),this.dragTimeout=setTimeout(f,40)},e.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},e.prototype.itemDragEnd=function(t){var i=this.getItem(t),u,r;if(i&&(u=i.didDrag,i.dragStop()),!i||!u&&!i.needsPositioning){this.unstamp(t);return}if(n.add(i.element,"is-positioning-post-drag"),r=this._getDragEndLayoutComplete(t,i),i.needsPositioning){i.on("layout",r);i.moveTo(i.placeRect.x,i.placeRect.y)}else i&&i.copyPlaceRectPosition();this.clearDragTimeout();this.on("layoutComplete",r);this.layout()},e.prototype._getDragEndLayoutComplete=function(t,i){var u=i&&i.needsPositioning,f=0,e=u?2:1,r=this;return function(){return(f++,f!=e)?!0:(i&&(n.remove(i.element,"is-positioning-post-drag"),i.isPlacing=!1,i.copyPlaceRectPosition()),r.unstamp(t),r.sortItemsByPosition(),u&&r.dispatchEvent("dragItemPositioned",null,[i]),!0)}},e.prototype.bindDraggabillyEvents=function(n){n.on("dragStart",this.handleDraggabilly.dragStart);n.on("dragMove",this.handleDraggabilly.dragMove);n.on("dragEnd",this.handleDraggabilly.dragEnd)},e.prototype.bindUIDraggableEvents=function(n){n.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},e.Rect=r,e.Packer=u,e}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module!="undefined"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";function r(t){return!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function i(t){return n.isFunction(t)||n.isPlainObject(t)?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:0,limit:!0},n.fn.scrollTo=function(u,f,e){typeof f=="object"&&(e=f,f=0),typeof e=="function"&&(e={onAfter:e}),u==="max"&&(u=9e9),e=n.extend({},t.defaults,e),f=f||e.duration;var o=e.queue&&e.axis.length>1;return o&&(f/=2),e.offset=i(e.offset),e.over=i(e.over),this.each(function(){function p(t){var i=n.extend({},e,{queue:!0,duration:f,complete:t&&function(){t.call(c,s,e)}});a.animate(h,i)}var y;if(u!==null){var l=r(this),c=l?this.contentWindow||window:this,a=n(c),s=u,h={},v;switch(typeof s){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(s)){s=i(s);break}s=l?n(s):n(s,c);case"object":if(s.length===0)return;(s.is||s.style)&&(v=(s=n(s)).offset())}y=n.isFunction(e.offset)&&e.offset(c,s)||e.offset,n.each(e.axis.split(""),function(n,i){var w=i==="x"?"Left":"Top",u=w.toLowerCase(),r="scroll"+w,b=a[r](),k=t.max(c,i),f;v?(h[r]=v[u]+(l?0:b-a.offset()[u]),e.margin&&(h[r]-=parseInt(s.css("margin"+w),10)||0,h[r]-=parseInt(s.css("border"+w+"Width"),10)||0),h[r]+=y[u]||0,e.over[u]&&(h[r]+=s[i==="x"?"width":"height"]()*e.over[u])):(f=s[u],h[r]=f.slice&&f.slice(-1)==="%"?parseFloat(f)/100*k:f),e.limit&&/^\d+$/.test(h[r])&&(h[r]=h[r]<=0?0:Math.min(h[r],k)),!n&&e.axis.length>1&&(b===h[r]?h={}:o&&(p(e.onAfterFirst),h={}))}),p(e.onAfter)}})},t.max=function(t,i){var u=i==="x"?"Width":"Height",f="scroll"+u;if(!r(t))return t[f]-n(t)[u.toLowerCase()]();var e="client"+u,o=t.ownerDocument||t.document,s=o.documentElement,h=o.body;return Math.max(s[f],h[f])-Math.min(s[e],h[e])},n.Tween.propHooks.scrollLeft=n.Tween.propHooks.scrollTop={get:function(t){return n(t.elem)[t.prop]()},set:function(t){var r=this.get(t),i;if(t.options.interrupt&&t._last&&t._last!==r)return n(t.elem).stop();i=Math.round(t.now),r!==i&&(n(t.elem)[t.prop](i),t._last=this.get(t))}},t}),function(n,t){function c(n){return typeof n=="string"}function o(n){var t=b.call(arguments,1);return function(){return n.apply(this,t.concat(b.call(arguments)))}}function ht(n){return n.replace(/^[^#]*#?(.*)$/,"$1")}function ct(n){return n.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function ft(o,h,l,v,y){var k,p,b,d,g;return v!==i?(b=l.match(o?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),g=b[3]||"",y===2&&c(v)?p=v.replace(o?rt:it,""):(d=r(b[2]),v=c(v)?r[o?u:f](v):v,p=y===2?v:y===1?n.extend({},v,d):n.extend({},d,v),p=s(p),o&&(p=p.replace(ut,a))),k=b[1]+(o?"#":p||!b[1]?"?":"")+p+g):k=h(l!==i?l:t[w][e]),k}function et(n,t,e){return t===i||typeof t=="boolean"?(e=t,t=s[n?u:f]()):t=c(t)?t.replace(n?rt:it,""):t,r(t,e)}function ot(t,r,u,f){return c(u)||typeof u=="object"||(f=u,u=r,r=i),this.each(function(){var e=n(this),i=r||g()[(this.nodeName||"").toLowerCase()]||"",o=i&&e.attr(i)||"";e.attr(i,s[t](o,u,f))})}var i,b=Array.prototype.slice,a=decodeURIComponent,s=n.param,h,r,v,y=n.bbq=n.bbq||{},k,d,g,nt=n.event.special,tt="hashchange",f="querystring",u="fragment",p="elemUrlAttr",w="location",e="href",l="src",it=/^.*\?|#.*$/g,rt=/^.*\#/,ut,st={};s[f]=o(ft,0,ct),s[u]=h=o(ft,1,ht),h.noEscape=function(t){t=t||"";var i=n.map(t.split(""),encodeURIComponent);ut=new RegExp(i.join("|"),"g")},h.noEscape(",/"),n.deparam=r=function(t,r){var u={},f={"true":!0,"false":!1,"null":null};return n.each(t.replace(/\+/g," ").split("&"),function(t,e){var y=e.split("="),h=a(y[0]),o,v=u,l=0,s=h.split("]["),c=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[c])?(s[c]=s[c].replace(/\]$/,""),s=s.shift().split("[").concat(s),c=s.length-1):c=0,y.length===2)if(o=a(y[1]),r&&(o=o&&!isNaN(o)?+o:o==="undefined"?i:f[o]!==i?f[o]:o),c)for(;l<=c;l++)h=s[l]===""?v.length:s[l],v=v[h]=l<c?v[h]||(s[l+1]&&isNaN(s[l+1])?{}:[]):o;else n.isArray(u[h])?u[h].push(o):u[h]=u[h]!==i?[u[h],o]:o;else h&&(u[h]=r?i:"")}),u},r[f]=o(et,0),r[u]=v=o(et,1),n[p]||(n[p]=function(t){return n.extend(st,t)})({a:e,base:e,iframe:l,img:l,input:l,form:"action",link:e,script:l}),g=n[p],n.fn[f]=o(ot,f),n.fn[u]=o(ot,u),y.pushState=k=function(n,r){c(n)&&/^#/.test(n)&&r===i&&(r=2);var u=n!==i,f=h(t[w][e],u?n:{},u?r:2);t[w][e]=f+(/#/.test(f)?"":"#")},y.getState=d=function(n,t){return n===i||typeof n=="boolean"?v(n):v(t)[n]},y.removeState=function(t){var r={};t!==i&&(r=d(),n.each(n.isArray(t)?t:arguments,function(n,t){delete r[t]})),k(r,2)},nt[tt]=n.extend(nt[tt],{add:function(t){function e(n){var t=n[u]=h();n.getState=function(n,u){return n===i||typeof n=="boolean"?r(t,n):r(t,u)[n]},f.apply(this,arguments)}var f;if(n.isFunction(t))return f=t,e;f=t.handler,t.handler=e}})}(jQuery,this),function(n,t,i){function e(n){return n=n||t[u][f],n.replace(/^[^#]*#?(.*)$/,"$1")}var o,s=n.event.special,u="location",r="hashchange",f="href",a=n.browser,h=document.documentMode,c=a.msie&&(h===i||h<8),l="on"+r in t&&!c;n[r+"Delay"]=100,s[r]=n.extend(s[r],{setup:function(){if(l)return!1;n(o.start)},teardown:function(){if(l)return!1;n(o.stop)}}),o=function(){function a(){o=l=function(n){return n},c&&(s=n('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow,l=function(){return e(s.document[u][f])},o=function(n,t){if(n!==t){var i=s.document;i.open().close(),i[u].hash="#"+n}},o(e()))}var h={},i,s,o,l;return h.start=function(){if(!i){var s=e();o||a(),function h(){var a=e(),c=l(s);a!==s?(o(s=a,c),n(t).trigger(r)):c!==s&&(t[u][f]=t[u][f].replace(/#.*/,"")+"#"+c),i=setTimeout(h,n[r+"Delay"])}()}},h.stop=function(){s||(i&&clearTimeout(i),i=0)},h}()}(jQuery,this),function(){function n(n){var i=this.length,r=Math.floor(i/2);return(n||(n=function(n,t){return n<t?-1:n==t?0:1}),i<2)?this:t(this.slice(0,r).mergeSort(n),this.slice(r,i).mergeSort(n),n)}function t(n,t,i){for(var r=[];n.length>0||t.length>0;)n.length>0&&t.length>0?i(n[0],t[0])<=0?(r.push(n[0]),n=n.slice(1)):(r.push(t[0]),t=t.slice(1)):n.length>0?(r.push(n[0]),n=n.slice(1)):t.length>0&&(r.push(t[0]),t=t.slice(1));return r}Array.prototype.mergeSort=jQuery.fn.mergeSort=n}(),function(){var n=function(n){function w(){}function y(){new Date-v<c?setTimeout(y,c):t.resizeGameGrid()}var t=this,u,a,e,v,h,c,l,r,i,g,p;t.isMobile=SCPortal.Globals.mobile,t.state={},t.allgames=n.gamelist,t.providerlist=n.providerlist,t.favoriteids=n.favorites,t.categorieslist=n.categorieslist,t.themeslist=n.themeslist,t.favorites=[],t.recentlyplayed=[],t.pagegamelist=[],t.translations=n.translation,t.cashText=n.translation.Cash,t.demoText=n.translation.Demo,t.jackpotText=n.translation.Jackpot,t.gamesToAdd=30,t.ismobile=n.ismobile,t.cachebuster=n.cachebuster,t.cdnBaseUrl=n.cdnBaseUrl,$("#games").css("padding-bottom","50px"),u=document.createElement("div"),u.className="scrollbar-measure",document.body.appendChild(u),a=u.offsetWidth-u.clientWidth,document.body.removeChild(u),t.scrollbarWidth=a,$(window).scroll(w);var d=$("#gamefilters"),b=$(".page-header"),f=b.height(),o=55,k=f-o,s=$("#gamecontainer");t.gameContainerScroll=$(window),t.gameFilterScroll=$("#gamefilters"),e=$(window).height();$(window).on("scroll",function(){o!=0&&($(this).scrollTop()>0&&$(window).width()>993?($(".page-prefooter,.page-footer").css({"padding-left":330}),f=o,$("#gamefilters").css({height:e-f}),$("#masterpages,#gamefilters").addClass("has-fixed-menu")):($(".page-prefooter,.page-footer").css({"padding-left":0}),f=o+k,$("#masterpages,#gamefilters").removeClass("has-fixed-menu")))});$("#triggerfilters").on("click",function(){$("#gamefilters").addClass("open"),$("html,body").addClass("block-scroll"),t.resizeGameGrid()});$("[data-trigger=closefilters]").on("click",function(){$("#gamefilters").removeClass("open"),$("html,body").removeClass("block-scroll"),t.resizeGameGrid()});$("[data-trigger=clearfilters]").on("click",function(){t.resetfilters()});$("[data-trigger=clearfiltersandclose]").on("click",function(){t.resetfilters(),$("#gamefilters").removeClass("open"),$("html,body").removeClass("block-scroll"),t.resizeGameGrid()});h=!1,c=200,t.resizeGameGrid=function(){var r,c,u,a,v;e=$(window).height(),h=!1,r=$(window).width(),u=$("#gamefilters"),s.css({padding:"15px 0 15px 15px"}),$("#games").css({"min-height":e-f}),r<993?(u.hasClass("open")?u.css({height:e-50}):u.css({height:0}),$("#masterpages li:visible:last").css({"border-right":"none"}),s.css({width:r,"padding-top":0}),u.css({width:r}),c=r-30-t.scrollbarWidth,$(".page-prefooter,.page-footer").css({"padding-left":0})):($(".page-prefooter,.page-footer").css({"padding-left":0}),u.css({height:e-f}),u.css({width:330}),s.css({width:r-330,"padding-right":"0","padding-top":"50px"}),c=r-380-t.scrollbarWidth);var l=15,y=35,i=240,o=15,p=s.height()-l,n=parseInt((c+l)/(i+l));n<2&&(n=2),o=parseInt((c-n*i)/(n-1)),o>y&&(n+=1,o=l,i=parseInt((c-o*(n-1))/n)),o<15&&(o=l,i=parseInt((c-o*(n-1))/n)),a=i*150/240,v=parseInt(p/(a+l)),t.gamesToAdd=v*n+n,$("#games .sc-game-card-wrap").css({width:i,height:a+60}),$("#games .sc-game-card-wrap").find(".sc-thumb-overlay,.sc-game-thumb").css({width:i,height:a}),$("#games .sc-game-card-wrap").find(".sc-game-thumb-link i.fa-play-circle").css({top:(a-10)/2,left:i/2})},t.resizeCallback=function(){v=new Date,h===!1&&(h=!0,setTimeout(y,c))},t.recentlyPlayedPkeys=n.recentlyPlayed.Games,t.recentlyPlayedPkeys==undefined&&(t.recentlyPlayedPkeys=[]),$(window).resize(function(){t.resizeCallback()});$(window).on("orientationchange",function(){t.resizeCallback()});for(t.gridContainer=$("#games"),t.mostPopularGames=n.mostPopularGames,t.popular=[],t.categories=[],t.themes=[],t.providers=[],t.featured=[],t.jackpots=[],t.livegames=[],t.newgames=[],t.jackpotsValues=n.jackpots,t.scrollfunctions=[],t.allgames.forEach(function(n){n.Featured&&t.featured.push(n),t.isFavorite(n.Pkey)&&t.favorites.push(n),n.HasJackpot&&t.jackpots.push(n),t.isRecentlyPlayed(n.Pkey)&&t.recentlyplayed.push(n),n.IsLive&&t.livegames.push(n)}),t.newgames=n.newgames,l=[],r=t.recentlyplayed.length-1;r>-1;r--)for(i=0;i<t.recentlyplayed.length;i++)t.recentlyplayed[i].Pkey==t.recentlyPlayedPkeys[r]&&l.push(t.recentlyplayed[i]);for(r=0;r<t.mostPopularGames.length-1;r++)for(i=0;i<t.allgames.length;i++)if(t.mostPopularGames[r]==t.allgames[i].Pkey){t.popular.push(t.allgames[i]);break}t.recentlyplayed=l,t.jackpots=t.jackpots.mergeSort(function(n,i){var u=t.getJackpotValues(n),r;return u=u==undefined?0:u.Amount,r=t.getJackpotValues(i),r=r==undefined?0:r.Amount,u<r?1:u==r?0:-1}),t.gamelist=t.featured,t.masterpages=["featured","favorites","recently-played","all","jackpots","live","new","popular"],t.masterpages.forEach(function(n){var i=$("#masterpages li[data-page="+n+"],#masterpagesmobilefilters li[data-page="+n+"]");switch(n){case"favorites":i.on("click",function(){t.showMasterPage("favorites")});break;case"featured":i.on("click",function(){t.showMasterPage("featured")});break;case"new":i.on("click",function(){t.showMasterPage("new")});break;case"popular":i.on("click",function(){t.showMasterPage("popular")});break;case"recently-played":if(t.recentlyplayed.length==0)i.hide();else i.on("click",function(){t.showMasterPage("recently-played")});break;case"all":i.on("click",function(){t.showMasterPage("all")});i.find("span").text(i.text()+" ("+t.allgames.length+")");break;case"jackpots":if(t.jackpots.length==0)i.hide();else i.on("click",function(){t.showMasterPage("jackpots")});break;case"live":if(t.livegames.length==0)i.hide();else i.on("click",function(){t.showMasterPage("live")})}}),t.providerlist.forEach(function(n){$("[data-provider="+n.LobbyName+"]").length==0&&$("#providerlist").append("<li data-provider="+n.LobbyName+" onclick=\"gameGrid.toggleProvider('"+n.LobbyName+'\', this);"><div class="md-checkbox"> <input type="checkbox" id="providers-'+n.LobbyName+'" class="md-check"><label for="providers-'+n.LobbyName+'"><span><\/span><span class="check"><\/span><span class="box"><\/span>'+n.LobbyName+" <\/label><\/div><\/li>")}),t.categorieslist.forEach(function(n){$("[data-category='"+n+"']").length==0&&$("#collapseCategories").append('<li data-category="'+n+'" onclick="gameGrid.toggleCategory(\''+n+'\', this);"><div class="md-checkbox"> <input type="checkbox" id="categories-'+n+'" class="md-check"><label for="categories-'+n+'"><span><\/span><span class="check"><\/span><span class="box"><\/span>'+(t.translations[n]==undefined?n:t.translations[n])+" <\/label><\/div><\/li>")}),t.themeslist!=undefined&&t.themeslist.forEach(function(n){$("[data-theme='"+n+"']").length==0&&$("#themelist").append('<li data-theme="'+n+'" onclick="gameGrid.toggleTheme(\''+n+'\', this);"><div class="md-checkbox"> <input type="checkbox" id="categories-'+n+'" class="md-check"><label for="categories-'+n+'"><span><\/span><span class="check"><\/span><span class="box"><\/span>'+(t.translations[n]==undefined?n:t.translations[n])+" <\/label><\/div><\/li>")}),t.filterButtons=$(".gamefilters [data-category], .gamefilters [data-provider], .gamefilters [data-theme]"),t.resizeGameGrid(),t.parseState(),p=function(){var n=0;return function(t,i){clearTimeout(n),n=setTimeout(t,i)}}();$("#filterinput,#filterinputmobile").on("keyup",function(){var n=$(this).val();n===""?$("#searchclear,#searchclearmobile").css("display","none"):$("#searchclear,#searchclearmobile").css("display","inline-block"),p(function(){t.search()},500)})};n.prototype={parseState:function(){var n=this,r=$.bbq.getState(),i,u=document.referrer.toLowerCase().indexOf("games")>-1?JSON.parse(getCookie("lobbyhash")):null,t;if(r.masterPage==undefined&&(u==null||u.masterPage==undefined)?n.isMobile?(n.state.masterPage="all",n.setMasterPage("all")):(n.state.masterPage="featured",n.setMasterPage("featured")):(i=r.masterPage!=undefined?r:u,n.setMasterPage(i.masterPage),n.state=i),n.state.categories!=undefined)for(n.categories=n.state.categories.split(","),t=0;t<n.categories.length;t++)n.categories[t]==""&&n.categories.splice(t,1);if(n.state.themes!=undefined)for(n.themes=n.state.themes.split(","),t=0;t<n.themes.length;t++)n.themes[t]==""&&n.themes.splice(t,1);if(n.state.providers!=undefined)for(n.providers=n.state.providers.split(","),t=0;t<n.providers.length;t++)n.providers[t]==""&&n.providers.splice(t,1);n.filter(),n.buildGrid(),n.filterGrid()},setMasterPage:function(n){var t=this,i=$("#masterpages li[data-page="+n+"],#masterpagesmobilefilters li[data-page="+n+"]"),r=$("#masterpages li[data-page],#masterpagesmobilefilters li[data-page]");i.hasClass("active")?(r.removeClass("active"),i.removeClass("active"),n="all"):(r.removeClass("active"),i.addClass("active")),t.state.masterPage=n;switch(n){case"favorites":t.filteredgamelist=t.favorites,t.gamelist=t.favorites;break;case"featured":t.filteredgamelist=t.featured,t.gamelist=t.featured;break;case"recently-played":t.filteredgamelist=t.recentlyplayed,t.gamelist=t.recentlyplayed;break;case"all":t.categories=[],t.providers=[],t.themes=[],t.state.categories="",t.state.providers="",t.state.themes="",t.filteredgamelist=t.allgames,t.gamelist=t.allgames;break;case"new":t.filteredgamelist=t.newgames,t.gamelist=t.newgames;break;case"popular":t.filteredgamelist=t.popular,t.gamelist=t.popular;break;case"jackpots":t.filteredgamelist=t.jackpots,t.gamelist=t.jackpots;break;case"live":t.filteredgamelist=t.livegames,t.gamelist=t.livegames}},showMasterPage:function(n){var t=this;t.setMasterPage(n),t.filter(),t.filterGrid()},resetscroll:function(){var n=this;n.scrollfunctions.forEach(function(t){n.gameContainerScroll.off("scroll",t)}),n.scrollfunctions=[],n.gameContainerScroll.scrollTo(0,0)},resetfilters:function(){var n=this;n.categories=[],n.providers=[],n.themes=[],n.state.categories="",n.state.providers="",n.state.themes="",n.showMasterPage("all")},getJackpotValues:function(n){for(var t=this,u="",i,r=0;r<t.providerlist.length;r++)n.ProviderFk==t.providerlist[r].Pkey&&(u=t.providerlist[r].Name.toLowerCase());for(i=0;i<t.jackpotsValues.length;i++)if(t.jackpotsValues[i].Provider.toLowerCase()==u&&t.jackpotsValues[i].GameId.toLowerCase()==n.GameId.toLowerCase())return t.jackpotsValues[i]},getProviderName:function(n){var i="",t=this;for(l=0;l<t.providerlist.length;l++)n==t.providerlist[l].Pkey&&(i=t.providerlist[l].Name);return i},createThumbnail:function(n){var t=this,r=t.getProviderName(n.ProviderFk),i={},u;return n.HasJackpot&&(i=t.getJackpotValues(n)),u='<div id="'+r.toLowerCase()+n.UrlName.toLowerCase()+'" class="text-center sc-game-card-wrap hidden">                            <div class="white-bg shadow-card sc-game-thumb-link">                  <div class="col-xs-12">                    <div class="row">'+(n.Exclusive?'<span class="text-uppercase sc-ribbon-label">'+t.translations.Exclusive.toUpperCase()+"<\/span>":n.IsNew?'<span class="text-uppercase sc-ribbon-label">'+t.translations.New.toUpperCase()+"<\/span>":n.IsLive?'<span class="text-uppercase sc-ribbon-label sc-ribbon-bg-live">'+t.translations.Live.toUpperCase()+"<\/span>":n.HasJackpot?'<span class="text-uppercase sc-ribbon-label">'+t.jackpotText+"<\/span>":"")+'<div class="sc-game-thumb" style="background: url(\''+t.cdnBaseUrl+"/portal/games/thumbnails/"+r.toLowerCase()+"/small/"+n.UrlName.toLowerCase()+".png?_v="+t.cachebuster+'\') center; -ms-background-size: cover;background-size:cover;"><\/div>                 <a href="'+n.Url+'" class="sc-thumb-overlay">                      <i class="fa fa-play-circle" aria-hidden="true"><\/i>                 <\/a>                <i title="Add to favourites" class="fa shadow-card add-to-fav-btn '+(t.isFavorite(n.Pkey)?"fa-heart":"fa-heart-o")+"\" onclick=\"if($(this).hasClass('fa-heart-o') ){$(this).addClass('fa-heart');$(this).removeClass('fa-heart-o'); toggleFavorite("+n.Pkey+",true);gameGrid.addFavorite("+n.Pkey+");}else{$(this).addClass('fa-heart-o');$(this).removeClass('fa-heart');; toggleFavorite("+n.Pkey+",false);gameGrid.removeFavorite("+n.Pkey+');}" aria-hidden="true"><\/i>                <\/div>'+(i!=undefined&&i.Amount!=undefined?'<div id="jackpotcounter-'+n.Pkey+'" class="jackpotSoonCounter"><\/div><script type="text/javascript">                      jQuery(document).ready(function() {                          jQuery("#jackpotcounter-'+n.Pkey+"\").smartNumberCounter({                              skin: 'Inline',                              display: {                                  style: 'black'                              },                              model: {                                  digits: "+(parseInt(i.Amount).toString().length+2)+",                                  decimals: 2,                                  method: 'up',                    separatorDecimal: 'comma',            separatorThousand: 'period',                                  value: "+i.Amount+",                                  charBefore: '€',                                  update: 'step',                                  stepValue: "+i.AverageIncreasePerSecond.toString().replace(/^,+/,".")+"                              }                          });                      });                <\/script>":"")+'<p class="text-left sc-thumb-title-text">'+n.Name+'<\/p>                    <div title="'+r+'" class="sc-provider-icon icon-'+r.toLowerCase()+'-small"><\/div><\/div>              <\/div>'+(n.HasDemo?'<a href="'+n.DemoUrl+'" class="sc-play-demo-txt">'+t.demoText+"<\/a>":"")+"<\/div>"},addFavorite:function(n){for(var t=this,r,i=0;i<t.gamelist.length;i++)n==t.gamelist[i].Pkey&&(t.favoriteids.push({IntegratedGameId:n}),r=t.gamelist[i]);r!=undefined&&t.favorites.push(r)},removeFavorite:function(n){for(var i=this,t=0;t<i.favorites.length;t++)n==i.favorites[t].Pkey&&i.favorites.splice(t,1);for(t=0;t<i.favoriteids.length;t++)n==i.favoriteids[t].IntegratedGameId&&i.favoriteids.splice(t,1)},buildGrid:function(){for(var n=this,i="",r,t=0;t<n.allgames.length;t++)i+=n.createThumbnail(n.allgames[t]);r=$(i),n.gridContainer.append(r),n.resizeGameGrid(),App.gamesHoverEffects(),n.highlightButtons(),$.bbq.pushState(n.state),n.createLabels(),setCookie("lobbyhash",JSON.stringify(n.state)),$("#gamefilters").children().first().css({marginRight:"-"+n.scrollbarWidth+"px"})},filterGrid:function(){var n=this,i,t,r;for(n.resetscroll(),i=n.filteredgamelist.length>n.gamesToAdd?n.gamesToAdd:n.filteredgamelist.length,$("#games .sc-game-card-wrap").addClass("hidden"),t=0;t<i;t++)$("#"+n.getProviderName(n.filteredgamelist[t].ProviderFk).toLowerCase()+n.filteredgamelist[t].UrlName.toLowerCase()).removeClass("hidden");if(i!=n.filteredgamelist.length){r=function(){$(this).scrollTop()>=$("#games").height()-$(this).height()&&(n.addToGrid(i),n.gameContainerScroll.off("scroll",r))};$(window).on("scroll",r);n.scrollfunctions.push(r)}n.highlightButtons(),$.bbq.pushState(n.state),n.createLabels(),setCookie("lobbyhash",JSON.stringify(n.state)),$("#gamefilters").children().first().css({marginRight:"-"+n.scrollbarWidth+"px"})},addToGrid:function(n){for(var t=this,u=t.filteredgamelist.length>n+t.gamesToAdd?n+t.gamesToAdd:t.filteredgamelist.length,r,i=n;i<u;i++)$("#"+t.getProviderName(t.filteredgamelist[i].ProviderFk).toLowerCase()+t.filteredgamelist[i].UrlName.toLowerCase()).removeClass("hidden");if(u!=t.filteredgamelist.length){r=function(){$(this).scrollTop()>=$("#games").height()-$(this).height()&&(t.addToGrid(u),t.gameContainerScroll.off("scroll",r))};$(window).on("scroll",r);t.scrollfunctions.push(r)}t.highlightButtons()},isFavorite:function(n){for(var i=this,t=0;t<i.favoriteids.length;t++)if(i.favoriteids[t].IntegratedGameId==n)return!0;return!1},isRecentlyPlayed:function(n){for(var i=this,t=0;t<i.recentlyPlayedPkeys.length;t++)if(i.recentlyPlayedPkeys[t]==n)return!0;return!1},setCategories:function(n){var t=this;t.setMasterPage("all"),t.categories=n,t.state.categories=n,t.filter(),t.filterGrid()},setThemes:function(n){var t=this;t.setMasterPage("all"),t.themes=n,t.state.themes=n,t.filter(),t.filterGrid()},toggleCategory:function(n,t){var i=this,f=!1,e=$(t).children(".md-checkbox").children("input"),r=e.prop("checked"),u;e.prop("checked",!r),r=!r,i.categories==""&&(i.categories=[]),u=$.inArray(n,i.categories),u>-1&&!r?(i.categories.splice(u,1),f=!0):u==-1&&r&&(i.categories.push(n),f=!0),f&&(i.state.categories=i.categories.toString(),i.filter(),i.filterGrid())},toggleTheme:function(n,t){var i=this,f=!1,e=$(t).children(".md-checkbox").children("input"),r=e.prop("checked"),u;e.prop("checked",!r),r=!r,i.themes==""&&(i.themes=[]),u=$.inArray(n,i.themes),u>-1&&!r?(i.themes.splice(u,1),f=!0):u==-1&&r&&(i.themes.push(n),f=!0),f&&(i.state.themes=i.themes.toString(),i.filter(),i.filterGrid())},toggleProvider:function(n,t){var i=this,f=!1,e=$(t).children(".md-checkbox").children("input"),r=e.prop("checked"),u;e.prop("checked",!r),r=!r,i.providers==""&&(i.providers=[]),u=$.inArray(n,i.providers),u>-1&&!r?(i.providers.splice(u,1),f=!0):u==-1&&r&&(i.providers.push(n),f=!0),f&&(i.state.providers=i.providers.toString(),i.filter(),i.filterGrid())},removeProvider:function(n){var t=this,i;t.providers==""&&(t.providers=[]),i=$.inArray(n,t.providers),i>-1&&t.providers.splice(i,1),t.state.providers=t.providers.toString(),t.filter(),t.filterGrid()},removeTheme:function(n){var t=this,i;t.themes==""&&(t.themes=[]),i=$.inArray(n,t.themes),i>-1&&t.themes.splice(i,1),t.state.themes=t.themes.toString(),t.filter(),t.filterGrid()},removeCategorie:function(n){var t=this,i;t.categories==""&&(t.categories=[]),i=$.inArray(n,t.categories),i>-1&&t.categories.splice(i,1),t.state.categories=t.categories.toString(),t.filter(),t.filterGrid()},addProvider:function(n){var t=this,i;t.providers==""&&(t.providers=[]),i=$.inArray(n,t.providers),i==-1&&t.providers.push(n),t.state.providers=t.providers.toString(),t.filter(),t.filterGrid()},addTheme:function(n){var t=this,i;t.themes==""&&(t.themes=[]),i=$.inArray(n,t.themes),i==-1&&t.themes.push(n),t.state.themes=t.themes.toString(),t.filter(),t.filterGrid()},addCategorie:function(n){var t=this,i;t.categories==""&&(t.categories=[]),i=$.inArray(n,t.categories),i==-1&&t.categories.push(n),t.state.categories=t.categories.toString(),t.filter(),t.filterGrid()},setProviders:function(n){var t=this;t.providers=n,t.state.providers=n,t.filter(),t.filterGrid()},filter:function(){var n=this,t,r;for(n.filteredgamelist=[],i=0;i<n.gamelist.length;i++){if(t=!1,n.gamelist[i].Category.length==0&&n.categories.length==0)t=!0;else for(j=0;j<n.gamelist[i].Category.length;j++)for(n.categories.length==0&&(t=!0),k=0;k<n.categories.length;k++)n.gamelist[i].Category[j].toLowerCase().indexOf(n.categories[k].toLowerCase())>-1&&n.gamelist[i].Category[j].length==n.categories[k].length&&(t=!0);if(r=!1,n.gamelist[i].Theme.length==0&&n.themes.length==0)r=!0;else for(j=0;j<n.gamelist[i].Theme.length;j++)for(n.themes.length==0&&(r=!0),k=0;k<n.themes.length;k++)n.gamelist[i].Theme[j].toLowerCase().indexOf(n.themes[k].toLowerCase())>-1&&n.gamelist[i].Theme[j].length==n.themes[k].length&&(r=!0);if(t&&r)if(n.providers.length>0)for(k=0;k<n.providers.length;k++)n.gamelist[i].ProviderLobbyNameIntegratedGameName.toLowerCase().indexOf(n.providers[k].toLowerCase())>-1&&(n.gamelist[i].Mobile&&n.isMobile||n.gamelist[i].Desktop&&!n.isMobile)&&n.filteredgamelist.push(n.gamelist[i]);else(n.gamelist[i].Mobile&&n.isMobile||n.gamelist[i].Desktop&&!n.isMobile)&&n.filteredgamelist.push(n.gamelist[i])}$(".totalgamesfound").html(n.filteredgamelist.length),n.categories.length+n.themes.length+n.providers.length>0&&$("#masterpages li[data-page='all']").removeClass("active"),$("#numberoffilters").html(n.categories.length+n.themes.length+n.providers.length+(n.state.masterPage=="all"?0:1)),n.categories.length>0?$("#categorieslist .amount-of-filters-mobile").html(n.categories.length).addClass("show"):$("#categorieslist .amount-of-filters-mobile").html(n.categories.length).removeClass("show"),n.themes.length>0?$("#themeslist .amount-of-filters-mobile").html(n.themes.length).addClass("show"):$("#themeslist .amount-of-filters-mobile").html(n.themes.length).removeClass("show"),n.providers.length>0?$("#providerslist .amount-of-filters-mobile").html(n.providers.length).addClass("show"):$("#providerslist .amount-of-filters-mobile").html(n.providers.length).removeClass("show"),n.categories.length+n.themes.length+n.providers.length+(n.state.masterPage=="all"?0:1)>0?($("#searchgamesmobile").hide(),$("#removefilters").show()):($("#searchgamesmobile").show(),$("#removefilters").hide(),setTimeout(function(){$("#filterinput,#filterinputmobile").val("")},1),setTimeout(function(){$("#filterinput,#filterinputmobile").val("")},200),$("#searchclear,#searchclearmobile").hide(""))},search:function(){var n=this,i=$("#filterinput").val(),t,e,o,r,f,s,u,h;for(i===""&&(i=$("#filterinputmobile").val()),i===""&&$("#searchclear,#searchclearmobile").css("display","none"),n.setMasterPage("all"),n.filteredgamelist=[],n.providers=[],n.themes=[],n.categories=[],n.state.providers="",n.state.themes="",n.state.categories="",t=0;t<n.gamelist.length;t++){for(e=!1,r=0;r<n.gamelist[t].Category.length;r++)n.gamelist[t].Category[r].toLowerCase().indexOf(i.toLowerCase())>-1&&(e=!0);for(o=!1,r=0;r<n.gamelist[t].Theme.length;r++)n.gamelist[t].Theme[r].toLowerCase().indexOf(i.toLowerCase())>-1&&(o=!0);for(f=!1,u=0;u<n.providerlist.length;u++)n.gamelist[t].ProviderFk==n.providerlist[u].Pkey&&(s=n.providerlist[u].LobbyName);s.toLowerCase().indexOf(i.toLowerCase())>-1&&(f=!0),n.gamelist[t].ProviderLobbyNameIntegratedGameName.toLowerCase().indexOf(i.toLowerCase())>-1&&(f=!0),h=n.gamelist[t].Name.toLowerCase().indexOf(i.toLowerCase())>-1,(h||f||e||o)&&(n.gamelist[t].Mobile&&n.isMobile||n.gamelist[t].Desktop&&!n.isMobile)&&n.filteredgamelist.push(n.gamelist[t])}n.categories.length+n.themes.length+n.providers.length>0&&$("#masterpages li[data-page='all']").removeClass("active"),$("#numberoffilters").html(n.categories.length+n.themes.length+n.providers.length+(n.state.masterPage=="all"?0:1)),n.categories.length+n.themes.length+n.providers.length+(n.state.masterPage=="all"?0:1)>0?$("#removefilters").show():$("#removefilters").hide(),n.categories.length>0?$("#categorieslist .amount-of-filters-mobile").html(n.categories.length).addClass("show"):$("#categorieslist .amount-of-filters-mobile").html(n.categories.length).removeClass("show"),n.themes.length>0?$("#themeslist .amount-of-filters-mobile").html(n.themes.length).addClass("show"):$("#themeslist .amount-of-filters-mobile").html(n.themes.length).removeClass("show"),n.providers.length>0?$("#providerslist .amount-of-filters-mobile").html(n.providers.length).addClass("show"):$("#providerslist .amount-of-filters-mobile").html(n.providers.length).removeClass("show"),n.filterGrid(),$(".totalgamesfound").html(n.filteredgamelist.length)},highlightButtons:function(){var t=this,n;for(i=0;i<t.filterButtons.length;i++)n=$(t.filterButtons[i]),n.data("category")!=undefined&&(t.categories.length>0?$.inArray(n.data("category"),t.categories)>-1?(n.addClass("active"),n.children(".md-checkbox").children("input").prop("checked",!0)):(n.removeClass("active"),n.children(".md-checkbox").children("input").prop("checked",!1)):n.data("category")=="all"&&t.state.masterPage=="all"?(n.addClass("active"),n.children(".md-checkbox").children("input").prop("checked",!0)):(n.removeClass("active"),n.children(".md-checkbox").children("input").prop("checked",!1))),n.data("provider")!=undefined&&(t.providers.length>0?$.inArray(n.data("provider"),t.providers)>-1?(n.addClass("active"),n.children(".md-checkbox").children("input").prop("checked",!0)):(n.removeClass("active"),n.children(".md-checkbox").children("input").prop("checked",!1)):n.data("provider")=="all"&&t.state.masterPage=="all"?(n.addClass("active"),n.children(".md-checkbox").children("input").prop("checked",!0)):(n.removeClass("active"),n.children(".md-checkbox").children("input").prop("checked",!1))),n.data("theme")!=undefined&&(t.themes.length>0?$.inArray(n.data("theme"),t.themes)>-1?(n.addClass("active"),n.children(".md-checkbox").children("input").prop("checked",!0)):(n.removeClass("active"),n.children(".md-checkbox").children("input").prop("checked",!1)):n.data("theme")=="all"&&t.state.masterPage=="all"?(n.addClass("active"),n.children(".md-checkbox").children("input").prop("checked",!0)):(n.removeClass("active"),n.children(".md-checkbox").children("input").prop("checked",!1)))},createLabels:function(){var n=this,r,u,f,t,i;if($(".bootstrap-tagsinput").children().remove(),$(".bootstrap-tagsinput").css("display","none"),$(".bootstrap-tagsinput").parent().css("display","none"),n.state.masterPage!=="all"?($(".bootstrap-tagsinput.masterpages").css("display","inline-block"),$(".bootstrap-tagsinput.masterpages").parent().css("display","block"),i=$('<span class="tag label label-danger label-important">'+(n.translations[n.state.masterPage]==undefined?n.state.masterPage:n.translations[n.state.masterPage])+'<span data-role="remove" onclick="gameGrid.showMasterPage(\'all\')"><\/span><\/span>'),i.prependTo($(" .bootstrap-tagsinput.masterpages")),$("#masterpages").parent().addClass("active")):$("#masterpages").parent().removeClass("active"),n.state.providers!==""&&n.state.providers!=undefined){for(r=n.state.providers.split(","),r.length>0&&$(".bootstrap-tagsinput.providers").css("display","inline-block"),$(".bootstrap-tagsinput.providers").parent().css("display","block"),t=0;t<r.length;t++)i=$('<span class="tag label label-danger label-important">'+(n.translations[r[t]]==undefined?r[t]:n.translations[r[t]])+'<span data-role="remove" onclick="gameGrid.removeProvider(\''+r[t]+"')\"><\/span><\/span>"),i.prependTo($(".bootstrap-tagsinput.providers"));$("#providerlist").parent().addClass("active")}else $("#providerlist").parent().removeClass("active");if(n.state.categories!==""&&n.state.categories!=undefined){for(u=n.state.categories.split(","),u.length>0&&$(".bootstrap-tagsinput.categories").css("display","inline-block"),$(".bootstrap-tagsinput.categories").parent().css("display","block"),t=0;t<u.length;t++)i=$('<span class="tag label label-danger label-important">'+(n.translations[u[t]]==undefined?u[t]:n.translations[u[t]])+'<span data-role="remove" onclick="gameGrid.removeCategorie(\''+u[t]+"')\"><\/span><\/span>"),i.prependTo($(".bootstrap-tagsinput.categories"));$("#lobbycategories li:first").addClass("active")}else $("#lobbycategories li:first").removeClass("active");if(n.state.themes!==""&&n.state.themes!=undefined){for(f=n.state.themes.split(","),f.length>0&&$(".bootstrap-tagsinput.themes").css("display","inline-block"),$(".bootstrap-tagsinput.themes").parent().css("display","block"),t=0;t<f.length;t++)i=$('<span class="tag label label-danger label-important">'+(n.translations[f[t]]==undefined?f[t]:n.translations[f[t]])+'<span data-role="remove" onclick="gameGrid.removeTheme(\''+f[t]+"')\"><\/span><\/span>"),i.prependTo($(".bootstrap-tagsinput.themes"));$("#themelist").parent().addClass("active")}else $("#themelist").parent().removeClass("active")}},window.GameGrid=n}(),function(){var n=function(n){function f(){new Date-u<r?setTimeout(f,r):(t.buildGrid(),i=!1)}var t=this,u,i,r;t.gamelist=n.gamelist,t.gamescontainer=n.gamecontainer,t.translations=n.translation,t.cashText=n.translation.Cash,t.demoText=n.translation.Demo,t.jackpotText=n.translation.Jackpot,t.maxrows=n.maxrows,t.cachebuster=n.cachebuster,t.cdnBaseUrl=n.cdnBaseUrl,i=!1,r=20,t.resizeCallback=function(){u=new Date,i===!1&&(i=!0,setTimeout(f,r))},$(window).resize(function(){t.resizeCallback()});$(window).on("orientationchange",function(){t.resizeCallback()});t.gridContainer=null,t.buildGrid()};n.prototype={createThumbnail:function(n){var t=this,i=new Date,u=i.getTime();return'<div class="text-center sc-game-card-wrap">                            <div class="white-bg shadow-card sc-game-thumb-link">                  <div class="col-xs-12">                    <div class="row">'+(n.Exclusive?'<span class="text-uppercase sc-ribbon-label">'+t.translations.Exclusive.toUpperCase()+"<\/span>":n.IsNew?'<span class="text-uppercase sc-ribbon-label">'+t.translations.New.toUpperCase()+"<\/span>":n.IsLive?'<span class="text-uppercase sc-ribbon-label sc-ribbon-bg-live">'+t.translations.Live.toUpperCase()+"<\/span>":n.HasJackpot?'<span class="text-uppercase sc-ribbon-label">'+t.jackpotText+"<\/span>":"")+'<div class="sc-game-thumb" style="background: url(\''+t.cdnBaseUrl+"/portal/games/thumbnails/"+n.ProviderName.toLowerCase()+"/small/"+n.UrlName.toLowerCase()+".png?_v="+t.cachebuster+'\') center; -ms-background-size: cover;background-size:cover;"><\/div>                 <a href="'+n.Url+'" class="sc-thumb-overlay">                      <i class="fa fa-play-circle" aria-hidden="true"><\/i>                 <\/a>                <\/div><p class="text-left sc-thumb-title-text">'+n.Name+'<\/p>                    <div title="'+n.ProviderName+'" class="sc-provider-icon icon-'+n.ProviderName.toLowerCase()+'-small"><\/div><\/div>              <\/div>'+(n.HasDemo?'<a href="'+n.DemoUrl+'" class="sc-play-demo-txt">'+t.demoText+"<\/a>":"")+"<\/div>"},buildGrid:function(){var n=this,c,t,i,r,s,l,h,e,f;windowheight=$(window).height(),timeout=!1;var a=$(window).width(),u=n.gamescontainer.innerWidth(),o=15;if(u=u-o,c=35,t=240,u=u,i=parseInt(u/(t+o)),i===0&&(i=1),r=parseInt((u-i*t)/i),r>c&&(i+=1,r=o),t=parseInt((u-r-r*i)/i)-1,f=t*150/240,s=n.maxrows,n.gamesToAdd!=s*i){for(n.gamesToAdd=s*i,l=n.gamelist.length>n.gamesToAdd?n.gamesToAdd:n.gamelist.length,h="",e=0;e<l;e++)h+=n.createThumbnail(n.gamelist[e]);n.gamescontainer.html(h)}n.gamescontainer.children(".gamethumbnail").css("width",t),n.gamescontainer.children(".gamethumbnail").css("height",f+33),n.gamescontainer.children(".gamethumbnail").find("div").css("height",f),n.gamescontainer.css({"padding-left":r,"padding-top":r}),f=t*150/240,n.gamescontainer.children(".sc-game-card-wrap").css("width",t),n.gamescontainer.children(".sc-game-card-wrap").find(".sc-thumb-overlay,.sc-game-thumb").css({width:t,height:f}),n.gamescontainer.children(".sc-game-card-wrap").css({"margin-right":r,"padding-bottom":10+r}),n.gamescontainer.children(".sc-game-card-wrap").find(".sc-game-thumb-link i.fa-play-circle").css({top:(f-10)/2,left:t/2}),App.gamesHoverEffects()},isFavorite:function(n){for(var i=this,t=0;t<i.favoriteids.length;t++)if(i.favoriteids[t].IntegratedGameId==n)return!0;return!1}},window.GameRow=n}(),function(){var n=function(n){function f(){new Date-u<r?setTimeout(f,r):(t.resizeRow(),i=!1)}var t=this,u,i,r;t.gamelist=n.gamelist,t.gamescontainer=n.gamecontainer,t.gamescontainerwide=n.gamecontainerwide,t.translations=n.translation,t.cashText=n.translation.Cash,t.demoText=n.translation.Demo,t.jackpotText=n.translation.Jackpot,t.maxrows=n.maxrows,t.adaptforwidescreen=n.adaptforwidescreen,t.cachebuster=n.cachebuster,t.cdnBaseUrl=n.cdnBaseUrl,t.isMobile=n.mobile,t.headerContainer=n.headercontainer,i=!1,r=20,t.resizeCallback=function(){u=new Date,i===!1&&(i=!0,setTimeout(f,r))},$(window).resize(function(){t.resizeCallback()});$(window).on("orientationchange",function(){t.resizeCallback()});if(t.previousButton=t.gamescontainer.findNext(".homepage-game-row-previous"),t.nextButton=t.gamescontainer.findNext(".homepage-game-row-next"),t.isMobile)t.gamescontainer.css({"overflow-x":"auto","overflow-y":"hidden","white-space":"nowrap"}),t.adaptforwidescreen&&t.gamescontainerwide.hide(),t.gamescontainer.findNext(".homepage-game-row-previous").hide(),t.gamescontainer.findNext(".homepage-game-row-next").hide();else{t.gamescontainer.css({overflow:"hidden","white-space":"nowrap"}),t.adaptforwidescreen&&(t.gamescontainerwide.show(),t.gamescontainerwide.css({overflow:"hidden","white-space":"nowrap"}));t.previousButton.on("click",$.proxy(t.showPreviousPage,t));t.nextButton.on("click",$.proxy(t.showNextPage,t))}t.buildGrid()};n.prototype={createThumbnail:function(n){var t=this,u=new Date,i,r;return console.log(n),i=u.getTime(),r='<div class="text-center sc-game-card-wrap">                            <div class="white-bg shadow-card sc-game-thumb-link">                  <div class="col-xs-12">                    <div class="row">'+(n.Exclusive?'<span class="text-uppercase sc-ribbon-label">'+t.translations.Exclusive.toUpperCase()+"<\/span>":n.IsNew?'<span class="text-uppercase sc-ribbon-label">'+t.translations.New.toUpperCase()+"<\/span>":n.IsLive?'<span class="text-uppercase sc-ribbon-label sc-ribbon-bg-live">'+t.translations.Live.toUpperCase()+"<\/span>":n.HasJackpot?'<span class="text-uppercase sc-ribbon-label">'+t.jackpotText+"<\/span>":"")+'<div class="sc-game-thumb" style="background: url(\''+t.cdnBaseUrl+"/portal/games/thumbnails/"+n.ProviderName.toLowerCase()+"/small/"+n.UrlName.toLowerCase()+".png?_v="+t.cachebuster+'\') center; -ms-background-size: cover;background-size:cover;"><\/div>                 <a href="'+n.Url+'" class="sc-thumb-overlay">                      <i class="fa fa-play-circle" aria-hidden="true"><\/i>                 <\/a>                <\/div>'+(n.JackpotAmount!=0?'<div id="jackpotcounter-'+n.Pkey+""+i+'" class="jackpotSoonCounter"><\/div><script type="text/javascript">                      jQuery(document).ready(function() {                          jQuery("#jackpotcounter-'+n.Pkey+""+i+"\").smartNumberCounter({                              skin: 'Inline',                              display: {                                  style: 'black'                              },                              model: {                                  digits: "+(parseInt(n.JackpotAmount).toString().length+2)+",                                  decimals: 2,                                  method: 'up',                    separatorDecimal: 'comma',            separatorThousand: 'period',                                  value: "+n.JackpotAmount+",                                  charBefore: '€',                                  update: 'step',                                  stepValue: "+n.JackpotSpeed.toString().replace(/^,+/,".")+"                              }                          });                      });                <\/script>":"")+'<p class="text-left sc-thumb-title-text">'+n.Name+'<\/p>                    <div title="'+n.ProviderName+'" class="sc-provider-icon icon-'+n.ProviderName.toLowerCase()+'-small"><\/div><\/div>              <\/div>'+(n.HasDemo?'<a href="'+n.DemoUrl+'" class="sc-play-demo-txt">'+t.demoText+"<\/a>":"")+"<\/div>",r},calculateGrid:function(){var n=this,i,f,e,u,t,r,o;n.secondrow=!1,$(window).width()>993&&n.adaptforwidescreen&&!n.isMobile?(n.secondrow=!0,n.gamescontainer.parent().parent().css({width:parseInt((n.gamescontainer.parent().parent().parent().width()-40)/2)}),n.gamescontainer.parent().parent().prev().width()===n.gamescontainer.parent().parent().width()&&n.gamescontainer.parent().parent().width()!==n.gamescontainer.parent().parent().parent().width()&&n.gamescontainer.parent().parent().css({float:"right"})):(n.secondrow=!1,n.gamescontainer.parent().parent().css({width:"100%",float:"none"})),i=n.gamescontainer.innerWidth(),f=10,n.gamescontainerWidth=i,e=25,u=240,i=i+f,t=parseInt(i/(u+f)),t<2&&(t=2),i=n.gamescontainerWidth,r=parseInt((i-t*u)/(t-1)),r>e&&(t+=1,r=f),r<10&&(r=10),u=parseInt((i-(t-1)*r)/t),n.isMobile&&(u=parseInt((i-f-r-r*t)/t)),o=u*150/240,n.calculatedGutter=r,n.thumbnailHeight=o,n.thumbnailWidth=u,n.numberofcolumns=t},buildGrid:function(){var n=this,i,r,u,t,f,e;if(n.calculateGrid(),n.gamesToAdd!==n.numberofcolumns){for(n.gamesToAdd=n.isMobile?12:n.numberofcolumns,n.secondrow&&(n.gamesToAdd*=2),i=n.gamelist.length>n.gamesToAdd?n.gamesToAdd:n.gamelist.length,i===n.gamelist.length||i===0||n.gamelist.length-i<n.gamesToAdd?n.nextButton.addClass("game-row-end"):n.nextButton.removeClass("game-row-end"),r="",u="",t=0;t<i;t++)n.secondrow?t%2?u+=n.createThumbnail(n.gamelist[t]):r+=n.createThumbnail(n.gamelist[t]):r+=n.createThumbnail(n.gamelist[t]);f=$(r),n.gamescontainer.append(f),n.secondrow&&(e=$(u),n.gamescontainerwide.append(e)),n.resizeGameThumbnails()}n.currentPage=1,n.currentFirstThumbnail=0,App.gamesHoverEffects()},resizeGameThumbnails:function(){var n=this;n.secondrow?(n.previousButton.css({top:(2*(n.thumbnailHeight+65)-65)/2}),n.nextButton.css({top:(2*(n.thumbnailHeight+65)-65)/2})):(n.previousButton.css({top:(n.thumbnailHeight-20)/2}),n.nextButton.css({top:(n.thumbnailHeight-20)/2})),n.gamescontainer.css({height:n.thumbnailHeight+65}),n.gamescontainer.children(".sc-game-card-wrap").css("width",n.thumbnailWidth),n.gamescontainer.children(".sc-game-card-wrap").find(".sc-thumb-overlay,.sc-game-thumb").css({width:n.thumbnailWidth,height:n.thumbnailHeight}),n.gamescontainer.children(".sc-game-card-wrap").css("margin-right",n.calculatedGutter),n.gamescontainer.children(".sc-game-card-wrap").find(".sc-game-thumb-link i.fa-play-circle").css({top:(n.thumbnailHeight-10)/2,left:n.thumbnailWidth/2}),n.secondrow&&(n.gamescontainerwide.css({height:n.thumbnailHeight+65}),n.gamescontainerwide.children(".sc-game-card-wrap").css("width",n.thumbnailWidth),n.gamescontainerwide.children(".sc-game-card-wrap").find(".sc-thumb-overlay,.sc-game-thumb").css({width:n.thumbnailWidth,height:n.thumbnailHeight}),n.gamescontainerwide.children(".sc-game-card-wrap").css("margin-right",n.calculatedGutter),n.gamescontainerwide.children(".sc-game-card-wrap").find(".sc-game-thumb-link i.fa-play-circle").css({top:(n.thumbnailHeight-10)/2,left:n.thumbnailWidth/2})),App.gamesHoverEffects()},showNextPage:function(){var n=this,t=n.gamelist.length>=(n.currentPage+1)*n.gamesToAdd?(n.currentPage+1)*n.gamesToAdd:0,r,u,f,i,o,s,e,h;if(t===n.gamelist.length||t===0||n.gamelist.length-t<n.gamesToAdd?n.nextButton.addClass("game-row-end"):n.nextButton.removeClass("game-row-end"),t!==0){if(n.currentPage++,n.previousButton.removeClass("game-row-end"),r=0,r=n.secondrow?n.gamescontainer.children().length+n.gamescontainerwide.children().length:n.gamescontainer.children().length,t>r){for(u="",f="",i=(n.currentPage-1)*n.gamesToAdd;i<t;i++)n.secondrow?i%2?f+=n.createThumbnail(n.gamelist[i]):u+=n.createThumbnail(n.gamelist[i]):u+=n.createThumbnail(n.gamelist[i]);o=$(u),n.gamescontainer.append(o),n.secondrow&&(s=$(f),n.gamescontainerwide.append(s)),n.currentFirstThumbnail=(n.currentPage-1)*n.gamesToAdd,App.gamesHoverEffects()}n.secondrow?(n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-2)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)"),n.gamescontainerwide.children().css("transform","translateX(-"+(n.currentPage-2)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)")):n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-2)*(n.thumbnailWidth+n.calculatedGutter)*n.gamesToAdd+"px)"),n.resizeGameThumbnails(),e=null,h=function(){n.secondrow?n.gamescontainer.children().length+n.gamescontainerwide.children().length>=t&&(n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)"),n.gamescontainerwide.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)")):n.gamescontainer.children().length>=t&&n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*n.gamesToAdd+"px)"),clearInterval(e)},e=setInterval(h,20)}},showPreviousPage:function(){var n=this;n.currentPage!==1&&(n.currentPage--,n.currentPage===1&&n.previousButton.addClass("game-row-end"),n.nextButton.removeClass("game-row-end"),n.currentFirstThumbnail=(n.currentPage-1)*n.gamesToAdd,n.secondrow?(n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)"),n.gamescontainerwide.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)")):n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*n.gamesToAdd+"px)"))},resizeRow:function(){var n=this,r,f,i,e,t,u,o;if(n.calculateGrid(),!n.secondrow&&n.adaptforwidescreen&&n.gamescontainerwide.children().length>0){for(n.gamescontainerwide.html(""),n.gamescontainerwide.hide(),n.gamescontainer.html(""),n.gamesToAdd=n.numberofcolumns,n.currentPage=n.currentFirstThumbnail/n.gamesToAdd+1,r=n.gamelist.length>n.currentPage*n.gamesToAdd?n.currentPage*n.gamesToAdd:0,i="",t=0;t<r;t++)i+=n.createThumbnail(n.gamelist[t]);u=$(i),n.gamescontainer.append(u),App.gamesHoverEffects(),n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*n.gamesToAdd+"px)"),n.resizeGameThumbnails();return}if(n.secondrow&&n.gamescontainerwide.children().length===0){n.gamescontainerwide.show(),n.gamescontainer.html(""),n.gamesToAdd=2*n.numberofcolumns,n.currentPage=parseInt(n.currentFirstThumbnail/n.gamesToAdd)+1;var r=n.gamelist.length>n.currentPage*n.gamesToAdd?n.currentPage*n.gamesToAdd:0,i="",e="";for(t=0;t<r;t++)t%2?e+=n.createThumbnail(n.gamelist[t]):i+=n.createThumbnail(n.gamelist[t]);u=$(i),n.gamescontainer.append(u),o=$(e),n.gamescontainerwide.append(o),App.gamesHoverEffects(),n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)"),n.gamescontainerwide.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)"),n.resizeGameThumbnails();return}if((!n.secondrow&&n.gamesToAdd!==n.numberofcolumns||n.secondrow&&n.gamesToAdd!==2*n.numberofcolumns)&&(n.gamesToAdd=n.numberofcolumns,n.secondrow&&(n.gamesToAdd=2*n.numberofcolumns),r=n.gamelist.length>n.currentPage*n.gamesToAdd?n.currentPage*n.gamesToAdd:0,f=0,f=n.secondrow?n.gamescontainer.children().length+n.gamescontainerwide.children().length:n.gamescontainer.children().length,r>f)){for(i="",e="",t=f;t<r;t++)n.secondrow?t%2?e+=n.createThumbnail(n.gamelist[t]):i+=n.createThumbnail(n.gamelist[t]):i+=n.createThumbnail(n.gamelist[t]);u=$(i),n.gamescontainer.append(u),n.secondrow&&(o=$(e),n.gamescontainerwide.append(o)),App.gamesHoverEffects()}n.currentPage=n.currentFirstThumbnail/n.gamesToAdd+1,n.secondrow?(n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)"),n.gamescontainerwide.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*(n.gamesToAdd/2)+"px)")):n.gamescontainer.children().css("transform","translateX(-"+(n.currentPage-1)*(n.thumbnailWidth+n.calculatedGutter)*n.gamesToAdd+"px)"),n.resizeGameThumbnails()},isFavorite:function(n){for(var i=this,t=0;t<i.favoriteids.length;t++)if(i.favoriteids[t].IntegratedGameId==n)return!0;return!1}},window.HomePageGameRow=n}()