// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,fa,ga,ha,ia,ka,la,ma,na,oa,pa,qa,ra,A,sa,ta,va,wa,xa,za,Aa,M,Ba,Ca,Da,Fa,Ga,P,Ha,Ia,Ja,Ka,La,Ma,Na,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,b,e,d){this.set(a,b,e,d)}function m(){this.Fb=this.Eb=this.Hb=this.Gb=this.Tb=this.Sb=this.ob=this.nb=0}function n(a,b,e,d){a<b?e<d?(u=a<e?a:e,L=b>d?b:d):(u=a<d?a:d,L=b>e?b:e):e<d?(u=b<e?b:e,L=a>d?a:d):(u=b<d?b:d,L=a>e?a:e)}function p(){this.items=this.ee=null;this.pi=0;K&&(this.ee=new Set);this.Ah=[];this.Ue=!0}function g(a){r[G++]=a}function h(){this.M=this.Vl=this.y=this.Hm=0}function f(a){this.Fa=[];this.Rj=this.Tj=this.Uj=this.Sj=0;this.kj(a)}function b(a,b){this.pb=
a;this.zb=b;this.cells={}}function t(a,b){this.pb=a;this.zb=b;this.cells={}}function w(a,b,e){var d;return B.length?(d=B.pop(),d.xn=a,d.x=b,d.y=e,d):new ca(a,b,e)}function a(a,b,e){this.xn=a;this.x=b;this.y=e;this.Cb=new da}function e(a,b,e){var d;return D.length?(d=D.pop(),d.xn=a,d.x=b,d.y=e,d):new fa(a,b,e)}function d(a,b,e){this.xn=a;this.x=b;this.y=e;this.Cb=[];this.Tg=!0;this.ae=new da;this.Eh=!1}function k(a,b){return a.Nd-b.Nd}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ia=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,b){return a>b?a:b};qa=function(a,b){return a<b?a:b};ra=Math.PI;A=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var b=
a|0;return b===a?b:b+1};ta=function(a,b,e,d,k,l,r,y){var x,q,t,f;a<e?(q=a,x=e):(q=e,x=a);k<r?(f=k,t=r):(f=r,t=k);if(x<f||q>t)return!1;b<d?(q=b,x=d):(q=d,x=b);l<y?(f=l,t=y):(f=y,t=l);if(x<f||q>t)return!1;x=k-a+r-e;q=l-b+y-d;a=e-a;b=d-b;k=r-k;l=y-l;y=oa(b*k-l*a);return oa(k*q-l*x)>y?!1:oa(a*q-b*x)<=y};c.prototype.set=function(a,b,e,d){this.left=a;this.top=b;this.right=e;this.bottom=d};c.prototype.Eg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=
function(){return this.right-this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};c.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)};c.prototype.Xq=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.Yq=
function(a,b,e){return!(a.right+b<this.left||a.bottom+e<this.top||a.left+b>this.right||a.top+e>this.bottom)};c.prototype.Ab=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};c.prototype.Mh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=c;m.prototype.sg=function(a){this.nb=a.left;this.ob=a.top;this.Sb=a.right;this.Tb=a.top;this.Gb=a.right;this.Hb=a.bottom;this.Eb=a.left;this.Fb=a.bottom};m.prototype.Ns=function(a,
b){if(0===b)this.sg(a);else{var e=Math.sin(b),d=Math.cos(b),k=a.left*e,l=a.top*e,r=a.right*e,e=a.bottom*e,y=a.left*d,x=a.top*d,q=a.right*d,d=a.bottom*d;this.nb=y-l;this.ob=x+k;this.Sb=q-l;this.Tb=x+r;this.Gb=q-e;this.Hb=d+r;this.Eb=y-e;this.Fb=d+k}};m.prototype.offset=function(a,b){this.nb+=a;this.ob+=b;this.Sb+=a;this.Tb+=b;this.Gb+=a;this.Hb+=b;this.Eb+=a;this.Fb+=b;return this};var u=0,L=0;m.prototype.dq=function(a){n(this.nb,this.Sb,this.Gb,this.Eb);a.left=u;a.right=L;n(this.ob,this.Tb,this.Hb,
this.Fb);a.top=u;a.bottom=L};m.prototype.Ab=function(a,b){var e=this.nb,d=this.ob,k=this.Sb-e,l=this.Tb-d,r=this.Gb-e,y=this.Hb-d,x=a-e,q=b-d,t=k*k+l*l,f=k*r+l*y,l=k*x+l*q,c=r*r+y*y,v=r*x+y*q,u=1/(t*c-f*f),k=(c*l-f*v)*u,t=(t*v-f*l)*u;if(0<=k&&0<t&&1>k+t)return!0;k=this.Eb-e;l=this.Fb-d;t=k*k+l*l;f=k*r+l*y;l=k*x+l*q;u=1/(t*c-f*f);k=(c*l-f*v)*u;t=(t*v-f*l)*u;return 0<=k&&0<t&&1>k+t};m.prototype.$c=function(a,b){if(b)switch(a){case 0:return this.nb;case 1:return this.Sb;case 2:return this.Gb;case 3:return this.Eb;
case 4:return this.nb;default:return this.nb}else switch(a){case 0:return this.ob;case 1:return this.Tb;case 2:return this.Hb;case 3:return this.Fb;case 4:return this.ob;default:return this.ob}};m.prototype.Nr=function(){return(this.nb+this.Sb+this.Gb+this.Eb)/4};m.prototype.Or=function(){return(this.ob+this.Tb+this.Hb+this.Fb)/4};m.prototype.bi=function(a,b,e,d){if(this.Ab(a,b)||this.Ab(e,d))return!0;var k,l,r,y,x;for(x=0;4>x;x++)if(k=this.$c(x,!0),l=this.$c(x,!1),r=this.$c(x+1,!0),y=this.$c(x+1,
!1),ta(a,b,e,d,k,l,r,y))return!0;return!1};m.prototype.Wq=function(a){var b=a.Nr(),e=a.Or();if(this.Ab(b,e))return!0;b=this.Nr();e=this.Or();if(a.Ab(b,e))return!0;var d,k,l,r,y,x,q,t;for(q=0;4>q;q++)for(t=0;4>t;t++)if(b=this.$c(q,!0),e=this.$c(q,!1),d=this.$c(q+1,!0),k=this.$c(q+1,!1),l=a.$c(t,!0),r=a.$c(t,!1),y=a.$c(t+1,!0),x=a.$c(t+1,!1),ta(b,e,d,k,l,r,y,x))return!0;return!1};wa=m;xa=function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);return a};za=function(a,b){var e,d;b=A(b);if(!(0>b||
b>=a.length)){e=b;for(d=a.length-1;e<d;e++)a[e]=a[e+1];Aa(a,d)}};Aa=function(a,b){a.length=b};M=function(a){Aa(a,0)};Ba=function(a,b){M(a);var e,d;e=0;for(d=b.length;e<d;++e)a[e]=b[e]};Ca=function(a,b){a.push.apply(a,b)};Da=function(a,b){var e,d;e=0;for(d=a.length;e<d;++e)if(a[e]===b)return e;return-1};Fa=function(a,b){var e=Da(a,b);-1!==e&&za(a,e)};Ga=function(a,b,e){return a<b?b:a>e?e:a};P=function(a){return a/(180/ra)};Ha=function(a){return 180/ra*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};
Ja=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ka=function(a){return Ia(Ha(a))};La=function(a){return Ja(P(a))};Ma=function(a,b,e,d){return Math.atan2(d-b,e-a)};Na=function(a,b){if(a===b)return 0;var e=Math.sin(a),d=Math.cos(a),k=Math.sin(b),l=Math.cos(b),e=e*k+d*l;return 1<=e?0:-1>=e?ra:Math.acos(e)};Pa=function(a,b,e){var d=Math.sin(a),k=Math.cos(a),l=Math.sin(b),r=Math.cos(b);return Math.acos(d*l+k*r)>e?0<k*l-d*r?Ja(a+e):Ja(a-e):Ja(b)};Qa=function(a,b){var e=Math.sin(a),d=Math.cos(a),k=Math.sin(b),
l=Math.cos(b);return 0>=d*k-e*l};Ra=function(a,b,e,d,k,l){if(0===e)return l?a:b;var r=Math.sin(e);e=Math.cos(e);a-=d;b-=k;var y=a*r;a=a*e-b*r;b=b*e+y;return l?a+d:b+k};Sa=function(a,b,e,d){a=e-a;b=d-b;return Math.sqrt(a*a+b*b)};Ta=function(a,b){return!a!==!b};Ua=function(a,b,e){return a+(b-a)*e};Va=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Wa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var v=+new Date;Xa=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()-v};var l=!1,q=l=!1,T=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),l=!l&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),T=window.c2ejecta);var K=!l&&!T&&!q&&"undefined"!==
typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.re()?!1:K?this.ee.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(K)this.ee.has(a)||(this.ee.add(a),this.Ue=!1);else{var b=a.toString(),e=this.items;e?e.hasOwnProperty(b)||(e[b]=a,this.pi++,this.Ue=!1):(this.items={},this.items[b]=a,this.pi=1,this.Ue=!1)}};p.prototype.remove=function(a){if(!this.re())if(K)this.ee.has(a)&&(this.ee["delete"](a),this.Ue=!1);else if(this.items){a=
a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.pi--,this.Ue=!1)}};p.prototype.clear=function(){this.re()||(K?this.ee.clear():(this.items=null,this.pi=0),M(this.Ah),this.Ue=!0)};p.prototype.re=function(){return 0===this.count()};p.prototype.count=function(){return K?this.ee.size:this.pi};var r=null,G=0;p.prototype.Xz=function(){if(!this.Ue){if(K)M(this.Ah),r=this.Ah,G=0,this.ee.forEach(g),r=null,G=0;else{var a=this.Ah;M(a);var b,e=0,d=this.items;if(d)for(b in d)d.hasOwnProperty(b)&&
(a[e++]=d[b])}this.Ue=!0}};p.prototype.rd=function(){this.Xz();return this.Ah};da=p;new da;Ya=function(a,b){K?Za(a,b.ee):$a(a,b.rd())};Za=function(a,b){var e,d,k,l;d=e=0;for(k=a.length;e<k;++e)l=a[e],b.has(l)||(a[d++]=l);Aa(a,d)};$a=function(a,b){var e,d,k,l;d=e=0;for(k=a.length;e<k;++e)l=a[e],-1===Da(b,l)&&(a[d++]=l);Aa(a,d)};h.prototype.add=function(a){this.y=a-this.Hm;this.Vl=this.M+this.y;this.Hm=this.Vl-this.M-this.y;this.M=this.Vl};h.prototype.reset=function(){this.M=this.Vl=this.y=this.Hm=
0};fb=h;gb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.kj=function(a){this.us=a;this.xc=a.length/2;this.Fa.length=a.length;this.Xj=this.Yj=-1;this.hq=0};f.prototype.bg=function(){return!this.us.length};f.prototype.Ga=function(){for(var a=this.Fa,b=a[0],e=b,d=a[1],k=d,l,r,y=1,x=this.xc;y<x;++y)r=2*y,l=a[r],r=a[r+1],l<b&&(b=l),l>e&&(e=l),r<d&&(d=r),r>k&&(k=r);this.Sj=b;this.Tj=e;this.Uj=d;this.Rj=k};f.prototype.sg=function(a,b,e){this.Fa.length=8;this.xc=4;var d=this.Fa;
d[0]=a.left-b;d[1]=a.top-e;d[2]=a.right-b;d[3]=a.top-e;d[4]=a.right-b;d[5]=a.bottom-e;d[6]=a.left-b;d[7]=a.bottom-e;this.Yj=a.right-a.left;this.Xj=a.bottom-a.top;this.Ga()};f.prototype.rh=function(a,b,e,d,k){this.Fa.length=8;this.xc=4;var l=this.Fa;l[0]=a.nb-b;l[1]=a.ob-e;l[2]=a.Sb-b;l[3]=a.Tb-e;l[4]=a.Gb-b;l[5]=a.Hb-e;l[6]=a.Eb-b;l[7]=a.Fb-e;this.Yj=d;this.Xj=k;this.Ga()};f.prototype.Ms=function(a){this.xc=a.xc;Ba(this.Fa,a.Fa);this.Sj=a.Sj;this.Uj-a.Uj;this.Tj=a.Tj;this.Rj=a.Rj};f.prototype.Te=
function(a,b,e){if(this.Yj!==a||this.Xj!==b||this.hq!==e){this.Yj=a;this.Xj=b;this.hq=e;var d,k,l,r,y,x=0,q=1,t=this.us,f=this.Fa;0!==e&&(x=Math.sin(e),q=Math.cos(e));e=0;for(l=this.xc;e<l;e++)d=2*e,k=d+1,r=t[d]*a,y=t[k]*b,f[d]=r*q-y*x,f[k]=y*q+r*x;this.Ga()}};f.prototype.Ab=function(a,b){var e=this.Fa;if(a===e[0]&&b===e[1])return!0;var d,k,l,r=this.xc,y=this.Sj-110,x=this.Uj-101,q=this.Tj+131,t=this.Rj+120,f,c,v=0,u=0;for(d=0;d<r;d++)k=2*d,l=(d+1)%r*2,f=e[k],k=e[k+1],c=e[l],l=e[l+1],ta(y,x,a,b,f,
k,c,l)&&v++,ta(q,t,a,b,f,k,c,l)&&u++;return 1===v%2||1===u%2};f.prototype.ai=function(a,b,e){var d=a.Fa,k=this.Fa;if(this.Ab(d[0]+b,d[1]+e)||a.Ab(k[0]-b,k[1]-e))return!0;var l,r,y,x,q,t,f,c,v,u,h,w;l=0;for(x=this.xc;l<x;l++)for(r=2*l,y=(l+1)%x*2,c=k[r],r=k[r+1],v=k[y],u=k[y+1],y=0,f=a.xc;y<f;y++)if(q=2*y,t=(y+1)%f*2,h=d[q]+b,q=d[q+1]+e,w=d[t]+b,t=d[t+1]+e,ta(c,r,v,u,h,q,w,t))return!0;return!1};f.prototype.bi=function(a,b,e,d,k,l){var r=this.Fa;if(this.Ab(e-a,d-b))return!0;var y,x,q,t,f,c;y=0;for(x=
this.xc;y<x;y++)if(q=2*y,t=(y+1)%x*2,f=r[q]+a,q=r[q+1]+b,c=r[t]+a,t=r[t+1]+b,ta(e,d,k,l,f,q,c,t))return!0;return!1};f.prototype.Ty=function(a){var b,e,d;b=0;for(e=this.xc;b<e;++b)d=2*b,this.Fa[d]=2*a-this.Fa[d]};f.prototype.Fx=function(a){var b,e,d;b=0;for(e=this.xc;b<e;++b)d=2*b+1,this.Fa[d]=2*a-this.Fa[d]};f.prototype.pw=function(){var a,b,e,d,k;a=0;for(b=this.xc;a<b;++a)e=2*a,d=e+1,k=this.Fa[e],this.Fa[e]=this.Fa[d],this.Fa[d]=k};hb=f;b.prototype.ef=function(a,b,e){var d;d=this.cells[a];return d?
(d=d[b])?d:e?(d=w(this,a,b),this.cells[a][b]=d):null:e?(d=w(this,a,b),this.cells[a]={},this.cells[a][b]=d):null};b.prototype.nc=function(a){return A(a/this.pb)};b.prototype.oc=function(a){return A(a/this.zb)};b.prototype.update=function(a,b,e){var d,k,l,r,y;if(b)for(d=b.left,k=b.right;d<=k;++d)for(l=b.top,r=b.bottom;l<=r;++l)if(!e||!e.Ab(d,l))if(y=this.ef(d,l,!1))y.remove(a),y.re()&&(y.Cb.clear(),1E3>B.length&&B.push(y),this.cells[d][l]=null);if(e)for(d=e.left,k=e.right;d<=k;++d)for(l=e.top,r=e.bottom;l<=
r;++l)b&&b.Ab(d,l)||this.ef(d,l,!0).Hn(a)};b.prototype.yl=function(a,b){var e,d,k,l,r,y;e=this.nc(a.left);k=this.oc(a.top);d=this.nc(a.right);for(r=this.oc(a.bottom);e<=d;++e)for(l=k;l<=r;++l)(y=this.ef(e,l,!1))&&y.dump(b)};ib=b;t.prototype.ef=function(a,b,d){var k;k=this.cells[a];return k?(k=k[b])?k:d?(k=e(this,a,b),this.cells[a][b]=k):null:d?(k=e(this,a,b),this.cells[a]={},this.cells[a][b]=k):null};t.prototype.nc=function(a){return A(a/this.pb)};t.prototype.oc=function(a){return A(a/this.zb)};t.prototype.update=
function(a,b,e){var d,k,l,r,y;if(b)for(d=b.left,k=b.right;d<=k;++d)for(l=b.top,r=b.bottom;l<=r;++l)if(!e||!e.Ab(d,l))if(y=this.ef(d,l,!1))y.remove(a),y.re()&&(y.reset(),1E3>D.length&&D.push(y),this.cells[d][l]=null);if(e)for(d=e.left,k=e.right;d<=k;++d)for(l=e.top,r=e.bottom;l<=r;++l)b&&b.Ab(d,l)||this.ef(d,l,!0).Hn(a)};t.prototype.yl=function(a,b,e,d,k){var l,r;a=this.nc(a);b=this.oc(b);e=this.nc(e);for(l=this.oc(d);a<=e;++a)for(d=b;d<=l;++d)(r=this.ef(a,d,!1))&&r.dump(k)};t.prototype.Qy=function(a){var b,
e,d,k,l;b=a.left;d=a.top;e=a.right;for(k=a.bottom;b<=e;++b)for(a=d;a<=k;++a)if(l=this.ef(b,a,!1))l.Tg=!1};jb=t;var B=[];a.prototype.re=function(){return this.Cb.re()};a.prototype.Hn=function(a){this.Cb.add(a)};a.prototype.remove=function(a){this.Cb.remove(a)};a.prototype.dump=function(a){Ca(a,this.Cb.rd())};ca=a;var D=[];d.prototype.re=function(){if(!this.Cb.length)return!0;if(this.Cb.length>this.ae.count())return!1;this.gn();return!0};d.prototype.Hn=function(a){this.ae.contains(a)?(this.ae.remove(a),
this.ae.re()&&(this.Eh=!1)):this.Cb.length?(this.Cb[this.Cb.length-1].Ad()>a.Ad()&&(this.Tg=!1),this.Cb.push(a)):(this.Cb.push(a),this.Tg=!0)};d.prototype.remove=function(a){this.ae.add(a);this.Eh=!0;30<=this.ae.count()&&this.gn()};d.prototype.gn=function(){this.Eh&&(this.ae.count()===this.Cb.length?this.reset():(Ya(this.Cb,this.ae),this.ae.clear(),this.Eh=!1))};d.prototype.Rw=function(){this.Tg||(this.Cb.sort(k),this.Tg=!0)};d.prototype.reset=function(){M(this.Cb);this.Tg=!0;this.ae.clear();this.Eh=
!1};d.prototype.dump=function(a){this.gn();this.Rw();this.Cb.length&&a.push(this.Cb)};fa=d;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");kb=function(a){return 0>=a||11<=a?"source-over":z[a-1]};lb=function(a,b,e){if(e)switch(a.$b=e.ONE,a.Wb=e.ONE_MINUS_SRC_ALPHA,b){case 1:a.$b=e.ONE;a.Wb=e.ONE;break;case 3:a.$b=e.ONE;a.Wb=e.ZERO;break;case 4:a.$b=e.ONE_MINUS_DST_ALPHA;a.Wb=e.ONE;break;case 5:a.$b=e.DST_ALPHA;a.Wb=
e.ZERO;break;case 6:a.$b=e.ZERO;a.Wb=e.SRC_ALPHA;break;case 7:a.$b=e.ONE_MINUS_DST_ALPHA;a.Wb=e.ZERO;break;case 8:a.$b=e.ZERO;a.Wb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.$b=e.DST_ALPHA;a.Wb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.$b=e.ONE_MINUS_DST_ALPHA,a.Wb=e.SRC_ALPHA}};mb=function(a){return Math.round(1E6*a)/1E6};nb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===
window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var hc="undefined"!==typeof Float32Array?Float32Array:Array;function ic(c){var m=new hc(3);c&&(m[0]=c[0],m[1]=c[1],m[2]=c[2]);return m}function jc(c){var m=new hc(16);c&&(m[0]=c[0],m[1]=c[1],m[2]=c[2],m[3]=c[3],m[4]=c[4],m[5]=c[5],m[6]=c[6],m[7]=c[7],m[8]=c[8],m[9]=c[9],m[10]=c[10],m[11]=c[11],m[12]=c[12],m[13]=c[13],m[14]=c[14],m[15]=c[15]);return m}
function kc(c,m){m[0]=c[0];m[1]=c[1];m[2]=c[2];m[3]=c[3];m[4]=c[4];m[5]=c[5];m[6]=c[6];m[7]=c[7];m[8]=c[8];m[9]=c[9];m[10]=c[10];m[11]=c[11];m[12]=c[12];m[13]=c[13];m[14]=c[14];m[15]=c[15]}function lc(c,m){var n=m[0],p=m[1];m=m[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=p;c[5]*=p;c[6]*=p;c[7]*=p;c[8]*=m;c[9]*=m;c[10]*=m;c[11]*=m}
function mc(c,m,n,p){p||(p=jc());var g,h,f,b,t,w,a,e,d=c[0],k=c[1];c=c[2];h=n[0];f=n[1];g=n[2];n=m[1];w=m[2];d===m[0]&&k===n&&c===w?(c=p,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(n=d-m[0],w=k-m[1],a=c-m[2],e=1/Math.sqrt(n*n+w*w+a*a),n*=e,w*=e,a*=e,m=f*a-g*w,g=g*n-h*a,h=h*w-f*n,(e=Math.sqrt(m*m+g*g+h*h))?(e=1/e,m*=e,g*=e,h*=e):h=g=m=0,f=w*h-a*g,b=a*m-n*h,t=n*g-w*m,(e=Math.sqrt(f*f+b*b+t*t))?(e=1/e,f*=e,b*=e,t*=e):t=b=f=0,
p[0]=m,p[1]=f,p[2]=n,p[3]=0,p[4]=g,p[5]=b,p[6]=w,p[7]=0,p[8]=h,p[9]=t,p[10]=a,p[11]=0,p[12]=-(m*d+g*k+h*c),p[13]=-(f*d+b*k+t*c),p[14]=-(n*d+w*k+a*c),p[15]=1)}
(function(){function c(b,t,f){this.te=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ha=!!f;this.Rk=this.ei=!1;this.ik=0;this.qm=1;this.xp=1E3;this.cA=(this.xp-this.qm)/32768;this.Im=ic([0,0,100]);this.ur=ic([0,0,0]);this.nt=ic([0,1,0]);this.Ej=ic([1,1,1]);this.sq=!0;this.il=jc();this.Uc=jc();this.Sn=jc();this.Um=jc();this.H=b;this.version=0===this.H.getParameter(this.H.VERSION).indexOf("WebGL 2")?2:1;this.Sq()}function m(b,t,f){this.H=b;this.lj=
t;this.name=f;this.hd=b.getAttribLocation(t,"aPos");this.mf=b.getAttribLocation(t,"aTex");this.sr=b.getUniformLocation(t,"matP");this.el=b.getUniformLocation(t,"matMV");this.bh=b.getUniformLocation(t,"opacity");this.$n=b.getUniformLocation(t,"colorFill");this.tr=b.getUniformLocation(t,"samplerFront");this.Ei=b.getUniformLocation(t,"samplerBack");this.jg=b.getUniformLocation(t,"destStart");this.ig=b.getUniformLocation(t,"destEnd");this.Gi=b.getUniformLocation(t,"seconds");this.bo=b.getUniformLocation(t,
"pixelWidth");this.ao=b.getUniformLocation(t,"pixelHeight");this.Di=b.getUniformLocation(t,"layerScale");this.Ci=b.getUniformLocation(t,"layerAngle");this.Hi=b.getUniformLocation(t,"viewOrigin");this.Fi=b.getUniformLocation(t,"scrollPos");this.oy=!!(this.bo||this.ao||this.Gi||this.Ei||this.jg||this.ig||this.Di||this.Ci||this.Hi||this.Fi);this.Gr=this.Hr=-999;this.hl=1;this.Cr=this.Br=0;this.Er=this.Ar=this.wr=1;this.Kr=this.Jr=this.Ir=this.Mr=this.Lr=this.Dr=0;this.Rn=[];this.Fr=jc();this.bh&&b.uniform1f(this.bh,
1);this.$n&&b.uniform4f(this.$n,1,1,1,1);this.tr&&b.uniform1i(this.tr,0);this.Ei&&b.uniform1i(this.Ei,1);this.jg&&b.uniform2f(this.jg,0,0);this.ig&&b.uniform2f(this.ig,1,1);this.Di&&b.uniform1f(this.Di,1);this.Ci&&b.uniform1f(this.Ci,0);this.Hi&&b.uniform2f(this.Hi,0,0);this.Fi&&b.uniform2f(this.Fi,0,0);this.Gi&&b.uniform1f(this.Gi,0);this.Wf=!1}function n(b,t){return b[0]===t[0]&&b[1]===t[1]&&b[2]===t[2]&&b[3]===t[3]&&b[4]===t[4]&&b[5]===t[5]&&b[6]===t[6]&&b[7]===t[7]&&b[8]===t[8]&&b[9]===t[9]&&
b[10]===t[10]&&b[11]===t[11]&&b[12]===t[12]&&b[13]===t[13]&&b[14]===t[14]&&b[15]===t[15]}function p(b,t){this.type=b;this.F=t;this.H=t.H;this.vc=this.Rb=this.cs=0;this.ga=this.qd=null;this.Os=[]}var g=jc();c.prototype.Sq=function(){var b=this.H,t;this.nr=1;this.eg=this.jf=null;this.hk=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.Ha?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.or=b.ONE;this.mr=b.ONE_MINUS_SRC_ALPHA;this.Cj=new Float32Array(8E3*(this.Ha?3:2));this.rj=new Float32Array(16E3);this.Bo=new Float32Array(32E3);this.Ao=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Ao);b.bufferData(b.ARRAY_BUFFER,this.Bo.byteLength,b.DYNAMIC_DRAW);this.Bj=Array(4);this.qj=Array(4);for(t=0;4>t;t++)this.Bj[t]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Bj[t]),b.bufferData(b.ARRAY_BUFFER,this.Cj.byteLength,b.DYNAMIC_DRAW),this.qj[t]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.qj[t]),b.bufferData(b.ARRAY_BUFFER,this.rj.byteLength,b.DYNAMIC_DRAW);this.ke=0;this.vy=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.vy);for(var f=new Uint16Array(12E3),a=t=0;12E3>t;)f[t++]=a,f[t++]=a+1,f[t++]=a+2,f[t++]=a,f[t++]=a+2,f[t++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,f,b.STATIC_DRAW);this.jh=this.xf=this.td=0;this.Wa=[];t=this.Ha?"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}";f=this.Ih({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}"},t,"<default>");this.Wa.push(f);f=this.Ih({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}","<point>");this.Wa.push(f);f=this.Ih({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},t,"<earlyz>");this.Wa.push(f);f=this.Ih({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
t,"<fill>");this.Wa.push(f);for(var e in nc)nc.hasOwnProperty(e)&&this.Wa.push(this.Ih(nc[e],t,e));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.xd=[];this.ad=0;this.Lb=this.tb=!1;this.nq=this.ri=-1;this.Gg=null;this.dn=b.createFramebuffer();this.mk=this.Al=null;this.aq=!1;this.Ha&&(this.mk=b.createRenderbuffer());this.zf=ic([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.Sy=b[0];this.fo=b[1];2048<this.fo&&(this.fo=2048);this.Bc(0)};m.prototype.qp=function(b){n(this.Fr,
b)||(kc(b,this.Fr),this.H.uniformMatrix4fv(this.el,!1,b))};c.prototype.Ih=function(b,f,c){var a=this.H,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,b.src);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))return a.deleteShader(e),null;var d=a.createShader(a.VERTEX_SHADER);a.shaderSource(d,f);a.compileShader(d);if(!a.getShaderParameter(d,a.COMPILE_STATUS))return a.deleteShader(e),a.deleteShader(d),null;f=a.createProgram();a.attachShader(f,e);a.attachShader(f,d);a.linkProgram(f);
if(!a.getProgramParameter(f,a.LINK_STATUS))return a.deleteShader(e),a.deleteShader(d),a.deleteProgram(f),null;a.useProgram(f);a.deleteShader(e);a.deleteShader(d);c=new m(a,f,c);c.pk=b.pk||0;c.qk=b.qk||0;c.Tm=!!b.Tm;c.md=!!b.md;c.Em=!!b.Em;c.ea=b.ea||[];b=0;for(e=c.ea.length;b<e;b++)c.ea[b][1]=a.getUniformLocation(f,c.ea[b][0]),c.Rn.push(0),a.uniform1f(c.ea[b][1],0);return c};c.prototype.vn=function(b){var f,c;f=0;for(c=this.Wa.length;f<c;f++)if(this.Wa[f].name===b)return f;return-1};c.prototype.ts=
function(b,f,c){var a=this.Uc,e=this.il,d=[0,0,0,0,0,0,0,0];d[0]=a[0]*b+a[4]*f+a[12];d[1]=a[1]*b+a[5]*f+a[13];d[2]=a[2]*b+a[6]*f+a[14];d[3]=a[3]*b+a[7]*f+a[15];d[4]=e[0]*d[0]+e[4]*d[1]+e[8]*d[2]+e[12]*d[3];d[5]=e[1]*d[0]+e[5]*d[1]+e[9]*d[2]+e[13]*d[3];d[6]=e[2]*d[0]+e[6]*d[1]+e[10]*d[2]+e[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],c[0]=(.5*d[4]+.5)*this.width,c[1]=(.5*d[5]+.5)*this.height)};c.prototype.qg=function(b,f,c){if(this.width!==b||this.height!==f||c){this.Td();
c=this.H;this.width=b;this.height=f;c.viewport(0,0,b,f);mc(this.Im,this.ur,this.nt,this.Uc);if(this.Ha){var a=-b/2;b=b/2;var e=f/2;f=-f/2;var d=this.qm,k=this.xp,u=this.il;u||(u=jc());var h=b-a,v=f-e,l=k-d;u[0]=2/h;u[1]=0;u[2]=0;u[3]=0;u[4]=0;u[5]=2/v;u[6]=0;u[7]=0;u[8]=0;u[9]=0;u[10]=-2/l;u[11]=0;u[12]=-(a+b)/h;u[13]=-(f+e)/v;u[14]=-(k+d)/l;u[15]=1;this.Ej[0]=1;this.Ej[1]=1}else f=b/f,a=this.qm,b=this.xp,u=this.il,k=a*Math.tan(45*Math.PI/360),f*=k,e=-f,d=-k,u||(u=jc()),h=f-e,v=k-d,l=b-a,u[0]=2*a/
h,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=2*a/v,u[6]=0,u[7]=0,u[8]=(f+e)/h,u[9]=(k+d)/v,u[10]=-(b+a)/l,u[11]=-1,u[12]=0,u[13]=0,u[14]=-(b*a*2)/l,u[15]=0,a=[0,0],b=[0,0],this.ts(0,0,a),this.ts(1,1,b),this.Ej[0]=1/(b[0]-a[0]),this.Ej[1]=-1/(b[1]-a[1]);a=0;for(b=this.Wa.length;a<b;a++)e=this.Wa[a],e.Wf=!1,e.sr&&(c.useProgram(e.lj),c.uniformMatrix4fv(e.sr,!1,this.il));c.useProgram(this.Wa[this.ri].lj);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);
this.eg=this.jf=null;this.mk&&(c.bindFramebuffer(c.FRAMEBUFFER,this.dn),c.bindRenderbuffer(c.RENDERBUFFER,this.mk),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.aq||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.mk),this.aq=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.Al=null)}};c.prototype.de=function(){mc(this.Im,this.ur,this.nt,this.Uc);lc(this.Uc,this.Ej)};c.prototype.translate=function(b,
f){if(0!==b||0!==f){this.zf[0]=b;this.zf[1]=f;this.zf[2]=0;var c=this.Uc,a=this.zf,e=a[0],d=a[1],a=a[2];c[12]=c[0]*e+c[4]*d+c[8]*a+c[12];c[13]=c[1]*e+c[5]*d+c[9]*a+c[13];c[14]=c[2]*e+c[6]*d+c[10]*a+c[14];c[15]=c[3]*e+c[7]*d+c[11]*a+c[15]}};c.prototype.scale=function(b,f){if(1!==b||1!==f)this.zf[0]=b,this.zf[1]=f,this.zf[2]=1,lc(this.Uc,this.zf)};c.prototype.No=function(b){if(0!==b){var f=this.Uc,c,a=Math.sin(b);b=Math.cos(b);var e=f[0],d=f[1],k=f[2],u=f[3],h=f[4],v=f[5],l=f[6],q=f[7];c?f!==c&&(c[8]=
f[8],c[9]=f[9],c[10]=f[10],c[11]=f[11],c[12]=f[12],c[13]=f[13],c[14]=f[14],c[15]=f[15]):c=f;c[0]=e*b+h*a;c[1]=d*b+v*a;c[2]=k*b+l*a;c[3]=u*b+q*a;c[4]=e*-a+h*b;c[5]=d*-a+v*b;c[6]=k*-a+l*b;c[7]=u*-a+q*b}};c.prototype.Md=function(){if(!n(this.Sn,this.Uc)){var b=this.kc();b.type=5;b.ga?kc(this.Uc,b.ga):b.ga=jc(this.Uc);kc(this.Uc,this.Sn);this.Lb=this.tb=!1}};c.prototype.Il=function(b){this.Ha&&(32760<b&&(b=32760),this.ik=this.Im[2]-this.qm-b*this.cA)};p.prototype.Aw=function(){var b=this.H,f=this.F;0!==
this.Rb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,f.dn),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),f.Rk=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),f.Rk=!1)};p.prototype.Ew=function(){this.H.bindTexture(this.H.TEXTURE_2D,this.qd)};p.prototype.Fw=function(){var b=this.H;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.qd);
b.activeTexture(b.TEXTURE0)};p.prototype.Bw=function(){var b=this.cs,f=this.F;f.hk=b;f=f.Gg;f.bh&&f.hl!==b&&(f.hl=b,this.H.uniform1f(f.bh,b))};p.prototype.vw=function(){this.H.drawElements(this.H.TRIANGLES,this.vc,this.H.UNSIGNED_SHORT,this.Rb)};p.prototype.xw=function(){this.H.blendFunc(this.Rb,this.vc)};p.prototype.Hw=function(){var b,f,c,a=this.F.Wa,e=this.F.nq;b=0;for(f=a.length;b<f;b++)c=a[b],b===e&&c.el?(c.qp(this.ga),c.Wf=!0):c.Wf=!1;kc(this.ga,this.F.Um)};p.prototype.ww=function(){var b=this.H,
f=this.F;this.qd?(f.eg===this.qd&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),f.eg=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,f.dn),f.Rk||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.qd,0)):(f.Ha||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};p.prototype.rw=function(){var b=this.H,f=this.Rb;0===f?(b.clearColor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),b.clear(b.COLOR_BUFFER_BIT)):
1===f?(b.enable(b.SCISSOR_TEST),b.scissor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};p.prototype.zw=function(){var b=this.H;0!==this.Rb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};p.prototype.uw=function(){var b=this.H,f=this.F;f.Ha&&b.disable(b.DEPTH_TEST);var c=f.Wa[1];b.useProgram(c.lj);!c.Wf&&c.el&&(c.qp(f.Um),c.Wf=!0);b.enableVertexAttribArray(c.hd);b.bindBuffer(b.ARRAY_BUFFER,f.Ao);
b.vertexAttribPointer(c.hd,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Rb/4,this.vc);c=f.Gg;b.useProgram(c.lj);0<=c.hd&&(b.enableVertexAttribArray(c.hd),b.bindBuffer(b.ARRAY_BUFFER,f.Bj[f.ke]),b.vertexAttribPointer(c.hd,f.Ha?3:2,b.FLOAT,!1,0,0));0<=c.mf&&(b.enableVertexAttribArray(c.mf),b.bindBuffer(b.ARRAY_BUFFER,f.qj[f.ke]),b.vertexAttribPointer(c.mf,2,b.FLOAT,!1,0,0));f.Ha&&b.enable(b.DEPTH_TEST)};p.prototype.Cw=function(){var b=this.H,f=this.F,c=f.Wa[this.Rb];f.nq=this.Rb;f.Gg=c;b.useProgram(c.lj);
!c.Wf&&c.el&&(c.qp(f.Um),c.Wf=!0);c.bh&&c.hl!==f.hk&&(c.hl=f.hk,b.uniform1f(c.bh,f.hk));0<=c.hd&&(b.enableVertexAttribArray(c.hd),b.bindBuffer(b.ARRAY_BUFFER,f.Bj[f.ke]),b.vertexAttribPointer(c.hd,f.Ha?3:2,b.FLOAT,!1,0,0));0<=c.mf&&(b.enableVertexAttribArray(c.mf),b.bindBuffer(b.ARRAY_BUFFER,f.qj[f.ke]),b.vertexAttribPointer(c.mf,2,b.FLOAT,!1,0,0))};p.prototype.yw=function(){var b=this.ga;this.H.uniform4f(this.F.Gg.$n,b[0],b[1],b[2],b[3])};p.prototype.Dw=function(){var b,f,c=this.F.Gg,a=this.H;b=
this.ga;c.Ei&&this.F.eg!==this.qd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.qd),this.F.eg=this.qd,a.activeTexture(a.TEXTURE0));var e=b[0];c.bo&&e!==c.Hr&&(c.Hr=e,a.uniform1f(c.bo,e));e=b[1];c.ao&&e!==c.Gr&&(c.Gr=e,a.uniform1f(c.ao,e));e=b[2];f=b[3];!c.jg||e===c.Br&&f===c.Cr||(c.Br=e,c.Cr=f,a.uniform2f(c.jg,e,f));e=b[4];f=b[5];!c.ig||e===c.wr&&f===c.Ar||(c.wr=e,c.Ar=f,a.uniform2f(c.ig,e,f));e=b[6];c.Di&&e!==c.Er&&(c.Er=e,a.uniform1f(c.Di,e));e=b[7];c.Ci&&e!==c.Dr&&(c.Dr=e,a.uniform1f(c.Ci,
e));e=b[8];f=b[9];!c.Hi||e===c.Lr&&f===c.Mr||(c.Lr=e,c.Mr=f,a.uniform2f(c.Hi,e,f));e=b[10];f=b[11];!c.Fi||e===c.Ir&&f===c.Jr||(c.Ir=e,c.Jr=f,a.uniform2f(c.Fi,e,f));e=b[12];c.Gi&&e!==c.Kr&&(c.Kr=e,a.uniform1f(c.Gi,e));if(c.ea.length)for(b=0,f=c.ea.length;b<f;b++)e=this.Os[b],e!==c.Rn[b]&&(c.Rn[b]=e,a.uniform1f(c.ea[b][1],e))};c.prototype.kc=function(){this.ad===this.xd.length&&this.xd.push(new p(0,this));return this.xd[this.ad++]};c.prototype.Td=function(){if(0!==this.ad&&!this.H.isContextLost()){var b=
this.H;0<this.jh&&(b.bindBuffer(b.ARRAY_BUFFER,this.Ao),b.bufferSubData(b.ARRAY_BUFFER,0,this.Bo.subarray(0,this.jh)),c&&0<=c.hd&&"<point>"===c.name&&b.vertexAttribPointer(c.hd,4,b.FLOAT,!1,0,0));if(0<this.td){var c=this.Gg;b.bindBuffer(b.ARRAY_BUFFER,this.Bj[this.ke]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Cj.subarray(0,this.td));c&&0<=c.hd&&"<point>"!==c.name&&b.vertexAttribPointer(c.hd,this.Ha?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.qj[this.ke]);b.bufferSubData(b.ARRAY_BUFFER,0,this.rj.subarray(0,
this.xf));c&&0<=c.mf&&"<point>"!==c.name&&b.vertexAttribPointer(c.mf,2,b.FLOAT,!1,0,0)}for(var f,b=0,c=this.ad;b<c;b++)switch(f=this.xd[b],f.type){case 1:f.vw();break;case 2:f.Ew();break;case 3:f.Bw();break;case 4:f.xw();break;case 5:f.Hw();break;case 6:f.ww();break;case 7:f.rw();break;case 8:f.uw();break;case 9:f.Cw();break;case 10:f.Dw();break;case 11:f.Fw();break;case 12:f.yw();break;case 13:f.zw();break;case 14:f.Aw()}this.jh=this.xf=this.td=this.ad=0;this.Rk=this.Lb=this.tb=!1;this.ke++;4<=this.ke&&
(this.ke=0)}};c.prototype.vf=function(b){if(b!==this.nr&&!this.ei){var f=this.kc();f.type=3;this.nr=f.cs=b;this.Lb=this.tb=!1}};c.prototype.Ac=function(b){if(b!==this.jf){var f=this.kc();f.type=2;this.jf=f.qd=b;this.Lb=this.tb=!1}};c.prototype.uf=function(b,f){if((b!==this.or||f!==this.mr)&&!this.ei){var c=this.kc();c.type=4;c.Rb=b;c.vc=f;this.or=b;this.mr=f;this.Lb=this.tb=!1}};c.prototype.Cs=function(){this.uf(this.H.ONE,this.H.ONE_MINUS_SRC_ALPHA)};c.prototype.mh=function(b,f,c,a,e,d,k,u){15992<=
this.td&&this.Td();var h=this.td,v=this.xf,l=this.Cj,q=this.rj,g=this.ik;if(this.tb)this.xd[this.ad-1].vc+=6;else{var m=this.kc();m.type=1;m.Rb=this.Ha?h:h/2*3;m.vc=6;this.tb=!0;this.Lb=!1}this.Ha?(l[h++]=b,l[h++]=f,l[h++]=g,l[h++]=c,l[h++]=a,l[h++]=g,l[h++]=e,l[h++]=d,l[h++]=g,l[h++]=k,l[h++]=u,l[h++]=g):(l[h++]=b,l[h++]=f,l[h++]=c,l[h++]=a,l[h++]=e,l[h++]=d,l[h++]=k,l[h++]=u);q[v++]=0;q[v++]=0;q[v++]=1;q[v++]=0;q[v++]=1;q[v++]=1;q[v++]=0;q[v++]=1;this.td=h;this.xf=v};c.prototype.Ae=function(b,f,
c,a,e,d,k,h,g){15992<=this.td&&this.Td();var v=this.td,l=this.xf,q=this.Cj,m=this.rj,n=this.ik;if(this.tb)this.xd[this.ad-1].vc+=6;else{var r=this.kc();r.type=1;r.Rb=this.Ha?v:v/2*3;r.vc=6;this.tb=!0;this.Lb=!1}var r=g.left,G=g.top,B=g.right;g=g.bottom;this.Ha?(q[v++]=b,q[v++]=f,q[v++]=n,q[v++]=c,q[v++]=a,q[v++]=n,q[v++]=e,q[v++]=d,q[v++]=n,q[v++]=k,q[v++]=h,q[v++]=n):(q[v++]=b,q[v++]=f,q[v++]=c,q[v++]=a,q[v++]=e,q[v++]=d,q[v++]=k,q[v++]=h);m[l++]=r;m[l++]=G;m[l++]=B;m[l++]=G;m[l++]=B;m[l++]=g;m[l++]=
r;m[l++]=g;this.td=v;this.xf=l};c.prototype.wz=function(b,f,c,a,e,d,k,h,g,v,l,q,m,n,r,G){15992<=this.td&&this.Td();var B=this.td,p=this.xf,z=this.Cj,F=this.rj,C=this.ik;if(this.tb)this.xd[this.ad-1].vc+=6;else{var S=this.kc();S.type=1;S.Rb=this.Ha?B:B/2*3;S.vc=6;this.tb=!0;this.Lb=!1}this.Ha?(z[B++]=b,z[B++]=f,z[B++]=C,z[B++]=c,z[B++]=a,z[B++]=C,z[B++]=e,z[B++]=d,z[B++]=C,z[B++]=k,z[B++]=h,z[B++]=C):(z[B++]=b,z[B++]=f,z[B++]=c,z[B++]=a,z[B++]=e,z[B++]=d,z[B++]=k,z[B++]=h);F[p++]=g;F[p++]=v;F[p++]=
l;F[p++]=q;F[p++]=m;F[p++]=n;F[p++]=r;F[p++]=G;this.td=B;this.xf=p};c.prototype.jz=function(b,f,c,a){7996<=this.jh&&this.Td();var e=this.jh,d=this.Bo;if(this.Lb)this.xd[this.ad-1].vc++;else{var k=this.kc();k.type=8;k.Rb=e;k.vc=1;this.Lb=!0;this.tb=!1}d[e++]=b;d[e++]=f;d[e++]=c;d[e++]=a;this.jh=e};c.prototype.Bc=function(b){if(this.ri!==b){if(!this.Wa[b]){if(0===this.ri)return;b=0}var f=this.kc();f.type=9;this.ri=f.Rb=b;this.Lb=this.tb=!1}};c.prototype.Zi=function(b){b=this.Wa[b];return!(!b.jg&&!b.ig)};
c.prototype.Do=function(b){b=this.Wa[b];return!!(b.jg||b.ig||b.Tm)};c.prototype.Co=function(b){return this.Wa[b].md};c.prototype.rz=function(b){b=this.Wa[b];return 0!==b.pk||0!==b.qk};c.prototype.Tx=function(b){return this.Wa[b].pk};c.prototype.Ux=function(b){return this.Wa[b].qk};c.prototype.Vx=function(b,f){return this.Wa[b].ea[f][2]};c.prototype.wl=function(b){return this.Wa[b].Em};c.prototype.ph=function(b,f,c,a,e,d,k,h,g,v,l,q,m,n,r){var G=this.Wa[this.ri],B,p;if(G.oy||r.length){B=this.kc();
B.type=10;B.ga?kc(this.Uc,B.ga):B.ga=jc();p=B.ga;p[0]=f;p[1]=c;p[2]=a;p[3]=e;p[4]=d;p[5]=k;p[6]=h;p[7]=g;p[8]=v;p[9]=l;p[10]=q;p[11]=m;p[12]=n;G.Ei?B.qd=b:B.qd=null;if(r.length)for(c=B.Os,c.length=r.length,b=0,f=r.length;b<f;b++)c[b]=r[b];this.Lb=this.tb=!1}};c.prototype.clear=function(b,f,c,a){var e=this.kc();e.type=7;e.Rb=0;e.ga||(e.ga=jc());e.ga[0]=b;e.ga[1]=f;e.ga[2]=c;e.ga[3]=a;this.Lb=this.tb=!1};c.prototype.clearRect=function(b,f,c,a){if(!(0>c||0>a)){var e=this.kc();e.type=7;e.Rb=1;e.ga||(e.ga=
jc());e.ga[0]=b;e.ga[1]=f;e.ga[2]=c;e.ga[3]=a;this.Lb=this.tb=!1}};c.prototype.Fs=function(b){if(this.Ha&&(b=!!b,this.ei!==b)){var f=this.kc();f.type=14;f.Rb=b?1:0;this.Lb=this.tb=!1;this.ei=b;this.Al=null;this.ei?this.Bc(2):this.Bc(0)}};c.prototype.Es=function(b){if(this.Ha){var f=this.kc();f.type=13;f.Rb=b?1:0;this.Lb=this.tb=!1}};c.prototype.Aq=function(){kc(this.Sn,g);this.de();this.Md();var b=this.width/2,f=this.height/2;this.mh(-b,f,b,f,b,-f,-b,-f);kc(g,this.Uc);this.Md()};c.prototype.Ds=function(b,
f,c){this.Bc(3);var a=this.kc();a.type=12;a.ga||(a.ga=jc());a.ga[0]=b;a.ga[1]=f;a.ga[2]=c;a.ga[3]=1;this.Lb=this.tb=!1};c.prototype.Oz=function(){this.Bc(0)};c.prototype.Bz=function(){this.Bc(2)};c.prototype.qz=function(){this.Td();this.H.flush()};var h=[],f={};c.prototype.hw=function(){M(h);f={}};c.prototype.$g=function(b,c,g,a){c=!!c;g=!!g;var e=b.src+","+c+","+g+(c?",undefined":""),d=null;if("undefined"!==typeof b.src&&f.hasOwnProperty(e))return d=f[e],d.Wj++,d;this.Td();var k=this.H,u=ma(b.width)&&
ma(b.height),d=k.createTexture();k.bindTexture(k.TEXTURE_2D,d);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=k.RGBA,v=k.RGBA,l=k.UNSIGNED_BYTE;if(a&&!this.te)switch(a){case 1:v=m=k.RGB;break;case 2:l=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:l=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:v=m=k.RGB,l=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!u&&c){a=document.createElement("canvas");a.width=na(b.width);a.height=na(b.height);var q=a.getContext("2d");"undefined"!==typeof q.imageSmoothingEnabled?q.imageSmoothingEnabled=
g:(q.webkitImageSmoothingEnabled=g,q.mozImageSmoothingEnabled=g,q.msImageSmoothingEnabled=g);q.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);k.texImage2D(k.TEXTURE_2D,0,m,v,l,a)}else k.texImage2D(k.TEXTURE_2D,0,m,v,l,b);c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));g?(k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_MAG_FILTER,k.LINEAR),(u||2<=this.version)&&this.sq?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.jf=null;d.Gf=b.width;d.Ff=b.height;d.Wj=1;d.gq=e;h.push(d);return f[e]=d};c.prototype.Nc=function(b,f,c,a,e){this.Td();
var d=this.H;this.te&&(a=!1);var k=d.createTexture();d.bindTexture(d.TEXTURE_2D,k);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,b,f,0,d.RGBA,a?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);e?(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.REPEAT),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.REPEAT)):(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,c?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,
d.TEXTURE_MIN_FILTER,c?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.jf=null;k.Gf=b;k.Ff=f;h.push(k);return k};c.prototype.$z=function(b,f){var c;this.Td();var a=this.H;this.te&&(c=!1);a.bindTexture(a.TEXTURE_2D,f);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}a.bindTexture(a.TEXTURE_2D,null);this.jf=null};c.prototype.deleteTexture=
function(b){b&&("undefined"!==typeof b.Wj&&1<b.Wj?b.Wj--:(this.Td(),b===this.jf&&(this.H.bindTexture(this.H.TEXTURE_2D,null),this.jf=null),b===this.eg&&(this.H.activeTexture(this.H.TEXTURE1),this.H.bindTexture(this.H.TEXTURE_2D,null),this.H.activeTexture(this.H.TEXTURE0),this.eg=null),Fa(h,b),"undefined"!==typeof b.gq&&delete f[b.gq],this.H.deleteTexture(b)))};c.prototype.nd=function(b){if(b!==this.Al){var f=this.kc();f.type=6;this.Al=f.qd=b;this.Lb=this.tb=!1}};pb=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Xd=(this.Sk=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.hc=!!a.dc;this.$q="undefined"!==typeof window.AppMobi||
this.hc;this.Sc=!!window.c2cocoonjs;this.fd=!!window.c2ejecta;this.Sc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.fd&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Ta=this.hc||this.Sc||this.fd;this.gi=
/edge\//i.test(navigator.userAgent);this.te=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.gi;this.fr=/tizen/i.test(navigator.userAgent);this.Pk=/android/i.test(navigator.userAgent)&&!this.fr&&!this.te&&!this.gi;this.lr=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.te&&!this.gi;this.Gy=/ipad/i.test(navigator.userAgent);this.oi=this.lr||this.Gy||this.fd;this.di=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.te&&!this.gi;this.Zq=/amazonwebappplatform/i.test(navigator.userAgent);this.Ay=/firefox/i.test(navigator.userAgent);this.Dy=/safari/i.test(navigator.userAgent)&&!this.di&&!this.te&&!this.gi;this.Ey=/windows/i.test(navigator.userAgent);this.er=this.gf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.hr=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.ir=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.li=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Pn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.On=!!window.cr_windows10;this.Nn=this.hr||this.ir||this.Pn||this.On;this.yy=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Qk=this.Pk&&!this.di&&!this.Sk&&!this.Ay&&!this.Zq&&!this.Ta;
this.devicePixelRatio=1;this.Pg=this.Xd||this.Sk||this.$q||this.Sc||this.Pk||this.oi||this.li||this.Pn||this.yy||this.fr||this.fd;this.Pg||(this.Pg=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.ki=!!(this.oi&&this.Xd&&window.webkit);this.An=null;this.ty="";this.ki&&(this.An=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.gf||"?nw"!==window.location.search&&
!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.gf=!0);this.br="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.Jm=document.getElementById("c2canvasdiv");this.F=this.H=null;this.wn="(unavailable)";this.Ha=!1;this.Of=0;this.Na=null;this.jn="";this.vk=!1;this.Zr=this.$r=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();
return!1};this.hc&&(window.c2runtime=this);this.gf&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Qk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.U=this.width;this.T=this.height;this.fk=this.width;this.Kh=this.height;this.Yg=window.innerWidth;this.Xg=window.innerHeight;
this.fa=!0;this.ii=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.G=[];this.Qa=[];this.Zn={};this.Cd=[];this.cn={};this.me=[];this.Ch=[];this.fm=[];this.Am=[];this.Zv=[];this.bp=null;this.Kf={};this.Kn=this.ff=!1;this.Tc=0;this.Jn=this.Mn=!1;this.zd=[];this.fi=!1;this.al=this.Ro="";this.xb=null;this.ue="";this.oj=this.Rs=!1;this.uk=[];this.Nf=this.Mf=0;this.Pr=30;this.Qm=this.Ii=0;this.yf=1;this.cb=new fb;this.Je=new fb;this.kl=this.Ak=this.Rf=this.Ge=this.gg=
this.zk=this.Wk=0;this.Hf=null;this.Zm=[];this.bn=[];this.ok=-1;this.co=[[]];this.mp=this.fl=0;this.xl(null);this.Ji=[];this.Ki=-1;this.Tr=this.Qi=0;this.Yn=!0;this.Ph=0;this.pj=[];this.jp=this.Fo=-1;this.Vg=!0;this.ah=0;this.Yd=!1;this.Qz=0;this.Bg=null;this.Fc=this.Oq=!1;this.Xr=new da;this.ro=new da;this.Yr=new da;this.dj=[];this.Hd=new hb([]);this.ep=new hb([]);this.Re=[];this.Mg={};this.Ye={};this.Oe={};this.Bh={};this.bq={};this.rr=this.$k=this.fb=this.wb=this.qr=this.Zk=this.ma=null;this.zh=
this.Qn=!1;this.kn=[null,null];this.oe=0;this.en="";this.xe={};this.nj=this.kf=null;this.Ts="";this.jl=[];this.Az()}}function m(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function g(a,b,e,d){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=p;k.onerror=d;k.onsuccess=function(k){k=k.target.result;k.onerror=d;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:b}).onsuccess=e}}catch(l){d(l)}}function h(a,b,e){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=p;d.onerror=e;d.onsuccess=function(d){d=d.target.result;d.onerror=e;var k=d.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?b(k.result.data):b(null)}}}catch(k){e(k)}}function f(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+
"?continuous"}function b(a){var b,e={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof da||a[b]&&"undefined"!==typeof a[b].GA||"spriteCreatedDestroyCallback"!==b&&(e[b]=a[b]);return e}var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.Az=function(){var a=this;if(this.ki){var b=function(){a.Bx(function(b){a.Bi(JSON.parse(b))},function(){alert("Error fetching data.js")})};
this.An?this.An.startServer({port:0,localhost_only:!0},function(e){a.ty=e;b()},function(a){console.log("Error starting local server: "+a+". Video playback will not work.");b()}):(console.log("Local server unavailable. Video playback will not work."),b())}else{var e;this.li?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var d="data.js";if(this.hr||this.li||this.Pn||this.On)d="data.json";e.open("GET",d,!0);var k=!1;if(!this.Ta&&"response"in e&&"responseType"in e)try{e.responseType="json",
k="json"===e.responseType}catch(l){k=!1}if(!k&&"responseType"in e)try{e.responseType="text"}catch(f){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.li?e.onreadystatechange=function(){4===e.readyState&&a.Bi(JSON.parse(e.responseText))}:(e.onload=function(){if(k)a.Bi(e.response);else if(a.fd){var b=e.responseText,b=b.substr(b.indexOf("{"));a.Bi(JSON.parse(b))}else a.Bi(JSON.parse(e.responseText))},e.onerror=function(a){ha("Error requesting "+d+":");
ha(a)});e.send()}};c.prototype.wy=function(){var a=this,b,e,d,k,l,f,c,r,q;this.ag=(!this.Ta||this.fd||this.Xd)&&this.Yz&&!this.Qk;0===this.rc&&this.oi&&(this.ag=!1);this.devicePixelRatio=this.ag?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ub();0<this.rc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Wy();ga("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.F.Sq();a.F.qg(a.F.width,a.F.height,!0);a.wb=null;a.fb=null;a.kn[0]=null;a.kn[1]=null;a.Xy();a.fa=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Pw&&(this.Sc||this.fd||!this.Ta)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.H=this.canvas.getContext("webgl2",b)||this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",
b))}catch(h){}if(this.H){if(b=this.H.getExtension("WEBGL_debug_renderer_info"))this.wn=this.H.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.H.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Ha&&(this.wn+=" [front-to-back enabled]");this.Ta||(this.Nb=document.createElement("canvas"),jQuery(this.Nb).appendTo(this.canvas.parentNode),this.Nb.oncontextmenu=function(){return!1},this.Nb.onselectstart=function(){return!1},this.Nb.width=Math.round(this.fk*this.devicePixelRatio),this.Nb.height=Math.round(this.Kh*
this.devicePixelRatio),jQuery(this.Nb).css({width:this.fk+"px",height:this.Kh+"px"}),this.rs(),this.zo=this.Nb.getContext("2d"));this.F=new pb(this.H,this.Pg,this.Ha);this.F.qg(this.canvas.width,this.canvas.height);this.F.sq=0!==this.Iw;this.Na=null;b=0;for(e=this.G.length;b<e;b++)for(l=this.G[b],d=0,k=l.ba.length;d<k;d++)c=l.ba[d],c.lb=this.F.vn(c.id),c.md=this.F.Co(c.lb),this.zh=this.zh||this.F.Zi(c.lb);b=0;for(e=this.Cd.length;b<e;b++){r=this.Cd[b];d=0;for(k=r.ba.length;d<k;d++)c=r.ba[d],c.lb=
this.F.vn(c.id),c.md=this.F.Co(c.lb);r.Ld();d=0;for(k=r.da.length;d<k;d++){q=r.da[d];l=0;for(f=q.ba.length;l<f;l++)c=q.ba[l],c.lb=this.F.vn(c.id),c.md=this.F.Co(c.lb),this.zh=this.zh||this.F.Zi(c.lb);q.Ld()}}}else{if(0<this.rc&&this.hc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Na=AppMobi.canvas.getContext("2d");try{this.Na.samplingMode=this.La?"smooth":"sharp",this.Na.globalScale=1,this.Na.HTML5CompatibilityMode=!0,this.Na.imageSmoothingEnabled=
this.La}catch(v){}0!==this.width&&0!==this.height&&(this.Na.width=this.width,this.Na.height=this.height)}this.Na||(this.Sc?(b={antialias:!!this.La,alpha:!0},this.Na=this.canvas.getContext("2d",b)):(b={alpha:!0},this.Na=this.canvas.getContext("2d",b)),this.Hl(this.Na,this.La));this.zo=this.Nb=null}this.$s=function(b){a.Ia(!1,b)};window==window.top||this.Ta||this.Nn||this.li||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},
!0));"undefined"!==typeof cr_is_preview&&(this.Sc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.al="__c2_continuouspreview",this.oj=!0),this.hz&&!this.Pg&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.rf()});this.Ta||(b=function(a){if(ob(a)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.rc&&this.ag&&1<this.devicePixelRatio&&this.setSize(this.ib,this.hb,!0);this.kt();this.ky();
this.go();this.P={}};c.prototype.setSize=function(a,b,e){var d=0,k=0,l=0,f=0,f=0;if(this.Yg!==a||this.Xg!==b||e){this.Yg=a;this.Xg=b;var c=this.rc,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Yd)&&!this.Xd;if(r||0!==this.rc||e)r&&0<this.oe&&(c=this.oe),e=this.devicePixelRatio,4<=c?(l=this.ib/this.hb,a/b>l?(l*=b,5===c?(f=l*e/this.ib,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),l=this.ib*f/e,f=this.hb*f/e,d=(a-l)/2,k=(b-f)/2,a=l,
b=f):(d=(a-l)/2,a=l)):(f=a/l,5===c?(f=f*e/this.hb,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),l=this.ib*f/e,f=this.hb*f/e,d=(a-l)/2,k=(b-f)/2,a=l):k=(b-f)/2,b=f),r&&!this.gf&&(k=d=0)):this.gf&&this.Yd&&0===this.Bq&&(d=Math.floor((a-this.ib)/2),k=Math.floor((b-this.hb)/2),a=this.ib,b=this.hb),2>c&&(this.Gh=e),this.fk=Math.round(a),this.Kh=Math.round(b),this.width=Math.round(a*e),this.height=Math.round(b*e),this.fa=!0,this.zt?(this.U=this.width,this.T=this.height,this.Oc=!0):this.width<this.ib&&this.height<
this.hb||1===c?(this.U=this.width,this.T=this.height,this.Oc=!0):(this.U=this.ib,this.T=this.hb,this.Oc=!1,2===c?(l=this.ib/this.hb,c=this.Yg/this.Xg,c<l?this.U=this.T*c:c>l&&(this.T=this.U/c)):3===c&&(l=this.ib/this.hb,c=this.Yg/this.Xg,c>l?this.U=this.T*c:c<l&&(this.T=this.U/c))),this.Jm&&!this.Ta&&(jQuery(this.Jm).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+
"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(b*e),this.fd?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.ag&&!this.Ta&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Nb&&(this.Nb.width=Math.round(a*e),this.Nb.height=Math.round(b*e),this.Nb.style.width=this.fk+
"px",this.Nb.style.height=this.Kh+"px"),this.F&&this.F.qg(Math.round(a*e),Math.round(b*e)),this.hc&&this.Na&&(this.Na.width=Math.round(a),this.Na.height=Math.round(b)),this.Na&&this.Hl(this.Na,this.La),this.kt(),this.lr&&!this.Xd&&window.scrollTo(0,0)}};c.prototype.kt=function(){if(this.aw&&0!==this.xo){var a="portrait";2===this.xo&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?
screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};c.prototype.Wy=function(){this.F.hw();this.Qn=!0;var a,b,e;a=0;for(b=this.G.length;a<b;a++)e=this.G[a],e.Ti&&e.Ti()};c.prototype.Xy=function(){this.Qn=!1;var a,b,e;a=0;for(b=this.G.length;a<b;a++)e=this.G[a],e.Ui&&e.Ui()};c.prototype.rs=function(){if(!this.Ta){var a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Yd)&&!this.Xd?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Nb).css(a)}};var w=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var b;if(a&&!this.ii)for(ga("[Construct 2] Suspending"),this.ii=!0,-1!==this.Fo&&w&&w(this.Fo),-1!==
this.jp&&clearTimeout(this.jp),a=0,b=this.pj.length;a<b;a++)this.pj[a](!0);else if(!a&&this.ii){ga("[Construct 2] Resuming");this.ii=!1;this.Wk=Xa();this.gg=Xa();a=this.Ii=this.Ak=0;for(b=this.pj.length;a<b;a++)this.pj[a](!1);this.Ia(!1)}};c.prototype.Xp=function(a){this.pj.push(a)};c.prototype.Me=function(a){return this.jl[a]};c.prototype.Bi=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.zq=a[1];this.rc=a[12];this.Bq=a[12];this.ib=a[10];this.hb=a[11];this.ls=
this.ib/2;this.ms=this.hb/2;this.Ta&&!this.fd&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Bq=this.rc=3);this.tp=a[18];this.lf=a[19];if(0===this.lf){var b=new Image;b.crossOrigin="anonymous";this.Gs(b,"loading-logo.png");this.kf={gl:b}}else if(4===this.lf){b=new Image;b.src="";var e=new Image;e.src="";var d=new Image;d.src="";var k=new Image;k.src="";var l=new Image;l.src="";var f=new Image;f.src=
"";var c=new Image;c.src="";var r=new Image;r.src="";var q=new Image;q.src="";var h=new Image;h.src="";var v=new Image;v.src="";var u=new Image;u.src="";this.kf={gl:[b,e,d,k],nz:[l,f,c,r],aA:[q,h,v,u]}}this.Qi=a[21];this.jl=oc();this.fe=new X(this);b=0;for(e=a[2].length;b<e;b++)c=a[2][b],d=this.Me(c[0]),rb(c,d.prototype),r=new d(this),r.Ql=c[1],r.hf=c[2],r.Fy=c[5],r.Rr=c[9],r.J&&r.J(),this.plugins.push(r);this.jl=oc();b=0;for(e=a[3].length;b<e;b++){c=a[3][b];l=this.Me(c[1]);r=null;d=0;for(k=this.plugins.length;d<
k;d++)if(this.plugins[d]instanceof l){r=this.plugins[d];break}q=new r.X(r);q.name=c[0];q.O=c[2];q.In=c[3].slice(0);q.Zz=c[3].length;q.bw=c[4];q.Hx=c[5];q.ka=c[11];q.O?(q.eh=[],q.Vd=this.Ph++,q.Pa=null):(q.eh=null,q.Vd=-1,q.Pa=[]);q.Qh=null;q.Kg=null;q.tq=null;q.Zb=!1;q.Ec=null;c[6]?(q.tj=c[6][0],q.Wl=c[6][1],q.uj=c[6][2]):(q.tj=null,q.Wl=0,q.uj=0);c[7]?q.Dc=c[7]:q.Dc=null;q.index=b;q.k=[];q.kk=[];q.Ee=[new sb(q)];q.Rd=0;q.cd=null;q.mw=0;q.vh=!0;q.gm=tb;q.Iq=ub;q.Rx=vb;q.V=wb;q.$i=xb;q.kh=yb;q.ze=
zb;q.Ck=Ab;q.ln=Bb;q.qn=Cb;q.vd=Db;q.rn=Eb;q.ck=new ib(this.ib,this.hb);q.Nj=!0;q.Oj=!1;q.P={};q.toString=Fb;q.Qa=[];d=0;for(k=c[8].length;d<k;d++){h=c[8][d];v=this.Me(h[1]);u=null;l=0;for(f=this.Qa.length;l<f;l++)if(this.Qa[l]instanceof v){u=this.Qa[l];break}u||(u=new v(this),u.po=[],u.Oi=new da,u.J&&u.J(),this.Qa.push(u),pc&&u instanceof pc&&(this.bp=u));-1===u.po.indexOf(q)&&u.po.push(q);l=new u.X(u,q);l.name=h[0];l.ka=h[2];l.J();q.Qa.push(l)}q.global=c[9];q.Ln=c[10];q.ba=[];d=0;for(k=c[12].length;d<
k;d++)q.ba.push({id:c[12][d][0],name:c[12][d][1],lb:-1,md:!1,Oa:!0,index:d});q.Zl=c[13];this.tp&&!q.O&&!q.Ln&&r.hf||q.J();q.name&&(this.types[q.name]=q);this.G.push(q);r.Ql&&(d=new r.R(q),d.uid=this.Qi++,d.vs=this.Tr++,d.Yf=0,d.Vh=Gb,d.toString=Hb,d.B=c[14],d.J(),q.k.push(d),this.xe[d.uid.toString()]=d)}b=0;for(e=a[4].length;b<e;b++)for(l=a[4][b],f=this.G[l[0]],d=1,k=l.length;d<k;d++)c=this.G[l[d]],c.Pa.push(f),f.eh.push(c);b=0;for(e=a[28].length;b<e;b++){l=a[28][b];f=[];d=0;for(k=l.length;d<k;d++)f.push(this.G[l[d]]);
d=0;for(k=f.length;d<k;d++)f[d].Zb=!0,f[d].Ec=f}if(0<this.Ph)for(b=0,e=this.G.length;b<e;b++)if(c=this.G[b],!c.O&&c.Pa.length){c.Qh=Array(this.Ph);c.Kg=Array(this.Ph);c.tq=Array(this.Ph);q=[];d=u=v=h=0;for(k=c.Pa.length;d<k;d++)for(r=c.Pa[d],c.Qh[r.Vd]=h,h+=r.Zz,c.Kg[r.Vd]=v,v+=r.bw,c.tq[r.Vd]=u,u+=r.Hx,l=0,f=r.ba.length;l<f;l++)q.push(xa({},r.ba[l]));c.ba=q.concat(c.ba);d=0;for(k=c.ba.length;d<k;d++)c.ba[d].index=d}b=0;for(e=a[5].length;b<e;b++)c=a[5][b],d=new Jb(this,c),this.Zn[d.name]=d,this.Cd.push(d);
b=0;for(e=a[6].length;b<e;b++)c=a[6][b],d=new Kb(this,c),this.cn[d.name]=d,this.me.push(d);b=0;for(e=this.me.length;b<e;b++)this.me[b].$a();b=0;for(e=this.me.length;b<e;b++)this.me[b].pp();b=0;for(e=this.fm.length;b<e;b++)this.fm[b].$a();M(this.fm);this.$v=a[7];this.en=a[8];this.Wc=a[9];this.Gh=1;this.Pw=a[13];this.La=a[14];this.lq=a[15];this.Yz=a[17];this.xo=a[20];this.aw=0<this.xo;this.hz=a[22];this.Oc=this.zt=a[23];this.Iw=a[24];this.oz=a[25];this.Ha=a[27]&&!this.te;this.Ul=Date.now();M(this.jl);
this.wy()};var a=!1;c.prototype.mm=function(b,e){b.cocoonLazyLoad=!0;b.onerror=function(e){a=b.fq=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",e)};this.fd?b.src=e:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,function(a){b.src=a},function(d){a=b.fq=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",d)}):(b.crossOrigin="anonymous",this.Gs(b,e)));this.Ch.push(b)};c.prototype.Ex=function(a){var b,e;b=0;for(e=this.Ch.length;b<
e;b++)if(this.Ch[b].iw===a)return this.Ch[b];return null};var e=0,d=!1;c.prototype.ky=function(){this.Bg&&(e=this.Bg.Mz(this.$v))};c.prototype.$p=function(){var a=e,b=0,k=0,c=!0,l,f,k=0;for(l=this.Ch.length;k<l;k++){f=this.Ch[k];var q=f.Rm;if(!q||0>=q)q=5E4;a+=q;f.src&&(f.complete||f.loaded)&&!f.fq?b+=q:c=!1}c&&this.oz&&this.Bg&&(d||(this.Bg.Rz(),d=!0),k=this.Bg.Sx(),b+=k,k<e&&(c=!1));this.Fd=0==a?1:b/a;return c};var k=!1;c.prototype.go=function(){if(this.Na||this.F){var b=this.Na||this.zo;this.Nb&&
this.rs();var e=window.innerWidth,d=window.innerHeight;this.Yg===e&&this.Xg===d||this.setSize(e,d);this.Fd=0;this.pr=-1;var c=this;if(this.$p()&&(4!==this.lf||k))this.my();else{d=Date.now()-this.Ul;if(b){var l=this.width,f=this.height,e=this.devicePixelRatio;if(3>this.lf&&(this.Sc||500<=d&&this.pr!=this.Fd)){b.clearRect(0,0,l,f);var d=l/2,f=f/2,l=0===this.lf&&this.kf.gl.complete,q=40*e,r=0,h=80*e,v;if(l){var u=this.kf.gl,h=u.width*e;v=u.height*e;q=h/2;r=v/2;b.drawImage(u,A(d-q),A(f-r),h,v)}1>=this.lf?
(d=A(d-q)+.5,f=A(f+(r+(l?12*e:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(d,f,Math.floor(h*this.Fd),6*e),b.strokeStyle="black",b.strokeRect(d,f,h,6*e),b.strokeStyle="white",b.strokeRect(d-1*e,f-1*e,h+2*e,8*e)):2===this.lf&&(b.font=this.fd?"12pt ArialMT":"12pt Arial",b.fillStyle=a?"#f00":"#999",b.MA="middle",e=Math.round(100*this.Fd)+"%",l=b.measureText?b.measureText(e):null,b.fillText(e,d-(l?l.width:0)/2,f));this.pr=this.Fd}else if(4===this.lf){this.Nw(b);t?t(function(){c.go()}):setTimeout(function(){c.go()},
16);return}}setTimeout(function(){c.go()},this.Sc?10:100)}}};var u=-1,L="undefined"===typeof cr_is_preview?200:0,v=!0,l=!1,q=0,T=0,K="undefined"===typeof cr_is_preview?3E3:0,r=null,G=null,B=0;c.prototype.Nw=function(b){if(!k){for(var e=Math.ceil(this.width),d=Math.ceil(this.height),c=this.kf.gl,f=this.kf.nz,h=this.kf.aA,g=0;4>g;++g)if(!c[g].complete||!f[g].complete||!h[g].complete)return;0===B&&(u=Date.now());var g=Date.now(),t=!1,n=b,p,z;v||l?(b.clearRect(0,0,e,d),r&&r.width===e&&r.height===d||(r=
document.createElement("canvas"),r.width=e,r.height=d,G=r.getContext("2d")),n=G,t=!0,v&&1===B&&(u=Date.now())):b.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,e,d);256<this.Kh?(p=Ga(.22*d,105,.6*e),z=.25*p,n.drawImage(m(f,p),.5*e-p/2,.2*d-z/2,p,z),z=p=Math.min(.395*d,.95*e),n.drawImage(m(c,p),.5*e-p/2,.485*d-z/2,p,z),p=Ga(.22*d,105,.6*e),z=.25*p,n.drawImage(m(h,p),.5*e-p/2,.868*d-z/2,p,z),n.fillStyle="#3C3C3C",p=e,z=Math.max(.005*d,2),n.fillRect(0,.8*d-z/2,p,z),n.fillStyle=a?"red":"#E0FF65",
p=e*this.Fd,n.fillRect(.5*e-p/2,.8*d-z/2,p,z)):(z=p=.55*d,n.drawImage(m(c,p),.5*e-p/2,.45*d-z/2,p,z),n.fillStyle="#3C3C3C",p=e,z=Math.max(.005*d,2),n.fillRect(0,.85*d-z/2,p,z),n.fillStyle=a?"red":"#E0FF65",p=e*this.Fd,n.fillRect(.5*e-p/2,.85*d-z/2,p,z));t&&(v?b.globalAlpha=0===B?0:Math.min((g-u)/300,1):l&&(b.globalAlpha=Math.max(1-(g-T)/300,0)),b.drawImage(r,0,0,e,d));v&&300<=g-u&&2<=B&&(v=!1,q=g);!v&&g-q>=K&&!l&&1<=this.Fd&&(l=!0,T=g);if(l&&g-T>=300+L||"undefined"!==typeof cr_is_preview&&1<=this.Fd&&
500>Date.now()-u)k=!0,l=v=!1,this.kf=G=r=null;++B}};c.prototype.my=function(){this.Nb&&(this.canvas.parentNode.removeChild(this.Nb),this.Nb=this.zo=null);this.Ul=Date.now();this.gg=Xa();var a,b,e;if(this.tp)for(a=0,b=this.G.length;a<b;a++)e=this.G[a],e.O||e.Ln||!e.wa.hf||e.J();else this.Vg=!1;a=0;for(b=this.Cd.length;a<b;a++)this.Cd[a].jw();2<=this.rc&&(a=this.ib/this.hb,b=this.width/this.height,this.Gh=2!==this.rc&&b>a||2===this.rc&&b<a?this.height/this.hb:this.width/this.ib);this.zq?this.Zn[this.zq].dp():
this.Cd[0].dp();this.tp||(this.ah=1,this.trigger(X.prototype.m.Mp,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.G.length;a<b;a++)e=this.G[a],e.as&&e.as();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ia(!1);this.hc&&AppMobi.webview.execute("onGameReady();")};c.prototype.Ia=function(a,b,e){if(this.ma){var d=Xa();if(e||!this.ii||a){a||
(t?this.Fo=t(this.$s):this.jp=setTimeout(this.$s,this.Pg?1:16));b=b||d;var k=this.rc;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Xd)||this.Yd)&&0<this.oe&&(k=this.oe);if(0<k){var k=window.innerWidth,c=window.innerHeight;this.Yg===k&&this.Xg===c||this.setSize(k,c)}this.Ta||(e?(this.vk||(this.jn=jQuery(this.canvas).css("margin")||"0",this.vk=!0),this.di||this.gf||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-
this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.vk?(this.di||this.gf||jQuery(this.canvas).css("margin",this.jn),this.jn="",this.vk=!1,0===this.rc&&this.setSize(Math.round(this.$r/this.devicePixelRatio),Math.round(this.Zr/this.devicePixelRatio),!0)):(this.$r=this.width,this.Zr=this.height));this.Vg&&(e=this.$p(),this.ah=this.Fd,e&&(this.Vg=!1,this.Fd=1,this.trigger(X.prototype.m.Mp,null),window.C2_RegisterSW&&window.C2_RegisterSW()));
this.Oy(b);!this.fa&&!this.Sc||this.Qn||this.oj||a||(this.fa=!1,this.F?this.Xb():this.ed(),this.nj&&(this.canvas&&this.canvas.toDataURL&&(this.Ts=this.canvas.toDataURL(this.nj[0],this.nj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Ts),this.trigger(X.prototype.m.Cu,null)),this.nj=null));this.IA||(this.Ge++,this.Rf++,this.Ak++);this.Ii+=Xa()-d}}};c.prototype.Oy=function(a){var b,e,d,k,c,l,f,q;1E3<=a-this.gg&&(this.gg+=1E3,1E3<=a-this.gg&&(this.gg=a),this.zk=this.Ak,this.Ak=0,this.Qm=this.Ii,
this.Ii=0);b=0;0!==this.Wk&&(b=a-this.Wk,0>b&&(b=0),this.Nf=b/=1E3,.5<this.Nf?this.Nf=0:this.Nf>1/this.Pr&&(this.Nf=1/this.Pr));this.Wk=a;this.Mf=this.Nf*this.yf;this.cb.add(this.Mf);this.Je.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Yd)&&!this.Xd;2<=this.rc||a&&0<this.oe?(b=this.ib/this.hb,e=this.width/this.height,d=this.rc,a&&0<this.oe&&(d=this.oe),this.Gh=2!==d&&e>b||2===d&&e<b?this.height/this.hb:this.width/this.ib,
this.ma&&(this.ma.So(this.ma.scrollX),this.ma.To(this.ma.scrollY))):this.Gh=this.ag?this.devicePixelRatio:1;this.Ub();this.Tc++;this.fe.Ez();this.Tc--;this.Ub();this.Tc++;e=this.Xr.rd();a=0;for(b=e.length;a<b;a++)e[a].KA();a=0;for(b=this.G.length;a<b;a++)if(l=this.G[a],!l.O&&(l.Qa.length||l.Pa.length))for(e=0,d=l.k.length;e<d;e++)for(f=l.k[e],k=0,c=f.S.length;k<c;k++)f.S[k].Ia();a=0;for(b=this.G.length;a<b;a++)if(l=this.G[a],!l.O&&(l.Qa.length||l.Pa.length))for(e=0,d=l.k.length;e<d;e++)for(f=l.k[e],
k=0,c=f.S.length;k<c;k++)q=f.S[k],q.mz&&q.mz();e=this.ro.rd();a=0;for(b=e.length;a<b;a++)e[a].Ia();this.Tc--;this.ny();for(a=0;this.Hf&&10>a++;)this.rq(this.Hf);a=0;for(b=this.me.length;a<b;a++)this.me[a].zn=!1;this.ma.Pf&&this.ma.Pf.kb();M(this.dj);this.Yn=!1;this.Tc++;a=0;for(b=this.G.length;a<b;a++)if(l=this.G[a],!l.O&&(l.Qa.length||l.Pa.length))for(e=0,d=l.k.length;e<d;e++)for(f=l.k[e],k=0,c=f.S.length;k<c;k++)q=f.S[k],q.Yl&&q.Yl();e=this.Yr.rd();a=0;for(b=e.length;a<b;a++)e[a].Yl();this.Tc--};
c.prototype.rf=function(){var a,b,e,d,k,l,c,f,q;a=0;for(b=this.G.length;a<b;a++)if(c=this.G[a],!c.O)for(e=0,d=c.k.length;e<d;e++)if(f=c.k[e],f.rf&&f.rf(),f.S)for(k=0,l=f.S.length;k<l;k++)q=f.S[k],q.rf&&q.rf()};c.prototype.rq=function(a){var b=this.ma;this.ma.Sz();var e,d,k;if(this.F)for(e=0,d=this.G.length;e<d;e++)k=this.G[e],k.O||!k.vj||k.global&&0!==k.k.length||-1!==a.$h.indexOf(k)||k.vj();b==a&&M(this.fe.Cc);M(this.dj);this.As(!0);a.dp();this.As(!1);this.Yn=this.fa=!0;this.Ub()};c.prototype.As=
function(a){var b,e,d,k,c,l,f,q,r;b=0;for(e=this.Qa.length;b<e;b++)d=this.Qa[b],a?d.Ri&&d.Ri():d.Si&&d.Si();b=0;for(e=this.G.length;b<e;b++)if(d=this.G[b],d.global||d.wa.Ql)for(k=0,c=d.k.length;k<c;k++)if(l=d.k[k],a?l.Ri&&l.Ri():l.Si&&l.Si(),l.S)for(f=0,q=l.S.length;f<q;f++)r=l.S[f],a?r.Ri&&r.Ri():r.Si&&r.Si()};c.prototype.xh=function(a){this.ro.add(a)};c.prototype.pe=function(a){return a&&-1!==a.Pi?this.Nf*a.Pi:this.Mf};c.prototype.ed=function(){this.ma.ed(this.Na);this.hc&&this.Na.present()};c.prototype.Xb=
function(){this.Ha&&(this.Of=1,this.ma.Lf(this.F));this.ma.Xb(this.F);this.F.qz()};c.prototype.Vp=function(a){a&&this.Zm.push(a)};c.prototype.Ek=function(a){a=a.toString();return this.xe.hasOwnProperty(a)?this.xe[a]:null};var D=[];c.prototype.he=function(a){var b,e;b=a.type.name;var d=null;if(this.Kf.hasOwnProperty(b)){if(d=this.Kf[b],d.contains(a))return}else d=D.length?D.pop():new da,this.Kf[b]=d;d.add(a);this.ff=!0;if(a.Zb)for(b=0,e=a.siblings.length;b<e;b++)this.he(a.siblings[b]);this.Kn&&d.Ah.push(a);
this.Jn||(this.Tc++,this.trigger(Object.getPrototypeOf(a.type.wa).m.Eu,a),this.Tc--)};c.prototype.Ub=function(){if(this.ff){var a,b,e,d,k,l;this.Kn=!0;e=0;for(k=this.zd.length;e<k;++e)for(a=this.zd[e],b=a.type,b.k.push(a),d=0,l=b.Pa.length;d<l;++d)b.Pa[d].k.push(a),b.Pa[d].vh=!0;M(this.zd);this.vu();Wa(this.Kf);this.ff=this.Kn=!1}};c.prototype.vu=function(){for(var a in this.Kf)this.Kf.hasOwnProperty(a)&&this.Mt(this.Kf[a])};c.prototype.Mt=function(a){var b=a.rd(),e=b[0].type,d,k,l,c,f,q;Ya(e.k,a);
e.vh=!0;0===e.k.length&&(e.Oj=!1);d=0;for(k=e.Pa.length;d<k;++d)q=e.Pa[d],Ya(q.k,a),q.vh=!0;d=0;for(k=this.fe.Cc.length;d<k;++d)if(f=this.fe.Cc[d],f.lc.hasOwnProperty(e.index)&&Ya(f.lc[e.index].qe,a),!e.O)for(l=0,c=e.Pa.length;l<c;++l)q=e.Pa[l],f.lc.hasOwnProperty(q.index)&&Ya(f.lc[q.index].qe,a);if(f=b[0].q){if(f.Yc)for(l=f.k,d=0,k=l.length;d<k;++d)c=l[d],a.contains(c)&&(c.Ga(),f.Pb.update(c,c.yc,null),c.yc.set(0,0,-1,-1));Ya(f.k,a);f.qh(0)}for(d=0;d<b.length;++d)this.Lt(b[d],e);a.clear();D.push(a);
this.fa=!0};c.prototype.Lt=function(a,b){var e,d,k;e=0;for(d=this.Zm.length;e<d;++e)this.Zm[e](a);a.Ze&&b.ck.update(a,a.Ze,null);(e=a.q)&&e.nh(a,!0);if(a.S)for(e=0,d=a.S.length;e<d;++e)k=a.S[e],k.qf&&k.qf(),k.behavior.Oi.remove(a);this.Xr.remove(a);this.ro.remove(a);this.Yr.remove(a);a.qf&&a.qf();this.xe.hasOwnProperty(a.uid.toString())&&delete this.xe[a.uid.toString()];this.kl--;100>b.kk.length&&b.kk.push(a)};c.prototype.Sm=function(a,b,e,d){if(a.O){var k=A(Math.random()*a.eh.length);return this.Sm(a.eh[k],
b,e,d)}return a.cd?this.$e(a.cd,b,!1,e,d,!1):null};var z=[];c.prototype.$e=function(a,b,e,d,k,l){var c,f,q,r;if(!a)return null;var h=this.G[a[1]],v=h.wa.hf;if(this.Vg&&v&&!h.Ln||v&&!this.F&&11===a[0][11])return null;var u=b;v||(b=null);var g;h.kk.length?(g=h.kk.pop(),g.Kc=!0,h.wa.R.call(g,h)):(g=new h.wa.R(h),g.Kc=!1);!e||l||this.xe.hasOwnProperty(a[2].toString())?g.uid=this.Qi++:g.uid=a[2];this.xe[g.uid.toString()]=g;g.vs=this.Tr++;g.Yf=h.k.length;c=0;for(f=this.zd.length;c<f;++c)this.zd[c].type===
h&&g.Yf++;g.Vh=Gb;g.toString=Hb;q=a[3];if(g.Kc)Wa(g.P);else{g.P={};if("undefined"!==typeof cr_is_preview)for(g.Vq=[],g.Vq.length=q.length,c=0,f=q.length;c<f;c++)g.Vq[c]=q[c][1];g.Ya=[];g.Ya.length=q.length}c=0;for(f=q.length;c<f;c++)g.Ya[c]=q[c][0];if(v){var m=a[0];g.x=ia(d)?m[0]:d;g.y=ia(k)?m[1]:k;g.z=m[2];g.width=m[3];g.height=m[4];g.depth=m[5];g.n=m[6];g.opacity=m[7];g.tc=m[8];g.uc=m[9];g.Vb=m[10];c=m[11];!this.F&&h.ba.length&&(g.Vb=c);g.Hh=kb(g.Vb);this.H&&lb(g,g.Vb,this.H);if(g.Kc){c=0;for(f=
m[12].length;c<f;c++)for(q=0,r=m[12][c].length;q<r;q++)g.Ra[c][q]=m[12][c][q];g.Ja.set(0,0,0,0);g.Ze.set(0,0,-1,-1);g.yc.set(0,0,-1,-1);g.qc.sg(g.Ja);M(g.Gm)}else{g.Ra=m[12].slice(0);c=0;for(f=g.Ra.length;c<f;c++)g.Ra[c]=m[12][c].slice(0);g.ya=[];g.Ne=[];g.Ne.length=h.ba.length;g.Ja=new va(0,0,0,0);g.Ze=new va(0,0,-1,-1);g.yc=new va(0,0,-1,-1);g.qc=new wa;g.Gm=[];g.K=Lb;g.Yv=Mb;g.Ab=Nb;g.Ga=Ob;g.tt=Pb;g.sp=Qb;g.Ad=Rb}g.yh=!1;g.et=0;g.dt=0;g.ct=null;14===m.length&&(g.yh=!0,g.et=m[13][0],g.dt=m[13][1],
g.ct=m[13][2]);c=0;for(f=h.ba.length;c<f;c++)g.Ne[c]=!0;g.Ce=!0;g.Ld=Sb;g.Ld();g.xt=!!g.ya.length;g.Vj=!0;g.Mm=!0;h.Nj=!0;g.visible=!0;g.Pi=-1;g.q=b;g.Nd=b.k.length;g.Of=0;"undefined"===typeof g.la&&(g.la=null);this.fa=g.Qd=!0}var G;M(z);c=0;for(f=h.Pa.length;c<f;c++)z.push.apply(z,h.Pa[c].Qa);z.push.apply(z,h.Qa);if(g.Kc)for(c=0,f=z.length;c<f;c++){var T=z[c];G=g.S[c];G.Kc=!0;T.behavior.R.call(G,T,g);m=a[4][c];q=0;for(r=m.length;q<r;q++)G.B[q]=m[q];G.J();T.behavior.Oi.add(g)}else for(g.S=[],c=0,
f=z.length;c<f;c++)T=z[c],G=new T.behavior.R(T,g),G.Kc=!1,G.B=a[4][c].slice(0),G.J(),g.S.push(G),T.behavior.Oi.add(g);m=a[5];if(g.Kc)for(c=0,f=m.length;c<f;c++)g.B[c]=m[c];else g.B=m.slice(0);this.zd.push(g);this.ff=!0;b&&(b.Fh(g,!0),1!==b.kd||1!==b.ld)&&(h.Oj=!0);this.kl++;if(h.Zb){if(g.Zb=!0,g.Kc?M(g.siblings):g.siblings=[],!e&&!l){c=0;for(f=h.Ec.length;c<f;c++)if(h.Ec[c]!==h){if(!h.Ec[c].cd)return null;g.siblings.push(this.$e(h.Ec[c].cd,u,!1,v?g.x:d,v?g.y:k,!0))}c=0;for(f=g.siblings.length;c<f;c++)for(g.siblings[c].siblings.push(g),
q=0;q<f;q++)c!==q&&g.siblings[c].siblings.push(g.siblings[q])}}else g.Zb=!1,g.siblings=null;g.J();c=0;for(f=g.S.length;c<f;c++)g.S[c].lz&&g.S[c].lz();return g};c.prototype.sn=function(a){var b,e;b=0;for(e=this.ma.da.length;b<e;b++){var d=this.ma.da[b];if(nb(d.name,a))return d}return null};c.prototype.Rh=function(a){a=A(a);0>a&&(a=0);a>=this.ma.da.length&&(a=this.ma.da.length-1);return this.ma.da[a]};c.prototype.Nm=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].V().Z=!0};c.prototype.$i=function(a){var b,
e;b=0;for(e=a.length;b<e;b++)a[b].$i()};c.prototype.kh=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].kh()};c.prototype.ze=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].ze()};c.prototype.pt=function(a){if(a.Nj){var b,e,d=a.k;b=0;for(e=d.length;b<e;++b)d[b].sp();d=this.zd;b=0;for(e=d.length;b<e;++b)d[b].type===a&&d[b].sp();a.Nj=!1}};c.prototype.nn=function(a,b,e,d){var c,k,f=a?1!==a.kd||1!==a.ld:!1;if(b.O)for(a=0,c=b.eh.length;a<c;++a)k=b.eh[a],f||k.Oj?Ca(d,k.k):(this.pt(k),k.ck.yl(e,d));
else f||b.Oj?Ca(d,b.k):(this.pt(b),b.ck.yl(e,d))};c.prototype.Nq=function(a,b,e,d){var c,k;c=0;for(k=b.length;c<k;++c)this.nn(a,b[c],e,d)};c.prototype.Lq=function(a,b,e){var d=this.bp;d&&this.Nq(a,d.po,b,e)};c.prototype.Uz=function(a,b,e){var d=a.V(),c,k,f,l,q=this.Sa().Xa.Vc,r,g,h;if(d.Z)for(d.Z=!1,M(d.k),c=0,l=a.k.length;c<l;c++)f=a.k[c],f.Ga(),r=f.q.fc(b,e,!0),g=f.q.fc(b,e,!1),f.Ab(r,g)?d.k.push(f):q&&d.ca.push(f);else{k=0;h=q?d.ca:d.k;c=0;for(l=h.length;c<l;c++)f=h[c],f.Ga(),r=f.q.fc(b,e,!0),
g=f.q.fc(b,e,!1),f.Ab(r,g)&&(q?d.k.push(f):(d.k[k]=d.k[c],k++));h.length=k}a.vd();return d.Lk()};c.prototype.Fe=function(a,b){if(!(a&&b&&a!==b&&a.Qd&&b.Qd))return!1;a.Ga();b.Ga();var e=a.q,d=b.q,c,k,f,l,q,r,g,h;if(e===d||e.kd===d.kd&&d.ld===d.ld&&e.scale===d.scale&&e.n===d.n&&e.Od===d.Od){if(!a.Ja.Xq(b.Ja)||!a.qc.Wq(b.qc)||a.yh&&b.yh)return!1;if(a.yh)return this.Ys(a,b);if(b.yh)return this.Ys(b,a);g=a.la&&!a.la.bg();c=b.la&&!b.la.bg();if(!g&&!c)return!0;g?(a.la.Te(a.width,a.height,a.n),g=a.la):(this.Hd.rh(a.qc,
a.x,a.y,a.width,a.height),g=this.Hd);c?(b.la.Te(b.width,b.height,b.n),h=b.la):(this.Hd.rh(b.qc,b.x,b.y,b.width,b.height),h=this.Hd);return g.ai(h,b.x-a.x,b.y-a.y)}g=a.la&&!a.la.bg();c=b.la&&!b.la.bg();g?(a.la.Te(a.width,a.height,a.n),this.Hd.Ms(a.la)):this.Hd.rh(a.qc,a.x,a.y,a.width,a.height);g=this.Hd;c?(b.la.Te(b.width,b.height,b.n),this.ep.Ms(b.la)):this.ep.rh(b.qc,b.x,b.y,b.width,b.height);h=this.ep;c=0;for(k=g.xc;c<k;c++)f=2*c,l=f+1,q=g.Fa[f],r=g.Fa[l],g.Fa[f]=e.ic(q+a.x,r+a.y,!0),g.Fa[l]=e.ic(q+
a.x,r+a.y,!1);g.Ga();c=0;for(k=h.xc;c<k;c++)f=2*c,l=f+1,q=h.Fa[f],r=h.Fa[l],h.Fa[f]=d.ic(q+b.x,r+b.y,!0),h.Fa[l]=d.ic(q+b.x,r+b.y,!1);h.Ga();return g.ai(h,0,0)};var F=new wa,C=new va(0,0,0,0),S=[];c.prototype.Ys=function(a,b){var e,d,c,k,f=b.Ja,l=a.x,q=a.y;a.Eq(f,S);var r=b.la&&!b.la.bg();e=0;for(d=S.length;e<d;++e)if(c=S[e],k=c.Aa,f.Yq(k,l,q)&&(F.sg(k),F.offset(l,q),F.Wq(b.qc)))if(r)if(b.la.Te(b.width,b.height,b.n),c.Ed){if(c.Ed.ai(b.la,b.x-(l+k.left),b.y-(q+k.top)))return M(S),!0}else{if(this.Hd.rh(F,
0,0,k.right-k.left,k.bottom-k.top),this.Hd.ai(b.la,b.x,b.y))return M(S),!0}else if(c.Ed){if(this.Hd.rh(b.qc,0,0,b.width,b.height),c.Ed.ai(this.Hd,-(l+k.left),-(q+k.top)))return M(S),!0}else return M(S),!0;M(S);return!1};c.prototype.Xs=function(a,b,e,d,c){if(!c||!c.Qd)return!1;c.Ga();C.set(qa(a,e),qa(b,d),pa(a,e),pa(b,d));if(!c.Ja.Xq(C))return!1;if(c.yh){c.Eq(C,S);var k,f,l,q=c.x,r=c.y;c=0;for(k=S.length;c<k;++c)if(f=S[c],l=f.Aa,C.Yq(l,q,r)&&(F.sg(l),F.offset(q,r),F.bi(a,b,e,d)))if(f.Ed){if(f.Ed.bi(q+
l.left,r+l.top,a,b,e,d))return M(S),!0}else return M(S),!0;M(S);return!1}if(!c.qc.bi(a,b,e,d))return!1;if(!c.la||c.la.bg())return!0;c.la.Te(c.width,c.height,c.n);return c.la.bi(c.x,c.y,a,b,e,d)};c.prototype.lt=function(a,b){if(!b)return!1;var e,d,c,k,f;e=0;for(d=a.Qa.length;e<d;e++)if(a.Qa[e].behavior instanceof b)return!0;if(!a.O)for(e=0,d=a.Pa.length;e<d;e++)for(f=a.Pa[e],c=0,k=f.Qa.length;c<k;c++)if(f.Qa[c].behavior instanceof b)return!0;return!1};c.prototype.np=function(a){return this.lt(a,gc.rA)};
c.prototype.op=function(a){return this.lt(a,gc.sA)};var W=[];c.prototype.Id=function(a){var b,e,d;a.Ga();this.Lq(a.q,a.Ja,W);b=0;for(e=W.length;b<e;++b)if(d=W[b],d.P.solidEnabled&&this.Fe(a,d))return M(W),d;M(W);return null};c.prototype.xs=function(a,b,e,d){d=d||50;var c=a.x,k=a.y,f,l=null,q=null;for(f=0;f<d;f++)if(a.x=c+b*f,a.y=k+e*f,a.K(),!this.Fe(a,l)&&((l=this.Id(a))&&(q=l),!l&&!l))return q&&this.sz(a,b,e,q),!0;a.x=c;a.y=k;a.K();return!1};c.prototype.vz=function(a,b,e,d,c){d=d||50;var k=a.x,f=
a.y,l;for(l=0;l<d;l++)if(a.x=k+b*l,a.y=f+e*l,a.K(),!this.Fe(a,c))return;a.x=k;a.y=f;a.K()};c.prototype.sz=function(a,b,e,d){var c=2,k,f=!1;k=!1;for(var l=a.x,q=a.y;16>=c;)k=1/c,c*=2,a.x+=b*k*(f?1:-1),a.y+=e*k*(f?1:-1),a.K(),this.Fe(a,d)?k=f=!0:(k=f=!1,l=a.x,q=a.y);k&&(a.x=l,a.y=q,a.K())};c.prototype.Eo=function(a,b){var e=ia(b)?100:b,d=0,c=a.x,k=a.y,f=0,l=0,q=0,r=this.Id(a);if(!r)return!0;for(;d<=e;){switch(f){case 0:l=0;q=-1;d++;break;case 1:l=1;q=-1;break;case 2:l=1;q=0;break;case 3:q=l=1;break;
case 4:l=0;q=1;break;case 5:l=-1;q=1;break;case 6:l=-1;q=0;break;case 7:q=l=-1}f=(f+1)%8;a.x=A(c+l*d);a.y=A(k+q*d);a.K();if(!this.Fe(a,r)&&(r=this.Id(a),!r))return!0}a.x=c;a.y=k;a.K();return!1};c.prototype.cj=function(a,b){a.Qd&&b.Qd&&this.dj.push([a,b])};c.prototype.gw=function(a,b){var e,d,c;e=0;for(d=this.dj.length;e<d;e++)if(c=this.dj[e],c[0]==a&&c[1]==b||c[0]==b&&c[1]==a)return!0;return!1};c.prototype.iq=function(a,b,e,d){var c=a.x,k=a.y,f=pa(10,Sa(b,e,c,k)),l=Ma(b,e,c,k),q=d||this.Id(a);if(!q)return Ja(l+
ra);var r=q,g,h,v,u,m=P(5);for(g=1;36>g;g++)if(h=l-g*m,a.x=b+Math.cos(h)*f,a.y=e+Math.sin(h)*f,a.K(),!this.Fe(a,r)&&(r=d?null:this.Id(a),!r)){v=h;break}36===g&&(v=Ja(l+ra));r=q;for(g=1;36>g;g++)if(h=l+g*m,a.x=b+Math.cos(h)*f,a.y=e+Math.sin(h)*f,a.K(),!this.Fe(a,r)&&(r=d?null:this.Id(a),!r)){u=h;break}36===g&&(u=Ja(l+ra));a.x=c;a.y=k;a.K();if(u===v)return u;a=Na(u,v)/2;a=Qa(u,v)?Ja(v+a+ra):Ja(u+a);v=Math.cos(l);l=Math.sin(l);u=Math.cos(a);a=Math.sin(a);b=v*u+l*a;return Ma(0,0,v-2*b*u,l-2*b*a)};var U=
-1;c.prototype.trigger=function(a,b,e){if(!this.ma)return!1;var d=this.ma.Pf;if(!d)return!1;var c=!1,k,f,l;U++;var q=d.Xm;f=0;for(l=q.length;f<l;++f)k=this.it(a,b,q[f],e),c=c||k;k=this.it(a,b,d,e);U--;return c||k};c.prototype.it=function(a,b,e,d){var c=!1,k,f,l,q;if(b)for(l=this.lp(a,b,b.type.name,e,d),c=c||l,q=b.type.Pa,k=0,f=q.length;k<f;++k)l=this.lp(a,b,q[k].name,e,d),c=c||l;else l=this.lp(a,b,"system",e,d),c=c||l;return c};c.prototype.lp=function(a,b,e,d,c){var k,f=!1,l=!1,l="undefined"!==typeof c,
q=(l?d.vq:d.jt)[e];if(!q)return f;var r=null;d=0;for(k=q.length;d<k;++d)if(q[d].method==a){r=q[d].Nh;break}if(!r)return f;var g;l?g=r[c]:g=r;if(!g)return null;d=0;for(k=g.length;d<k;d++)a=g[d][0],c=g[d][1],l=this.Ax(b,e,a,c),f=f||l;return f};c.prototype.Ax=function(a,b,e,d){var c,k,f=!1;this.mp++;var l=this.Sa().Xa;l&&this.$i(l.wf);var q=1<this.mp;this.$i(e.wf);q&&this.uz();var r=this.xl(e);r.Xa=e;a&&(c=this.types[b].V(),c.Z=!1,M(c.k),c.k[0]=a,this.types[b].vd());a=!0;if(e.parent){b=r.Ws;for(c=e.parent;c;)b.push(c),
c=c.parent;b.reverse();c=0;for(k=b.length;c<k;c++)if(!b[c].Gz()){a=!1;break}}a&&(this.Rf++,e.Vc?e.Fz(d):e.kb(),f=f||r.fg);this.sl();q&&this.kz();this.ze(e.wf);l&&this.ze(l.wf);this.ff&&0===this.Tc&&0===U&&!this.Mn&&this.Ub();this.mp--;return f};c.prototype.Sf=function(){var a=this.Sa();return a.Xa.qb[a.ab]};c.prototype.Mx=function(){return this.Sf().type};c.prototype.zy=function(){return 0===this.Sa().ab};c.prototype.Lx=function(){var a=this.Sa();return a.Xa.Zc[a.pc]};c.prototype.uz=function(){this.fl++;
this.fl>=this.co.length&&this.co.push([])};c.prototype.kz=function(){this.fl--};c.prototype.Fq=function(){return this.co[this.fl]};c.prototype.xl=function(a){this.ok++;this.ok>=this.bn.length&&this.bn.push(new Tb);var b=this.Sa();b.reset(a);return b};c.prototype.sl=function(){this.ok--};c.prototype.Sa=function(){return this.bn[this.ok]};c.prototype.ws=function(){this.Ki++;this.Ki>=this.Ji.length&&this.Ji.push(aa({name:void 0,index:0,mb:!1}));var a=this.Gq();a.name=void 0;a.index=0;a.mb=!1;return a};
c.prototype.qs=function(){this.Ki--};c.prototype.Gq=function(){return this.Ji[this.Ki]};c.prototype.Hq=function(a,b){for(var e,d,c,k,f,l;b;){e=0;for(d=b.pd.length;e<d;e++)if(l=b.pd[e],l instanceof Ub&&nb(a,l.name))return l;b=b.parent}e=0;for(d=this.me.length;e<d;e++)for(f=this.me[e],c=0,k=f.cf.length;c<k;c++)if(l=f.cf[c],l instanceof Ub&&nb(a,l.name))return l;return null};c.prototype.Jq=function(a){var b,e;b=0;for(e=this.Cd.length;b<e;b++)if(this.Cd[b].ka===a)return this.Cd[b];return null};c.prototype.Sh=
function(a){var b,e;b=0;for(e=this.G.length;b<e;b++)if(this.G[b].ka===a)return this.G[b];return null};c.prototype.Nx=function(a){var b,e;b=0;for(e=this.Re.length;b<e;b++)if(this.Re[b].ka===a)return this.Re[b];return null};c.prototype.qw=function(a,b){this.nj=[a,b];this.fa=!0};c.prototype.ny=function(){var a=this,b=this.Ro,e=this.ue,d=this.al,c=!1;this.Rs&&(c=!0,b="__c2_continuouspreview",this.Rs=!1);if(b.length){this.Ub();e=this.Kz();if(n()&&!this.Sc)g(b,e,function(){ga("Saved state to IndexedDB storage ("+
e.length+" bytes)");a.ue=e;a.trigger(X.prototype.m.vm,null);a.ue="";c&&f()},function(d){try{localStorage.setItem("__c2save_"+b,e),ga("Saved state to WebStorage ("+e.length+" bytes)"),a.ue=e,a.trigger(X.prototype.m.vm,null),a.ue="",c&&f()}catch(k){ga("Failed to save game state: "+d+"; "+k),a.trigger(X.prototype.m.Pp,null)}});else try{localStorage.setItem("__c2save_"+b,e),ga("Saved state to WebStorage ("+e.length+" bytes)"),a.ue=e,this.trigger(X.prototype.m.vm,null),a.ue="",c&&f()}catch(k){ga("Error saving to WebStorage: "+
k),a.trigger(X.prototype.m.Pp,null)}this.al=this.Ro="";this.xb=null}if(d.length){if(n()&&!this.Sc)h(d,function(b){b?(a.xb=b,ga("Loaded state from IndexedDB storage ("+a.xb.length+" bytes)")):(a.xb=localStorage.getItem("__c2save_"+d)||"",ga("Loaded state from WebStorage ("+a.xb.length+" bytes)"));a.oj=!1;a.xb||(a.xb=null,a.trigger(X.prototype.m.Ij,null))},function(){a.xb=localStorage.getItem("__c2save_"+d)||"";ga("Loaded state from WebStorage ("+a.xb.length+" bytes)");a.oj=!1;a.xb||(a.xb=null,a.trigger(X.prototype.m.Ij,
null))});else{try{this.xb=localStorage.getItem("__c2save_"+d)||"",ga("Loaded state from WebStorage ("+this.xb.length+" bytes)")}catch(l){this.xb=null}this.oj=!1;a.xb||(a.xb=null,a.trigger(X.prototype.m.Ij,null))}this.Ro=this.al=""}null!==this.xb&&(this.Ub(),this.Ny(this.xb)?(this.ue=this.xb,this.trigger(X.prototype.m.Lu,null),this.ue=""):a.trigger(X.prototype.m.Ij,null),this.xb=null)};c.prototype.Kz=function(){var a,e,d,c,k,l,f,q={c2save:!0,version:1,rt:{time:this.cb.M,walltime:this.Je.M,timescale:this.yf,
tickcount:this.Ge,execcount:this.Rf,next_uid:this.Qi,running_layout:this.ma.ka,start_time_offset:Date.now()-this.Ul},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(e=this.G.length;a<e;a++)if(k=this.G[a],!k.O&&!this.np(k)){l={instances:[]};Va(k.P)&&(l.ex=b(k.P));d=0;for(c=k.k.length;d<c;d++)l.instances.push(this.Qo(k.k[d]));q.types[k.ka.toString()]=l}a=0;for(e=this.Cd.length;a<e;a++)d=this.Cd[a],q.layouts[d.ka.toString()]=d.Va();c=q.events.groups;a=0;for(e=this.Re.length;a<
e;a++)d=this.Re[a],c[d.ka.toString()]=this.Mg[d.Wh].Vf;e=q.events.cnds;for(f in this.Ye)this.Ye.hasOwnProperty(f)&&(a=this.Ye[f],Va(a.P)&&(e[f]={ex:b(a.P)}));e=q.events.acts;for(f in this.Oe)this.Oe.hasOwnProperty(f)&&(a=this.Oe[f],Va(a.P)&&(e[f]={ex:b(a.P)}));e=q.events.vars;for(f in this.Bh)this.Bh.hasOwnProperty(f)&&(a=this.Bh[f],a.Tk||a.parent&&!a.ni||(e[f]=a.data));q.system=this.fe.Va();return JSON.stringify(q)};c.prototype.zs=function(){var a,b,e,d,c,k;this.xe={};a=0;for(b=this.G.length;a<b;a++)if(e=
this.G[a],!e.O)for(d=0,c=e.k.length;d<c;d++)k=e.k[d],this.xe[k.uid.toString()]=k};c.prototype.Ny=function(a){var b;try{b=JSON.parse(a)}catch(e){return!1}if(!b.c2save||1<b.version)return!1;this.fi=!0;a=b.rt;this.cb.reset();this.cb.M=a.time;this.Je.reset();this.Je.M=a.walltime||0;this.yf=a.timescale;this.Ge=a.tickcount;this.Rf=a.execcount;this.Ul=Date.now()-a.start_time_offset;var d=a.running_layout;if(d!==this.ma.ka)if(d=this.Jq(d))this.rq(d);else return;var c,k,f,l,q,r,g;r=b.types;for(k in r)if(r.hasOwnProperty(k)&&
(l=this.Sh(parseInt(k,10)))&&!l.O&&!this.np(l)){r[k].ex?l.P=r[k].ex:Wa(l.P);q=l.k;f=r[k].instances;d=0;for(c=qa(q.length,f.length);d<c;d++)this.bl(q[d],f[d]);d=f.length;for(c=q.length;d<c;d++)this.he(q[d]);d=q.length;for(c=f.length;d<c;d++){q=null;if(l.wa.hf&&(q=this.ma.Dk(f[d].w.l),!q))continue;q=this.$e(l.cd,q,!1,0,0,!0);this.bl(q,f[d])}l.vh=!0}this.Ub();this.zs();c=b.layouts;for(k in c)c.hasOwnProperty(k)&&(d=this.Jq(parseInt(k,10)))&&d.gb(c[k]);c=b.events.groups;for(k in c)c.hasOwnProperty(k)&&
(d=this.Nx(parseInt(k,10)))&&this.Mg[d.Wh]&&this.Mg[d.Wh].ij(c[k]);d=b.events.cnds;for(k in this.Ye)this.Ye.hasOwnProperty(k)&&(d.hasOwnProperty(k)?this.Ye[k].P=d[k].ex:this.Ye[k].P={});d=b.events.acts;for(k in this.Oe)this.Oe.hasOwnProperty(k)&&(d.hasOwnProperty(k)?this.Oe[k].P=d[k].ex:this.Oe[k].P={});d=b.events.vars;for(k in d)d.hasOwnProperty(k)&&this.Bh.hasOwnProperty(k)&&(this.Bh[k].data=d[k]);this.Qi=a.next_uid;this.fi=!1;d=0;for(c=this.uk.length;d<c;++d)q=this.uk[d],this.trigger(Object.getPrototypeOf(q.type.wa).m.Af,
q);M(this.uk);this.fe.gb(b.system);d=0;for(c=this.G.length;d<c;d++)if(l=this.G[d],!l.O&&!this.np(l))for(b=0,k=l.k.length;b<k;b++){q=l.k[b];if(l.Zb)for(r=q.Vh(),M(q.siblings),a=0,f=l.Ec.length;a<f;a++)g=l.Ec[a],l!==g&&q.siblings.push(g.k[r]);q.Pe&&q.Pe();if(q.S)for(a=0,f=q.S.length;a<f;a++)r=q.S[a],r.Pe&&r.Pe()}return this.fa=!0};c.prototype.Qo=function(a,e){var d,c,k,l,f;l=a.type;k=l.wa;var q={};e?q.c2=!0:q.uid=a.uid;Va(a.P)&&(q.ex=b(a.P));if(a.Ya&&a.Ya.length)for(q.ivs={},d=0,c=a.Ya.length;d<c;d++)q.ivs[a.type.In[d].toString()]=
a.Ya[d];if(k.hf){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.q.ka,zi:a.Ad()};0!==a.n&&(k.a=a.n);1!==a.opacity&&(k.o=a.opacity);.5!==a.tc&&(k.hX=a.tc);.5!==a.uc&&(k.hY=a.uc);0!==a.Vb&&(k.bm=a.Vb);a.visible||(k.v=a.visible);a.Qd||(k.ce=a.Qd);-1!==a.Pi&&(k.mts=a.Pi);if(l.ba.length)for(k.fx=[],d=0,c=l.ba.length;d<c;d++)f=l.ba[d],k.fx.push({name:f.name,active:a.Ne[f.index],params:a.Ra[f.index]});q.w=k}if(a.S&&a.S.length)for(q.behs={},d=0,c=a.S.length;d<c;d++)l=a.S[d],l.Va&&(q.behs[l.type.ka.toString()]=l.Va());
a.Va&&(q.data=a.Va());return q};c.prototype.Px=function(a,b){var e,d;e=0;for(d=a.In.length;e<d;e++)if(a.In[e]===b)return e;return-1};c.prototype.Kx=function(a,b){var e,d;e=0;for(d=a.S.length;e<d;e++)if(a.S[e].type.ka===b)return e;return-1};c.prototype.bl=function(a,b,e){var d,c,k,l,f;f=a.type;l=f.wa;if(e){if(!b.c2)return}else a.uid=b.uid;b.ex?a.P=b.ex:Wa(a.P);if(c=b.ivs)for(d in c)c.hasOwnProperty(d)&&(k=this.Px(f,parseInt(d,10)),0>k||k>=a.Ya.length||(a.Ya[k]=c[d]));if(l.hf){k=b.w;a.q.ka!==k.l&&(c=
a.q,a.q=this.ma.Dk(k.l),a.q?(c.nh(a,!0),a.q.Fh(a,!0),a.K(),a.q.qh(0)):(a.q=c,e||this.he(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Nd=k.zi;a.n=k.hasOwnProperty("a")?k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.tc=k.hasOwnProperty("hX")?k.hX:.5;a.uc=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.Qd=k.hasOwnProperty("ce")?k.ce:!0;a.Pi=k.hasOwnProperty("mts")?k.mts:-1;a.Vb=k.hasOwnProperty("bm")?k.bm:0;a.Hh=kb(a.Vb);this.H&&lb(a,a.Vb,this.H);a.K();if(k.hasOwnProperty("fx"))for(e=
0,c=k.fx.length;e<c;e++)l=f.qn(k.fx[e].name),0>l||(a.Ne[l]=k.fx[e].active,a.Ra[l]=k.fx[e].params);a.Ld()}if(f=b.behs)for(d in f)f.hasOwnProperty(d)&&(e=this.Kx(a,parseInt(d,10)),0>e||a.S[e].gb(f[d]));b.data&&a.gb(b.data)};c.prototype.wq=function(a,b,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,e)},e)};c.prototype.Bx=function(a,b){this.wq("data.js",function(e){var d=new FileReader;d.onload=function(b){a(b.target.result)};d.onerror=b;d.readAsText(e)},
b)};var J=[],E=0;c.prototype.lo=function(){if(J.length&&!(8<=E)){E++;var a=J.shift();this.sw(a.filename,a.Tz,a.Sw)}};c.prototype.xq=function(a,b,e){var d=this;J.push({filename:a,Tz:function(a){E--;d.lo();b(a)},Sw:function(a){E--;d.lo();e(a)}});this.lo()};c.prototype.sw=function(a,b,e){this.wq(a,function(a){var e=new FileReader;e.onload=function(a){b(a.target.result)};e.readAsArrayBuffer(a)},e)};c.prototype.Cx=function(a,b,e){this.xq(a,function(a){a=URL.createObjectURL(new Blob([a]));b(a)},e)};c.prototype.xy=
function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.Gs=function(a,b){this.ki&&!this.xy(b)?this.Cx(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};c.prototype.Hl=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Vb=function(a){return new c(document.getElementById(a))};Wb=function(a,b){return new c({dc:!0,
width:a,height:b})};window.cr_createRuntime=Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Qj=!0;document.body.appendChild(a);a=new c(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 c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,m){var n=window.cr_getC2Runtime();n&&n.qw(c,m)};window.cr_sizeCanvas=function(c,m){if(0!==c&&0!==m){var n=window.cr_getC2Runtime();n&&n.setSize(c,m)}};
window.cr_setSuspended=function(c){var m=window.cr_getC2Runtime();m&&m.setSuspended(c)};
(function(){function c(a,b){this.b=a;this.Pf=null;this.scrollX=this.b.ib/2;this.scrollY=this.b.hb/2;this.scale=1;this.n=0;this.Lg=!0;this.name=b[0];this.gz=b[1];this.fz=b[2];this.width=b[1];this.height=b[2];this.mt=b[3];this.Ps=b[4];this.ka=b[5];var d=b[6],c,f;this.da=[];this.$h=[];c=0;for(f=d.length;c<f;c++){var g=new Xb(this,d[c]);g.Vr=c;this.da.push(g)}d=b[7];this.$f=[];c=0;for(f=d.length;c<f;c++){var g=d[c],h=this.b.G[g[1]];h.cd||(h.cd=g);this.$f.push(g);-1===this.$h.indexOf(h)&&this.$h.push(h)}this.ba=
[];this.ya=[];this.Ce=!0;this.Ra=[];c=0;for(f=b[8].length;c<f;c++)this.ba.push({id:b[8][c][0],name:b[8][c][1],lb:-1,md:!1,Oa:!0,index:c}),this.Ra.push(b[8][c][2].slice(0));this.Ld();this.Ho=new va(0,0,1,1);this.Io=new va(0,0,1,1);this.sf={}}function m(a,b){return a.Nd-b.Nd}function n(a,b){this.eb=a;this.b=a.b;this.k=[];this.scale=1;this.n=0;this.le=!1;this.He=new va(0,0,0,0);this.gt=new wa;this.Ca=this.ta=this.Da=this.ra=0;this.xg=!1;this.Le=-1;this.Om=0;this.name=b[0];this.index=b[1];this.ka=b[2];
this.visible=b[3];this.wd=b[4];this.Kd=b[5];this.kd=b[6];this.ld=b[7];this.opacity=b[8];this.yk=b[9];this.Yc=b[10];this.Od=b[11];this.Vb=b[12];this.Ow=b[13];this.Hh="source-over";this.Wb=this.$b=0;this.Pb=null;this.ve=p();this.Gd=!0;this.Zg=new va(0,0,-1,-1);this.Ib=new va(0,0,-1,-1);this.Yc&&(this.Pb=new jb(this.b.ib,this.b.hb));this.be=!1;var d=b[14],c,f;this.Us=[];this.Rc=[];this.Jh=[];c=0;for(f=d.length;c<f;c++){var g=d[c],h=this.b.G[g[1]];h.cd||(h.cd=g,h.mw=this.index);this.Rc.push(g);-1===this.eb.$h.indexOf(h)&&
this.eb.$h.push(h)}Ba(this.Us,this.Rc);this.ba=[];this.ya=[];this.Ce=!0;this.Ra=[];c=0;for(f=b[15].length;c<f;c++)this.ba.push({id:b[15][c][0],name:b[15][c][1],lb:-1,md:!1,Oa:!0,index:c}),this.Ra.push(b[15][c][2].slice(0));this.Ld();this.Ho=new va(0,0,1,1);this.Io=new va(0,0,1,1)}function p(){return b.length?b.pop():[]}function g(a){M(a);b.push(a)}c.prototype.Jz=function(a){var b=a.type.ka.toString();this.sf.hasOwnProperty(b)||(this.sf[b]=[]);this.sf[b].push(this.b.Qo(a))};c.prototype.Pq=function(){var a=
this.da[0];return!a.Kd&&1===a.opacity&&!a.yk&&a.visible};c.prototype.Ld=function(){M(this.ya);this.Ce=!0;var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.Oa&&(this.ya.push(d),d.md||(this.Ce=!1))};c.prototype.pn=function(a){var b,d,c;b=0;for(d=this.ba.length;b<d;b++)if(c=this.ba[b],c.name===a)return c;return null};var h=[],f=!0;c.prototype.dp=function(){this.Ps&&(this.Pf=this.b.cn[this.Ps],this.Pf.pp());this.b.ma=this;this.width=this.gz;this.height=this.fz;this.scrollX=this.b.ib/2;this.scrollY=
this.b.hb/2;var a,b,d,c,g,t,v;a=0;for(d=this.b.G.length;a<d;a++)if(b=this.b.G[a],!b.O)for(g=b.k,b=0,c=g.length;b<c;b++)if(t=g[b],t.q){var l=t.q.Vr;l>=this.da.length&&(l=this.da.length-1);t.q=this.da[l];-1===t.q.k.indexOf(t)&&t.q.k.push(t);t.q.xg=!0}if(!f)for(a=0,d=this.da.length;a<d;++a)this.da[a].k.sort(m);M(h);this.dw();a=0;for(d=this.da.length;a<d;a++)t=this.da[a],t.kw(),t.im();g=!1;if(!this.Lg){for(v in this.sf)if(this.sf.hasOwnProperty(v)&&(b=this.b.Sh(parseInt(v,10)))&&!b.O&&this.b.op(b)){c=
this.sf[v];a=0;for(d=c.length;a<d;a++){t=null;if(b.wa.hf&&(t=this.Dk(c[a].w.l),!t))continue;t=this.b.$e(b.cd,t,!1,0,0,!0);this.b.bl(t,c[a]);g=!0;h.push(t)}M(c)}a=0;for(d=this.da.length;a<d;a++)this.da[a].k.sort(m),this.da[a].xg=!0}g&&(this.b.Ub(),this.b.zs());for(a=0;a<h.length;a++)if(t=h[a],t.type.Zb)for(d=t.Vh(),b=0,c=t.type.Ec.length;b<c;b++)v=t.type.Ec[b],t.type!==v&&(v.k.length>d?t.siblings.push(v.k[d]):v.cd&&(g=this.b.$e(v.cd,t.q,!0,t.x,t.y,!0),this.b.Ub(),v.gm(),t.siblings.push(g),h.push(g)));
a=0;for(d=this.$f.length;a<d;a++)this.b.$e(this.$f[a],null,!0);this.b.Hf=null;this.b.Ub();if(this.b.Na&&!this.b.Ta)for(a=0,d=this.b.G.length;a<d;a++)v=this.b.G[a],!v.O&&v.k.length&&v.Yi&&v.Yi(this.b.Na);if(this.b.fi)Ba(this.b.uk,h);else for(a=0,d=h.length;a<d;a++)t=h[a],this.b.trigger(Object.getPrototypeOf(t.type.wa).m.Af,t);M(h);this.b.fi||this.b.trigger(X.prototype.m.Lp,null);this.Lg=!1};c.prototype.jw=function(){var a,b,d,c,f;b=a=0;for(d=this.$f.length;a<d;a++)c=this.$f[a],f=this.b.G[c[1]],f.global?
f.Zb||this.b.$e(c,null,!0):(this.$f[b]=c,b++);Aa(this.$f,b)};c.prototype.Sz=function(){this.b.fi||this.b.trigger(X.prototype.m.Ku,null);this.b.Jn=!0;M(this.b.fe.Cc);var a,b,d,c,g,h;if(!this.Lg)for(a=0,b=this.da.length;a<b;a++)for(this.da[a].rp(),g=this.da[a].k,d=0,c=g.length;d<c;d++)h=g[d],h.type.global||this.b.op(h.type)&&this.Jz(h);a=0;for(b=this.da.length;a<b;a++){g=this.da[a].k;d=0;for(c=g.length;d<c;d++)h=g[d],h.type.global||this.b.he(h);this.b.Ub();M(g);this.da[a].xg=!0}a=0;for(b=this.b.G.length;a<
b;a++)if(g=this.b.G[a],!(g.global||g.wa.hf||g.wa.Ql||g.O)){d=0;for(c=g.k.length;d<c;d++)this.b.he(g.k[d]);this.b.Ub()}f=!1;this.b.Jn=!1};new va(0,0,0,0);c.prototype.ed=function(a){var b,d=a,c=!1,f=!this.b.Oc;f&&(this.b.$k||(this.b.$k=document.createElement("canvas"),b=this.b.$k,b.width=this.b.U,b.height=this.b.T,this.b.rr=b.getContext("2d"),c=!0),b=this.b.$k,d=this.b.rr,b.width!==this.b.U&&(b.width=this.b.U,c=!0),b.height!==this.b.T&&(b.height=this.b.T,c=!0),c&&this.b.Hl(d,this.b.La));d.globalAlpha=
1;d.globalCompositeOperation="source-over";this.b.lq&&!this.Pq()&&d.clearRect(0,0,this.b.U,this.b.T);var g,h,c=0;for(g=this.da.length;c<g;c++)h=this.da[c],h.visible&&0<h.opacity&&11!==h.Vb&&(h.k.length||!h.Kd)?h.ed(d):h.im();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};c.prototype.Lf=function(a){a.Fs(!0);this.b.fb||(this.b.fb=a.Nc(this.b.U,this.b.T,this.b.La));if(this.b.fb.Gf!==this.b.U||this.b.fb.Ff!==this.b.T)a.deleteTexture(this.b.fb),this.b.fb=a.Nc(this.b.U,this.b.T,this.b.La);a.nd(this.b.fb);
this.b.Oc||a.qg(this.b.U,this.b.T);var b,d;for(b=this.da.length-1;0<=b;--b)d=this.da[b],d.visible&&1===d.opacity&&d.Ce&&0===d.Vb&&(d.k.length||!d.Kd)?d.Lf(a):d.im();a.Fs(!1)};c.prototype.Xb=function(a){var b=0<this.ya.length||this.b.zh||!this.b.Oc||this.b.Ha;if(b){this.b.fb||(this.b.fb=a.Nc(this.b.U,this.b.T,this.b.La));if(this.b.fb.Gf!==this.b.U||this.b.fb.Ff!==this.b.T)a.deleteTexture(this.b.fb),this.b.fb=a.Nc(this.b.U,this.b.T,this.b.La);a.nd(this.b.fb);this.b.Oc||a.qg(this.b.U,this.b.T)}else this.b.fb&&
(a.nd(null),a.deleteTexture(this.b.fb),this.b.fb=null);this.b.lq&&!this.Pq()&&a.clear(0,0,0,0);var d,c,f;d=0;for(c=this.da.length;d<c;d++)f=this.da[d],f.visible&&0<f.opacity&&(f.k.length||!f.Kd)?f.Xb(a):f.im();b&&(0===this.ya.length||1===this.ya.length&&this.b.Oc?(1===this.ya.length?(b=this.ya[0].index,a.Bc(this.ya[0].lb),a.ph(null,1/this.b.U,1/this.b.T,0,0,1,1,this.scale,this.n,0,0,this.b.U/2,this.b.T/2,this.b.cb.M,this.Ra[b]),a.wl(this.ya[0].lb)&&(this.b.fa=!0)):a.Bc(0),this.b.Oc||a.qg(this.b.width,
this.b.height),a.nd(null),a.Es(!1),a.vf(1),a.Ac(this.b.fb),a.Cs(),a.de(),a.Md(),b=this.b.width/2,d=this.b.height/2,a.mh(-b,d,b,d,b,-d,-b,-d),a.Ac(null),a.Es(!0)):this.Ko(a,null,null,null))};c.prototype.Th=function(){return 0<this.ya.length||this.b.zh||!this.b.Oc||this.b.Ha?this.b.fb:null};c.prototype.Kq=function(){var a=this.da[0].Qc(),b,d,c;b=1;for(d=this.da.length;b<d;b++)c=this.da[b],(0!==c.kd||0!==c.ld)&&c.Qc()<a&&(a=c.Qc());return a};c.prototype.So=function(a){if(!this.mt){var b=1/this.Kq()*
this.b.U/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.fa=!0)};c.prototype.To=function(a){if(!this.mt){var b=1/this.Kq()*this.b.T/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.fa=!0)};c.prototype.dw=function(){this.So(this.scrollX);this.To(this.scrollY)};c.prototype.Ko=function(a,b,d,c){var f=d?d.ya:b?b.ya:this.ya,g=1,h=0,l=0,q=0,m=this.b.U,t=this.b.T;d?(g=d.q.Qc(),h=d.q.Kb(),l=d.q.ra,q=d.q.ta,m=d.q.Da,t=d.q.Ca):b&&
(g=b.Qc(),h=b.Kb(),l=b.ra,q=b.ta,m=b.Da,t=b.Ca);var r=this.b.kn,G,p,n,z,F=0,C=1,w,W,U=this.b.U,J=this.b.T,E=U/2,y=J/2,x=b?b.Ho:this.Ho,H=b?b.Io:this.Io,R=0,O=0,I=0,N=0,V=U,Z=U,Q=J,ja=J,ea=n=0;z=d?d.q.Kb():0;if(d){G=0;for(p=f.length;G<p;G++)n+=a.Tx(f[G].lb),ea+=a.Ux(f[G].lb);N=d.Ja;R=b.ic(N.left,N.top,!0,!0);I=b.ic(N.left,N.top,!1,!0);V=b.ic(N.right,N.bottom,!0,!0);Q=b.ic(N.right,N.bottom,!1,!0);0!==z&&(G=b.ic(N.right,N.top,!0,!0),p=b.ic(N.right,N.top,!1,!0),O=b.ic(N.left,N.bottom,!0,!0),N=b.ic(N.left,
N.bottom,!1,!0),z=Math.min(R,V,G,O),V=Math.max(R,V,G,O),R=z,z=Math.min(I,Q,p,N),Q=Math.max(I,Q,p,N),I=z);R-=n;I-=ea;V+=n;Q+=ea;H.left=R/U;H.top=1-I/J;H.right=V/U;H.bottom=1-Q/J;O=R=A(R);N=I=A(I);Z=V=sa(V);ja=Q=sa(Q);O-=n;N-=ea;Z+=n;ja+=ea;0>R&&(R=0);0>I&&(I=0);V>U&&(V=U);Q>J&&(Q=J);0>O&&(O=0);0>N&&(N=0);Z>U&&(Z=U);ja>J&&(ja=J);x.left=R/U;x.top=1-I/J;x.right=V/U;x.bottom=1-Q/J}else x.left=H.left=0,x.top=H.top=0,x.right=H.right=1,x.bottom=H.bottom=1;ea=d&&(a.Zi(f[0].lb)||0!==n||0!==ea||1!==d.opacity||
d.type.wa.Rr)||b&&!d&&1!==b.opacity;a.Cs();if(ea){r[F]||(r[F]=a.Nc(U,J,this.b.La));if(r[F].Gf!==U||r[F].Ff!==J)a.deleteTexture(r[F]),r[F]=a.Nc(U,J,this.b.La);a.Bc(0);a.nd(r[F]);W=ja-N;a.clearRect(O,J-N-W,Z-O,W);d?d.Xb(a):(a.Ac(this.b.wb),a.vf(b.opacity),a.de(),a.translate(-E,-y),a.Md(),a.Ae(R,Q,V,Q,V,I,R,I,x));H.left=H.top=0;H.right=H.bottom=1;d&&(z=x.top,x.top=x.bottom,x.bottom=z);F=1;C=0}a.vf(1);n=f.length-1;var ya=a.Do(f[n].lb)||!b&&!d&&!this.b.Oc;G=z=0;for(p=f.length;G<p;G++){r[F]||(r[F]=a.Nc(U,
J,this.b.La));if(r[F].Gf!==U||r[F].Ff!==J)a.deleteTexture(r[F]),r[F]=a.Nc(U,J,this.b.La);a.Bc(f[G].lb);z=f[G].index;a.wl(f[G].lb)&&(this.b.fa=!0);0!=G||ea?(a.ph(c,1/U,1/J,H.left,H.top,H.right,H.bottom,g,h,l,q,(l+m)/2,(q+t)/2,this.b.cb.M,d?d.Ra[z]:b?b.Ra[z]:this.Ra[z]),a.Ac(null),G!==n||ya?(a.nd(r[F]),W=ja-N,w=J-N-W,a.clearRect(O,w,Z-O,W)):(d?a.uf(d.$b,d.Wb):b&&a.uf(b.$b,b.Wb),a.nd(c)),a.Ac(r[C]),a.de(),a.translate(-E,-y),a.Md(),a.Ae(R,Q,V,Q,V,I,R,I,x),G!==n||ya||a.Ac(null)):(a.nd(r[F]),W=ja-N,w=J-
N-W,a.clearRect(O,w,Z-O,W),d?(d.rb&&d.rb.W?(w=d.rb.W,C=1/w.width,w=1/w.height):(C=1/d.width,w=1/d.height),a.ph(c,C,w,H.left,H.top,H.right,H.bottom,g,h,l,q,(l+m)/2,(q+t)/2,this.b.cb.M,d.Ra[z]),d.Xb(a)):(a.ph(c,1/U,1/J,0,0,1,1,g,h,l,q,(l+m)/2,(q+t)/2,this.b.cb.M,b?b.Ra[z]:this.Ra[z]),a.Ac(b?this.b.wb:this.b.fb),a.de(),a.translate(-E,-y),a.Md(),a.Ae(R,Q,V,Q,V,I,R,I,x)),H.left=H.top=0,H.right=H.bottom=1,d&&!ya&&(z=Q,Q=I,I=z));F=0===F?1:0;C=0===F?1:0}ya&&(a.Bc(0),d?a.uf(d.$b,d.Wb):b?a.uf(b.$b,b.Wb):this.b.Oc||
(a.qg(this.b.width,this.b.height),E=this.b.width/2,y=this.b.height/2,I=R=0,V=this.b.width,Q=this.b.height),a.nd(c),a.Ac(r[C]),a.de(),a.translate(-E,-y),a.Md(),d&&1===f.length&&!ea?a.Ae(R,I,V,I,V,Q,R,Q,x):a.Ae(R,Q,V,Q,V,I,R,I,x),a.Ac(null))};c.prototype.Dk=function(a){var b,d;b=0;for(d=this.da.length;b<d;b++)if(this.da[b].ka===a)return this.da[b];return null};c.prototype.Va=function(){var a,b,d,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.Lg,persist:this.sf,
fx:[],layers:{}};a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],c.fx.push({name:d.name,active:d.Oa,params:this.Ra[d.index]});a=0;for(b=this.da.length;a<b;a++)d=this.da[a],c.layers[d.ka.toString()]=d.Va();return c};c.prototype.gb=function(a){var b,d,c,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.sf=a.persist;"undefined"!==typeof a.fv&&(this.Lg=a.fv);var g=a.fx;b=0;for(d=g.length;b<d;b++)if(c=this.pn(g[b].name))c.Oa=g[b].active,this.Ra[c.index]=
g[b].params;this.Ld();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.Dk(parseInt(f,10)))&&a.gb(b[f])};Jb=c;n.prototype.Ld=function(){M(this.ya);this.Ce=!0;var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.Oa&&(this.ya.push(d),d.md||(this.Ce=!1))};n.prototype.pn=function(a){var b,d,c;b=0;for(d=this.ba.length;b<d;b++)if(c=this.ba[b],c.name===a)return c;return null};n.prototype.kw=function(){var a,b,d,c,f,g;b=a=0;for(d=this.Rc.length;a<d;a++){c=this.Rc[a];f=this.b.G[c[1]];g=this.b.op(f);
f=!0;if(!g||this.eb.Lg){c=this.b.$e(c,this,!0);if(!c)continue;h.push(c);c.type.global&&(f=!1,this.Jh.push(c.uid))}f&&(this.Rc[b]=this.Rc[a],b++)}this.Rc.length=b;this.b.Ub();!this.b.F&&this.ba.length&&(this.Vb=this.Ow);this.Hh=kb(this.Vb);this.b.H&&lb(this,this.Vb,this.b.H);this.Gd=!0};n.prototype.nh=function(a,b){var d=Da(this.k,a);0>d||(b&&this.Yc&&a.yc&&a.yc.right>=a.yc.left&&(a.Ga(),this.Pb.update(a,a.yc,null),a.yc.set(0,0,-1,-1)),d===this.k.length-1?this.k.pop():(za(this.k,d),this.qh(d)),this.Gd=
!0)};n.prototype.Fh=function(a,b){a.Nd=this.k.length;this.k.push(a);b&&this.Yc&&a.yc&&a.K();this.Gd=!0};n.prototype.pz=function(a){this.k.unshift(a);this.qh(0)};n.prototype.Uy=function(a,b,d){var c=a.Ad();b=b.Ad();za(this.k,c);c<b&&b--;d&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.qh(c<b?c:b)};n.prototype.qh=function(a){-1===this.Le?this.Le=a:a<this.Le&&(this.Le=a);this.Gd=this.xg=!0};n.prototype.rp=function(){if(this.xg){-1===this.Le&&(this.Le=0);var a,b,d;if(this.Yc)for(a=this.Le,
b=this.k.length;a<b;++a)d=this.k[a],d.Nd=a,this.Pb.Qy(d.yc);else for(a=this.Le,b=this.k.length;a<b;++a)this.k[a].Nd=a;this.xg=!1;this.Le=-1}};n.prototype.Qc=function(a){return this.Qx()*(this.b.Oc||a?this.b.Gh:1)};n.prototype.Qx=function(){return(this.scale*this.eb.scale-1)*this.Od+1};n.prototype.Kb=function(){return this.le?0:Ja(this.eb.n+this.n)};var b=[],t=[],w=[];n.prototype.un=function(){this.rp();this.Pb.yl(this.ra,this.ta,this.Da,this.Ca,w);if(!w.length)return p();if(1===w.length){var a=p();
Ba(a,w[0]);M(w);return a}for(var b=!0;1<w.length;){for(var a=w,d=void 0,c=void 0,f=void 0,h=void 0,v=void 0,d=0,c=a.length;d<c-1;d+=2){var f=a[d],h=a[d+1],v=p(),l=f,q=h,m=v,n=0,r=0,G=0,B=l.length,D=q.length,z=void 0,F=void 0;for(m.length=B+D;n<B&&r<D;++G)z=l[n],F=q[r],z.Nd<F.Nd?(m[G]=z,++n):(m[G]=F,++r);for(;n<B;++n,++G)m[G]=l[n];for(;r<D;++r,++G)m[G]=q[r];b||(g(f),g(h));t.push(v)}1===c%2&&(b?(f=p(),Ba(f,a[c-1]),t.push(f)):t.push(a[c-1]));Ba(a,t);M(t);b=!1}a=w[0];M(w);return a};n.prototype.ed=function(a){this.be=
this.yk||1!==this.opacity||0!==this.Vb;var b=this.b.canvas,d=a,c=!1;this.be&&(this.b.Zk||(this.b.Zk=document.createElement("canvas"),b=this.b.Zk,b.width=this.b.U,b.height=this.b.T,this.b.qr=b.getContext("2d"),c=!0),b=this.b.Zk,d=this.b.qr,b.width!==this.b.U&&(b.width=this.b.U,c=!0),b.height!==this.b.T&&(b.height=this.b.T,c=!0),c&&this.b.Hl(d,this.b.La),this.Kd&&d.clearRect(0,0,this.b.U,this.b.T));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Kd||(d.fillStyle="rgb("+this.wd[0]+","+
this.wd[1]+","+this.wd[2]+")",d.fillRect(0,0,this.b.U,this.b.T));d.save();this.le=!0;var c=this.fc(0,0,!0,!0),f=this.fc(0,0,!1,!0);this.le=!1;this.b.Wc&&(c=Math.round(c),f=Math.round(f));this.Bl(c,f,d);var h=this.Qc();d.scale(h,h);d.translate(-c,-f);this.Yc?(this.Ib.left=this.Pb.nc(this.ra),this.Ib.top=this.Pb.oc(this.ta),this.Ib.right=this.Pb.nc(this.Da),this.Ib.bottom=this.Pb.oc(this.Ca),this.Gd||!this.Ib.Mh(this.Zg)?(g(this.ve),c=this.un(),this.Gd=!1,this.Zg.Eg(this.Ib)):c=this.ve):c=this.k;for(var v,
l=null,f=0,h=c.length;f<h;++f)v=c[f],v!==l&&(this.Jw(v,d),l=v);this.Yc&&(this.ve=c);d.restore();this.be&&(a.globalCompositeOperation=this.Hh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.Jw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var d=a.Ja;d.right<this.ra||d.bottom<this.ta||d.left>this.Da||d.top>this.Ca||(b.globalCompositeOperation=a.Hh,a.ed(b))}};n.prototype.im=function(){this.le=!0;var a=this.fc(0,0,!0,!0),b=this.fc(0,0,!1,!0);this.le=!1;this.b.Wc&&(a=Math.round(a),
b=Math.round(b));this.Bl(a,b,null)};n.prototype.Bl=function(a,b,d){var c=this.Qc();this.ra=a;this.ta=b;this.Da=a+1/c*this.b.U;this.Ca=b+1/c*this.b.T;this.ra>this.Da&&(a=this.ra,this.ra=this.Da,this.Da=a);this.ta>this.Ca&&(a=this.ta,this.ta=this.Ca,this.Ca=a);a=this.Kb();0!==a&&(d&&(d.translate(this.b.U/2,this.b.T/2),d.rotate(-a),d.translate(this.b.U/-2,this.b.T/-2)),this.He.set(this.ra,this.ta,this.Da,this.Ca),this.He.offset((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2),this.gt.Ns(this.He,a),this.gt.dq(this.He),
this.He.offset((this.ra+this.Da)/2,(this.ta+this.Ca)/2),this.ra=this.He.left,this.ta=this.He.top,this.Da=this.He.right,this.Ca=this.He.bottom)};n.prototype.Lf=function(a){if(this.be=this.yk){this.b.wb||(this.b.wb=a.Nc(this.b.U,this.b.T,this.b.La));if(this.b.wb.Gf!==this.b.U||this.b.wb.Ff!==this.b.T)a.deleteTexture(this.b.wb),this.b.wb=a.Nc(this.b.U,this.b.T,this.b.La);a.nd(this.b.wb)}this.le=!0;var b=this.fc(0,0,!0,!0),d=this.fc(0,0,!1,!0);this.le=!1;this.b.Wc&&(b=Math.round(b),d=Math.round(d));this.Bl(b,
d,null);b=this.Qc();a.de();a.scale(b,b);a.No(-this.Kb());a.translate((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2);a.Md();this.Yc?(this.Ib.left=this.Pb.nc(this.ra),this.Ib.top=this.Pb.oc(this.ta),this.Ib.right=this.Pb.nc(this.Da),this.Ib.bottom=this.Pb.oc(this.Ca),this.Gd||!this.Ib.Mh(this.Zg)?(g(this.ve),b=this.un(),this.Gd=!1,this.Zg.Eg(this.Ib)):b=this.ve):b=this.k;for(var c,f=null,d=b.length-1;0<=d;--d)c=b[d],c!==f&&(this.Lw(b[d],a),f=c);this.Yc&&(this.ve=b);this.Kd||(this.Om=this.b.Of++,a.Il(this.Om),
a.Ds(1,1,1),a.Aq(),a.Bz())};n.prototype.Xb=function(a){var b=0,d=0;if(this.be=this.yk||1!==this.opacity||0<this.ya.length||0!==this.Vb){this.b.wb||(this.b.wb=a.Nc(this.b.U,this.b.T,this.b.La));if(this.b.wb.Gf!==this.b.U||this.b.wb.Ff!==this.b.T)a.deleteTexture(this.b.wb),this.b.wb=a.Nc(this.b.U,this.b.T,this.b.La);a.nd(this.b.wb);this.Kd&&a.clear(0,0,0,0)}this.Kd||(this.b.Ha?(a.Il(this.Om),a.Ds(this.wd[0]/255,this.wd[1]/255,this.wd[2]/255),a.Aq(),a.Oz()):a.clear(this.wd[0]/255,this.wd[1]/255,this.wd[2]/
255,1));this.le=!0;var c=this.fc(0,0,!0,!0),b=this.fc(0,0,!1,!0);this.le=!1;this.b.Wc&&(c=Math.round(c),b=Math.round(b));this.Bl(c,b,null);c=this.Qc();a.de();a.scale(c,c);a.No(-this.Kb());a.translate((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2);a.Md();this.Yc?(this.Ib.left=this.Pb.nc(this.ra),this.Ib.top=this.Pb.oc(this.ta),this.Ib.right=this.Pb.nc(this.Da),this.Ib.bottom=this.Pb.oc(this.Ca),this.Gd||!this.Ib.Mh(this.Zg)?(g(this.ve),b=this.un(),this.Gd=!1,this.Zg.Eg(this.Ib)):b=this.ve):b=this.k;var f,
h,v=null,d=0;for(f=b.length;d<f;++d)h=b[d],h!==v&&(this.Kw(b[d],a),v=h);this.Yc&&(this.ve=b);this.be&&(b=this.ya.length?this.ya[0].lb:0,d=this.ya.length?this.ya[0].index:0,0===this.ya.length||1===this.ya.length&&!a.Do(b)&&1===this.opacity?(1===this.ya.length?(a.Bc(b),a.ph(this.eb.Th(),1/this.b.U,1/this.b.T,0,0,1,1,c,this.Kb(),this.ra,this.ta,(this.ra+this.Da)/2,(this.ta+this.Ca)/2,this.b.cb.M,this.Ra[d]),a.wl(b)&&(this.b.fa=!0)):a.Bc(0),a.nd(this.eb.Th()),a.vf(this.opacity),a.Ac(this.b.wb),a.uf(this.$b,
this.Wb),a.de(),a.Md(),c=this.b.U/2,b=this.b.T/2,a.mh(-c,b,c,b,c,-b,-c,-b),a.Ac(null)):this.eb.Ko(a,this,null,this.eb.Th()))};n.prototype.Kw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var d=a.Ja;d.right<this.ra||d.bottom<this.ta||d.left>this.Da||d.top>this.Ca||(b.Il(a.Of),a.xt?this.Mw(a,b):(b.Bc(0),b.uf(a.$b,a.Wb),a.Xb(b)))}};n.prototype.Lw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var d=a.Ja;d.right<this.ra||d.bottom<this.ta||d.left>this.Da||d.top>this.Ca||
(a.Of=this.b.Of++,0===a.Vb&&1===a.opacity&&a.Ce&&a.Lf&&(b.Il(a.Of),a.Lf(b)))}};n.prototype.Mw=function(a,b){var d=a.ya[0].lb,c=a.ya[0].index,f=this.Qc();if(1!==a.ya.length||b.Do(d)||b.rz(d)||(a.n||a.q.Kb())&&b.Zi(d)||1!==a.opacity||a.type.wa.Rr)this.eb.Ko(b,this,a,this.be?this.b.wb:this.eb.Th()),b.de(),b.scale(f,f),b.No(-this.Kb()),b.translate((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2),b.Md();else{b.Bc(d);b.uf(a.$b,a.Wb);b.wl(d)&&(this.b.fa=!0);var g=0,h=0,l=0,q=0;b.Zi(d)&&(q=a.Ja,g=this.ic(q.left,
q.top,!0,!0),h=this.ic(q.left,q.top,!1,!0),l=this.ic(q.right,q.bottom,!0,!0),q=this.ic(q.right,q.bottom,!1,!0),g=g/windowWidth,h=1-h/windowHeight,l=l/windowWidth,q=1-q/windowHeight);var m;a.rb&&a.rb.W?(m=a.rb.W,d=1/m.width,m=1/m.height):(d=1/a.width,m=1/a.height);b.ph(this.be?this.b.wb:this.eb.Th(),d,m,g,h,l,q,f,this.Kb(),this.ra,this.ta,(this.ra+this.Da)/2,(this.ta+this.Ca)/2,this.b.cb.M,a.Ra[c]);a.Xb(b)}};n.prototype.fc=function(a,b,d,c){var f=this.b.devicePixelRatio;this.b.ag&&(a*=f,b*=f);var f=
this.b.ls,g=this.b.ms,f=(this.eb.scrollX-f)*this.kd+f,g=(this.eb.scrollY-g)*this.ld+g,h=f,l=g,q=1/this.Qc(!c);c?(h-=this.b.U*q/2,l-=this.b.T*q/2):(h-=this.b.width*q/2,l-=this.b.height*q/2);h+=a*q;l+=b*q;b=this.Kb();0!==b&&(h-=f,l-=g,a=Math.cos(b),b=Math.sin(b),c=h*a-l*b,l=l*a+h*b,h=c+f,l+=g);return d?h:l};n.prototype.ic=function(a,b,d,c){var f=this.b.ls,g=this.b.ms,h=(this.eb.scrollX-f)*this.kd+f,l=(this.eb.scrollY-g)*this.ld+g,g=h,f=l,q=this.Kb();if(0!==q){a-=h;b-=l;var m=Math.cos(-q),q=Math.sin(-q),
t=a*m-b*q;b=b*m+a*q;a=t+h;b+=l}h=1/this.Qc(!c);c?(g-=this.b.U*h/2,f-=this.b.T*h/2):(g-=this.b.width*h/2,f-=this.b.height*h/2);g=(a-g)/h;f=(b-f)/h;a=this.b.devicePixelRatio;this.b.ag&&!c&&(g/=a,f/=a);return d?g:f};n.prototype.Va=function(){var a,b,d,c={s:this.scale,a:this.n,vl:this.ra,vt:this.ta,vr:this.Da,vb:this.Ca,v:this.visible,bc:this.wd,t:this.Kd,px:this.kd,py:this.ld,o:this.opacity,zr:this.Od,fx:[],cg:this.Jh,instances:[]};a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],c.fx.push({name:d.name,
active:d.Oa,params:this.Ra[d.index]});return c};n.prototype.gb=function(a){var b,d,c;this.scale=a.s;this.n=a.a;this.ra=a.vl;this.ta=a.vt;this.Da=a.vr;this.Ca=a.vb;this.visible=a.v;this.wd=a.bc;this.Kd=a.t;this.kd=a.px;this.ld=a.py;this.opacity=a.o;this.Od=a.zr;this.Jh=a.cg||[];Ba(this.Rc,this.Us);var f=new da;b=0;for(c=this.Jh.length;b<c;++b)f.add(this.Jh[b]);d=b=0;for(c=this.Rc.length;b<c;++b)f.contains(this.Rc[b][2])||(this.Rc[d]=this.Rc[b],++d);Aa(this.Rc,d);d=a.fx;b=0;for(c=d.length;b<c;b++)if(a=
this.pn(d[b].name))a.Oa=d[b].active,this.Ra[a.index]=d[b].params;this.Ld();this.k.sort(m);this.xg=!0};Xb=n})();
(function(){function c(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function m(a,b){return a.index-b.index}function n(a){var b,d,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=u.length&&(u.length=a.length+1);u[a.length]||(u[a.length]=[]);f=u[a.length];b=0;for(d=f.length;b<d;b++)if(e=f[b],c(a,e))return e;f.push(a);return a}
function p(a,b){this.b=a;this.jt={};this.vq={};this.zn=!1;this.Rq=new da;this.Xm=[];this.Cm=[];this.name=b[0];var d=b[1];this.cf=[];var c,e;c=0;for(e=d.length;c<e;c++)this.Tq(d[c],null,this.cf)}function g(a){this.type=a;this.k=[];this.ca=[];this.Z=!0}function h(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.wf=[];this.Qq=this.am=this.kp=this.Ok=this.group=this.$o=!1;this.qb=[];this.Zc=[];this.pd=[];this.Wh="";this.Vf=this.Ok=this.group=!1;this.dk=null;d[1]&&(this.Wh=d[1][1].toLowerCase(),
this.group=!0,this.Ok=!!d[1][0],this.dk=[],this.Vf=this.Ok,this.b.Re.push(this),this.b.Mg[this.Wh]=this);this.Vc=d[2];this.ka=d[4];this.group||(this.b.bq[this.ka.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var e=new Yb(this,c[a]);e.index=a;this.qb.push(e);this.Wp(e.type)}c=d[6];a=0;for(b=c.length;a<b;a++)e=new Zb(this,c[a]),e.index=a,this.Zc.push(e);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Tq(d[a],this,this.pd);this.Uk=!1;this.qb.length&&(this.Uk=null==this.qb[0].type&&
this.qb[0].Jb==X.prototype.m.Bp)}function f(a,b){var d,c,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Zb))for(d=0,c=a.Ec.length;d<c;d++)e=a.Ec[d],a!==e&&-1===b.indexOf(e)&&b.push(e)}function b(a,b){this.Mc=a;this.sheet=a.sheet;this.b=a.b;this.ea=[];this.Ua=[];this.P={};this.index=-1;this.Dh=!1;this.Jb=this.b.Me(b[1]);this.trigger=0<b[3];this.uq=2===b[3];this.Zd=b[4];this.ci=b[5];this.Hy=b[6];this.ka=b[7];this.b.Ye[this.ka.toString()]=this;-1===b[0]?(this.type=null,this.kb=this.Po,this.Df=null,this.yd=
-1):(this.type=this.b.G[b[0]],this.kb=this.Hy?this.Hz:this.Oo,b[2]?(this.Df=this.type.Ck(b[2]),this.yd=this.type.ln(b[2])):(this.Df=null,this.yd=-1),this.Mc.parent&&this.Mc.parent.Jl());this.uq&&(this.kb=this.Iz);if(10===b.length){var d,c,e=b[9];d=0;for(c=e.length;d<c;d++){var f=new $b(this,e[d]);this.ea.push(f)}this.Ua.length=e.length}}function t(a,b){this.Mc=a;this.sheet=a.sheet;this.b=a.b;this.ea=[];this.Ua=[];this.P={};this.index=-1;this.Dh=!1;this.Jb=this.b.Me(b[1]);-1===b[0]?(this.type=null,
this.kb=this.Po,this.Df=null,this.yd=-1):(this.type=this.b.G[b[0]],this.kb=this.Oo,b[2]?(this.Df=this.type.Ck(b[2]),this.yd=this.type.ln(b[2])):(this.Df=null,this.yd=-1));this.ka=b[3];this.b.Oe[this.ka.toString()]=this;if(6===b.length){var d,c,e=b[5];d=0;for(c=e.length;d<c;d++){var f=new $b(this,e[d]);this.ea.push(f)}this.Ua.length=e.length}}function w(){v++;L.length===v&&L.push(new ac);return L[v]}function a(a,b){this.Ma=a;this.Mc=a.Mc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Ud=null;this.De=
0;this.get=null;this.mq=0;this.eb=null;this.key=0;this.object=null;this.index=0;this.yj=this.ug=this.yj=this.ug=this.yq=this.Qf=this.zj=null;this.sd=!1;var d,c,e;switch(b[0]){case 0:case 7:this.Ud=new bc(this,b[1]);this.De=0;this.get=this.ay;break;case 1:this.Ud=new bc(this,b[1]);this.De=0;this.get=this.by;break;case 5:this.Ud=new bc(this,b[1]);this.De=0;this.get=this.gy;break;case 3:case 8:this.mq=b[1];this.get=this.Zx;break;case 6:this.eb=this.b.Zn[b[1]];this.get=this.hy;break;case 9:this.key=b[1];
this.get=this.fy;break;case 4:this.object=this.b.G[b[1]];this.get=this.iy;this.Mc.Wp(this.object);this.Ma instanceof Zb?this.Mc.Jl():this.Mc.parent&&this.Mc.parent.Jl();break;case 10:this.index=b[1];a.type&&a.type.O?(this.get=this.cy,this.sd=!0):this.get=this.ey;break;case 11:this.zj=b[1];this.Qf=null;this.get=this.$x;break;case 2:case 12:this.yq=b[1];this.get=this.Yx;break;case 13:for(this.get=this.jy,this.ug=[],this.yj=[],d=1,c=b.length;d<c;d++)e=new $b(this.Ma,b[d]),this.ug.push(e),this.yj.push(0)}}
function e(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.name=d[1];this.km=d[2];this.Nk=d[3];this.ni=!!d[4];this.Tk=!!d[5];this.ka=d[6];this.b.Bh[this.ka.toString()]=this;this.data=this.Nk;this.parent?(this.kg=this.ni||this.Tk?-1:this.b.Qz++,this.b.Zv.push(this)):(this.kg=-1,this.b.Am.push(this))}function d(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.Zh=null;this.uy=d[1];this.Oa=!0}function k(){this.Ws=[];this.reset(null)}var u=[];p.prototype.toString=function(){return this.name};
p.prototype.Tq=function(a,b,d){switch(a[0]){case 0:a=new cc(this,b,a);if(a.Vc)for(d.push(a),d=0,b=a.qb.length;d<b;d++)a.qb[d].trigger&&this.Uq(a,d);else a.kr()?this.Uq(a,0):d.push(a);break;case 1:a=new Ub(this,b,a);d.push(a);break;case 2:a=new dc(this,b,a),d.push(a)}};p.prototype.$a=function(){var a,b;a=0;for(b=this.cf.length;a<b;a++)this.cf[a].$a(a<b-1&&this.cf[a+1].Uk)};p.prototype.pp=function(){M(this.Xm);M(this.Cm);this.Up(this);M(this.Cm)};p.prototype.Up=function(a){var b,d,c,e,f=a.Xm,k=a.Cm,
g=this.Rq.rd();b=0;for(d=g.length;b<d;++b)c=g[b],e=c.Zh,!c.Oa||a===e||-1<k.indexOf(e)||(k.push(e),e.Up(a),f.push(e))};p.prototype.kb=function(a){this.b.LA||(this.zn=!0,a||(this.b.Mn=!0));var b,d;b=0;for(d=this.cf.length;b<d;b++){var c=this.cf[b];c.kb();this.b.Nm(c.Ba);this.b.ff&&this.b.Ub()}a||(this.b.Mn=!1)};p.prototype.Uq=function(a,b){a.Vc||this.b.fm.push(a);var d,c,e=a.qb[b],f;e.type?f=e.type.name:f="system";var k=(d=e.uq)?this.vq:this.jt;k[f]||(k[f]=[]);f=k[f];k=e.Jb;if(d){if(e.ea.length&&(e=
e.ea[0],1===e.type&&2===e.Ud.type)){e=e.Ud.value.toLowerCase();d=0;for(c=f.length;d<c;d++)if(f[d].method==k){d=f[d].Nh;d[e]?d[e].push([a,b]):d[e]=[[a,b]];return}d={};d[e]=[[a,b]];f.push({method:k,Nh:d})}}else{d=0;for(c=f.length;d<c;d++)if(f[d].method==k){f[d].Nh.push([a,b]);return}Y&&k===Y.prototype.m.Ag?f.unshift({method:k,Nh:[[a,b]]}):f.push({method:k,Nh:[[a,b]]})}};Kb=p;g.prototype.Lk=function(){return this.Z?this.type.k.length:this.k.length};g.prototype.Yb=function(){return this.Z?this.type.k:
this.k};g.prototype.Xi=function(a){a&&(a.b.Sa().Xa.Vc?(this.Z&&(M(this.k),Ba(this.ca,a.type.k),this.Z=!1),a=this.ca.indexOf(a),-1!==a&&(this.k.push(this.ca[a]),this.ca.splice(a,1))):(this.Z=!1,M(this.k),this.k[0]=a))};sb=g;window._c2hh_="ADB18A574F0943D84AE2EABA4880551CA6193B49";h.prototype.$a=function(a){var b,d=this.parent;if(this.group)for(this.am=!0;d;){if(!d.group){this.am=!1;break}d=d.parent}this.kp=!this.kr()&&(!this.parent||this.parent.group&&this.parent.am);this.Qq=!!a;this.wf=this.Ba.slice(0);
for(d=this.parent;d;){a=0;for(b=d.Ba.length;a<b;a++)this.Xv(d.Ba[a]);d=d.parent}this.Ba=n(this.Ba);this.wf=n(this.wf);a=0;for(b=this.qb.length;a<b;a++)this.qb[a].$a();a=0;for(b=this.Zc.length;a<b;a++)this.Zc[a].$a();a=0;for(b=this.pd.length;a<b;a++)this.pd[a].$a(a<b-1&&this.pd[a+1].Uk)};h.prototype.ij=function(a){if(this.Vf!==!!a){this.Vf=!!a;var b;a=0;for(b=this.dk.length;a<b;++a)this.dk[a].ot();0<b&&this.b.ma.Pf&&this.b.ma.Pf.pp()}};h.prototype.Wp=function(a){f(a,this.Ba)};h.prototype.Xv=function(a){f(a,
this.wf)};h.prototype.Jl=function(){this.$o=!0;this.parent&&this.parent.Jl()};h.prototype.kr=function(){return this.qb.length?this.qb[0].trigger:!1};h.prototype.kb=function(){var a,b,d=!1,c=this.b,e=this.b.Sa();e.Xa=this;var f=this.qb;this.Uk||(e.an=!1);if(this.Vc){0===f.length&&(d=!0);e.ab=0;for(a=f.length;e.ab<a;e.ab++)b=f[e.ab],b.trigger||(b=b.kb())&&(d=!0);(e.fg=d)&&this.Cl()}else{e.ab=0;for(a=f.length;e.ab<a;e.ab++)if(b=f[e.ab].kb(),!b){e.fg=!1;this.kp&&c.ff&&c.Ub();return}e.fg=!0;this.Cl()}this.Qw(e)};
h.prototype.Qw=function(a){a.fg&&this.Qq&&(a.an=!0);this.kp&&this.b.ff&&this.b.Ub()};h.prototype.Fz=function(a){this.b.Sa().Xa=this;this.qb[a].kb()&&(this.Cl(),this.b.Sa().fg=!0)};h.prototype.Cl=function(){var a=this.b.Sa(),b;a.pc=0;for(b=this.Zc.length;a.pc<b;a.pc++)if(this.Zc[a.pc].kb())return;this.Bs()};h.prototype.Dz=function(){var a=this.b.Sa(),b;for(b=this.Zc.length;a.pc<b;a.pc++)if(this.Zc[a.pc].kb())return;this.Bs()};h.prototype.Bs=function(){if(this.pd.length){var a,b,d,c,e=this.pd.length-
1;this.b.xl(this);if(this.$o)for(a=0,b=this.pd.length;a<b;a++)d=this.pd[a],(c=!this.am||!this.group&&a<e)&&this.b.kh(d.Ba),d.kb(),c?this.b.ze(d.Ba):this.b.Nm(d.Ba);else for(a=0,b=this.pd.length;a<b;a++)this.pd[a].kb();this.b.sl()}};h.prototype.Gz=function(){var a=this.b.Sa();a.Xa=this;var b=!1,d;a.ab=0;for(d=this.qb.length;a.ab<d;a.ab++)if(this.qb[a.ab].kb())b=!0;else if(!this.Vc)return!1;return this.Vc?b:!0};h.prototype.fj=function(){this.b.Rf++;var a=this.b.Sa().ab,b=this.b.xl(this);if(!this.Vc)for(b.ab=
a+1,a=this.qb.length;b.ab<a;b.ab++)if(!this.qb[b.ab].kb()){this.b.sl();return}this.Cl();this.b.sl()};h.prototype.By=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.qb[b].type===a.type)return!1;return!0};cc=h;b.prototype.$a=function(){var a,b,d;a=0;for(b=this.ea.length;a<b;a++)d=this.ea[a],d.$a(),d.sd&&(this.Dh=!0)};b.prototype.Iz=function(){return!0};b.prototype.Po=function(){var a,b;a=0;for(b=this.ea.length;a<b;a++)this.Ua[a]=this.ea[a].get();return Ta(this.Jb.apply(this.b.fe,
this.Ua),this.ci)};b.prototype.Hz=function(){var a,b;a=0;for(b=this.ea.length;a<b;a++)this.Ua[a]=this.ea[a].get();a=this.Jb.apply(this.Df?this.Df:this.type,this.Ua);this.type.vd();return a};b.prototype.Oo=function(){var a,b,d,c,e,f,k,g,h=this.type,v=h.V(),m=this.Mc.Vc&&!this.trigger;b=0;var t=h.Zb,u=h.O,n=h.Vd,p=this.yd,L=-1<p,w=this.Dh,x=this.ea,H=this.Ua,R=this.ci,O=this.Jb,I;if(w)for(b=0,e=x.length;b<e;++b)f=x[b],f.sd||(H[b]=f.get(0));else for(b=0,e=x.length;b<e;++b)H[b]=x[b].get(0);if(v.Z){M(v.k);
M(v.ca);I=h.k;a=0;for(c=I.length;a<c;++a){g=I[a];if(w)for(b=0,e=x.length;b<e;++b)f=x[b],f.sd&&(H[b]=f.get(a));L?(b=0,u&&(b=g.type.Kg[n]),b=O.apply(g.S[p+b],H)):b=O.apply(g,H);(k=Ta(b,R))?v.k.push(g):m&&v.ca.push(g)}h.finish&&h.finish(!0);v.Z=!1;h.vd();return v.Lk()}d=0;I=(k=m&&!this.Mc.By(this))?v.ca:v.k;var N=!1;a=0;for(c=I.length;a<c;++a){g=I[a];if(w)for(b=0,e=x.length;b<e;++b)f=x[b],f.sd&&(H[b]=f.get(a));L?(b=0,u&&(b=g.type.Kg[n]),b=O.apply(g.S[p+b],H)):b=O.apply(g,H);if(Ta(b,R))if(N=!0,k){if(v.k.push(g),
t)for(b=0,e=g.siblings.length;b<e;b++)f=g.siblings[b],f.type.V().k.push(f)}else{I[d]=g;if(t)for(b=0,e=g.siblings.length;b<e;b++)f=g.siblings[b],f.type.V().k[d]=f;d++}else if(k){I[d]=g;if(t)for(b=0,e=g.siblings.length;b<e;b++)f=g.siblings[b],f.type.V().ca[d]=f;d++}else if(m&&(v.ca.push(g),t))for(b=0,e=g.siblings.length;b<e;b++)f=g.siblings[b],f.type.V().ca.push(f)}Aa(I,d);if(t)for(u=h.Ec,a=0,c=u.length;a<c;a++)g=u[a].V(),k?Aa(g.ca,d):Aa(g.k,d);d=N;if(k&&!N)for(a=0,c=v.k.length;a<c;a++){g=v.k[a];if(w)for(b=
0,e=x.length;b<e;b++)f=x[b],f.sd&&(H[b]=f.get(a));b=L?O.apply(g.S[p],H):O.apply(g,H);if(Ta(b,R)){N=!0;break}}h.finish&&h.finish(d||m);return m?N:v.Lk()};Yb=b;t.prototype.$a=function(){var a,b,d;a=0;for(b=this.ea.length;a<b;a++)d=this.ea[a],d.$a(),d.sd&&(this.Dh=!0)};t.prototype.Po=function(){var a=this.b,b,d,c=this.ea,e=this.Ua;b=0;for(d=c.length;b<d;++b)e[b]=c[b].get();return this.Jb.apply(a.fe,e)};t.prototype.Oo=function(){var a=this.type,b=this.yd,d=a.Vd,c=this.Dh,e=this.ea,f=this.Ua,k=this.Jb,
g=a.V().Yb(),a=a.O,h=-1<b,v,m,t,u,n,p;if(c)for(m=0,u=e.length;m<u;++m)n=e[m],n.sd||(f[m]=n.get(0));else for(m=0,u=e.length;m<u;++m)f[m]=e[m].get(0);v=0;for(t=g.length;v<t;++v){p=g[v];if(c)for(m=0,u=e.length;m<u;++m)n=e[m],n.sd&&(f[m]=n.get(v));h?(m=0,a&&(m=p.type.Kg[d]),k.apply(p.S[b+m],f)):k.apply(p,f)}return!1};Zb=t;var L=[],v=-1;a.prototype.$a=function(){var a,b;if(11===this.type)this.Qf=this.b.Hq(this.zj,this.Mc.parent);else if(13===this.type)for(a=0,b=this.ug.length;a<b;a++)this.ug[a].$a();this.Ud&&
this.Ud.$a()};a.prototype.Ry=function(a){this.sd||!a||a.wa.Ql||(this.sd=!0)};a.prototype.Ls=function(){this.sd=!0};a.prototype.ay=function(a){this.De=a||0;a=w();this.Ud.get(a);v--;return a.data};a.prototype.by=function(a){this.De=a||0;a=w();this.Ud.get(a);v--;return la(a.data)?a.data:""};a.prototype.iy=function(){return this.object};a.prototype.Zx=function(){return this.mq};a.prototype.gy=function(a){this.De=a||0;a=w();this.Ud.get(a);v--;return a.Bb()?this.b.Rh(a.data):this.b.sn(a.data)};a.prototype.hy=
function(){return this.eb};a.prototype.fy=function(){return this.key};a.prototype.ey=function(){return this.index};a.prototype.cy=function(a){a=a||0;var b=this.Ma.type,d=null,d=b.V(),c=d.Yb();if(c.length)d=c[a%c.length].type;else if(d.ca.length)d=d.ca[a%d.ca.length].type;else if(b.k.length)d=b.k[a%b.k.length].type;else return 0;return this.index+d.Qh[b.Vd]};a.prototype.$x=function(){return this.Qf};a.prototype.Yx=function(){return this.yq};a.prototype.jy=function(){var a,b;a=0;for(b=this.ug.length;a<
b;a++)this.yj[a]=this.ug[a].get();return this.yj};$b=a;e.prototype.$a=function(){this.Ba=n(this.Ba)};e.prototype.rg=function(a){var b=this.b.Fq();this.parent&&!this.ni&&b?(this.kg>=b.length&&(b.length=this.kg+1),b[this.kg]=a):this.data=a};e.prototype.Uh=function(){var a=this.b.Fq();return!this.parent||this.ni||!a||this.Tk?this.data:this.kg>=a.length||"undefined"===typeof a[this.kg]?this.Nk:a[this.kg]};e.prototype.kb=function(){!this.parent||this.ni||this.Tk||this.rg(this.Nk)};Ub=e;d.prototype.toString=
function(){return"include:"+this.Zh.toString()};d.prototype.$a=function(){this.Zh=this.b.cn[this.uy];this.sheet.Rq.add(this);this.Ba=n(this.Ba);for(var a=this.parent;a;)a.group&&a.dk.push(this),a=a.parent;this.ot()};d.prototype.kb=function(){this.parent&&this.b.$i(this.b.G);this.Zh.zn||this.Zh.kb(!0);this.parent&&this.b.ze(this.b.G)};d.prototype.ot=function(){for(var a=this.parent;a;){if(a.group&&!a.Vf){this.Oa=!1;return}a=a.parent}this.Oa=!0};dc=d;k.prototype.reset=function(a){this.Xa=a;this.pc=
this.ab=0;M(this.Ws);this.an=this.fg=!1};k.prototype.dr=function(){return this.Xa.$o?!0:this.ab<this.Xa.qb.length-1?!!this.Xa.Ba.length:!1};Tb=k})();
(function(){function c(c,b){this.Ma=c;this.b=c.b;this.type=b[0];this.get=[this.kx,this.gx,this.wx,this.zx,this.Tw,this.xx,this.qx,this.ax,this.ox,this.vx,this.Uw,this.ux,this.bx,this.rx,this.mx,this.nx,this.hx,this.ix,this.$w,this.yx,this.tx,this.jx,this.Zw,this.cx][this.type];var g=null;this.we=this.ea=this.Ua=this.Jb=this.Xl=this.second=this.first=this.value=null;this.yd=-1;this.Bd=null;this.yt=-1;this.Qf=this.zj=null;this.oh=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new bc(c,b[1]);break;case 18:this.first=new bc(c,b[1]);this.second=new bc(c,b[2]);this.Xl=new bc(c,b[3]);break;case 19:this.Jb=this.b.Me(b[1]);this.Jb!==X.prototype.I.random&&this.Jb!==X.prototype.I.kq||this.Ma.Ls();this.Ua=[];this.ea=[];3===b.length?(g=b[2],this.Ua.length=g.length+1):this.Ua.length=1;break;case 20:this.we=this.b.G[b[1]];this.yd=-1;this.Jb=this.b.Me(b[2]);this.oh=b[3];qc&&this.Jb===qc.prototype.I.Jt&&this.Ma.Ls();b[4]?this.Bd=new bc(c,b[4]):this.Bd=null;this.Ua=[];this.ea=[];6===
b.length?(g=b[5],this.Ua.length=g.length+1):this.Ua.length=1;break;case 21:this.we=this.b.G[b[1]];this.oh=b[2];b[3]?this.Bd=new bc(c,b[3]):this.Bd=null;this.yt=b[4];break;case 22:this.we=this.b.G[b[1]];this.we.Ck(b[2]);this.yd=this.we.ln(b[2]);this.Jb=this.b.Me(b[3]);this.oh=b[4];b[5]?this.Bd=new bc(c,b[5]):this.Bd=null;this.Ua=[];this.ea=[];7===b.length?(g=b[6],this.Ua.length=g.length+1):this.Ua.length=1;break;case 23:this.zj=b[1],this.Qf=null}this.Ma.Ry(this.we);4<=this.type&&17>=this.type&&(this.first=
new bc(c,b[1]),this.second=new bc(c,b[2]));if(g){var h,a;h=0;for(a=g.length;h<a;h++)this.ea.push(new bc(c,g[h]))}}function m(){++h;g.length===h&&g.push(new ac);return g[h]}function n(c,b,g){var h,a;h=0;for(a=c.length;h<a;++h)c[h].get(g),b[h+1]=g.data}function p(c,b){this.type=c||ec.zg;this.data=b||0;this.mg=null;this.type==ec.zg&&(this.data=Math.floor(this.data))}c.prototype.$a=function(){23===this.type&&(this.Qf=this.Ma.b.Hq(this.zj,this.Ma.Mc.parent));this.first&&this.first.$a();this.second&&this.second.$a();
this.Xl&&this.Xl.$a();this.Bd&&this.Bd.$a();if(this.ea){var c,b;c=0;for(b=this.ea.length;c<b;c++)this.ea[c].$a()}};var g=[],h=-1;c.prototype.yx=function(c){var b=this.ea,g=this.Ua;g[0]=c;c=m();n(b,g,c);--h;this.Jb.apply(this.b.fe,g)};c.prototype.tx=function(c){var b=this.we,g=this.Ua,p=this.ea,a=this.Bd,e=this.Jb,d=this.Ma.De,k=b.V(),u=k.Yb();if(!u.length)if(k.ca.length)u=k.ca;else{this.oh?c.Qb(""):c.na(0);return}g[0]=c;c.mg=b;c=m();n(p,g,c);a&&(a.get(c),c.Bb()&&(d=c.data,u=b.k));--h;b=u.length;if(d>=
b||d<=-b)d%=b;0>d&&(d+=b);e.apply(u[d],g)};c.prototype.Zw=function(c){var b=this.we,g=this.Ua,p=this.ea,a=this.Bd,e=this.yd,d=this.Jb,k=this.Ma.De,u=b.V(),L=u.Yb();if(!L.length)if(u.ca.length)L=u.ca;else{this.oh?c.Qb(""):c.na(0);return}g[0]=c;c.mg=b;c=m();n(p,g,c);a&&(a.get(c),c.Bb()&&(k=c.data,L=b.k));--h;p=L.length;if(k>=p||k<=-p)k%=p;0>k&&(k+=p);k=L[k];L=0;b.O&&(L=k.type.Kg[b.Vd]);d.apply(k.S[e+L],g)};c.prototype.jx=function(c){var b=this.Bd,g=this.we,p=this.yt,a=this.Ma.De,e=g.V(),d=e.Yb();if(!d.length)if(e.ca.length)d=
e.ca;else{this.oh?c.Qb(""):c.na(0);return}if(b){e=m();b.get(e);if(e.Bb()){a=e.data;d=g.k;0!==d.length&&(a%=d.length,0>a&&(a+=d.length));a=g.rn(a);g=a.Ya[p];la(g)?c.Qb(g):c.L(g);--h;return}--h}b=d.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=d[a];d=0;g.O&&(d=a.type.Qh[g.Vd]);g=a.Ya[p+d];la(g)?c.Qb(g):c.L(g)};c.prototype.kx=function(c){c.type=ec.zg;c.data=this.value};c.prototype.gx=function(c){c.type=ec.yg;c.data=this.value};c.prototype.wx=function(c){c.type=ec.String;c.data=this.value};c.prototype.zx=
function(c){this.first.get(c);c.Bb()&&(c.data=-c.data)};c.prototype.Tw=function(c){this.first.get(c);var b=m();this.second.get(b);c.Bb()&&b.Bb()&&(c.data+=b.data,b.Rg()&&c.dh());--h};c.prototype.xx=function(c){this.first.get(c);var b=m();this.second.get(b);c.Bb()&&b.Bb()&&(c.data-=b.data,b.Rg()&&c.dh());--h};c.prototype.qx=function(c){this.first.get(c);var b=m();this.second.get(b);c.Bb()&&b.Bb()&&(c.data*=b.data,b.Rg()&&c.dh());--h};c.prototype.ax=function(c){this.first.get(c);var b=m();this.second.get(b);
c.Bb()&&b.Bb()&&(c.data/=b.data,c.dh());--h};c.prototype.ox=function(c){this.first.get(c);var b=m();this.second.get(b);c.Bb()&&b.Bb()&&(c.data%=b.data,b.Rg()&&c.dh());--h};c.prototype.vx=function(c){this.first.get(c);var b=m();this.second.get(b);c.Bb()&&b.Bb()&&(c.data=Math.pow(c.data,b.data),b.Rg()&&c.dh());--h};c.prototype.Uw=function(c){this.first.get(c);var b=m();this.second.get(b);b.Ug()||c.Ug()?this.Ww(c,b):this.Vw(c,b);--h};c.prototype.Ww=function(c,b){c.Ug()&&b.Ug()?this.Yw(c,b):this.Xw(c,
b)};c.prototype.Yw=function(c,b){c.data+=b.data};c.prototype.Xw=function(c,b){c.Ug()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Qb(c.data.toString()+b.data)};c.prototype.Vw=function(c,b){c.na(c.data&&b.data?1:0)};c.prototype.ux=function(c){this.first.get(c);var b=m();this.second.get(b);c.Bb()&&b.Bb()&&(c.data||b.data?c.na(1):c.na(0));--h};c.prototype.$w=function(c){this.first.get(c);c.data?this.second.get(c):this.Xl.get(c)};c.prototype.bx=function(c){this.first.get(c);var b=m();this.second.get(b);
c.na(c.data===b.data?1:0);--h};c.prototype.rx=function(c){this.first.get(c);var b=m();this.second.get(b);c.na(c.data!==b.data?1:0);--h};c.prototype.mx=function(c){this.first.get(c);var b=m();this.second.get(b);c.na(c.data<b.data?1:0);--h};c.prototype.nx=function(c){this.first.get(c);var b=m();this.second.get(b);c.na(c.data<=b.data?1:0);--h};c.prototype.hx=function(c){this.first.get(c);var b=m();this.second.get(b);c.na(c.data>b.data?1:0);--h};c.prototype.ix=function(c){this.first.get(c);var b=m();
this.second.get(b);c.na(c.data>=b.data?1:0);--h};c.prototype.cx=function(c){var b=this.Qf.Uh();ka(b)?c.L(b):c.Qb(b)};bc=c;p.prototype.Rg=function(){return this.type===ec.yg};p.prototype.Bb=function(){return this.type===ec.zg||this.type===ec.yg};p.prototype.Ug=function(){return this.type===ec.String};p.prototype.dh=function(){this.Rg()||(this.Ug()&&(this.data=parseFloat(this.data)),this.type=ec.yg)};p.prototype.na=function(c){this.type=ec.zg;this.data=Math.floor(c)};p.prototype.L=function(c){this.type=
ec.yg;this.data=c};p.prototype.Qb=function(c){this.type=ec.String;this.data=c};p.prototype.Xo=function(c){ka(c)?(this.type=ec.yg,this.data=c):la(c)?(this.type=ec.String,this.data=c.toString()):(this.type=ec.zg,this.data=0)};ac=p;ec={zg:0,yg:1,String:2}})();function X(c){this.b=c;this.Cc=[]}
X.prototype.Va=function(){var c={},m,n,p,g,h,f,b,t;c.waits=[];var w=c.waits,a;m=0;for(n=this.Cc.length;m<n;m++){f=this.Cc[m];a={t:f.time,st:f.Ss,s:f.Zo,ev:f.Jg.ka,sm:[],sols:{}};f.Jg.Zc[f.pc]&&(a.act=f.Jg.Zc[f.pc].ka);p=0;for(g=f.Ba.length;p<g;p++)a.sm.push(f.Ba[p].ka);for(h in f.lc)if(f.lc.hasOwnProperty(h)){b=this.b.G[parseInt(h,10)];t={sa:f.lc[h].Dl,insts:[]};p=0;for(g=f.lc[h].qe.length;p<g;p++)t.insts.push(f.lc[h].qe[p].uid);a.sols[b.ka.toString()]=t}w.push(a)}return c};
X.prototype.gb=function(c){c=c.waits;var m,n,p,g,h,f,b,t,w,a,e;M(this.Cc);m=0;for(n=c.length;m<n;m++)if(f=c[m],t=this.b.bq[f.ev.toString()]){w=-1;p=0;for(g=t.Zc.length;p<g;p++)if(t.Zc[p].ka===f.act){w=p;break}if(-1!==w){b={lc:{},Ba:[],Ym:!1};b.time=f.t;b.Ss=f.st||"";b.Zo=!!f.s;b.Jg=t;b.pc=w;p=0;for(g=f.sm.length;p<g;p++)(t=this.b.Sh(f.sm[p]))&&b.Ba.push(t);for(h in f.sols)if(f.sols.hasOwnProperty(h)&&(t=this.b.Sh(parseInt(h,10)))){w=f.sols[h];a={Dl:w.sa,qe:[]};p=0;for(g=w.insts.length;p<g;p++)(e=
this.b.Ek(w.insts[p]))&&a.qe.push(e);b.lc[t.index.toString()]=a}this.Cc.push(b)}}};
(function(){function c(){}function m(){}function n(a,b){var c=a[0]-b[0];return 0!==c?c:a[1]-b[1]}function p(a,b){return a[1]-b[1]}function g(){}var h=X.prototype;c.prototype.au=function(){return!0};c.prototype.Lp=function(){return!0};c.prototype.Ku=function(){return!0};c.prototype.Ot=function(a,b,c){return fc(a,b,c)};c.prototype.wu=function(a){return a?a.visible:!1};c.prototype.av=function(a){var b=this.b.Sa(),c=b.Xa,f=b.dr(),b=this.b.ws();if(f)for(f=0;f<a&&!b.mb;f++)this.b.kh(c.Ba),b.index=f,c.fj(),
this.b.ze(c.Ba);else for(f=0;f<a&&!b.mb;f++)b.index=f,c.fj();this.b.qs();return!1};var f=[],b=-1;c.prototype.bu=function(a){var c=a.V();b++;f.length===b&&f.push([]);var d=f[b];Ba(d,c.Yb());var k=this.b.Sa(),g=k.Xa,h=k.dr(),k=this.b.ws(),m,l,q,p,n,r,t=a.Zb;if(h)for(h=0,m=d.length;h<m&&!k.mb;h++){this.b.kh(g.Ba);p=d[h];c=a.V();c.Z=!1;M(c.k);c.k[0]=p;if(t)for(l=0,q=p.siblings.length;l<q;l++)n=p.siblings[l],r=n.type.V(),r.Z=!1,M(r.k),r.k[0]=n;k.index=h;g.fj();this.b.ze(g.Ba)}else for(c.Z=!1,M(c.k),h=
0,m=d.length;h<m&&!k.mb;h++){p=d[h];c.k[0]=p;if(t)for(l=0,q=p.siblings.length;l<q;l++)n=p.siblings[l],r=n.type.V(),r.Z=!1,M(r.k),r.k[0]=n;k.index=h;g.fj()}M(d);this.b.qs();b--;return!1};c.prototype.Pv=function(){var a=this.b.Sf().P;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.Ge;a.TriggerOnce_lastTick=c;return this.b.Yn||b!==c-1};c.prototype.$t=function(a){var b=this.b.Sf(),c=b.P.Every_lastTime||0,f=this.b.cb.M;"undefined"===typeof b.P.Every_seconds&&
(b.P.Every_seconds=a);var g=b.P.Every_seconds;if(f>=c+g)return b.P.Every_lastTime=c+g,f>=b.P.Every_lastTime+.04&&(b.P.Every_lastTime=f),b.P.Every_seconds=a,!0;f<c-.1&&(b.P.Every_lastTime=f);return!1};c.prototype.St=function(a,b,c){return fc(a.Uh(),b,c)};c.prototype.pu=function(a){return(a=this.b.Mg[a.toLowerCase()])&&a.Vf};c.prototype.Bp=function(){var a=this.b.Sa();return a.an?!1:!a.fg};c.prototype.Mp=function(){return!0};c.prototype.Cu=function(){return!0};c.prototype.vm=function(){return!0};c.prototype.Pp=
function(){return!0};c.prototype.Lu=function(){return!0};c.prototype.Ij=function(){return!0};c.prototype.Gt=function(a,b,c){return Na(P(a),P(c))<=P(b)};c.prototype.mu=function(a,b){return Qa(P(a),P(b))};c.prototype.Dp=function(a,b,c){a=La(a);b=La(b);c=La(c);return Qa(c,b)?Qa(a,b)&&!Qa(a,c):!(!Qa(a,b)&&Qa(a,c))};h.m=new c;m.prototype.cu=function(a){this.b.Vg||this.b.Hf||(this.b.Hf=a)};m.prototype.Xt=function(a,b,c,f){if(b&&a&&(b=this.b.Sm(a,b,c,f))){this.b.Tc++;var g;this.b.trigger(Object.getPrototypeOf(a.wa).m.Af,
b);if(b.Zb)for(c=0,f=b.siblings.length;c<f;c++)g=b.siblings[c],this.b.trigger(Object.getPrototypeOf(g.type.wa).m.Af,g);this.b.Tc--;a=a.V();a.Z=!1;M(a.k);a.k[0]=b;if(b.Zb)for(c=0,f=b.siblings.length;c<f;c++)g=b.siblings[c],a=g.type.V(),a.Z=!1,M(a.k),a.k[0]=g}};m.prototype.uv=function(a,b){a&&a.visible!==b&&(a.visible=b,this.b.fa=!0)};m.prototype.tv=function(a,b){a&&(b=Ga(b/100,0,1),a.opacity!==b&&(a.opacity=b,this.b.fa=!0))};m.prototype.Dv=function(a,b){0===a.km?ka(b)?a.rg(b):a.rg(parseFloat(b)):1===
a.km&&a.rg(b.toString())};m.prototype.Dt=function(a,b){0===a.km?ka(b)?a.rg(a.Uh()+b):a.rg(a.Uh()+parseFloat(b)):1===a.km&&a.rg(a.Uh()+b.toString())};m.prototype.qv=function(a,b){var c=this.b.Mg[a.toLowerCase()];if(c)switch(b){case 0:c.ij(!1);break;case 1:c.ij(!0);break;case 2:c.ij(!c.Vf)}};m.prototype.Bv=function(a){0>a&&(a=0);this.b.yf=a};var t=[],w=[];m.prototype.Rv=function(a){if(!(0>a)){var b,c,f,g=this.b.Sa(),h;t.length?h=t.pop():h={lc:{},Ba:[]};h.Ym=!1;h.time=this.b.cb.M+a;h.Ss="";h.Zo=!1;h.Jg=
g.Xa;h.pc=g.pc+1;a=0;for(b=this.b.G.length;a<b;a++)f=this.b.G[a],c=f.V(),c.Z&&-1===g.Xa.Ba.indexOf(f)||(h.Ba.push(f),f=void 0,w.length?f=w.pop():f={qe:[]},f.Dl=!1,f.Dl=c.Z,Ba(f.qe,c.k),h.lc[a.toString()]=f);this.Cc.push(h);return!0}};m.prototype.cv=function(){var a,b,c;a=0;for(b=this.b.Am.length;a<b;a++)c=this.b.Am[a],c.data=c.Nk};m.prototype.dv=function(){if(!this.b.Vg&&!this.b.Hf&&this.b.ma){this.b.Hf=this.b.ma;var a,b,c;a=0;for(b=this.b.Re.length;a<b;a++)c=this.b.Re[a],c.ij(c.Ok)}};m.prototype.Iv=
function(a,b){if(a){var c,f,g,h,m;m=a.V().Yb();var l=[],q=[],t=this.b.ma,K=a.O,r=a.Vd;c=0;for(f=m.length;c<f;++c)g=m[c],g.q&&(h=K?g.Ya[b+g.type.Qh[r]]:g.Ya[b],l.push([g.q.index,g.Ad()]),q.push([g,h]));if(l.length)for(l.sort(n),q.sort(p),c=0,f=l.length;c<f;++c)g=q[c][0],h=t.da[l[c][0]],m=l[c][1],h.k[m]!==g&&(h.k[m]=g,g.q=h,h.qh(m))}};h.A=new m;g.prototype["int"]=function(a,b){la(b)?(a.na(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.na(b)};g.prototype["float"]=function(a,b){la(b)?(a.L(parseFloat(b)),
isNaN(a.data)&&(a.data=0)):a.L(b)};g.prototype.random=function(a,b,c){void 0===c?a.L(Math.random()*b):a.L(Math.random()*(c-b)+b)};g.prototype.sqrt=function(a,b){a.L(Math.sqrt(b))};g.prototype.abs=function(a,b){a.L(Math.abs(b))};g.prototype.round=function(a,b){a.na(Math.round(b))};g.prototype.floor=function(a,b){a.na(Math.floor(b))};g.prototype.ceil=function(a,b){a.na(Math.ceil(b))};g.prototype.sin=function(a,b){a.L(Math.sin(P(b)))};g.prototype.cos=function(a,b){a.L(Math.cos(P(b)))};g.prototype.tan=
function(a,b){a.L(Math.tan(P(b)))};g.prototype.asin=function(a,b){a.L(Ha(Math.asin(b)))};g.prototype.acos=function(a,b){a.L(Ha(Math.acos(b)))};g.prototype.atan=function(a,b){a.L(Ha(Math.atan(b)))};g.prototype.exp=function(a,b){a.L(Math.exp(b))};g.prototype.log10=function(a,b){a.L(Math.log(b)/Math.LN10)};g.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,f,g;c=2;for(f=arguments.length;c<f;c++)g=arguments[c],"number"===typeof g&&b<g&&(b=g);a.L(b)};g.prototype.min=function(a){var b=
arguments[1];"number"!==typeof b&&(b=0);var c,f,g;c=2;for(f=arguments.length;c<f;c++)g=arguments[c],"number"===typeof g&&b>g&&(b=g);a.L(b)};g.prototype.Mf=function(a){a.L(this.b.Mf)};g.prototype.yf=function(a){a.L(this.b.yf)};g.prototype.time=function(a){a.L(this.b.cb.M)};g.prototype.Ge=function(a){a.na(this.b.Ge)};g.prototype.kl=function(a){a.na(this.b.kl)};g.prototype.zk=function(a){a.na(this.b.zk)};g.prototype.Py=function(a,b){var c,f;if(this.b.Ji.length)if(b){for(f=this.b.Ki;0<=f;--f)if(c=this.b.Ji[f],
c.name===b){a.na(c.index);return}a.na(0)}else c=this.b.Gq(),a.na(c?c.index:-1);else a.na(0)};g.prototype.n=function(a,b,c,f,g){a.L(Ha(Ma(b,c,f,g)))};g.prototype.My=function(a,b,c,f){a.L(Ua(b,c,f))};g.prototype.Ly=function(a){a.na(this.b.ma.width)};g.prototype.Jy=function(a){a.na(this.b.ma.height)};g.prototype.left=function(a,b,c){a.Qb(la(b)?b.substr(0,c):"")};g.prototype.right=function(a,b,c){a.Qb(la(b)?b.substr(b.length-c):"")};g.prototype.replace=function(a,b,c,f){la(b)&&la(c)&&la(f)?a.Qb(b.replace(new RegExp(gb(c),
"gi"),f)):a.Qb(la(b)?b:"")};g.prototype.trim=function(a,b){a.Qb(la(b)?b.trim():"")};g.prototype.Ky=function(a){this.b.ma?a.Qb(this.b.ma.name):a.Qb("")};g.prototype.kq=function(a){var b=A(Math.random()*(arguments.length-1));a.Xo(arguments[b+1])};g.prototype.Qm=function(a){a.L(this.b.Qm/1E3)};g.prototype.ah=function(a){a.L(this.b.ah)};h.I=new g;h.Ez=function(){var a,b,c,f,g,h,m=this.b.Sa();a=0;for(c=this.Cc.length;a<c;a++){f=this.Cc[a];if(-1===f.time){if(!f.Zo)continue}else if(f.time>this.b.cb.M)continue;
m.Xa=f.Jg;m.pc=f.pc;m.ab=0;for(b in f.lc)f.lc.hasOwnProperty(b)&&(g=this.b.G[parseInt(b,10)].V(),h=f.lc[b],g.Z=h.Dl,Ba(g.k,h.qe),g=h,M(g.qe),w.push(g));f.Jg.Dz();this.b.Nm(f.Ba);f.Ym=!0}b=a=0;for(c=this.Cc.length;a<c;a++)f=this.Cc[a],this.Cc[b]=f,f.Ym?(Wa(f.lc),M(f.Ba),t.push(f)):b++;Aa(this.Cc,b)}})();
(function(){rb=function(c,n){var p=c[1],g=c[3],h=c[4],f=c[5],b=c[6],t=c[7],w=c[8];n.m||(n.m={});n.A||(n.A={});n.I||(n.I={});var a=n.m,e=n.A,d=n.I;g&&(a.Ut=function(a,b){return fc(this.x,a,b)},a.Vt=function(a,b){return fc(this.y,a,b)},a.su=function(){var a=this.q;this.Ga();var b=this.Ja;return!(b.right<a.ra||b.bottom<a.ta||b.left>a.Da||b.top>a.Ca)},a.tu=function(){this.Ga();var a=this.Ja,b=this.b.ma;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.tA=function(a,b,c){var d=this.V(),e=
d.Yb();if(!e.length)return!1;var f=e[0],g=f,h=Sa(f.x,f.y,b,c),r,m,p;r=1;for(m=e.length;r<m;r++)if(f=e[r],p=Sa(f.x,f.y,b,c),0===a&&p<h||1===a&&p>h)h=p,g=f;d.Xi(g);return!0},e.CA=function(a){this.x!==a&&(this.x=a,this.K())},e.DA=function(a){this.y!==a&&(this.y=a,this.K())},e.yv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.K()},e.Qp=function(a,b){var c=a.Rx(this);if(c){var d;c.Uf?(d=c.Uf(b,!0),c=c.Uf(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.K()}},e.oA=function(a){0!==
a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.K())},e.yu=function(a,b){0!==b&&(this.x+=Math.cos(P(a))*b,this.y+=Math.sin(P(a))*b,this.K())},d.wm=function(a){a.L(this.x)},d.xm=function(a){a.L(this.y)},d.Mf=function(a){a.L(this.b.pe(this))});h&&(a.Tt=function(a,b){return fc(this.width,a,b)},a.Qt=function(a,b){return fc(this.height,a,b)},e.Fv=function(a){this.width!==a&&(this.width=a,this.K())},e.rv=function(a){this.height!==a&&(this.height=a,this.K())},e.zv=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.K()},d.Sv=function(a){a.L(this.width)},d.fu=function(a){a.L(this.height)},d.fA=function(a){this.Ga();a.L(this.Ja.left)},d.hA=function(a){this.Ga();a.L(this.Ja.top)},d.gA=function(a){this.Ga();a.L(this.Ja.right)},d.eA=function(a){this.Ga();a.L(this.Ja.bottom)});f&&(a.Gt=function(a,b){return Na(this.n,P(b))<=P(a)},a.mu=function(a){return Qa(this.n,P(a))},a.Dp=function(a,b){var c=La(a),d=La(b),e=Ja(this.n);return Qa(d,c)?Qa(e,c)&&!Qa(e,d):!(!Qa(e,c)&&
Qa(e,d))},e.hv=function(a){a=P(Ia(a));isNaN(a)||this.n===a||(this.n=a,this.K())},e.xA=function(a){0===a||isNaN(a)||(this.n+=P(a),this.n=Ja(this.n),this.K())},e.yA=function(a){0===a||isNaN(a)||(this.n-=P(a),this.n=Ja(this.n),this.K())},e.zA=function(a,b){var c=Pa(this.n,P(b),P(a));isNaN(c)||this.n===c||(this.n=c,this.K())},e.AA=function(a,b,c){a=Pa(this.n,Math.atan2(c-this.y,b-this.x),P(a));isNaN(a)||this.n===a||(this.n=a,this.K())},e.Cv=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.n===c||(this.n=c,this.K())},d.Et=function(a){a.L(Ka(this.n))});p||(a.zp=function(a,b,c){return fc(this.Ya[a],b,c)},a.lu=function(a){return this.Ya[a]},a.uA=function(a,b){var c=this.V(),d=c.Yb();if(!d.length)return!1;var e=d[0],f=e,g=e.Ya[b],h,r,m;h=1;for(r=d.length;h<r;h++)if(e=d[h],m=e.Ya[b],0===a&&m<g||1===a&&m>g)g=m,f=e;c.Xi(f);return!0},a.Yu=function(a){var b,c,d,e,f;if(this.b.Sf().ci){f=this.V();if(f.Z)for(f.Z=!1,M(f.k),M(f.ca),d=this.k,b=0,c=d.length;b<c;b++)e=d[b],e.uid===a?f.ca.push(e):
f.k.push(e);else{d=b=0;for(c=f.k.length;b<c;b++)e=f.k[b],f.k[d]=e,e.uid===a?f.ca.push(e):d++;Aa(f.k,d)}this.vd();return!!f.k.length}e=this.b.Ek(a);if(!e)return!1;f=this.V();if(!f.Z&&-1===f.k.indexOf(e))return!1;if(this.O)for(a=e.type.Pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Xi(e),this.vd(),!0}else if(e.type===this)return f.Xi(e),this.vd(),!0;return!1},a.Af=function(){return!0},a.Eu=function(){return!0},e.sv=function(a,b){var c=this.Ya;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):la(c[a])&&(c[a]=
la(b)?b:b.toString())},e.dA=function(a,b){var c=this.Ya;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},e.Nv=function(a,b){var c=this.Ya;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},e.nv=function(a,b){this.Ya[a]=b?1:0},e.EA=function(a){this.Ya[a]=1-this.Ya[a]},e.Zt=function(){this.b.he(this)},e.xu||(e.xu=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.bl(this,b,!0);this.Pe&&this.Pe();if(this.S)for(a=0,b=this.S.length;a<b;++a)c=this.S[a],
c.Pe&&c.Pe()}),d.Wt=function(a){var b=a.mg.k.length,c,d,e;c=0;for(d=this.b.zd.length;c<d;c++)e=this.b.zd[c],a.mg.O?0<=e.type.Pa.indexOf(a.mg)&&b++:e.type===a.mg&&b++;a.na(b)},d.wA=function(a){a.na(a.mg.V().Yb().length)},d.Qv=function(a){a.na(this.uid)},d.jA=function(a){a.na(this.Vh())},d.yp||(d.yp=function(a){a.Qb(JSON.stringify(this.b.Qo(this,!0)))}));b&&(a.lA=function(){return this.visible},e.Ev=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.fa=!0)},a.iA=function(a,b){return fc(mb(100*
this.opacity),a,b)},e.xv=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.fa=!0)},d.Opacity=function(a){a.L(mb(100*this.opacity))});t&&(a.kA=function(a){return a?this.q===a:!1},a.vA=function(a){var b=this.V(),c=b.Yb();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.q.index>e.q.index||d.q.index===e.q.index&&d.Ad()>e.Ad())e=d}else if(d.q.index<e.q.index||d.q.index===e.q.index&&d.Ad()<e.Ad())e=d;b.Xi(e);return!0},e.qA=function(){var a=
this.q,b=a.k;b.length&&b[b.length-1]===this||(a.nh(this,!1),a.Fh(this,!1),this.b.fa=!0)},e.pA=function(){var a=this.q,b=a.k;b.length&&b[0]===this||(a.nh(this,!1),a.pz(this),this.b.fa=!0)},e.Fp=function(a){a&&a!=this.q&&(this.q.nh(this,!0),this.q=a,a.Fh(this,!0),this.b.fa=!0)},e.Vv=function(a,b){var c=0===a;if(b){var d=b.Iq(this);d&&d.uid!==this.uid&&(this.q.index!==d.q.index&&(this.q.nh(this,!0),this.q=d.q,d.q.Fh(this,!0)),this.q.Uy(this,d,c),this.b.fa=!0)}},d.nA=function(a){a.na(this.q.Vr)},d.mA=
function(a){a.Qb(this.q.name)},d.FA=function(a){a.na(this.Ad())});w&&(e.BA=function(a,b){if(this.b.F){var c=this.type.qn(b);if(!(0>c)){var d=1===a;this.Ne[c]!==d&&(this.Ne[c]=d,this.Ld(),this.b.fa=!0)}}},e.ov=function(a,b,c){if(this.b.F){var d=this.type.qn(a);0>d||(a=this.type.ba[d],d=this.Ra[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.F.Vx(a.lb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Oa&&(this.b.fa=!0))))}})};Lb=function(){this.Mm=this.Vj=!0;this.type.Nj=!0;this.b.fa=!0;var c,n,p=this.Gm;c=0;for(n=
p.length;c<n;++c)p[c](this);this.q.Yc&&this.Ga()};Mb=function(c){c&&this.Gm.push(c)};Ob=function(){if(this.Vj){var c=this.Ja,n=this.qc;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.tc*this.width,-this.uc*this.height);this.n?(c.offset(-this.x,-this.y),n.Ns(c,this.n),n.offset(this.x,this.y),n.dq(c)):n.sg(c);c.normalize();this.Vj=!1;this.tt()}};var c=new va(0,0,0,0);Pb=function(){if(this.q.Yc){var m=this.q.Pb,n=this.Ja;c.set(m.nc(n.left),m.oc(n.top),m.nc(n.right),m.oc(n.bottom));
this.yc.Mh(c)||(this.yc.right<this.yc.left?m.update(this,null,c):m.update(this,this.yc,c),this.yc.Eg(c),this.q.Gd=!0)}};Qb=function(){if(this.Mm&&this.Qd){this.Ga();var m=this.type.ck,n=this.Ja;c.set(m.nc(n.left),m.oc(n.top),m.nc(n.right),m.oc(n.bottom));this.Ze.Mh(c)||(this.Ze.right<this.Ze.left?m.update(this,null,c):m.update(this,this.Ze,c),this.Ze.Eg(c),this.Mm=!1)}};Nb=function(c,n){return this.Ja.Ab(c,n)&&this.qc.Ab(c,n)?this.la&&!this.la.bg()?(this.la.Te(this.width,this.height,this.n),this.la.Ab(c-
this.x,n-this.y)):!0:!1};Gb=function(){this.type.gm();return this.Yf};Rb=function(){this.q.rp();return this.Nd};Sb=function(){M(this.ya);var c,n,p,g=!0;c=0;for(n=this.Ne.length;c<n;c++)this.Ne[c]&&(p=this.type.ba[c],this.ya.push(p),p.md||(g=!1));this.xt=!!this.ya.length;this.Ce=g};Hb=function(){return"Inst"+this.vs};ub=function(c){if(c&&c.Zb&&c.type!=this){var n,p,g;n=0;for(p=c.siblings.length;n<p;n++)if(g=c.siblings[n],g.type==this)return g}c=this.V().Yb();return c.length?c[0]:null};vb=function(c){var n=
this.V().Yb();return n.length?n[c.Vh()%n.length]:null};tb=function(){if(this.vh&&!this.O){var c,n;c=0;for(n=this.k.length;c<n;c++)this.k[c].Yf=c;var p=c,g=this.b.zd;c=0;for(n=g.length;c<n;++c)g[c].type===this&&(g[c].Yf=p++);this.vh=!1}};Eb=function(c){if(c<this.k.length)return this.k[c];c-=this.k.length;var n=this.b.zd,p,g;p=0;for(g=n.length;p<g;++p)if(n[p].type===this){if(0===c)return n[p];--c}return null};wb=function(){return this.Ee[this.Rd]};xb=function(){this.Rd++;this.Rd===this.Ee.length?this.Ee.push(new sb(this)):
(this.Ee[this.Rd].Z=!0,M(this.Ee[this.Rd].ca))};yb=function(){this.Rd++;this.Rd===this.Ee.length&&this.Ee.push(new sb(this));var c=this.Ee[this.Rd],n=this.Ee[this.Rd-1];n.Z?(c.Z=!0,M(c.ca)):(c.Z=!1,Ba(c.k,n.k),Ba(c.ca,n.ca))};zb=function(){this.Rd--};Ab=function(c){var n,p,g,h,f,b=0;if(!this.O)for(n=0,p=this.Pa.length;n<p;n++)for(f=this.Pa[n],g=0,h=f.Qa.length;g<h;g++){if(c===f.Qa[g].name)return this.P.lastBehIndex=b,f.Qa[g];b++}n=0;for(p=this.Qa.length;n<p;n++){if(c===this.Qa[n].name)return this.P.lastBehIndex=
b,this.Qa[n];b++}return null};Bb=function(c){return this.Ck(c)?this.P.lastBehIndex:-1};Cb=function(c){var n,p;n=0;for(p=this.ba.length;n<p;n++)if(this.ba[n].name===c)return n;return-1};Db=function(){if(this.Zb&&!this.O){var c,n,p,g,h,f,b;this.gm();f=this.V();var t=f.Z,w=(c=this.b.Sa())&&c.Xa&&c.Xa.Vc;c=0;for(n=this.Ec.length;c<n;c++)if(h=this.Ec[c],h!==this&&(h.gm(),b=h.V(),b.Z=t,!t)){M(b.k);p=0;for(g=f.k.length;p<g;++p)b.k[p]=h.rn(f.k[p].Yf);if(w)for(M(b.ca),p=0,g=f.ca.length;p<g;++p)b.ca[p]=h.rn(f.ca[p].Yf)}}};
Fb=function(){return"Type"+this.ka};fc=function(c,n,p){if("undefined"===typeof c||"undefined"===typeof p)return!1;switch(n){case 0:return c===p;case 1:return c!==p;case 2:return c<p;case 3:return c<=p;case 4:return c>p;case 5:return c>=p;default:return!1}}})();
var nc={brightness:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float brightness;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= front.a;\nfront.rgb += (brightness - 1.0);\nfront.rgb *= a;\ngl_FragColor = front;\n}",pk:0,qk:0,Tm:!1,md:!0,Em:!1,ea:[["brightness",0,1]]}};function rc(c){this.b=c}
(function(){function c(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return ba.hasOwnProperty(a)&&ba[a].length?ba[a][0].Pc():E.destination}function n(){return E.createGain?E.createGain():E.createGainNode()}function p(a){return E.createDelay?E.createDelay(a):E.createDelayNode(a)}function g(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function h(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function f(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function b(a,b,c,d,e,f){this.type="filter";this.Za=[a,b,c,d,e,f];this.qa=n();this.aa=n();this.aa.gain.value=f;this.Y=n();this.Y.gain.value=1-f;this.bb=E.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?a:Hc[a];this.bb.frequency.value=b;this.bb.detune&&(this.bb.detune.value=c);this.bb.Q.value=d;this.bb.gain.value=e;this.qa.connect(this.bb);this.qa.connect(this.Y);this.bb.connect(this.aa)}function t(a,b,c){this.type="delay";this.Za=[a,b,c];this.qa=n();this.aa=n();this.aa.gain.value=
c;this.Y=n();this.Y.gain.value=1-c;this.Li=n();this.dd=p(a);this.dd.delayTime.value=a;this.lk=n();this.lk.gain.value=b;this.qa.connect(this.Li);this.qa.connect(this.Y);this.Li.connect(this.aa);this.Li.connect(this.dd);this.dd.connect(this.lk);this.lk.connect(this.Li)}function w(a,b,c,d){this.type="convolve";this.Za=[b,c,d];this.qa=n();this.aa=n();this.aa.gain.value=c;this.Y=n();this.Y.gain.value=1-c;this.If=E.createConvolver();a&&(this.If.normalize=b,this.If.buffer=a);this.qa.connect(this.If);this.qa.connect(this.Y);
this.If.connect(this.aa)}function a(a,b,c,d,e){this.type="flanger";this.Za=[a,b,c,d,e];this.qa=n();this.Y=n();this.Y.gain.value=1-e/2;this.aa=n();this.aa.gain.value=e/2;this.tk=n();this.tk.gain.value=d;this.dd=p(a+b);this.dd.delayTime.value=a;this.Db=E.createOscillator();this.Db.frequency.value=c;this.Jc=n();this.Jc.gain.value=b;this.qa.connect(this.dd);this.qa.connect(this.Y);this.dd.connect(this.aa);this.dd.connect(this.tk);this.tk.connect(this.dd);this.Db.connect(this.Jc);this.Jc.connect(this.dd.delayTime);
g(this.Db)}function e(a,b,c,d,e,f){this.type="phaser";this.Za=[a,b,c,d,e,f];this.qa=n();this.Y=n();this.Y.gain.value=1-f/2;this.aa=n();this.aa.gain.value=f/2;this.bb=E.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?7:"allpass";this.bb.frequency.value=a;this.bb.detune&&(this.bb.detune.value=b);this.bb.Q.value=c;this.Db=E.createOscillator();this.Db.frequency.value=e;this.Jc=n();this.Jc.gain.value=d;this.qa.connect(this.bb);this.qa.connect(this.Y);this.bb.connect(this.aa);this.Db.connect(this.Jc);
this.Jc.connect(this.bb.frequency);g(this.Db)}function d(a){this.type="gain";this.Za=[a];this.ua=n();this.ua.gain.value=a}function k(a,b){this.type="tremolo";this.Za=[a,b];this.ua=n();this.ua.gain.value=1-b/2;this.Db=E.createOscillator();this.Db.frequency.value=a;this.Jc=n();this.Jc.gain.value=b/2;this.Db.connect(this.Jc);this.Jc.connect(this.ua.gain);g(this.Db)}function u(a,b){this.type="ringmod";this.Za=[a,b];this.qa=n();this.aa=n();this.aa.gain.value=b;this.Y=n();this.Y.gain.value=1-b;this.hj=
n();this.hj.gain.value=0;this.Db=E.createOscillator();this.Db.frequency.value=a;this.Db.connect(this.hj.gain);g(this.Db);this.qa.connect(this.hj);this.qa.connect(this.Y);this.hj.connect(this.aa)}function L(a,b,c,d,e){this.type="distortion";this.Za=[a,b,c,d,e];this.qa=n();this.ul=n();this.tl=n();this.Lz(c,Math.pow(10,d/20));this.aa=n();this.aa.gain.value=e;this.Y=n();this.Y.gain.value=1-e;this.nm=E.createWaveShaper();this.jk=new Float32Array(65536);this.Ix(a,b);this.nm.jk=this.jk;this.qa.connect(this.ul);
this.qa.connect(this.Y);this.ul.connect(this.nm);this.nm.connect(this.tl);this.tl.connect(this.aa)}function v(a,b,c,d,e){this.type="compressor";this.Za=[a,b,c,d,e];this.ua=E.createDynamicsCompressor();try{this.ua.threshold.value=a,this.ua.knee.value=b,this.ua.ratio.value=c,this.ua.attack.value=d,this.ua.release.value=e}catch(f){}}function l(a,b){this.type="analyser";this.Za=[a,b];this.ua=E.createAnalyser();this.ua.fftSize=a;this.ua.smoothingTimeConstant=b;this.Gx=new Float32Array(this.ua.frequencyBinCount);
this.Qs=new Uint8Array(a);this.Vi=0}function q(){this.Ea=null;this.dl=0}function T(a,b){this.src=a;this.ja=J;this.gd=b;this.Mj=!1;var c=this;this.oo=this.yo=null;this.ih=[];this.El=0;this.vp=this.sk=this.Vs=this.pl=!1;1===J&&b&&!ab&&(this.ja=0,this.yo=n());this.je=this.za=null;var d;switch(this.ja){case 0:this.za=new Audio;this.za.crossOrigin="anonymous";this.za.addEventListener("canplaythrough",function(){c.vp=!0});1===J&&E.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Vs=!0,
this.za.addEventListener("canplay",function(){c.oo||(c.oo=E.createMediaElementSource(c.za),c.oo.connect(c.yo))}));this.za.autoplay=!1;this.za.JA="auto";this.za.src=a;break;case 1:C.ki?C.xq(a,function(a){c.je=a;c.oq()},function(){c.sk=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.je=d.response;c.oq()},d.onerror=function(){c.sk=!0},d.send());break;case 2:this.za=!0;break;case 3:this.za=!0}}function K(a,b){var c=this;this.tag=b;this.mb=this.Wd=!0;this.src=
a.src;this.buffer=a;this.ja=J;this.gd=a.gd;this.playbackRate=1;this.Og=!0;this.Gc=this.Xc=!1;this.zc=0;this.mi=this.Sg=this.Zd=!1;this.volume=1;this.wo=function(a){if(!c.Gc&&!c.Xc){var b=this;b||(b=a.target);b===c.Lj&&(c.Og=!0,c.mb=!0,W=c.tag,C.trigger(rc.prototype.m.Gj,S))}};this.Lj=null;this.Qg=1===O&&!this.gd||2===O;this.fh=1;this.startTime=this.Qg?C.cb.M:C.Je.M;this.jb=this.sb=null;this.$d=!1;this.Mb=null;this.hs=this.gs=this.es=this.ds=this.ks=this.js=0;this.u=null;var d=!1;1!==this.ja||0!==
this.buffer.ja||this.buffer.Vs||(this.ja=0);switch(this.ja){case 0:this.gd?(this.u=a.za,d=!a.Mj,a.Mj=!0):(this.u=new Audio,this.u.crossOrigin="anonymous",this.u.autoplay=!1,this.u.src=a.za.src,d=!0);d&&this.u.addEventListener("ended",function(){W=c.tag;c.mb=!0;C.trigger(rc.prototype.m.Gj,S)});break;case 1:this.sb=n();this.sb.connect(m(b));1===this.buffer.ja?a.za&&(this.u=E.createBufferSource(),this.u.buffer=a.za,this.u.connect(this.sb)):(this.u=this.buffer.za,this.buffer.yo.connect(this.sb),this.buffer.Mj||
(this.buffer.Mj=!0,this.buffer.za.addEventListener("ended",function(){W=c.tag;c.mb=!0;C.trigger(rc.prototype.m.Gj,S)})));break;case 2:this.u=new window.Media(U+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Og=!0,c.mb=!0,W=c.tag,C.trigger(rc.prototype.m.Gj,S))});break;case 3:this.u=!0}}function r(a){M(Ea);if(a.length){var b,c,d;b=0;for(c=x.length;b<c;b++)d=x[b],nb(a,d.tag)&&Ea.push(d)}else H&&!H.Xf()&&(M(Ea),Ea[0]=H)}function G(a){var b,c,d,e,f=E.destination;if(ba.hasOwnProperty(a)&&
(d=ba[a],d.length))for(f=d[0].Pc(),b=0,c=d.length;b<c;b++)e=d[b],b+1===c?e.bd(E.destination):e.bd(d[b+1].Pc());r(a);b=0;for(c=Ea.length;b<c;b++)Ea[b].xz(f);Oa&&Ib===a&&(Oa.disconnect(),Oa.connect(f))}function B(a,b){ba.hasOwnProperty(a)?ba[a].push(b):ba[a]=[b];G(a)}function D(){}function z(){}var F=rc.prototype;F.X=function(a){this.wa=a;this.b=a.b};F.X.prototype.J=function(){};var C=null,S=null,W="",U="",J=0,E=null,y=[],x=[],H=null,R=!1,O=0,I=!1,N=1,V=0,Z=0,Q=!1,ja=1,ea=1,ya=10,Ec=1E4,Gc=1,Oa=null,
Ib="",bb=!1,cb=[],ab=!1,ba={},Hc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.bd=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};b.prototype.remove=function(){this.qa.disconnect();this.bb.disconnect();this.aa.disconnect();this.Y.disconnect()};b.prototype.Pc=function(){return this.qa};t.prototype.bd=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};t.prototype.remove=function(){this.qa.disconnect();
this.Li.disconnect();this.dd.disconnect();this.lk.disconnect();this.aa.disconnect();this.Y.disconnect()};t.prototype.Pc=function(){return this.qa};w.prototype.bd=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};w.prototype.remove=function(){this.qa.disconnect();this.If.disconnect();this.aa.disconnect();this.Y.disconnect()};w.prototype.Pc=function(){return this.qa};a.prototype.bd=function(a){this.Y.disconnect();this.Y.connect(a);this.aa.disconnect();this.aa.connect(a)};
a.prototype.remove=function(){this.qa.disconnect();this.dd.disconnect();this.Db.disconnect();this.Jc.disconnect();this.Y.disconnect();this.aa.disconnect();this.tk.disconnect()};a.prototype.Pc=function(){return this.qa};e.prototype.bd=function(a){this.Y.disconnect();this.Y.connect(a);this.aa.disconnect();this.aa.connect(a)};e.prototype.remove=function(){this.qa.disconnect();this.bb.disconnect();this.Db.disconnect();this.Jc.disconnect();this.Y.disconnect();this.aa.disconnect()};e.prototype.Pc=function(){return this.qa};
d.prototype.bd=function(a){this.ua.disconnect();this.ua.connect(a)};d.prototype.remove=function(){this.ua.disconnect()};d.prototype.Pc=function(){return this.ua};k.prototype.bd=function(a){this.ua.disconnect();this.ua.connect(a)};k.prototype.remove=function(){this.Db.disconnect();this.Jc.disconnect();this.ua.disconnect()};k.prototype.Pc=function(){return this.ua};u.prototype.bd=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};u.prototype.remove=function(){this.Db.disconnect();
this.hj.disconnect();this.qa.disconnect();this.aa.disconnect();this.Y.disconnect()};u.prototype.Pc=function(){return this.qa};L.prototype.Lz=function(a,b){.01>a&&(a=.01);this.ul.gain.value=a;this.tl.gain.value=Math.pow(1/a,.6)*b};L.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};L.prototype.Ix=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.jk[32768+f]=e,this.jk[32768-
f-1]=-e};L.prototype.bd=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};L.prototype.remove=function(){this.qa.disconnect();this.ul.disconnect();this.nm.disconnect();this.tl.disconnect();this.aa.disconnect();this.Y.disconnect()};L.prototype.Pc=function(){return this.qa};v.prototype.bd=function(a){this.ua.disconnect();this.ua.connect(a)};v.prototype.remove=function(){this.ua.disconnect()};v.prototype.Pc=function(){return this.ua};l.prototype.Ia=function(){this.ua.getFloatFrequencyData(this.Gx);
this.ua.getByteTimeDomainData(this.Qs);for(var a=this.ua.fftSize,b=0,d=this.Vi=0,e=0;b<a;b++)e=(this.Qs[b]-128)/128,0>e&&(e=-e),this.Vi<e&&(this.Vi=e),d+=e*e;this.Vi=c(this.Vi);c(Math.sqrt(d/a))};l.prototype.bd=function(a){this.ua.disconnect();this.ua.connect(a)};l.prototype.remove=function(){this.ua.disconnect()};l.prototype.Pc=function(){return this.ua};q.prototype.jj=function(a){this.Ea=a};q.prototype.Kk=function(){return!!this.Ea};q.prototype.Ia=function(){};var qb=!1;T.prototype.yz=function(){var a,
b,c,d;c=a=0;for(b=x.length;a<b;++a)d=x[a],x[c]=d,d.buffer===this?d.stop():++c;x.length=c;this.je=this.za=null};T.prototype.oq=function(){if(!this.za&&this.je){var a=this;if(E.decodeAudioData)E.decodeAudioData(this.je,function(b){a.za=b;a.je=null;var c,d,e;if(ia(a.ql)||I)ia(a.ek)||(c=a.ek.If,c.normalize=a.Ur,c.buffer=b);else if(a.ih.length){c=0;for(d=a.ih.length;c<d;c++){b=a.ih[c];e=new K(a,b.Zs);e.Vo(!0);if("undefined"!==typeof b.Wr&&(b.Ea=C.Ek(b.Wr),!b.Ea))continue;if(b.Ea){var f=Ra(b.Ea.x,b.Ea.y,
-b.Ea.q.Kb(),V,Z,!0),g=Ra(b.Ea.x,b.Ea.y,-b.Ea.q.Kb(),V,Z,!1);e.Uo(f,g,Ha(b.Ea.n-b.Ea.q.Kb()),b.Bn,b.qo,b.so);e.jj(b.Ea)}else e.Uo(b.x,b.y,b.Wv,b.Bn,b.qo,b.so);e.play(a.eo,a.up,a.El);a.pl&&e.pause();x.push(e)}M(a.ih)}else e=new K(a,a.ql||""),e.play(a.eo,a.up,a.El),a.pl&&e.pause(),x.push(e)},function(){a.sk=!0});else if(this.za=E.createBuffer(this.je,!1),this.je=null,ia(this.ql)||I)ia(this.ek)||(b=this.ek.If,b.normalize=this.Ur,b.buffer=this.za);else{var b=new K(this,this.ql);b.play(this.eo,this.up,
this.El);this.pl&&b.pause();x.push(b)}}};T.prototype.cr=function(){switch(this.ja){case 0:var a=4<=this.za.readyState;a&&(this.vp=!0);return a||this.vp;case 1:return!!this.je||!!this.za;case 2:return!0;case 3:return!0}return!1};T.prototype.Cy=function(){switch(this.ja){case 0:return this.cr();case 1:return!!this.za;case 2:return!0;case 3:return!0}return!1};T.prototype.qy=function(){switch(this.ja){case 0:return!!this.za.error;case 1:return this.sk}return!1};K.prototype.Xf=function(){switch(this.ja){case 0:return this.u.ended;
case 1:return 1===this.buffer.ja?!this.Wd&&!this.mb&&this.u.loop||this.Gc?!1:this.Og:this.u.ended;case 2:return this.Og;case 3:!0}return!0};K.prototype.fw=function(){return this.Wd||this.mb?!0:this.Xf()};K.prototype.Vo=function(a){1===J&&(!this.$d&&a?this.sb&&(this.jb||(this.jb=E.createPanner(),this.jb.panningModel="number"===typeof this.jb.panningModel?ja:["equalpower","HRTF","soundfield"][ja],this.jb.distanceModel="number"===typeof this.jb.distanceModel?ea:["linear","inverse","exponential"][ea],
this.jb.refDistance=ya,this.jb.maxDistance=Ec,this.jb.rolloffFactor=Gc),this.sb.disconnect(),this.sb.connect(this.jb),this.jb.connect(m(this.tag)),this.$d=!0):this.$d&&!a&&this.sb&&(this.jb.disconnect(),this.sb.disconnect(),this.sb.connect(m(this.tag)),this.$d=!1))};K.prototype.Uo=function(a,b,c,d,e,f){this.$d&&1===J&&(this.jb.setPosition(a,b,0),this.jb.setOrientation(Math.cos(P(c)),Math.sin(P(c)),0),this.jb.coneInnerAngle=d,this.jb.coneOuterAngle=e,this.jb.coneOuterGain=f,this.js=a,this.ks=b,this.ds=
c,this.es=d,this.gs=e,this.hs=f)};K.prototype.jj=function(a){this.$d&&1===J&&(this.Mb||(this.Mb=new q),this.Mb.jj(a))};K.prototype.Ia=function(a){if(this.$d&&1===J&&this.Mb&&this.Mb.Kk()&&this.hi()){this.Mb.Ia(a);a=this.Mb.Ea;var b=Ra(a.x,a.y,-a.q.Kb(),V,Z,!0),c=Ra(a.x,a.y,-a.q.Kb(),V,Z,!1);this.jb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Mb.Ea.n&&(b=a.n-a.q.Kb(),this.jb.setOrientation(Math.cos(b),Math.sin(b),0))}};K.prototype.play=function(a,b,c,d){var e=this.u;this.Zd=a;this.volume=b;c=
c||0;d=d||0;switch(this.ja){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*N&&(e.volume=b*N);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(f){}if(this.gd&&bb&&!C.Fc)cb.push(this);else try{this.u.play()}catch(k){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",k)}break;case 1:this.muted=!1;this.fh=1;if(1===this.buffer.ja)this.sb.gain.value=b*N,this.Wd||(this.u=E.createBufferSource(),this.u.buffer=
this.buffer.za,this.u.connect(this.sb)),this.u.onended=this.wo,this.Lj=this.u,this.u.loop=a,this.Og=!1,0===c?g(this.u,d):h(this.u,c,this.Tf(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*N;if(e.currentTime!==c)try{e.currentTime=c}catch(l){}this.gd&&bb&&!C.Fc?cb.push(this):e.play()}break;case 2:(!this.Wd&&this.mb||0!==c)&&e.seekTo(c);e.play();this.Og=!1;break;case 3:C.hc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Qg?C.cb.M:C.Je.M)-c;this.Gc=this.mb=this.Wd=!1};K.prototype.stop=function(){switch(this.ja){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.ja?f(this.u):this.u.paused||this.u.pause();break;case 2:this.u.stop();break;case 3:C.hc&&AppMobi.context.stopSound(this.src)}this.mb=!0;this.Gc=!1};K.prototype.pause=function(){if(!(this.Wd||this.mb||this.Xf()||this.Gc)){switch(this.ja){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.ja?(this.zc=this.tn(!0),
this.Zd&&(this.zc=this.zc%this.Tf()),this.Gc=!0,f(this.u)):this.u.paused||this.u.pause();break;case 2:this.u.pause();break;case 3:C.hc&&AppMobi.context.stopSound(this.src)}this.Gc=!0}};K.prototype.Cz=function(){if(!(this.Wd||this.mb||this.Xf())&&this.Gc){switch(this.ja){case 0:this.u.play();break;case 1:1===this.buffer.ja?(this.u=E.createBufferSource(),this.u.buffer=this.buffer.za,this.u.connect(this.sb),this.u.onended=this.wo,this.Lj=this.u,this.u.loop=this.Zd,this.sb.gain.value=N*this.volume*this.fh,
this.hm(),this.startTime=(this.Qg?C.cb.M:C.Je.M)-this.zc/(this.playbackRate||.001),h(this.u,this.zc,this.Tf())):this.u.play();break;case 2:this.u.play();break;case 3:C.hc&&AppMobi.context.resumeSound(this.src)}this.Gc=!1}};K.prototype.seek=function(a){if(!(this.Wd||this.mb||this.Xf()))switch(this.ja){case 0:try{this.u.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ja)this.Gc?this.zc=a:(this.pause(),this.zc=a,this.Cz());else try{this.u.currentTime=a}catch(c){}break;case 3:C.hc&&AppMobi.context.seekSound(this.src,
a)}};K.prototype.xz=function(a){1===this.ja&&(this.$d?(this.jb.disconnect(),this.jb.connect(a)):(this.sb.disconnect(),this.sb.connect(a)))};K.prototype.Tf=function(){var a=0;switch(this.ja){case 0:"undefined"!==typeof this.u.duration&&(a=this.u.duration);break;case 1:a=this.buffer.za.duration;break;case 2:a=this.u.getDuration();break;case 3:C.hc&&(a=AppMobi.context.getDurationSound(this.src))}return a};K.prototype.tn=function(a){var b=this.Tf(),c=0;switch(this.ja){case 0:"undefined"!==typeof this.u.currentTime&&
(c=this.u.currentTime);break;case 1:if(1===this.buffer.ja){if(this.Gc)return this.zc;c=(this.Qg?C.cb.M:C.Je.M)-this.startTime}else"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 3:C.hc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Zd&&c>b&&(c=b);return c};K.prototype.hi=function(){return!this.Gc&&!this.Wd&&!this.mb&&!this.Xf()};K.prototype.Pz=function(){return!this.Wd&&!this.mb&&!this.Xf()};K.prototype.Wz=function(){var a=this.volume*
N;isFinite(a)||(a=0);switch(this.ja){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.ja?this.sb.gain.value=a*this.fh:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};K.prototype.nk=function(a){switch(this.ja){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.ja?(this.fh=a?0:1,this.sb.gain.value=N*this.volume*this.fh):this.u.muted!==!!a&&(this.u.muted=!!a)}};K.prototype.Is=function(a){this.Sg=
!!a;this.nk(this.Sg||this.mi)};K.prototype.Js=function(a){this.mi=!!a;this.nk(this.Sg||this.mi)};K.prototype.hm=function(){var a=this.playbackRate;this.Qg&&(a*=C.yf);switch(this.ja){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.ja?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};K.prototype.Nz=function(a){switch(this.ja){case 0:a?this.hi()?(this.Xc=!0,this.u.pause()):this.Xc=!1:this.Xc&&(this.u.play(),
this.Xc=!1);break;case 1:a?this.hi()?(this.Xc=!0,1===this.buffer.ja?(this.zc=this.tn(!0),this.Zd&&(this.zc=this.zc%this.Tf()),f(this.u)):this.u.pause()):this.Xc=!1:this.Xc&&(1===this.buffer.ja?(this.u=E.createBufferSource(),this.u.buffer=this.buffer.za,this.u.connect(this.sb),this.u.onended=this.wo,this.Lj=this.u,this.u.loop=this.Zd,this.sb.gain.value=N*this.volume*this.fh,this.hm(),this.startTime=(this.Qg?C.cb.M:C.Je.M)-this.zc/(this.playbackRate||.001),h(this.u,this.zc,this.Tf())):this.u.play(),
this.Xc=!1);break;case 2:a?this.hi()?(this.u.pause(),this.Xc=!0):this.Xc=!1:this.Xc&&(this.Xc=!1,this.u.play())}};F.R=function(a){function b(){if(!Q&&E.createBuffer){var a=E.createBuffer(1,220,22050),c=E.createBufferSource();c.buffer=a;c.connect(E.destination);g(c)}}this.type=a;C=this.b=a.b;S=this;this.Ic=null;this.Ai=-600;this.b.ki&&(ab=!0);!(this.b.oi||this.b.Pk&&(this.b.di||this.b.Qk))||this.b.Sk||this.b.Ta||this.b.Zq||ab||(bb=!0);E=null;"undefined"!==typeof AudioContext?(J=1,E=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(J=1,E=new webkitAudioContext);this.b.oi&&E&&(E.close&&E.close(),"undefined"!==typeof AudioContext?E=new AudioContext:"undefined"!==typeof webkitAudioContext&&(E=new webkitAudioContext));bb?document.addEventListener("touchend",function(){!qb&&E&&(b(),qb=!0);var a,c,d;if(bb){if(!I)for(a=0,c=cb.length;a<c;++a)d=cb[a],d.mb||d.Gc||d.u.play();M(cb)}},!0):ab&&document.addEventListener("touchend",function(){!qb&&E&&(b(),qb=!0)},!0);1!==J&&(this.b.Xd&&"undefined"!==
typeof window.Media?J=2:this.b.$q&&(J=3));2===J&&(U=location.href,a=U.lastIndexOf("/"),-1<a&&(U=U.substr(0,a+1)),U=U.replace("file://",""));if(this.b.Dy&&this.b.Ey&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.he(this);else{if(this.b.hc)R=this.b.Pk;else try{R=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){R=!1}this.b.xh(this)}};var ua=F.R.prototype;ua.J=function(){this.b.Bg=
this;O=this.B[0];this.Be=this.B[1];this.iz=0!==this.B[2];this.Sr=0;ja=this.B[3];ea=this.B[4];this.Ai=-this.B[5];ya=this.B[6];Ec=this.B[7];Gc=this.B[8];this.Ic=new q;var a=this.b.U||this.b.width,b=this.b.T||this.b.height;1===J&&(E.listener.setPosition(a/2,b/2,this.Ai),E.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Oa&&Oa.disconnect();Ib=b.toLowerCase();Oa=E.createMediaStreamSource(a);Oa.connect(m(Ib))});this.b.Xp(function(a){S.dz(a)});var c=this;this.b.Vp(function(a){c.Zy(a)})};
ua.Zy=function(a){var b,c,d;b=0;for(c=x.length;b<c;b++)d=x[b],d.Mb&&d.Mb.Ea===a&&(d.Mb.Ea=null,d.$d&&d.hi()&&d.Zd&&d.stop());this.Ic.Ea===a&&(this.Ic.Ea=null)};ua.Va=function(){var a={silent:I,masterVolume:N,listenerZ:this.Ai,listenerUid:this.Ic.Kk()?this.Ic.Ea.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,h;c=0;for(d=x.length;c<d;c++)e=x[c],!e.Pz()||3===this.Be||e.gd&&1===this.Be||!e.gd&&2===this.Be||(f=e.tn(),e.Zd&&(f=f%e.Tf()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.gd,playbackTime:f,
volume:e.volume,looping:e.Zd,muted:e.Sg,playbackRate:e.playbackRate,paused:e.Gc,resume_position:e.zc},e.$d&&(f.pan={},h=f.pan,e.Mb&&e.Mb.Kk()?h.objUid=e.Mb.Ea.uid:(h.x=e.js,h.y=e.ks,h.a=e.ds),h.ia=e.es,h.oa=e.gs,h.og=e.hs),b.push(f));b=a.effects;for(g in ba)if(ba.hasOwnProperty(g)){e=[];c=0;for(d=ba[g].length;c<d;c++)e.push({type:ba[g][c].type,params:ba[g][c].Za});b[g]=e}return a};var db=[];ua.gb=function(c){var f=c.silent;N=c.masterVolume;this.Ai=c.listenerZ;this.Ic.jj(null);var g=c.listenerUid;
-1!==g&&(this.Ic.dl=g,db.push(this.Ic));var g=c.playing,h,r,m,p,n,G,z,K,F,D,T;if(3!==this.Be)for(h=0,r=x.length;h<r;h++)F=x[h],F.gd&&1===this.Be||(F.gd||2!==this.Be)&&F.stop();for(n in ba)if(ba.hasOwnProperty(n))for(h=0,r=ba[n].length;h<r;h++)ba[n][h].remove();Wa(ba);for(n in c.effects)if(c.effects.hasOwnProperty(n))for(G=c.effects[n],h=0,r=G.length;h<r;h++)switch(m=G[h].type,D=G[h].params,m){case "filter":B(n,new b(D[0],D[1],D[2],D[3],D[4],D[5]));break;case "delay":B(n,new t(D[0],D[1],D[2]));break;
case "convolve":m=D[2];F=this.Bk(m,!1);F.za?m=new w(F.za,D[0],D[1],m):(m=new w(null,D[0],D[1],m),F.Ur=D[0],F.ek=m);B(n,m);break;case "flanger":B(n,new a(D[0],D[1],D[2],D[3],D[4]));break;case "phaser":B(n,new e(D[0],D[1],D[2],D[3],D[4],D[5]));break;case "gain":B(n,new d(D[0]));break;case "tremolo":B(n,new k(D[0],D[1]));break;case "ringmod":B(n,new u(D[0],D[1]));break;case "distortion":B(n,new L(D[0],D[1],D[2],D[3],D[4]));break;case "compressor":B(n,new v(D[0],D[1],D[2],D[3],D[4]));break;case "analyser":B(n,
new l(D[0],D[1]))}h=0;for(r=g.length;h<r;h++)3===this.Be||(c=g[h],m=c.buffersrc,p=c.is_music,n=c.tag,G=c.playbackTime,z=c.looping,K=c.volume,T=(D=c.pan)&&D.hasOwnProperty("objUid")?D.objUid:-1,p&&1===this.Be)||!p&&2===this.Be||((F=this.Dq(m,n,p,z,K))?(F.zc=c.resume_position,F.Vo(!!D),F.play(z,K,G),F.hm(),F.Wz(),F.nk(F.Sg||F.mi),c.paused&&F.pause(),c.muted&&F.Is(!0),F.nk(F.Sg||F.mi),D&&(-1!==T?(F.Mb=F.Mb||new q,F.Mb.dl=T,db.push(F.Mb)):F.Uo(D.x,D.y,D.a,D.ia,D.oa,D.og))):(F=this.Bk(m,p),F.El=G,F.pl=
c.paused,D&&(-1!==T?F.ih.push({Wr:T,Bn:D.ia,qo:D.oa,so:D.og,Zs:n}):F.ih.push({x:D.x,y:D.y,Wv:D.a,Bn:D.ia,qo:D.oa,so:D.og,Zs:n}))));if(f&&!I){h=0;for(r=x.length;h<r;h++)x[h].Js(!0);I=!0}else if(!f&&I){h=0;for(r=x.length;h<r;h++)x[h].Js(!1);I=!1}};ua.Pe=function(){var a,b,c,d;a=0;for(b=db.length;a<b;a++)c=db[a],d=this.b.Ek(c.dl),c.jj(d),c.dl=-1,d&&(V=d.x,Z=d.y);M(db)};ua.dz=function(a){if(!this.iz){!a&&E&&E.resume&&(E.resume(),Q=!1);var b,c;b=0;for(c=x.length;b<c;b++)x[b].Nz(a);a&&E&&E.suspend&&(E.suspend(),
Q=!0)}};ua.Ia=function(){var a=this.b.Mf,b,c,d;b=0;for(c=x.length;b<c;b++)d=x[b],d.Ia(a),0!==O&&d.hm();var e,f;for(e in ba)if(ba.hasOwnProperty(e))for(d=ba[e],b=0,c=d.length;b<c;b++)f=d[b],f.Ia&&f.Ia();1===J&&this.Ic.Kk()&&(this.Ic.Ia(a),V=this.Ic.Ea.x,Z=this.Ic.Ea.y,E.listener.setPosition(this.Ic.Ea.x,this.Ic.Ea.y,this.Ai))};var eb=[];ua.Mz=function(a){var b,c,d,e,f,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&R||!f&&!R)eb.push({filename:e,
size:d,Ea:null}),g+=d;return g};ua.Rz=function(){var a,b,c,d;a=0;for(b=eb.length;a<b;++a)c=eb[a],d=this.b.en+c.filename,c.Ea=this.Bk(d,!1)};ua.Sx=function(){var a=0,b,c,d;b=0;for(c=eb.length;b<c;++b)d=eb[b],d.Ea.Cy()||d.Ea.qy()||this.b.Ta||this.b.Qk?a+=d.size:d.Ea.cr()&&(a+=Math.floor(d.size/2));return a};ua.zz=function(){var a,b,c,d;c=a=0;for(b=y.length;a<b;++a)d=y[a],y[c]=d,d.gd?d.yz():++c;y.length=c};ua.Bk=function(a,b){var c,d,e,f=null;c=0;for(d=y.length;c<d;c++)if(e=y[c],e.src===a){f=e;break}f||
(ab&&b&&this.zz(),f=new T(a,b),y.push(f));return f};ua.Dq=function(a,b,c,d,e){var f,g,h;f=0;for(g=x.length;f<g;f++)if(h=x[f],h.src===a&&(h.fw()||c))return h.tag=b,h;a=this.Bk(a,c);if(!a.za)return"<preload>"!==b&&(a.ql=b,a.eo=d,a.up=e),null;h=new K(a,b);x.push(h);return h};var Ea=[];D.prototype.Gj=function(a){return nb(W,a)};F.m=new D;z.prototype.Zu=function(a,b,c,d,e){!I&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1<d&&(d=1),H=this.Dq(this.b.en+b.toLowerCase()+(R?".ogg":".m4a"),e,1===a,0!==
c,d))&&(H.Vo(!1),H.play(0!==c,d,0,this.Sr),this.Sr=0)};z.prototype.wv=function(a,b){r(a);var c,d;c=0;for(d=Ea.length;c<d;c++)Ea[c].Is(0===b)};z.prototype.Tp=function(a){r(a);var b;a=0;for(b=Ea.length;a<b;a++)Ea[a].stop()};z.prototype.Ct=function(a,c,d,e,f,g,h){1!==J||0>c||c>=Hc.length||!E.createBiquadFilter||(a=a.toLowerCase(),h=h/100,0>h&&(h=0),1<h&&(h=1),B(a,new b(c,d,e,f,g,h)))};z.prototype.$u=function(a){if(1===J){a=a.toLowerCase();var b,c,d;if(ba.hasOwnProperty(a)&&(d=ba[a],d.length)){b=0;for(c=
d.length;b<c;b++)d[b].remove();M(d);G(a)}}};F.A=new z;F.I=new function(){}})();function sc(c){this.b=c}
(function(){function c(){f&&b&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){t.cz(a)})}function m(){}function n(){}function p(b){console&&console.warn&&console.warn("Fullscreen request failed: ",b);a.setSize(window.innerWidth,window.innerHeight)}var g=sc.prototype;g.X=function(a){this.wa=a;this.b=a.b};var h=g.X.prototype;h.J=function(){};var f=!1,b=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.Qj){var a=document.createElement("script");
a.onload=function(){f=!0;c()};a.src="offlineClient.js";document.head.appendChild(a)}});var t=null;h.as=function(){b=!0;c()};g.R=function(a){this.type=a;this.b=a.b};h=g.R.prototype;h.J=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(sc.prototype.m.Ru,a)});t=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(sc.prototype.m.Ou,a)}),window.addEventListener("offline",function(){a.b.trigger(sc.prototype.m.Mu,a)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.ah=1;a.b.trigger(sc.prototype.m.Jj,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.ah=b.loaded/b.total||0}));this.b.hc||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(sc.prototype.m.Jj,a)}),document.addEventListener("backbutton",function(){a.b.trigger(sc.prototype.m.Fj,a)}),document.addEventListener("menubutton",function(){a.b.trigger(sc.prototype.m.Np,
a)}),document.addEventListener("searchbutton",function(){a.b.trigger(sc.prototype.m.Su,a)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(sc.prototype.m.Fj,a);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(sc.prototype.m.Np,a))||b.preventDefault()}}));this.b.On&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(sc.prototype.m.Fj,
a)&&(b.Jk=!0)}):this.b.Nn&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(sc.prototype.m.Fj,a)});this.b.Xp(function(b){b?a.b.trigger(sc.prototype.m.Pu,a):a.b.trigger(sc.prototype.m.Qu,a)});this.jr="undefined"!==typeof window.is_scirra_arcade};h.cz=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(sc.prototype.m.Uu,this):"update-ready"===a||"update-pending"===a?this.b.trigger(sc.prototype.m.Jj,this):"offline-ready"===a&&this.b.trigger(sc.prototype.m.Nu,
this)};m.prototype.Ou=function(){return!0};m.prototype.Mu=function(){return!0};m.prototype.Jj=function(){return!0};m.prototype.Qu=function(){return!0};m.prototype.Pu=function(){return!0};m.prototype.Ru=function(){return!0};m.prototype.ou=function(){return!!(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.b.Yd)};m.prototype.Fj=function(){return!0};m.prototype.Np=function(){return!0};m.prototype.Su=function(){return!0};m.prototype.Uu=function(){return!0};m.prototype.Jj=
function(){return!0};m.prototype.Nu=function(){return!0};g.m=new m;n.prototype.Nt=function(){this.b.Sc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.jr||this.b.Ta||window.close()};n.prototype.du=function(a,b){this.b.Sc?CocoonJS.App.openURL(a):this.b.fd?ejecta.openURL(a):this.b.Nn?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):
navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):this.b.Xd?window.open(a,"_system"):this.jr||this.b.Ta||window.open(a,b)};var w=!0,a=null;n.prototype.bv=function(b){this.b.Ta?ga("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=b&&(b+=1),6===b&&(b=2),this.b.er?this.b.br?debuggerFullscreen(!0):!this.b.Yd&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.Yd=!0,this.b.oe=2<=b?b:0):document.mozFullScreen||
document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.oe=2<=b?b:0,b=this.b.Jm||this.b.canvas,w&&(w=!1,a=this.b,b.addEventListener("mozfullscreenerror",p),b.addEventListener("webkitfullscreenerror",p),b.addEventListener("MSFullscreenError",p),b.addEventListener("fullscreenerror",p)),b.requestFullscreen?b.requestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.webkitRequestFullScreen&&
("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?b.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):b.webkitRequestFullScreen())))};n.prototype.Kt=function(){this.b.Ta?ga("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):this.b.er?this.b.br?debuggerFullscreen(!1):this.b.Yd&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.Yd=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?
document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};g.A=new n;g.I=new function(){}})();function qc(c){this.b=c}
(function(){function c(){this.name="";this.ej=0;this.Za=[]}function m(){b++;b===f.length&&f.push(new c);return f[b]}function n(){}function p(){}function g(){}var h=qc.prototype;h.X=function(b){this.wa=b;this.b=b.b};h.X.prototype.J=function(){};h.R=function(b){this.type=b;this.b=b.b};var f=[],b=-1;h.R.prototype.J=function(){var c=this;window.c2_callFunction=function(f,a){var e,d,g,h=m();h.name=f.toLowerCase();h.ej=0;if(a)for(h.Za.length=a.length,e=0,d=a.length;e<d;++e)g=a[e],h.Za[e]="number"===typeof g||
"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else M(h.Za);c.b.trigger(qc.prototype.m.Hj,c,h.name);b--;return h.ej}};n.prototype.Hj=function(c){var g=0>b?null:f[b];return g?nb(c,g.name):!1};n.prototype.Rt=function(c,g,a){var e=0>b?null:f[b];if(!e)return!1;c=A(c);return 0>c||c>=e.Za.length?!1:fc(e.Za[c],g,a)};h.m=new n;p.prototype.CallFunction=function(c,f){var a=m();a.name=c.toLowerCase();a.ej=0;Ba(a.Za,f);this.b.trigger(qc.prototype.m.Hj,this,a.name);b--};h.A=new p;g.prototype.Xu=function(c,
g){g=A(g);var a=0>b?null:f[b];a?0<=g&&g<a.Za.length?c.Xo(a.Za[g]):c.na(0):c.na(0)};g.prototype.Jt=function(c,f){var a=m();a.name=f.toLowerCase();a.ej=0;M(a.Za);var e,d;e=2;for(d=arguments.length;e<d;e++)a.Za.push(arguments[e]);this.b.trigger(qc.prototype.m.Hj,this,a.name);b--;c.Xo(a.ej)};h.I=new g})();function tc(c){this.b=c}
(function(){function c(){}var m=tc.prototype;m.X=function(c){this.wa=c;this.b=c.b};m.X.prototype.J=function(){};m.R=function(c){this.type=c;this.b=c.b;this.Wg=Array(256);this.xj=Array(256);this.Ie=0};var n=m.R.prototype;n.J=function(){var c=this;this.b.Ta||(jQuery(document).keydown(function(h){c.uo(h)}),jQuery(document).keyup(function(h){c.vo(h)}))};var p=[32,33,34,35,36,37,38,39,40,44];n.uo=function(c){var h=!1;window!=window.top&&-1<p.indexOf(c.which)&&(c.preventDefault(),h=!0,c.stopPropagation());
if(this.Wg[c.which])this.xj[c.which]&&!h&&c.preventDefault();else{this.Wg[c.which]=!0;this.Ie=c.which;this.b.Fc=!0;this.b.trigger(tc.prototype.m.Bu,this);var f=this.b.trigger(tc.prototype.m.Ip,this),b=this.b.trigger(tc.prototype.m.Ju,this);this.b.Fc=!1;if(f||b)this.xj[c.which]=!0,h||c.preventDefault()}};n.vo=function(c){this.Wg[c.which]=!1;this.Ie=c.which;this.b.Fc=!0;this.b.trigger(tc.prototype.m.Hp,this);var h=this.b.trigger(tc.prototype.m.Kp,this),f=this.b.trigger(tc.prototype.m.Jp,this);this.b.Fc=
!1;if(h||f||this.xj[c.which])this.xj[c.which]=!0,c.preventDefault()};n.rf=function(){var c;for(c=0;256>c;++c)if(this.Wg[c]){this.Wg[c]=!1;this.Ie=c;this.b.trigger(tc.prototype.m.Hp,this);var h=this.b.trigger(tc.prototype.m.Kp,this),f=this.b.trigger(tc.prototype.m.Jp,this);if(h||f)this.xj[c]=!0}};n.Va=function(){return{triggerKey:this.Ie}};n.gb=function(c){this.Ie=c.triggerKey};c.prototype.qu=function(c){return this.Wg[c]};c.prototype.Ip=function(c){return c===this.Ie};c.prototype.Bu=function(){return!0};
c.prototype.Hp=function(){return!0};c.prototype.Kp=function(c){return c===this.Ie};c.prototype.Ju=function(c){return c===this.Ie};c.prototype.Jp=function(c){return c===this.Ie};m.m=new c;m.A=new function(){};m.I=new function(){}})();function uc(c){this.b=c}
(function(){function c(){}function m(){}var n=uc.prototype;n.X=function(c){this.wa=c;this.b=c.b};n.X.prototype.J=function(){};n.R=function(c){this.type=c;this.b=c.b;this.Ef=Array(4);this.ht=this.em=this.wg=this.pf=this.of=0;this.Jk=!1};var p=n.R.prototype;p.J=function(){var c=this;if(!this.b.Ta){jQuery(document).mousemove(function(b){c.az(b)});jQuery(document).mousedown(function(b){c.$y(b)});jQuery(document).mouseup(function(b){c.bz(b)});jQuery(document).dblclick(function(b){c.Yy(b)});var f=function(b){c.ez(b)};
document.addEventListener("mousewheel",f,!1);document.addEventListener("DOMMouseScroll",f,!1)}};var g={left:0,top:0};p.az=function(c){var f=this.b.Ta?g:jQuery(this.b.canvas).offset();this.of=c.pageX-f.left;this.pf=c.pageY-f.top};p.Qr=function(){return 0<this.b.rc?!0:0<=this.of&&0<=this.pf&&this.of<this.b.width&&this.pf<this.b.height};p.$y=function(c){this.Qr()&&(this.Ef[c.which]=!0,this.b.Fc=!0,this.b.trigger(uc.prototype.m.Au,this),this.wg=c.which-1,this.em=0,this.b.trigger(uc.prototype.m.tm,this),
this.b.trigger(uc.prototype.m.um,this),this.b.Fc=!1)};p.bz=function(c){this.Ef[c.which]&&(this.b.Oq&&!this.b.Pg&&c.preventDefault(),this.b.Oq=!0,this.Ef[c.which]=!1,this.b.Fc=!0,this.wg=c.which-1,this.b.trigger(uc.prototype.m.Op,this),this.b.Fc=!1)};p.Yy=function(c){this.Qr()&&(c.preventDefault(),this.b.Fc=!0,this.wg=c.which-1,this.em=1,this.b.trigger(uc.prototype.m.tm,this),this.b.trigger(uc.prototype.m.um,this),this.b.Fc=!1)};p.ez=function(c){this.ht=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.Jk=!1;this.b.Fc=!0;this.b.trigger(uc.prototype.m.Wu,this);this.b.Fc=!1;this.Jk&&ob(c)&&c.preventDefault()};p.rf=function(){var c,f;c=0;for(f=this.Ef.length;c<f;++c)this.Ef[c]&&(this.Ef[c]=!1,this.wg=c-1,this.b.trigger(uc.prototype.m.Op,this))};c.prototype.tm=function(c,f){return c===this.wg&&f===this.em};c.prototype.Au=function(){return!0};c.prototype.Ep=function(c){return this.Ef[c+1]};c.prototype.Op=function(c){return c===this.wg};c.prototype.um=function(c,f,b){return c!==this.wg||f!==
this.em?!1:this.b.Uz(b,this.of,this.pf)};c.prototype.Wu=function(c){this.Jk=!0;return c===this.ht};n.m=new c;n.A=new function(){};m.prototype.wm=function(c,f){var b,g,m,a,e;ia(f)?(b=this.b.Rh(0),g=b.scale,m=b.Od,a=b.kd,e=b.n,b.scale=1,b.Od=1,b.kd=1,b.n=0,c.L(b.fc(this.of,this.pf,!0)),b.scale=g,b.Od=m,b.kd=a,b.n=e):(b=ka(f)?this.b.Rh(f):this.b.sn(f))?c.L(b.fc(this.of,this.pf,!0)):c.L(0)};m.prototype.xm=function(c,f){var b,g,m,a,e;ia(f)?(b=this.b.Rh(0),g=b.scale,m=b.Od,a=b.ld,e=b.n,b.scale=1,b.Od=1,
b.ld=1,b.n=0,c.L(b.fc(this.of,this.pf,!1)),b.scale=g,b.Od=m,b.ld=a,b.n=e):(b=ka(f)?this.b.Rh(f):this.b.sn(f))?c.L(b.fc(this.of,this.pf,!1)):c.L(0)};n.I=new m})();function vc(c){this.b=c}
(function(){function c(c){this.Ma=c;this.Oa=!1;this.n=this.speed=this.y=this.x=0;this.opacity=1;this.Qe=this.Ng=this.size=this.Fk=0}var m=vc.prototype;m.X=function(c){this.wa=c;this.b=c.b};var n=m.X.prototype;n.J=function(){this.O||(this.W=new Image,this.W.Rm=this.Wl,this.xa=null,this.b.mm(this.W,this.tj))};n.Ti=function(){this.O||(this.xa=null)};n.Ui=function(){this.O||!this.k.length||this.xa||(this.xa=this.b.F.$g(this.W,!0,this.b.La,this.uj))};n.cl=function(){this.O||this.xa||!this.b.F||(this.xa=
this.b.F.$g(this.W,!0,this.b.La,this.uj))};n.vj=function(){this.O||this.k.length||!this.xa||(this.b.F.deleteTexture(this.xa),this.xa=null)};n.Yi=function(c){c.drawImage(this.W,0,0)};c.prototype.init=function(){var c=this.Ma;this.x=c.x-c.om/2+Math.random()*c.om;this.y=c.y-c.pm/2+Math.random()*c.pm;this.speed=c.Gn-c.Sl/2+Math.random()*c.Sl;this.n=c.n-c.Tl/2+Math.random()*c.Tl;this.opacity=c.En;this.size=c.Fn-c.Rl/2+Math.random()*c.Rl;this.Fk=c.yn-c.Gk/2+Math.random()*c.Gk;this.Qe=this.Ng=0};c.prototype.Ia=
function(c){var h=this.Ma;this.x+=Math.cos(this.n)*this.speed*c;this.y+=Math.sin(this.n)*this.speed*c;this.y+=this.Ng*c;this.speed+=h.yb*c;this.size+=this.Fk*c;this.Ng+=h.df*c;this.Qe+=c;1>this.size?this.Oa=!1:(0!==h.wi&&(this.n+=Math.random()*h.wi*c-h.wi*c/2),0!==h.yi&&(this.speed+=Math.random()*h.yi*c-h.yi*c/2),0!==h.xi&&(this.opacity+=Math.random()*h.xi*c-h.xi*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=h.Hg&&this.Qe>=h.timeout&&(this.Oa=!1),2===h.Hg&&0>=this.speed&&
(this.Oa=!1))};c.prototype.ed=function(c){var h=this.Ma.opacity*this.opacity;if(0!==h){0===this.Ma.Hg&&(h*=1-this.Qe/this.Ma.timeout);c.globalAlpha=h;var h=this.x-this.size/2,f=this.y-this.size/2;this.Ma.b.Wc&&(h=h+.5|0,f=f+.5|0);c.drawImage(this.Ma.type.W,h,f,this.size,this.size)}};c.prototype.Xb=function(c){var h=this.Ma.opacity*this.opacity;0===this.Ma.Hg&&(h*=1-this.Qe/this.Ma.timeout);var f=this.size,b=f*this.Ma.ns,m=this.x-f/2,n=this.y-f/2;this.Ma.b.Wc&&(m=m+.5|0,n=n+.5|0);1>b||0===h||(b<c.Sy||
b>c.fo?(c.vf(h),c.mh(m,n,m+f,n,m+f,n+f,m,n+f)):c.jz(this.x,this.y,b,h))};c.prototype.left=function(){return this.x-this.size/2};c.prototype.right=function(){return this.x+this.size/2};c.prototype.top=function(){return this.y-this.size/2};c.prototype.bottom=function(){return this.y+this.size/2};m.R=function(c){this.type=c;this.b=c.b};var n=m.R.prototype,p=[];n.J=function(){var c=this.B;this.zl=c[0];this.Tl=P(c[1]);this.sh=c[2];this.cp=!0;this.Gn=c[3];this.Fn=c[4];this.En=c[5]/100;this.yn=c[6];this.om=
c[7];this.pm=c[8];this.Sl=c[9];this.Rl=c[10];this.Gk=c[11];this.yb=c[12];this.df=c[13];this.wi=c[14];this.yi=c[15];this.xi=c[16];this.Hg=c[17];this.timeout=c[18];this.pg=0;this.ns=1;this.ml=this.x;this.ol=this.y;this.nl=this.x;this.ll=this.y;this.Yv(function(c){c.Ja.set(c.ml,c.ol,c.nl,c.ll);c.qc.sg(c.Ja);c.Vj=!1;c.sp();c.tt()});this.Kc||(this.jc=[]);this.b.xh(this);this.type.cl();if(1===this.sh)for(c=0;c<this.zl;c++)this.Bm().opacity=0;this.wk=!0};n.Va=function(){var c={r:this.zl,sc:this.Tl,st:this.sh,
s:this.cp,isp:this.Gn,isz:this.Fn,io:this.En,gr:this.yn,xr:this.om,yr:this.pm,spr:this.Sl,szr:this.Rl,grnd:this.Gk,acc:this.yb,g:this.df,lar:this.wi,lsr:this.yi,lor:this.xi,dm:this.Hg,to:this.timeout,pcc:this.pg,ft:this.wk,p:[]},h,f,b,m=c.p;h=0;for(f=this.jc.length;h<f;h++)b=this.jc[h],m.push([b.x,b.y,b.speed,b.n,b.opacity,b.Fk,b.size,b.Ng,b.Qe]);return c};n.gb=function(c){this.zl=c.r;this.Tl=c.sc;this.sh=c.st;this.cp=c.s;this.Gn=c.isp;this.Fn=c.isz;this.En=c.io;this.yn=c.gr;this.om=c.xr;this.pm=
c.yr;this.Sl=c.spr;this.Rl=c.szr;this.Gk=c.grnd;this.yb=c.acc;this.df=c.g;this.wi=c.lar;this.yi=c.lsr;this.xi=c.lor;this.Hg=c.dm;this.timeout=c.to;this.pg=c.pcc;this.wk=c.ft;p.push.apply(p,this.jc);M(this.jc);var h,f,b,m=c.p;c=0;for(h=m.length;c<h;c++)f=this.Bm(),b=m[c],f.x=b[0],f.y=b[1],f.speed=b[2],f.n=b[3],f.opacity=b[4],f.Fk=b[5],f.size=b[6],f.Ng=b[7],f.Qe=b[8]};n.qf=function(){p.push.apply(p,this.jc);M(this.jc)};n.Bm=function(){var g;p.length?(g=p.pop(),g.Ma=this):g=new c(this);this.jc.push(g);
g.Oa=!0;return g};n.Ia=function(){var c=this.b.pe(this),h,f,b,m;if(0===this.sh&&this.cp)for(this.pg+=c*this.zl,f=A(this.pg),this.pg-=f,h=0;h<f;h++)b=this.Bm(),b.init();this.ml=this.x;this.ol=this.y;this.nl=this.x;this.ll=this.y;m=h=0;for(f=this.jc.length;h<f;h++)b=this.jc[h],this.jc[m]=b,this.b.fa=!0,1===this.sh&&this.wk&&b.init(),b.Ia(c),b.Oa?(b.left()<this.ml&&(this.ml=b.left()),b.right()>this.nl&&(this.nl=b.right()),b.top()<this.ol&&(this.ol=b.top()),b.bottom()>this.ll&&(this.ll=b.bottom()),m++):
p.push(b);Aa(this.jc,m);this.K();this.wk=!1;1===this.sh&&0===this.jc.length&&this.b.he(this)};n.ed=function(c){var h,f,b,m=this.q;h=0;for(f=this.jc.length;h<f;h++)b=this.jc[h],b.right()>=m.ra&&b.bottom()>=m.ta&&b.left()<=m.Da&&b.top()<=m.Ca&&b.ed(c)};n.Xb=function(c){this.ns=this.q.Qc();c.Ac(this.type.xa);var h,f,b,m=this.q;h=0;for(f=this.jc.length;h<f;h++)b=this.jc[h],b.right()>=m.ra&&b.bottom()>=m.ta&&b.left()<=m.Da&&b.top()<=m.Ca&&b.Xb(c)};m.m=new function(){};m.A=new function(){};m.I=new function(){}})();
function Y(c){this.b=c}
(function(){function c(){if(0===this.Wm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.uh?b.drawImage(this.W,this.gh,this.hh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.W,0,0,this.width,this.height);this.Wm=a.toDataURL("image/png")}return this.Wm}function m(){}function n(a){a[0]=0;a[1]=0;a[2]=0;k.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function g(a,b,c,d){b=b.uid;c=c.uid;var e=p(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=k.length?k.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function h(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function f(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return u=a[b][2],!0;u=-2;return!1}function b(){}function t(){}var w=Y.prototype;w.X=function(a){this.wa=a;this.b=a.b};var a=w.X.prototype;a.J=function(){if(!this.O){var a,b,d,e,f,g,h,k,l;this.ud=[];this.Xh=!1;a=0;for(b=this.Dc.length;a<b;a++){f=this.Dc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];
h.Lo=f[3];h.Mo=f[4];h.os=f[5];h.ka=f[6];h.frames=[];d=0;for(e=f[7].length;d<e;d++)g=f[7][d],k={},k.tj=g[0],k.Wl=g[1],k.gh=g[2],k.hh=g[3],k.width=g[4],k.height=g[5],k.duration=g[6],k.tc=g[7],k.uc=g[8],k.Dn=g[9],k.rl=g[10],k.ps=g[11],k.uh=0!==k.width,k.Wm="",k.HA=c,l={left:0,top:0,right:1,bottom:1},k.Yo=l,k.xa=null,(l=this.b.Ex(g[0]))?k.W=l:(k.W=new Image,k.W.iw=g[0],k.W.Rm=g[1],k.W.ew=null,this.b.mm(k.W,g[0])),h.frames.push(k),this.ud.push(k);this.Dc[a]=h}}};a.qt=function(){var a,b,c;a=0;for(b=this.k.length;a<
b;a++)c=this.k[a],c.gk=c.rb.xa};a.Ti=function(){if(!this.O){var a,b,c;a=0;for(b=this.ud.length;a<b;++a)c=this.ud[a],c.W.ew=null,c.xa=null;this.Xh=!1;this.qt()}};a.Ui=function(){if(!this.O&&this.k.length){var a,b,c;a=0;for(b=this.ud.length;a<b;++a)c=this.ud[a],c.xa=this.b.F.$g(c.W,!1,this.b.La,c.ps);this.qt()}};a.cl=function(){if(!this.O&&!this.Xh&&this.b.F){var a,b,c;a=0;for(b=this.ud.length;a<b;++a)c=this.ud[a],c.xa=this.b.F.$g(c.W,!1,this.b.La,c.ps);this.Xh=!0}};a.vj=function(){if(!this.O&&!this.k.length&&
this.Xh){var a,b,c;a=0;for(b=this.ud.length;a<b;++a)c=this.ud[a],this.b.F.deleteTexture(c.xa),c.xa=null;this.Xh=!1}};var e=[];a.Yi=function(a){var b,c,d;M(e);b=0;for(c=this.ud.length;b<c;++b)d=this.ud[b].W,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};w.R=function(a){this.type=a;this.b=a.b;a=this.type.Dc[0].frames[0].rl;this.Kc?this.la.kj(a):this.la=new hb(a)};var d=w.R.prototype;d.J=function(){this.visible=0===this.B[0];this.Mk=this.ji=!1;this.Qd=0!==this.B[3];this.Ka=this.Cq(this.B[1])||this.type.Dc[0];
this.N=this.B[2];0>this.N&&(this.N=0);this.N>=this.Ka.frames.length&&(this.N=this.Ka.frames.length-1);var a=this.Ka.frames[this.N];this.la.kj(a.rl);this.tc=a.tc;this.uc=a.uc;this.Fg=this.Ka.speed;this.bf=this.Ka.Mo;1===this.type.Dc.length&&1===this.type.Dc[0].frames.length||0===this.Fg||(this.b.xh(this),this.ji=!0);this.Kc?this.Pd.reset():this.Pd=new fb;this.ne=this.Pd.M;this.Cf=!0;this.ie=0;this.Bf=!0;this.Cg=this.Yp="";this.jq=0;this.Zj=-1;this.type.cl();var b,c,d,e,f,g,h,a=0;for(b=this.type.Dc.length;a<
b;a++)for(e=this.type.Dc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.W.width,f.height=f.W.height),f.uh&&(h=f.W,g=f.Yo,g.left=f.gh/h.width,g.top=f.hh/h.height,g.right=(f.gh+f.width)/h.width,g.bottom=(f.hh+f.height)/h.height,0===f.gh&&0===f.hh&&f.width===h.width&&f.height===h.height&&(f.uh=!1));this.rb=this.Ka.frames[this.N];this.gk=this.rb.xa};d.Va=function(){var a={a:this.Ka.ka,f:this.N,cas:this.Fg,fs:this.ne,ar:this.ie,at:this.Pd.M,rt:this.bf};this.Cf||(a.ap=this.Cf);this.Bf||
(a.af=this.Bf);return a};d.gb=function(a){var b=this.Jx(a.a);b&&(this.Ka=b);this.N=a.f;0>this.N&&(this.N=0);this.N>=this.Ka.frames.length&&(this.N=this.Ka.frames.length-1);this.Fg=a.cas;this.ne=a.fs;this.ie=a.ar;this.Pd.reset();this.Pd.M=a.at;this.Cf=a.hasOwnProperty("ap")?a.ap:!0;this.Bf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.bf=a.rt:this.bf=this.Ka.Mo;this.rb=this.Ka.frames[this.N];this.gk=this.rb.xa;this.la.kj(this.rb.rl);this.tc=this.rb.tc;this.uc=this.rb.uc};d.Fm=function(a){this.N=
a?0:this.Ka.frames.length-1;this.Cf=!1;this.Yp=this.Ka.name;this.Mk=!0;this.b.trigger(Y.prototype.m.zu,this);this.b.trigger(Y.prototype.m.Gp,this);this.Mk=!1;this.ie=0};d.Qj=function(){return this.Pd.M};d.Ia=function(){this.Pd.add(this.b.pe(this));this.Cg.length&&this.pq();0<=this.Zj&&this.qq();var a=this.Pd.M,b=this.Ka,c=b.frames[this.N],d=c.duration/this.Fg;this.Cf&&a>=this.ne+d&&(this.Bf?this.N++:this.N--,this.ne+=d,this.N>=b.frames.length&&(b.os?(this.Bf=!1,this.N=b.frames.length-2):b.loop?this.N=
this.bf:(this.ie++,this.ie>=b.Lo?this.Fm(!1):this.N=this.bf)),0>this.N&&(b.os?(this.N=1,this.Bf=!0,b.loop||(this.ie++,this.ie>=b.Lo&&this.Fm(!0))):b.loop?this.N=this.bf:(this.ie++,this.ie>=b.Lo?this.Fm(!0):this.N=this.bf)),0>this.N?this.N=0:this.N>=b.frames.length&&(this.N=b.frames.length-1),a>this.ne+b.frames[this.N].duration/this.Fg&&(this.ne=a),a=b.frames[this.N],this.Ag(c,a),this.b.fa=!0)};d.Cq=function(a){var b,c,d;b=0;for(c=this.type.Dc.length;b<c;b++)if(d=this.type.Dc[b],nb(d.name,a))return d;
return null};d.Jx=function(a){var b,c,d;b=0;for(c=this.type.Dc.length;b<c;b++)if(d=this.type.Dc[b],d.ka===a)return d;return null};d.pq=function(){var a=this.Ka.frames[this.N],b=this.Cq(this.Cg);this.Cg="";!b||nb(b.name,this.Ka.name)&&this.Cf||(this.Ka=b,this.Fg=b.speed,this.bf=b.Mo,0>this.N&&(this.N=0),this.N>=this.Ka.frames.length&&(this.N=this.Ka.frames.length-1),1===this.jq&&(this.N=0),this.Cf=!0,this.ne=this.Pd.M,this.Bf=!0,this.Ag(a,this.Ka.frames[this.N]),this.b.fa=!0)};d.qq=function(){var a=
this.Ka.frames[this.N],b=this.N;this.N=A(this.Zj);0>this.N&&(this.N=0);this.N>=this.Ka.frames.length&&(this.N=this.Ka.frames.length-1);b!==this.N&&(this.Ag(a,this.Ka.frames[this.N]),this.ne=this.Pd.M,this.b.fa=!0);this.Zj=-1};d.Ag=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.tc=b.tc;this.uc=b.uc;this.la.kj(b.rl);this.K();this.rb=b;this.gk=b.xa;c=0;for(d=this.S.length;c<d;c++)e=this.S[c],e.bs&&e.bs(a,b);this.b.trigger(Y.prototype.m.Ag,
this)};d.ed=function(a){a.globalAlpha=this.opacity;var b=this.rb,c=b.uh,d=b.W,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.n&&0<=g&&0<=h)e-=this.tc*g,f-=this.uc*h,this.b.Wc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.gh,b.hh,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.Wc&&(e=Math.round(e),f=Math.round(f));a.save();var k=0<g?1:-1,l=0<h?1:-1;a.translate(e,f);1===k&&1===l||a.scale(k,l);a.rotate(this.n*k*l);e=0-this.tc*oa(g);f=0-this.uc*oa(h);c?a.drawImage(d,b.gh,
b.hh,b.width,b.height,e,f,oa(g),oa(h)):a.drawImage(d,e,f,oa(g),oa(h));a.restore()}};d.Lf=function(a){this.Xb(a)};d.Xb=function(a){a.Ac(this.gk);a.vf(this.opacity);var b=this.rb,c=this.qc;if(this.b.Wc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.uh?a.Ae(c.nb+d,c.ob+e,c.Sb+d,c.Tb+e,c.Gb+d,c.Hb+e,c.Eb+d,c.Fb+e,b.Yo):a.mh(c.nb+d,c.ob+e,c.Sb+d,c.Tb+e,c.Gb+d,c.Hb+e,c.Eb+d,c.Fb+e)}else b.uh?a.Ae(c.nb,c.ob,c.Sb,c.Tb,c.Gb,c.Hb,c.Eb,c.Fb,b.Yo):a.mh(c.nb,c.ob,c.Sb,c.Tb,c.Gb,c.Hb,c.Eb,c.Fb)};
d.Ox=function(a){var b=this.rb,c,d;c=0;for(d=b.Dn.length;c<d;c++)if(nb(a,b.Dn[c][0]))return c;return-1};d.Uf=function(a,b){var c=this.rb,d=c.Dn,e;la(a)?e=this.Ox(a):e=a-1;e=A(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.tc)*this.width,d=d[e][2],d=(d-c.uc)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var k=[],u=-2,L=[];m.prototype.Du=function(a){if(!a)return!1;var b=this.b,c=b.Sf(),d=c.type,e=null;c.P.collmemory?e=c.P.collmemory:
(e={},c.P.collmemory=e);c.P.spriteCreatedDestroyCallback||(c.P.spriteCreatedDestroyCallback=!0,b.Vp(function(a){var b=c.P.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(n(b[d]),delete b[d])}));var k=d.V(),l=a.V(),k=k.Yb(),q,m,v,p,t,K,T,w=this.b.Ge,R=w-1,O=b.Sa().Xa;for(m=0;m<k.length;m++){v=k[m];l.Z?(v.Ga(),this.b.nn(v.q,a,v.Ja,L),q=L):q=l.Yb();for(p=0;p<q.length;p++)t=q[p],b.Fe(v,t)||b.gw(v,t)?(K=f(e,v,t),K=!K||u<R,g(e,v,t,w),K&&(b.kh(O.Ba),K=d.V(),T=a.V(),
K.Z=!1,T.Z=!1,d===a?(K.k.length=2,K.k[0]=v,K.k[1]=t,d.vd()):(K.k.length=1,T.k.length=1,K.k[0]=v,T.k[0]=t,d.vd(),a.vd()),O.fj(),b.ze(O.Ba))):h(e,v,t);M(L)}return!1};var v=null,l=new da,q=!1,T=[],K=new va(0,0,0,0);a.finish=function(a){if(q){if(a){var b=this.b.Sa().Xa.Vc;a=v.V();var c=l.rd(),d,e;if(a.Z){a.Z=!1;M(a.k);d=0;for(e=c.length;d<e;++d)a.k[d]=c[d];if(b)for(M(a.ca),d=0,e=v.k.length;d<e;++d)c=v.k[d],l.contains(c)||a.ca.push(c)}else if(b)for(b=a.k.length,d=0,e=c.length;d<e;++d)a.k[b+d]=c[d],Fa(a.ca,
c[d]);else Ba(a.k,c);v.vd()}l.clear();q=!1}};m.prototype.uu=function(a){if(a){var b=!1,c,d,e,f=this.b.Sf(),g=f.type,f=f.ci;c=a.V();d=this.b.Sa().Xa.Vc;var h;c.Z?(this.Ga(),K.Eg(this.Ja),K.offset(0,0),this.b.nn(this.q,a,K,T),h=T):h=d?this.b.zy()&&!c.ca.length&&c.k.length?c.k:c.ca:c.k;v=a;q=g!==a&&!f;c=0;for(d=h.length;c<d;c++)if(e=h[c],this.b.Fe(this,e)){b=!0;if(f)break;g!==a&&l.add(e)}M(T);a=b}else a=!1;return a};m.prototype.ku=function(a){return this.Cg.length?nb(this.Cg,a):nb(this.Ka.name,a)};m.prototype.Pt=
function(a,b){return fc(this.N,a,b)};m.prototype.Gp=function(a){return nb(this.Yp,a)};m.prototype.zu=function(){return!0};m.prototype.Ag=function(){return!0};m.prototype.nu=function(){return 0>this.height};w.m=new m;b.prototype.Jv=function(a,b,c){if(a&&b&&(b=this.b.Sm(a,b,this.Uf(c,!0),this.Uf(c,!1)))){"undefined"!==typeof b.n&&(b.n=this.n,b.K());this.b.Tc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.wa).m.Af,b);if(b.Zb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.wa).m.Af,
f);this.b.Tc--;d=this.b.Lx();c=!1;if(ia(d.P.Spawn_LastExec)||d.P.Spawn_LastExec<this.b.Rf)c=!0,d.P.Spawn_LastExec=this.b.Rf;if(a!=this.type&&(a=a.V(),a.Z=!1,c?(M(a.k),a.k[0]=b):a.k.push(b),b.Zb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.V(),a.Z=!1,c?(M(a.k),a.k[0]=f):a.k.push(f)}};b.prototype.kv=function(a,b){this.Cg=a;this.jq=b;this.ji||(this.b.xh(this),this.ji=!0);this.Mk||this.pq()};b.prototype.lv=function(a){this.Zj=a;this.ji||(this.b.xh(this),this.ji=!0);this.Mk||this.qq()};
b.prototype.vv=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.K())};b.prototype.pv=function(a){a=oa(this.height)*(0===a?-1:1);this.height!==a&&(this.height=a,this.K())};w.A=new b;t.prototype.Ht=function(a){a.na(this.N)};t.prototype.hu=function(a,b){a.L(this.Uf(b,!0))};t.prototype.iu=function(a,b){a.L(this.Uf(b,!1))};t.prototype.ju=function(a){a.L(this.rb.width)};t.prototype.gu=function(a){a.L(this.rb.height)};w.I=new t})();function wc(c){this.b=c}
(function(){function c(a,b){return a.length?a.pop():new b}function m(a,b,c){if(c){var e;c=0;for(e=b.length;c<e;c++)a.length<f&&a.push(b[c]);M(b)}else for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a.length<f&&a.push(b[e]),delete b[e])}function n(a,e,f){var g=a.hg;f=f.replace(/\s\s*$/,"");e>=g.length&&g.push(c(b,Object));e=g[e];e.text=f;e.width=a.no(f);a.wh=pa(a.wh,e.width)}function p(){}var g=wc.prototype;g.J=function(){};g.X=function(a){this.wa=a;this.b=a.b};var h=g.X.prototype;h.J=function(){this.O||
(this.W=new Image,this.b.mm(this.W,this.tj),this.xa=null)};h.Ti=function(){this.O||(this.xa=null)};h.Ui=function(){if(!this.O&&this.k.length){this.xa||(this.xa=this.b.F.$g(this.W,!1,this.b.La,this.uj));var a,b;a=0;for(b=this.k.length;a<b;a++)this.k[a].xa=this.xa}};h.vj=function(){this.O||this.k.length||!this.xa||(this.b.F.deleteTexture(this.xa),this.xa=null)};h.Yi=function(a){a.drawImage(this.W,0,0)};g.R=function(a){this.type=a;this.b=a.b};h=g.R.prototype;h.qf=function(){m(b,this.hg,!0);m(t,this.ak,
!1);m(w,this.bk,!1);Wa(this.Xe)};h.J=function(){this.W=this.type.W;this.$j=this.B[0];this.Ve=this.B[1];this.characterSet=this.B[2];this.text=this.B[3];this.We=this.B[4];this.visible=0===this.B[5];this.Ik=this.B[6]/2;this.jm=this.B[7]/2;this.bA=0===this.B[9];this.Dg=this.B[10];this.lineHeight=this.B[11];this.vg=this.wh=0;this.Kc?(M(this.hg),Wa(this.ak),Wa(this.bk),Wa(this.Xe)):(this.hg=[],this.ak={},this.bk={},this.Xe={});this.sj=!0;this.Xn=this.width;this.b.F&&(this.type.xa||(this.type.xa=this.b.F.$g(this.type.W,
!1,this.b.La,this.type.uj)),this.xa=this.type.xa);this.Kv()};h.Va=function(){var a={t:this.text,csc:this.We,csp:this.Dg,lh:this.lineHeight,tw:this.wh,th:this.vg,lrt:this.Iy,ha:this.Ik,va:this.jm,cw:{}},b;for(b in this.Xe)a.cw[b]=this.Xe[b];return a};h.gb=function(a){this.text=a.t;this.We=a.csc;this.Dg=a.csp;this.lineHeight=a.lh;this.wh=a.tw;this.vg=a.th;this.Iy=a.lrt;a.hasOwnProperty("ha")&&(this.Ik=a.ha);a.hasOwnProperty("va")&&(this.jm=a.va);for(var b in a.cw)this.Xe[b]=a.cw[b];this.sj=!0;this.Xn=
this.width};var f=1E3,b=[],t=[],w=[];h.Kv=function(){for(var a=this.W,b=a.width,e=a.height,a=this.$j,f=this.Ve,g=a/b,h=f/e,q=this.characterSet,b=Math.floor(b/a),e=Math.floor(e/f),m=0;m<q.length&&!(m>=b*e);m++){var n=m%b,r=Math.floor(m/b),p=q.charAt(m);if(this.b.F){var B=this.bk,D=n*g,z=r*h,n=(n+1)*g,r=(r+1)*h;void 0===B[p]&&(B[p]=c(w,va));B[p].left=D;B[p].top=z;B[p].right=n;B[p].bottom=r}else B=this.ak,n=n*a,r=r*f,D=a,z=f,void 0===B[p]&&(B[p]=c(t,Object)),B[p].x=n,B[p].y=r,B[p].lm=D,B[p].Hk=z}};var a=
[];g.Ov=function(b){M(a);for(var c="",e,f=0;f<b.length;)if(e=b.charAt(f),"\n"===e)c.length&&(a.push(c),c=""),a.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do c+=b.charAt(f),f++;while(f<b.length&&(" "===b.charAt(f)||"\t"===b.charAt(f)));a.push(c);c=""}else f<b.length&&(c+=e,f++);c.length&&a.push(c)};g.Tv=function(a){var e=a.text,f=a.hg;if(e&&e.length){var g=a.width;if(2>=g)m(b,f,!0);else{var h=a.We,l=a.Dg;if(e.length*(a.$j*h+l)-l<=g&&-1===e.indexOf("\n")&&(l=a.no(e),l<=g)){m(b,f,!0);f.push(c(b,
Object));f[0].text=e;f[0].width=l;a.wh=l;a.vg=a.Ve*h+a.lineHeight;return}this.Uv(a);a.vg=f.length*(a.Ve*h+a.lineHeight)}}else m(b,f,!0)};g.Uv=function(c){var e=c.bA,g=c.text,h=c.hg,m=c.width;e&&(this.Ov(g),g=a);var l="",q,p,t,r=0,G=!1;for(t=0;t<g.length;t++)"\n"===g[t]?(!0===G?G=!1:(n(c,r,l),r++),l=""):(G=!1,q=l,l+=g[t],p=c.no(l.replace(/\s\s*$/,"")),p>m&&(""===q?(n(c,r,l),l="",G=!0):(n(c,r,q),l=g[t]),r++,e||" "!==l||(l="")));l.replace(/\s\s*$/,"").length&&(n(c,r,l),r++);for(t=r;t<h.length;t++)b.length<
f&&b.push(h[t]);h.length=r};h.no=function(a){for(var b=this.Dg,c=a.length,e=0,f=0;f<c;f++)e+=this.mn(a.charAt(f))*this.We+b;return e-(0<e?b:0)};h.mn=function(a){var b=this.Xe;return void 0!==b[a]?b[a]:this.$j};h.ys=function(){if(this.sj||this.width!==this.Xn)this.vg=this.wh=0,this.type.wa.Tv(this),this.sj=!1,this.Xn=this.width};h.ed=function(a){var b=this.W;if(""!==this.text&&null!=b&&(this.ys(),!(this.height<this.Ve*this.We+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Wc&&
(b=Math.round(b),c=Math.round(c));var e=this.q.ra,f=this.q.ta,g=this.q.Da,h=this.q.Ca;a.save();a.translate(b,c);a.rotate(this.n);for(var m=this.n,n=this.Ik,r=this.We,p=this.Ve*r,t=this.lineHeight,D=this.Dg,z=this.hg,w,C=-(this.tc*this.width),S=-(this.uc*this.height),S=S+this.jm*pa(0,this.height-this.vg),W,U,J,E=0;E<z.length;E++){var y=z[E].text;w=n*pa(0,this.width-z[E].width);W=C+w;S+=t;if(0===m&&c+S+p<f)S+=p;else{for(var x=0;x<y.length;x++){U=y.charAt(x);w=this.mn(U);var H=this.ak[U];if(0===m&&b+
W+w*r+D<e)W+=w*r+D;else{if(W+w*r>this.width+1E-5)break;void 0!==H&&(U=W,J=S,0===m&&1===r&&(U=Math.round(U),J=Math.round(J)),a.drawImage(this.W,H.x,H.y,H.lm,H.Hk,U,J,H.lm*r,H.Hk*r));W+=w*r+D;if(0===m&&b+W>g)break}}S+=p;if(0===m&&(S+p+t>this.height||c+S>h))break}}a.restore()}};var e=new wa;h.Xb=function(a){a.Ac(this.xa);a.vf(this.opacity);if(this.text&&(this.ys(),!(this.height<this.Ve*this.We+this.lineHeight))){this.Ga();var b=this.qc,c=0,f=0;this.b.Wc&&(c=Math.round(this.x)-this.x,f=Math.round(this.y)-
this.y);var g=this.q.ra,h=this.q.ta,q=this.q.Da,m=this.q.Ca,p=this.n,r=this.Ik,n=this.jm,t=this.We,w=this.Ve*t,z=this.lineHeight,F=this.Dg,C=this.hg,S=this.vg,W,U,J;0!==p&&(U=Math.cos(p),J=Math.sin(p));for(var c=b.nb+c,b=b.ob+f,E,n=n*pa(0,this.height-S),y,x,S=0;S<C.length;S++)if(f=C[S].text,E=W=r*pa(0,this.width-C[S].width),n+=z,0===p&&b+n+w<h)n+=w;else{for(var H=0;H<f.length;H++){var R=f.charAt(H);W=this.mn(R);R=this.bk[R];if(0===p&&c+E+W*t+F<g)E+=W*t+F;else{if(E+W*t>this.width+1E-5)break;if(void 0!==
R){var O=this.$j*t,I=this.Ve*t;y=E;x=n;0===p&&1===t&&(y=Math.round(y),x=Math.round(x));e.nb=y;e.ob=x;e.Sb=y+O;e.Tb=x;e.Eb=y;e.Fb=x+I;e.Gb=y+O;e.Hb=x+I;0!==p&&(y=e,x=U,O=J,I=void 0,I=y.nb*x-y.ob*O,y.ob=y.ob*x+y.nb*O,y.nb=I,I=y.Sb*x-y.Tb*O,y.Tb=y.Tb*x+y.Sb*O,y.Sb=I,I=y.Eb*x-y.Fb*O,y.Fb=y.Fb*x+y.Eb*O,y.Eb=I,I=y.Gb*x-y.Hb*O,y.Hb=y.Hb*x+y.Gb*O,y.Gb=I);e.offset(c,b);a.Ae(e.nb,e.ob,e.Sb,e.Tb,e.Gb,e.Hb,e.Eb,e.Fb,R)}E+=W*t+F;if(0===p&&c+E>q)break}}n+=w;if(0===p&&(n+w+z>this.height||b+n>m))break}}};g.m=new function(){};
p.prototype.Av=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.sj=!0,this.b.fa=!0)};h.Qj=function(a,b){var c=parseInt(b,10);this.Xe[a]!==c&&(this.Xe[a]=c,this.sj=!0,this.b.fa=!0)};g.A=new p;g.I=new function(){}})();function xc(c){this.b=c}
(function(){function c(){this.$l=this.id=-1;this.Zp=this.Ig=this.Aj=this.Yh=!1;this.Aa=new va(0,0,0,0)}function m(a){1E4>d.length&&d.push(a)}function n(){this.id=-1;this.Aa=new va(0,0,0,0);this.Ed=null}function p(a){1E4>k.length&&k.push(a)}function g(a,b,c){var d;return u.length?(d=u.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.pb*d.j.cc,d.top=d.y*d.j.zb*d.j.ac,d.clear(),d.aj=!1,d):new h(a,b,c)}function h(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.pb*this.j.cc;this.top=this.y*this.j.zb*this.j.ac;
this.ge=[];this.Ob=[];this.gc=[];this.aj=!1;var d,e;a=0;for(b=this.j.zb;a<b;++a){e=[];c=0;for(d=this.j.pb;c<d;++c)e.push(-1);this.ge.push(e)}}var f=xc.prototype;f.X=function(a){this.wa=a;this.b=a.b};var b=f.X.prototype;b.J=function(){var a,b,c;if(!this.O&&(this.W=new Image,this.W.Rm=this.Wl,this.b.mm(this.W,this.tj),this.Jf=[],this.Vm=!1,this.Jd=[],this.bt=!1,this.Zl&&this.Zl.length))for(a=0,b=this.Zl.length;a<b;++a)(c=this.Zl[a])?this.Jd.push({Ed:c,xk:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.Jd.push(null)};b.Se=function(a,b,c,d,e,f){if(!(0>a||a>=this.Jd.length)&&this.Jd[a]){var g=this.Jd[a].xk;a=new hb(this.Jd[a].Ed);a.Te(b,c,0);f&&a.pw();d&&a.Ty(b/2);e&&a.Fx(c/2);g[d?1:0][e?1:0][f?1:0]=a}};b.Wx=function(b){if(-1===b)return null;var c=b&e;return 0>c||c>=this.Jd.length||!this.Jd[c]?null:this.Jd[c].xk[b&t?1:0][b&w?1:0][b&a?1:0]};b.hn=function(){var a,b,c=this.b.F;if(c)for(a=0,b=this.Jf.length;a<b;++a)c.deleteTexture(this.Jf[a]);M(this.Jf);this.Vm=!1};b.jo=function(a,b,c,
d,e,f,g){if(!(this.Vm||0>=a||0>=b)){this.hn();var h=this.W.width,k=this.W.height,m;for(m=d;m+b<=k;m+=b+f)for(d=c;d+a<=h;d+=a+e)this.Jf.push(this.Yt(d,m,a,b,g));this.Vm=!0}};b.Yt=function(a,b,c,d,e){if(this.b.F)return this.rm(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.rm(a,b,c,d,!1,!1,!1,e);return{xk:f,x:a,y:b,lm:c,Hk:d}};b.Cp=function(a,b,c,d,e){if(0>a||a>=this.Jf.length)return null;a=this.Jf[a];var f=a.xk;b=b?1:0;c=c?1:0;d=d?1:0;var g=f[b][c][d];
if(g)return g;g=this.rm(a.x,a.y,a.lm,a.Hk,0!==b,0!==c,0!==d,e);return f[b][c][d]=g};b.rm=function(a,b,c,d,e,f,g,h){var k=c,m=d;this.b.F&&!h&&(ma(k)||(k=na(k)),ma(m)||(m=na(m)));var n=document.createElement("canvas");n.width=k;n.height=m;var p=n.getContext("2d");if(this.b.Na)return e?f?(g?(p.rotate(Math.PI/2),p.scale(-1,1)):p.scale(-1,-1),p.translate(-k,-m)):g?(p.rotate(Math.PI/2),p.translate(0,-m)):(p.scale(-1,1),p.translate(-k,0)):f?g?(p.rotate(-Math.PI/2),p.translate(-k,0)):(p.scale(1,-1),p.translate(0,
-m)):g&&(p.scale(-1,1),p.rotate(Math.PI/2)),p.drawImage(this.W,a,b,c,d,0,0,k,m),h?n:this.b.Na.createPattern(n,"repeat");p.drawImage(this.W,a,b,c,d,0,0,k,m);a=this.b.F.Nc(k,m,this.b.La,!1,!h);this.b.F.$z(n,a);return a};b.Ti=function(){this.O||this.hn()};b.Ui=function(){};b.cl=function(){};b.vj=function(){this.O||this.k.length||this.hn()};b.Yi=function(){};f.R=function(a){this.type=a;this.b=a.b};var b=f.R.prototype,t=-2147483648,w=1073741824,a=536870912,e=536870911,d=[],k=[],u=[];h.prototype.clear=
function(){var a,b,c,d,e;this.ge.length=this.j.zb;a=0;for(b=this.ge.length;a<b;++a)for(e=this.ge[a],e||(e=[],this.ge[a]=e),e.length=this.j.pb,c=0,d=e.length;c<d;++c)e[c]=-1};h.prototype.Mi=function(){if(!this.aj){var b=this.j.cc,f=this.j.ac;if(!(0>=b||0>=f)){var g,h,u,r,G,B;g=0;for(h=this.Ob.length;g<h;++g)m(this.Ob[g]);g=0;for(h=this.gc.length;g<h;++g)p(this.gc[g]);M(this.Ob);M(this.gc);var D=Math.min(this.j.jd,Math.floor(this.j.width/b)),z=Math.min(this.j.Dd,Math.floor(this.j.height/f)),D=D-this.left/
b,z=z-this.top/f;D>this.j.pb&&(D=this.j.pb);z>this.j.zb&&(z=this.j.zb);var F=this.j.tf,C=null;g=0;for(h=z;g<h;++g){G=this.ge[g];u=0;for(r=D;u<r;++u)B=G[u],-1===B?C&&(this.Ob.push(C),C=null):F||!C||B!==C.id?(C&&this.Ob.push(C),C=d.length?d.pop():new c,C.id=B,C.$l=B&e,C.Yh=0!==(B&t),C.Aj=0!==(B&w),C.Ig=0!==(B&a),C.Zp=C.Yh||C.Aj||C.Ig,C.Aa.left=u*b+this.left,C.Aa.top=g*f+this.top,C.Aa.right=C.Aa.left+b,C.Aa.bottom=C.Aa.top+f):C.Aa.right+=b;C&&(this.Ob.push(C),C=null)}var C=null,S=!1;g=0;for(h=z;g<h;++g){G=
this.ge[g];u=0;for(r=D;u<r;++u)B=G[u],-1===B?C&&(this.gc.push(C),C=null,S=!1):(z=this.j.type.Wx(B),!C||z||S?(C&&this.gc.push(C),C=k.length?k.pop():new n,C.id=B,C.Ed=z?z:null,B=C.Aa,B.left=u*b+this.left,B.top=g*f+this.top,B.right=B.left+b,B.bottom=B.top+f,S=!!z):C.Aa.right+=b);C&&(this.gc.push(C),C=null,S=!1)}if(!F)for(h=this.Ob.length,g=0;g<h;++g)for(r=this.Ob[g],b=g+1;b<h;++b)if(u=this.Ob[b],!(u.Aa.top<r.Aa.bottom)){if(u.Aa.top>r.Aa.bottom)break;if(u.Aa.right>r.Aa.right||u.Aa.left>r.Aa.left)break;
u.id===r.id&&u.Aa.left===r.Aa.left&&u.Aa.right===r.Aa.right&&(m(this.Ob[b]),this.Ob.splice(b,1),--h,r.Aa.bottom+=f,--b)}h=this.gc.length;for(g=0;g<h;++g)if(r=this.gc[g],!r.Ed)for(G=r.Aa,b=g+1;b<h;++b)if(u=this.gc[b],r=u.Aa,!(r.top<G.bottom)){if(r.top>G.bottom)break;if(r.right>G.right||r.left>G.left)break;u.Ed||r.left!==G.left||r.right!==G.right||(p(this.gc[b]),this.gc.splice(b,1),--h,G.bottom+=f,--b)}this.aj=!0}}};h.prototype.Wo=function(a,b,c){this.ge[b][a]!==c&&(this.ge[b][a]=c,this.aj=!1,this.j.Pj=
!0,this.j.Wi=!0,this.j.b.fa=!0)};b.J=function(){var a,b,c;this.visible=0===this.B[0];this.cc=this.B[1];this.ac=this.B[2];this.fp=this.B[3];this.hp=this.B[4];this.gp=this.B[5];this.ip=this.B[6];this.tf=0!==this.B[7];this.jd=this.et;this.Dd=this.dt;this.Yk=this.width;this.Xk=this.height;var d=this.cc,e=this.ac;0===d&&(d=1);0===e&&(e=1);this.pb=Math.ceil(this.b.ib/d);this.zb=Math.ceil(this.b.hb/e);if(!this.type.bt)for(this.type.bt=!0,a=0,b=this.type.Jd.length;a<b;++a)if(c=this.type.Jd[a])this.type.Se(a,
d,e,!1,!1,!1),this.type.Se(a,d,e,!1,!1,!0),this.type.Se(a,d,e,!1,!0,!1),this.type.Se(a,d,e,!1,!0,!0),this.type.Se(a,d,e,!0,!1,!1),this.type.Se(a,d,e,!0,!1,!0),this.type.Se(a,d,e,!0,!0,!1),this.type.Se(a,d,e,!0,!0,!0);this.Kc||(this.mc=[]);this.ko(!0);this.Ks(this.ct);this.type.jo(this.cc,this.ac,this.fp,this.hp,this.gp,this.ip,this.tf);this.Wi=!1;this.Pj=!0;this.ho()};b.ho=function(){if(this.Pj){var a,b,c,d,e;a=0;for(b=this.mc.length;a<b;++a)for(e=this.mc[a],c=0,d=e.length;c<d;++c)e[c].Mi();this.Pj=
!1}};b.Fl=function(){var a,b,c,d,e;a=0;for(b=this.mc.length;a<b;++a)for(e=this.mc[a],c=0,d=e.length;c<d;++c)e[c].aj=!1;this.Pj=!0};b.ko=function(a){var b=A(this.width/this.cc),c=A(this.height/this.ac);if(!(b<=this.jd&&c<=this.Dd)||a){var d;a?(a=Math.ceil(this.Dd/this.zb),d=Math.ceil(this.jd/this.pb)):(a=this.mc.length,d=Math.ceil(this.jd/this.pb),c>this.Dd&&(this.Dd=c,a=Math.ceil(this.Dd/this.zb)),b>this.jd&&(this.jd=b,d=Math.ceil(this.jd/this.pb)),this.Fl(),this.Wi=!0,this.b.fa=!0);for(var e,b=0;b<
a;++b)if(e=this.mc[b])for(c=e.length;c<d;++c)e.push(g(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(g(this,c,b));this.mc[b]=e}}};b.Km=function(a,b){if(0>a||0>b)return null;var c=A(b/this.zb);if(c>=this.mc.length)return null;var c=this.mc[c],d=A(a/this.pb);return d>=c.length?null:c[d]};b.Lm=function(a,b){if(0>a||0>b||b>=this.mc.length)return null;var c=this.mc[b];return a>=c.length?null:c[a]};b.Ks=function(b){var c=[];b=b.split(",");var d,e,f,g,h;d=0;for(e=b.length;d<e;++d)if(f=b[d],g=f.indexOf("x"),
-1<g)for(h=parseInt(f.substring(0,g),10),f=f.substring(g+1),g=parseInt(f,10),-1<f.indexOf("h")&&(g|=t),-1<f.indexOf("v")&&(g|=w),-1<f.indexOf("d")&&(g|=a);0<h;--h)c.push(g);else g=parseInt(f,10),-1<f.indexOf("h")&&(g|=t),-1<f.indexOf("v")&&(g|=w),-1<f.indexOf("d")&&(g|=a),c.push(g);for(d=b=0;d<this.Dd;++d)for(e=0;e<this.jd;++e)h=c[b++],(f=this.Km(e,d))&&f.Wo(e%this.pb,d%this.zb,h)};b.Xx=function(){var b="";if(0>=this.jd||0>=this.Dd)return b;var c=1,d=this.Mq(0,0),f,g,h,k,m,p,n,u;k=A(this.width/this.cc);
g=A(this.height/this.ac);for(f=0;f<g;++f)for(h=0===f?1:0;h<k;++h)m=this.Mq(h,f),m===d?++c:(-1===d?(p=-1,d=u=n=!1):(p=d&e,n=0!==(d&t),u=0!==(d&w),d=0!==(d&a)),b=1===c?b+(""+p):b+(""+c+"x"+p),n&&(b+="h"),u&&(b+="v"),d&&(b+="d"),b+=",",c=1,d=m);-1===d?(p=-1,d=u=n=!1):(p=d&e,n=0!==(d&t),u=0!==(d&w),d=0!==(d&a));b=1===c?b+(""+p):b+(""+c+"x"+p);n&&(b+="h");u&&(b+="v");d&&(b+="d");return b};b.Mq=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.jd||b>=this.Dd)return-1;var c=this.Km(a,b);
return c?c.ge[b%this.zb][a%this.pb]:-1};b.Wo=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.jd||b>=this.Dd)return-1;var d=this.Km(a,b);if(!d)return-1;d.Wo(a%this.pb,b%this.zb,c)};b.At=function(a){return Math.floor((a-this.x)/(this.pb*this.cc))};b.Bt=function(a){return Math.floor((a-this.y)/(this.zb*this.ac))};b.Eq=function(a,b){var c=this.Bt(a.top),d=this.At(a.right),e=this.Bt(a.bottom),f,g,h;for(f=this.At(a.left);f<=d;++f)for(g=c;g<=e;++g)if(h=this.Lm(f,g))h.Mi(),Ca(b,h.gc)};
b.Qj=function(a){var b,c,d,e,f,g;b=0;for(c=this.mc.length;b<c;++b)for(f=this.mc[b],d=0,e=f.length;d<e;++d)g=f[d],g.Mi(),Ca(a,g.gc)};b.qf=function(){var a,b,c,d,e;a=0;for(b=this.mc.length;a<b;++a){e=this.mc[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],g=void 0,h=void 0,g=0,h=f.Ob.length;g<h;++g)m(f.Ob[g]);M(f.Ob);g=0;for(h=f.gc.length;g<h;++g)p(f.gc[g]);M(f.gc);1E3>u.length&&u.push(f)}M(e)}M(this.mc)};b.Va=function(){this.ko();return{w:A(this.width/this.cc),h:A(this.height/this.ac),d:this.Xx()}};
b.gb=function(a){this.jd=a.w;this.Dd=a.h;this.ko(!0);this.Ks(a.d);this.Wi=!0;this.Fl()};b.ed=function(a){if(!(0>=this.cc||0>=this.ac)){this.type.jo(this.cc,this.ac,this.fp,this.hp,this.gp,this.ip,this.tf);if(this.width!==this.Yk||this.height!==this.Xk)this.Wi=!0,this.Fl(),this.ho(),this.Yk=this.width,this.Xk=this.height;a.globalAlpha=this.opacity;var b=this.q,c=b.ra,d=b.ta,e=b.Da,b=b.Ca,f=this.x,g=this.y,h=this.tf,k;this.b.Wc&&(f=Math.round(f),g=Math.round(g));var m=this.pb*this.cc,p=this.zb*this.ac,
n=Math.floor((c-f)/m),m=Math.floor((e-f)/m),t=Math.floor((d-g)/p),p=Math.floor((b-g)/p),u=f%this.cc,w=g%this.ac;this.tf&&(w=u=0);if(0!==u||0!==w)a.save(),a.translate(u,w),f-=u,g-=w,c-=u,d-=w,e-=u,b-=w;for(var J,E,y,x,H,L,O,I,N;n<=m;++n)for(J=t;J<=p;++J)if(E=this.Lm(n,J))for(E.Mi(),y=0,x=E.Ob.length;y<x;++y)H=E.Ob[y],-1!==H.id&&(k=H.Aa,L=k.left+f,O=k.top+g,I=k.right+f,k=k.bottom+g,L>e||I<c||O>b||k<d||(N=this.type.Cp(H.$l,H.Yh,H.Aj,H.Ig,this.tf),h?a.drawImage(N,L,O):(a.fillStyle=this.type.Cp(H.$l,H.Yh,
H.Aj,H.Ig,this.tf),a.fillRect(L,O,I-L,k-O))));0===u&&0===w||a.restore()}};var L=new va(0,0,1,1);b.Lf=function(a){this.Xb(a)};b.Xb=function(a){if(!(0>=this.cc||0>=this.ac)){this.type.jo(this.cc,this.ac,this.fp,this.hp,this.gp,this.ip,this.tf);if(this.width!==this.Yk||this.height!==this.Xk)this.Wi=!0,this.Fl(),this.ho(),this.Yk=this.width,this.Xk=this.height;a.vf(this.opacity);var b=this.type.Jf,c=this.q,d=c.ra,e=c.ta,f=c.Da,c=c.Ca,g=this.x,h=this.y,k;this.b.Wc&&(g=Math.round(g),h=Math.round(h));var m=
this.pb*this.cc,p=this.zb*this.ac,n=Math.floor((f-g)/m),t=Math.floor((e-h)/p),p=Math.floor((c-h)/p),u,w,J,E,y,x,H,R,O,I,N,V,Z,Q,ja,ea,ya;for(ja=Math.floor((d-g)/m);ja<=n;++ja)for(ea=t;ea<=p;++ea)if(ya=this.Lm(ja,ea))for(ya.Mi(),m=0,u=ya.Ob.length;m<u;++m)w=ya.Ob[m],-1!==w.id&&(k=w.Aa,J=k.left+g,E=k.top+h,y=k.right+g,k=k.bottom+h,J>f||y<d||E>c||k<e||(a.Ac(b[w.$l]),L.right=(y-J)/this.cc,L.bottom=(k-E)/this.ac,w.Zp?(w.Ig&&(Q=L.right,L.right=L.bottom,L.bottom=Q),H=x=0,R=L.right,O=0,I=L.right,N=L.bottom,
V=0,Z=L.bottom,w.Ig&&(Q=V,V=R,R=Q,Q=Z,Z=O,O=Q),w.Yh&&(Q=x,x=R,R=Q,Q=H,H=O,O=Q,Q=V,V=I,I=Q,Q=Z,Z=N,N=Q),w.Aj&&(Q=x,x=V,V=Q,Q=H,H=Z,Z=Q,Q=R,R=I,I=Q,Q=O,O=N,N=Q),a.wz(J,E,y,E,y,k,J,k,x,H,R,O,I,N,V,Z)):a.Ae(J,E,y,E,y,k,J,k,L)))}};f.m=new function(){};f.A=new function(){};f.I=new function(){}})();function yc(c){this.b=c}
(function(){function c(){}var m=yc.prototype;m.X=function(b){this.wa=b;this.b=b.b};m.X.prototype.J=function(){};m.R=function(b){this.type=b;this.b=b.b};var n=m.R.prototype,p="",g="undefined"!==typeof window.is_scirra_arcade;g&&(p="arcade"+window.scirra_arcade_id);var h=!1;try{localStorage.getItem("test"),h=!0}catch(f){h=!1}n.J=function(){h||ga("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};m.m=new function(){};m.A=new function(){};c.prototype.yp=function(b){if(h){var c=
{},f,a,e;f=0;for(a=localStorage.length;f<a;f++)e=localStorage.key(f),g?e.substr(0,p.length)===p&&(c[e.substr(p.length)]=localStorage.getItem(e)):c[e]=localStorage.getItem(e);b.Qb(JSON.stringify({c2dictionary:!0,data:c}))}else b.Qb("")};m.I=new c})();function zc(c){this.b=c}
(function(){function c(b){var c;if(!a[b])for(a[b]=Array(20),c=0;20>c;++c)a[b][c]=0;return a[b]}function m(a){var b;if(!e[a])for(e[a]=Array(20),b=0;20>b;++b)e[a][b]=0;return e[a]}function n(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function p(a){w[a.gamepad.index]=a.gamepad;b.trigger(zc.prototype.m.Hu,t)}function g(a){b.trigger(zc.prototype.m.Iu,t);w[a.gamepad.index]=null}function h(){}var f=zc.prototype;f.X=function(a){this.wa=a;this.b=a.b};f.X.prototype.J=function(){};var b=null,t=null,w=Array(16),a=
Array(16),e=Array(16),d="",k="",u=null,L={windows:{}};L.windows.firefox={};var v=[0,1,2,3,4,5,8,9,10,11],l=[0,1,[7,6],2,3,[14,15],[12,13]];L.windows.firefox.xbox360=function(a,b){return b?a>=l.length?-1:ka(l[a])?l[a]+16:l[a]:a>=v.length?-1:v[a]};var q=[2,0,1,3,4,6,5,7,8,9],T=[0,1,2,3,[14,15],[12,13]];L.windows.firefox.logitechdualaction=function(a,b){return b?a>=T.length?-1:ka(T[a])?T[a]+16:T[a]:a>=q.length?-1:q[a]};f.R=function(a){this.type=a;b=this.b=a.b;t=this};var K=f.R.prototype;K.J=function(){this.Vk=
0;var a=navigator.userAgent;d="windows";/mac/i.test(a)&&(d="mac");u=L[d];k="chrome";/firefox/i.test(a)&&(k="firefox");u&&(u=u[k]);window.addEventListener("webkitgamepadconnected",p,!1);window.addEventListener("webkitgamepaddisconnected",g,!1);window.addEventListener("MozGamepadConnected",p,!1);window.addEventListener("MozGamepadDisconnected",g,!1);window.addEventListener("gamepadconnected",p,!1);window.addEventListener("gamepaddisconnected",g,!1);this.b.xh(this);this.zm=[]};K.Ia=function(){this.zm.length=
0;var b=null,d=!1;navigator.getGamepads?b=navigator.getGamepads():navigator.webkitGetGamepads?b=navigator.webkitGetGamepads():navigator.mozGetGamepads?b=navigator.mozGetGamepads():navigator.msGetGamepads?b=navigator.msGetGamepads():this.b.ir&&window.cr_getGamepads?(b=window.cr_getGamepads(),d=!0):b=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||w;if(b){var f,g,h,k,l,p,q;f=0;for(g=b.length;f<g;f++){var t=b[f];if(t){var v=c(f),E=m(f);k=f;h=c(k);k=m(k);l=void 0;for(l=0;20>l;++l)k[l]=
h[l];d?h=n:u?(h="",k=t.id.toLowerCase(),-1<k.indexOf("xbox 360")?h="xbox360":-1<k.indexOf("logitech dual action")&&(h="logitechdualaction"),h=u[h]||n):h=n;l=h;h=0;for(k=t.buttons.length;h<k;h++)q="undefined"!==typeof t.buttons[h].value?t.buttons[h].value:t.buttons[h],p=l(h,!1,q),0<=p&&20>p&&(v[p]=100*q,50<=v[p]&&50>E[p]&&(this.Vk=p));h=0;for(k=t.axes.length;h<k;h++)q=t.axes[h],p=l(h,!0,q),ka(p)?0<=p&&20>p&&(v[p]=100*q):(v[p[0]]=0,v[p[1]]=0,0>=q?v[p[0]]=Math.abs(100*q):v[p[1]]=Math.abs(100*q));this.zm.push(t)}else t=
f,a[t]=null,e[t]=null}for(;20>f;++f)b=f,a[b]=null,e[b]=null}};K.Va=function(){return{lastButton:this.Vk}};K.gb=function(a){this.Vk=a.lastButton};h.prototype.Hu=function(){return!0};h.prototype.Iu=function(){return!0};h.prototype.Ep=function(a,b){a=Math.floor(a);if(0>a||a>=this.zm.length)return!1;var d=c(a);if(!d)return!1;if(d=50<=d[b])this.Vk=b;return d};f.m=new h;f.A=new function(){};f.I=new function(){}})();function Ac(c){this.b=c}
(function(){function c(){}function m(){}function n(){}var p=Ac.prototype;p.X=function(c){this.behavior=c;this.b=c.b};p.X.prototype.J=function(){};p.R=function(c,f){this.type=c;this.behavior=c.behavior;this.j=f;this.b=c.b};var g=p.R.prototype;g.J=function(){var c=this.B[0];this.yb=this.B[1];this.df=this.B[2];this.cq=0!==this.B[3];this.Gl=0!==this.B[4];this.D=Math.cos(this.j.n)*c;this.C=Math.sin(this.j.n)*c;this.si=this.j.x;this.ti=this.j.y;this.dg=this.j.n;this.cm=0;this.enabled=0!==this.B[5]};g.Va=
function(){return{acc:this.yb,g:this.df,dx:this.D,dy:this.C,lx:this.si,ly:this.ti,lka:this.dg,t:this.cm,e:this.enabled}};g.gb=function(c){this.yb=c.acc;this.df=c.g;this.D=c.dx;this.C=c.dy;this.si=c.lx;this.ti=c.ly;this.dg=c.lka;this.cm=c.t;this.enabled=c.e};g.Ia=function(){if(this.enabled){var c=this.b.pe(this.j),f,b;this.j.n!==this.dg&&(this.Gl&&(f=Sa(0,0,this.D,this.C),this.D=Math.cos(this.j.n)*f,this.C=Math.sin(this.j.n)*f),this.dg=this.j.n);0!==this.yb&&(f=Sa(0,0,this.D,this.C),b=0===this.D&&
0===this.C?this.j.n:Ma(0,0,this.D,this.C),f+=this.yb*c,0>f&&(f=0),this.D=Math.cos(b)*f,this.C=Math.sin(b)*f);0!==this.df&&(this.C+=this.df*c);this.si=this.j.x;this.ti=this.j.y;if(0!==this.D||0!==this.C)if(this.j.x+=this.D*c,this.j.y+=this.C*c,this.cm+=Sa(0,0,this.D*c,this.C*c),this.Gl&&(this.j.n=Ma(0,0,this.D,this.C),this.j.K(),this.dg=this.j.n),this.j.K(),this.cq&&(f=this.b.Id(this.j)))this.b.cj(this.j,f),f=Sa(0,0,this.D,this.C),b=this.b.iq(this.j,this.si,this.ti),this.D=Math.cos(b)*f,this.C=Math.sin(b)*
f,this.j.x+=this.D*c,this.j.y+=this.C*c,this.j.K(),this.Gl&&(this.dg=this.j.n=b,this.j.K()),this.b.xs(this.j,this.D/f,this.C/f,Math.max(2.5*f*c,30))||this.b.Eo(this.j,100)}};c.prototype.Ap=function(c,f){return fc(Sa(0,0,this.D,this.C),c,f)};p.m=new c;m.prototype.Rp=function(c){var f=Ma(0,0,this.D,this.C);this.D=Math.cos(f)*c;this.C=Math.sin(f)*c};m.prototype.jv=function(c){c=P(c);var f=Sa(0,0,this.D,this.C);this.D=Math.cos(c)*f;this.C=Math.sin(c)*f};m.prototype.It=function(c){if(c&&(c=c.Iq(this.j))){var f=
this.b.pe(this.j),b=Sa(0,0,this.D,this.C),g=this.b.iq(this.j,this.si,this.ti,c);this.D=Math.cos(g)*b;this.C=Math.sin(g)*b;this.j.x+=this.D*f;this.j.y+=this.C*f;this.j.K();this.Gl&&(this.dg=this.j.n=g,this.j.K());this.cq?this.b.xs(this.j,this.D/b,this.C/b,Math.max(2.5*b*f,30))||this.b.Eo(this.j,100):0!==b&&this.b.vz(this.j,this.D/b,this.C/b,Math.max(2.5*b*f,30),c)}};m.prototype.Kj=function(c){this.enabled=1===c};p.A=new m;n.prototype.Sp=function(c){var f=Sa(0,0,this.D,this.C),f=mb(f);c.L(f)};n.prototype.Ft=
function(c){c.L(Ha(Ma(0,0,this.D,this.C)))};p.I=new n})();function Bc(c){this.b=c}
(function(){function c(){}function m(){}function n(){}var p=Bc.prototype;p.X=function(c){this.behavior=c;this.b=c.b};p.X.prototype.J=function(){};p.R=function(c,f){this.type=c;this.behavior=c.behavior;this.j=f;this.b=c.b;this.Ol=this.Nl=this.Ml=this.Pl=this.Cn=this.gj=this.vi=this.Lh=this.wj=!1;this.Vn=this.Un=this.Tn=this.Wn=-1;this.C=this.D=0};var g=p.R.prototype;g.J=function(){this.lg=this.B[0];this.yb=this.B[1];this.Sd=this.B[2];this.$m=this.B[3];this.Dm=this.B[4];this.lw=1===this.B[5];this.enabled=
0!==this.B[6];this.lw&&!this.b.Ta&&(jQuery(document).keydown(function(c){return function(f){c.uo(f)}}(this)),jQuery(document).keyup(function(c){return function(f){c.vo(f)}}(this)))};g.Va=function(){return{dx:this.D,dy:this.C,enabled:this.enabled,maxspeed:this.lg,acc:this.yb,dec:this.Sd,ignoreInput:this.Cn}};g.gb=function(c){this.D=c.dx;this.C=c.dy;this.enabled=c.enabled;this.lg=c.maxspeed;this.yb=c.acc;this.Sd=c.dec;this.Cn=c.ignoreInput;this.Ol=this.Nl=this.Ml=this.Pl=this.gj=this.vi=this.Lh=this.wj=
!1;this.Vn=this.Un=this.Tn=this.Wn=-1};g.uo=function(c){var f=this.b.Ge;switch(c.which){case 37:c.preventDefault();this.Un<f&&(this.vi=!0);break;case 38:c.preventDefault();this.Wn<f&&(this.wj=!0);break;case 39:c.preventDefault();this.Vn<f&&(this.gj=!0);break;case 40:c.preventDefault(),this.Tn<f&&(this.Lh=!0)}};g.vo=function(c){var f=this.b.Ge;switch(c.which){case 37:c.preventDefault();this.vi=!1;this.Un=f;break;case 38:c.preventDefault();this.wj=!1;this.Wn=f;break;case 39:c.preventDefault();this.gj=
!1;this.Vn=f;break;case 40:c.preventDefault(),this.Lh=!1,this.Tn=f}};g.rf=function(){this.gj=this.vi=this.Lh=this.wj=!1};g.Ia=function(){var c=this.b.pe(this.j),f=this.vi||this.Nl,b=this.gj||this.Ol,g=this.wj||this.Pl,m=this.Lh||this.Ml;this.Ml=this.Pl=this.Ol=this.Nl=!1;if(this.enabled){var a=this.b.Id(this.j);if(a&&(this.b.cj(this.j,a),!this.b.Eo(this.j)))return;this.Cn&&(m=g=b=f=!1);0===this.$m?b=f=!1:1===this.$m&&(m=g=!1);2===this.$m&&(g||m)&&(b=f=!1);f==b&&(0>this.D?(this.D+=this.Sd*c,0<this.D&&
(this.D=0)):0<this.D&&(this.D-=this.Sd*c,0>this.D&&(this.D=0)));g==m&&(0>this.C?(this.C+=this.Sd*c,0<this.C&&(this.C=0)):0<this.C&&(this.C-=this.Sd*c,0>this.C&&(this.C=0)));f&&!b&&(this.D=0<this.D?this.D-(this.yb+this.Sd)*c:this.D-this.yb*c);b&&!f&&(this.D=0>this.D?this.D+(this.yb+this.Sd)*c:this.D+this.yb*c);g&&!m&&(this.C=0<this.C?this.C-(this.yb+this.Sd)*c:this.C-this.yb*c);m&&!g&&(this.C=0>this.C?this.C+(this.yb+this.Sd)*c:this.C+this.yb*c);if(0!==this.D||0!==this.C){Math.sqrt(this.D*this.D+this.C*
this.C)>this.lg&&(a=Math.atan2(this.C,this.D),this.D=this.lg*Math.cos(a),this.C=this.lg*Math.sin(a));b=this.j.x;g=this.j.y;f=this.j.n;this.j.x+=this.D*c;this.j.K();if(a=this.b.Id(this.j))this.j.x=b,this.D=0,this.j.K(),this.b.cj(this.j,a);this.j.y+=this.C*c;this.j.K();if(a=this.b.Id(this.j))this.j.y=g,this.C=0,this.j.K(),this.b.cj(this.j,a);c=mb(this.D);a=mb(this.C);0===c&&0===a||!this.j.type.wa.Fy||(1===this.Dm?this.j.n=La(90*Math.round(Ha(Math.atan2(a,c))/90)):2===this.Dm?this.j.n=La(45*Math.round(Ha(Math.atan2(a,
c))/45)):3===this.Dm&&(this.j.n=Math.atan2(a,c)));this.j.K();this.j.n!=f&&(a=this.b.Id(this.j))&&(this.j.n=f,this.j.K(),this.b.cj(this.j,a))}}};c.prototype.ru=function(){return 0!==this.D||0!==this.C};c.prototype.Ap=function(c,f){var b=Math.sqrt(this.D*this.D+this.C*this.C);return fc(b,c,f)};p.m=new c;m.prototype.Tp=function(){this.C=this.D=0};m.prototype.Rp=function(c){0>c&&(c=0);c>this.lg&&(c=this.lg);var f=Math.atan2(this.C,this.D);this.D=c*Math.cos(f);this.C=c*Math.sin(f)};m.prototype.Hv=function(c){switch(c){case 0:this.Nl=
!0;break;case 1:this.Ol=!0;break;case 2:this.Pl=!0;break;case 3:this.Ml=!0}};m.prototype.Kj=function(c){this.enabled=1===c};p.A=new m;n.prototype.Sp=function(c){c.L(Math.sqrt(this.D*this.D+this.C*this.C))};p.I=new n})();function Cc(c){this.b=c}
(function(){function c(){}function m(){}var n=Cc.prototype;n.X=function(c){this.behavior=c;this.b=c.b};n.X.prototype.J=function(){};n.R=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=n.R.prototype;p.J=function(){this.ym=1===this.B[0];this.Hs=!1;this.Oh=this.B[1];this.Dj=this.B[2];this.rk=this.B[3];this.ow=this.B[4];this.Lc=this.ym?0:3;this.Kc?this.od.reset():this.od=new fb;this.nf=this.j.opacity?this.j.opacity:1;this.ym&&(0===this.Oh?(this.Lc=1,0===this.Dj&&(this.Lc=
2)):(this.j.opacity=0,this.b.fa=!0))};p.Va=function(){return{fit:this.Oh,wt:this.Dj,fot:this.rk,s:this.Lc,st:this.od.M,mo:this.nf}};p.gb=function(c){this.Oh=c.fit;this.Dj=c.wt;this.rk=c.fot;this.Lc=c.s;this.od.reset();this.od.M=c.st;this.nf=c.mo};p.Ia=function(){this.od.add(this.b.pe(this.j));0===this.Lc&&(this.j.opacity=this.od.M/this.Oh*this.nf,this.b.fa=!0,this.j.opacity>=this.nf&&(this.j.opacity=this.nf,this.Lc=1,this.od.reset(),this.b.trigger(Cc.prototype.m.Fu,this.j)));1===this.Lc&&this.od.M>=
this.Dj&&(this.Lc=2,this.od.reset(),this.b.trigger(Cc.prototype.m.Vu,this.j));2===this.Lc&&0!==this.rk&&(this.j.opacity=this.nf-this.od.M/this.rk*this.nf,this.b.fa=!0,0>this.j.opacity&&(this.j.opacity=0,this.Lc=3,this.od.reset(),this.b.trigger(Cc.prototype.m.Gu,this.j),1===this.ow&&this.b.he(this.j)))};p.Gw=function(){this.Lc=0;this.od.reset();0===this.Oh?(this.Lc=1,0===this.Dj&&(this.Lc=2)):(this.j.opacity=0,this.b.fa=!0)};c.prototype.Gu=function(){return!0};c.prototype.Fu=function(){return!0};c.prototype.Vu=
function(){return!0};n.m=new c;m.prototype.Lv=function(){this.ym||this.Hs||(this.nf=this.j.opacity?this.j.opacity:1,this.Hs=!0);3===this.Lc&&this.Gw()};n.A=new m;n.I=new function(){}})();function Dc(c){this.b=c}
(function(){function c(){}var m=Dc.prototype;m.X=function(b){this.behavior=b;this.b=b.b};var n=m.X.prototype;n.J=function(){this.ng=[]};n.Dx=function(b){var c,f,a;c=0;for(f=b.S.length;c<f;++c)if(a=b.S[c],a instanceof Dc.prototype.R&&a.type===this)return a;return null};m.R=function(b,c){this.type=b;this.behavior=b.behavior;this.j=c;this.b=b.b};n=m.R.prototype;n.J=function(){this.Vy=this.B[0];this.Go=this.B[1];this.Pm=P(this.B[2]);this.ut=0!==this.B[3]};n.qf=function(){};n.Va=function(){var b={r:this.Go,
c:this.Pm,t:[]},c,f;c=0;for(f=this.type.ng.length;c<f;c++)b.t.push(this.type.ng[c].ka);return b};n.gb=function(b){this.Go=b.r;this.Pm=b.c;M(this.type.ng);var c,f,a;c=0;for(f=b.t.length;c<f;c++)(a=this.b.Sh(b.t[c]))&&this.type.ng.push(a)};n.Ia=function(){};var p=[],g=new va(0,0,0,0);n.ry=function(b,c){var f=this.j.x,a=this.j.y,e=this.j.n;0>this.j.width&&(e+=Math.PI);if(Sa(f,a,b,c)>this.Go||Na(e,Ma(f,a,b,c))>this.Pm/2)return!1;var d,h;g.set(f,a,b,c);g.normalize();if(0===this.Vy)for(this.ut?this.b.Lq(this.j.q,
g,p):(e=this.b.bp)&&Ca(p,e.Oi.rd()),e=0,d=p.length;e<d;++e){if(h=p[e],h.P.solidEnabled&&h!==this.j&&this.b.Xs(f,a,b,c,h))return M(p),!1}else{if(this.ut)this.b.Nq(this.j.q,this.type.ng,g,p);else for(e=0,d=this.type.ng.length;e<d;++e)Ca(p,this.type.ng[e].k);e=0;for(d=p.length;e<d;++e)if(h=p[e],h!==this.j&&this.b.Xs(f,a,b,c,h))return M(p),!1}M(p);return!0};var h=new da,f=new da;c.prototype.eu=function(b){if(!b)return!1;var c,g,a,e,d,k,m,p,n=this.b.Mx().V();b=b.V();var l=n.Yb(),q=b.Yb();n.Z&&M(n.ca);
b.Z&&M(b.ca);var T=this.b.Sf().ci;c=0;for(a=l.length;c<a;++c){d=l[c];p=!1;k=this.Dx(d);g=0;for(e=q.length;g<e;++g)m=q[g],d!==m&&Ta(k.ry(m.x,m.y),T)&&(p=!0,f.add(m));p&&h.add(d)}c=h.rd();g=f.rd();n.Z=!1;b.Z=!1;Ba(n.k,c);Ba(b.k,g);h.clear();f.clear();return n.Lk()};m.m=new c;m.A=new function(){};m.I=new function(){}})();function Fc(c){this.b=c}
(function(){function c(){}var m=Fc.prototype;m.X=function(c){this.behavior=c;this.b=c.b};m.X.prototype.J=function(){};m.R=function(c,b){this.type=c;this.behavior=c.behavior;this.j=b;this.b=c.b;this.ub=0};var n=m.R.prototype,p=2*Math.PI,g=Math.PI/2,h=3*Math.PI/2;n.J=function(){this.Oa=1===this.B[0];this.Ni=this.B[1];this.wp=this.B[2];this.ye=this.B[3];this.ye+=Math.random()*this.B[4];0===this.ye?this.ub=0:(this.ub=this.B[5]/this.ye*p,this.ub+=Math.random()*this.B[6]/this.ye*p);this.wc=this.B[7];this.wc+=
Math.random()*this.B[8];this.bj=this.Zf=this.pa=0;this.init()};n.Va=function(){return{i:this.ub,a:this.Oa,mv:this.Ni,w:this.wp,p:this.ye,mag:this.wc,iv:this.pa,iv2:this.Zf,r:this.bj,lkv:this.Hc,lkv2:this.qi}};n.gb=function(c){this.ub=c.i;this.Oa=c.a;this.Ni=c.mv;this.wp=c.w;this.ye=c.p;this.wc=c.mag;this.pa=c.iv;this.Zf=c.iv2||0;this.bj=c.r;this.Hc=c.lkv;this.qi=c.lkv2||0};n.init=function(){switch(this.Ni){case 0:this.pa=this.j.x;break;case 1:this.pa=this.j.y;break;case 2:this.pa=this.j.width;this.bj=
this.j.height/this.j.width;break;case 3:this.pa=this.j.width;break;case 4:this.pa=this.j.height;break;case 5:this.pa=this.j.n;this.wc=P(this.wc);break;case 6:this.pa=this.j.opacity;break;case 7:this.pa=0;break;case 8:this.pa=this.j.x,this.Zf=this.j.y}this.Hc=this.pa;this.qi=this.Zf};n.Ke=function(c){c=c%p;switch(this.wp){case 0:return Math.sin(c);case 1:return c<=g?c/g:c<=h?1-2*(c-g)/Math.PI:(c-h)/g-1;case 2:return 2*c/p-1;case 3:return-2*c/p+1;case 4:return c<Math.PI?-1:1}return 0};n.Ia=function(){var c=
this.b.pe(this.j);this.Oa&&0!==c&&(0===this.ye?this.ub=0:(this.ub+=c/this.ye*p,this.ub=this.ub%p),this.Vz())};n.Vz=function(){switch(this.Ni){case 0:this.j.x!==this.Hc&&(this.pa+=this.j.x-this.Hc);this.j.x=this.pa+this.Ke(this.ub)*this.wc;this.Hc=this.j.x;break;case 1:this.j.y!==this.Hc&&(this.pa+=this.j.y-this.Hc);this.j.y=this.pa+this.Ke(this.ub)*this.wc;this.Hc=this.j.y;break;case 2:this.j.width=this.pa+this.Ke(this.ub)*this.wc;this.j.height=this.j.width*this.bj;break;case 3:this.j.width=this.pa+
this.Ke(this.ub)*this.wc;break;case 4:this.j.height=this.pa+this.Ke(this.ub)*this.wc;break;case 5:this.j.n!==this.Hc&&(this.pa=Ja(this.pa+(this.j.n-this.Hc)));this.j.n=Ja(this.pa+this.Ke(this.ub)*this.wc);this.Hc=this.j.n;break;case 6:this.j.opacity=this.pa+this.Ke(this.ub)*this.wc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.Hc&&(this.pa+=this.j.x-this.Hc),this.j.y!==this.qi&&(this.Zf+=this.j.y-this.qi),this.j.x=this.pa+Math.cos(this.j.n)*
this.Ke(this.ub)*this.wc,this.j.y=this.Zf+Math.sin(this.j.n)*this.Ke(this.ub)*this.wc,this.Hc=this.j.x,this.qi=this.j.y}this.j.K()};n.bs=function(c,b){switch(this.Ni){case 2:this.pa*=b.width/c.width;this.bj=b.height/b.width;break;case 3:this.pa*=b.width/c.width;break;case 4:this.pa*=b.height/c.height}};m.m=new function(){};c.prototype.gv=function(c){this.Oa=1===c};m.A=new c;m.I=new function(){}})();function Ic(c){this.b=c}
(function(){function c(){}function m(){}var n=Ic.prototype;n.X=function(c){this.behavior=c;this.b=c.b};n.X.prototype.J=function(){};n.R=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=n.R.prototype;p.J=function(){this.ec={}};p.qf=function(){Wa(this.ec)};p.Va=function(){var c={},h,f;for(h in this.ec)this.ec.hasOwnProperty(h)&&(f=this.ec[h],c[h]={c:f.current.M,t:f.total.M,d:f.duration,r:f.Jo});return c};p.gb=function(c){this.ec={};for(var h in c)c.hasOwnProperty(h)&&(this.ec[h]=
{current:new fb,total:new fb,duration:c[h].d,Jo:c[h].r},this.ec[h].current.M=c[h].c,this.ec[h].total.M=c[h].t)};p.Ia=function(){var c=this.b.pe(this.j),h,f;for(h in this.ec)this.ec.hasOwnProperty(h)&&(f=this.ec[h],f.current.add(c),f.total.add(c))};p.Yl=function(){var c,h;for(c in this.ec)this.ec.hasOwnProperty(c)&&(h=this.ec[c],h.current.M>=h.duration&&(h.Jo?h.current.M-=h.duration:delete this.ec[c]))};c.prototype.Tu=function(c){c=c.toLowerCase();return(c=this.ec[c])?c.current.M>=c.duration:!1};n.m=
new c;m.prototype.Mv=function(c,h,f){this.ec[f.toLowerCase()]={current:new fb,total:new fb,duration:c,Jo:1===h}};n.A=new m;n.I=new function(){}})();function Jc(c){this.b=c;this.Ll=this.mj=this.tg=this.Kl=0}
(function(){function c(){}var m=Jc.prototype;m.X=function(c){this.behavior=c;this.b=c.b};m.X.prototype.J=function(){};m.R=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b};var n=m.R.prototype;n.J=function(){this.enabled=0!==this.B[0]};n.Va=function(){return{smg:this.behavior.Kl,ss:this.behavior.tg,se:this.behavior.mj,smd:this.behavior.Ll}};n.gb=function(c){this.behavior.Kl=c.smg;this.behavior.tg=c.ss;this.behavior.mj=c.se;this.behavior.Ll=c.smd};n.Ia=function(){};n.Yl=function(){if(this.enabled){var c=
this.behavior.Oi.rd(),g=0,h=0,f,b,m,n=0;f=0;for(b=c.length;f<b;f++){a:{m=c[f];for(var a=void 0,e=void 0,d=void 0,a=0,e=m.S.length;a<e;++a)if(d=m.S[a],d.behavior instanceof Jc){m=d;break a}m=null}m&&m.enabled&&(g+=c[f].x,h+=c[f].y,++n)}c=this.j.q.eb;b=this.b.cb.M;m=f=0;b>=this.behavior.tg&&b<this.behavior.mj&&(f=this.behavior.Kl*Math.min(this.b.yf,1),0===this.behavior.Ll&&(f*=1-(b-this.behavior.tg)/(this.behavior.mj-this.behavior.tg)),b=Math.random()*Math.PI*2,m=Math.random()*f,f=Math.cos(b)*m,m*=
Math.sin(b));c.So(g/n+f);c.To(h/n+m)}};c.prototype.Gv=function(c,g,h){this.behavior.Kl=c;this.behavior.tg=this.b.cb.M;this.behavior.mj=this.behavior.tg+g;this.behavior.Ll=h};c.prototype.Kj=function(c){this.enabled=0!==c};m.A=new c})();function pc(c){this.b=c}
(function(){function c(){}var m=pc.prototype;m.X=function(c){this.behavior=c;this.b=c.b};m.X.prototype.J=function(){};m.R=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b};var n=m.R.prototype;n.J=function(){this.j.P.solidEnabled=0!==this.B[0]};n.Ia=function(){};m.m=new function(){};c.prototype.Kj=function(c){this.j.P.solidEnabled=!!c};m.A=new c})();function Kc(c){this.b=c}
(function(){var c=Kc.prototype;c.X=function(c){this.behavior=c;this.b=c.b};c.X.prototype.J=function(){};c.R=function(c,n){this.type=c;this.behavior=c.behavior;this.j=n;this.b=c.b};c=c.R.prototype;c.J=function(){this.mode=this.B[0]};c.Ia=function(){var c=this.j;c.Ga();var n=c.Ja,p=c.q,g=p.eb,h=0,f=0,b=0,t=0;0===this.mode?(f=g.width,t=g.height):(h=p.ra,f=p.Da,b=p.ta,t=p.Ca);n.right<h?(c.x=f-1+(c.x-n.left),c.K()):n.left>f?(c.x=h+1-(n.right-c.x),c.K()):n.bottom<b?(c.y=t-1+(c.y-n.top),c.K()):n.top>t&&
(c.y=b+1-(n.bottom-c.y),c.K())}})();
function oc(){return[rc,sc,qc,zc,tc,uc,vc,Y,wc,xc,yc,Bc,Fc,Ac,Ic,Cc,Jc,pc,Kc,Dc,X.prototype.m.pu,Y.prototype.m.Af,Y.prototype.A.Fp,X.prototype.m.au,Y.prototype.A.Qp,Y.prototype.m.lu,X.prototype.m.St,Y.prototype.A.kv,Y.prototype.A.yv,uc.prototype.I.wm,Y.prototype.I.wm,uc.prototype.I.xm,Y.prototype.I.xm,X.prototype.m.Ot,Y.prototype.A.vv,qc.prototype.m.Hj,Y.prototype.A.yu,Y.prototype.I.Et,qc.prototype.I.Xu,Bc.prototype.m.ru,Y.prototype.A.sv,Y.prototype.m.Pt,Y.prototype.m.uu,X.prototype.m.Pv,qc.prototype.A.CallFunction,
X.prototype.I.kq,tc.prototype.m.qu,qc.prototype.m.Rt,Bc.prototype.A.Hv,X.prototype.I.n,Y.prototype.m.Vt,Y.prototype.A.xv,X.prototype.A.qv,Fc.prototype.A.gv,Y.prototype.A.hv,Y.prototype.A.Vv,Y.prototype.A.pv,Y.prototype.A.zv,Y.prototype.I.ju,Y.prototype.I.gu,X.prototype.I.My,Y.prototype.I.hu,Y.prototype.I.iu,Y.prototype.m.Tt,Y.prototype.A.Fv,Y.prototype.I.Sv,Y.prototype.m.Qt,Y.prototype.m.nu,Y.prototype.A.rv,Y.prototype.I.fu,uc.prototype.m.Ep,X.prototype.A.Dv,Ic.prototype.A.Mv,Y.prototype.A.Zt,X.prototype.m.$t,
Y.prototype.A.Jv,Y.prototype.m.Du,Y.prototype.I.Qv,uc.prototype.m.tm,Y.prototype.A.nv,Y.prototype.I.Opacity,Y.prototype.m.Gp,tc.prototype.m.Ip,Cc.prototype.A.Lv,Y.prototype.A.Ev,X.prototype.m.av,X.prototype.I["int"],X.prototype.I.random,X.prototype.A.Rv,X.prototype.I.Py,X.prototype.A.Xt,Ac.prototype.A.jv,X.prototype.m.Bp,Y.prototype.m.zp,Y.prototype.A.Nv,Y.prototype.A.ov,wc.prototype.m.zp,wc.prototype.A.Av,Ac.prototype.m.Ap,Ac.prototype.A.Rp,Ac.prototype.I.Sp,X.prototype.A.tv,Ac.prototype.A.Kj,X.prototype.A.uv,
X.prototype.m.bu,Y.prototype.m.ku,rc.prototype.A.Tp,X.prototype.A.dv,X.prototype.A.cv,X.prototype.m.wu,uc.prototype.m.um,X.prototype.A.cu,Y.prototype.m.Ut,X.prototype.I.Ly,Ic.prototype.m.Tu,X.prototype.I.Jy,Dc.prototype.m.eu,Y.prototype.I.Wt,Y.prototype.A.Cv,X.prototype.I.abs,Ac.prototype.I.Ft,Y.prototype.m.tu,Ac.prototype.A.It,Y.prototype.m.Yu,X.prototype.A.Dt,X.prototype.m.Lp,Jc.prototype.A.Gv,Y.prototype.m.su,X.prototype.A.Iv,sc.prototype.m.ou,sc.prototype.A.bv,sc.prototype.A.Kt,vc.prototype.A.Fp,
Y.prototype.A.lv,Y.prototype.I.Ht,vc.prototype.A.Qp,X.prototype.A.Bv,rc.prototype.A.wv,sc.prototype.A.Nt,X.prototype.I.zk,Y.prototype.m.Dp,sc.prototype.A.du,X.prototype.I.Ky,rc.prototype.A.Ct,rc.prototype.A.$u,rc.prototype.A.Zu]};
