// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';function b(){return function(){}}function ca(g){return function(){return this[g]}}function d(g){return function(){return g}}var da,fa,ga,ha,ia,ja,ka,la,ma,na,pa,qa,sa,ta,ua,va,wa,xa,za,Aa,Ba,Da,Ea,Fa,Ja,Ka,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,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={}; "function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype}); (function(){function g(G,h,s,a){this.set(G,h,s,a)}function q(){this.Cc=this.Bc=this.Fc=this.Ec=this.Qc=this.Pc=this.Jb=this.Ib=0}function f(G,h,s,a){Ga?h:a):(C=Gs?h:s):sa?G:a):(C=hs?G:s)}function r(){this.Oe=this.ke=null;this.Wg=0;t&&(this.ke=new Set);this.uh=[];this.gf=!0}function c(G){h[y++]=G}function a(){this.ub=this.Zk=this.y=this.El=0}function e(G){this.Rb=[];this.hj=this.jj=this.kj=this.ij=0;this.Mi(G)}function k(G,h){this.rs=G; this.qs=h;this.cells={}}function m(G,h,a){var e;return s.length?(e=s.pop(),e.bu=G,e.x=h,e.y=a,e):new da(G,h,a)}function n(h,s,a){this.bu=h;this.x=s;this.y=a;this.xi=new fa}ga=function(h){window.console&&window.console.log&&window.console.log(h)};ha=function(h){return"undefined"===typeof h};ia=function(h){return"number"===typeof h};ja=function(h){return"string"===typeof h};ka=function(h){return 0s;s<<=1)h|=h>>s;return h+1};ma=function(h){return 0> h?-h:h};na=function(h,s){return ht)return!1;st)return!1;m=k-h+I-a;n=y-s+c-e;h=a-h;s=e-s;k=I-k;y=c-y;c=ma(s*k-y*h);return ma(k*n-y*m)>c?!1:ma(h*n-s*m)<=c};g.prototype.set=function(h,s,a,e){this.left=h;this.top=s;this.right=a;this.bottom=e};g.prototype.copy= function(h){this.left=h.left;this.top=h.top;this.right=h.right;this.bottom=h.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(h,s){this.left+=h;this.top+=s;this.right+=h;this.bottom+=s;return this};g.prototype.normalize=function(){var h=0;this.left>this.right&&(h=this.left,this.left=this.right,this.right=h);this.top>this.bottom&&(h=this.top,this.top=this.bottom,this.bottom=h)};g.prototype.ju=function(h){return!(h.right< this.left||h.bottomthis.right||h.top>this.bottom)};g.prototype.ku=function(h,s,a){return!(h.right+sthis.right||h.top+a>this.bottom)};g.prototype.Vc=function(h,s){return h>=this.left&&h<=this.right&&s>=this.top&&s<=this.bottom};g.prototype.Ss=function(h){return this.left===h.left&&this.top===h.top&&this.right===h.right&&this.bottom===h.bottom};ua=g;q.prototype.Li=function(h){this.Ib=h.left;this.Jb=h.top;this.Pc=h.right;this.Qc=h.top;this.Ec= h.right;this.Fc=h.bottom;this.Bc=h.left;this.Cc=h.bottom};q.prototype.zq=function(h,s){if(0===s)this.Li(h);else{var a=Math.sin(s),e=Math.cos(s),k=h.left*a,y=h.top*a,c=h.right*a,a=h.bottom*a,I=h.left*e,m=h.top*e,n=h.right*e,e=h.bottom*e;this.Ib=I-y;this.Jb=m+k;this.Pc=n-y;this.Qc=m+c;this.Ec=n-a;this.Fc=e+c;this.Bc=I-a;this.Cc=e+k}};q.prototype.offset=function(h,s){this.Ib+=h;this.Jb+=s;this.Pc+=h;this.Qc+=s;this.Ec+=h;this.Fc+=s;this.Bc+=h;this.Cc+=s;return this};var C=0,x=0;q.prototype.xo=function(h){f(this.Ib, this.Pc,this.Ec,this.Bc);h.left=C;h.right=x;f(this.Jb,this.Qc,this.Fc,this.Cc);h.top=C;h.bottom=x};q.prototype.Vc=function(h,s){var a=this.Pc-this.Ib,e=this.Qc-this.Jb,k=this.Ec-this.Ib,y=this.Fc-this.Jb,c=h-this.Ib,I=s-this.Jb,m=a*a+e*e,n=a*k+e*y,e=a*c+e*I,t=k*k+y*y,f=k*c+y*I,g=1/(m*t-n*n),a=(t*e-n*f)*g,m=(m*f-n*e)*g;if(0<=a&&0a+m)return!0;a=this.Bc-this.Ib;e=this.Cc-this.Jb;m=a*a+e*e;n=a*k+e*y;e=a*c+e*I;g=1/(m*t-n*n);a=(t*e-n*f)*g;m=(m*f-n*e)*g;return 0<=a&&0a+m};q.prototype.$d=function(h, s){if(s)switch(h){case 0:return this.Ib;case 1:return this.Pc;case 2:return this.Ec;case 3:return this.Bc;case 4:return this.Ib;default:return this.Ib}else switch(h){case 0:return this.Jb;case 1:return this.Qc;case 2:return this.Fc;case 3:return this.Cc;case 4:return this.Jb;default:return this.Jb}};q.prototype.Hp=function(){return(this.Ib+this.Pc+this.Ec+this.Bc)/4};q.prototype.Ip=function(){return(this.Jb+this.Qc+this.Fc+this.Cc)/4};q.prototype.ip=function(h){var s=h.Hp(),a=h.Ip();if(this.Vc(s, a))return!0;s=this.Hp();a=this.Ip();if(h.Vc(s,a))return!0;var e,k,y,c,m,I,n,t;for(n=0;4>n;n++)for(t=0;4>t;t++)if(s=this.$d(n,!0),a=this.$d(n,!1),e=this.$d(n+1,!0),k=this.$d(n+1,!1),y=h.$d(t,!0),c=h.$d(t,!1),m=h.$d(t+1,!0),I=h.$d(t+1,!1),ta(s,a,e,k,y,c,m,I))return!0;return!1};va=q;wa=function(h,s){for(var a in s)s.hasOwnProperty(a)&&(h[a]=s[a]);return h};xa=function(h,s){var a,e;s=qa(s);if(!(0>s||s>=h.length)){a=s;for(e=h.length-1;ah&&(h+=360);return h};Ka=function(h){h%=2*pa;0>h&&(h+=2*pa);return h};Na=function(h){return Ja(Fa(h))};Oa=function(h){return Ka(Ea(h))};Pa=function(h,s,a,e){return Math.atan2(e-s,a-h)};Qa=function(h, s){if(h===s)return 0;var a=Math.sin(h),e=Math.cos(h),k=Math.sin(s),y=Math.cos(s),a=a*k+e*y;return 1<=a?0:-1>=a?pa:Math.acos(a)};Ra=function(h,s,a){var e=Math.sin(h),k=Math.cos(h),y=Math.sin(s),c=Math.cos(s);return Math.acos(e*y+k*c)>a?0=e*k-a*y};Ta=function(h,s,a,e,k,y){if(0===a)return y?h:s;var c=Math.sin(a);a=Math.cos(a);h-=e;s-=k;var m=h*c;h=h*a-s*c;s=s*a+m;return y?h+e:s+k};Ua= function(h,s,a,e){h=a-h;s=e-s;return Math.sqrt(h*h+s*s)};Za=function(h,s){return!h!==!s};$a=function(h){for(var s in h)if(h.hasOwnProperty(s))return!0;return!1};ab=function(h){for(var s in h)h.hasOwnProperty(s)&&delete h[s]};var u=+new Date;bb=function(){if("undefined"!==typeof window.performance){var h=window.performance;if("undefined"!==typeof h.now)return h.now();if("undefined"!==typeof h.webkitNow)return h.webkitNow();if("undefined"!==typeof h.mozNow)return h.mozNow();if("undefined"!==typeof h.msNow)return h.msNow()}return Date.now()- u};var A=!1,w=A=!1,B=!1;"undefined"!==typeof window&&(A=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),A=!A&&/safari/i.test(navigator.userAgent),w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),B=window.c2ejecta);var t=!A&&!B&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(h){return this.Od()?!1:t?this.ke.has(h):this.Oe&&this.Oe.hasOwnProperty(h)};r.prototype.add=function(h){if(t)this.ke.has(h)||(this.ke.add(h),this.gf= !1);else{var s=h.toString(),a=this.Oe;a?a.hasOwnProperty(s)||(a[s]=h,this.Wg++,this.gf=!1):(this.Oe={},this.Oe[s]=h,this.Wg=1,this.gf=!1)}};r.prototype.remove=function(h){if(!this.Od())if(t)this.ke.has(h)&&(this.ke["delete"](h),this.gf=!1);else if(this.Oe){h=h.toString();var s=this.Oe;s.hasOwnProperty(h)&&(delete s[h],this.Wg--,this.gf=!1)}};r.prototype.clear=function(){this.Od()||(t?this.ke.clear():(this.Oe=null,this.Wg=0),this.uh.length=0,this.gf=!0)};r.prototype.Od=function(){return 0===this.count()}; r.prototype.count=function(){return t?this.ke.size:this.Wg};var h=null,y=0;r.prototype.wv=function(){if(!this.gf){if(t)this.uh.length=this.ke.size,h=this.uh,y=0,this.ke.forEach(c),h=null,y=0;else{var s=this.uh;s.length=this.Wg;var a,e=0,k=this.Oe;if(k)for(a in k)k.hasOwnProperty(a)&&(s[e++]=k[a])}this.gf=!0}};r.prototype.Lf=function(){this.wv();return this.uh};fa=r;new fa;a.prototype.add=function(h){this.y=h-this.El;this.Zk=this.ub+this.y;this.El=this.Zk-this.ub-this.y;this.ub=this.Zk};a.prototype.reset= function(){this.ub=this.Zk=this.y=this.El=0};cb=a;db=function(h){return h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};e.prototype.Mi=function(h){this.pq=h;this.Td=h.length/2;this.Rb.length=h.length;this.mj=this.nj=-1;this.zo=0};e.prototype.Sg=function(){return!this.pq.length};e.prototype.ob=function(){for(var h=this.Rb,s=h[0],a=s,e=h[1],k=e,y,c,m=1,I=this.Td;ma&&(a=y),ck&&(k=c);this.ij=s;this.jj=a;this.kj=e;this.hj=k};e.prototype.Li=function(h, s,a){this.Rb.length=8;this.Td=4;var e=this.Rb;e[0]=h.left-s;e[1]=h.top-a;e[2]=h.right-s;e[3]=h.top-a;e[4]=h.right-s;e[5]=h.bottom-a;e[6]=h.left-s;e[7]=h.bottom-a;this.nj=h.right-h.left;this.mj=h.bottom-h.top;this.ob()};e.prototype.nh=function(h,s,a,e,k){this.Rb.length=8;this.Td=4;var y=this.Rb;y[0]=h.Ib-s;y[1]=h.Jb-a;y[2]=h.Pc-s;y[3]=h.Qc-a;y[4]=h.Ec-s;y[5]=h.Fc-a;y[6]=h.Bc-s;y[7]=h.Cc-a;this.nj=e;this.mj=k;this.ob()};e.prototype.yq=function(h){this.Td=h.Td;za(this.Rb,h.Rb);this.ij=h.ij;this.kj-h.kj; this.jj=h.jj;this.hj=h.hj};e.prototype.Cg=function(h,s,a){if(this.nj!==h||this.mj!==s||this.zo!==a){this.nj=h;this.mj=s;this.zo=a;var e,k,y,c,m,I=0,n=1,t=this.pq,f=this.Rb;0!==a&&(I=Math.sin(a),n=Math.cos(a));a=0;for(y=this.Td;as.length&&s.push(I),this.cells[k][c]=null);if(e)for(k=e.left,y=e.right;k<=y;++k)for(c= e.top,m=e.bottom;c<=m;++c)a&&a.Vc(k,c)||this.dm(k,c,!0).iu(h)};k.prototype.rq=function(h,s){var a,e,k,y,c,m;a=this.dj(h.left);k=this.ej(h.top);e=this.dj(h.right);for(c=this.ej(h.bottom);a<=e;++a)for(y=k;y<=c;++y)(m=this.dm(a,y,!1))&&m.Os(s)};fb=k;var s=[];n.prototype.Od=function(){return this.xi.Od()};n.prototype.iu=function(h){this.xi.add(h)};n.prototype.remove=function(h){this.xi.remove(h)};n.prototype.Os=function(h){Aa(h,this.xi.Lf())};da=n;var I="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" "); gb=function(h){return 0>=h||11<=h?"source-over":I[h-1]};hb=function(h,s,a){if(a)switch(h.rc=a.ONE,h.oc=a.ONE_MINUS_SRC_ALPHA,s){case 1:h.rc=a.ONE;h.oc=a.ONE;break;case 3:h.rc=a.ONE;h.oc=a.ZERO;break;case 4:h.rc=a.ONE_MINUS_DST_ALPHA;h.oc=a.ONE;break;case 5:h.rc=a.DST_ALPHA;h.oc=a.ZERO;break;case 6:h.rc=a.ZERO;h.oc=a.SRC_ALPHA;break;case 7:h.rc=a.ONE_MINUS_DST_ALPHA;h.oc=a.ZERO;break;case 8:h.rc=a.ZERO;h.oc=a.ONE_MINUS_SRC_ALPHA;break;case 9:h.rc=a.DST_ALPHA;h.oc=a.ONE_MINUS_SRC_ALPHA;break;case 10:h.rc= a.ONE_MINUS_DST_ALPHA,h.oc=a.SRC_ALPHA}};jb=function(h){return Math.round(1E6*h)/1E6};kb=function(h,s){return"string"!==typeof h||"string"!==typeof s||h.length!==s.length?!1:h===s?!0:h.toLowerCase()===s.toLowerCase()};lb=function(h){h=h.target;return!h||h===document||h===window||document&&document.body&&h===document.body||kb(h.tagName,"canvas")?!0:!1}})();var ec="undefined"!==typeof Float32Array?Float32Array:Array;function fc(g){var q=new ec(3);g&&(q[0]=g[0],q[1]=g[1],q[2]=g[2]);return q} function gc(g){var q=new ec(16);g&&(q[0]=g[0],q[1]=g[1],q[2]=g[2],q[3]=g[3],q[4]=g[4],q[5]=g[5],q[6]=g[6],q[7]=g[7],q[8]=g[8],q[9]=g[9],q[10]=g[10],q[11]=g[11],q[12]=g[12],q[13]=g[13],q[14]=g[14],q[15]=g[15]);return q}function hc(g,q){q[0]=g[0];q[1]=g[1];q[2]=g[2];q[3]=g[3];q[4]=g[4];q[5]=g[5];q[6]=g[6];q[7]=g[7];q[8]=g[8];q[9]=g[9];q[10]=g[10];q[11]=g[11];q[12]=g[12];q[13]=g[13];q[14]=g[14];q[15]=g[15]} function ic(g,q){var f=q[0],r=q[1];q=q[2];g[0]*=f;g[1]*=f;g[2]*=f;g[3]*=f;g[4]*=r;g[5]*=r;g[6]*=r;g[7]*=r;g[8]*=q;g[9]*=q;g[10]*=q;g[11]*=q} function jc(g,q,f,r){r||(r=gc());var c,a,e,k,m,n,C,x,u=g[0],A=g[1];g=g[2];a=f[0];e=f[1];c=f[2];f=q[1];n=q[2];u===q[0]&&A===f&&g===n?(g=r,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(f=u-q[0],n=A-q[1],C=g-q[2],x=1/Math.sqrt(f*f+n*n+C*C),f*=x,n*=x,C*=x,q=e*C-c*n,c=c*f-a*C,a=a*n-e*f,(x=Math.sqrt(q*q+c*c+a*a))?(x=1/x,q*=x,c*=x,a*=x):a=c=q=0,e=n*a-C*c,k=C*q-f*a,m=f*c-n*q,(x=Math.sqrt(e*e+k*k+m*m))?(x=1/x,e*=x,k*=x,m*=x):m=k=e=0, r[0]=q,r[1]=e,r[2]=f,r[3]=0,r[4]=c,r[5]=k,r[6]=n,r[7]=0,r[8]=a,r[9]=m,r[10]=C,r[11]=0,r[12]=-(q*u+c*A+a*g),r[13]=-(e*u+k*A+m*g),r[14]=-(f*u+n*A+C*g),r[15]=1)} (function(){function g(a){this.ge=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ao=fc([0,0,100]);this.Dp=fc([0,0,0]);this.Yq=fc([0,1,0]);this.Tn=fc([1,1,1]);this.Ko=!0;this.Km=gc();this.Dd=gc();this.up=gc();this.Ll=gc();this.da=a;this.ep()}function q(a,e,k){this.da=a;this.Ni=e;this.name=k;this.Cd=a.getAttribLocation(e,"aPos");this.sf=a.getAttribLocation(e,"aTex");this.Bp=a.getUniformLocation(e,"matP");this.$g=a.getUniformLocation(e,"matMV"); this.ah=a.getUniformLocation(e,"opacity");this.Cp=a.getUniformLocation(e,"samplerFront");this.oi=a.getUniformLocation(e,"samplerBack");this.jg=a.getUniformLocation(e,"destStart");this.ig=a.getUniformLocation(e,"destEnd");this.Hm=a.getUniformLocation(e,"seconds");this.Gm=a.getUniformLocation(e,"pixelWidth");this.Fm=a.getUniformLocation(e,"pixelHeight");this.ni=a.getUniformLocation(e,"layerScale");this.mi=a.getUniformLocation(e,"layerAngle");this.pi=a.getUniformLocation(e,"viewOrigin");this.eu=!!(this.Gm|| this.Fm||this.Hm||this.oi||this.jg||this.ig||this.ni||this.mi||this.pi);this.ah&&a.uniform1f(this.ah,1);this.Cp&&a.uniform1i(this.Cp,0);this.oi&&a.uniform1i(this.oi,1);this.jg&&a.uniform2f(this.jg,0,0);this.ig&&a.uniform2f(this.ig,1,1);this.ni&&a.uniform1f(this.ni,1);this.mi&&a.uniform1f(this.mi,0);this.pi&&a.uniform2f(this.pi,0,0);this.Zf=!1}function f(a,e){this.type=a;this.ta=e;this.da=e.da;this.fe=this.Fd=this.$p=0;this.fb=this.Yd=null;this.Aq=[]}g.prototype.ep=function(){var a=this.da,e;this.vp= 1;this.gg=this.pf=null;this.Fo=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.DEPTH_TEST);this.wp=a.ONE;this.tp=a.ONE_MINUS_SRC_ALPHA;this.cn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.cn);this.Zi=Array(4);this.Ti=Array(4);for(e=0;4>e;e++)this.Zi[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Zi[e]),this.Ti[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Ti[e]);this.ze=0;this.hu=a.createBuffer(); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.hu);this.Qn=new Float32Array(16E3);this.Hn=new Float32Array(16E3);this.Lu=new Float32Array(32E3);for(var k=new Uint16Array(12E3),c=e=0;12E3>e;)k[e++]=c,k[e++]=c+1,k[e++]=c+2,k[e++]=c,k[e++]=c+2,k[e++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,k,a.STATIC_DRAW);this.dn=this.re=0;this.Tb=[];e=this.Kl({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}"}, "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}","");this.Tb.push(e);e=this.Kl({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.Tb.push(e);for(var n in kc)kc.hasOwnProperty(n)&&this.Tb.push(this.Kl(kc[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}",n));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ff=[];this.we=0;this.Xc=!1;this.Go=this.ei=-1;this.Gh=null;this.tt=a.createFramebuffer();this.tq= null;this.Jf=fc([0,0,0]);this.Ep=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048e;e++)if(this.up[e]!==this.Dd[e]){a=!0;break}a&&(a=this.Ud(),a.type=5,a.fb?hc(this.Dd,a.fb):a.fb=gc(this.Dd),hc(this.Dd,this.up),this.Xc=!1)};f.prototype.Ks=function(){this.da.bindTexture(this.da.TEXTURE_2D,this.Yd)};f.prototype.Ls=function(){var a=this.da;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Yd);a.activeTexture(a.TEXTURE0)}; f.prototype.Hs=function(){var a=this.$p,e=this.ta;e.Fo=a;e=e.Gh;e.ah&&this.da.uniform1f(e.ah,a)};f.prototype.Es=function(){this.da.drawElements(this.da.TRIANGLES,this.fe,this.da.UNSIGNED_SHORT,2*this.Fd)};f.prototype.Gs=function(){this.da.blendFunc(this.Fd,this.fe)};f.prototype.Ms=function(){var a,e,k,c=this.ta.Tb,n=this.ta.Go;a=0;for(e=c.length;a"===e.name&&a.vertexAttribPointer(e.Cd,4,a.FLOAT,!1,0,0));if(0"!==e.name&&a.vertexAttribPointer(e.Cd,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ti[this.ze]);a.bufferData(a.ARRAY_BUFFER,this.Hn.subarray(0,this.re),a.STREAM_DRAW);e&&0<=e.sf&&""!==e.name&&a.vertexAttribPointer(e.sf,2,a.FLOAT,!1,0,0)}for(var k,a=0,e=this.we;a< e;a++)switch(k=this.ff[a],k.type){case 1:k.Es();break;case 2:k.Ks();break;case 3:k.Hs();break;case 4:k.Gs();break;case 5:k.Ms();break;case 6:k.Fs();break;case 7:k.Cs();break;case 8:k.Ds();break;case 9:k.Is();break;case 10:k.Js();break;case 11:k.Ls()}this.dn=this.re=this.we=0;this.Xc=!1;this.ze++;4<=this.ze&&(this.ze=0)}};g.prototype.lh=function(a){if(a!==this.vp){var e=this.Ud();e.type=3;this.vp=e.$p=a;this.Xc=!1}};g.prototype.qd=function(a){if(a!==this.pf){var e=this.Ud();e.type=2;this.pf=e.Yd=a; this.Xc=!1}};g.prototype.Bf=function(a,e){if(a!==this.wp||e!==this.tp){var k=this.Ud();k.type=4;k.Fd=a;k.fe=e;this.wp=a;this.tp=e;this.Xc=!1}};g.prototype.vq=function(){this.Bf(this.da.ONE,this.da.ONE_MINUS_SRC_ALPHA)};g.prototype.Fk=function(a,e,k,c,n,f,g,r){15992<=this.re&&this.kf();var q=this.re,w=this.Qn,B=this.Hn;if(this.Xc)this.ff[this.we-1].fe+=6;else{var t=this.Ud();t.type=1;t.Fd=3*(q/4);t.fe=6;this.Xc=!0}w[q]=a;B[q++]=0;w[q]=e;B[q++]=0;w[q]=k;B[q++]=1;w[q]=c;B[q++]=0;w[q]=n;B[q++]=1;w[q]= f;B[q++]=1;w[q]=g;B[q++]=0;w[q]=r;B[q++]=1;this.re=q};g.prototype.zf=function(a,e,k,c,n,f,g,r,q){15992<=this.re&&this.kf();var w=this.re,B=this.Qn,t=this.Hn;if(this.Xc)this.ff[this.we-1].fe+=6;else{var h=this.Ud();h.type=1;h.Fd=3*(w/4);h.fe=6;this.Xc=!0}var h=q.left,y=q.top,s=q.right;q=q.bottom;B[w]=a;t[w++]=h;B[w]=e;t[w++]=y;B[w]=k;t[w++]=s;B[w]=c;t[w++]=y;B[w]=n;t[w++]=s;B[w]=f;t[w++]=q;B[w]=g;t[w++]=h;B[w]=r;t[w++]=q;this.re=w};g.prototype.me=function(a){if(this.ei!==a){if(!this.Tb[a]){if(0=== this.ei)return;a=0}var e=this.Ud();e.type=9;this.ei=e.Fd=a;this.Xc=!1}};g.prototype.Ei=function(a){a=this.Tb[a];return!(!a.jg&&!a.ig)};g.prototype.hn=function(a){a=this.Tb[a];return!!(a.jg||a.ig||a.Eo)};g.prototype.Qu=function(a){a=this.Tb[a];return 0!==a.Sl||0!==a.Tl};g.prototype.Kt=function(a){return this.Tb[a].Sl};g.prototype.Lt=function(a){return this.Tb[a].Tl};g.prototype.Mt=function(a,e){return this.Tb[a].Fa[e][2]};g.prototype.Dk=function(a){return this.Tb[a].uo};g.prototype.mh=function(a,e, k,c,n,f,g,r,q,w,B,t){var h=this.Tb[this.ei],y,s;if(h.eu||t.length){y=this.Ud();y.type=10;y.fb?hc(this.Dd,y.fb):y.fb=gc();s=y.fb;s[0]=e;s[1]=k;s[2]=c;s[3]=n;s[4]=f;s[5]=g;s[6]=r;s[7]=q;s[8]=w;s[9]=B;y.Yd=h.oi?a:null;if(t.length)for(k=y.Aq,k.length=t.length,a=0,e=t.length;ak||0>c)){var n= this.Ud();n.type=7;n.Fd=1;n.fb||(n.fb=gc());n.fb[0]=a;n.fb[1]=e;n.fb[2]=k;n.fb[3]=c;this.Xc=!1}};g.prototype.Pu=function(){this.kf();this.da.flush()};var r=[],c={};g.prototype.Ap=function(a,e,k){var m;m=!1;e=!!e;var n=a.src+","+m+","+e+(m?",undefined":""),f=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(n))return f=c[n],f.lj++,f;this.kf();var g=this.da,q=ka(a.width)&&ka(a.height),f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var A=g.RGBA, w=g.RGBA,B=g.UNSIGNED_BYTE;if(k&&!this.ge)switch(k){case 1:w=A=g.RGB;break;case 2:B=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:B=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=A=g.RGB,B=g.UNSIGNED_SHORT_5_6_5}if(!q&&m){k=document.createElement("canvas");k.width=la(a.width);k.height=la(a.height);var t=k.getContext("2d");t.webkitImageSmoothingEnabled=e;t.mozImageSmoothingEnabled=e;t.msImageSmoothingEnabled=e;t.imageSmoothingEnabled=e;t.drawImage(a,0,0,a.width,a.height,0,0,k.width,k.height);g.texImage2D(g.TEXTURE_2D, 0,A,w,B,k)}else g.texImage2D(g.TEXTURE_2D,0,A,w,B,a);m?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),q&&this.Ko?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.pf=null;f.Dh=a.width;f.Ch=a.height;f.lj=1;f.yo=n;r.push(f);return c[n]=f};g.prototype.ye=function(a,e,k,c){this.kf();var n=this.da;this.ge&&(c=!1);var f=n.createTexture();n.bindTexture(n.TEXTURE_2D,f);n.texImage2D(n.TEXTURE_2D,0,n.RGBA,a,e,0,n.RGBA,c?n.UNSIGNED_SHORT_4_4_4_4:n.UNSIGNED_BYTE,null);n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE);n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE);n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,k?n.LINEAR:n.NEAREST);n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,k?n.LINEAR:n.NEAREST);n.bindTexture(n.TEXTURE_2D,null);this.pf=null;f.Dh=a;f.Ch=e;r.push(f);return f};g.prototype.Av=function(a,e,c){this.kf();var m=this.da;this.ge&&(c=!1);m.bindTexture(m.TEXTURE_2D,e);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);m.texImage2D(m.TEXTURE_2D,0, m.RGBA,m.RGBA,c?m.UNSIGNED_SHORT_4_4_4_4:m.UNSIGNED_BYTE,a);m.bindTexture(m.TEXTURE_2D,null);this.pf=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.lj&&1k?(k*=a,5===f?(m=k*s/this.$b,1m&&(m=1/Math.ceil(1/m)),k=this.$b*m/s,m=this.Zb*m/s,e=(h-k)/2,c=(a-m)/2,h=k,a=m):(e=(h-k)/2,h=k)):(m=h/k,5===f?(m=m*s/this.Zb,1m&&(m=1/Math.ceil(1/m)),k=this.$b*m/s,m=this.Zb*m/s,e=(h-k)/2,c=(a-m)/2,h=k):c=(a-m)/2,a=m),g&&!this.Me&&(c=e=0)):this.Me&&this.Yh&&0===this.Ro&&(e=Math.floor((h-this.$b)/2),c=Math.floor((a-this.Zb)/2),h=this.$b,a=this.Zb),2>f&&(this.Bh=s),this.cg&&this.qp&&1k&&(this.Ja=this.Ka/f)):3===f&&(k=this.$b/this.Zb,f=this.gi/this.fi,f>k?this.Ka=this.Ja*f:f=f)f=5E4;h+=f;!c.complete&&!c.loaded||c.ls?e=!1:a+=f}e&&this.Ou&&this.Bg&&(n||(this.Bg.lv(),n=!0),s=this.Bg.Jt(),a+=s,s=this.li?(a=qa(a-f)+0.5,e=qa(e+(m+(s?12*c:0)))+0.5,h.fillStyle=k?"red":"DodgerBlue",h.fillRect(a,e,Math.floor(n* this.Sd),6*c),h.strokeStyle="black",h.strokeRect(a,e,n,6*c),h.strokeStyle="white",h.strokeRect(a-1*c,e-1*c,n+2*c,8*c)):2===this.li&&(h.font=this.Le?"12pt ArialMT":"12pt Arial",h.fillStyle=k?"#f00":"#999",h.Uw="middle",c=Math.round(100*this.Sd)+"%",s=h.measureText?h.measureText(c):null,h.fillText(c,a-(s?s.width:0)/2,e))}this.xp=this.Sd}setTimeout(function(h){return function(){h.go()}}(this),this.Ad?10:100)}}};g.prototype.au=function(){this.hc&&(this.canvas.parentNode.removeChild(this.hc),this.hc=this.an= null);this.Wk=Date.now();this.hi=bb();var h,a,s;if(this.On)for(h=0,a=this.ea.length;hh||2===this.Hc&&aa-this.ym)this.ln=!1,this.ym=a,C?this.Gk=C(this.bl,this.canvas):this.cl=setTimeout(this.bl,this.Bd?1:16);else{this.ln=!0;this.ym=a;var s= this.Hc,e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Pd;(e||this.Yh)&&0a||2===e&&sh++;)this.Jo(this.Qf);h=0;for(a=this.Ee.length;ha.yj.length&&a.yj.push(h);a.ph=!0}this.de.Od()||(this.jb=!0);this.de.clear();this.rm=!1};g.prototype.Jl=function(h,a,e,c){if(h.La){var k=qa(Math.random()*h.dh.length);return this.Jl(h.dh[k],a,e,c)}return h.wd?this.hf(h.wd,a,!1,e,c,!1):null};var x=[];g.prototype.hf=function(h,a,e,c,k,f){var m,n,t,g;if(!h)return null;var r=this.ea[h[1]],q=r.$a.of;if(this.Vg&&q&&!r.tm||q&&!this.ta&&11===h[0][11])return null;var C=a;q||(a=null);var u;r.yj.length?(u=r.yj.pop(),u.fd=!0,r.$a.Ia.call(u,r)):(u=new r.$a.Ia(r), u.fd=!1);u.uid=e&&!f?h[2]:this.wi++;this.wf[u.uid.toString()]=u;u.qq=this.Np++;u.$f=r.H.length;m=0;for(n=this.Gc.length;mh&&(h=0);h>=this.Ha.Sa.length&&(h=this.Ha.Sa.length-1);return this.Ha.Sa[h]}; g.prototype.Gl=function(h){var a,e;a=0;for(e=h.length;a=k;)m=1/k,k*=2,h.x+=a*m*(f?1:-1),h.y+=e*m*(f?1:-1),h.na(),this.Nc(h, c)?m=f=!0:(m=f=!1,n=h.x,t=h.y);m&&(h.x=n,h.y=t,h.na())};g.prototype.Su=function(h,a){var e=ha(a)?100:a,c=0,k=h.x,m=h.y,f=0,n=0,t=0,g=this.Oc(h);if(!g)return!0;for(;c<=e;){switch(f){case 0:n=0;t=-1;c++;break;case 1:n=1;t=-1;break;case 2:n=1;t=0;break;case 3:t=n=1;break;case 4:n=0;t=1;break;case 5:n=-1;t=1;break;case 6:n=-1;t=0;break;case 7:t=n=-1}f=(f+1)%8;h.x=qa(k+n*c);h.y=qa(m+t*c);h.na();if(!this.Nc(h,g)&&(g=this.Oc(h),!g))return!0}h.x=k;h.y=m;h.na();return!1};g.prototype.Ii=function(h,a){h.xe&& a.xe&&this.Hk.push([h,a])};g.prototype.ts=function(h,a){var e,c,k;e=0;for(c=this.Hk.length;e=this.Im.length&&this.Im.push([])};g.prototype.Mu=function(){this.pk--};g.prototype.To=function(){return this.Im[this.pk]};g.prototype.Ek=function(a){this.Cj++;this.Cj>=this.Ql.length&&this.Ql.push(new Qb);var e=this.Xb();e.reset(a);return e};g.prototype.Ak=function(){this.Cj--};g.prototype.Xb=function(){return this.Ql[this.Cj]};g.prototype.Uo=function(a,e){for(var c,k, m,f,n,t;e;){c=0;for(k=e.Hd.length;cc||c>=a.Qb.length||(a.Qb[c]=m[k]));if(f.of){f=e.w;a.R.Oa!==f.l&&(c=a.R,a.R= this.Ha.Oj(f.l),a.R?(a.R.H.push(a),a.R.kd=!0,Da(c.H,a),c.kd=!0):(a.R=c,this.Mf(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.ug=f.zi;a.V=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Yc=f.hasOwnProperty("hX")?f.hX:0.5;a.Zc=f.hasOwnProperty("hY")?f.hY:0.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.xe=f.hasOwnProperty("ce")?f.ce:!0;a.vi=f.hasOwnProperty("mts")?f.mts:-1;a.Ac=f.hasOwnProperty("bm")?f.bm:0;a.Eh=gb(a.Ac);this.da&&hb(a,a.Ac,this.da);a.na();if(f.hasOwnProperty("fx"))for(c= 0,m=f.fx.length;cn||(a.cf[n]=f.fx[c].active,a.tb[n]=f.fx[c].params);a.Ye()}if(t=e.behs)for(k in t)t.hasOwnProperty(k)&&(f=this.Bt(a,parseInt(k,10)),0>f||a.Ea[f].wc(t[k]));e.data&&a.wc(e.data)};Sb=function(a){return new g(document.getElementById(a))};Tb=function(a,e){return new g({dc:!0,width:a,height:e})};window.cr_createRuntime=Sb;window.cr_createDCRuntime=Tb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas"); a.Tw=!0;document.body.appendChild(a);a=new g(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 g(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})(); window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(g,q){if(0!==g&&0!==q){var f=window.cr_getC2Runtime();f&&f.setSize(g,q)}};window.cr_setSuspended=function(g){var q=window.cr_getC2Runtime();q&&q.setSuspended(g)}; (function(){function g(c,a){this.e=c;this.Uf=null;this.scrollX=this.e.$b/2;this.scrollY=this.e.Zb/2;this.scale=1;this.V=0;this.Kh=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.Wq=a[3];this.Bq=a[4];this.Oa=a[5];var e=a[6],k,m;this.Sa=[];this.Vh=[];k=0;for(m=e.length;k=this.Sa.length&&(x=this.Sa.length-1);n.R=this.Sa[x];-1===n.R.H.indexOf(n)&&n.R.H.push(n);n.R.kd=!0}r.length=0;this.ks();c=0;for(e=this.Sa.length;ce?n.siblings.push(g.H[e]):g.wd&&(m=this.e.hf(g.wd,n.R,!0,n.x,n.y,!0),this.e.mc(),g.hl(),n.siblings.push(m),r.push(m)));c=0;for(e=this.bg.length;cthis.width-a&&(c=this.width-a);cthis.height-a&&(c=this.height-a);cO&&(O=0);0>W&&(W=0);N>G&&(N=G);L>S&&(L=S);0>ea&&(ea=0);0>Y&&(Y=0);K>G&&(K=G);R>S&&(R=S);V.left=O/G;V.top=1-W/S;V.right=N/G;V.bottom=1-L/S}else V.left=H.left=0,V.top=H.top=0,V.right=H.right=1,V.bottom=H.bottom= 1;U=e&&((e.V||J)&&c.Ei(m[0].jc)||0!==t||0!==U||1!==e.opacity||e.type.$a.Kp)||a&&!e&&1!==a.opacity;c.vq();if(U){q[y]||(q[y]=c.ye(G,S,this.e.eb));if(q[y].Dh!==G||q[y].Ch!==S)c.deleteTexture(q[y]),q[y]=c.ye(G,S,this.e.eb);c.me(0);c.le(q[y]);I=R-Y;c.clearRect(ea,S-Y-I,K-ea,I);e?e.Nd(c):(c.qd(this.e.pd),c.lh(a.opacity),c.je(),c.translate(-X,-F),c.qe(),c.zf(O,L,N,L,N,W,O,W,V));H.left=H.top=0;H.right=H.bottom=1;e&&(h=V.top,V.top=V.bottom,V.bottom=h);y=1;s=0}c.lh(1);t=m.length-1;var J=c.hn(m[t].jc)||!a&& !e&&!this.e.yd,aa=0;w=0;for(B=m.length;wthis.jd||g.top>this.hd||(e.globalCompositeOperation=f.Eh,f.De(e)));e.restore();this.Af&&(c.globalCompositeOperation=this.Eh,c.globalAlpha=this.opacity,c.drawImage(a,0,0))};q.prototype.qn=function(c,a,e){var k=this.Wc();this.kc=c;this.lc=a;this.jd=c+this.e.Ka*(1/k);this.hd=a+this.e.Ja*(1/k);c=this.pb();0!==c&&(e&&(e.translate(this.e.Ka/2,this.e.Ja/2),e.rotate(-c),e.translate(this.e.Ka/-2,this.e.Ja/-2)),this.Xe.set(this.kc,this.lc,this.jd,this.hd),this.Xe.offset((this.kc+this.jd)/-2,(this.lc+ this.hd)/-2),this.Pq.zq(this.Xe,c),this.Pq.xo(this.Xe),this.Xe.offset((this.kc+this.jd)/2,(this.lc+this.hd)/2),this.kc=this.Xe.left,this.lc=this.Xe.top,this.jd=this.Xe.right,this.hd=this.Xe.bottom)};q.prototype.Nd=function(c){var a=this.e.Ka,e=this.e.Ja,k=0,m=0;if(this.Af=this.Vl||1!==this.opacity||0 this.jd||k.top>this.hd)))if(q.er)if(k=q.Xa[0].jc,m=q.Xa[0].index,1!==q.Xa.length||c.hn(k)||c.Qu(k)||(q.V||q.R.pb())&&c.Ei(k)||1!==q.opacity||q.type.$a.Kp)this.ib.nn(c,this,q,this.Af?this.e.pd:this.ib.Oh()),c.je(),c.scale(f,f),c.rn(-this.pb()),c.translate((this.kc+this.jd)/-2,(this.lc+this.hd)/-2),c.qe();else{c.me(k);c.Bf(q.rc,q.oc);c.Dk(k)&&(this.e.jb=!0);var A=0,w=0,B=0,t=0;c.Ei(k)&&(k=q.rb,A=this.qb(k.left,k.top,!0,!0),w=this.qb(k.left,k.top,!1,!0),B=this.qb(k.right,k.bottom,!0,!0),k=this.qb(k.right, k.bottom,!1,!0),A/=a,w=1-w/e,B/=a,t=1-k/e);c.mh(this.Af?this.e.pd:this.ib.Oh(),1/q.width,1/q.height,A,w,B,t,this.Wc(),this.pb(),this.kc,this.lc,q.tb[m]);q.Nd(c)}else c.me(0),c.Bf(q.rc,q.oc),q.Nd(c);this.Af&&(k=this.Xa.length?this.Xa[0].jc:0,m=this.Xa.length?this.Xa[0].index:0,0===this.Xa.length||1===this.Xa.length&&!c.hn(k)&&1===this.opacity?(1===this.Xa.length?(c.me(k),c.mh(this.ib.Oh(),1/this.e.Ka,1/this.e.Ja,0,0,1,1,this.Wc(),this.pb(),this.kc,this.lc,this.tb[m]),c.Dk(k)&&(this.e.jb=!0)):c.me(0), c.le(this.ib.Oh()),c.lh(this.opacity),c.qd(this.e.pd),c.Bf(this.rc,this.oc),c.je(),c.qe(),a=this.e.Ka/2,e=this.e.Ja/2,c.Fk(-a,e,a,e,a,-e,-a,-e),c.qd(null)):this.ib.nn(c,this,null,this.ib.Oh()))};q.prototype.fc=function(c,a,e,k){var f=this.e.devicePixelRatio;this.e.cg&&(c*=f,a*=f);var f=this.e.hq,n=this.e.iq,f=(this.ib.scrollX-f)*this.Lc+f,n=(this.ib.scrollY-n)*this.Mc+n,g=1/this.Wc(!k);k?(f-=this.e.Ka*g/2,n-=this.e.Ja*g/2):(f-=this.e.width*g/2,n-=this.e.height*g/2);f+=c*g;n+=a*g;a=this.pb();0!==a&& (f-=this.ib.scrollX,n-=this.ib.scrollY,c=Math.cos(a),a=Math.sin(a),k=f*c-n*a,n=n*c+f*a,f=k+this.ib.scrollX,n+=this.ib.scrollY);return e?f:n};q.prototype.qb=function(c,a,e,k){var f=this.pb();if(0!==f){c-=this.ib.scrollX;a-=this.ib.scrollY;var n=Math.cos(-f),f=Math.sin(-f),g=c*n-a*f;a=a*n+c*f;c=g+this.ib.scrollX;a+=this.ib.scrollY}n=this.e.hq;f=this.e.iq;n=(this.ib.scrollX-n)*this.Lc+n;f=(this.ib.scrollY-f)*this.Mc+f;g=1/this.Wc(!k);k?(n-=this.e.Ka*g/2,f-=this.e.Ja*g/2):(n-=this.e.width*g/2,f-=this.e.height* g/2);n=(c-n)/g;f=(a-f)/g;c=this.e.devicePixelRatio;this.e.cg&&!k&&(n/=c,f/=c);return e?n:f};q.prototype.ic=function(){var c,a,e,k={s:this.scale,a:this.V,vl:this.kc,vt:this.lc,vr:this.jd,vb:this.hd,v:this.visible,bc:this.ef,t:this.tg,px:this.Lc,py:this.Mc,o:this.opacity,zr:this.tc,fx:[],instances:[]};c=0;for(a=this.Da.length;ca[1].index&&(h=a[0],a[0]=a[1],a[1]=h):2=A.length&&(A.length=a.length+1);A[a.length]||(A[a.length]=[]);k=A[a.length];h=0;for(e=k.length;h=e.length&&(e.length=this.kg+1),e[this.kg]=a):this.data=a};C.prototype.Ph=function(){var a=this.e.To();return!this.parent||this.bi||!a||this.$j?this.data:this.kg>=a.length||"undefined"===typeof a[this.kg]?this.Vj:a[this.kg]};C.prototype.Hb=function(){!this.parent||this.bi||this.$j||this.qg(this.Vj)}; Rb=C;x.prototype.toString=function(){return"include:"+this.Uh.toString()};x.prototype.Cb=function(){this.Uh=this.e.Rl[this.gu];this.sheet.dp.add(this);this.cb=f(this.cb);for(var a=this.parent;a;)a.group&&a.sj.push(this),a=a.parent;this.Zq()};x.prototype.Hb=function(){this.parent&&this.e.Gi(this.e.ea);this.Uh.nm||this.Uh.Hb(!0);this.parent&&this.e.Te(this.e.ea)};x.prototype.Zq=function(){for(var a=this.parent;a;){if(a.group&&!a.Yf){this.nc=!1;return}a=a.parent}this.nc=!0};$b=x;u.prototype.reset=function(a){this.uc= a;this.zc=this.Mb=0;this.Jq.length=0;this.Pl=this.hg=!1};Qb=u})(); (function(){function g(f,g){this.ra=f;this.e=f.e;this.type=g[0];this.get=[this.dt,this.Zs,this.mt,this.pt,this.Ts,this.nt,this.it,this.Ws,this.ht,this.lt,this.Us,this.kt,this.Xs,this.jt,this.et,this.gt,this.$s,this.bt,this.Vs,this.ot,this.Lo,this.ct,this.Lo,this.Ys][this.type];var c=null;this.Kc=this.Fa=this.kb=this.gc=this.$k=this.cc=this.first=this.value=null;this.sd=-1;this.Je=null;this.Pn=-1;this.Vf=this.Yi=null;this.Ji=!1;switch(this.type){case 0:case 1:case 2:this.value=g[1];break;case 3:this.first= new Yb(f,g[1]);break;case 18:this.first=new Yb(f,g[1]);this.cc=new Yb(f,g[2]);this.$k=new Yb(f,g[3]);break;case 19:this.gc=g[1];this.gc!==l.prototype.P.random&&this.gc!==l.prototype.P.us||this.ra.wq();this.kb=[];this.Fa=[];3===g.length?(c=g[2],this.kb.length=c.length+1):this.kb.length=1;break;case 20:this.Kc=this.e.ea[g[1]];this.sd=-1;this.gc=g[2];this.Ji=g[3];z&&this.gc===z.prototype.P.gr&&this.ra.wq();this.Je=g[4]?new Yb(f,g[4]):null;this.kb=[];this.Fa=[];6===g.length?(c=g[5],this.kb.length=c.length+ 1):this.kb.length=1;break;case 21:this.Kc=this.e.ea[g[1]];this.Ji=g[2];this.Je=g[3]?new Yb(f,g[3]):null;this.Pn=g[4];break;case 22:this.Kc=this.e.ea[g[1]];this.Kc.Lj(g[2]);this.sd=this.Kc.cm(g[2]);this.gc=g[3];this.Ji=g[4];this.Je=g[5]?new Yb(f,g[5]):null;this.kb=[];this.Fa=[];7===g.length?(c=g[6],this.kb.length=c.length+1):this.kb.length=1;break;case 23:this.Yi=g[1],this.Vf=null}this.ra.Cu(this.Kc);4<=this.type&&17>=this.type&&(this.first=new Yb(f,g[1]),this.cc=new Yb(f,g[2]));if(c){var a,e;a=0; for(e=c.length;ag&&(g+=c.length);c=c[g];-1g&&(g+=c.length);c=c[g].Qb[this.Pn];ja(c)?f.gd(c):f.pa(c);this.ra.Gb();return}this.ra.Gb()}g%=c.length;0>g&&(g+=c.length);c=c[g];g=0;this.Kc.La&&(g=c.type.Dj[this.Kc.Fe]);c=c.Qb[this.Pn+g];ja(c)?f.gd(c): f.pa(c)};g.prototype.dt=function(f){f.type=bc.wg;f.data=this.value};g.prototype.Zs=function(f){f.type=bc.vg;f.data=this.value};g.prototype.mt=function(f){f.type=bc.cj;f.data=this.value};g.prototype.pt=function(f){this.first.get(f);f.Yb()&&(f.data=-f.data)};g.prototype.Ts=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.Yb()&&g.Yb()&&(f.data+=g.data,g.Tg()&&f.bh());this.ra.Gb()};g.prototype.nt=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.Yb()&&g.Yb()&&(f.data-= g.data,g.Tg()&&f.bh());this.ra.Gb()};g.prototype.it=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.Yb()&&g.Yb()&&(f.data*=g.data,g.Tg()&&f.bh());this.ra.Gb()};g.prototype.Ws=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.Yb()&&g.Yb()&&(f.data/=g.data,f.bh());this.ra.Gb()};g.prototype.ht=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.Yb()&&g.Yb()&&(f.data%=g.data,g.Tg()&&f.bh());this.ra.Gb()};g.prototype.lt=function(f){this.first.get(f);var g= this.ra.Sb();this.cc.get(g);f.Yb()&&g.Yb()&&(f.data=Math.pow(f.data,g.data),g.Tg()&&f.bh());this.ra.Gb()};g.prototype.Us=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.Yb()?g.bk()?f.gd(f.data.toString()+g.data):f.data&&g.data?f.lb(1):f.lb(0):f.bk()&&(f.data=g.bk()?f.data+g.data:f.data+(Math.round(1E10*g.data)/1E10).toString());this.ra.Gb()};g.prototype.kt=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.Yb()&&g.Yb()&&(f.data||g.data?f.lb(1):f.lb(0));this.ra.Gb()}; g.prototype.Vs=function(f){this.first.get(f);f.data?this.cc.get(f):this.$k.get(f)};g.prototype.Xs=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.lb(f.data===g.data?1:0);this.ra.Gb()};g.prototype.jt=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.lb(f.data!==g.data?1:0);this.ra.Gb()};g.prototype.et=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.lb(f.datag.data?1:0);this.ra.Gb()};g.prototype.bt=function(f){this.first.get(f);var g=this.ra.Sb();this.cc.get(g);f.lb(f.data>=g.data?1:0);this.ra.Gb()};g.prototype.Ys=function(f){var g=this.Vf.Ph();ia(g)?f.pa(g):f.gd(g)};Yb=g;q.prototype.Tg=function(){return this.type===bc.vg};q.prototype.Yb=function(){return this.type===bc.wg||this.type===bc.vg};q.prototype.bk= function(){return this.type===bc.cj};q.prototype.bh=function(){this.Tg()||(this.bk()&&(this.data=parseFloat(this.data)),this.type=bc.vg)};q.prototype.lb=function(f){this.type=bc.wg;this.data=Math.floor(f)};q.prototype.pa=function(f){this.type=bc.vg;this.data=f};q.prototype.gd=function(f){this.type=bc.cj;this.data=f};q.prototype.xq=function(f){ia(f)?(this.type=bc.vg,this.data=f):ja(f)?(this.type=bc.cj,this.data=f.toString()):(this.type=bc.wg,this.data=0)};ac=q;bc={wg:0,vg:1,cj:2}})(); function l(g){this.e=g;this.Rc=[]}l.prototype.ic=function(){var g={},q,f,r,c,a,e,k,m;g.waits=[];var n=g.waits,C;q=0;for(f=this.Rc.length;q=f+q)return c.ua.aj=f+q,g>=c.ua.aj+0.04&&(c.ua.aj=g),c.ua.nl=a,!0;ga&&(a=0);this.e.If=a};var c=[],a=[];q.prototype.yb=function(e){if(!(0>e)){var k,f,g,q=this.e.Xb(),x;x=c.length?c.pop(): {yc:{},cb:[]};x.Ol=!1;x.time=this.e.$c.ub+e;x.Eq="";x.Bn=!1;x.Fg=q.uc;x.zc=q.zc+1;e=0;for(k=this.e.ea.length;eq&&(c=q);a.pa(c)};f.prototype.Tf=function(a){a.pa(this.e.Tf)};f.prototype.If=function(a){a.pa(this.e.If)};f.prototype.time=function(a){a.pa(this.e.$c.ub)};f.prototype.oe=function(a){a.lb(this.e.oe)};f.prototype.uk=function(a){a.lb(this.e.uk)};f.prototype.Wl=function(a){a.lb(this.e.Wl)};f.prototype.V=function(a, c,f,g,q){a.pa(Fa(Pa(c,f,g,q)))};f.prototype.left=function(a,c,f){a.gd(ja(c)?c.substr(0,f):"")};f.prototype.right=function(a,c,f){a.gd(ja(c)?c.substr(c.length-f):"")};f.prototype.replace=function(a,c,f,g){ja(c)&&ja(f)&&ja(g)?a.gd(c.replace(RegExp(db(f),"gi"),g)):a.gd(ja(c)?c:"")};f.prototype.us=function(a){var c=qa(Math.random()*(arguments.length-1));a.xq(arguments[c+1])};f.prototype.Il=function(a){a.pa(this.e.Il/1E3)};f.prototype.rf=function(a){a.pa(this.e.rf)};r.P=new f;r.Wu=function(){var e,f,g, n,q,x,r=this.e.Xb();e=0;for(g=this.Rc.length;ethis.e.$c.ub)continue;r.uc=n.Fg;r.zc=n.zc;r.Mb=0;for(f in n.yc)n.yc.hasOwnProperty(f)&&(q=this.e.ea[parseInt(f,10)].Na(),x=n.yc[f],q.Va=x.Mk,za(q.H,x.Ke),q=x,q.Ke.length=0,a.push(q));n.Fg.Vu();this.e.Gl(n.cb);n.Ol=!0}f=e=0;for(g=this.Rc.length;ea.jd||c.top>a.hd)},n.Sv=function(){this.ob();var a=this.rb,c=this.e.Ha;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},n.cw=function(a,c,e){var f= this.Na(),k=f.zd();if(!k.length)return!1;var g=k[0],h=g,m=Ua(g.x,g.y,c,e),s,n,q;s=1;for(n=k.length;sm)m=q,h=g;f.Di(h);return!0},C.Ur=function(a){this.x!==a&&(this.x=a,this.na())},C.sw=function(a){this.y!==a&&(this.y=a,this.na())},C.pw=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.na()},C.qw=function(a,c){var e=a.It(this);if(e){var f;e.Mh?(f=e.Mh(c,!0),e=e.Mh(c,!1)):(f=e.x,e=e.y);if(this.x!==f||this.y!==e)this.x=f,this.y=e,this.na()}}, C.Wa=function(a){0!==a&&(this.x+=Math.cos(this.V)*a,this.y+=Math.sin(this.V)*a,this.na())},C.Wv=function(a,c){0!==c&&(this.x+=Math.cos(Ea(a))*c,this.y+=Math.sin(Ea(a))*c,this.na())},f.ko=function(a){a.pa(this.x)},f.lo=function(a){a.pa(this.y)},f.Tf=function(a){a.pa(this.e.Nj(this))});a&&(n.Lv=function(a,c){return cc(this.width,a,c)},n.Jv=function(a,c){return cc(this.height,a,c)},C.ul=function(a){this.width!==a&&(this.width=a,this.na())},C.nw=function(a){this.height!==a&&(this.height=a,this.na())}, C.Tr=function(a,c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.na()},f.Wr=function(a){a.pa(this.width)},f.jr=function(a){a.pa(this.height)},f.Gv=function(a){this.ob();a.pa(this.rb.left)},f.Iv=function(a){this.ob();a.pa(this.rb.top)},f.Hv=function(a){this.ob();a.pa(this.rb.right)},f.Fv=function(a){this.ob();a.pa(this.rb.bottom)});e&&(n.Ev=function(a,c){return Qa(this.V,Ea(c))<=Ea(a)},n.Qv=function(a){return Sa(this.V,Ea(a))},n.Pv=function(a,c){var e=Oa(a),f=Oa(c),k=Ka(this.V); return Sa(f,e)?Sa(k,e)&&!Sa(k,f):!(!Sa(k,e)&&Sa(k,f))},C.kw=function(a){a=Ea(Ja(a));isNaN(a)||this.V===a||(this.V=a,this.na())},C.gw=function(a){0===a||isNaN(a)||(this.V+=Ea(a),this.V=Ka(this.V),this.na())},C.hw=function(a){0===a||isNaN(a)||(this.V-=Ea(a),this.V=Ka(this.V),this.na())},C.iw=function(a,c){var e=Ra(this.V,Ea(c),Ea(a));isNaN(e)||this.V===e||(this.V=e,this.na())},C.jw=function(a,c,e){a=Ra(this.V,Math.atan2(e-this.y,c-this.x),Ea(a));isNaN(a)||this.V===a||(this.V=a,this.na())},C.rw=function(a, c){var e=Math.atan2(c-this.y,a-this.x);isNaN(e)||this.V===e||(this.V=e,this.na())},f.Dv=function(a){a.pa(Na(this.V))});r||(n.fa=function(a,c,e){return cc(this.Qb[a],c,e)},n.C=function(a){return this.Qb[a]},n.dw=function(a,c){var e=this.Na(),f=e.zd();if(!f.length)return!1;var k=f[0],g=k,h=k.Qb[c],m,s,n;m=1;for(s=f.length;mh)h=n,g=k;e.Di(g);return!0},n.bw=function(a){var c,e,f,k,g;if(this.e.Mj().Xj){g=this.Na();if(g.Va)for(g.Va=!1,g.H.length=0,g.Ya.length= 0,f=this.H,c=0,e=f.length;ca?a=0:1k.R.index||f.R.index===k.R.index&&f.nd()>k.nd())k=f}else if(f.R.indexe)){var f=1===a;this.cf[e]!==f&&(this.cf[e]=f,this.Ye(),this.e.jb=!0)}}},C.mw=function(a,c,e){if(this.e.ta){var f=this.type.gm(a);0>f||(a=this.type.Da[f], f=this.tb[f],c=Math.floor(c),0>c||c>=f.length||(1===this.e.ta.Mt(a.jc,c)&&(e/=100),f[c]!==e&&(f[c]=e,a.nc&&(this.e.jb=!0))))}})};Jb=function(){this.Fl=this.Bl=!0;this.type.fj=!0;this.e.jb=!0;var g,f,r=this.Cl;g=0;for(f=r.length;gr;case 5:return g>=r;default:return!1}}})();var kc={};function mc(g){this.e=g} (function(){function g(){}var q=!1,f=null,r=null,c="",a=mc.prototype;a.Ta=function(a){this.$a=a;this.e=a.e};a.Ta.prototype.wa=b();a.Ia=function(a){this.type=a;this.e=a.e;this.ae=this.Yg="";this.Sd=0;this.timeout=-1;if(q=this.e.Me)f=require("path"),r=require("fs"),c=f.dirname(process.execPath)+"\\"};var e=a.Ia.prototype,k=null;window.C2_AJAX_DCSide=function(a,c,e){k&&("success"===a?(k.ae=c,k.Yg=e,k.e.trigger(mc.prototype.d.pl,k)):"error"===a?(k.ae=c,k.e.trigger(mc.prototype.d.rl,k)):"progress"===a&& (k.Sd=e,k.ae=c,k.e.trigger(mc.prototype.d.ao,k)))};e.wa=function(){k=this};e.ic=function(){return{lastData:this.Yg}};e.wc=function(a){this.Yg=a.lastData;this.ae="";this.Sd=0};var m={};e.Dw=function(a,e,f,k){if(this.e.pc)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+e+'", "'+f+'", '+(k?'"'+k+'"':"null")+");");else{var g=this,w=null,B=function(){g.ae=a;g.e.trigger(mc.prototype.d.rl,g)},t=function(){if(q){var a=c+e;r.existsSync(a)?r.readFile(a,{encoding:"utf8"},function(a,c){a?B():(g.Yg=c.replace(/\r\n/g, "\n"),g.e.trigger(mc.prototype.d.pl,g))}):B()}else B()},h=function(c){c.lengthComputable&&(g.Sd=c.loaded/c.total,g.ae=a,g.e.trigger(mc.prototype.d.ao,g))};try{w=this.e.Rg?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;w.onreadystatechange=function(){4===w.readyState&&(g.ae=a,g.Yg=w.responseText?w.responseText.replace(/\r\n/g,"\n"):"",400<=w.status?g.e.trigger(mc.prototype.d.rl,g):q&&!g.Yg.length||g.e.trigger(mc.prototype.d.pl,g))};this.e.Rg||(w.onerror=t,w.ontimeout=t,w.onabort=t,w.onprogress= h);w.open(f,e);!this.e.Rg&&0<=this.timeout&&"undefined"!==typeof w.timeout&&(w.timeout=this.timeout);try{w.responseType="text"}catch(y){}k&&w.setRequestHeader&&w.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(w.setRequestHeader){for(var s in m)if(m.hasOwnProperty(s))try{w.setRequestHeader(s,m[s])}catch(I){}m={}}k?w.send(k):w.send()}catch(G){t()}}};g.prototype.pl=function(a){return kb(a,this.ae)};g.prototype.rl=function(a){return kb(a,this.ae)};g.prototype.ao=function(a){return kb(a, this.ae)};a.d=new g;a.b=new (b());a.P=new (b())})();function nc(g){this.e=g} (function(){function g(){return k.length?k.pop():[]}function q(a){var c,e;c=0;for(e=a.length;ca||a>this.vd-1||isNaN(c)||0>c||c>this.Md-1||isNaN(e)||0>e||e>this.be-1?0:this.ve[a][c][e]};e.set=function(a, c,e,f){a=Math.floor(a);c=Math.floor(c);e=Math.floor(e);isNaN(a)||0>a||a>this.vd-1||isNaN(c)||0>c||c>this.Md-1||isNaN(e)||0>e||e>this.be-1||(this.ve[a][c][e]=f)};e.At=function(){return JSON.stringify({c2array:!0,size:[this.vd,this.Md,this.be],data:this.ve})};e.ic=function(){return{size:[this.vd,this.Md,this.be],data:this.ve}};e.wc=function(a){var c=a.size;this.vd=c[0];this.Md=c[1];this.be=c[2];this.ve=a.data};e.Cf=function(a,c,e){0>a&&(a=0);0>c&&(c=0);0>e&&(e=0);if(this.vd!==a||this.Md!==c||this.be!== e){this.vd=a;this.Md=c;this.be=e;var f,k,r=this.ve;r.length=a;for(a=0;aa&&(a=0);1a&&(a=0);1a&&(a=0.01);this.Ck.gain.value=a;this.Bk.gain.value=Math.pow(1/a,0.6)*c};t.prototype.shape=function(a,c,e){var f=1.05*e*c-c;e=0>a?-1:1;a=0>a?-a:a;c=ag;++g)k=g/32768,k=this.shape(k,e,f),this.xj[32768+ g]=k,this.xj[32768-g-1]=-k};t.prototype.td=function(a){this.Ba.disconnect();this.Ba.connect(a);this.za.disconnect();this.za.connect(a)};t.prototype.remove=function(){this.Ra.disconnect();this.Ck.disconnect();this.ll.disconnect();this.Bk.disconnect();this.Ba.disconnect();this.za.disconnect()};t.prototype.md=ca("Ra");h.prototype.td=function(a){this.Ua.disconnect();this.Ua.connect(a)};h.prototype.remove=function(){this.Ua.disconnect()};h.prototype.md=ca("Ua");y.prototype.Ub=function(){this.Ua.getFloatFrequencyData(this.wt); this.Ua.getByteTimeDomainData(this.Cq);for(var a=this.Ua.fftSize,c=0,e=this.Ci=0,f=0;cf&&(f=-f),this.Cithis.Gf.length||this.Gf.shift(),this.Gf.push(a),this.ek=this.ya.x,this.fk=this.ya.y)};s.prototype.Zo=function(){if(!this.Gf.length)return 0;var a,c,e=0;a=0;for(c=this.Gf.length;athis.buffer.gb.duration:this.aa.ended;case L:return this.bn;case R:!0}return!0}; G.prototype.os=function(){return this.nf||this.Gd?!0:this.Th()};G.prototype.Pk=function(a){U===K&&(!this.ie&&a?this.Wb&&(this.Bb||(this.Bb=J.createPanner(),this.Bb.panningModel="number"===typeof this.Bb.panningModel?xb:["equalpower","HRTF","soundfield"][xb],this.Bb.distanceModel="number"===typeof this.Bb.distanceModel?yb:["linear","inverse","exponential"][yb],this.Bb.refDistance=tc,this.Bb.maxDistance=uc,this.Bb.rolloffFactor=vc),this.Wb.disconnect(),this.Wb.connect(this.Bb),this.Bb.connect(f(this.Hf)), this.ie=!0):this.ie&&!a&&this.Wb&&(this.Bb.disconnect(),this.Wb.disconnect(),this.Wb.connect(f(this.Hf)),this.ie=!1))};G.prototype.Ok=function(a,c,e,f,k,g){this.ie&&U===K&&(this.Bb.setPosition(a,c,0),this.Bb.setOrientation(Math.cos(Ea(e)),Math.sin(Ea(e)),0),this.Bb.coneInnerAngle=f,this.Bb.coneOuterAngle=k,this.Bb.coneOuterGain=g,this.fq=a,this.gq=c,this.aq=e,this.bq=f,this.cq=k,this.dq=g)};G.prototype.kh=function(a){this.ie&&U===K&&(this.Ab||(this.Ab=new s),this.Ab.kh(a))};G.prototype.Ub=function(a){if(this.ie&& U===K&&this.Ab&&this.Ab.Rj()&&this.Qg()){this.Ab.Ub(a);a=this.Ab.ya;var c=Ta(a.x,a.y,-a.R.pb(),Ha,Ia,!0),e=Ta(a.x,a.y,-a.R.pb(),Ha,Ia,!1);this.Bb.setPosition(c,e,0);c=0;"undefined"!==typeof this.Ab.ya.V&&(c=a.V-a.R.pb(),this.Bb.setOrientation(Math.cos(c),Math.sin(c),0));c=Ta(this.Ab.jm(),this.Ab.km(),-a.R.pb(),0,0,!0);e=Ta(this.Ab.jm(),this.Ab.km(),-a.R.pb(),0,0,!1);this.Bb.setVelocity(c,e,0)}};G.prototype.play=function(c,f,k){var g=this.aa;this.Qe=c;this.volume=f;k=k||0;switch(this.Za){case N:1!== g.playbackRate&&(g.playbackRate=1);g.volume!==f*Ca&&(g.volume=f*Ca);g.loop!==c&&(g.loop=c);g.muted&&(g.muted=!1);if(g.currentTime!==k)try{g.currentTime=k}catch(h){}if(this.Qd&&Va&&!O.zb)Wa.push(this);else try{this.aa.play()}catch(m){}break;case K:this.muted=!1;this.ti=1;if(this.buffer.Za===K)this.nf||(this.aa=J.createBufferSource(),this.aa.buffer=this.buffer.gb,this.aa.connect(this.Wb)),this.aa.loop=c,this.Wb.gain.value=f*Ca,0===k?a(this.aa):e(this.aa,k,this.Kg());else{1!==g.playbackRate&&(g.playbackRate= 1);g.loop!==c&&(g.loop=c);this.Wb.gain.value=f*Ca;if(g.currentTime!==k)try{g.currentTime=k}catch(s){}this.Qd&&Va&&!O.zb?Wa.push(this):g.play()}break;case L:(!this.nf&&this.Gd||0!==k)&&g.seekTo(k);g.play();this.bn=!1;break;case R:O.pc?AppMobi.context.playSound(this.src,c):AppMobi.player.playSound(this.src,c)}this.playbackRate=1;this.startTime=O.$c.ub-k;this.Ne=this.Gd=this.nf=!1};G.prototype.stop=function(){switch(this.Za){case N:this.aa.paused||this.aa.pause();break;case K:this.buffer.Za===K?k(this.aa): this.aa.paused||this.aa.pause();break;case L:this.aa.stop();break;case R:O.pc&&AppMobi.context.stopSound(this.src)}this.Gd=!0;this.Ne=!1};G.prototype.pause=function(){if(!(this.nf||this.Gd||this.Th()||this.Ne)){switch(this.Za){case N:this.aa.paused||this.aa.pause();break;case K:this.buffer.Za===K?(this.Wd=this.hm(),this.Qe&&(this.Wd%=this.Kg()),k(this.aa)):this.aa.paused||this.aa.pause();break;case L:this.aa.pause();break;case R:O.pc&&AppMobi.context.stopSound(this.src)}this.Ne=!0}};G.prototype.Tu= function(a){this.Za===K&&(this.ie?(this.Bb.disconnect(),this.Bb.connect(a)):(this.Wb.disconnect(),this.Wb.connect(a)))};G.prototype.Kg=function(){switch(this.Za){case N:if("undefined"!==typeof this.aa.duration)return this.aa.duration;break;case K:return this.buffer.gb.duration;case L:return this.aa.getDuration();case R:if(O.pc)return AppMobi.context.getDurationSound(this.src)}return 0};G.prototype.hm=function(){var a=this.Kg(),c=0;switch(this.Za){case N:"undefined"!==typeof this.aa.currentTime&&(c= this.aa.currentTime);break;case K:if(this.buffer.Za===K){if(this.Ne)return this.Wd;c=O.$c.ub-this.startTime}else"undefined"!==typeof this.aa.currentTime&&(c=this.aa.currentTime);break;case R:O.pc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Qe&&c>a&&(c=a);return c};G.prototype.Qg=function(){return!this.Ne&&!this.nf&&!this.Gd&&!this.Th()};G.prototype.uv=function(){var a=this.volume*Ca;switch(this.Za){case N:this.aa.volume&&this.aa.volume!==a&&(this.aa.volume=a);break;case K:this.Wb.gain.value= a*this.ti}};G.prototype.Bj=function(a){switch(this.Za){case N:this.aa.muted!==!!a&&(this.aa.muted=!!a);break;case K:this.ti=a?0:1,this.Wb.gain.value=Ca*this.volume*this.ti}};G.prototype.gv=function(){this.Ug=!0;this.Bj(this.Ug||this.ai)};G.prototype.Qk=function(a){this.ai=!!a;this.Bj(this.Ug||this.ai)};G.prototype.cr=function(){var a=this.playbackRate;if(1===ib&&!this.Qd||2===ib)a*=O.If;switch(this.Za){case N:this.aa.playbackRate!==a&&(this.aa.playbackRate=a);break;case K:this.buffer.Za===K?this.aa.playbackRate.value!== a&&(this.aa.playbackRate.value=a):this.aa.playbackRate!==a&&(this.aa.playbackRate=a)}};G.prototype.jv=function(a){switch(this.Za){case N:a?this.Qg()?(this.aa.pause(),this.Ue=!0):this.Ue=!1:this.Ue&&this.aa.play();break;case K:a?this.Qg()?(this.buffer.Za===K?(this.Wd=this.hm(),this.Qe&&(this.Wd%=this.Kg()),k(this.aa)):this.aa.pause(),this.Ue=!0):this.Ue=!1:this.Ue&&(this.buffer.Za===K?(this.aa=J.createBufferSource(),this.aa.buffer=this.buffer.gb,this.aa.connect(this.Wb),this.aa.loop=this.Qe,this.Wb.gain.value= Ca*this.volume*this.ti,this.startTime=O.$c.ub-this.Wd,e(this.aa,this.Wd,this.Kg())):this.aa.play());break;case L:a?this.Qg()?(this.aa.pause(),this.Ue=!0):this.Ue=!1:this.Ue&&this.aa.play()}};H.Ia=function(c){this.type=c;O=this.e=c.e;ea=this;this.vc=null;this.ki=-600;!(this.e.ck||this.e.Yj&&(this.e.Xh||this.e.jp))||this.e.Zj||this.e.nb||(Va=!0);J=null;"undefined"!==typeof AudioContext?(U=K,J=new AudioContext):"undefined"!==typeof webkitAudioContext&&(U=K,J=new webkitAudioContext);(this.e.ck&&U===K|| Va)&&document.addEventListener("touchstart",function(){var c,e,f;!wc&&J&&(c=J.createBuffer(1,1,22050),e=J.createBufferSource(),e.buffer=c,e.connect(J.destination),a(e),wc=!0);if(Va){if(!oa)for(c=0,e=Wa.length;c"!==c&&(a.yk=c,a.Jm=f,a.Rn=k),null;m=new G(a,c);T.push(m);return m};var Ga=[];F.prototype.ql=function(a){return kb(W,a)};F.prototype.Vn=function(){return oa};H.d=new F; V.prototype.Play=function(a,c,e,f){!oa&&(e=g(e),ya=this.$l(this.e.Fj+a[0]+(Ma?".ogg":".m4a"),f,a[1],0!==c,e))&&(ya.Pk(!1),ya.play(0!==c,e))};V.prototype.qa=function(a,c,e,f,k,h,m,s){if(!oa&&f&&(f=f.Vo())){e=g(e);var n=a[1];a=this.e.Fj+a[0]+(Ma?".ogg":".m4a");(ya=this.$l(a,s,n,0!==c,e))?(ya.Pk(!0),s=Ta(f.x,f.y,-f.R.pb(),Ha,Ia,!0),a=Ta(f.x,f.y,-f.R.pb(),Ha,Ia,!1),ya.Ok(s,a,Fa(f.V-f.R.pb()),k,h,g(m)),ya.kh(f),ya.play(0!==c,e)):this.Lh(a,n).mg.push({ya:f,Tj:k,tk:h,vk:g(m),In:s})}};V.prototype.jo=function(a){S(a); var c;a=0;for(c=Ga.length;ae?null:a[e];return f?kb(c,f.name):!1};c.d=new f;c.b=new (b());r.prototype.gr=function(a,c){var f=q();f.name=c.toLowerCase();f.Jk=0;f.qc.length=0;var g,r;g=2;for(r=arguments.length;g(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.lm=!1;this.e.zb=!0;this.e.trigger(M.prototype.d.Rr,this);this.e.zb=!1;this.lm&&a.preventDefault()};g.prototype.Wn=function(a,c){return a===this.qh&&c===this.el};g.prototype.mr=d(!0);g.prototype.Lr=function(a){return a===this.qh};g.prototype.A=function(a,c,f){return a!==this.qh||c!==this.el?!1:this.e.Si(f,this.tf,this.uf)};g.prototype.Rr=function(a){this.lm=!0;return a===this.Qq};r.d=new g;q.prototype.ho=function(a){a="auto pointer text crosshair move help wait none".split(" ")[a]; this.e.canvas&&this.e.canvas.style&&(this.e.canvas.style.cursor=a)};r.b=new q;f.prototype.ko=function(a,c){var f,g,r,q,u;ha(c)?(f=this.e.Ie(0),g=f.scale,r=f.tc,q=f.Lc,u=f.V,f.scale=this.e.Ha.scale,f.tc=1,f.Lc=1,f.V=this.e.Ha.V,a.pa(f.fc(this.tf,this.uf,!0)),f.scale=g,f.tc=r,f.Lc=q,f.V=u):(f=ia(c)?this.e.Ie(c):this.e.Nh(c))?a.pa(f.fc(this.tf,this.uf,!0)):a.pa(0)};f.prototype.lo=function(a,c){var f,g,r,q,u;ha(c)?(f=this.e.Ie(0),g=f.scale,r=f.tc,q=f.Mc,u=f.V,f.scale=this.e.Ha.scale,f.tc=1,f.Mc=1,f.V= this.e.Ha.V,a.pa(f.fc(this.tf,this.uf,!1)),f.scale=g,f.tc=r,f.Mc=q,f.V=u):(f=ia(c)?this.e.Ie(c):this.e.Nh(c))?a.pa(f.fc(this.tf,this.uf,!1)):a.pa(0)};r.P=new f})();function v(g){this.e=g} (function(){function g(){if(0===this.Ml.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.oh?c.drawImage(this.sc,this.fh,this.gh,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.sc,0,0,this.width,this.height);this.Ml=a.toDataURL("image/png")}return this.Ml}function q(){}function f(a){a[0]=0;a[1]=0;a[2]=0;u.push(a)}function r(a,c){return athis.ma&&(this.ma=0);this.ma>=this.sb.frames.length&&(this.ma=this.sb.frames.length-1);var a=this.sb.frames[this.ma];this.bb.Mi(a.zk);this.Yc=a.Yc;this.Zc=a.Zc;this.Fh=this.sb.speed;this.fd?this.Zd.reset():this.Zd=new cb;this.Ge=this.Zd.ub;this.Of=!0;this.ue=0;this.Nf=!0;this.pj=this.to="";this.Co=0;this.oj=-1;this.type.zu(); var c,e,f,k,g,h,m,a=0;for(c=this.type.Tc.length;athis.ma&&(this.ma=0);this.ma>=this.sb.frames.length&&(this.ma=this.sb.frames.length-1);this.Fh=a.cas;this.Ge=a.fs;this.ue=a.ar;this.Zd.reset();this.Zd.ub=a.at;this.Of=a.hasOwnProperty("ap")?a.ap:!0;this.Nf=a.hasOwnProperty("af")?a.af:!0;this.ud=this.sb.frames[this.ma];this.wj=this.ud.$e;this.bb.Mi(this.ud.zk);this.Yc=this.ud.Yc;this.Zc=this.ud.Zc};x.Al=function(a){this.ma= a?0:this.sb.frames.length-1;this.Of=!1;this.to=this.sb.name;this.Uj=!0;this.e.trigger(v.prototype.d.bf,this);this.e.trigger(v.prototype.d.lr,this);this.Uj=!1;this.ue=0};x.Kw=function(){return this.Zd.ub};x.Ub=function(){this.Zd.add(this.e.Nj(this));this.pj.length&&this.Ho();0<=this.oj&&this.Io();var a=this.Zd.ub,c=this.sb,e=c.frames[this.ma],f=e.duration/this.Fh;this.Of&&a>=this.Ge+f&&(this.Nf?this.ma++:this.ma--,this.Ge+=f,this.ma>=c.frames.length&&(c.jq?(this.Nf=!1,this.ma=c.frames.length-2):c.loop? this.ma=c.Ik:(this.ue++,this.ue>=c.on?this.Al(!1):this.ma=c.Ik)),0>this.ma&&(c.jq?(this.ma=1,this.Nf=!0,c.loop||(this.ue++,this.ue>=c.on&&this.Al(!0))):c.loop?this.ma=c.Ik:(this.ue++,this.ue>=c.on?this.Al(!0):this.ma=c.Ik)),0>this.ma?this.ma=0:this.ma>=c.frames.length&&(this.ma=c.frames.length-1),a>this.Ge+c.frames[this.ma].duration/this.Fh&&(this.Ge=a),a=c.frames[this.ma],this.xg(e,a),this.e.jb=!0)};x.So=function(a){var c,e,f;c=0;for(e=this.type.Tc.length;cthis.ma&&(this.ma=0),this.ma>=this.sb.frames.length&&(this.ma=this.sb.frames.length-1),1===this.Co&&(this.ma=0),this.Of=!0,this.Ge=this.Zd.ub,this.Nf=!0,this.xg(a,this.sb.frames[this.ma]),this.e.jb=!0)};x.Io=function(){var a=this.sb.frames[this.ma], c=this.ma;this.ma=qa(this.oj);0>this.ma&&(this.ma=0);this.ma>=this.sb.frames.length&&(this.ma=this.sb.frames.length-1);c!==this.ma&&(this.xg(a,this.sb.frames[this.ma]),this.Ge=this.Zd.ub,this.e.jb=!0);this.oj=-1};x.xg=function(a,c){var e=a.width,f=a.height,g=c.width,k=c.height;e!=g&&(this.width*=g/e);f!=k&&(this.height*=k/f);this.Yc=c.Yc;this.Zc=c.Zc;this.bb.Mi(c.zk);this.na();this.ud=c;this.wj=c.$e;e=0;for(f=this.Ea.length;eg||g>=f.length)return c?this.x:this.y;var k=(f[g][1]-e.Yc)*this.width,f=f[g][2],f=(f-e.Zc)*this.height,e=Math.cos(this.V);g=Math.sin(this.V);var h=k*e-f*g,f=f*e+k*g,k=h+this.x,f=f+this.y;return c?k:f};var u=[],A=-2,w=[];q.prototype.T=function(g){if(!g)return!1;var k=this.e,h=k.Mj(),m=h.type;h.ua.Hl||(h.ua.Hl={},k.wl(function(a){return function(c){c=c.uid;var e,g;for(e in a)a.hasOwnProperty(e)&& (g=a[e],g[0]===c||g[1]===c)&&(f(a[e]),delete a[e])}}(h.ua.Hl)));var h=h.ua.Hl,n=m.Na(),r=g.Na(),n=n.zd(),q,t,u,x,y,C,B,K=this.e.oe,L=K-1,R=k.Xb().uc;for(t=0;ta.jd||c.top>a.hd)this.e.ta.deleteTexture(this.dd),this.he=this.lg=this.dd=null}};c.hh=function(){this.he=this.lg=null;this.e.ta&&this.dd&&this.e.ta.deleteTexture(this.dd);this.dd= null};c.Ww=function(){this.font=this.Jj+" "+this.Fi.toString()+"pt "+this.Hg;this.sg=!0;this.e.jb=!0};c.De=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var e=1;c&&(e=this.R.Wc(),a.save(),a.scale(e,e));if(this.sg||this.width!==this.Am)this.type.$a.Xr(this.text,this.qf,a,this.width,this.Un),this.sg=!1,this.Am=this.width;this.ob();var e=c?0:this.Dc.Ib,f=c?0:this.Dc.Jb;this.e.yf&&(e=e+0.5|0,f=f+0.5|0);0===this.V||c||(a.save(),a.translate(e, f),a.rotate(this.V),f=e=0);var g=f+this.height,r=this.kn,r=r+this.Cm,q,w;1===this.jl?f+=Math.max(this.height/2-this.qf.length*r/2,0):2===this.jl&&(f+=Math.max(this.height-this.qf.length*r-2,0));for(w=0;w=g-r);w++);(0!==this.V||c)&&a.restore();this.ji=this.e.oe};c.Nd=function(a){if(!(1>this.width||1>this.height)){var c=this.sg||this.Mp;this.Mp= !1;var e=this.R.Wc(),f=this.R.pb(),g=this.jh,r=e*this.width,q=e*this.height,w=Math.ceil(r),B=Math.ceil(q),t=this.e.Ka/2,h=this.e.Ja/2;this.lg||(this.he=document.createElement("canvas"),this.he.width=w,this.he.height=B,this.ik=w,this.hk=B,c=!0,this.lg=this.he.getContext("2d"));if(w!==this.ik||B!==this.hk)this.he.width=w,this.he.height=B,this.dd&&(a.deleteTexture(this.dd),this.dd=null),c=!0;c&&(this.lg.clearRect(0,0,w,B),this.De(this.lg,!0),this.dd||(this.dd=a.ye(w,B,this.e.eb,this.e.Bd)),a.Av(this.he, this.dd,this.e.Bd));this.ik=w;this.hk=B;a.qd(this.dd);a.lh(this.opacity);a.je();a.translate(-t,-h);a.qe();var y=this.Dc,c=this.R.qb(y.Ib,y.Jb,!0,!0),t=this.R.qb(y.Ib,y.Jb,!1,!0),h=this.R.qb(y.Pc,y.Qc,!0,!0),s=this.R.qb(y.Pc,y.Qc,!1,!0),I=this.R.qb(y.Ec,y.Fc,!0,!0),G=this.R.qb(y.Ec,y.Fc,!1,!0),S=this.R.qb(y.Bc,y.Cc,!0,!0),y=this.R.qb(y.Bc,y.Cc,!1,!0);if(this.e.yf||0===this.V&&0===f)var X=(c+0.5|0)-c,F=(t+0.5|0)-t,c=c+X,t=t+F,h=h+X,s=s+F,I=I+X,G=G+F,S=S+X,y=y+F;0===this.V&&0===f?(h=c+w,s=t,I=h,G=t+ B,S=c,y=G,g.right=1,g.bottom=1):(g.right=r/w,g.bottom=q/B);a.zf(c,t,h,s,I,G,S,y,g);a.je();a.scale(e,e);a.rn(-this.R.pb());a.translate((this.R.kc+this.R.jd)/-2,(this.R.lc+this.R.hd)/-2);a.qe();this.ji=this.e.oe}};var a=[];r.Vr=function(c){a.length=0;for(var e="",f,g=0;g=f)q(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var u=e.measureText(a).width;if(u<=f){q(c);c.push(g());c[0].text=a;c[0].width=u;return}}this.Yr(a,c,e,f,r)}else q(c)};r.Yr=function(c,f,n,r,q){q&&(this.Vr(c),c=a);var u="",A,w,B,t=0;for(B=0;B=f.length&&f.push(g()),w=f[t],w.text=u,w.width=n.measureText(u).width,t++,u=""):(A=u,u+=c[B],w=n.measureText(u).width,w>=r&&(t>=f.length&&f.push(g()), w=f[t],w.text=A,w.width=n.measureText(A).width,t++,u=c[B],q||" "!==u||(u="")));u.length&&(t>=f.length&&f.push(g()),w=f[t],w.text=u,w.width=n.measureText(u).width,t++);for(B=t;Ba&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.sg=!0,this.e.jb=!0)};r.b=new f;r.P=new (b())})();function pc(g){this.e=g} (function(){function g(a){n=a.x;C=a.y;x=a.z}function q(a){u=a.x;A=a.y;w=a.z}function f(a,c,e,f){var g;g=B.length?B.pop():new r;g.init(a,c,e,f);return g}function r(){this.Pi=this.id=this.y=this.x=this.Yk=this.Xk=this.zm=this.time=this.Fn=0;this.Wi=this.fl=!1}function c(){}function a(){}var e=pc.prototype;e.Ta=function(a){this.$a=a;this.e=a.e};e.Ta.prototype.wa=b();e.Ia=function(a){this.type=a;this.e=a.e;this.touches=[];this.Mm=!1};var k=e.Ia.prototype,m={left:0,top:0};k.Jh=function(a){var c,e;c=0; for(e=this.touches.length;cUa(this.Xk,this.Yk,this.x, this.y)&&(this.fl=!0,a.pe=this.Pi,a.rh=this.id,a.Mg=c,a.e.trigger(pc.prototype.d.ur,a),a.Ae=this.x,a.Be=this.y,a.e.trigger(pc.prototype.d.xr,a),a.Mg=0)};var t=-1E3,h=-1E3,y=-1E4;r.prototype.Fp=function(a,c){if(!this.fl){var e=bb();333>=e-this.Fn&&!this.Wi&&15>Ua(this.Xk,this.Yk,this.x,this.y)&&(a.pe=this.Pi,a.rh=this.id,a.Mg=c,666>=e-y&&25>Ua(t,h,this.x,this.y)?(a.e.trigger(pc.prototype.d.rr,a),a.Ae=this.x,a.Be=this.y,a.e.trigger(pc.prototype.d.sr,a),h=t=-1E3,y=-1E4):(a.e.trigger(pc.prototype.d.Pr, a),a.Ae=this.x,a.Be=this.y,a.e.trigger(pc.prototype.d.Qr,a),t=this.x,h=this.y,y=e),a.Mg=0)}};k.wa=function(){this.su=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Mg=this.rh=this.pe=this.Be=this.Ae=this.oo=this.no=this.mo=this.bs=this.as=this.$r=this.Bi=this.Ai=this.yi=0;this.yv=0!==this.la[0];var a=0e-c.time|| c.update(e,a.pageX-f.left,a.pageY-f.top)}}};k.Vp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&lb(a)&&a.preventDefault();var c=this.e.nb?m:jQuery(this.e.canvas).offset(),e=a.pageX-c.left,c=a.pageY-c.top;bb();this.pe=this.touches.length;this.rh=a.pointerId;this.touches.push(f(e,c,a.pointerId,this.pe));this.e.zb=!0;this.e.trigger(pc.prototype.d.$n,this);this.e.trigger(pc.prototype.d.eo,this);this.Ae=e;this.Be=c;this.e.trigger(pc.prototype.d.co,this); this.e.zb=!1}};k.wk=function(a,c){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&lb(a)&&a.preventDefault();var e=this.Jh(a.pointerId);this.pe=0<=e?this.touches[e].Pi:-1;this.rh=0<=e?this.touches[e].id:-1;this.e.zb=!0;this.e.trigger(pc.prototype.d.Zn,this);this.e.trigger(pc.prototype.d.bo,this);0<=e&&(c||this.touches[e].Fp(this,e),100>B.length&&B.push(this.touches[e]),this.touches.splice(e,1));this.e.zb=!1}};k.Yp=function(a){a.preventDefault&&a.preventDefault(); var c=bb(),e,f,g,k;e=0;for(f=a.changedTouches.length;ec-k.time||k.update(c,g.pageX-h.left,g.pageY-h.top)}};k.Zp=function(a){a.preventDefault&&lb(a)&&a.preventDefault();var c=this.e.nb?m:jQuery(this.e.canvas).offset();bb();this.e.zb=!0;var e,g,k,h;e=0;for(g=a.changedTouches.length;eB.length&&B.push(this.touches[g]),this.touches.splice(g,1));this.e.zb=!1};k.Ew=function(){return this.e.Pg&&0===this.yi&&0!==x?90*x:this.e.Pd&&0===this.yi&&0!==w?90*w:this.yi};k.Fw=function(){return this.e.Pg&&0===this.Ai&&0!==C?-90*C:this.e.Pd&&0===this.Ai&&0!==A?-90*A:this.Ai};k.Jw=function(){return this.e.Pg&&0===this.Bi&&0!==n?90*n:this.e.Pd&&0===this.Bi&&0!==u?90*u:this.Bi};k.Vm=function(a){a.preventDefault&&this.e.Ng&& !this.e.Bd&&a.preventDefault();this.Zp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Mm=!0};k.Wm=function(a){this.Mm&&this.Yp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};k.Xm=function(a){a.preventDefault&&this.e.Ng&&!this.e.Bd&&a.preventDefault();this.e.Ng=!0;this.Ym({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Mm=!1};k.al=function(){var a,c,e,f=bb();a=0;for(c=this.touches.length;ae||e>=this.touches.length)a.pa(0);else{var f,g,k,h,m;ha(c)?(f=this.e.Ie(0),g=f.scale,k=f.tc,h=f.Lc,m=f.V,f.scale=this.e.Ha.scale,f.tc=1,f.Lc=1,f.V=this.e.Ha.V,a.pa(f.fc(this.touches[e].x,this.touches[e].y,!0)),f.scale=g,f.tc=k,f.Lc=h,f.V=m):(f=ia(c)?this.e.Ie(c):this.e.Nh(c))?a.pa(f.fc(this.touches[e].x,this.touches[e].y,!0)):a.pa(0)}};a.prototype.lo=function(a,c){var e=this.Mg;if(0>e||e>=this.touches.length)a.pa(0);else{var f,g,k,h,m; ha(c)?(f=this.e.Ie(0),g=f.scale,k=f.tc,h=f.Mc,m=f.V,f.scale=this.e.Ha.scale,f.tc=1,f.Mc=1,f.V=this.e.Ha.V,a.pa(f.fc(this.touches[e].x,this.touches[e].y,!1)),f.scale=g,f.tc=k,f.Mc=h,f.V=m):(f=ia(c)?this.e.Ie(c):this.e.Nh(c))?a.pa(f.fc(this.touches[e].x,this.touches[e].y,!1)):a.pa(0)}};e.P=new a})();function Q(g){this.e=g} (function(){function g(){}function q(){}function f(){}var r=Q.prototype;r.Ta=function(a){this.$a=a;this.e=a.e};r.Ta.prototype.wa=b();r.Ia=function(a){this.type=a;this.e=a.e};var c=r.Ia.prototype,a="",e="undefined"!==typeof window.is_scirra_arcade;e&&(a="arcade"+window.scirra_arcade_id);c.wa=b();g.prototype.Kr=d(!0);r.d=new g;q.prototype.ec=function(c,e){try{localStorage.setItem(a+c,e)}catch(f){this.e.trigger(Q.prototype.d.Kr,this)}};r.b=new q;f.prototype.ml=function(c){var f={},g,r,q;g=0;for(r=localStorage.length;g< r;g++)q=localStorage.key(g),e?q.substr(0,a.length)===a&&(f[q.substr(a.length)]=localStorage.getItem(q)):f[q]=localStorage.getItem(q);c.gd(JSON.stringify({c2dictionary:!0,data:f}))};r.P=new f})();function qc(g){this.e=g;this.e.ge&&(g={},window.XPathResult=g,g.NUMBER_TYPE=1,g.STRING_TYPE=2,g.UNORDERED_NODE_SNAPSHOT_TYPE=6,g.ORDERED_NODE_SNAPSHOT_TYPE=7)} (function(){var g=qc.prototype;g.Ta=function(f){this.$a=f;this.e=f.e};g.Ta.prototype.wa=b();g.Ia=function(f){this.type=f;this.e=f.e};var q=g.Ia.prototype;q.wa=function(){this.yh=null;this.vf=[];this.e.nb&&ga("[Construct 2] The XML object is not supported on this platform.")};q.Yw=function(f,g){if(this.yh){var c=this.vf.length?this.vf[this.vf.length-1]:this.yh.documentElement;try{return this.e.ge?c.selectSingleNode(f):this.yh.evaluate(f,c,null,g,null)}catch(a){return null}}};q.Xw=function(f,g){if(this.yh){var c= this.vf.length?this.vf[this.vf.length-1]:this.yh.documentElement;try{return this.e.ge?c.selectNodes(f):this.yh.evaluate(f,c,null,g,null)}catch(a){return null}}};q.Bw=function(f,g){this.vf.push(g);this.e.ih(f.cb);f.pn();this.e.Te(f.cb);this.vf.pop()};g.d=new (b());g.b=new (b());g.P=new (b())})();function Z(g){this.e=g} (function(){function g(){}function q(){}var f=Z.prototype;f.Ta=function(c){this.Ma=c;this.e=c.e};f.Ta.prototype.wa=b();f.Ia=function(c,a){this.type=c;this.Ma=c.Ma;this.B=a;this.e=c.e;this.Tk=this.Dn=this.Cn=this.om=this.Xg=this.ci=this.Kk=this.lk=!1;this.ad=null;this.Dm=-1;this.fg=this.eg=0;this.Ij=!1;this.Wf=this.Kd=0;this.Hj=!0;this.Pa=this.Aa=0};var r=f.Ia.prototype;r.br=function(){this.Nb=Math.cos(this.Jg);this.Ob=Math.sin(this.Jg);this.ng=Math.cos(this.Jg-Math.PI/2);this.pg=Math.sin(this.Jg- Math.PI/2);this.Nb=jb(this.Nb);this.Ob=jb(this.Ob);this.ng=jb(this.ng);this.pg=jb(this.pg);this.Zl=this.He;0>this.He&&(this.Nb*=-1,this.Ob*=-1,this.He=Math.abs(this.He))};r.wa=function(){this.Re=this.la[0];this.yg=this.la[1];this.Eg=this.la[2];this.dg=this.la[3];this.Zl=this.He=this.la[4];this.qk=this.la[5];this.As=1===this.la[6];this.enabled=0!==this.la[7];this.xh=!1;this.$i=this.e.We(this.B);this.Em=-1;this.Jg=Ea(90);this.br();var c=this;this.As&&!this.e.nb&&(jQuery(document).keydown(function(a){c.Rm(a)}), jQuery(document).keyup(function(a){c.Sm(a)}));this.fd||(this.Lp=function(a){c.Qm(a)});this.e.wl(this.Lp);this.B.ua.Nw=!0};r.ic=function(){return{ii:this.om,lfx:this.eg,lfy:this.fg,lfo:this.ad?this.ad.uid:-1,am:this.Kd,en:this.enabled,fall:this.Wf,ft:this.Hj,dx:this.Aa,dy:this.Pa,ms:this.Re,acc:this.yg,dec:this.Eg,js:this.dg,g:this.He,g1:this.Zl,mf:this.qk,wof:this.xh,woj:this.$i?this.$i.uid:-1,ga:this.Jg}};r.wc=function(c){this.om=c.ii;this.eg=c.lfx;this.fg=c.lfy;this.Dm=c.lfo;this.Kd=c.am;this.enabled= c.en;this.Wf=c.fall;this.Hj=c.ft;this.Aa=c.dx;this.Pa=c.dy;this.Re=c.ms;this.yg=c.acc;this.Eg=c.dec;this.dg=c.js;this.He=c.g;this.Zl=c.g1;this.qk=c.mf;this.xh=c.wof;this.Em=c.woj;this.Jg=c.ga;this.Tk=this.Dn=this.Cn=this.Xg=this.ci=this.Kk=this.lk=!1;this.br()};r.te=function(){this.ad=-1===this.Dm?null:this.e.Lg(this.Dm);this.$i=-1===this.Em?null:this.e.Lg(this.Em)};r.Qm=function(c){this.ad==c&&(this.ad=null)};r.hh=function(){this.ad=null;this.e.Uu(this.Lp)};r.Rm=function(c){switch(c.which){case 38:c.preventDefault(); this.ci=!0;break;case 37:c.preventDefault();this.lk=!0;break;case 39:c.preventDefault(),this.Kk=!0}};r.Sm=function(c){switch(c.which){case 38:c.preventDefault();this.Xg=this.ci=!1;break;case 37:c.preventDefault();this.lk=!1;break;case 39:c.preventDefault(),this.Kk=!1}};r.Iw=function(){return 0>this.He?-1:1};r.lp=function(){var c=null,a=null,e,f;e=this.B.x;f=this.B.y;this.B.x+=this.Nb;this.B.y+=this.Ob;this.B.na();if(this.ad&&this.e.Nc(this.B,this.ad))return this.B.x=e,this.B.y=f,this.B.na(),this.ad; (c=this.e.Oc(this.B))||0!==this.Wf||(a=this.e.We(this.B,!0));this.B.x=e;this.B.y=f;this.B.na();if(c){if(this.e.Nc(this.B,c))return null;this.Ij=!1;return c}if(a&&a.length){f=c=0;for(e=a.length;cthis.qk&&(this.Pa=this.qk),B&&(this.Xg=!0));this.xh=!!t;w==f&&(0>this.Aa?(this.Aa+=this.Eg*c,0this.Aa&&(this.Aa=0)));w&&!f&&(this.Aa=0this.Aa?this.Aa+(this.yg+this.Eg)*c:this.Aa+this.yg*c);this.Aa>this.Re?this.Aa=this.Re:this.Aa<-this.Re&&(this.Aa=-this.Re);w=!1;0!==this.Aa&&(u=this.B.x,A= this.B.y,a=this.Aa*c*this.ng,e=this.Aa*c*this.pg,this.B.x+=this.ng*(1this.Aa?1:-1),this.pg*(0>this.Aa?1:-1),a,!1)?!t||g||this.Ij||(u=this.B.x,A=this.B.y,this.B.x+=this.Nb,this.B.y+=this.Ob,this.e.Oc(this.B)?this.e.Vd(this.B,-this.Nb,-this.Ob,3,!1)||(this.B.x=u,this.B.y=A,this.B.na()):(this.B.x=u,this.B.y=A,this.B.na())):(this.B.x=u,this.B.y=A,this.B.na()),g||(this.Aa=0)):!n&&!B&&Math.abs(this.Pa)this.Pa?1:-1),this.Ob*(0>this.Pa?1:-1),a,g,e)?(this.ad=e,this.eg=e.x,this.fg=e.y,(this.Ij=g)&&(w=!0),this.Pa=0):(this.B.x=u,this.B.y=A,this.B.na(),this.xh=!0,g||(this.Pa=0)))}3!==this.Kd&&0this.Pa};g.prototype.$=function(){return 0this.Re&&(this.Re=0)};q.prototype.J=function(c){this.dg=c;0>this.dg&&(this.dg=0)};q.prototype.U=function(c){this.enabled!==(1===c)&&(this.enabled=1===c,this.enabled||(this.ad=null))};f.b=new q;f.P=new (b())})();function rc(g){this.e=g} (function(){var g=rc.prototype;g.Ta=function(a){this.Ma=a;this.e=a.e};g.Ta.prototype.wa=b();g.Ia=function(a,c){this.type=a;this.Ma=a.Ma;this.B=c;this.e=a.e;this.Pb=0};var q=g.Ia.prototype,f=2*Math.PI,r=Math.PI/2,c=3*Math.PI/2;q.wa=function(){this.nc=1===this.la[0];this.si=this.la[1];this.Sn=this.la[2];this.Se=this.la[3];this.Se+=Math.random()*this.la[4];0===this.Se?this.Pb=0:(this.Pb=this.la[5]/this.Se*f,this.Pb+=Math.random()*this.la[6]/this.Se*f);this.Jc=this.la[7];this.Jc+=Math.random()*this.la[8]; this.Hi=this.ag=this.Qa=0;this.init()};q.ic=function(){return{i:this.Pb,a:this.nc,mv:this.si,w:this.Sn,p:this.Se,mag:this.Jc,iv:this.Qa,iv2:this.ag,r:this.Hi,lkv:this.bd,lkv2:this.di}};q.wc=function(a){this.Pb=a.i;this.nc=a.a;this.si=a.mv;this.Sn=a.w;this.Se=a.p;this.Jc=a.mag;this.Qa=a.iv;this.ag=a.iv2||0;this.Hi=a.r;this.bd=a.lkv;this.di=a.lkv2||0};q.init=function(){switch(this.si){case 0:this.Qa=this.B.x;break;case 1:this.Qa=this.B.y;break;case 2:this.Qa=this.B.width;this.Hi=this.B.height/this.B.width; break;case 3:this.Qa=this.B.width;break;case 4:this.Qa=this.B.height;break;case 5:this.Qa=this.B.V;this.Jc=Ea(this.Jc);break;case 6:this.Qa=this.B.opacity;break;case 7:this.Qa=0;break;case 8:this.Qa=this.B.x,this.ag=this.B.y}this.bd=this.Qa;this.di=this.ag};q.Ze=function(a){a%=f;switch(this.Sn){case 0:return Math.sin(a);case 1:return a<=r?a/r:a<=c?1-2*(a-r)/Math.PI:(a-c)/r-1;case 2:return 2*a/f-1;case 3:return-2*a/f+1;case 4:return athis.B.opacity?this.B.opacity=0:1=this.Ma.Oi&&g