// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var ba,ca,ea,fa,ga,ha,ia,B,ja,ka,la,ma,pa,N,ra,ua,va,wa,xa,ya,za,P,Aa,Ba,Ca,Da,Ea,T,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={},fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype}); (function(){function b(a,e,f,d){this.set(a,e,f,d)}function k(){this.$b=this.Zb=this.ec=this.cc=this.rc=this.qc=this.Mb=this.Lb=0}function n(a,e,f,d){ad?e:d):(p=af?e:f):fd?a:d):(p=ef?a:f)}function u(){this.items=this.td=null;this.Xg=0;U&&(this.td=new Set);this.lg=[];this.ee=!0}function v(a){qa[V++]=a}function t(){this.K=this.Pj=this.y=this.nk=0}function c(a){this.Sa=[];this.Uh=this.Wh=this.Xh=this.Vh=0;this.zh(a)}function a(a,e){this.rk= a;this.qk=e;this.cells={}}function l(a,e){this.rk=a;this.qk=e;this.cells={}}function x(a,e,f){var d;return O.length?(d=O.pop(),d.Xk=a,d.x=e,d.y=f,d):new ba(a,e,f)}function e(a,e,f){this.Xk=a;this.x=e;this.y=f;this.Ya=new ca}function d(a,e,f){var d;return H.length?(d=H.pop(),d.Xk=a,d.x=e,d.y=f,d):new ea(a,e,f)}function q(a,e,f){this.Xk=a;this.x=e;this.y=f;this.Ya=[];this.Df=!0;this.qd=new ca;this.qg=!1}function f(a,e){return a.ed-e.ed}fa=function(a){window.console&&window.console.log&&window.console.log(a)}; ga=function(a){window.console&&window.console.error&&window.console.error(a)};ha=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};B=function(a){return"string"===typeof a};ja=function(a){return 0e;e<<=1)a=a|a>>e;return a+1};la=function(a){return 0>a?-a:a};ma=function(a,e){return am)return!1;em)return!1;A=g-a+l-f;y=h-e+z-d;a=f-a;e=d-e;g=l-g;h=z-h;z=la(e*g-h*a);return la(g*y-h*A)>z?!1:la(a*y-e*A)<=z};b.prototype.set=function(a,e,f,d){this.left=a;this.top=e;this.right=f;this.bottom=d};b.prototype.lf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.width=function(){return this.right-this.left};b.prototype.height= function(){return this.bottom-this.top};b.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};b.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};b.prototype.Bt=function(a){return!(a.rightthis.right||a.top>this.bottom)};b.prototype.Ct=function(a,e,f){return!(a.right+ethis.right||a.top+f>this.bottom)};b.prototype.nb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};b.prototype.yg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=b;k.prototype.bg=function(a){this.Lb=a.left;this.Mb=a.top;this.qc=a.right;this.rc=a.top;this.cc=a.right;this.ec=a.bottom;this.Zb=a.left;this.$b=a.bottom};k.prototype.Lp=function(a,e){if(0===e)this.bg(a);else{var f=Math.sin(e),d=Math.cos(e), g=a.left*f,h=a.top*f,m=a.right*f,f=a.bottom*f,z=a.left*d,A=a.top*d,y=a.right*d,d=a.bottom*d;this.Lb=z-h;this.Mb=A+g;this.qc=y-h;this.rc=A+m;this.cc=y-f;this.ec=d+m;this.Zb=z-f;this.$b=d+g}};k.prototype.offset=function(a,e){this.Lb+=a;this.Mb+=e;this.qc+=a;this.rc+=e;this.cc+=a;this.ec+=e;this.Zb+=a;this.$b+=e;return this};var p=0,r=0;k.prototype.un=function(a){n(this.Lb,this.qc,this.cc,this.Zb);a.left=p;a.right=r;n(this.Mb,this.rc,this.ec,this.$b);a.top=p;a.bottom=r};k.prototype.nb=function(a,e){var f= this.Lb,d=this.Mb,g=this.qc-f,h=this.rc-d,m=this.cc-f,z=this.ec-d,A=a-f,y=e-d,l=g*g+h*h,c=g*m+h*z,h=g*A+h*y,p=m*m+z*z,q=m*A+z*y,r=1/(l*p-c*c),g=(p*h-c*q)*r,l=(l*q-c*h)*r;if(0<=g&&0g+l)return!0;g=this.Zb-f;h=this.$b-d;l=g*g+h*h;c=g*m+h*z;h=g*A+h*y;r=1/(l*p-c*c);g=(p*h-c*q)*r;l=(l*q-c*h)*r;return 0<=g&&0g+l};k.prototype.de=function(a,e){if(e)switch(a){case 0:return this.Lb;case 1:return this.qc;case 2:return this.cc;case 3:return this.Zb;case 4:return this.Lb;default:return this.Lb}else switch(a){case 0:return this.Mb; case 1:return this.rc;case 2:return this.ec;case 3:return this.$b;case 4:return this.Mb;default:return this.Mb}};k.prototype.To=function(){return(this.Lb+this.qc+this.cc+this.Zb)/4};k.prototype.Uo=function(){return(this.Mb+this.rc+this.ec+this.$b)/4};k.prototype.ko=function(a){var e=a.To(),f=a.Uo();if(this.nb(e,f))return!0;e=this.To();f=this.Uo();if(a.nb(e,f))return!0;var d,g,h,l,z,A,m,c;for(m=0;4>m;m++)for(c=0;4>c;c++)if(e=this.de(m,!0),f=this.de(m,!1),d=this.de(m+1,!0),g=this.de(m+1,!1),h=a.de(c, !0),l=a.de(c,!1),z=a.de(c+1,!0),A=a.de(c+1,!1),ua(e,f,d,g,h,l,z,A))return!0;return!1};wa=k;xa=function(a,e){for(var f in e)e.hasOwnProperty(f)&&(a[f]=e[f]);return a};ya=function(a,e){var f,d;e=N(e);if(!(0>e||e>=a.length)){f=e;for(d=a.length-1;ff?f:a};T=function(a){return a/(180/pa)};Ga=function(a){return 180/pa*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};Ia=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Ja=function(a){return Ha(Ga(a))};Ka=function(a){return Ia(T(a))};La=function(a,e,f,d){return Math.atan2(d-e,f-a)};Ma=function(a,e){if(a===e)return 0;var f=Math.sin(a),d=Math.cos(a),g=Math.sin(e),h=Math.cos(e),f=f*g+d*h;return 1<=f?0:-1>=f?pa:Math.acos(f)}; Na=function(a,e,f){var d=Math.sin(a),g=Math.cos(a),h=Math.sin(e),m=Math.cos(e);return Math.acos(d*h+g*m)>f?0=d*g-f*h};Ra=function(a,e,f,d,g,h){if(0===f)return h?a:e;var m=Math.sin(f);f=Math.cos(f);a-=d;e-=g;var z=a*m;a=a*f-e*m;e=e*f+z;return h?a+d:e+g};Sa=function(a,e,f,d){a=f-a;e=d-e;return Math.sqrt(a*a+e*e)};Ta=function(a,e){return!a!==!e};Ua=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0; return!1};Va=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var m=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-m};var g=!1,h=g=!1,R=!1;"undefined"!==typeof window&&(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent), g=!g&&/safari/i.test(navigator.userAgent),h=/(iphone|ipod|ipad)/i.test(navigator.userAgent),R=window.c2ejecta);var U=!g&&!R&&!h&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;u.prototype.contains=function(a){return this.Id()?!1:U?this.td.has(a):this.items&&this.items.hasOwnProperty(a)};u.prototype.add=function(a){if(U)this.td.has(a)||(this.td.add(a),this.ee=!1);else{var e=a.toString(),f=this.items;f?f.hasOwnProperty(e)||(f[e]=a,this.Xg++,this.ee=!1):(this.items={},this.items[e]= a,this.Xg=1,this.ee=!1)}};u.prototype.remove=function(a){if(!this.Id())if(U)this.td.has(a)&&(this.td["delete"](a),this.ee=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.Xg--,this.ee=!1)}};u.prototype.clear=function(){this.Id()||(U?this.td.clear():(this.items=null,this.Xg=0),P(this.lg),this.ee=!0)};u.prototype.Id=function(){return 0===this.count()};u.prototype.count=function(){return U?this.td.size:this.Xg};var qa=null,V=0;u.prototype.Zu=function(){if(!this.ee){if(U)P(this.lg), qa=this.lg,V=0,this.td.forEach(v),qa=null,V=0;else{var a=this.lg;P(a);var e,f=0,d=this.items;if(d)for(e in d)d.hasOwnProperty(e)&&(a[f++]=d[e])}this.ee=!0}};u.prototype.dd=function(){this.Zu();return this.lg};ca=u;new ca;Xa=function(a,e){U?Ya(a,e.td):Za(a,e.dd())};Ya=function(a,e){var f,d,g,h;d=f=0;for(g=a.length;ff&&(f=h),mg&&(g=m);this.Vh=e;this.Wh=f;this.Xh=d;this.Uh=g};c.prototype.bg=function(a,e,f){this.Sa.length=8;this.Yc=4;var d=this.Sa;d[0]=a.left-e;d[1]=a.top-f;d[2]=a.right-e;d[3]=a.top-f;d[4]=a.right-e;d[5]=a.bottom-f;d[6]=a.left-e;d[7]=a.bottom-f;this.ai=a.right-a.left;this.$h=a.bottom-a.top;this.ma()};c.prototype.ag=function(a,e,f,d,g){this.Sa.length=8;this.Yc=4;var h=this.Sa;h[0]=a.Lb-e;h[1]=a.Mb-f;h[2]=a.qc-e;h[3]=a.rc-f;h[4]=a.cc-e;h[5]=a.ec-f;h[6]=a.Zb-e;h[7]=a.$b-f;this.ai=d;this.$h=g;this.ma()}; c.prototype.Kp=function(a){this.Yc=a.Yc;Aa(this.Sa,a.Sa);this.Vh=a.Vh;this.Xh-a.Xh;this.Wh=a.Wh;this.Uh=a.Uh};c.prototype.kf=function(a,e,f){if(this.ai!==a||this.$h!==e||this.xn!==f){this.ai=a;this.$h=e;this.xn=f;var d,g,h,m,z,A=0,l=1,c=this.up,p=this.Sa;0!==f&&(A=Math.sin(f),l=Math.cos(f));f=0;for(h=this.Yc;fO.length&&O.push(z), this.cells[d][h]=null);if(f)for(d=f.left,g=f.right;d<=g;++d)for(h=f.top,m=f.bottom;h<=m;++h)e&&e.nb(d,h)||this.le(d,h,!0).il(a)};a.prototype.xj=function(a,e){var f,d,g,h,m,z;f=this.Bb(a.left);g=this.Cb(a.top);d=this.Bb(a.right);for(m=this.Cb(a.bottom);f<=d;++f)for(h=g;h<=m;++h)(z=this.le(f,h,!1))&&z.dump(e)};eb=a;l.prototype.le=function(a,e,f){var g;g=this.cells[a];return g?(g=g[e])?g:f?(g=d(this,a,e),this.cells[a][e]=g):null:f?(g=d(this,a,e),this.cells[a]={},this.cells[a][e]=g):null};l.prototype.Bb= function(a){return N(a/this.rk)};l.prototype.Cb=function(a){return N(a/this.qk)};l.prototype.update=function(a,e,f){var d,g,h,m,z;if(e)for(d=e.left,g=e.right;d<=g;++d)for(h=e.top,m=e.bottom;h<=m;++h)if(!f||!f.nb(d,h))if(z=this.le(d,h,!1))z.remove(a),z.Id()&&(z.reset(),1E3>H.length&&H.push(z),this.cells[d][h]=null);if(f)for(d=f.left,g=f.right;d<=g;++d)for(h=f.top,m=f.bottom;h<=m;++h)e&&e.nb(d,h)||this.le(d,h,!0).il(a)};l.prototype.xj=function(a,e,f,d,g){var h,m;a=this.Bb(a);e=this.Cb(e);f=this.Bb(f); for(h=this.Cb(d);a<=f;++a)for(d=e;d<=h;++d)(m=this.le(a,d,!1))&&m.dump(g)};l.prototype.St=function(a){var e,f,d,g,h;e=a.left;d=a.top;f=a.right;for(g=a.bottom;e<=f;++e)for(a=d;a<=g;++a)if(h=this.le(e,a,!1))h.Df=!1};fb=l;var O=[];e.prototype.Id=function(){return this.Ya.Id()};e.prototype.il=function(a){this.Ya.add(a)};e.prototype.remove=function(a){this.Ya.remove(a)};e.prototype.dump=function(a){Ba(a,this.Ya.dd())};ba=e;var H=[];q.prototype.Id=function(){if(!this.Ya.length)return!0;if(this.Ya.length> this.qd.count())return!1;this.Jk();return!0};q.prototype.il=function(a){this.qd.contains(a)?(this.qd.remove(a),this.qd.Id()&&(this.qg=!1)):this.Ya.length?(this.Ya[this.Ya.length-1].zc()>a.zc()&&(this.Df=!1),this.Ya.push(a)):(this.Ya.push(a),this.Df=!0)};q.prototype.remove=function(a){this.qd.add(a);this.qg=!0;30<=this.qd.count()&&this.Jk()};q.prototype.Jk=function(){this.qg&&(this.qd.count()===this.Ya.length?this.reset():(Xa(this.Ya,this.qd),this.qd.clear(),this.qg=!1))};q.prototype.as=function(){this.Df|| (this.Ya.sort(f),this.Df=!0)};q.prototype.reset=function(){P(this.Ya);this.Df=!0;this.qd.clear();this.qg=!1};q.prototype.dump=function(a){this.Jk();this.as();this.Ya.length&&a.push(this.Ya)};ea=q;var F="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":F[a-1]};hb=function(a,e,f){if(f)switch(a.rb=f.ONE,a.ob=f.ONE_MINUS_SRC_ALPHA,e){case 1:a.rb=f.ONE;a.ob=f.ONE;break;case 3:a.rb= f.ONE;a.ob=f.ZERO;break;case 4:a.rb=f.ONE_MINUS_DST_ALPHA;a.ob=f.ONE;break;case 5:a.rb=f.DST_ALPHA;a.ob=f.ZERO;break;case 6:a.rb=f.ZERO;a.ob=f.SRC_ALPHA;break;case 7:a.rb=f.ONE_MINUS_DST_ALPHA;a.ob=f.ZERO;break;case 8:a.rb=f.ZERO;a.ob=f.ONE_MINUS_SRC_ALPHA;break;case 9:a.rb=f.DST_ALPHA;a.ob=f.ONE_MINUS_SRC_ALPHA;break;case 10:a.rb=f.ONE_MINUS_DST_ALPHA,a.ob=f.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length? !1:a===e?!0:a.toLowerCase()===e.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(b){var k=new gc(3);b&&(k[0]=b[0],k[1]=b[1],k[2]=b[2]);return k} function ic(b){var k=new gc(16);b&&(k[0]=b[0],k[1]=b[1],k[2]=b[2],k[3]=b[3],k[4]=b[4],k[5]=b[5],k[6]=b[6],k[7]=b[7],k[8]=b[8],k[9]=b[9],k[10]=b[10],k[11]=b[11],k[12]=b[12],k[13]=b[13],k[14]=b[14],k[15]=b[15]);return k}function jc(b,k){k[0]=b[0];k[1]=b[1];k[2]=b[2];k[3]=b[3];k[4]=b[4];k[5]=b[5];k[6]=b[6];k[7]=b[7];k[8]=b[8];k[9]=b[9];k[10]=b[10];k[11]=b[11];k[12]=b[12];k[13]=b[13];k[14]=b[14];k[15]=b[15]} function kc(b,k){var n=k[0],u=k[1];k=k[2];b[0]*=n;b[1]*=n;b[2]*=n;b[3]*=n;b[4]*=u;b[5]*=u;b[6]*=u;b[7]*=u;b[8]*=k;b[9]*=k;b[10]*=k;b[11]*=k} function lc(b,k,n,u){u||(u=ic());var v,t,c,a,l,x,e,d,q=b[0],f=b[1];b=b[2];t=n[0];c=n[1];v=n[2];n=k[1];x=k[2];q===k[0]&&f===n&&b===x?(b=u,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(n=q-k[0],x=f-k[1],e=b-k[2],d=1/Math.sqrt(n*n+x*x+e*e),n*=d,x*=d,e*=d,k=c*e-v*x,v=v*n-t*e,t=t*x-c*n,(d=Math.sqrt(k*k+v*v+t*t))?(d=1/d,k*=d,v*=d,t*=d):t=v=k=0,c=x*t-e*v,a=e*k-n*t,l=n*v-x*k,(d=Math.sqrt(c*c+a*a+l*l))?(d=1/d,c*=d,a*=d,l*=d):l=a=c=0, u[0]=k,u[1]=c,u[2]=n,u[3]=0,u[4]=v,u[5]=a,u[6]=x,u[7]=0,u[8]=t,u[9]=l,u[10]=e,u[11]=0,u[12]=-(k*q+v*f+t*b),u[13]=-(c*q+a*f+l*b),u[14]=-(n*q+x*f+e*b),u[15]=1)} (function(){function b(a,l,c){this.oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ja=!!c;this.Mi=this.Og=!1;this.xk=0;this.ek=1;this.Rm=1E3;this.dv=(this.Rm-this.ek)/32768;this.ok=hc([0,0,100]);this.Co=hc([0,0,0]);this.fq=hc([0,1,0]);this.Mh=hc([1,1,1]);this.Ln=!0;this.dj=ic();this.mc=ic();this.wl=ic();this.wk=ic();this.m=a;this.version=0===this.m.getParameter(this.m.VERSION).indexOf("WebGL 2")?2:1;this.eo()}function k(a,l,c){this.m=a;this.Ah= l;this.name=c;this.Cc=a.getAttribLocation(l,"aPos");this.se=a.getAttribLocation(l,"aTex");this.Ao=a.getUniformLocation(l,"matP");this.$i=a.getUniformLocation(l,"matMV");this.Jf=a.getUniformLocation(l,"opacity");this.Al=a.getUniformLocation(l,"colorFill");this.Bo=a.getUniformLocation(l,"samplerFront");this.gh=a.getUniformLocation(l,"samplerBack");this.Ve=a.getUniformLocation(l,"destStart");this.Ue=a.getUniformLocation(l,"destEnd");this.ih=a.getUniformLocation(l,"seconds");this.Cl=a.getUniformLocation(l, "pixelWidth");this.Bl=a.getUniformLocation(l,"pixelHeight");this.fh=a.getUniformLocation(l,"layerScale");this.eh=a.getUniformLocation(l,"layerAngle");this.jh=a.getUniformLocation(l,"viewOrigin");this.hh=a.getUniformLocation(l,"scrollPos");this.ut=!!(this.Cl||this.Bl||this.ih||this.gh||this.Ve||this.Ue||this.fh||this.eh||this.jh||this.hh);this.Ko=this.Lo=-999;this.cj=1;this.Go=this.Fo=0;this.Io=this.Eo=this.Do=1;this.Oo=this.No=this.Mo=this.Qo=this.Po=this.Ho=0;this.ul=[];this.Jo=ic();this.Jf&&a.uniform1f(this.Jf, 1);this.Al&&a.uniform4f(this.Al,1,1,1,1);this.Bo&&a.uniform1i(this.Bo,0);this.gh&&a.uniform1i(this.gh,1);this.Ve&&a.uniform2f(this.Ve,0,0);this.Ue&&a.uniform2f(this.Ue,1,1);this.fh&&a.uniform1f(this.fh,1);this.eh&&a.uniform1f(this.eh,0);this.jh&&a.uniform2f(this.jh,0,0);this.hh&&a.uniform2f(this.hh,0,0);this.ih&&a.uniform1f(this.ih,0);this.Me=!1}function n(a,l){return a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2]&&a[3]===l[3]&&a[4]===l[4]&&a[5]===l[5]&&a[6]===l[6]&&a[7]===l[7]&&a[8]===l[8]&&a[9]===l[9]&& a[10]===l[10]&&a[11]===l[11]&&a[12]===l[12]&&a[13]===l[13]&&a[14]===l[14]&&a[15]===l[15]}function u(a,l){this.type=a;this.q=l;this.m=l.m;this.Ac=this.sb=this.fp=0;this.L=this.Kc=null;this.Mp=[]}var v=ic();b.prototype.eo=function(){var a=this.m,l;this.vo=1;this.Re=this.Qe=null;this.hi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ja?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): a.disable(a.DEPTH_TEST);this.wo=a.ONE;this.uo=a.ONE_MINUS_SRC_ALPHA;this.ak=new Float32Array(8E3*(this.ja?3:2));this.Rj=new Float32Array(16E3);this.Yl=new Float32Array(32E3);this.Xl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Xl);a.bufferData(a.ARRAY_BUFFER,this.Yl.byteLength,a.DYNAMIC_DRAW);this.Kh=Array(4);this.Fh=Array(4);for(l=0;4>l;l++)this.Kh[l]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Kh[l]),a.bufferData(a.ARRAY_BUFFER,this.ak.byteLength,a.DYNAMIC_DRAW),this.Fh[l]=a.createBuffer(), a.bindBuffer(a.ARRAY_BUFFER,this.Fh[l]),a.bufferData(a.ARRAY_BUFFER,this.Rj.byteLength,a.DYNAMIC_DRAW);this.Ad=0;this.zt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.zt);for(var c=new Uint16Array(12E3),e=l=0;12E3>l;)c[l++]=e,c[l++]=e+1,c[l++]=e+2,c[l++]=e,c[l++]=e+2,c[l++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.Uf=this.gg=this.Ud=0;this.Ba=[];l=this.ja?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.vg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},l,"");this.Ba.push(c);c=this.vg({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, "attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.Ba.push(c);c=this.vg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},l,"");this.Ba.push(c);c=this.vg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, l,"");this.Ba.push(c);for(var d in mc)mc.hasOwnProperty(d)&&this.Ba.push(this.vg(mc[d],l,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.zd=[];this.hd=0;this.pb=this.fb=!1;this.Fn=this.Yg=-1;this.nf=null;this.Ik=a.createFramebuffer();this.li=this.zj=null;this.sn=!1;this.ja&&(this.li=a.createRenderbuffer());this.we=hc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Vt=a[0];this.Fl=a[1];2048"===c.name&&a.vertexAttribPointer(c.Cc,4,a.FLOAT,!1,0,0));if(0"!==c.name&&a.vertexAttribPointer(c.Cc,this.ja?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Fh[this.Ad]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Rj.subarray(0,this.gg));c&&0<=c.se&&""!==c.name&&a.vertexAttribPointer(c.se,2,a.FLOAT,!1,0,0)}for(var b,a=0,c=this.hd;ab||0>e)){var d=this.Gb();d.type=7;d.sb=1;d.L||(d.L=ic());d.L[0]=a;d.L[1]=c;d.L[2]=b;d.L[3]=e;this.pb=this.fb=!1}};b.prototype.Gp=function(a){if(this.ja&&(a=!!a,this.Og!==a)){var c=this.Gb();c.type=14;c.sb=a?1:0;this.pb=this.fb=!1;this.Og=a;this.zj=null;this.Og?this.Kb(2):this.Kb(0)}};b.prototype.Fp=function(a){if(this.ja){var c=this.Gb();c.type=13;c.sb=a?1:0;this.pb=this.fb=!1}};b.prototype.Tn=function(){jc(this.wl, v);this.sd();this.cd();var a=this.width/2,c=this.height/2;this.Wf(-a,c,a,c,a,-c,-a,-c);jc(v,this.mc);this.cd()};b.prototype.Ep=function(a,c,b){this.Kb(3);var e=this.Gb();e.type=12;e.L||(e.L=ic());e.L[0]=a;e.L[1]=c;e.L[2]=b;e.L[3]=1;this.pb=this.fb=!1};b.prototype.Mu=function(){this.Kb(0)};b.prototype.yu=function(){this.Kb(2)};b.prototype.qu=function(){this.je();this.m.flush()};var t=[],c={};b.prototype.rr=function(){P(t);c={}};b.prototype.Xi=function(a,b,k,e){b=!!b;k=!!k;var d=a.src+","+b+","+k+(b? ",undefined":""),q=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(d))return q=c[d],q.Zh++,q;this.je();var f=this.m,p=ja(a.width)&&ja(a.height),q=f.createTexture();f.bindTexture(f.TEXTURE_2D,q);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var r=f.RGBA,m=f.RGBA,g=f.UNSIGNED_BYTE;if(e&&!this.oe)switch(e){case 1:m=r=f.RGB;break;case 2:g=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:g=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:m=r=f.RGB,g=f.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!p&&b){e=document.createElement("canvas"); e.width=ka(a.width);e.height=ka(a.height);var h=e.getContext("2d");"undefined"!==typeof h.imageSmoothingEnabled?h.imageSmoothingEnabled=k:(h.webkitImageSmoothingEnabled=k,h.mozImageSmoothingEnabled=k,h.msImageSmoothingEnabled=k);h.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);f.texImage2D(f.TEXTURE_2D,0,r,m,g,e)}else f.texImage2D(f.TEXTURE_2D,0,r,m,g,a);b?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D, f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));k?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),(p||2<=this.version)&&this.Ln?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D, null);this.Qe=null;q.Be=a.width;q.Ae=a.height;q.Zh=1;q.wn=d;t.push(q);return c[d]=q};b.prototype.wc=function(a,c,b){var e;this.je();var d=this.m;this.oe&&(e=!1);var q=d.createTexture();d.bindTexture(d.TEXTURE_2D,q);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,c,0,d.RGBA,e?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,b?d.LINEAR:d.NEAREST); d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,b?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Qe=null;q.Be=a;q.Ae=c;t.push(q);return q};b.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Zh&&1=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}} function u(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function v(a,e,f,d){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=u;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=f}}catch(g){d(g)}}function t(a,e,f){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=u;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;var c=d.transaction(["saves"]).objectStore("saves").get(a); c.onsuccess=function(){c.result?e(c.result.data):e(null)}}}catch(c){f(c)}}function c(){fa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1g?(g*=e,5===b?(h=g*f/this.Ra,1h&&(h=1/Math.ceil(1/h)),g=this.Ra*h/f,h=this.Qa*h/f,d=(a-g)/2,c=(e-h)/2,a=g,e=h):(d=(a-g)/2,a=g)):(h=a/g,5=== b?(h=h*f/this.Qa,1h&&(h=1/Math.ceil(1/h)),g=this.Ra*h/f,h=this.Qa*h/f,d=(a-g)/2,c=(e-h)/2,a=g):c=(e-h)/2,e=h)):g&&0===b&&(d=Math.floor((a-this.Ra)/2),c=Math.floor((e-this.Qa)/2),a=this.Ra,e=this.Qa),2>b&&(this.sg=f),this.fi=Math.round(a),this.xg=Math.round(e),this.width=Math.round(a*f),this.height=Math.round(e*f),this.V=!0,this.oq?(this.C=this.width,this.B=this.height,this.fc=!0):this.widthg&&(this.B=this.C/b)):3===b&&(g=this.Ra/this.Qa,b=this.Hf/this.Gf,b>g?this.C=this.B*b:bd;)d++,a=q.shift(),this.Hp(a[0],a[1])};b.prototype.nq=function(a,f){a.cocoonLazyLoad=!0;a.onerror=function(f){e=a.vn=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",f)};this.Sc?a.src=f:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(f,function(e){a.src=e},function(d){e=a.vn=!0;console&&console.error&&console.error("Error extracting image '"+f+"' from expansion file: ",d)}):(a.crossOrigin= "anonymous",this.tu(a,f)));this.ng.push(a)};b.prototype.Js=function(a){var e,f;e=0;for(f=this.ng.length;e=h)h=5E4;a+=h;b.src&&(b.complete||b.loaded)&&!b.vn?e+=h:c=!1}c&&this.ou&&this.jf&&(p||(this.jf.Qu(),p=!0),d=this.jf.Xs(),e+=d,dthis.re&&(this.jc||500<=d&&this.xo!=this.Xc)){a.clearRect(0,0,g,b);var d=g/2,b=b/2,g=0===this.re&&this.qe.bj.complete,h=40*f,m=0, p=80*f,q;if(g){var k=this.qe.bj,p=k.width*f;q=k.height*f;h=p/2;m=q/2;a.drawImage(k,N(d-h),N(b-m),p,q)}1>=this.re?(d=N(d-h)+.5,b=N(b+(m+(g?12*f:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(d,b,Math.floor(p*this.Xc),6*f),a.strokeStyle="black",a.strokeRect(d,b,p,6*f),a.strokeStyle="white",a.strokeRect(d-1*f,b-1*f,p+2*f,8*f)):2===this.re&&(a.font=this.Sc?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.Hw="middle",f=Math.round(100*this.Xc)+"%",g=a.measureText?a.measureText(f):null,a.fillText(f, d-(g?g.width:0)/2,b));this.xo=this.Xc}else if(4===this.re){this.Xr(a);l?l(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.jc?10:100)}}};var m=-1,g="undefined"===typeof cr_is_preview?200:0,h=!0,R=!1,U=0,qa=0,V="undefined"===typeof cr_is_preview?3E3:0,O=null,H=null,F=0;b.prototype.Xr=function(a){if(!r){for(var f=Math.ceil(this.width),d=Math.ceil(this.height),c=this.qe.bj,b=this.qe.nu,p=this.qe.cv,q=0;4>q;++q)if(!c[q].complete||!b[q].complete||!p[q].complete)return; 0===F&&(m=Date.now());var q=Date.now(),n=!1,l=a,t,v;h||R?(a.clearRect(0,0,f,d),O&&O.width===f&&O.height===d||(O=document.createElement("canvas"),O.width=f,O.height=d,H=O.getContext("2d")),l=H,n=!0,h&&1===F&&(m=Date.now())):a.globalAlpha=1;l.fillStyle="#333333";l.fillRect(0,0,f,d);256=V&&!R&&1<=this.Xc&&(R=!0,qa=q);if(R&&q-qa>=300+g||"undefined"!==typeof cr_is_preview&&1<=this.Xc&&500>Date.now()-m)r=!0,R=h=!1,this.qe=H=O=null;++F}};b.prototype.qt=function(){this.ib&&(this.canvas.parentNode.removeChild(this.ib),this.ib=this.Wl=null);this.Mj=Date.now();this.Te=Wa();var a,e,f;if(this.Om)for(a=0,e=this.k.length;aa||2===this.wb&&ee&&(e=0),this.He=e/=1E3,.51/this.Vo&&(this.He=1/this.Vo));this.Si=a;this.Ge=this.He*this.ig;this.gb.add(this.Ge);this.Vd.add(e);a=(document.mozFullScreen|| document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Oi)&&!this.kc;2<=this.wb||a&&0e||2===d&&fa++;)this.In(this.tg);a=0;for(e=this.Ed.length;ae.ji.length&&e.ji.push(a)}; b.prototype.Dn=function(a,e,f,d){if(a.I){var c=N(Math.random()*a.Mf.length);return this.Dn(a.Mf[c],e,f,d)}return a.xc?this.he(a.xc,e,!1,f,d,!1):null};var L=[];b.prototype.he=function(a,e,f,d,c,b){var g,h,m,p;if(!a)return null;var q=this.k[a[1]],r=q.Ca.pe;if(this.Wg&&r&&!q.ol||r&&!this.q&&11===a[0][11])return null;var k=e;r||(e=null);var l;q.ji.length?(l=q.ji.pop(),l.Gc=!0,q.Ca.Ua.call(l,q)):(l=new q.Ca.Ua(q),l.Gc=!1);!f||b||this.Md.hasOwnProperty(a[2].toString())?l.uid=this.nh++:l.uid=a[2];this.Md[l.uid.toString()]= l;l.vp=this.Yo++;l.Oe=q.c.length;g=0;for(h=this.Pc.length;ga&&(a=0);a>=this.ba.J.length&&(a=this.ba.J.length-1);return this.ba.J[a]};b.prototype.tk= function(a){var e,f;e=0;for(f=a.length;e=this.Dl.length&& this.Dl.push([])};b.prototype.ku=function(){this.aj--};b.prototype.Wn=function(){return this.Dl[this.aj]};b.prototype.fm=function(a){this.ni++;this.ni>=this.Ek.length&&this.Ek.push(new Rb);var e=this.Wa();e.reset(a);return e};b.prototype.rp=function(){this.ni--};b.prototype.Wa=function(){return this.Ek[this.ni]};b.prototype.Xn=function(a,e){for(var f,d,g,c,b,h;e;){f=0;for(d=e.Jc.length;fc||c>=a.Ma.length||(b=g[d],null===b&&(b=NaN),a.Ma[c]=b));if(m.pe){c=e.w;a.e.P!==c.l&&(g=a.e,a.e=this.ba.Di(c.l),a.e?(g.Xf(a,!0),a.e.rg(a,!0),a.pa(),a.e.yh(0)):(a.e=g,f||this.wd(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.ed=c.zi;a.i=c.hasOwnProperty("a")? c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Rb=c.hasOwnProperty("hX")?c.hX:.5;a.Sb=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Ce=c.hasOwnProperty("ce")?c.ce:!0;a.mh=c.hasOwnProperty("mts")?c.mts:-1;a.lb=c.hasOwnProperty("bm")?c.bm:0;a.ug=gb(a.lb);this.m&&hb(a,a.lb,this.m);a.pa();if(c.hasOwnProperty("fx"))for(f=0,g=c.fx.length;fb||(a.Yd[b]=c.fx[f].active,a.xa[b]=c.fx[f].params);a.bd()}if(h=e.behs)for(d in h)h.hasOwnProperty(d)&&(f=this.Os(a, parseInt(d,10)),0>f||a.G[f].Bc(h[d]));e.data&&a.Bc(e.data)};b.prototype.Pn=function(a,e,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,f)},f)};b.prototype.Hs=function(a,e){this.Pn("data.js",function(f){var d=new FileReader;d.onload=function(e){a(e.target.result)};d.onerror=e;d.readAsText(f)},e)};var D=[],da=0;b.prototype.Gl=function(){if(D.length&&!(8<=da)){da++;var a=D.shift();this.Er(a.filename,a.Su,a.bs)}};b.prototype.Qn=function(a,e,f){var d= this;D.push({filename:a,Su:function(a){da--;d.Gl();e(a)},bs:function(a){da--;d.Gl();f(a)}});this.Gl()};b.prototype.Er=function(a,e,f){this.Pn(a,function(a){var f=new FileReader;f.onload=function(a){e(a.target.result)};f.readAsArrayBuffer(a)},f)};b.prototype.Is=function(a,e,f){var d="",c=a.toLowerCase(),g=c.substr(c.length-4),c=c.substr(c.length-5);".mp4"===g?d="video/mp4":".webm"===c?d="video/webm":".m4a"===g?d="audio/mp4":".mp3"===g&&(d="audio/mpeg");this.Qn(a,function(a){a=URL.createObjectURL(new Blob([a], {type:d}));e(a)},f)};b.prototype.Dt=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};b.prototype.Hp=function(a,e){this.Pi&&!this.Dt(e)?this.Is(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};b.prototype.Dj=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Tb=function(a){return new b(document.getElementById(a))}; Ub=function(a,e){return new b({dc:!0,width:a,height:e})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.lk=!0;document.body.appendChild(a);a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight); return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(b,k){var n=window.cr_getC2Runtime();n&&n.Br(b,k)}; window.cr_sizeCanvas=function(b,k){if(0!==b&&0!==k){var n=window.cr_getC2Runtime();n&&n.setSize(b,k)}};window.cr_setSuspended=function(b){var k=window.cr_getC2Runtime();k&&k.setSuspended(b)}; (function(){function b(a,d){this.b=a;this.Je=null;this.scrollX=this.b.Ra/2;this.scrollY=this.b.Qa/2;this.scale=1;this.i=0;this.tf=!0;this.name=d[0];this.gu=d[1];this.fu=d[2];this.width=d[1];this.height=d[2];this.dq=d[3];this.Np=d[4];this.P=d[5];var c=d[6],f,b;this.J=[];this.Lg=[];f=0;for(b=c.length;f=this.J.length&&(g=this.J.length-1);r.e=this.J[g];-1===r.e.c.indexOf(r)&&r.e.c.push(r);r.e.df=!0}if(!c)for(a=0,b=this.J.length;ab?r.siblings.push(m.c[b]):m.xc&&(p=this.b.he(m.xc,r.e,!0,r.x,r.y,!0),this.b.kb(),m.Yj(),r.siblings.push(p),t.push(p)));a=0;for(b=this.ne.length;a< b;a++)r=this.ne[a],d=this.b.k[r[1]],d.Fb||this.b.he(this.ne[a],null,!0);this.b.tg=null;this.b.kb();if(this.b.wa&&!this.b.ya)for(a=0,b=this.b.k.length;athis.width- d&&(a=this.width-d);athis.height-d&&(a=this.height-d);aw&&(w=0);0>C&&(C=0);K>J&&(K=J);G>D&&(G=D);0>M&&(M=0);0>E&&(E=0);na>J&&(na=J);W>D&&(W=D);A.left=w/J;A.top=1-C/D;A.right=K/J;A.bottom=1-G/D}else A.left=y.left=0,A.top=y.top=0,A.right=y.right=1,A.bottom=y.bottom=1;aa=c&&(a.uh(b[0].Ha)||0!==u||0!==aa||1!==c.opacity||c.type.Ca.Wo)||d&&!c&&1!== d.opacity;a.Dp();if(aa){n[I]||(n[I]=a.wc(J,D,this.b.za));if(n[I].Be!==J||n[I].Ae!==D)a.deleteTexture(n[I]),n[I]=a.wc(J,D,this.b.za);a.Kb(0);a.Hc(n[I]);Q=W-E;a.clearRect(M,D-E-Q,na-M,Q);c?c.Qb(a):(a.oc(this.b.Na),a.Zf(d.opacity),a.sd(),a.translate(-da,-z),a.cd(),a.$e(w,G,K,G,K,C,w,C,A));y.left=y.top=0;y.right=y.bottom=1;c&&(x=A.top,A.top=A.bottom,A.bottom=x);I=1;L=0}a.Zf(1);u=b.length-1;var sa=a.cm(b[u].Ha)||!d&&!c&&!this.b.fc;t=x=0;for(v=b.length;tc||(d&&this.tc&&a.Hb&&a.Hb.right>=a.Hb.left&&(a.ma(),this.jb.update(a,a.Hb,null),a.Hb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(ya(this.c,c),this.yh(c)),this.Zc=!0)};n.prototype.rg=function(a,d){a.ed= this.c.length;this.c.push(a);d&&this.tc&&a.Hb&&a.pa();this.Zc=!0};n.prototype.pu=function(a){this.c.unshift(a);this.yh(0)};n.prototype.Wt=function(a,d,c){var f=a.zc();d=d.zc();ya(this.c,f);fthis.ha||c.top>this.ga||(d.globalCompositeOperation=a.ug,a.kd(d))}};n.prototype.$j=function(){this.Dd=!0;var a=this.Ka(0,0,!0,!0),d=this.Ka(0,0,!1,!0);this.Dd=!1;this.b.Od&&(a=Math.round(a),d=Math.round(d)); this.Aj(a,d,null)};n.prototype.Aj=function(a,d,c){var f=this.hc();this.Z=a;this.aa=d;this.ha=a+1/f*this.b.C;this.ga=d+1/f*this.b.B;this.Z>this.ha&&(a=this.Z,this.Z=this.ha,this.ha=a);this.aa>this.ga&&(a=this.aa,this.aa=this.ga,this.ga=a);a=this.eb();0!==a&&(c&&(c.translate(this.b.C/2,this.b.B/2),c.rotate(-a),c.translate(this.b.C/-2,this.b.B/-2)),this.Td.set(this.Z,this.aa,this.ha,this.ga),this.Td.offset((this.Z+this.ha)/-2,(this.aa+this.ga)/-2),this.Zp.Lp(this.Td,a),this.Zp.un(this.Td),this.Td.offset((this.Z+ this.ha)/2,(this.aa+this.ga)/2),this.Z=this.Td.left,this.aa=this.Td.top,this.ha=this.Td.right,this.ga=this.Td.bottom)};n.prototype.pf=function(a){if(this.rd=this.xi){this.b.Na||(this.b.Na=a.wc(this.b.C,this.b.B,this.b.za));if(this.b.Na.Be!==this.b.C||this.b.Na.Ae!==this.b.B)a.deleteTexture(this.b.Na),this.b.Na=a.wc(this.b.C,this.b.B,this.b.za);a.Hc(this.b.Na)}this.Dd=!0;var d=this.Ka(0,0,!0,!0),c=this.Ka(0,0,!1,!0);this.Dd=!1;this.b.Od&&(d=Math.round(d),c=Math.round(c));this.Aj(d,c,null);d=this.hc(); a.sd();a.scale(d,d);a.mm(-this.eb());a.translate((this.Z+this.ha)/-2,(this.aa+this.ga)/-2);a.cd();this.tc?(this.bb.left=this.jb.Bb(this.Z),this.bb.top=this.jb.Cb(this.aa),this.bb.right=this.jb.Bb(this.ha),this.bb.bottom=this.jb.Cb(this.ga),this.Zc||!this.bb.yg(this.If)?(v(this.Kd),d=this.Uk(),this.Zc=!1,this.If.lf(this.bb)):d=this.Kd):d=this.c;for(var f,b=null,c=d.length-1;0<=c;--c)f=d[c],f!==b&&(this.Vr(d[c],a),b=f);this.tc&&(this.Kd=d);this.ad||(this.uk=this.b.Ie++,a.Ej(this.uk),a.Ep(1,1,1),a.Tn(), a.yu())};n.prototype.Qb=function(a){var d=0,c=0;if(this.rd=this.xi||1!==this.opacity||0this.ha||c.top>this.ga||(d.Ej(a.Ie),a.kq?this.Wr(a,d):(d.Kb(0),d.ue(a.rb,a.ob),a.Qb(d)))}};n.prototype.Vr=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ra;c.rightthis.ha||c.top>this.ga||(a.Ie=this.b.Ie++,0===a.lb&& 1===a.opacity&&a.Qd&&a.pf&&(d.Ej(a.Ie),a.pf(d)))}};n.prototype.Wr=function(a,d){var c=a.U[0].Ha,f=a.U[0].index,b=this.hc();if(1!==a.U.length||d.cm(c)||d.ru(c)||(a.i||a.e.eb())&&d.uh(c)||1!==a.opacity||a.type.Ca.Wo)this.Oa.jm(d,this,a,this.rd?this.b.Na:this.Oa.Fg()),d.sd(),d.scale(b,b),d.mm(-this.eb()),d.translate((this.Z+this.ha)/-2,(this.aa+this.ga)/-2),d.cd();else{d.Kb(c);d.ue(a.rb,a.ob);d.wj(c)&&(this.b.V=!0);var r=0,m=0,g=0,h=0;d.uh(c)&&(h=a.ra,r=this.xb(h.left,h.top,!0,!0),m=this.xb(h.left,h.top, !1,!0),g=this.xb(h.right,h.bottom,!0,!0),h=this.xb(h.right,h.bottom,!1,!0),r=r/windowWidth,m=1-m/windowHeight,g=g/windowWidth,h=1-h/windowHeight);var l;a.ab&&a.ab.la?(l=a.ab.la,c=1/l.width,l=1/l.height):(c=1/a.width,l=1/a.height);d.$f(this.rd?this.b.Na:this.Oa.Fg(),c,l,r,m,g,h,b,this.eb(),this.Z,this.aa,(this.Z+this.ha)/2,(this.aa+this.ga)/2,this.b.gb.K,a.xa[f]);a.Qb(d)}};n.prototype.Ka=function(a,c,b,f){var p=this.b.devicePixelRatio;this.b.Pe&&(a*=p,c*=p);var p=this.b.mp,r=this.b.np,p=(this.Oa.scrollX- p)*this.Ec+p,r=(this.Oa.scrollY-r)*this.Fc+r,m=p,g=r,h=1/this.hc(!f);f?(m-=this.b.C*h/2,g-=this.b.B*h/2):(m-=this.b.width*h/2,g-=this.b.height*h/2);m+=a*h;g+=c*h;c=this.eb();0!==c&&(m-=p,g-=r,a=Math.cos(c),c=Math.sin(c),f=m*a-g*c,g=g*a+m*c,m=f+p,g+=r);return b?m:g};n.prototype.xb=function(a,c,b,f){var p=this.b.mp,r=this.b.np,m=(this.Oa.scrollX-p)*this.Ec+p,g=(this.Oa.scrollY-r)*this.Fc+r,r=m,p=g,h=this.eb();if(0!==h){a-=m;c-=g;var l=Math.cos(-h),h=Math.sin(-h),k=a*l-c*h;c=c*l+a*h;a=k+m;c+=g}m=1/this.hc(!f); f?(r-=this.b.C*m/2,p-=this.b.B*m/2):(r-=this.b.width*m/2,p-=this.b.height*m/2);r=(a-r)/m;p=(c-p)/m;a=this.b.devicePixelRatio;this.b.Pe&&!f&&(r/=a,p/=a);return b?r:p};n.prototype.Wb=function(){var a,c,b,f={s:this.scale,a:this.i,vl:this.Z,vt:this.aa,vr:this.ha,vb:this.ga,v:this.visible,bc:this.Nc,t:this.ad,px:this.Ec,py:this.Fc,o:this.opacity,zr:this.fd,fx:[],cg:this.wg,instances:[]};a=0;for(c=this.H.length;aa[1].index&&(f=a[0],a[0]=a[1],a[1]=f):2=p.length&&(p.length=a.length+1);p[a.length]||(p[a.length]=[]);e=p[a.length];f=0;for(c=e.length;f=f.length&&(f.length=this.We+1),f[this.We]=a): this.data=a};d.prototype.bt=function(){var a=this.b.Wn();return!this.parent||this.Vg||!a||this.Qi?this.data:this.We>=a.length||"undefined"===typeof a[this.We]?this.dl:a[this.We]};d.prototype.Ta=function(){!this.parent||this.Vg||this.Qi||this.Hj(this.dl)};Sb=d;q.prototype.toString=function(){return"include:"+this.Kg.toString()};q.prototype.Da=function(){this.Kg=this.b.Fk[this.yt];this.sheet.co.add(this);this.qa=n(this.qa);for(var a=this.parent;a;)a.group&&a.di.push(this),a=a.parent;this.gq()};q.prototype.Ta= function(){this.parent&&this.b.vh(this.b.k);this.Kg.$k||this.Kg.Ta(!0);this.parent&&this.b.Vf(this.b.k)};q.prototype.gq=function(){for(var a=this.parent;a;){if(a.group&&!a.Hg){this.Va=!1;return}a=a.parent}this.Va=!0};bc=q;f.prototype.reset=function(a){this.tb=a;this.Db=this.Eb=0;P(this.Vp);this.Dk=this.Se=!1};Rb=f})(); (function(){function b(c,a){this.ka=c;this.b=c.b;this.type=a[0];this.get=[this.ts,this.ps,this.Cs,this.Fs,this.cs,this.Ds,this.xs,this.ms,this.ws,this.Bs,this.ds,this.As,this.ns,this.ys,this.us,this.vs,this.qs,this.rs,this.ls,this.Es,this.zs,this.ss,this.ks,this.os][this.type];var b=null;this.Ld=this.M=this.Aa=this.cb=this.Sj=this.second=this.first=this.value=null;this.Oc=-1;this.Rc=null;this.lq=-1;this.Ke=this.Jh=null;this.Yf=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= new $b(c,a[1]);break;case 18:this.first=new $b(c,a[1]);this.second=new $b(c,a[2]);this.Sj=new $b(c,a[3]);break;case 19:this.cb=this.b.Xd(a[1]);this.cb!==X.prototype.ub.random&&this.cb!==X.prototype.ub.qr||this.ka.Jp();this.Aa=[];this.M=[];3===a.length?(b=a[2],this.Aa.length=b.length+1):this.Aa.length=1;break;case 20:this.Ld=this.b.k[a[1]];this.Oc=-1;this.cb=this.b.Xd(a[2]);this.Yf=a[3];ec.Function&&this.cb===ec.Function.prototype.ub.mv&&this.ka.Jp();a[4]?this.Rc=new $b(c,a[4]):this.Rc=null;this.Aa= [];this.M=[];6===a.length?(b=a[5],this.Aa.length=b.length+1):this.Aa.length=1;break;case 21:this.Ld=this.b.k[a[1]];this.Yf=a[2];a[3]?this.Rc=new $b(c,a[3]):this.Rc=null;this.lq=a[4];break;case 22:this.Ld=this.b.k[a[1]];this.Ld.Bi(a[2]);this.Oc=this.Ld.Ok(a[2]);this.cb=this.b.Xd(a[3]);this.Yf=a[4];a[5]?this.Rc=new $b(c,a[5]):this.Rc=null;this.Aa=[];this.M=[];7===a.length?(b=a[6],this.Aa.length=b.length+1):this.Aa.length=1;break;case 23:this.Jh=a[1],this.Ke=null}this.ka.Ut(this.Ld);4<=this.type&&17>= this.type&&(this.first=new $b(c,a[1]),this.second=new $b(c,a[2]));if(b){var k,e;k=0;for(e=b.length;k=a||q<=-a)q%=a;0>q&&(q+=a);d.apply(p[q],b)};b.prototype.ks=function(c){var a=this.Ld,b=this.Aa,v=this.M,e=this.Rc,d=this.Oc,q=this.cb,f=this.ka.Rd,p=a.Y(),r=p.Qc();if(!r.length)if(p.N.length)r=p.N;else{this.Yf?c.Xb(""):c.fa(0);return}b[0]=c;c.Ye=a;c=k();n(v,b,c);e&&(e.get(c),c.Xa()&&(f=c.data,r=a.c));--t;v=r.length;if(f>=v||f<=-v)f%=v;0>f&&(f+=v);f=r[f];r=0;a.I&&(r=f.type.sf[a.Fd]);q.apply(f.G[d+r],b)};b.prototype.ss=function(c){var a=this.Rc,b=this.Ld,n=this.lq,e=this.ka.Rd, d=b.Y(),q=d.Qc();if(!q.length)if(d.N.length)q=d.N;else{this.Yf?c.Xb(""):c.fa(0);return}if(a){d=k();a.get(d);if(d.Xa()){e=d.data;q=b.c;0!==q.length&&(e%=q.length,0>e&&(e+=q.length));e=b.Rk(e);b=e.Ma[n];B(b)?c.Xb(b):c.A(b);--t;return}--t}a=q.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=q[e];q=0;b.I&&(q=e.type.qi[b.Fd]);b=e.Ma[n+q];B(b)?c.Xb(b):c.A(b)};b.prototype.ts=function(c){c.type=cc.ff;c.data=this.value};b.prototype.ps=function(c){c.type=cc.ef;c.data=this.value};b.prototype.Cs=function(c){c.type=cc.String; c.data=this.value};b.prototype.Fs=function(c){this.first.get(c);c.Xa()&&(c.data=-c.data)};b.prototype.cs=function(c){this.first.get(c);var a=k();this.second.get(a);c.Xa()&&a.Xa()&&(c.data+=a.data,a.Bf()&&c.Kf());--t};b.prototype.Ds=function(c){this.first.get(c);var a=k();this.second.get(a);c.Xa()&&a.Xa()&&(c.data-=a.data,a.Bf()&&c.Kf());--t};b.prototype.xs=function(c){this.first.get(c);var a=k();this.second.get(a);c.Xa()&&a.Xa()&&(c.data*=a.data,a.Bf()&&c.Kf());--t};b.prototype.ms=function(c){this.first.get(c); var a=k();this.second.get(a);c.Xa()&&a.Xa()&&(c.data/=a.data,c.Kf());--t};b.prototype.ws=function(c){this.first.get(c);var a=k();this.second.get(a);c.Xa()&&a.Xa()&&(c.data%=a.data,a.Bf()&&c.Kf());--t};b.prototype.Bs=function(c){this.first.get(c);var a=k();this.second.get(a);c.Xa()&&a.Xa()&&(c.data=Math.pow(c.data,a.data),a.Bf()&&c.Kf());--t};b.prototype.ds=function(c){this.first.get(c);var a=k();this.second.get(a);a.Ef()||c.Ef()?this.gs(c,a):this.es(c,a);--t};b.prototype.gs=function(c,a){c.Ef()&& a.Ef()?this.js(c,a):this.hs(c,a)};b.prototype.js=function(c,a){c.data+=a.data};b.prototype.hs=function(c,a){c.Ef()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.Xb(c.data.toString()+a.data)};b.prototype.es=function(c,a){c.fa(c.data&&a.data?1:0)};b.prototype.As=function(c){this.first.get(c);var a=k();this.second.get(a);c.Xa()&&a.Xa()&&(c.data||a.data?c.fa(1):c.fa(0));--t};b.prototype.ls=function(c){this.first.get(c);c.data?this.second.get(c):this.Sj.get(c)};b.prototype.ns=function(c){this.first.get(c); var a=k();this.second.get(a);c.fa(c.data===a.data?1:0);--t};b.prototype.ys=function(c){this.first.get(c);var a=k();this.second.get(a);c.fa(c.data!==a.data?1:0);--t};b.prototype.us=function(c){this.first.get(c);var a=k();this.second.get(a);c.fa(c.dataa.data?1:0);--t};b.prototype.rs=function(c){this.first.get(c); var a=k();this.second.get(a);c.fa(c.data>=a.data?1:0);--t};b.prototype.os=function(c){var a=this.Ke.bt();ia(a)?c.A(a):c.Xb(a)};$b=b;u.prototype.Bf=function(){return this.type===cc.ef};u.prototype.Xa=function(){return this.type===cc.ff||this.type===cc.ef};u.prototype.Ef=function(){return this.type===cc.String};u.prototype.Kf=function(){this.Bf()||(this.Ef()&&(this.data=parseFloat(this.data)),this.type=cc.ef)};u.prototype.fa=function(c){this.type=cc.ff;this.data=Math.floor(c)};u.prototype.A=function(c){this.type= cc.ef;this.data=c};u.prototype.Xb=function(c){this.type=cc.String;this.data=c};u.prototype.Nu=function(c){ia(c)?(this.type=cc.ef,this.data=c):B(c)?(this.type=cc.String,this.data=c.toString()):(this.type=cc.ff,this.data=0)};Zb=u;cc={ff:0,ef:1,String:2}})();function X(b){this.b=b;this.Nb=[]} X.prototype.Wb=function(){var b={},k,n,u,v,t,c,a,l;b.waits=[];var x=b.waits,e;k=0;for(n=this.Nb.length;kc)){var a,b,k,e=this.b.Wa(),d;v.length?d=v.pop():d={zb:{},qa:[]};d.Ak=!1;d.time=this.b.gb.K+ c;d.Qp="";d.vm=!1;d.qf=e.tb;d.Db=e.Db+1;c=0;for(a=this.b.k.length;ce&&(a=e);c.A(a)};n.prototype.Ge=function(c){c.A(this.b.Ge)};n.prototype.ig=function(c){c.A(this.b.ig)};n.prototype.time=function(c){c.A(this.b.gb.K)};n.prototype.Gh=function(c){c.fa(this.b.Gh)};n.prototype.gj=function(c){c.fa(this.b.gj)};n.prototype.Kk=function(c){c.fa(this.b.Kk)};n.prototype.i=function(c,a,b,k,e){c.A(Ga(La(a,b,k,e)))};n.prototype.left=function(c,a,b){c.Xb(B(a)?a.substr(0,b):"")};n.prototype.right=function(c,a,b){c.Xb(B(a)?a.substr(a.length- b):"")};n.prototype.replace=function(c,a,b,k){B(a)&&B(b)&&B(k)?c.Xb(a.replace(new RegExp(ab(b),"gi"),k)):c.Xb(B(a)?a:"")};n.prototype.trim=function(c,a){c.Xb(B(a)?a.trim():"")};n.prototype.qr=function(c){var a=N(Math.random()*(arguments.length-1));c.Nu(arguments[a+1])};n.prototype.vk=function(c){c.A(this.b.vk/1E3)};n.prototype.Zi=function(c){c.A(this.b.Zi)};u.ub=new n;u.Au=function(){var c,a,b,k,e,d,n=this.b.Wa();c=0;for(b=this.Nb.length;c this.b.gb.K)continue;n.tb=k.qf;n.Db=k.Db;n.Eb=0;for(a in k.zb)k.zb.hasOwnProperty(a)&&(e=this.b.k[parseInt(a,10)].Y(),d=k.zb[a],e.ca=d.Bj,Aa(e.c,d.Hd),e=d,P(e.Hd),t.push(e));k.qf.zu();this.b.tk(k.qa);k.Ak=!0}a=c=0;for(b=this.Nb.length;ca.ha||c.top>a.ga)},e.yv=function(){this.ma();var a=this.ra,c=this.b.ba;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},e.Kv=function(a,c,d){var e=this.Y(), b=e.Qc();if(!b.length)return!1;var h=b[0],k=h,l=Sa(h.x,h.y,c,d),n,t,q;n=1;for(t=b.length;nl)l=q,k=h;e.th(k);return!0},d.dw=function(a){this.x!==a&&(this.x=a,this.pa())},d.ew=function(a){this.y!==a&&(this.y=a,this.pa())},d.Uq=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.pa()},d.Zv=function(a,c){var d=a.Ws(this);if(d){var e;d.Dg?(e=d.Dg(c,!0),d=d.Dg(c,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.pa()}}, d.Dv=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.pa())},d.Cv=function(a,c){0!==c&&(this.x+=Math.cos(T(a))*c,this.y+=Math.sin(T(a))*c,this.pa())},q.en=function(a){a.A(this.x)},q.gn=function(a){a.A(this.y)},q.Ge=function(a){a.A(this.b.Ci(this))});t&&(e.qv=function(a,c){return dc(this.width,a,c)},e.nv=function(a,c){return dc(this.height,a,c)},d.cw=function(a){this.width!==a&&(this.width=a,this.pa())},d.Wv=function(a){this.height!==a&&(this.height=a,this.pa())},d.$v= function(a,c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.pa()},q.iw=function(a){a.A(this.width)},q.tv=function(a){a.A(this.height)},q.jv=function(a){this.ma();a.A(this.ra.left)},q.lv=function(a){this.ma();a.A(this.ra.top)},q.kv=function(a){this.ma();a.A(this.ra.right)},q.iv=function(a){this.ma();a.A(this.ra.bottom)});c&&(e.pq=function(a,c){return Ma(this.i,T(c))<=T(a)},e.zq=function(a){return Oa(this.i,T(a))},e.yq=function(a,c){var d=Ka(a),e=Ka(c),b=Ia(this.i);return Oa(e, d)?Oa(b,d)&&!Oa(b,e):!(!Oa(b,d)&&Oa(b,e))},d.Sv=function(a){a=T(Ha(a));isNaN(a)||this.i===a||(this.i=a,this.pa())},d.Ov=function(a){0===a||isNaN(a)||(this.i+=T(a),this.i=Ia(this.i),this.pa())},d.Pv=function(a){0===a||isNaN(a)||(this.i-=T(a),this.i=Ia(this.i),this.pa())},d.Qv=function(a,c){var d=Na(this.i,T(c),T(a));isNaN(d)||this.i===d||(this.i=d,this.pa())},d.Rv=function(a,c,d){a=Na(this.i,Math.atan2(d-this.y,c-this.x),T(a));isNaN(a)||this.i===a||(this.i=a,this.pa())},d.aw=function(a,c){var d=Math.atan2(c- this.y,a-this.x);isNaN(d)||this.i===d||(this.i=d,this.pa())},q.hv=function(a){a.A(Ja(this.i))});u||(e.ov=function(a,c,d){return dc(this.Ma[a],c,d)},e.vv=function(a){return this.Ma[a]},e.Lv=function(a,c){var d=this.Y(),e=d.Qc();if(!e.length)return!1;var b=e[0],h=b,k=b.Ma[c],l,n,t;l=1;for(n=e.length;lk)k=t,h=b;d.th(h);return!0},e.Jv=function(a){var c,d,e,b,h;if(this.b.Vn().Ki){h=this.Y();if(h.ca)for(h.ca=!1,P(h.c),P(h.N),e=this.c,c=0,d=e.length;ca?a=0:1b.e.index||e.e.index===b.e.index&&e.zc()>b.zc())b=e}else if(e.e.indexd)){var e=1===a;this.Yd[d]!==e&&(this.Yd[d]=e,this.bd(),this.b.V=!0)}}},d.Vv=function(a,c,d){if(this.b.q){var e=this.type.Qk(a);0>e||(a=this.type.H[e],e=this.xa[e],c=Math.floor(c),0>c||c>=e.length||(1===this.b.q.$s(a.Ha,c)&&(d/=100),e[c]!==d&&(e[c]=d,a.Va&&(this.b.V=!0))))}})};Jb=function(){this.pk=this.Yh=!0;this.type.Sh=!0;this.b.V=!0;var b,n,u=this.mk;b=0;for(n=u.length;bu;case 5:return b>=u;default:return!1}}})();var mc={};function pc(b){this.b=b} (function(){function b(a){-1===cb.indexOf(a)&&cb.push(a)}function k(a){var c=a.d,d;try{d=c.play()}catch(f){b(a);return}d?d.catch(function(){b(a)}):uc&&!D.lc&&b(a)}function n(){var a,c,d,f;vc||sb||!w||(u(),"running"===w.state&&(vc=!0));var e=cb.slice(0);P(cb);if(!G)for(a=0,c=e.length;aa&&(a=0);1a&&(a=0);1a&&(a=.01);this.vj.gain.value=a;this.uj.gain.value=Math.pow(1/a,.6)*c};U.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=ae;++e)f=e/32768,f=this.shape(f,b,d),this.ii[32768+e]=f,this.ii[32768-e-1]=-f};U.prototype.vc=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)};U.prototype.remove=function(){this.R.disconnect();this.vj.disconnect();this.bk.disconnect();this.uj.disconnect();this.F.disconnect();this.D.disconnect()};U.prototype.gc=function(){return this.R};qa.prototype.vc= function(a){this.T.disconnect();this.T.connect(a)};qa.prototype.remove=function(){this.T.disconnect()};qa.prototype.gc=function(){return this.T};V.prototype.Ia=function(){this.T.getFloatFrequencyData(this.Ks);this.T.getByteTimeDomainData(this.Op);for(var a=this.T.fftSize,c=0,b=this.sh=0,d=0;cd&&(d=-d),this.shc&&(b=c);return b};F.prototype.Rg=function(){return!this.Tb&&!this.md&&!this.Jb&&!this.Ne()};F.prototype.Ou=function(){return!this.md&&!this.Jb&&!this.Ne()};F.prototype.Yu=function(){var a=this.volume* W;isFinite(a)||(a=0);switch(this.O){case 0:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a);break;case 1:1===this.buffer.O?this.La.gain.value=a*this.Nf:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a)}};F.prototype.mi=function(a){switch(this.O){case 0:this.d.muted!==!!a&&(this.d.muted=!!a);break;case 1:1===this.buffer.O?(this.Nf=a?0:1,this.La.gain.value=W*this.volume*this.Nf):this.d.muted!==!!a&&(this.d.muted=!!a)}};F.prototype.Ju=function(){this.Cf= !0;this.mi(this.Cf||this.Ug)};F.prototype.Ip=function(a){this.Ug=!!a;this.mi(this.Cf||this.Ug)};F.prototype.Zj=function(){var a=this.playbackRate;this.zf&&(a*=D.ig);switch(this.O){case 0:this.d.playbackRate!==a&&(this.d.playbackRate=a);break;case 1:1===this.buffer.O?this.d.playbackRate.value!==a&&(this.d.playbackRate.value=a):this.d.playbackRate!==a&&(this.d.playbackRate=a)}};F.prototype.Lu=function(a){switch(this.O){case 0:a?this.Rg()?(this.nc=!0,this.d.pause()):this.nc=!1:this.nc&&(this.d.play(), this.nc=!1);break;case 1:a?this.Rg()?(this.nc=!0,1===this.buffer.O?(this.Ib=this.Tk(!0),this.od&&(this.Ib=this.Ib%this.Le()),d(this.d)):this.d.pause()):this.nc=!1:this.nc&&(1===this.buffer.O?(this.d=w.createBufferSource(),this.d.buffer=this.buffer.S,this.d.connect(this.La),this.d.onended=this.Ul,this.Qh=this.d,this.d.loop=this.od,this.La.gain.value=W*this.volume*this.Nf,this.Zj(),this.startTime=(this.zf?D.gb.K:D.Vd.K)-this.Ib/(this.playbackRate||.001),e(this.d,this.Ib,this.Le())):this.d.play(),this.nc= !1);break;case 2:a?this.Rg()?(this.d.pause(),this.nc=!0):this.nc=!1:this.nc&&(this.nc=!1,this.d.play())}};J.Ua=function(a){this.type=a;D=this.b=a.b;da=this;this.Ub=null;this.bh=-600;this.b.Pi&&(db=!0);!(this.b.Ff||this.b.Ng&&(this.b.kl||this.b.Li))||this.b.Ni||this.b.ya||this.b.lo||db||(uc=!0);w=null;"undefined"!==typeof AudioContext?(y=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(y=1,w=new webkitAudioContext);this.b.Ff&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext? w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==y&&(this.b.kc&&"undefined"!==typeof window.Media?y=2:this.b.no&&(y=3));2===y&&(A=location.href,a=A.lastIndexOf("/"),-1"!==c&&(a.sj=c,a.El=d,a.Pm=f),null;g=new F(a,c);C.push(g);return g};var ta=[];Z.prototype.Oh=function(a){return jb(z,a)};J.j=new Z;Q.prototype.Play=function(a,c,b,d){!G&&(b=v(b),E=this.Nk(this.b.si+a[0]+(K?".ogg":".m4a"), d,a[1],0!==c,b))&&(E.Fj(!1),E.play(0!==c,b,0,this.ej),this.ej=0)};Q.prototype.Rq=function(a,c,b,d,f){!G&&(d=v(d),E=this.Nk(this.b.si+c.toLowerCase()+(K?".ogg":".m4a"),f,1===a,0!==b,d))&&(E.Fj(!1),E.play(0!==b,d,0,this.ej),this.ej=0)};Q.prototype.Xq=function(a){I(a);var c;a=0;for(c=ta.length;athis.size?this.Va=!1:(0!==k.Zg&&(this.i+=Math.random()*k.Zg*b-k.Zg*b/2),0!==k.ah&&(this.speed+=Math.random()*k.ah*b-k.ah*b/2),0!==k.$g&&(this.opacity+=Math.random()*k.$g*b-k.$g*b/2,0>this.opacity?this.opacity=0:1=k.of&&this.ae>=k.timeout&&(this.Va=!1),2===k.of&& 0>=this.speed&&(this.Va=!1))};b.prototype.kd=function(b){var k=this.ka.opacity*this.opacity;if(0!==k){0===this.ka.of&&(k*=1-this.ae/this.ka.timeout);b.globalAlpha=k;var k=this.x-this.size/2,c=this.y-this.size/2;this.ka.b.Od&&(k=k+.5|0,c=c+.5|0);b.drawImage(this.ka.type.la,k,c,this.size,this.size)}};b.prototype.Qb=function(b){var k=this.ka.opacity*this.opacity;0===this.ka.of&&(k*=1-this.ae/this.ka.timeout);var c=this.size,a=c*this.ka.op,l=this.x-c/2,n=this.y-c/2;this.ka.b.Od&&(l=l+.5|0,n=n+.5|0);1> a||0===k||(ab.Fl?(b.Zf(k),b.Wf(l,n,l+c,n,l+c,n+c,l,n+c)):b.ju(this.x,this.y,a,k))};b.prototype.left=function(){return this.x-this.size/2};b.prototype.right=function(){return this.x+this.size/2};b.prototype.top=function(){return this.y-this.size/2};b.prototype.bottom=function(){return this.y+this.size/2};k.Ua=function(b){this.type=b;this.b=b.b};var n=k.Ua.prototype,u=[];n.ua=function(){var b=this.ea;this.yj=b[0];this.Lj=T(b[1]);this.dg=b[2];this.wm=!0;this.hl=b[3];this.gl=b[4];this.fl=b[5]/ 100;this.Yk=b[6];this.ck=b[7];this.dk=b[8];this.Kj=b[9];this.Jj=b[10];this.Ii=b[11];this.gk=b[12];this.Mk=b[13];this.Zg=b[14];this.ah=b[15];this.$g=b[16];this.of=b[17];this.timeout=b[18];this.Ze=0;this.op=1;this.oj=this.x;this.qj=this.y;this.pj=this.x;this.nj=this.y;this.hr(function(b){b.ra.set(b.oj,b.qj,b.pj,b.nj);b.ac.bg(b.ra);b.Yh=!1;b.Nm();b.jq()});this.Gc||(this.yb=[]);this.b.Uj(this);this.type.zl();if(1===this.dg)for(b=0;bthis.pj&&(this.pj=a.right()),a.top()this.nj&&(this.nj= a.bottom()),l++):u.push(a);za(this.yb,l);this.pa();this.wi=!1;1===this.dg&&0===this.yb.length&&this.b.wd(this)};n.kd=function(b){var k,c,a,l=this.e;k=0;for(c=this.yb.length;k=l.Z&&a.bottom()>=l.aa&&a.left()<=l.ha&&a.top()<=l.ga&&a.kd(b)};n.Qb=function(b){this.op=this.e.hc();b.oc(this.type.$a);var k,c,a,l=this.e;k=0;for(c=this.yb.length;k=l.Z&&a.bottom()>=l.aa&&a.left()<=l.ha&&a.top()<=l.ga&&a.Qb(b)};k.j=new function(){};k.Ja=new function(){}; k.ub=new function(){}})();function oc(b){this.b=b} (function(){function b(){if(0===this.yk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.eg?c.drawImage(this.la,this.Pf,this.Qf,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.la,0,0,this.width,this.height);this.yk=a.toDataURL("image/png")}return this.yk}function k(){}function n(){}function u(){}var v=oc.prototype;v.Ab=function(a){this.Ca=a;this.b=a.b};var t=v.Ab.prototype;t.ua=function(){if(!this.I){var a,c,d, e,g,h,k,l,n;this.Mc=[];this.Jg=!1;a=0;for(c=this.Ob.length;athis.u&&(this.u=0);this.u>=this.na.frames.length&&(this.u=this.na.frames.length-1);var a=this.na.frames[this.u];this.W.zh(a.tj);this.Rb=a.Rb;this.Sb=a.Sb;this.mf=this.na.speed;this.ie=this.na.lm;1===this.type.Ob.length&&1===this.type.Ob[0].frames.length||0===this.mf||(this.b.Uj(this),this.ql=!0);this.Gc?this.gd.reset(): this.gd=new $a;this.Gd=this.gd.K;this.ye=!0;this.xd=0;this.xe=!0;this.bi=this.pn="";this.zn=0;this.sk=-1;this.type.zl();var c,b,d,e,h,k,l,a=0;for(c=this.type.Ob.length;athis.u&&(this.u=0);this.u>=this.na.frames.length&&(this.u=this.na.frames.length-1);this.mf=a.cas;this.Gd=a.fs;this.xd=a.ar;this.gd.reset();this.gd.K=a.at;this.ye=a.hasOwnProperty("ap")?a.ap:!0;this.xe=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")? this.ie=a.rt:this.ie=this.na.lm;this.ab=this.na.frames[this.u];this.gi=this.ab.$a;this.W.zh(this.ab.tj);this.Rb=this.ab.Rb;this.Sb=this.ab.Sb};a.jk=function(a){this.u=a?0:this.na.frames.length-1;this.ye=!1;this.pn=this.na.name;this.cl=!0;this.b.trigger(oc.prototype.j.Eq,this);this.b.trigger(oc.prototype.j.Dq,this);this.cl=!1;this.xd=0};a.lk=function(){return this.gd.K};a.Ia=function(){this.gd.add(this.b.Ci(this));this.bi.length&&this.Hn();0<=this.sk&&this.Cr();var a=this.gd.K,c=this.na,b=c.frames[this.u], d=b.duration/this.mf;this.ye&&a>=this.Gd+d&&(this.xe?this.u++:this.u--,this.Gd+=d,this.u>=c.frames.length&&(c.pp?(this.xe=!1,this.u=c.frames.length-2):c.loop?this.u=this.ie:(this.xd++,this.xd>=c.km?this.jk(!1):this.u=this.ie)),0>this.u&&(c.pp?(this.u=1,this.xe=!0,c.loop||(this.xd++,this.xd>=c.km&&this.jk(!0))):c.loop?this.u=this.ie:(this.xd++,this.xd>=c.km?this.jk(!0):this.u=this.ie)),0>this.u?this.u=0:this.u>=c.frames.length&&(this.u=c.frames.length-1),a>this.Gd+c.frames[this.u].duration/this.mf&& (this.Gd=a),a=c.frames[this.u],this.gf(b,a),this.b.V=!0)};a.Un=function(a){var c,b,d;c=0;for(b=this.type.Ob.length;cthis.u&&(this.u=0),this.u>=this.na.frames.length&&(this.u= this.na.frames.length-1),1===this.zn&&(this.u=0),this.ye=!0,this.Gd=this.gd.K,this.xe=!0,this.gf(a,this.na.frames[this.u]),this.b.V=!0)};a.Cr=function(){var a=this.na.frames[this.u],c=this.u;this.u=N(this.sk);0>this.u&&(this.u=0);this.u>=this.na.frames.length&&(this.u=this.na.frames.length-1);c!==this.u&&(this.gf(a,this.na.frames[this.u]),this.Gd=this.gd.K,this.b.V=!0);this.sk=-1};a.gf=function(a,c){var b=a.width,d=a.height,e=c.width,h=c.height;b!=e&&(this.width*=e/b);d!=h&&(this.height*=h/d);this.Rb= c.Rb;this.Sb=c.Sb;this.W.zh(c.tj);this.pa();this.ab=c;this.gi=c.$a;b=0;for(d=this.G.length;be||e>=d.length)return c?this.x:this.y;var h=(d[e][1]-b.Rb)*this.width,d=d[e][2],d=(d-b.Sb)*this.height,b=Math.cos(this.i);e=Math.sin(this.i);var k=h*b-d*e,d=d*b+ h*e,h=k+this.x,d=d+this.y;return c?h:d};var l=null,x=new ca,e=!1,d=[],q=new va(0,0,0,0);t.finish=function(a){if(e){if(a){var c=this.b.Wa().tb.Dc;a=l.Y();var b=x.dd(),d,g;if(a.ca){a.ca=!1;P(a.c);d=0;for(g=b.length;dSa(this.Nj,this.Oj,this.x,this.y)&&(this.Wj=!0,a.vd=this.Ch,a.jg=this.id,a.vf=c,a.b.trigger(Y.prototype.j.Lq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Mq,a),a.vf=0)};var f=-1E3,p=-1E3,r=-1E4;n.prototype.So=function(a,c){if(!this.Wj){var b=Wa();333>=b-this.ym&&!this.Hh&&15>Sa(this.Nj,this.Oj,this.x, this.y)&&(a.vd=this.Ch,a.jg=this.id,a.vf=c,666>=b-r&&25>Sa(f,p,this.x,this.y)?(a.b.trigger(Y.prototype.j.Hq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Iq,a),p=f=-1E3,r=-1E4):(a.b.trigger(Y.prototype.j.Pq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.an,a),f=this.x,p=this.y,r=b),a.vf=0)}};a.ua=function(){this.Mt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vf=this.jg=this.vd=this.Cd=this.Bd=this.kn=this.jn=this.hn=this.cr=this.br=this.$q=this.mj=this.lj=this.kj= 0;this.av=0!==this.ea[0];var a=0b-c.time||c.update(b,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.rh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.b.ya?l:jQuery(this.b.canvas).offset(),b=a.pageX-c.left,c=a.pageY-c.top;Wa();this.vd=this.touches.length; this.jg=a.pointerId;this.touches.push(k(b,c,a.pointerId,this.vd));this.b.lc=!0;this.b.trigger(Y.prototype.j.Zm,this);this.b.trigger(Y.prototype.j.dn,this);this.Bd=b;this.Cd=c;this.b.trigger(Y.prototype.j.cn,this);this.b.lc=!1}};a.Nd=function(a,c){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.Cg(a.pointerId);this.vd=0<=b?this.touches[b].Ch:-1;this.jg=0<=b?this.touches[b].id:-1;this.b.lc=!0;this.b.trigger(Y.prototype.j.Ym, this);this.b.trigger(Y.prototype.j.bn,this);0<=b&&(c||this.touches[b].So(this,b),100>q.length&&q.push(this.touches[b]),this.touches.splice(b,1));this.b.lc=!1}};a.ij=function(a){a.preventDefault&&a.preventDefault();var c=Wa(),b,d,e,f;b=0;for(d=a.changedTouches.length;bc-f.time||f.update(c,e.pageX-k.left,e.pageY-k.top,2*(e.Cw||e.Kw||e.vw||e.yw||0),2*(e.Dw||e.Lw||e.ww||e.zw|| 0),e.pw||e.Jw||e.uw||e.xw||0)}};a.jj=function(a){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.b.ya?l:jQuery(this.b.canvas).offset();Wa();this.b.lc=!0;var b,d,e,f;b=0;for(d=a.changedTouches.length;bq.length&&q.push(this.touches[e]),this.touches.splice(e,1));this.b.lc=!1};a.lk=function(){return this.b.kc&&0===this.kj&&0!==d?90*d:this.kj}; a.mw=function(){return this.b.kc&&0===this.lj&&0!==e?90*e:this.lj};a.ow=function(){return this.b.kc&&0===this.mj&&0!==x?90*x:this.mj};a.Ql=function(a){u(a)||(this.jj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Hl=!0)};a.Rl=function(a){this.Hl&&!u(a)&&this.ij({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Sl=function(a){a.preventDefault&&this.b.$n&&!this.b.yf&&a.preventDefault();this.b.$n=!0;u(a)||(this.Rf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}), this.Hl=!1)};a.Tj=function(){var a,c,b,d=Wa();a=0;for(c=this.touches.length;ab||b>=this.touches.length)a.A(0);else{var d,e,f,k,l;ha(c)?(d=this.b.Eg(0),e=d.scale,f=d.fd,k=d.Ec,l=d.i,d.scale=1,d.fd=1,d.Ec=1,d.i=0,a.A(d.Ka(this.touches[b].x,this.touches[b].y,!0)),d.scale=e,d.fd=f,d.Ec=k,d.i=l):(d=ia(c)?this.b.Eg(c): this.b.Sk(c))?a.A(d.Ka(this.touches[b].x,this.touches[b].y,!0)):a.A(0)}};t.prototype.gn=function(a,c){var b=this.vf;if(0>b||b>=this.touches.length)a.A(0);else{var d,e,f,k,l;ha(c)?(d=this.b.Eg(0),e=d.scale,f=d.fd,k=d.Fc,l=d.i,d.scale=1,d.fd=1,d.Fc=1,d.i=0,a.A(d.Ka(this.touches[b].x,this.touches[b].y,!1)),d.scale=e,d.fd=f,d.Fc=k,d.i=l):(d=ia(c)?this.b.Eg(c):this.b.Sk(c))?a.A(d.Ka(this.touches[b].x,this.touches[b].y,!1)):a.A(0)}};c.ub=new t})(); function rc(b){this.b=b;var k=this;this.b.ya||(jQuery(document).mousemove(function(b){k.Rl(b)}),jQuery(document).mousedown(function(b){k.Ql(b)}),jQuery(document).mouseup(function(b){k.Sl(b)}));b=0",k.pageX,k.pageY)};n.ij=function(b){b.preventDefault&&b.preventDefault();var c,a,k,n;c=0;for(a=b.changedTouches.length;c",k.pageX,k.pageY)};n.Rf=function(b){b.preventDefault&&kb(b)&&b.preventDefault();var c,a,k;c=0;for(a=b.changedTouches.length;c")};n.rh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&& (b.preventDefault&&kb(b)&&b.preventDefault(),this.Ml(b.pointerId.toString(),b.pageX,b.pageY))};n.qh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.Nl(b.pointerId.toString(),b.pageX,b.pageY))};n.Nd=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&kb(b)&&b.preventDefault(),this.Ol(b.pointerId.toString()))};n.Ml=function(k,c,a){var l=this.b.ya?u:jQuery(this.b.canvas).offset();c=c-l.left; a=a-l.top;var n,e,d,q,l=this.Of.dd(),f,p,r,m=null;f=0;for(p=l.length;fm.e.index?(m=r,d=n,q=e):r.e.index===m.e.index&&r.zc()>m.zc()&&(m=r,d=n,q=e):(m=r,d=n,q=e);m&&b(m).$t(k,d,q)};n.Nl=function(k,c,a){var l=this.b.ya?u:jQuery(this.b.canvas).offset();c=c-l.left;a=a-l.top;var n,e=this.Of.dd(),d,q,f;d=0;for(q=e.length;d";this.kk=this.ea[0];this.enabled=0!==this.ea[1]};v.Wb=function(){return{enabled:this.enabled}};v.Bc=function(b){this.enabled=b.enabled;this.Fe= !1};v.$t=function(b,c,a){this.Jn=c-this.n.x;this.Kn=a-this.n.y;this.Fe=!0;this.Ck=b;this.b.lc=!0;this.b.trigger(rc.prototype.j.Um,this.n);this.b.lc=!1};v.bu=function(b,c){var a=b-this.Jn,k=c-this.Kn;if(0===this.kk){if(this.n.x!==a||this.n.y!==k)this.n.x=a,this.n.y=k,this.n.pa()}else 1===this.kk?this.n.x!==a&&(this.n.x=a,this.n.pa()):2===this.kk&&this.n.y!==k&&(this.n.y=k,this.n.pa())};v.eu=function(){this.Fe=!1;this.b.lc=!0;this.b.trigger(rc.prototype.j.Vm,this.n);this.b.lc=!1};v.Ia=function(){}; k.prototype.Um=function(){return!0};k.prototype.Vm=function(){return!0};n.j=new k;n.Ja=new function(){};n.ub=new function(){}})();function sc(b){this.b=b} (function(){function b(){}var k=sc.prototype;k.Ab=function(b){this.behavior=b;this.b=b.b};k.Ab.prototype.ua=function(){};k.Ua=function(b,k){this.type=b;this.behavior=b.behavior;this.n=k;this.b=b.b};var n=k.Ua.prototype;n.ua=function(){this.ln=1===this.ea[0];this.Ag=this.ea[1];this.Lh=this.ea[2];this.oi=this.ea[3];this.Ar=this.ea[4];this.pc=this.ln?0:3;this.Gc?this.Ic.reset():this.Ic=new $a;this.Xe=this.n.opacity?this.n.opacity:1;this.ln&&(0===this.Ag?(this.pc=1,0===this.Lh&&(this.pc=2)):(this.n.opacity= 0,this.b.V=!0))};n.Wb=function(){return{fit:this.Ag,wt:this.Lh,fot:this.oi,s:this.pc,st:this.Ic.K,mo:this.Xe}};n.Bc=function(b){this.Ag=b.fit;this.Lh=b.wt;this.oi=b.fot;this.pc=b.s;this.Ic.reset();this.Ic.K=b.st;this.Xe=b.mo};n.Ia=function(){this.Ic.add(this.b.Ci(this.n));0===this.pc&&(this.n.opacity=this.Ic.K/this.Ag*this.Xe,this.b.V=!0,this.n.opacity>=this.Xe&&(this.n.opacity=this.Xe,this.pc=1,this.Ic.reset(),this.b.trigger(sc.prototype.j.Jq,this.n)));1===this.pc&&this.Ic.K>=this.Lh&&(this.pc=2, this.Ic.reset(),this.b.trigger(sc.prototype.j.Qq,this.n));2===this.pc&&0!==this.oi&&(this.n.opacity=this.Xe-this.Ic.K/this.oi*this.Xe,this.b.V=!0,0>this.n.opacity&&(this.n.opacity=0,this.pc=3,this.Ic.reset(),this.b.trigger(sc.prototype.j.Kq,this.n),1===this.Ar&&this.b.wd(this.n)))};n.lk=function(){this.pc=0;this.Ic.reset();0===this.Ag?(this.pc=1,0===this.Lh&&(this.pc=2)):(this.n.opacity=0,this.b.V=!0)};b.prototype.Kq=function(){return!0};b.prototype.Jq=function(){return!0};b.prototype.Qq=function(){return!0}; k.j=new b;k.Ja=new function(){};k.ub=new function(){}})();function yc(b){this.b=b} (function(){var b=yc.prototype;b.Ab=function(b){this.behavior=b;this.b=b.b};b.Ab.prototype.ua=function(){};b.Ua=function(b,n){this.type=b;this.behavior=b.behavior;this.n=n;this.b=b.b;this.mode=0};b=b.Ua.prototype;b.ua=function(){this.mode=this.ea[0]};b.Ia=function(){};b.Tj=function(){this.n.ma();var b=this.n.ra,n=this.n.e.Oa,u=!1;0===this.mode?(0>this.n.x&&(this.n.x=0,u=!0),0>this.n.y&&(this.n.y=0,u=!0),this.n.x>n.width&&(this.n.x=n.width,u=!0),this.n.y>n.height&&(this.n.y=n.height,u=!0)):(0>b.left&& (this.n.x-=b.left,u=!0),0>b.top&&(this.n.y-=b.top,u=!0),b.right>n.width&&(this.n.x-=b.right-n.width,u=!0),b.bottom>n.height&&(this.n.y-=b.bottom-n.height,u=!0));u&&this.n.pa()}})(); function nc(){return[pc,oc,Y,qc,rc,yc,sc,X.prototype.j.Wm,qc.prototype.Ja.Sm,rc.prototype.j.Vm,oc.prototype.j.Aq,oc.prototype.j.vq,oc.prototype.ub.qq,pc.prototype.Ja.Play,oc.prototype.Ja.Wq,oc.prototype.Ja.Sq,oc.prototype.Ja.Sm,X.prototype.j.Tm,oc.prototype.Ja.Uq,rc.prototype.j.Um,X.prototype.Ja.Vq,oc.prototype.ub.en,oc.prototype.ub.gn,X.prototype.j.uq,oc.prototype.ub.wq,X.prototype.Ja.Yq,X.prototype.Ja.xq,Y.prototype.j.an,pc.prototype.Ja.Tq,pc.prototype.Ja.Rq,pc.prototype.Ja.Xq]};