// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,ea,I,ga,ha,ia,P,ja,ma,na,oa,qa,Q,ra,ta,S,va,wa,xa,ya,za,Aa,Ba,T,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,U,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,qb,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,V,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(c,q,a,f){this.set(c,q,a,f)}function p(){this.xb=this.wb=this.zb=this.yb=this.Lb=this.Kb=this.Ta=this.Sa=0}function b(c,q,a,f){c<q?a<f?(w=c<a?c:a,t=q>f?q:f):(w=c<f?c:f,t=q>a?q:a):a<f?(w=q<a?q:a,t=c>f?c:f):(w=q<f?q:f,t=c>a?c:a)}function n(){this.items=this.Sc=null;this.Cf=0;q&&(this.Sc=new Set);this.fg=[];this.Wd=!0}function h(c){z[F++]=c}function a(){this.ba=this.zj=this.y=this.dk=0}function g(c){this.Oa=[];this.Lh=this.Nh=this.Oh=this.Mh=0;this.xh(c)}function d(c,q){this.gk=
c;this.fk=q;this.cells={}}function u(c,q){this.gk=c;this.fk=q;this.cells={}}function v(c,q,a){var f;return X.length?(f=X.pop(),f.Qk=c,f.x=q,f.y=a,f):new aa(c,q,a)}function k(c,q,a){this.Qk=c;this.x=q;this.y=a;this.Ya=new ca}function f(c,q,a){var f;return y.length?(f=y.pop(),f.Qk=c,f.x=q,f.y=a,f):new ea(c,q,a)}function r(c,q,a){this.Qk=c;this.x=q;this.y=a;this.Ya=[];this.Af=!0;this.ed=new ca;this.jg=!1}function l(c,q){return c.Xc-q.Xc}I=function(c){window.console&&window.console.log&&window.console.log(c)};
ga=function(c){window.console&&window.console.error&&window.console.error(c)};ha=function(c){return"undefined"===typeof c};ia=function(c){return"number"===typeof c};P=function(c){return"string"===typeof c};ja=function(c){return 0<c&&0===(c-1&c)};ma=function(c){--c;for(var q=1;32>q;q<<=1)c|=c>>q;return c+1};na=function(c){return 0>c?-c:c};oa=function(c,q){return c<q?c:q};qa=Math.PI;Q=function(c){return 0<=c?c|0:(c|0)-1};ra=function(c){var q=c|0;return q===c?q:q+1};ta=function(c,q,a,f,g,k,b,d){var A,
m,l,z;c<a?(m=c,A=a):(m=a,A=c);g<b?(z=g,l=b):(z=b,l=g);if(A<z||m>l)return!1;q<f?(m=q,A=f):(m=f,A=q);k<d?(z=k,l=d):(z=d,l=k);if(A<z||m>l)return!1;A=g-c+b-a;m=k-q+d-f;c=a-c;q=f-q;g=b-g;k=d-k;d=na(q*g-k*c);return na(g*m-k*A)>d?!1:na(c*m-q*A)<=d};e.prototype.set=function(c,q,a,f){this.left=c;this.top=q;this.right=a;this.bottom=f};e.prototype.qg=function(c){this.left=c.left;this.top=c.top;this.right=c.right;this.bottom=c.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=
function(){return this.bottom-this.top};e.prototype.offset=function(c,q){this.left+=c;this.top+=q;this.right+=c;this.bottom+=q;return this};e.prototype.normalize=function(){var c=0;this.left>this.right&&(c=this.left,this.left=this.right,this.right=c);this.top>this.bottom&&(c=this.top,this.top=this.bottom,this.bottom=c)};e.prototype.Os=function(c){return!(c.right<this.left||c.bottom<this.top||c.left>this.right||c.top>this.bottom)};e.prototype.Ps=function(c,q,a){return!(c.right+q<this.left||c.bottom+
a<this.top||c.left+q>this.right||c.top+a>this.bottom)};e.prototype.bb=function(c,q){return c>=this.left&&c<=this.right&&q>=this.top&&q<=this.bottom};e.prototype.ei=function(c){return this.left===c.left&&this.top===c.top&&this.right===c.right&&this.bottom===c.bottom};S=e;p.prototype.Wf=function(c){this.Sa=c.left;this.Ta=c.top;this.Kb=c.right;this.Lb=c.top;this.yb=c.right;this.zb=c.bottom;this.wb=c.left;this.xb=c.bottom};p.prototype.hp=function(c,q){if(0===q)this.Wf(c);else{var a=Math.sin(q),f=Math.cos(q),
g=c.left*a,k=c.top*a,A=c.right*a,a=c.bottom*a,b=c.left*f,d=c.top*f,m=c.right*f,f=c.bottom*f;this.Sa=b-k;this.Ta=d+g;this.Kb=m-k;this.Lb=d+A;this.yb=m-a;this.zb=f+A;this.wb=b-a;this.xb=f+g}};p.prototype.offset=function(c,q){this.Sa+=c;this.Ta+=q;this.Kb+=c;this.Lb+=q;this.yb+=c;this.zb+=q;this.wb+=c;this.xb+=q;return this};var w=0,t=0;p.prototype.Vm=function(c){b(this.Sa,this.Kb,this.yb,this.wb);c.left=w;c.right=t;b(this.Ta,this.Lb,this.zb,this.xb);c.top=w;c.bottom=t};p.prototype.bb=function(c,q){var a=
this.Kb-this.Sa,f=this.Lb-this.Ta,g=this.yb-this.Sa,k=this.zb-this.Ta,A=c-this.Sa,b=q-this.Ta,d=a*a+f*f,m=a*g+f*k,f=a*A+f*b,l=g*g+k*k,z=g*A+k*b,F=1/(d*l-m*m),a=(l*f-m*z)*F,d=(d*z-m*f)*F;if(0<=a&&0<d&&1>a+d)return!0;a=this.wb-this.Sa;f=this.xb-this.Ta;d=a*a+f*f;m=a*g+f*k;f=a*A+f*b;F=1/(d*l-m*m);a=(l*f-m*z)*F;d=(d*z-m*f)*F;return 0<=a&&0<d&&1>a+d};p.prototype.Ud=function(c,q){if(q)switch(c){case 0:return this.Sa;case 1:return this.Kb;case 2:return this.yb;case 3:return this.wb;case 4:return this.Sa;
default:return this.Sa}else switch(c){case 0:return this.Ta;case 1:return this.Lb;case 2:return this.zb;case 3:return this.xb;case 4:return this.Ta;default:return this.Ta}};p.prototype.so=function(){return(this.Sa+this.Kb+this.yb+this.wb)/4};p.prototype.uo=function(){return(this.Ta+this.Lb+this.zb+this.xb)/4};p.prototype.In=function(c){var q=c.so(),a=c.uo();if(this.bb(q,a))return!0;q=this.so();a=this.uo();if(c.bb(q,a))return!0;var f,g,k,d,m,A,b,l;for(b=0;4>b;b++)for(l=0;4>l;l++)if(q=this.Ud(b,!0),
a=this.Ud(b,!1),f=this.Ud(b+1,!0),g=this.Ud(b+1,!1),k=c.Ud(l,!0),d=c.Ud(l,!1),m=c.Ud(l+1,!0),A=c.Ud(l+1,!1),ta(q,a,f,g,k,d,m,A))return!0;return!1};va=p;wa=function(c,q){for(var a in q)q.hasOwnProperty(a)&&(c[a]=q[a]);return c};xa=function(c,q){var a,f;q=Q(q);if(!(0>q||q>=c.length)){a=q;for(f=c.length-1;a<f;a++)c[a]=c[a+1];c.length=f}};ya=function(c,q){c.length=q.length;var a,f;a=0;for(f=q.length;a<f;a++)c[a]=q[a]};za=function(c,q){c.push.apply(c,q)};Aa=function(c,q){var a,f;a=0;for(f=c.length;a<f;++a)if(c[a]===
q)return a;return-1};Ba=function(c,q){var a=Aa(c,q);-1!==a&&xa(c,a)};T=function(c){return c/(180/qa)};Ca=function(c){return 180/qa*c};Da=function(c){c%=360;0>c&&(c+=360);return c};Ea=function(c){c%=2*qa;0>c&&(c+=2*qa);return c};Fa=function(c){return Da(Ca(c))};Ha=function(c){return Ea(T(c))};Ia=function(c,q,a,f){return Math.atan2(f-q,a-c)};Ja=function(c,q){if(c===q)return 0;var a=Math.sin(c),f=Math.cos(c),g=Math.sin(q),k=Math.cos(q),a=a*g+f*k;return 1<=a?0:-1>=a?qa:Math.acos(a)};Ka=function(c,q,a){var f=
Math.sin(c),g=Math.cos(c),k=Math.sin(q),d=Math.cos(q);return Math.acos(f*k+g*d)>a?0<g*k-f*d?Ea(c+a):Ea(c-a):Ea(q)};Pa=function(c,q){var a=Math.sin(c),f=Math.cos(c),g=Math.sin(q),k=Math.cos(q);return 0>=f*g-a*k};Qa=function(c,q,a,f,g,k){if(0===a)return k?c:q;var d=Math.sin(a);a=Math.cos(a);c-=f;q-=g;var b=c*d;c=c*a-q*d;q=q*a+b;return k?c+f:q+g};Ra=function(c,q,a,f){c=a-c;q=f-q;return Math.sqrt(c*c+q*q)};Sa=function(c,q){return!c!==!q};Ta=function(c){for(var q in c)if(c.hasOwnProperty(q))return!0;return!1};
Ua=function(c){for(var q in c)c.hasOwnProperty(q)&&delete c[q]};var m=+new Date;U=function(){if("undefined"!==typeof window.performance){var c=window.performance;if("undefined"!==typeof c.now)return c.now();if("undefined"!==typeof c.webkitNow)return c.webkitNow();if("undefined"!==typeof c.mozNow)return c.mozNow();if("undefined"!==typeof c.msNow)return c.msNow()}return Date.now()-m};var E=!1,c=E=!1,A=!1;"undefined"!==typeof window&&(E=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
E=!E&&/safari/i.test(navigator.userAgent),c=/(iphone|ipod|ipad)/i.test(navigator.userAgent),A=window.c2ejecta);var q=!E&&!A&&!c&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(c){return this.Cd()?!1:q?this.Sc.has(c):this.items&&this.items.hasOwnProperty(c)};n.prototype.add=function(c){if(q)this.Sc.has(c)||(this.Sc.add(c),this.Wd=!1);else{var a=c.toString(),f=this.items;f?f.hasOwnProperty(a)||(f[a]=c,this.Cf++,this.Wd=!1):(this.items={},this.items[a]=
c,this.Cf=1,this.Wd=!1)}};n.prototype.remove=function(c){if(!this.Cd())if(q)this.Sc.has(c)&&(this.Sc["delete"](c),this.Wd=!1);else if(this.items){c=c.toString();var a=this.items;a.hasOwnProperty(c)&&(delete a[c],this.Cf--,this.Wd=!1)}};n.prototype.clear=function(){this.Cd()||(q?this.Sc.clear():(this.items=null,this.Cf=0),this.fg.length=0,this.Wd=!0)};n.prototype.Cd=function(){return 0===this.count()};n.prototype.count=function(){return q?this.Sc.size:this.Cf};var z=null,F=0;n.prototype.ju=function(){if(!this.Wd){if(q)this.fg.length=
this.Sc.size,z=this.fg,F=0,this.Sc.forEach(h),z=null,F=0;else{var c=this.fg;c.length=this.Cf;var a,f=0,g=this.items;if(g)for(a in g)g.hasOwnProperty(a)&&(c[f++]=g[a])}this.Wd=!0}};n.prototype.Wc=function(){this.ju();return this.fg};ca=n;new ca;Va=function(c,a){q?Wa(c,a.Sc):Xa(c,a.Wc())};Wa=function(c,q){var a,f,g,k;f=a=0;for(g=c.length;a<g;++a)k=c[a],q.has(k)||(c[f++]=k);c.length=f};Xa=function(c,q){var a,f,g,k;f=a=0;for(g=c.length;a<g;++a)k=c[a],-1===Aa(q,k)&&(c[f++]=k);c.length=f};a.prototype.add=
function(c){this.y=c-this.dk;this.zj=this.ba+this.y;this.dk=this.zj-this.ba-this.y;this.ba=this.zj};a.prototype.reset=function(){this.ba=this.zj=this.y=this.dk=0};Ya=a;Za=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.xh=function(c){this.Vo=c;this.Qc=c.length/2;this.Oa.length=c.length;this.Sh=this.Th=-1;this.Ym=0};g.prototype.xf=function(){return!this.Vo.length};g.prototype.ma=function(){for(var c=this.Oa,q=c[0],a=q,f=c[1],g=f,k,d,b=1,m=this.Qc;b<m;++b)d=2*b,k=c[d],d=
c[d+1],k<q&&(q=k),k>a&&(a=k),d<f&&(f=d),d>g&&(g=d);this.Mh=q;this.Nh=a;this.Oh=f;this.Lh=g};g.prototype.Wf=function(c,q,a){this.Oa.length=8;this.Qc=4;var f=this.Oa;f[0]=c.left-q;f[1]=c.top-a;f[2]=c.right-q;f[3]=c.top-a;f[4]=c.right-q;f[5]=c.bottom-a;f[6]=c.left-q;f[7]=c.bottom-a;this.Th=c.right-c.left;this.Sh=c.bottom-c.top;this.ma()};g.prototype.Vf=function(c,q,a,f,g){this.Oa.length=8;this.Qc=4;var k=this.Oa;k[0]=c.Sa-q;k[1]=c.Ta-a;k[2]=c.Kb-q;k[3]=c.Lb-a;k[4]=c.yb-q;k[5]=c.zb-a;k[6]=c.wb-q;k[7]=
c.xb-a;this.Th=f;this.Sh=g;this.ma()};g.prototype.gp=function(c){this.Qc=c.Qc;ya(this.Oa,c.Oa);this.Mh=c.Mh;this.Oh-c.Oh;this.Nh=c.Nh;this.Lh=c.Lh};g.prototype.hf=function(c,q,a){if(this.Th!==c||this.Sh!==q||this.Ym!==a){this.Th=c;this.Sh=q;this.Ym=a;var f,g,k,d,b,m=0,A=1,l=this.Vo,z=this.Oa;0!==a&&(m=Math.sin(a),A=Math.cos(a));a=0;for(k=this.Qc;a<k;a++)f=2*a,g=f+1,d=l[f]*c,b=l[g]*q,z[f]=d*A-b*m,z[g]=b*A+d*m;this.ma()}};g.prototype.bb=function(c,q){var a=this.Oa;if(c===a[0]&&q===a[1])return!0;var f,
g,k,d=this.Qc,b=this.Mh-110,m=this.Oh-101,A=this.Nh+131,l=this.Lh+120,z,F,r=0,w=0;for(f=0;f<d;f++)g=2*f,k=(f+1)%d*2,z=a[g],g=a[g+1],F=a[k],k=a[k+1],ta(b,m,c,q,z,g,F,k)&&r++,ta(A,l,c,q,z,g,F,k)&&w++;return 1===r%2||1===w%2};g.prototype.Eg=function(c,q,a){var f=c.Oa,g=this.Oa;if(this.bb(f[0]+q,f[1]+a)||c.bb(g[0]-q,g[1]-a))return!0;var k,d,b,m,A,l,z,F,r,w,E,x;k=0;for(m=this.Qc;k<m;k++)for(d=2*k,b=(k+1)%m*2,F=g[d],d=g[d+1],r=g[b],w=g[b+1],b=0,z=c.Qc;b<z;b++)if(A=2*b,l=(b+1)%z*2,E=f[A]+q,A=f[A+1]+a,x=
f[l]+q,l=f[l+1]+a,ta(F,d,r,w,E,A,x,l))return!0;return!1};$a=g;d.prototype.be=function(c,q,a){var f;f=this.cells[c];return f?(f=f[q])?f:a?(f=v(this,c,q),this.cells[c][q]=f):null:a?(f=v(this,c,q),this.cells[c]={},this.cells[c][q]=f):null};d.prototype.cc=function(c){return Q(c/this.gk)};d.prototype.ec=function(c){return Q(c/this.fk)};d.prototype.update=function(c,q,a){var f,g,k,d,b;if(q)for(f=q.left,g=q.right;f<=g;++f)for(k=q.top,d=q.bottom;k<=d;++k)if(!a||!a.bb(f,k))if(b=this.be(f,k,!1))b.remove(c),
b.Cd()&&(b.Ya.clear(),1E3>X.length&&X.push(b),this.cells[f][k]=null);if(a)for(f=a.left,g=a.right;f<=g;++f)for(k=a.top,d=a.bottom;k<=d;++k)q&&q.bb(f,k)||this.be(f,k,!0).$k(c)};d.prototype.jj=function(c,q){var a,f,k,g,d,b;a=this.cc(c.left);k=this.ec(c.top);f=this.cc(c.right);for(d=this.ec(c.bottom);a<=f;++a)for(g=k;g<=d;++g)(b=this.be(a,g,!1))&&b.dump(q)};ab=d;u.prototype.be=function(c,q,a){var g;g=this.cells[c];return g?(g=g[q])?g:a?(g=f(this,c,q),this.cells[c][q]=g):null:a?(g=f(this,c,q),this.cells[c]=
{},this.cells[c][q]=g):null};u.prototype.cc=function(c){return Q(c/this.gk)};u.prototype.ec=function(c){return Q(c/this.fk)};u.prototype.update=function(c,q,a){var f,g,k,d,b;if(q)for(f=q.left,g=q.right;f<=g;++f)for(k=q.top,d=q.bottom;k<=d;++k)if(!a||!a.bb(f,k))if(b=this.be(f,k,!1))b.remove(c),b.Cd()&&(b.reset(),1E3>y.length&&y.push(b),this.cells[f][k]=null);if(a)for(f=a.left,g=a.right;f<=g;++f)for(k=a.top,d=a.bottom;k<=d;++k)q&&q.bb(f,k)||this.be(f,k,!0).$k(c)};u.prototype.jj=function(c,q,a,f,g){var k,
d;c=this.cc(c);q=this.ec(q);a=this.cc(a);for(k=this.ec(f);c<=a;++c)for(f=q;f<=k;++f)(d=this.be(c,f,!1))&&d.dump(g)};u.prototype.ct=function(c){var q,a,f,g,k;q=c.left;f=c.top;a=c.right;for(g=c.bottom;q<=a;++q)for(c=f;c<=g;++c)if(k=this.be(q,c,!1))k.Af=!1};bb=u;var X=[];k.prototype.Cd=function(){return this.Ya.Cd()};k.prototype.$k=function(c){this.Ya.add(c)};k.prototype.remove=function(c){this.Ya.remove(c)};k.prototype.dump=function(c){za(c,this.Ya.Wc())};aa=k;var y=[];r.prototype.Cd=function(){if(!this.Ya.length)return!0;
if(this.Ya.length>this.ed.count())return!1;this.Bk();return!0};r.prototype.$k=function(c){this.ed.contains(c)?(this.ed.remove(c),this.ed.Cd()&&(this.jg=!1)):this.Ya.length?(this.Ya[this.Ya.length-1].wc()>c.wc()&&(this.Af=!1),this.Ya.push(c)):(this.Ya.push(c),this.Af=!0)};r.prototype.remove=function(c){this.ed.add(c);this.jg=!0;30<=this.ed.count()&&this.Bk()};r.prototype.Bk=function(){this.jg&&(this.ed.count()===this.Ya.length?this.reset():(Va(this.Ya,this.ed),this.ed.clear(),this.jg=!1))};r.prototype.Br=
function(){this.Af||(this.Ya.sort(l),this.Af=!0)};r.prototype.reset=function(){this.Ya.length=0;this.Af=!0;this.ed.clear();this.jg=!1};r.prototype.dump=function(c){this.Bk();this.Br();this.Ya.length&&c.push(this.Ya)};ea=r;var x="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(c){return 0>=c||11<=c?"source-over":x[c-1]};db=function(c,q,a){if(a)switch(c.lb=a.ONE,c.kb=a.ONE_MINUS_SRC_ALPHA,q){case 1:c.lb=a.ONE;
c.kb=a.ONE;break;case 3:c.lb=a.ONE;c.kb=a.ZERO;break;case 4:c.lb=a.ONE_MINUS_DST_ALPHA;c.kb=a.ONE;break;case 5:c.lb=a.DST_ALPHA;c.kb=a.ZERO;break;case 6:c.lb=a.ZERO;c.kb=a.SRC_ALPHA;break;case 7:c.lb=a.ONE_MINUS_DST_ALPHA;c.kb=a.ZERO;break;case 8:c.lb=a.ZERO;c.kb=a.ONE_MINUS_SRC_ALPHA;break;case 9:c.lb=a.DST_ALPHA;c.kb=a.ONE_MINUS_SRC_ALPHA;break;case 10:c.lb=a.ONE_MINUS_DST_ALPHA,c.kb=a.SRC_ALPHA}};eb=function(c){return Math.round(1E6*c)/1E6};fb=function(c,a){return"string"!==typeof c||"string"!==
typeof a||c.length!==a.length?!1:c===a?!0:c.toLowerCase()===a.toLowerCase()};gb=function(c){c=c.target;return!c||c===document||c===window||document&&document.body&&c===document.body||fb(c.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(e){var p=new Zb(3);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2]);return p}
function ac(e){var p=new Zb(16);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2],p[3]=e[3],p[4]=e[4],p[5]=e[5],p[6]=e[6],p[7]=e[7],p[8]=e[8],p[9]=e[9],p[10]=e[10],p[11]=e[11],p[12]=e[12],p[13]=e[13],p[14]=e[14],p[15]=e[15]);return p}function bc(e,p){p[0]=e[0];p[1]=e[1];p[2]=e[2];p[3]=e[3];p[4]=e[4];p[5]=e[5];p[6]=e[6];p[7]=e[7];p[8]=e[8];p[9]=e[9];p[10]=e[10];p[11]=e[11];p[12]=e[12];p[13]=e[13];p[14]=e[14];p[15]=e[15]}
function cc(e,p){var b=p[0],n=p[1];p=p[2];e[0]*=b;e[1]*=b;e[2]*=b;e[3]*=b;e[4]*=n;e[5]*=n;e[6]*=n;e[7]*=n;e[8]*=p;e[9]*=p;e[10]*=p;e[11]*=p}
function dc(e,p,b,n){n||(n=ac());var h,a,g,d,u,v,k,f,r=e[0],l=e[1];e=e[2];a=b[0];g=b[1];h=b[2];b=p[1];v=p[2];r===p[0]&&l===b&&e===v?(e=n,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(b=r-p[0],v=l-p[1],k=e-p[2],f=1/Math.sqrt(b*b+v*v+k*k),b*=f,v*=f,k*=f,p=g*k-h*v,h=h*b-a*k,a=a*v-g*b,(f=Math.sqrt(p*p+h*h+a*a))?(f=1/f,p*=f,h*=f,a*=f):a=h=p=0,g=v*a-k*h,d=k*p-b*a,u=b*h-v*p,(f=Math.sqrt(g*g+d*d+u*u))?(f=1/f,g*=f,d*=f,u*=f):u=d=g=0,
n[0]=p,n[1]=g,n[2]=b,n[3]=0,n[4]=h,n[5]=d,n[6]=v,n[7]=0,n[8]=a,n[9]=u,n[10]=k,n[11]=0,n[12]=-(p*r+h*l+a*e),n[13]=-(g*r+d*l+u*e),n[14]=-(b*r+v*l+k*e),n[15]=1)}
(function(){function e(a){this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Zm=$b([0,0,100]);this.$n=$b([0,0,0]);this.Ap=$b([0,1,0]);this.zm=$b([1,1,1]);this.jn=!0;this.sl=ac();this.Cc=ac();this.Sn=ac();this.ok=ac();this.m=a;this.En()}function p(a,g,d){this.m=a;this.yh=g;this.name=d;this.Bc=a.getAttribLocation(g,"aPos");this.ge=a.getAttribLocation(g,"aTex");this.Yn=a.getUniformLocation(g,"matP");this.Qi=a.getUniformLocation(g,"matMV");this.Gf=
a.getUniformLocation(g,"opacity");this.Zn=a.getUniformLocation(g,"samplerFront");this.Xg=a.getUniformLocation(g,"samplerBack");this.Ue=a.getUniformLocation(g,"destStart");this.Te=a.getUniformLocation(g,"destEnd");this.pl=a.getUniformLocation(g,"seconds");this.ol=a.getUniformLocation(g,"pixelWidth");this.nl=a.getUniformLocation(g,"pixelHeight");this.Wg=a.getUniformLocation(g,"layerScale");this.Vg=a.getUniformLocation(g,"layerAngle");this.Zg=a.getUniformLocation(g,"viewOrigin");this.Yg=a.getUniformLocation(g,
"scrollPos");this.Js=!!(this.ol||this.nl||this.pl||this.Xg||this.Ue||this.Te||this.Wg||this.Vg||this.Zg||this.Yg);this.ko=this.lo=-999;this.Si=1;this.eo=this.co=0;this.ho=this.bo=this.ao=1;this.no=this.mo=this.po=this.oo=this.fo=0;this.il=[];this.jo=ac();this.Gf&&a.uniform1f(this.Gf,1);this.Zn&&a.uniform1i(this.Zn,0);this.Xg&&a.uniform1i(this.Xg,1);this.Ue&&a.uniform2f(this.Ue,0,0);this.Te&&a.uniform2f(this.Te,1,1);this.Wg&&a.uniform1f(this.Wg,1);this.Vg&&a.uniform1f(this.Vg,0);this.Zg&&a.uniform2f(this.Zg,
0,0);this.Yg&&a.uniform2f(this.Yg,0,0);this.Ie=!1}function b(a,g){this.type=a;this.q=g;this.m=g.m;this.xc=this.mc=this.Fo=0;this.Z=this.Uc=null;this.ip=[]}e.prototype.En=function(){var a=this.m,g;this.Tn=1;this.Qe=this.Pe=null;this.$h=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.Un=a.ONE;this.Rn=a.ONE_MINUS_SRC_ALPHA;this.Jl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Jl);this.Ih=
Array(4);this.Ch=Array(4);for(g=0;4>g;g++)this.Ih[g]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Ih[g]),this.Ch[g]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Ch[g]);this.rd=0;this.Ms=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ms);this.vm=new Float32Array(16E3);this.gm=new Float32Array(16E3);this.Ro=new Float32Array(32E3);for(var d=new Uint16Array(12E3),b=g=0;12E3>g;)d[g++]=b,d[g++]=b+1,d[g++]=b+2,d[g++]=b,d[g++]=b+2,d[g++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,
a.STATIC_DRAW);this.Qf=this.ld=0;this.Ra=[];g=this.nk({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.Ra.push(g);g=this.nk({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.Ra.push(g);for(var h in ec)ec.hasOwnProperty(h)&&this.Ra.push(this.nk(ec[h],
"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}",h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.qd=[];this.Zc=0;this.Ub=this.Bb=!1;this.dn=this.Lg=-1;this.sg=null;this.Zr=a.createFramebuffer();this.Yo=null;this.qe=$b([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.gt=a[0];this.tl=
a[1];2048<this.tl&&(this.tl=2048);this.hd(0)};p.prototype.om=function(a){var g=this.jo;if(g[0]!==a[0]||g[1]!==a[1]||g[2]!==a[2]||g[3]!==a[3]||g[4]!==a[4]||g[5]!==a[5]||g[6]!==a[6]||g[7]!==a[7]||g[8]!==a[8]||g[9]!==a[9]||g[10]!==a[10]||g[11]!==a[11]||g[12]!==a[12]||g[13]!==a[13]||g[14]!==a[14]||g[15]!==a[15])bc(a,this.jo),this.m.uniformMatrix4fv(this.Qi,!1,a)};e.prototype.nk=function(a,g,d){var b=this.m,h=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(h,a.src);b.compileShader(h);if(!b.getShaderParameter(h,
b.COMPILE_STATUS))return b.deleteShader(h),null;var k=b.createShader(b.VERTEX_SHADER);b.shaderSource(k,g);b.compileShader(k);if(!b.getShaderParameter(k,b.COMPILE_STATUS))return b.deleteShader(h),b.deleteShader(k),null;g=b.createProgram();b.attachShader(g,h);b.attachShader(g,k);b.linkProgram(g);if(!b.getProgramParameter(g,b.LINK_STATUS))return b.deleteShader(h),b.deleteShader(k),b.deleteProgram(g),null;b.useProgram(g);b.deleteShader(h);b.deleteShader(k);d=new p(b,g,d);d.xk=a.xk||0;d.yk=a.yk||0;d.cn=
!!a.cn;d.Sm=!!a.Sm;d.I=a.I||[];a=0;for(h=d.I.length;a<h;a++)d.I[a][1]=b.getUniformLocation(g,d.I[a][0]),d.il.push(0),b.uniform1f(d.I[a][1],0);return d};e.prototype.Nk=function(a){var g,b;g=0;for(b=this.Ra.length;g<b;g++)if(this.Ra[g].name===a)return g;return-1};e.prototype.Uo=function(a,g,b){var h=this.Cc,n=this.sl,k=[0,0,0,0,0,0,0,0];k[0]=h[0]*a+h[4]*g+h[12];k[1]=h[1]*a+h[5]*g+h[13];k[2]=h[2]*a+h[6]*g+h[14];k[3]=h[3]*a+h[7]*g+h[15];k[4]=n[0]*k[0]+n[4]*k[1]+n[8]*k[2]+n[12]*k[3];k[5]=n[1]*k[0]+n[5]*
k[1]+n[9]*k[2]+n[13]*k[3];k[6]=n[2]*k[0]+n[6]*k[1]+n[10]*k[2]+n[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],b[0]=(.5*k[4]+.5)*this.width,b[1]=(.5*k[5]+.5)*this.height)};e.prototype.Uf=function(a,g,b){if(this.width!==a||this.height!==g||b){this.$d();this.width=a;this.height=g;this.m.viewport(0,0,a,g);g=a/g;var h=this.sl,n;n=1*Math.tan(45*Math.PI/360);g*=n;a=-g;b=-n;h||(h=ac());var k=g-a,f=n-b;h[0]=2/k;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/f;h[6]=0;h[7]=0;h[8]=(g+a)/k;h[9]=
(n+b)/f;h[10]=-1001/999;h[11]=-1;h[12]=0;h[13]=0;h[14]=-2E3/999;h[15]=0;dc(this.Zm,this.$n,this.Ap,this.Cc);a=[0,0];g=[0,0];this.Uo(0,0,a);this.Uo(1,1,g);this.zm[0]=1/(g[0]-a[0]);this.zm[1]=-1/(g[1]-a[1]);a=0;for(g=this.Ra.length;a<g;a++)b=this.Ra[a],b.Ie=!1,b.Yn&&(this.m.useProgram(b.yh),this.m.uniformMatrix4fv(b.Yn,!1,this.sl));this.m.useProgram(this.Ra[this.Lg].yh);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.Qe=this.Pe=null}};e.prototype.ke=function(){dc(this.Zm,this.$n,this.Ap,this.Cc);cc(this.Cc,this.zm)};e.prototype.translate=function(a,g){if(0!==a||0!==g){this.qe[0]=a;this.qe[1]=g;this.qe[2]=0;var b=this.Cc,h=this.qe,n=h[0],k=h[1],h=h[2];b[12]=b[0]*n+b[4]*k+b[8]*h+b[12];b[13]=b[1]*n+b[5]*k+b[9]*h+b[13];b[14]=b[2]*n+b[6]*k+b[10]*h+b[14];b[15]=b[3]*n+b[7]*k+b[11]*h+b[15]}};e.prototype.scale=function(a,b){if(1!==a||1!==b)this.qe[0]=a,this.qe[1]=b,this.qe[2]=1,cc(this.Cc,this.qe)};e.prototype.Zo=
function(a){if(0!==a){var b=this.Cc,d,h=Math.sin(a);a=Math.cos(a);var n=b[0],k=b[1],f=b[2],r=b[3],l=b[4],w=b[5],t=b[6],m=b[7];d?b!==d&&(d[8]=b[8],d[9]=b[9],d[10]=b[10],d[11]=b[11],d[12]=b[12],d[13]=b[13],d[14]=b[14],d[15]=b[15]):d=b;d[0]=n*a+l*h;d[1]=k*a+w*h;d[2]=f*a+t*h;d[3]=r*a+m*h;d[4]=n*-h+l*a;d[5]=k*-h+w*a;d[6]=f*-h+t*a;d[7]=r*-h+m*a}};e.prototype.se=function(){for(var a=!1,b=0;16>b;b++)if(this.Sn[b]!==this.Cc[b]){a=!0;break}a&&(a=this.Dc(),a.type=5,a.Z?bc(this.Cc,a.Z):a.Z=ac(this.Cc),bc(this.Cc,
this.Sn),this.Ub=this.Bb=!1)};b.prototype.nr=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Uc)};b.prototype.or=function(){var a=this.m;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Uc);a.activeTexture(a.TEXTURE0)};b.prototype.kr=function(){var a=this.Fo,b=this.q;b.$h=a;b=b.sg;b.Gf&&b.Si!==a&&(b.Si=a,this.m.uniform1f(b.Gf,a))};b.prototype.hr=function(){this.m.drawElements(this.m.TRIANGLES,this.xc,this.m.UNSIGNED_SHORT,2*this.mc)};b.prototype.jr=function(){this.m.blendFunc(this.mc,
this.xc)};b.prototype.pr=function(){var a,b,d,h=this.q.Ra,n=this.q.dn;a=0;for(b=h.length;a<b;a++)d=h[a],a===n&&d.Qi?(d.om(this.Z),d.Ie=!0):d.Ie=!1;bc(this.Z,this.q.ok)};b.prototype.ir=function(){var a=this.m,b=this.q;this.Uc?(b.Qe===this.Uc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Qe=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Zr),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Uc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};b.prototype.er=function(){var a=this.m;0===this.mc?(a.clearColor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clearColor(0,0,0,0),a.clear(this.m.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};b.prototype.fr=function(){var a=this.m,b=this.q,d=b.Ra[1];a.useProgram(d.yh);!d.Ie&&d.Qi&&(d.om(b.ok),d.Ie=!0);a.enableVertexAttribArray(d.Bc);
a.bindBuffer(a.ARRAY_BUFFER,b.Jl);a.vertexAttribPointer(d.Bc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.mc/4,this.xc);d=b.sg;a.useProgram(d.yh);0<=d.Bc&&(a.enableVertexAttribArray(d.Bc),a.bindBuffer(a.ARRAY_BUFFER,b.Ih[b.rd]),a.vertexAttribPointer(d.Bc,2,a.FLOAT,!1,0,0));0<=d.ge&&(a.enableVertexAttribArray(d.ge),a.bindBuffer(a.ARRAY_BUFFER,b.Ch[b.rd]),a.vertexAttribPointer(d.ge,2,a.FLOAT,!1,0,0))};b.prototype.lr=function(){var a=this.m,b=this.q,d=b.Ra[this.mc];b.dn=this.mc;b.sg=d;a.useProgram(d.yh);
!d.Ie&&d.Qi&&(d.om(b.ok),d.Ie=!0);d.Gf&&d.Si!==b.$h&&(d.Si=b.$h,a.uniform1f(d.Gf,b.$h));0<=d.Bc&&(a.enableVertexAttribArray(d.Bc),a.bindBuffer(a.ARRAY_BUFFER,b.Ih[b.rd]),a.vertexAttribPointer(d.Bc,2,a.FLOAT,!1,0,0));0<=d.ge&&(a.enableVertexAttribArray(d.ge),a.bindBuffer(a.ARRAY_BUFFER,b.Ch[b.rd]),a.vertexAttribPointer(d.ge,2,a.FLOAT,!1,0,0))};b.prototype.mr=function(){var a,b,d=this.q.sg,h=this.m;a=this.Z;d.Xg&&this.q.Qe!==this.Uc&&(h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,this.Uc),
this.q.Qe=this.Uc,h.activeTexture(h.TEXTURE0));var n=a[0];d.ol&&n!==d.lo&&(d.lo=n,h.uniform1f(d.ol,n));n=a[1];d.nl&&n!==d.ko&&(d.ko=n,h.uniform1f(d.nl,n));n=a[2];b=a[3];!d.Ue||n===d.co&&b===d.eo||(d.co=n,d.eo=b,h.uniform2f(d.Ue,n,b));n=a[4];b=a[5];!d.Te||n===d.ao&&b===d.bo||(d.ao=n,d.bo=n,h.uniform2f(d.Te,n,b));n=a[6];d.Wg&&n!==d.ho&&(d.ho=n,h.uniform1f(d.Wg,n));n=a[7];d.Vg&&n!==d.fo&&(d.fo=n,h.uniform1f(d.Vg,n));n=a[8];b=a[9];!d.Zg||n===d.oo&&b===d.po||(d.oo=n,d.po=b,h.uniform2f(d.Zg,n,b));n=a[10];
b=a[11];!d.Yg||n===d.mo&&b===d.no||(d.mo=n,d.no=b,h.uniform2f(d.Yg,n,b));d.pl&&h.uniform1f(d.pl,U()/1E3);if(d.I.length)for(a=0,b=d.I.length;a<b;a++)n=this.ip[a],n!==d.il[a]&&(d.il[a]=n,h.uniform1f(d.I[a][1],n))};e.prototype.Dc=function(){this.Zc===this.qd.length&&this.qd.push(new b(0,this));return this.qd[this.Zc++]};e.prototype.$d=function(){if(0!==this.Zc&&!this.m.isContextLost()){var a=this.m;0<this.Qf&&(a.bindBuffer(a.ARRAY_BUFFER,this.Jl),a.bufferData(a.ARRAY_BUFFER,this.Ro.subarray(0,this.Qf),
a.STREAM_DRAW),b&&0<=b.Bc&&"<point>"===b.name&&a.vertexAttribPointer(b.Bc,4,a.FLOAT,!1,0,0));if(0<this.ld){var b=this.sg;a.bindBuffer(a.ARRAY_BUFFER,this.Ih[this.rd]);a.bufferData(a.ARRAY_BUFFER,this.vm.subarray(0,this.ld),a.STREAM_DRAW);b&&0<=b.Bc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Bc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ch[this.rd]);a.bufferData(a.ARRAY_BUFFER,this.gm.subarray(0,this.ld),a.STREAM_DRAW);b&&0<=b.ge&&"<point>"!==b.name&&a.vertexAttribPointer(b.ge,2,a.FLOAT,
!1,0,0)}for(var d,a=0,b=this.Zc;a<b;a++)switch(d=this.qd[a],d.type){case 1:d.hr();break;case 2:d.nr();break;case 3:d.kr();break;case 4:d.jr();break;case 5:d.pr();break;case 6:d.ir();break;case 7:d.er();break;case 8:d.fr();break;case 9:d.lr();break;case 10:d.mr();break;case 11:d.or()}this.Qf=this.ld=this.Zc=0;this.Ub=this.Bb=!1;this.rd++;4<=this.rd&&(this.rd=0)}};e.prototype.Ye=function(a){if(a!==this.Tn){var b=this.Dc();b.type=3;this.Tn=b.Fo=a;this.Ub=this.Bb=!1}};e.prototype.$b=function(a){if(a!==
this.Pe){var b=this.Dc();b.type=2;this.Pe=b.Uc=a;this.Ub=this.Bb=!1}};e.prototype.le=function(a,b){if(a!==this.Un||b!==this.Rn){var d=this.Dc();d.type=4;d.mc=a;d.xc=b;this.Un=a;this.Rn=b;this.Ub=this.Bb=!1}};e.prototype.dp=function(){this.le(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};e.prototype.rh=function(a,b,d,h,n,k,f,r){15992<=this.ld&&this.$d();var l=this.ld,w=this.vm,t=this.gm;if(this.Bb)this.qd[this.Zc-1].xc+=6;else{var m=this.Dc();m.type=1;m.mc=l/4*3;m.xc=6;this.Bb=!0;this.Ub=!1}w[l]=a;t[l++]=
0;w[l]=b;t[l++]=0;w[l]=d;t[l++]=1;w[l]=h;t[l++]=0;w[l]=n;t[l++]=1;w[l]=k;t[l++]=1;w[l]=f;t[l++]=0;w[l]=r;t[l++]=1;this.ld=l};e.prototype.Hd=function(a,b,d,h,n,k,f,r,l){15992<=this.ld&&this.$d();var w=this.ld,t=this.vm,m=this.gm;if(this.Bb)this.qd[this.Zc-1].xc+=6;else{var E=this.Dc();E.type=1;E.mc=w/4*3;E.xc=6;this.Bb=!0;this.Ub=!1}var E=l.left,c=l.top,A=l.right;l=l.bottom;t[w]=a;m[w++]=E;t[w]=b;m[w++]=c;t[w]=d;m[w++]=A;t[w]=h;m[w++]=c;t[w]=n;m[w++]=A;t[w]=k;m[w++]=l;t[w]=f;m[w++]=E;t[w]=r;m[w++]=
l;this.ld=w};e.prototype.At=function(a,b,d,h){7996<=this.Qf&&this.$d();var n=this.Qf,k=this.Ro;if(this.Ub)this.qd[this.Zc-1].xc++;else{var f=this.Dc();f.type=8;f.mc=n;f.xc=1;this.Ub=!0;this.Bb=!1}k[n++]=a;k[n++]=b;k[n++]=d;k[n++]=h;this.Qf=n};e.prototype.hd=function(a){if(this.Lg!==a){if(!this.Ra[a]){if(0===this.Lg)return;a=0}var b=this.Dc();b.type=9;this.Lg=b.mc=a;this.Ub=this.Bb=!1}};e.prototype.ph=function(a){a=this.Ra[a];return!(!a.Ue&&!a.Te)};e.prototype.Ll=function(a){a=this.Ra[a];return!!(a.Ue||
a.Te||a.cn)};e.prototype.Ht=function(a){a=this.Ra[a];return 0!==a.xk||0!==a.yk};e.prototype.qs=function(a){return this.Ra[a].xk};e.prototype.rs=function(a){return this.Ra[a].yk};e.prototype.ss=function(a,b){return this.Ra[a].I[b][2]};e.prototype.ij=function(a){return this.Ra[a].Sm};e.prototype.Tf=function(a,b,d,h,n,k,f,r,l,w,t,m,E,c){var A=this.Ra[this.Lg],q,z;if(A.Js||c.length){q=this.Dc();q.type=10;q.Z?bc(this.Cc,q.Z):q.Z=ac();z=q.Z;z[0]=b;z[1]=d;z[2]=h;z[3]=n;z[4]=k;z[5]=f;z[6]=r;z[7]=l;z[8]=w;
z[9]=t;z[10]=m;z[11]=E;q.Uc=A.Xg?a:null;if(c.length)for(d=q.ip,d.length=c.length,a=0,b=c.length;a<b;a++)d[a]=c[a];this.Ub=this.Bb=!1}};e.prototype.clear=function(a,b,d,h){var n=this.Dc();n.type=7;n.mc=0;n.Z||(n.Z=ac());n.Z[0]=a;n.Z[1]=b;n.Z[2]=d;n.Z[3]=h;this.Ub=this.Bb=!1};e.prototype.clearRect=function(a,b,d,h){if(!(0>d||0>h)){var n=this.Dc();n.type=7;n.mc=1;n.Z||(n.Z=ac());n.Z[0]=a;n.Z[1]=b;n.Z[2]=d;n.Z[3]=h;this.Ub=this.Bb=!1}};e.prototype.Gt=function(){this.$d();this.m.flush()};var n=[],h={};
e.prototype.Wq=function(){n.length=0;h={}};e.prototype.Ef=function(a,b,d,e){b=!!b;d=!!d;var p=a.src+","+b+","+d+(b?",undefined":""),k=null;if("undefined"!==typeof a.src&&h.hasOwnProperty(p))return k=h[p],k.Rh++,k;this.$d();var f=this.m,r=ja(a.width)&&ja(a.height),k=f.createTexture();f.bindTexture(f.TEXTURE_2D,k);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=f.RGBA,w=f.RGBA,t=f.UNSIGNED_BYTE;if(e&&!this.Me)switch(e){case 1:w=l=f.RGB;break;case 2:t=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:t=
f.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=l=f.RGB,t=f.UNSIGNED_SHORT_5_6_5}if(!r&&b){e=document.createElement("canvas");e.width=ma(a.width);e.height=ma(a.height);var m=e.getContext("2d");m.webkitImageSmoothingEnabled=d;m.mozImageSmoothingEnabled=d;m.msImageSmoothingEnabled=d;m.imageSmoothingEnabled=d;m.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);f.texImage2D(f.TEXTURE_2D,0,l,w,t,e)}else f.texImage2D(f.TEXTURE_2D,0,l,w,t,a);b?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));d?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),r&&this.jn?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,
f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.Pe=null;k.ng=a.width;k.mg=a.height;k.Rh=1;k.Xm=p;n.push(k);return h[p]=k};e.prototype.Yd=function(a,b,d){var h;this.$d();var e=this.m;this.Me&&(h=!1);var k=e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,h?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,
e.TEXTURE_MAG_FILTER,d?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,d?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Pe=null;k.ng=a;k.mg=b;n.push(k);return k};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Rh&&1<a.Rh?a.Rh--:(this.$d(),a===this.Pe&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Pe=null),a===this.Qe&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Qe=
null),Ba(n,a),"undefined"!==typeof a.Xm&&delete h[a.Xm],this.m.deleteTexture(a)))};e.prototype.gd=function(a){if(a!==this.Yo){var b=this.Dc();b.type=6;this.Yo=b.Uc=a;this.Ub=this.Bb=!1}};hb=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function p(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(c){if(c&&(c.getContext||c.dc)&&!c.c2runtime){c.c2runtime=this;var a=this;this.yc=(this.Gg=/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.eb=!!c.dc;this.uf="undefined"!==typeof window.AppMobi||this.eb;this.hc=!!window.c2cocoonjs;this.Lc=!!window.c2ejecta;this.hc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Lc&&(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.ea=this.eb||this.hc||this.Lc;this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Mn=/tizen/i.test(navigator.userAgent);this.Ai=/android/i.test(navigator.userAgent)&&!this.Mn&&!this.Me;this.gl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Me;this.Qn=/ipad/i.test(navigator.userAgent);this.Fi=this.gl||this.Qn||this.Lc;this.Ys=this.gl&&/os\s6/i.test(navigator.userAgent);this.Fg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Me;this.Jn=/amazonwebappplatform/i.test(navigator.userAgent);this.Ss=/firefox/i.test(navigator.userAgent);this.Ln=/safari/i.test(navigator.userAgent)&&!this.Fg&&!this.Me;this.Vs=/windows/i.test(navigator.userAgent);this.ee="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);
this.On=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Xs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.wf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.el=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Nn=this.On||this.Xs||this.el;this.Qs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Bi=this.Ai&&!this.Fg&&!this.Gg&&!this.Ss&&!this.Jn&&
!this.ea;this.devicePixelRatio=1;this.bd=this.yc||this.Gg||this.uf||this.hc||this.Ai||this.Fi||this.wf||this.el||this.Qs||this.Mn||this.Lc;this.bd||(this.bd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ee||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.ee=!0);this.Rs="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=
c;this.$m=document.getElementById("c2canvasdiv");this.ca=this.q=this.m=null;this.Ek="";this.ji=!1;this.Do=this.Eo=0;this.canvas.oncontextmenu=function(c){c.preventDefault&&c.preventDefault();return!1};this.canvas.onselectstart=function(c){c.preventDefault&&c.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.ee&&(window.ondragover=function(c){c.preventDefault();return!1},window.ondrop=function(c){c.preventDefault();return!1},require("nw.gui").App.clearCache());this.Bi&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=c.width;this.height=c.height;this.M=this.width;this.L=this.height;this.Yh=this.width;this.Xh=this.height;this.Ng=window.innerWidth;this.Mg=window.innerHeight;this.as=!1;this.ha=!0;this.Ig=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Fa=[];this.ml={};this.Wb=[];this.wk={};this.wd=[];this.hg=[];this.Ij=[];this.Xj=[];this.Nq=[];this.Ae={};this.bl=this.de=!1;this.Mc=0;
this.dl=!1;this.Ic=[];this.Dd=this.rb=this.Sg=this.oj="";this.Ah=this.lp=!1;this.lk=this.$g=this.vd=this.De=0;this.bg=1;this.jc=new Ya;this.md=new Ya;this.Ji=0;this.ro=!0;this.Ui=this.li=this.gi=this.ag=this.Se=this.Dk=0;this.xe=null;this.sk=[];this.vk=[];this.fi=-1;this.ql=[[]];this.lm=this.Ri=0;this.Nl(null);this.yo=this.dh=0;this.ll=!0;this.ug=0;this.Bh=[];this.Ej=this.kj=-1;this.Bf=!0;this.Pi=0;this.Hg=!1;this.au=0;this.gf=null;this.Hs=!1;this.jl=0;this.ja=this.rf=this.Ol=!1;this.Co=new ca;this.zl=
new ca;this.Al=new ca;this.Kt=[];this.Tc=new $a([]);this.fm=new $a([]);this.Td=[];this.si={};this.jf={};this.ff={};this.gg={};this.Um={};this.Xn=this.Li=this.Vb=this.kc=this.Wn=this.Ki=this.aa=null;this.eg=this.fl=!1;this.Fk=[null,null];this.Ge=0;this.Ak="";this.he={};this.tj=this.Ff=null;this.Ti=[];this.Lt()}}function n(c){c.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(c,a,q,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=n;f.onerror=b;f.onsuccess=function(f){f=
f.target.result;f.onerror=b;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:c,data:a}).onsuccess=q}}function a(c,a,q){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=n;b.onerror=q;b.onsuccess=function(b){b=b.target.result;b.onerror=q;var f=b.transaction(["saves"]).objectStore("saves").get(c);f.onsuccess=function(){f.result?a(f.result.data):a(null)}}}function g(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function d(c){var a,q={};for(a in c)!c.hasOwnProperty(a)||c[a]instanceof ca||c[a]&&"undefined"!==typeof c[a].tv||(q[a]=c[a]);return q}b.prototype.Lt=function(){var c=this,a;a=this.wf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var q="data.js";if(this.On||this.wf||this.el)q="data.json";a.open("GET",q,!0);var b=!1;if(!this.ea&&"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(f){b=!1}if(!b&&
"responseType"in a)try{a.responseType="text"}catch(k){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.wf?a.onreadystatechange=function(){4===a.readyState&&c.Ni(JSON.parse(a.responseText))}:(a.onload=function(){if(b)c.Ni(a.response);else if(c.Lc){var q=a.responseText,q=q.substr(q.indexOf("{"));c.Ni(JSON.parse(q))}else c.Ni(JSON.parse(a.responseText))},a.onerror=function(c){ga("Error requesting "+q+":");ga(c)});a.send()};b.prototype.Ns=function(){var c=
this,a,q,b,f,k,m,d,l,g;this.devicePixelRatio=(this.Ne=(!this.ea||this.Lc)&&this.lu&&!this.Bi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.hb();q=!(!this.as&&(!this.Zj||this.ee||this.Nn||this.wf||this.Gg||this.yc||this.Jn));0<this.nb&&this.setSize(e(),p(),!0);try{this.wr&&(this.hc||this.Lc||!this.ea)&&(a={alpha:q,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(h){}if(this.m){this.ea||(this.fb=document.createElement("canvas"),jQuery(this.fb).appendTo(this.canvas.parentNode),this.fb.oncontextmenu=function(){return!1},this.fb.onselectstart=function(){return!1},this.fb.width=this.Yh,this.fb.height=this.Xh,jQuery(this.fb).css({width:this.Yh+"px",height:this.Xh+"px"}),this.To(),this.Il=this.fb.getContext("2d"));this.q=new hb(this.m,this.bd);this.q.Uf(this.canvas.width,this.canvas.height);this.q.jn=0!==this.qr;this.ca=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();c.jt();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){c.q.En();c.q.Uf(c.q.width,c.q.height,!0);c.kc=null;c.Vb=null;c.Fk[0]=null;c.Fk[1]=null;c.kt();c.ha=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(q=this.n.length;a<q;a++)for(k=this.n[a],b=0,f=k.H.length;b<f;b++)d=k.H[b],d.gb=this.q.Nk(d.id),this.eg=this.eg||this.q.ph(d.gb);a=0;for(q=this.Wb.length;a<
q;a++){l=this.Wb[a];b=0;for(f=l.H.length;b<f;b++)d=l.H[b],d.gb=this.q.Nk(d.id);b=0;for(f=l.K.length;b<f;b++)for(g=l.K[b],k=0,m=g.H.length;k<m;k++)d=g.H[k],d.gb=this.q.Nk(d.id),this.eg=this.eg||this.q.ph(d.gb)}}else{if(0<this.nb&&this.eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ca=AppMobi.canvas.getContext("2d");try{this.ca.samplingMode=this.S?"smooth":"sharp",this.ca.globalScale=1,this.ca.HTML5CompatibilityMode=!0,this.ca.imageSmoothingEnabled=
this.S}catch(n){}0!==this.width&&0!==this.height&&(this.ca.width=this.width,this.ca.height=this.height)}this.ca||(a=this.hc?{antialias:!!this.S,alpha:q}:{alpha:q},this.ca=this.canvas.getContext("2d",a),this.ca.webkitImageSmoothingEnabled=this.S,this.ca.mozImageSmoothingEnabled=this.S,this.ca.msImageSmoothingEnabled=this.S,this.ca.imageSmoothingEnabled=this.S);this.Il=this.fb=null}this.Dj=function(){c.ab(!1)};window==window.top||this.ea||this.Nn||this.wf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.hc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(I("Reloading for continuous preview"),this.Sg="__c2_continuouspreview",this.Ah=!0),this.yt&&!this.bd&&(jQuery(window).focus(function(){c.setSuspended(!1)}),jQuery(window).blur(function(){c.setSuspended(!0)})));this.ea||(a=function(c){if(gb(c)&&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.nb&&this.Ne&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.wp();this.Fs();this.go();this.wa={}};
b.prototype.setSize=function(c,a,q){var b=0,f=0,k=0,d=0,d=0,m=this.Ys&&this.Ln&&!navigator.standalone&&!this.ea&&!this.yc;m&&(a+=60);if(this.Ng!==c||this.Mg!==a||q){this.Ng=c;this.Mg=a;var l=this.nb,g=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Hg)&&!this.yc;if(g||0!==this.nb||q)g&&0<this.Ge&&(l=this.Ge),q=this.devicePixelRatio,4<=l?(k=this.Na/this.Ma,c/a>k?(k*=a,5===l?(d=k*q/this.Na,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),
k=this.Na*d/q,d=this.Ma*d/q,b=(c-k)/2,f=(a-d)/2,c=k,a=d):(b=(c-k)/2,c=k)):(d=c/k,5===l?(d=d*q/this.Ma,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),k=this.Na*d/q,d=this.Ma*d/q,b=(c-k)/2,f=(a-d)/2,c=k):f=(a-d)/2,a=d),g&&!this.ee&&(f=b=0)):this.ee&&this.Hg&&0===this.qn&&(b=Math.floor((c-this.Na)/2),f=Math.floor((a-this.Ma)/2),c=this.Na,a=this.Ma),2>l&&(this.lg=q),this.Ne&&this.Qn&&1<q&&(1024<=c&&(c=1023),1024<=a&&(a=1023)),this.Yh=Math.round(c),this.Xh=Math.round(a),this.width=Math.round(c*q),this.height=
Math.round(a*q),this.ha=!0,this.Gp?(this.M=this.width,this.L=this.height,this.uc=!0):this.width<this.Na&&this.height<this.Ma||1===l?(this.M=this.width,this.L=this.height,this.uc=!0):(this.M=this.Na,this.L=this.Ma,this.uc=!1,2===l?(k=this.Na/this.Ma,l=this.Ng/this.Mg,l<k?this.M=this.L*l:l>k&&(this.L=this.M/l)):3===l&&(k=this.Na/this.Ma,l=this.Ng/this.Mg,l>k?this.M=this.L*l:l<k&&(this.L=this.M/l))),this.$m&&!this.ea&&(jQuery(this.$m).css({width:Math.round(c)+"px",height:Math.round(a)+"px","margin-left":Math.floor(b)+
"px","margin-top":Math.floor(f)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(c)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(c*q),this.canvas.height=Math.round(a*q),this.Lc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(c)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Ne&&!this.ea&&jQuery(this.canvas).css({width:Math.round(c)+"px",height:Math.round(a)+
"px"})),this.fb&&(this.fb.width=Math.round(c),this.fb.height=Math.round(a),jQuery(this.fb).css({width:Math.round(c)+"px",height:Math.round(a)+"px"})),this.q&&this.q.Uf(Math.round(c*q),Math.round(a*q)),this.eb&&this.ca&&(this.ca.width=Math.round(c),this.ca.height=Math.round(a)),this.ca&&(this.ca.webkitImageSmoothingEnabled=this.S,this.ca.mozImageSmoothingEnabled=this.S,this.ca.msImageSmoothingEnabled=this.S,this.ca.imageSmoothingEnabled=this.S),this.wp(),this.ea||!m&&!this.gl||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};b.prototype.wp=function(){if(this.Pq&&0!==this.Gl){var c="portrait";2===this.Gl&&(c="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(c):screen.lockOrientation?screen.lockOrientation(c):screen.webkitLockOrientation?screen.webkitLockOrientation(c):screen.mozLockOrientation?screen.mozLockOrientation(c):screen.msLockOrientation&&screen.msLockOrientation(c)}};b.prototype.jt=function(){this.q.Wq();this.fl=!0;var c,a,q;c=0;for(a=this.n.length;c<a;c++)q=this.n[c],
q.Vi&&q.Vi()};b.prototype.kt=function(){this.fl=!1;var c,a,q;c=0;for(a=this.n.length;c<a;c++)q=this.n[c],q.Wi&&q.Wi()};b.prototype.To=function(){if(!this.ea){var c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Hg)&&!this.yc?jQuery(this.canvas).offset():jQuery(this.canvas).position();c.position="absolute";jQuery(this.fb).css(c)}};var u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;b.prototype.setSuspended=function(c){var a;if(c&&!this.Ig)for(I("[Construct 2] Suspending"),this.Ig=!0,-1!==this.kj&&u&&u(this.kj),-1!==this.Ej&&clearTimeout(this.Ej),c=0,a=this.Bh.length;c<a;c++)this.Bh[c](!0);else if(!c&&this.Ig){I("[Construct 2] Resuming");this.Ig=!1;this.Ji=U();this.Se=U();c=this.$g=this.li=0;for(a=this.Bh.length;c<a;c++)this.Bh[c](!1);this.ab(!1)}};b.prototype.Lq=function(c){this.Bh.push(c)};b.prototype.Qd=function(c){return this.Ti[c]};b.prototype.Ni=
function(c){c&&c.project||ga("Project model unavailable");c=c.project;this.name=c[0];this.pn=c[1];this.nb=c[12];this.qn=c[12];this.Na=c[10];this.Ma=c[11];this.Mo=this.Na/2;this.No=this.Ma/2;this.ea&&!this.Lc&&(4<=c[12]||0===c[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.qn=this.nb=3);this.tm=c[18];this.Ug=c[19];0===this.Ug&&(this.Ff=new Image,this.Ff.src="loading-logo.png");this.dh=c[21];this.Ti=fc();this.jd=new Y(this);
var a,q,b,f,k,d,l,m,g;a=0;for(q=c[2].length;a<q;a++)l=c[2][a],b=this.Qd(l[0]),ib(l,b.prototype),g=new b(this),g.rj=l[1],g.fe=l[2],g.wo=l[9],g.ka&&g.ka(),this.plugins.push(g);this.Ti=fc();a=0;for(q=c[3].length;a<q;a++){l=c[3][a];k=this.Qd(l[1]);g=null;b=0;for(f=this.plugins.length;b<f;b++)if(this.plugins[b]instanceof k){g=this.plugins[b];break}var h=new g.ib(g);h.name=l[0];h.B=l[2];h.al=l[3].slice(0);h.nu=l[3].length;h.Qq=l[4];h.cs=l[5];h.P=l[11];h.B?(h.If=[],h.xd=this.ug++,h.qa=null):(h.If=null,h.xd=
-1,h.qa=[]);h.hi=null;h.mf=null;h.ln=null;h.ic=!1;h.Qb=null;l[6]?(h.Aj=l[6][0],h.Bj=l[6][1],h.Dh=l[6][2]):(h.Aj=null,h.Bj=0,h.Dh=0);h.Ob=l[7]?l[7]:null;h.index=a;h.c=[];h.bi=[];h.oe=[new jb(h)];h.ud=0;h.rc=null;h.br=0;h.Zf=!0;h.Kj=kb;h.js=lb;h.os=mb;h.Y=nb;h.qh=ob;h.Ml=qb;h.Rf=rb;h.ni=sb;h.Hk=tb;h.Kk=ub;h.pd=vb;h.vn=wb;h.Uh=new ab(this.Na,this.Ma);h.Jh=!0;h.Kh=!1;h.wa={};h.toString=xb;h.Fa=[];b=0;for(f=l[8].length;b<f;b++){m=l[8][b];var n=this.Qd(m[1]),r=null;k=0;for(d=this.Fa.length;k<d;k++)if(this.Fa[k]instanceof
n){r=this.Fa[k];break}r||(r=new n(this),r.xo=[],r.Kf=new ca,r.ka&&r.ka(),this.Fa.push(r));-1===r.xo.indexOf(h)&&r.xo.push(h);k=new r.ib(r,h);k.name=m[0];k.P=m[2];k.ka();h.Fa.push(k)}h.global=l[9];h.cl=l[10];h.H=[];b=0;for(f=l[12].length;b<f;b++)h.H.push({id:l[12][b][0],name:l[12][b][1],gb:-1,Ua:!0,index:b});h.Hv=l[13];this.tm&&!h.B&&!h.cl&&g.fe||h.ka();h.name&&(this.types[h.name]=h);this.n.push(h);g.rj&&(b=new g.Ea(h),b.uid=this.dh++,b.Wo=this.yo++,b.Ke=0,b.zg=yb,b.toString=zb,b.ta=l[14],b.ka(),h.c.push(b),
this.he[b.uid.toString()]=b)}a=0;for(q=c[4].length;a<q;a++)for(k=c[4][a],d=this.n[k[0]],b=1,f=k.length;b<f;b++)l=this.n[k[b]],l.qa.push(d),d.If.push(l);a=0;for(q=c[27].length;a<q;a++){k=c[27][a];d=[];b=0;for(f=k.length;b<f;b++)d.push(this.n[k[b]]);b=0;for(f=d.length;b<f;b++)d[b].ic=!0,d[b].Qb=d}if(0<this.ug)for(a=0,q=this.n.length;a<q;a++)if(l=this.n[a],!l.B&&l.qa.length){l.hi=Array(this.ug);l.mf=Array(this.ug);l.ln=Array(this.ug);h=[];b=r=n=m=0;for(f=l.qa.length;b<f;b++)for(g=l.qa[b],l.hi[g.xd]=
m,m+=g.nu,l.mf[g.xd]=n,n+=g.Qq,l.ln[g.xd]=r,r+=g.cs,k=0,d=g.H.length;k<d;k++)h.push(wa({},g.H[k]));l.H=h.concat(l.H);b=0;for(f=l.H.length;b<f;b++)l.H[b].index=b}a=0;for(q=c[5].length;a<q;a++)l=c[5][a],b=new Ab(this,l),this.ml[b.name]=b,this.Wb.push(b);a=0;for(q=c[6].length;a<q;a++)l=c[6][a],b=new Bb(this,l),this.wk[b.name]=b,this.wd.push(b);a=0;for(q=this.wd.length;a<q;a++)this.wd[a].Da();a=0;for(q=this.wd.length;a<q;a++)this.wd[a].nm();a=0;for(q=this.Ij.length;a<q;a++)this.Ij[a].Da();this.Ij.length=
0;this.Oq=c[7];this.Ak=c[8];this.fd=c[9];this.lg=1;this.wr=c[13];this.S=c[14];this.Zj=c[15];this.lu=c[17];this.Gl=c[20];this.Pq=0<this.Gl;this.yt=c[22];this.uc=this.Gp=c[23];this.qr=c[24];this.Et=c[25];this.wj=Date.now();this.Ti.length=0;this.Ns()};var v=!1;b.prototype.xm=function(c,a){c.cocoonLazyLoad=!0;c.onerror=function(a){v=c.Wm=!0;console&&console.error&&console.error("Error loading image '"+c.src+"': ",a)};this.Lc?c.src=a:c.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){c.src=
a},function(b){v=c.Wm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):c.src=a);this.hg.push(c)};b.prototype.$r=function(c){var a,b;a=0;for(b=this.hg.length;a<b;a++)if(this.hg[a].Xq===c)return this.hg[a];return null};var k=0,f=!1;b.prototype.Fs=function(){this.gf&&(k=this.gf.Yt(this.Oq))};b.prototype.Tm=function(){var c=k,a=0,b=0,l=!0,d,m,b=0;for(d=this.hg.length;b<d;b++){m=this.hg[b];var g=m.mk;if(!g||0>=g)g=5E4;c+=g;m.src&&(m.complete||m.loaded)&&
!m.Wm?a+=g:l=!1}l&&this.Et&&this.gf&&(f||(this.gf.bu(),f=!0),b=this.gf.ps(),a+=b,b<k&&(l=!1));this.Xe=0==c?0:a/c;return l};b.prototype.go=function(){if(this.ca||this.q){var c=this.ca||this.Il;this.fb&&this.To();this.Xe=0;this.Vn=-1;if(this.Tm())this.Gs();else{var a=Date.now()-this.wj;if(c){var b=this.width,f=this.height,k=this.devicePixelRatio;this.fb&&(b=this.Yh,f=this.Xh,k=1);if(3!==this.Ug&&(this.hc||500<=a&&this.Vn!=this.Xe)){c.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Ug&&this.Ff.complete,
l=40*k,d=0,m=80*k,g;b&&(m=this.Ff.width*k,g=this.Ff.height*k,l=m/2,d=g/2,c.drawImage(this.Ff,Q(a-l),Q(f-d),m,g));1>=this.Ug?(a=Q(a-l)+.5,f=Q(f+(d+(b?12*k:0)))+.5,c.fillStyle=v?"red":"DodgerBlue",c.fillRect(a,f,Math.floor(m*this.Xe),6*k),c.strokeStyle="black",c.strokeRect(a,f,m,6*k),c.strokeStyle="white",c.strokeRect(a-1*k,f-1*k,m+2*k,8*k)):2===this.Ug&&(c.font=this.Lc?"12pt ArialMT":"12pt Arial",c.fillStyle=v?"#f00":"#999",c.Gv="middle",k=Math.round(100*this.Xe)+"%",b=c.measureText?c.measureText(k):
null,c.fillText(k,a-(b?b.width:0)/2,f))}this.Vn=this.Xe}setTimeout(function(c){return function(){c.go()}}(this),this.hc?10:100)}}};b.prototype.Gs=function(){this.fb&&(this.canvas.parentNode.removeChild(this.fb),this.fb=this.Il=null);this.wj=Date.now();this.Se=U();var c,a,b;if(this.tm)for(c=0,a=this.n.length;c<a;c++)b=this.n[c],b.B||b.cl||!b.ra.fe||b.ka();else this.Bf=!1;c=0;for(a=this.Wb.length;c<a;c++)this.Wb[c].Yq();2<=this.nb&&(c=this.Na/this.Ma,a=this.width/this.height,this.lg=2!==this.nb&&a>
c||2===this.nb&&a<c?this.height/this.Ma:this.width/this.Na);this.pn?this.ml[this.pn].cm():this.Wb[0].cm();this.tm||(this.Pi=1,this.trigger(Y.prototype.i.Em,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();c=0;for(a=this.n.length;c<a;c++)b=this.n[c],b.it&&b.it();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ab(!1);this.eb&&AppMobi.webview.execute("onGameReady();")};var r=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.ab=function(c){if(this.aa){var a=U();if(this.Hs&&this.Ol&&29>a-this.jl)this.Ol=!1,this.jl=a,r?this.kj=r(this.Dj,this.canvas):this.Ej=setTimeout(this.Dj,this.bd?1:16);else{this.Ol=!0;this.jl=a;var b=this.nb,f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.yc;(f||this.Hg)&&0<this.Ge&&(b=this.Ge);
0<b&&(!this.Fi||window.self!==window.top)&&(b=window.innerHeight,this.Ng===window.innerWidth&&this.Mg===b||this.setSize(e(),p()));this.ea||(f?(this.ji||(this.Ek=jQuery(this.canvas).css("margin")||"0",this.ji=!0),this.Fg||this.ee||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.ji?(this.Fg||this.ee||jQuery(this.canvas).css("margin",this.Ek),this.Ek=
"",this.ji=!1,0===this.nb&&this.setSize(Math.round(this.Eo/this.devicePixelRatio),Math.round(this.Do/this.devicePixelRatio),!0)):(this.Eo=this.width,this.Do=this.height));this.Bf&&(f=this.Tm(),this.Pi=this.Xe,f&&(this.Bf=!1,this.Xe=1,this.trigger(Y.prototype.i.Em,null)));this.bt();!this.ha&&!this.hc||this.fl||this.Ah||c||(this.ha=!1,this.q?this.Sb():this.Jc(),this.tj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.tj[0],this.tj[1]),this.trigger(Y.prototype.i.dq,null)),this.tj=null));
this.Av||(this.ag++,this.gi++,this.li++);this.$g+=U()-a;this.Ig||c||(r?this.kj=r(this.Dj,this.canvas):this.Ej=setTimeout(this.Dj,this.bd?1:16))}}};b.prototype.bt=function(){var c,a,b,f,k,l,d,m,g;c=U();1E3<=c-this.Se&&(this.Se+=1E3,1E3<=c-this.Se&&(this.Se=c),this.Dk=this.li,this.li=0,this.lk=this.$g,this.$g=0);this.ro&&(0!==this.Ji&&(a=c-this.Ji,0!==a||this.Rs?(this.vd=a/1E3,.5<this.vd?this.vd=0:.1<this.vd&&(this.vd=.1)):(10<=this.Iv&&(this.ro=!1),this.vd=1/60)),this.Ji=c);this.De=this.vd*this.bg;
this.jc.add(this.De);this.md.add(this.vd);c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Hg)&&!this.yc;2<=this.nb||c&&0<this.Ge?(a=this.Na/this.Ma,b=this.width/this.height,f=this.nb,c&&0<this.Ge&&(f=this.Ge),this.lg=2!==f&&b>a||2===f&&b<a?this.height/this.Ma:this.width/this.Na,this.aa&&(this.aa.bp(this.aa.scrollX),this.aa.cp(this.aa.scrollY))):this.lg=this.Ne?this.devicePixelRatio:1;this.hb();this.Mc++;this.jd.Ot();this.Mc--;this.hb();
this.Mc++;b=this.Co.Wc();c=0;for(a=b.length;c<a;c++)b[c].Cv();c=0;for(a=this.n.length;c<a;c++)if(d=this.n[c],!d.B&&(d.Fa.length||d.qa.length))for(b=0,f=d.c.length;b<f;b++)for(m=d.c[b],k=0,l=m.G.length;k<l;k++)m.G[k].ab();c=0;for(a=this.n.length;c<a;c++)if(d=this.n[c],!d.B&&(d.Fa.length||d.qa.length))for(b=0,f=d.c.length;b<f;b++)for(m=d.c[b],k=0,l=m.G.length;k<l;k++)g=m.G[k],g.Dt&&g.Dt();b=this.zl.Wc();c=0;for(a=b.length;c<a;c++)b[c].ab();this.Mc--;this.Is();for(c=0;this.xe&&10>c++;)this.en(this.xe);
c=0;for(a=this.wd.length;c<a;c++)this.wd[c].Uk=!1;this.aa.Ee&&this.aa.Ee.Qa();this.Kt.length=0;this.ll=!1;this.Mc++;c=0;for(a=this.n.length;c<a;c++)if(d=this.n[c],!d.B&&(d.Fa.length||d.qa.length))for(b=0,f=d.c.length;b<f;b++)for(m=d.c[b],k=0,l=m.G.length;k<l;k++)g=m.G[k],g.hm&&g.hm();b=this.Al.Wc();c=0;for(a=b.length;c<a;c++)b[c].hm();this.Mc--};b.prototype.en=function(c){var a=this.aa;this.aa.cu();var b,f,k,d,l,m,g;if(this.q)for(b=0,f=this.n.length;b<f;b++)l=this.n[b],l.B||!l.Jj||l.global&&0!==l.c.length||
-1!==c.Dg.indexOf(l)||l.Jj();a==c&&(this.jd.Mb.length=0);c.cm();b=0;for(f=this.n.length;b<f;b++)if(l=this.n[b],l.global||l.ra.rj)for(c=0,a=l.c.length;c<a;c++)if(m=l.c[c],m.Fl&&m.Fl(),m.G)for(k=0,d=m.G.length;k<d;k++)g=m.G[k],g.Fl&&g.Fl();this.ll=this.ha=!0;this.hb()};b.prototype.im=function(c){this.zl.add(c)};b.prototype.eu=function(c){this.Al.add(c)};b.prototype.Ik=function(c){return c&&-1!==c.bh?this.vd*c.bh:this.De};b.prototype.Jc=function(){this.aa.Jc(this.ca);this.eb&&this.ca.present()};b.prototype.Sb=
function(){this.aa.Sb(this.q);this.q.Gt()};b.prototype.Jq=function(c){c&&this.sk.push(c)};b.prototype.qi=function(c){c=c.toString();return this.he.hasOwnProperty(c)?this.he[c]:null};var l=[];b.prototype.Pd=function(c){var a,b;a=c.type.name;var f=null;if(this.Ae.hasOwnProperty(a)){if(f=this.Ae[a],f.contains(c))return}else f=l.length?l.pop():new ca,this.Ae[a]=f;f.add(c);this.de=!0;if(c.ic)for(a=0,b=c.siblings.length;a<b;a++)this.Pd(c.siblings[a]);this.bl&&f.fg.push(c);this.Mc++;this.trigger(Object.getPrototypeOf(c.type.ra).i.fq,
c);this.Mc--};b.prototype.hb=function(){if(this.de){var c,a,b,f,k,l;this.bl=!0;b=0;for(k=this.Ic.length;b<k;++b)for(c=this.Ic[b],a=c.type,a.c.push(c),f=0,l=a.qa.length;f<l;++f)a.qa[f].c.push(c),a.qa[f].Zf=!0;this.Ic.length=0;this.Wp();Ua(this.Ae);this.de=this.bl=!1}};b.prototype.Wp=function(){for(var c in this.Ae)this.Ae.hasOwnProperty(c)&&this.Lp(this.Ae[c])};b.prototype.Lp=function(c){var a=c.Wc(),b=a[0].type,f,k,d,m,g,h;Va(b.c,c);b.Zf=!0;0===b.c.length&&(b.Kh=!1);f=0;for(k=b.qa.length;f<k;++f)h=
b.qa[f],Va(h.c,c),h.Zf=!0;f=0;for(k=this.jd.Mb.length;f<k;++f)if(g=this.jd.Mb[f],g.tb.hasOwnProperty(b.index)&&Va(g.tb[b.index].Bd,c),!b.B)for(d=0,m=b.qa.length;d<m;++d)h=b.qa[d],g.tb.hasOwnProperty(h.index)&&Va(g.tb[h.index].Bd,c);if(g=a[0].d){if(g.Vc)for(d=g.c,f=0,k=d.length;f<k;++f)m=d[f],c.contains(m)&&(m.ma(),g.Yb.update(m,m.Ib,null),m.Ib.set(0,0,-1,-1));Va(g.c,c);g.wh(0)}for(f=0;f<a.length;++f)this.Kp(a[f],b);c.clear();l.push(c);this.ha=!0};b.prototype.Kp=function(c,a){var b,f,k;b=0;for(f=this.sk.length;b<
f;++b)this.sk[b](c);c.Xd&&a.Uh.update(c,c.Xd,null);(b=c.d)&&b.Sf(c,!0);if(c.G)for(b=0,f=c.G.length;b<f;++b)k=c.G[b],k.eh&&k.eh(),k.behavior.Kf.remove(c);this.Co.remove(c);this.zl.remove(c);this.Al.remove(c);c.eh&&c.eh();this.he.hasOwnProperty(c.uid.toString())&&delete this.he[c.uid.toString()];this.Ui--;100>a.bi.length&&a.bi.push(c)};b.prototype.bn=function(c,a,b,f){if(c.B){var k=Q(Math.random()*c.If.length);return this.bn(c.If[k],a,b,f)}return c.rc?this.Zd(c.rc,a,!1,b,f,!1):null};var w=[];b.prototype.Zd=
function(c,a,b,f,k,l){var d,m,g,h;if(!c)return null;var r=this.n[c[1]],n=r.ra.fe;if(this.Bf&&n&&!r.cl||n&&!this.q&&11===c[0][11])return null;var E=a;n||(a=null);var e;r.bi.length?(e=r.bi.pop(),e.Rc=!0,r.ra.Ea.call(e,r)):(e=new r.ra.Ea(r),e.Rc=!1);e.uid=b&&!l?c[2]:this.dh++;this.he[e.uid.toString()]=e;e.Wo=this.yo++;e.Ke=r.c.length;d=0;for(m=this.Ic.length;d<m;++d)this.Ic[d].type===r&&e.Ke++;e.zg=yb;e.toString=zb;g=c[3];if(e.Rc)Ua(e.wa);else{e.wa={};if("undefined"!==typeof cr_is_preview)for(e.Hn=[],
e.Hn.length=g.length,d=0,m=g.length;d<m;d++)e.Hn[d]=g[d][1];e.La=[];e.La.length=g.length}d=0;for(m=g.length;d<m;d++)e.La[d]=g[d][0];if(n){var t=c[0];e.x=ha(f)?t[0]:f;e.y=ha(k)?t[1]:k;e.z=t[2];e.width=t[3];e.height=t[4];e.depth=t[5];e.e=t[6];e.opacity=t[7];e.Cb=t[8];e.Db=t[9];e.ub=t[10];d=t[11];!this.q&&r.H.length&&(e.ub=d);e.pg=cb(e.ub);this.m&&db(e,e.ub,this.m);if(e.Rc){d=0;for(m=t[12].length;d<m;d++)for(g=0,h=t[12][d].length;g<h;g++)e.va[d][g]=t[12][d][g];e.Aa.set(0,0,0,0);e.Xd.set(0,0,-1,-1);e.Ib.set(0,
0,-1,-1);e.Pb.Wf(e.Aa);e.ck.length=0}else{e.va=t[12].slice(0);d=0;for(m=e.va.length;d<m;d++)e.va[d]=t[12][d].slice(0);e.U=[];e.Rd=[];e.Rd.length=r.H.length;e.Aa=new S(0,0,0,0);e.Xd=new S(0,0,-1,-1);e.Ib=new S(0,0,-1,-1);e.Pb=new va;e.ck=[];e.xa=Cb;e.Mq=Db;e.bb=Eb;e.ma=Fb;e.ku=Gb;e.rm=Hb;e.wc=Ib}e.Eh=!1;e.hu=0;e.gu=0;e.fu=null;14===t.length&&(e.Eh=!0,e.hu=t[13][0],e.gu=t[13][1],e.fu=t[13][2]);d=0;for(m=r.H.length;d<m;d++)e.Rd[d]=!0;e.Nd=Jb;e.Nd();e.Fp=!!e.U.length;e.Ph=!0;e.ek=!0;r.Jh=!0;e.visible=
!0;e.bh=-1;e.d=a;e.Xc=a.c.length;"undefined"===typeof e.W&&(e.W=null);this.ha=e.ye=!0}var p;d=w.length=0;for(m=r.qa.length;d<m;d++)w.push.apply(w,r.qa[d].Fa);w.push.apply(w,r.Fa);if(e.Rc)for(d=0,m=w.length;d<m;d++){var u=w[d];p=e.G[d];p.Rc=!0;u.behavior.Ea.call(p,u,e);t=c[4][d];g=0;for(h=t.length;g<h;g++)p.ta[g]=t[g];p.ka();u.behavior.Kf.add(e)}else for(e.G=[],d=0,m=w.length;d<m;d++)u=w[d],p=new u.behavior.Ea(u,e),p.Rc=!1,p.ta=c[4][d].slice(0),p.ka(),e.G.push(p),u.behavior.Kf.add(e);t=c[5];if(e.Rc)for(d=
0,m=t.length;d<m;d++)e.ta[d]=t[d];else e.ta=t.slice(0);this.Ic.push(e);this.de=!0;a&&(a.kg(e,!0),1!==a.Gb||1!==a.Hb)&&(r.Kh=!0);this.Ui++;if(r.ic){if(e.ic=!0,e.Rc?e.siblings.length=0:e.siblings=[],!b&&!l){d=0;for(m=r.Qb.length;d<m;d++)if(r.Qb[d]!==r){if(!r.Qb[d].rc)return null;e.siblings.push(this.Zd(r.Qb[d].rc,E,!1,n?e.x:f,n?e.y:k,!0))}d=0;for(m=e.siblings.length;d<m;d++)for(e.siblings[d].siblings.push(e),g=0;g<m;g++)d!==g&&e.siblings[d].siblings.push(e.siblings[g])}}else e.ic=!1,e.siblings=null;
e.ka();d=0;for(m=e.G.length;d<m;d++)e.G[d].Ct&&e.G[d].Ct();return e};b.prototype.wg=function(c){var a,b;a=0;for(b=this.aa.K.length;a<b;a++){var f=this.aa.K[a];if(fb(f.name,c))return f}return null};b.prototype.zd=function(c){c=Q(c);0>c&&(c=0);c>=this.aa.K.length&&(c=this.aa.K.length-1);return this.aa.K[c]};b.prototype.jk=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].Y().da=!0};b.prototype.qh=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].qh()};b.prototype.Ml=function(c){var a,b;a=0;for(b=
c.length;a<b;a++)c[a].Ml()};b.prototype.Rf=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].Rf()};b.prototype.Cp=function(c){if(c.Jh){var a,b,f=c.c;a=0;for(b=f.length;a<b;++a)f[a].rm();f=this.Ic;a=0;for(b=f.length;a<b;++a)f[a].type===c&&f[a].rm();c.Jh=!1}};b.prototype.hs=function(c,a,b,f){var k,d,l=c?1!==c.Gb||1!==c.Hb:!1;if(a.B)for(c=0,k=a.If.length;c<k;++c)d=a.If[c],l||d.Kh?za(f,d.c):(this.Cp(d),d.Uh.jj(b,f));else l||a.Kh?za(f,a.c):(this.Cp(a),a.Uh.jj(b,f))};b.prototype.$f=function(c,a,b,f){var k=
c.Y(),d,l,m,g,h,e;if(k.da)for(f||(k.da=!1,k.c.length=0),d=0,g=c.c.length;d<g;d++){if(m=c.c[d],m.ma(),h=m.d.pa(a,b,!0),e=m.d.pa(a,b,!1),m.bb(h,e)){if(f)return!1;k.c.push(m)}}else{d=l=0;for(g=k.c.length;d<g;d++)if(m=k.c[d],m.ma(),h=m.d.pa(a,b,!0),e=m.d.pa(a,b,!1),m.bb(h,e)){if(f)return!1;k.c[l]=k.c[d];l++}f||(k.c.length=l)}c.pd();return f?!0:k.Tk()};b.prototype.du=function(c,a){if(!(c&&a&&c!==a&&c.ye&&a.ye))return!1;c.ma();a.ma();var b=c.d,f=a.d,k,d,l,m,g,h,e,r;if(b===f||b.Gb===f.Gb&&f.Hb===f.Hb&&b.scale===
f.scale&&b.e===f.e&&b.mb===f.mb){if(!c.Aa.Os(a.Aa)||!c.Pb.In(a.Pb)||c.Eh&&a.Eh)return!1;if(c.Eh)return this.qp(c,a);if(a.Eh)return this.qp(a,c);e=c.W&&!c.W.xf();k=a.W&&!a.W.xf();if(!e&&!k)return!0;e?(c.W.hf(c.width,c.height,c.e),e=c.W):(this.Tc.Vf(c.Pb,c.x,c.y,c.width,c.height),e=this.Tc);k?(a.W.hf(a.width,a.height,a.e),r=a.W):(this.Tc.Vf(a.Pb,a.x,a.y,a.width,a.height),r=this.Tc);return e.Eg(r,a.x-c.x,a.y-c.y)}e=c.W&&!c.W.xf();k=a.W&&!a.W.xf();e?(c.W.hf(c.width,c.height,c.e),this.Tc.gp(c.W)):this.Tc.Vf(c.Pb,
c.x,c.y,c.width,c.height);e=this.Tc;k?(a.W.hf(a.width,a.height,a.e),this.fm.gp(a.W)):this.fm.Vf(a.Pb,a.x,a.y,a.width,a.height);r=this.fm;k=0;for(d=e.Qc;k<d;k++)l=2*k,m=l+1,g=e.Oa[l],h=e.Oa[m],e.Oa[l]=b.pb(g+c.x,h+c.y,!0),e.Oa[m]=b.pb(g+c.x,h+c.y,!1);e.ma();k=0;for(d=r.Qc;k<d;k++)l=2*k,m=l+1,g=r.Oa[l],h=r.Oa[m],r.Oa[l]=f.pb(g+a.x,h+a.y,!0),r.Oa[m]=f.pb(g+a.x,h+a.y,!1);r.ma();return e.Eg(r,0,0)};var t=new va;new S(0,0,0,0);var m=[];b.prototype.qp=function(c,a){var b,f,k,d,l=a.Aa,g=c.x,h=c.y;c.wv(l,
m);var e=a.W&&!a.W.xf();b=0;for(f=m.length;b<f;++b)if(k=m[b],d=k.Dv,l.Ps(d,g,h)&&(t.Wf(d),t.offset(g,h),t.In(a.Pb)))if(e)if(a.W.hf(a.width,a.height,a.e),k.Kl){if(k.Kl.Eg(a.W,a.x-(g+d.left),a.y-(h+d.top)))return m.length=0,!0}else{if(this.Tc.Vf(t,0,0,d.right-d.left,d.bottom-d.top),this.Tc.Eg(a.W,a.x,a.y))return m.length=0,!0}else if(k.Kl){if(this.Tc.Vf(a.Pb,0,0,a.width,a.height),k.Kl.Eg(this.Tc,-(g+d.left),-(h+d.top)))return m.length=0,!0}else return m.length=0,!0;m.length=0;return!1};b.prototype.xp=
function(c,a){if(!a)return!1;var b,f,k,d,l;b=0;for(f=c.Fa.length;b<f;b++)if(c.Fa[b].behavior instanceof a)return!0;if(!c.B)for(b=0,f=c.qa.length;b<f;b++)for(l=c.qa[b],k=0,d=l.Fa.length;k<d;k++)if(l.Fa[k].behavior instanceof a)return!0;return!1};b.prototype.yp=function(c){return this.xp(c,Yb.Pu)};b.prototype.mm=function(c){return this.xp(c,Yb.Qu)};var E=-1;b.prototype.trigger=function(c,a,b){if(!this.aa)return!1;var f=this.aa.Ee;if(!f)return!1;var k=!1,d,l,m;E++;var g=f.qk;l=0;for(m=g.length;l<m;++l)d=
this.up(c,a,g[l],b),k=k||d;d=this.up(c,a,f,b);E--;return k||d};b.prototype.up=function(c,a,b,f){var k=!1,d,l,m,g;if(a)for(m=this.km(c,a,a.type.name,b,f),k=k||m,g=a.type.qa,d=0,l=g.length;d<l;++d)m=this.km(c,a,g[d].name,b,f),k=k||m;else m=this.km(c,a,"system",b,f),k=k||m;return k};b.prototype.km=function(c,a,b,f,k){var d,l=!1,m=!1,m="undefined"!==typeof k,g=(m?f.nn:f.vp)[b];if(!g)return l;var h=null;f=0;for(d=g.length;f<d;++f)if(g[f].method==c){h=g[f].tg;break}if(!h)return l;c=m?h[k]:h;if(!c)return null;
f=0;for(d=c.length;f<d;f++)k=c[f][0],m=c[f][1],m=this.Yr(a,b,k,m),l=l||m;return l};b.prototype.Yr=function(c,a,b,f){var k,d,l=!1;this.lm++;var m=this.ob().Rb;m&&this.qh(m.me);var g=1<this.lm;this.qh(b.me);g&&this.It();var h=this.Nl(b);h.Rb=b;c&&(k=this.types[a].Y(),k.da=!1,k.c.length=1,k.c[0]=c,this.types[a].pd());c=!0;if(b.parent){a=h.pp;for(k=b.parent;k;)a.push(k),k=k.parent;a.reverse();k=0;for(d=a.length;k<d;k++)if(!a[k].Qt()){c=!1;break}}c&&(this.gi++,b.Oc?b.Pt(f):b.Qa(),l=l||h.Re);this.So();
g&&this.Bt();this.Rf(b.me);m&&this.Rf(m.me);this.de&&0===this.Mc&&0===E&&!this.dl&&this.hb();this.lm--;return l};b.prototype.oi=function(){var c=this.ob();return c.Rb.jb[c.Ab]};b.prototype.It=function(){this.Ri++;this.Ri>=this.ql.length&&this.ql.push([])};b.prototype.Bt=function(){this.Ri--};b.prototype.tn=function(){return this.ql[this.Ri]};b.prototype.Nl=function(c){this.fi++;this.fi>=this.vk.length&&this.vk.push(new Kb);var a=this.ob();a.reset(c);return a};b.prototype.So=function(){this.fi--};
b.prototype.ob=function(){return this.vk[this.fi]};b.prototype.un=function(c,a){for(var b,f,k,d,l,m;a;){b=0;for(f=a.Ec.length;b<f;b++)if(m=a.Ec[b],m instanceof Lb&&fb(c,m.name))return m;a=a.parent}b=0;for(f=this.wd.length;b<f;b++)for(l=this.wd[b],k=0,d=l.ae.length;k<d;k++)if(m=l.ae[k],m instanceof Lb&&fb(c,m.name))return m;return null};b.prototype.wn=function(c){var a,b;a=0;for(b=this.Wb.length;a<b;a++)if(this.Wb[a].P===c)return this.Wb[a];return null};b.prototype.ri=function(c){var a,b;a=0;for(b=
this.n.length;a<b;a++)if(this.n[a].P===c)return this.n[a];return null};b.prototype.ks=function(c){var a,b;a=0;for(b=this.Td.length;a<b;a++)if(this.Td[a].P===c)return this.Td[a];return null};b.prototype.Is=function(){var c=this,b=this.oj,f=this.Dd,k=this.Sg,d=!1;this.lp&&(d=!0,b="__c2_continuouspreview",this.lp=!1);if(b.length){this.hb();f=this.Ut();if(window.indexedDB&&!this.hc)h(b,f,function(){I("Saved state to IndexedDB storage ("+f.length+" bytes)");c.Dd=f;c.trigger(Y.prototype.i.Uj,null);c.Dd=
"";d&&g()},function(a){try{localStorage.setItem("__c2save_"+b,f),I("Saved state to WebStorage ("+f.length+" bytes)"),c.Dd=f,c.trigger(Y.prototype.i.Uj,null),c.Dd="",d&&g()}catch(k){I("Failed to save game state: "+a+"; "+k)}});else try{localStorage.setItem("__c2save_"+b,f),I("Saved state to WebStorage ("+f.length+" bytes)"),c.Dd=f,this.trigger(Y.prototype.i.Uj,null),c.Dd="",d&&g()}catch(l){I("Error saving to WebStorage: "+l)}this.rb=this.Sg=this.oj=""}k.length&&(window.indexedDB&&!this.hc?a(k,function(a){a?
(c.rb=a,I("Loaded state from IndexedDB storage ("+c.rb.length+" bytes)")):(c.rb=localStorage.getItem("__c2save_"+k)||"",I("Loaded state from WebStorage ("+c.rb.length+" bytes)"));c.Ah=!1;c.rb.length||c.trigger(Y.prototype.i.Sj,null)},function(){c.rb=localStorage.getItem("__c2save_"+k)||"";I("Loaded state from WebStorage ("+c.rb.length+" bytes)");c.Ah=!1;c.rb.length||c.trigger(Y.prototype.i.Sj,null)}):(this.rb=localStorage.getItem("__c2save_"+k)||"",I("Loaded state from WebStorage ("+this.rb.length+
" bytes)"),this.Ah=!1,c.rb.length||c.trigger(Y.prototype.i.Sj,null)),this.oj=this.Sg="");this.rb.length&&(this.hb(),this.$s(this.rb),this.Dd=this.rb,this.trigger(Y.prototype.i.rq,null),this.rb=this.Dd="")};b.prototype.Ut=function(){var c,a,b,f,k,l,m,g={c2save:!0,version:1,rt:{time:this.jc.ba,walltime:this.md.ba,timescale:this.bg,tickcount:this.ag,execcount:this.gi,next_uid:this.dh,running_layout:this.aa.P,start_time_offset:Date.now()-this.wj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},
vars:{}}};c=0;for(a=this.n.length;c<a;c++)if(k=this.n[c],!k.B&&!this.yp(k)){l={instances:[]};Ta(k.wa)&&(l.ex=d(k.wa));b=0;for(f=k.c.length;b<f;b++)l.instances.push(this.Wl(k.c[b]));g.types[k.P.toString()]=l}c=0;for(a=this.Wb.length;c<a;c++)b=this.Wb[c],g.layouts[b.P.toString()]=b.Zb();f=g.events.groups;c=0;for(a=this.Td.length;c<a;c++)b=this.Td[c],f[b.P.toString()]=this.si[b.Ag].pf;a=g.events.cnds;for(m in this.jf)this.jf.hasOwnProperty(m)&&(c=this.jf[m],Ta(c.wa)&&(a[m]={ex:d(c.wa)}));a=g.events.acts;
for(m in this.ff)this.ff.hasOwnProperty(m)&&(c=this.ff[m],Ta(c.wa)&&(a[m]={ex:c.wa}));a=g.events.vars;for(m in this.gg)this.gg.hasOwnProperty(m)&&(c=this.gg[m],c.Ci||c.parent&&!c.Kg||(a[m]=c.data));g.system=this.jd.Zb();return JSON.stringify(g)};b.prototype.Xo=function(){var c,a,b,f,k,d;this.he={};c=0;for(a=this.n.length;c<a;c++)if(b=this.n[c],!b.B)for(f=0,k=b.c.length;f<k;f++)d=b.c[f],this.he[d.uid.toString()]=d};b.prototype.$s=function(c){c=JSON.parse(c);if(c.c2save&&!(1<c.version)){var a=c.rt;
this.jc.reset();this.jc.ba=a.time;this.md.reset();this.md.ba=a.walltime||0;this.bg=a.timescale;this.ag=a.tickcount;this.gi=a.execcount;this.wj=Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.aa.P)if(b=this.wn(b))this.en(b);else return;var f,k,d,l,m,g,h;g=c.types;for(k in g)if(g.hasOwnProperty(k)&&(l=this.ri(parseInt(k,10)))&&!l.B&&!this.yp(l)){g[k].ex?l.wa=g[k].ex:Ua(l.wa);m=l.c;d=g[k].instances;b=0;for(f=oa(m.length,d.length);b<f;b++)this.Mi(m[b],d[b]);b=d.length;for(f=m.length;b<
f;b++)this.Pd(m[b]);b=m.length;for(f=d.length;b<f;b++){m=null;if(l.ra.fe&&(m=this.aa.pi(d[b].w.l),!m))continue;m=this.Zd(l.rc,m,!1,0,0,!0);this.Mi(m,d[b])}l.Zf=!0}this.hb();this.Xo();f=c.layouts;for(k in f)f.hasOwnProperty(k)&&(b=this.wn(parseInt(k,10)))&&b.Ac(f[k]);f=c.events.groups;for(k in f)f.hasOwnProperty(k)&&(b=this.ks(parseInt(k,10)))&&this.si[b.Ag]&&(this.si[b.Ag].pf=f[k]);b=c.events.cnds;for(k in b)b.hasOwnProperty(k)&&this.jf.hasOwnProperty(k)&&(this.jf[k].wa=b[k].ex);b=c.events.acts;for(k in b)b.hasOwnProperty(k)&&
this.ff.hasOwnProperty(k)&&(this.ff[k].wa=b[k].ex);b=c.events.vars;for(k in b)b.hasOwnProperty(k)&&this.gg.hasOwnProperty(k)&&(this.gg[k].data=b[k]);this.dh=a.next_uid;this.jd.Ac(c.system);b=0;for(f=this.n.length;b<f;b++)if(l=this.n[b],!l.B)for(k=0,c=l.c.length;k<c;k++){m=l.c[k];if(l.ic)for(g=m.zg(),a=m.siblings.length=0,d=l.Qb.length;a<d;a++)h=l.Qb[a],l!==h&&m.siblings.push(h.c[g]);m.nd&&m.nd();if(m.G)for(a=0,d=m.G.length;a<d;a++)g=m.G[a],g.nd&&g.nd()}this.ha=!0}};b.prototype.Wl=function(a,b){var f,
k,m,l,g;l=a.type;m=l.ra;var h={};b?h.c2=!0:h.uid=a.uid;Ta(a.wa)&&(h.ex=d(a.wa));if(a.La&&a.La.length)for(h.ivs={},f=0,k=a.La.length;f<k;f++)h.ivs[a.type.al[f].toString()]=a.La[f];if(m.fe){m={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.P,zi:a.wc()};0!==a.e&&(m.a=a.e);1!==a.opacity&&(m.o=a.opacity);.5!==a.Cb&&(m.hX=a.Cb);.5!==a.Db&&(m.hY=a.Db);0!==a.ub&&(m.bm=a.ub);a.visible||(m.v=a.visible);a.ye||(m.ce=a.ye);-1!==a.bh&&(m.mts=a.bh);if(l.H.length)for(m.fx=[],f=0,k=l.H.length;f<k;f++)g=l.H[f],m.fx.push({name:g.name,
active:a.Rd[g.index],params:a.va[g.index]});h.w=m}if(a.G&&a.G.length)for(h.behs={},f=0,k=a.G.length;f<k;f++)l=a.G[f],l.Zb&&(h.behs[l.type.P.toString()]=l.Zb());a.Zb&&(h.data=a.Zb());return h};b.prototype.ms=function(a,b){var f,k;f=0;for(k=a.al.length;f<k;f++)if(a.al[f]===b)return f;return-1};b.prototype.gs=function(a,b){var f,k;f=0;for(k=a.G.length;f<k;f++)if(a.G[f].type.P===b)return f;return-1};b.prototype.Mi=function(a,b,f){var k,d,m,l,g;g=a.type;m=g.ra;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?
a.wa=b.ex:Ua(a.wa);if(d=b.ivs)for(k in d)d.hasOwnProperty(k)&&(f=this.ms(g,parseInt(k,10)),0>f||f>=a.La.length||(a.La[f]=d[k]));if(m.fe){m=b.w;a.d.P!==m.l&&(f=a.d,a.d=this.aa.pi(m.l),a.d?(f.Sf(a,!0),a.d.kg(a,!0),a.xa(),a.d.wh(0)):(a.d=f,this.Pd(a)));a.x=m.x;a.y=m.y;a.width=m.w;a.height=m.h;a.Xc=m.zi;a.e=m.hasOwnProperty("a")?m.a:0;a.opacity=m.hasOwnProperty("o")?m.o:1;a.Cb=m.hasOwnProperty("hX")?m.hX:.5;a.Db=m.hasOwnProperty("hY")?m.hY:.5;a.visible=m.hasOwnProperty("v")?m.v:!0;a.ye=m.hasOwnProperty("ce")?
m.ce:!0;a.bh=m.hasOwnProperty("mts")?m.mts:-1;a.ub=m.hasOwnProperty("bm")?m.bm:0;a.pg=cb(a.ub);this.m&&db(a,a.ub,this.m);a.xa();if(m.hasOwnProperty("fx"))for(f=0,d=m.fx.length;f<d;f++)l=g.Kk(m.fx[f].name),0>l||(a.Rd[l]=m.fx[f].active,a.va[l]=m.fx[f].params);a.Nd()}if(g=b.behs)for(k in g)g.hasOwnProperty(k)&&(m=this.gs(a,parseInt(k,10)),0>m||a.G[m].Ac(g[k]));b.data&&a.Ac(b.data)};Mb=function(a){return new b(document.getElementById(a))};Nb=function(a,f){return new b({dc:!0,width:a,height:f})};window.cr_createRuntime=
Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Fv=!0;document.body.appendChild(a);a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));
window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,p){if(0!==e&&0!==p){var b=window.cr_getC2Runtime();b&&b.setSize(e,p)}};window.cr_setSuspended=function(e){var p=window.cr_getC2Runtime();p&&p.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.Ee=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.e=0;this.nf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.zp=b[3];this.jp=b[4];this.P=b[5];var d=b[6],l,g;this.K=[];this.Dg=[];l=0;for(g=d.length;l<g;l++){var h=new Ob(this,d[l]);h.Ao=l;this.K.push(h)}d=b[7];this.Le=[];l=0;for(g=d.length;l<g;l++){var h=d[l],m=this.b.n[h[1]];m.rc||(m.rc=h);this.Le.push(h);-1===this.Dg.indexOf(m)&&this.Dg.push(m)}this.H=[];this.U=[];this.va=
[];l=0;for(g=b[8].length;l<g;l++)this.H.push({id:b[8][l][0],name:b[8][l][1],gb:-1,Ua:!0,index:l}),this.va.push(b[8][l][2].slice(0));this.Nd();this.sh=new S(0,0,1,1);this.Pl=new S(0,0,1,1);this.ie={}}function p(a,b){return a.Xc-b.Xc}function b(a,b){this.Xa=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.Be=!1;this.Ld=new S(0,0,0,0);this.sp=new va;this.Ja=this.za=this.Ka=this.ya=0;this.bf=!1;this.Od=-1;this.name=b[0];this.index=b[1];this.P=b[2];this.visible=b[3];this.Vd=b[4];this.Md=b[5];this.Gb=
b[6];this.Hb=b[7];this.opacity=b[8];this.Ck=b[9];this.Vc=b[10];this.mb=b[11];this.ub=b[12];this.ur=b[13];this.pg="source-over";this.kb=this.lb=0;this.Yb=null;this.Df=n();this.Id=!0;this.Ii=new S(0,0,-1,-1);this.qc=new S(0,0,-1,-1);this.Vc&&(this.Yb=new bb(this.b.Na,this.b.Ma));this.je=!1;var d=b[14],l,g;this.sf=[];l=0;for(g=d.length;l<g;l++){var h=d[l],m=this.b.n[h[1]];m.rc||(m.rc=h,m.br=this.index);this.sf.push(h);-1===this.Xa.Dg.indexOf(m)&&this.Xa.Dg.push(m)}this.H=[];this.U=[];this.va=[];l=0;
for(g=b[15].length;l<g;l++)this.H.push({id:b[15][l][0],name:b[15][l][1],gb:-1,Ua:!0,index:l}),this.va.push(b[15][l][2].slice(0));this.Nd();this.sh=new S(0,0,1,1);this.Pl=new S(0,0,1,1)}function n(){return d.length?d.pop():[]}function h(a){a.length=0;d.push(a)}e.prototype.Tt=function(a){var b=a.type.P.toString();this.ie.hasOwnProperty(b)||(this.ie[b]=[]);this.ie[b].push(this.b.Wl(a))};e.prototype.An=function(){var a=this.K[0];return!a.Md&&1===a.opacity&&!a.Ck&&a.visible};e.prototype.Nd=function(){this.U.length=
0;var a,b,d;a=0;for(b=this.H.length;a<b;a++)d=this.H[a],d.Ua&&this.U.push(d)};e.prototype.Jk=function(a){var b,d,l;b=0;for(d=this.H.length;b<d;b++)if(l=this.H[b],l.name===a)return l;return null};var a=[],g=!0;e.prototype.cm=function(){this.jp&&(this.Ee=this.b.wk[this.jp],this.Ee.nm());this.b.aa=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var b,f,d,l,h,e,m;b=0;for(d=this.b.n.length;b<d;b++)if(f=this.b.n[b],!f.B)for(h=f.c,f=0,l=h.length;f<l;f++)if(e=h[f],e.d){var n=e.d.Ao;n>=this.K.length&&
(n=this.K.length-1);e.d=this.K[n];-1===e.d.c.indexOf(e)&&e.d.c.push(e);e.d.bf=!0}if(!g)for(b=0,d=this.K.length;b<d;++b)this.K[b].c.sort(p);a.length=0;this.Rq();b=0;for(d=this.K.length;b<d;b++)e=this.K[b],e.Zq(),e.pm();h=!1;if(!this.nf){for(m in this.ie)if(this.ie.hasOwnProperty(m)&&(f=this.b.ri(parseInt(m,10)))&&!f.B&&this.b.mm(f)){l=this.ie[m];b=0;for(d=l.length;b<d;b++){e=null;if(f.ra.fe&&(e=this.pi(l[b].w.l),!e))continue;e=this.b.Zd(f.rc,e,!1,0,0,!0);this.b.Mi(e,l[b]);h=!0;a.push(e)}l.length=0}b=
0;for(d=this.K.length;b<d;b++)this.K[b].c.sort(p),this.K[b].bf=!0}h&&(this.b.hb(),this.b.Xo());for(b=0;b<a.length;b++)if(e=a[b],e.type.ic)for(d=e.zg(),f=0,l=e.type.Qb.length;f<l;f++)m=e.type.Qb[f],e.type!==m&&(m.c.length>d?e.siblings.push(m.c[d]):m.rc&&(h=this.b.Zd(m.rc,e.d,!0,e.x,e.y,!0),this.b.hb(),m.Kj(),e.siblings.push(h),a.push(h)));b=0;for(d=this.Le.length;b<d;b++)this.b.Zd(this.Le[b],null,!0);this.b.xe=null;this.b.hb();if(this.b.ca&&!this.b.ea)for(b=0,d=this.b.n.length;b<d;b++)m=this.b.n[b],
!m.B&&m.c.length&&m.hj&&m.hj(this.b.ca);b=0;for(d=a.length;b<d;b++)e=a[b],this.b.trigger(Object.getPrototypeOf(e.type.ra).i.Qj,e);a.length=0;this.b.trigger(Y.prototype.i.Dm,null);this.nf=!1};e.prototype.Yq=function(){var a,b,d,l,g;b=a=0;for(d=this.Le.length;a<d;a++)l=this.Le[a],g=this.b.n[l[1]],g.global?this.b.Zd(l,null,!0):(this.Le[b]=l,b++);this.Le.length=b};e.prototype.cu=function(){this.b.trigger(Y.prototype.i.qq,null);this.b.jd.Mb.length=0;var a,b,d,l,h,e;if(!this.nf)for(a=0,b=this.K.length;a<
b;a++)for(this.K[a].qm(),h=this.K[a].c,d=0,l=h.length;d<l;d++)e=h[d],e.type.global||this.b.mm(e.type)&&this.Tt(e);a=0;for(b=this.K.length;a<b;a++){h=this.K[a].c;d=0;for(l=h.length;d<l;d++)e=h[d],e.type.global||this.b.Pd(e);this.b.hb();h.length=0;this.K[a].bf=!0}a=0;for(b=this.b.n.length;a<b;a++)if(h=this.b.n[a],!(h.global||h.ra.fe||h.ra.rj||h.B)){d=0;for(l=h.c.length;d<l;d++)this.b.Pd(h.c[d]);this.b.hb()}g=!1};new S(0,0,0,0);e.prototype.Jc=function(a){var b,d=a,l=!1,g=!this.b.uc;g&&(this.b.Li||(this.b.Li=
document.createElement("canvas"),b=this.b.Li,b.width=this.b.M,b.height=this.b.L,this.b.Xn=b.getContext("2d"),l=!0),b=this.b.Li,d=this.b.Xn,b.width!==this.b.M&&(b.width=this.b.M,l=!0),b.height!==this.b.L&&(b.height=this.b.L,l=!0),l&&(d.webkitImageSmoothingEnabled=this.b.S,d.mozImageSmoothingEnabled=this.b.S,d.msImageSmoothingEnabled=this.b.S,d.imageSmoothingEnabled=this.b.S));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.Zj&&!this.An()&&d.clearRect(0,0,this.b.M,this.b.L);var h,m,
l=0;for(h=this.K.length;l<h;l++)m=this.K[l],m.visible&&0<m.opacity&&11!==m.ub&&(m.c.length||!m.Md)?m.Jc(d):m.pm();g&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.Sb=function(a){var b=0<this.U.length||this.b.eg||!this.b.uc;if(b){this.b.Vb||(this.b.Vb=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.Vb.ng!==this.b.M||this.b.Vb.mg!==this.b.L)a.deleteTexture(this.b.Vb),this.b.Vb=a.Yd(this.b.M,this.b.L,this.b.S);a.gd(this.b.Vb);this.b.uc||a.Uf(this.b.M,this.b.L)}else this.b.Vb&&(a.gd(null),a.deleteTexture(this.b.Vb),
this.b.Vb=null);this.b.Zj&&!this.An()&&a.clear(0,0,0,0);var d,l,g;d=0;for(l=this.K.length;d<l;d++)g=this.K[d],g.visible&&0<g.opacity&&(g.c.length||!g.Md)?g.Sb(a):g.pm();b&&(0===this.U.length||1===this.U.length&&this.b.uc?(1===this.U.length?(b=this.U[0].index,a.hd(this.U[0].gb),a.Tf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.e,0,0,this.b.M/2,this.b.L/2,this.va[b]),a.ij(this.U[0].gb)&&(this.b.ha=!0)):a.hd(0),this.b.uc||a.Uf(this.b.width,this.b.height),a.gd(null),a.Ye(1),a.$b(this.b.Vb),a.dp(),
a.ke(),a.se(),b=this.b.width/2,d=this.b.height/2,a.rh(-b,d,b,d,b,-d,-b,-d),a.$b(null)):this.Ql(a,null,null,null))};e.prototype.xg=function(){return 0<this.U.length||this.b.eg||!this.b.uc?this.b.Vb:null};e.prototype.xn=function(){var a=this.K[0].vc(),b,d,l;b=1;for(d=this.K.length;b<d;b++)l=this.K[b],(0!==l.Gb||0!==l.Hb)&&l.vc()<a&&(a=l.vc());return a};e.prototype.bp=function(a){if(!this.zp){var b=1/this.xn()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ha=
!0)};e.prototype.cp=function(a){if(!this.zp){var b=1/this.xn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ha=!0)};e.prototype.Rq=function(){this.bp(this.scrollX);this.cp(this.scrollY)};e.prototype.Ql=function(a,b,d,l){var g=d?d.U:b?b.U:this.U,h=1,m=0,e=0,c=0,n=this.b.M,q=this.b.L;d?(h=d.d.vc(),m=d.d.Va(),e=d.d.ya,c=d.d.za,n=d.d.Ka,q=d.d.Ja):b&&(h=b.vc(),m=b.Va(),e=b.ya,c=b.za,n=b.Ka,q=b.Ja);var p=this.b.Fk,u,v,y,x,L=0,fa=1,W,D=this.b.M,s=this.b.L,
ua=D/2,N=s/2,G=b?b.sh:this.sh,C=b?b.Pl:this.Pl,H=0,J=0,B=0,O=0,K=D,ka=D,M=s,pa=s,da=y=0,sa=d?d.d.Va():0;if(d){u=0;for(v=g.length;u<v;u++)y+=a.qs(g[u].gb),da+=a.rs(g[u].gb);x=d.Aa;H=b.pb(x.left,x.top,!0,!0);B=b.pb(x.left,x.top,!1,!0);K=b.pb(x.right,x.bottom,!0,!0);M=b.pb(x.right,x.bottom,!1,!0);0!==sa&&(u=b.pb(x.right,x.top,!0,!0),v=b.pb(x.right,x.top,!1,!0),J=b.pb(x.left,x.bottom,!0,!0),O=b.pb(x.left,x.bottom,!1,!0),x=Math.min(H,K,u,J),K=Math.max(H,K,u,J),H=x,x=Math.min(B,M,v,O),M=Math.max(B,M,v,
O),B=x);H-=y;B-=da;K+=y;M+=da;C.left=H/D;C.top=1-B/s;C.right=K/D;C.bottom=1-M/s;J=H=Q(H);O=B=Q(B);ka=K=ra(K);pa=M=ra(M);J-=y;O-=da;ka+=y;pa+=da;0>H&&(H=0);0>B&&(B=0);K>D&&(K=D);M>s&&(M=s);0>J&&(J=0);0>O&&(O=0);ka>D&&(ka=D);pa>s&&(pa=s);G.left=H/D;G.top=1-B/s;G.right=K/D;G.bottom=1-M/s}else G.left=C.left=0,G.top=C.top=0,G.right=C.right=1,G.bottom=C.bottom=1;da=d&&((d.e||sa)&&a.ph(g[0].gb)||0!==y||0!==da||1!==d.opacity||d.type.ra.wo)||b&&!d&&1!==b.opacity;a.dp();if(da){p[L]||(p[L]=a.Yd(D,s,this.b.S));
if(p[L].ng!==D||p[L].mg!==s)a.deleteTexture(p[L]),p[L]=a.Yd(D,s,this.b.S);a.hd(0);a.gd(p[L]);W=pa-O;a.clearRect(J,s-O-W,ka-J,W);d?d.Sb(a):(a.$b(this.b.kc),a.Ye(b.opacity),a.ke(),a.translate(-ua,-N),a.se(),a.Hd(H,M,K,M,K,B,H,B,G));C.left=C.top=0;C.right=C.bottom=1;d&&(x=G.top,G.top=G.bottom,G.bottom=x);L=1;fa=0}a.Ye(1);y=g.length-1;var sa=a.Ll(g[y].gb)||!b&&!d&&!this.b.uc,ba=0;u=0;for(v=g.length;u<v;u++){p[L]||(p[L]=a.Yd(D,s,this.b.S));if(p[L].ng!==D||p[L].mg!==s)a.deleteTexture(p[L]),p[L]=a.Yd(D,
s,this.b.S);a.hd(g[u].gb);ba=g[u].index;a.ij(g[u].gb)&&(this.b.ha=!0);0!=u||da?(a.Tf(l,1/D,1/s,C.left,C.top,C.right,C.bottom,h,m,e,c,(e+n)/2,(c+q)/2,d?d.va[ba]:b?b.va[ba]:this.va[ba]),a.$b(null),u!==y||sa?(a.gd(p[L]),W=pa-O,x=s-O-W,a.clearRect(J,x,ka-J,W)):(d?a.le(d.lb,d.kb):b&&a.le(b.lb,b.kb),a.gd(l)),a.$b(p[fa]),a.ke(),a.translate(-ua,-N),a.se(),a.Hd(H,M,K,M,K,B,H,B,G),u!==y||sa||a.$b(null)):(a.gd(p[L]),W=pa-O,x=s-O-W,a.clearRect(J,x,ka-J,W),d?(a.Tf(l,1/d.width,1/d.height,C.left,C.top,C.right,C.bottom,
h,m,e,c,(e+n)/2,(c+q)/2,d.va[ba]),d.Sb(a)):(a.Tf(l,1/D,1/s,0,0,1,1,h,m,e,c,(e+n)/2,(c+q)/2,b?b.va[ba]:this.va[ba]),a.$b(b?this.b.kc:this.b.Vb),a.ke(),a.translate(-ua,-N),a.se(),a.Hd(H,M,K,M,K,B,H,B,G)),C.left=C.top=0,C.right=C.bottom=1,d&&!sa&&(x=M,M=B,B=x));L=0===L?1:0;fa=0===L?1:0}sa&&(a.hd(0),d?a.le(d.lb,d.kb):b?a.le(b.lb,b.kb):this.b.uc||(a.Uf(this.b.width,this.b.height),ua=this.b.width/2,N=this.b.height/2,B=H=0,K=this.b.width,M=this.b.height),a.gd(l),a.$b(p[fa]),a.ke(),a.translate(-ua,-N),a.se(),
d&&1===g.length&&!da?a.Hd(H,B,K,B,K,M,H,M,G):a.Hd(H,M,K,M,K,B,H,B,G),a.$b(null))};e.prototype.pi=function(a){var b,d;b=0;for(d=this.K.length;b<d;b++)if(this.K[b].P===a)return this.K[b];return null};e.prototype.Zb=function(){var a,b,d,l={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.e,w:this.width,h:this.height,fv:this.nf,persist:this.ie,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)d=this.H[a],l.fx.push({name:d.name,active:d.Ua,params:this.va[d.index]});a=0;for(b=this.K.length;a<b;a++)d=
this.K[a],l.layers[d.P.toString()]=d.Zb();return l};e.prototype.Ac=function(a){var b,d,l,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.e=a.a;this.width=a.w;this.height=a.h;this.ie=a.persist;"undefined"!==typeof a.fv&&(this.nf=a.fv);var h=a.fx;b=0;for(d=h.length;b<d;b++)if(l=this.Jk(h[b].name))l.Ua=h[b].active,this.va[l.index]=h[b].params;this.Nd();b=a.layers;for(g in b)b.hasOwnProperty(g)&&(a=this.pi(parseInt(g,10)))&&a.Ac(b[g])};Ab=e;b.prototype.Nd=function(){this.U.length=0;var a,b,
d;a=0;for(b=this.H.length;a<b;a++)d=this.H[a],d.Ua&&this.U.push(d)};b.prototype.Jk=function(a){var b,d,l;b=0;for(d=this.H.length;b<d;b++)if(l=this.H[b],l.name===a)return l;return null};b.prototype.Zq=function(){var b,d,g,l,h,e;d=b=0;for(g=this.sf.length;b<g;b++){l=this.sf[b];h=this.b.n[l[1]];e=this.b.mm(h);h=!0;if(!e||this.Xa.nf)l=this.b.Zd(l,this,!0),a.push(l),l.type.global&&(h=!1);h&&(this.sf[d]=this.sf[b],d++)}this.sf.length=d;this.b.hb();!this.b.q&&this.H.length&&(this.ub=this.ur);this.pg=cb(this.ub);
this.b.m&&db(this,this.ub,this.b.m);this.Id=!0};b.prototype.Sf=function(a,b){var d=Aa(this.c,a);0>d||(b&&this.Vc&&a.Ib&&a.Ib.right>=a.Ib.left&&(a.ma(),this.Yb.update(a,a.Ib,null),a.Ib.set(0,0,-1,-1)),d===this.c.length-1?this.c.pop():(xa(this.c,d),this.wh(d)),this.Id=!0)};b.prototype.kg=function(a,b){a.Xc=this.c.length;this.c.push(a);b&&this.Vc&&a.Ib&&a.xa();this.Id=!0};b.prototype.Ft=function(a){this.c.unshift(a);this.wh(0)};b.prototype.ht=function(a,b,d){var l=a.wc();b=b.wc();xa(this.c,l);l<b&&b--;
d&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.wh(l<b?l:b)};b.prototype.wh=function(a){-1===this.Od?this.Od=a:a<this.Od&&(this.Od=a);this.Id=this.bf=!0};b.prototype.qm=function(){if(this.bf){-1===this.Od&&(this.Od=0);var a,b,d;if(this.Vc)for(a=this.Od,b=this.c.length;a<b;++a)d=this.c[a],d.Xc=a,this.Yb.ct(d.Ib);else for(a=this.Od,b=this.c.length;a<b;++a)this.c[a].Xc=a;this.bf=!1;this.Od=-1}};b.prototype.vc=function(a){return this.ns()*(this.b.uc||a?this.b.lg:1)};b.prototype.ns=function(){return(this.scale*
this.Xa.scale-1)*this.mb+1};b.prototype.Va=function(){return this.Be?0:Ea(this.Xa.e+this.e)};var d=[],u=[],v=[];b.prototype.yn=function(){this.qm();this.Yb.jj(this.ya,this.za,this.Ka,this.Ja,v);if(!v.length)return n();if(1===v.length){var a=n();ya(a,v[0]);v.length=0;return a}for(var b=!0;1<v.length;){for(var a=v,d=void 0,l=void 0,g=void 0,e=void 0,m=void 0,d=0,l=a.length;d<l-1;d+=2){var g=a[d],e=a[d+1],m=n(),E=g,c=e,p=m,q=0,z=0,F=0,X=E.length,y=c.length,x=void 0,L=void 0;for(p.length=X+y;q<X&&z<y;++F)x=
E[q],L=c[z],x.Xc<L.Xc?(p[F]=x,++q):(p[F]=L,++z);for(;q<X;++q,++F)p[F]=E[q];for(;z<y;++z,++F)p[F]=c[z];b||(h(g),h(e));u.push(m)}1===l%2&&(b?(g=n(),ya(g,a[l-1]),u.push(g)):u.push(a[l-1]));ya(a,u);u.length=0;b=!1}a=v[0];v.length=0;return a};b.prototype.Jc=function(a){this.je=this.Ck||1!==this.opacity||0!==this.ub;var b=this.b.canvas,d=a,l=!1;this.je&&(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.Wn=b.getContext("2d"),l=!0),b=this.b.Ki,d=
this.b.Wn,b.width!==this.b.M&&(b.width=this.b.M,l=!0),b.height!==this.b.L&&(b.height=this.b.L,l=!0),l&&(d.webkitImageSmoothingEnabled=this.b.S,d.mozImageSmoothingEnabled=this.b.S,d.msImageSmoothingEnabled=this.b.S,d.imageSmoothingEnabled=this.b.S),this.Md&&d.clearRect(0,0,this.b.M,this.b.L));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Md||(d.fillStyle="rgb("+this.Vd[0]+","+this.Vd[1]+","+this.Vd[2]+")",d.fillRect(0,0,this.b.M,this.b.L));d.save();this.Be=!0;var l=this.pa(0,0,!0,!0),
g=this.pa(0,0,!1,!0);this.Be=!1;this.b.fd&&(l=Math.round(l),g=Math.round(g));this.Sl(l,g,d);var e=this.vc();d.scale(e,e);d.translate(-l,-g);this.Vc?(this.qc.left=this.Yb.cc(this.ya),this.qc.top=this.Yb.ec(this.za),this.qc.right=this.Yb.cc(this.Ka),this.qc.bottom=this.Yb.ec(this.Ja),this.Id||!this.qc.ei(this.Ii)?(h(this.Df),l=this.yn(),this.Id=!1,this.Ii.qg(this.qc)):l=this.Df):l=this.c;for(var m,n=null,g=0,e=l.length;g<e;++g)m=l[g],m!==n&&(this.rr(m,d),n=m);this.Vc&&(this.Df=l);d.restore();this.je&&
(a.globalCompositeOperation=this.pg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.rr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var d=a.Aa;d.right<this.ya||d.bottom<this.za||d.left>this.Ka||d.top>this.Ja||(b.globalCompositeOperation=a.pg,a.Jc(b))}};b.prototype.pm=function(){this.Be=!0;var a=this.pa(0,0,!0,!0),b=this.pa(0,0,!1,!0);this.Be=!1;this.b.fd&&(a=Math.round(a),b=Math.round(b));this.Sl(a,b,null)};b.prototype.Sl=function(a,b,d){var l=this.vc();this.ya=a;this.za=
b;this.Ka=a+1/l*this.b.M;this.Ja=b+1/l*this.b.L;a=this.Va();0!==a&&(d&&(d.translate(this.b.M/2,this.b.L/2),d.rotate(-a),d.translate(this.b.M/-2,this.b.L/-2)),this.Ld.set(this.ya,this.za,this.Ka,this.Ja),this.Ld.offset((this.ya+this.Ka)/-2,(this.za+this.Ja)/-2),this.sp.hp(this.Ld,a),this.sp.Vm(this.Ld),this.Ld.offset((this.ya+this.Ka)/2,(this.za+this.Ja)/2),this.ya=this.Ld.left,this.za=this.Ld.top,this.Ka=this.Ld.right,this.Ja=this.Ld.bottom)};b.prototype.Sb=function(a){var b=0,d=0;if(this.je=this.Ck||
1!==this.opacity||0<this.U.length||0!==this.ub){this.b.kc||(this.b.kc=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.kc.ng!==this.b.M||this.b.kc.mg!==this.b.L)a.deleteTexture(this.b.kc),this.b.kc=a.Yd(this.b.M,this.b.L,this.b.S);a.gd(this.b.kc);this.Md&&a.clear(0,0,0,0)}this.Md||a.clear(this.Vd[0]/255,this.Vd[1]/255,this.Vd[2]/255,1);this.Be=!0;var l=this.pa(0,0,!0,!0),b=this.pa(0,0,!1,!0);this.Be=!1;this.b.fd&&(l=Math.round(l),b=Math.round(b));this.Sl(l,b,null);l=this.vc();a.ke();a.scale(l,l);a.Zo(-this.Va());
a.translate((this.ya+this.Ka)/-2,(this.za+this.Ja)/-2);a.se();this.Vc?(this.qc.left=this.Yb.cc(this.ya),this.qc.top=this.Yb.ec(this.za),this.qc.right=this.Yb.cc(this.Ka),this.qc.bottom=this.Yb.ec(this.Ja),this.Id||!this.qc.ei(this.Ii)?(h(this.Df),b=this.yn(),this.Id=!1,this.Ii.qg(this.qc)):b=this.Df):b=this.c;var g,e,m=null,d=0;for(g=b.length;d<g;++d)e=b[d],e!==m&&(this.sr(b[d],a),m=e);this.Vc&&(this.Df=b);this.je&&(b=this.U.length?this.U[0].gb:0,d=this.U.length?this.U[0].index:0,0===this.U.length||
1===this.U.length&&!a.Ll(b)&&1===this.opacity?(1===this.U.length?(a.hd(b),a.Tf(this.Xa.xg(),1/this.b.M,1/this.b.L,0,0,1,1,l,this.Va(),this.ya,this.za,(this.ya+this.Ka)/2,(this.za+this.Ja)/2,this.va[d]),a.ij(b)&&(this.b.ha=!0)):a.hd(0),a.gd(this.Xa.xg()),a.Ye(this.opacity),a.$b(this.b.kc),a.le(this.lb,this.kb),a.ke(),a.se(),l=this.b.M/2,b=this.b.L/2,a.rh(-l,b,l,b,l,-b,-l,-b),a.$b(null)):this.Xa.Ql(a,this,null,this.Xa.xg()))};b.prototype.sr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();
var d=a.Aa;d.right<this.ya||d.bottom<this.za||d.left>this.Ka||d.top>this.Ja||(a.Fp?this.tr(a,b):(b.hd(0),b.le(a.lb,a.kb),a.Sb(b)))}};b.prototype.tr=function(a,b){var d=a.U[0].gb,l=a.U[0].index,g=this.vc();if(1!==a.U.length||b.Ll(d)||b.Ht(d)||(a.e||a.d.Va())&&b.ph(d)||1!==a.opacity||a.type.ra.wo)this.Xa.Ql(b,this,a,this.je?this.b.kc:this.Xa.xg()),b.ke(),b.scale(g,g),b.Zo(-this.Va()),b.translate((this.ya+this.Ka)/-2,(this.za+this.Ja)/-2),b.se();else{b.hd(d);b.le(a.lb,a.kb);b.ij(d)&&(this.b.ha=!0);var h=
0,m=0,e=0,c=0;b.ph(d)&&(d=a.Aa,h=this.pb(d.left,d.top,!0,!0),m=this.pb(d.left,d.top,!1,!0),e=this.pb(d.right,d.bottom,!0,!0),d=this.pb(d.right,d.bottom,!1,!0),h/=windowWidth,m=1-m/windowHeight,e/=windowWidth,c=1-d/windowHeight);b.Tf(this.je?this.b.kc:this.Xa.xg(),1/a.width,1/a.height,h,m,e,c,g,this.Va(),this.ya,this.za,(this.ya+this.Ka)/2,(this.za+this.Ja)/2,a.va[l]);a.Sb(b)}};b.prototype.pa=function(a,b,d,l){var g=this.b.devicePixelRatio;this.b.Ne&&(a*=g,b*=g);var g=this.b.Mo,h=this.b.No,g=(this.Xa.scrollX-
g)*this.Gb+g,h=(this.Xa.scrollY-h)*this.Hb+h,m=g,e=h,c=1/this.vc(!l);l?(m-=this.b.M*c/2,e-=this.b.L*c/2):(m-=this.b.width*c/2,e-=this.b.height*c/2);m+=a*c;e+=b*c;b=this.Va();0!==b&&(m-=g,e-=h,a=Math.cos(b),b=Math.sin(b),l=m*a-e*b,e=e*a+m*b,m=l+g,e+=h);return d?m:e};b.prototype.pb=function(a,b,d,g){var h=this.b.Mo,e=this.b.No,m=(this.Xa.scrollX-h)*this.Gb+h,n=(this.Xa.scrollY-e)*this.Hb+e,e=m,h=n,c=this.Va();if(0!==c){a-=m;b-=n;var p=Math.cos(-c),c=Math.sin(-c),q=a*p-b*c;b=b*p+a*c;a=q+m;b+=n}m=1/this.vc(!g);
g?(e-=this.b.M*m/2,h-=this.b.L*m/2):(e-=this.b.width*m/2,h-=this.b.height*m/2);e=(a-e)/m;h=(b-h)/m;a=this.b.devicePixelRatio;this.b.Ne&&!g&&(e/=a,h/=a);return d?e:h};b.prototype.Zb=function(){var a,b,d,g={s:this.scale,a:this.e,vl:this.ya,vt:this.za,vr:this.Ka,vb:this.Ja,v:this.visible,bc:this.Vd,t:this.Md,px:this.Gb,py:this.Hb,o:this.opacity,zr:this.mb,fx:[],instances:[]};a=0;for(b=this.H.length;a<b;a++)d=this.H[a],g.fx.push({name:d.name,active:d.Ua,params:this.va[d.index]});return g};b.prototype.Ac=
function(a){var b,d;this.scale=a.s;this.e=a.a;this.ya=a.vl;this.za=a.vt;this.Ka=a.vr;this.Ja=a.vb;this.visible=a.v;this.Vd=a.bc;this.Md=a.t;this.Gb=a.px;this.Hb=a.py;this.opacity=a.o;this.mb=a.zr;var g=a.fx;a=0;for(b=g.length;a<b;a++)if(d=this.Jk(g[a].name))d.Ua=g[a].active,this.va[d.index]=g[a].params;this.Nd();this.c.sort(p);this.bf=!0};Ob=b})();
(function(){function e(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 p(a,b){return a.index-b.index}function b(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=l.length&&(l.length=a.length+1);l[a.length]||(l[a.length]=[]);g=l[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],e(a,d))return d;g.push(a);return a}
function n(a,b){this.b=a;this.vp={};this.nn={};this.Uk=!1;this.Dn=new ca;this.qk=[];this.$j=[];this.name=b[0];var c=b[1];this.ae=[];var d,g;d=0;for(g=c.length;d<g;d++)this.Fn(c[d],null,this.ae)}function h(a){this.type=a;this.c=[];this.V=[];this.da=!0}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.me=[];this.Bn=this.Fj=this.jm=this.yi=this.group=this.np=!1;this.jb=[];this.Gc=[];this.Ec=[];this.Ag="";this.pf=this.yi=this.group=!1;this.Vh=null;c[1]&&(this.Ag=c[1][1].toLowerCase(),
this.group=!0,this.yi=!!c[1][0],this.Vh=[],this.pf=this.yi,this.b.Td.push(this),this.b.si[this.Ag]=this);this.Oc=c[2];this.P=c[4];this.group||(this.b.Um[this.P.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Pb(this,d[a]);g.index=a;this.jb.push(g);this.Pm(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Qb(this,d[a]),g.index=a,this.Gc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Fn(c[a],this,this.Ec);this.Di=!1;this.jb.length&&(this.Di=null==this.jb[0].type&&
this.jb[0].cb==Y.prototype.i.Am)}function g(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.ic))for(c=0,d=a.Qb.length;c<d;c++)g=a.Qb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function d(a,b){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.fa=[];this.wa={};this.index=-1;this.ig=!1;this.cb=this.b.Qd(b[1]);this.trigger=0<b[3];this.mn=2===b[3];this.cd=b[4];this.tf=b[5];this.Zs=b[6];this.P=b[7];this.b.jf[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Qa=this.Vl,this.we=null,this.nc=-1):
(this.type=this.b.n[b[0]],this.Qa=this.Zs?this.Rt:this.Ul,b[2]?(this.we=this.type.ni(b[2]),this.nc=this.type.Hk(b[2])):(this.we=null,this.nc=-1),this.fc.parent&&this.fc.parent.qj());this.mn&&(this.Qa=this.St);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var f=new Rb(this,g[c]);this.I.push(f)}this.fa.length=g.length}}function u(a,b){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.fa=[];this.wa={};this.index=-1;this.ig=!1;this.cb=this.b.Qd(b[1]);-1===b[0]?(this.type=null,this.Qa=
this.Vl,this.we=null,this.nc=-1):(this.type=this.b.n[b[0]],this.Qa=this.Ul,b[2]?(this.we=this.type.ni(b[2]),this.nc=this.type.Hk(b[2])):(this.we=null,this.nc=-1));this.P=b[3];this.b.ff[this.P.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var f=new Rb(this,g[c]);this.I.push(f)}this.fa.length=g.length}}function v(a,b){this.k=a;this.fc=a.fc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.$c=null;this.ne=0;this.get=null;this.an=0;this.Xa=null;this.key=0;this.object=null;
this.index=0;this.Gh=this.$e=this.Gh=this.$e=this.on=this.Fe=this.Hh=null;this.Fc=!1;var c,d,g;switch(b[0]){case 0:case 7:this.$c=new Sb(this,b[1]);this.ne=0;this.get=this.ws;break;case 1:this.$c=new Sb(this,b[1]);this.ne=0;this.get=this.xs;break;case 5:this.$c=new Sb(this,b[1]);this.ne=0;this.get=this.Bs;break;case 3:case 8:this.an=b[1];this.get=this.us;break;case 6:this.Xa=this.b.ml[b[1]];this.get=this.Cs;break;case 9:this.key=b[1];this.get=this.As;break;case 4:this.object=this.b.n[b[1]];this.get=
this.Ds;this.fc.Pm(this.object);this.k instanceof Qb?this.fc.qj():this.fc.parent&&this.fc.parent.qj();break;case 10:this.index=b[1];a.type.B?(this.get=this.ys,this.Fc=!0):this.get=this.zs;break;case 11:this.Hh=b[1];this.Fe=null;this.get=this.vs;break;case 2:case 12:this.on=b[1];this.get=this.ts;break;case 13:for(this.get=this.Es,this.$e=[],this.Gh=[],c=1,d=b.length;c<d;c++)g=new Rb(this.k,b[c]),this.$e.push(g),this.Gh.push(0)}}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=
c[1];this.Mj=c[2];this.xi=c[3];this.Kg=!!c[4];this.Ci=!!c[5];this.P=c[6];this.b.gg[this.P.toString()]=this;this.data=this.xi;this.parent?(this.Ve=this.Kg||this.Ci?-1:this.b.au++,this.b.Nq.push(this)):(this.Ve=-1,this.b.Xj.push(this))}function f(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Cg=null;this.Ls=c[1];this.Ua=!0}function r(){this.pp=[];this.reset(null)}var l=[];n.prototype.toString=function(){return this.name};n.prototype.Fn=function(a,b,c){switch(a[0]){case 0:a=new Tb(this,
b,a);if(a.Oc)for(c.push(a),c=0,b=a.jb.length;c<b;c++)a.jb[c].trigger&&this.Gn(a,c);else a.Pn()?this.Gn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Ub(this,b,a),c.push(a)}};n.prototype.Da=function(){var a,b;a=0;for(b=this.ae.length;a<b;a++)this.ae[a].Da(a<b-1&&this.ae[a+1].Di)};n.prototype.nm=function(){this.qk.length=0;this.$j.length=0;this.Om(this);this.$j.length=0};n.prototype.Om=function(a){var b,c,d,g,f=a.qk,l=a.$j,h=this.Dn.Wc();b=0;for(c=h.length;b<c;++b)d=h[b],
g=d.Cg,!d.Ua||a===g||-1<l.indexOf(g)||(l.push(g),g.Om(a),f.push(g))};n.prototype.Qa=function(a){this.b.Ev||(this.Uk=!0,a||(this.b.dl=!0));var b,c;b=0;for(c=this.ae.length;b<c;b++){var d=this.ae[b];d.Qa();this.b.jk(d.la);this.b.de&&this.b.hb()}a||(this.b.dl=!1)};n.prototype.Gn=function(a,b){a.Oc||this.b.Ij.push(a);var c,d,g=a.jb[b],f;f=g.type?g.type.name:"system";var l=(c=g.mn)?this.nn:this.vp;l[f]||(l[f]=[]);f=l[f];l=g.cb;if(c){if(g.I.length&&(g=g.I[0],1===g.type&&2===g.$c.type)){g=g.$c.value.toLowerCase();
c=0;for(d=f.length;c<d;c++)if(f[c].method==l){c=f[c].tg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:l,tg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==l){f[c].tg.push([a,b]);return}gc&&l===gc.prototype.i.ef?f.unshift({method:l,tg:[[a,b]]}):f.push({method:l,tg:[[a,b]]})}};Bb=n;h.prototype.Tk=function(){return this.da?this.type.c.length:this.c.length};h.prototype.Kc=function(){return this.da?this.type.c:this.c};h.prototype.oh=function(a){a&&(a.b.ob().Rb.Oc?(this.da&&
(this.c.length=0,ya(this.V,a.type.c),this.da=!1),a=this.V.indexOf(a),-1!==a&&(this.c.push(this.V[a]),this.V.splice(a,1))):(this.da=!1,this.c.length=1,this.c[0]=a))};jb=h;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";a.prototype.Da=function(a){var d,c=this.parent;if(this.group)for(this.Fj=!0;c;){if(!c.group){this.Fj=!1;break}c=c.parent}this.jm=!this.Pn()&&(!this.parent||this.parent.group&&this.parent.Fj);this.Bn=!!a;this.me=this.la.slice(0);for(c=this.parent;c;){a=0;for(d=c.la.length;a<
d;a++)this.Kq(c.la[a]);c=c.parent}this.la=b(this.la);this.me=b(this.me);a=0;for(d=this.jb.length;a<d;a++)this.jb[a].Da();a=0;for(d=this.Gc.length;a<d;a++)this.Gc[a].Da();a=0;for(d=this.Ec.length;a<d;a++)this.Ec[a].Da(a<d-1&&this.Ec[a+1].Di)};a.prototype.Wt=function(a){if(this.pf!==!!a){this.pf=!!a;var b;a=0;for(b=this.Vh.length;a<b;++a)this.Vh[a].Bp();0<b&&this.b.aa.Ee&&this.b.aa.Ee.nm()}};a.prototype.Pm=function(a){g(a,this.la)};a.prototype.Kq=function(a){g(a,this.me)};a.prototype.qj=function(){this.np=
!0;this.parent&&this.parent.qj()};a.prototype.Pn=function(){return this.jb.length?this.jb[0].trigger:!1};a.prototype.Qa=function(){var a,b=!1,c,d=this.b,g=this.b.ob();g.Rb=this;var f=this.jb;this.Di||(g.uk=!1);if(this.Oc){0===f.length&&(b=!0);g.Ab=0;for(a=f.length;g.Ab<a;g.Ab++)f[g.Ab].trigger||(c=f[g.Ab].Qa())&&(b=!0);(g.Re=b)&&this.Tl()}else{g.Ab=0;for(a=f.length;g.Ab<a;g.Ab++)if(c=f[g.Ab].Qa(),!c){g.Re=!1;this.jm&&d.de&&d.hb();return}g.Re=!0;this.Tl()}this.Ar(g)};a.prototype.Ar=function(a){a.Re&&
this.Bn&&(a.uk=!0);this.jm&&this.b.de&&this.b.hb()};a.prototype.Pt=function(a){this.b.ob().Rb=this;this.jb[a].Qa()&&(this.Tl(),this.b.ob().Re=!0)};a.prototype.Tl=function(){var a=this.b.ob(),b;a.Nb=0;for(b=this.Gc.length;a.Nb<b;a.Nb++)if(this.Gc[a.Nb].Qa())return;this.$o()};a.prototype.Nt=function(){var a=this.b.ob(),b;for(b=this.Gc.length;a.Nb<b;a.Nb++)if(this.Gc[a.Nb].Qa())return;this.$o()};a.prototype.$o=function(){if(this.Ec.length){var a,b,c,d,g=this.Ec.length-1;this.b.Nl(this);if(this.np)for(a=
0,b=this.Ec.length;a<b;a++)c=this.Ec[a],(d=!this.Fj||!this.group&&a<g)&&this.b.Ml(c.la),c.Qa(),d?this.b.Rf(c.la):this.b.jk(c.la);else for(a=0,b=this.Ec.length;a<b;a++)this.Ec[a].Qa();this.b.So()}};a.prototype.Qt=function(){var a=this.b.ob();a.Rb=this;var b=!1,c;a.Ab=0;for(c=this.jb.length;a.Ab<c;a.Ab++)if(this.jb[a.Ab].Qa())b=!0;else if(!this.Oc)return!1;return this.Oc?b:!0};a.prototype.Ts=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.jb[b].type===a.type)return!1;return!0};
Tb=a;d.prototype.Da=function(){var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Da(),c.Fc&&(this.ig=!0)};d.prototype.St=function(){return!0};d.prototype.Vl=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.fa[a]=this.I[a].get();return Sa(this.cb.apply(this.b.jd,this.fa),this.tf)};d.prototype.Rt=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.fa[a]=this.I[a].get();a=this.cb.apply(this.we?this.we:this.type,this.fa);this.type.pd();return a};d.prototype.Ul=function(){var a,b,c,d,
g,f,l,h,e=this.type,k=e.Y(),n=this.fc.Oc&&!this.trigger;b=0;var p=e.ic,w=e.B,t=e.xd,r=this.nc,u=-1<r,v=this.ig,G=this.I,C=this.fa,H=this.tf,J=this.cb,B;if(v)for(b=0,g=G.length;b<g;++b)f=G[b],f.Fc||(C[b]=f.get(0));else for(b=0,g=G.length;b<g;++b)C[b]=G[b].get(0);if(k.da){k.c.length=0;k.V.length=0;B=e.c;a=0;for(d=B.length;a<d;++a){h=B[a];if(v)for(b=0,g=G.length;b<g;++b)f=G[b],f.Fc&&(C[b]=f.get(a));u?(b=0,w&&(b=h.type.mf[t]),b=J.apply(h.G[r+b],C)):b=J.apply(h,C);(l=Sa(b,H))?k.c.push(h):n&&k.V.push(h)}e.finish&&
e.finish(!0);k.da=!1;e.pd();return k.Tk()}c=0;B=(l=n&&!this.fc.Ts(this))?k.V:k.c;var O=!1;a=0;for(d=B.length;a<d;++a){h=B[a];if(v)for(b=0,g=G.length;b<g;++b)f=G[b],f.Fc&&(C[b]=f.get(a));u?(b=0,w&&(b=h.type.mf[t]),b=J.apply(h.G[r+b],C)):b=J.apply(h,C);if(Sa(b,H))if(O=!0,l){if(k.c.push(h),p)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.Y().c.push(f)}else{B[c]=h;if(p)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.Y().c[c]=f;c++}else if(l){B[c]=h;if(p)for(b=0,g=h.siblings.length;b<
g;b++)f=h.siblings[b],f.type.Y().V[c]=f;c++}else if(n&&(k.V.push(h),p))for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.Y().V.push(f)}B.length=c;if(p)for(w=e.Qb,a=0,d=w.length;a<d;a++)h=w[a].Y(),l?h.V.length=c:h.c.length=c;c=O;if(l&&!O)for(a=0,d=k.c.length;a<d;a++){h=k.c[a];if(v)for(b=0,g=G.length;b<g;b++)f=G[b],f.Fc&&(C[b]=f.get(a));b=u?J.apply(h.G[r],C):J.apply(h,C);if(Sa(b,H)){O=!0;break}}e.finish&&e.finish(c||n);return n?O:k.Tk()};Pb=d;u.prototype.Da=function(){var a,b,c;a=0;for(b=this.I.length;a<
b;a++)c=this.I[a],c.Da(),c.Fc&&(this.ig=!0)};u.prototype.Vl=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.fa[a]=this.I[a].get();return this.cb.apply(this.b.jd,this.fa)};u.prototype.Ul=function(){var a=this.type.Y().Kc(),b=this.type.B,c=this.type.xd,d=this.nc,g=-1<d,f=this.ig,l=this.I,h=this.fa,e=this.cb,k,n,p,w,t,r;if(f)for(n=0,w=l.length;n<w;++n)t=l[n],t.Fc||(h[n]=t.get(0));else for(n=0,w=l.length;n<w;++n)h[n]=l[n].get(0);k=0;for(p=a.length;k<p;++k){r=a[k];if(f)for(n=0,w=l.length;n<w;++n)t=
l[n],t.Fc&&(h[n]=t.get(k));g?(n=0,b&&(n=r.type.mf[c]),e.apply(r.G[d+n],h)):e.apply(r,h)}return!1};Qb=u;var w=[],t=-1;v.prototype.Da=function(){var a,b;if(11===this.type)this.Fe=this.b.un(this.Hh,this.fc.parent);else if(13===this.type)for(a=0,b=this.$e.length;a<b;a++)this.$e[a].Da();this.$c&&this.$c.Da()};v.prototype.et=function(a){this.Fc||!a||a.ra.rj||(this.Fc=!0)};v.prototype.fp=function(){this.Fc=!0};v.prototype.Pa=function(){t++;w.length===t&&w.push(new Vb);return w[t]};v.prototype.Ia=function(){t--};
v.prototype.ws=function(a){this.ne=a||0;a=this.Pa();this.$c.get(a);this.Ia();return a.data};v.prototype.xs=function(a){this.ne=a||0;a=this.Pa();this.$c.get(a);this.Ia();return P(a.data)?a.data:""};v.prototype.Ds=function(){return this.object};v.prototype.us=function(){return this.an};v.prototype.Bs=function(a){this.ne=a||0;a=this.Pa();this.$c.get(a);this.Ia();return a.Wa()?this.b.zd(a.data):this.b.wg(a.data)};v.prototype.Cs=function(){return this.Xa};v.prototype.As=function(){return this.key};v.prototype.zs=
function(){return this.index};v.prototype.ys=function(a){a=a||0;var b=this.k.type,c=null,c=b.Y(),d=c.Kc();if(d.length)c=d[a%d.length].type;else if(c.V.length)c=c.V[a%c.V.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.hi[b.xd]};v.prototype.vs=function(){return this.Fe};v.prototype.ts=function(){return this.on};v.prototype.Es=function(){var a,b;a=0;for(b=this.$e.length;a<b;a++)this.Gh[a]=this.$e[a].get();return this.Gh};Rb=v;k.prototype.Da=function(){this.la=
b(this.la)};k.prototype.Ze=function(a){var b=this.b.tn();this.parent&&!this.Kg&&b?(this.Ve>=b.length&&(b.length=this.Ve+1),b[this.Ve]=a):this.data=a};k.prototype.yg=function(){var a=this.b.tn();return!this.parent||this.Kg||!a||this.Ci?this.data:this.Ve>=a.length||"undefined"===typeof a[this.Ve]?this.xi:a[this.Ve]};k.prototype.Qa=function(){!this.parent||this.Kg||this.Ci||this.Ze(this.xi)};Lb=k;f.prototype.toString=function(){return"include:"+this.Cg.toString()};f.prototype.Da=function(){this.Cg=this.b.wk[this.Ls];
this.sheet.Dn.add(this);this.la=b(this.la);for(var a=this.parent;a;)a.group&&a.Vh.push(this),a=a.parent;this.Bp()};f.prototype.Qa=function(){this.parent&&this.b.qh(this.b.n);this.Cg.Uk||this.Cg.Qa(!0);this.parent&&this.b.Rf(this.b.n)};f.prototype.Bp=function(){for(var a=this.parent;a;){if(a.group&&!a.pf){this.Ua=!1;return}a=a.parent}this.Ua=!0};Ub=f;r.prototype.reset=function(a){this.Rb=a;this.Nb=this.Ab=0;this.pp.length=0;this.uk=this.Re=!1};Kb=r})();
(function(){function e(b,e){this.k=b;this.b=b.b;this.type=e[0];this.get=[this.Mr,this.Ir,this.Ur,this.Xr,this.Cr,this.Vr,this.Qr,this.Fr,this.Pr,this.Tr,this.Dr,this.Sr,this.Gr,this.Rr,this.Nr,this.Or,this.Jr,this.Kr,this.Er,this.Wr,this.kn,this.Lr,this.kn,this.Hr][this.type];var h=null;this.Fb=this.I=this.fa=this.cb=this.Cj=this.$a=this.first=this.value=null;this.nc=-1;this.Ad=null;this.um=-1;this.Fe=this.Hh=null;this.th=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Sb(b,e[1]);break;case 18:this.first=new Sb(b,e[1]);this.$a=new Sb(b,e[2]);this.Cj=new Sb(b,e[3]);break;case 19:this.cb=this.b.Qd(e[1]);this.cb!==Y.prototype.Tb.random&&this.cb!==Y.prototype.Tb.Vq||this.k.fp();this.fa=[];this.I=[];3===e.length?(h=e[2],this.fa.length=h.length+1):this.fa.length=1;break;case 20:this.Fb=this.b.n[e[1]];this.nc=-1;this.cb=this.b.Qd(e[2]);this.th=e[3];Xb.Function&&this.cb===Xb.Function.prototype.Tb.uu&&this.k.fp();this.Ad=e[4]?new Sb(b,e[4]):null;this.fa=[];this.I=[];
6===e.length?(h=e[5],this.fa.length=h.length+1):this.fa.length=1;break;case 21:this.Fb=this.b.n[e[1]];this.th=e[2];this.Ad=e[3]?new Sb(b,e[3]):null;this.um=e[4];break;case 22:this.Fb=this.b.n[e[1]];this.Fb.ni(e[2]);this.nc=this.Fb.Hk(e[2]);this.cb=this.b.Qd(e[3]);this.th=e[4];this.Ad=e[5]?new Sb(b,e[5]):null;this.fa=[];this.I=[];7===e.length?(h=e[6],this.fa.length=h.length+1):this.fa.length=1;break;case 23:this.Hh=e[1],this.Fe=null}this.k.et(this.Fb);4<=this.type&&17>=this.type&&(this.first=new Sb(b,
e[1]),this.$a=new Sb(b,e[2]));if(h){var a,g;a=0;for(g=h.length;a<g;a++)this.I.push(new Sb(b,h[a]))}}function p(b,e){this.type=b||V.df;this.data=e||0;this.Lf=null;this.type==V.df&&(this.data=Math.floor(this.data))}e.prototype.Da=function(){23===this.type&&(this.Fe=this.k.b.un(this.Hh,this.k.fc.parent));this.first&&this.first.Da();this.$a&&this.$a.Da();this.Cj&&this.Cj.Da();this.Ad&&this.Ad.Da();if(this.I){var b,e;b=0;for(e=this.I.length;b<e;b++)this.I[b].Da()}};e.prototype.Wr=function(b){this.fa[0]=
b;b=this.k.Pa();var e,h;e=0;for(h=this.I.length;e<h;e++)this.I[e].get(b),this.fa[e+1]=b.data;this.k.Ia();this.cb.apply(this.b.jd,this.fa)};e.prototype.kn=function(b){var e=this.Fb.Y(),h=e.Kc();if(!h.length)if(e.V.length)h=e.V;else{this.th?b.lc(""):b.ga(0);return}this.fa[0]=b;b.Lf=this.Fb;b=this.k.Pa();var a,e=0;for(a=this.I.length;e<a;e++)this.I[e].get(b),this.fa[e+1]=b.data;e=this.k.ne;this.Ad&&(this.Ad.get(b),b.Wa()&&(e=b.data,h=this.Fb.c));this.k.Ia();e%=h.length;0>e&&(e+=h.length);h=h[e];-1<this.nc?
(b=0,this.Fb.B&&(b=h.type.mf[this.Fb.xd]),this.cb.apply(h.G[this.nc+b],this.fa)):this.cb.apply(h,this.fa)};e.prototype.Lr=function(b){var e=this.Fb.Y(),h=e.Kc();if(!h.length)if(e.V.length)h=e.V;else{this.th?b.lc(""):b.ga(0);return}e=this.k.ne;if(this.Ad){var a=this.k.Pa();this.Ad.get(a);if(a.Wa()){e=a.data;h=this.Fb.c;e%=h.length;0>e&&(e+=h.length);h=h[e].La[this.um];P(h)?b.lc(h):b.u(h);this.k.Ia();return}this.k.Ia()}e%=h.length;0>e&&(e+=h.length);h=h[e];e=0;this.Fb.B&&(e=h.type.hi[this.Fb.xd]);h=
h.La[this.um+e];P(h)?b.lc(h):b.u(h)};e.prototype.Mr=function(b){b.type=V.df;b.data=this.value};e.prototype.Ir=function(b){b.type=V.cf;b.data=this.value};e.prototype.Ur=function(b){b.type=V.String;b.data=this.value};e.prototype.Xr=function(b){this.first.get(b);b.Wa()&&(b.data=-b.data)};e.prototype.Cr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data+=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Vr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);
b.Wa()&&e.Wa()&&(b.data-=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Qr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data*=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Fr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data/=e.data,b.Hf());this.k.Ia()};e.prototype.Pr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data%=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Tr=function(b){this.first.get(b);
var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data=Math.pow(b.data,e.data),e.yf()&&b.Hf());this.k.Ia()};e.prototype.Dr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()?e.Ei()?b.lc(b.data.toString()+e.data):b.data&&e.data?b.ga(1):b.ga(0):b.Ei()&&(b.data=e.Ei()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.k.Ia()};e.prototype.Sr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data||e.data?b.ga(1):b.ga(0));this.k.Ia()};
e.prototype.Er=function(b){this.first.get(b);b.data?this.$a.get(b):this.Cj.get(b)};e.prototype.Gr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.ga(b.data===e.data?1:0);this.k.Ia()};e.prototype.Rr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.ga(b.data!==e.data?1:0);this.k.Ia()};e.prototype.Nr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.ga(b.data<e.data?1:0);this.k.Ia()};e.prototype.Or=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);
b.ga(b.data<=e.data?1:0);this.k.Ia()};e.prototype.Jr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.ga(b.data>e.data?1:0);this.k.Ia()};e.prototype.Kr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.ga(b.data>=e.data?1:0);this.k.Ia()};e.prototype.Hr=function(b){var e=this.Fe.yg();ia(e)?b.u(e):b.lc(e)};Sb=e;p.prototype.yf=function(){return this.type===V.cf};p.prototype.Wa=function(){return this.type===V.df||this.type===V.cf};p.prototype.Ei=function(){return this.type===
V.String};p.prototype.Hf=function(){this.yf()||(this.Ei()&&(this.data=parseFloat(this.data)),this.type=V.cf)};p.prototype.ga=function(b){this.type=V.df;this.data=Math.floor(b)};p.prototype.u=function(b){this.type=V.cf;this.data=b};p.prototype.lc=function(b){this.type=V.String;this.data=b};p.prototype.$t=function(b){ia(b)?(this.type=V.cf,this.data=b):P(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.df,this.data=0)};Vb=p;V={df:0,cf:1,String:2}})();function Y(e){this.b=e;this.Mb=[]}
Y.prototype.Zb=function(){var e={},p,b,n,h,a,g,d,u;e.waits=[];var v=e.waits,k;p=0;for(b=this.Mb.length;p<b;p++){g=this.Mb[p];k={t:g.time,st:g.mp,s:g.$l,ev:g.lf.P,sm:[],sols:{}};g.lf.Gc[g.Nb]&&(k.act=g.lf.Gc[g.Nb].P);n=0;for(h=g.la.length;n<h;n++)k.sm.push(g.la[n].P);for(a in g.tb)if(g.tb.hasOwnProperty(a)){d=this.b.n[parseInt(a,10)];u={sa:g.tb[a].nj,insts:[]};n=0;for(h=g.tb[a].Bd.length;n<h;n++)u.insts.push(g.tb[a].Bd[n].uid);k.sols[d.P.toString()]=u}v.push(k)}return e};
Y.prototype.Ac=function(e){e=e.waits;var p,b,n,h,a,g,d,u,v,k,f;p=this.Mb.length=0;for(b=e.length;p<b;p++)if(g=e[p],u=this.b.Um[g.ev.toString()]){v=-1;n=0;for(h=u.Gc.length;n<h;n++)if(u.Gc[n].P===g.act){v=n;break}if(-1!==v){d={tb:{},la:[],rk:!1};d.time=g.t;d.mp=g.st||"";d.$l=!!g.s;d.lf=u;d.Nb=v;n=0;for(h=g.sm.length;n<h;n++)(u=this.b.ri(g.sm[n]))&&d.la.push(u);for(a in g.sols)if(g.sols.hasOwnProperty(a)&&(u=this.b.ri(parseInt(a,10)))){v=g.sols[a];k={nj:v.sa,Bd:[]};n=0;for(h=v.insts.length;n<h;n++)(f=
this.b.qi(v.insts[n]))&&k.Bd.push(f);d.tb[u.index.toString()]=k}this.Mb.push(d)}}};
(function(){function e(){}function p(){}function b(){}var n=Y.prototype;e.prototype.Dm=function(){return!0};e.prototype.qq=function(){return!0};e.prototype.Dq=function(){var a=this.b.oi().wa;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,e=this.b.ag;a.TriggerOnce_lastTick=e;return this.b.ll||b!==e-1};e.prototype.Mp=function(a,b,e){return Wb(a.yg(),b,e)};e.prototype.Am=function(){var a=this.b.ob();return a.uk?!1:!a.Re};e.prototype.Em=function(){return!0};
e.prototype.dq=function(){return!0};e.prototype.Uj=function(){return!0};e.prototype.rq=function(){return!0};e.prototype.Sj=function(){return!0};e.prototype.Ip=function(a,b,e){return Ja(T(a),T(e))<=T(b)};e.prototype.Rp=function(a,b){return Pa(T(a),T(b))};e.prototype.Pp=function(a,b,e){a=Ha(a);b=Ha(b);e=Ha(e);return Pa(e,b)?Pa(a,b)&&!Pa(a,e):!(!Pa(a,b)&&Pa(a,e))};n.i=new e;p.prototype.Zp=function(a){if(!this.b.Bf&&!this.b.xe){var b=this.b.Wb.indexOf(this.b.aa);if(!a||0!==b)if(a||b!==this.b.Wb.length-
1)this.b.xe=this.b.Wb[b+(a?-1:1)]}};p.prototype.Np=function(a,b,e,h){if(b&&a&&(b=this.b.bn(a,b,e,h))){this.b.Mc++;var k;this.b.trigger(Object.getPrototypeOf(a.ra).i.Qj,b);if(b.ic)for(e=0,h=b.siblings.length;e<h;e++)k=b.siblings[e],this.b.trigger(Object.getPrototypeOf(k.type.ra).i.Qj,k);this.b.Mc--;a=a.Y();a.da=!1;a.c.length=1;a.c[0]=b;if(b.ic)for(e=0,h=b.siblings.length;e<h;e++)k=b.siblings[e],a=k.type.Y(),a.da=!1,a.c.length=1,a.c[0]=k}};p.prototype.Bq=function(a,b){0===a.Mj?ia(b)?a.Ze(b):a.Ze(parseFloat(b)):
1===a.Mj&&a.Ze(b.toString())};p.prototype.Hp=function(a,b){0===a.Mj?ia(b)?a.Ze(a.yg()+b):a.Ze(a.yg()+parseFloat(b)):1===a.Mj&&a.Ze(a.yg()+b.toString())};var h=[],a=[];p.prototype.Eq=function(b){if(!(0>b)){var d,e,p,k=this.b.ob(),f;f=h.length?h.pop():{tb:{},la:[]};f.rk=!1;f.time=this.b.jc.ba+b;f.mp="";f.$l=!1;f.lf=k.Rb;f.Nb=k.Nb+1;b=0;for(d=this.b.n.length;b<d;b++)p=this.b.n[b],e=p.Y(),e.da&&-1===k.Rb.la.indexOf(p)||(f.la.push(p),p=void 0,p=a.length?a.pop():{Bd:[]},p.nj=!1,p.nj=e.da,ya(p.Bd,e.c),f.tb[b.toString()]=
p);this.Mb.push(f);return!0}};p.prototype.wq=function(){var a,b,e;a=0;for(b=this.b.Xj.length;a<b;a++)e=this.b.Xj[a],e.data=e.xi};p.prototype.xq=function(){if(!this.b.Bf&&!this.b.xe&&this.b.aa){this.b.xe=this.b.aa;var a,b,e;a=0;for(b=this.b.Td.length;a<b;a++)e=this.b.Td[a],e.Wt(e.yi)}};p.prototype.yq=function(a){this.b.oj=a};p.prototype.Yp=function(a){this.b.Sg=a};n.na=new p;b.prototype["int"]=function(a,b){P(b)?(a.ga(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ga(b)};b.prototype["float"]=function(a,
b){P(b)?(a.u(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.u(b)};b.prototype.random=function(a,b,e){void 0===e?a.u(Math.random()*b):a.u(Math.random()*(e-b)+b)};b.prototype.sqrt=function(a,b){a.u(Math.sqrt(b))};b.prototype.abs=function(a,b){a.u(Math.abs(b))};b.prototype.round=function(a,b){a.ga(Math.round(b))};b.prototype.floor=function(a,b){a.ga(Math.floor(b))};b.prototype.ceil=function(a,b){a.ga(Math.ceil(b))};b.prototype.sin=function(a,b){a.u(Math.sin(T(b)))};b.prototype.cos=function(a,b){a.u(Math.cos(T(b)))};
b.prototype.tan=function(a,b){a.u(Math.tan(T(b)))};b.prototype.asin=function(a,b){a.u(Ca(Math.asin(b)))};b.prototype.acos=function(a,b){a.u(Ca(Math.acos(b)))};b.prototype.atan=function(a,b){a.u(Ca(Math.atan(b)))};b.prototype.exp=function(a,b){a.u(Math.exp(b))};b.prototype.log10=function(a,b){a.u(Math.log(b)/Math.LN10)};b.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,h,k;e=2;for(h=arguments.length;e<h;e++)k=arguments[e],"number"===typeof k&&b<k&&(b=k);a.u(b)};b.prototype.min=
function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,h,k;e=2;for(h=arguments.length;e<h;e++)k=arguments[e],"number"===typeof k&&b>k&&(b=k);a.u(b)};b.prototype.De=function(a){a.u(this.b.De)};b.prototype.bg=function(a){a.u(this.b.bg)};b.prototype.time=function(a){a.u(this.b.jc.ba)};b.prototype.ag=function(a){a.ga(this.b.ag)};b.prototype.Ui=function(a){a.ga(this.b.Ui)};b.prototype.Dk=function(a){a.ga(this.b.Dk)};b.prototype.e=function(a,b,e,h,k){a.u(Ca(Ia(b,e,h,k)))};b.prototype.find=function(a,
b,e){P(b)&&P(e)?a.ga(b.search(new RegExp(Za(e),"i"))):a.ga(-1)};b.prototype.left=function(a,b,e){a.lc(P(b)?b.substr(0,e):"")};b.prototype.right=function(a,b,e){a.lc(P(b)?b.substr(b.length-e):"")};b.prototype.replace=function(a,b,e,h){P(b)&&P(e)&&P(h)?a.lc(b.replace(new RegExp(Za(e),"gi"),h)):a.lc(P(b)?b:"")};b.prototype.trim=function(a,b){a.lc(P(b)?b.trim():"")};b.prototype.Vq=function(a){var b=Q(Math.random()*(arguments.length-1));a.$t(arguments[b+1])};b.prototype.lk=function(a){a.u(this.b.lk/1E3)};
b.prototype.Pi=function(a){a.u(this.b.Pi)};n.Tb=new b;n.Ot=function(){var b,d,e,p,k,f,n=this.b.ob();b=0;for(e=this.Mb.length;b<e;b++){p=this.Mb[b];if(-1===p.time){if(!p.$l)continue}else if(p.time>this.b.jc.ba)continue;n.Rb=p.lf;n.Nb=p.Nb;n.Ab=0;for(d in p.tb)p.tb.hasOwnProperty(d)&&(k=this.b.n[parseInt(d,10)].Y(),f=p.tb[d],k.da=f.nj,ya(k.c,f.Bd),k=f,k.Bd.length=0,a.push(k));p.lf.Nt();this.b.jk(p.la);p.rk=!0}d=b=0;for(e=this.Mb.length;b<e;b++)p=this.Mb[b],this.Mb[d]=p,p.rk?(Ua(p.tb),p.la.length=0,
h.push(p)):d++;this.Mb.length=d}})();
(function(){ib=function(e,b){var n=e[1],h=e[3],a=e[4],g=e[5],d=e[6],u=e[7],v=e[8];b.i||(b.i={});b.na||(b.na={});b.Tb||(b.Tb={});var k=b.i,f=b.na,r=b.Tb;h&&(k.zu=function(a,b){return Wb(this.x,a,b)},k.Au=function(a,b){return Wb(this.y,a,b)},k.Gu=function(){var a=this.d;this.ma();var b=this.Aa;return!(b.right<a.ya||b.bottom<a.za||b.left>a.Ka||b.top>a.Ja)},k.Hu=function(){this.ma();var a=this.Aa,b=this.b.aa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},k.Su=function(a,b,d){var f=this.Y(),
e=f.Kc();if(!e.length)return!1;var c=e[0],g=c,h=Ra(c.x,c.y,b,d),k,p,n;k=1;for(p=e.length;k<p;k++)if(c=e[k],n=Ra(c.x,c.y,b,d),0===a&&n<h||1===a&&n>h)h=n,g=c;f.oh(g);return!0},f.lv=function(a){this.x!==a&&(this.x=a,this.xa())},f.mv=function(a){this.y!==a&&(this.y=a,this.xa())},f.Aq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.xa()},f.hv=function(a,b){var d=a.os(this);if(d){var e;d.Lk?(e=d.Lk(b,!0),d=d.Lk(b,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.xa()}},
f.Lu=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.xa())},f.Ku=function(a,b){0!==b&&(this.x+=Math.cos(T(a))*b,this.y+=Math.sin(T(a))*b,this.xa())},r.Jm=function(a){a.u(this.x)},r.Km=function(a){a.u(this.y)},r.De=function(a){a.u(this.b.Ik(this))});a&&(k.yu=function(a,b){return Wb(this.width,a,b)},k.vu=function(a,b){return Wb(this.height,a,b)},f.kv=function(a){this.width!==a&&(this.width=a,this.xa())},f.dv=function(a){this.height!==a&&(this.height=a,this.xa())},f.iv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.xa()},r.qv=function(a){a.u(this.width)},r.Cu=function(a){a.u(this.height)},r.ru=function(a){this.ma();a.u(this.Aa.left)},r.tu=function(a){this.ma();a.u(this.Aa.top)},r.su=function(a){this.ma();a.u(this.Aa.right)},r.qu=function(a){this.ma();a.u(this.Aa.bottom)});g&&(k.Ip=function(a,b){return Ja(this.e,T(b))<=T(a)},k.Rp=function(a){return Pa(this.e,T(a))},k.Pp=function(a,b){var d=Ha(a),e=Ha(b),f=Ea(this.e);return Pa(e,
d)?Pa(f,d)&&!Pa(f,e):!(!Pa(f,d)&&Pa(f,e))},f.$u=function(a){a=T(Da(a));isNaN(a)||this.e===a||(this.e=a,this.xa())},f.Wu=function(a){0===a||isNaN(a)||(this.e+=T(a),this.e=Ea(this.e),this.xa())},f.Xu=function(a){0===a||isNaN(a)||(this.e-=T(a),this.e=Ea(this.e),this.xa())},f.Yu=function(a,b){var d=Ka(this.e,T(b),T(a));isNaN(d)||this.e===d||(this.e=d,this.xa())},f.Zu=function(a,b,d){a=Ka(this.e,Math.atan2(d-this.y,b-this.x),T(a));isNaN(a)||this.e===a||(this.e=a,this.xa())},f.jv=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.e===d||(this.e=d,this.xa())},r.pu=function(a){a.u(Fa(this.e))});n||(k.wu=function(a,b,d){return Wb(this.La[a],b,d)},k.Eu=function(a){return this.La[a]},k.Tu=function(a,b){var d=this.Y(),e=d.Kc();if(!e.length)return!1;var f=e[0],c=f,g=f.La[b],h,k,p;h=1;for(k=e.length;h<k;h++)if(f=e[h],p=f.La[b],0===a&&p<g||1===a&&p>g)g=p,c=f;d.oh(c);return!0},k.Ru=function(a){var b,d,e,f,c;if(this.b.oi().tf){c=this.Y();if(c.da)for(c.da=!1,c.c.length=0,c.V.length=0,e=this.c,b=0,d=e.length;b<
d;b++)f=e[b],f.uid===a?c.V.push(f):c.c.push(f);else{e=b=0;for(d=c.c.length;b<d;b++)f=c.c[b],c.c[e]=f,f.uid===a?c.V.push(f):e++;c.c.length=e}this.pd();return!!c.c.length}f=this.b.qi(a);if(!f)return!1;c=this.Y();if(!c.da&&-1===c.c.indexOf(f))return!1;if(this.B)for(a=f.type.qa,b=0,d=a.length;b<d;b++){if(a[b]===this)return c.oh(f),this.pd(),!0}else if(f.type===this)return c.oh(f),this.pd(),!0;return!1},k.Qj=function(){return!0},k.fq=function(){return!0},f.gv=function(a,b){var d=this.La;ia(d[a])?d[a]=
ia(b)?b:parseFloat(b):P(d[a])&&(d[a]=P(b)?b:b.toString())},f.ou=function(a,b){var d=this.La;ia(d[a])?d[a]=ia(b)?d[a]+b:d[a]+parseFloat(b):P(d[a])&&(d[a]=P(b)?d[a]+b:d[a]+b.toString())},f.nv=function(a,b){var d=this.La;ia(d[a])&&(d[a]=ia(b)?d[a]-b:d[a]-parseFloat(b))},f.av=function(a,b){this.La[a]=b?1:0},f.ov=function(a){this.La[a]=1-this.La[a]},f.Op=function(){this.b.Pd(this)},f.Xp||(f.Xp=function(a){var b,d;try{b=JSON.parse(a)}catch(f){return}this.b.Mi(this,b,!0);this.nd&&this.nd();if(this.G)for(a=
0,b=this.G.length;a<b;++a)d=this.G[a],d.nd&&d.nd()}),r.Bu=function(a){var b=a.Lf.c.length,d,f,e;d=0;for(f=this.b.Ic.length;d<f;d++)e=this.b.Ic[d],a.Lf.B?0<=e.type.qa.indexOf(a.Lf)&&b++:e.type===a.Lf&&b++;a.ga(b)},r.Vu=function(a){a.ga(a.Lf.Y().Kc().length)},r.pv=function(a){a.ga(this.uid)},r.Du=function(a){a.ga(this.zg())},r.Jp||(r.Jp=function(a){a.lc(JSON.stringify(this.b.Wl(this,!0)))}));d&&(k.Vp=function(){return this.visible},f.Cq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ha=!0)},
k.xu=function(a,b){return Wb(eb(100*this.opacity),a,b)},f.zq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ha=!0)},r.Opacity=function(a){a.u(eb(100*this.opacity))});u&&(k.Fu=function(a){return a?this.d===a:!1},k.Uu=function(a){var b=this.Y(),d=b.Kc();if(!d.length)return!1;var f=d[0],e=f,c,g;c=1;for(g=d.length;c<g;c++)if(f=d[c],0===a){if(f.d.index>e.d.index||f.d.index===e.d.index&&f.wc()>e.wc())e=f}else if(f.d.index<e.d.index||f.d.index===e.d.index&&f.wc()<e.wc())e=
f;b.oh(e);return!0},f.Ou=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Sf(this,!1),a.kg(this,!1),this.b.ha=!0)},f.Mu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Sf(this,!1),a.Ft(this),this.b.ha=!0)},f.Nu=function(a){a&&a!=this.d&&(this.d.Sf(this,!0),this.d=a,a.kg(this,!0),this.b.ha=!0)},f.sv=function(a,b){var d=0===a;if(b){var f=b.js(this);f&&f.uid!==this.uid&&(this.d.index!==f.d.index&&(this.d.Sf(this,!0),this.d=f.d,f.d.kg(this,!0)),this.d.ht(this,f,d),this.b.ha=!0)}},
r.Ju=function(a){a.ga(this.d.Ao)},r.Iu=function(a){a.lc(this.d.name)},r.rv=function(a){a.ga(this.wc())});v&&(f.bv=function(a,b){if(this.b.q){var d=this.type.Kk(b);if(!(0>d)){var f=1===a;this.Rd[d]!==f&&(this.Rd[d]=f,this.Nd(),this.b.ha=!0)}}},f.cv=function(a,b,d){if(this.b.q){var f=this.type.Kk(a);0>f||(a=this.type.H[f],f=this.va[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.q.ss(a.gb,b)&&(d/=100),f[b]!==d&&(f[b]=d,a.Ua&&(this.b.ha=!0))))}})};Cb=function(){this.ek=this.Ph=!0;this.type.Jh=!0;this.b.ha=
!0;var e,b,n=this.ck;e=0;for(b=n.length;e<b;++e)n[e](this);this.d.Vc&&this.ma()};Db=function(e){e&&this.ck.push(e)};Fb=function(){if(this.Ph){var e=this.Aa,b=this.Pb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Cb*this.width,-this.Db*this.height);this.e?(e.offset(-this.x,-this.y),b.hp(e,this.e),b.offset(this.x,this.y),b.Vm(e)):b.Wf(e);e.normalize();this.Ph=!1;this.ku()}};var e=new S(0,0,0,0);Gb=function(){if(this.d.Vc){var p=this.d.Yb,b=this.Aa;e.set(p.cc(b.left),p.ec(b.top),
p.cc(b.right),p.ec(b.bottom));this.Ib.ei(e)||(this.Ib.right<this.Ib.left?p.update(this,null,e):p.update(this,this.Ib,e),this.Ib.qg(e),this.d.Id=!0)}};Hb=function(){if(this.ek&&this.ye){this.ma();var p=this.type.Uh,b=this.Aa;e.set(p.cc(b.left),p.ec(b.top),p.cc(b.right),p.ec(b.bottom));this.Xd.ei(e)||(this.Xd.right<this.Xd.left?p.update(this,null,e):p.update(this,this.Xd,e),this.Xd.qg(e),this.ek=!1)}};Eb=function(e,b){return this.Aa.bb(e,b)&&this.Pb.bb(e,b)?this.W&&!this.W.xf()?(this.W.hf(this.width,
this.height,this.e),this.W.bb(e-this.x,b-this.y)):!0:!1};yb=function(){this.type.Kj();return this.Ke};Ib=function(){this.d.qm();return this.Xc};Jb=function(){this.U.length=0;var e,b;e=0;for(b=this.Rd.length;e<b;e++)this.Rd[e]&&this.U.push(this.type.H[e]);this.Fp=!!this.U.length};zb=function(){return"Inst"+this.Wo};lb=function(e){if(e&&e.ic&&e.type!=this){var b,n,h;b=0;for(n=e.siblings.length;b<n;b++)if(h=e.siblings[b],h.type==this)return h}e=this.Y().Kc();return e.length?e[0]:null};mb=function(e){var b=
this.Y().Kc();return b.length?b[e.zg()%b.length]:null};kb=function(){if(this.Zf&&!this.B){var e,b;e=0;for(b=this.c.length;e<b;e++)this.c[e].Ke=e;var n=e,h=this.b.Ic;e=0;for(b=h.length;e<b;++e)h[e].type===this&&(h[e].Ke=n++);this.Zf=!1}};wb=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var b=this.b.Ic,n,h;n=0;for(h=b.length;n<h;++n)if(b[n].type===this){if(0===e)return b[n];--e}return null};nb=function(){return this.oe[this.ud]};ob=function(){this.ud++;this.ud===this.oe.length?this.oe.push(new jb(this)):
this.oe[this.ud].da=!0};qb=function(){this.ud++;this.ud===this.oe.length&&this.oe.push(new jb(this));var e=this.oe[this.ud],b=this.oe[this.ud-1];b.da?e.da=!0:(e.da=!1,ya(e.c,b.c),ya(e.V,b.V))};rb=function(){this.ud--};sb=function(e){var b,n,h,a,g,d=0;if(!this.B)for(b=0,n=this.qa.length;b<n;b++)for(g=this.qa[b],h=0,a=g.Fa.length;h<a;h++){if(e===g.Fa[h].name)return this.wa.lastBehIndex=d,g.Fa[h];d++}b=0;for(n=this.Fa.length;b<n;b++){if(e===this.Fa[b].name)return this.wa.lastBehIndex=d,this.Fa[b];d++}return null};
tb=function(e){return this.ni(e)?this.wa.lastBehIndex:-1};ub=function(e){var b,n;b=0;for(n=this.H.length;b<n;b++)if(this.H[b].name===e)return b;return-1};vb=function(){if(this.ic&&!this.B){var e,b,n,h,a,g,d;this.Kj();g=this.Y();var u=g.da,v=(e=this.b.ob())&&e.Rb&&e.Rb.Oc;e=0;for(b=this.Qb.length;e<b;e++)if(a=this.Qb[e],a!==this&&(a.Kj(),d=a.Y(),d.da=u,!u)){d.c.length=g.c.length;n=0;for(h=g.c.length;n<h;n++)d.c[n]=a.vn(g.c[n].Ke);if(v)for(d.V.length=g.V.length,n=0,h=g.V.length;n<h;n++)d.V[n]=a.vn(g.V[n].Ke)}}};
xb=function(){return"Type"+this.P};Wb=function(e,b,n){if("undefined"===typeof e||"undefined"===typeof n)return!1;switch(b){case 0:return e===n;case 1:return e!==n;case 2:return e<n;case 3:return e<=n;case 4:return e>n;case 5:return e>=n;default:return!1}}})();var ec={};function hc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return R.hasOwnProperty(a)&&R[a].length?R[a][0].gc():s.destination}function b(){return s.createGain?s.createGain():s.createGainNode()}function n(a){return s.createDelay?s.createDelay(a):s.createDelayNode(a)}function h(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function g(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function d(a,
c,d,e,f,g){this.type="filter";this.Pc=[a,c,d,e,f,g];this.R=b();this.F=b();this.F.gain.value=g;this.C=b();this.C.gain.value=1-g;this.Ga=s.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:oc[a];this.Ga.frequency.value=c;this.Ga.detune&&(this.Ga.detune.value=d);this.Ga.Q.value=e;this.Ga.gain.value=f;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F)}function u(a,c,d){this.type="delay";this.Pc=[a,c,d];this.R=b();this.F=b();this.F.gain.value=d;this.C=b();this.C.gain.value=
1-d;this.ah=b();this.tc=n(a);this.tc.delayTime.value=a;this.ci=b();this.ci.gain.value=c;this.R.connect(this.ah);this.R.connect(this.C);this.ah.connect(this.F);this.ah.connect(this.tc);this.tc.connect(this.ci);this.ci.connect(this.ah)}function v(a,c,d,e){this.type="convolve";this.Pc=[c,d,e];this.R=b();this.F=b();this.F.gain.value=d;this.C=b();this.C.gain.value=1-d;this.ze=s.createConvolver();a&&(this.ze.normalize=c,this.ze.buffer=a);this.R.connect(this.ze);this.R.connect(this.C);this.ze.connect(this.F)}
function k(a,c,d,e,f){this.type="flanger";this.Pc=[a,c,d,e,f];this.R=b();this.C=b();this.C.gain.value=1-f/2;this.F=b();this.F.gain.value=f/2;this.ii=b();this.ii.gain.value=e;this.tc=n(a+c);this.tc.delayTime.value=a;this.Za=s.createOscillator();this.Za.frequency.value=d;this.Xb=b();this.Xb.gain.value=c;this.R.connect(this.tc);this.R.connect(this.C);this.tc.connect(this.F);this.tc.connect(this.ii);this.ii.connect(this.tc);this.Za.connect(this.Xb);this.Xb.connect(this.tc.delayTime);h(this.Za)}function f(a,
c,d,e,f,g){this.type="phaser";this.Pc=[a,c,d,e,f,g];this.R=b();this.C=b();this.C.gain.value=1-g/2;this.F=b();this.F.gain.value=g/2;this.Ga=s.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=a;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=d;this.Za=s.createOscillator();this.Za.frequency.value=f;this.Xb=b();this.Xb.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F);this.Za.connect(this.Xb);this.Xb.connect(this.Ga.frequency);
h(this.Za)}function r(a){this.type="gain";this.Pc=[a];this.T=b();this.T.gain.value=a}function l(a,c){this.type="tremolo";this.Pc=[a,c];this.T=b();this.T.gain.value=1-c/2;this.Za=s.createOscillator();this.Za.frequency.value=a;this.Xb=b();this.Xb.gain.value=c/2;this.Za.connect(this.Xb);this.Xb.connect(this.T.gain);h(this.Za)}function w(a,c){this.type="ringmod";this.Pc=[a,c];this.R=b();this.F=b();this.F.gain.value=c;this.C=b();this.C.gain.value=1-c;this.uh=b();this.uh.gain.value=0;this.Za=s.createOscillator();
this.Za.frequency.value=a;this.Za.connect(this.uh.gain);h(this.Za);this.R.connect(this.uh);this.R.connect(this.C);this.uh.connect(this.F)}function t(a,c,d,e,f){this.type="distortion";this.Pc=[a,c,d,e,f];this.R=b();this.gj=b();this.fj=b();this.Vt(d,Math.pow(10,e/20));this.F=b();this.F.gain.value=f;this.C=b();this.C.gain.value=1-f;this.Nj=s.createWaveShaper();this.ai=new Float32Array(65536);this.ds(a,c);this.Nj.ai=this.ai;this.R.connect(this.gj);this.R.connect(this.C);this.gj.connect(this.Nj);this.Nj.connect(this.fj);
this.fj.connect(this.F)}function m(a,b,c,d,e){this.type="compressor";this.Pc=[a,b,c,d,e];this.T=s.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 E(a,b){this.type="analyser";this.Pc=[a,b];this.T=s.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.bs=new Float32Array(this.T.frequencyBinCount);this.kp=new Uint8Array(a);this.nh=0}function c(){this.D=null;this.Oi=0;this.pe=
[];this.xl=this.Hi=this.Gi=0}function A(a,c){this.src=a;this.N=D;this.Nc=c;this.Qm=!1;var d=this;this.ul=this.Hl=null;this.Pf=[];this.pj=0;this.ym=this.zk=this.op=this.cj=!1;1===D&&c&&(this.N=0,this.Hl=b());this.ve=this.X=null;var e;switch(this.N){case 0:this.X=new Audio;this.X.addEventListener("canplaythrough",function(){d.ym=!0});1===D&&s.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.op=!0,this.X.addEventListener("canplay",function(){d.ul||(d.ul=s.createMediaElementSource(d.X),
d.ul.connect(d.Hl))}));this.X.autoplay=!1;this.X.Bv="auto";this.X.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.ve=e.response;d.$q()};e.onerror=function(){d.zk=!0};e.send();break;case 2:this.X=!0;break;case 3:this.X=!0}}function q(a,c){var d=this;this.tag=c;this.ac=this.ad=!0;this.src=a.src;this.buffer=a;this.N=D;this.Nc=a.Nc;this.playbackRate=1;this.kk=!0;this.zc=this.Jd=!1;this.Jb=0;this.Jg=this.zf=this.cd=!1;this.volume=1;this.Oe=
1===H&&!this.Nc||2===H;this.Jf=1;this.startTime=this.Oe?x.jc.ba:x.md.ba;this.Ca=this.Ha=null;this.dd=!1;this.Ba=null;this.Jo=this.Io=this.Ho=this.Go=this.Lo=this.Ko=0;this.j=null;var e=!1;1!==this.N||0!==this.buffer.N||this.buffer.op||(this.N=0);switch(this.N){case 0:this.Nc?(this.j=a.X,e=!a.Qm,a.Qm=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.X.src,e=!0);e&&this.j.addEventListener("ended",function(){fa=d.tag;d.ac=!0;x.trigger(hc.prototype.i.Rj,L)});break;case 1:this.Ha=b();this.Ha.connect(p(c));
1===this.buffer.N?a.X&&(this.j=s.createBufferSource(),this.j.buffer=a.X,this.j.connect(this.Ha)):(this.j=this.buffer.X,this.buffer.Hl.connect(this.Ha));break;case 2:this.j=new window.Media(W+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.kk=!0,d.ac=!0,fa=d.tag,x.trigger(hc.prototype.i.Rj,L))});break;case 3:this.j=!0}}function z(a,b){R.hasOwnProperty(a)?R[a].push(b):R[a]=[b];var c,d,e,f,g=s.destination;if(R.hasOwnProperty(a)&&(e=R[a],e.length))for(g=e[0].gc(),c=0,d=e.length;c<d;c++)f=
e[c],c+1===d?f.oc(s.destination):f.oc(e[c+1].gc());Ga.length=0;if(a.length)for(c=0,d=N.length;c<d;c++)e=N[c],fb(a,e.tag)&&Ga.push(e);else G&&!G.Je()&&(Ga.length=1,Ga[0]=G);c=0;for(d=Ga.length;c<d;c++)Ga[c].Jt(g);ba&&pb===a&&(ba.disconnect(),ba.connect(g))}function F(){}function X(){}var y=hc.prototype;y.ib=function(a){this.ra=a;this.b=a.b};y.ib.prototype.ka=function(){};var x=null,L=null,fa="",W="",D=0,s=null,ua=[],N=[],G=null,C=!1,H=0,J=!1,B=1,O=0,K=0,ka=1,M=1,pa=10,da=1E4,sa=1,ba=null,pb="",La=
!1,Ma=[],R={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};d.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.F.disconnect();this.C.disconnect()};d.prototype.gc=function(){return this.R};u.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};u.prototype.remove=function(){this.R.disconnect();
this.ah.disconnect();this.tc.disconnect();this.ci.disconnect();this.F.disconnect();this.C.disconnect()};u.prototype.gc=function(){return this.R};v.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};v.prototype.remove=function(){this.R.disconnect();this.ze.disconnect();this.F.disconnect();this.C.disconnect()};v.prototype.gc=function(){return this.R};k.prototype.oc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
k.prototype.remove=function(){this.R.disconnect();this.tc.disconnect();this.Za.disconnect();this.Xb.disconnect();this.C.disconnect();this.F.disconnect();this.ii.disconnect()};k.prototype.gc=function(){return this.R};f.prototype.oc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};f.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Za.disconnect();this.Xb.disconnect();this.C.disconnect();this.F.disconnect()};f.prototype.gc=function(){return this.R};
r.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};r.prototype.remove=function(){this.T.disconnect()};r.prototype.gc=function(){return this.T};l.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};l.prototype.remove=function(){this.Za.disconnect();this.Xb.disconnect();this.T.disconnect()};l.prototype.gc=function(){return this.T};w.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};w.prototype.remove=function(){this.Za.disconnect();
this.uh.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};w.prototype.gc=function(){return this.R};t.prototype.Vt=function(a,b){.01>a&&(a=.01);this.gj.gain.value=a;this.fj.gain.value=Math.pow(1/a,.6)*b};t.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};t.prototype.ds=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.ai[32768+f]=e,this.ai[32768-
f-1]=-e};t.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};t.prototype.remove=function(){this.R.disconnect();this.gj.disconnect();this.Nj.disconnect();this.fj.disconnect();this.F.disconnect();this.C.disconnect()};t.prototype.gc=function(){return this.R};m.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};m.prototype.remove=function(){this.T.disconnect()};m.prototype.gc=function(){return this.T};E.prototype.ab=function(){this.T.getFloatFrequencyData(this.bs);
this.T.getByteTimeDomainData(this.kp);for(var a=this.T.fftSize,b=0,c=this.nh=0,d=0;b<a;b++)d=(this.kp[b]-128)/128,0>d&&(d=-d),this.nh<d&&(this.nh=d),c+=d*d;this.nh=e(this.nh);e(Math.sqrt(c/a))};E.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};E.prototype.remove=function(){this.T.disconnect()};E.prototype.gc=function(){return this.T};c.prototype.vh=function(a){if(this.D=a)this.Gi=this.D.x,this.Hi=this.D.y;this.pe.length=0};c.prototype.wi=function(){return!!this.D};c.prototype.ab=function(a){this.D&&
0!==a&&(this.xl=Ia(this.Gi,this.Hi,this.D.x,this.D.y),a=Ra(this.Gi,this.Hi,this.D.x,this.D.y)/a,4>this.pe.length||this.pe.shift(),this.pe.push(a),this.Gi=this.D.x,this.Hi=this.D.y)};c.prototype.zn=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};c.prototype.Ok=function(){return Math.cos(this.xl)*this.zn()};c.prototype.Pk=function(){return Math.sin(this.xl)*this.zn()};var lc=!1;A.prototype.$q=function(){if(!this.X&&this.ve){var a=
this;if(s.decodeAudioData)s.decodeAudioData(this.ve,function(b){a.X=b;a.ve=null;var c,d,e;if(ha(a.dj)||J)ha(a.Wh)||(c=a.Wh.ze,c.normalize=a.zo,c.buffer=b);else if(a.Pf.length){c=0;for(d=a.Pf.length;c<d;c++){b=a.Pf[c];e=new q(a,b.rp);e.Yl(!0);if("undefined"!==typeof b.Bo&&(b.D=x.qi(b.Bo),!b.D))continue;if(b.D){var f=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,K,!0),g=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,K,!1);e.Xl(f,g,Ca(b.D.e-b.D.d.Va()),b.Vk,b.yl,b.Bl);e.vh(b.D)}else e.Xl(b.x,b.y,b.Fq,b.Vk,b.yl,b.Bl);e.play(a.rl,a.wm,
a.pj);a.cj&&e.pause();N.push(e)}a.Pf.length=0}else e=new q(a,a.dj),e.play(a.rl,a.wm,a.pj),a.cj&&e.pause(),N.push(e)},function(){a.zk=!0});else if(this.X=s.createBuffer(this.ve,!1),this.ve=null,ha(this.dj)||J)ha(this.Wh)||(b=this.Wh.ze,b.normalize=this.zo,b.buffer=this.X);else{var b=new q(this,this.dj);b.play(this.rl,this.wm,this.pj);this.cj&&b.pause();N.push(b)}}};A.prototype.Kn=function(){switch(this.N){case 0:var a=4<=this.X.readyState;a&&(this.ym=!0);return a||this.ym;case 1:return!!this.ve||!!this.X;
case 2:return!0;case 3:return!0}return!1};A.prototype.Us=function(){switch(this.N){case 0:return this.Kn();case 1:return!!this.X;case 2:return!0;case 3:return!0}return!1};A.prototype.Ks=function(){switch(this.N){case 0:return!!this.X.error;case 1:return this.zk}return!1};q.prototype.Je=function(){var a;switch(this.N){case 0:return this.j.ended;case 1:if(1===this.buffer.N){if(!this.ad&&!this.ac&&this.j.loop||this.zc)return!1;a=this.Oe?x.jc.ba:x.md.ba;return a-this.startTime>this.buffer.X.duration}return this.j.ended;
case 2:return this.kk;case 3:!0}return!0};q.prototype.Tq=function(){return this.ad||this.ac?!0:this.Je()};q.prototype.Yl=function(a){1===D&&(!this.dd&&a?this.Ha&&(this.Ca||(this.Ca=s.createPanner(),this.Ca.panningModel="number"===typeof this.Ca.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Ca.distanceModel="number"===typeof this.Ca.distanceModel?M:["linear","inverse","exponential"][M],this.Ca.refDistance=pa,this.Ca.maxDistance=da,this.Ca.rolloffFactor=sa),this.Ha.disconnect(),this.Ha.connect(this.Ca),
this.Ca.connect(p(this.tag)),this.dd=!0):this.dd&&!a&&this.Ha&&(this.Ca.disconnect(),this.Ha.disconnect(),this.Ha.connect(p(this.tag)),this.dd=!1))};q.prototype.Xl=function(a,b,c,d,e,f){this.dd&&1===D&&(this.Ca.setPosition(a,b,0),this.Ca.setOrientation(Math.cos(T(c)),Math.sin(T(c)),0),this.Ca.coneInnerAngle=d,this.Ca.coneOuterAngle=e,this.Ca.coneOuterGain=f,this.Ko=a,this.Lo=b,this.Go=c,this.Ho=d,this.Io=e,this.Jo=f)};q.prototype.vh=function(a){this.dd&&1===D&&(this.Ba||(this.Ba=new c),this.Ba.vh(a))};
q.prototype.ab=function(a){if(this.dd&&1===D&&this.Ba&&this.Ba.wi()&&this.vf()){this.Ba.ab(a);a=this.Ba.D;var b=Qa(a.x,a.y,-a.d.Va(),O,K,!0),c=Qa(a.x,a.y,-a.d.Va(),O,K,!1);this.Ca.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ba.D.e&&(b=a.e-a.d.Va(),this.Ca.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.Ba.Ok(),this.Ba.Pk(),-a.d.Va(),0,0,!0);c=Qa(this.Ba.Ok(),this.Ba.Pk(),-a.d.Va(),0,0,!1);this.Ca.setVelocity(b,c,0)}};q.prototype.play=function(b,c,d){var e=this.j;this.cd=b;this.volume=c;
d=d||0;switch(this.N){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==c*B&&(e.volume=c*B);e.loop!==b&&(e.loop=b);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Nc&&La&&!x.ja)Ma.push(this);else try{this.j.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.Jf=1;if(1===this.buffer.N)this.ad||(this.j=s.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha)),
this.j.loop=b,this.Ha.gain.value=c*B,0===d?h(this.j):a(this.j,d,this.He());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==b&&(e.loop=b);this.Ha.gain.value=c*B;if(e.currentTime!==d)try{e.currentTime=d}catch(l){}this.Nc&&La&&!x.ja?Ma.push(this):e.play()}break;case 2:(!this.ad&&this.ac||0!==d)&&e.seekTo(d);e.play();this.kk=!1;break;case 3:x.eb?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Oe?x.jc.ba:x.md.ba)-d;this.zc=this.ac=
this.ad=!1};q.prototype.stop=function(){switch(this.N){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.N?g(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:x.eb&&AppMobi.context.stopSound(this.src)}this.ac=!0;this.zc=!1};q.prototype.pause=function(){if(!(this.ad||this.ac||this.Je()||this.zc)){switch(this.N){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.N?(this.Jb=this.Mk(),this.cd&&(this.Jb%=this.He()),g(this.j)):this.j.paused||this.j.pause();
break;case 2:this.j.pause();break;case 3:x.eb&&AppMobi.context.stopSound(this.src)}this.zc=!0}};q.prototype.Mt=function(){if(!(this.ad||this.ac||this.Je())&&this.zc){switch(this.N){case 0:this.j.play();break;case 1:1===this.buffer.N?(this.j=s.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha),this.j.loop=this.cd,this.Ha.gain.value=B*this.volume*this.Jf,this.startTime=(this.Oe?x.jc.ba:x.md.ba)-this.Jb,a(this.j,this.Jb,this.He())):this.j.play();break;case 2:this.j.play();break;
case 3:x.eb&&AppMobi.context.resumeSound(this.src)}this.zc=!1}};q.prototype.seek=function(a){if(!(this.ad||this.ac||this.Je()))switch(this.N){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.N)this.zc?this.Jb=a:(this.pause(),this.Jb=a,this.Mt());else try{this.j.currentTime=a}catch(c){}break;case 3:x.eb&&AppMobi.context.seekSound(this.src,a)}};q.prototype.Jt=function(a){1===this.N&&(this.dd?(this.Ca.disconnect(),this.Ca.connect(a)):(this.Ha.disconnect(),this.Ha.connect(a)))};
q.prototype.He=function(){switch(this.N){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.X.duration;case 2:return this.j.getDuration();case 3:if(x.eb)return AppMobi.context.getDurationSound(this.src)}return 0};q.prototype.Mk=function(){var a=this.He(),b=0;switch(this.N){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.N){if(this.zc)return this.Jb;b=(this.Oe?x.jc.ba:x.md.ba)-this.startTime}else"undefined"!==
typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:x.eb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.cd&&b>a&&(b=a);return b};q.prototype.vf=function(){return!this.zc&&!this.ad&&!this.ac&&!this.Je()};q.prototype.iu=function(){var a=this.volume*B;switch(this.N){case 0:this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:this.Ha.gain.value=a*this.Jf}};q.prototype.di=function(a){switch(this.N){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:this.Jf=a?0:
1,this.Ha.gain.value=B*this.volume*this.Jf}};q.prototype.Xt=function(){this.zf=!0;this.di(this.zf||this.Jg)};q.prototype.ep=function(a){this.Jg=!!a;this.di(this.zf||this.Jg)};q.prototype.Ep=function(){var a=this.playbackRate;this.Oe&&(a*=x.bg);switch(this.N){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.N?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};q.prototype.Zt=function(b){switch(this.N){case 0:b?
this.vf()?(this.j.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.j.play();break;case 1:b?this.vf()?(1===this.buffer.N?(this.Jb=this.Mk(),this.cd&&(this.Jb%=this.He()),g(this.j)):this.j.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&(1===this.buffer.N?(this.j=s.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha),this.j.loop=this.cd,this.Ha.gain.value=B*this.volume*this.Jf,this.startTime=(this.Oe?x.jc.ba:x.md.ba)-this.Jb,a(this.j,this.Jb,this.He())):this.j.play());break;case 2:b?this.vf()?
(this.j.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.j.play()}};y.Ea=function(a){this.type=a;x=this.b=a.b;L=this;this.qb=null;this.Rg=-600;!(this.b.Fi||this.b.Ai&&(this.b.Fg||this.b.Bi))||this.b.Gg||this.b.ea||(La=!0);s=null;"undefined"!==typeof AudioContext?(D=1,s=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,s=new webkitAudioContext);(this.b.Fi&&1===D||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&s&&(a=s.createBuffer(1,1,22050),b=s.createBufferSource(),
b.buffer=a,b.connect(s.destination),h(b),lc=!0);if(La){if(!J)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.ac||c.zc||c.j.play();Ma.length=0}},!0);1!==D&&(this.b.yc&&"undefined"!==typeof window.Media?D=2:this.b.uf&&(D=3));2===D&&(W=location.href,a=W.lastIndexOf("/"),-1<a&&(W=W.substr(0,a+1)),W=W.replace("file://",""));if(this.b.Ln&&this.b.Vs&&"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.Pd(this);
else{if(this.b.eb)C=this.b.Ai;else try{C=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){C=!1}this.b.im(this)}};var la=y.Ea.prototype;la.ka=function(){this.b.gf=this;H=this.ta[0];this.Kd=this.ta[1];this.zt=0!==this.ta[2];ka=this.ta[3];M=this.ta[4];this.Rg=-this.ta[5];pa=this.ta[6];da=this.ta[7];sa=this.ta[8];this.qb=new c;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===D&&(s.listener.speedOfSound=this.ta[9],s.listener.dopplerFactor=this.ta[10],s.listener.setPosition(a/
2,b/2,this.Rg),s.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();pb=b.toLowerCase();ba=s.createMediaStreamSource(a);ba.connect(p(pb))});this.b.Lq(function(a){L.ut(a)});var d=this;this.b.Jq(function(a){d.nt(a)})};la.nt=function(a){var b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.Ba&&d.Ba.D===a&&(d.Ba.D=null,d.dd&&d.vf()&&d.cd&&d.stop());this.qb.D===a&&(this.qb.D=null)};la.Zb=function(){var a={silent:J,masterVolume:B,listenerZ:this.Rg,listenerUid:this.qb.wi()?
this.qb.D.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,h;c=0;for(d=N.length;c<d;c++)e=N[c],!e.vf()||3===this.Kd||e.Nc&&1===this.Kd||!e.Nc&&2===this.Kd||(f=e.Mk(),e.cd&&(f%=e.He()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Nc,playbackTime:f,volume:e.volume,looping:e.cd,muted:e.zf,playbackRate:e.playbackRate,paused:e.zc,resume_position:e.Jb},e.dd&&(f.pan={},h=f.pan,e.Ba&&e.Ba.wi()?h.objUid=e.Ba.D.uid:(h.x=e.Ko,h.y=e.Lo,h.a=e.Go),h.ia=e.Ho,h.oa=e.Io,h.og=e.Jo),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].Pc});b[g]=e}return a};var Na=[];la.Ac=function(a){var b=a.silent;B=a.masterVolume;this.Rg=a.listenerZ;this.qb.vh(null);var e=a.listenerUid;-1!==e&&(this.qb.Oi=e,Na.push(this.qb));var e=a.playing,g,h,q,n,p,F,x,fa,y,s,X;if(3!==this.Kd)for(g=0,h=N.length;g<h;g++)y=N[g],y.Nc&&1===this.Kd||(y.Nc||2!==this.Kd)&&y.stop();for(p in R)if(R.hasOwnProperty(p))for(g=0,h=R[p].length;g<h;g++)R[p][g].remove();Ua(R);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(F=
a.effects[p],g=0,h=F.length;g<h;g++)switch(q=F[g].type,s=F[g].params,q){case "filter":z(p,new d(s[0],s[1],s[2],s[3],s[4],s[5]));break;case "delay":z(p,new u(s[0],s[1],s[2]));break;case "convolve":q=s[2];y=this.mi(q,!1);y.X?q=new v(y.X,s[0],s[1],q):(q=new v(null,s[0],s[1],q),y.zo=s[0],y.Wh=q);z(p,q);break;case "flanger":z(p,new k(s[0],s[1],s[2],s[3],s[4]));break;case "phaser":z(p,new f(s[0],s[1],s[2],s[3],s[4],s[5]));break;case "gain":z(p,new r(s[0]));break;case "tremolo":z(p,new l(s[0],s[1]));break;
case "ringmod":z(p,new w(s[0],s[1]));break;case "distortion":z(p,new t(s[0],s[1],s[2],s[3],s[4]));break;case "compressor":z(p,new m(s[0],s[1],s[2],s[3],s[4]));break;case "analyser":z(p,new E(s[0],s[1]))}g=0;for(h=e.length;g<h;g++)3===this.Kd||(a=e[g],q=a.buffersrc,n=a.is_music,p=a.tag,F=a.playbackTime,x=a.looping,fa=a.volume,X=(s=a.pan)&&s.hasOwnProperty("objUid")?s.objUid:-1,n&&1===this.Kd)||!n&&2===this.Kd||((y=this.sn(q,p,n,x,fa))?(y.Jb=a.resume_position,y.Yl(!!s),y.play(x,fa,F),y.Ep(),y.iu(),
y.di(y.zf||y.Jg),a.paused&&y.pause(),a.muted&&y.Xt(),y.di(y.zf||y.Jg),s&&(-1!==X?(y.Ba=y.Ba||new c,y.Ba.Oi=X,Na.push(y.Ba)):y.Xl(s.x,s.y,s.a,s.ia,s.oa,s.og))):(y=this.mi(q,n),y.pj=F,y.cj=a.paused,s&&(-1!==X?y.Pf.push({Bo:X,Vk:s.ia,yl:s.oa,Bl:s.og,rp:p}):y.Pf.push({x:s.x,y:s.y,Fq:s.a,Vk:s.ia,yl:s.oa,Bl:s.og,rp:p}))));if(b&&!J){g=0;for(h=N.length;g<h;g++)N[g].ep(!0);J=!0}else if(!b&&J){g=0;for(h=N.length;g<h;g++)N[g].ep(!1);J=!1}};la.nd=function(){var a,b,c,d;a=0;for(b=Na.length;a<b;a++)c=Na[a],d=this.b.qi(c.Oi),
c.vh(d),c.Oi=-1,d&&(O=d.x,K=d.y);Na.length=0};la.ut=function(a){if(!this.zt){!a&&s&&s.resume&&s.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].Zt(a);a&&s&&s.suspend&&s.suspend()}};la.ab=function(){var a=this.b.De,b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.ab(a),0===d.N||3===d.N||d.ad||d.ac||!d.Je()||(d.ac=!0,fa=d.tag,x.trigger(hc.prototype.i.Rj,L)),0!==H&&d.Ep();var e,f;for(e in R)if(R.hasOwnProperty(e))for(d=R[e],b=0,c=d.length;b<c;b++)f=d[b],f.ab&&f.ab();1===D&&this.qb.wi()&&(this.qb.ab(a),O=this.qb.D.x,
K=this.qb.D.y,s.listener.setPosition(this.qb.D.x,this.qb.D.y,this.Rg),s.listener.setVelocity(this.qb.Ok(),this.qb.Pk(),0))};var Oa=[];la.Yt=function(a){var b,c,d,e,f,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&C||!f&&!C)Oa.push({filename:e,size:d,D:null}),g+=d;return g};la.bu=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],d=this.b.Ak+c.filename,c.D=this.mi(d,!1)};la.ps=function(){var a=0,b,c,d;b=0;for(c=Oa.length;b<c;++b)d=Oa[b],
d.D.Us()||d.D.Ks()||this.b.ea||this.b.Bi?a+=d.size:d.D.Kn()&&(a+=Math.floor(d.size/2));return a};la.mi=function(a,b){var c,d,e,f=null;c=0;for(d=ua.length;c<d;c++)if(e=ua[c],e.src===a){f=e;break}f||(f=new A(a,b),ua.push(f));return f};la.sn=function(a,b,c,d,e){var f,g,h;f=0;for(g=N.length;f<g;f++)if(h=N[f],h.src===a&&(h.Tq()||c))return h.tag=b,h;a=this.mi(a,c);if(!a.X)return"<preload>"!==b&&(a.dj=b,a.rl=d,a.wm=e),null;h=new q(a,b);N.push(h);return h};var Ga=[];F.prototype.Rj=function(a){return fb(fa,
a)};y.i=new F;X.prototype.Play=function(a,b,c,d){!J&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),G=this.sn(this.b.Ak+a[0]+(C?".ogg":".m4a"),d,a[1],0!==b,c))&&(G.Yl(!1),G.play(0!==b,c))};y.na=new X;y.Tb=new function(){}})();function ic(e){this.b=e}
(function(){function e(){}var p=ic.prototype;p.ib=function(b){this.ra=b;this.b=b.b};p.ib.prototype.ka=function(){};p.Ea=function(b){this.type=b;this.b=b.b;this.hl=Array(256);this.Lj=Array(256);this.re=0};var b=p.Ea.prototype;b.ka=function(){var b=this;this.b.ea||(jQuery(document).keydown(function(a){b.ot(a)}),jQuery(document).keyup(function(a){b.pt(a)}))};var n=[32,33,34,35,36,37,38,39,40,44];b.ot=function(b){var a=!1;window!=window.top&&-1<n.indexOf(b.which)&&(b.preventDefault(),a=!0,b.stopPropagation());
if(this.hl[b.which])this.Lj[b.which]&&!a&&b.preventDefault();else{this.hl[b.which]=!0;this.re=b.which;this.b.ja=!0;this.b.trigger(ic.prototype.i.bq,this);var e=this.b.trigger(ic.prototype.i.mq,this),d=this.b.trigger(ic.prototype.i.nq,this);this.b.ja=!1;if(e||d)this.Lj[b.which]=!0,a||b.preventDefault()}};b.pt=function(b){this.hl[b.which]=!1;this.re=b.which;this.b.ja=!0;this.b.trigger(ic.prototype.i.cq,this);var a=this.b.trigger(ic.prototype.i.pq,this),e=this.b.trigger(ic.prototype.i.oq,this);this.b.ja=
!1;if(a||e||this.Lj[b.which])this.Lj[b.which]=!0,b.preventDefault()};b.Zb=function(){return{triggerKey:this.re}};b.Ac=function(b){this.re=b.triggerKey};e.prototype.mq=function(b){return b===this.re};e.prototype.bq=function(){return!0};e.prototype.cq=function(){return!0};e.prototype.pq=function(b){return b===this.re};e.prototype.nq=function(b){return b===this.re};e.prototype.oq=function(b){return b===this.re};p.i=new e;p.na=new function(){};p.Tb=new function(){}})();function jc(e){this.b=e}
(function(){function e(){}function p(){}var b=jc.prototype;b.ib=function(a){this.ra=a;this.b=a.b};b.ib.prototype.ka=function(){};b.Ea=function(a){this.type=a;this.b=a.b;this.Qh=Array(4);this.tp=this.Gj=this.cg=this.Fd=this.Ed=0;this.Sk=!1};var n=b.Ea.prototype;n.ka=function(){var a=this;if(!this.b.ea){jQuery(document).mousemove(function(b){a.gh(b)});jQuery(document).mousedown(function(b){a.fh(b)});jQuery(document).mouseup(function(b){a.hh(b)});jQuery(document).dblclick(function(b){a.lt(b)});var b=
function(b){a.xt(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var h={left:0,top:0};n.gh=function(a){var b=this.b.ea?h:jQuery(this.b.canvas).offset();this.Ed=a.pageX-b.left;this.Fd=a.pageY-b.top};n.vo=function(){return 0<this.b.nb?!0:0<=this.Ed&&0<=this.Fd&&this.Ed<this.b.width&&this.Fd<this.b.height};n.fh=function(a){this.vo()&&(this.b.rf&&!this.b.bd&&a.preventDefault(),this.Qh[a.which]=!0,this.b.ja=!0,this.b.trigger(jc.prototype.i.Bm,this),this.cg=
a.which-1,this.Gj=0,this.b.trigger(jc.prototype.i.Cm,this),this.b.trigger(jc.prototype.i.Tj,this),this.b.ja=!1)};n.hh=function(a){this.Qh[a.which]&&(this.b.rf&&!this.b.bd&&a.preventDefault(),this.b.rf=!0,this.Qh[a.which]=!1,this.b.ja=!0,this.cg=a.which-1,this.b.trigger(jc.prototype.i.sq,this),this.b.ja=!1)};n.lt=function(a){this.vo()&&(a.preventDefault(),this.b.ja=!0,this.cg=a.which-1,this.Gj=1,this.b.trigger(jc.prototype.i.Cm,this),this.b.trigger(jc.prototype.i.Tj,this),this.b.ja=!1)};n.xt=function(a){this.tp=
0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Sk=!1;this.b.ja=!0;this.b.trigger(jc.prototype.i.vq,this);this.b.ja=!1;this.Sk&&gb(a)&&a.preventDefault()};e.prototype.Cm=function(a,b){return a===this.cg&&b===this.Gj};e.prototype.Bm=function(){return!0};e.prototype.Qp=function(a){return this.Qh[a+1]};e.prototype.sq=function(a){return a===this.cg};e.prototype.Sp=function(a){var b=this.b.oi();return Sa(this.b.$f(a,this.Ed,this.Fd,b.tf),b.tf)};e.prototype.Tj=function(a,b,d){return a!==this.cg||
b!==this.Gj?!1:this.b.$f(d,this.Ed,this.Fd,!1)};e.prototype.vq=function(a){this.Sk=!0;return a===this.tp};b.i=new e;b.na=new function(){};p.prototype.Jm=function(a,b){var d,e,h,k,f;ha(b)?(d=this.b.zd(0),e=d.scale,h=d.mb,k=d.Gb,f=d.e,d.scale=1,d.mb=1,d.Gb=1,d.e=0,a.u(d.pa(this.Ed,this.Fd,!0)),d.scale=e,d.mb=h,d.Gb=k,d.e=f):(d=ia(b)?this.b.zd(b):this.b.wg(b))?a.u(d.pa(this.Ed,this.Fd,!0)):a.u(0)};p.prototype.Km=function(a,b){var d,e,h,k,f;ha(b)?(d=this.b.zd(0),e=d.scale,h=d.mb,k=d.Hb,f=d.e,d.scale=
1,d.mb=1,d.Hb=1,d.e=0,a.u(d.pa(this.Ed,this.Fd,!1)),d.scale=e,d.mb=h,d.Hb=k,d.e=f):(d=ia(b)?this.b.zd(b):this.b.wg(b))?a.u(d.pa(this.Ed,this.Fd,!1)):a.u(0)};b.Tb=new p})();function kc(e){this.b=e}
(function(){function e(b){this.k=b;this.Ua=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Sd=this.qf=this.size=this.ti=0}var p=kc.prototype;p.ib=function(b){this.ra=b;this.b=b.b};var b=p.ib.prototype;b.ka=function(){this.B||(this.J=new Image,this.J.mk=this.Bj,this.O=null,this.b.xm(this.J,this.Aj))};b.Vi=function(){this.B||(this.O=null)};b.Wi=function(){this.B||!this.c.length||this.O||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Dh))};b.Tg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Ef(this.J,
!0,this.b.S,this.Dh))};b.Jj=function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};b.hj=function(b){b.drawImage(this.J,0,0)};e.prototype.init=function(){var b=this.k;this.x=b.x-b.Oj/2+Math.random()*b.Oj;this.y=b.y-b.Pj/2+Math.random()*b.Pj;this.speed=b.Zk-b.uj/2+Math.random()*b.uj;this.e=b.e-b.vj/2+Math.random()*b.vj;this.opacity=b.Xk;this.size=b.Yk-b.sj/2+Math.random()*b.sj;this.ti=b.Rk-b.vi/2+Math.random()*b.vi;this.Sd=this.qf=0};e.prototype.ab=function(b){var a=
this.k;this.x+=Math.cos(this.e)*this.speed*b;this.y+=Math.sin(this.e)*this.speed*b;this.y+=this.qf*b;this.speed+=a.Wj*b;this.size+=this.ti*b;this.qf+=a.Gk*b;this.Sd+=b;1>this.size?this.Ua=!1:(0!==a.Og&&(this.e+=Math.random()*a.Og*b-a.Og*b/2),0!==a.Qg&&(this.speed+=Math.random()*a.Qg*b-a.Qg*b/2),0!==a.Pg&&(this.opacity+=Math.random()*a.Pg*b-a.Pg*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.kf&&this.Sd>=a.timeout&&(this.Ua=!1),2===a.kf&&0>=this.speed&&(this.Ua=!1))};e.prototype.Jc=
function(b){var a=this.k.opacity*this.opacity;if(0!==a){0===this.k.kf&&(a*=1-this.Sd/this.k.timeout);b.globalAlpha=a;var a=this.x-this.size/2,e=this.y-this.size/2;this.k.b.fd&&(a=a+.5|0,e=e+.5|0);b.drawImage(this.k.type.J,a,e,this.size,this.size)}};e.prototype.Sb=function(b){var a=this.k.opacity*this.opacity;0===this.k.kf&&(a*=1-this.Sd/this.k.timeout);var e=this.size,d=e*this.k.Oo,n=this.x-e/2,p=this.y-e/2;this.k.b.fd&&(n=n+.5|0,p=p+.5|0);1>d||0===a||(d<b.gt||d>b.tl?(b.Ye(a),b.rh(n,p,n+e,p,n+e,p+
e,n,p+e)):b.At(this.x,this.y,d,a))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};p.Ea=function(b){this.type=b;this.b=b.b};var b=p.Ea.prototype,n=[];b.ka=function(){var b=this.ta;this.lj=b[0];this.vj=T(b[1]);this.Xf=b[2];this.am=!0;this.Zk=b[3];this.Yk=b[4];this.Xk=b[5]/100;this.Rk=b[6];this.Oj=b[7];this.Pj=b[8];this.uj=b[9];
this.sj=b[10];this.vi=b[11];this.Wj=b[12];this.Gk=b[13];this.Og=b[14];this.Qg=b[15];this.Pg=b[16];this.kf=b[17];this.timeout=b[18];this.We=0;this.Oo=1;this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;this.Mq(function(a){a.Aa.set(a.$i,a.bj,a.aj,a.Zi);a.Pb.Wf(a.Aa);a.Ph=!1;a.rm()});this.Rc||(this.sb=[]);this.b.im(this);this.type.Tg();if(1===this.Xf)for(b=0;b<this.lj;b++)this.Yj().opacity=0;this.ki=!0};b.Zb=function(){var b={r:this.lj,sc:this.vj,st:this.Xf,s:this.am,isp:this.Zk,isz:this.Yk,
io:this.Xk,gr:this.Rk,xr:this.Oj,yr:this.Pj,spr:this.uj,szr:this.sj,grnd:this.vi,acc:this.Wj,g:this.Gk,lar:this.Og,lsr:this.Qg,lor:this.Pg,dm:this.kf,to:this.timeout,pcc:this.We,ft:this.ki,p:[]},a,e,d,n=b.p;a=0;for(e=this.sb.length;a<e;a++)d=this.sb[a],n.push([d.x,d.y,d.speed,d.e,d.opacity,d.ti,d.size,d.qf,d.Sd]);return b};b.Ac=function(b){this.lj=b.r;this.vj=b.sc;this.Xf=b.st;this.am=b.s;this.Zk=b.isp;this.Yk=b.isz;this.Xk=b.io;this.Rk=b.gr;this.Oj=b.xr;this.Pj=b.yr;this.uj=b.spr;this.sj=b.szr;this.vi=
b.grnd;this.Wj=b.acc;this.Gk=b.g;this.Og=b.lar;this.Qg=b.lsr;this.Pg=b.lor;this.kf=b.dm;this.timeout=b.to;this.We=b.pcc;this.ki=b.ft;n.push.apply(n,this.sb);this.sb.length=0;var a,e,d,p=b.p;b=0;for(a=p.length;b<a;b++)e=this.Yj(),d=p[b],e.x=d[0],e.y=d[1],e.speed=d[2],e.e=d[3],e.opacity=d[4],e.ti=d[5],e.size=d[6],e.qf=d[7],e.Sd=d[8]};b.eh=function(){n.push.apply(n,this.sb);this.sb.length=0};b.Yj=function(){var b;n.length?(b=n.pop(),b.k=this):b=new e(this);this.sb.push(b);b.Ua=!0;return b};b.ab=function(){var b=
this.b.Ik(this),a,e,d,p;if(0===this.Xf&&this.am)for(this.We+=b*this.lj,e=Q(this.We),this.We-=e,a=0;a<e;a++)d=this.Yj(),d.init();this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;p=a=0;for(e=this.sb.length;a<e;a++)d=this.sb[a],this.sb[p]=d,this.b.ha=!0,1===this.Xf&&this.ki&&d.init(),d.ab(b),d.Ua?(d.left()<this.$i&&(this.$i=d.left()),d.right()>this.aj&&(this.aj=d.right()),d.top()<this.bj&&(this.bj=d.top()),d.bottom()>this.Zi&&(this.Zi=d.bottom()),p++):n.push(d);this.sb.length=p;this.xa();
this.ki=!1;1===this.Xf&&0===this.sb.length&&this.b.Pd(this)};b.Jc=function(b){var a,e,d,n=this.d;a=0;for(e=this.sb.length;a<e;a++)d=this.sb[a],d.right()>=n.ya&&d.bottom()>=n.za&&d.left()<=n.Ka&&d.top()<=n.Ja&&d.Jc(b)};b.Sb=function(b){this.Oo=this.d.vc();b.$b(this.type.O);var a,e,d,n=this.d;a=0;for(e=this.sb.length;a<e;a++)d=this.sb[a],d.right()>=n.ya&&d.bottom()>=n.za&&d.left()<=n.Ka&&d.top()<=n.Ja&&d.Sb(b)};p.i=new function(){};p.na=new function(){};p.Tb=new function(){}})();
function gc(e){this.b=e}
(function(){function e(){if(0===this.pk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Yf?b.drawImage(this.J,this.Mf,this.Nf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.J,0,0,this.width,this.height);this.pk=a.toDataURL("image/png")}return this.pk}function p(){}var b=gc.prototype;b.ib=function(a){this.ra=a;this.b=a.b};var n=b.ib.prototype;n.ka=function(){if(!this.B){var a,b,d,g,k,h,n,c,p;this.Hc=[];this.Bg=
!1;a=0;for(b=this.Ob.length;a<b;a++){k=this.Ob[a];n={};n.name=k[0];n.speed=k[1];n.loop=k[2];n.Rl=k[3];n.mj=k[4];n.Po=k[5];n.P=k[6];n.frames=[];d=0;for(g=k[7].length;d<g;d++)h=k[7][d],c={},c.Aj=h[0],c.Bj=h[1],c.Mf=h[2],c.Nf=h[3],c.width=h[4],c.height=h[5],c.duration=h[6],c.Cb=h[7],c.Db=h[8],c.Wk=h[9],c.ej=h[10],c.Qo=h[11],c.Yf=0!==c.width,c.pk="",c.xv=e,p={left:0,top:0,right:1,bottom:1},c.Zl=p,c.O=null,(p=this.b.$r(h[0]))?c.J=p:(c.J=new Image,c.J.Xq=h[0],c.J.mk=h[1],c.J.Sq=null,this.b.xm(c.J,h[0])),
n.frames.push(c),this.Hc.push(c);this.Ob[a]=n}}};n.Dp=function(){var a,b,d;a=0;for(b=this.c.length;a<b;a++)d=this.c[a],d.Zh=d.pc.O};n.Vi=function(){if(!this.B){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=this.Hc[a],d.J.Sq=null,d.O=null;this.Bg=!1;this.Dp()}};n.Wi=function(){if(!this.B&&this.c.length){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=this.Hc[a],d.O=this.b.q.Ef(d.J,!1,this.b.S,d.Qo);this.Dp()}};n.Tg=function(){if(!this.B&&!this.Bg&&this.b.q){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=
this.Hc[a],d.O=this.b.q.Ef(d.J,!1,this.b.S,d.Qo);this.Bg=!0}};n.Jj=function(){if(!this.B&&!this.c.length&&this.Bg){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=this.Hc[a],this.b.q.deleteTexture(d.O),d.O=null;this.Bg=!1}};var h=[];n.hj=function(a){var b,d,e;b=h.length=0;for(d=this.Hc.length;b<d;++b)e=this.Hc[b].J,-1===h.indexOf(e)&&(a.drawImage(e,0,0),h.push(e))};b.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Ob[0].frames[0].ej;this.Rc?this.W.xh(a):this.W=new $a(a)};var a=b.Ea.prototype;a.ka=
function(){this.visible=0===this.ta[0];this.ye=0!==this.ta[3];1===this.type.Ob.length&&1===this.type.Ob[0].frames.length||0===this.type.Ob[0].speed||this.b.im(this);this.ua=this.rn(this.ta[1])||this.type.Ob[0];this.A=this.ta[2];0>this.A&&(this.A=0);this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1);var a=this.ua.frames[this.A];this.W.xh(a.ej);this.Cb=a.Cb;this.Db=a.Db;this.rg=this.ua.speed;this.Rc?this.Yc.reset():this.Yc=new Ya;this.yd=this.Yc.ba;this.ue=!0;this.od=0;this.te=!0;this.ik=
this.Rm="";this.Uq=0;this.hk=-1;this.type.Tg();var b,d,e,g,h,k,c,a=0;for(b=this.type.Ob.length;a<b;a++)for(g=this.type.Ob[a],d=0,e=g.frames.length;d<e;d++)h=g.frames[d],0===h.width&&(h.width=h.J.width,h.height=h.J.height),h.Yf&&(c=h.J,k=h.Zl,k.left=h.Mf/c.width,k.top=h.Nf/c.height,k.right=(h.Mf+h.width)/c.width,k.bottom=(h.Nf+h.height)/c.height,0===h.Mf&&0===h.Nf&&h.width===c.width&&h.height===c.height&&(h.Yf=!1));this.pc=this.ua.frames[this.A];this.Zh=this.pc.O};a.Zb=function(){var a={a:this.ua.P,
f:this.A,cas:this.rg,fs:this.yd,ar:this.od,at:this.Yc.ba};this.ue||(a.ap=this.ue);this.te||(a.af=this.te);return a};a.Ac=function(a){var b=this.es(a.a);b&&(this.ua=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1);this.rg=a.cas;this.yd=a.fs;this.od=a.ar;this.Yc.reset();this.Yc.ba=a.at;this.ue=a.hasOwnProperty("ap")?a.ap:!0;this.te=a.hasOwnProperty("af")?a.af:!0;this.pc=this.ua.frames[this.A];this.Zh=this.pc.O;this.W.xh(this.pc.ej);this.Cb=this.pc.Cb;
this.Db=this.pc.Db};a.ak=function(a){this.A=a?0:this.ua.frames.length-1;this.ue=!1;this.Rm=this.ua.name;this.b.trigger(gc.prototype.i.aq,this);this.b.trigger(gc.prototype.i.$p,this);this.od=0};a.zv=function(){return this.Yc.ba};a.ab=function(){this.Yc.add(this.b.Ik(this));this.ik.length&&this.cr();0<=this.hk&&this.dr();var a=this.Yc.ba,b=this.ua,d=b.frames[this.A],e=d.duration/this.rg;this.ue&&a>=this.yd+e&&(this.te?this.A++:this.A--,this.yd+=e,this.A>=b.frames.length&&(b.Po?(this.te=!1,this.A=b.frames.length-
2):b.loop?this.A=b.mj:(this.od++,this.od>=b.Rl?this.ak(!1):this.A=b.mj)),0>this.A&&(b.Po?(this.A=1,this.te=!0,b.loop||(this.od++,this.od>=b.Rl&&this.ak(!0))):b.loop?this.A=b.mj:(this.od++,this.od>=b.Rl?this.ak(!0):this.A=b.mj)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.yd+b.frames[this.A].duration/this.rg&&(this.yd=a),a=b.frames[this.A],this.ef(d,a),this.b.ha=!0)};a.rn=function(a){var b,d,e;b=0;for(d=this.type.Ob.length;b<d;b++)if(e=this.type.Ob[b],fb(e.name,a))return e;
return null};a.es=function(a){var b,d,e;b=0;for(d=this.type.Ob.length;b<d;b++)if(e=this.type.Ob[b],e.P===a)return e;return null};a.cr=function(){var a=this.ua.frames[this.A],b=this.rn(this.ik);this.ik="";!b||fb(b.name,this.ua.name)&&this.ue||(this.ua=b,this.rg=b.speed,0>this.A&&(this.A=0),this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1),1===this.Uq&&(this.A=0),this.ue=!0,this.yd=this.Yc.ba,this.te=!0,this.ef(a,this.ua.frames[this.A]),this.b.ha=!0)};a.dr=function(){var a=this.ua.frames[this.A],
b=this.A;this.A=Q(this.hk);0>this.A&&(this.A=0);this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1);b!==this.A&&(this.ef(a,this.ua.frames[this.A]),this.yd=this.Yc.ba,this.b.ha=!0);this.hk=-1};a.ef=function(a,b){var d=a.width,e=a.height,g=b.width,h=b.height;d!=g&&(this.width*=g/d);e!=h&&(this.height*=h/e);this.Cb=b.Cb;this.Db=b.Db;this.W.xh(b.ej);this.xa();this.pc=b;this.Zh=b.O;d=0;for(e=this.G.length;d<e;d++)g=this.G[d],g.tt&&g.tt(a,b);this.b.trigger(gc.prototype.i.ef,this)};a.Jc=function(a){a.globalAlpha=
this.opacity;var b=this.pc,d=b.Yf,e=b.J,g=this.x,h=this.y,k=this.width,c=this.height;if(0===this.e&&0<=k&&0<=c)g-=this.Cb*k,h-=this.Db*c,this.b.fd&&(g=Math.round(g),h=Math.round(h)),d?a.drawImage(e,b.Mf,b.Nf,b.width,b.height,g,h,k,c):a.drawImage(e,g,h,k,c);else{this.b.fd&&(g=Math.round(g),h=Math.round(h));a.save();var n=0<k?1:-1,q=0<c?1:-1;a.translate(g,h);1===n&&1===q||a.scale(n,q);a.rotate(this.e*n*q);g=0-this.Cb*na(k);h=0-this.Db*na(c);d?a.drawImage(e,b.Mf,b.Nf,b.width,b.height,g,h,na(k),na(c)):
a.drawImage(e,g,h,na(k),na(c));a.restore()}};a.Sb=function(a){a.$b(this.Zh);a.Ye(this.opacity);var b=this.pc,d=this.Pb;if(this.b.fd){var e=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;b.Yf?a.Hd(d.Sa+e,d.Ta+g,d.Kb+e,d.Lb+g,d.yb+e,d.zb+g,d.wb+e,d.xb+g,b.Zl):a.rh(d.Sa+e,d.Ta+g,d.Kb+e,d.Lb+g,d.yb+e,d.zb+g,d.wb+e,d.xb+g)}else b.Yf?a.Hd(d.Sa,d.Ta,d.Kb,d.Lb,d.yb,d.zb,d.wb,d.xb,b.Zl):a.rh(d.Sa,d.Ta,d.Kb,d.Lb,d.yb,d.zb,d.wb,d.xb)};a.ls=function(a){var b=this.pc,d,e;d=0;for(e=b.Wk.length;d<e;d++)if(fb(a,
b.Wk[d][0]))return d;return-1};a.Lk=function(a,b){var d=this.pc,e=d.Wk,g;g=P(a)?this.ls(a):a-1;g=Q(g);if(0>g||g>=e.length)return b?this.x:this.y;var h=(e[g][1]-d.Cb)*this.width,e=e[g][2],e=(e-d.Db)*this.height,d=Math.cos(this.e);g=Math.sin(this.e);var k=h*d-e*g,e=e*d+h*g,h=k+this.x,e=e+this.y;return b?h:e};var g=null,d=new ca,u=!1,v=[],k=new S(0,0,0,0);n.finish=function(a){if(u){if(a){var b=this.b.ob().Rb.Oc;a=g.Y();var e=d.Wc(),h,k;if(a.da){a.da=!1;a.c.length=e.length;h=0;for(k=e.length;h<k;h++)a.c[h]=
e[h];if(b)for(h=a.V.length=0,k=g.c.length;h<k;h++)e=g.c[h],d.contains(e)||a.V.push(e)}else if(b)for(b=a.c.length,a.c.length=b+e.length,h=0,k=e.length;h<k;h++)a.c[b+h]=e[h],Ba(a.V,e[h]);else ya(a.c,e);g.pd()}d.clear();u=!1}};p.prototype.Tp=function(a){if(a){var b=!1,e,h,n,m=this.b.oi(),p=m.type,m=m.tf;e=a.Y();h=this.b.ob().Rb.Oc;var c;e.da?(this.ma(),k.qg(this.Aa),k.offset(0,0),this.b.hs(this.d,a,k,v),c=v):c=h?e.V:e.c;g=a;u=p!==a&&!m;e=0;for(h=c.length;e<h;e++)if(n=c[e],this.b.du(this,n)){b=!0;if(m)break;
p!==a&&d.add(n)}v.length=0;a=b}else a=!1;return a};p.prototype.$p=function(a){return fb(this.Rm,a)};p.prototype.aq=function(){return!0};p.prototype.ef=function(){return!0};b.i=new p;b.na=new function(){};b.Tb=new function(){}})();function mc(e){this.b=e}
(function(){var e=mc.prototype;e.ib=function(b){this.ra=b;this.b=b.b};var p=e.ib.prototype;p.ka=function(){this.B||(this.J=new Image,this.J.mk=this.Bj,this.b.xm(this.J,this.Aj),this.O=this.pattern=null)};p.Vi=function(){this.B||(this.O=null)};p.Wi=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Dh));var b,e;b=0;for(e=this.c.length;b<e;b++)this.c[b].O=this.O}};p.Tg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Dh))};p.Jj=
function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};p.hj=function(b){b.drawImage(this.J,0,0)};e.Ea=function(b){this.type=b;this.b=b.b};p=e.Ea.prototype;p.ka=function(){this.visible=0===this.ta[0];this.sh=new S(0,0,0,0);this.Cn=!1;this.J=this.type.J;this.b.q?(this.type.Tg(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.ca.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};p.nd=function(){this.Cn=!1;this.J=this.type.J};p.eh=
function(){this.b.q&&this.Cn&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};p.Jc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var e=this.x,h=this.y;this.b.fd&&(e=Math.round(e),h=Math.round(h));var a=-(this.Cb*this.width),g=-(this.Db*this.height),d=a%this.J.width,p=g%this.J.height;0>d&&(d+=this.J.width);0>p&&(p+=this.J.height);b.translate(e,h);b.rotate(this.e);b.translate(d,p);b.fillRect(a-d,g-p,this.width,this.height);b.restore()};p.Sb=function(b){b.$b(this.O);
b.Ye(this.opacity);var e=this.sh;e.right=this.width/this.J.width;e.bottom=this.height/this.J.height;var h=this.Pb;if(this.b.fd){var a=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;b.Hd(h.Sa+a,h.Ta+g,h.Kb+a,h.Lb+g,h.yb+a,h.zb+g,h.wb+a,h.xb+g,e)}else b.Hd(h.Sa,h.Ta,h.Kb,h.Lb,h.yb,h.zb,h.wb,h.xb,e)};e.i=new function(){};e.na=new function(){};e.Tb=new function(){}})();function Z(e){this.b=e}
(function(){function e(a){v=a.x;k=a.y;f=a.z}function p(a){r=a.x;l=a.y;w=a.z}function b(a,b,c,d){var e;e=t.length?t.pop():new n;e.init(a,b,c,d);return e}function n(){this.zh=this.id=this.y=this.x=this.yj=this.xj=this.kl=this.time=this.em=0;this.Fh=this.Hj=!1}function h(){}function a(){}var g=Z.prototype;g.ib=function(a){this.ra=a;this.b=a.b};g.ib.prototype.ka=function(){};g.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.wl=!1};var d=g.Ea.prototype,u={left:0,top:0};d.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 v=0,k=0,f=0,r=0,l=0,w=0,t=[];n.prototype.init=function(a,b,c,d){var e=U();this.em=this.kl=this.time=e;this.xj=a;this.yj=b;this.x=a;this.y=b;this.id=c;this.zh=d;this.Fh=this.Hj=!1};n.prototype.update=function(a,b,c){this.kl=this.time;this.time=a;this.x=b;this.y=c;!this.Fh&&15<=Ra(this.xj,this.yj,this.x,this.y)&&(this.Fh=!0)};n.prototype.dt=function(a,b){!this.Hj&&500<=U()-this.em&&!this.Fh&&15>Ra(this.xj,this.yj,
this.x,this.y)&&(this.Hj=!0,a.kd=this.zh,a.dg=this.id,a.of=b,a.b.trigger(Z.prototype.i.kq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.i.lq,a),a.of=0)};var m=-1E3,E=-1E3,c=-1E4;n.prototype.qo=function(a,b){if(!this.Hj){var d=U();333>=d-this.em&&!this.Fh&&15>Ra(this.xj,this.yj,this.x,this.y)&&(a.kd=this.zh,a.dg=this.id,a.of=b,666>=d-c&&25>Ra(m,E,this.x,this.y)?(a.b.trigger(Z.prototype.i.gq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.i.hq,a),E=m=-1E3,c=-1E4):(a.b.trigger(Z.prototype.i.tq,
a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.i.uq,a),m=this.x,E=this.y,c=d),a.of=0)}};d.ka=function(){this.Ws=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.of=this.dg=this.kd=this.td=this.sd=this.Nm=this.Mm=this.Lm=this.Iq=this.Hq=this.Gq=this.mh=this.lh=this.kh=0;this.mu=0!==this.ta[0];var a=0<this.b.nb?document:this.b.canvas,b=document;this.b.eb?b=a=window.Canvas:this.b.hc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.jh(a)},
!1),a.addEventListener("pointermove",function(a){c.ih(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.jh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.ih(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.Of(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Of(a,!0)},!1));if(this.Ws){var d=function(a){a=a.reading;c.Lm=a.accelerationX;c.Mm=a.accelerationY;c.Nm=a.accelerationZ},f=function(a){a=a.reading;c.kh=a.yawDegrees;c.lh=a.pitchDegrees;c.mh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.kh=a.alpha||
0;c.lh=a.beta||0;c.mh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Gq=a.accelerationIncludingGravity.x||0,c.Hq=a.accelerationIncludingGravity.y||0,c.Iq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Lm=a.acceleration.x||0,c.Mm=a.acceleration.y||0,c.Nm=a.acceleration.z||0)},!1);this.mu&&!this.b.ea&&(jQuery(document).mousemove(function(a){c.gh(a)}),jQuery(document).mousedown(function(a){c.fh(a)}),jQuery(document).mouseup(function(a){c.hh(a)}));
this.b.uf&&!this.b.eb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.yc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(p,null,{frequency:40});this.b.eu(this)};d.ih=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.vg(a.pointerId),c=U();if(0<=b){var d=this.b.ea?u:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};d.jh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.ea?u:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;U();this.kd=this.touches.length;this.dg=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.kd));this.b.ja=!0;this.b.trigger(Z.prototype.i.Gm,this);this.b.trigger(Z.prototype.i.Im,this);this.sd=d;this.td=c;this.b.trigger(Z.prototype.i.Hm,this);this.b.ja=
!1}};d.Gd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.vg(a.pointerId);this.kd=0<=c?this.touches[c].zh:-1;this.dg=0<=c?this.touches[c].id:-1;this.b.ja=!0;this.b.trigger(Z.prototype.i.Fm,this);this.b.trigger(Z.prototype.i.Vj,this);0<=c&&(b||this.touches[c].qo(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.ja=!1}};d.Xi=function(a){a.preventDefault&&a.preventDefault();var b=U(),
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.ea?u:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};d.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.ea?u:jQuery(this.b.canvas).offset();U();this.b.ja=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.vg(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;
this.kd=this.touches.length;this.dg=f.identifier;this.touches.push(b(g,h,f.identifier,this.kd));this.b.trigger(Z.prototype.i.Gm,this);this.b.trigger(Z.prototype.i.Im,this);this.sd=g;this.td=h;this.b.trigger(Z.prototype.i.Hm,this)}this.b.ja=!1};d.Of=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ja=!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.kd=this.touches[e].zh,this.dg=this.touches[e].id,this.b.trigger(Z.prototype.i.Fm,
this),this.b.trigger(Z.prototype.i.Vj,this),b||this.touches[e].qo(this,e),100>t.length&&t.push(this.touches[e]),this.touches.splice(e,1));this.b.ja=!1};d.uv=function(){return this.b.uf&&0===this.kh&&0!==f?90*f:this.b.yc&&0===this.kh&&0!==w?90*w:this.kh};d.vv=function(){return this.b.uf&&0===this.lh&&0!==k?-90*k:this.b.yc&&0===this.lh&&0!==l?90*l:this.lh};d.yv=function(){return this.b.uf&&0===this.mh&&0!==v?90*v:this.b.yc&&0===this.mh&&0!==r?90*r:this.mh};d.fh=function(a){a.preventDefault&&this.b.rf&&
!this.b.bd&&a.preventDefault();this.Yi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.wl=!0};d.gh=function(a){this.wl&&this.Xi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.hh=function(a){a.preventDefault&&this.b.rf&&!this.b.bd&&a.preventDefault();this.b.rf=!0;this.Of({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.wl=!1};d.hm=function(){var a,b,c,d=U();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.kl=d),c.dt(this,
a)};h.prototype.Im=function(){return!0};h.prototype.Vj=function(){return!0};h.prototype.Hm=function(a){return a?this.b.$f(a,this.sd,this.td,!1):!1};var A=[];h.prototype.Up=function(a){if(!a)return!1;var b=a.Y(),c=b.Kc(),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.pa(e.x,e.y,!0),e=l.d.pa(e.x,e.y,!1),l.bb(d,e)){A.push(l);break}}return A.length?(b.da=!1,ya(b.c,A),a.pd(),A.length=0,!0):!1};h.prototype.Gm=function(a){a=Math.floor(a);
return a===this.kd};h.prototype.Fm=function(a){a=Math.floor(a);return a===this.kd};h.prototype.kq=function(){return!0};h.prototype.tq=function(){return!0};h.prototype.gq=function(){return!0};h.prototype.lq=function(a){return a?this.b.$f(a,this.sd,this.td,!1):!1};h.prototype.uq=function(a){return a?this.b.$f(a,this.sd,this.td,!1):!1};h.prototype.hq=function(a){return a?this.b.$f(a,this.sd,this.td,!1):!1};g.i=new h;a.prototype.Jm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,h;ha(b)?(d=this.b.zd(0),e=d.scale,f=d.mb,g=d.Gb,h=d.e,d.scale=1,d.mb=1,d.Gb=1,d.e=0,a.u(d.pa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.mb=f,d.Gb=g,d.e=h):(d=ia(b)?this.b.zd(b):this.b.wg(b))?a.u(d.pa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};a.prototype.Km=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ha(b)?(d=this.b.zd(0),e=d.scale,f=d.mb,g=d.Hb,h=d.e,d.scale=1,d.mb=1,d.Hb=1,d.e=0,a.u(d.pa(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.mb=f,d.Hb=g,d.e=h):(d=ia(b)?this.b.zd(b):this.b.wg(b))?a.u(d.pa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};g.Tb=new a})();
function nc(e){this.b=e;var p=this;this.b.ea||(jQuery(document).mousemove(function(b){p.gh(b)}),jQuery(document).mousedown(function(b){p.fh(b)}),jQuery(document).mouseup(function(b){p.hh(b)}));e=0<this.b.nb?document:this.b.canvas;this.b.eb?e=window.Canvas:this.b.hc&&(e=window);window.navigator.pointerEnabled?(e.addEventListener("pointerdown",function(b){p.jh(b)},!1),e.addEventListener("pointermove",function(b){p.ih(b)},!1),e.addEventListener("pointerup",function(b){p.Gd(b)},!1),e.addEventListener("pointercancel",
function(b){p.Gd(b)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(b){p.jh(b)},!1),e.addEventListener("MSPointerMove",function(b){p.ih(b)},!1),e.addEventListener("MSPointerUp",function(b){p.Gd(b)},!1),e.addEventListener("MSPointerCancel",function(b){p.Gd(b)},!1)):(e.addEventListener("touchstart",function(b){p.Yi(b)},!1),e.addEventListener("touchmove",function(b){p.Xi(b)},!1),e.addEventListener("touchend",function(b){p.Of(b)},!1),e.addEventListener("touchcancel",
function(b){p.Of(b)},!1))}
(function(){function e(a){var e,d;e=0;for(d=a.G.length;e<d;e++)if(a.G[e]instanceof b.Ea)return a.G[e];return null}function p(){}var b=nc.prototype,n={left:0,top:0};b.fh=function(a){1===a.which&&this.Cl("leftmouse",a.pageX,a.pageY)};b.gh=function(a){1===a.which&&this.Dl("leftmouse",a.pageX,a.pageY)};b.hh=function(a){1===a.which&&this.El("leftmouse")};b.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,d,e,h;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],h=e.identifier,
this.Cl(h?h.toString():"<none>",e.pageX,e.pageY)};b.Xi=function(a){a.preventDefault&&a.preventDefault();var b,d,e,h;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],h=e.identifier,this.Dl(h?h.toString():"<none>",e.pageX,e.pageY)};b.Of=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,d,e;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],e=e.identifier,this.El(e?e.toString():"<none>")};b.jh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&
(a.preventDefault&&gb(a)&&a.preventDefault(),this.Cl(a.pointerId.toString(),a.pageX,a.pageY))};b.ih=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Dl(a.pointerId.toString(),a.pageX,a.pageY))};b.Gd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.El(a.pointerId.toString()))};b.Cl=function(a,b,d){var h=this.b.ea?n:jQuery(this.b.canvas).offset();b-=h.left;
d-=h.top;var p,k,f,r,h=this.Kf.Wc(),l,w,t,m=null;l=0;for(w=h.length;l<w;l++)if(t=h[l],p=e(t),p.enabled&&!p.Ce&&(p=t.d.pa(b,d,!0),k=t.d.pa(b,d,!1),t.ma(),t.bb(p,k)))m?t.d.index>m.d.index?(m=t,f=p,r=k):t.d.index===m.d.index&&t.wc()>m.wc()&&(m=t,f=p,r=k):(m=t,f=p,r=k);m&&e(m).mt(a,f,r)};b.Dl=function(a,b,d){var h=this.b.ea?n:jQuery(this.b.canvas).offset();b-=h.left;d-=h.top;var p,k=this.Kf.Wc(),f,r,l;f=0;for(r=k.length;f<r;f++)p=k[f],l=e(p),!l.enabled||!l.Ce||l.Ce&&l.tk!==a||(h=p.d.pa(b,d,!0),p=p.d.pa(b,
d,!1),l.qt(h,p))};b.El=function(a){var b=this.Kf.Wc(),d,h,n;d=0;for(h=b.length;d<h;d++)n=b[d],n=e(n),n.Ce&&n.tk===a&&n.wt()};b.ib=function(a){this.behavior=a;this.b=a.b};b.ib.prototype.ka=function(){};b.Ea=function(a,b){this.type=a;this.behavior=a.behavior;this.Eb=b;this.b=a.b};var h=b.Ea.prototype;h.ka=function(){this.Ce=!1;this.hn=this.gn=0;this.tk="<none>";this.bk=this.ta[0];this.enabled=0!==this.ta[1]};h.Zb=function(){return{enabled:this.enabled}};h.Ac=function(a){this.enabled=a.enabled;this.Ce=
!1};h.mt=function(a,b,d){this.gn=b-this.Eb.x;this.hn=d-this.Eb.y;this.Ce=!0;this.tk=a;this.b.ja=!0;this.b.trigger(nc.prototype.i.iq,this.Eb);this.b.ja=!1};h.qt=function(a,b){var d=a-this.gn,e=b-this.hn;if(0===this.bk){if(this.Eb.x!==d||this.Eb.y!==e)this.Eb.x=d,this.Eb.y=e,this.Eb.xa()}else 1===this.bk?this.Eb.x!==d&&(this.Eb.x=d,this.Eb.xa()):2===this.bk&&this.Eb.y!==e&&(this.Eb.y=e,this.Eb.xa())};h.wt=function(){this.Ce=!1;this.b.ja=!0;this.b.trigger(nc.prototype.i.jq,this.Eb);this.b.ja=!1};h.ab=
function(){};p.prototype.iq=function(){return!0};p.prototype.jq=function(){return!0};b.i=new p;b.na=new function(){};b.Tb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,mc,Z,nc,jc.prototype.i.Sp,gc.prototype.na.zq,jc.prototype.i.Tj,Z.prototype.i.Up,Y.prototype.na.Bq,jc.prototype.i.Qp,Y.prototype.i.Mp,Y.prototype.na.yq,Y.prototype.na.Zp,hc.prototype.na.Play,Z.prototype.i.Vj,Y.prototype.na.Eq,Y.prototype.i.Dm,gc.prototype.na.Cq,jc.prototype.i.Bm,gc.prototype.i.Vp,Y.prototype.i.Dq,Y.prototype.na.Np,gc.prototype.i.Tp,gc.prototype.na.Op,Y.prototype.na.Hp,Y.prototype.i.Am,gc.prototype.na.Aq,Y.prototype.na.wq,Y.prototype.na.xq,Y.prototype.na.Yp]}
;
