// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,I,ea,fa,ha,N,ia,ja,ma,na,oa,Q,qa,ra,ta,va,wa,xa,ya,za,Aa,Ba,S,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,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,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,U,Xb,Yb={},Zb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(e,a,b,p){this.set(e,a,b,p)}function n(){this.ub=this.tb=this.xb=this.wb=this.Ib=this.Hb=this.Sa=this.Ra=0}function d(e,a,b,p){e<a?b<p?(m=e<b?e:b,w=a>p?a:p):(m=e<p?e:p,w=a>b?a:b):b<p?(m=a<b?a:b,w=e>p?e:p):(m=a<p?a:p,w=e>b?e:b)}function r(){this.items=this.Qc=null;this.Af=0;u&&(this.Qc=new Set);this.dg=[];this.Xd=!0}function l(e){y[O++]=e}function c(){this.Z=this.yj=this.y=this.ak=0}function a(e){this.Oa=[];this.Lh=this.Nh=this.Oh=this.Mh=0;this.xh(e)}function b(e,a){this.dk=
e;this.ck=a;this.cells={}}function x(e,a){this.dk=e;this.ck=a;this.cells={}}function s(e,a,b){var p;return Z.length?(p=Z.pop(),p.Nk=e,p.x=a,p.y=b,p):new aa(e,a,b)}function f(e,a,p){this.Nk=e;this.x=a;this.y=p;this.Wa=new ba}function h(e,a,p){var b;return T.length?(b=T.pop(),b.Nk=e,b.x=a,b.y=p,b):new ca(e,a,p)}function t(e,a,p){this.Nk=e;this.x=a;this.y=p;this.Wa=[];this.yf=!0;this.cd=new ba;this.hg=!1}function k(e,a){return e.Vc-a.Vc}I=function(e){window.console&&window.console.log&&window.console.log(e)};
ea=function(e){window.console&&window.console.error&&window.console.error(e)};fa=function(e){return"undefined"===typeof e};ha=function(e){return"number"===typeof e};N=function(e){return"string"===typeof e};ia=function(e){return 0<e&&0===(e-1&e)};ja=function(e){--e;for(var a=1;32>a;a<<=1)e|=e>>a;return e+1};ma=function(e){return 0>e?-e:e};na=function(e,a){return e<a?e:a};oa=Math.PI;Q=function(e){return 0<=e?e|0:(e|0)-1};qa=function(e){var a=e|0;return a===e?a:a+1};ra=function(e,a,p,b,u,f,c,k){var y,
q,h,t;e<p?(q=e,y=p):(q=p,y=e);u<c?(t=u,h=c):(t=c,h=u);if(y<t||q>h)return!1;a<b?(q=a,y=b):(q=b,y=a);f<k?(t=f,h=k):(t=k,h=f);if(y<t||q>h)return!1;y=u-e+c-p;q=f-a+k-b;e=p-e;a=b-a;u=c-u;f=k-f;k=ma(a*u-f*e);return ma(u*q-f*y)>k?!1:ma(e*q-a*y)<=k};g.prototype.set=function(e,a,p,b){this.left=e;this.top=a;this.right=p;this.bottom=b};g.prototype.pg=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};g.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};g.prototype.Ss=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};g.prototype.Ts=function(e,a,p){return!(e.right+a<this.left||e.bottom+
p<this.top||e.left+a>this.right||e.top+p>this.bottom)};g.prototype.$a=function(e,a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};g.prototype.di=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};ta=g;n.prototype.Tf=function(e){this.Ra=e.left;this.Sa=e.top;this.Hb=e.right;this.Ib=e.top;this.wb=e.right;this.xb=e.bottom;this.tb=e.left;this.ub=e.bottom};n.prototype.$o=function(e,a){if(0===a)this.Tf(e);else{var p=Math.sin(a),b=Math.cos(a),
u=e.left*p,f=e.top*p,c=e.right*p,p=e.bottom*p,k=e.left*b,y=e.top*b,q=e.right*b,b=e.bottom*b;this.Ra=k-f;this.Sa=y+u;this.Hb=q-f;this.Ib=y+c;this.wb=q-p;this.xb=b+c;this.tb=k-p;this.ub=b+u}};n.prototype.offset=function(e,a){this.Ra+=e;this.Sa+=a;this.Hb+=e;this.Ib+=a;this.wb+=e;this.xb+=a;this.tb+=e;this.ub+=a;return this};var m=0,w=0;n.prototype.Qm=function(e){d(this.Ra,this.Hb,this.wb,this.tb);e.left=m;e.right=w;d(this.Sa,this.Ib,this.xb,this.ub);e.top=m;e.bottom=w};n.prototype.$a=function(e,a){var p=
this.Hb-this.Ra,b=this.Ib-this.Sa,u=this.wb-this.Ra,f=this.xb-this.Sa,c=e-this.Ra,k=a-this.Sa,y=p*p+b*b,q=p*u+b*f,b=p*c+b*k,h=u*u+f*f,t=u*c+f*k,m=1/(y*h-q*q),p=(h*b-q*t)*m,y=(y*t-q*b)*m;if(0<=p&&0<y&&1>p+y)return!0;p=this.tb-this.Ra;b=this.ub-this.Sa;y=p*p+b*b;q=p*u+b*f;b=p*c+b*k;m=1/(y*h-q*q);p=(h*b-q*t)*m;y=(y*t-q*b)*m;return 0<=p&&0<y&&1>p+y};n.prototype.Vd=function(e,a){if(a)switch(e){case 0:return this.Ra;case 1:return this.Hb;case 2:return this.wb;case 3:return this.tb;case 4:return this.Ra;
default:return this.Ra}else switch(e){case 0:return this.Sa;case 1:return this.Ib;case 2:return this.xb;case 3:return this.ub;case 4:return this.Sa;default:return this.Sa}};n.prototype.ko=function(){return(this.Ra+this.Hb+this.wb+this.tb)/4};n.prototype.lo=function(){return(this.Sa+this.Ib+this.xb+this.ub)/4};n.prototype.Cn=function(e){var a=e.ko(),p=e.lo();if(this.$a(a,p))return!0;a=this.ko();p=this.lo();if(e.$a(a,p))return!0;var b,u,f,c,k,y,q,h;for(q=0;4>q;q++)for(h=0;4>h;h++)if(a=this.Vd(q,!0),
p=this.Vd(q,!1),b=this.Vd(q+1,!0),u=this.Vd(q+1,!1),f=e.Vd(h,!0),c=e.Vd(h,!1),k=e.Vd(h+1,!0),y=e.Vd(h+1,!1),ra(a,p,b,u,f,c,k,y))return!0;return!1};va=n;wa=function(e,a){for(var p in a)a.hasOwnProperty(p)&&(e[p]=a[p]);return e};xa=function(e,a){var p,b;a=Q(a);if(!(0>a||a>=e.length)){p=a;for(b=e.length-1;p<b;p++)e[p]=e[p+1];e.length=b}};ya=function(e,a){e.length=a.length;var p,b;p=0;for(b=a.length;p<b;p++)e[p]=a[p]};za=function(e,a){e.push.apply(e,a)};Aa=function(e,a){var p,b;p=0;for(b=e.length;p<b;++p)if(e[p]===
a)return p;return-1};Ba=function(e,a){var p=Aa(e,a);-1!==p&&xa(e,p)};S=function(e){return e/(180/oa)};Ca=function(e){return 180/oa*e};Da=function(e){e%=360;0>e&&(e+=360);return e};Ea=function(e){e%=2*oa;0>e&&(e+=2*oa);return e};Fa=function(e){return Da(Ca(e))};Ha=function(e){return Ea(S(e))};Ia=function(e,a,p,b){return Math.atan2(b-a,p-e)};Ja=function(e,a){if(e===a)return 0;var p=Math.sin(e),b=Math.cos(e),u=Math.sin(a),f=Math.cos(a),p=p*u+b*f;return 1<=p?0:-1>=p?oa:Math.acos(p)};Ka=function(e,a,p){var b=
Math.sin(e),u=Math.cos(e),f=Math.sin(a),c=Math.cos(a);return Math.acos(b*f+u*c)>p?0<u*f-b*c?Ea(e+p):Ea(e-p):Ea(a)};Pa=function(e,a){var p=Math.sin(e),b=Math.cos(e),u=Math.sin(a),f=Math.cos(a);return 0>=b*u-p*f};Qa=function(e,a,p,b,u,f){if(0===p)return f?e:a;var c=Math.sin(p);p=Math.cos(p);e-=b;a-=u;var k=e*c;e=e*p-a*c;a=a*p+k;return f?e+b:a+u};Ra=function(e,a,p,b){e=p-e;a=b-a;return Math.sqrt(e*e+a*a)};Sa=function(e,a){return!e!==!a};Ta=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};
Ua=function(e){for(var a in e)e.hasOwnProperty(a)&&delete e[a]};var A=+new Date;Va=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-A};var q=!1,e=q=!1,p=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
q=!q&&/safari/i.test(navigator.userAgent),e=/(iphone|ipod|ipad)/i.test(navigator.userAgent),p=window.c2ejecta);var u=!q&&!p&&!e&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(e){return this.yd()?!1:u?this.Qc.has(e):this.items&&this.items.hasOwnProperty(e)};r.prototype.add=function(e){if(u)this.Qc.has(e)||(this.Qc.add(e),this.Xd=!1);else{var a=e.toString(),p=this.items;p?p.hasOwnProperty(a)||(p[a]=e,this.Af++,this.Xd=!1):(this.items={},this.items[a]=
e,this.Af=1,this.Xd=!1)}};r.prototype.remove=function(e){if(!this.yd())if(u)this.Qc.has(e)&&(this.Qc["delete"](e),this.Xd=!1);else if(this.items){e=e.toString();var a=this.items;a.hasOwnProperty(e)&&(delete a[e],this.Af--,this.Xd=!1)}};r.prototype.clear=function(){this.yd()||(u?this.Qc.clear():(this.items=null,this.Af=0),this.dg.length=0,this.Xd=!0)};r.prototype.yd=function(){return 0===this.count()};r.prototype.count=function(){return u?this.Qc.size:this.Af};var y=null,O=0;r.prototype.lu=function(){if(!this.Xd){if(u)this.dg.length=
this.Qc.size,y=this.dg,O=0,this.Qc.forEach(l),y=null,O=0;else{var e=this.dg;e.length=this.Af;var a,p=0,b=this.items;if(b)for(a in b)b.hasOwnProperty(a)&&(e[p++]=b[a])}this.Xd=!0}};r.prototype.Uc=function(){this.lu();return this.dg};ba=r;new ba;Wa=function(e,a){u?Xa(e,a.Qc):Ya(e,a.Uc())};Xa=function(e,a){var p,b,u,f;b=p=0;for(u=e.length;p<u;++p)f=e[p],a.has(f)||(e[b++]=f);e.length=b};Ya=function(e,a){var p,b,u,f;b=p=0;for(u=e.length;p<u;++p)f=e[p],-1===Aa(a,f)&&(e[b++]=f);e.length=b};c.prototype.add=
function(e){this.y=e-this.ak;this.yj=this.Z+this.y;this.ak=this.yj-this.Z-this.y;this.Z=this.yj};c.prototype.reset=function(){this.Z=this.yj=this.y=this.ak=0};Za=c;$a=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.xh=function(e){this.No=e;this.Oc=e.length/2;this.Oa.length=e.length;this.Sh=this.Th=-1;this.Tm=0};a.prototype.vf=function(){return!this.No.length};a.prototype.ma=function(){for(var e=this.Oa,a=e[0],p=a,b=e[1],u=b,f,c,k=1,y=this.Oc;k<y;++k)c=2*k,f=e[c],c=e[c+
1],f<a&&(a=f),f>p&&(p=f),c<b&&(b=c),c>u&&(u=c);this.Mh=a;this.Nh=p;this.Oh=b;this.Lh=u};a.prototype.Tf=function(e,a,p){this.Oa.length=8;this.Oc=4;var b=this.Oa;b[0]=e.left-a;b[1]=e.top-p;b[2]=e.right-a;b[3]=e.top-p;b[4]=e.right-a;b[5]=e.bottom-p;b[6]=e.left-a;b[7]=e.bottom-p;this.Th=e.right-e.left;this.Sh=e.bottom-e.top;this.ma()};a.prototype.Sf=function(e,a,p,b,u){this.Oa.length=8;this.Oc=4;var f=this.Oa;f[0]=e.Ra-a;f[1]=e.Sa-p;f[2]=e.Hb-a;f[3]=e.Ib-p;f[4]=e.wb-a;f[5]=e.xb-p;f[6]=e.tb-a;f[7]=e.ub-
p;this.Th=b;this.Sh=u;this.ma()};a.prototype.Zo=function(e){this.Oc=e.Oc;ya(this.Oa,e.Oa);this.Mh=e.Mh;this.Oh-e.Oh;this.Nh=e.Nh;this.Lh=e.Lh};a.prototype.hf=function(e,a,p){if(this.Th!==e||this.Sh!==a||this.Tm!==p){this.Th=e;this.Sh=a;this.Tm=p;var b,u,f,c,k,y=0,q=1,h=this.No,t=this.Oa;0!==p&&(y=Math.sin(p),q=Math.cos(p));p=0;for(f=this.Oc;p<f;p++)b=2*p,u=b+1,c=h[b]*e,k=h[u]*a,t[b]=c*q-k*y,t[u]=k*q+c*y;this.ma()}};a.prototype.$a=function(e,a){var p=this.Oa;if(e===p[0]&&a===p[1])return!0;var b,u,
f,c=this.Oc,k=this.Mh-110,y=this.Oh-101,q=this.Nh+131,h=this.Lh+120,t,m,O=0,d=0;for(b=0;b<c;b++)u=2*b,f=(b+1)%c*2,t=p[u],u=p[u+1],m=p[f],f=p[f+1],ra(k,y,e,a,t,u,m,f)&&O++,ra(q,h,e,a,t,u,m,f)&&d++;return 1===O%2||1===d%2};a.prototype.Fg=function(e,a,p){var b=e.Oa,u=this.Oa;if(this.$a(b[0]+a,b[1]+p)||e.$a(u[0]-a,u[1]-p))return!0;var f,c,k,y,q,h,t,m,O,d,T,x;f=0;for(y=this.Oc;f<y;f++)for(c=2*f,k=(f+1)%y*2,m=u[c],c=u[c+1],O=u[k],d=u[k+1],k=0,t=e.Oc;k<t;k++)if(q=2*k,h=(k+1)%t*2,T=b[q]+a,q=b[q+1]+p,x=b[h]+
a,h=b[h+1]+p,ra(m,c,O,d,T,q,x,h))return!0;return!1};ab=a;b.prototype.de=function(e,a,p){var b;b=this.cells[e];return b?(b=b[a])?b:p?(b=s(this,e,a),this.cells[e][a]=b):null:p?(b=s(this,e,a),this.cells[e]={},this.cells[e][a]=b):null};b.prototype.$b=function(e){return Q(e/this.dk)};b.prototype.ac=function(e){return Q(e/this.ck)};b.prototype.update=function(e,a,p){var b,u,f,c,k;if(a)for(b=a.left,u=a.right;b<=u;++b)for(f=a.top,c=a.bottom;f<=c;++f)if(!p||!p.$a(b,f))if(k=this.de(b,f,!1))k.remove(e),k.yd()&&
(k.Wa.clear(),1E3>Z.length&&Z.push(k),this.cells[b][f]=null);if(p)for(b=p.left,u=p.right;b<=u;++b)for(f=p.top,c=p.bottom;f<=c;++f)a&&a.$a(b,f)||this.de(b,f,!0).Xk(e)};b.prototype.jj=function(e,a){var p,b,u,f,c,k;p=this.$b(e.left);u=this.ac(e.top);b=this.$b(e.right);for(c=this.ac(e.bottom);p<=b;++p)for(f=u;f<=c;++f)(k=this.de(p,f,!1))&&k.dump(a)};bb=b;x.prototype.de=function(e,a,p){var b;b=this.cells[e];return b?(b=b[a])?b:p?(b=h(this,e,a),this.cells[e][a]=b):null:p?(b=h(this,e,a),this.cells[e]={},
this.cells[e][a]=b):null};x.prototype.$b=function(e){return Q(e/this.dk)};x.prototype.ac=function(e){return Q(e/this.ck)};x.prototype.update=function(e,a,p){var b,u,f,c,k;if(a)for(b=a.left,u=a.right;b<=u;++b)for(f=a.top,c=a.bottom;f<=c;++f)if(!p||!p.$a(b,f))if(k=this.de(b,f,!1))k.remove(e),k.yd()&&(k.reset(),1E3>T.length&&T.push(k),this.cells[b][f]=null);if(p)for(b=p.left,u=p.right;b<=u;++b)for(f=p.top,c=p.bottom;f<=c;++f)a&&a.$a(b,f)||this.de(b,f,!0).Xk(e)};x.prototype.jj=function(e,a,p,b,u){var f,
c;e=this.$b(e);a=this.ac(a);p=this.$b(p);for(f=this.ac(b);e<=p;++e)for(b=a;b<=f;++b)(c=this.de(e,b,!1))&&c.dump(u)};x.prototype.gt=function(e){var a,p,b,u,f;a=e.left;b=e.top;p=e.right;for(u=e.bottom;a<=p;++a)for(e=b;e<=u;++e)if(f=this.de(a,e,!1))f.yf=!1};cb=x;var Z=[];f.prototype.yd=function(){return this.Wa.yd()};f.prototype.Xk=function(e){this.Wa.add(e)};f.prototype.remove=function(e){this.Wa.remove(e)};f.prototype.dump=function(e){za(e,this.Wa.Uc())};aa=f;var T=[];t.prototype.yd=function(){if(!this.Wa.length)return!0;
if(this.Wa.length>this.cd.count())return!1;this.yk();return!0};t.prototype.Xk=function(e){this.cd.contains(e)?(this.cd.remove(e),this.cd.yd()&&(this.hg=!1)):this.Wa.length?(this.Wa[this.Wa.length-1].tc()>e.tc()&&(this.yf=!1),this.Wa.push(e)):(this.Wa.push(e),this.yf=!0)};t.prototype.remove=function(e){this.cd.add(e);this.hg=!0;30<=this.cd.count()&&this.yk()};t.prototype.yk=function(){this.hg&&(this.cd.count()===this.Wa.length?this.reset():(Wa(this.Wa,this.cd),this.cd.clear(),this.hg=!1))};t.prototype.Er=
function(){this.yf||(this.Wa.sort(k),this.yf=!0)};t.prototype.reset=function(){this.Wa.length=0;this.yf=!0;this.cd.clear();this.hg=!1};t.prototype.dump=function(e){this.yk();this.Er();this.Wa.length&&e.push(this.Wa)};ca=t;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");db=function(e){return 0>=e||11<=e?"source-over":z[e-1]};eb=function(e,a,p){if(p)switch(e.jb=p.ONE,e.ib=p.ONE_MINUS_SRC_ALPHA,a){case 1:e.jb=p.ONE;
e.ib=p.ONE;break;case 3:e.jb=p.ONE;e.ib=p.ZERO;break;case 4:e.jb=p.ONE_MINUS_DST_ALPHA;e.ib=p.ONE;break;case 5:e.jb=p.DST_ALPHA;e.ib=p.ZERO;break;case 6:e.jb=p.ZERO;e.ib=p.SRC_ALPHA;break;case 7:e.jb=p.ONE_MINUS_DST_ALPHA;e.ib=p.ZERO;break;case 8:e.jb=p.ZERO;e.ib=p.ONE_MINUS_SRC_ALPHA;break;case 9:e.jb=p.DST_ALPHA;e.ib=p.ONE_MINUS_SRC_ALPHA;break;case 10:e.jb=p.ONE_MINUS_DST_ALPHA,e.ib=p.SRC_ALPHA}};fb=function(e){return Math.round(1E6*e)/1E6};gb=function(e,a){return"string"!==typeof e||"string"!==
typeof a||e.length!==a.length?!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};hb=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||gb(e.tagName,"canvas")?!0:!1}})();var $b="undefined"!==typeof Float32Array?Float32Array:Array;function ac(g){var n=new $b(3);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2]);return n}
function bc(g){var n=new $b(16);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2],n[3]=g[3],n[4]=g[4],n[5]=g[5],n[6]=g[6],n[7]=g[7],n[8]=g[8],n[9]=g[9],n[10]=g[10],n[11]=g[11],n[12]=g[12],n[13]=g[13],n[14]=g[14],n[15]=g[15]);return n}function cc(g,n){n[0]=g[0];n[1]=g[1];n[2]=g[2];n[3]=g[3];n[4]=g[4];n[5]=g[5];n[6]=g[6];n[7]=g[7];n[8]=g[8];n[9]=g[9];n[10]=g[10];n[11]=g[11];n[12]=g[12];n[13]=g[13];n[14]=g[14];n[15]=g[15]}
function dc(g,n){var d=n[0],r=n[1];n=n[2];g[0]*=d;g[1]*=d;g[2]*=d;g[3]*=d;g[4]*=r;g[5]*=r;g[6]*=r;g[7]*=r;g[8]*=n;g[9]*=n;g[10]*=n;g[11]*=n}
function ec(g,n,d,r){r||(r=bc());var l,c,a,b,x,s,f,h,t=g[0],k=g[1];g=g[2];c=d[0];a=d[1];l=d[2];d=n[1];s=n[2];t===n[0]&&k===d&&g===s?(g=r,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(d=t-n[0],s=k-n[1],f=g-n[2],h=1/Math.sqrt(d*d+s*s+f*f),d*=h,s*=h,f*=h,n=a*f-l*s,l=l*d-c*f,c=c*s-a*d,(h=Math.sqrt(n*n+l*l+c*c))?(h=1/h,n*=h,l*=h,c*=h):c=l=n=0,a=s*c-f*l,b=f*n-d*c,x=d*l-s*n,(h=Math.sqrt(a*a+b*b+x*x))?(h=1/h,a*=h,b*=h,x*=h):x=b=a=0,
r[0]=n,r[1]=a,r[2]=d,r[3]=0,r[4]=l,r[5]=b,r[6]=s,r[7]=0,r[8]=c,r[9]=x,r[10]=f,r[11]=0,r[12]=-(n*t+l*k+c*g),r[13]=-(a*t+b*k+x*g),r[14]=-(d*t+s*k+f*g),r[15]=1)}
(function(){function g(c){this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Um=ac([0,0,100]);this.Tn=ac([0,0,0]);this.vp=ac([0,1,0]);this.wm=ac([1,1,1]);this.bn=!0;this.pl=bc();this.zc=bc();this.Ln=bc();this.lk=bc();this.k=c;this.yn()}function n(c,a,b){this.k=c;this.yh=a;this.name=b;this.yc=c.getAttribLocation(a,"aPos");this.ie=c.getAttribLocation(a,"aTex");this.Rn=c.getUniformLocation(a,"matP");this.Pi=c.getUniformLocation(a,"matMV");this.Ef=
c.getUniformLocation(a,"opacity");this.Sn=c.getUniformLocation(a,"samplerFront");this.Yg=c.getUniformLocation(a,"samplerBack");this.Te=c.getUniformLocation(a,"destStart");this.Se=c.getUniformLocation(a,"destEnd");this.ml=c.getUniformLocation(a,"seconds");this.ll=c.getUniformLocation(a,"pixelWidth");this.kl=c.getUniformLocation(a,"pixelHeight");this.Xg=c.getUniformLocation(a,"layerScale");this.Wg=c.getUniformLocation(a,"layerAngle");this.$g=c.getUniformLocation(a,"viewOrigin");this.Zg=c.getUniformLocation(a,
"scrollPos");this.Ns=!!(this.ll||this.kl||this.ml||this.Yg||this.Te||this.Se||this.Xg||this.Wg||this.$g||this.Zg);this.ao=this.bo=-999;this.Ri=1;this.Xn=this.Wn=0;this.Zn=this.Vn=this.Un=1;this.eo=this.co=this.ho=this.fo=this.Yn=0;this.gl=[];this.$n=bc();this.Ef&&c.uniform1f(this.Ef,1);this.Sn&&c.uniform1i(this.Sn,0);this.Yg&&c.uniform1i(this.Yg,1);this.Te&&c.uniform2f(this.Te,0,0);this.Se&&c.uniform2f(this.Se,1,1);this.Xg&&c.uniform1f(this.Xg,1);this.Wg&&c.uniform1f(this.Wg,0);this.$g&&c.uniform2f(this.$g,
0,0);this.Zg&&c.uniform2f(this.Zg,0,0);this.He=!1}function d(c,a){this.type=c;this.n=a;this.k=a.k;this.uc=this.jc=this.xo=0;this.X=this.Sc=null;this.bp=[]}g.prototype.yn=function(){var c=this.k,a;this.Mn=1;this.Pe=this.Oe=null;this.Zh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Nn=c.ONE;this.Kn=c.ONE_MINUS_SRC_ALPHA;this.Gl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Gl);this.Ih=
Array(4);this.Ch=Array(4);for(a=0;4>a;a++)this.Ih[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ih[a]),this.Ch[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ch[a]);this.pd=0;this.Qs=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Qs);this.rm=new Float32Array(16E3);this.cm=new Float32Array(16E3);this.Jo=new Float32Array(32E3);for(var b=new Uint16Array(12E3),d=a=0;12E3>a;)b[a++]=d,b[a++]=d+1,b[a++]=d+2,b[a++]=d,b[a++]=d+2,b[a++]=d+3,d+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.Mf=this.jd=0;this.Qa=[];a=this.kk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Qa.push(a);a=this.kk({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.Qa.push(a);for(var s in fc)fc.hasOwnProperty(s)&&this.Qa.push(this.kk(fc[s],
"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}",s));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.od=[];this.Xc=0;this.Rb=this.zb=!1;this.Ym=this.Mg=-1;this.sg=null;this.ds=c.createFramebuffer();this.Qo=null;this.qe=ac([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.jt=c[0];this.ql=
c[1];2048<this.ql&&(this.ql=2048);this.fd(0)};n.prototype.mm=function(c){var a=this.$n;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])cc(c,this.$n),this.k.uniformMatrix4fv(this.Pi,!1,c)};g.prototype.kk=function(c,a,b){var d=this.k,s=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(s,c.src);d.compileShader(s);if(!d.getShaderParameter(s,
d.COMPILE_STATUS))return d.deleteShader(s),null;var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,a);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(s),d.deleteShader(f),null;a=d.createProgram();d.attachShader(a,s);d.attachShader(a,f);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(s),d.deleteShader(f),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(s);d.deleteShader(f);b=new n(d,a,b);b.uk=c.uk||0;b.vk=c.vk||0;b.Xm=
!!c.Xm;b.Nm=!!c.Nm;b.K=c.K||[];c=0;for(s=b.K.length;c<s;c++)b.K[c][1]=d.getUniformLocation(a,b.K[c][0]),b.gl.push(0),d.uniform1f(b.K[c][1],0);return b};g.prototype.Kk=function(c){var a,b;a=0;for(b=this.Qa.length;a<b;a++)if(this.Qa[a].name===c)return a;return-1};g.prototype.Mo=function(c,a,b){var d=this.zc,s=this.pl,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*c+d[4]*a+d[12];f[1]=d[1]*c+d[5]*a+d[13];f[2]=d[2]*c+d[6]*a+d[14];f[3]=d[3]*c+d[7]*a+d[15];f[4]=s[0]*f[0]+s[4]*f[1]+s[8]*f[2]+s[12]*f[3];f[5]=s[1]*f[0]+s[5]*
f[1]+s[9]*f[2]+s[13]*f[3];f[6]=s[2]*f[0]+s[6]*f[1]+s[10]*f[2]+s[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};g.prototype.Rf=function(c,a,b){if(this.width!==c||this.height!==a||b){this.ae();this.width=c;this.height=a;this.k.viewport(0,0,c,a);a=c/a;var d=this.pl,s;s=1*Math.tan(45*Math.PI/360);a*=s;c=-a;b=-s;d||(d=bc());var f=a-c,h=s-b;d[0]=2/f;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/h;d[6]=0;d[7]=0;d[8]=(a+c)/f;d[9]=
(s+b)/h;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;ec(this.Um,this.Tn,this.vp,this.zc);c=[0,0];a=[0,0];this.Mo(0,0,c);this.Mo(1,1,a);this.wm[0]=1/(a[0]-c[0]);this.wm[1]=-1/(a[1]-c[1]);c=0;for(a=this.Qa.length;c<a;c++)b=this.Qa[c],b.He=!1,b.Rn&&(this.k.useProgram(b.yh),this.k.uniformMatrix4fv(b.Rn,!1,this.pl));this.k.useProgram(this.Qa[this.Mg].yh);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Pe=this.Oe=null}};g.prototype.le=function(){ec(this.Um,this.Tn,this.vp,this.zc);dc(this.zc,this.wm)};g.prototype.translate=function(c,a){if(0!==c||0!==a){this.qe[0]=c;this.qe[1]=a;this.qe[2]=0;var b=this.zc,d=this.qe,s=d[0],f=d[1],d=d[2];b[12]=b[0]*s+b[4]*f+b[8]*d+b[12];b[13]=b[1]*s+b[5]*f+b[9]*d+b[13];b[14]=b[2]*s+b[6]*f+b[10]*d+b[14];b[15]=b[3]*s+b[7]*f+b[11]*d+b[15]}};g.prototype.scale=function(c,a){if(1!==c||1!==a)this.qe[0]=c,this.qe[1]=a,this.qe[2]=1,dc(this.zc,this.qe)};g.prototype.Ro=
function(c){if(0!==c){var a=this.zc,b,d=Math.sin(c);c=Math.cos(c);var s=a[0],f=a[1],h=a[2],t=a[3],k=a[4],m=a[5],w=a[6],g=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=s*c+k*d;b[1]=f*c+m*d;b[2]=h*c+w*d;b[3]=t*c+g*d;b[4]=s*-d+k*c;b[5]=f*-d+m*c;b[6]=h*-d+w*c;b[7]=t*-d+g*c}};g.prototype.se=function(){for(var c=!1,a=0;16>a;a++)if(this.Ln[a]!==this.zc[a]){c=!0;break}c&&(c=this.Ac(),c.type=5,c.X?cc(this.zc,c.X):c.X=bc(this.zc),cc(this.zc,
this.Ln),this.Rb=this.zb=!1)};d.prototype.qr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Sc)};d.prototype.rr=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Sc);c.activeTexture(c.TEXTURE0)};d.prototype.nr=function(){var c=this.xo,a=this.n;a.Zh=c;a=a.sg;a.Ef&&a.Ri!==c&&(a.Ri=c,this.k.uniform1f(a.Ef,c))};d.prototype.kr=function(){this.k.drawElements(this.k.TRIANGLES,this.uc,this.k.UNSIGNED_SHORT,2*this.jc)};d.prototype.mr=function(){this.k.blendFunc(this.jc,
this.uc)};d.prototype.sr=function(){var c,a,b,d=this.n.Qa,s=this.n.Ym;c=0;for(a=d.length;c<a;c++)b=d[c],c===s&&b.Pi?(b.mm(this.X),b.He=!0):b.He=!1;cc(this.X,this.n.lk)};d.prototype.lr=function(){var c=this.k,a=this.n;this.Sc?(a.Pe===this.Sc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Pe=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.ds),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Sc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};d.prototype.ir=function(){var c=this.k;0===this.jc?(c.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};d.prototype.jr=function(){var c=this.k,a=this.n,b=a.Qa[1];c.useProgram(b.yh);!b.He&&b.Pi&&(b.mm(a.lk),b.He=!0);c.enableVertexAttribArray(b.yc);
c.bindBuffer(c.ARRAY_BUFFER,a.Gl);c.vertexAttribPointer(b.yc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.jc/4,this.uc);b=a.sg;c.useProgram(b.yh);0<=b.yc&&(c.enableVertexAttribArray(b.yc),c.bindBuffer(c.ARRAY_BUFFER,a.Ih[a.pd]),c.vertexAttribPointer(b.yc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Ch[a.pd]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.or=function(){var c=this.k,a=this.n,b=a.Qa[this.jc];a.Ym=this.jc;a.sg=b;c.useProgram(b.yh);
!b.He&&b.Pi&&(b.mm(a.lk),b.He=!0);b.Ef&&b.Ri!==a.Zh&&(b.Ri=a.Zh,c.uniform1f(b.Ef,a.Zh));0<=b.yc&&(c.enableVertexAttribArray(b.yc),c.bindBuffer(c.ARRAY_BUFFER,a.Ih[a.pd]),c.vertexAttribPointer(b.yc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Ch[a.pd]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.pr=function(){var c,a,b=this.n.sg,d=this.k;c=this.X;b.Yg&&this.n.Pe!==this.Sc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Sc),
this.n.Pe=this.Sc,d.activeTexture(d.TEXTURE0));var s=c[0];b.ll&&s!==b.bo&&(b.bo=s,d.uniform1f(b.ll,s));s=c[1];b.kl&&s!==b.ao&&(b.ao=s,d.uniform1f(b.kl,s));s=c[2];a=c[3];!b.Te||s===b.Wn&&a===b.Xn||(b.Wn=s,b.Xn=a,d.uniform2f(b.Te,s,a));s=c[4];a=c[5];!b.Se||s===b.Un&&a===b.Vn||(b.Un=s,b.Vn=s,d.uniform2f(b.Se,s,a));s=c[6];b.Xg&&s!==b.Zn&&(b.Zn=s,d.uniform1f(b.Xg,s));s=c[7];b.Wg&&s!==b.Yn&&(b.Yn=s,d.uniform1f(b.Wg,s));s=c[8];a=c[9];!b.$g||s===b.fo&&a===b.ho||(b.fo=s,b.ho=a,d.uniform2f(b.$g,s,a));s=c[10];
a=c[11];!b.Zg||s===b.co&&a===b.eo||(b.co=s,b.eo=a,d.uniform2f(b.Zg,s,a));b.ml&&d.uniform1f(b.ml,Va()/1E3);if(b.K.length)for(c=0,a=b.K.length;c<a;c++)s=this.bp[c],s!==b.gl[c]&&(b.gl[c]=s,d.uniform1f(b.K[c][1],s))};g.prototype.Ac=function(){this.Xc===this.od.length&&this.od.push(new d(0,this));return this.od[this.Xc++]};g.prototype.ae=function(){if(0!==this.Xc&&!this.k.isContextLost()){var c=this.k;0<this.Mf&&(c.bindBuffer(c.ARRAY_BUFFER,this.Gl),c.bufferData(c.ARRAY_BUFFER,this.Jo.subarray(0,this.Mf),
c.STREAM_DRAW),a&&0<=a.yc&&"<point>"===a.name&&c.vertexAttribPointer(a.yc,4,c.FLOAT,!1,0,0));if(0<this.jd){var a=this.sg;c.bindBuffer(c.ARRAY_BUFFER,this.Ih[this.pd]);c.bufferData(c.ARRAY_BUFFER,this.rm.subarray(0,this.jd),c.STREAM_DRAW);a&&0<=a.yc&&"<point>"!==a.name&&c.vertexAttribPointer(a.yc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Ch[this.pd]);c.bufferData(c.ARRAY_BUFFER,this.cm.subarray(0,this.jd),c.STREAM_DRAW);a&&0<=a.ie&&"<point>"!==a.name&&c.vertexAttribPointer(a.ie,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.Xc;c<a;c++)switch(b=this.od[c],b.type){case 1:b.kr();break;case 2:b.qr();break;case 3:b.nr();break;case 4:b.mr();break;case 5:b.sr();break;case 6:b.lr();break;case 7:b.ir();break;case 8:b.jr();break;case 9:b.or();break;case 10:b.pr();break;case 11:b.rr()}this.Mf=this.jd=this.Xc=0;this.Rb=this.zb=!1;this.pd++;4<=this.pd&&(this.pd=0)}};g.prototype.Ye=function(c){if(c!==this.Mn){var a=this.Ac();a.type=3;this.Mn=a.xo=c;this.Rb=this.zb=!1}};g.prototype.Xb=function(c){if(c!==
this.Oe){var a=this.Ac();a.type=2;this.Oe=a.Sc=c;this.Rb=this.zb=!1}};g.prototype.me=function(c,a){if(c!==this.Nn||a!==this.Kn){var b=this.Ac();b.type=4;b.jc=c;b.uc=a;this.Nn=c;this.Kn=a;this.Rb=this.zb=!1}};g.prototype.Vo=function(){this.me(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};g.prototype.sh=function(c,a,b,d,s,f,h,t){15992<=this.jd&&this.ae();var k=this.jd,m=this.rm,w=this.cm;if(this.zb)this.od[this.Xc-1].uc+=6;else{var g=this.Ac();g.type=1;g.jc=k/4*3;g.uc=6;this.zb=!0;this.Rb=!1}m[k]=c;w[k++]=
0;m[k]=a;w[k++]=0;m[k]=b;w[k++]=1;m[k]=d;w[k++]=0;m[k]=s;w[k++]=1;m[k]=f;w[k++]=1;m[k]=h;w[k++]=0;m[k]=t;w[k++]=1;this.jd=k};g.prototype.Hd=function(c,a,b,d,s,f,h,t,k){15992<=this.jd&&this.ae();var m=this.jd,w=this.rm,g=this.cm;if(this.zb)this.od[this.Xc-1].uc+=6;else{var q=this.Ac();q.type=1;q.jc=m/4*3;q.uc=6;this.zb=!0;this.Rb=!1}var q=k.left,e=k.top,p=k.right;k=k.bottom;w[m]=c;g[m++]=q;w[m]=a;g[m++]=e;w[m]=b;g[m++]=p;w[m]=d;g[m++]=e;w[m]=s;g[m++]=p;w[m]=f;g[m++]=k;w[m]=h;g[m++]=q;w[m]=t;g[m++]=
k;this.jd=m};g.prototype.Dt=function(c,a,b,d){7996<=this.Mf&&this.ae();var g=this.Mf,f=this.Jo;if(this.Rb)this.od[this.Xc-1].uc++;else{var h=this.Ac();h.type=8;h.jc=g;h.uc=1;this.Rb=!0;this.zb=!1}f[g++]=c;f[g++]=a;f[g++]=b;f[g++]=d;this.Mf=g};g.prototype.fd=function(c){if(this.Mg!==c){if(!this.Qa[c]){if(0===this.Mg)return;c=0}var a=this.Ac();a.type=9;this.Mg=a.jc=c;this.Rb=this.zb=!1}};g.prototype.qh=function(c){c=this.Qa[c];return!(!c.Te&&!c.Se)};g.prototype.Il=function(c){c=this.Qa[c];return!!(c.Te||
c.Se||c.Xm)};g.prototype.Kt=function(c){c=this.Qa[c];return 0!==c.uk||0!==c.vk};g.prototype.vs=function(c){return this.Qa[c].uk};g.prototype.ws=function(c){return this.Qa[c].vk};g.prototype.xs=function(c,a){return this.Qa[c].K[a][2]};g.prototype.ij=function(c){return this.Qa[c].Nm};g.prototype.Qf=function(c,a,b,d,g,f,h,t,k,m,w,n,q,e){var p=this.Qa[this.Mg],u,y;if(p.Ns||e.length){u=this.Ac();u.type=10;u.X?cc(this.zc,u.X):u.X=bc();y=u.X;y[0]=a;y[1]=b;y[2]=d;y[3]=g;y[4]=f;y[5]=h;y[6]=t;y[7]=k;y[8]=m;
y[9]=w;y[10]=n;y[11]=q;u.Sc=p.Yg?c:null;if(e.length)for(b=u.bp,b.length=e.length,c=0,a=e.length;c<a;c++)b[c]=e[c];this.Rb=this.zb=!1}};g.prototype.clear=function(c,a,b,d){var g=this.Ac();g.type=7;g.jc=0;g.X||(g.X=bc());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Rb=this.zb=!1};g.prototype.clearRect=function(c,a,b,d){if(!(0>b||0>d)){var g=this.Ac();g.type=7;g.jc=1;g.X||(g.X=bc());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Rb=this.zb=!1}};g.prototype.Jt=function(){this.ae();this.k.flush()};var r=[],l={};
g.prototype.Zq=function(){r.length=0;l={}};g.prototype.Cf=function(c,a,b,d){a=!!a;b=!!b;var g=c.src+","+a+","+b+(a?",undefined":""),f=null;if("undefined"!==typeof c.src&&l.hasOwnProperty(g))return f=l[g],f.Rh++,f;this.ae();var h=this.k,t=ia(c.width)&&ia(c.height),f=h.createTexture();h.bindTexture(h.TEXTURE_2D,f);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=h.RGBA,m=h.RGBA,w=h.UNSIGNED_BYTE;if(d&&!this.Le)switch(d){case 1:m=k=h.RGB;break;case 2:w=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=
h.UNSIGNED_SHORT_5_5_5_1;break;case 4:m=k=h.RGB,w=h.UNSIGNED_SHORT_5_6_5}if(!t&&a){d=document.createElement("canvas");d.width=ja(c.width);d.height=ja(c.height);var n=d.getContext("2d");n.webkitImageSmoothingEnabled=b;n.mozImageSmoothingEnabled=b;n.msImageSmoothingEnabled=b;n.imageSmoothingEnabled=b;n.drawImage(c,0,0,c.width,c.height,0,0,d.width,d.height);h.texImage2D(h.TEXTURE_2D,0,k,m,w,d)}else h.texImage2D(h.TEXTURE_2D,0,k,m,w,c);a?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));b?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),t&&this.bn?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Oe=null;f.lg=c.width;f.kg=c.height;f.Rh=1;f.Sm=g;r.push(f);return l[g]=f};g.prototype.Yd=function(c,a,b){var d;this.ae();var g=this.k;this.Le&&(d=!1);var f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,a,0,g.RGBA,d?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Oe=null;f.lg=c;f.kg=a;r.push(f);return f};g.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Rh&&1<c.Rh?c.Rh--:(this.ae(),c===this.Oe&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Oe=null),c===this.Pe&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Pe=
null),Ba(r,c),"undefined"!==typeof c.Sm&&delete l[c.Sm],this.k.deleteTexture(c)))};g.prototype.ed=function(c){if(c!==this.Qo){var a=this.Ac();a.type=6;this.Qo=a.Sc=c;this.Rb=this.zb=!1}};ib=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.vc=(this.Hg=/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.bb=!!e.dc;this.sf="undefined"!==typeof window.AppMobi||this.bb;this.gc=!!window.c2cocoonjs;this.Jc=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Jc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.da=this.bb||this.gc||this.Jc;this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Fn=/tizen/i.test(navigator.userAgent);this.yi=/android/i.test(navigator.userAgent)&&!this.Fn&&!this.Le;this.el=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Le;this.Jn=/ipad/i.test(navigator.userAgent);this.Ei=this.el||this.Jn||this.Jc;this.bt=this.el&&/os\s6/i.test(navigator.userAgent);this.Gg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Le;this.Zk=/amazonwebappplatform/i.test(navigator.userAgent);this.Vs=/firefox/i.test(navigator.userAgent);this.En=/safari/i.test(navigator.userAgent)&&!this.Gg&&!this.Le;this.Ys=/windows/i.test(navigator.userAgent);this.ge="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Hn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.$s=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.uf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.cl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Gn=this.Hn||this.$s||this.cl;this.Us=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Ai=this.yi&&!this.Gg&&!this.Hg&&!this.Vs&&!this.Zk&&!this.da;this.devicePixelRatio=1;this.Ad=this.vc||this.Hg||this.sf||this.gc||this.yi||this.Ei||this.uf||this.cl||this.Us||this.Fn||this.Jc;this.Ad||(this.Ad=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ge||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ge=!0);this.canvas=e;this.Vm=document.getElementById("c2canvasdiv");this.aa=this.n=this.k=null;this.Bk="";this.ii=!1;this.vo=this.wo=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.bb&&(window.c2runtime=this);this.ge&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Ai&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.M=this.width;this.L=this.height;this.Xh=this.width;this.Wh=this.height;this.Og=window.innerWidth;this.Ng=window.innerHeight;this.gs=!1;this.ea=!0;this.Jg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Fa=[];this.jl={};this.Tb=[];this.tk={};this.td=[];this.fg=[];this.Fj=[];this.Uj=[];this.Qq=[];this.Ae={};this.$k=
this.ee=!1;this.zd=0;this.bl=!1;this.Hc=[];this.Bd=this.pb=this.Tg=this.nj="";this.Ah=this.ep=!1;this.ik=this.ah=this.$d=this.Ce=0;this.Zf=1;this.hc=new Za;this.kd=new Za;this.Ui=this.ki=this.fi=this.Yf=this.Re=this.Ak=this.Ii=0;this.xe=null;this.pk=[];this.sk=[];this.ei=-1;this.nl=[[]];this.jm=this.Qi=0;this.Kl(null);this.po=this.eh=0;this.il=!0;this.ug=0;this.Bh=[];this.gm=this.Ll=-1;this.zf=!0;this.Oi=0;this.Ig=!1;this.cu=0;this.gf=null;this.ha=this.qf=!1;this.uo=new ba;this.wl=new ba;this.xl=
new ba;this.Nt=[];this.Rc=new ab([]);this.am=new ab([]);this.Ud=[];this.ri={};this.jf={};this.ff={};this.eg={};this.Pm={};this.Qn=this.Ki=this.Sb=this.ic=this.Pn=this.Ji=this.Y=null;this.bg=this.dl=!1;this.Ck=[null,null];this.Fe=0;this.xk="";this.Fd={};this.sj=this.Df=null;this.Ti=[];this.Ot()}}function r(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(e,a,b,f){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=f;c.onsuccess=function(c){c=c.target.result;
c.onerror=f;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function c(e,a,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var c=f.transaction(["saves"]).objectStore("saves").get(e);c.onsuccess=function(){c.result?a(c.result.data):a(null)}}}function a(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function b(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof ba||e[a]&&"undefined"!==typeof e[a].sv||(b[a]=e[a]);return b}d.prototype.Ot=function(){var e=this,a;a=this.uf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.Hn||this.uf||this.cl)b="data.json";a.open("GET",b,!0);var f=!1;if(!this.da&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(c){f=!1}if(!f&&
"responseType"in a)try{a.responseType="text"}catch(k){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(q){}this.uf?a.onreadystatechange=function(){4===a.readyState&&e.Mi(JSON.parse(a.responseText))}:(a.onload=function(){if(f)e.Mi(a.response);else if(e.Jc){var b=a.responseText,b=b.substr(b.indexOf("{"));e.Mi(JSON.parse(b))}else e.Mi(JSON.parse(a.responseText))},a.onerror=function(e){ea("Error requesting "+b+":");ea(e)});a.send()};d.prototype.Rs=function(){var e=
this,a,b,f,c,k,q,d,h,t;this.devicePixelRatio=(this.Me=(!this.da||this.Jc)&&this.nu&&!this.Ai)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();b=!(!this.gs&&(!this.Wj||this.ge||this.Gn||this.uf||this.Hg||this.vc||this.Zk));0<this.lb&&this.setSize(g(),n(),!0);try{this.Cr&&(this.gc||this.Jc||!this.da)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(m){}if(this.k){this.da||(this.cb=document.createElement("canvas"),jQuery(this.cb).appendTo(this.canvas.parentNode),this.cb.oncontextmenu=function(){return!1},this.cb.onselectstart=function(){return!1},this.cb.width=this.Xh,this.cb.height=this.Wh,jQuery(this.cb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.Lo(),this.Fl=this.cb.getContext("2d"));this.n=new ib(this.k,this.Ad);this.n.Rf(this.canvas.width,this.canvas.height);this.n.bn=0!==this.tr;this.aa=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();e.mt();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.n.yn();e.n.Rf(e.n.width,e.n.height,!0);e.ic=null;e.Sb=null;e.Ck[0]=null;e.Ck[1]=null;e.nt();e.ea=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.m.length;a<b;a++)for(k=this.m[a],f=0,c=k.G.length;f<c;f++)d=k.G[f],d.eb=this.n.Kk(d.id),this.bg=this.bg||this.n.qh(d.eb);a=0;for(b=this.Tb.length;a<
b;a++){h=this.Tb[a];f=0;for(c=h.G.length;f<c;f++)d=h.G[f],d.eb=this.n.Kk(d.id);f=0;for(c=h.J.length;f<c;f++)for(t=h.J[f],k=0,q=t.G.length;k<q;k++)d=t.G[k],d.eb=this.n.Kk(d.id),this.bg=this.bg||this.n.qh(d.eb)}}else{if(0<this.lb&&this.bb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.S?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=
this.S}catch(w){}0!==this.width&&0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(a=this.gc?{antialias:!!this.S,alpha:b}:{alpha:b},this.aa=this.canvas.getContext("2d",a),this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S);this.Fl=this.cb=null}this.mp=function(a){e.Za(!1,a)};window==window.top||this.da||this.Gn||this.uf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(I("Reloading for continuous preview"),this.Tg="__c2_continuouspreview",this.Ah=!0),this.Bt&&!this.Ad&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.da||(a=function(e){if(hb(e)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.lb&&this.Me&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.rp();this.Ks();
this.go();this.ua={}};d.prototype.setSize=function(e,a,b){var f=0,c=0,k=0,d=0,d=0,q=this.bt&&this.En&&!navigator.standalone&&!this.da&&!this.vc;q&&(a+=60);if(this.Og!==e||this.Ng!==a||b){this.Og=e;this.Ng=a;var h=this.lb,t=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ig)&&!this.vc;if(t||0!==this.lb||b)t&&0<this.Fe&&(h=this.Fe),b=this.devicePixelRatio,4<=h?(k=this.Na/this.Ma,e/a>k?(k*=a,5===h?(d=k*b/this.Na,1<d?d=Math.floor(d):1>d&&
(d=1/Math.ceil(1/d)),k=this.Na*d/b,d=this.Ma*d/b,f=(e-k)/2,c=(a-d)/2,e=k,a=d):(f=(e-k)/2,e=k)):(d=e/k,5===h?(d=d*b/this.Ma,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),k=this.Na*d/b,d=this.Ma*d/b,f=(e-k)/2,c=(a-d)/2,e=k):c=(a-d)/2,a=d),t&&!this.ge&&(c=f=0)):this.ge&&this.Ig&&0===this.jn&&(f=Math.floor((e-this.Na)/2),c=Math.floor((a-this.Ma)/2),e=this.Na,a=this.Ma),2>h&&(this.jg=b),this.Me&&this.Jn&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.Xh=Math.round(e),this.Wh=Math.round(a),this.width=
Math.round(e*b),this.height=Math.round(a*b),this.ea=!0,this.Cp?(this.M=this.width,this.L=this.height,this.pc=!0):this.width<this.Na&&this.height<this.Ma||1===h?(this.M=this.width,this.L=this.height,this.pc=!0):(this.M=this.Na,this.L=this.Ma,this.pc=!1,2===h?(k=this.Na/this.Ma,h=this.Og/this.Ng,h<k?this.M=this.L*h:h>k&&(this.L=this.M/h)):3===h&&(k=this.Na/this.Ma,h=this.Og/this.Ng,h>k?this.M=this.L*h:h<k&&(this.L=this.M/h))),this.Vm&&!this.da&&(jQuery(this.Vm).css({width:Math.round(e)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*b),this.canvas.height=Math.round(a*b),this.Jc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Me&&!this.da&&jQuery(this.canvas).css({width:Math.round(e)+
"px",height:Math.round(a)+"px"})),this.cb&&(this.cb.width=Math.round(e),this.cb.height=Math.round(a),jQuery(this.cb).css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.n&&this.n.Rf(Math.round(e*b),Math.round(a*b)),this.bb&&this.aa&&(this.aa.width=Math.round(e),this.aa.height=Math.round(a)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S),this.rp(),this.da||!q&&!this.el||
window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.rp=function(){if(this.Sq&&0!==this.Dl){var e="portrait";2===this.Dl&&(e="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(e):screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};d.prototype.mt=function(){this.n.Zq();this.dl=!0;var e,
a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Vi&&b.Vi()};d.prototype.nt=function(){this.dl=!1;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Wi&&b.Wi()};d.prototype.Lo=function(){if(!this.da){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Ig)&&!this.vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.cb).css(e)}};var x=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(e){var a;if(e&&!this.Jg)for(I("[Construct 2] Suspending"),this.Jg=!0,-1!==this.Ll&&x&&x(this.Ll),-1!==this.gm&&clearTimeout(this.gm),e=0,a=this.Bh.length;e<a;e++)this.Bh[e](!0);else if(!e&&this.Jg){I("[Construct 2] Resuming");this.Jg=!1;this.Ii=Va();this.Re=Va();e=this.ah=this.ki=0;for(a=this.Bh.length;e<a;e++)this.Bh[e](!1);this.Za(!1)}};d.prototype.Oq=function(e){this.Bh.push(e)};
d.prototype.Rd=function(e){return this.Ti[e]};d.prototype.Mi=function(e){e&&e.project||ea("Project model unavailable");e=e.project;this.name=e[0];this.hn=e[1];this.lb=e[12];this.jn=e[12];this.Na=e[10];this.Ma=e[11];this.Eo=this.Na/2;this.Fo=this.Ma/2;this.da&&!this.Jc&&(4<=e[12]||0===e[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.jn=this.lb=3);this.qm=e[18];this.Vg=e[19];0===this.Vg&&(this.Df=new Image,this.Df.src=
"loading-logo.png");this.eh=e[21];this.Ti=gc();this.gd=new V(this);var a,b,f,c,k,d,h,q,t;a=0;for(b=e[2].length;a<b;a++)h=e[2][a],f=this.Rd(h[0]),jb(h,f.prototype),t=new f(this),t.qj=h[1],t.he=h[2],t.no=h[9],t.ja&&t.ja(),this.plugins.push(t);this.Ti=gc();a=0;for(b=e[3].length;a<b;a++){h=e[3][a];k=this.Rd(h[1]);t=null;f=0;for(c=this.plugins.length;f<c;f++)if(this.plugins[f]instanceof k){t=this.plugins[f];break}var m=new t.gb(t);m.name=h[0];m.A=h[2];m.Yk=h[3].slice(0);m.pu=h[3].length;m.Tq=h[4];m.js=
h[5];m.O=h[11];m.A?(m.Si=[],m.ud=this.ug++,m.pa=null):(m.Si=null,m.ud=-1,m.pa=[]);m.gi=null;m.mf=null;m.cn=null;m.Kc=!1;m.Nb=null;h[6]?(m.zj=h[6][0],m.Aj=h[6][1],m.Dh=h[6][2]):(m.zj=null,m.Aj=0,m.Dh=0);m.Lb=h[7]?h[7]:null;m.index=a;m.c=[];m.ai=[];m.oe=[new kb(m)];m.sd=0;m.Yc=null;m.er=0;m.Wf=!0;m.Hj=lb;m.os=mb;m.ts=nb;m.ba=ob;m.rh=pb;m.Jl=rb;m.Nf=sb;m.mi=tb;m.Ek=ub;m.Hk=vb;m.nd=wb;m.pn=xb;m.mg=new bb(this.Na,this.Ma);m.Jh=!0;m.Kh=!1;m.ua={};m.toString=yb;m.Fa=[];f=0;for(c=h[8].length;f<c;f++){q=h[8][f];
var g=this.Rd(q[1]),w=null;k=0;for(d=this.Fa.length;k<d;k++)if(this.Fa[k]instanceof g){w=this.Fa[k];break}w||(w=new g(this),w.oo=[],w.Hf=new ba,w.ja&&w.ja(),this.Fa.push(w));-1===w.oo.indexOf(m)&&w.oo.push(m);k=new w.gb(w,m);k.name=q[0];k.O=q[2];k.ja();m.Fa.push(k)}m.global=h[9];m.al=h[10];m.G=[];f=0;for(c=h[12].length;f<c;f++)m.G.push({id:h[12][f][0],name:h[12][f][1],eb:-1,Ta:!0,index:f});m.Gv=h[13];this.qm&&!m.A&&!m.al&&t.he||m.ja();m.name&&(this.types[m.name]=m);this.m.push(m);t.qj&&(f=new t.Ea(m),
f.uid=this.eh++,f.Oo=this.po++,f.Je=0,f.zg=zb,f.toString=Ab,f.Da=h[14],f.ja(),m.c.push(f),this.Fd[f.uid.toString()]=f)}a=0;for(b=e[4].length;a<b;a++)for(k=e[4][a],d=this.m[k[0]],f=1,c=k.length;f<c;f++)h=this.m[k[f]],h.pa.push(d),d.Si.push(h);a=0;for(b=e[27].length;a<b;a++){k=e[27][a];d=[];f=0;for(c=k.length;f<c;f++)d.push(this.m[k[f]]);f=0;for(c=d.length;f<c;f++)d[f].Kc=!0,d[f].Nb=d}if(0<this.ug)for(a=0,b=this.m.length;a<b;a++)if(h=this.m[a],!h.A&&h.pa.length){h.gi=Array(this.ug);h.mf=Array(this.ug);
h.cn=Array(this.ug);m=[];f=w=g=q=0;for(c=h.pa.length;f<c;f++)for(t=h.pa[f],h.gi[t.ud]=q,q+=t.pu,h.mf[t.ud]=g,g+=t.Tq,h.cn[t.ud]=w,w+=t.js,k=0,d=t.G.length;k<d;k++)m.push(wa({},t.G[k]));h.G=m.concat(h.G);f=0;for(c=h.G.length;f<c;f++)h.G[f].index=f}a=0;for(b=e[5].length;a<b;a++)h=e[5][a],f=new Bb(this,h),this.jl[f.name]=f,this.Tb.push(f);a=0;for(b=e[6].length;a<b;a++)h=e[6][a],f=new Cb(this,h),this.tk[f.name]=f,this.td.push(f);a=0;for(b=this.td.length;a<b;a++)this.td[a].Ca();a=0;for(b=this.td.length;a<
b;a++)this.td[a].lm();a=0;for(b=this.Fj.length;a<b;a++)this.Fj[a].Ca();this.Fj.length=0;this.Rq=e[7];this.xk=e[8];this.dd=e[9];this.jg=1;this.Cr=e[13];this.S=e[14];this.Wj=e[15];this.nu=e[17];this.Dl=e[20];this.Sq=0<this.Dl;this.Bt=e[22];this.pc=this.Cp=e[23];this.tr=e[24];this.Ht=e[25];this.vj=Date.now();this.Ti.length=0;this.Rs()};var s=!1;d.prototype.um=function(e,a){e.cocoonLazyLoad=!0;e.onerror=function(a){s=e.Rm=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};
this.Jc?e.src=a:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){e.src=a},function(b){s=e.Rm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):e.src=a);this.fg.push(e)};d.prototype.es=function(e){var a,b;a=0;for(b=this.fg.length;a<b;a++)if(this.fg[a].$q===e)return this.fg[a];return null};var f=0,h=!1;d.prototype.Ks=function(){this.gf&&(f=this.gf.$t(this.Rq))};d.prototype.Om=function(){var e=f,a=0,b=0,c=!0,k,d,b=0;for(k=this.fg.length;b<
k;b++){d=this.fg[b];var q=d.jk;if(!q||0>=q)q=5E4;e+=q;d.src&&(d.complete||d.loaded)&&!d.Rm?a+=q:c=!1}c&&this.Ht&&this.gf&&(h||(this.gf.du(),h=!0),b=this.gf.us(),a+=b,b<f&&(c=!1));this.Xe=0==e?0:a/e;return c};d.prototype.go=function(){if(this.aa||this.n){var e=this.aa||this.Fl;this.cb&&this.Lo();this.Xe=0;this.On=-1;if(this.Om())this.Ls();else{var a=Date.now()-this.vj;if(e){var b=this.width,f=this.height,c=this.devicePixelRatio;this.cb&&(b=this.Xh,f=this.Wh,c=1);if(3!==this.Vg&&(this.gc||500<=a&&this.On!=
this.Xe)){e.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Vg&&this.Df.complete,k=40*c,h=0,d=80*c,q;b&&(d=this.Df.width*c,q=this.Df.height*c,k=d/2,h=q/2,e.drawImage(this.Df,Q(a-k),Q(f-h),d,q));1>=this.Vg?(a=Q(a-k)+.5,f=Q(f+(h+(b?12*c:0)))+.5,e.fillStyle=s?"red":"DodgerBlue",e.fillRect(a,f,Math.floor(d*this.Xe),6*c),e.strokeStyle="black",e.strokeRect(a,f,d,6*c),e.strokeStyle="white",e.strokeRect(a-1*c,f-1*c,d+2*c,8*c)):2===this.Vg&&(e.font=this.Jc?"12pt ArialMT":"12pt Arial",e.fillStyle=s?"#f00":"#999",
e.Fv="middle",c=Math.round(100*this.Xe)+"%",b=e.measureText?e.measureText(c):null,e.fillText(c,a-(b?b.width:0)/2,f))}this.On=this.Xe}setTimeout(function(e){return function(){e.go()}}(this),this.gc?10:100)}}};d.prototype.Ls=function(){this.cb&&(this.canvas.parentNode.removeChild(this.cb),this.cb=this.Fl=null);this.vj=Date.now();this.Re=Va();var e,a,b;if(this.qm)for(e=0,a=this.m.length;e<a;e++)b=this.m[e],b.A||b.al||!b.Ba.he||b.ja();else this.zf=!1;e=0;for(a=this.Tb.length;e<a;e++)this.Tb[e].br();2<=
this.lb&&(e=this.Na/this.Ma,a=this.width/this.height,this.jg=2!==this.lb&&a>e||2===this.lb&&a<e?this.height/this.Ma:this.width/this.Na);this.hn?this.jl[this.hn].Zl():this.Tb[0].Zl();this.qm||(this.Oi=1,this.trigger(V.prototype.i.Am,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.lt&&b.lt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Za(!1);this.bb&&
AppMobi.webview.execute("onGameReady();")};var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Za=function(e,a,b){if(this.Y){var f=Va();if(b||!this.Jg||e){e||(t?this.Ll=t(this.mp):this.gm=setTimeout(this.mp,this.Ad?1:16));a=a||f;var c=this.lb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.vc)||this.Ig)&&
0<this.Fe&&(c=this.Fe);0<c&&(!this.Ei||window.self!==window.top)&&(c=window.innerHeight,this.Og===window.innerWidth&&this.Ng===c||this.setSize(g(),n()));this.da||(b?(this.ii||(this.Bk=jQuery(this.canvas).css("margin")||"0",this.ii=!0),this.Gg||this.ge||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.ii?(this.Gg||this.ge||jQuery(this.canvas).css("margin",
this.Bk),this.Bk="",this.ii=!1,0===this.lb&&this.setSize(Math.round(this.wo/this.devicePixelRatio),Math.round(this.vo/this.devicePixelRatio),!0)):(this.wo=this.width,this.vo=this.height));this.zf&&(b=this.Om(),this.Oi=this.Xe,b&&(this.zf=!1,this.Xe=1,this.trigger(V.prototype.i.Am,null)));this.et(a);!this.ea&&!this.gc||this.dl||this.Ah||e||(this.ea=!1,this.n?this.Pb():this.Ic(),this.sj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.sj[0],this.sj[1]),this.trigger(V.prototype.i.cq,
null)),this.sj=null));this.zv||(this.Yf++,this.fi++,this.ki++);this.ah+=Va()-f}}};d.prototype.et=function(e){var a,b,f,c,k,h,d,q;1E3<=e-this.Re&&(this.Re+=1E3,1E3<=e-this.Re&&(this.Re=e),this.Ak=this.ki,this.ki=0,this.ik=this.ah,this.ah=0);0!==this.Ii&&(a=e-this.Ii,0>a&&(a=0),this.$d=a/1E3,.5<this.$d?this.$d=0:.1<this.$d&&(this.$d=.1));this.Ii=e;this.Ce=this.$d*this.Zf;this.hc.add(this.Ce);this.kd.add(this.$d);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Ig)&&!this.vc;2<=this.lb||e&&0<this.Fe?(a=this.Na/this.Ma,b=this.width/this.height,f=this.lb,e&&0<this.Fe&&(f=this.Fe),this.jg=2!==f&&b>a||2===f&&b<a?this.height/this.Ma:this.width/this.Na,this.Y&&(this.Y.To(this.Y.scrollX),this.Y.Uo(this.Y.scrollY))):this.jg=this.Me?this.devicePixelRatio:1;this.fb();this.zd++;this.gd.Rt();this.zd--;this.fb();this.zd++;b=this.uo.Uc();e=0;for(a=b.length;e<a;e++)b[e].Bv();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=
h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)d.F[c].Za();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)q=d.F[c],q.Gt&&q.Gt();b=this.wl.Uc();e=0;for(a=b.length;e<a;e++)b[e].Za();this.zd--;this.Ms();for(e=0;this.xe&&10>e++;)this.Zm(this.xe);e=0;for(a=this.td.length;e<a;e++)this.td[e].Rk=!1;this.Y.De&&this.Y.De.Pa();this.Nt.length=0;this.il=!1;this.zd++;e=0;for(a=this.m.length;e<a;e++)if(h=
this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)q=d.F[c],q.em&&q.em();b=this.xl.Uc();e=0;for(a=b.length;e<a;e++)b[e].em();this.zd--};d.prototype.Zm=function(e){var a=this.Y;this.Y.eu();var b,f,c,k,h,d,q;if(this.n)for(b=0,f=this.m.length;b<f;b++)h=this.m[b],h.A||!h.Gj||h.global&&0!==h.c.length||-1!==e.Eg.indexOf(h)||h.Gj();a==e&&(this.gd.Jb.length=0);e.Zl();b=0;for(f=this.m.length;b<f;b++)if(h=this.m[b],h.global||h.Ba.qj)for(e=0,a=h.c.length;e<
a;e++)if(d=h.c[e],d.Cl&&d.Cl(),d.F)for(c=0,k=d.F.length;c<k;c++)q=d.F[c],q.Cl&&q.Cl();this.il=this.ea=!0;this.fb()};d.prototype.fm=function(e){this.wl.add(e)};d.prototype.gu=function(e){this.xl.add(e)};d.prototype.Fk=function(e){return e&&-1!==e.dh?this.$d*e.dh:this.Ce};d.prototype.Ic=function(){this.Y.Ic(this.aa);this.bb&&this.aa.present()};d.prototype.Pb=function(){this.Y.Pb(this.n);this.n.Jt()};d.prototype.Mq=function(e){e&&this.pk.push(e)};d.prototype.pi=function(e){e=e.toString();return this.Fd.hasOwnProperty(e)?
this.Fd[e]:null};var k=[];d.prototype.Qd=function(e){var a,b;a=e.type.name;var f=null;if(this.Ae.hasOwnProperty(a)){if(f=this.Ae[a],f.contains(e))return}else f=k.length?k.pop():new ba,this.Ae[a]=f;f.add(e);this.ee=!0;if(e.Kc)for(a=0,b=e.siblings.length;a<b;a++)this.Qd(e.siblings[a]);this.$k&&f.dg.push(e);this.zd++;this.trigger(Object.getPrototypeOf(e.type.Ba).i.fq,e);this.zd--};d.prototype.fb=function(){if(this.ee){var e,a,b,f,c,k;this.$k=!0;b=0;for(c=this.Hc.length;b<c;++b)for(e=this.Hc[b],a=e.type,
a.c.push(e),f=0,k=a.pa.length;f<k;++f)a.pa[f].c.push(e),a.pa[f].Wf=!0;this.Hc.length=0;this.Vp();Ua(this.Ae);this.ee=this.$k=!1}};d.prototype.Vp=function(){for(var e in this.Ae)this.Ae.hasOwnProperty(e)&&this.Hp(this.Ae[e])};d.prototype.Hp=function(e){var a=e.Uc(),b=a[0].type,f,c,h,d,q,m;Wa(b.c,e);b.Wf=!0;0===b.c.length&&(b.Kh=!1);f=0;for(c=b.pa.length;f<c;++f)m=b.pa[f],Wa(m.c,e),m.Wf=!0;f=0;for(c=this.gd.Jb.length;f<c;++f)if(q=this.gd.Jb[f],q.rb.hasOwnProperty(b.index)&&Wa(q.rb[b.index].xd,e),!b.A)for(h=
0,d=b.pa.length;h<d;++h)m=b.pa[h],q.rb.hasOwnProperty(m.index)&&Wa(q.rb[m.index].xd,e);if(q=a[0].d){if(q.Tc)for(h=q.c,f=0,c=h.length;f<c;++f)d=h[f],e.contains(d)&&(d.ma(),q.Vb.update(d,d.Fb,null),d.Fb.set(0,0,-1,-1));Wa(q.c,e);q.wh(0)}for(f=0;f<a.length;++f)this.Gp(a[f],b);e.clear();k.push(e);this.ea=!0};d.prototype.Gp=function(e,a){var b,f,c;b=0;for(f=this.pk.length;b<f;++b)this.pk[b](e);e.kc&&a.mg.update(e,e.kc,null);(b=e.d)&&b.Of(e,!0);if(e.F)for(b=0,f=e.F.length;b<f;++b)c=e.F[b],c.fh&&c.fh(),
c.behavior.Hf.remove(e);this.uo.remove(e);this.wl.remove(e);this.xl.remove(e);e.fh&&e.fh();this.Fd.hasOwnProperty(e.uid.toString())&&delete this.Fd[e.uid.toString()];this.Ui--;100>a.ai.length&&a.ai.push(e)};var m=[];d.prototype.ze=function(e,a,b,f,c,k){var h,d,q,t;if(!e)return null;var g=this.m[e[1]],w=g.Ba.he;if(this.zf&&w&&!g.al||w&&!this.n&&11===e[0][11])return null;var n=a;w||(a=null);var l;g.ai.length?(l=g.ai.pop(),l.Pc=!0,g.Ba.Ea.call(l,g)):(l=new g.Ba.Ea(g),l.Pc=!1);l.uid=!b||k||this.Fd.hasOwnProperty(e[2].toString())?
this.eh++:e[2];this.Fd[l.uid.toString()]=l;l.Oo=this.po++;l.Je=g.c.length;h=0;for(d=this.Hc.length;h<d;++h)this.Hc[h].type===g&&l.Je++;l.zg=zb;l.toString=Ab;q=e[3];if(l.Pc)Ua(l.ua);else{l.ua={};if("undefined"!==typeof cr_is_preview)for(l.Bn=[],l.Bn.length=q.length,h=0,d=q.length;h<d;h++)l.Bn[h]=q[h][1];l.Ka=[];l.Ka.length=q.length}h=0;for(d=q.length;h<d;h++)l.Ka[h]=q[h][0];if(w){var s=e[0];l.x=fa(f)?s[0]:f;l.y=fa(c)?s[1]:c;l.z=s[2];l.width=s[3];l.height=s[4];l.depth=s[5];l.j=s[6];l.opacity=s[7];l.Ab=
s[8];l.Bb=s[9];l.sb=s[10];h=s[11];!this.n&&g.G.length&&(l.sb=h);l.ng=db(l.sb);this.k&&eb(l,l.sb,this.k);if(l.Pc){h=0;for(d=s[12].length;h<d;h++)for(q=0,t=s[12][h].length;q<t;q++)l.ta[h][q]=s[12][h][q];l.ya.set(0,0,0,0);l.kc.set(0,0,-1,-1);l.Fb.set(0,0,-1,-1);l.Mb.Tf(l.ya);l.$j.length=0}else{l.ta=s[12].slice(0);h=0;for(d=l.ta.length;h<d;h++)l.ta[h]=s[12][h].slice(0);l.U=[];l.Sd=[];l.Sd.length=g.G.length;l.ya=new ta(0,0,0,0);l.kc=new ta(0,0,-1,-1);l.Fb=new ta(0,0,-1,-1);l.Mb=new va;l.$j=[];l.qa=Db;
l.Pq=Eb;l.$a=Fb;l.ma=Gb;l.mu=Hb;l.pm=Ib;l.tc=Jb}l.Eh=!1;l.ju=0;l.iu=0;l.hu=null;14===s.length&&(l.Eh=!0,l.ju=s[13][0],l.iu=s[13][1],l.hu=s[13][2]);h=0;for(d=g.G.length;h<d;h++)l.Sd[h]=!0;l.Od=Kb;l.Od();l.Ap=!!l.U.length;l.Ph=!0;l.bk=!0;g.Jh=!0;l.visible=!0;l.dh=-1;l.d=a;l.Vc=a.c.length;"undefined"===typeof l.V&&(l.V=null);this.ea=l.Gc=!0}var A;h=m.length=0;for(d=g.pa.length;h<d;h++)m.push.apply(m,g.pa[h].Fa);m.push.apply(m,g.Fa);if(l.Pc)for(h=0,d=m.length;h<d;h++){var x=m[h];A=l.F[h];A.Pc=!0;x.behavior.Ea.call(A,
x,l);s=e[4][h];q=0;for(t=s.length;q<t;q++)A.Da[q]=s[q];A.ja();x.behavior.Hf.add(l)}else for(l.F=[],h=0,d=m.length;h<d;h++)x=m[h],A=new x.behavior.Ea(x,l),A.Pc=!1,A.Da=e[4][h].slice(0),A.ja(),l.F.push(A),x.behavior.Hf.add(l);s=e[5];if(l.Pc)for(h=0,d=s.length;h<d;h++)l.Da[h]=s[h];else l.Da=s.slice(0);this.Hc.push(l);this.ee=!0;a&&(a.ig(l,!0),1!==a.Db||1!==a.Eb)&&(g.Kh=!0);this.Ui++;if(g.Kc){if(l.Kc=!0,l.Pc?l.siblings.length=0:l.siblings=[],!b&&!k){h=0;for(d=g.Nb.length;h<d;h++)if(g.Nb[h]!==g){if(!g.Nb[h].Yc)return null;
l.siblings.push(this.ze(g.Nb[h].Yc,n,!1,w?l.x:f,w?l.y:c,!0))}h=0;for(d=l.siblings.length;h<d;h++)for(l.siblings[h].siblings.push(l),q=0;q<d;q++)h!==q&&l.siblings[h].siblings.push(l.siblings[q])}}else l.Kc=!1,l.siblings=null;l.ja();h=0;for(d=l.F.length;h<d;h++)l.F[h].Ft&&l.F[h].Ft();return l};d.prototype.wg=function(e){var a,b;a=0;for(b=this.Y.J.length;a<b;a++){var f=this.Y.J[a];if(gb(f.name,e))return f}return null};d.prototype.wd=function(e){e=Q(e);0>e&&(e=0);e>=this.Y.J.length&&(e=this.Y.J.length-
1);return this.Y.J[e]};d.prototype.gk=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].ba().fa=!0};d.prototype.rh=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].rh()};d.prototype.Jl=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Jl()};d.prototype.Nf=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Nf()};d.prototype.xp=function(e){if(e.Jh){var a,b,f=e.c;a=0;for(b=f.length;a<b;++a)f[a].pm();f=this.Hc;a=0;for(b=f.length;a<b;++a)f[a].type===e&&f[a].pm();e.Jh=!1}};d.prototype.ns=function(e,
a,b,f){var c,h,k=e?1!==e.Db||1!==e.Eb:!1;if(a.A)for(e=0,c=a.Si.length;e<c;++e)h=a.Si[e],k||h.Kh?za(f,h.c):(this.xp(h),h.mg.jj(b,f));else k||a.Kh?za(f,a.c):(this.xp(a),a.mg.jj(b,f))};d.prototype.Xf=function(e,a,b,f){var c=e.ba(),h,k,d,q,m,t;if(c.fa)for(f||(c.fa=!1,c.c.length=0),h=0,q=e.c.length;h<q;h++){if(d=e.c[h],d.ma(),m=d.d.na(a,b,!0),t=d.d.na(a,b,!1),d.$a(m,t)){if(f)return!1;c.c.push(d)}}else{h=k=0;for(q=c.c.length;h<q;h++)if(d=c.c[h],d.ma(),m=d.d.na(a,b,!0),t=d.d.na(a,b,!1),d.$a(m,t)){if(f)return!1;
c.c[k]=c.c[h];k++}f||(c.c.length=k)}e.nd();return f?!0:c.Qk()};d.prototype.fu=function(e,a){if(!(e&&a&&e!==a&&e.Gc&&a.Gc))return!1;e.ma();a.ma();var b=e.d,f=a.d,c,h,k,d,q,m,t,g;if(b===f||b.Db===f.Db&&f.Eb===f.Eb&&b.scale===f.scale&&b.j===f.j&&b.kb===f.kb){if(!e.ya.Ss(a.ya)||!e.Mb.Cn(a.Mb)||e.Eh&&a.Eh)return!1;if(e.Eh)return this.kp(e,a);if(a.Eh)return this.kp(a,e);t=e.V&&!e.V.vf();c=a.V&&!a.V.vf();if(!t&&!c)return!0;t?(e.V.hf(e.width,e.height,e.j),t=e.V):(this.Rc.Sf(e.Mb,e.x,e.y,e.width,e.height),
t=this.Rc);c?(a.V.hf(a.width,a.height,a.j),g=a.V):(this.Rc.Sf(a.Mb,a.x,a.y,a.width,a.height),g=this.Rc);return t.Fg(g,a.x-e.x,a.y-e.y)}t=e.V&&!e.V.vf();c=a.V&&!a.V.vf();t?(e.V.hf(e.width,e.height,e.j),this.Rc.Zo(e.V)):this.Rc.Sf(e.Mb,e.x,e.y,e.width,e.height);t=this.Rc;c?(a.V.hf(a.width,a.height,a.j),this.am.Zo(a.V)):this.am.Sf(a.Mb,a.x,a.y,a.width,a.height);g=this.am;c=0;for(h=t.Oc;c<h;c++)k=2*c,d=k+1,q=t.Oa[k],m=t.Oa[d],t.Oa[k]=b.nb(q+e.x,m+e.y,!0),t.Oa[d]=b.nb(q+e.x,m+e.y,!1);t.ma();c=0;for(h=
g.Oc;c<h;c++)k=2*c,d=k+1,q=g.Oa[k],m=g.Oa[d],g.Oa[k]=f.nb(q+a.x,m+a.y,!0),g.Oa[d]=f.nb(q+a.x,m+a.y,!1);g.ma();return t.Fg(g,0,0)};var w=new va;new ta(0,0,0,0);var A=[];d.prototype.kp=function(e,a){var b,f,c,h,k=a.ya,d=e.x,q=e.y;e.vv(k,A);var m=a.V&&!a.V.vf();b=0;for(f=A.length;b<f;++b)if(c=A[b],h=c.Cv,k.Ts(h,d,q)&&(w.Tf(h),w.offset(d,q),w.Cn(a.Mb)))if(m)if(a.V.hf(a.width,a.height,a.j),c.Hl){if(c.Hl.Fg(a.V,a.x-(d+h.left),a.y-(q+h.top)))return A.length=0,!0}else{if(this.Rc.Sf(w,0,0,h.right-h.left,h.bottom-
h.top),this.Rc.Fg(a.V,a.x,a.y))return A.length=0,!0}else if(c.Hl){if(this.Rc.Sf(a.Mb,0,0,a.width,a.height),c.Hl.Fg(this.Rc,-(d+h.left),-(q+h.top)))return A.length=0,!0}else return A.length=0,!0;A.length=0;return!1};d.prototype.sp=function(e,a){if(!a)return!1;var b,f,c,h,k;b=0;for(f=e.Fa.length;b<f;b++)if(e.Fa[b].behavior instanceof a)return!0;if(!e.A)for(b=0,f=e.pa.length;b<f;b++)for(k=e.pa[b],c=0,h=k.Fa.length;c<h;c++)if(k.Fa[c].behavior instanceof a)return!0;return!1};d.prototype.tp=function(e){return this.sp(e,
Zb.Pu)};d.prototype.km=function(e){return this.sp(e,Zb.Qu)};var q=-1;d.prototype.trigger=function(e,a,b){if(!this.Y)return!1;var f=this.Y.De;if(!f)return!1;var c=!1,h,k,d;q++;var m=f.nk;k=0;for(d=m.length;k<d;++k)h=this.pp(e,a,m[k],b),c=c||h;h=this.pp(e,a,f,b);q--;return c||h};d.prototype.pp=function(e,a,b,f){var c=!1,h,k,d,q;if(a)for(d=this.im(e,a,a.type.name,b,f),c=c||d,q=a.type.pa,h=0,k=q.length;h<k;++h)d=this.im(e,a,q[h].name,b,f),c=c||d;else d=this.im(e,a,"system",b,f),c=c||d;return c};d.prototype.im=
function(e,a,b,f,c){var h,k=!1,d=!1,d="undefined"!==typeof c,q=(d?f.en:f.qp)[b];if(!q)return k;var m=null;f=0;for(h=q.length;f<h;++f)if(q[f].method==e){m=q[f].tg;break}if(!m)return k;e=d?m[c]:m;if(!e)return null;f=0;for(h=e.length;f<h;f++)c=e[f][0],d=e[f][1],d=this.cs(a,b,c,d),k=k||d;return k};d.prototype.cs=function(e,a,b,f){var c,h,k=!1;this.jm++;var d=this.mb().Ob;d&&this.rh(d.ne);var m=1<this.jm;this.rh(b.ne);m&&this.Lt();var t=this.Kl(b);t.Ob=b;e&&(c=this.types[a].ba(),c.fa=!1,c.c.length=1,c.c[0]=
e,this.types[a].nd());e=!0;if(b.parent){a=t.jp;for(c=b.parent;c;)a.push(c),c=c.parent;a.reverse();c=0;for(h=a.length;c<h;c++)if(!a[c].Tt()){e=!1;break}}e&&(this.fi++,b.Mc?b.St(f):b.Pa(),k=k||t.Qe);this.Ko();m&&this.Et();this.Nf(b.ne);d&&this.Nf(d.ne);this.ee&&0===this.zd&&0===q&&!this.bl&&this.fb();this.jm--;return k};d.prototype.ni=function(){var e=this.mb();return e.Ob.hb[e.yb]};d.prototype.Lt=function(){this.Qi++;this.Qi>=this.nl.length&&this.nl.push([])};d.prototype.Et=function(){this.Qi--};d.prototype.mn=
function(){return this.nl[this.Qi]};d.prototype.Kl=function(e){this.ei++;this.ei>=this.sk.length&&this.sk.push(new Lb);var a=this.mb();a.reset(e);return a};d.prototype.Ko=function(){this.ei--};d.prototype.mb=function(){return this.sk[this.ei]};d.prototype.nn=function(e,a){for(var b,f,c,h,k,d;a;){b=0;for(f=a.Bc.length;b<f;b++)if(d=a.Bc[b],d instanceof Mb&&gb(e,d.name))return d;a=a.parent}b=0;for(f=this.td.length;b<f;b++)for(k=this.td[b],c=0,h=k.be.length;c<h;c++)if(d=k.be[c],d instanceof Mb&&gb(e,
d.name))return d;return null};d.prototype.qn=function(e){var a,b;a=0;for(b=this.Tb.length;a<b;a++)if(this.Tb[a].O===e)return this.Tb[a];return null};d.prototype.qi=function(a){var b,f;b=0;for(f=this.m.length;b<f;b++)if(this.m[b].O===a)return this.m[b];return null};d.prototype.ps=function(a){var b,f;b=0;for(f=this.Ud.length;b<f;b++)if(this.Ud[b].O===a)return this.Ud[b];return null};d.prototype.Ms=function(){var e=this,b=this.nj,f=this.Bd,h=this.Tg,k=!1;this.ep&&(k=!0,b="__c2_continuouspreview",this.ep=
!1);if(b.length){this.fb();f=this.Xt();if(window.indexedDB&&!this.gc)l(b,f,function(){I("Saved state to IndexedDB storage ("+f.length+" bytes)");e.Bd=f;e.trigger(V.prototype.i.Qj,null);e.Bd="";k&&a()},function(c){try{localStorage.setItem("__c2save_"+b,f),I("Saved state to WebStorage ("+f.length+" bytes)"),e.Bd=f,e.trigger(V.prototype.i.Qj,null),e.Bd="",k&&a()}catch(h){I("Failed to save game state: "+c+"; "+h)}});else try{localStorage.setItem("__c2save_"+b,f),I("Saved state to WebStorage ("+f.length+
" bytes)"),e.Bd=f,this.trigger(V.prototype.i.Qj,null),e.Bd="",k&&a()}catch(d){I("Error saving to WebStorage: "+d)}this.pb=this.Tg=this.nj=""}h.length&&(window.indexedDB&&!this.gc?c(h,function(a){a?(e.pb=a,I("Loaded state from IndexedDB storage ("+e.pb.length+" bytes)")):(e.pb=localStorage.getItem("__c2save_"+h)||"",I("Loaded state from WebStorage ("+e.pb.length+" bytes)"));e.Ah=!1;e.pb.length||e.trigger(V.prototype.i.Oj,null)},function(){e.pb=localStorage.getItem("__c2save_"+h)||"";I("Loaded state from WebStorage ("+
e.pb.length+" bytes)");e.Ah=!1;e.pb.length||e.trigger(V.prototype.i.Oj,null)}):(this.pb=localStorage.getItem("__c2save_"+h)||"",I("Loaded state from WebStorage ("+this.pb.length+" bytes)"),this.Ah=!1,e.pb.length||e.trigger(V.prototype.i.Oj,null)),this.nj=this.Tg="");this.pb.length&&(this.fb(),this.dt(this.pb),this.Bd=this.pb,this.trigger(V.prototype.i.rq,null),this.pb=this.Bd="")};d.prototype.Xt=function(){var a,f,c,h,k,d,q,m={c2save:!0,version:1,rt:{time:this.hc.Z,walltime:this.kd.Z,timescale:this.Zf,
tickcount:this.Yf,execcount:this.fi,next_uid:this.eh,running_layout:this.Y.O,start_time_offset:Date.now()-this.vj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(f=this.m.length;a<f;a++)if(k=this.m[a],!k.A&&!this.tp(k)){d={instances:[]};Ta(k.ua)&&(d.ex=b(k.ua));c=0;for(h=k.c.length;c<h;c++)d.instances.push(this.Tl(k.c[c]));m.types[k.O.toString()]=d}a=0;for(f=this.Tb.length;a<f;a++)c=this.Tb[a],m.layouts[c.O.toString()]=c.Wb();h=m.events.groups;a=0;for(f=this.Ud.length;a<f;a++)c=
this.Ud[a],h[c.O.toString()]=this.ri[c.Bg].Ag;f=m.events.cnds;for(q in this.jf)this.jf.hasOwnProperty(q)&&(a=this.jf[q],Ta(a.ua)&&(f[q]={ex:b(a.ua)}));f=m.events.acts;for(q in this.ff)this.ff.hasOwnProperty(q)&&(a=this.ff[q],Ta(a.ua)&&(f[q]={ex:a.ua}));f=m.events.vars;for(q in this.eg)this.eg.hasOwnProperty(q)&&(a=this.eg[q],a.Bi||a.parent&&!a.Lg||(f[q]=a.data));m.system=this.gd.Wb();return JSON.stringify(m)};d.prototype.Po=function(){var a,b,f,c,h,k;this.Fd={};a=0;for(b=this.m.length;a<b;a++)if(f=
this.m[a],!f.A)for(c=0,h=f.c.length;c<h;c++)k=f.c[c],this.Fd[k.uid.toString()]=k};d.prototype.dt=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.hc.reset();this.hc.Z=b.time;this.kd.reset();this.kd.Z=b.walltime||0;this.Zf=b.timescale;this.Yf=b.tickcount;this.fi=b.execcount;this.vj=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.Y.O)if(f=this.qn(f))this.Zm(f);else return;var c,h,k,d,q,m,t;m=a.types;for(h in m)if(m.hasOwnProperty(h)&&(d=this.qi(parseInt(h,10)))&&
!d.A&&!this.tp(d)){m[h].ex?d.ua=m[h].ex:Ua(d.ua);q=d.c;k=m[h].instances;f=0;for(c=na(q.length,k.length);f<c;f++)this.Li(q[f],k[f]);f=k.length;for(c=q.length;f<c;f++)this.Qd(q[f]);f=q.length;for(c=k.length;f<c;f++){q=null;if(d.Ba.he&&(q=this.Y.oi(k[f].w.l),!q))continue;q=this.ze(d.Yc,q,!1,0,0,!0);this.Li(q,k[f])}d.Wf=!0}this.fb();this.Po();c=a.layouts;for(h in c)c.hasOwnProperty(h)&&(f=this.qn(parseInt(h,10)))&&f.xc(c[h]);c=a.events.groups;for(h in c)c.hasOwnProperty(h)&&(f=this.ps(parseInt(h,10)))&&
this.ri[f.Bg]&&this.ri[f.Bg].Wo(c[h]);f=a.events.cnds;for(h in f)f.hasOwnProperty(h)&&this.jf.hasOwnProperty(h)&&(this.jf[h].ua=f[h].ex);f=a.events.acts;for(h in f)f.hasOwnProperty(h)&&this.ff.hasOwnProperty(h)&&(this.ff[h].ua=f[h].ex);f=a.events.vars;for(h in f)f.hasOwnProperty(h)&&this.eg.hasOwnProperty(h)&&(this.eg[h].data=f[h]);this.eh=b.next_uid;this.gd.xc(a.system);f=0;for(c=this.m.length;f<c;f++)if(d=this.m[f],!d.A)for(h=0,a=d.c.length;h<a;h++){q=d.c[h];if(d.Kc)for(m=q.zg(),b=q.siblings.length=
0,k=d.Nb.length;b<k;b++)t=d.Nb[b],d!==t&&q.siblings.push(t.c[m]);q.ld&&q.ld();if(q.F)for(b=0,k=q.F.length;b<k;b++)m=q.F[b],m.ld&&m.ld()}this.ea=!0}};d.prototype.Tl=function(a,f){var c,h,k,d,q;d=a.type;k=d.Ba;var m={};f?m.c2=!0:m.uid=a.uid;Ta(a.ua)&&(m.ex=b(a.ua));if(a.Ka&&a.Ka.length)for(m.ivs={},c=0,h=a.Ka.length;c<h;c++)m.ivs[a.type.Yk[c].toString()]=a.Ka[c];if(k.he){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.O,zi:a.tc()};0!==a.j&&(k.a=a.j);1!==a.opacity&&(k.o=a.opacity);.5!==a.Ab&&(k.hX=a.Ab);.5!==
a.Bb&&(k.hY=a.Bb);0!==a.sb&&(k.bm=a.sb);a.visible||(k.v=a.visible);a.Gc||(k.ce=a.Gc);-1!==a.dh&&(k.mts=a.dh);if(d.G.length)for(k.fx=[],c=0,h=d.G.length;c<h;c++)q=d.G[c],k.fx.push({name:q.name,active:a.Sd[q.index],params:a.ta[q.index]});m.w=k}if(a.F&&a.F.length)for(m.behs={},c=0,h=a.F.length;c<h;c++)d=a.F[c],d.Wb&&(m.behs[d.type.O.toString()]=d.Wb());a.Wb&&(m.data=a.Wb());return m};d.prototype.rs=function(a,b){var f,c;f=0;for(c=a.Yk.length;f<c;f++)if(a.Yk[f]===b)return f;return-1};d.prototype.ms=function(a,
b){var f,c;f=0;for(c=a.F.length;f<c;f++)if(a.F[f].type.O===b)return f;return-1};d.prototype.Li=function(a,b,f){var c,h,k,d,q;q=a.type;k=q.Ba;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ua=b.ex:Ua(a.ua);if(h=b.ivs)for(c in h)h.hasOwnProperty(c)&&(f=this.rs(q,parseInt(c,10)),0>f||f>=a.Ka.length||(a.Ka[f]=h[c]));if(k.he){k=b.w;a.d.O!==k.l&&(f=a.d,a.d=this.Y.oi(k.l),a.d?(f.Of(a,!0),a.d.ig(a,!0),a.qa(),a.d.wh(0)):(a.d=f,this.Qd(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Vc=k.zi;a.j=k.hasOwnProperty("a")?
k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.Ab=k.hasOwnProperty("hX")?k.hX:.5;a.Bb=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.Gc=k.hasOwnProperty("ce")?k.ce:!0;a.dh=k.hasOwnProperty("mts")?k.mts:-1;a.sb=k.hasOwnProperty("bm")?k.bm:0;a.ng=db(a.sb);this.k&&eb(a,a.sb,this.k);a.qa();if(k.hasOwnProperty("fx"))for(f=0,h=k.fx.length;f<h;f++)d=q.Hk(k.fx[f].name),0>d||(a.Sd[d]=k.fx[f].active,a.ta[d]=k.fx[f].params);a.Od()}if(q=b.behs)for(c in q)q.hasOwnProperty(c)&&(k=this.ms(a,
parseInt(c,10)),0>k||a.F[k].xc(q[c]));b.data&&a.xc(b.data)};Nb=function(a){return new d(document.getElementById(a))};Ob=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Nb;window.cr_createDCRuntime=Ob;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ev=!0;document.body.appendChild(a);a=new d(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 d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(g,n){if(0!==g&&0!==n){var d=window.cr_getC2Runtime();d&&d.setSize(g,n)}};window.cr_setSuspended=function(g){var n=window.cr_getC2Runtime();n&&n.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.De=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.j=0;this.nf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.up=b[3];this.cp=b[4];this.O=b[5];var c=b[6],k,d;this.J=[];this.Eg=[];k=0;for(d=c.length;k<d;k++){var g=new Pb(this,c[k]);g.ro=k;this.J.push(g)}c=b[7];this.Ke=[];k=0;for(d=c.length;k<d;k++){var g=c[k],l=this.b.m[g[1]];l.Yc||(l.Yc=g);this.Ke.push(g);-1===this.Eg.indexOf(l)&&this.Eg.push(l)}this.G=[];this.U=[];this.ta=
[];k=0;for(d=b[8].length;k<d;k++)this.G.push({id:b[8][k][0],name:b[8][k][1],eb:-1,Ta:!0,index:k}),this.ta.push(b[8][k][2].slice(0));this.Od();this.th=new ta(0,0,1,1);this.Ml=new ta(0,0,1,1);this.je={}}function n(a,b){return a.Vc-b.Vc}function d(a,b){this.Va=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.Be=!1;this.Md=new ta(0,0,0,0);this.np=new va;this.Ha=this.xa=this.Ia=this.wa=0;this.bf=!1;this.Pd=-1;this.name=b[0];this.index=b[1];this.O=b[2];this.visible=b[3];this.Wd=b[4];this.Nd=b[5];this.Db=
b[6];this.Eb=b[7];this.opacity=b[8];this.zk=b[9];this.Tc=b[10];this.kb=b[11];this.sb=b[12];this.Br=b[13];this.ng="source-over";this.ib=this.jb=0;this.Vb=null;this.Bf=r();this.Id=!0;this.Hi=new ta(0,0,-1,-1);this.nc=new ta(0,0,-1,-1);this.Tc&&(this.Vb=new cb(this.b.Na,this.b.Ma));this.ke=!1;var c=b[14],k,d;this.hp=[];this.fc=[];this.qg=[];k=0;for(d=c.length;k<d;k++){var g=c[k],l=this.b.m[g[1]];l.Yc||(l.Yc=g,l.er=this.index);this.fc.push(g);-1===this.Va.Eg.indexOf(l)&&this.Va.Eg.push(l)}ya(this.hp,
this.fc);this.G=[];this.U=[];this.ta=[];k=0;for(d=b[15].length;k<d;k++)this.G.push({id:b[15][k][0],name:b[15][k][1],eb:-1,Ta:!0,index:k}),this.ta.push(b[15][k][2].slice(0));this.Od();this.th=new ta(0,0,1,1);this.Ml=new ta(0,0,1,1)}function r(){return b.length?b.pop():[]}function l(a){a.length=0;b.push(a)}g.prototype.Wt=function(a){var b=a.type.O.toString();this.je.hasOwnProperty(b)||(this.je[b]=[]);this.je[b].push(this.b.Tl(a))};g.prototype.un=function(){var a=this.J[0];return!a.Nd&&1===a.opacity&&
!a.zk&&a.visible};g.prototype.Od=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};g.prototype.Gk=function(a){var b,c,k;b=0;for(c=this.G.length;b<c;b++)if(k=this.G[b],k.name===a)return k;return null};var c=[],a=!0;g.prototype.Zl=function(){this.cp&&(this.De=this.b.tk[this.cp],this.De.lm());this.b.Y=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var b,h,d,k,m,g,l;b=0;for(d=this.b.m.length;b<d;b++)if(h=this.b.m[b],!h.A)for(m=h.c,h=0,k=m.length;h<
k;h++)if(g=m[h],g.d){var q=g.d.ro;q>=this.J.length&&(q=this.J.length-1);g.d=this.J[q];-1===g.d.c.indexOf(g)&&g.d.c.push(g);g.d.bf=!0}if(!a)for(b=0,d=this.J.length;b<d;++b)this.J[b].c.sort(n);c.length=0;this.Uq();b=0;for(d=this.J.length;b<d;b++)g=this.J[b],g.cr(),g.nm();m=!1;if(!this.nf){for(l in this.je)if(this.je.hasOwnProperty(l)&&(h=this.b.qi(parseInt(l,10)))&&!h.A&&this.b.km(h)){k=this.je[l];b=0;for(d=k.length;b<d;b++){g=null;if(h.Ba.he&&(g=this.oi(k[b].w.l),!g))continue;g=this.b.ze(h.Yc,g,!1,
0,0,!0);this.b.Li(g,k[b]);m=!0;c.push(g)}k.length=0}b=0;for(d=this.J.length;b<d;b++)this.J[b].c.sort(n),this.J[b].bf=!0}m&&(this.b.fb(),this.b.Po());for(b=0;b<c.length;b++)if(g=c[b],g.type.Kc)for(d=g.zg(),h=0,k=g.type.Nb.length;h<k;h++)l=g.type.Nb[h],g.type!==l&&(l.c.length>d?g.siblings.push(l.c[d]):l.Yc&&(m=this.b.ze(l.Yc,g.d,!0,g.x,g.y,!0),this.b.fb(),l.Hj(),g.siblings.push(m),c.push(m)));b=0;for(d=this.Ke.length;b<d;b++)this.b.ze(this.Ke[b],null,!0);this.b.xe=null;this.b.fb();if(this.b.aa&&!this.b.da)for(b=
0,d=this.b.m.length;b<d;b++)l=this.b.m[b],!l.A&&l.c.length&&l.hj&&l.hj(this.b.aa);b=0;for(d=c.length;b<d;b++)g=c[b],this.b.trigger(Object.getPrototypeOf(g.type.Ba).i.dq,g);c.length=0;this.b.trigger(V.prototype.i.zm,null);this.nf=!1};g.prototype.br=function(){var a,b,c,k,d;b=a=0;for(c=this.Ke.length;a<c;a++)k=this.Ke[a],d=this.b.m[k[1]],d.global?this.b.ze(k,null,!0):(this.Ke[b]=k,b++);this.Ke.length=b};g.prototype.eu=function(){this.b.trigger(V.prototype.i.qq,null);this.b.gd.Jb.length=0;var b,c,d,
k,m,g;if(!this.nf)for(b=0,c=this.J.length;b<c;b++)for(this.J[b].om(),m=this.J[b].c,d=0,k=m.length;d<k;d++)g=m[d],g.type.global||this.b.km(g.type)&&this.Wt(g);b=0;for(c=this.J.length;b<c;b++){m=this.J[b].c;d=0;for(k=m.length;d<k;d++)g=m[d],g.type.global||this.b.Qd(g);this.b.fb();m.length=0;this.J[b].bf=!0}b=0;for(c=this.b.m.length;b<c;b++)if(m=this.b.m[b],!(m.global||m.Ba.he||m.Ba.qj||m.A)){d=0;for(k=m.c.length;d<k;d++)this.b.Qd(m.c[d]);this.b.fb()}a=!1};new ta(0,0,0,0);g.prototype.Ic=function(a){var b,
c=a,k=!1,d=!this.b.pc;d&&(this.b.Ki||(this.b.Ki=document.createElement("canvas"),b=this.b.Ki,b.width=this.b.M,b.height=this.b.L,this.b.Qn=b.getContext("2d"),k=!0),b=this.b.Ki,c=this.b.Qn,b.width!==this.b.M&&(b.width=this.b.M,k=!0),b.height!==this.b.L&&(b.height=this.b.L,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Wj&&!this.un()&&
c.clearRect(0,0,this.b.M,this.b.L);var g,l,k=0;for(g=this.J.length;k<g;k++)l=this.J[k],l.visible&&0<l.opacity&&11!==l.sb&&(l.c.length||!l.Nd)?l.Ic(c):l.nm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Pb=function(a){var b=0<this.U.length||this.b.bg||!this.b.pc;if(b){this.b.Sb||(this.b.Sb=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.Sb.lg!==this.b.M||this.b.Sb.kg!==this.b.L)a.deleteTexture(this.b.Sb),this.b.Sb=a.Yd(this.b.M,this.b.L,this.b.S);a.ed(this.b.Sb);this.b.pc||a.Rf(this.b.M,
this.b.L)}else this.b.Sb&&(a.ed(null),a.deleteTexture(this.b.Sb),this.b.Sb=null);this.b.Wj&&!this.un()&&a.clear(0,0,0,0);var c,k,d;c=0;for(k=this.J.length;c<k;c++)d=this.J[c],d.visible&&0<d.opacity&&(d.c.length||!d.Nd)?d.Pb(a):d.nm();b&&(0===this.U.length||1===this.U.length&&this.b.pc?(1===this.U.length?(b=this.U[0].index,a.fd(this.U[0].eb),a.Qf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.j,0,0,this.b.M/2,this.b.L/2,this.ta[b]),a.ij(this.U[0].eb)&&(this.b.ea=!0)):a.fd(0),this.b.pc||a.Rf(this.b.width,
this.b.height),a.ed(null),a.Ye(1),a.Xb(this.b.Sb),a.Vo(),a.le(),a.se(),b=this.b.width/2,c=this.b.height/2,a.sh(-b,c,b,c,b,-c,-b,-c),a.Xb(null)):this.Nl(a,null,null,null))};g.prototype.xg=function(){return 0<this.U.length||this.b.bg||!this.b.pc?this.b.Sb:null};g.prototype.rn=function(){var a=this.J[0].rc(),b,c,k;b=1;for(c=this.J.length;b<c;b++)k=this.J[b],(0!==k.Db||0!==k.Eb)&&k.rc()<a&&(a=k.rc());return a};g.prototype.To=function(a){if(!this.up){var b=1/this.rn()*this.b.M/2;a>this.width-b&&(a=this.width-
b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ea=!0)};g.prototype.Uo=function(a){if(!this.up){var b=1/this.rn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ea=!0)};g.prototype.Uq=function(){this.To(this.scrollX);this.Uo(this.scrollY)};g.prototype.Nl=function(a,b,c,k){var d=c?c.U:b?b.U:this.U,g=1,l=0,q=0,e=0,p=this.b.M,u=this.b.L;c?(g=c.d.rc(),l=c.d.Ua(),q=c.d.wa,e=c.d.xa,p=c.d.Ia,u=c.d.Ha):b&&(g=b.rc(),l=b.Ua(),q=b.wa,e=b.xa,p=b.Ia,u=
b.Ha);var n=this.b.Ck,s,x,r,z,J=0,B=1,Y,F=this.b.M,v=this.b.L,ua=F/2,L=v/2,P=b?b.th:this.th,D=b?b.Ml:this.Ml,E=0,M=0,C=0,H=0,G=F,ka=F,K=v,pa=v,ga=r=0,sa=c?c.d.Ua():0;if(c){s=0;for(x=d.length;s<x;s++)r+=a.vs(d[s].eb),ga+=a.ws(d[s].eb);z=c.ya;E=b.nb(z.left,z.top,!0,!0);C=b.nb(z.left,z.top,!1,!0);G=b.nb(z.right,z.bottom,!0,!0);K=b.nb(z.right,z.bottom,!1,!0);0!==sa&&(s=b.nb(z.right,z.top,!0,!0),x=b.nb(z.right,z.top,!1,!0),M=b.nb(z.left,z.bottom,!0,!0),H=b.nb(z.left,z.bottom,!1,!0),z=Math.min(E,G,s,M),
G=Math.max(E,G,s,M),E=z,z=Math.min(C,K,x,H),K=Math.max(C,K,x,H),C=z);E-=r;C-=ga;G+=r;K+=ga;D.left=E/F;D.top=1-C/v;D.right=G/F;D.bottom=1-K/v;M=E=Q(E);H=C=Q(C);ka=G=qa(G);pa=K=qa(K);M-=r;H-=ga;ka+=r;pa+=ga;0>E&&(E=0);0>C&&(C=0);G>F&&(G=F);K>v&&(K=v);0>M&&(M=0);0>H&&(H=0);ka>F&&(ka=F);pa>v&&(pa=v);P.left=E/F;P.top=1-C/v;P.right=G/F;P.bottom=1-K/v}else P.left=D.left=0,P.top=D.top=0,P.right=D.right=1,P.bottom=D.bottom=1;ga=c&&((c.j||sa)&&a.qh(d[0].eb)||0!==r||0!==ga||1!==c.opacity||c.type.Ba.no)||b&&
!c&&1!==b.opacity;a.Vo();if(ga){n[J]||(n[J]=a.Yd(F,v,this.b.S));if(n[J].lg!==F||n[J].kg!==v)a.deleteTexture(n[J]),n[J]=a.Yd(F,v,this.b.S);a.fd(0);a.ed(n[J]);Y=pa-H;a.clearRect(M,v-H-Y,ka-M,Y);c?c.Pb(a):(a.Xb(this.b.ic),a.Ye(b.opacity),a.le(),a.translate(-ua,-L),a.se(),a.Hd(E,K,G,K,G,C,E,C,P));D.left=D.top=0;D.right=D.bottom=1;c&&(z=P.top,P.top=P.bottom,P.bottom=z);J=1;B=0}a.Ye(1);r=d.length-1;var sa=a.Il(d[r].eb)||!b&&!c&&!this.b.pc,da=0;s=0;for(x=d.length;s<x;s++){n[J]||(n[J]=a.Yd(F,v,this.b.S));
if(n[J].lg!==F||n[J].kg!==v)a.deleteTexture(n[J]),n[J]=a.Yd(F,v,this.b.S);a.fd(d[s].eb);da=d[s].index;a.ij(d[s].eb)&&(this.b.ea=!0);0!=s||ga?(a.Qf(k,1/F,1/v,D.left,D.top,D.right,D.bottom,g,l,q,e,(q+p)/2,(e+u)/2,c?c.ta[da]:b?b.ta[da]:this.ta[da]),a.Xb(null),s!==r||sa?(a.ed(n[J]),Y=pa-H,z=v-H-Y,a.clearRect(M,z,ka-M,Y)):(c?a.me(c.jb,c.ib):b&&a.me(b.jb,b.ib),a.ed(k)),a.Xb(n[B]),a.le(),a.translate(-ua,-L),a.se(),a.Hd(E,K,G,K,G,C,E,C,P),s!==r||sa||a.Xb(null)):(a.ed(n[J]),Y=pa-H,z=v-H-Y,a.clearRect(M,z,
ka-M,Y),c?(a.Qf(k,1/c.width,1/c.height,D.left,D.top,D.right,D.bottom,g,l,q,e,(q+p)/2,(e+u)/2,c.ta[da]),c.Pb(a)):(a.Qf(k,1/F,1/v,0,0,1,1,g,l,q,e,(q+p)/2,(e+u)/2,b?b.ta[da]:this.ta[da]),a.Xb(b?this.b.ic:this.b.Sb),a.le(),a.translate(-ua,-L),a.se(),a.Hd(E,K,G,K,G,C,E,C,P)),D.left=D.top=0,D.right=D.bottom=1,c&&!sa&&(z=K,K=C,C=z));J=0===J?1:0;B=0===J?1:0}sa&&(a.fd(0),c?a.me(c.jb,c.ib):b?a.me(b.jb,b.ib):this.b.pc||(a.Rf(this.b.width,this.b.height),ua=this.b.width/2,L=this.b.height/2,C=E=0,G=this.b.width,
K=this.b.height),a.ed(k),a.Xb(n[B]),a.le(),a.translate(-ua,-L),a.se(),c&&1===d.length&&!ga?a.Hd(E,C,G,C,G,K,E,K,P):a.Hd(E,K,G,K,G,C,E,C,P),a.Xb(null))};g.prototype.oi=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].O===a)return this.J[b];return null};g.prototype.Wb=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.nf,persist:this.je,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,active:c.Ta,
params:this.ta[c.index]});a=0;for(b=this.J.length;a<b;a++)c=this.J[a],d.layers[c.O.toString()]=c.Wb();return d};g.prototype.xc=function(a){var b,c,d,m;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.je=a.persist;"undefined"!==typeof a.fv&&(this.nf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(d=this.Gk(g[b].name))d.Ta=g[b].active,this.ta[d.index]=g[b].params;this.Od();b=a.layers;for(m in b)b.hasOwnProperty(m)&&(a=this.oi(parseInt(m,10)))&&a.xc(b[m])};
Bb=g;d.prototype.Od=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};d.prototype.Gk=function(a){var b,c,d;b=0;for(c=this.G.length;b<c;b++)if(d=this.G[b],d.name===a)return d;return null};d.prototype.cr=function(){var a,b,d,k,m,g;b=a=0;for(d=this.fc.length;a<d;a++){k=this.fc[a];m=this.b.m[k[1]];g=this.b.km(m);m=!0;if(!g||this.Va.nf)k=this.b.ze(k,this,!0),c.push(k),k.type.global&&(m=!1,this.qg.push(k.uid));m&&(this.fc[b]=this.fc[a],b++)}this.fc.length=
b;this.b.fb();!this.b.n&&this.G.length&&(this.sb=this.Br);this.ng=db(this.sb);this.b.k&&eb(this,this.sb,this.b.k);this.Id=!0};d.prototype.Of=function(a,b){var c=Aa(this.c,a);0>c||(b&&this.Tc&&a.Fb&&a.Fb.right>=a.Fb.left&&(a.ma(),this.Vb.update(a,a.Fb,null),a.Fb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.wh(c)),this.Id=!0)};d.prototype.ig=function(a,b){a.Vc=this.c.length;this.c.push(a);b&&this.Tc&&a.Fb&&a.qa();this.Id=!0};d.prototype.It=function(a){this.c.unshift(a);this.wh(0)};
d.prototype.kt=function(a,b,c){var d=a.tc();b=b.tc();xa(this.c,d);d<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.wh(d<b?d:b)};d.prototype.wh=function(a){-1===this.Pd?this.Pd=a:a<this.Pd&&(this.Pd=a);this.Id=this.bf=!0};d.prototype.om=function(){if(this.bf){-1===this.Pd&&(this.Pd=0);var a,b,c;if(this.Tc)for(a=this.Pd,b=this.c.length;a<b;++a)c=this.c[a],c.Vc=a,this.Vb.gt(c.Fb);else for(a=this.Pd,b=this.c.length;a<b;++a)this.c[a].Vc=a;this.bf=!1;this.Pd=-1}};d.prototype.rc=
function(a){return this.ss()*(this.b.pc||a?this.b.jg:1)};d.prototype.ss=function(){return(this.scale*this.Va.scale-1)*this.kb+1};d.prototype.Ua=function(){return this.Be?0:Ea(this.Va.j+this.j)};var b=[],x=[],s=[];d.prototype.sn=function(){this.om();this.Vb.jj(this.wa,this.xa,this.Ia,this.Ha,s);if(!s.length)return r();if(1===s.length){var a=r();ya(a,s[0]);s.length=0;return a}for(var b=!0;1<s.length;){for(var a=s,c=void 0,d=void 0,m=void 0,g=void 0,n=void 0,c=0,d=a.length;c<d-1;c+=2){var m=a[c],g=a[c+
1],n=r(),q=m,e=g,p=n,u=0,y=0,O=0,Z=q.length,T=e.length,z=void 0,J=void 0;for(p.length=Z+T;u<Z&&y<T;++O)z=q[u],J=e[y],z.Vc<J.Vc?(p[O]=z,++u):(p[O]=J,++y);for(;u<Z;++u,++O)p[O]=q[u];for(;y<T;++y,++O)p[O]=e[y];b||(l(m),l(g));x.push(n)}1===d%2&&(b?(m=r(),ya(m,a[d-1]),x.push(m)):x.push(a[d-1]));ya(a,x);x.length=0;b=!1}a=s[0];s.length=0;return a};d.prototype.Ic=function(a){this.ke=this.zk||1!==this.opacity||0!==this.sb;var b=this.b.canvas,c=a,d=!1;this.ke&&(this.b.Ji||(this.b.Ji=document.createElement("canvas"),
b=this.b.Ji,b.width=this.b.M,b.height=this.b.L,this.b.Pn=b.getContext("2d"),d=!0),b=this.b.Ji,c=this.b.Pn,b.width!==this.b.M&&(b.width=this.b.M,d=!0),b.height!==this.b.L&&(b.height=this.b.L,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Nd&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Nd||(c.fillStyle="rgb("+this.Wd[0]+","+this.Wd[1]+
","+this.Wd[2]+")",c.fillRect(0,0,this.b.M,this.b.L));c.save();this.Be=!0;var d=this.na(0,0,!0,!0),m=this.na(0,0,!1,!0);this.Be=!1;this.b.dd&&(d=Math.round(d),m=Math.round(m));this.Pl(d,m,c);var g=this.rc();c.scale(g,g);c.translate(-d,-m);this.Tc?(this.nc.left=this.Vb.$b(this.wa),this.nc.top=this.Vb.ac(this.xa),this.nc.right=this.Vb.$b(this.Ia),this.nc.bottom=this.Vb.ac(this.Ha),this.Id||!this.nc.di(this.Hi)?(l(this.Bf),d=this.sn(),this.Id=!1,this.Hi.pg(this.nc)):d=this.Bf):d=this.c;for(var n,q=null,
m=0,g=d.length;m<g;++m)n=d[m],n!==q&&(this.ur(n,c),q=n);this.Tc&&(this.Bf=d);c.restore();this.ke&&(a.globalCompositeOperation=this.ng,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.ur=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(b.globalCompositeOperation=a.ng,a.Ic(b))}};d.prototype.nm=function(){this.Be=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Be=!1;this.b.dd&&(a=Math.round(a),
b=Math.round(b));this.Pl(a,b,null)};d.prototype.Pl=function(a,b,c){var d=this.rc();this.wa=a;this.xa=b;this.Ia=a+1/d*this.b.M;this.Ha=b+1/d*this.b.L;a=this.Ua();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.Md.set(this.wa,this.xa,this.Ia,this.Ha),this.Md.offset((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),this.np.$o(this.Md,a),this.np.Qm(this.Md),this.Md.offset((this.wa+this.Ia)/2,(this.xa+this.Ha)/2),this.wa=this.Md.left,this.xa=this.Md.top,
this.Ia=this.Md.right,this.Ha=this.Md.bottom)};d.prototype.Pb=function(a){var b=0,c=0;if(this.ke=this.zk||1!==this.opacity||0<this.U.length||0!==this.sb){this.b.ic||(this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.ic.lg!==this.b.M||this.b.ic.kg!==this.b.L)a.deleteTexture(this.b.ic),this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S);a.ed(this.b.ic);this.Nd&&a.clear(0,0,0,0)}this.Nd||a.clear(this.Wd[0]/255,this.Wd[1]/255,this.Wd[2]/255,1);this.Be=!0;var d=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Be=
!1;this.b.dd&&(d=Math.round(d),b=Math.round(b));this.Pl(d,b,null);d=this.rc();a.le();a.scale(d,d);a.Ro(-this.Ua());a.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2);a.se();this.Tc?(this.nc.left=this.Vb.$b(this.wa),this.nc.top=this.Vb.ac(this.xa),this.nc.right=this.Vb.$b(this.Ia),this.nc.bottom=this.Vb.ac(this.Ha),this.Id||!this.nc.di(this.Hi)?(l(this.Bf),b=this.sn(),this.Id=!1,this.Hi.pg(this.nc)):b=this.Bf):b=this.c;var m,g,n=null,c=0;for(m=b.length;c<m;++c)g=b[c],g!==n&&(this.wr(b[c],a),n=
g);this.Tc&&(this.Bf=b);this.ke&&(b=this.U.length?this.U[0].eb:0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Il(b)&&1===this.opacity?(1===this.U.length?(a.fd(b),a.Qf(this.Va.xg(),1/this.b.M,1/this.b.L,0,0,1,1,d,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,this.ta[c]),a.ij(b)&&(this.b.ea=!0)):a.fd(0),a.ed(this.Va.xg()),a.Ye(this.opacity),a.Xb(this.b.ic),a.me(this.jb,this.ib),a.le(),a.se(),d=this.b.M/2,b=this.b.L/2,a.sh(-d,b,d,b,d,-b,-d,-b),a.Xb(null)):
this.Va.Nl(a,this,null,this.Va.xg()))};d.prototype.wr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(a.Ap?this.Ar(a,b):(b.fd(0),b.me(a.jb,a.ib),a.Pb(b)))}};d.prototype.Ar=function(a,b){var c=a.U[0].eb,d=a.U[0].index,m=this.rc();if(1!==a.U.length||b.Il(c)||b.Kt(c)||(a.j||a.d.Ua())&&b.qh(c)||1!==a.opacity||a.type.Ba.no)this.Va.Nl(b,this,a,this.ke?this.b.ic:this.Va.xg()),b.le(),b.scale(m,m),b.Ro(-this.Ua()),
b.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),b.se();else{b.fd(c);b.me(a.jb,a.ib);b.ij(c)&&(this.b.ea=!0);var g=0,l=0,q=0,e=0;b.qh(c)&&(c=a.ya,g=this.nb(c.left,c.top,!0,!0),l=this.nb(c.left,c.top,!1,!0),q=this.nb(c.right,c.bottom,!0,!0),c=this.nb(c.right,c.bottom,!1,!0),g/=windowWidth,l=1-l/windowHeight,q/=windowWidth,e=1-c/windowHeight);b.Qf(this.ke?this.b.ic:this.Va.xg(),1/a.width,1/a.height,g,l,q,e,m,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,a.ta[d]);a.Pb(b)}};
d.prototype.na=function(a,b,c,d){var m=this.b.devicePixelRatio;this.b.Me&&(a*=m,b*=m);var m=this.b.Eo,g=this.b.Fo,m=(this.Va.scrollX-m)*this.Db+m,g=(this.Va.scrollY-g)*this.Eb+g,l=m,q=g,e=1/this.rc(!d);d?(l-=this.b.M*e/2,q-=this.b.L*e/2):(l-=this.b.width*e/2,q-=this.b.height*e/2);l+=a*e;q+=b*e;b=this.Ua();0!==b&&(l-=m,q-=g,a=Math.cos(b),b=Math.sin(b),d=l*a-q*b,q=q*a+l*b,l=d+m,q+=g);return c?l:q};d.prototype.nb=function(a,b,c,d){var m=this.b.Eo,g=this.b.Fo,l=(this.Va.scrollX-m)*this.Db+m,q=(this.Va.scrollY-
g)*this.Eb+g,g=l,m=q,e=this.Ua();if(0!==e){a-=l;b-=q;var p=Math.cos(-e),e=Math.sin(-e),u=a*p-b*e;b=b*p+a*e;a=u+l;b+=q}l=1/this.rc(!d);d?(g-=this.b.M*l/2,m-=this.b.L*l/2):(g-=this.b.width*l/2,m-=this.b.height*l/2);g=(a-g)/l;m=(b-m)/l;a=this.b.devicePixelRatio;this.b.Me&&!d&&(g/=a,m/=a);return c?g:m};d.prototype.Wb=function(){var a,b,c,d={s:this.scale,a:this.j,vl:this.wa,vt:this.xa,vr:this.Ia,vb:this.Ha,v:this.visible,bc:this.Wd,t:this.Nd,px:this.Db,py:this.Eb,o:this.opacity,zr:this.kb,fx:[],cg:this.qg,
instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,active:c.Ta,params:this.ta[c.index]});return d};d.prototype.xc=function(a){var b,c,d;this.scale=a.s;this.j=a.a;this.wa=a.vl;this.xa=a.vt;this.Ia=a.vr;this.Ha=a.vb;this.visible=a.v;this.Wd=a.bc;this.Nd=a.t;this.Db=a.px;this.Eb=a.py;this.opacity=a.o;this.kb=a.zr;this.qg=a.cg||[];ya(this.fc,this.hp);var m=new ba;b=0;for(d=this.qg.length;b<d;++b)m.add(this.qg[b]);c=b=0;for(d=this.fc.length;b<d;++b)m.contains(this.fc[b][2])||
(this.fc[c]=this.fc[b],++c);this.fc.length=c;c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.Gk(c[b].name))a.Ta=c[b].active,this.ta[a.index]=c[b].params;this.Od();this.c.sort(n);this.bf=!0};Pb=d})();
(function(){function g(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function d(a){var b,c,d,k;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=m.length&&(m.length=a.length+1);m[a.length]||(m[a.length]=[]);k=m[a.length];b=0;for(c=k.length;b<c;b++)if(d=k[b],g(a,d))return d;k.push(a);return a}
function r(a,b){this.b=a;this.qp={};this.en={};this.Rk=!1;this.xn=new ba;this.nk=[];this.Xj=[];this.name=b[0];var c=b[1];this.be=[];var d,k;d=0;for(k=c.length;d<k;d++)this.zn(c[d],null,this.be)}function l(a){this.type=a;this.c=[];this.P=[];this.fa=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.ne=[];this.vn=this.Cj=this.hm=this.xi=this.group=this.gp=!1;this.hb=[];this.Dc=[];this.Bc=[];this.Bg="";this.Ag=this.xi=this.group=!1;this.Uh=null;c[1]&&(this.Bg=c[1][1].toLowerCase(),
this.group=!0,this.xi=!!c[1][0],this.Uh=[],this.Ag=this.xi,this.b.Ud.push(this),this.b.ri[this.Bg]=this);this.Mc=c[2];this.O=c[4];this.group||(this.b.Pm[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var k=new Qb(this,d[a]);k.index=a;this.hb.push(k);this.Km(k.type)}d=c[6];a=0;for(b=d.length;a<b;a++)k=new Rb(this,d[a]),k.index=a,this.Dc.push(k);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.zn(c[a],this,this.Bc);this.Ci=!1;this.hb.length&&(this.Ci=null==this.hb[0].type&&
this.hb[0].ab==V.prototype.i.Mp)}function a(a,b){var c,d,k;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Kc))for(c=0,d=a.Nb.length;c<d;c++)k=a.Nb[c],a!==k&&-1===b.indexOf(k)&&b.push(k)}function b(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.gg=!1;this.ab=this.b.Rd(b[1]);this.trigger=0<b[3];this.dn=2===b[3];this.ad=b[4];this.rf=b[5];this.ct=b[6];this.O=b[7];this.b.jf[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Pa=this.Sl,this.we=null,this.Fc=-1):
(this.type=this.b.m[b[0]],this.Pa=this.ct?this.Ut:this.Rl,b[2]?(this.we=this.type.mi(b[2]),this.Fc=this.type.Ek(b[2])):(this.we=null,this.Fc=-1),this.cc.parent&&this.cc.parent.pj());this.dn&&(this.Pa=this.Vt);if(10===b.length){var c,d,k=b[9];c=0;for(d=k.length;c<d;c++){var f=new Sb(this,k[c]);this.K.push(f)}this.va.length=k.length}}function x(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.gg=!1;this.ab=this.b.Rd(b[1]);-1===b[0]?(this.type=null,this.Pa=
this.Sl,this.we=null,this.Fc=-1):(this.type=this.b.m[b[0]],this.Pa=this.Rl,b[2]?(this.we=this.type.mi(b[2]),this.Fc=this.type.Ek(b[2])):(this.we=null,this.Fc=-1));this.O=b[3];this.b.ff[this.O.toString()]=this;if(6===b.length){var c,d,k=b[5];c=0;for(d=k.length;c<d;c++){var f=new Sb(this,k[c]);this.K.push(f)}this.va.length=k.length}}function s(){A++;w.length===A&&w.push(new Tb);return w[A]}function f(a,b){this.ka=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Zc=null;this.Ld=0;this.get=
null;this.Wm=0;this.Va=null;this.key=0;this.object=null;this.index=0;this.Gh=this.$e=this.Gh=this.$e=this.gn=this.Ee=this.Hh=null;this.Cc=!1;var c,d,k;switch(b[0]){case 0:case 7:this.Zc=new Ub(this,b[1]);this.Ld=0;this.get=this.Bs;break;case 1:this.Zc=new Ub(this,b[1]);this.Ld=0;this.get=this.Cs;break;case 5:this.Zc=new Ub(this,b[1]);this.Ld=0;this.get=this.Gs;break;case 3:case 8:this.Wm=b[1];this.get=this.zs;break;case 6:this.Va=this.b.jl[b[1]];this.get=this.Hs;break;case 9:this.key=b[1];this.get=
this.Fs;break;case 4:this.object=this.b.m[b[1]];this.get=this.Is;this.cc.Km(this.object);this.ka instanceof Rb?this.cc.pj():this.cc.parent&&this.cc.parent.pj();break;case 10:this.index=b[1];a.type.A?(this.get=this.Ds,this.Cc=!0):this.get=this.Es;break;case 11:this.Hh=b[1];this.Ee=null;this.get=this.As;break;case 2:case 12:this.gn=b[1];this.get=this.ys;break;case 13:for(this.get=this.Js,this.$e=[],this.Gh=[],c=1,d=b.length;c<d;c++)k=new Sb(this.ka,b[c]),this.$e.push(k),this.Gh.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=c[1];this.Jj=c[2];this.wi=c[3];this.Lg=!!c[4];this.Bi=!!c[5];this.O=c[6];this.b.eg[this.O.toString()]=this;this.data=this.wi;this.parent?(this.Ue=this.Lg||this.Bi?-1:this.b.cu++,this.b.Qq.push(this)):(this.Ue=-1,this.b.Uj.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Dg=null;this.Ps=c[1];this.Ta=!0}function k(){this.jp=[];this.reset(null)}var m=[];r.prototype.toString=function(){return this.name};
r.prototype.zn=function(a,b,c){switch(a[0]){case 0:a=new Vb(this,b,a);if(a.Mc)for(c.push(a),c=0,b=a.hb.length;c<b;c++)a.hb[c].trigger&&this.An(a,c);else a.In()?this.An(a,0):c.push(a);break;case 1:a=new Mb(this,b,a);c.push(a);break;case 2:a=new Wb(this,b,a),c.push(a)}};r.prototype.Ca=function(){var a,b;a=0;for(b=this.be.length;a<b;a++)this.be[a].Ca(a<b-1&&this.be[a+1].Ci)};r.prototype.lm=function(){this.nk.length=0;this.Xj.length=0;this.Jm(this);this.Xj.length=0};r.prototype.Jm=function(a){var b,c,
d,k,f=a.nk,m=a.Xj,h=this.xn.Uc();b=0;for(c=h.length;b<c;++b)d=h[b],k=d.Dg,!d.Ta||a===k||-1<m.indexOf(k)||(m.push(k),k.Jm(a),f.push(k))};r.prototype.Pa=function(a){this.b.Dv||(this.Rk=!0,a||(this.b.bl=!0));var b,c;b=0;for(c=this.be.length;b<c;b++){var d=this.be[b];d.Pa();this.b.gk(d.la);this.b.ee&&this.b.fb()}a||(this.b.bl=!1)};r.prototype.An=function(a,b){a.Mc||this.b.Fj.push(a);var c,d,k=a.hb[b],f;f=k.type?k.type.name:"system";var m=(c=k.dn)?this.en:this.qp;m[f]||(m[f]=[]);f=m[f];m=k.ab;if(c){if(k.K.length&&
(k=k.K[0],1===k.type&&2===k.Zc.type)){k=k.Zc.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==m){c=f[c].tg;c[k]?c[k].push([a,b]):c[k]=[[a,b]];return}c={};c[k]=[[a,b]];f.push({method:m,tg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==m){f[c].tg.push([a,b]);return}W&&m===W.prototype.i.ef?f.unshift({method:m,tg:[[a,b]]}):f.push({method:m,tg:[[a,b]]})}};Cb=r;l.prototype.Qk=function(){return this.fa?this.type.c.length:this.c.length};l.prototype.qc=function(){return this.fa?this.type.c:
this.c};l.prototype.ph=function(a){a&&(a.b.mb().Ob.Mc?(this.fa&&(this.c.length=0,ya(this.P,a.type.c),this.fa=!1),a=this.P.indexOf(a),-1!==a&&(this.c.push(this.P[a]),this.P.splice(a,1))):(this.fa=!1,this.c.length=1,this.c[0]=a))};kb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.Cj=!0;c;){if(!c.group){this.Cj=!1;break}c=c.parent}this.hm=!this.In()&&(!this.parent||this.parent.group&&this.parent.Cj);this.vn=!!a;this.ne=
this.la.slice(0);for(c=this.parent;c;){a=0;for(b=c.la.length;a<b;a++)this.Nq(c.la[a]);c=c.parent}this.la=d(this.la);this.ne=d(this.ne);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].Ca();a=0;for(b=this.Dc.length;a<b;a++)this.Dc[a].Ca();a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].Ca(a<b-1&&this.Bc[a+1].Ci)};c.prototype.Wo=function(a){if(this.Ag!==!!a){this.Ag=!!a;var b;a=0;for(b=this.Uh.length;a<b;++a)this.Uh[a].wp();0<b&&this.b.Y.De&&this.b.Y.De.lm()}};c.prototype.Km=function(b){a(b,this.la)};c.prototype.Nq=
function(b){a(b,this.ne)};c.prototype.pj=function(){this.gp=!0;this.parent&&this.parent.pj()};c.prototype.In=function(){return this.hb.length?this.hb[0].trigger:!1};c.prototype.Pa=function(){var a,b=!1,c,d=this.b,k=this.b.mb();k.Ob=this;var f=this.hb;this.Ci||(k.rk=!1);if(this.Mc){0===f.length&&(b=!0);k.yb=0;for(a=f.length;k.yb<a;k.yb++)f[k.yb].trigger||(c=f[k.yb].Pa())&&(b=!0);(k.Qe=b)&&this.Ql()}else{k.yb=0;for(a=f.length;k.yb<a;k.yb++)if(c=f[k.yb].Pa(),!c){k.Qe=!1;this.hm&&d.ee&&d.fb();return}k.Qe=
!0;this.Ql()}this.Dr(k)};c.prototype.Dr=function(a){a.Qe&&this.vn&&(a.rk=!0);this.hm&&this.b.ee&&this.b.fb()};c.prototype.St=function(a){this.b.mb().Ob=this;this.hb[a].Pa()&&(this.Ql(),this.b.mb().Qe=!0)};c.prototype.Ql=function(){var a=this.b.mb(),b;a.Kb=0;for(b=this.Dc.length;a.Kb<b;a.Kb++)if(this.Dc[a.Kb].Pa())return;this.So()};c.prototype.Qt=function(){var a=this.b.mb(),b;for(b=this.Dc.length;a.Kb<b;a.Kb++)if(this.Dc[a.Kb].Pa())return;this.So()};c.prototype.So=function(){if(this.Bc.length){var a,
b,c,d,k=this.Bc.length-1;this.b.Kl(this);if(this.gp)for(a=0,b=this.Bc.length;a<b;a++)c=this.Bc[a],(d=!this.Cj||!this.group&&a<k)&&this.b.Jl(c.la),c.Pa(),d?this.b.Nf(c.la):this.b.gk(c.la);else for(a=0,b=this.Bc.length;a<b;a++)this.Bc[a].Pa();this.b.Ko()}};c.prototype.Tt=function(){var a=this.b.mb();a.Ob=this;var b=!1,c;a.yb=0;for(c=this.hb.length;a.yb<c;a.yb++)if(this.hb[a.yb].Pa())b=!0;else if(!this.Mc)return!1;return this.Mc?b:!0};c.prototype.Ws=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.hb[b].type===a.type)return!1;return!0};Vb=c;b.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Cc&&(this.gg=!0)};b.prototype.Vt=function(){return!0};b.prototype.Sl=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();return Sa(this.ab.apply(this.b.gd,this.va),this.rf)};b.prototype.Ut=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();a=this.ab.apply(this.we?this.we:this.type,this.va);this.type.nd();
return a};b.prototype.Rl=function(){var a,b,c,d,k,f,m,h,g=this.type,l=g.ba(),n=this.cc.Mc&&!this.trigger;b=0;var t=g.Kc,s=g.A,w=g.ud,x=this.Fc,r=-1<x,A=this.gg,D=this.K,E=this.va,M=this.rf,C=this.ab,H;if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Cc||(E[b]=f.get(0));else for(b=0,k=D.length;b<k;++b)E[b]=D[b].get(0);if(l.fa){l.c.length=0;l.P.length=0;H=g.c;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Cc&&(E[b]=f.get(a));r?(b=0,s&&(b=h.type.mf[w]),b=C.apply(h.F[x+b],E)):b=C.apply(h,
E);(m=Sa(b,M))?l.c.push(h):n&&l.P.push(h)}g.finish&&g.finish(!0);l.fa=!1;g.nd();return l.Qk()}c=0;H=(m=n&&!this.cc.Ws(this))?l.P:l.c;var G=!1;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Cc&&(E[b]=f.get(a));r?(b=0,s&&(b=h.type.mf[w]),b=C.apply(h.F[x+b],E)):b=C.apply(h,E);if(Sa(b,M))if(G=!0,m){if(l.c.push(h),t)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().c.push(f)}else{H[c]=h;if(t)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().c[c]=
f;c++}else if(m){H[c]=h;if(t)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().P[c]=f;c++}else if(n&&(l.P.push(h),t))for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().P.push(f)}H.length=c;if(t)for(s=g.Nb,a=0,d=s.length;a<d;a++)h=s[a].ba(),m?h.P.length=c:h.c.length=c;c=G;if(m&&!G)for(a=0,d=l.c.length;a<d;a++){h=l.c[a];if(A)for(b=0,k=D.length;b<k;b++)f=D[b],f.Cc&&(E[b]=f.get(a));b=r?C.apply(h.F[x],E):C.apply(h,E);if(Sa(b,M)){G=!0;break}}g.finish&&g.finish(c||n);return n?
G:l.Qk()};Qb=b;x.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Cc&&(this.gg=!0)};x.prototype.Sl=function(){var a=this.b,b,c,d=this.K,k=this.va;b=0;for(c=d.length;b<c;++b)k[b]=d[b].get();return this.ab.apply(a.gd,k)};x.prototype.Rl=function(){var a=this.type,b=this.Fc,c=a.ud,d=this.gg,k=this.K,f=this.va,m=this.ab,h=a.ba().qc(),a=a.A,g=-1<b,l,n,t,s,w,x;if(d)for(n=0,s=k.length;n<s;++n)w=k[n],w.Cc||(f[n]=w.get(0));else for(n=0,s=k.length;n<s;++n)f[n]=k[n].get(0);
l=0;for(t=h.length;l<t;++l){x=h[l];if(d)for(n=0,s=k.length;n<s;++n)w=k[n],w.Cc&&(f[n]=w.get(l));g?(n=0,a&&(n=x.type.mf[c]),m.apply(x.F[b+n],f)):m.apply(x,f)}return!1};Rb=x;var w=[],A=-1;f.prototype.Ca=function(){var a,b;if(11===this.type)this.Ee=this.b.nn(this.Hh,this.cc.parent);else if(13===this.type)for(a=0,b=this.$e.length;a<b;a++)this.$e[a].Ca();this.Zc&&this.Zc.Ca()};f.prototype.it=function(a){this.Cc||!a||a.Ba.qj||(this.Cc=!0)};f.prototype.Yo=function(){this.Cc=!0};f.prototype.Bs=function(a){this.Ld=
a||0;a=s();this.Zc.get(a);A--;return a.data};f.prototype.Cs=function(a){this.Ld=a||0;a=s();this.Zc.get(a);A--;return N(a.data)?a.data:""};f.prototype.Is=function(){return this.object};f.prototype.zs=function(){return this.Wm};f.prototype.Gs=function(a){this.Ld=a||0;a=s();this.Zc.get(a);A--;return a.La()?this.b.wd(a.data):this.b.wg(a.data)};f.prototype.Hs=function(){return this.Va};f.prototype.Fs=function(){return this.key};f.prototype.Es=function(){return this.index};f.prototype.Ds=function(a){a=
a||0;var b=this.ka.type,c=null,c=b.ba(),d=c.qc();if(d.length)c=d[a%d.length].type;else if(c.P.length)c=c.P[a%c.P.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.gi[b.ud]};f.prototype.As=function(){return this.Ee};f.prototype.ys=function(){return this.gn};f.prototype.Js=function(){var a,b;a=0;for(b=this.$e.length;a<b;a++)this.Gh[a]=this.$e[a].get();return this.Gh};Sb=f;h.prototype.Ca=function(){this.la=d(this.la)};h.prototype.Ze=function(a){var b=this.b.mn();
this.parent&&!this.Lg&&b?(this.Ue>=b.length&&(b.length=this.Ue+1),b[this.Ue]=a):this.data=a};h.prototype.yg=function(){var a=this.b.mn();return!this.parent||this.Lg||!a||this.Bi?this.data:this.Ue>=a.length||"undefined"===typeof a[this.Ue]?this.wi:a[this.Ue]};h.prototype.Pa=function(){!this.parent||this.Lg||this.Bi||this.Ze(this.wi)};Mb=h;t.prototype.toString=function(){return"include:"+this.Dg.toString()};t.prototype.Ca=function(){this.Dg=this.b.tk[this.Ps];this.sheet.xn.add(this);this.la=d(this.la);
for(var a=this.parent;a;)a.group&&a.Uh.push(this),a=a.parent;this.wp()};t.prototype.Pa=function(){this.parent&&this.b.rh(this.b.m);this.Dg.Rk||this.Dg.Pa(!0);this.parent&&this.b.Nf(this.b.m)};t.prototype.wp=function(){for(var a=this.parent;a;){if(a.group&&!a.Ag){this.Ta=!1;return}a=a.parent}this.Ta=!0};Wb=t;k.prototype.reset=function(a){this.Ob=a;this.Kb=this.yb=0;this.jp.length=0;this.rk=this.Qe=!1};Lb=k})();
(function(){function g(a,b){this.ka=a;this.b=a.b;this.type=b[0];this.get=[this.Qr,this.Mr,this.Zr,this.bs,this.Fr,this.$r,this.Ur,this.Jr,this.Tr,this.Yr,this.Gr,this.Xr,this.Kr,this.Vr,this.Rr,this.Sr,this.Nr,this.Or,this.Ir,this.as,this.Wr,this.Pr,this.Hr,this.Lr][this.type];var c=null;this.Ed=this.K=this.va=this.ab=this.Bj=this.Ya=this.first=this.value=null;this.Fc=-1;this.fe=null;this.Bp=-1;this.Ee=this.Hh=null;this.Pf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Ub(a,b[1]);break;case 18:this.first=new Ub(a,b[1]);this.Ya=new Ub(a,b[2]);this.Bj=new Ub(a,b[3]);break;case 19:this.ab=this.b.Rd(b[1]);this.ab!==V.prototype.Qb.random&&this.ab!==V.prototype.Qb.Yq||this.ka.Yo();this.va=[];this.K=[];3===b.length?(c=b[2],this.va.length=c.length+1):this.va.length=1;break;case 20:this.Ed=this.b.m[b[1]];this.Fc=-1;this.ab=this.b.Rd(b[2]);this.Pf=b[3];Yb.Function&&this.ab===Yb.Function.prototype.Qb.wu&&this.ka.Yo();this.fe=b[4]?new Ub(a,b[4]):null;this.va=[];this.K=
[];6===b.length?(c=b[5],this.va.length=c.length+1):this.va.length=1;break;case 21:this.Ed=this.b.m[b[1]];this.Pf=b[2];this.fe=b[3]?new Ub(a,b[3]):null;this.Bp=b[4];break;case 22:this.Ed=this.b.m[b[1]];this.Ed.mi(b[2]);this.Fc=this.Ed.Ek(b[2]);this.ab=this.b.Rd(b[3]);this.Pf=b[4];this.fe=b[5]?new Ub(a,b[5]):null;this.va=[];this.K=[];7===b.length?(c=b[6],this.va.length=c.length+1):this.va.length=1;break;case 23:this.Hh=b[1],this.Ee=null}this.ka.it(this.Ed);4<=this.type&&17>=this.type&&(this.first=new Ub(a,
b[1]),this.Ya=new Ub(a,b[2]));if(c){var d,f;d=0;for(f=c.length;d<f;d++)this.K.push(new Ub(a,c[d]))}}function n(){++c;l.length===c&&l.push(new Tb);return l[c]}function d(a,b,c){var d,f;d=0;for(f=a.length;d<f;++d)a[d].get(c),b[d+1]=c.data}function r(a,b){this.type=a||U.df;this.data=b||0;this.Ve=null;this.type==U.df&&(this.data=Math.floor(this.data))}g.prototype.Ca=function(){23===this.type&&(this.Ee=this.ka.b.nn(this.Hh,this.ka.cc.parent));this.first&&this.first.Ca();this.Ya&&this.Ya.Ca();this.Bj&&
this.Bj.Ca();this.fe&&this.fe.Ca();if(this.K){var a,b;a=0;for(b=this.K.length;a<b;a++)this.K[a].Ca()}};var l=[],c=-1;g.prototype.as=function(a){var b=this.K,g=this.va;g[0]=a;a=n();d(b,g,a);--c;this.ab.apply(this.b.gd,g)};g.prototype.Wr=function(a){var b=this.Ed,g=this.va,l=this.K,f=this.fe,h=this.ab,t=this.ka.Ld,k=b.ba(),m=k.qc();if(!m.length)if(k.P.length)m=k.P;else{this.Pf?a.Yb(""):a.ca(0);return}g[0]=a;a.Ve=b;a=n();d(l,g,a);f&&(f.get(a),a.La()&&(t=a.data,m=b.c));--c;b=m.length;if(t>=b||t<=-b)t%=
b;0>t&&(t+=b);h.apply(m[t],g)};g.prototype.Hr=function(a){var b=this.Ed,g=this.va,l=this.K,f=this.fe,h=this.Fc,t=this.ab,k=this.ka.Ld,m=b.ba(),w=m.qc();if(!w.length)if(m.P.length)w=m.P;else{this.Pf?a.Yb(""):a.ca(0);return}g[0]=a;a.Ve=b;a=n();d(l,g,a);f&&(f.get(a),a.La()&&(k=a.data,w=b.c));--c;l=w.length;if(k>=l||k<=-l)k%=l;0>k&&(k+=l);k=w[k];w=0;b.A&&(w=k.type.mf[b.ud]);t.apply(k.F[h+w],g)};g.prototype.Pr=function(a){var b=this.fe,d=this.Ed,g=this.Bp,f=this.ka.Ld,h=d.ba(),l=h.qc();if(!l.length)if(h.P.length)l=
h.P;else{this.Pf?a.Yb(""):a.ca(0);return}if(b){h=n();b.get(h);if(h.La()){f=h.data;d=d.c;f%=d.length;0>f&&(f+=d.length);g=d[f].Ka[g];N(g)?a.Yb(g):a.q(g);--c;return}--c}b=l.length;if(f>=b||f<=-b)f%=b;0>f&&(f+=b);f=l[f];l=0;d.A&&(l=f.type.gi[d.ud]);g=f.Ka[g+l];N(g)?a.Yb(g):a.q(g)};g.prototype.Qr=function(a){a.type=U.df;a.data=this.value};g.prototype.Mr=function(a){a.type=U.cf;a.data=this.value};g.prototype.Zr=function(a){a.type=U.String;a.data=this.value};g.prototype.bs=function(a){this.first.get(a);
a.La()&&(a.data=-a.data)};g.prototype.Fr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data+=b.data,b.wf()&&a.Ff());--c};g.prototype.$r=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data-=b.data,b.wf()&&a.Ff());--c};g.prototype.Ur=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data*=b.data,b.wf()&&a.Ff());--c};g.prototype.Jr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data/=b.data,a.Ff());
--c};g.prototype.Tr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data%=b.data,b.wf()&&a.Ff());--c};g.prototype.Yr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data=Math.pow(a.data,b.data),b.wf()&&a.Ff());--c};g.prototype.Gr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()?b.Di()?a.Yb(a.data.toString()+b.data):a.data&&b.data?a.ca(1):a.ca(0):a.Di()&&(a.data=b.Di()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};
g.prototype.Xr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data||b.data?a.ca(1):a.ca(0));--c};g.prototype.Ir=function(a){this.first.get(a);a.data?this.Ya.get(a):this.Bj.get(a)};g.prototype.Kr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data===b.data?1:0);--c};g.prototype.Vr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data!==b.data?1:0);--c};g.prototype.Rr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data<b.data?1:0);
--c};g.prototype.Sr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data<=b.data?1:0);--c};g.prototype.Nr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data>b.data?1:0);--c};g.prototype.Or=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data>=b.data?1:0);--c};g.prototype.Lr=function(a){var b=this.Ee.yg();ha(b)?a.q(b):a.Yb(b)};Ub=g;r.prototype.wf=function(){return this.type===U.cf};r.prototype.La=function(){return this.type===U.df||this.type===U.cf};r.prototype.Di=
function(){return this.type===U.String};r.prototype.Ff=function(){this.wf()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=U.cf)};r.prototype.ca=function(a){this.type=U.df;this.data=Math.floor(a)};r.prototype.q=function(a){this.type=U.cf;this.data=a};r.prototype.Yb=function(a){this.type=U.String;this.data=a};r.prototype.bu=function(a){ha(a)?(this.type=U.cf,this.data=a):N(a)?(this.type=U.String,this.data=a.toString()):(this.type=U.df,this.data=0)};Tb=r;U={df:0,cf:1,String:2}})();
function V(g){this.b=g;this.Jb=[]}V.prototype.Wb=function(){var g={},n,d,r,l,c,a,b,x;g.waits=[];var s=g.waits,f;n=0;for(d=this.Jb.length;n<d;n++){a=this.Jb[n];f={t:a.time,st:a.fp,s:a.Xl,ev:a.lf.O,sm:[],sols:{}};a.lf.Dc[a.Kb]&&(f.act=a.lf.Dc[a.Kb].O);r=0;for(l=a.la.length;r<l;r++)f.sm.push(a.la[r].O);for(c in a.rb)if(a.rb.hasOwnProperty(c)){b=this.b.m[parseInt(c,10)];x={sa:a.rb[c].mj,insts:[]};r=0;for(l=a.rb[c].xd.length;r<l;r++)x.insts.push(a.rb[c].xd[r].uid);f.sols[b.O.toString()]=x}s.push(f)}return g};
V.prototype.xc=function(g){g=g.waits;var n,d,r,l,c,a,b,x,s,f,h;n=this.Jb.length=0;for(d=g.length;n<d;n++)if(a=g[n],x=this.b.Pm[a.ev.toString()]){s=-1;r=0;for(l=x.Dc.length;r<l;r++)if(x.Dc[r].O===a.act){s=r;break}if(-1!==s){b={rb:{},la:[],ok:!1};b.time=a.t;b.fp=a.st||"";b.Xl=!!a.s;b.lf=x;b.Kb=s;r=0;for(l=a.sm.length;r<l;r++)(x=this.b.qi(a.sm[r]))&&b.la.push(x);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(x=this.b.qi(parseInt(c,10)))){s=a.sols[c];f={mj:s.sa,xd:[]};r=0;for(l=s.insts.length;r<l;r++)(h=
this.b.pi(s.insts[r]))&&f.xd.push(h);b.rb[x.index.toString()]=f}this.Jb.push(b)}}};
(function(){function g(){}function n(){}function d(){}var r=V.prototype;g.prototype.zm=function(){return!0};g.prototype.qq=function(){return!0};g.prototype.Gq=function(){var a=this.b.ni().ua;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.Yf;a.TriggerOnce_lastTick=c;return this.b.il||b!==c-1};g.prototype.Ip=function(a,b,c){return Xb(a.yg(),b,c)};g.prototype.Mp=function(){var a=this.b.mb();return a.rk?!1:!a.Qe};g.prototype.Am=function(){return!0};
g.prototype.cq=function(){return!0};g.prototype.Qj=function(){return!0};g.prototype.rq=function(){return!0};g.prototype.Oj=function(){return!0};g.prototype.Ep=function(a,b,c){return Ja(S(a),S(c))<=S(b)};g.prototype.Pp=function(a,b){return Pa(S(a),S(b))};g.prototype.Np=function(a,b,c){a=Ha(a);b=Ha(b);c=Ha(c);return Pa(c,b)?Pa(a,b)&&!Pa(a,c):!(!Pa(a,b)&&Pa(a,c))};r.i=new g;n.prototype.Yp=function(a){if(!this.b.zf&&!this.b.xe){var b=this.b.Tb.indexOf(this.b.Y);if(!a||0!==b)if(a||b!==this.b.Tb.length-
1)this.b.xe=this.b.Tb[b+(a?-1:1)]}};n.prototype.Eq=function(a,b){0===a.Jj?ha(b)?a.Ze(b):a.Ze(parseFloat(b)):1===a.Jj&&a.Ze(b.toString())};n.prototype.Dp=function(a,b){0===a.Jj?ha(b)?a.Ze(a.yg()+b):a.Ze(a.yg()+parseFloat(b)):1===a.Jj&&a.Ze(a.yg()+b.toString())};var l=[],c=[];n.prototype.Hq=function(a){if(!(0>a)){var b,d,g,f=this.b.mb(),h;h=l.length?l.pop():{rb:{},la:[]};h.ok=!1;h.time=this.b.hc.Z+a;h.fp="";h.Xl=!1;h.lf=f.Ob;h.Kb=f.Kb+1;a=0;for(b=this.b.m.length;a<b;a++)g=this.b.m[a],d=g.ba(),d.fa&&
-1===f.Ob.la.indexOf(g)||(h.la.push(g),g=void 0,g=c.length?c.pop():{xd:[]},g.mj=!1,g.mj=d.fa,ya(g.xd,d.c),h.rb[a.toString()]=g);this.Jb.push(h);return!0}};n.prototype.wq=function(){var a,b,c;a=0;for(b=this.b.Uj.length;a<b;a++)c=this.b.Uj[a],c.data=c.wi};n.prototype.xq=function(){if(!this.b.zf&&!this.b.xe&&this.b.Y){this.b.xe=this.b.Y;var a,b,c;a=0;for(b=this.b.Ud.length;a<b;a++)c=this.b.Ud[a],c.Wo(c.xi)}};n.prototype.yq=function(a){this.b.nj=a};n.prototype.Xp=function(a){this.b.Tg=a};r.ga=new n;d.prototype["int"]=
function(a,b){N(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};d.prototype["float"]=function(a,b){N(b)?(a.q(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.q(b)};d.prototype.random=function(a,b,c){void 0===c?a.q(Math.random()*b):a.q(Math.random()*(c-b)+b)};d.prototype.sqrt=function(a,b){a.q(Math.sqrt(b))};d.prototype.abs=function(a,b){a.q(Math.abs(b))};d.prototype.round=function(a,b){a.ca(Math.round(b))};d.prototype.floor=function(a,b){a.ca(Math.floor(b))};d.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};
d.prototype.sin=function(a,b){a.q(Math.sin(S(b)))};d.prototype.cos=function(a,b){a.q(Math.cos(S(b)))};d.prototype.tan=function(a,b){a.q(Math.tan(S(b)))};d.prototype.asin=function(a,b){a.q(Ca(Math.asin(b)))};d.prototype.acos=function(a,b){a.q(Ca(Math.acos(b)))};d.prototype.atan=function(a,b){a.q(Ca(Math.atan(b)))};d.prototype.exp=function(a,b){a.q(Math.exp(b))};d.prototype.log10=function(a,b){a.q(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,
d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b<f&&(b=f);a.q(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b>f&&(b=f);a.q(b)};d.prototype.Ce=function(a){a.q(this.b.Ce)};d.prototype.Zf=function(a){a.q(this.b.Zf)};d.prototype.time=function(a){a.q(this.b.hc.Z)};d.prototype.Yf=function(a){a.ca(this.b.Yf)};d.prototype.Ui=function(a){a.ca(this.b.Ui)};d.prototype.Ak=
function(a){a.ca(this.b.Ak)};d.prototype.j=function(a,b,c,d,f){a.q(Ca(Ia(b,c,d,f)))};d.prototype.find=function(a,b,c){N(b)&&N(c)?a.ca(b.search(new RegExp($a(c),"i"))):a.ca(-1)};d.prototype.left=function(a,b,c){a.Yb(N(b)?b.substr(0,c):"")};d.prototype.right=function(a,b,c){a.Yb(N(b)?b.substr(b.length-c):"")};d.prototype.replace=function(a,b,c,d){N(b)&&N(c)&&N(d)?a.Yb(b.replace(new RegExp($a(c),"gi"),d)):a.Yb(N(b)?b:"")};d.prototype.trim=function(a,b){a.Yb(N(b)?b.trim():"")};d.prototype.Yq=function(a){var b=
Q(Math.random()*(arguments.length-1));a.bu(arguments[b+1])};d.prototype.ik=function(a){a.q(this.b.ik/1E3)};d.prototype.Oi=function(a){a.q(this.b.Oi)};r.Qb=new d;r.Rt=function(){var a,b,d,g,f,h,n=this.b.mb();a=0;for(d=this.Jb.length;a<d;a++){g=this.Jb[a];if(-1===g.time){if(!g.Xl)continue}else if(g.time>this.b.hc.Z)continue;n.Ob=g.lf;n.Kb=g.Kb;n.yb=0;for(b in g.rb)g.rb.hasOwnProperty(b)&&(f=this.b.m[parseInt(b,10)].ba(),h=g.rb[b],f.fa=h.mj,ya(f.c,h.xd),f=h,f.xd.length=0,c.push(f));g.lf.Qt();this.b.gk(g.la);
g.ok=!0}b=a=0;for(d=this.Jb.length;a<d;a++)g=this.Jb[a],this.Jb[b]=g,g.ok?(Ua(g.rb),g.la.length=0,l.push(g)):b++;this.Jb.length=b}})();
(function(){jb=function(g,d){var r=g[1],l=g[3],c=g[4],a=g[5],b=g[6],x=g[7],s=g[8];d.i||(d.i={});d.ga||(d.ga={});d.Qb||(d.Qb={});var f=d.i,h=d.ga,t=d.Qb;l&&(f.Jp=function(a,b){return Xb(this.x,a,b)},f.Kp=function(a,b){return Xb(this.y,a,b)},f.Gu=function(){var a=this.d;this.ma();var b=this.ya;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ia||b.top>a.Ha)},f.Hu=function(){this.ma();var a=this.ya,b=this.b.Y;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},f.Su=function(a,b,c){var d=this.ba(),
f=d.qc();if(!f.length)return!1;var e=f[0],g=e,h=Ra(e.x,e.y,b,c),l,n,t;l=1;for(n=f.length;l<n;l++)if(e=f[l],t=Ra(e.x,e.y,b,c),0===a&&t<h||1===a&&t>h)h=t,g=e;d.ph(g);return!0},h.kv=function(a){this.x!==a&&(this.x=a,this.qa())},h.lv=function(a){this.y!==a&&(this.y=a,this.qa())},h.Dq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.qa()},h.gv=function(a,b){var c=a.ts(this);if(c){var d;c.Ik?(d=c.Ik(b,!0),c=c.Ik(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.qa()}},
h.Lu=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.qa())},h.Ku=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.qa())},t.Em=function(a){a.q(this.x)},t.Fm=function(a){a.q(this.y)},t.Ce=function(a){a.q(this.b.Fk(this))});c&&(f.Au=function(a,b){return Xb(this.width,a,b)},f.xu=function(a,b){return Xb(this.height,a,b)},h.jv=function(a){this.width!==a&&(this.width=a,this.qa())},h.cv=function(a){this.height!==a&&(this.height=a,this.qa())},h.hv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.qa()},t.pv=function(a){a.q(this.width)},t.Cu=function(a){a.q(this.height)},t.tu=function(a){this.ma();a.q(this.ya.left)},t.vu=function(a){this.ma();a.q(this.ya.top)},t.uu=function(a){this.ma();a.q(this.ya.right)},t.su=function(a){this.ma();a.q(this.ya.bottom)});a&&(f.Ep=function(a,b){return Ja(this.j,S(b))<=S(a)},f.Pp=function(a){return Pa(this.j,S(a))},f.Np=function(a,b){var c=Ha(a),d=Ha(b),f=Ea(this.j);return Pa(d,
c)?Pa(f,c)&&!Pa(f,d):!(!Pa(f,c)&&Pa(f,d))},h.zq=function(a){a=S(Da(a));isNaN(a)||this.j===a||(this.j=a,this.qa())},h.Wu=function(a){0===a||isNaN(a)||(this.j+=S(a),this.j=Ea(this.j),this.qa())},h.Xu=function(a){0===a||isNaN(a)||(this.j-=S(a),this.j=Ea(this.j),this.qa())},h.Yu=function(a,b){var c=Ka(this.j,S(b),S(a));isNaN(c)||this.j===c||(this.j=c,this.qa())},h.Zu=function(a,b,c){a=Ka(this.j,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.j===a||(this.j=a,this.qa())},h.iv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.qa())},t.ru=function(a){a.q(Fa(this.j))});r||(f.yu=function(a,b,c){return Xb(this.Ka[a],b,c)},f.Eu=function(a){return this.Ka[a]},f.Tu=function(a,b){var c=this.ba(),d=c.qc();if(!d.length)return!1;var f=d[0],e=f,g=f.Ka[b],h,l,n;h=1;for(l=d.length;h<l;h++)if(f=d[h],n=f.Ka[b],0===a&&n<g||1===a&&n>g)g=n,e=f;c.ph(e);return!0},f.Ru=function(a){var b,c,d,f,e;if(this.b.ni().rf){e=this.ba();if(e.fa)for(e.fa=!1,e.c.length=0,e.P.length=0,d=this.c,b=0,c=d.length;b<
c;b++)f=d[b],f.uid===a?e.P.push(f):e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.P.push(f):d++;e.c.length=d}this.nd();return!!e.c.length}f=this.b.pi(a);if(!f)return!1;e=this.ba();if(!e.fa&&-1===e.c.indexOf(f))return!1;if(this.A)for(a=f.type.pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.ph(f),this.nd(),!0}else if(f.type===this)return e.ph(f),this.nd(),!0;return!1},f.dq=function(){return!0},f.fq=function(){return!0},h.dv=function(a,b){var c=this.Ka;ha(c[a])?c[a]=
ha(b)?b:parseFloat(b):N(c[a])&&(c[a]=N(b)?b:b.toString())},h.qu=function(a,b){var c=this.Ka;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},h.mv=function(a,b){var c=this.Ka;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},h.$u=function(a,b){this.Ka[a]=b?1:0},h.nv=function(a){this.Ka[a]=1-this.Ka[a]},h.Lp=function(){this.b.Qd(this)},h.Wp||(h.Wp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Li(this,b,!0);this.ld&&this.ld();if(this.F)for(a=
0,b=this.F.length;a<b;++a)c=this.F[a],c.ld&&c.ld()}),t.Bu=function(a){var b=a.Ve.c.length,c,d,f;c=0;for(d=this.b.Hc.length;c<d;c++)f=this.b.Hc[c],a.Ve.A?0<=f.type.pa.indexOf(a.Ve)&&b++:f.type===a.Ve&&b++;a.ca(b)},t.Vu=function(a){a.ca(a.Ve.ba().qc().length)},t.ov=function(a){a.ca(this.uid)},t.Du=function(a){a.ca(this.zg())},t.Fp||(t.Fp=function(a){a.Yb(JSON.stringify(this.b.Tl(this,!0)))}));b&&(f.Up=function(){return this.visible},h.Fq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ea=!0)},
f.zu=function(a,b){return Xb(fb(100*this.opacity),a,b)},h.Cq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ea=!0)},t.Opacity=function(a){a.q(fb(100*this.opacity))});x&&(f.Fu=function(a){return a?this.d===a:!1},f.Uu=function(a){var b=this.ba(),c=b.qc();if(!c.length)return!1;var d=c[0],f=d,e,g;e=1;for(g=c.length;e<g;e++)if(d=c[e],0===a){if(d.d.index>f.d.index||d.d.index===f.d.index&&d.tc()>f.tc())f=d}else if(d.d.index<f.d.index||d.d.index===f.d.index&&d.tc()<f.tc())f=
d;b.ph(f);return!0},h.Ou=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Of(this,!1),a.ig(this,!1),this.b.ea=!0)},h.Mu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Of(this,!1),a.It(this),this.b.ea=!0)},h.Nu=function(a){a&&a!=this.d&&(this.d.Of(this,!0),this.d=a,a.ig(this,!0),this.b.ea=!0)},h.rv=function(a,b){var c=0===a;if(b){var d=b.os(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Of(this,!0),this.d=d.d,d.d.ig(this,!0)),this.d.kt(this,d,c),this.b.ea=!0)}},
t.Ju=function(a){a.ca(this.d.ro)},t.Iu=function(a){a.Yb(this.d.name)},t.qv=function(a){a.ca(this.tc())});s&&(h.av=function(a,b){if(this.b.n){var c=this.type.Hk(b);if(!(0>c)){var d=1===a;this.Sd[c]!==d&&(this.Sd[c]=d,this.Od(),this.b.ea=!0)}}},h.bv=function(a,b,c){if(this.b.n){var d=this.type.Hk(a);0>d||(a=this.type.G[d],d=this.ta[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.xs(a.eb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ta&&(this.b.ea=!0))))}})};Db=function(){this.bk=this.Ph=!0;this.type.Jh=!0;this.b.ea=
!0;var g,d,r=this.$j;g=0;for(d=r.length;g<d;++g)r[g](this);this.d.Tc&&this.ma()};Eb=function(g){g&&this.$j.push(g)};Gb=function(){if(this.Ph){var g=this.ya,d=this.Mb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Ab*this.width,-this.Bb*this.height);this.j?(g.offset(-this.x,-this.y),d.$o(g,this.j),d.offset(this.x,this.y),d.Qm(g)):d.Tf(g);g.normalize();this.Ph=!1;this.mu()}};var g=new ta(0,0,0,0);Hb=function(){if(this.d.Tc){var n=this.d.Vb,d=this.ya;g.set(n.$b(d.left),n.ac(d.top),
n.$b(d.right),n.ac(d.bottom));this.Fb.di(g)||(this.Fb.right<this.Fb.left?n.update(this,null,g):n.update(this,this.Fb,g),this.Fb.pg(g),this.d.Id=!0)}};Ib=function(){if(this.bk&&this.Gc){this.ma();var n=this.type.mg,d=this.ya;g.set(n.$b(d.left),n.ac(d.top),n.$b(d.right),n.ac(d.bottom));this.kc.di(g)||(this.kc.right<this.kc.left?n.update(this,null,g):n.update(this,this.kc,g),this.kc.pg(g),this.bk=!1)}};Fb=function(g,d){return this.ya.$a(g,d)&&this.Mb.$a(g,d)?this.V&&!this.V.vf()?(this.V.hf(this.width,
this.height,this.j),this.V.$a(g-this.x,d-this.y)):!0:!1};zb=function(){this.type.Hj();return this.Je};Jb=function(){this.d.om();return this.Vc};Kb=function(){this.U.length=0;var g,d;g=0;for(d=this.Sd.length;g<d;g++)this.Sd[g]&&this.U.push(this.type.G[g]);this.Ap=!!this.U.length};Ab=function(){return"Inst"+this.Oo};mb=function(g){if(g&&g.Kc&&g.type!=this){var d,r,l;d=0;for(r=g.siblings.length;d<r;d++)if(l=g.siblings[d],l.type==this)return l}g=this.ba().qc();return g.length?g[0]:null};nb=function(g){var d=
this.ba().qc();return d.length?d[g.zg()%d.length]:null};lb=function(){if(this.Wf&&!this.A){var g,d;g=0;for(d=this.c.length;g<d;g++)this.c[g].Je=g;var r=g,l=this.b.Hc;g=0;for(d=l.length;g<d;++g)l[g].type===this&&(l[g].Je=r++);this.Wf=!1}};xb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var d=this.b.Hc,r,l;r=0;for(l=d.length;r<l;++r)if(d[r].type===this){if(0===g)return d[r];--g}return null};ob=function(){return this.oe[this.sd]};pb=function(){this.sd++;this.sd===this.oe.length?this.oe.push(new kb(this)):
this.oe[this.sd].fa=!0};rb=function(){this.sd++;this.sd===this.oe.length&&this.oe.push(new kb(this));var g=this.oe[this.sd],d=this.oe[this.sd-1];d.fa?g.fa=!0:(g.fa=!1,ya(g.c,d.c),ya(g.P,d.P))};sb=function(){this.sd--};tb=function(g){var d,r,l,c,a,b=0;if(!this.A)for(d=0,r=this.pa.length;d<r;d++)for(a=this.pa[d],l=0,c=a.Fa.length;l<c;l++){if(g===a.Fa[l].name)return this.ua.lastBehIndex=b,a.Fa[l];b++}d=0;for(r=this.Fa.length;d<r;d++){if(g===this.Fa[d].name)return this.ua.lastBehIndex=b,this.Fa[d];b++}return null};
ub=function(g){return this.mi(g)?this.ua.lastBehIndex:-1};vb=function(g){var d,r;d=0;for(r=this.G.length;d<r;d++)if(this.G[d].name===g)return d;return-1};wb=function(){if(this.Kc&&!this.A){var g,d,r,l,c,a,b;this.Hj();a=this.ba();var x=a.fa,s=(g=this.b.mb())&&g.Ob&&g.Ob.Mc;g=0;for(d=this.Nb.length;g<d;g++)if(c=this.Nb[g],c!==this&&(c.Hj(),b=c.ba(),b.fa=x,!x)){b.c.length=a.c.length;r=0;for(l=a.c.length;r<l;r++)b.c[r]=c.pn(a.c[r].Je);if(s)for(b.P.length=a.P.length,r=0,l=a.P.length;r<l;r++)b.P[r]=c.pn(a.P[r].Je)}}};
yb=function(){return"Type"+this.O};Xb=function(g,d,r){if("undefined"===typeof g||"undefined"===typeof r)return!1;switch(d){case 0:return g===r;case 1:return g!==r;case 2:return g<r;case 3:return g<=r;case 4:return g>r;case 5:return g>=r;default:return!1}}})();var fc={};function hc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return R.hasOwnProperty(a)&&R[a].length?R[a][0].ec():v.destination}function d(){return v.createGain?v.createGain():v.createGainNode()}function r(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,e,f,g){this.type="filter";this.Nc=[a,b,c,e,f,g];this.R=d();this.D=d();this.D.gain.value=g;this.B=d();this.B.gain.value=1-g;this.Ga=v.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:oc[a];this.Ga.frequency.value=b;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=e;this.Ga.gain.value=f;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D)}function x(a,b,c){this.type="delay";this.Nc=[a,b,c];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=
1-c;this.bh=d();this.oc=r(a);this.oc.delayTime.value=a;this.bi=d();this.bi.gain.value=b;this.R.connect(this.bh);this.R.connect(this.B);this.bh.connect(this.D);this.bh.connect(this.oc);this.oc.connect(this.bi);this.bi.connect(this.bh)}function s(a,b,c,e){this.type="convolve";this.Nc=[b,c,e];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=1-c;this.ye=v.createConvolver();a&&(this.ye.normalize=b,this.ye.buffer=a);this.R.connect(this.ye);this.R.connect(this.B);this.ye.connect(this.D)}
function f(a,b,c,e,f){this.type="flanger";this.Nc=[a,b,c,e,f];this.R=d();this.B=d();this.B.gain.value=1-f/2;this.D=d();this.D.gain.value=f/2;this.hi=d();this.hi.gain.value=e;this.oc=r(a+b);this.oc.delayTime.value=a;this.Xa=v.createOscillator();this.Xa.frequency.value=c;this.Ub=d();this.Ub.gain.value=b;this.R.connect(this.oc);this.R.connect(this.B);this.oc.connect(this.D);this.oc.connect(this.hi);this.hi.connect(this.oc);this.Xa.connect(this.Ub);this.Ub.connect(this.oc.delayTime);l(this.Xa)}function h(a,
b,c,e,f,g){this.type="phaser";this.Nc=[a,b,c,e,f,g];this.R=d();this.B=d();this.B.gain.value=1-g/2;this.D=d();this.D.gain.value=g/2;this.Ga=v.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=a;this.Ga.detune&&(this.Ga.detune.value=b);this.Ga.Q.value=c;this.Xa=v.createOscillator();this.Xa.frequency.value=f;this.Ub=d();this.Ub.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D);this.Xa.connect(this.Ub);this.Ub.connect(this.Ga.frequency);
l(this.Xa)}function t(a){this.type="gain";this.Nc=[a];this.T=d();this.T.gain.value=a}function k(a,b){this.type="tremolo";this.Nc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.Xa=v.createOscillator();this.Xa.frequency.value=a;this.Ub=d();this.Ub.gain.value=b/2;this.Xa.connect(this.Ub);this.Ub.connect(this.T.gain);l(this.Xa)}function m(a,b){this.type="ringmod";this.Nc=[a,b];this.R=d();this.D=d();this.D.gain.value=b;this.B=d();this.B.gain.value=1-b;this.uh=d();this.uh.gain.value=0;this.Xa=v.createOscillator();
this.Xa.frequency.value=a;this.Xa.connect(this.uh.gain);l(this.Xa);this.R.connect(this.uh);this.R.connect(this.B);this.uh.connect(this.D)}function w(a,b,c,e,f){this.type="distortion";this.Nc=[a,b,c,e,f];this.R=d();this.gj=d();this.fj=d();this.Yt(c,Math.pow(10,e/20));this.D=d();this.D.gain.value=f;this.B=d();this.B.gain.value=1-f;this.Kj=v.createWaveShaper();this.$h=new Float32Array(65536);this.ks(a,b);this.Kj.$h=this.$h;this.R.connect(this.gj);this.R.connect(this.B);this.gj.connect(this.Kj);this.Kj.connect(this.fj);
this.fj.connect(this.D)}function A(a,b,c,d,e){this.type="compressor";this.Nc=[a,b,c,d,e];this.T=v.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=d,this.T.release.value=e}catch(f){}}function q(a,b){this.type="analyser";this.Nc=[a,b];this.T=v.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.hs=new Float32Array(this.T.frequencyBinCount);this.dp=new Uint8Array(a);this.oh=0}function e(){this.C=null;this.Ni=0;this.pe=
[];this.tl=this.Gi=this.Fi=0}function p(a,b){this.src=a;this.I=F;this.Lc=b;this.Lm=!1;var c=this;this.rl=this.El=null;this.Lf=[];this.oj=0;this.vm=this.wk=this.ip=this.cj=!1;1===F&&b&&(this.I=0,this.El=d());this.ve=this.W=null;var e;switch(this.I){case 0:this.W=new Audio;this.W.addEventListener("canplaythrough",function(){c.vm=!0});1===F&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ip=!0,this.W.addEventListener("canplay",function(){c.rl||(c.rl=v.createMediaElementSource(c.W),
c.rl.connect(c.El))}));this.W.autoplay=!1;this.W.Av="auto";this.W.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.ve=e.response;c.dr()};e.onerror=function(){c.wk=!0};e.send();break;case 2:this.W=!0;break;case 3:this.W=!0}}function u(a,b){var c=this;this.tag=b;this.Zb=this.$c=!0;this.src=a.src;this.buffer=a;this.I=F;this.Lc=a.Lc;this.playbackRate=1;this.hk=!0;this.wc=this.Jd=!1;this.Gb=0;this.Kg=this.xf=this.ad=!1;this.volume=1;this.Ne=
1===E&&!this.Lc||2===E;this.Gf=1;this.startTime=this.Ne?z.hc.Z:z.kd.Z;this.Aa=this.Ja=null;this.bd=!1;this.za=null;this.Bo=this.Ao=this.zo=this.yo=this.Do=this.Co=0;this.e=null;var e=!1;1!==this.I||0!==this.buffer.I||this.buffer.ip||(this.I=0);switch(this.I){case 0:this.Lc?(this.e=a.W,e=!a.Lm,a.Lm=!0):(this.e=new Audio,this.e.autoplay=!1,this.e.src=a.W.src,e=!0);e&&this.e.addEventListener("ended",function(){B=c.tag;c.Zb=!0;z.trigger(hc.prototype.i.Nj,J)});break;case 1:this.Ja=d();this.Ja.connect(n(b));
1===this.buffer.I?a.W&&(this.e=v.createBufferSource(),this.e.buffer=a.W,this.e.connect(this.Ja)):(this.e=this.buffer.W,this.buffer.El.connect(this.Ja));break;case 2:this.e=new window.Media(Y+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.hk=!0,c.Zb=!0,B=c.tag,z.trigger(hc.prototype.i.Nj,J))});break;case 3:this.e=!0}}function y(a,b){R.hasOwnProperty(a)?R[a].push(b):R[a]=[b];var c,d,e,f,g=v.destination;if(R.hasOwnProperty(a)&&(e=R[a],e.length))for(g=e[0].ec(),c=0,d=e.length;c<d;c++)f=
e[c],c+1===d?f.lc(v.destination):f.lc(e[c+1].ec());Ga.length=0;if(a.length)for(c=0,d=L.length;c<d;c++)e=L[c],gb(a,e.tag)&&Ga.push(e);else P&&!P.Ie()&&(Ga.length=1,Ga[0]=P);c=0;for(d=Ga.length;c<d;c++)Ga[c].Mt(g);da&&qb===a&&(da.disconnect(),da.connect(g))}function O(){}function Z(){}var T=hc.prototype;T.gb=function(a){this.Ba=a;this.b=a.b};T.gb.prototype.ja=function(){};var z=null,J=null,B="",Y="",F=0,v=null,ua=[],L=[],P=null,D=!1,E=0,M=!1,C=1,H=0,G=0,ka=1,K=1,pa=10,ga=1E4,sa=1,da=null,qb="",La=!1,
Ma=[],R={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};b.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.D.disconnect();this.B.disconnect()};b.prototype.ec=function(){return this.R};x.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};x.prototype.remove=function(){this.R.disconnect();
this.bh.disconnect();this.oc.disconnect();this.bi.disconnect();this.D.disconnect();this.B.disconnect()};x.prototype.ec=function(){return this.R};s.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};s.prototype.remove=function(){this.R.disconnect();this.ye.disconnect();this.D.disconnect();this.B.disconnect()};s.prototype.ec=function(){return this.R};f.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};
f.prototype.remove=function(){this.R.disconnect();this.oc.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect();this.hi.disconnect()};f.prototype.ec=function(){return this.R};h.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect()};h.prototype.ec=function(){return this.R};
t.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};t.prototype.remove=function(){this.T.disconnect()};t.prototype.ec=function(){return this.T};k.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};k.prototype.remove=function(){this.Xa.disconnect();this.Ub.disconnect();this.T.disconnect()};k.prototype.ec=function(){return this.T};m.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};m.prototype.remove=function(){this.Xa.disconnect();
this.uh.disconnect();this.R.disconnect();this.D.disconnect();this.B.disconnect()};m.prototype.ec=function(){return this.R};w.prototype.Yt=function(a,b){.01>a&&(a=.01);this.gj.gain.value=a;this.fj.gain.value=Math.pow(1/a,.6)*b};w.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};w.prototype.ks=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.$h[32768+f]=e,this.$h[32768-
f-1]=-e};w.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};w.prototype.remove=function(){this.R.disconnect();this.gj.disconnect();this.Kj.disconnect();this.fj.disconnect();this.D.disconnect();this.B.disconnect()};w.prototype.ec=function(){return this.R};A.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};A.prototype.remove=function(){this.T.disconnect()};A.prototype.ec=function(){return this.T};q.prototype.Za=function(){this.T.getFloatFrequencyData(this.hs);
this.T.getByteTimeDomainData(this.dp);for(var a=this.T.fftSize,b=0,c=this.oh=0,d=0;b<a;b++)d=(this.dp[b]-128)/128,0>d&&(d=-d),this.oh<d&&(this.oh=d),c+=d*d;this.oh=g(this.oh);g(Math.sqrt(c/a))};q.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};q.prototype.remove=function(){this.T.disconnect()};q.prototype.ec=function(){return this.T};e.prototype.vh=function(a){if(this.C=a)this.Fi=this.C.x,this.Gi=this.C.y;this.pe.length=0};e.prototype.vi=function(){return!!this.C};e.prototype.Za=function(a){this.C&&
0!==a&&(this.tl=Ia(this.Fi,this.Gi,this.C.x,this.C.y),a=Ra(this.Fi,this.Gi,this.C.x,this.C.y)/a,4>this.pe.length||this.pe.shift(),this.pe.push(a),this.Fi=this.C.x,this.Gi=this.C.y)};e.prototype.tn=function(){if(!this.pe.length)return 0;var a,b,c=0;a=0;for(b=this.pe.length;a<b;a++)c+=this.pe[a];return c/this.pe.length};e.prototype.Lk=function(){return Math.cos(this.tl)*this.tn()};e.prototype.Mk=function(){return Math.sin(this.tl)*this.tn()};var lc=!1;p.prototype.dr=function(){if(!this.W&&this.ve){var a=
this;if(v.decodeAudioData)v.decodeAudioData(this.ve,function(b){a.W=b;a.ve=null;var c,d,e;if(fa(a.dj)||M)fa(a.Vh)||(c=a.Vh.ye,c.normalize=a.qo,c.buffer=b);else if(a.Lf.length){c=0;for(d=a.Lf.length;c<d;c++){b=a.Lf[c];e=new u(a,b.lp);e.Vl(!0);if("undefined"!==typeof b.so&&(b.C=z.pi(b.so),!b.C))continue;if(b.C){var f=Qa(b.C.x,b.C.y,-b.C.d.Ua(),H,G,!0),g=Qa(b.C.x,b.C.y,-b.C.d.Ua(),H,G,!1);e.Ul(f,g,Ca(b.C.j-b.C.d.Ua()),b.Sk,b.ul,b.yl);e.vh(b.C)}else e.Ul(b.x,b.y,b.Iq,b.Sk,b.ul,b.yl);e.play(a.ol,a.tm,
a.oj);a.cj&&e.pause();L.push(e)}a.Lf.length=0}else e=new u(a,a.dj),e.play(a.ol,a.tm,a.oj),a.cj&&e.pause(),L.push(e)},function(){a.wk=!0});else if(this.W=v.createBuffer(this.ve,!1),this.ve=null,fa(this.dj)||M)fa(this.Vh)||(b=this.Vh.ye,b.normalize=this.qo,b.buffer=this.W);else{var b=new u(this,this.dj);b.play(this.ol,this.tm,this.oj);this.cj&&b.pause();L.push(b)}}};p.prototype.Dn=function(){switch(this.I){case 0:var a=4<=this.W.readyState;a&&(this.vm=!0);return a||this.vm;case 1:return!!this.ve||!!this.W;
case 2:return!0;case 3:return!0}return!1};p.prototype.Xs=function(){switch(this.I){case 0:return this.Dn();case 1:return!!this.W;case 2:return!0;case 3:return!0}return!1};p.prototype.Os=function(){switch(this.I){case 0:return!!this.W.error;case 1:return this.wk}return!1};u.prototype.Ie=function(){var a;switch(this.I){case 0:return this.e.ended;case 1:if(1===this.buffer.I){if(!this.$c&&!this.Zb&&this.e.loop||this.wc)return!1;a=this.Ne?z.hc.Z:z.kd.Z;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.W.duration/b}return this.e.ended;case 2:return this.hk;case 3:!0}return!0};u.prototype.Wq=function(){return this.$c||this.Zb?!0:this.Ie()};u.prototype.Vl=function(a){1===F&&(!this.bd&&a?this.Ja&&(this.Aa||(this.Aa=v.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?K:["linear","inverse","exponential"][K],this.Aa.refDistance=pa,this.Aa.maxDistance=
ga,this.Aa.rolloffFactor=sa),this.Ja.disconnect(),this.Ja.connect(this.Aa),this.Aa.connect(n(this.tag)),this.bd=!0):this.bd&&!a&&this.Ja&&(this.Aa.disconnect(),this.Ja.disconnect(),this.Ja.connect(n(this.tag)),this.bd=!1))};u.prototype.Ul=function(a,b,c,d,e,f){this.bd&&1===F&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(S(c)),Math.sin(S(c)),0),this.Aa.coneInnerAngle=d,this.Aa.coneOuterAngle=e,this.Aa.coneOuterGain=f,this.Co=a,this.Do=b,this.yo=c,this.zo=d,this.Ao=e,this.Bo=f)};u.prototype.vh=
function(a){this.bd&&1===F&&(this.za||(this.za=new e),this.za.vh(a))};u.prototype.Za=function(a){if(this.bd&&1===F&&this.za&&this.za.vi()&&this.tf()){this.za.Za(a);a=this.za.C;var b=Qa(a.x,a.y,-a.d.Ua(),H,G,!0),c=Qa(a.x,a.y,-a.d.Ua(),H,G,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.za.C.j&&(b=a.j-a.d.Ua(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.za.Lk(),this.za.Mk(),-a.d.Ua(),0,0,!0);c=Qa(this.za.Lk(),this.za.Mk(),-a.d.Ua(),0,0,!1);this.Aa.setVelocity(b,c,0)}};
u.prototype.play=function(a,b,d){var e=this.e;this.ad=a;this.volume=b;d=d||0;switch(this.I){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*C&&(e.volume=b*C);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Lc&&La&&!z.ha)Ma.push(this);else try{this.e.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Gf=1;if(1===this.buffer.I)this.Ja.gain.value=
b*C,this.$c||(this.e=v.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja)),this.e.loop=a,0===d?l(this.e):c(this.e,d,this.Ge());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*C;if(e.currentTime!==d)try{e.currentTime=d}catch(k){}this.Lc&&La&&!z.ha?Ma.push(this):e.play()}break;case 2:(!this.$c&&this.Zb||0!==d)&&e.seekTo(d);e.play();this.hk=!1;break;case 3:z.bb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Ne?z.hc.Z:z.kd.Z)-d;this.wc=this.Zb=this.$c=!1};u.prototype.stop=function(){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?a(this.e):this.e.paused||this.e.pause();break;case 2:this.e.stop();break;case 3:z.bb&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.wc=!1};u.prototype.pause=function(){if(!(this.$c||this.Zb||this.Ie()||this.wc)){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?(this.Gb=this.Jk(),
this.ad&&(this.Gb%=this.Ge()),a(this.e)):this.e.paused||this.e.pause();break;case 2:this.e.pause();break;case 3:z.bb&&AppMobi.context.stopSound(this.src)}this.wc=!0}};u.prototype.Pt=function(){if(!(this.$c||this.Zb||this.Ie())&&this.wc){switch(this.I){case 0:this.e.play();break;case 1:1===this.buffer.I?(this.e=v.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.ad,this.Ja.gain.value=C*this.volume*this.Gf,this.startTime=(this.Ne?z.hc.Z:z.kd.Z)-this.Gb,c(this.e,
this.Gb,this.Ge())):this.e.play();break;case 2:this.e.play();break;case 3:z.bb&&AppMobi.context.resumeSound(this.src)}this.wc=!1}};u.prototype.seek=function(a){if(!(this.$c||this.Zb||this.Ie()))switch(this.I){case 0:try{this.e.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.wc?this.Gb=a:(this.pause(),this.Gb=a,this.Pt());else try{this.e.currentTime=a}catch(c){}break;case 3:z.bb&&AppMobi.context.seekSound(this.src,a)}};u.prototype.Mt=function(a){1===this.I&&(this.bd?(this.Aa.disconnect(),
this.Aa.connect(a)):(this.Ja.disconnect(),this.Ja.connect(a)))};u.prototype.Ge=function(){switch(this.I){case 0:if("undefined"!==typeof this.e.duration)return this.e.duration;break;case 1:return this.buffer.W.duration;case 2:return this.e.getDuration();case 3:if(z.bb)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.Jk=function(){var a=this.Ge(),b=0;switch(this.I){case 0:"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 1:if(1===this.buffer.I){if(this.wc)return this.Gb;
b=(this.Ne?z.hc.Z:z.kd.Z)-this.startTime}else"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 3:z.bb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.ad&&b>a&&(b=a);return b};u.prototype.tf=function(){return!this.wc&&!this.$c&&!this.Zb&&!this.Ie()};u.prototype.ku=function(){var a=this.volume*C;switch(this.I){case 0:"undefined"!==typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a);break;case 1:1===this.buffer.I?this.Ja.gain.value=a*this.Gf:"undefined"!==typeof this.e.volume&&
this.e.volume!==a&&(this.e.volume=a)}};u.prototype.ci=function(a){switch(this.I){case 0:this.e.muted!==!!a&&(this.e.muted=!!a);break;case 1:1===this.buffer.I?(this.Gf=a?0:1,this.Ja.gain.value=C*this.volume*this.Gf):this.e.muted!==!!a&&(this.e.muted=!!a)}};u.prototype.Zt=function(){this.xf=!0;this.ci(this.xf||this.Kg)};u.prototype.Xo=function(a){this.Kg=!!a;this.ci(this.xf||this.Kg)};u.prototype.zp=function(){var a=this.playbackRate;this.Ne&&(a*=z.Zf);switch(this.I){case 0:this.e.playbackRate!==a&&
(this.e.playbackRate=a);break;case 1:1===this.buffer.I?this.e.playbackRate.value!==a&&(this.e.playbackRate.value=a):this.e.playbackRate!==a&&(this.e.playbackRate=a)}};u.prototype.au=function(b){switch(this.I){case 0:b?this.tf()?(this.e.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.e.play();break;case 1:b?this.tf()?(1===this.buffer.I?(this.Gb=this.Jk(),this.ad&&(this.Gb%=this.Ge()),a(this.e)):this.e.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&(1===this.buffer.I?(this.e=v.createBufferSource(),this.e.buffer=
this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.ad,this.Ja.gain.value=C*this.volume*this.Gf,this.startTime=(this.Ne?z.hc.Z:z.kd.Z)-this.Gb,c(this.e,this.Gb,this.Ge())):this.e.play());break;case 2:b?this.tf()?(this.e.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.e.play()}};T.Ea=function(a){this.type=a;z=this.b=a.b;J=this;this.ob=null;this.Sg=-600;!(this.b.Ei||this.b.yi&&(this.b.Gg||this.b.Ai))||this.b.Hg||this.b.da||this.b.Zk||(La=!0);v=null;"undefined"!==typeof AudioContext?(F=1,v=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(F=1,v=new webkitAudioContext);(this.b.Ei&&1===F||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&v&&(a=v.createBuffer(1,1,22050),b=v.createBufferSource(),b.buffer=a,b.connect(v.destination),l(b),lc=!0);if(La){if(!M)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.Zb||c.wc||c.e.play();Ma.length=0}},!0);1!==F&&(this.b.vc&&"undefined"!==typeof window.Media?F=2:this.b.sf&&(F=3));2===F&&(Y=location.href,a=Y.lastIndexOf("/"),-1<a&&(Y=Y.substr(0,a+1)),
Y=Y.replace("file://",""));if(this.b.En&&this.b.Ys&&"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.Qd(this);else{if(this.b.bb)D=this.b.yi;else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){D=!1}this.b.fm(this)}};var la=T.Ea.prototype;la.ja=function(){this.b.gf=this;E=this.Da[0];this.Kd=this.Da[1];this.Ct=0!==this.Da[2];ka=this.Da[3];K=this.Da[4];this.Sg=-this.Da[5];
pa=this.Da[6];ga=this.Da[7];sa=this.Da[8];this.ob=new e;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===F&&("undefined"!==typeof v.listener.dopplerFactor&&(v.listener.dopplerFactor=0),v.listener.setPosition(a/2,b/2,this.Sg),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){da&&da.disconnect();qb=b.toLowerCase();da=v.createMediaStreamSource(a);da.connect(n(qb))});this.b.Oq(function(a){J.yt(a)});var c=this;this.b.Mq(function(a){c.qt(a)})};la.qt=function(a){var b,
c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.za&&d.za.C===a&&(d.za.C=null,d.bd&&d.tf()&&d.ad&&d.stop());this.ob.C===a&&(this.ob.C=null)};la.Wb=function(){var a={silent:M,masterVolume:C,listenerZ:this.Sg,listenerUid:this.ob.vi()?this.ob.C.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,k;c=0;for(d=L.length;c<d;c++)e=L[c],!e.tf()||3===this.Kd||e.Lc&&1===this.Kd||!e.Lc&&2===this.Kd||(f=e.Jk(),e.ad&&(f%=e.Ge()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Lc,playbackTime:f,volume:e.volume,looping:e.ad,
muted:e.xf,playbackRate:e.playbackRate,paused:e.wc,resume_position:e.Gb},e.bd&&(f.pan={},k=f.pan,e.za&&e.za.vi()?k.objUid=e.za.C.uid:(k.x=e.Co,k.y=e.Do,k.a=e.yo),k.ia=e.zo,k.oa=e.Ao,k.og=e.Bo),b.push(f));b=a.effects;for(g in R)if(R.hasOwnProperty(g)){e=[];c=0;for(d=R[g].length;c<d;c++)e.push({type:R[g][c].type,params:R[g][c].Nc});b[g]=e}return a};var Na=[];la.xc=function(a){var c=a.silent;C=a.masterVolume;this.Sg=a.listenerZ;this.ob.vh(null);var d=a.listenerUid;-1!==d&&(this.ob.Ni=d,Na.push(this.ob));
var d=a.playing,g,l,p,u,n,r,O,z,B,v,Z;if(3!==this.Kd)for(g=0,l=L.length;g<l;g++)B=L[g],B.Lc&&1===this.Kd||(B.Lc||2!==this.Kd)&&B.stop();for(n in R)if(R.hasOwnProperty(n))for(g=0,l=R[n].length;g<l;g++)R[n][g].remove();Ua(R);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(r=a.effects[n],g=0,l=r.length;g<l;g++)switch(p=r[g].type,v=r[g].params,p){case "filter":y(n,new b(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":y(n,new x(v[0],v[1],v[2]));break;case "convolve":p=v[2];B=this.li(p,!1);B.W?
p=new s(B.W,v[0],v[1],p):(p=new s(null,v[0],v[1],p),B.qo=v[0],B.Vh=p);y(n,p);break;case "flanger":y(n,new f(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":y(n,new h(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":y(n,new t(v[0]));break;case "tremolo":y(n,new k(v[0],v[1]));break;case "ringmod":y(n,new m(v[0],v[1]));break;case "distortion":y(n,new w(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":y(n,new A(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":y(n,new q(v[0],v[1]))}g=0;for(l=d.length;g<
l;g++)3===this.Kd||(a=d[g],p=a.buffersrc,u=a.is_music,n=a.tag,r=a.playbackTime,O=a.looping,z=a.volume,Z=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,u&&1===this.Kd)||!u&&2===this.Kd||((B=this.ln(p,n,u,O,z))?(B.Gb=a.resume_position,B.Vl(!!v),B.play(O,z,r),B.zp(),B.ku(),B.ci(B.xf||B.Kg),a.paused&&B.pause(),a.muted&&B.Zt(),B.ci(B.xf||B.Kg),v&&(-1!==Z?(B.za=B.za||new e,B.za.Ni=Z,Na.push(B.za)):B.Ul(v.x,v.y,v.a,v.ia,v.oa,v.og))):(B=this.li(p,u),B.oj=r,B.cj=a.paused,v&&(-1!==Z?B.Lf.push({so:Z,Sk:v.ia,
ul:v.oa,yl:v.og,lp:n}):B.Lf.push({x:v.x,y:v.y,Iq:v.a,Sk:v.ia,ul:v.oa,yl:v.og,lp:n}))));if(c&&!M){g=0;for(l=L.length;g<l;g++)L[g].Xo(!0);M=!0}else if(!c&&M){g=0;for(l=L.length;g<l;g++)L[g].Xo(!1);M=!1}};la.ld=function(){var a,b,c,e;a=0;for(b=Na.length;a<b;a++)c=Na[a],e=this.b.pi(c.Ni),c.vh(e),c.Ni=-1,e&&(H=e.x,G=e.y);Na.length=0};la.yt=function(a){if(!this.Ct){!a&&v&&v.resume&&v.resume();var b,c;b=0;for(c=L.length;b<c;b++)L[b].au(a);a&&v&&v.suspend&&v.suspend()}};la.Za=function(){var a=this.b.Ce,b,
c,e;b=0;for(c=L.length;b<c;b++)e=L[b],e.Za(a),0===e.I||3===e.I||e.$c||e.Zb||!e.Ie()||(e.Zb=!0,B=e.tag,z.trigger(hc.prototype.i.Nj,J)),0!==E&&e.zp();var d,f;for(d in R)if(R.hasOwnProperty(d))for(e=R[d],b=0,c=e.length;b<c;b++)f=e[b],f.Za&&f.Za();1===F&&this.ob.vi()&&(this.ob.Za(a),H=this.ob.C.x,G=this.ob.C.y,v.listener.setPosition(this.ob.C.x,this.ob.C.y,this.Sg),v.listener.setVelocity(this.ob.Lk(),this.ob.Mk(),0))};var Oa=[];la.$t=function(a){var b,c,e,d,f,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],
d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&D||!f&&!D)Oa.push({filename:d,size:e,C:null}),g+=e;return g};la.du=function(){var a,b,c,e;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],e=this.b.xk+c.filename,c.C=this.li(e,!1)};la.us=function(){var a=0,b,c,e;b=0;for(c=Oa.length;b<c;++b)e=Oa[b],e.C.Xs()||e.C.Os()||this.b.da||this.b.Ai?a+=e.size:e.C.Dn()&&(a+=Math.floor(e.size/2));return a};la.li=function(a,b){var c,e,d,f=null;c=0;for(e=ua.length;c<e;c++)if(d=ua[c],d.src===a){f=d;break}f||(f=new p(a,
b),ua.push(f));return f};la.ln=function(a,b,c,e,d){var f,g,k;f=0;for(g=L.length;f<g;f++)if(k=L[f],k.src===a&&(k.Wq()||c))return k.tag=b,k;a=this.li(a,c);if(!a.W)return"<preload>"!==b&&(a.dj=b,a.ol=e,a.tm=d),null;k=new u(a,b);L.push(k);return k};var Ga=[];O.prototype.Nj=function(a){return gb(B,a)};T.i=new O;Z.prototype.Play=function(a,b,c,e){!M&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),P=this.ln(this.b.xk+a[0]+(D?".ogg":".m4a"),e,a[1],0!==b,c))&&(P.Vl(!1),P.play(0!==b,c))};T.ga=new Z;T.Qb=new function(){}})();
function ic(g){this.b=g}
(function(){function g(){}var n=ic.prototype;n.gb=function(d){this.Ba=d;this.b=d.b};n.gb.prototype.ja=function(){};n.Ea=function(d){this.type=d;this.b=d.b;this.fl=Array(256);this.Ij=Array(256);this.re=0};var d=n.Ea.prototype;d.ja=function(){var d=this;this.b.da||(jQuery(document).keydown(function(c){d.tt(c)}),jQuery(document).keyup(function(c){d.ut(c)}))};var r=[32,33,34,35,36,37,38,39,40,44];d.tt=function(d){var c=!1;window!=window.top&&-1<r.indexOf(d.which)&&(d.preventDefault(),c=!0,d.stopPropagation());
if(this.fl[d.which])this.Ij[d.which]&&!c&&d.preventDefault();else{this.fl[d.which]=!0;this.re=d.which;this.b.ha=!0;this.b.trigger(ic.prototype.i.aq,this);var a=this.b.trigger(ic.prototype.i.mq,this),b=this.b.trigger(ic.prototype.i.nq,this);this.b.ha=!1;if(a||b)this.Ij[d.which]=!0,c||d.preventDefault()}};d.ut=function(d){this.fl[d.which]=!1;this.re=d.which;this.b.ha=!0;this.b.trigger(ic.prototype.i.bq,this);var c=this.b.trigger(ic.prototype.i.pq,this),a=this.b.trigger(ic.prototype.i.oq,this);this.b.ha=
!1;if(c||a||this.Ij[d.which])this.Ij[d.which]=!0,d.preventDefault()};d.Wb=function(){return{triggerKey:this.re}};d.xc=function(d){this.re=d.triggerKey};g.prototype.mq=function(d){return d===this.re};g.prototype.aq=function(){return!0};g.prototype.bq=function(){return!0};g.prototype.pq=function(d){return d===this.re};g.prototype.nq=function(d){return d===this.re};g.prototype.oq=function(d){return d===this.re};n.i=new g;n.ga=new function(){};n.Qb=new function(){}})();function jc(g){this.b=g}
(function(){function g(){}function n(){}var d=jc.prototype;d.gb=function(c){this.Ba=c;this.b=c.b};d.gb.prototype.ja=function(){};d.Ea=function(c){this.type=c;this.b=c.b;this.Qh=Array(4);this.op=this.Dj=this.$f=this.Dd=this.Cd=0;this.Pk=!1};var r=d.Ea.prototype;r.ja=function(){var c=this;if(!this.b.da){jQuery(document).mousemove(function(a){c.hh(a)});jQuery(document).mousedown(function(a){c.gh(a)});jQuery(document).mouseup(function(a){c.ih(a)});jQuery(document).dblclick(function(a){c.ot(a)});var a=
function(a){c.At(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};r.hh=function(c){var a=this.b.da?l:jQuery(this.b.canvas).offset();this.Cd=c.pageX-a.left;this.Dd=c.pageY-a.top};r.mo=function(){return 0<this.b.lb?!0:0<=this.Cd&&0<=this.Dd&&this.Cd<this.b.width&&this.Dd<this.b.height};r.gh=function(c){this.mo()&&(this.b.qf&&!this.b.Ad&&c.preventDefault(),this.Qh[c.which]=!0,this.b.ha=!0,this.b.trigger(jc.prototype.i.xm,this),this.$f=
c.which-1,this.Dj=0,this.b.trigger(jc.prototype.i.ym,this),this.b.trigger(jc.prototype.i.Pj,this),this.b.ha=!1)};r.ih=function(c){this.Qh[c.which]&&(this.b.qf&&!this.b.Ad&&c.preventDefault(),this.b.qf=!0,this.Qh[c.which]=!1,this.b.ha=!0,this.$f=c.which-1,this.b.trigger(jc.prototype.i.sq,this),this.b.ha=!1)};r.ot=function(c){this.mo()&&(c.preventDefault(),this.b.ha=!0,this.$f=c.which-1,this.Dj=1,this.b.trigger(jc.prototype.i.ym,this),this.b.trigger(jc.prototype.i.Pj,this),this.b.ha=!1)};r.At=function(c){this.op=
0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:0)?0:1;this.Pk=!1;this.b.ha=!0;this.b.trigger(jc.prototype.i.vq,this);this.b.ha=!1;this.Pk&&hb(c)&&c.preventDefault()};g.prototype.ym=function(c,a){return c===this.$f&&a===this.Dj};g.prototype.xm=function(){return!0};g.prototype.Op=function(c){return this.Qh[c+1]};g.prototype.sq=function(c){return c===this.$f};g.prototype.Rp=function(c){var a=this.b.ni();return Sa(this.b.Xf(c,this.Cd,this.Dd,a.rf),a.rf)};g.prototype.Pj=function(c,a,b){return c!==this.$f||
a!==this.Dj?!1:this.b.Xf(b,this.Cd,this.Dd,!1)};g.prototype.vq=function(c){this.Pk=!0;return c===this.op};d.i=new g;d.ga=new function(){};n.prototype.Em=function(c,a){var b,d,g,f,h;fa(a)?(b=this.b.wd(0),d=b.scale,g=b.kb,f=b.Db,h=b.j,b.scale=1,b.kb=1,b.Db=1,b.j=0,c.q(b.na(this.Cd,this.Dd,!0)),b.scale=d,b.kb=g,b.Db=f,b.j=h):(b=ha(a)?this.b.wd(a):this.b.wg(a))?c.q(b.na(this.Cd,this.Dd,!0)):c.q(0)};n.prototype.Fm=function(c,a){var b,d,g,f,h;fa(a)?(b=this.b.wd(0),d=b.scale,g=b.kb,f=b.Eb,h=b.j,b.scale=
1,b.kb=1,b.Eb=1,b.j=0,c.q(b.na(this.Cd,this.Dd,!1)),b.scale=d,b.kb=g,b.Eb=f,b.j=h):(b=ha(a)?this.b.wd(a):this.b.wg(a))?c.q(b.na(this.Cd,this.Dd,!1)):c.q(0)};d.Qb=new n})();function kc(g){this.b=g}
(function(){function g(d){this.ka=d;this.Ta=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.Td=this.pf=this.size=this.si=0}var n=kc.prototype;n.gb=function(d){this.Ba=d;this.b=d.b};var d=n.gb.prototype;d.ja=function(){this.A||(this.H=new Image,this.H.jk=this.Aj,this.N=null,this.b.um(this.H,this.zj))};d.Vi=function(){this.A||(this.N=null)};d.Wi=function(){this.A||!this.c.length||this.N||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Dh))};d.Ug=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Cf(this.H,
!0,this.b.S,this.Dh))};d.Gj=function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};d.hj=function(d){d.drawImage(this.H,0,0)};g.prototype.init=function(){var d=this.ka;this.x=d.x-d.Lj/2+Math.random()*d.Lj;this.y=d.y-d.Mj/2+Math.random()*d.Mj;this.speed=d.Wk-d.tj/2+Math.random()*d.tj;this.j=d.j-d.uj/2+Math.random()*d.uj;this.opacity=d.Uk;this.size=d.Vk-d.rj/2+Math.random()*d.rj;this.si=d.Ok-d.ti/2+Math.random()*d.ti;this.Td=this.pf=0};g.prototype.Za=function(d){var c=
this.ka;this.x+=Math.cos(this.j)*this.speed*d;this.y+=Math.sin(this.j)*this.speed*d;this.y+=this.pf*d;this.speed+=c.Tj*d;this.size+=this.si*d;this.pf+=c.Dk*d;this.Td+=d;1>this.size?this.Ta=!1:(0!==c.Pg&&(this.j+=Math.random()*c.Pg*d-c.Pg*d/2),0!==c.Rg&&(this.speed+=Math.random()*c.Rg*d-c.Rg*d/2),0!==c.Qg&&(this.opacity+=Math.random()*c.Qg*d-c.Qg*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.kf&&this.Td>=c.timeout&&(this.Ta=!1),2===c.kf&&0>=this.speed&&(this.Ta=!1))};g.prototype.Ic=
function(d){var c=this.ka.opacity*this.opacity;if(0!==c){0===this.ka.kf&&(c*=1-this.Td/this.ka.timeout);d.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ka.b.dd&&(c=c+.5|0,a=a+.5|0);d.drawImage(this.ka.type.H,c,a,this.size,this.size)}};g.prototype.Pb=function(d){var c=this.ka.opacity*this.opacity;0===this.ka.kf&&(c*=1-this.Td/this.ka.timeout);var a=this.size,b=a*this.ka.Go,g=this.x-a/2,n=this.y-a/2;this.ka.b.dd&&(g=g+.5|0,n=n+.5|0);1>b||0===c||(b<d.jt||b>d.ql?(d.Ye(c),d.sh(g,n,g+
a,n,g+a,n+a,g,n+a)):d.Dt(this.x,this.y,b,c))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};n.Ea=function(d){this.type=d;this.b=d.b};var d=n.Ea.prototype,r=[];d.ja=function(){var d=this.Da;this.kj=d[0];this.uj=S(d[1]);this.Uf=d[2];this.Yl=!0;this.Wk=d[3];this.Vk=d[4];this.Uk=d[5]/100;this.Ok=d[6];this.Lj=d[7];this.Mj=d[8];this.tj=
d[9];this.rj=d[10];this.ti=d[11];this.Tj=d[12];this.Dk=d[13];this.Pg=d[14];this.Rg=d[15];this.Qg=d[16];this.kf=d[17];this.timeout=d[18];this.We=0;this.Go=1;this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;this.Pq(function(c){c.ya.set(c.$i,c.bj,c.aj,c.Zi);c.Mb.Tf(c.ya);c.Ph=!1;c.pm()});this.Pc||(this.qb=[]);this.b.fm(this);this.type.Ug();if(1===this.Uf)for(d=0;d<this.kj;d++)this.Vj().opacity=0;this.ji=!0};d.Wb=function(){var d={r:this.kj,sc:this.uj,st:this.Uf,s:this.Yl,isp:this.Wk,isz:this.Vk,
io:this.Uk,gr:this.Ok,xr:this.Lj,yr:this.Mj,spr:this.tj,szr:this.rj,grnd:this.ti,acc:this.Tj,g:this.Dk,lar:this.Pg,lsr:this.Rg,lor:this.Qg,dm:this.kf,to:this.timeout,pcc:this.We,ft:this.ji,p:[]},c,a,b,g=d.p;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],g.push([b.x,b.y,b.speed,b.j,b.opacity,b.si,b.size,b.pf,b.Td]);return d};d.xc=function(d){this.kj=d.r;this.uj=d.sc;this.Uf=d.st;this.Yl=d.s;this.Wk=d.isp;this.Vk=d.isz;this.Uk=d.io;this.Ok=d.gr;this.Lj=d.xr;this.Mj=d.yr;this.tj=d.spr;this.rj=d.szr;this.ti=
d.grnd;this.Tj=d.acc;this.Dk=d.g;this.Pg=d.lar;this.Rg=d.lsr;this.Qg=d.lor;this.kf=d.dm;this.timeout=d.to;this.We=d.pcc;this.ji=d.ft;r.push.apply(r,this.qb);this.qb.length=0;var c,a,b,g=d.p;d=0;for(c=g.length;d<c;d++)a=this.Vj(),b=g[d],a.x=b[0],a.y=b[1],a.speed=b[2],a.j=b[3],a.opacity=b[4],a.si=b[5],a.size=b[6],a.pf=b[7],a.Td=b[8]};d.fh=function(){r.push.apply(r,this.qb);this.qb.length=0};d.Vj=function(){var d;r.length?(d=r.pop(),d.ka=this):d=new g(this);this.qb.push(d);d.Ta=!0;return d};d.Za=function(){var d=
this.b.Fk(this),c,a,b,g;if(0===this.Uf&&this.Yl)for(this.We+=d*this.kj,a=Q(this.We),this.We-=a,c=0;c<a;c++)b=this.Vj(),b.init();this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;g=c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],this.qb[g]=b,this.b.ea=!0,1===this.Uf&&this.ji&&b.init(),b.Za(d),b.Ta?(b.left()<this.$i&&(this.$i=b.left()),b.right()>this.aj&&(this.aj=b.right()),b.top()<this.bj&&(this.bj=b.top()),b.bottom()>this.Zi&&(this.Zi=b.bottom()),g++):r.push(b);this.qb.length=g;this.qa();
this.ji=!1;1===this.Uf&&0===this.qb.length&&this.b.Qd(this)};d.Ic=function(d){var c,a,b,g=this.d;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.Ic(d)};d.Pb=function(d){this.Go=this.d.rc();d.Xb(this.type.N);var c,a,b,g=this.d;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.Pb(d)};n.i=new function(){};n.ga=new function(){};n.Qb=new function(){}})();
function W(g){this.b=g}
(function(){function g(){if(0===this.mk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Vf?b.drawImage(this.H,this.If,this.Jf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.mk=a.toDataURL("image/png")}return this.mk}function n(){}function d(){}var r=W.prototype;r.gb=function(a){this.Ba=a;this.b=a.b};var l=r.gb.prototype;l.ja=function(){if(!this.A){var a,b,c,d,f,h,e,l,n;this.Ec=
[];this.Cg=!1;a=0;for(b=this.Lb.length;a<b;a++){f=this.Lb[a];e={};e.name=f[0];e.speed=f[1];e.loop=f[2];e.Ol=f[3];e.lj=f[4];e.Ho=f[5];e.O=f[6];e.frames=[];c=0;for(d=f[7].length;c<d;c++)h=f[7][c],l={},l.zj=h[0],l.Aj=h[1],l.If=h[2],l.Jf=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.Ab=h[7],l.Bb=h[8],l.Tk=h[9],l.ej=h[10],l.Io=h[11],l.Vf=0!==l.width,l.mk="",l.wv=g,n={left:0,top:0,right:1,bottom:1},l.Wl=n,l.N=null,(n=this.b.es(h[0]))?l.H=n:(l.H=new Image,l.H.$q=h[0],l.H.jk=h[1],l.H.Vq=null,this.b.um(l.H,
h[0])),e.frames.push(l),this.Ec.push(l);this.Lb[a]=e}}};l.yp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Yh=c.mc.N};l.Vi=function(){if(!this.A){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],c.H.Vq=null,c.N=null;this.Cg=!1;this.yp()}};l.Wi=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],c.N=this.b.n.Cf(c.H,!1,this.b.S,c.Io);this.yp()}};l.Ug=function(){if(!this.A&&!this.Cg&&this.b.n){var a,b,c;a=0;for(b=this.Ec.length;a<
b;++a)c=this.Ec[a],c.N=this.b.n.Cf(c.H,!1,this.b.S,c.Io);this.Cg=!0}};l.Gj=function(){if(!this.A&&!this.c.length&&this.Cg){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],this.b.n.deleteTexture(c.N),c.N=null;this.Cg=!1}};var c=[];l.hj=function(a){var b,d,f;b=c.length=0;for(d=this.Ec.length;b<d;++b)f=this.Ec[b].H,-1===c.indexOf(f)&&(a.drawImage(f,0,0),c.push(f))};r.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Lb[0].frames[0].ej;this.Pc?this.V.xh(a):this.V=new ab(a)};var a=r.Ea.prototype;
a.ja=function(){this.visible=0===this.Da[0];this.Gc=0!==this.Da[3];1===this.type.Lb.length&&1===this.type.Lb[0].frames.length||0===this.type.Lb[0].speed||this.b.fm(this);this.ra=this.kn(this.Da[1])||this.type.Lb[0];this.u=this.Da[2];0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);var a=this.ra.frames[this.u];this.V.xh(a.ej);this.Ab=a.Ab;this.Bb=a.Bb;this.rg=this.ra.speed;this.Pc?this.Wc.reset():this.Wc=new Za;this.vd=this.Wc.Z;this.ue=!0;this.md=0;this.te=!0;this.fk=
this.Mm="";this.Xq=0;this.ek=-1;this.type.Ug();var b,c,d,f,g,e,h,a=0;for(b=this.type.Lb.length;a<b;a++)for(f=this.type.Lb[a],c=0,d=f.frames.length;c<d;c++)g=f.frames[c],0===g.width&&(g.width=g.H.width,g.height=g.H.height),g.Vf&&(h=g.H,e=g.Wl,e.left=g.If/h.width,e.top=g.Jf/h.height,e.right=(g.If+g.width)/h.width,e.bottom=(g.Jf+g.height)/h.height,0===g.If&&0===g.Jf&&g.width===h.width&&g.height===h.height&&(g.Vf=!1));this.mc=this.ra.frames[this.u];this.Yh=this.mc.N};a.Wb=function(){var a={a:this.ra.O,
f:this.u,cas:this.rg,fs:this.vd,ar:this.md,at:this.Wc.Z};this.ue||(a.ap=this.ue);this.te||(a.af=this.te);return a};a.xc=function(a){var b=this.ls(a.a);b&&(this.ra=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);this.rg=a.cas;this.vd=a.fs;this.md=a.ar;this.Wc.reset();this.Wc.Z=a.at;this.ue=a.hasOwnProperty("ap")?a.ap:!0;this.te=a.hasOwnProperty("af")?a.af:!0;this.mc=this.ra.frames[this.u];this.Yh=this.mc.N;this.V.xh(this.mc.ej);this.Ab=this.mc.Ab;
this.Bb=this.mc.Bb};a.Yj=function(a){this.u=a?0:this.ra.frames.length-1;this.ue=!1;this.Mm=this.ra.name;this.b.trigger(W.prototype.i.$p,this);this.b.trigger(W.prototype.i.Zp,this);this.md=0};a.yv=function(){return this.Wc.Z};a.Za=function(){this.Wc.add(this.b.Fk(this));this.fk.length&&this.fr();0<=this.ek&&this.hr();var a=this.Wc.Z,b=this.ra,c=b.frames[this.u],d=c.duration/this.rg;this.ue&&a>=this.vd+d&&(this.te?this.u++:this.u--,this.vd+=d,this.u>=b.frames.length&&(b.Ho?(this.te=!1,this.u=b.frames.length-
2):b.loop?this.u=b.lj:(this.md++,this.md>=b.Ol?this.Yj(!1):this.u=b.lj)),0>this.u&&(b.Ho?(this.u=1,this.te=!0,b.loop||(this.md++,this.md>=b.Ol&&this.Yj(!0))):b.loop?this.u=b.lj:(this.md++,this.md>=b.Ol?this.Yj(!0):this.u=b.lj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.vd+b.frames[this.u].duration/this.rg&&(this.vd=a),a=b.frames[this.u],this.ef(c,a),this.b.ea=!0)};a.kn=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],gb(d.name,a))return d;
return null};a.ls=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],d.O===a)return d;return null};a.fr=function(){var a=this.ra.frames[this.u],b=this.kn(this.fk);this.fk="";!b||gb(b.name,this.ra.name)&&this.ue||(this.ra=b,this.rg=b.speed,0>this.u&&(this.u=0),this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1),1===this.Xq&&(this.u=0),this.ue=!0,this.vd=this.Wc.Z,this.te=!0,this.ef(a,this.ra.frames[this.u]),this.b.ea=!0)};a.hr=function(){var a=this.ra.frames[this.u],
b=this.u;this.u=Q(this.ek);0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);b!==this.u&&(this.ef(a,this.ra.frames[this.u]),this.vd=this.Wc.Z,this.b.ea=!0);this.ek=-1};a.ef=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Ab=b.Ab;this.Bb=b.Bb;this.V.xh(b.ej);this.qa();this.mc=b;this.Yh=b.N;c=0;for(d=this.F.length;c<d;c++)f=this.F[c],f.xt&&f.xt(a,b);this.b.trigger(W.prototype.i.ef,this)};a.Ic=function(a){a.globalAlpha=
this.opacity;var b=this.mc,c=b.Vf,d=b.H,f=this.x,g=this.y,e=this.width,h=this.height;if(0===this.j&&0<=e&&0<=h)f-=this.Ab*e,g-=this.Bb*h,this.b.dd&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,g,e,h):a.drawImage(d,f,g,e,h);else{this.b.dd&&(f=Math.round(f),g=Math.round(g));a.save();var l=0<e?1:-1,n=0<h?1:-1;a.translate(f,g);1===l&&1===n||a.scale(l,n);a.rotate(this.j*l*n);f=0-this.Ab*ma(e);g=0-this.Bb*ma(h);c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,g,ma(e),ma(h)):
a.drawImage(d,f,g,ma(e),ma(h));a.restore()}};a.Pb=function(a){a.Xb(this.Yh);a.Ye(this.opacity);var b=this.mc,c=this.Mb;if(this.b.dd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Vf?a.Hd(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f,b.Wl):a.sh(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f)}else b.Vf?a.Hd(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub,b.Wl):a.sh(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub)};a.qs=function(a){var b=this.mc,c,d;c=0;for(d=b.Tk.length;c<d;c++)if(gb(a,
b.Tk[c][0]))return c;return-1};a.Ik=function(a,b){var c=this.mc,d=c.Tk,f;f=N(a)?this.qs(a):a-1;f=Q(f);if(0>f||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Ab)*this.width,d=d[f][2],d=(d-c.Bb)*this.height,c=Math.cos(this.j);f=Math.sin(this.j);var e=g*c-d*f,d=d*c+g*f,g=e+this.x,d=d+this.y;return b?g:d};var b=null,x=new ba,s=!1,f=[],h=new ta(0,0,0,0);l.finish=function(a){if(s){if(a){var c=this.b.mb().Ob.Mc;a=b.ba();var d=x.Uc(),f,g;if(a.fa){a.fa=!1;a.c.length=d.length;f=0;for(g=d.length;f<g;f++)a.c[f]=
d[f];if(c)for(f=a.P.length=0,g=b.c.length;f<g;f++)d=b.c[f],x.contains(d)||a.P.push(d)}else if(c)for(c=a.c.length,a.c.length=c+d.length,f=0,g=d.length;f<g;f++)a.c[c+f]=d[f],Ba(a.P,d[f]);else ya(a.c,d);b.nd()}x.clear();s=!1}};n.prototype.Sp=function(a){if(a){var c=!1,d,g,l,n=this.b.ni(),e=n.type,n=n.rf;d=a.ba();g=this.b.mb().Ob.Mc;var p;d.fa?(this.ma(),h.pg(this.ya),h.offset(0,0),this.b.ns(this.d,a,h,f),p=f):p=g?d.P:d.c;b=a;s=e!==a&&!n;d=0;for(g=p.length;d<g;d++)if(l=p[d],this.b.fu(this,l)){c=!0;if(n)break;
e!==a&&x.add(l)}f.length=0;a=c}else a=!1;return a};n.prototype.Zp=function(a){return gb(this.Mm,a)};n.prototype.$p=function(){return!0};n.prototype.ef=function(){return!0};n.prototype.Qp=function(){return this.Gc};r.i=new n;d.prototype.Aq=function(a){this.Gc!==(0!==a)&&((this.Gc=0!==a)?this.qa():(this.kc.right>=this.kc.left&&this.type.mg.update(this,this.kc,null),this.kc.set(0,0,-1,-1)))};r.ga=new d;r.Qb=new function(){}})();function mc(g){this.b=g}
(function(){var g=mc.prototype;g.gb=function(d){this.Ba=d;this.b=d.b};var n=g.gb.prototype;n.ja=function(){this.A||(this.H=new Image,this.H.jk=this.Aj,this.b.um(this.H,this.zj),this.N=this.pattern=null)};n.Vi=function(){this.A||(this.N=null)};n.Wi=function(){if(!this.A&&this.c.length){this.N||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Dh));var d,g;d=0;for(g=this.c.length;d<g;d++)this.c[d].N=this.N}};n.Ug=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Dh))};n.Gj=
function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};n.hj=function(d){d.drawImage(this.H,0,0)};g.Ea=function(d){this.type=d;this.b=d.b};n=g.Ea.prototype;n.ja=function(){this.visible=0===this.Da[0];this.th=new ta(0,0,0,0);this.wn=!1;this.H=this.type.H;this.b.n?(this.type.Ug(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.aa.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};n.ld=function(){this.wn=!1;this.H=this.type.H};n.fh=
function(){this.b.n&&this.wn&&this.N&&(this.b.n.deleteTexture(this.N),this.N=null)};n.Ic=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,l=this.y;this.b.dd&&(g=Math.round(g),l=Math.round(l));var c=-(this.Ab*this.width),a=-(this.Bb*this.height),b=c%this.H.width,n=a%this.H.height;0>b&&(b+=this.H.width);0>n&&(n+=this.H.height);d.translate(g,l);d.rotate(this.j);d.translate(b,n);d.fillRect(c-b,a-n,this.width,this.height);d.restore()};n.Pb=function(d){d.Xb(this.N);
d.Ye(this.opacity);var g=this.th;g.right=this.width/this.H.width;g.bottom=this.height/this.H.height;var l=this.Mb;if(this.b.dd){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Hd(l.Ra+c,l.Sa+a,l.Hb+c,l.Ib+a,l.wb+c,l.xb+a,l.tb+c,l.ub+a,g)}else d.Hd(l.Ra,l.Sa,l.Hb,l.Ib,l.wb,l.xb,l.tb,l.ub,g)};g.i=new function(){};g.ga=new function(){};g.Qb=new function(){}})();function X(g){this.b=g}
(function(){function g(a){s=a.x;f=a.y;h=a.z}function n(a){t=a.x;k=a.y;m=a.z}function d(a,b,c,d){var e;e=w.length?w.pop():new r;e.init(a,b,c,d);return e}function r(){this.zh=this.id=this.y=this.x=this.xj=this.wj=this.hl=this.time=this.$l=0;this.Fh=this.Ej=!1}function l(){}function c(){}var a=X.prototype;a.gb=function(a){this.Ba=a;this.b=a.b};a.gb.prototype.ja=function(){};a.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.sl=!1};var b=a.Ea.prototype,x={left:0,top:0};b.vg=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var s=0,f=0,h=0,t=0,k=0,m=0,w=[];r.prototype.init=function(a,b,c,d){var e=Va();this.$l=this.hl=this.time=e;this.wj=a;this.xj=b;this.x=a;this.y=b;this.id=c;this.zh=d;this.Fh=this.Ej=!1};r.prototype.update=function(a,b,c){this.hl=this.time;this.time=a;this.x=b;this.y=c;!this.Fh&&15<=Ra(this.wj,this.xj,this.x,this.y)&&(this.Fh=!0)};r.prototype.ht=function(a,b){!this.Ej&&500<=Va()-this.$l&&!this.Fh&&15>Ra(this.wj,this.xj,
this.x,this.y)&&(this.Ej=!0,a.hd=this.zh,a.ag=this.id,a.of=b,a.b.trigger(X.prototype.i.kq,a),a.qd=this.x,a.rd=this.y,a.b.trigger(X.prototype.i.lq,a),a.of=0)};var A=-1E3,q=-1E3,e=-1E4;r.prototype.jo=function(a,b){if(!this.Ej){var c=Va();333>=c-this.$l&&!this.Fh&&15>Ra(this.wj,this.xj,this.x,this.y)&&(a.hd=this.zh,a.ag=this.id,a.of=b,666>=c-e&&25>Ra(A,q,this.x,this.y)?(a.b.trigger(X.prototype.i.gq,a),a.qd=this.x,a.rd=this.y,a.b.trigger(X.prototype.i.hq,a),q=A=-1E3,e=-1E4):(a.b.trigger(X.prototype.i.tq,
a),a.qd=this.x,a.rd=this.y,a.b.trigger(X.prototype.i.uq,a),A=this.x,q=this.y,e=c),a.of=0)}};b.ja=function(){this.Zs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.of=this.ag=this.hd=this.rd=this.qd=this.Im=this.Hm=this.Gm=this.Lq=this.Kq=this.Jq=this.nh=this.mh=this.lh=0;this.ou=0!==this.Da[0];var a=0<this.b.lb?document:this.b.canvas,b=document;this.b.bb?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.kh(a)},
!1),a.addEventListener("pointermove",function(a){c.jh(a)},!1),b.addEventListener("pointerup",function(a){c.Gd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Gd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.kh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.jh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Gd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Gd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Yi(a)},
!1),a.addEventListener("touchmove",function(a){c.Xi(a)},!1),b.addEventListener("touchend",function(a){c.Kf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Kf(a,!0)},!1));if(this.Zs){var d=function(a){a=a.reading;c.Gm=a.accelerationX;c.Hm=a.accelerationY;c.Im=a.accelerationZ},e=function(a){a=a.reading;c.lh=a.yawDegrees;c.mh=a.pitchDegrees;c.nh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.lh=a.alpha||
0;c.mh=a.beta||0;c.nh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Jq=a.accelerationIncludingGravity.x||0,c.Kq=a.accelerationIncludingGravity.y||0,c.Lq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Gm=a.acceleration.x||0,c.Hm=a.acceleration.y||0,c.Im=a.acceleration.z||0)},!1);this.ou&&!this.b.da&&(jQuery(document).mousemove(function(a){c.hh(a)}),jQuery(document).mousedown(function(a){c.gh(a)}),jQuery(document).mouseup(function(a){c.ih(a)}));
this.b.sf&&!this.b.bb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.vc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(n,null,{frequency:40});this.b.gu(this)};b.jh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.vg(a.pointerId),c=Va();if(0<=b){var d=this.b.da?x:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.kh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&hb(a)&&a.preventDefault();var b=this.b.da?x:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Va();this.hd=this.touches.length;this.ag=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.hd));this.b.ha=!0;this.b.trigger(X.prototype.i.Cm,this);this.b.trigger(X.prototype.i.Dm,this);this.qd=c;this.rd=b;this.b.trigger(X.prototype.i.Sj,this);
this.b.ha=!1}};b.Gd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&hb(a)&&a.preventDefault();var c=this.vg(a.pointerId);this.hd=0<=c?this.touches[c].zh:-1;this.ag=0<=c?this.touches[c].id:-1;this.b.ha=!0;this.b.trigger(X.prototype.i.Bm,this);this.b.trigger(X.prototype.i.Rj,this);0<=c&&(b||this.touches[c].jo(this,c),100>w.length&&w.push(this.touches[c]),this.touches.splice(c,1));this.b.ha=!1}};b.Xi=function(a){a.preventDefault&&a.preventDefault();
var b=Va(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.vg(e.identifier),0<=f){var g=this.b.da?x:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};b.Yi=function(a){a.preventDefault&&hb(a)&&a.preventDefault();var b=this.b.da?x:jQuery(this.b.canvas).offset();Va();this.b.ha=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.vg(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-
b.top;this.hd=this.touches.length;this.ag=f.identifier;this.touches.push(d(g,h,f.identifier,this.hd));this.b.trigger(X.prototype.i.Cm,this);this.b.trigger(X.prototype.i.Dm,this);this.qd=g;this.rd=h;this.b.trigger(X.prototype.i.Sj,this)}this.b.ha=!1};b.Kf=function(a,b){a.preventDefault&&hb(a)&&a.preventDefault();this.b.ha=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.vg(e.identifier),0<=e&&(this.hd=this.touches[e].zh,this.ag=this.touches[e].id,this.b.trigger(X.prototype.i.Bm,
this),this.b.trigger(X.prototype.i.Rj,this),b||this.touches[e].jo(this,e),100>w.length&&w.push(this.touches[e]),this.touches.splice(e,1));this.b.ha=!1};b.tv=function(){return this.b.sf&&0===this.lh&&0!==h?90*h:this.b.vc&&0===this.lh&&0!==m?90*m:this.lh};b.uv=function(){return this.b.sf&&0===this.mh&&0!==f?-90*f:this.b.vc&&0===this.mh&&0!==k?90*k:this.mh};b.xv=function(){return this.b.sf&&0===this.nh&&0!==s?90*s:this.b.vc&&0===this.nh&&0!==t?90*t:this.nh};b.gh=function(a){a.preventDefault&&this.b.qf&&
!this.b.Ad&&a.preventDefault();this.Yi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.sl=!0};b.hh=function(a){this.sl&&this.Xi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ih=function(a){a.preventDefault&&this.b.qf&&!this.b.Ad&&a.preventDefault();this.b.qf=!0;this.Kf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.sl=!1};b.em=function(){var a,b,c,d=Va();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.hl=d),c.ht(this,
a)};l.prototype.Dm=function(){return!0};l.prototype.Rj=function(){return!0};l.prototype.Sj=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};var p=[];l.prototype.Tp=function(a){if(!a)return!1;var b=a.ba(),c=b.qc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.ma();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.na(e.x,e.y,!0),e=l.d.na(e.x,e.y,!1),l.$a(d,e)){p.push(l);break}}return p.length?(b.fa=!1,ya(b.c,p),a.nd(),p.length=0,!0):!1};l.prototype.Cm=function(a){a=Math.floor(a);
return a===this.hd};l.prototype.Bm=function(a){a=Math.floor(a);return a===this.hd};l.prototype.kq=function(){return!0};l.prototype.tq=function(){return!0};l.prototype.gq=function(){return!0};l.prototype.lq=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};l.prototype.uq=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};l.prototype.hq=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};a.i=new l;c.prototype.Em=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.q(0);else{var d,
e,f,g,h;fa(b)?(d=this.b.wd(0),e=d.scale,f=d.kb,g=d.Db,h=d.j,d.scale=1,d.kb=1,d.Db=1,d.j=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.kb=f,d.Db=g,d.j=h):(d=ha(b)?this.b.wd(b):this.b.wg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!0)):a.q(0)}};c.prototype.Fm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;fa(b)?(d=this.b.wd(0),e=d.scale,f=d.kb,g=d.Eb,h=d.j,d.scale=1,d.kb=1,d.Eb=1,d.j=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.kb=f,d.Eb=g,d.j=h):(d=ha(b)?this.b.wd(b):this.b.wg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!1)):a.q(0)}};a.Qb=new c})();
function nc(g){this.b=g;var n=this;this.b.da||(jQuery(document).mousemove(function(d){n.hh(d)}),jQuery(document).mousedown(function(d){n.gh(d)}),jQuery(document).mouseup(function(d){n.ih(d)}));g=0<this.b.lb?document:this.b.canvas;this.b.bb?g=window.Canvas:this.b.gc&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(d){n.kh(d)},!1),g.addEventListener("pointermove",function(d){n.jh(d)},!1),g.addEventListener("pointerup",function(d){n.Gd(d)},!1),g.addEventListener("pointercancel",
function(d){n.Gd(d)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(d){n.kh(d)},!1),g.addEventListener("MSPointerMove",function(d){n.jh(d)},!1),g.addEventListener("MSPointerUp",function(d){n.Gd(d)},!1),g.addEventListener("MSPointerCancel",function(d){n.Gd(d)},!1)):(g.addEventListener("touchstart",function(d){n.Yi(d)},!1),g.addEventListener("touchmove",function(d){n.Xi(d)},!1),g.addEventListener("touchend",function(d){n.Kf(d)},!1),g.addEventListener("touchcancel",
function(d){n.Kf(d)},!1))}
(function(){function g(a){var b,c;b=0;for(c=a.F.length;b<c;b++)if(a.F[b]instanceof r.Ea)return a.F[b];return null}function n(){}function d(){}var r=nc.prototype,l={left:0,top:0};r.gh=function(a){1===a.which&&this.zl("leftmouse",a.pageX,a.pageY)};r.hh=function(a){1===a.which&&this.Al("leftmouse",a.pageX,a.pageY)};r.ih=function(a){1===a.which&&this.Bl("leftmouse")};r.Yi=function(a){a.preventDefault&&hb(a)&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],
f=d.identifier,this.zl(f?f.toString():"<none>",d.pageX,d.pageY)};r.Xi=function(a){a.preventDefault&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],f=d.identifier,this.Al(f?f.toString():"<none>",d.pageX,d.pageY)};r.Kf=function(a){a.preventDefault&&hb(a)&&a.preventDefault();var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=d.identifier,this.Bl(d?d.toString():"<none>")};r.kh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&hb(a)&&a.preventDefault(),this.zl(a.pointerId.toString(),a.pageX,a.pageY))};r.jh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Al(a.pointerId.toString(),a.pageX,a.pageY))};r.Gd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&hb(a)&&a.preventDefault(),this.Bl(a.pointerId.toString()))};r.zl=function(a,b,c){var d=this.b.da?l:jQuery(this.b.canvas).offset();
b-=d.left;c-=d.top;var f,h,n,k,d=this.Hf.Uc(),m,r,A,q=null;m=0;for(r=d.length;m<r;m++)if(A=d[m],f=g(A),f.enabled&&!f.Zd&&(f=A.d.na(b,c,!0),h=A.d.na(b,c,!1),A.ma(),A.$a(f,h)))q?A.d.index>q.d.index?(q=A,n=f,k=h):A.d.index===q.d.index&&A.tc()>q.tc()&&(q=A,n=f,k=h):(q=A,n=f,k=h);q&&g(q).pt(a,n,k)};r.Al=function(a,b,c){var d=this.b.da?l:jQuery(this.b.canvas).offset();b-=d.left;c-=d.top;var f,h=this.Hf.Uc(),n,k,m;n=0;for(k=h.length;n<k;n++)f=h[n],m=g(f),!m.enabled||!m.Zd||m.Zd&&m.qk!==a||(d=f.d.na(b,c,
!0),f=f.d.na(b,c,!1),m.wt(d,f))};r.Bl=function(a){var b=this.Hf.Uc(),c,d,f;c=0;for(d=b.length;c<d;c++)f=b[c],f=g(f),f.Zd&&f.qk===a&&f.zt()};r.gb=function(a){this.behavior=a;this.b=a.b};r.gb.prototype.ja=function(){};r.Ea=function(a,b){this.type=a;this.behavior=a.behavior;this.Cb=b;this.b=a.b};var c=r.Ea.prototype;c.ja=function(){this.Zd=!1;this.an=this.$m=0;this.qk="<none>";this.Zj=this.Da[0];this.enabled=0!==this.Da[1]};c.Wb=function(){return{enabled:this.enabled}};c.xc=function(a){this.enabled=
a.enabled;this.Zd=!1};c.pt=function(a,b,c){this.$m=b-this.Cb.x;this.an=c-this.Cb.y;this.Zd=!0;this.qk=a;this.b.ha=!0;this.b.trigger(nc.prototype.i.iq,this.Cb);this.b.ha=!1};c.wt=function(a,b){var c=a-this.$m,d=b-this.an;if(0===this.Zj){if(this.Cb.x!==c||this.Cb.y!==d)this.Cb.x=c,this.Cb.y=d,this.Cb.qa()}else 1===this.Zj?this.Cb.x!==c&&(this.Cb.x=c,this.Cb.qa()):2===this.Zj&&this.Cb.y!==d&&(this.Cb.y=d,this.Cb.qa())};c.zt=function(){this.Zd=!1;this.b.ha=!0;this.b.trigger(nc.prototype.i.jq,this.Cb);
this.b.ha=!1};c.Za=function(){};n.prototype.iq=function(){return!0};n.prototype.jq=function(){return!0};r.i=new n;d.prototype.Bq=function(a){this.enabled=0!==a;this.enabled||(this.Zd=!1)};r.ga=new d;r.Qb=new function(){}})();
function gc(){return[hc,ic,jc,kc,W,mc,X,nc,jc.prototype.i.Rp,W.prototype.ga.Cq,jc.prototype.i.Pj,X.prototype.i.Tp,V.prototype.ga.Eq,jc.prototype.i.Op,V.prototype.i.Ip,V.prototype.ga.yq,V.prototype.ga.Yp,hc.prototype.ga.Play,V.prototype.ga.Hq,X.prototype.i.Rj,V.prototype.i.zm,W.prototype.ga.Fq,W.prototype.i.Up,V.prototype.i.Gq,W.prototype.ga.Lp,V.prototype.ga.Dp,X.prototype.i.Sj,V.prototype.ga.wq,V.prototype.ga.xq,V.prototype.ga.Xp,jc.prototype.i.xm,W.prototype.i.Sp,W.prototype.ga.Aq,W.prototype.ga.Dq,
W.prototype.ga.zq,nc.prototype.ga.Bq,W.prototype.i.Jp,W.prototype.i.Kp,W.prototype.i.Qp]};
