DeLucaRun4 first commit, as downloaded from website

This commit is contained in:
giomba 2020-05-29 12:08:27 +02:00
parent d146b0dff4
commit d3261ca717
65 changed files with 593 additions and 0 deletions

View File

@ -0,0 +1,454 @@
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var ca,da,ga,ha,ja,ka,la,z,ma,na,oa,pa,qa,ra,K,ua,va,wa,ya,za,Aa,Ba,R,Ca,Da,Fa,Ga,Ha,T,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc={},ic={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,c,d,k){this.set(a,c,d,k)}function n(){this.Lb=this.Kb=this.Nb=this.Mb=this.Wb=this.Vb=this.qb=this.pb=0}function q(a,c,d,k){a<c?d<k?(x=a<d?a:d,H=c>k?c:k):(x=a<k?a:k,H=c>d?c:d):d<k?(x=c<d?c:d,H=a>k?a:k):(x=c<k?c:k,H=a>d?a:d)}function m(){this.items=this.Td=null;this.ci=0;L&&(this.Td=new Set);this.kh=[];this.Me=!0}function h(a){C[S++]=a}function r(){this.ba=this.ol=this.y=this.Sl=0}function b(a){this.nb=[];this.qj=this.sj=this.tj=this.rj=0;this.Qi(a)}function a(a,c){this.Xl=
a;this.Wl=c;this.cells={}}function f(a,c){this.Xl=a;this.Wl=c;this.cells={}}function t(a,c,d){var k;return P.length?(k=P.pop(),k.Em=a,k.x=c,k.y=d,k):new ca(a,c,d)}function c(a,c,d){this.Em=a;this.x=c;this.y=d;this.wb=new da}function d(a,c,d){var k;return w.length?(k=w.pop(),k.Em=a,k.x=c,k.y=d,k):new ga(a,c,d)}function l(a,c,d){this.Em=a;this.x=c;this.y=d;this.wb=[];this.Gg=!0;this.Pd=new da;this.qh=!1}function g(a,c){return a.Cd-c.Cd}ha=function(a){window.console&&window.console.log&&window.console.log(a)};
ja=function(a){window.console&&window.console.error&&window.console.error(a)};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};z=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,c){return a>c?a:c};qa=function(a,c){return a<c?a:c};ra=Math.PI;K=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var c=a|0;return c===a?c:c+1};
va=function(a,c,d,k,p,f,g,b){var l,y,v,F;a<d?(y=a,l=d):(y=d,l=a);p<g?(F=p,v=g):(F=g,v=p);if(l<F||y>v)return!1;c<k?(y=c,l=k):(y=k,l=c);f<b?(F=f,v=b):(F=b,v=f);if(l<F||y>v)return!1;l=p-a+g-d;y=f-c+b-k;a=d-a;c=k-c;p=g-p;f=b-f;b=oa(c*p-f*a);return oa(p*y-f*l)>b?!1:oa(a*y-c*l)<=b};e.prototype.set=function(a,c,d,k){this.left=a;this.top=c;this.right=d;this.bottom=k};e.prototype.xh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-
this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.mw=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.ow=function(a,c,d){return!(a.right+
c<this.left||a.bottom+d<this.top||a.left+c>this.right||a.top+d>this.bottom)};e.prototype.Ob=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.Ch=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=e;n.prototype.Pi=function(a){this.pb=a.left;this.qb=a.top;this.Vb=a.right;this.Wb=a.top;this.Mb=a.right;this.Nb=a.bottom;this.Kb=a.left;this.Lb=a.bottom};n.prototype.yr=function(a,c){if(0===c)this.Pi(a);else{var d=
Math.sin(c),k=Math.cos(c),p=a.left*d,f=a.top*d,g=a.right*d,d=a.bottom*d,b=a.left*k,l=a.top*k,y=a.right*k,k=a.bottom*k;this.pb=b-f;this.qb=l+p;this.Vb=y-f;this.Wb=l+g;this.Mb=y-d;this.Nb=k+g;this.Kb=b-d;this.Lb=k+p}};n.prototype.offset=function(a,c){this.pb+=a;this.qb+=c;this.Vb+=a;this.Wb+=c;this.Mb+=a;this.Nb+=c;this.Kb+=a;this.Lb+=c;return this};var x=0,H=0;n.prototype.Zo=function(a){q(this.pb,this.Vb,this.Mb,this.Kb);a.left=x;a.right=H;q(this.qb,this.Wb,this.Nb,this.Lb);a.top=x;a.bottom=H};n.prototype.Ob=
function(a,c){var d=this.pb,k=this.qb,p=this.Vb-d,f=this.Wb-k,g=this.Mb-d,b=this.Nb-k,l=a-d,y=c-k,v=p*p+f*f,F=p*g+f*b,f=p*l+f*y,t=g*g+b*b,e=g*l+b*y,u=1/(v*t-F*F),p=(t*f-F*e)*u,v=(v*e-F*f)*u;if(0<=p&&0<v&&1>p+v)return!0;p=this.Kb-d;f=this.Lb-k;v=p*p+f*f;F=p*g+f*b;f=p*l+f*y;u=1/(v*t-F*F);p=(t*f-F*e)*u;v=(v*e-F*f)*u;return 0<=p&&0<v&&1>p+v};n.prototype.Ke=function(a,c){if(c)switch(a){case 0:return this.pb;case 1:return this.Vb;case 2:return this.Mb;case 3:return this.Kb;case 4:return this.pb;default:return this.pb}else switch(a){case 0:return this.qb;
case 1:return this.Wb;case 2:return this.Nb;case 3:return this.Lb;case 4:return this.qb;default:return this.qb}};n.prototype.Aq=function(){return(this.pb+this.Vb+this.Mb+this.Kb)/4};n.prototype.Bq=function(){return(this.qb+this.Wb+this.Nb+this.Lb)/4};n.prototype.Pp=function(a){var c=a.Aq(),d=a.Bq();if(this.Ob(c,d))return!0;c=this.Aq();d=this.Bq();if(a.Ob(c,d))return!0;var k,p,f,g,b,l,y,v;for(y=0;4>y;y++)for(v=0;4>v;v++)if(c=this.Ke(y,!0),d=this.Ke(y,!1),k=this.Ke(y+1,!0),p=this.Ke(y+1,!1),f=a.Ke(v,
!0),g=a.Ke(v,!1),b=a.Ke(v+1,!0),l=a.Ke(v+1,!1),va(c,d,k,p,f,g,b,l))return!0;return!1};ya=n;za=function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);return a};Aa=function(a,c){var d,k;c=K(c);if(!(0>c||c>=a.length)){d=c;for(k=a.length-1;d<k;d++)a[d]=a[d+1];Ba(a,k)}};Ba=function(a,c){a.length=c};R=function(a){Ba(a,0)};Ca=function(a,c){R(a);var d,k;d=0;for(k=c.length;d<k;++d)a[d]=c[d]};Da=function(a,c){a.push.apply(a,c)};Fa=function(a,c){var d,k;d=0;for(k=a.length;d<k;++d)if(a[d]===c)return d;
return-1};Ga=function(a,c){var d=Fa(a,c);-1!==d&&Aa(a,d)};Ha=function(a,c,d){return a<c?c:a>d?d:a};T=function(a){return a/(180/ra)};Ia=function(a){return 180/ra*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};La=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return La(T(a))};Oa=function(a,c,d,k){return Math.atan2(k-c,d-a)};Pa=function(a,c){if(a===c)return 0;var d=Math.sin(a),k=Math.cos(a),p=Math.sin(c),f=Math.cos(c),d=d*p+k*f;return 1<=d?0:-1>=d?ra:Math.acos(d)};
Qa=function(a,c,d){var k=Math.sin(a),p=Math.cos(a),f=Math.sin(c),g=Math.cos(c);return Math.acos(k*f+p*g)>d?0<p*f-k*g?La(a+d):La(a-d):La(c)};Ra=function(a,c){var d=Math.sin(a),k=Math.cos(a),p=Math.sin(c),f=Math.cos(c);return 0>=k*p-d*f};Sa=function(a,c,d,k,p,f){if(0===d)return f?a:c;var g=Math.sin(d);d=Math.cos(d);a-=k;c-=p;var b=a*g;a=a*d-c*g;c=c*d+b;return f?a+k:c+p};Va=function(a,c,d,k){a=d-a;c=k-c;return Math.sqrt(a*a+c*c)};Wa=function(a,c){return!a!==!c};Xa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;
return!1};Ya=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var A=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-A};var k=!1,p=k=!1,u=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
k=!k&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var L=!k&&!u&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.je()?!1:L?this.Td.has(a):this.items&&this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(L)this.Td.has(a)||(this.Td.add(a),this.Me=!1);else{var c=a.toString(),d=this.items;d?d.hasOwnProperty(c)||(d[c]=a,this.ci++,this.Me=!1):(this.items={},this.items[c]=
a,this.ci=1,this.Me=!1)}};m.prototype.remove=function(a){if(!this.je())if(L)this.Td.has(a)&&(this.Td["delete"](a),this.Me=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.ci--,this.Me=!1)}};m.prototype.clear=function(){this.je()||(L?this.Td.clear():(this.items=null,this.ci=0),R(this.kh),this.Me=!0)};m.prototype.je=function(){return 0===this.count()};m.prototype.count=function(){return L?this.Td.size:this.ci};var C=null,S=0;m.prototype.Rx=function(){if(!this.Me){if(L)R(this.kh),
C=this.kh,S=0,this.Td.forEach(h),C=null,S=0;else{var a=this.kh;R(a);var c,d=0,k=this.items;if(k)for(c in k)k.hasOwnProperty(c)&&(a[d++]=k[c])}this.Me=!0}};m.prototype.Ae=function(){this.Rx();return this.kh};da=m;new da;$a=function(a,c){L?ab(a,c.Td):bb(a,c.Ae())};ab=function(a,c){var d,k,p,f;k=d=0;for(p=a.length;d<p;++d)f=a[d],c.has(f)||(a[k++]=f);Ba(a,k)};bb=function(a,c){var d,k,p,f;k=d=0;for(p=a.length;d<p;++d)f=a[d],-1===Fa(c,f)&&(a[k++]=f);Ba(a,k)};r.prototype.add=function(a){this.y=a-this.Sl;
this.ol=this.ba+this.y;this.Sl=this.ol-this.ba-this.y;this.ba=this.ol};r.prototype.reset=function(){this.ba=this.ol=this.y=this.Sl=0};cb=r;db=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Qi=function(a){this.hr=a;this.xd=a.length/2;this.nb.length=a.length;this.wj=this.xj=-1;this.cp=0};b.prototype.Dg=function(){return!this.hr.length};b.prototype.Z=function(){for(var a=this.nb,c=a[0],d=c,k=a[1],p=k,f,g,b=1,l=this.xd;b<l;++b)g=2*b,f=a[g],g=a[g+1],f<c&&(c=f),f>d&&(d=f),
g<k&&(k=g),g>p&&(p=g);this.rj=c;this.sj=d;this.tj=k;this.qj=p};b.prototype.Pi=function(a,c,d){this.nb.length=8;this.xd=4;var k=this.nb;k[0]=a.left-c;k[1]=a.top-d;k[2]=a.right-c;k[3]=a.top-d;k[4]=a.right-c;k[5]=a.bottom-d;k[6]=a.left-c;k[7]=a.bottom-d;this.xj=a.right-a.left;this.wj=a.bottom-a.top;this.Z()};b.prototype.bh=function(a,c,d,k,p){this.nb.length=8;this.xd=4;var f=this.nb;f[0]=a.pb-c;f[1]=a.qb-d;f[2]=a.Vb-c;f[3]=a.Wb-d;f[4]=a.Mb-c;f[5]=a.Nb-d;f[6]=a.Kb-c;f[7]=a.Lb-d;this.xj=k;this.wj=p;this.Z()};
b.prototype.xr=function(a){this.xd=a.xd;Ca(this.nb,a.nb);this.rj=a.rj;this.tj-a.tj;this.sj=a.sj;this.qj=a.qj};b.prototype.qg=function(a,c,d){if(this.xj!==a||this.wj!==c||this.cp!==d){this.xj=a;this.wj=c;this.cp=d;var k,p,f,g,b,l=0,y=1,v=this.hr,F=this.nb;0!==d&&(l=Math.sin(d),y=Math.cos(d));d=0;for(f=this.xd;d<f;d++)k=2*d,p=k+1,g=v[k]*a,b=v[p]*c,F[k]=g*y-b*l,F[p]=b*y+g*l;this.Z()}};b.prototype.Ob=function(a,c){var d=this.nb;if(a===d[0]&&c===d[1])return!0;var k,p,f,g=this.xd,b=this.rj-110,l=this.tj-
101,y=this.sj+131,v=this.qj+120,F,t,e=0,u=0;for(k=0;k<g;k++)p=2*k,f=(k+1)%g*2,F=d[p],p=d[p+1],t=d[f],f=d[f+1],va(b,l,a,c,F,p,t,f)&&e++,va(y,v,a,c,F,p,t,f)&&u++;return 1===e%2||1===u%2};b.prototype.Sh=function(a,c,d){var k=a.nb,p=this.nb;if(this.Ob(k[0]+c,k[1]+d)||a.Ob(p[0]-c,p[1]-d))return!0;var f,g,b,l,y,v,F,t,e,u,x,m;f=0;for(l=this.xd;f<l;f++)for(g=2*f,b=(f+1)%l*2,t=p[g],g=p[g+1],e=p[b],u=p[b+1],b=0,F=a.xd;b<F;b++)if(y=2*b,v=(b+1)%F*2,x=k[y]+c,y=k[y+1]+d,m=k[v]+c,v=k[v+1]+d,va(t,g,e,u,x,y,m,v))return!0;
return!1};eb=b;a.prototype.Ue=function(a,c,d){var k;k=this.cells[a];return k?(k=k[c])?k:d?(k=t(this,a,c),this.cells[a][c]=k):null:d?(k=t(this,a,c),this.cells[a]={},this.cells[a][c]=k):null};a.prototype.$b=function(a){return K(a/this.Xl)};a.prototype.ac=function(a){return K(a/this.Wl)};a.prototype.update=function(a,c,d){var k,p,f,g,b;if(c)for(k=c.left,p=c.right;k<=p;++k)for(f=c.top,g=c.bottom;f<=g;++f)if(!d||!d.Ob(k,f))if(b=this.Ue(k,f,!1))b.remove(a),b.je()&&(b.wb.clear(),1E3>P.length&&P.push(b),
this.cells[k][f]=null);if(d)for(k=d.left,p=d.right;k<=p;++k)for(f=d.top,g=d.bottom;f<=g;++f)c&&c.Ob(k,f)||this.Ue(k,f,!0).Lm(a)};a.prototype.Wk=function(a,c){var d,k,p,f,g,b;d=this.$b(a.left);p=this.ac(a.top);k=this.$b(a.right);for(g=this.ac(a.bottom);d<=k;++d)for(f=p;f<=g;++f)(b=this.Ue(d,f,!1))&&b.dump(c)};fb=a;f.prototype.Ue=function(a,c,k){var p;p=this.cells[a];return p?(p=p[c])?p:k?(p=d(this,a,c),this.cells[a][c]=p):null:k?(p=d(this,a,c),this.cells[a]={},this.cells[a][c]=p):null};f.prototype.$b=
function(a){return K(a/this.Xl)};f.prototype.ac=function(a){return K(a/this.Wl)};f.prototype.update=function(a,c,d){var k,p,f,g,b;if(c)for(k=c.left,p=c.right;k<=p;++k)for(f=c.top,g=c.bottom;f<=g;++f)if(!d||!d.Ob(k,f))if(b=this.Ue(k,f,!1))b.remove(a),b.je()&&(b.reset(),1E3>w.length&&w.push(b),this.cells[k][f]=null);if(d)for(k=d.left,p=d.right;k<=p;++k)for(f=d.top,g=d.bottom;f<=g;++f)c&&c.Ob(k,f)||this.Ue(k,f,!0).Lm(a)};f.prototype.Wk=function(a,c,d,k,p){var f,g;a=this.$b(a);c=this.ac(c);d=this.$b(d);
for(f=this.ac(k);a<=d;++a)for(k=c;k<=f;++k)(g=this.Ue(a,k,!1))&&g.dump(p)};f.prototype.Fw=function(a){var c,d,k,p,f;c=a.left;k=a.top;d=a.right;for(p=a.bottom;c<=d;++c)for(a=k;a<=p;++a)if(f=this.Ue(c,a,!1))f.Gg=!1};gb=f;var P=[];c.prototype.je=function(){return this.wb.je()};c.prototype.Lm=function(a){this.wb.add(a)};c.prototype.remove=function(a){this.wb.remove(a)};c.prototype.dump=function(a){Da(a,this.wb.Ae())};ca=c;var w=[];l.prototype.je=function(){if(!this.wb.length)return!0;if(this.wb.length>
this.Pd.count())return!1;this.om();return!0};l.prototype.Lm=function(a){this.Pd.contains(a)?(this.Pd.remove(a),this.Pd.je()&&(this.qh=!1)):this.wb.length?(this.wb[this.wb.length-1].Jd()>a.Jd()&&(this.Gg=!1),this.wb.push(a)):(this.wb.push(a),this.Gg=!0)};l.prototype.remove=function(a){this.Pd.add(a);this.qh=!0;30<=this.Pd.count()&&this.om()};l.prototype.om=function(){this.qh&&(this.Pd.count()===this.wb.length?this.reset():($a(this.wb,this.Pd),this.Pd.clear(),this.qh=!1))};l.prototype.Su=function(){this.Gg||
(this.wb.sort(g),this.Gg=!0)};l.prototype.reset=function(){R(this.wb);this.Gg=!0;this.Pd.clear();this.qh=!1};l.prototype.dump=function(a){this.om();this.Su();this.wb.length&&a.push(this.wb)};ga=l;var D="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":D[a-1]};ib=function(a,c,d){if(d)switch(a.Tb=d.ONE,a.Pb=d.ONE_MINUS_SRC_ALPHA,c){case 1:a.Tb=d.ONE;a.Pb=d.ONE;break;case 3:a.Tb=
d.ONE;a.Pb=d.ZERO;break;case 4:a.Tb=d.ONE_MINUS_DST_ALPHA;a.Pb=d.ONE;break;case 5:a.Tb=d.DST_ALPHA;a.Pb=d.ZERO;break;case 6:a.Tb=d.ZERO;a.Pb=d.SRC_ALPHA;break;case 7:a.Tb=d.ONE_MINUS_DST_ALPHA;a.Pb=d.ZERO;break;case 8:a.Tb=d.ZERO;a.Pb=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Tb=d.DST_ALPHA;a.Pb=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Tb=d.ONE_MINUS_DST_ALPHA,a.Pb=d.SRC_ALPHA}};jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?
!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(e){var n=new jc(3);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]);return n}
function lc(e){var n=new jc(16);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]);return n}function mc(e,n){n[0]=e[0];n[1]=e[1];n[2]=e[2];n[3]=e[3];n[4]=e[4];n[5]=e[5];n[6]=e[6];n[7]=e[7];n[8]=e[8];n[9]=e[9];n[10]=e[10];n[11]=e[11];n[12]=e[12];n[13]=e[13];n[14]=e[14];n[15]=e[15]}
function nc(e,n){var q=n[0],m=n[1];n=n[2];e[0]*=q;e[1]*=q;e[2]*=q;e[3]*=q;e[4]*=m;e[5]*=m;e[6]*=m;e[7]*=m;e[8]*=n;e[9]*=n;e[10]*=n;e[11]*=n}
function oc(e,n,q,m){m||(m=lc());var h,r,b,a,f,t,c,d,l=e[0],g=e[1];e=e[2];r=q[0];b=q[1];h=q[2];q=n[1];t=n[2];l===n[0]&&g===q&&e===t?(e=m,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):(q=l-n[0],t=g-n[1],c=e-n[2],d=1/Math.sqrt(q*q+t*t+c*c),q*=d,t*=d,c*=d,n=b*c-h*t,h=h*q-r*c,r=r*t-b*q,(d=Math.sqrt(n*n+h*h+r*r))?(d=1/d,n*=d,h*=d,r*=d):r=h=n=0,b=t*r-c*h,a=c*n-q*r,f=q*h-t*n,(d=Math.sqrt(b*b+a*a+f*f))?(d=1/d,b*=d,a*=d,f*=d):f=a=b=0,
m[0]=n,m[1]=b,m[2]=q,m[3]=0,m[4]=h,m[5]=a,m[6]=t,m[7]=0,m[8]=r,m[9]=f,m[10]=c,m[11]=0,m[12]=-(n*l+h*g+r*e),m[13]=-(b*l+a*g+f*e),m[14]=-(q*l+t*g+c*e),m[15]=1)}
(function(){function e(a,f,b){this.ke=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Fa=!!b;this.ek=this.Uh=!1;this.dm=0;this.Jl=1;this.xo=1E3;this.Yx=(this.xo-this.Jl)/32768;this.Tl=kc([0,0,100]);this.iq=kc([0,0,0]);this.Vr=kc([0,1,0]);this.fj=kc([1,1,1]);this.pp=!0;this.zk=lc();this.Nc=lc();this.Ym=lc();this.cm=lc();this.G=a;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.Lp()}function n(a,f,b){this.G=a;this.Ri=
f;this.name=b;this.Wc=a.getAttribLocation(f,"aPos");this.ef=a.getAttribLocation(f,"aTex");this.gq=a.getUniformLocation(f,"matP");this.vk=a.getUniformLocation(f,"matMV");this.Og=a.getUniformLocation(f,"opacity");this.hn=a.getUniformLocation(f,"colorFill");this.hq=a.getUniformLocation(f,"samplerFront");this.oi=a.getUniformLocation(f,"samplerBack");this.Tf=a.getUniformLocation(f,"destStart");this.Sf=a.getUniformLocation(f,"destEnd");this.qi=a.getUniformLocation(f,"seconds");this.kn=a.getUniformLocation(f,
"pixelWidth");this.jn=a.getUniformLocation(f,"pixelHeight");this.ni=a.getUniformLocation(f,"layerScale");this.mi=a.getUniformLocation(f,"layerAngle");this.ri=a.getUniformLocation(f,"viewOrigin");this.pi=a.getUniformLocation(f,"scrollPos");this.hw=!!(this.kn||this.jn||this.qi||this.oi||this.Tf||this.Sf||this.ni||this.mi||this.ri||this.pi);this.qq=this.rq=-999;this.yk=1;this.mq=this.lq=0;this.oq=this.kq=this.jq=1;this.uq=this.tq=this.sq=this.wq=this.vq=this.nq=0;this.Xm=[];this.pq=lc();this.Og&&a.uniform1f(this.Og,
1);this.hn&&a.uniform4f(this.hn,1,1,1,1);this.hq&&a.uniform1i(this.hq,0);this.oi&&a.uniform1i(this.oi,1);this.Tf&&a.uniform2f(this.Tf,0,0);this.Sf&&a.uniform2f(this.Sf,1,1);this.ni&&a.uniform1f(this.ni,1);this.mi&&a.uniform1f(this.mi,0);this.ri&&a.uniform2f(this.ri,0,0);this.pi&&a.uniform2f(this.pi,0,0);this.qi&&a.uniform1f(this.qi,0);this.Gf=!1}function q(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&&
a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]===f[15]}function m(a,f){this.type=a;this.F=f;this.G=f.G;this.Kd=this.Zb=this.Sq=0;this.X=this.ed=null;this.Ar=[]}var h=lc();e.prototype.Lp=function(){var a=this.G,f;this.aq=1;this.Nf=this.$e=null;this.Ej=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Fa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.bq=a.ONE;this.$p=a.ONE_MINUS_SRC_ALPHA;this.Dl=new Float32Array(8E3*(this.Fa?3:2));this.ql=new Float32Array(16E3);this.dr=new Float32Array(32E3);this.Bn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Bn);a.bufferData(a.ARRAY_BUFFER,this.dr.byteLength,a.DYNAMIC_DRAW);this.ej=Array(4);this.Yi=Array(4);for(f=0;4>f;f++)this.ej[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ej[f]),a.bufferData(a.ARRAY_BUFFER,this.Dl.byteLength,a.DYNAMIC_DRAW),this.Yi[f]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Yi[f]),a.bufferData(a.ARRAY_BUFFER,this.ql.byteLength,a.DYNAMIC_DRAW);this.ae=0;this.kw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.kw);for(var b=new Uint16Array(12E3),c=f=0;12E3>f;)b[f++]=c,b[f++]=c+1,b[f++]=c+2,b[f++]=c,b[f++]=c+2,b[f++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Cn=this.fh=this.Be=0;this.Va=[];f=this.Fa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";b=this.yh({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}"},f,"<default>");this.Va.push(b);b=this.yh({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.Va.push(b);b=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"<earlyz>");this.Va.push(b);b=this.yh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
f,"<fill>");this.Va.push(b);for(var d in pc)pc.hasOwnProperty(d)&&this.Va.push(this.yh(pc[d],f,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Le=[];this.Zd=0;this.Qb=!1;this.kp=this.gi=-1;this.sg=null;this.nm=a.createFramebuffer();this.Ij=this.Yk=null;this.Xo=!1;this.Fa&&(this.Ij=a.createRenderbuffer());this.nf=kc([0,0,0]);this.xq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.xq&&(this.xq=2048);this.mc(0)};n.prototype.qo=function(a){q(this.pq,a)||(mc(a,this.pq),this.G.uniformMatrix4fv(this.vk,
!1,a))};e.prototype.yh=function(a,f,b){var c=this.G,d=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(d,a.src);c.compileShader(d);if(!c.getShaderParameter(d,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(d),c.deleteShader(d),Error("error compiling fragment shader: "+a);var l=c.createShader(c.VERTEX_SHADER);c.shaderSource(l,f);c.compileShader(l);if(!c.getShaderParameter(l,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(l),c.deleteShader(d),c.deleteShader(l),Error("error compiling vertex shader: "+a);f=
c.createProgram();c.attachShader(f,d);c.attachShader(f,l);c.linkProgram(f);if(!c.getProgramParameter(f,c.LINK_STATUS))throw a=c.getProgramInfoLog(f),c.deleteShader(d),c.deleteShader(l),c.deleteProgram(f),Error("error linking shader program: "+a);c.useProgram(f);c.deleteShader(d);c.deleteShader(l);d=new n(c,f,b);d.lm=a.lm||0;d.mm=a.mm||0;d.jp=!!a.jp;d.vd=!!a.vd;d.Vo=!!a.Vo;d.Y=a.Y||[];a=0;for(l=d.Y.length;a<l;a++)d.Y[a][1]=c.getUniformLocation(f,d.Y[a][0]),d.Xm.push(0),c.uniform1f(d.Y[a][1],0);return d};
e.prototype.Cm=function(a){var f,b;f=0;for(b=this.Va.length;f<b;f++)if(this.Va[f].name===a)return f;return-1};e.prototype.gr=function(a,f,b){var c=this.Nc,d=this.zk,l=[0,0,0,0,0,0,0,0];l[0]=c[0]*a+c[4]*f+c[12];l[1]=c[1]*a+c[5]*f+c[13];l[2]=c[2]*a+c[6]*f+c[14];l[3]=c[3]*a+c[7]*f+c[15];l[4]=d[0]*l[0]+d[4]*l[1]+d[8]*l[2]+d[12]*l[3];l[5]=d[1]*l[0]+d[5]*l[1]+d[9]*l[2]+d[13]*l[3];l[6]=d[2]*l[0]+d[6]*l[1]+d[10]*l[2]+d[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],b[0]=(.5*l[4]+
.5)*this.width,b[1]=(.5*l[5]+.5)*this.height)};e.prototype.dg=function(a,f,b){if(this.width!==a||this.height!==f||b){this.Re();b=this.G;this.width=a;this.height=f;b.viewport(0,0,a,f);oc(this.Tl,this.iq,this.Vr,this.Nc);if(this.Fa){var c=-a/2;a=a/2;var d=f/2;f=-f/2;var l=this.Jl,g=this.xo,e=this.zk;e||(e=lc());var m=a-c,n=f-d,k=g-l;e[0]=2/m;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/n;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/k;e[11]=0;e[12]=-(c+a)/m;e[13]=-(f+d)/n;e[14]=-(g+l)/k;e[15]=1;this.fj[0]=1;this.fj[1]=
1}else f=a/f,c=this.Jl,a=this.xo,e=this.zk,g=c*Math.tan(45*Math.PI/360),f*=g,d=-f,l=-g,e||(e=lc()),m=f-d,n=g-l,k=a-c,e[0]=2*c/m,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*c/n,e[6]=0,e[7]=0,e[8]=(f+d)/m,e[9]=(g+l)/n,e[10]=-(a+c)/k,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(a*c*2)/k,e[15]=0,c=[0,0],a=[0,0],this.gr(0,0,c),this.gr(1,1,a),this.fj[0]=1/(a[0]-c[0]),this.fj[1]=-1/(a[1]-c[1]);c=0;for(a=this.Va.length;c<a;c++)d=this.Va[c],d.Gf=!1,d.gq&&(b.useProgram(d.Ri),b.uniformMatrix4fv(d.gq,!1,this.zk));b.useProgram(this.Va[this.gi].Ri);
b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Nf=this.$e=null;this.Ij&&(b.bindFramebuffer(b.FRAMEBUFFER,this.nm),b.bindRenderbuffer(b.RENDERBUFFER,this.Ij),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Xo||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Ij),this.Xo=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),
this.Yk=null)}};e.prototype.bd=function(){oc(this.Tl,this.iq,this.Vr,this.Nc);nc(this.Nc,this.fj)};e.prototype.translate=function(a,f){if(0!==a||0!==f){this.nf[0]=a;this.nf[1]=f;this.nf[2]=0;var b=this.Nc,c=this.nf,d=c[0],l=c[1],c=c[2];b[12]=b[0]*d+b[4]*l+b[8]*c+b[12];b[13]=b[1]*d+b[5]*l+b[9]*c+b[13];b[14]=b[2]*d+b[6]*l+b[10]*c+b[14];b[15]=b[3]*d+b[7]*l+b[11]*c+b[15]}};e.prototype.scale=function(a,f){if(1!==a||1!==f)this.nf[0]=a,this.nf[1]=f,this.nf[2]=1,nc(this.Nc,this.nf)};e.prototype.$k=function(a){if(0!==
a){var f=this.Nc,b,c=Math.sin(a);a=Math.cos(a);var d=f[0],l=f[1],g=f[2],e=f[3],m=f[4],n=f[5],k=f[6],p=f[7];b?f!==b&&(b[8]=f[8],b[9]=f[9],b[10]=f[10],b[11]=f[11],b[12]=f[12],b[13]=f[13],b[14]=f[14],b[15]=f[15]):b=f;b[0]=d*a+m*c;b[1]=l*a+n*c;b[2]=g*a+k*c;b[3]=e*a+p*c;b[4]=d*-c+m*a;b[5]=l*-c+n*a;b[6]=g*-c+k*a;b[7]=e*-c+p*a}};e.prototype.Pc=function(){if(!q(this.Ym,this.Nc)){var a=this.Bc();a.type=5;a.X?mc(this.Nc,a.X):a.X=lc(this.Nc);mc(this.Nc,this.Ym);this.Qb=!1}};e.prototype.el=function(a){this.Fa&&
(32760<a&&(a=32760),this.dm=this.Tl[2]-this.Jl-a*this.Yx)};m.prototype.Cu=function(){var a=this.G,f=this.F;0!==this.Zb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,f.nm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),f.ek=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),f.ek=!1)};m.prototype.Gu=function(){this.G.bindTexture(this.G.TEXTURE_2D,
this.ed)};m.prototype.Hu=function(){var a=this.G;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ed);a.activeTexture(a.TEXTURE0)};m.prototype.Du=function(){var a=this.Sq,f=this.F;f.Ej=a;f=f.sg;f.Og&&f.yk!==a&&(f.yk=a,this.G.uniform1f(f.Og,a))};m.prototype.xu=function(){this.G.drawElements(this.G.TRIANGLES,this.Kd,this.G.UNSIGNED_SHORT,this.Zb)};m.prototype.zu=function(){this.G.blendFunc(this.Zb,this.Kd)};m.prototype.Iu=function(){var a,f,b,c=this.F.Va,d=this.F.kp;a=0;for(f=c.length;a<
f;a++)b=c[a],a===d&&b.vk?(b.qo(this.X),b.Gf=!0):b.Gf=!1;mc(this.X,this.F.cm)};m.prototype.yu=function(){var a=this.G,f=this.F;this.ed?(f.Nf===this.ed&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),f.Nf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,f.nm),f.ek||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ed,0)):(f.Fa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
m.prototype.uu=function(){var a=this.G,f=this.Zb;0===f?(a.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),a.clear(a.COLOR_BUFFER_BIT)):1===f?(a.enable(a.SCISSOR_TEST),a.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};m.prototype.Bu=function(){var a=this.G;0!==this.Zb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};m.prototype.wu=function(){var a=this.G,f=this.F;f.Fa&&a.disable(a.DEPTH_TEST);
var b=f.Va[1];a.useProgram(b.Ri);!b.Gf&&b.vk&&(b.qo(f.cm),b.Gf=!0);a.enableVertexAttribArray(b.Wc);a.bindBuffer(a.ARRAY_BUFFER,f.Bn);a.vertexAttribPointer(b.Wc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Zb/4,this.Kd);b=f.sg;a.useProgram(b.Ri);0<=b.Wc&&(a.enableVertexAttribArray(b.Wc),a.bindBuffer(a.ARRAY_BUFFER,f.ej[f.ae]),a.vertexAttribPointer(b.Wc,f.Fa?3:2,a.FLOAT,!1,0,0));0<=b.ef&&(a.enableVertexAttribArray(b.ef),a.bindBuffer(a.ARRAY_BUFFER,f.Yi[f.ae]),a.vertexAttribPointer(b.ef,2,a.FLOAT,!1,
0,0));f.Fa&&a.enable(a.DEPTH_TEST)};m.prototype.Eu=function(){var a=this.G,f=this.F,b=f.Va[this.Zb];f.kp=this.Zb;f.sg=b;a.useProgram(b.Ri);!b.Gf&&b.vk&&(b.qo(f.cm),b.Gf=!0);b.Og&&b.yk!==f.Ej&&(b.yk=f.Ej,a.uniform1f(b.Og,f.Ej));0<=b.Wc&&(a.enableVertexAttribArray(b.Wc),a.bindBuffer(a.ARRAY_BUFFER,f.ej[f.ae]),a.vertexAttribPointer(b.Wc,f.Fa?3:2,a.FLOAT,!1,0,0));0<=b.ef&&(a.enableVertexAttribArray(b.ef),a.bindBuffer(a.ARRAY_BUFFER,f.Yi[f.ae]),a.vertexAttribPointer(b.ef,2,a.FLOAT,!1,0,0))};m.prototype.Au=
function(){var a=this.X;this.G.uniform4f(this.F.sg.hn,a[0],a[1],a[2],a[3])};m.prototype.Fu=function(){var a,f,b=this.F.sg,c=this.G;a=this.X;b.oi&&this.F.Nf!==this.ed&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.ed),this.F.Nf=this.ed,c.activeTexture(c.TEXTURE0));var d=a[0];b.kn&&d!==b.rq&&(b.rq=d,c.uniform1f(b.kn,d));d=a[1];b.jn&&d!==b.qq&&(b.qq=d,c.uniform1f(b.jn,d));d=a[2];f=a[3];!b.Tf||d===b.lq&&f===b.mq||(b.lq=d,b.mq=f,c.uniform2f(b.Tf,d,f));d=a[4];f=a[5];!b.Sf||d===b.jq&&f===
b.kq||(b.jq=d,b.kq=f,c.uniform2f(b.Sf,d,f));d=a[6];b.ni&&d!==b.oq&&(b.oq=d,c.uniform1f(b.ni,d));d=a[7];b.mi&&d!==b.nq&&(b.nq=d,c.uniform1f(b.mi,d));d=a[8];f=a[9];!b.ri||d===b.vq&&f===b.wq||(b.vq=d,b.wq=f,c.uniform2f(b.ri,d,f));d=a[10];f=a[11];!b.pi||d===b.sq&&f===b.tq||(b.sq=d,b.tq=f,c.uniform2f(b.pi,d,f));d=a[12];b.qi&&d!==b.uq&&(b.uq=d,c.uniform1f(b.qi,d));if(b.Y.length)for(a=0,f=b.Y.length;a<f;a++)d=this.Ar[a],d!==b.Xm[a]&&(b.Xm[a]=d,c.uniform1f(b.Y[a][1],d))};e.prototype.Bc=function(){this.Zd===
this.Le.length&&this.Le.push(new m(0,this));return this.Le[this.Zd++]};e.prototype.Re=function(){if(0!==this.Zd&&!this.G.isContextLost()){var a=this.G;0<this.Cn&&(a.bindBuffer(a.ARRAY_BUFFER,this.Bn),a.bufferSubData(a.ARRAY_BUFFER,0,this.dr.subarray(0,this.Cn)),b&&0<=b.Wc&&"<point>"===b.name&&a.vertexAttribPointer(b.Wc,4,a.FLOAT,!1,0,0));if(0<this.Be){var b=this.sg;a.bindBuffer(a.ARRAY_BUFFER,this.ej[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Dl.subarray(0,this.Be));b&&0<=b.Wc&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Wc,this.Fa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Yi[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ql.subarray(0,this.fh));b&&0<=b.ef&&"<point>"!==b.name&&a.vertexAttribPointer(b.ef,2,a.FLOAT,!1,0,0)}for(var e,a=0,b=this.Zd;a<b;a++)switch(e=this.Le[a],e.type){case 1:e.xu();break;case 2:e.Gu();break;case 3:e.Du();break;case 4:e.zu();break;case 5:e.Iu();break;case 6:e.yu();break;case 7:e.uu();break;case 8:e.wu();break;case 9:e.Eu();break;case 10:e.Fu();break;
case 11:e.Hu();break;case 12:e.Au();break;case 13:e.Bu();break;case 14:e.Cu()}this.Cn=this.fh=this.Be=this.Zd=0;this.ek=this.Qb=!1;this.ae++;4<=this.ae&&(this.ae=0)}};e.prototype.bg=function(a){if(a!==this.aq&&!this.Uh){var b=this.Bc();b.type=3;this.aq=b.Sq=a;this.Qb=!1}};e.prototype.Dc=function(a){if(a!==this.$e){var b=this.Bc();b.type=2;this.$e=b.ed=a;this.Qb=!1}};e.prototype.kf=function(a,b){if((a!==this.bq||b!==this.$p)&&!this.Uh){var e=this.Bc();e.type=4;e.Zb=a;e.Kd=b;this.bq=a;this.$p=b;this.Qb=
!1}};e.prototype.or=function(){this.kf(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};e.prototype.Ii=function(a,b,e,c,d,l,g,m){15992<=this.Be&&this.Re();var n=this.Be,h=this.fh,k=this.Dl,p=this.ql,u=this.dm;if(this.Qb)this.Le[this.Zd-1].Kd+=6;else{var L=this.Bc();L.type=1;L.Zb=this.Fa?n:n/2*3;L.Kd=6;this.Qb=!0}this.Fa?(k[n++]=a,k[n++]=b,k[n++]=u,k[n++]=e,k[n++]=c,k[n++]=u,k[n++]=d,k[n++]=l,k[n++]=u,k[n++]=g,k[n++]=m,k[n++]=u):(k[n++]=a,k[n++]=b,k[n++]=e,k[n++]=c,k[n++]=d,k[n++]=l,k[n++]=g,k[n++]=m);p[h++]=
0;p[h++]=0;p[h++]=1;p[h++]=0;p[h++]=1;p[h++]=1;p[h++]=0;p[h++]=1;this.Be=n;this.fh=h};e.prototype.Rd=function(a,b,e,c,d,l,g,n,m){15992<=this.Be&&this.Re();var h=this.Be,k=this.fh,p=this.Dl,u=this.ql,L=this.dm;if(this.Qb)this.Le[this.Zd-1].Kd+=6;else{var C=this.Bc();C.type=1;C.Zb=this.Fa?h:h/2*3;C.Kd=6;this.Qb=!0}var C=m.left,q=m.top,r=m.right;m=m.bottom;this.Fa?(p[h++]=a,p[h++]=b,p[h++]=L,p[h++]=e,p[h++]=c,p[h++]=L,p[h++]=d,p[h++]=l,p[h++]=L,p[h++]=g,p[h++]=n,p[h++]=L):(p[h++]=a,p[h++]=b,p[h++]=e,
p[h++]=c,p[h++]=d,p[h++]=l,p[h++]=g,p[h++]=n);u[k++]=C;u[k++]=q;u[k++]=r;u[k++]=q;u[k++]=r;u[k++]=m;u[k++]=C;u[k++]=m;this.Be=h;this.fh=k};e.prototype.mc=function(a){if(this.gi!==a){if(!this.Va[a]){if(0===this.gi)return;a=0}var b=this.Bc();b.type=9;this.gi=b.Zb=a;this.Qb=!1}};e.prototype.Fi=function(a){a=this.Va[a];return!(!a.Tf&&!a.Sf)};e.prototype.Gn=function(a){a=this.Va[a];return!!(a.Tf||a.Sf||a.jp)};e.prototype.Fn=function(a){return this.Va[a].vd};e.prototype.ax=function(a){a=this.Va[a];return 0!==
a.lm||0!==a.mm};e.prototype.Pv=function(a){return this.Va[a].lm};e.prototype.Qv=function(a){return this.Va[a].mm};e.prototype.Rv=function(a,b){return this.Va[a].Y[b][2]};e.prototype.Sk=function(a){return this.Va[a].Vo};e.prototype.ah=function(a,b,e,c,d,l,g,n,m,h,k,p,u,L,C){var q=this.Va[this.gi],r,w;if(q.hw||C.length){r=this.Bc();r.type=10;r.X?mc(this.Nc,r.X):r.X=lc();w=r.X;w[0]=b;w[1]=e;w[2]=c;w[3]=d;w[4]=l;w[5]=g;w[6]=n;w[7]=m;w[8]=h;w[9]=k;w[10]=p;w[11]=u;w[12]=L;q.oi?r.ed=a:r.ed=null;if(C.length)for(e=
r.Ar,e.length=C.length,a=0,b=C.length;a<b;a++)e[a]=C[a];this.Qb=!1}};e.prototype.clear=function(a,b,e,c){var d=this.Bc();d.type=7;d.Zb=0;d.X||(d.X=lc());d.X[0]=a;d.X[1]=b;d.X[2]=e;d.X[3]=c;this.Qb=!1};e.prototype.clearRect=function(a,b,e,c){if(!(0>e||0>c)){var d=this.Bc();d.type=7;d.Zb=1;d.X||(d.X=lc());d.X[0]=a;d.X[1]=b;d.X[2]=e;d.X[3]=c;this.Qb=!1}};e.prototype.rr=function(a){if(this.Fa&&(a=!!a,this.Uh!==a)){var b=this.Bc();b.type=14;b.Zb=a?1:0;this.Qb=!1;this.Uh=a;this.Yk=null;this.Uh?this.mc(2):
this.mc(0)}};e.prototype.qr=function(a){if(this.Fa){var b=this.Bc();b.type=13;b.Zb=a?1:0;this.Qb=!1}};e.prototype.xp=function(){mc(this.Ym,h);this.bd();this.Pc();var a=this.width/2,b=this.height/2;this.Ii(-a,b,a,b,a,-b,-a,-b);mc(h,this.Nc);this.Pc()};e.prototype.pr=function(a,b,e){this.mc(3);var c=this.Bc();c.type=12;c.X||(c.X=lc());c.X[0]=a;c.X[1]=b;c.X[2]=e;c.X[3]=1;this.Qb=!1};e.prototype.Ex=function(){this.mc(0)};e.prototype.kx=function(){this.mc(2)};e.prototype.$w=function(){this.Re();this.G.flush()};
var r=[],b={};e.prototype.nu=function(){R(r);b={}};e.prototype.sk=function(a,f,e,c){f=!!f;e=!!e;var d=a.src+","+f+","+e+(f?",undefined":""),l=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(d))return l=b[d],l.vj++,l;this.Re();var g=this.G,n=ma(a.width)&&ma(a.height),l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=g.RGBA,h=g.RGBA,k=g.UNSIGNED_BYTE;if(c&&!this.ke)switch(c){case 1:h=m=g.RGB;break;case 2:k=g.UNSIGNED_SHORT_4_4_4_4;break;
case 3:k=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=m=g.RGB,k=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!n&&f){c=document.createElement("canvas");c.width=na(a.width);c.height=na(a.height);var p=c.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=e:(p.webkitImageSmoothingEnabled=e,p.mozImageSmoothingEnabled=e,p.msImageSmoothingEnabled=e);p.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,m,h,k,c)}else g.texImage2D(g.TEXTURE_2D,0,
m,h,k,a);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(n||2<=this.version)&&this.pp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,
g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.$e=null;l.sf=a.width;l.rf=a.height;l.vj=1;l.bp=d;r.push(l);return b[d]=l};e.prototype.Gc=function(a,b,e,c){this.Re();var d=this.G;this.ke&&(c=!1);var l=d.createTexture();d.bindTexture(d.TEXTURE_2D,l);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,b,0,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,
d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,e?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,e?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.$e=null;l.sf=a;l.rf=b;r.push(l);return l};e.prototype.Wx=function(a,b,e){this.Re();var c=this.G;this.ke&&(e=!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,
e?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}c.bindTexture(c.TEXTURE_2D,null);this.$e=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.vj&&1<a.vj?a.vj--:(this.Re(),a===this.$e&&(this.G.bindTexture(this.G.TEXTURE_2D,null),this.$e=null),a===this.Nf&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,null),this.G.activeTexture(this.G.TEXTURE0),this.Nf=null),Ga(r,a),"undefined"!==
typeof a.bp&&delete b[a.bp],this.G.deleteTexture(a)))};e.prototype.cd=function(a){if(a!==this.Yk){var b=this.Bc();b.type=6;this.Yk=b.ed=a;this.Qb=!1}};ob=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.vc=(this.fk=/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.Rb=!!a.dc;this.Rp="undefined"!==typeof window.AppMobi||
this.Rb;this.Kc=!!window.c2cocoonjs;this.Vc=!!window.c2ejecta;this.Kc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Vc&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.La=this.Rb||this.Kc||this.Vc;this.Wh=
/edge\//i.test(navigator.userAgent);this.ke=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Wh;this.Vp=/tizen/i.test(navigator.userAgent);this.Th=/android/i.test(navigator.userAgent)&&!this.Vp&&!this.ke&&!this.Wh;this.Yp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ke&&!this.Wh;this.Bw=/ipad/i.test(navigator.userAgent);this.Ig=this.Yp||this.Bw||this.Vc;this.Om=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.ke&&!this.Wh;this.Qp=/amazonwebappplatform/i.test(navigator.userAgent);this.sw=/firefox/i.test(navigator.userAgent);this.ww=/safari/i.test(navigator.userAgent)&&!this.Om&&!this.ke&&!this.Wh;this.xw=/windows/i.test(navigator.userAgent);this.Tp=this.gk="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Wp=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.zw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Zh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Um=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.ik=!!window.cr_windows10;this.Tm=this.Wp||this.zw||this.Um||this.ik;this.qw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.dk=this.Th&&!this.Om&&!this.fk&&!this.sw&&!this.Qp&&!this.La;
this.devicePixelRatio=1;this.le=this.vc||this.fk||this.Rp||this.Kc||this.Th||this.Ig||this.Zh||this.Um||this.qw||this.Vp||this.Vc;this.le||(this.le=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.hk=!!(this.Ig&&this.vc&&window.webkit);"undefined"===typeof cr_is_preview||this.gk||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.gk=!0);this.rw="undefined"!==
typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.Ul=document.getElementById("c2canvasdiv");this.F=this.G=null;this.Dm="(unavailable)";this.Fa=!1;this.zf=0;this.Ja=null;this.Rj=!1;this.Kq=this.Lq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Rb&&(window.c2runtime=
this);this.gk&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.dk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.Cj=this.width;this.Ah=this.height;this.Mg=window.innerWidth;this.Lg=window.innerHeight;this.ya=!0;this.Yh=!1;Date.now||(Date.now=
function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Ra=[];this.an={};this.sd=[];this.km={};this.fe=[];this.mh=[];this.xl=[];this.au=[];this.bu=[];this.Zp=this.Hr=null;this.vf={};this.Qm=this.Ve=!1;this.rd=0;this.Pm=this.Sm=!1;this.od=[];this.Vh=!1;this.qk=this.Rn="";this.lb=null;this.me="";this.Wi=this.Dr=!1;this.Qj=[];this.yf=this.xf=0;this.Cq=30;this.$l=this.si=0;this.ig=1;this.ib=new cb;this.Ce=new cb;this.Fk=this.Vj=this.Eh=this.Vd=this.Pf=this.pm=this.lk=0;this.vh=null;
this.Jj=[];this.jm=[];this.Lj=-1;this.ln=[[]];this.ko=this.wk=0;this.Uk(null);this.Fh=this.Fq=this.xi=0;this.Xi=[];this.ho=this.Jn=-1;this.bi=!0;this.uk=0;this.Kf=!1;this.Hx=0;this.pg=null;this.Lc=this.Gp=!1;this.Jq=new da;this.rn=new da;this.sn=new da;this.ag=[];this.zd=new eb([]);this.bo=new eb([]);this.Ie=[];this.Ag={};this.Ne={};this.He={};this.lh={};this.Yo={};this.fq=this.pk=this.$a=this.jb=this.dq=this.ok=this.ra=null;this.jh=this.Vm=!1;this.qm=[null,null];this.Te=0;this.Pj="";this.pe={};this.Ui=
this.cf=null;this.Fr="";this.Ek=[];this.jx()}}function n(a,c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function q(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(a,c,d,k){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=k;b.onsuccess=function(b){b=b.target.result;b.onerror=k;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=d}}catch(p){k(p)}}function r(a,
c,d){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var k=b.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?c(k.result.data):c(null)}}}catch(k){d(k)}}function b(){ha("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var c,d=
{};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof da||a[c]&&"undefined"!==typeof a[c].$y||"spriteCreatedDestroyCallback"!==c&&(d[c]=a[c]);return d}var f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.jx=function(){var a=this;if(this.hk)this.Av(function(c){a.li(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.Zh?c=new ActiveXObject("Microsoft.XMLHTTP"):
c=new XMLHttpRequest;var d="data.js";if(this.Wp||this.Zh||this.Um||this.ik)d="data.json";c.open("GET",d,!0);var b=!1;if(!this.La&&"response"in c&&"responseType"in c)try{c.responseType="json",b="json"===c.responseType}catch(k){b=!1}if(!b&&"responseType"in c)try{c.responseType="text"}catch(p){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.Zh?c.onreadystatechange=function(){4===c.readyState&&a.li(JSON.parse(c.responseText))}:(c.onload=function(){if(b)a.li(c.response);
else if(a.Vc){var d=c.responseText,d=d.substr(d.indexOf("{"));a.li(JSON.parse(d))}else a.li(JSON.parse(c.responseText))},c.onerror=function(a){ja("Error requesting "+d+":");ja(a)});c.send()}};e.prototype.lw=function(){var a=this,c,d,b,k,p,f,g,e,l;this.Lf=(!this.La||this.Vc||this.vc)&&this.Tx&&!this.dk;0===this.ec&&this.Ig&&(this.Lf=!1);this.devicePixelRatio=this.Lf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&
window.StatusBar.hide();this.Ib();0<this.ec&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Jw();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.F.Lp();a.F.dg(a.F.width,a.F.height,!0);a.jb=null;a.$a=null;a.qm[0]=null;a.qm[1]=null;a.Kw();a.ya=!0;ha("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Qu&&
(this.Kc||this.Vc||!this.La)&&(c={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Th||(this.G=this.canvas.getContext("webgl2",c)),this.G||(this.G=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c)))}catch(u){}if(this.G){if(c=this.G.getExtension("WEBGL_debug_renderer_info"))this.Dm=this.G.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.G.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.Fa&&(this.Dm+=" [front-to-back enabled]");
this.La||(this.Gb=document.createElement("canvas"),jQuery(this.Gb).appendTo(this.canvas.parentNode),this.Gb.oncontextmenu=function(){return!1},this.Gb.onselectstart=function(){return!1},this.Gb.width=Math.round(this.Cj*this.devicePixelRatio),this.Gb.height=Math.round(this.Ah*this.devicePixelRatio),jQuery(this.Gb).css({width:this.Cj+"px",height:this.Ah+"px"}),this.er(),this.An=this.Gb.getContext("2d"));this.F=new ob(this.G,this.le,this.Fa);this.F.dg(this.canvas.width,this.canvas.height);this.F.pp=
0!==this.Ju;this.Ja=null;c=0;for(d=this.B.length;c<d;c++)for(p=this.B[c],b=0,k=p.U.length;b<k;b++)g=p.U[b],g.cb=this.F.Cm(g.id),g.vd=this.F.Fn(g.cb),this.jh=this.jh||this.F.Fi(g.cb);c=0;for(d=this.sd.length;c<d;c++){e=this.sd[c];b=0;for(k=e.U.length;b<k;b++)g=e.U[b],g.cb=this.F.Cm(g.id),g.vd=this.F.Fn(g.cb);e.Bd();b=0;for(k=e.V.length;b<k;b++){l=e.V[b];p=0;for(f=l.U.length;p<f;p++)g=l.U[p],g.cb=this.F.Cm(g.id),g.vd=this.F.Fn(g.cb),this.jh=this.jh||this.F.Fi(g.cb);l.Bd()}}}else{if(0<this.ec&&this.Rb){this.canvas=
null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ja=AppMobi.canvas.getContext("2d");try{this.Ja.samplingMode=this.Na?"smooth":"sharp",this.Ja.globalScale=1,this.Ja.HTML5CompatibilityMode=!0,this.Ja.imageSmoothingEnabled=this.Na}catch(n){}0!==this.width&&0!==this.height&&(this.Ja.width=this.width,this.Ja.height=this.height)}this.Ja||(this.Kc?(c={antialias:!!this.Na,alpha:!0},this.Ja=this.canvas.getContext("2d",c)):(c={alpha:!0},this.Ja=this.canvas.getContext("2d",
c)),this.dl(this.Ja,this.Na));this.An=this.Gb=null}this.Pr=function(c){a.Qa(!1,c)};window==window.top||this.La||this.Tm||this.Zh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Kc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),this.qk="__c2_continuouspreview",
this.Wi=!0),this.Tw&&!this.le&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Zf()});this.La||(c=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",
c):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.ec&&this.Lf&&1<this.devicePixelRatio&&this.setSize(this.Pa,this.Oa,!0);this.Tr();this.ew();this.go();this.J={}};e.prototype.setSize=function(a,c,d){var b=0,k=0,p=0,f=0,f=0;if(this.Mg!==a||this.Lg!==c||d){this.Mg=a;this.Lg=c;var g=this.ec;if((p=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.Kf)&&!this.vc)||0!==this.ec||d)p&&(g=this.Te),d=this.devicePixelRatio,4<=g?(5===g&&1!==d&&(a+=1,c+=1),p=this.Pa/this.Oa,a/c>p?(p*=c,5===g?(f=p*d/this.Pa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),p=this.Pa*f/d,f=this.Oa*f/d,b=(a-p)/2,k=(c-f)/2,a=p,c=f):(b=(a-p)/2,a=p)):(f=a/p,5===g?(f=f*d/this.Oa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),p=this.Pa*f/d,f=this.Oa*f/d,b=(a-p)/2,k=(c-f)/2,a=p):k=(c-f)/2,c=f)):p&&0===g&&(b=Math.floor((a-this.Pa)/2),k=Math.floor((c-this.Oa)/
2),a=this.Pa,c=this.Oa),2>g&&(this.sh=d),this.Cj=Math.round(a),this.Ah=Math.round(c),this.width=Math.round(a*d),this.height=Math.round(c*d),this.ya=!0,this.ds?(this.N=this.width,this.M=this.height,this.Hc=!0):this.width<this.Pa&&this.height<this.Oa||1===g?(this.N=this.width,this.M=this.height,this.Hc=!0):(this.N=this.Pa,this.M=this.Oa,this.Hc=!1,2===g?(p=this.Pa/this.Oa,g=this.Mg/this.Lg,g<p?this.N=this.M*g:g>p&&(this.M=this.N/g)):3===g&&(p=this.Pa/this.Oa,g=this.Mg/this.Lg,g>p?this.N=this.M*g:g<
p&&(this.M=this.N/g))),this.Ul&&!this.La&&(jQuery(this.Ul).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(c*d),this.Vc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(c)+"px"):this.Lf&&!this.La&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Gb&&(this.Gb.width=Math.round(a*d),this.Gb.height=Math.round(c*d),this.Gb.style.width=this.Cj+"px",this.Gb.style.height=this.Ah+"px"),this.F&&this.F.dg(Math.round(a*d),Math.round(c*d)),this.Rb&&this.Ja&&(this.Ja.width=Math.round(a),this.Ja.height=Math.round(c)),this.Ja&&this.dl(this.Ja,this.Na),this.Tr(),this.Yp&&!this.vc&&window.scrollTo(0,
0)}};e.prototype.Tr=function(){if(this.fu&&0!==this.zn){var a="portrait";2===this.zn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};e.prototype.Jw=
function(){this.F.nu();this.Vm=!0;var a,c,d;a=0;for(c=this.B.length;a<c;a++)d=this.B[a],d.Gk&&d.Gk()};e.prototype.Kw=function(){this.Vm=!1;var a,c,d;a=0;for(c=this.B.length;a<c;a++)d=this.B[a],d.wn&&d.wn()};e.prototype.er=function(){if(!this.La){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Kf)&&!this.vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Gb).css(a)}};var t=window.cancelAnimationFrame||
window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var c;if(a&&!this.Yh)for(ha("[Construct 2] Suspending"),this.Yh=!0,-1!==this.Jn&&t&&t(this.Jn),-1!==this.ho&&clearTimeout(this.ho),a=0,c=this.Xi.length;a<c;a++)this.Xi[a](!0);else if(!a&&this.Yh){ha("[Construct 2] Resuming");this.Yh=!1;this.lk=Za();this.Pf=Za();a=this.si=this.Vj=0;for(c=this.Xi.length;a<c;a++)this.Xi[a](!1);this.Qa(!1)}};
e.prototype.Ro=function(a){this.Xi.push(a)};e.prototype.Fe=function(a){return this.Ek[a]};e.prototype.li=function(a){a&&a.project||ja("Project model unavailable");a=a.project;this.name=a[0];this.wp=a[1];this.ec=a[12];this.Pa=a[10];this.Oa=a[11];this.Zq=this.Pa/2;this.$q=this.Oa/2;this.La&&!this.Vc&&(4<=a[12]||0===a[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.ec=3);this.so=a[18];this.df=a[19];if(0===this.df){var c=
new Image;c.crossOrigin="anonymous";this.sr(c,"loading-logo.png");this.cf={xk:c}}else if(4===this.df){c=new Image;c.src="";var d=new Image;d.src="";var b=new Image;b.src="";var k=new Image;k.src="";var p=new Image;p.src="";var f=new Image;f.src="";var g=new Image;g.src="";var e=new Image;e.src="";var l=new Image;l.src="";var u=new Image;u.src="";var n=new Image;n.src="";var m=new Image;m.src="";this.cf={xk:[c,d,b,k],Xw:[p,f,g,e],Xx:[l,u,n,m]}}this.xi=a[21];this.Ek=qc();this.Ud=new V(this);c=0;for(d=
a[2].length;c<d;c++)g=a[2][c],b=this.Fe(g[0]),pb(g,b.prototype),e=new b(this),e.kl=g[1],e.Xe=g[2],e.fz=g[5],e.Dq=g[9],e.S&&e.S(),this.plugins.push(e);this.Ek=qc();c=0;for(d=a[3].length;c<d;c++){g=a[3][c];p=this.Fe(g[1]);e=null;b=0;for(k=this.plugins.length;b<k;b++)if(this.plugins[b]instanceof p){e=this.plugins[b];break}l=new e.ta(e);l.name=g[0];l.O=g[2];l.Mm=g[3].slice(0);l.Vx=g[3].length;l.gu=g[4];l.Ev=g[5];l.da=g[11];l.O?(l.Vf=[],l.ge=this.Fh++,l.Ka=null):(l.Vf=null,l.ge=-1,l.Ka=[]);l.Nj=null;l.wg=
null;l.qp=null;l.hc=!1;l.qc=null;g[6]?(l.co=g[6][0],l.eo=g[6][1],l.fo=g[6][2]):(l.co=null,l.eo=0,l.fo=0);g[7]?l.pc=g[7]:l.pc=null;l.index=c;l.j=[];l.Gj=[];l.we=[new qb(l)];l.Fd=0;l.Tc=null;l.su=0;l.eh=!0;l.yl=rb;l.Cp=sb;l.Nv=tb;l.ja=ub;l.Hi=vb;l.Tk=wb;l.$f=xb;l.Xj=yb;l.um=Db;l.xm=Eb;l.Rc=Fb;l.ym=Gb;l.zj=new fb(this.Pa,this.Oa);l.nj=!0;l.oj=!1;l.J={};l.toString=Hb;l.Ra=[];b=0;for(k=g[8].length;b<k;b++){u=g[8][b];n=this.Fe(u[1]);m=null;p=0;for(f=this.Ra.length;p<f;p++)if(this.Ra[p]instanceof n){m=this.Ra[p];
break}m||(m=new n(this),m.Ck=[],m.Bk=new da,m.S&&m.S(),this.Ra.push(m),rc&&m instanceof rc&&(this.Hr=m),sc&&m instanceof sc&&(this.Zp=m));-1===m.Ck.indexOf(l)&&m.Ck.push(l);p=new m.ta(m,l);p.name=u[0];p.da=u[2];p.S();l.Ra.push(p)}l.global=g[9];l.Rm=g[10];l.U=[];b=0;for(k=g[12].length;b<k;b++)l.U.push({id:g[12][b][0],name:g[12][b][1],cb:-1,vd:!1,rb:!0,index:b});l.wz=g[13];this.so&&!l.O&&!l.Rm&&e.Xe||l.S();l.name&&(this.types[l.name]=l);this.B.push(l);e.kl&&(b=new e.ea(l),b.uid=this.xi++,b.ir=this.Fq++,
b.If=0,b.Nh=Ib,b.toString=Jb,b.C=g[14],b.S(),l.j.push(b),this.pe[b.uid.toString()]=b)}c=0;for(d=a[4].length;c<d;c++)for(p=a[4][c],f=this.B[p[0]],b=1,k=p.length;b<k;b++)g=this.B[p[b]],g.Ka.push(f),f.Vf.push(g);c=0;for(d=a[28].length;c<d;c++){p=a[28][c];f=[];b=0;for(k=p.length;b<k;b++)f.push(this.B[p[b]]);b=0;for(k=f.length;b<k;b++)f[b].hc=!0,f[b].qc=f}if(0<this.Fh)for(c=0,d=this.B.length;c<d;c++)if(g=this.B[c],!g.O&&g.Ka.length){g.Nj=Array(this.Fh);g.wg=Array(this.Fh);g.qp=Array(this.Fh);l=[];b=m=
n=u=0;for(k=g.Ka.length;b<k;b++)for(e=g.Ka[b],g.Nj[e.ge]=u,u+=e.Vx,g.wg[e.ge]=n,n+=e.gu,g.qp[e.ge]=m,m+=e.Ev,p=0,f=e.U.length;p<f;p++)l.push(za({},e.U[p]));g.U=l.concat(g.U);b=0;for(k=g.U.length;b<k;b++)g.U[b].index=b}c=0;for(d=a[5].length;c<d;c++)g=a[5][c],b=new Kb(this,g),this.an[b.name]=b,this.sd.push(b);c=0;for(d=a[6].length;c<d;c++)g=a[6][c],b=new Lb(this,g),this.km[b.name]=b,this.fe.push(b);c=0;for(d=this.fe.length;c<d;c++)this.fe[c].Ya();c=0;for(d=this.fe.length;c<d;c++)this.fe[c].po();c=0;
for(d=this.xl.length;c<d;c++)this.xl[c].Ya();R(this.xl);this.eu=a[7];this.Pj=a[8];this.ud=a[9];this.sh=1;this.Qu=a[13];this.Na=a[14];this.fp=a[15];this.Tx=a[17];this.zn=a[20];this.fu=0<this.zn;this.Tw=a[22];this.Hc=this.ds=a[23];this.Ju=a[24];this.Yw=a[25];this.Fa=a[27]&&!this.ke;this.ll=Date.now();R(this.Ek);this.lw()};var c=!1,d=0,l=[];e.prototype.cx=function(a,c){function b(){d--;k.yq()}var k=this;a.addEventListener("load",b);a.addEventListener("error",b);l.push([a,c]);this.yq()};e.prototype.yq=
function(){for(var a;l.length&&100>d;)d++,a=l.shift(),this.sr(a[0],a[1])};e.prototype.cs=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){c=a.$o=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.Vc?a.src=d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(c){a.src=c},function(b){c=a.$o=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.cx(a,d)));this.mh.push(a)};
e.prototype.Cv=function(a){var c,d;c=0;for(d=this.mh.length;c<d;c++)if(this.mh[c].ou===a)return this.mh[c];return null};var g=0,x=!1;e.prototype.ew=function(){this.pg&&(g=this.pg.Cx(this.eu))};e.prototype.Wo=function(){var a=g,c=0,d=0,b=!0,k,p,d=0;for(k=this.mh.length;d<k;d++){p=this.mh[d];var f=p.hp;if(!f||0>=f)f=5E4;a+=f;p.src&&(p.complete||p.loaded)&&!p.$o?c+=f:b=!1}b&&this.Yw&&this.pg&&(x||(this.pg.Ix(),x=!0),d=this.pg.Ov(),c+=d,d<g&&(b=!1));this.wd=0==a?1:c/a;return b};var H=!1;e.prototype.go=
function(){if(this.Ja||this.F){var a=this.Ja||this.An;this.Gb&&this.er();var d=window.innerWidth,b=window.innerHeight;this.Mg===d&&this.Lg===b||this.setSize(d,b);this.wd=0;this.cq=-1;var k=this;if(this.Wo()&&(4!==this.df||H))this.fw();else{b=Date.now()-this.ll;if(a){var p=this.width,g=this.height,d=this.devicePixelRatio;if(3>this.df&&(this.Kc||500<=b&&this.cq!=this.wd)){a.clearRect(0,0,p,g);var b=p/2,g=g/2,p=0===this.df&&this.cf.xk.complete,l=40*d,e=0,u=80*d,m;if(p){var n=this.cf.xk,u=n.width*d;m=
n.height*d;l=u/2;e=m/2;a.drawImage(n,K(b-l),K(g-e),u,m)}1>=this.df?(b=K(b-l)+.5,g=K(g+(e+(p?12*d:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(b,g,Math.floor(u*this.wd),6*d),a.strokeStyle="black",a.strokeRect(b,g,u,6*d),a.strokeStyle="white",a.strokeRect(b-1*d,g-1*d,u+2*d,8*d)):2===this.df&&(a.font=this.Vc?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.vz="middle",d=Math.round(100*this.wd)+"%",p=a.measureText?a.measureText(d):null,a.fillText(d,b-(p?p.width:0)/2,g));this.cq=this.wd}else if(4===
this.df){this.Ou(a);f?f(function(){k.go()}):setTimeout(function(){k.go()},16);return}}setTimeout(function(){k.go()},this.Kc?10:100)}}};var A=-1,k="undefined"===typeof cr_is_preview?200:0,p=!0,u=!1,L=0,C=0,S="undefined"===typeof cr_is_preview?3E3:0,P=null,w=null,D=0;e.prototype.Ou=function(a){if(!H){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),g=this.cf.xk,f=this.cf.Xw,l=this.cf.Xx,e=0;4>e;++e)if(!g[e].complete||!f[e].complete||!l[e].complete)return;0===D&&(A=Date.now());var e=Date.now(),
m=!1,h=a,x,q;p||u?(a.clearRect(0,0,d,b),P&&P.width===d&&P.height===b||(P=document.createElement("canvas"),P.width=d,P.height=b,w=P.getContext("2d")),h=w,m=!0,p&&1===D&&(A=Date.now())):a.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,d,b);256<this.Ah?(x=Ha(.22*b,105,.6*d),q=.25*x,h.drawImage(n(f,x),.5*d-x/2,.2*b-q/2,x,q),q=x=Math.min(.395*b,.95*d),h.drawImage(n(g,x),.5*d-x/2,.485*b-q/2,x,q),x=Ha(.22*b,105,.6*d),q=.25*x,h.drawImage(n(l,x),.5*d-x/2,.868*b-q/2,x,q),h.fillStyle="#3C3C3C",x=d,q=Math.max(.005*
b,2),h.fillRect(0,.8*b-q/2,x,q),h.fillStyle=c?"red":"#E0FF65",x=d*this.wd,h.fillRect(.5*d-x/2,.8*b-q/2,x,q)):(q=x=.55*b,h.drawImage(n(g,x),.5*d-x/2,.45*b-q/2,x,q),h.fillStyle="#3C3C3C",x=d,q=Math.max(.005*b,2),h.fillRect(0,.85*b-q/2,x,q),h.fillStyle=c?"red":"#E0FF65",x=d*this.wd,h.fillRect(.5*d-x/2,.85*b-q/2,x,q));m&&(p?a.globalAlpha=0===D?0:Math.min((e-A)/300,1):u&&(a.globalAlpha=Math.max(1-(e-C)/300,0)),a.drawImage(P,0,0,d,b));p&&300<=e-A&&2<=D&&(p=!1,L=e);!p&&e-L>=S&&!u&&1<=this.wd&&(u=!0,C=e);
if(u&&e-C>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.wd&&500>Date.now()-A)H=!0,u=p=!1,this.cf=w=P=null;++D}};e.prototype.fw=function(){this.Gb&&(this.canvas.parentNode.removeChild(this.Gb),this.Gb=this.An=null);this.ll=Date.now();this.Pf=Za();var a,c,d;if(this.so)for(a=0,c=this.B.length;a<c;a++)d=this.B[a],d.O||d.Rm||!d.Ga.Xe||d.S();else this.bi=!1;a=0;for(c=this.sd.length;a<c;a++)this.sd[a].pu();2<=this.ec&&(a=this.Pa/this.Oa,c=this.width/this.height,this.sh=2!==this.ec&&c>a||2===this.ec&&
c<a?this.height/this.Oa:this.width/this.Pa);this.wp?this.an[this.wp].$n():this.sd[0].$n();this.so||(this.uk=1,this.trigger(V.prototype.k.Fo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.B.length;a<c;a++)d=this.B[a],d.Mq&&d.Mq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Qa(!1);this.Rb&&AppMobi.webview.execute("onGameReady();")};
e.prototype.Qa=function(a,c,d){if(this.ra){var b=Za();if(d||!this.Yh||a){a||(f?this.Jn=f(this.Pr):this.ho=setTimeout(this.Pr,this.le?1:16));c=c||b;var k=this.ec;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.vc)||this.Kf)&&0<this.Te&&(k=this.Te);if(0<k){var k=window.innerWidth,p=window.innerHeight;this.Mg===k&&this.Lg===p||this.setSize(k,p)}this.La||(d?this.Rj||(this.Rj=!0):this.Rj?(this.Rj=!1,0===this.ec&&this.setSize(Math.round(this.Lq/
this.devicePixelRatio),Math.round(this.Kq/this.devicePixelRatio),!0)):(this.Lq=this.width,this.Kq=this.height));this.bi&&(d=this.Wo(),this.uk=this.wd,d&&(this.bi=!1,this.wd=1,this.trigger(V.prototype.k.Fo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ew(c);!this.ya&&!this.Kc||this.Vm||this.Wi||a||(this.ya=!1,this.F?this.rc():this.Gd(),this.Ui&&(this.canvas&&this.canvas.toDataURL&&(this.Fr=this.canvas.toDataURL(this.Ui[0],this.Ui[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Fr),
this.trigger(V.prototype.k.Qs,null)),this.Ui=null));this.ez||(this.Vd++,this.Eh++,this.Vj++);this.si+=Za()-b}}};e.prototype.Ew=function(a){var c,d,b,k,p,g,f,l;1E3<=a-this.Pf&&(this.Pf+=1E3,1E3<=a-this.Pf&&(this.Pf=a),this.pm=this.Vj,this.Vj=0,this.$l=this.si,this.si=0);c=0;0!==this.lk&&(c=a-this.lk,0>c&&(c=0),this.yf=c/=1E3,.5<this.yf?this.yf=0:this.yf>1/this.Cq&&(this.yf=1/this.Cq));this.lk=a;this.xf=this.yf*this.ig;this.ib.add(this.xf);this.Ce.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||!!document.msFullscreenElement||this.Kf)&&!this.vc;2<=this.ec||a&&0<this.Te?(c=this.Pa/this.Oa,d=this.width/this.height,b=this.ec,a&&0<this.Te&&(b=this.Te),this.sh=2!==b&&d>c||2===b&&d<c?this.height/this.Oa:this.width/this.Pa,this.ra&&(this.ra.Sn(this.ra.scrollX),this.ra.Tn(this.ra.scrollY))):this.sh=this.Lf?this.devicePixelRatio:1;this.Ib();this.rd++;this.Ud.qx();this.rd--;this.Ib();this.rd++;d=this.Jq.Ae();a=0;for(c=d.length;a<c;a++)d[a].oz();a=0;for(c=this.B.length;a<c;a++)if(g=
this.B[a],!g.O&&(g.Ra.length||g.Ka.length))for(d=0,b=g.j.length;d<b;d++)for(f=g.j[d],k=0,p=f.P.length;k<p;k++)f.P[k].Qa();a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O&&(g.Ra.length||g.Ka.length))for(d=0,b=g.j.length;d<b;d++)for(f=g.j[d],k=0,p=f.P.length;k<p;k++)l=f.P[k],l.fr&&l.fr();d=this.rn.Ae();a=0;for(c=d.length;a<c;a++)d[a].Qa();this.rd--;this.gw();for(a=0;this.vh&&10>a++;)this.op(this.vh);a=0;for(c=this.fe.length;a<c;a++)this.fe[a].Gm=!1;this.ra.Af&&this.ra.Af.bb();R(this.ag);this.rd++;
a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O&&(g.Ra.length||g.Ka.length))for(d=0,b=g.j.length;d<b;d++)for(f=g.j[d],k=0,p=f.P.length;k<p;k++)l=f.P[k],l.Zi&&l.Zi();d=this.sn.Ae();a=0;for(c=d.length;a<c;a++)d[a].Zi();this.rd--};e.prototype.Zf=function(){var a,c,d,b,k,p,g,f,l;a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O)for(d=0,b=g.j.length;d<b;d++)if(f=g.j[d],f.Zf&&f.Zf(),f.P)for(k=0,p=f.P.length;k<p;k++)l=f.P[k],l.Zf&&l.Zf()};e.prototype.op=function(a){var c=this.ra;this.ra.Jx();var d,
b,k;if(this.F)for(d=0,b=this.B.length;d<b;d++)k=this.B[d],k.O||!k.oo||k.global&&0!==k.j.length||-1!==a.Rh.indexOf(k)||k.oo();c==a&&R(this.Ud.nc);R(this.ag);this.mr(!0);a.$n();this.mr(!1);this.ya=!0;this.Ib()};e.prototype.mr=function(a){var c,d,b,k,p,g,f,l,e;c=0;for(d=this.Ra.length;c<d;c++)b=this.Ra[c],a?b.yi&&b.yi():b.Bi&&b.Bi();c=0;for(d=this.B.length;c<d;c++)if(b=this.B[c],b.global||b.Ga.kl)for(k=0,p=b.j.length;k<p;k++)if(g=b.j[k],a?g.yi&&g.yi():g.Bi&&g.Bi(),g.P)for(f=0,l=g.P.length;f<l;f++)e=
g.P[f],a?e.yi&&e.yi():e.Bi&&e.Bi()};e.prototype.gh=function(a){this.rn.add(a)};e.prototype.Lx=function(a){this.sn.add(a)};e.prototype.Ih=function(a){return a&&-1!==a.wi?this.yf*a.wi:this.xf};e.prototype.Gd=function(){this.ra.Gd(this.Ja);this.Rb&&this.Ja.present()};e.prototype.rc=function(){this.Fa&&(this.zf=1,this.ra.wf(this.F));this.ra.rc(this.F);this.F.$w()};e.prototype.lj=function(a){a&&this.Jj.push(a)};e.prototype.lr=function(a){Ga(this.Jj,a)};e.prototype.Ef=function(a){a=a.toString();return this.pe.hasOwnProperty(a)?
this.pe[a]:null};var O=[];e.prototype.of=function(a){var c,d;c=a.type.name;var b=null;if(this.vf.hasOwnProperty(c)){if(b=this.vf[c],b.contains(a))return}else b=O.length?O.pop():new da,this.vf[c]=b;b.add(a);this.Ve=!0;if(a.hc)for(c=0,d=a.siblings.length;c<d;c++)this.of(a.siblings[c]);this.Qm&&b.kh.push(a);this.Pm||(this.rd++,this.trigger(Object.getPrototypeOf(a.type.Ga).k.Ss,a),this.rd--)};e.prototype.Ib=function(){if(this.Ve){var a,c,d,b,k,p;this.Qm=!0;d=0;for(k=this.od.length;d<k;++d)for(a=this.od[d],
c=a.type,c.j.push(a),b=0,p=c.Ka.length;b<p;++b)c.Ka[b].j.push(a),c.Ka[b].eh=!0;R(this.od);this.Ks();Ya(this.vf);this.Ve=this.Qm=!1}};e.prototype.Ks=function(){for(var a in this.vf)this.vf.hasOwnProperty(a)&&this.ns(this.vf[a])};e.prototype.ns=function(a){var c=a.Ae(),d=c[0].type,b,k,p,g,f,l;$a(d.j,a);d.eh=!0;0===d.j.length&&(d.oj=!1);b=0;for(k=d.Ka.length;b<k;++b)l=d.Ka[b],$a(l.j,a),l.eh=!0;b=0;for(k=this.Ud.nc.length;b<k;++b)if(f=this.Ud.nc[b],f.Yb.hasOwnProperty(d.index)&&$a(f.Yb[d.index].ie,a),
!d.O)for(p=0,g=d.Ka.length;p<g;++p)l=d.Ka[p],f.Yb.hasOwnProperty(l.index)&&$a(f.Yb[l.index].ie,a);if(f=c[0].q){if(f.Qc)for(p=f.j,b=0,k=p.length;b<k;++b)g=p[b],a.contains(g)&&(g.Z(),f.Hb.update(g,g.jc,null),g.jc.set(0,0,-1,-1));$a(f.j,a);f.Oi(0)}for(b=0;b<c.length;++b)this.ls(c[b],d);a.clear();O.push(a);this.ya=!0};e.prototype.ls=function(a,c){var d,b,k;d=0;for(b=this.Jj.length;d<b;++d)this.Jj[d](a);a.Oe&&c.zj.update(a,a.Oe,null);(d=a.q)&&d.Zg(a,!0);if(a.P)for(d=0,b=a.P.length;d<b;++d)k=a.P[d],k.Yf&&
k.Yf(),k.behavior.Bk.remove(a);this.Jq.remove(a);this.rn.remove(a);this.sn.remove(a);a.Yf&&a.Yf();this.pe.hasOwnProperty(a.uid.toString())&&delete this.pe[a.uid.toString()];this.Fk--;100>c.Gj.length&&c.Gj.push(a)};e.prototype.ip=function(a,c,d,b){if(a.O){var k=K(Math.random()*a.Vf.length);return this.ip(a.Vf[k],c,d,b)}return a.Tc?this.Pe(a.Tc,c,!1,d,b,!1):null};var Q=[];e.prototype.Pe=function(a,c,d,b,k,p){var g,f,l,e;if(!a)return null;var u=this.B[a[1]],m=u.Ga.Xe;if(this.bi&&m&&!u.Rm||m&&!this.F&&
11===a[0][11])return null;var n=c;m||(c=null);var h;u.Gj.length?(h=u.Gj.pop(),h.Cc=!0,u.Ga.ea.call(h,u)):(h=new u.Ga.ea(u),h.Cc=!1);!d||p||this.pe.hasOwnProperty(a[2].toString())?h.uid=this.xi++:h.uid=a[2];this.pe[h.uid.toString()]=h;h.ir=this.Fq++;h.If=u.j.length;g=0;for(f=this.od.length;g<f;++g)this.od[g].type===u&&h.If++;h.Nh=Ib;h.toString=Jb;l=a[3];if(h.Cc)Ya(h.J);else{h.J={};if("undefined"!==typeof cr_is_preview)for(h.Op=[],h.Op.length=l.length,g=0,f=l.length;g<f;g++)h.Op[g]=l[g][1];h.hb=[];
h.hb.length=l.length}g=0;for(f=l.length;g<f;g++)h.hb[g]=l[g][0];if(m){var x=a[0];h.x=ka(b)?x[0]:b;h.y=ka(k)?x[1]:k;h.z=x[2];h.width=x[3];h.height=x[4];h.depth=x[5];h.n=x[6];h.opacity=x[7];h.fc=x[8];h.gc=x[9];h.Jb=x[10];g=x[11];!this.F&&u.U.length&&(h.Jb=g);h.wh=hb(h.Jb);this.G&&ib(h,h.Jb,this.G);if(h.Cc){g=0;for(f=x[12].length;g<f;g++)for(l=0,e=x[12][g].length;l<e;l++)h.Sa[g][l]=x[12][g][l];h.W.set(0,0,0,0);h.Oe.set(0,0,-1,-1);h.jc.set(0,0,-1,-1);h.Xb.Pi(h.W);R(h.Rl)}else{h.Sa=x[12].slice(0);g=0;
for(f=h.Sa.length;g<f;g++)h.Sa[g]=x[12][g].slice(0);h.qa=[];h.Ge=[];h.Ge.length=u.U.length;h.W=new wa(0,0,0,0);h.Oe=new wa(0,0,-1,-1);h.jc=new wa(0,0,-1,-1);h.Xb=new ya;h.Rl=[];h.A=Mb;h.Zy=Nb;h.Ob=Ob;h.Z=Pb;h.Sx=Qb;h.$r=Rb;h.Jd=Sb}h.hh=!1;h.Ox=0;h.Nx=0;h.Mx=null;14===x.length&&(h.hh=!0,h.Ox=x[13][0],h.Nx=x[13][1],h.Mx=x[13][2]);g=0;for(f=u.U.length;g<f;g++)h.Ge[g]=!0;h.ue=!0;h.Bd=Tb;h.Bd();h.as=!!h.qa.length;h.Ql=!0;h.Vl=!0;u.nj=!0;h.visible=!0;h.wi=-1;h.q=c;h.Cd=c.j.length;h.zf=0;"undefined"===typeof h.ua&&
(h.ua=null);this.ya=h.$d=!0}var q;R(Q);g=0;for(f=u.Ka.length;g<f;g++)Q.push.apply(Q,u.Ka[g].Ra);Q.push.apply(Q,u.Ra);if(h.Cc)for(g=0,f=Q.length;g<f;g++){var C=Q[g];q=h.P[g];q.Cc=!0;C.behavior.ea.call(q,C,h);x=a[4][g];l=0;for(e=x.length;l<e;l++)q.C[l]=x[l];q.S();C.behavior.Bk.add(h)}else for(h.P=[],g=0,f=Q.length;g<f;g++)C=Q[g],q=new C.behavior.ea(C,h),q.Cc=!1,q.C=a[4][g].slice(0),q.S(),h.P.push(q),C.behavior.Bk.add(h);x=a[5];if(h.Cc)for(g=0,f=x.length;g<f;g++)h.C[g]=x[g];else h.C=x.slice(0);this.od.push(h);
this.Ve=!0;c&&(c.rh(h,!0),1!==c.Zc||1!==c.$c)&&(u.oj=!0);this.Fk++;if(u.hc){if(h.hc=!0,h.Cc?R(h.siblings):h.siblings=[],!d&&!p){g=0;for(f=u.qc.length;g<f;g++)if(u.qc[g]!==u){if(!u.qc[g].Tc)return null;h.siblings.push(this.Pe(u.qc[g].Tc,n,!1,m?h.x:b,m?h.y:k,!0))}g=0;for(f=h.siblings.length;g<f;g++)for(h.siblings[g].siblings.push(h),l=0;l<f;l++)g!==l&&h.siblings[g].siblings.push(h.siblings[l])}}else h.hc=!1,h.siblings=null;h.S();g=0;for(f=h.P.length;g<f;g++)h.P[g].Ww&&h.P[g].Ww();return h};e.prototype.zm=
function(a){var c,d;c=0;for(d=this.ra.V.length;c<d;c++){var b=this.ra.V[c];if(kb(b.name,a))return b}return null};e.prototype.Kh=function(a){a=K(a);0>a&&(a=0);a>=this.ra.V.length&&(a=this.ra.V.length-1);return this.ra.V[a]};e.prototype.Yl=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].ja().xa=!0};e.prototype.Hi=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Hi()};e.prototype.Tk=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Tk()};e.prototype.$f=function(a){var c,d;c=0;for(d=a.length;c<
d;c++)a[c].$f()};e.prototype.Xr=function(a){if(a.nj){var c,d,b=a.j;c=0;for(d=b.length;c<d;++c)b[c].$r();b=this.od;c=0;for(d=b.length;c<d;++c)b[c].type===a&&b[c].$r();a.nj=!1}};e.prototype.zp=function(a,c,d,b){var k,p,g=a?1!==a.Zc||1!==a.$c:!1;if(c.O)for(a=0,k=c.Vf.length;a<k;++a)p=c.Vf[a],g||p.oj?Da(b,p.j):(this.Xr(p),p.zj.Wk(d,b));else g||c.oj?Da(b,c.j):(this.Xr(c),c.zj.Wk(d,b))};e.prototype.Fp=function(a,c,d,b){var k,p;k=0;for(p=c.length;k<p;++k)this.zp(a,c[k],d,b)};e.prototype.Sv=function(a,c,
d){var b=this.Hr;b&&this.Fp(a,b.Ck,c,d)};e.prototype.Lv=function(a,c,d){var b=this.Zp;b&&this.Fp(a,b.Ck,c,d)};e.prototype.pl=function(a,c,d){var b=a.ja(),k,p,g,f,l=this.Db().cc.Xc,e,h,u;if(b.xa)for(b.xa=!1,R(b.j),k=0,f=a.j.length;k<f;k++)g=a.j[k],g.Z(),e=g.q.zb(c,d,!0),h=g.q.zb(c,d,!1),g.Ob(e,h)?b.j.push(g):l&&b.fa.push(g);else{p=0;u=l?b.fa:b.j;k=0;for(f=u.length;k<f;k++)g=u[k],g.Z(),e=g.q.zb(c,d,!0),h=g.q.zb(c,d,!1),g.Ob(e,h)&&(l?b.j.push(g):(b.j[p]=b.j[k],p++));u.length=p}a.Rc();return b.Fm()};
e.prototype.Ub=function(a,c){if(!(a&&c&&a!==c&&a.$d&&c.$d))return!1;a.Z();c.Z();var d=a.q,b=c.q,k,p,g,f,l,e,h,u;if(d===b||d.Zc===b.Zc&&b.$c===b.$c&&d.scale===b.scale&&d.n===b.n&&d.Dd===b.Dd){if(!a.W.mw(c.W)||!a.Xb.Pp(c.Xb)||a.hh&&c.hh)return!1;if(a.hh)return this.Lr(a,c);if(c.hh)return this.Lr(c,a);h=a.ua&&!a.ua.Dg();k=c.ua&&!c.ua.Dg();if(!h&&!k)return!0;h?(a.ua.qg(a.width,a.height,a.n),h=a.ua):(this.zd.bh(a.Xb,a.x,a.y,a.width,a.height),h=this.zd);k?(c.ua.qg(c.width,c.height,c.n),u=c.ua):(this.zd.bh(c.Xb,
c.x,c.y,c.width,c.height),u=this.zd);return h.Sh(u,c.x-a.x,c.y-a.y)}h=a.ua&&!a.ua.Dg();k=c.ua&&!c.ua.Dg();h?(a.ua.qg(a.width,a.height,a.n),this.zd.xr(a.ua)):this.zd.bh(a.Xb,a.x,a.y,a.width,a.height);h=this.zd;k?(c.ua.qg(c.width,c.height,c.n),this.bo.xr(c.ua)):this.bo.bh(c.Xb,c.x,c.y,c.width,c.height);u=this.bo;k=0;for(p=h.xd;k<p;k++)g=2*k,f=g+1,l=h.nb[g],e=h.nb[f],h.nb[g]=d.Ma(l+a.x,e+a.y,!0),h.nb[f]=d.Ma(l+a.x,e+a.y,!1);h.Z();k=0;for(p=u.xd;k<p;k++)g=2*k,f=g+1,l=u.nb[g],e=u.nb[f],u.nb[g]=b.Ma(l+
c.x,e+c.y,!0),u.nb[f]=b.Ma(l+c.x,e+c.y,!1);u.Z();return h.Sh(u,0,0)};var ea=new ya;new wa(0,0,0,0);var U=[];e.prototype.Lr=function(a,c){var d,b,k,g,p=c.W,f=a.x,l=a.y;a.cz(p,U);var e=c.ua&&!c.ua.Dg();d=0;for(b=U.length;d<b;++d)if(k=U[d],g=k.rz,p.ow(g,f,l)&&(ea.Pi(g),ea.offset(f,l),ea.Pp(c.Xb)))if(e)if(c.ua.qg(c.width,c.height,c.n),k.Dn){if(k.Dn.Sh(c.ua,c.x-(f+g.left),c.y-(l+g.top)))return R(U),!0}else{if(this.zd.bh(ea,0,0,g.right-g.left,g.bottom-g.top),this.zd.Sh(c.ua,c.x,c.y))return R(U),!0}else if(k.Dn){if(this.zd.bh(c.Xb,
0,0,c.width,c.height),k.Dn.Sh(this.zd,-(f+g.left),-(l+g.top)))return R(U),!0}else return R(U),!0;R(U);return!1};e.prototype.lo=function(a,c){if(!c)return!1;var d,b,k,g,p;d=0;for(b=a.Ra.length;d<b;d++)if(a.Ra[d].behavior instanceof c)return!0;if(!a.O)for(d=0,b=a.Ka.length;d<b;d++)for(p=a.Ka[d],k=0,g=p.Ra.length;k<g;k++)if(p.Ra[k].behavior instanceof c)return!0;return!1};e.prototype.mo=function(a){return this.lo(a,ic.yy)};e.prototype.no=function(a){return this.lo(a,ic.zy)};var G=[];e.prototype.ob=function(a){var c,
d,b;a.Z();this.Sv(a.q,a.W,G);c=0;for(d=G.length;c<d;++c)if(b=G[c],b.J.solidEnabled&&this.Ub(a,b))return R(G),b;R(G);return null};var E=[];e.prototype.xe=function(a,c){var d=null;c&&(d=E,R(d));a.Z();this.Lv(a.q,a.W,G);var b,k,g;b=0;for(k=G.length;b<k;++b)if(g=G[b],g.J.jumpthruEnabled&&this.Ub(a,g))if(c)d.push(g);else return R(G),g;R(G);return d};e.prototype.ad=function(a,c,d,b,k,g){b=b||50;var p=a.x,f=a.y,l,e=null,h=null;for(l=0;l<b;l++)if(a.x=p+c*l,a.y=f+d*l,a.A(),!this.Ub(a,e)&&((e=this.ob(a))&&
(h=e),!e&&(k&&(g?e=this.Ub(a,g)?g:null:e=this.xe(a),e&&(h=e)),!e)))return h&&this.Vk(a,c,d,h),!0;a.x=p;a.y=f;a.A();return!1};e.prototype.Hn=function(a,c,d,b){b=b||50;var k=a.x,g=a.y,p=null,f=null,l,e,h;for(l=0;l<b;++l)for(e=0;2>e;++e)if(h=2*e-1,a.x=k+c*l*h,a.y=g+d*l*h,a.A(),!this.Ub(a,p))if(p=this.ob(a))f=p;else return f&&this.Vk(a,c*h,d*h,f),!0;a.x=k;a.y=g;a.A();return!1};e.prototype.Vk=function(a,c,d,b){var k=2,g,p=!1;g=!1;for(var f=a.x,l=a.y;16>=k;)g=1/k,k*=2,a.x+=c*g*(p?1:-1),a.y+=d*g*(p?1:-1),
a.A(),this.Ub(a,b)?g=p=!0:(g=p=!1,f=a.x,l=a.y);g&&(a.x=f,a.y=l,a.A())};e.prototype.jr=function(a,c){var d=ka(c)?100:c,b=0,k=a.x,g=a.y,p=0,f=0,l=0,e=this.ob(a);if(!e)return!0;for(;b<=d;){switch(p){case 0:f=0;l=-1;b++;break;case 1:f=1;l=-1;break;case 2:f=1;l=0;break;case 3:l=f=1;break;case 4:f=0;l=1;break;case 5:f=-1;l=1;break;case 6:f=-1;l=0;break;case 7:l=f=-1}p=(p+1)%8;a.x=K(k+f*b);a.y=K(g+l*b);a.A();if(!this.Ub(a,e)&&(e=this.ob(a),!e))return!0}a.x=k;a.y=g;a.A();return!1};e.prototype.re=function(a,
c){a.$d&&c.$d&&this.ag.push([a,c])};e.prototype.$t=function(a,c,d){var b,k,g;b=0;for(k=this.ag.length;b<k;++b){g=this.ag[b];if(g[0]===a)g=g[1];else if(g[1]===a)g=g[0];else continue;if(c.O){if(-1===c.Vf.indexOf(c))continue}else if(g.type!==c)continue;-1===d.indexOf(g)&&d.push(g)}};e.prototype.mu=function(a,c){var d,b,k;d=0;for(b=this.ag.length;d<b;d++)if(k=this.ag[d],k[0]===a&&k[1]===c||k[0]===c&&k[1]===a)return!0;return!1};e.prototype.ku=function(a,c,d){var b=a.x,k=a.y,g=pa(10,Va(c,d,b,k)),p=Oa(c,
d,b,k),f=this.ob(a);if(!f)return La(p+ra);var l=f,e,h,u,m,n=T(5);for(e=1;36>e;e++)if(h=p-e*n,a.x=c+Math.cos(h)*g,a.y=d+Math.sin(h)*g,a.A(),!this.Ub(a,l)&&(l=this.ob(a),!l)){u=h;break}36===e&&(u=La(p+ra));l=f;for(e=1;36>e;e++)if(h=p+e*n,a.x=c+Math.cos(h)*g,a.y=d+Math.sin(h)*g,a.A(),!this.Ub(a,l)&&(l=this.ob(a),!l)){m=h;break}36===e&&(m=La(p+ra));a.x=b;a.y=k;a.A();if(m===u)return m;a=Pa(m,u)/2;a=Ra(m,u)?La(u+a+ra):La(m+a);u=Math.cos(p);p=Math.sin(p);m=Math.cos(a);a=Math.sin(a);c=u*m+p*a;return Oa(0,
0,u-2*c*m,p-2*c*a)};var aa=-1;e.prototype.trigger=function(a,c,d){if(!this.ra)return!1;var b=this.ra.Af;if(!b)return!1;var k=!1,g,p,f;aa++;var l=b.fm;p=0;for(f=l.length;p<f;++p)g=this.Rr(a,c,l[p],d),k=k||g;g=this.Rr(a,c,b,d);aa--;return k||g};e.prototype.Rr=function(a,c,d,b){var k=!1,g,p,f,l;if(c)for(f=this.jo(a,c,c.type.name,d,b),k=k||f,l=c.type.Ka,g=0,p=l.length;g<p;++g)f=this.jo(a,c,l[g].name,d,b),k=k||f;else f=this.jo(a,c,"system",d,b),k=k||f;return k};e.prototype.jo=function(a,c,d,b,k){var g,
p=!1,f=!1,f="undefined"!==typeof k,l=(f?b.sp:b.Sr)[d];if(!l)return p;var e=null;b=0;for(g=l.length;b<g;++b)if(l[b].method==a){e=l[b].Dh;break}if(!e)return p;var h;f?h=e[k]:h=e;if(!h)return null;b=0;for(g=h.length;b<g;b++)a=h[b][0],k=h[b][1],f=this.zv(c,d,a,k),p=p||f;return p};e.prototype.zv=function(a,c,d,b){var k,g,p=!1;this.ko++;var f=this.Db().cc;f&&this.Hi(f.lf);var l=1<this.ko;this.Hi(d.lf);l&&this.bx();var e=this.Uk(d);e.cc=d;a&&(k=this.types[c].ja(),k.xa=!1,R(k.j),k.j[0]=a,this.types[c].Rc());
a=!0;if(d.parent){c=e.Kr;for(k=d.parent;k;)c.push(k),k=k.parent;c.reverse();k=0;for(g=c.length;k<g;k++)if(!c[k].tx()){a=!1;break}}a&&(this.Eh++,d.Xc?d.rx(b):d.bb(),p=p||e.Of);this.Pk();l&&this.Vw();this.$f(d.lf);f&&this.$f(f.lf);this.Ve&&0===this.rd&&0===aa&&!this.Sm&&this.Ib();this.ko--;return p};e.prototype.vm=function(){var a=this.Db();return a.cc.tb[a.sb]};e.prototype.bx=function(){this.wk++;this.wk>=this.ln.length&&this.ln.push([])};e.prototype.Vw=function(){this.wk--};e.prototype.Ap=function(){return this.ln[this.wk]};
e.prototype.Uk=function(a){this.Lj++;this.Lj>=this.jm.length&&this.jm.push(new Ub);var c=this.Db();c.reset(a);return c};e.prototype.Pk=function(){this.Lj--};e.prototype.Db=function(){return this.jm[this.Lj]};e.prototype.Bp=function(a,c){for(var d,b,k,g,p,f;c;){d=0;for(b=c.dd.length;d<b;d++)if(f=c.dd[d],f instanceof Vb&&kb(a,f.name))return f;c=c.parent}d=0;for(b=this.fe.length;d<b;d++)for(p=this.fe[d],k=0,g=p.Se.length;k<g;k++)if(f=p.Se[k],f instanceof Vb&&kb(a,f.name))return f;return null};e.prototype.Dp=
function(a){var c,d;c=0;for(d=this.sd.length;c<d;c++)if(this.sd[c].da===a)return this.sd[c];return null};e.prototype.Zj=function(a){var c,d;c=0;for(d=this.B.length;c<d;c++)if(this.B[c].da===a)return this.B[c];return null};e.prototype.Iv=function(a){var c,d;c=0;for(d=this.Ie.length;c<d;c++)if(this.Ie[c].da===a)return this.Ie[c];return null};e.prototype.tu=function(a,c){this.Ui=[a,c];this.ya=!0};e.prototype.gw=function(){var a=this,c=this.Rn,d=this.me,k=this.qk,g=!1;this.Dr&&(g=!0,c="__c2_continuouspreview",
this.Dr=!1);if(c.length){this.Ib();d=this.xx();if(q()&&!this.Kc)h(c,d,function(){ha("Saved state to IndexedDB storage ("+d.length+" bytes)");a.me=d;a.trigger(V.prototype.k.Kl,null);d=a.me="";g&&b()},function(k){try{localStorage.setItem("__c2save_"+c,d),ha("Saved state to WebStorage ("+d.length+" bytes)"),a.me=d,a.trigger(V.prototype.k.Kl,null),d=a.me="",g&&b()}catch(p){ha("Failed to save game state: "+k+"; "+p),a.trigger(V.prototype.k.Jo,null)}});else try{localStorage.setItem("__c2save_"+c,d),ha("Saved state to WebStorage ("+
d.length+" bytes)"),a.me=d,this.trigger(V.prototype.k.Kl,null),d=a.me="",g&&b()}catch(p){ha("Error saving to WebStorage: "+p),a.trigger(V.prototype.k.Jo,null)}this.qk=this.Rn="";this.lb=null}if(k.length){if(q()&&!this.Kc)r(k,function(c){c?(a.lb=c,ha("Loaded state from IndexedDB storage ("+a.lb.length+" bytes)")):(a.lb=localStorage.getItem("__c2save_"+k)||"",ha("Loaded state from WebStorage ("+a.lb.length+" bytes)"));a.Wi=!1;a.lb||(a.lb=null,a.trigger(V.prototype.k.jj,null))},function(){a.lb=localStorage.getItem("__c2save_"+
k)||"";ha("Loaded state from WebStorage ("+a.lb.length+" bytes)");a.Wi=!1;a.lb||(a.lb=null,a.trigger(V.prototype.k.jj,null))});else{try{this.lb=localStorage.getItem("__c2save_"+k)||"",ha("Loaded state from WebStorage ("+this.lb.length+" bytes)")}catch(f){this.lb=null}this.Wi=!1;a.lb||(a.lb=null,a.trigger(V.prototype.k.jj,null))}this.Rn=this.qk=""}null!==this.lb&&(this.Ib(),this.Dw(this.lb)?(this.me=this.lb,this.trigger(V.prototype.k.bt,null),this.me=""):a.trigger(V.prototype.k.jj,null),this.lb=null)};
e.prototype.xx=function(){var c,d,b,k,g,p,f,l={c2save:!0,version:1,rt:{time:this.ib.ba,walltime:this.Ce.ba,timescale:this.ig,tickcount:this.Vd,execcount:this.Eh,next_uid:this.xi,running_layout:this.ra.da,start_time_offset:Date.now()-this.ll},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(d=this.B.length;c<d;c++)if(g=this.B[c],!g.O&&!this.mo(g)){p={instances:[]};Xa(g.J)&&(p.ex=a(g.J));b=0;for(k=g.j.length;b<k;b++)p.instances.push(this.Qn(g.j[b]));l.types[g.da.toString()]=p}c=
0;for(d=this.sd.length;c<d;c++)b=this.sd[c],l.layouts[b.da.toString()]=b.yb();k=l.events.groups;c=0;for(d=this.Ie.length;c<d;c++)b=this.Ie[c],k[b.da.toString()]=this.Ag[b.Oh].Ff;d=l.events.cnds;for(f in this.Ne)this.Ne.hasOwnProperty(f)&&(c=this.Ne[f],Xa(c.J)&&(d[f]={ex:a(c.J)}));d=l.events.acts;for(f in this.He)this.He.hasOwnProperty(f)&&(c=this.He[f],Xa(c.J)&&(d[f]={ex:a(c.J)}));d=l.events.vars;for(f in this.lh)this.lh.hasOwnProperty(f)&&(c=this.lh[f],c.jk||c.parent&&!c.ai||(d[f]=c.data));l.system=
this.Ud.yb();return JSON.stringify(l)};e.prototype.kr=function(){var a,c,d,b,k,g;this.pe={};a=0;for(c=this.B.length;a<c;a++)if(d=this.B[a],!d.O)for(b=0,k=d.j.length;b<k;b++)g=d.j[b],this.pe[g.uid.toString()]=g};e.prototype.Dw=function(a){var c;try{c=JSON.parse(a)}catch(d){return!1}if(!c.c2save||1<c.version)return!1;this.Vh=!0;a=c.rt;this.ib.reset();this.ib.ba=a.time;this.Ce.reset();this.Ce.ba=a.walltime||0;this.ig=a.timescale;this.Vd=a.tickcount;this.Eh=a.execcount;this.ll=Date.now()-a.start_time_offset;
var b=a.running_layout;if(b!==this.ra.da)if(b=this.Dp(b))this.op(b);else return;var k,g,p,f,l,e,h;e=c.types;for(g in e)if(e.hasOwnProperty(g)&&(f=this.Zj(parseInt(g,10)))&&!f.O&&!this.mo(f)){e[g].ex?f.J=e[g].ex:Ya(f.J);l=f.j;p=e[g].instances;b=0;for(k=qa(l.length,p.length);b<k;b++)this.rk(l[b],p[b]);b=p.length;for(k=l.length;b<k;b++)this.of(l[b]);b=l.length;for(k=p.length;b<k;b++){l=null;if(f.Ga.Xe&&(l=this.ra.Yj(p[b].w.l),!l))continue;l=this.Pe(f.Tc,l,!1,0,0,!0);this.rk(l,p[b])}f.eh=!0}this.Ib();
this.kr();k=c.layouts;for(g in k)k.hasOwnProperty(g)&&(b=this.Dp(parseInt(g,10)))&&b.Sb(k[g]);k=c.events.groups;for(g in k)k.hasOwnProperty(g)&&(b=this.Iv(parseInt(g,10)))&&this.Ag[b.Oh]&&this.Ag[b.Oh].Mi(k[g]);b=c.events.cnds;for(g in this.Ne)this.Ne.hasOwnProperty(g)&&(b.hasOwnProperty(g)?this.Ne[g].J=b[g].ex:this.Ne[g].J={});b=c.events.acts;for(g in this.He)this.He.hasOwnProperty(g)&&(b.hasOwnProperty(g)?this.He[g].J=b[g].ex:this.He[g].J={});b=c.events.vars;for(g in b)b.hasOwnProperty(g)&&this.lh.hasOwnProperty(g)&&
(this.lh[g].data=b[g]);this.xi=a.next_uid;this.Vh=!1;b=0;for(k=this.Qj.length;b<k;++b)l=this.Qj[b],this.trigger(Object.getPrototypeOf(l.type.Ga).k.hj,l);R(this.Qj);this.Ud.Sb(c.system);b=0;for(k=this.B.length;b<k;b++)if(f=this.B[b],!f.O&&!this.mo(f))for(c=0,g=f.j.length;c<g;c++){l=f.j[c];if(f.hc)for(e=l.Nh(),R(l.siblings),a=0,p=f.qc.length;a<p;a++)h=f.qc[a],f!==h&&l.siblings.push(h.j[e]);l.jd&&l.jd();if(l.P)for(a=0,p=l.P.length;a<p;a++)e=l.P[a],e.jd&&e.jd()}return this.ya=!0};e.prototype.Qn=function(c,
d){var b,k,g,p,f;p=c.type;g=p.Ga;var l={};d?l.c2=!0:l.uid=c.uid;Xa(c.J)&&(l.ex=a(c.J));if(c.hb&&c.hb.length)for(l.ivs={},b=0,k=c.hb.length;b<k;b++)l.ivs[c.type.Mm[b].toString()]=c.hb[b];if(g.Xe){g={x:c.x,y:c.y,w:c.width,h:c.height,l:c.q.da,zi:c.Jd()};0!==c.n&&(g.a=c.n);1!==c.opacity&&(g.o=c.opacity);.5!==c.fc&&(g.hX=c.fc);.5!==c.gc&&(g.hY=c.gc);0!==c.Jb&&(g.bm=c.Jb);c.visible||(g.v=c.visible);c.$d||(g.ce=c.$d);-1!==c.wi&&(g.mts=c.wi);if(p.U.length)for(g.fx=[],b=0,k=p.U.length;b<k;b++)f=p.U[b],g.fx.push({name:f.name,
active:c.Ge[f.index],params:c.Sa[f.index]});l.w=g}if(c.P&&c.P.length)for(l.behs={},b=0,k=c.P.length;b<k;b++)p=c.P[b],p.yb&&(l.behs[p.type.da.toString()]=p.yb());c.yb&&(l.data=c.yb());return l};e.prototype.Kv=function(a,c){var d,b;d=0;for(b=a.Mm.length;d<b;d++)if(a.Mm[d]===c)return d;return-1};e.prototype.Hv=function(a,c){var d,b;d=0;for(b=a.P.length;d<b;d++)if(a.P[d].type.da===c)return d;return-1};e.prototype.rk=function(a,c,d){var b,k,g,p,f;f=a.type;var l=f.Ga;if(d){if(!c.c2)return}else a.uid=c.uid;
c.ex?a.J=c.ex:Ya(a.J);if(k=c.ivs)for(b in k)k.hasOwnProperty(b)&&(g=this.Kv(f,parseInt(b,10)),0>g||g>=a.hb.length||(p=k[b],null===p&&(p=NaN),a.hb[g]=p));if(l.Xe){g=c.w;a.q.da!==g.l&&(k=a.q,a.q=this.ra.Yj(g.l),a.q?(k.Zg(a,!0),a.q.rh(a,!0),a.A(),a.q.Oi(0)):(a.q=k,d||this.of(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Cd=g.zi;a.n=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.fc=g.hasOwnProperty("hX")?g.hX:.5;a.gc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?
g.v:!0;a.$d=g.hasOwnProperty("ce")?g.ce:!0;a.wi=g.hasOwnProperty("mts")?g.mts:-1;a.Jb=g.hasOwnProperty("bm")?g.bm:0;a.wh=hb(a.Jb);this.G&&ib(a,a.Jb,this.G);a.A();if(g.hasOwnProperty("fx"))for(d=0,k=g.fx.length;d<k;d++)p=f.xm(g.fx[d].name),0>p||(a.Ge[p]=g.fx[d].active,a.Sa[p]=g.fx[d].params);a.Bd()}if(f=c.behs)for(b in f)f.hasOwnProperty(b)&&(d=this.Hv(a,parseInt(b,10)),0>d||a.P[d].Sb(f[b]));c.data&&a.Sb(c.data)};e.prototype.tp=function(a,c,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+a,function(a){a.file(c,d)},d)};e.prototype.Av=function(a,c){this.tp("data.js",function(d){var b=new FileReader;b.onload=function(c){a(c.target.result)};b.onerror=c;b.readAsText(d)},c)};var ia=[],J=0;e.prototype.nn=function(){if(ia.length&&!(8<=J)){J++;var a=ia.shift();this.vu(a.filename,a.Kx,a.Tu)}};e.prototype.up=function(a,c,d){var b=this;ia.push({filename:a,Kx:function(a){J--;b.nn();c(a)},Tu:function(a){J--;b.nn();d(a)}});this.nn()};e.prototype.vu=function(a,c,d){this.tp(a,function(a){var d=
new FileReader;d.onload=function(a){c(a.target.result)};d.readAsArrayBuffer(a)},d)};e.prototype.Bv=function(a,c,d){var b="",k=a.toLowerCase(),g=k.substr(k.length-4),k=k.substr(k.length-5);".mp4"===g?b="video/mp4":".webm"===k?b="video/webm":".m4a"===g?b="audio/mp4":".mp3"===g&&(b="audio/mpeg");this.up(a,function(a){a=URL.createObjectURL(new Blob([a],{type:b}));c(a)},d)};e.prototype.pw=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.sr=function(a,
c){this.hk&&!this.pw(c)?this.Bv(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};e.prototype.dl=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Wb=function(a){return new e(document.getElementById(a))};Xb=function(a,c){return new e({dc:!0,width:a,height:c})};window.cr_createRuntime=Wb;window.cr_createDCRuntime=Xb;window.createCocoonJSRuntime=
function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.pj=!0;document.body.appendChild(a);a=new e(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 e(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_getSnapshot=function(e,n){var q=window.cr_getC2Runtime();q&&q.tu(e,n)};window.cr_sizeCanvas=function(e,n){if(0!==e&&0!==n){var q=window.cr_getC2Runtime();q&&q.setSize(e,n)}};window.cr_setSuspended=function(e){var n=window.cr_getC2Runtime();n&&n.setSuspended(e)};
(function(){function e(a,d){this.b=a;this.Af=null;this.scrollX=this.b.Pa/2;this.scrollY=this.b.Oa/2;this.scale=1;this.n=0;this.xg=!0;this.name=d[0];this.Rw=d[1];this.Qw=d[2];this.width=d[1];this.height=d[2];this.Ur=d[3];this.Br=d[4];this.da=d[5];var b=d[6],g,f;this.V=[];this.Rh=[];g=0;for(f=b.length;g<f;g++){var e=new Yb(this,b[g]);e.Hq=g;this.V.push(e)}b=d[7];this.We=[];g=0;for(f=b.length;g<f;g++){var e=b[g],h=this.b.B[e[1]];h.Tc||(h.Tc=e);this.We.push(e);-1===this.Rh.indexOf(h)&&this.Rh.push(h)}this.U=
[];this.qa=[];this.ue=!0;this.Sa=[];g=0;for(f=d[8].length;g<f;g++)this.U.push({id:d[8][g][0],name:d[8][g][1],cb:-1,vd:!1,rb:!0,index:g}),this.Sa.push(d[8][g][2].slice(0));this.Bd();this.gf=new wa(0,0,1,1);this.Kn=new wa(0,0,1,1);this.ff={}}function n(a,d){return a.Cd-d.Cd}function q(a,d){this.kb=a;this.b=a.b;this.j=[];this.scale=1;this.n=0;this.ee=!1;this.ye=new wa(0,0,0,0);this.Qr=new ya;this.Ba=this.Aa=this.Ca=this.za=0;this.jg=!1;this.Ee=-1;this.Zl=0;this.name=d[0];this.index=d[1];this.da=d[2];
this.visible=d[3];this.md=d[4];this.Ad=d[5];this.Zc=d[6];this.$c=d[7];this.opacity=d[8];this.Uj=d[9];this.Qc=d[10];this.Dd=d[11];this.Jb=d[12];this.Pu=d[13];this.wh="source-over";this.Pb=this.Tb=0;this.Hb=null;this.ne=m();this.yd=!0;this.Ng=new wa(0,0,-1,-1);this.Bb=new wa(0,0,-1,-1);this.Qc&&(this.Hb=new gb(this.b.Pa,this.b.Oa));this.Sd=!1;var b=d[14],g,f;this.Ir=[];this.Jc=[];this.zh=[];g=0;for(f=b.length;g<f;g++){var e=b[g],h=this.b.B[e[1]];h.Tc||(h.Tc=e,h.su=this.index);this.Jc.push(e);-1===this.kb.Rh.indexOf(h)&&
this.kb.Rh.push(h)}Ca(this.Ir,this.Jc);this.U=[];this.qa=[];this.ue=!0;this.Sa=[];g=0;for(f=d[15].length;g<f;g++)this.U.push({id:d[15][g][0],name:d[15][g][1],cb:-1,vd:!1,rb:!0,index:g}),this.Sa.push(d[15][g][2].slice(0));this.Bd();this.gf=new wa(0,0,1,1);this.Kn=new wa(0,0,1,1)}function m(){return a.length?a.pop():[]}function h(c){R(c);a.push(c)}e.prototype.wx=function(a){var d=a.type.da.toString();this.ff.hasOwnProperty(d)||(this.ff[d]=[]);this.ff[d].push(this.b.Qn(a))};e.prototype.Hp=function(){var a=
this.V[0];return!a.Ad&&1===a.opacity&&!a.Uj&&a.visible};e.prototype.Bd=function(){R(this.qa);this.ue=!0;var a,d,b;a=0;for(d=this.U.length;a<d;a++)b=this.U[a],b.rb&&(this.qa.push(b),b.vd||(this.ue=!1))};e.prototype.wm=function(a){var d,b,g;d=0;for(b=this.U.length;d<b;d++)if(g=this.U[d],g.name===a)return g;return null};var r=[],b=!0;e.prototype.$n=function(){this.Br&&(this.Af=this.b.km[this.Br],this.Af.po());this.b.ra=this;this.width=this.Rw;this.height=this.Qw;this.scrollX=this.b.Pa/2;this.scrollY=
this.b.Oa/2;var a,d,f,g,e,h,m;a=0;for(f=this.b.B.length;a<f;a++)if(d=this.b.B[a],!d.O)for(e=d.j,d=0,g=e.length;d<g;d++)if(h=e[d],h.q){var k=h.q.Hq;k>=this.V.length&&(k=this.V.length-1);h.q=this.V[k];-1===h.q.j.indexOf(h)&&h.q.j.push(h);h.q.jg=!0}if(!b)for(a=0,f=this.V.length;a<f;++a)this.V[a].j.sort(n);R(r);this.iu();a=0;for(f=this.V.length;a<f;a++)h=this.V[a],h.qu(),h.Al();e=!1;if(!this.xg){for(m in this.ff)if(this.ff.hasOwnProperty(m)&&(d=this.b.Zj(parseInt(m,10)))&&!d.O&&this.b.no(d)){g=this.ff[m];
a=0;for(f=g.length;a<f;a++){h=null;if(d.Ga.Xe&&(h=this.Yj(g[a].w.l),!h))continue;h=this.b.Pe(d.Tc,h,!1,0,0,!0);this.b.rk(h,g[a]);e=!0;r.push(h)}R(g)}a=0;for(f=this.V.length;a<f;a++)this.V[a].j.sort(n),this.V[a].jg=!0}e&&(this.b.Ib(),this.b.kr());for(a=0;a<r.length;a++)if(h=r[a],h.type.hc)for(f=h.Nh(),d=0,g=h.type.qc.length;d<g;d++)m=h.type.qc[d],h.type!==m&&(m.j.length>f?h.siblings.push(m.j[f]):m.Tc&&(e=this.b.Pe(m.Tc,h.q,!0,h.x,h.y,!0),this.b.Ib(),m.yl(),h.siblings.push(e),r.push(e)));a=0;for(f=
this.We.length;a<f;a++)h=this.We[a],d=this.b.B[h[1]],d.hc||this.b.Pe(this.We[a],null,!0);this.b.vh=null;this.b.Ib();if(this.b.Ja&&!this.b.La)for(a=0,f=this.b.B.length;a<f;a++)m=this.b.B[a],!m.O&&m.j.length&&m.En&&m.En(this.b.Ja);if(this.b.Vh)Ca(this.b.Qj,r);else for(a=0,f=r.length;a<f;a++)h=r[a],this.b.trigger(Object.getPrototypeOf(h.type.Ga).k.hj,h);R(r);this.b.Vh||this.b.trigger(V.prototype.k.Eo,null);this.xg=!1};e.prototype.pu=function(){var a,d,b,g,f;d=a=0;for(b=this.We.length;a<b;a++)g=this.We[a],
f=this.b.B[g[1]],f.global?f.hc||this.b.Pe(g,null,!0):(this.We[d]=g,d++);Ba(this.We,d)};e.prototype.Jx=function(){this.b.Vh||this.b.trigger(V.prototype.k.$s,null);this.b.Pm=!0;R(this.b.Ud.nc);var a,d,f,g,e,h;if(!this.xg)for(a=0,d=this.V.length;a<d;a++)for(this.V[a].ro(),e=this.V[a].j,f=0,g=e.length;f<g;f++)h=e[f],h.type.global||this.b.no(h.type)&&this.wx(h);a=0;for(d=this.V.length;a<d;a++){e=this.V[a].j;f=0;for(g=e.length;f<g;f++)h=e[f],h.type.global||this.b.of(h);this.b.Ib();R(e);this.V[a].jg=!0}a=
0;for(d=this.b.B.length;a<d;a++)if(e=this.b.B[a],!(e.global||e.Ga.Xe||e.Ga.kl||e.O)){f=0;for(g=e.j.length;f<g;f++)this.b.of(e.j[f]);this.b.Ib()}b=!1;this.b.Pm=!1};new wa(0,0,0,0);e.prototype.Gd=function(a){var d,b=a,g=!1,f=!this.b.Hc;f&&(this.b.pk||(this.b.pk=document.createElement("canvas"),d=this.b.pk,d.width=this.b.N,d.height=this.b.M,this.b.fq=d.getContext("2d"),g=!0),d=this.b.pk,b=this.b.fq,d.width!==this.b.N&&(d.width=this.b.N,g=!0),d.height!==this.b.M&&(d.height=this.b.M,g=!0),g&&this.b.dl(b,
this.b.Na));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.fp&&!this.Hp()&&b.clearRect(0,0,this.b.N,this.b.M);var e,h,g=0;for(e=this.V.length;g<e;g++)h=this.V[g],h.visible&&0<h.opacity&&11!==h.Jb&&(h.j.length||!h.Ad)?h.Gd(b):h.Al();f&&a.drawImage(d,0,0,this.b.width,this.b.height)};e.prototype.wf=function(a){a.rr(!0);this.b.$a||(this.b.$a=a.Gc(this.b.N,this.b.M,this.b.Na));if(this.b.$a.sf!==this.b.N||this.b.$a.rf!==this.b.M)a.deleteTexture(this.b.$a),this.b.$a=a.Gc(this.b.N,this.b.M,
this.b.Na);a.cd(this.b.$a);this.b.Hc||a.dg(this.b.N,this.b.M);var d,b;for(d=this.V.length-1;0<=d;--d)b=this.V[d],b.visible&&1===b.opacity&&b.ue&&0===b.Jb&&(b.j.length||!b.Ad)?b.wf(a):b.Al();a.rr(!1)};e.prototype.rc=function(a){var d=0<this.qa.length||this.b.jh||!this.b.Hc||this.b.Fa;if(d){this.b.$a||(this.b.$a=a.Gc(this.b.N,this.b.M,this.b.Na));if(this.b.$a.sf!==this.b.N||this.b.$a.rf!==this.b.M)a.deleteTexture(this.b.$a),this.b.$a=a.Gc(this.b.N,this.b.M,this.b.Na);a.cd(this.b.$a);this.b.Hc||a.dg(this.b.N,
this.b.M)}else this.b.$a&&(a.cd(null),a.deleteTexture(this.b.$a),this.b.$a=null);this.b.fp&&!this.Hp()&&a.clear(0,0,0,0);var b,g,f;b=0;for(g=this.V.length;b<g;b++)f=this.V[b],f.visible&&0<f.opacity&&(f.j.length||!f.Ad)?f.rc(a):f.Al();d&&(0===this.qa.length||1===this.qa.length&&this.b.Hc?(1===this.qa.length?(d=this.qa[0].index,a.mc(this.qa[0].cb),a.ah(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.n,0,0,this.b.N/2,this.b.M/2,this.b.ib.ba,this.Sa[d]),a.Sk(this.qa[0].cb)&&(this.b.ya=!0)):a.mc(0),
this.b.Hc||a.dg(this.b.width,this.b.height),a.cd(null),a.qr(!1),a.bg(1),a.Dc(this.b.$a),a.or(),a.bd(),a.Pc(),d=this.b.width/2,b=this.b.height/2,a.Ii(-d,b,d,b,d,-b,-d,-b),a.Dc(null),a.qr(!0)):this.Ln(a,null,null,null))};e.prototype.Lh=function(){return 0<this.qa.length||this.b.jh||!this.b.Hc||this.b.Fa?this.b.$a:null};e.prototype.Ep=function(){var a=this.V[0].uc(),d,b,g;d=1;for(b=this.V.length;d<b;d++)g=this.V[d],(0!==g.Zc||0!==g.$c)&&g.uc()<a&&(a=g.uc());return a};e.prototype.Sn=function(a){if(!this.Ur){var d=
1/this.Ep()*this.b.N/2;a>this.width-d&&(a=this.width-d);a<d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.ya=!0)};e.prototype.Tn=function(a){if(!this.Ur){var d=1/this.Ep()*this.b.M/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.b.ya=!0)};e.prototype.iu=function(){this.Sn(this.scrollX);this.Tn(this.scrollY)};e.prototype.Ln=function(a,d,b,g){var f=b?b.qa:d?d.qa:this.qa,e=1,h=0,k=0,p=0,u=this.b.N,m=this.b.M;b?(e=b.q.uc(),h=b.q.fb(),k=b.q.za,p=b.q.Aa,u=b.q.Ca,
m=b.q.Ba):d&&(e=d.uc(),h=d.fb(),k=d.za,p=d.Aa,u=d.Ca,m=d.Ba);var n=this.b.qm,q,r,t,D,O=0,Q=1,ea,U,G=this.b.N,E=this.b.M,aa=G/2,ia=E/2,J=d?d.gf:this.gf,y=d?d.Kn:this.Kn,v=0,F=0,B=0,I=0,N=G,sa=G,M=E,ba=E,fa=t=0;D=b?b.q.fb():0;if(b){q=0;for(r=f.length;q<r;q++)t+=a.Pv(f[q].cb),fa+=a.Qv(f[q].cb);I=b.W;v=d.Ma(I.left,I.top,!0,!0);B=d.Ma(I.left,I.top,!1,!0);N=d.Ma(I.right,I.bottom,!0,!0);M=d.Ma(I.right,I.bottom,!1,!0);0!==D&&(q=d.Ma(I.right,I.top,!0,!0),r=d.Ma(I.right,I.top,!1,!0),F=d.Ma(I.left,I.bottom,
!0,!0),I=d.Ma(I.left,I.bottom,!1,!0),D=Math.min(v,N,q,F),N=Math.max(v,N,q,F),v=D,D=Math.min(B,M,r,I),M=Math.max(B,M,r,I),B=D);v-=t;B-=fa;N+=t;M+=fa;y.left=v/G;y.top=1-B/E;y.right=N/G;y.bottom=1-M/E;F=v=K(v);I=B=K(B);sa=N=ua(N);ba=M=ua(M);F-=t;I-=fa;sa+=t;ba+=fa;0>v&&(v=0);0>B&&(B=0);N>G&&(N=G);M>E&&(M=E);0>F&&(F=0);0>I&&(I=0);sa>G&&(sa=G);ba>E&&(ba=E);J.left=v/G;J.top=1-B/E;J.right=N/G;J.bottom=1-M/E}else J.left=y.left=0,J.top=y.top=0,J.right=y.right=1,J.bottom=y.bottom=1;fa=b&&(a.Fi(f[0].cb)||0!==
t||0!==fa||1!==b.opacity||b.type.Ga.Dq)||d&&!b&&1!==d.opacity;a.or();if(fa){n[O]||(n[O]=a.Gc(G,E,this.b.Na));if(n[O].sf!==G||n[O].rf!==E)a.deleteTexture(n[O]),n[O]=a.Gc(G,E,this.b.Na);a.mc(0);a.cd(n[O]);U=ba-I;a.clearRect(F,E-I-U,sa-F,U);b?b.rc(a):(a.Dc(this.b.jb),a.bg(d.opacity),a.bd(),a.translate(-aa,-ia),a.Pc(),a.Rd(v,M,N,M,N,B,v,B,J));y.left=y.top=0;y.right=y.bottom=1;b&&(D=J.top,J.top=J.bottom,J.bottom=D);O=1;Q=0}a.bg(1);t=f.length-1;var xa=a.Gn(f[t].cb)||!d&&!b&&!this.b.Hc;q=D=0;for(r=f.length;q<
r;q++){n[O]||(n[O]=a.Gc(G,E,this.b.Na));if(n[O].sf!==G||n[O].rf!==E)a.deleteTexture(n[O]),n[O]=a.Gc(G,E,this.b.Na);a.mc(f[q].cb);D=f[q].index;a.Sk(f[q].cb)&&(this.b.ya=!0);0!=q||fa?(a.ah(g,1/G,1/E,y.left,y.top,y.right,y.bottom,e,h,k,p,(k+u)/2,(p+m)/2,this.b.ib.ba,b?b.Sa[D]:d?d.Sa[D]:this.Sa[D]),a.Dc(null),q!==t||xa?(a.cd(n[O]),U=ba-I,ea=E-I-U,a.clearRect(F,ea,sa-F,U)):(b?a.kf(b.Tb,b.Pb):d&&a.kf(d.Tb,d.Pb),a.cd(g)),a.Dc(n[Q]),a.bd(),a.translate(-aa,-ia),a.Pc(),a.Rd(v,M,N,M,N,B,v,B,J),q!==t||xa||a.Dc(null)):
(a.cd(n[O]),U=ba-I,ea=E-I-U,a.clearRect(F,ea,sa-F,U),b?(b.Ab&&b.Ab.ca?(ea=b.Ab.ca,Q=1/ea.width,ea=1/ea.height):(Q=1/b.width,ea=1/b.height),a.ah(g,Q,ea,y.left,y.top,y.right,y.bottom,e,h,k,p,(k+u)/2,(p+m)/2,this.b.ib.ba,b.Sa[D]),b.rc(a)):(a.ah(g,1/G,1/E,0,0,1,1,e,h,k,p,(k+u)/2,(p+m)/2,this.b.ib.ba,d?d.Sa[D]:this.Sa[D]),a.Dc(d?this.b.jb:this.b.$a),a.bd(),a.translate(-aa,-ia),a.Pc(),a.Rd(v,M,N,M,N,B,v,B,J)),y.left=y.top=0,y.right=y.bottom=1,b&&!xa&&(D=M,M=B,B=D));O=0===O?1:0;Q=0===O?1:0}xa&&(a.mc(0),
b?a.kf(b.Tb,b.Pb):d?a.kf(d.Tb,d.Pb):this.b.Hc||(a.dg(this.b.width,this.b.height),aa=this.b.width/2,ia=this.b.height/2,B=v=0,N=this.b.width,M=this.b.height),a.cd(g),a.Dc(n[Q]),a.bd(),a.translate(-aa,-ia),a.Pc(),b&&1===f.length&&!fa?a.Rd(v,B,N,B,N,M,v,M,J):a.Rd(v,M,N,M,N,B,v,B,J),a.Dc(null))};e.prototype.Yj=function(a){var d,b;d=0;for(b=this.V.length;d<b;d++)if(this.V[d].da===a)return this.V[d];return null};e.prototype.yb=function(){var a,d,b,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,
w:this.width,h:this.height,fv:this.xg,persist:this.ff,fx:[],layers:{}};a=0;for(d=this.U.length;a<d;a++)b=this.U[a],g.fx.push({name:b.name,active:b.rb,params:this.Sa[b.index]});a=0;for(d=this.V.length;a<d;a++)b=this.V[a],g.layers[b.da.toString()]=b.yb();return g};e.prototype.Sb=function(a){var b,f,g,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.ff=a.persist;"undefined"!==typeof a.fv&&(this.xg=a.fv);var h=a.fx;b=0;for(f=h.length;b<f;b++)if(g=this.wm(h[b].name))g.rb=
h[b].active,this.Sa[g.index]=h[b].params;this.Bd();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.Yj(parseInt(e,10)))&&a.Sb(b[e])};Kb=e;q.prototype.Bd=function(){R(this.qa);this.ue=!0;var a,b,f;a=0;for(b=this.U.length;a<b;a++)f=this.U[a],f.rb&&(this.qa.push(f),f.vd||(this.ue=!1))};q.prototype.wm=function(a){var b,f,g;b=0;for(f=this.U.length;b<f;b++)if(g=this.U[b],g.name===a)return g;return null};q.prototype.qu=function(){var a,b,f,g,e,h;b=a=0;for(f=this.Jc.length;a<f;a++){g=this.Jc[a];e=this.b.B[g[1]];
h=this.b.no(e);e=!0;if(!h||this.kb.xg){g=this.b.Pe(g,this,!0);if(!g)continue;r.push(g);g.type.global&&(e=!1,this.zh.push(g.uid))}e&&(this.Jc[b]=this.Jc[a],b++)}this.Jc.length=b;this.b.Ib();!this.b.F&&this.U.length&&(this.Jb=this.Pu);this.wh=hb(this.Jb);this.b.G&&ib(this,this.Jb,this.b.G);this.yd=!0};q.prototype.Zg=function(a,b){var f=Fa(this.j,a);0>f||(b&&this.Qc&&a.jc&&a.jc.right>=a.jc.left&&(a.Z(),this.Hb.update(a,a.jc,null),a.jc.set(0,0,-1,-1)),f===this.j.length-1?this.j.pop():(Aa(this.j,f),this.Oi(f)),
this.yd=!0)};q.prototype.rh=function(a,b){a.Cd=this.j.length;this.j.push(a);b&&this.Qc&&a.jc&&a.A();this.yd=!0};q.prototype.Zw=function(a){this.j.unshift(a);this.Oi(0)};q.prototype.Iw=function(a,b,f){var g=a.Jd();b=b.Jd();Aa(this.j,g);g<b&&b--;f&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.Oi(g<b?g:b)};q.prototype.Oi=function(a){-1===this.Ee?this.Ee=a:a<this.Ee&&(this.Ee=a);this.yd=this.jg=!0};q.prototype.ro=function(){if(this.jg){-1===this.Ee&&(this.Ee=0);var a,b,f;if(this.Qc)for(a=
this.Ee,b=this.j.length;a<b;++a)f=this.j[a],f.Cd=a,this.Hb.Fw(f.jc);else for(a=this.Ee,b=this.j.length;a<b;++a)this.j[a].Cd=a;this.jg=!1;this.Ee=-1}};q.prototype.uc=function(a){return this.Mv()*(this.b.Hc||a?this.b.sh:1)};q.prototype.Mv=function(){return(this.scale*this.kb.scale-1)*this.Dd+1};q.prototype.fb=function(){return this.ee?0:La(this.kb.n+this.n)};var a=[],f=[],t=[];q.prototype.Bm=function(){this.ro();this.Hb.Wk(this.za,this.Aa,this.Ca,this.Ba,t);if(!t.length)return m();if(1===t.length){var a=
m();Ca(a,t[0]);R(t);return a}for(var b=!0;1<t.length;){for(var a=t,e=void 0,g=void 0,n=void 0,q=void 0,r=void 0,e=0,g=a.length;e<g-1;e+=2){var n=a[e],q=a[e+1],r=m(),k=n,p=q,u=r,L=0,C=0,S=0,P=k.length,w=p.length,D=void 0,O=void 0;for(u.length=P+w;L<P&&C<w;++S)D=k[L],O=p[C],D.Cd<O.Cd?(u[S]=D,++L):(u[S]=O,++C);for(;L<P;++L,++S)u[S]=k[L];for(;C<w;++C,++S)u[S]=p[C];b||(h(n),h(q));f.push(r)}1===g%2&&(b?(n=m(),Ca(n,a[g-1]),f.push(n)):f.push(a[g-1]));Ca(a,f);R(f);b=!1}a=t[0];R(t);return a};q.prototype.Gd=
function(a){this.Sd=this.Uj||1!==this.opacity||0!==this.Jb;var b=this.b.canvas,f=a,g=!1;this.Sd&&(this.b.ok||(this.b.ok=document.createElement("canvas"),b=this.b.ok,b.width=this.b.N,b.height=this.b.M,this.b.dq=b.getContext("2d"),g=!0),b=this.b.ok,f=this.b.dq,b.width!==this.b.N&&(b.width=this.b.N,g=!0),b.height!==this.b.M&&(b.height=this.b.M,g=!0),g&&this.b.dl(f,this.b.Na),this.Ad&&f.clearRect(0,0,this.b.N,this.b.M));f.globalAlpha=1;f.globalCompositeOperation="source-over";this.Ad||(f.fillStyle="rgb("+
this.md[0]+","+this.md[1]+","+this.md[2]+")",f.fillRect(0,0,this.b.N,this.b.M));f.save();this.ee=!0;var g=this.zb(0,0,!0,!0),e=this.zb(0,0,!1,!0);this.ee=!1;this.b.ud&&(g=Math.round(g),e=Math.round(e));this.Zk(g,e,f);var m=this.uc();f.scale(m,m);f.translate(-g,-e);this.Qc?(this.Bb.left=this.Hb.$b(this.za),this.Bb.top=this.Hb.ac(this.Aa),this.Bb.right=this.Hb.$b(this.Ca),this.Bb.bottom=this.Hb.ac(this.Ba),this.yd||!this.Bb.Ch(this.Ng)?(h(this.ne),g=this.Bm(),this.yd=!1,this.Ng.xh(this.Bb)):g=this.ne):
g=this.j;for(var n,k=null,e=0,m=g.length;e<m;++e)n=g[e],n!==k&&(this.Ku(n,f),k=n);this.Qc&&(this.ne=g);f.restore();this.Sd&&(a.globalCompositeOperation=this.wh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};q.prototype.Ku=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Z();var f=a.W;f.right<this.za||f.bottom<this.Aa||f.left>this.Ca||f.top>this.Ba||(b.globalCompositeOperation=a.wh,a.Gd(b))}};q.prototype.Al=function(){this.ee=!0;var a=this.zb(0,0,!0,!0),b=this.zb(0,0,!1,!0);this.ee=!1;this.b.ud&&
(a=Math.round(a),b=Math.round(b));this.Zk(a,b,null)};q.prototype.Zk=function(a,b,f){var g=this.uc();this.za=a;this.Aa=b;this.Ca=a+1/g*this.b.N;this.Ba=b+1/g*this.b.M;this.za>this.Ca&&(a=this.za,this.za=this.Ca,this.Ca=a);this.Aa>this.Ba&&(a=this.Aa,this.Aa=this.Ba,this.Ba=a);a=this.fb();0!==a&&(f&&(f.translate(this.b.N/2,this.b.M/2),f.rotate(-a),f.translate(this.b.N/-2,this.b.M/-2)),this.ye.set(this.za,this.Aa,this.Ca,this.Ba),this.ye.offset((this.za+this.Ca)/-2,(this.Aa+this.Ba)/-2),this.Qr.yr(this.ye,
a),this.Qr.Zo(this.ye),this.ye.offset((this.za+this.Ca)/2,(this.Aa+this.Ba)/2),this.za=this.ye.left,this.Aa=this.ye.top,this.Ca=this.ye.right,this.Ba=this.ye.bottom)};q.prototype.wf=function(a){if(this.Sd=this.Uj){this.b.jb||(this.b.jb=a.Gc(this.b.N,this.b.M,this.b.Na));if(this.b.jb.sf!==this.b.N||this.b.jb.rf!==this.b.M)a.deleteTexture(this.b.jb),this.b.jb=a.Gc(this.b.N,this.b.M,this.b.Na);a.cd(this.b.jb)}this.ee=!0;var b=this.zb(0,0,!0,!0),f=this.zb(0,0,!1,!0);this.ee=!1;this.b.ud&&(b=Math.round(b),
f=Math.round(f));this.Zk(b,f,null);b=this.uc();a.bd();a.scale(b,b);a.$k(-this.fb());a.translate((this.za+this.Ca)/-2,(this.Aa+this.Ba)/-2);a.Pc();this.Qc?(this.Bb.left=this.Hb.$b(this.za),this.Bb.top=this.Hb.ac(this.Aa),this.Bb.right=this.Hb.$b(this.Ca),this.Bb.bottom=this.Hb.ac(this.Ba),this.yd||!this.Bb.Ch(this.Ng)?(h(this.ne),b=this.Bm(),this.yd=!1,this.Ng.xh(this.Bb)):b=this.ne):b=this.j;for(var g,e=null,f=b.length-1;0<=f;--f)g=b[f],g!==e&&(this.Mu(b[f],a),e=g);this.Qc&&(this.ne=b);this.Ad||(this.Zl=
this.b.zf++,a.el(this.Zl),a.pr(1,1,1),a.xp(),a.kx())};q.prototype.rc=function(a){var b=0,f=0;if(this.Sd=this.Uj||1!==this.opacity||0<this.qa.length||0!==this.Jb){this.b.jb||(this.b.jb=a.Gc(this.b.N,this.b.M,this.b.Na));if(this.b.jb.sf!==this.b.N||this.b.jb.rf!==this.b.M)a.deleteTexture(this.b.jb),this.b.jb=a.Gc(this.b.N,this.b.M,this.b.Na);a.cd(this.b.jb);this.Ad&&a.clear(0,0,0,0)}this.Ad||(this.b.Fa?(a.el(this.Zl),a.pr(this.md[0]/255,this.md[1]/255,this.md[2]/255),a.xp(),a.Ex()):a.clear(this.md[0]/
255,this.md[1]/255,this.md[2]/255,1));this.ee=!0;var g=this.zb(0,0,!0,!0),b=this.zb(0,0,!1,!0);this.ee=!1;this.b.ud&&(g=Math.round(g),b=Math.round(b));this.Zk(g,b,null);g=this.uc();a.bd();a.scale(g,g);a.$k(-this.fb());a.translate((this.za+this.Ca)/-2,(this.Aa+this.Ba)/-2);a.Pc();this.Qc?(this.Bb.left=this.Hb.$b(this.za),this.Bb.top=this.Hb.ac(this.Aa),this.Bb.right=this.Hb.$b(this.Ca),this.Bb.bottom=this.Hb.ac(this.Ba),this.yd||!this.Bb.Ch(this.Ng)?(h(this.ne),b=this.Bm(),this.yd=!1,this.Ng.xh(this.Bb)):
b=this.ne):b=this.j;var e,m,n=null,f=0;for(e=b.length;f<e;++f)m=b[f],m!==n&&(this.Lu(b[f],a),n=m);this.Qc&&(this.ne=b);this.Sd&&(b=this.qa.length?this.qa[0].cb:0,f=this.qa.length?this.qa[0].index:0,0===this.qa.length||1===this.qa.length&&!a.Gn(b)&&1===this.opacity?(1===this.qa.length?(a.mc(b),a.ah(this.kb.Lh(),1/this.b.N,1/this.b.M,0,0,1,1,g,this.fb(),this.za,this.Aa,(this.za+this.Ca)/2,(this.Aa+this.Ba)/2,this.b.ib.ba,this.Sa[f]),a.Sk(b)&&(this.b.ya=!0)):a.mc(0),a.cd(this.kb.Lh()),a.bg(this.opacity),
a.Dc(this.b.jb),a.kf(this.Tb,this.Pb),a.bd(),a.Pc(),g=this.b.N/2,b=this.b.M/2,a.Ii(-g,b,g,b,g,-b,-g,-b),a.Dc(null)):this.kb.Ln(a,this,null,this.kb.Lh()))};q.prototype.Lu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Z();var f=a.W;f.right<this.za||f.bottom<this.Aa||f.left>this.Ca||f.top>this.Ba||(b.el(a.zf),a.as?this.Nu(a,b):(b.mc(0),b.kf(a.Tb,a.Pb),a.rc(b)))}};q.prototype.Mu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Z();var f=a.W;f.right<this.za||f.bottom<this.Aa||f.left>
this.Ca||f.top>this.Ba||(a.zf=this.b.zf++,0===a.Jb&&1===a.opacity&&a.ue&&a.wf&&(b.el(a.zf),a.wf(b)))}};q.prototype.Nu=function(a,b){var f=a.qa[0].cb,g=a.qa[0].index,e=this.uc();if(1!==a.qa.length||b.Gn(f)||b.ax(f)||(a.n||a.q.fb())&&b.Fi(f)||1!==a.opacity||a.type.Ga.Dq)this.kb.Ln(b,this,a,this.Sd?this.b.jb:this.kb.Lh()),b.bd(),b.scale(e,e),b.$k(-this.fb()),b.translate((this.za+this.Ca)/-2,(this.Aa+this.Ba)/-2),b.Pc();else{b.mc(f);b.kf(a.Tb,a.Pb);b.Sk(f)&&(this.b.ya=!0);var h=0,m=0,k=0,p=0;b.Fi(f)&&
(p=a.W,h=this.Ma(p.left,p.top,!0,!0),m=this.Ma(p.left,p.top,!1,!0),k=this.Ma(p.right,p.bottom,!0,!0),p=this.Ma(p.right,p.bottom,!1,!0),h=h/windowWidth,m=1-m/windowHeight,k=k/windowWidth,p=1-p/windowHeight);var u;a.Ab&&a.Ab.ca?(u=a.Ab.ca,f=1/u.width,u=1/u.height):(f=1/a.width,u=1/a.height);b.ah(this.Sd?this.b.jb:this.kb.Lh(),f,u,h,m,k,p,e,this.fb(),this.za,this.Aa,(this.za+this.Ca)/2,(this.Aa+this.Ba)/2,this.b.ib.ba,a.Sa[g]);a.rc(b)}};q.prototype.zb=function(a,b,f,g){var e=this.b.devicePixelRatio;
this.b.Lf&&(a*=e,b*=e);var e=this.b.Zq,h=this.b.$q,e=(this.kb.scrollX-e)*this.Zc+e,h=(this.kb.scrollY-h)*this.$c+h,m=e,k=h,p=1/this.uc(!g);g?(m-=this.b.N*p/2,k-=this.b.M*p/2):(m-=this.b.width*p/2,k-=this.b.height*p/2);m+=a*p;k+=b*p;b=this.fb();0!==b&&(m-=e,k-=h,a=Math.cos(b),b=Math.sin(b),g=m*a-k*b,k=k*a+m*b,m=g+e,k+=h);return f?m:k};q.prototype.Ma=function(a,b,f,g){var e=this.b.Zq,h=this.b.$q,m=(this.kb.scrollX-e)*this.Zc+e,k=(this.kb.scrollY-h)*this.$c+h,h=m,e=k,p=this.fb();if(0!==p){a-=m;b-=k;
var u=Math.cos(-p),p=Math.sin(-p),n=a*u-b*p;b=b*u+a*p;a=n+m;b+=k}m=1/this.uc(!g);g?(h-=this.b.N*m/2,e-=this.b.M*m/2):(h-=this.b.width*m/2,e-=this.b.height*m/2);h=(a-h)/m;e=(b-e)/m;a=this.b.devicePixelRatio;this.b.Lf&&!g&&(h/=a,e/=a);return f?h:e};q.prototype.yb=function(){var a,b,f,g={s:this.scale,a:this.n,vl:this.za,vt:this.Aa,vr:this.Ca,vb:this.Ba,v:this.visible,bc:this.md,t:this.Ad,px:this.Zc,py:this.$c,o:this.opacity,zr:this.Dd,fx:[],cg:this.zh,instances:[]};a=0;for(b=this.U.length;a<b;a++)f=
this.U[a],g.fx.push({name:f.name,active:f.rb,params:this.Sa[f.index]});return g};q.prototype.Sb=function(a){var b,f,g;this.scale=a.s;this.n=a.a;this.za=a.vl;this.Aa=a.vt;this.Ca=a.vr;this.Ba=a.vb;this.visible=a.v;this.md=a.bc;this.Ad=a.t;this.Zc=a.px;this.$c=a.py;this.opacity=a.o;this.Dd=a.zr;this.zh=a.cg||[];Ca(this.Jc,this.Ir);var e=new da;b=0;for(g=this.zh.length;b<g;++b)e.add(this.zh[b]);f=b=0;for(g=this.Jc.length;b<g;++b)e.contains(this.Jc[b][2])||(this.Jc[f]=this.Jc[b],++f);Ba(this.Jc,f);f=
a.fx;b=0;for(g=f.length;b<g;b++)if(a=this.wm(f[b].name))a.rb=f[b].active,this.Sa[a.index]=f[b].params;this.Bd();this.j.sort(n);this.jg=!0};Yb=q})();
(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 n(a,b){return a.index-b.index}function q(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);f=x[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],e(a,d))return d;f.push(a);return a}
function m(a,b){this.b=a;this.Sr={};this.sp={};this.Gm=!1;this.Kp=new da;this.fm=[];this.Ol=[];this.name=b[0];var c=b[1];this.Se=[];var d,f;d=0;for(f=c.length;d<f;d++)this.Mp(c[d],null,this.Se)}function h(a){this.type=a;this.j=[];this.fa=[];this.xa=!0}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.lf=[];this.Ip=this.tl=this.io=this.ck=this.group=this.Gr=!1;this.tb=[];this.hd=[];this.dd=[];this.Oh="";this.Ff=this.ck=this.group=!1;this.Aj=null;c[1]&&(this.Oh=c[1][1].toLowerCase(),
this.group=!0,this.ck=!!c[1][0],this.Aj=[],this.Ff=this.ck,this.b.Ie.push(this),this.b.Ag[this.Oh]=this);this.Xc=c[2];this.da=c[4];this.group||(this.b.Yo[this.da.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Zb(this,d[a]);f.index=a;this.tb.push(f);this.Qo(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new $b(this,d[a]),f.index=a,this.hd.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Mp(c[a],this,this.dd);this.kk=!1;this.tb.length&&(this.kk=null==this.tb[0].type&&
this.tb[0].Cb==V.prototype.k.yo)}function b(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.hc))for(c=0,d=a.qc.length;c<d;c++)f=a.qc[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.Fc=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.Ua=[];this.J={};this.index=-1;this.ph=!1;this.Cb=this.b.Fe(b[1]);this.trigger=0<b[3];this.rp=2===b[3];this.Md=b[4];this.Nm=b[5];this.Cw=b[6];this.da=b[7];this.b.Ne[this.da.toString()]=this;-1===b[0]?(this.type=null,this.bb=this.Pn,this.qf=null,this.nd=-1):
(this.type=this.b.B[b[0]],this.bb=this.Cw?this.ux:this.On,b[2]?(this.qf=this.type.Xj(b[2]),this.nd=this.type.um(b[2])):(this.qf=null,this.nd=-1),this.Fc.parent&&this.Fc.parent.gl());this.rp&&(this.bb=this.vx);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var g=new ac(this,f[c]);this.Y.push(g)}this.Ua.length=f.length}}function f(a,b){this.Fc=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.Ua=[];this.J={};this.index=-1;this.ph=!1;this.Cb=this.b.Fe(b[1]);-1===b[0]?(this.type=null,this.bb=
this.Pn,this.qf=null,this.nd=-1):(this.type=this.b.B[b[0]],this.bb=this.On,b[2]?(this.qf=this.type.Xj(b[2]),this.nd=this.type.um(b[2])):(this.qf=null,this.nd=-1));this.da=b[3];this.b.He[this.da.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var g=new ac(this,f[c]);this.Y.push(g)}this.Ua.length=f.length}}function t(){A++;H.length===A&&H.push(new bc);return H[A]}function c(a,b){this.Yc=a;this.Fc=a.Fc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Hd=null;this.ve=0;this.get=
null;this.gp=0;this.kb=null;this.key=0;this.object=null;this.index=0;this.bj=this.fg=this.bj=this.fg=this.vp=this.Bf=this.cj=null;this.fd=!1;var c,d,f;switch(b[0]){case 0:case 7:this.Hd=new cc(this,b[1]);this.ve=0;this.get=this.Wv;break;case 1:this.Hd=new cc(this,b[1]);this.ve=0;this.get=this.Xv;break;case 5:this.Hd=new cc(this,b[1]);this.ve=0;this.get=this.aw;break;case 3:case 8:this.gp=b[1];this.get=this.Uv;break;case 6:this.kb=this.b.an[b[1]];this.get=this.bw;break;case 9:this.key=b[1];this.get=
this.$v;break;case 4:this.object=this.b.B[b[1]];this.get=this.cw;this.Fc.Qo(this.object);this.Yc instanceof $b?this.Fc.gl():this.Fc.parent&&this.Fc.parent.gl();break;case 10:this.index=b[1];a.type&&a.type.O?(this.get=this.Yv,this.fd=!0):this.get=this.Zv;break;case 11:this.cj=b[1];this.Bf=null;this.get=this.Vv;break;case 2:case 12:this.vp=b[1];this.get=this.Tv;break;case 13:for(this.get=this.dw,this.fg=[],this.bj=[],c=1,d=b.length;c<d;c++)f=new ac(this.Yc,b[c]),this.fg.push(f),this.bj.push(0)}}function d(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.name=c[1];this.Cl=c[2];this.Km=c[3];this.ai=!!c[4];this.jk=!!c[5];this.da=c[6];this.b.lh[this.da.toString()]=this;this.data=this.Km;this.parent?(this.Uf=this.ai||this.jk?-1:this.b.Hx++,this.b.bu.push(this)):(this.Uf=-1,this.b.au.push(this))}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.Qh=null;this.jw=c[1];this.rb=!0}function g(){this.Kr=[];this.reset(null)}var x=[];m.prototype.toString=function(){return this.name};
m.prototype.Mp=function(a,b,c){switch(a[0]){case 0:a=new dc(this,b,a);if(a.Xc)for(c.push(a),c=0,b=a.tb.length;c<b;c++)a.tb[c].trigger&&this.Np(a,c);else a.Xp()?this.Np(a,0):c.push(a);break;case 1:a=new Vb(this,b,a);c.push(a);break;case 2:a=new ec(this,b,a),c.push(a)}};m.prototype.Ya=function(){var a,b;a=0;for(b=this.Se.length;a<b;a++)this.Se[a].Ya(a<b-1&&this.Se[a+1].kk)};m.prototype.po=function(){R(this.fm);R(this.Ol);this.Po(this);R(this.Ol)};m.prototype.Po=function(a){var b,c,d,f,g=a.fm,e=a.Ol,
h=this.Kp.Ae();b=0;for(c=h.length;b<c;++b)d=h[b],f=d.Qh,!d.rb||a===f||-1<e.indexOf(f)||(e.push(f),f.Po(a),g.push(f))};m.prototype.bb=function(a){this.b.sz||(this.Gm=!0,a||(this.b.Sm=!0));var b,c;b=0;for(c=this.Se.length;b<c;b++){var d=this.Se[b];d.bb();this.b.Yl(d.Da);this.b.Ve&&this.b.Ib()}a||(this.b.Sm=!1)};m.prototype.Np=function(a,b){a.Xc||this.b.xl.push(a);var c,d,f=a.tb[b],g;f.type?g=f.type.name:g="system";var e=(c=f.rp)?this.sp:this.Sr;e[g]||(e[g]=[]);g=e[g];e=f.Cb;if(c){if(f.Y.length&&(f=
f.Y[0],1===f.type&&2===f.Hd.type)){f=f.Hd.value.toLowerCase();c=0;for(d=g.length;c<d;c++)if(g[c].method==e){c=g[c].Dh;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];g.push({method:e,Dh:c})}}else{c=0;for(d=g.length;c<d;c++)if(g[c].method==e){g[c].Dh.push([a,b]);return}W&&e===W.prototype.k.mg?g.unshift({method:e,Dh:[[a,b]]}):g.push({method:e,Dh:[[a,b]]})}};Lb=m;h.prototype.Fm=function(){return this.xa?this.type.j.length:this.j.length};h.prototype.tc=function(){return this.xa?this.type.j:
this.j};h.prototype.Di=function(a){a&&(a.b.Db().cc.Xc?(this.xa&&(R(this.j),Ca(this.fa,a.type.j),this.xa=!1),a=this.fa.indexOf(a),-1!==a&&(this.j.push(this.fa[a]),this.fa.splice(a,1))):(this.xa=!1,R(this.j),this.j[0]=a))};qb=h;window._c2hh_="A0F5913C1E5061A64AA827FA27F303D26B835574";r.prototype.Ya=function(a){var b,c=this.parent;if(this.group)for(this.tl=!0;c;){if(!c.group){this.tl=!1;break}c=c.parent}this.io=!this.Xp()&&(!this.parent||this.parent.group&&this.parent.tl);this.Ip=!!a;this.lf=this.Da.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Da.length;a<b;a++)this.Zt(c.Da[a]);c=c.parent}this.Da=q(this.Da);this.lf=q(this.lf);a=0;for(b=this.tb.length;a<b;a++)this.tb[a].Ya();a=0;for(b=this.hd.length;a<b;a++)this.hd[a].Ya();a=0;for(b=this.dd.length;a<b;a++)this.dd[a].Ya(a<b-1&&this.dd[a+1].kk)};r.prototype.Mi=function(a){if(this.Ff!==!!a){this.Ff=!!a;var b;a=0;for(b=this.Aj.length;a<b;++a)this.Aj[a].Wr();0<b&&this.b.ra.Af&&this.b.ra.Af.po()}};r.prototype.Qo=function(a){b(a,this.Da)};r.prototype.Zt=function(a){b(a,
this.lf)};r.prototype.gl=function(){this.Gr=!0;this.parent&&this.parent.gl()};r.prototype.Xp=function(){return this.tb.length?this.tb[0].trigger:!1};r.prototype.bb=function(){var a,b,c=!1,d=this.b,f=this.b.Db();f.cc=this;var g=this.tb;this.kk||(f.hm=!1);if(this.Xc){0===g.length&&(c=!0);f.sb=0;for(a=g.length;f.sb<a;f.sb++)b=g[f.sb],b.trigger||(b=b.bb())&&(c=!0);(f.Of=c)&&this.al()}else{f.sb=0;for(a=g.length;f.sb<a;f.sb++)if(b=g[f.sb].bb(),!b){f.Of=!1;this.io&&d.Ve&&d.Ib();return}f.Of=!0;this.al()}this.Ru(f)};
r.prototype.Ru=function(a){a.Of&&this.Ip&&(a.hm=!0);this.io&&this.b.Ve&&this.b.Ib()};r.prototype.rx=function(a){this.b.Db().cc=this;this.tb[a].bb()&&(this.al(),this.b.Db().Of=!0)};r.prototype.al=function(){var a=this.b.Db(),b;a.oc=0;for(b=this.hd.length;a.oc<b;a.oc++)if(this.hd[a.oc].bb())return;this.nr()};r.prototype.nx=function(){var a=this.b.Db(),b;for(b=this.hd.length;a.oc<b;a.oc++)if(this.hd[a.oc].bb())return;this.nr()};r.prototype.nr=function(){if(this.dd.length){var a,b,c,d,f=this.dd.length-
1;this.b.Uk(this);if(this.Gr)for(a=0,b=this.dd.length;a<b;a++)c=this.dd[a],(d=!this.tl||!this.group&&a<f)&&this.b.Tk(c.Da),c.bb(),d?this.b.$f(c.Da):this.b.Yl(c.Da);else for(a=0,b=this.dd.length;a<b;a++)this.dd[a].bb();this.b.Pk()}};r.prototype.tx=function(){var a=this.b.Db();a.cc=this;var b=!1,c;a.sb=0;for(c=this.tb.length;a.sb<c;a.sb++)if(this.tb[a.sb].bb())b=!0;else if(!this.Xc)return!1;return this.Xc?b:!0};r.prototype.ox=function(){this.b.Eh++;var a=this.b.Db().sb,b=this.b.Uk(this);if(!this.Xc)for(b.sb=
a+1,a=this.tb.length;b.sb<a;b.sb++)if(!this.tb[b.sb].bb()){this.b.Pk();return}this.al();this.b.Pk()};r.prototype.uw=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.tb[b].type===a.type)return!1;return!0};dc=r;a.prototype.Ya=function(){var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Ya(),c.fd&&(this.ph=!0)};a.prototype.vx=function(){return!0};a.prototype.Pn=function(){var a,b;a=0;for(b=this.Y.length;a<b;a++)this.Ua[a]=this.Y[a].get();return Wa(this.Cb.apply(this.b.Ud,this.Ua),
this.Nm)};a.prototype.ux=function(){var a,b;a=0;for(b=this.Y.length;a<b;a++)this.Ua[a]=this.Y[a].get();a=this.Cb.apply(this.qf?this.qf:this.type,this.Ua);this.type.Rc();return a};a.prototype.On=function(){var a,b,c,d,f,g,e,h,l=this.type,m=l.ja(),n=this.Fc.Xc&&!this.trigger;b=0;var q=l.hc,r=l.O,t=l.ge,x=this.nd,H=-1<x,A=this.ph,J=this.Y,y=this.Ua,v=this.Nm,F=this.Cb,B;if(A)for(b=0,f=J.length;b<f;++b)g=J[b],g.fd||(y[b]=g.get(0));else for(b=0,f=J.length;b<f;++b)y[b]=J[b].get(0);if(m.xa){R(m.j);R(m.fa);
B=l.j;a=0;for(d=B.length;a<d;++a){h=B[a];if(A)for(b=0,f=J.length;b<f;++b)g=J[b],g.fd&&(y[b]=g.get(a));H?(b=0,r&&(b=h.type.wg[t]),b=F.apply(h.P[x+b],y)):b=F.apply(h,y);(e=Wa(b,v))?m.j.push(h):n&&m.fa.push(h)}l.finish&&l.finish(!0);m.xa=!1;l.Rc();return m.Fm()}c=0;B=(e=n&&!this.Fc.uw(this))?m.fa:m.j;var I=!1;a=0;for(d=B.length;a<d;++a){h=B[a];if(A)for(b=0,f=J.length;b<f;++b)g=J[b],g.fd&&(y[b]=g.get(a));H?(b=0,r&&(b=h.type.wg[t]),b=F.apply(h.P[x+b],y)):b=F.apply(h,y);if(Wa(b,v))if(I=!0,e){if(m.j.push(h),
q)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().j.push(g)}else{B[c]=h;if(q)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().j[c]=g;c++}else if(e){B[c]=h;if(q)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().fa[c]=g;c++}else if(n&&(m.fa.push(h),q))for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().fa.push(g)}Ba(B,c);if(q)for(r=l.qc,a=0,d=r.length;a<d;a++)h=r[a].ja(),e?Ba(h.fa,c):Ba(h.j,c);c=I;if(e&&!I)for(a=0,d=m.j.length;a<d;a++){h=m.j[a];
if(A)for(b=0,f=J.length;b<f;b++)g=J[b],g.fd&&(y[b]=g.get(a));b=H?F.apply(h.P[x],y):F.apply(h,y);if(Wa(b,v)){I=!0;break}}l.finish&&l.finish(c||n);return n?I:m.Fm()};Zb=a;f.prototype.Ya=function(){var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Ya(),c.fd&&(this.ph=!0)};f.prototype.Pn=function(){var a=this.b,b,c,d=this.Y,f=this.Ua;b=0;for(c=d.length;b<c;++b)f[b]=d[b].get();return this.Cb.apply(a.Ud,f)};f.prototype.On=function(){var a=this.type,b=this.nd,c=a.ge,d=this.ph,f=this.Y,g=this.Ua,e=
this.Cb,h=a.ja().tc(),a=a.O,l=-1<b,m,n,q,r,t,x;if(d)for(n=0,r=f.length;n<r;++n)t=f[n],t.fd||(g[n]=t.get(0));else for(n=0,r=f.length;n<r;++n)g[n]=f[n].get(0);m=0;for(q=h.length;m<q;++m){x=h[m];if(d)for(n=0,r=f.length;n<r;++n)t=f[n],t.fd&&(g[n]=t.get(m));l?(n=0,a&&(n=x.type.wg[c]),e.apply(x.P[b+n],g)):e.apply(x,g)}return!1};$b=f;var H=[],A=-1;c.prototype.Ya=function(){var a,b;if(11===this.type)this.Bf=this.b.Bp(this.cj,this.Fc.parent);else if(13===this.type)for(a=0,b=this.fg.length;a<b;a++)this.fg[a].Ya();
this.Hd&&this.Hd.Ya()};c.prototype.Hw=function(a){this.fd||!a||a.Ga.kl||(this.fd=!0)};c.prototype.ur=function(){this.fd=!0};c.prototype.Wv=function(a){this.ve=a||0;a=t();this.Hd.get(a);A--;return a.data};c.prototype.Xv=function(a){this.ve=a||0;a=t();this.Hd.get(a);A--;return z(a.data)?a.data:""};c.prototype.cw=function(){return this.object};c.prototype.Uv=function(){return this.gp};c.prototype.aw=function(a){this.ve=a||0;a=t();this.Hd.get(a);A--;return a.ub()?this.b.Kh(a.data):this.b.zm(a.data)};
c.prototype.bw=function(){return this.kb};c.prototype.$v=function(){return this.key};c.prototype.Zv=function(){return this.index};c.prototype.Yv=function(a){a=a||0;var b=this.Yc.type,c=null,c=b.ja(),d=c.tc();if(d.length)c=d[a%d.length].type;else if(c.fa.length)c=c.fa[a%c.fa.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.Nj[b.ge]};c.prototype.Vv=function(){return this.Bf};c.prototype.Tv=function(){return this.vp};c.prototype.dw=function(){var a,b;a=0;for(b=
this.fg.length;a<b;a++)this.bj[a]=this.fg[a].get();return this.bj};ac=c;d.prototype.Ya=function(){this.Da=q(this.Da)};d.prototype.eg=function(a){var b=this.b.Ap();this.parent&&!this.ai&&b?(this.Uf>=b.length&&(b.length=this.Uf+1),b[this.Uf]=a):this.data=a};d.prototype.Mh=function(){var a=this.b.Ap();return!this.parent||this.ai||!a||this.jk?this.data:this.Uf>=a.length||"undefined"===typeof a[this.Uf]?this.Km:a[this.Uf]};d.prototype.bb=function(){!this.parent||this.ai||this.jk||this.eg(this.Km)};Vb=
d;l.prototype.toString=function(){return"include:"+this.Qh.toString()};l.prototype.Ya=function(){this.Qh=this.b.km[this.jw];this.sheet.Kp.add(this);this.Da=q(this.Da);for(var a=this.parent;a;)a.group&&a.Aj.push(this),a=a.parent;this.Wr()};l.prototype.bb=function(){this.parent&&this.b.Hi(this.b.B);this.Qh.Gm||this.Qh.bb(!0);this.parent&&this.b.$f(this.b.B)};l.prototype.Wr=function(){for(var a=this.parent;a;){if(a.group&&!a.Ff){this.rb=!1;return}a=a.parent}this.rb=!0};ec=l;g.prototype.reset=function(a){this.cc=
a;this.oc=this.sb=0;R(this.Kr);this.hm=this.Of=!1};Ub=g})();
(function(){function e(b,a){this.Yc=b;this.b=b.b;this.type=a[0];this.get=[this.lv,this.gv,this.vv,this.yv,this.Uu,this.wv,this.qv,this.bv,this.pv,this.uv,this.Vu,this.tv,this.cv,this.rv,this.nv,this.ov,this.hv,this.jv,this.av,this.xv,this.sv,this.kv,this.$u,this.dv][this.type];var f=null;this.oe=this.Y=this.Ua=this.Cb=this.sl=this.second=this.first=this.value=null;this.nd=-1;this.qd=null;this.bs=-1;this.Bf=this.cj=null;this.$g=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new cc(b,a[1]);break;case 18:this.first=new cc(b,a[1]);this.second=new cc(b,a[2]);this.sl=new cc(b,a[3]);break;case 19:this.Cb=this.b.Fe(a[1]);this.Cb!==V.prototype.Ta.random&&this.Cb!==V.prototype.Ta.ep||this.Yc.ur();this.Ua=[];this.Y=[];3===a.length?(f=a[2],this.Ua.length=f.length+1):this.Ua.length=1;break;case 20:this.oe=this.b.B[a[1]];this.nd=-1;this.Cb=this.b.Fe(a[2]);this.$g=a[3];hc.Function&&this.Cb===hc.Function.prototype.Ta.ey&&this.Yc.ur();a[4]?this.qd=new cc(b,a[4]):this.qd=null;this.Ua=
[];this.Y=[];6===a.length?(f=a[5],this.Ua.length=f.length+1):this.Ua.length=1;break;case 21:this.oe=this.b.B[a[1]];this.$g=a[2];a[3]?this.qd=new cc(b,a[3]):this.qd=null;this.bs=a[4];break;case 22:this.oe=this.b.B[a[1]];this.oe.Xj(a[2]);this.nd=this.oe.um(a[2]);this.Cb=this.b.Fe(a[3]);this.$g=a[4];a[5]?this.qd=new cc(b,a[5]):this.qd=null;this.Ua=[];this.Y=[];7===a.length?(f=a[6],this.Ua.length=f.length+1):this.Ua.length=1;break;case 23:this.cj=a[1],this.Bf=null}this.Yc.Hw(this.oe);4<=this.type&&17>=
this.type&&(this.first=new cc(b,a[1]),this.second=new cc(b,a[2]));if(f){var e,c;e=0;for(c=f.length;e<c;e++)this.Y.push(new cc(b,f[e]))}}function n(){++r;h.length===r&&h.push(new bc);return h[r]}function q(b,a,f){var e,c;e=0;for(c=b.length;e<c;++e)b[e].get(f),a[e+1]=f.data}function m(b,a){this.type=b||fc.lg;this.data=a||0;this.Xf=null;this.type==fc.lg&&(this.data=Math.floor(this.data))}e.prototype.Ya=function(){23===this.type&&(this.Bf=this.Yc.b.Bp(this.cj,this.Yc.Fc.parent));this.first&&this.first.Ya();
this.second&&this.second.Ya();this.sl&&this.sl.Ya();this.qd&&this.qd.Ya();if(this.Y){var b,a;b=0;for(a=this.Y.length;b<a;b++)this.Y[b].Ya()}};var h=[],r=-1;e.prototype.xv=function(b){var a=this.Y,f=this.Ua;f[0]=b;b=n();q(a,f,b);--r;this.Cb.apply(this.b.Ud,f)};e.prototype.sv=function(b){var a=this.oe,f=this.Ua,e=this.Y,c=this.qd,d=this.Cb,h=this.Yc.ve,g=a.ja(),m=g.tc();if(!m.length)if(g.fa.length)m=g.fa;else{this.$g?b.Ec(""):b.Ha(0);return}f[0]=b;b.Xf=a;b=n();q(e,f,b);c&&(c.get(b),b.ub()&&(h=b.data,
m=a.j));--r;a=m.length;if(h>=a||h<=-a)h%=a;0>h&&(h+=a);d.apply(m[h],f)};e.prototype.$u=function(b){var a=this.oe,f=this.Ua,e=this.Y,c=this.qd,d=this.nd,h=this.Cb,g=this.Yc.ve,m=a.ja(),H=m.tc();if(!H.length)if(m.fa.length)H=m.fa;else{this.$g?b.Ec(""):b.Ha(0);return}f[0]=b;b.Xf=a;b=n();q(e,f,b);c&&(c.get(b),b.ub()&&(g=b.data,H=a.j));--r;e=H.length;if(g>=e||g<=-e)g%=e;0>g&&(g+=e);g=H[g];H=0;a.O&&(H=g.type.wg[a.ge]);h.apply(g.P[d+H],f)};e.prototype.kv=function(b){var a=this.qd,f=this.oe,e=this.bs,c=this.Yc.ve,
d=f.ja(),h=d.tc();if(!h.length)if(d.fa.length)h=d.fa;else{this.$g?b.Ec(""):b.Ha(0);return}if(a){d=n();a.get(d);if(d.ub()){c=d.data;h=f.j;0!==h.length&&(c%=h.length,0>c&&(c+=h.length));c=f.ym(c);f=c.hb[e];z(f)?b.Ec(f):b.K(f);--r;return}--r}a=h.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=h[c];h=0;f.O&&(h=c.type.Nj[f.ge]);f=c.hb[e+h];z(f)?b.Ec(f):b.K(f)};e.prototype.lv=function(b){b.type=fc.lg;b.data=this.value};e.prototype.gv=function(b){b.type=fc.kg;b.data=this.value};e.prototype.vv=function(b){b.type=
fc.String;b.data=this.value};e.prototype.yv=function(b){this.first.get(b);b.ub()&&(b.data=-b.data)};e.prototype.Uu=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data+=a.data,a.Eg()&&b.Pg());--r};e.prototype.wv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data-=a.data,a.Eg()&&b.Pg());--r};e.prototype.qv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data*=a.data,a.Eg()&&b.Pg());--r};e.prototype.bv=function(b){this.first.get(b);
var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data/=a.data,b.Pg());--r};e.prototype.pv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data%=a.data,a.Eg()&&b.Pg());--r};e.prototype.uv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data=Math.pow(b.data,a.data),a.Eg()&&b.Pg());--r};e.prototype.Vu=function(b){this.first.get(b);var a=n();this.second.get(a);a.Hg()||b.Hg()?this.Xu(b,a):this.Wu(b,a);--r};e.prototype.Xu=function(b,a){b.Hg()&&
a.Hg()?this.Zu(b,a):this.Yu(b,a)};e.prototype.Zu=function(b,a){b.data+=a.data};e.prototype.Yu=function(b,a){b.Hg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Ec(b.data.toString()+a.data)};e.prototype.Wu=function(b,a){b.Ha(b.data&&a.data?1:0)};e.prototype.tv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data||a.data?b.Ha(1):b.Ha(0));--r};e.prototype.av=function(b){this.first.get(b);b.data?this.second.get(b):this.sl.get(b)};e.prototype.cv=function(b){this.first.get(b);
var a=n();this.second.get(a);b.Ha(b.data===a.data?1:0);--r};e.prototype.rv=function(b){this.first.get(b);var a=n();this.second.get(a);b.Ha(b.data!==a.data?1:0);--r};e.prototype.nv=function(b){this.first.get(b);var a=n();this.second.get(a);b.Ha(b.data<a.data?1:0);--r};e.prototype.ov=function(b){this.first.get(b);var a=n();this.second.get(a);b.Ha(b.data<=a.data?1:0);--r};e.prototype.hv=function(b){this.first.get(b);var a=n();this.second.get(a);b.Ha(b.data>a.data?1:0);--r};e.prototype.jv=function(b){this.first.get(b);
var a=n();this.second.get(a);b.Ha(b.data>=a.data?1:0);--r};e.prototype.dv=function(b){var a=this.Bf.Mh();la(a)?b.K(a):b.Ec(a)};cc=e;m.prototype.Eg=function(){return this.type===fc.kg};m.prototype.ub=function(){return this.type===fc.lg||this.type===fc.kg};m.prototype.Hg=function(){return this.type===fc.String};m.prototype.Pg=function(){this.Eg()||(this.Hg()&&(this.data=parseFloat(this.data)),this.type=fc.kg)};m.prototype.Ha=function(b){this.type=fc.lg;this.data=Math.floor(b)};m.prototype.K=function(b){this.type=
fc.kg;this.data=b};m.prototype.Ec=function(b){this.type=fc.String;this.data=b};m.prototype.Fx=function(b){la(b)?(this.type=fc.kg,this.data=b):z(b)?(this.type=fc.String,this.data=b.toString()):(this.type=fc.lg,this.data=0)};bc=m;fc={lg:0,kg:1,String:2}})();function V(e){this.b=e;this.nc=[]}
V.prototype.yb=function(){var e={},n,q,m,h,r,b,a,f;e.waits=[];var t=e.waits,c;n=0;for(q=this.nc.length;n<q;n++){b=this.nc[n];c={t:b.time,st:b.Er,s:b.Zn,ev:b.ug.da,sm:[],sols:{}};b.ug.hd[b.oc]&&(c.act=b.ug.hd[b.oc].da);m=0;for(h=b.Da.length;m<h;m++)c.sm.push(b.Da[m].da);for(r in b.Yb)if(b.Yb.hasOwnProperty(r)){a=this.b.B[parseInt(r,10)];f={sa:b.Yb[r].bl,insts:[]};m=0;for(h=b.Yb[r].ie.length;m<h;m++)f.insts.push(b.Yb[r].ie[m].uid);c.sols[a.da.toString()]=f}t.push(c)}return e};
V.prototype.Sb=function(e){e=e.waits;var n,q,m,h,r,b,a,f,t,c,d;R(this.nc);n=0;for(q=e.length;n<q;n++)if(b=e[n],f=this.b.Yo[b.ev.toString()]){t=-1;m=0;for(h=f.hd.length;m<h;m++)if(f.hd[m].da===b.act){t=m;break}if(-1!==t){a={Yb:{},Da:[],gm:!1};a.time=b.t;a.Er=b.st||"";a.Zn=!!b.s;a.ug=f;a.oc=t;m=0;for(h=b.sm.length;m<h;m++)(f=this.b.Zj(b.sm[m]))&&a.Da.push(f);for(r in b.sols)if(b.sols.hasOwnProperty(r)&&(f=this.b.Zj(parseInt(r,10)))){t=b.sols[r];c={bl:t.sa,ie:[]};m=0;for(h=t.insts.length;m<h;m++)(d=
this.b.Ef(t.insts[m]))&&c.ie.push(d);a.Yb[f.index.toString()]=c}this.nc.push(a)}}};
(function(){function e(){}function n(){}function q(){}var m=V.prototype;e.prototype.Eo=function(){return!0};e.prototype.$s=function(){return!0};e.prototype.vs=function(b){var a=this.b.vm(),f=a.J.Every_lastTime||0,e=this.b.ib.ba;"undefined"===typeof a.J.Every_seconds&&(a.J.Every_seconds=b);var c=a.J.Every_seconds;if(e>=f+c)return a.J.Every_lastTime=f+c,e>=a.J.Every_lastTime+.04&&(a.J.Every_lastTime=e),a.J.Every_seconds=b,!0;e<f-.1&&(a.J.Every_lastTime=e);return!1};e.prototype.qs=function(b,a,f){return gc(b.Mh(),
a,f)};e.prototype.Es=function(b){return(b=this.b.Ag[b.toLowerCase()])&&b.Ff};e.prototype.Fs=function(){return this.b.le};e.prototype.yo=function(){var b=this.b.Db();return b.hm?!1:!b.Of};e.prototype.Fo=function(){return!0};e.prototype.Qs=function(){return!0};e.prototype.Kl=function(){return!0};e.prototype.Jo=function(){return!0};e.prototype.bt=function(){return!0};e.prototype.jj=function(){return!0};e.prototype.hs=function(b,a,f){return Pa(T(b),T(f))<=T(a)};e.prototype.Cs=function(b,a){return Ra(T(b),
T(a))};e.prototype.Bs=function(b,a,f){b=Na(b);a=Na(a);f=Na(f);return Ra(f,a)?Ra(b,a)&&!Ra(b,f):!(!Ra(b,a)&&Ra(b,f))};m.k=new e;n.prototype.ts=function(b,a,f,e){if(a&&b&&(a=this.b.ip(b,a,f,e))){this.b.rd++;var c;this.b.trigger(Object.getPrototypeOf(b.Ga).k.hj,a);if(a.hc)for(f=0,e=a.siblings.length;f<e;f++)c=a.siblings[f],this.b.trigger(Object.getPrototypeOf(c.type.Ga).k.hj,c);this.b.rd--;b=b.ja();b.xa=!1;R(b.j);b.j[0]=a;if(a.hc)for(f=0,e=a.siblings.length;f<e;f++)c=a.siblings[f],b=c.type.ja(),b.xa=
!1,R(b.j),b.j[0]=c}};n.prototype.Dt=function(b,a){b&&b.visible!==a&&(b.visible=a,this.b.ya=!0)};n.prototype.It=function(b,a){0===b.Cl?la(a)?b.eg(a):b.eg(parseFloat(a)):1===b.Cl&&b.eg(a.toString())};n.prototype.gs=function(b,a){0===b.Cl?la(a)?b.eg(b.Mh()+a):b.eg(b.Mh()+parseFloat(a)):1===b.Cl&&b.eg(b.Mh()+a.toString())};n.prototype.Bt=function(b,a){var f=this.b.Ag[b.toLowerCase()];if(f)switch(a){case 0:f.Mi(!1);break;case 1:f.Mi(!0);break;case 2:f.Mi(!f.Ff)}};var h=[],r=[];n.prototype.Pt=function(b){if(!(0>
b)){var a,f,e,c=this.b.Db(),d;h.length?d=h.pop():d={Yb:{},Da:[]};d.gm=!1;d.time=this.b.ib.ba+b;d.Er="";d.Zn=!1;d.ug=c.cc;d.oc=c.oc+1;b=0;for(a=this.b.B.length;b<a;b++)e=this.b.B[b],f=e.ja(),f.xa&&-1===c.cc.Da.indexOf(e)||(d.Da.push(e),e=void 0,r.length?e=r.pop():e={ie:[]},e.bl=!1,e.bl=f.xa,Ca(e.ie,f.j),d.Yb[b.toString()]=e);this.nc.push(d);return!0}};n.prototype.ut=function(){if(!this.b.bi&&!this.b.vh&&this.b.ra){this.b.vh=this.b.ra;var b,a,f;b=0;for(a=this.b.Ie.length;b<a;b++)f=this.b.Ie[b],f.Mi(f.ck)}};
m.I=new n;q.prototype["int"]=function(b,a){z(a)?(b.Ha(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.Ha(a)};q.prototype["float"]=function(b,a){z(a)?(b.K(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.K(a)};q.prototype.random=function(b,a,f){void 0===f?b.K(Math.random()*a):b.K(Math.random()*(f-a)+a)};q.prototype.sqrt=function(b,a){b.K(Math.sqrt(a))};q.prototype.abs=function(b,a){b.K(Math.abs(a))};q.prototype.round=function(b,a){b.Ha(Math.round(a))};q.prototype.floor=function(b,a){b.Ha(Math.floor(a))};q.prototype.ceil=
function(b,a){b.Ha(Math.ceil(a))};q.prototype.sin=function(b,a){b.K(Math.sin(T(a)))};q.prototype.cos=function(b,a){b.K(Math.cos(T(a)))};q.prototype.tan=function(b,a){b.K(Math.tan(T(a)))};q.prototype.asin=function(b,a){b.K(Ia(Math.asin(a)))};q.prototype.acos=function(b,a){b.K(Ia(Math.acos(a)))};q.prototype.atan=function(b,a){b.K(Ia(Math.atan(a)))};q.prototype.exp=function(b,a){b.K(Math.exp(a))};q.prototype.log10=function(b,a){b.K(Math.log(a)/Math.LN10)};q.prototype.max=function(b){var a=arguments[1];
"number"!==typeof a&&(a=0);var f,e,c;f=2;for(e=arguments.length;f<e;f++)c=arguments[f],"number"===typeof c&&a<c&&(a=c);b.K(a)};q.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var f,e,c;f=2;for(e=arguments.length;f<e;f++)c=arguments[f],"number"===typeof c&&a>c&&(a=c);b.K(a)};q.prototype.xf=function(b){b.K(this.b.xf)};q.prototype.ig=function(b){b.K(this.b.ig)};q.prototype.time=function(b){b.K(this.b.ib.ba)};q.prototype.Vd=function(b){b.Ha(this.b.Vd)};q.prototype.Fk=function(b){b.Ha(this.b.Fk)};
q.prototype.pm=function(b){b.Ha(this.b.pm)};q.prototype.n=function(b,a,f,e,c){b.K(Ia(Oa(a,f,e,c)))};q.prototype.yx=function(b){b.K(this.b.ra.scrollX)};q.prototype.zx=function(b){b.K(this.b.ra.scrollY)};q.prototype.left=function(b,a,f){b.Ec(z(a)?a.substr(0,f):"")};q.prototype.right=function(b,a,f){b.Ec(z(a)?a.substr(a.length-f):"")};q.prototype.replace=function(b,a,f,e){z(a)&&z(f)&&z(e)?b.Ec(a.replace(new RegExp(db(f),"gi"),e)):b.Ec(z(a)?a:"")};q.prototype.trim=function(b,a){b.Ec(z(a)?a.trim():"")};
q.prototype.ep=function(b){var a=K(Math.random()*(arguments.length-1));b.Fx(arguments[a+1])};q.prototype.$l=function(b){b.K(this.b.$l/1E3)};q.prototype.uk=function(b){b.K(this.b.uk)};m.Ta=new q;m.qx=function(){var b,a,f,e,c,d,m=this.b.Db();b=0;for(f=this.nc.length;b<f;b++){e=this.nc[b];if(-1===e.time){if(!e.Zn)continue}else if(e.time>this.b.ib.ba)continue;m.cc=e.ug;m.oc=e.oc;m.sb=0;for(a in e.Yb)e.Yb.hasOwnProperty(a)&&(c=this.b.B[parseInt(a,10)].ja(),d=e.Yb[a],c.xa=d.bl,Ca(c.j,d.ie),c=d,R(c.ie),
r.push(c));e.ug.nx();this.b.Yl(e.Da);e.gm=!0}a=b=0;for(f=this.nc.length;b<f;b++)e=this.nc[b],this.nc[a]=e,e.gm?(Ya(e.Yb),R(e.Da),h.push(e)):a++;Ba(this.nc,a)}})();
(function(){pb=function(e,q){var m=e[1],h=e[3],r=e[4],b=e[5],a=e[6],f=e[7],t=e[8];q.k||(q.k={});q.I||(q.I={});q.Ta||(q.Ta={});var c=q.k,d=q.I,l=q.Ta;h&&(c.rs=function(a,b){return gc(this.x,a,b)},c.iy=function(a,b){return gc(this.y,a,b)},c.Hs=function(){var a=this.q;this.Z();var b=this.W;return!(b.right<a.za||b.bottom<a.Aa||b.left>a.Ca||b.top>a.Ba)},c.qy=function(){this.Z();var a=this.W,b=this.b.ra;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.By=function(a,b,c){var d=this.ja(),f=
d.tc();if(!f.length)return!1;var e=f[0],h=e,m=Va(e.x,e.y,b,c),l,n,q;l=1;for(n=f.length;l<n;l++)if(e=f[l],q=Va(e.x,e.y,b,c),0===a&&q<m||1===a&&q>m)m=q,h=e;d.Di(h);return!0},d.Sy=function(a){this.x!==a&&(this.x=a,this.A())},d.Ty=function(a){this.y!==a&&(this.y=a,this.A())},d.Ft=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.A()},d.Py=function(a,b){var c=a.Nv(this);if(c){var d;c.Jh?(d=c.Jh(b,!0),c=c.Jh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.A()}},d.vy=function(a){0!==
a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.A())},d.uy=function(a,b){0!==b&&(this.x+=Math.cos(T(a))*b,this.y+=Math.sin(T(a))*b,this.A())},l.St=function(a){a.K(this.x)},l.Tt=function(a){a.K(this.y)},l.xf=function(a){a.K(this.b.Ih(this))});r&&(c.hy=function(a,b){return gc(this.width,a,b)},c.fy=function(a,b){return gc(this.height,a,b)},d.Jt=function(a){this.width!==a&&(this.width=a,this.A())},d.Ny=function(a){this.height!==a&&(this.height=a,this.A())},d.Qy=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.A()},l.Xy=function(a){a.K(this.width)},l.ky=function(a){a.K(this.height)},l.ay=function(a){this.Z();a.K(this.W.left)},l.cy=function(a){this.Z();a.K(this.W.top)},l.by=function(a){this.Z();a.K(this.W.right)},l.$x=function(a){this.Z();a.K(this.W.bottom)});b&&(c.hs=function(a,b){return Pa(this.n,T(b))<=T(a)},c.Cs=function(a){return Ra(this.n,T(a))},c.Bs=function(a,b){var c=Na(a),d=Na(b),f=La(this.n);return Ra(d,c)?Ra(f,c)&&!Ra(f,d):!(!Ra(f,c)&&Ra(f,d))},
d.Jy=function(a){a=T(Ja(a));isNaN(a)||this.n===a||(this.n=a,this.A())},d.Fy=function(a){0===a||isNaN(a)||(this.n+=T(a),this.n=La(this.n),this.A())},d.Gy=function(a){0===a||isNaN(a)||(this.n-=T(a),this.n=La(this.n),this.A())},d.Hy=function(a,b){var c=Qa(this.n,T(b),T(a));isNaN(c)||this.n===c||(this.n=c,this.A())},d.Iy=function(a,b,c){a=Qa(this.n,Math.atan2(c-this.y,b-this.x),T(a));isNaN(a)||this.n===a||(this.n=a,this.A())},d.Ry=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||this.n===c||
(this.n=c,this.A())},l.Zx=function(a){a.K(Ma(this.n))});m||(c.os=function(a,b,c){return gc(this.hb[a],b,c)},c.ny=function(a){return this.hb[a]},c.Cy=function(a,b){var c=this.ja(),d=c.tc();if(!d.length)return!1;var f=d[0],e=f,h=f.hb[b],m,l,n;m=1;for(l=d.length;m<l;m++)if(f=d[m],n=f.hb[b],0===a&&n<h||1===a&&n>h)h=n,e=f;c.Di(e);return!0},c.Ay=function(a){var b,c,d,f,e;if(this.b.vm().Nm){e=this.ja();if(e.xa)for(e.xa=!1,R(e.j),R(e.fa),d=this.j,b=0,c=d.length;b<c;b++)f=d[b],f.uid===a?e.fa.push(f):e.j.push(f);
else{d=b=0;for(c=e.j.length;b<c;b++)f=e.j[b],e.j[d]=f,f.uid===a?e.fa.push(f):d++;Ba(e.j,d)}this.Rc();return!!e.j.length}f=this.b.Ef(a);if(!f)return!1;e=this.ja();if(!e.xa&&-1===e.j.indexOf(f))return!1;if(this.O)for(a=f.type.Ka,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.Di(f),this.Rc(),!0}else if(f.type===this)return e.Di(f),this.Rc(),!0;return!1},c.hj=function(){return!0},c.Ss=function(){return!0},d.Ct=function(a,b){var c=this.hb;la(c[a])?c[a]=la(b)?b:parseFloat(b):z(c[a])&&(c[a]=z(b)?b:b.toString())},
d.es=function(a,b){var c=this.hb;la(c[a])?c[a]=la(b)?c[a]+b:c[a]+parseFloat(b):z(c[a])&&(c[a]=z(b)?c[a]+b:c[a]+b.toString())},d.Uy=function(a,b){var c=this.hb;la(c[a])&&(c[a]=la(b)?c[a]-b:c[a]-parseFloat(b))},d.Ky=function(a,b){this.hb[a]=b?1:0},d.Vy=function(a){this.hb[a]=1-this.hb[a]},d.us=function(){this.b.of(this)},d.Ls||(d.Ls=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.rk(this,b,!0);this.jd&&this.jd();if(this.P)for(a=0,b=this.P.length;a<b;++a)c=this.P[a],c.jd&&c.jd()}),l.jy=
function(a){var b=a.Xf.j.length,c,d,f;c=0;for(d=this.b.od.length;c<d;c++)f=this.b.od[c],a.Xf.O?0<=f.type.Ka.indexOf(a.Xf)&&b++:f.type===a.Xf&&b++;a.Ha(b)},l.Ey=function(a){a.Ha(a.Xf.ja().tc().length)},l.Wy=function(a){a.Ha(this.uid)},l.my=function(a){a.Ha(this.Nh())},l.ks||(l.ks=function(a){a.Ec(JSON.stringify(this.b.Qn(this,!0)))}));a&&(c.Js=function(){return this.visible},d.Lo=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ya=!0)},c.gy=function(a,b){return gc(jb(100*this.opacity),a,b)},
d.Oy=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ya=!0)},l.Opacity=function(a){a.K(jb(100*this.opacity))});f&&(c.oy=function(a){return a?this.q===a:!1},c.Dy=function(a){var b=this.ja(),c=b.tc();if(!c.length)return!1;var d=c[0],f=d,e,h;e=1;for(h=c.length;e<h;e++)if(d=c[e],0===a){if(d.q.index>f.q.index||d.q.index===f.q.index&&d.Jd()>f.Jd())f=d}else if(d.q.index<f.q.index||d.q.index===f.q.index&&d.Jd()<f.Jd())f=d;b.Di(f);return!0},d.Ms=function(){var a=this.q,b=a.j;
b.length&&b[b.length-1]===this||(a.Zg(this,!1),a.rh(this,!1),this.b.ya=!0)},d.wy=function(){var a=this.q,b=a.j;b.length&&b[0]===this||(a.Zg(this,!1),a.Zw(this),this.b.ya=!0)},d.xy=function(a){a&&a!=this.q&&(this.q.Zg(this,!0),this.q=a,a.rh(this,!0),this.b.ya=!0)},d.Ut=function(a,b){var c=0===a;if(b){var d=b.Cp(this);d&&d.uid!==this.uid&&(this.q.index!==d.q.index&&(this.q.Zg(this,!0),this.q=d.q,d.q.rh(this,!0)),this.q.Iw(this,d,c),this.b.ya=!0)}},l.ty=function(a){a.Ha(this.q.Hq)},l.ry=function(a){a.Ec(this.q.name)},
l.Yy=function(a){a.Ha(this.Jd())});t&&(d.Ly=function(a,b){if(this.b.F){var c=this.type.xm(b);if(!(0>c)){var d=1===a;this.Ge[c]!==d&&(this.Ge[c]=d,this.Bd(),this.b.ya=!0)}}},d.My=function(a,b,c){if(this.b.F){var d=this.type.xm(a);0>d||(a=this.type.U[d],d=this.Sa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.F.Rv(a.cb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.rb&&(this.b.ya=!0))))}})};Mb=function(){this.Vl=this.Ql=!0;this.type.nj=!0;this.b.ya=!0;var e,q,m=this.Rl;e=0;for(q=m.length;e<q;++e)m[e](this);this.q.Qc&&
this.Z()};Nb=function(e){e&&this.Rl.push(e)};Pb=function(){if(this.Ql){var e=this.W,q=this.Xb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.fc*this.width,-this.gc*this.height);this.n?(e.offset(-this.x,-this.y),q.yr(e,this.n),q.offset(this.x,this.y),q.Zo(e)):q.Pi(e);e.normalize();this.Ql=!1;this.Sx()}};var e=new wa(0,0,0,0);Qb=function(){if(this.q.Qc){var n=this.q.Hb,q=this.W;e.set(n.$b(q.left),n.ac(q.top),n.$b(q.right),n.ac(q.bottom));this.jc.Ch(e)||(this.jc.right<this.jc.left?
n.update(this,null,e):n.update(this,this.jc,e),this.jc.xh(e),this.q.yd=!0)}};Rb=function(){if(this.Vl&&this.$d){this.Z();var n=this.type.zj,q=this.W;e.set(n.$b(q.left),n.ac(q.top),n.$b(q.right),n.ac(q.bottom));this.Oe.Ch(e)||(this.Oe.right<this.Oe.left?n.update(this,null,e):n.update(this,this.Oe,e),this.Oe.xh(e),this.Vl=!1)}};Ob=function(e,q){return this.W.Ob(e,q)&&this.Xb.Ob(e,q)?this.hh?this.uz(e,q):this.ua&&!this.ua.Dg()?(this.ua.qg(this.width,this.height,this.n),this.ua.Ob(e-this.x,q-this.y)):
!0:!1};Ib=function(){this.type.yl();return this.If};Sb=function(){this.q.ro();return this.Cd};Tb=function(){R(this.qa);var e,q,m,h=!0;e=0;for(q=this.Ge.length;e<q;e++)this.Ge[e]&&(m=this.type.U[e],this.qa.push(m),m.vd||(h=!1));this.as=!!this.qa.length;this.ue=h};Jb=function(){return"Inst"+this.ir};sb=function(e){if(e&&e.hc&&e.type!=this){var q,m,h;q=0;for(m=e.siblings.length;q<m;q++)if(h=e.siblings[q],h.type==this)return h}e=this.ja().tc();return e.length?e[0]:null};tb=function(e){var q=this.ja().tc();
return q.length?q[e.Nh()%q.length]:null};rb=function(){if(this.eh&&!this.O){var e,q;e=0;for(q=this.j.length;e<q;e++)this.j[e].If=e;var m=e,h=this.b.od;e=0;for(q=h.length;e<q;++e)h[e].type===this&&(h[e].If=m++);this.eh=!1}};Gb=function(e){if(e<this.j.length)return this.j[e];e-=this.j.length;var q=this.b.od,m,h;m=0;for(h=q.length;m<h;++m)if(q[m].type===this){if(0===e)return q[m];--e}return null};ub=function(){return this.we[this.Fd]};vb=function(){this.Fd++;this.Fd===this.we.length?this.we.push(new qb(this)):
(this.we[this.Fd].xa=!0,R(this.we[this.Fd].fa))};wb=function(){this.Fd++;this.Fd===this.we.length&&this.we.push(new qb(this));var e=this.we[this.Fd],q=this.we[this.Fd-1];q.xa?e.xa=!0:(e.xa=!1,Ca(e.j,q.j));R(e.fa)};xb=function(){this.Fd--};yb=function(e){var q,m,h,r,b,a=0;if(!this.O)for(q=0,m=this.Ka.length;q<m;q++)for(b=this.Ka[q],h=0,r=b.Ra.length;h<r;h++){if(e===b.Ra[h].name)return this.J.lastBehIndex=a,b.Ra[h];a++}q=0;for(m=this.Ra.length;q<m;q++){if(e===this.Ra[q].name)return this.J.lastBehIndex=
a,this.Ra[q];a++}return null};Db=function(e){return this.Xj(e)?this.J.lastBehIndex:-1};Eb=function(e){var q,m;q=0;for(m=this.U.length;q<m;q++)if(this.U[q].name===e)return q;return-1};Fb=function(){if(this.hc&&!this.O){var e,q,m,h,r,b,a;this.yl();b=this.ja();var f=b.xa,t=(e=this.b.Db())&&e.cc&&e.cc.Xc;e=0;for(q=this.qc.length;e<q;e++)if(r=this.qc[e],r!==this&&(r.yl(),a=r.ja(),a.xa=f,!f)){R(a.j);m=0;for(h=b.j.length;m<h;++m)a.j[m]=r.ym(b.j[m].If);if(t)for(R(a.fa),m=0,h=b.fa.length;m<h;++m)a.fa[m]=r.ym(b.fa[m].If)}}};
Hb=function(){return"Type"+this.da};gc=function(e,q,m){if("undefined"===typeof e||"undefined"===typeof m)return!1;switch(q){case 0:return e===m;case 1:return e!==m;case 2:return e<m;case 3:return e<=m;case 4:return e>m;case 5:return e>=m;default:return!1}}})();var pc={};function tc(e){this.b=e}
(function(){function e(a){-1===lb.indexOf(a)&&lb.push(a)}function n(a){var b=a.u,c;try{c=b.play()}catch(d){e(a);return}c?c.catch(function(){e(a)}):Ec&&!E.Lc&&e(a)}function q(){var a,b,c,d;Fc||Ab||!v||(m(),"running"===v.state&&(Fc=!0));var f=lb.slice(0);R(lb);if(!M)for(a=0,b=f.length;a<b;++a)c=f[a],c.lc||c.wc||(d=c.u.play())&&d.catch(function(){e(c)})}function m(){"suspended"===v.state&&v.resume&&v.resume();if(v.createBuffer){var a=v.createBuffer(1,220,22050),b=v.createBufferSource();b.buffer=a;b.connect(v.destination);
t(b)}}function h(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function r(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function b(a){a=a.toLowerCase();return X.hasOwnProperty(a)&&X[a].length?X[a][0].Ic():v.destination}function a(){return v.createGain?v.createGain():v.createGainNode()}function f(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function t(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function c(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||
0,b,c-b)}function d(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function l(b,c,d,f,e,g){this.type="filter";this.td=[b,c,d,f,e,g];this.la=a();this.T=a();this.T.gain.value=g;this.R=a();this.R.gain.value=1-g;this.Za=v.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?b:Ic[b];this.Za.frequency.value=c;this.Za.detune&&(this.Za.detune.value=d);this.Za.Q.value=f;this.Za.gain.value=e;this.la.connect(this.Za);this.la.connect(this.R);this.Za.connect(this.T)}function g(b,c,d){this.type="delay";
this.td=[b,c,d];this.la=a();this.T=a();this.T.gain.value=d;this.R=a();this.R.gain.value=1-d;this.ti=a();this.Uc=f(b);this.Uc.delayTime.value=b;this.Hj=a();this.Hj.gain.value=c;this.la.connect(this.ti);this.la.connect(this.R);this.ti.connect(this.T);this.ti.connect(this.Uc);this.Uc.connect(this.Hj);this.Hj.connect(this.ti)}function x(b,c,d,f){this.type="convolve";this.td=[c,d,f];this.la=a();this.T=a();this.T.gain.value=d;this.R=a();this.R.gain.value=1-d;this.tf=v.createConvolver();b&&(this.tf.normalize=
c,this.tf.buffer=b);this.la.connect(this.tf);this.la.connect(this.R);this.tf.connect(this.T)}function H(b,c,d,e,g){this.type="flanger";this.td=[b,c,d,e,g];this.la=a();this.R=a();this.R.gain.value=1-g/2;this.T=a();this.T.gain.value=g/2;this.Oj=a();this.Oj.gain.value=e;this.Uc=f(b+c);this.Uc.delayTime.value=b;this.xb=v.createOscillator();this.xb.frequency.value=d;this.Ac=a();this.Ac.gain.value=c;this.la.connect(this.Uc);this.la.connect(this.R);this.Uc.connect(this.T);this.Uc.connect(this.Oj);this.Oj.connect(this.Uc);
this.xb.connect(this.Ac);this.Ac.connect(this.Uc.delayTime);t(this.xb)}function A(b,c,d,f,e,g){this.type="phaser";this.td=[b,c,d,f,e,g];this.la=a();this.R=a();this.R.gain.value=1-g/2;this.T=a();this.T.gain.value=g/2;this.Za=v.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?7:"allpass";this.Za.frequency.value=b;this.Za.detune&&(this.Za.detune.value=c);this.Za.Q.value=d;this.xb=v.createOscillator();this.xb.frequency.value=e;this.Ac=a();this.Ac.gain.value=f;this.la.connect(this.Za);
this.la.connect(this.R);this.Za.connect(this.T);this.xb.connect(this.Ac);this.Ac.connect(this.Za.frequency);t(this.xb)}function k(b){this.type="gain";this.td=[b];this.na=a();this.na.gain.value=b}function p(b,c){this.type="tremolo";this.td=[b,c];this.na=a();this.na.gain.value=1-c/2;this.xb=v.createOscillator();this.xb.frequency.value=b;this.Ac=a();this.Ac.gain.value=c/2;this.xb.connect(this.Ac);this.Ac.connect(this.na.gain);t(this.xb)}function u(b,c){this.type="ringmod";this.td=[b,c];this.la=a();this.T=
a();this.T.gain.value=c;this.R=a();this.R.gain.value=1-c;this.Li=a();this.Li.gain.value=0;this.xb=v.createOscillator();this.xb.frequency.value=b;this.xb.connect(this.Li.gain);t(this.xb);this.la.connect(this.Li);this.la.connect(this.R);this.Li.connect(this.T)}function L(b,c,d,f,e){this.type="distortion";this.td=[b,c,d,f,e];this.la=a();this.Rk=a();this.Qk=a();this.Ax(d,Math.pow(10,f/20));this.T=a();this.T.gain.value=e;this.R=a();this.R.gain.value=1-e;this.El=v.createWaveShaper();this.Fj=new Float32Array(65536);
this.Fv(b,c);this.El.Fj=this.Fj;this.la.connect(this.Rk);this.la.connect(this.R);this.Rk.connect(this.El);this.El.connect(this.Qk);this.Qk.connect(this.T)}function C(a,b,c,d,f){this.type="compressor";this.td=[a,b,c,d,f];this.na=v.createDynamicsCompressor();try{this.na.threshold.value=a,this.na.knee.value=b,this.na.ratio.value=c,this.na.attack.value=d,this.na.release.value=f}catch(e){}}function S(a,b){this.type="analyser";this.td=[a,b];this.na=v.createAnalyser();this.na.fftSize=a;this.na.smoothingTimeConstant=
b;this.Dv=new Float32Array(this.na.frequencyBinCount);this.Cr=new Uint8Array(a);this.Ci=0}function P(){this.wa=null;this.tk=0}function w(b,c){this.src=b;this.aa=y;this.Ld=c;this.mj=!1;var d=this;this.Rg=this.Xg=null;this.Yg=[];this.cl=0;this.uo=this.Mj=this.Jr=this.Lk=!1;1===y&&c&&!mb&&(this.aa=0,this.Xg=a());this.Yd=this.ma=null;var f;switch(this.aa){case 0:this.ma=new Audio;this.ma.crossOrigin="anonymous";this.ma.addEventListener("canplaythrough",function(){d.uo=!0});1===y&&v.createMediaElementSource&&
!/wiiu/i.test(navigator.userAgent)&&(this.Jr=!0,this.ma.addEventListener("canplay",function(){!d.Rg&&d.ma&&(d.Rg=v.createMediaElementSource(d.ma),d.Rg.connect(d.Xg))}));this.ma.autoplay=!1;this.ma.nz="auto";this.ma.src=b;break;case 1:E.hk?E.up(b,function(a){d.Yd=a;d.lp()},function(){d.Mj=!0}):(f=new XMLHttpRequest,f.open("GET",b,!0),f.responseType="arraybuffer",f.onload=function(){d.Yd=f.response;d.lp()},f.onerror=function(){d.Mj=!0},f.send());break;case 2:this.ma=!0;break;case 3:this.ma=!0}}function D(c,
d){var f=this;this.tag=d;this.lc=this.Id=!0;this.src=c.src;this.buffer=c;this.aa=y;this.Ld=c.Ld;this.playbackRate=1;this.Bg=!0;this.wc=this.Oc=!1;this.kc=0;this.$h=this.Fg=this.Md=!1;this.volume=1;this.yn=function(a){if(!f.wc&&!f.Oc){var b=this;b||(b=a.target);b===f.kj&&(f.Bg=!0,f.lc=!0,ia=f.tag,E.trigger(tc.prototype.k.ij,aa))}};this.kj=null;this.Cg=1===sa&&!this.Ld||2===sa;this.Tg=1;this.startTime=this.Cg?E.ib.ba:E.Ce.ba;this.ab=this.eb=null;this.Od=!1;this.Fb=null;this.Wq=this.Vq=this.Uq=this.Tq=
this.Yq=this.Xq=0;this.u=null;var e=!1;1!==this.aa||0!==this.buffer.aa||this.buffer.Jr||(this.aa=0);switch(this.aa){case 0:this.Ld?(this.u=c.ma,e=!c.mj,c.mj=!0):(this.u=new Audio,this.u.crossOrigin="anonymous",this.u.autoplay=!1,this.u.src=c.ma.src,e=!0);e&&this.u.addEventListener("ended",function(){ia=f.tag;f.lc=!0;E.trigger(tc.prototype.k.ij,aa)});break;case 1:this.eb=a();this.eb.connect(b(d));1===this.buffer.aa?c.ma&&(this.u=v.createBufferSource(),this.u.buffer=c.ma,this.u.connect(this.eb)):(this.u=
this.buffer.ma,this.buffer.Xg.connect(this.eb),this.buffer.mj||(this.buffer.mj=!0,this.buffer.ma.addEventListener("ended",function(){ia=f.tag;f.lc=!0;E.trigger(tc.prototype.k.ij,aa)})));break;case 2:this.u=new window.Media(J+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(f.Bg=!0,f.lc=!0,ia=f.tag,E.trigger(tc.prototype.k.ij,aa))});break;case 3:this.u=!0}}function O(a){R(Ea);if(a.length){var b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],kb(a,d.tag)&&Ea.push(d)}else I&&!I.Hf()&&(R(Ea),Ea[0]=
I)}function Q(a,b){X.hasOwnProperty(a)?X[a].push(b):X[a]=[b];var c,d,f,e,g=v.destination;if(X.hasOwnProperty(a)&&(f=X[a],f.length))for(g=f[0].Ic(),c=0,d=f.length;c<d;c++)e=f[c],c+1===d?e.Sc(v.destination):e.Sc(f[c+1].Ic());O(a);c=0;for(d=Ea.length;c<d;c++)Ea[c].gx(g);Ka&&Cb===a&&(Ka.disconnect(),Ka.connect(g))}function ea(){}function U(){}var G=tc.prototype;G.ta=function(a){this.Ga=a;this.b=a.b};G.ta.prototype.S=function(){};var E=null,aa=null,ia="",J="",y=0,v=null,F=[],B=[],I=null,N=!1,sa=0,M=!1,
ba=1,fa=0,xa=0,Ab=!1,zb=1,Bb=1,Bc=10,Cc=1E4,Dc=1,Ka=null,Cb="",Ec=!1,lb=[],mb=!1,Fc=!1;document.addEventListener("pointerup",q,!0);document.addEventListener("touchend",q,!0);document.addEventListener("click",q,!0);document.addEventListener("keydown",q,!0);document.addEventListener("gamepadconnected",q,!0);var X={},Ic="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");l.prototype.Sc=function(a){this.T.disconnect();this.T.connect(a);this.R.disconnect();this.R.connect(a)};
l.prototype.remove=function(){this.la.disconnect();this.Za.disconnect();this.T.disconnect();this.R.disconnect()};l.prototype.Ic=function(){return this.la};g.prototype.Sc=function(a){this.T.disconnect();this.T.connect(a);this.R.disconnect();this.R.connect(a)};g.prototype.remove=function(){this.la.disconnect();this.ti.disconnect();this.Uc.disconnect();this.Hj.disconnect();this.T.disconnect();this.R.disconnect()};g.prototype.Ic=function(){return this.la};x.prototype.Sc=function(a){this.T.disconnect();
this.T.connect(a);this.R.disconnect();this.R.connect(a)};x.prototype.remove=function(){this.la.disconnect();this.tf.disconnect();this.T.disconnect();this.R.disconnect()};x.prototype.Ic=function(){return this.la};H.prototype.Sc=function(a){this.R.disconnect();this.R.connect(a);this.T.disconnect();this.T.connect(a)};H.prototype.remove=function(){this.la.disconnect();this.Uc.disconnect();this.xb.disconnect();this.Ac.disconnect();this.R.disconnect();this.T.disconnect();this.Oj.disconnect()};H.prototype.Ic=
function(){return this.la};A.prototype.Sc=function(a){this.R.disconnect();this.R.connect(a);this.T.disconnect();this.T.connect(a)};A.prototype.remove=function(){this.la.disconnect();this.Za.disconnect();this.xb.disconnect();this.Ac.disconnect();this.R.disconnect();this.T.disconnect()};A.prototype.Ic=function(){return this.la};k.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};k.prototype.remove=function(){this.na.disconnect()};k.prototype.Ic=function(){return this.na};p.prototype.Sc=
function(a){this.na.disconnect();this.na.connect(a)};p.prototype.remove=function(){this.xb.disconnect();this.Ac.disconnect();this.na.disconnect()};p.prototype.Ic=function(){return this.na};u.prototype.Sc=function(a){this.T.disconnect();this.T.connect(a);this.R.disconnect();this.R.connect(a)};u.prototype.remove=function(){this.xb.disconnect();this.Li.disconnect();this.la.disconnect();this.T.disconnect();this.R.disconnect()};u.prototype.Ic=function(){return this.la};L.prototype.Ax=function(a,b){.01>
a&&(a=.01);this.Rk.gain.value=a;this.Qk.gain.value=Math.pow(1/a,.6)*b};L.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};L.prototype.Fv=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,c,d),this.Fj[32768+e]=f,this.Fj[32768-e-1]=-f};L.prototype.Sc=function(a){this.T.disconnect();this.T.connect(a);this.R.disconnect();this.R.connect(a)};L.prototype.remove=function(){this.la.disconnect();
this.Rk.disconnect();this.El.disconnect();this.Qk.disconnect();this.T.disconnect();this.R.disconnect()};L.prototype.Ic=function(){return this.la};C.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};C.prototype.remove=function(){this.na.disconnect()};C.prototype.Ic=function(){return this.na};S.prototype.Qa=function(){this.na.getFloatFrequencyData(this.Dv);this.na.getByteTimeDomainData(this.Cr);for(var a=this.na.fftSize,b=0,c=this.Ci=0,d=0;b<a;b++)d=(this.Cr[b]-128)/128,0>d&&(d=-d),
this.Ci<d&&(this.Ci=d),c+=d*d;this.Ci=r(this.Ci);r(Math.sqrt(c/a))};S.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};S.prototype.remove=function(){this.na.disconnect()};S.prototype.Ic=function(){return this.na};P.prototype.Ni=function(a){this.wa=a};P.prototype.ak=function(){return!!this.wa};P.prototype.Qa=function(){};w.prototype.hx=function(){var a,b,c,d;c=a=0;for(b=B.length;a<b;++a)d=B[a],B[c]=d,d.buffer===this?d.stop():++c;B.length=c;this.Rg&&(this.Rg.disconnect(),this.Rg=null);
this.Xg&&(this.Xg.disconnect(),this.Xg=null);this.Yd=this.ma=null};w.prototype.lp=function(){if(!this.ma&&this.Yd){var a=this;if(v.decodeAudioData)v.decodeAudioData(this.Yd,function(b){a.ma=b;a.Yd=null;var c,d,f;if(ka(a.Nk)||M)ka(a.Bj)||(c=a.Bj.tf,c.normalize=a.Gq,c.buffer=b);else if(a.Yg.length){c=0;for(d=a.Yg.length;c<d;c++){b=a.Yg[c];f=new D(a,b.Or);f.fl(!0);if("undefined"!==typeof b.Iq&&(b.wa=E.Ef(b.Iq),!b.wa))continue;if(b.wa){var e=Sa(b.wa.x,b.wa.y,-b.wa.q.fb(),fa,xa,!0),g=Sa(b.wa.x,b.wa.y,
-b.wa.q.fb(),fa,xa,!1);f.Vn(e,g,Ia(b.wa.n-b.wa.q.fb()),b.Hm,b.qn,b.tn);f.Ni(b.wa)}else f.Vn(b.x,b.y,b.Vt,b.Hm,b.qn,b.tn);f.play(a.mn,a.to,a.cl);a.Lk&&f.pause();B.push(f)}R(a.Yg)}else f=new D(a,a.Nk||""),f.play(a.mn,a.to,a.cl),a.Lk&&f.pause(),B.push(f)},function(){a.Mj=!0});else if(this.ma=v.createBuffer(this.Yd,!1),this.Yd=null,ka(this.Nk)||M)ka(this.Bj)||(b=this.Bj.tf,b.normalize=this.Gq,b.buffer=this.ma);else{var b=new D(this,this.Nk);b.play(this.mn,this.to,this.cl);this.Lk&&b.pause();B.push(b)}}};
w.prototype.Sp=function(){switch(this.aa){case 0:var a=4<=this.ma.readyState;a&&(this.uo=!0);return a||this.uo;case 1:return!!this.Yd||!!this.ma;case 2:return!0;case 3:return!0}return!1};w.prototype.vw=function(){switch(this.aa){case 0:return this.Sp();case 1:return!!this.ma;case 2:return!0;case 3:return!0}return!1};w.prototype.iw=function(){switch(this.aa){case 0:return!!this.ma.error;case 1:return this.Mj}return!1};D.prototype.Hf=function(){switch(this.aa){case 0:return this.u.ended;case 1:return 1===
this.buffer.aa?!this.Id&&!this.lc&&this.u.loop||this.wc?!1:this.Bg:this.u.ended;case 2:return this.Bg;case 3:!0}return!0};D.prototype.lu=function(){return this.Id||this.lc?!0:this.Hf()};D.prototype.fl=function(a){1===y&&(!this.Od&&a?this.eb&&(this.ab||(this.ab=v.createPanner(),this.ab.panningModel="number"===typeof this.ab.panningModel?zb:["equalpower","HRTF","soundfield"][zb],this.ab.distanceModel="number"===typeof this.ab.distanceModel?Bb:["linear","inverse","exponential"][Bb],this.ab.refDistance=
Bc,this.ab.maxDistance=Cc,this.ab.rolloffFactor=Dc),this.eb.disconnect(),this.eb.connect(this.ab),this.ab.connect(b(this.tag)),this.Od=!0):this.Od&&!a&&this.eb&&(this.ab.disconnect(),this.eb.disconnect(),this.eb.connect(b(this.tag)),this.Od=!1))};D.prototype.Vn=function(a,b,c,d,f,e){this.Od&&1===y&&(this.ab.setPosition(a,b,0),this.ab.setOrientation(Math.cos(T(c)),Math.sin(T(c)),0),this.ab.coneInnerAngle=d,this.ab.coneOuterAngle=f,this.ab.coneOuterGain=e,this.Xq=a,this.Yq=b,this.Tq=c,this.Uq=d,this.Vq=
f,this.Wq=e)};D.prototype.Ni=function(a){this.Od&&1===y&&(this.Fb||(this.Fb=new P),this.Fb.Ni(a))};D.prototype.Qa=function(a){if(this.Od&&1===y&&this.Fb&&this.Fb.ak()&&this.Xh()){this.Fb.Qa(a);a=this.Fb.wa;var b=Sa(a.x,a.y,-a.q.fb(),fa,xa,!0),c=Sa(a.x,a.y,-a.q.fb(),fa,xa,!1);this.ab.setPosition(b,c,0);b=0;"undefined"!==typeof this.Fb.wa.n&&(b=a.n-a.q.fb(),this.ab.setOrientation(Math.cos(b),Math.sin(b),0))}};D.prototype.play=function(a,b,d,f){var e=this.u;this.Md=a;this.volume=b;d=d||0;f=f||0;switch(this.aa){case 0:1!==
e.playbackRate&&(e.playbackRate=1);e.volume!==b*ba&&(e.volume=b*ba);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(g){}n(this);break;case 1:this.muted=!1;this.Tg=1;if(1===this.buffer.aa)this.eb.gain.value=b*ba,this.Id||(this.u=v.createBufferSource(),this.u.buffer=this.buffer.ma,this.u.connect(this.eb)),this.u.onended=this.yn,this.kj=this.u,this.u.loop=a,this.Bg=!1,0===d?t(this.u,f):c(this.u,d,this.Df(),f);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==
a&&(e.loop=a);e.volume=b*ba;if(e.currentTime!==d)try{e.currentTime=d}catch(k){}n(this)}break;case 2:(!this.Id&&this.lc||0!==d)&&e.seekTo(d);e.play();this.Bg=!1;break;case 3:E.Rb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Cg?E.ib.ba:E.Ce.ba)-d;this.wc=this.lc=this.Id=!1};D.prototype.stop=function(){switch(this.aa){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.aa?d(this.u):this.u.paused||this.u.pause();break;
case 2:this.u.stop();break;case 3:E.Rb&&AppMobi.context.stopSound(this.src)}this.lc=!0;this.wc=!1};D.prototype.pause=function(){if(!(this.Id||this.lc||this.Hf()||this.wc)){switch(this.aa){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.aa?(this.kc=this.Am(!0),this.Md&&(this.kc=this.kc%this.Df()),this.wc=!0,d(this.u)):this.u.paused||this.u.pause();break;case 2:this.u.pause();break;case 3:E.Rb&&AppMobi.context.stopSound(this.src)}this.wc=!0}};D.prototype.mx=function(){if(!(this.Id||
this.lc||this.Hf())&&this.wc){switch(this.aa){case 0:n(this);break;case 1:1===this.buffer.aa?(this.u=v.createBufferSource(),this.u.buffer=this.buffer.ma,this.u.connect(this.eb),this.u.onended=this.yn,this.kj=this.u,this.u.loop=this.Md,this.eb.gain.value=ba*this.volume*this.Tg,this.zl(),this.startTime=(this.Cg?E.ib.ba:E.Ce.ba)-this.kc/(this.playbackRate||.001),c(this.u,this.kc,this.Df())):n(this);break;case 2:this.u.play();break;case 3:E.Rb&&AppMobi.context.resumeSound(this.src)}this.wc=!1}};D.prototype.seek=
function(a){if(!(this.Id||this.lc||this.Hf()))switch(this.aa){case 0:try{this.u.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.aa)this.wc?this.kc=a:(this.pause(),this.kc=a,this.mx());else try{this.u.currentTime=a}catch(c){}break;case 3:E.Rb&&AppMobi.context.seekSound(this.src,a)}};D.prototype.gx=function(a){1===this.aa&&(this.Od?(this.ab.disconnect(),this.ab.connect(a)):(this.eb.disconnect(),this.eb.connect(a)))};D.prototype.Df=function(){var a=0;switch(this.aa){case 0:"undefined"!==typeof this.u.duration&&
(a=this.u.duration);break;case 1:a=this.buffer.ma.duration;break;case 2:a=this.u.getDuration();break;case 3:E.Rb&&(a=AppMobi.context.getDurationSound(this.src))}return a};D.prototype.Am=function(a){var b=this.Df(),c=0;switch(this.aa){case 0:"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 1:if(1===this.buffer.aa){if(this.wc)return this.kc;c=(this.Cg?E.ib.ba:E.Ce.ba)-this.startTime}else"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 3:E.Rb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&
(c*=this.playbackRate);!this.Md&&c>b&&(c=b);return c};D.prototype.Xh=function(){return!this.wc&&!this.Id&&!this.lc&&!this.Hf()};D.prototype.Gx=function(){return!this.Id&&!this.lc&&!this.Hf()};D.prototype.Qx=function(){var a=this.volume*ba;isFinite(a)||(a=0);switch(this.aa){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.aa?this.eb.gain.value=a*this.Tg:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};D.prototype.Kj=
function(a){switch(this.aa){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.aa?(this.Tg=a?0:1,this.eb.gain.value=ba*this.volume*this.Tg):this.u.muted!==!!a&&(this.u.muted=!!a)}};D.prototype.Bx=function(){this.Fg=!0;this.Kj(this.Fg||this.$h)};D.prototype.tr=function(a){this.$h=!!a;this.Kj(this.Fg||this.$h)};D.prototype.zl=function(){var a=this.playbackRate;this.Cg&&(a*=E.ig);switch(this.aa){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.aa?
this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};D.prototype.Dx=function(a){switch(this.aa){case 0:a?this.Xh()?(this.Oc=!0,this.u.pause()):this.Oc=!1:this.Oc&&(this.u.play(),this.Oc=!1);break;case 1:a?this.Xh()?(this.Oc=!0,1===this.buffer.aa?(this.kc=this.Am(!0),this.Md&&(this.kc=this.kc%this.Df()),d(this.u)):this.u.pause()):this.Oc=!1:this.Oc&&(1===this.buffer.aa?(this.u=v.createBufferSource(),this.u.buffer=this.buffer.ma,this.u.connect(this.eb),
this.u.onended=this.yn,this.kj=this.u,this.u.loop=this.Md,this.eb.gain.value=ba*this.volume*this.Tg,this.zl(),this.startTime=(this.Cg?E.ib.ba:E.Ce.ba)-this.kc/(this.playbackRate||.001),c(this.u,this.kc,this.Df())):this.u.play(),this.Oc=!1);break;case 2:a?this.Xh()?(this.u.pause(),this.Oc=!0):this.Oc=!1:this.Oc&&(this.Oc=!1,this.u.play())}};G.ea=function(a){this.type=a;E=this.b=a.b;aa=this;this.yc=null;this.ki=-600;this.b.hk&&(mb=!0);!(this.b.Ig||this.b.Th&&(this.b.Om||this.b.dk))||this.b.fk||this.b.La||
this.b.Qp||mb||(Ec=!0);v=null;"undefined"!==typeof AudioContext?(y=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(y=1,v=new webkitAudioContext);this.b.Ig&&v&&(v.close&&v.close(),"undefined"!==typeof AudioContext?v=new AudioContext:"undefined"!==typeof webkitAudioContext&&(v=new webkitAudioContext));1!==y&&(this.b.vc&&"undefined"!==typeof window.Media?y=2:this.b.Rp&&(y=3));2===y&&(J=location.href,a=J.lastIndexOf("/"),-1<a&&(J=J.substr(0,a+1)),J=J.replace("file://",""));if(this.b.ww&&
this.b.xw&&"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.of(this);else{if(this.b.Rb)N=this.b.Th;else try{N=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.ik}catch(b){N=!1}this.b.gh(this)}};var ta=G.ea.prototype;ta.S=function(){this.b.pg=this;sa=this.C[0];this.te=this.C[1];this.Uw=0!==this.C[2];this.Dk=0;zb=this.C[3];Bb=this.C[4];this.ki=-this.C[5];Bc=this.C[6];Cc=this.C[7];
Dc=this.C[8];this.yc=new P;var a=this.b.N||this.b.width,c=this.b.M||this.b.height;1===y&&(v.listener.setPosition(a/2,c/2,this.ki),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,c){Ka&&Ka.disconnect();Cb=c.toLowerCase();Ka=v.createMediaStreamSource(a);Ka.connect(b(Cb))});this.b.Ro(function(a){aa.Pw(a)});var d=this;this.b.lj(function(a){d.Ai(a)})};ta.Ai=function(a){var b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.Fb&&d.Fb.wa===a&&(d.Fb.wa=null,d.Od&&d.Xh()&&d.Md&&d.stop());
this.yc.wa===a&&(this.yc.wa=null)};ta.yb=function(){var a={silent:M,masterVolume:ba,listenerZ:this.ki,listenerUid:this.yc.ak()?this.yc.wa.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,e,g,k;c=0;for(d=B.length;c<d;c++)f=B[c],!f.Gx()||3===this.te||f.Ld&&1===this.te||!f.Ld&&2===this.te||(e=f.Am(),f.Md&&(e=e%f.Df()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Ld,playbackTime:e,volume:f.volume,looping:f.Md,muted:f.Fg,playbackRate:f.playbackRate,paused:f.wc,resume_position:f.kc},f.Od&&(e.pan={},k=
e.pan,f.Fb&&f.Fb.ak()?k.objUid=f.Fb.wa.uid:(k.x=f.Xq,k.y=f.Yq,k.a=f.Tq),k.ia=f.Uq,k.oa=f.Vq,k.og=f.Wq),b.push(e));b=a.effects;for(g in X)if(X.hasOwnProperty(g)){f=[];c=0;for(d=X[g].length;c<d;c++)f.push({type:X[g][c].type,params:X[g][c].td});b[g]=f}return a};var Ta=[];ta.Sb=function(a){var b=a.silent;ba=a.masterVolume;this.ki=a.listenerZ;this.yc.Ni(null);var c=a.listenerUid;-1!==c&&(this.yc.tk=c,Ta.push(this.yc));var c=a.playing,d,f,e,h,m,n,q,r,t,w,v;if(3!==this.te)for(d=0,f=B.length;d<f;d++)t=B[d],
t.Ld&&1===this.te||(t.Ld||2!==this.te)&&t.stop();for(m in X)if(X.hasOwnProperty(m))for(d=0,f=X[m].length;d<f;d++)X[m][d].remove();Ya(X);for(m in a.effects)if(a.effects.hasOwnProperty(m))for(n=a.effects[m],d=0,f=n.length;d<f;d++)switch(e=n[d].type,w=n[d].params,e){case "filter":Q(m,new l(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":Q(m,new g(w[0],w[1],w[2]));break;case "convolve":e=w[2];t=this.Wj(e,!1);t.ma?e=new x(t.ma,w[0],w[1],e):(e=new x(null,w[0],w[1],e),t.Gq=w[0],t.Bj=e);Q(m,e);break;case "flanger":Q(m,
new H(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":Q(m,new A(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":Q(m,new k(w[0]));break;case "tremolo":Q(m,new p(w[0],w[1]));break;case "ringmod":Q(m,new u(w[0],w[1]));break;case "distortion":Q(m,new L(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":Q(m,new C(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":Q(m,new S(w[0],w[1]))}d=0;for(f=c.length;d<f;d++)3===this.te||(a=c[d],e=a.buffersrc,h=a.is_music,m=a.tag,n=a.playbackTime,q=a.looping,r=a.volume,
v=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,h&&1===this.te)||!h&&2===this.te||((t=this.tm(e,m,h,q,r))?(t.kc=a.resume_position,t.fl(!!w),t.play(q,r,n),t.zl(),t.Qx(),t.Kj(t.Fg||t.$h),a.paused&&t.pause(),a.muted&&t.Bx(),t.Kj(t.Fg||t.$h),w&&(-1!==v?(t.Fb=t.Fb||new P,t.Fb.tk=v,Ta.push(t.Fb)):t.Vn(w.x,w.y,w.a,w.ia,w.oa,w.og))):(t=this.Wj(e,h),t.cl=n,t.Lk=a.paused,w&&(-1!==v?t.Yg.push({Iq:v,Hm:w.ia,qn:w.oa,tn:w.og,Or:m}):t.Yg.push({x:w.x,y:w.y,Vt:w.a,Hm:w.ia,qn:w.oa,tn:w.og,Or:m}))));if(b&&!M){d=
0;for(f=B.length;d<f;d++)B[d].tr(!0);M=!0}else if(!b&&M){d=0;for(f=B.length;d<f;d++)B[d].tr(!1);M=!1}};ta.jd=function(){var a,b,c,d;a=0;for(b=Ta.length;a<b;a++)c=Ta[a],d=this.b.Ef(c.tk),c.Ni(d),c.tk=-1,d&&(fa=d.x,xa=d.y);R(Ta)};ta.Pw=function(a){if(!this.Uw){!a&&v&&v.resume&&(v.resume(),Ab=!1);var b,c;b=0;for(c=B.length;b<c;b++)B[b].Dx(a);a&&v&&v.suspend&&(v.suspend(),Ab=!0)}};ta.Qa=function(){var a=this.b.xf,b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.Qa(a),0!==sa&&d.zl();var f,e;for(f in X)if(X.hasOwnProperty(f))for(d=
X[f],b=0,c=d.length;b<c;b++)e=d[b],e.Qa&&e.Qa();1===y&&this.yc.ak()&&(this.yc.Qa(a),fa=this.yc.wa.x,xa=this.yc.wa.y,v.listener.setPosition(this.yc.wa.x,this.yc.wa.y,this.ki))};var Ua=[];ta.Cx=function(a){var b,c,d,f,e,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&N||!e&&!N)Ua.push({filename:f,size:d,wa:null}),g+=d;return g};ta.Ix=function(){var a,b,c,d;a=0;for(b=Ua.length;a<b;++a)c=Ua[a],d=this.b.Pj+c.filename,c.wa=this.Wj(d,!1)};ta.Ov=function(){var a=
0,b,c,d;b=0;for(c=Ua.length;b<c;++b)d=Ua[b],d.wa.vw()||d.wa.iw()||this.b.La||this.b.dk?a+=d.size:d.wa.Sp()&&(a+=Math.floor(d.size/2));return a};ta.ix=function(){var a,b,c,d;c=a=0;for(b=F.length;a<b;++a)d=F[a],F[c]=d,d.Ld?d.hx():++c;F.length=c};ta.Wj=function(a,b){var c,d,f,e=null;c=0;for(d=F.length;c<d;c++)if(f=F[c],f.src===a){e=f;break}e||(mb&&b&&this.ix(),e=new w(a,b),F.push(e));return e};ta.tm=function(a,b,c,d,f){var e,g,k;e=0;for(g=B.length;e<g;e++)if(k=B[e],k.src===a&&(k.lu()||c))return k.tag=
b,k;a=this.Wj(a,c);if(!a.ma)return"<preload>"!==b&&(a.Nk=b,a.mn=d,a.to=f),null;k=new D(a,b);B.push(k);return k};var Ea=[];ea.prototype.ij=function(a){return kb(ia,a)};G.k=new ea;U.prototype.Play=function(a,b,c,d){!M&&(c=h(c),I=this.tm(this.b.Pj+a[0]+(N?".ogg":".m4a"),d,a[1],0!==b,c))&&(I.fl(!1),I.play(0!==b,c,0,this.Dk),this.Dk=0)};U.prototype.qt=function(a,b,c,d,f){!M&&(d=h(d),I=this.tm(this.b.Pj+b.toLowerCase()+(N?".ogg":".m4a"),f,1===a,0!==c,d))&&(I.fl(!1),I.play(0!==c,d,0,this.Dk),this.Dk=0)};
U.prototype.Lt=function(a){O(a);var b;a=0;for(b=Ea.length;a<b;a++)Ea[a].stop()};U.prototype.Mt=function(){var a,b;a=0;for(b=B.length;a<b;a++)B[a].stop()};G.I=new U;G.Ta=new function(){}})();function Y(e){this.b=e}
(function(){function e(){b&&a&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){f.Ow(a)})}function n(){}function q(){}function m(a){console&&console.warn&&console.warn("Fullscreen request failed: ",a);c.setSize(window.innerWidth,window.innerHeight)}var h=Y.prototype;h.ta=function(a){this.Ga=a;this.b=a.b};var r=h.ta.prototype;r.S=function(){};var b=!1,a=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=
document.createElement("script");a.onload=function(){b=!0;e()};a.src="offlineClient.js";document.head.appendChild(a)}});var f=null;r.Mq=function(){a=!0;e()};h.ea=function(a){this.type=a;this.b=a.b};r=h.ea.prototype;r.S=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(Y.prototype.k.jt,a)});f=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(Y.prototype.k.gt,a)}),window.addEventListener("offline",function(){a.b.trigger(Y.prototype.k.dt,
a)}));this.b.Rb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(Y.prototype.k.Nl,a)}),document.addEventListener("backbutton",function(){a.b.trigger(Y.prototype.k.gj,a)}),document.addEventListener("menubutton",function(){a.b.trigger(Y.prototype.k.Go,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(Y.prototype.k.kt,a)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(Y.prototype.k.gj,a);!c&&
window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(Y.prototype.k.Go,a))||b.preventDefault()}}));this.b.ik&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(Y.prototype.k.gj,a)&&(b.handled=!0)}):this.b.Tm&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(Y.prototype.k.gj,a)});this.b.Ro(function(b){b?a.b.trigger(Y.prototype.k.ht,
a):a.b.trigger(Y.prototype.k.it,a)});this.Aw="undefined"!==typeof window.is_scirra_arcade};r.Ow=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(Y.prototype.k.ot,this):"update-ready"===a||"update-pending"===a?this.b.trigger(Y.prototype.k.Nl,this):"offline-ready"===a&&this.b.trigger(Y.prototype.k.et,this)};n.prototype.gt=function(){return!0};n.prototype.dt=function(){return!0};n.prototype.Nl=function(){return!0};n.prototype.it=function(){return!0};n.prototype.ht=function(){return!0};
n.prototype.jt=function(){return!0};n.prototype.Ds=function(){return!!(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.b.Kf)};n.prototype.gj=function(){return!0};n.prototype.Go=function(){return!0};n.prototype.kt=function(){return!0};n.prototype.Nt=function(){if(this.b.Tp)return!0;var a=this.b.Ul||this.b.canvas;return!!(a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullScreen)};n.prototype.ot=function(){return!0};n.prototype.Nl=function(){return!0};
n.prototype.et=function(){return!0};h.k=new n;q.prototype.ws=function(a,b){this.b.Kc?CocoonJS.App.openURL(a):this.b.Vc?ejecta.openURL(a):this.b.Tm?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):this.b.vc?window.open(a,"_system"):this.Aw||this.b.La||window.open(a,b)};var t=!0,c=null;q.prototype.tt=function(a){this.b.La?ha("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):
(2<=a&&(a+=1),6===a&&(a=2),this.b.Tp?this.b.rw?debuggerFullscreen(!0):!this.b.Kf&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.Kf=!0,this.b.Te=2<=a?a:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Te=2<=a?a:0,a=document.documentElement,t&&(t=!1,c=this.b,a.addEventListener("mozfullscreenerror",m),a.addEventListener("webkitfullscreenerror",m),a.addEventListener("MSFullscreenError",m),
a.addEventListener("fullscreenerror",m)),a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen())))};h.I=new q;h.Ta=new function(){}})();function uc(e){this.b=e}
(function(){function e(){}var n=uc.prototype;n.ta=function(e){this.Ga=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e){this.type=e;this.b=e.b;this.ei=Array(256);this.aj=Array(256);this.ze=0};var q=n.ea.prototype;q.S=function(){var e=this;this.b.La||(jQuery(document).keydown(function(m){e.un(m)}),jQuery(document).keyup(function(m){e.vn(m)}))};var m=[32,33,34,35,36,37,38,39,40,44];q.un=function(e){var n=!1;window!=window.top&&-1<m.indexOf(e.which)&&(e.preventDefault(),n=!0,e.stopPropagation());
if(this.ei[e.which])this.aj[e.which]&&!n&&e.preventDefault();else{this.ei[e.which]=!0;this.ze=e.which;this.b.Lc=!0;this.b.trigger(uc.prototype.k.Ps,this);var b=this.b.trigger(uc.prototype.k.Bo,this),a=this.b.trigger(uc.prototype.k.Ys,this);this.b.Lc=!1;if(b||a)this.aj[e.which]=!0,n||e.preventDefault()}};q.vn=function(e){this.ei[e.which]=!1;this.ze=e.which;this.b.Lc=!0;this.b.trigger(uc.prototype.k.zo,this);var m=this.b.trigger(uc.prototype.k.Do,this),b=this.b.trigger(uc.prototype.k.Co,this);this.b.Lc=
!1;if(m||b||this.aj[e.which])this.aj[e.which]=!0,e.preventDefault()};q.Zf=function(){var e;for(e=0;256>e;++e)if(this.ei[e]){this.ei[e]=!1;this.ze=e;this.b.trigger(uc.prototype.k.zo,this);var m=this.b.trigger(uc.prototype.k.Do,this),b=this.b.trigger(uc.prototype.k.Co,this);if(m||b)this.aj[e]=!0}};q.yb=function(){return{triggerKey:this.ze}};q.Sb=function(e){this.ze=e.triggerKey};e.prototype.Bo=function(e){return e===this.ze};e.prototype.Ps=function(){return!0};e.prototype.zo=function(){return!0};e.prototype.Do=
function(e){return e===this.ze};e.prototype.Ys=function(e){return e===this.ze};e.prototype.Co=function(e){return e===this.ze};n.k=new e;n.I=new function(){};n.Ta=new function(){}})();function W(e){this.b=e}
(function(){function e(){if(0===this.em.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.dh?b.drawImage(this.ca,this.Vg,this.Wg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ca,0,0,this.width,this.height);this.em=a.toDataURL("image/png")}return this.em}function n(){}function q(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function h(a,b,c,d){b=b.uid;c=c.uid;var f=m(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=g.length?g.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function r(a,b,c){b=m(b.uid,c.uid);a.hasOwnProperty(b)&&(q(a[b]),delete a[b])}function b(a,b,c){b=m(b.uid,c.uid);if(a.hasOwnProperty(b))return x=a[b][2],!0;x=-2;return!1}function a(){}function f(){}var t=W.prototype;t.ta=function(a){this.Ga=a;this.b=a.b};var c=t.ta.prototype;c.S=function(){if(!this.O){var a,b,c,d,f,g,k,h,m;this.kd=[];this.Ph=!1;a=0;for(b=this.pc.length;a<b;a++){f=this.pc[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];
k.Mn=f[3];k.Nn=f[4];k.br=f[5];k.da=f[6];k.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],h={},h.co=g[0],h.eo=g[1],h.Vg=g[2],h.Wg=g[3],h.width=g[4],h.height=g[5],h.duration=g[6],h.fc=g[7],h.gc=g[8],h.Jm=g[9],h.Ok=g[10],h.cr=g[11],h.dh=0!==h.width,h.em="",h.dz=e,m={left:0,top:0,right:1,bottom:1},h.Yn=m,h.Ia=null,(m=this.b.Cv(g[0]))?h.ca=m:(h.ca=new Image,h.ca.ou=g[0],h.ca.hp=g[1],h.ca.ju=null,this.b.cs(h.ca,g[0])),k.frames.push(h),this.kd.push(h);this.pc[a]=k}}};c.Yr=function(){var a,b,c;a=0;for(b=
this.j.length;a<b;a++)c=this.j[a],c.Dj=c.Ab.Ia};c.Gk=function(){if(!this.O){var a,b,c;a=0;for(b=this.kd.length;a<b;++a)c=this.kd[a],c.ca.ju=null,c.Ia=null;this.Ph=!1;this.Yr()}};c.wn=function(){if(!this.O&&this.j.length){var a,b,c;a=0;for(b=this.kd.length;a<b;++a)c=this.kd[a],c.Ia=this.b.F.sk(c.ca,!1,this.b.Na,c.cr);this.Yr()}};c.gn=function(){if(!this.O&&!this.Ph&&this.b.F){var a,b,c;a=0;for(b=this.kd.length;a<b;++a)c=this.kd[a],c.Ia=this.b.F.sk(c.ca,!1,this.b.Na,c.cr);this.Ph=!0}};c.oo=function(){if(!this.O&&
!this.j.length&&this.Ph){var a,b,c;a=0;for(b=this.kd.length;a<b;++a)c=this.kd[a],this.b.F.deleteTexture(c.Ia),c.Ia=null;this.Ph=!1}};var d=[];c.En=function(a){var b,c,f;R(d);b=0;for(c=this.kd.length;b<c;++b)f=this.kd[b].ca,-1===d.indexOf(f)&&(a.drawImage(f,0,0),d.push(f))};t.ea=function(a){this.type=a;this.b=a.b;a=this.type.pc[0].frames[0].Ok;this.Cc?this.ua.Qi(a):this.ua=new eb(a)};var l=t.ea.prototype;l.S=function(){this.visible=0===this.C[0];this.bk=this.Mf=!1;this.$d=0!==this.C[3];this.Ea=this.yp(this.C[1])||
this.type.pc[0];this.L=this.C[2];0>this.L&&(this.L=0);this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1);var a=this.Ea.frames[this.L];this.ua.Qi(a.Ok);this.fc=a.fc;this.gc=a.gc;this.uf=this.Ea.speed;this.Qe=this.Ea.Nn;1===this.type.pc.length&&1===this.type.pc[0].frames.length||0===this.uf||(this.b.gh(this),this.Mf=!0);this.Cc?this.Ed.reset():this.Ed=new cb;this.he=this.Ed.ba;this.pf=!0;this.Xd=0;this.Je=!0;this.rg=this.Uo="";this.dp=0;this.yj=-1;this.type.gn();var b,c,d,f,e,g,k,a=0;for(b=
this.type.pc.length;a<b;a++)for(f=this.type.pc[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.ca.width,e.height=e.ca.height),e.dh&&(k=e.ca,g=e.Yn,g.left=e.Vg/k.width,g.top=e.Wg/k.height,g.right=(e.Vg+e.width)/k.width,g.bottom=(e.Wg+e.height)/k.height,0===e.Vg&&0===e.Wg&&e.width===k.width&&e.height===k.height&&(e.dh=!1));this.Ab=this.Ea.frames[this.L];this.Dj=this.Ab.Ia};l.yb=function(){var a={a:this.Ea.da,f:this.L,cas:this.uf,fs:this.he,ar:this.Xd,at:this.Ed.ba,rt:this.Qe};
this.pf||(a.ap=this.pf);this.Je||(a.af=this.Je);return a};l.Sb=function(a){var b=this.Gv(a.a);b&&(this.Ea=b);this.L=a.f;0>this.L&&(this.L=0);this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1);this.uf=a.cas;this.he=a.fs;this.Xd=a.ar;this.Ed.reset();this.Ed.ba=a.at;this.pf=a.hasOwnProperty("ap")?a.ap:!0;this.Je=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Qe=a.rt:this.Qe=this.Ea.Nn;this.Ab=this.Ea.frames[this.L];this.Dj=this.Ab.Ia;this.ua.Qi(this.Ab.Ok);this.fc=this.Ab.fc;
this.gc=this.Ab.gc};l.Pl=function(a){this.L=a?0:this.Ea.frames.length-1;this.pf=!1;this.Uo=this.Ea.name;this.bk=!0;this.b.trigger(W.prototype.k.Os,this);this.b.trigger(W.prototype.k.Ns,this);this.bk=!1;this.Xd=0};l.pj=function(){return this.Ed.ba};l.Qa=function(){this.Ed.add(this.b.Ih(this));this.rg.length&&this.mp();0<=this.yj&&this.np();var a=this.Ed.ba,b=this.Ea,c=b.frames[this.L],d=c.duration/this.uf;this.pf&&a>=this.he+d&&(this.Je?this.L++:this.L--,this.he+=d,this.L>=b.frames.length&&(b.br?(this.Je=
!1,this.L=b.frames.length-2):b.loop?this.L=this.Qe:(this.Xd++,this.Xd>=b.Mn?this.Pl(!1):this.L=this.Qe)),0>this.L&&(b.br?(this.L=1,this.Je=!0,b.loop||(this.Xd++,this.Xd>=b.Mn&&this.Pl(!0))):b.loop?this.L=this.Qe:(this.Xd++,this.Xd>=b.Mn?this.Pl(!0):this.L=this.Qe)),0>this.L?this.L=0:this.L>=b.frames.length&&(this.L=b.frames.length-1),a>this.he+b.frames[this.L].duration/this.uf&&(this.he=a),a=b.frames[this.L],this.mg(c,a),this.b.ya=!0)};l.yp=function(a){var b,c,d;b=0;for(c=this.type.pc.length;b<c;b++)if(d=
this.type.pc[b],kb(d.name,a))return d;return null};l.Gv=function(a){var b,c,d;b=0;for(c=this.type.pc.length;b<c;b++)if(d=this.type.pc[b],d.da===a)return d;return null};l.mp=function(){var a=this.Ea.frames[this.L],b=this.yp(this.rg);this.rg="";!b||kb(b.name,this.Ea.name)&&this.pf||(this.Ea=b,this.uf=b.speed,this.Qe=b.Nn,0>this.L&&(this.L=0),this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1),1===this.dp&&(this.L=0),this.pf=!0,this.he=this.Ed.ba,this.Je=!0,this.mg(a,this.Ea.frames[this.L]),
this.b.ya=!0)};l.np=function(){var a=this.Ea.frames[this.L],b=this.L;this.L=K(this.yj);0>this.L&&(this.L=0);this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1);b!==this.L&&(this.mg(a,this.Ea.frames[this.L]),this.he=this.Ed.ba,this.b.ya=!0);this.yj=-1};l.mg=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.fc=b.fc;this.gc=b.gc;this.ua.Qi(b.Ok);this.A();this.Ab=b;this.Dj=b.Ia;c=0;for(d=this.P.length;c<d;c++)f=this.P[c],f.Pq&&
f.Pq(a,b);this.b.trigger(W.prototype.k.mg,this)};l.Gd=function(a){a.globalAlpha=this.opacity;var b=this.Ab,c=b.dh,d=b.ca,f=this.x,e=this.y,g=this.width,k=this.height;if(0===this.n&&0<=g&&0<=k)f-=this.fc*g,e-=this.gc*k,this.b.ud&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.Vg,b.Wg,b.width,b.height,f,e,g,k):a.drawImage(d,f,e,g,k);else{this.b.ud&&(f=Math.round(f),e=Math.round(e));a.save();var h=0<g?1:-1,m=0<k?1:-1;a.translate(f,e);1===h&&1===m||a.scale(h,m);a.rotate(this.n*h*m);f=0-this.fc*oa(g);
e=0-this.gc*oa(k);c?a.drawImage(d,b.Vg,b.Wg,b.width,b.height,f,e,oa(g),oa(k)):a.drawImage(d,f,e,oa(g),oa(k));a.restore()}};l.wf=function(a){this.rc(a)};l.rc=function(a){a.Dc(this.Dj);a.bg(this.opacity);var b=this.Ab,c=this.Xb;if(this.b.ud){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.dh?a.Rd(c.pb+d,c.qb+f,c.Vb+d,c.Wb+f,c.Mb+d,c.Nb+f,c.Kb+d,c.Lb+f,b.Yn):a.Ii(c.pb+d,c.qb+f,c.Vb+d,c.Wb+f,c.Mb+d,c.Nb+f,c.Kb+d,c.Lb+f)}else b.dh?a.Rd(c.pb,c.qb,c.Vb,c.Wb,c.Mb,c.Nb,c.Kb,c.Lb,b.Yn):a.Ii(c.pb,
c.qb,c.Vb,c.Wb,c.Mb,c.Nb,c.Kb,c.Lb)};l.Jv=function(a){var b=this.Ab,c,d;c=0;for(d=b.Jm.length;c<d;c++)if(kb(a,b.Jm[c][0]))return c;return-1};l.Jh=function(a,b){var c=this.Ab,d=c.Jm,f;z(a)?f=this.Jv(a):f=a-1;f=K(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.fc)*this.width,d=d[f][2],d=(d-c.gc)*this.height,c=Math.cos(this.n);f=Math.sin(this.n);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var g=[],x=-2,H=[];n.prototype.Rs=function(a){if(!a)return!1;var c=this.b,d=c.vm(),
f=d.type,e=null;d.J.collmemory?e=d.J.collmemory:(e={},d.J.collmemory=e);d.J.spriteCreatedDestroyCallback||(d.J.spriteCreatedDestroyCallback=!0,c.lj(function(a){var b=d.J.collmemory;a=a.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&(f=b[c],f[0]===a||f[1]===a)&&(q(b[c]),delete b[c])}));var g=f.ja(),k=a.ja(),g=g.tc(),m,l,n,t,A,G,E,aa=this.b.Vd,ia=aa-1,J=c.Db().cc;for(l=0;l<g.length;l++){n=g[l];k.xa?(n.Z(),this.b.zp(n.q,a,n.W,H),m=H,this.b.$t(n,a,m)):m=k.tc();for(t=0;t<m.length;t++)A=m[t],c.Ub(n,A)||c.mu(n,
A)?(G=b(e,n,A),G=!G||x<ia,h(e,n,A,aa),G&&(c.Tk(J.Da),G=f.ja(),E=a.ja(),G.xa=!1,E.xa=!1,f===a?(G.j.length=2,G.j[0]=n,G.j[1]=A,f.Rc()):(G.j.length=1,E.j.length=1,G.j[0]=n,E.j[0]=A,f.Rc(),a.Rc()),J.ox(),c.$f(J.Da))):r(e,n,A);R(H)}return!1};var A=new da,k=!1;new wa(0,0,0,0);c.finish=function(a){if(k){if(a){var b=this.b.Db().cc.Xc;a=null.ja();var c=A.Ae(),d,f;if(a.xa){a.xa=!1;R(a.j);d=0;for(f=c.length;d<f;++d)a.j[d]=c[d];if(b)for(R(a.fa),d=0,f=null.j.length;d<f;++d)c=null.j[d],A.contains(c)||a.fa.push(c)}else if(b)for(b=
a.j.length,d=0,f=c.length;d<f;++d)a.j[b+d]=c[d],Ga(a.fa,c[d]);else Ca(a.j,c);null.Rc()}A.clear();k=!1}};n.prototype.As=function(a){return this.rg.length?kb(this.rg,a):kb(this.Ea.name,a)};n.prototype.Ns=function(a){return kb(this.Uo,a)};n.prototype.Os=function(){return!0};n.prototype.mg=function(){return!0};t.k=new n;a.prototype.yt=function(a,b){this.rg=a;this.dp=b;this.Mf||(this.b.gh(this),this.Mf=!0);this.bk||this.mp()};a.prototype.zt=function(a){this.yj=a;this.Mf||(this.b.gh(this),this.Mf=!0);this.bk||
this.np()};a.prototype.At=function(a){this.uf=oa(a);this.Je=0<=a;this.Mf||(this.b.gh(this),this.Mf=!0)};t.I=new a;f.prototype.xs=function(a,b){a.K(this.Jh(b,!0))};f.prototype.ys=function(a,b){a.K(this.Jh(b,!1))};t.Ta=new f})();function vc(e){this.b=e}
(function(){function e(){return a.length?a.pop():{}}function n(b){var e,c;e=0;for(c=b.length;e<c;e++)a.push(b[e]);R(b)}function q(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function m(){}var h=vc.prototype;h.S=function(){h.I.Jt=function(a){this.width!==a&&(this.width=a,this.hg=!0,this.A())}};h.ta=function(a){this.Ga=a;this.b=a.b};var r=h.ta.prototype;r.S=function(){};r.Gk=function(){if(!this.O){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=this.j[a],c.Nd=null,c.Wf=null,
c.zc=null}};h.ea=function(a){this.type=a;this.b=a.b;this.Cc?R(this.bf):this.bf=[];this.hg=!0};r=h.ea.prototype;r.S=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.$j=this.C[4];this.Bl=this.C[5];this.wo=0===this.C[7];this.$m=this.nk=this.width;this.mk=this.height;this.bn=this.C[8];this.Tj=this.vg="";this.Mr=this.Nr=this.Gi=0;this.Sw();this.zc=this.Wf=this.Nd=null;this.Eq=!1;this.hi=this.b.Vd;this.Cc?this.gf.set(0,0,1,1):this.gf=new wa(0,0,1,1);
this.b.F&&this.b.gh(this)};r.Sw=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Gi=parseInt(a[b].substr(0,a[b].length-2));this.In=Math.ceil(this.Gi/72*96)+4;0<b&&(this.Tj=a[b-1]);this.vg=a[b+1];for(b+=2;b<a.length;b++)this.vg+=" "+a[b];break}};r.yb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.$j,va:this.Bl,wr:this.wo,lho:this.bn,fn:this.vg,fs:this.Tj,ps:this.Gi,pxh:this.In,tw:this.Nr,th:this.Mr,lrt:this.hi}};r.Sb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.$j=a.ha;this.Bl=a.va;this.wo=a.wr;this.bn=a.lho;this.vg=a.fn;this.Tj=a.fs;this.Gi=a.ps;this.In=a.pxh;this.Nr=a.tw;this.Mr=a.th;this.hi=a.lrt;this.hg=!0;this.$m=this.nk=this.width;this.mk=this.height};r.Qa=function(){if(this.b.F&&this.zc&&300<=this.b.Vd-this.hi){var a=this.q;this.Z();var b=this.W;if(b.right<a.za||b.bottom<a.Aa||b.left>a.Ca||b.top>a.Ba)this.b.F.deleteTexture(this.zc),this.Nd=this.Wf=this.zc=null}};r.Yf=function(){this.Nd=this.Wf=null;this.b.F&&
this.zc&&this.b.F.deleteTexture(this.zc);this.zc=null};r.pj=function(){this.font=this.Tj+" "+this.Gi.toString()+"pt "+this.vg;this.hg=!0;this.b.ya=!0};r.Gd=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.q.uc()),a.save(),a.scale(c,c));if(this.hg||this.width!==this.$m)this.type.Ga.Qt(this.text,this.bf,a,this.width,this.wo),this.hg=!1,this.$m=this.width;this.Z();var c=b?0:this.Xb.pb,d=b?0:this.Xb.qb;this.b.ud&&(c=
c+.5|0,d=d+.5|0);0===this.n||b||(a.save(),a.translate(c,d),a.rotate(this.n),d=c=0);var e=d+this.height,g=this.In,g=g+this.bn,h,m;1===this.Bl?d+=Math.max(this.height/2-this.bf.length*g/2,0):2===this.Bl&&(d+=Math.max(this.height-this.bf.length*g-2,0));for(m=0;m<this.bf.length&&!(h=c,1===this.$j?h=c+(this.width-this.bf[m].width)/2:2===this.$j&&(h=c+(this.width-this.bf[m].width)),a.fillText(this.bf[m].text,h,d),d+=g,d>=e-g);m++);(0!==this.n||b)&&a.restore();this.hi=this.b.Vd};r.rc=function(a){if(!(1>
this.width||1>this.height)){var b=this.hg||this.Eq;this.Eq=!1;var c=this.q.uc(),d=this.q.fb(),e=this.gf,g=c*this.width,h=c*this.height,m=Math.ceil(g),n=Math.ceil(h),k=Math.abs(m),p=Math.abs(n),q=this.b.N/2,r=this.b.M/2;this.Wf||(this.Nd=document.createElement("canvas"),this.Nd.width=k,this.Nd.height=p,this.nk=k,this.mk=p,b=!0,this.Wf=this.Nd.getContext("2d"));if(k!==this.nk||p!==this.mk)this.Nd.width=k,this.Nd.height=p,this.zc&&(a.deleteTexture(this.zc),this.zc=null),b=!0;b&&(this.Wf.clearRect(0,
0,k,p),this.Gd(this.Wf,!0),this.zc||(this.zc=a.Gc(k,p,this.b.Na,this.b.le)),a.Wx(this.Nd,this.zc,this.b.le));this.nk=k;this.mk=p;a.Dc(this.zc);a.bg(this.opacity);a.bd();a.translate(-q,-r);a.Pc();var C=this.Xb,b=this.q.Ma(C.pb,C.qb,!0,!0),k=this.q.Ma(C.pb,C.qb,!1,!0),p=this.q.Ma(C.Vb,C.Wb,!0,!0),q=this.q.Ma(C.Vb,C.Wb,!1,!0),r=this.q.Ma(C.Mb,C.Nb,!0,!0),S=this.q.Ma(C.Mb,C.Nb,!1,!0),P=this.q.Ma(C.Kb,C.Lb,!0,!0),C=this.q.Ma(C.Kb,C.Lb,!1,!0);if(this.b.ud||0===this.n&&0===d)var w=(b+.5|0)-b,D=(k+.5|0)-
k,b=b+w,k=k+D,p=p+w,q=q+D,r=r+w,S=S+D,P=P+w,C=C+D;0===this.n&&0===d?(p=b+m,q=k,r=p,S=k+n,P=b,C=S,e.right=1,e.bottom=1):(e.right=g/m,e.bottom=h/n);a.Rd(b,k,p,q,r,S,P,C,e);a.bd();a.scale(c,c);a.$k(-this.q.fb());a.translate((this.q.za+this.q.Ca)/-2,(this.q.Aa+this.q.Ba)/-2);a.Pc();this.hi=this.b.Vd}};var b=[];h.Ot=function(a){R(b);for(var e="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)e.length&&(b.push(e),e=""),b.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do e+=a.charAt(d),d++;while(d<a.length&&
(" "===a.charAt(d)||"\t"===a.charAt(d)));b.push(e);e=""}else d<a.length&&(e+=c,d++);e.length&&b.push(e)};var a=[];h.Qt=function(a,b,c,d,h){if(a&&a.length)if(2>=d)n(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=c.measureText(a).width;if(g<=d){n(b);b.push(e());b[0].text=a;b[0].width=g;return}}this.Rt(a,b,c,d,h)}else n(b)};h.Rt=function(f,h,c,d,m){m&&(this.Ot(f),f=b);var g="",n,r,A,k=0;for(A=0;A<f.length;A++)"\n"===f[A]?(k>=h.length&&h.push(e()),g=q(g),r=h[k],r.text=g,r.width=c.measureText(g).width,
k++,g=""):(n=g,g+=f[A],r=c.measureText(g).width,r>=d&&(k>=h.length&&h.push(e()),n=q(n),r=h[k],r.text=n,r.width=c.measureText(n).width,k++,g=f[A],m||" "!==g||(g="")));g.length&&(k>=h.length&&h.push(e()),g=q(g),r=h[k],r.text=g,r.width=c.measureText(g).width,k++);for(A=k;A<h.length;A++)a.push(h[A]);h.length=k};h.k=new function(){};m.prototype.Ht=function(a){la(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.hg=!0,this.b.ya=!0)};h.I=new m;h.Ta=new function(){}})();
function wc(e){this.b=e}
(function(){var e=wc.prototype;e.ta=function(e){this.Ga=e;this.b=e.b};var n=e.ta.prototype;n.S=function(){this.O||(this.ca=new Image,this.ca.hp=this.eo,this.b.cs(this.ca,this.co),this.Ia=this.pattern=null)};n.Gk=function(){this.O||(this.Ia=null)};n.wn=function(){if(!this.O&&this.j.length){this.Ia||(this.Ia=this.b.F.sk(this.ca,!0,this.b.Na,this.fo));var e,m;e=0;for(m=this.j.length;e<m;e++)this.j[e].Ia=this.Ia}};n.gn=function(){this.O||this.Ia||!this.b.F||(this.Ia=this.b.F.sk(this.ca,!0,this.b.Na,this.fo))};
n.oo=function(){this.O||this.j.length||!this.Ia||(this.b.F.deleteTexture(this.Ia),this.Ia=null)};n.En=function(e){e.drawImage(this.ca,0,0)};e.ea=function(e){this.type=e;this.b=e.b};n=e.ea.prototype;n.S=function(){this.visible=0===this.C[0];this.gf=new wa(0,0,0,0);this.Jp=!1;this.ca=this.type.ca;this.b.F?(this.type.gn(),this.Ia=this.type.Ia):(this.type.pattern||(this.type.pattern=this.b.Ja.createPattern(this.type.ca,"repeat")),this.pattern=this.type.pattern)};n.jd=function(){this.Jp=!1;this.ca=this.type.ca};
n.Yf=function(){this.b.F&&this.Jp&&this.Ia&&(this.b.F.deleteTexture(this.Ia),this.Ia=null)};n.Gd=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var m=this.x,h=this.y;this.b.ud&&(m=Math.round(m),h=Math.round(h));var n=-(this.fc*this.width),b=-(this.gc*this.height),a=n%this.ca.width,f=b%this.ca.height;0>a&&(a+=this.ca.width);0>f&&(f+=this.ca.height);e.translate(m,h);e.rotate(this.n);e.translate(a,f);e.fillRect(n-a,b-f,this.width,this.height);e.restore()};n.wf=function(e){this.rc(e)};
n.rc=function(e){e.Dc(this.Ia);e.bg(this.opacity);var m=this.gf;m.right=this.width/this.ca.width;m.bottom=this.height/this.ca.height;var h=this.Xb;if(this.b.ud){var n=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;e.Rd(h.pb+n,h.qb+b,h.Vb+n,h.Wb+b,h.Mb+n,h.Nb+b,h.Kb+n,h.Lb+b,m)}else e.Rd(h.pb,h.qb,h.Vb,h.Wb,h.Mb,h.Nb,h.Kb,h.Lb,m)};e.k=new function(){};e.I=new function(){};e.Ta=new function(){}})();function Z(e){this.b=e}
(function(){function e(a){t=a.x;c=a.y;d=a.z}function n(a,b,c,d){var f;f=l.length?l.pop():new q;f.init(a,b,c,d);return f}function q(){this.Vi=this.id=this.Rf=this.Qf=this.y=this.x=this.nl=this.ml=this.Zm=this.time=this.ao=0;this.$i=this.wl=!1}function m(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function h(){}function r(){}var b=Z.prototype;b.ta=function(a){this.Ga=a;
this.b=a.b};b.ta.prototype.S=function(){};b.ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.pn=!1};var a=b.ea.prototype,f={left:0,top:0};a.Gh=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 t=0,c=0,d=0,l=[];q.prototype.init=function(a,b,c,d){var f=Za();this.ao=this.Zm=this.time=f;this.ml=a;this.nl=b;this.x=a;this.y=b;this.Qf=a;this.Rf=b;this.pressure=this.height=this.width=0;this.id=c;this.Vi=d;this.$i=this.wl=!1};q.prototype.update=
function(a,b,c,d,f,e){this.Zm=this.time;this.time=a;this.Qf=this.x;this.Rf=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.$i&&15<=Va(this.ml,this.nl,this.x,this.y)&&(this.$i=!0)};q.prototype.Gw=function(a,b){!this.wl&&500<=Za()-this.ao&&!this.$i&&15>Va(this.ml,this.nl,this.x,this.y)&&(this.wl=!0,a.Wd=this.Vi,a.ih=this.id,a.zg=b,a.b.trigger(Z.prototype.k.Vs,a),a.be=this.x,a.de=this.y,a.b.trigger(Z.prototype.k.Ws,a),a.zg=0)};var g=-1E3,x=-1E3,H=-1E4;q.prototype.zq=function(a,
b){if(!this.wl){var c=Za();333>=c-this.ao&&!this.$i&&15>Va(this.ml,this.nl,this.x,this.y)&&(a.Wd=this.Vi,a.ih=this.id,a.zg=b,666>=c-H&&25>Va(g,x,this.x,this.y)?(a.b.trigger(Z.prototype.k.Ao,a),a.be=this.x,a.de=this.y,a.b.trigger(Z.prototype.k.Ts,a),x=g=-1E3,H=-1E4):(a.b.trigger(Z.prototype.k.mt,a),a.be=this.x,a.de=this.y,a.b.trigger(Z.prototype.k.nt,a),g=this.x,x=this.y,H=c),a.zg=0)}};a.S=function(){this.yw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.zg=this.ih=this.Wd=
this.de=this.be=this.Oo=this.No=this.Mo=this.Yt=this.Xt=this.Wt=this.Kk=this.Jk=this.Ik=0;this.Ux=0!==this.C[0];var a=0<this.b.ec?document:this.b.canvas,b=document;this.b.Rb?b=a=window.Canvas:this.b.Kc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Oq(a)},!1),a.addEventListener("pointermove",function(a){c.Nq(a)},!1),b.addEventListener("pointerup",function(a){c.Hk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Hk(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.Oq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Nq(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Hk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Hk(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.Rq(a)},!1),a.addEventListener("touchmove",function(a){c.Qq(a)},!1),b.addEventListener("touchend",function(a){c.xn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.xn(a,!0)},
!1));if(this.yw){var d=function(a){a=a.reading;c.Mo=a.accelerationX;c.No=a.accelerationY;c.Oo=a.accelerationZ},f=function(a){a=a.reading;c.Ik=a.yawDegrees;c.Jk=a.pitchDegrees;c.Kk=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.Ik=a.alpha||0;c.Jk=a.beta||0;c.Kk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Wt=a.accelerationIncludingGravity.x||0,c.Xt=a.accelerationIncludingGravity.y||
0,c.Yt=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Mo=a.acceleration.x||0,c.No=a.acceleration.y||0,c.Oo=a.acceleration.z||0)},!1);this.Ux&&!this.b.La&&(jQuery(document).mousemove(function(a){c.Mw(a)}),jQuery(document).mousedown(function(a){c.Lw(a)}),jQuery(document).mouseup(function(a){c.Nw(a)}));!this.b.Ig&&this.b.vc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.Lx(this)};a.Nq=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Gh(a.pointerId),c=Za();if(0<=b){var d=this.b.La?f:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.Oq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.La?f:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();
this.Wd=this.touches.length;this.ih=a.pointerId;this.touches.push(n(c,b,a.pointerId,this.Wd));this.b.Lc=!0;this.b.trigger(Z.prototype.k.Io,this);this.b.trigger(Z.prototype.k.Ml,this);this.be=c;this.de=b;this.b.trigger(Z.prototype.k.Ll,this);this.b.Lc=!1}};a.Hk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Gh(a.pointerId);this.Wd=0<=c?this.touches[c].Vi:-1;this.ih=0<=c?this.touches[c].id:-1;this.b.Lc=!0;this.b.trigger(Z.prototype.k.Ho,
this);this.b.trigger(Z.prototype.k.Ko,this);0<=c&&(b||this.touches[c].zq(this,c),100>l.length&&l.push(this.touches[c]),this.touches.splice(c,1));this.b.Lc=!1}};a.Qq=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.Gh(e.identifier),0<=g){var h=this.b.La?f:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-h.left,e.pageY-h.top,2*(e.pz||e.yz||e.iz||e.lz||0),2*(e.qz||e.zz||e.jz||e.mz||
0),e.bz||e.xz||e.hz||e.kz||0)}};a.Rq=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.La?f:jQuery(this.b.canvas).offset();Za();this.b.Lc=!0;var c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.Gh(e.identifier),-1===g){g=e.pageX-b.left;var h=e.pageY-b.top;this.Wd=this.touches.length;this.ih=e.identifier;this.touches.push(n(g,h,e.identifier,this.Wd));this.b.trigger(Z.prototype.k.Io,this);this.b.trigger(Z.prototype.k.Ml,this);this.be=g;this.de=h;this.b.trigger(Z.prototype.k.Ll,
this)}this.b.Lc=!1};a.xn=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Lc=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.Gh(f.identifier),0<=f&&(this.Wd=this.touches[f].Vi,this.ih=this.touches[f].id,this.b.trigger(Z.prototype.k.Ho,this),this.b.trigger(Z.prototype.k.Ko,this),b||this.touches[f].zq(this,f),100>l.length&&l.push(this.touches[f]),this.touches.splice(f,1));this.b.Lc=!1};a.pj=function(){return this.b.vc&&0===this.Ik&&0!==d?90*d:this.Ik};
a.az=function(){return this.b.vc&&0===this.Jk&&0!==c?90*c:this.Jk};a.gz=function(){return this.b.vc&&0===this.Kk&&0!==t?90*t:this.Kk};a.Lw=function(a){m(a)||(this.Rq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.pn=!0)};a.Mw=function(a){this.pn&&!m(a)&&this.Qq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Nw=function(a){a.preventDefault&&this.b.Gp&&!this.b.le&&a.preventDefault();this.b.Gp=!0;m(a)||(this.xn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.pn=!1)};a.Zi=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Zm=d),c.Gw(this,a)};h.prototype.Ml=function(){return!0};h.prototype.Ko=function(){return!0};h.prototype.Ll=function(a){return a?this.b.pl(a,this.be,this.de):!1};var A=[];h.prototype.Is=function(a){if(!a)return!1;var b=a.ja(),c=b.tc(),d,f,e,g,h,m;e=0;for(g=c.length;e<g;e++){var l=c[e];l.Z();h=0;for(m=this.touches.length;h<m;h++)if(f=this.touches[h],d=l.q.zb(f.x,f.y,!0),f=l.q.zb(f.x,
f.y,!1),l.Ob(d,f)){A.push(l);break}}return A.length?(b.xa=!1,Ca(b.j,A),a.Rc(),R(A),!0):!1};h.prototype.Io=function(a){a=Math.floor(a);return a===this.Wd};h.prototype.Ho=function(a){a=Math.floor(a);return a===this.Wd};h.prototype.Vs=function(){return!0};h.prototype.mt=function(){return!0};h.prototype.Ao=function(){return!0};h.prototype.Ws=function(a){return a?this.b.pl(a,this.be,this.de):!1};h.prototype.nt=function(a){return a?this.b.pl(a,this.be,this.de):!1};h.prototype.Ts=function(a){return a?this.b.pl(a,
this.be,this.de):!1};b.k=new h;b.I=new function(){};r.prototype.St=function(a,b){var c=this.zg;if(0>c||c>=this.touches.length)a.K(0);else{var d,f,e,g,h;ka(b)?(d=this.b.Kh(0),f=d.scale,e=d.Dd,g=d.Zc,h=d.n,d.scale=1,d.Dd=1,d.Zc=1,d.n=0,a.K(d.zb(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.Dd=e,d.Zc=g,d.n=h):(d=la(b)?this.b.Kh(b):this.b.zm(b))?a.K(d.zb(this.touches[c].x,this.touches[c].y,!0)):a.K(0)}};r.prototype.Tt=function(a,b){var c=this.zg;if(0>c||c>=this.touches.length)a.K(0);else{var d,
f,e,g,h;ka(b)?(d=this.b.Kh(0),f=d.scale,e=d.Dd,g=d.$c,h=d.n,d.scale=1,d.Dd=1,d.$c=1,d.n=0,a.K(d.zb(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.Dd=e,d.$c=g,d.n=h):(d=la(b)?this.b.Kh(b):this.b.zm(b))?a.K(d.zb(this.touches[c].x,this.touches[c].y,!1)):a.K(0)}};b.Ta=new r})();function xc(e){this.b=e}
(function(){function e(){}var n=xc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){this.So=this.C[0];this.To=this.C[1];this.du=this.C[2];this.cu=this.C[3];this.d.Z();this.Fl=this.d.W.left;this.Il=this.d.W.top;this.Gl=this.b.Pa-this.d.W.left;this.Hl=this.b.Oa-this.d.W.top;this.Xk=this.b.Pa-this.d.W.right;this.uj=this.b.Oa-this.d.W.bottom;this.enabled=
0!==this.C[4]};q.yb=function(){return{xleft:this.Fl,ytop:this.Il,xright:this.Gl,ybottom:this.Hl,rdiff:this.Xk,bdiff:this.uj,enabled:this.enabled}};q.Sb=function(e){this.Fl=e.xleft;this.Il=e.ytop;this.Gl=e.xright;this.Hl=e.ybottom;this.Xk=e.rdiff;this.uj=e.bdiff;this.enabled=e.enabled};q.Qa=function(){if(this.enabled){var e,h=this.d.q,n=this.d,b=this.d.W;0===this.So?(n.Z(),e=h.za+this.Fl-b.left,0!==e&&(n.x+=e,n.A())):1===this.So&&(n.Z(),e=h.Ca-this.Gl-b.left,0!==e&&(n.x+=e,n.A()));0===this.To?(n.Z(),
e=h.Aa+this.Il-b.top,0!==e&&(n.y+=e,n.A())):1===this.To&&(n.Z(),e=h.Ba-this.Hl-b.top,0!==e&&(n.y+=e,n.A()));1===this.du&&(n.Z(),e=h.Ca-this.Xk-b.right,0!==e&&(n.width+=e,0>n.width&&(n.width=0),n.A()));1===this.cu&&(n.Z(),e=h.Ba-this.uj-b.bottom,0!==e&&(n.height+=e,0>n.height&&(n.height=0),n.A()))}};n.k=new function(){};e.prototype.ng=function(e){this.enabled&&0===e?this.enabled=!1:this.enabled||0===e||(this.d.Z(),this.Fl=this.d.W.left,this.Il=this.d.W.top,this.Gl=this.b.Pa-this.d.W.left,this.Hl=this.b.Oa-
this.d.W.top,this.Xk=this.b.Pa-this.d.W.right,this.uj=this.b.Oa-this.d.W.bottom,this.enabled=!0)};n.I=new e;n.Ta=new function(){}})();function yc(e){this.b=e}
(function(){function e(){}var n=yc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){var e=this.C[0];this.gd=this.C[1];this.sc=this.C[2];this.hu=0!==this.C[3];this.Un=0!==this.C[4];this.D=Math.cos(this.d.n)*e;this.H=Math.sin(this.d.n)*e;this.Qf=this.d.x;this.Rf=this.d.y;this.Mc=this.d.n;this.ul=0;this.enabled=0!==this.C[5]};q.yb=function(){return{acc:this.gd,
g:this.sc,dx:this.D,dy:this.H,lx:this.Qf,ly:this.Rf,lka:this.Mc,t:this.ul,e:this.enabled}};q.Sb=function(e){this.gd=e.acc;this.sc=e.g;this.D=e.dx;this.H=e.dy;this.Qf=e.lx;this.Rf=e.ly;this.Mc=e.lka;this.ul=e.t;this.enabled=e.e};q.Qa=function(){if(this.enabled){var e=this.b.Ih(this.d),h,n;this.d.n!==this.Mc&&(this.Un&&(h=Va(0,0,this.D,this.H),this.D=Math.cos(this.d.n)*h,this.H=Math.sin(this.d.n)*h),this.Mc=this.d.n);0!==this.gd&&(h=Va(0,0,this.D,this.H),n=0===this.D&&0===this.H?this.d.n:Oa(0,0,this.D,
this.H),h+=this.gd*e,0>h&&(h=0),this.D=Math.cos(n)*h,this.H=Math.sin(n)*h);0!==this.sc&&(this.H+=this.sc*e);this.Qf=this.d.x;this.Rf=this.d.y;if(0!==this.D||0!==this.H)if(this.d.x+=this.D*e,this.d.y+=this.H*e,this.ul+=Va(0,0,this.D*e,this.H*e),this.Un&&(this.d.n=Oa(0,0,this.D,this.H),this.d.A(),this.Mc=this.d.n),this.d.A(),this.hu&&(h=this.b.ob(this.d)))this.b.re(this.d,h),h=Va(0,0,this.D,this.H),n=this.b.ku(this.d,this.Qf,this.Rf),this.D=Math.cos(n)*h,this.H=Math.sin(n)*h,this.d.x+=this.D*e,this.d.y+=
this.H*e,this.d.A(),this.Un&&(this.Mc=this.d.n=n,this.d.A()),this.b.ad(this.d,this.D/h,this.H/h,Math.max(2.5*h*e,30))||this.b.jr(this.d,100)}};n.k=new function(){};e.prototype.Gt=function(e){var h=Oa(0,0,this.D,this.H);this.D=Math.cos(h)*e;this.H=Math.sin(h)*e};e.prototype.xt=function(e){e=T(e);var h=Va(0,0,this.D,this.H);this.D=Math.cos(e)*h;this.H=Math.sin(e)*h};e.prototype.ng=function(e){this.enabled=1===e};n.I=new e;n.Ta=new function(){}})();function zc(e){this.b=e}
(function(){function e(){}var n=zc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){this.mb=null;this.Mk=-1;this.mode=this.Mc=this.rl=this.Ug=this.qe=this.Ei=0;var e=this;this.Cc||(this.vi=function(h){e.Ai(h)});this.b.lj(this.vi)};q.yb=function(){return{uid:this.mb?this.mb.uid:-1,pa:this.Ei,pd:this.qe,msa:this.Ug,tsa:this.rl,lka:this.Mc,m:this.mode}};
q.Sb=function(e){this.Mk=e.uid;this.Ei=e.pa;this.qe=e.pd;this.Ug=e.msa;this.rl=e.tsa;this.Mc=e.lka;this.mode=e.m};q.jd=function(){-1===this.Mk?this.mb=null:this.mb=this.b.Ef(this.Mk);this.Mk=-1};q.Ai=function(e){this.mb==e&&(this.mb=null)};q.Yf=function(){this.mb=null;this.b.lr(this.vi)};q.Qa=function(){};q.Zi=function(){if(this.mb){this.Mc!==this.d.n&&(this.Ug=La(this.Ug+(this.d.n-this.Mc)));var e=this.d.x,h=this.d.y;if(3===this.mode||4===this.mode){var n=Va(this.d.x,this.d.y,this.mb.x,this.mb.y);
if(n>this.qe||4===this.mode&&n<this.qe)h=Oa(this.mb.x,this.mb.y,this.d.x,this.d.y),e=this.mb.x+Math.cos(h)*this.qe,h=this.mb.y+Math.sin(h)*this.qe}else e=this.mb.x+Math.cos(this.mb.n+this.Ei)*this.qe,h=this.mb.y+Math.sin(this.mb.n+this.Ei)*this.qe;this.Mc=n=La(this.Ug+(this.mb.n-this.rl));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===e&&this.d.y===h||(this.d.x=e,this.d.y=h,this.d.A());0!==this.mode&&2!==this.mode||this.d.n===n||(this.d.n=n,this.d.A())}};n.k=new function(){};
e.prototype.pt=function(e,h){if(e){var n=e.Cp(this.d);n&&(this.mb=n,this.Ei=Oa(n.x,n.y,this.d.x,this.d.y)-n.n,this.qe=Va(n.x,n.y,this.d.x,this.d.y),this.Mc=this.Ug=this.d.n,this.rl=n.n,this.mode=h)}};n.I=new e;n.Ta=new function(){}})();function Ac(e){this.b=e}
(function(){function e(){}function n(){}var q=Ac.prototype;q.ta=function(e){this.behavior=e;this.b=e.b};q.ta.prototype.S=function(){};q.ea=function(e,m){this.type=e;this.behavior=e.behavior;this.d=m;this.b=e.b;this.Ti=this.jl=this.il=this.Im=this.uh=this.Bh=this.Jg=this.Kg=this.Ki=this.ji=!1;this.Eb=null;this.cn=-1;this.Ze=this.Ye=0;this.Hh=!1;this.Cf=this.ld=0;this.Sj=!0;this.H=this.D=0};var m=q.ea.prototype;m.Zr=function(){this.Wa=Math.cos(this.yg);this.Xa=Math.sin(this.yg);this.hf=Math.cos(this.yg-
Math.PI/2);this.jf=Math.sin(this.yg-Math.PI/2);this.Wa=jb(this.Wa);this.Xa=jb(this.Xa);this.hf=jb(this.hf);this.jf=jb(this.jf);this.rm=this.sc;0>this.sc&&(this.Wa*=-1,this.Xa*=-1,this.sc=Math.abs(this.sc))};m.S=function(){this.Qg=this.C[0];this.gd=this.C[1];this.tg=this.C[2];this.di=this.C[3];this.rm=this.sc=this.C[4];this.Ak=this.C[5];this.im=0!==this.C[6];this.Wm=this.C[7]/1E3;this.ru=1===this.C[8];this.enabled=0!==this.C[9];this.nh=!1;this.oh=this.b.xe(this.d);this.dn=-1;this.gg=0;this.yg=T(90);
this.Zr();var e=this;this.ru&&!this.b.La&&(jQuery(document).keydown(function(m){e.un(m)}),jQuery(document).keyup(function(m){e.vn(m)}));this.Cc||(this.vi=function(m){e.Ai(m)});this.b.lj(this.vi);this.d.J.isPlatformBehavior=!0};m.yb=function(){return{ii:this.Im,lfx:this.Ye,lfy:this.Ze,lfo:this.Eb?this.Eb.uid:-1,am:this.ld,en:this.enabled,fall:this.Cf,ft:this.Sj,dx:this.D,dy:this.H,ms:this.Qg,acc:this.gd,dec:this.tg,js:this.di,g:this.sc,g1:this.rm,mf:this.Ak,wof:this.nh,woj:this.oh?this.oh.uid:-1,ga:this.yg,
edj:this.im,cdj:this.uh,dj:this.Bh,sus:this.Wm}};m.Sb=function(e){this.Im=e.ii;this.Ye=e.lfx;this.Ze=e.lfy;this.cn=e.lfo;this.ld=e.am;this.enabled=e.en;this.Cf=e.fall;this.Sj=e.ft;this.D=e.dx;this.H=e.dy;this.Qg=e.ms;this.gd=e.acc;this.tg=e.dec;this.di=e.js;this.sc=e.g;this.rm=e.g1;this.Ak=e.mf;this.nh=e.wof;this.dn=e.woj;this.yg=e.ga;this.im=e.edj;this.uh=e.cdj;this.Bh=e.dj;this.Wm=e.sus;this.Ti=this.jl=this.il=this.Jg=this.Kg=this.Ki=this.ji=!1;this.gg=0;this.Zr()};m.jd=function(){-1===this.cn?
this.Eb=null:this.Eb=this.b.Ef(this.cn);-1===this.dn?this.oh=null:this.oh=this.b.Ef(this.dn)};m.Ai=function(e){this.Eb==e&&(this.Eb=null)};m.Yf=function(){this.Eb=null;this.b.lr(this.vi)};m.un=function(e){switch(e.which){case 38:e.preventDefault();this.Kg=!0;break;case 37:e.preventDefault();this.ji=!0;break;case 39:e.preventDefault(),this.Ki=!0}};m.vn=function(e){switch(e.which){case 38:e.preventDefault();this.Jg=this.Kg=!1;break;case 37:e.preventDefault();this.ji=!1;break;case 39:e.preventDefault(),
this.Ki=!1}};m.Zf=function(){this.Kg=this.Ki=this.ji=!1};m.pj=function(){return 0>this.sc?-1:1};m.Up=function(){var e=null,m=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Wa;this.d.y+=this.Xa;this.d.A();if(this.Eb&&this.b.Ub(this.d,this.Eb)&&(!this.b.lo(this.Eb.type,rc)||this.Eb.J.solidEnabled))return this.d.x=b,this.d.y=a,this.d.A(),this.Eb;(e=this.b.ob(this.d))||0!==this.Cf||(m=this.b.xe(this.d,!0));this.d.x=b;this.d.y=a;this.d.A();if(e){if(this.b.Ub(this.d,e))return null;this.Hh=!1;return e}if(m&&
m.length){a=e=0;for(b=m.length;e<b;e++)m[a]=m[e],this.b.Ub(this.d,m[e])||a++;if(1<=a)return this.Hh=!0,m[0]}return null};m.Qa=function(){};m.fr=function(){var e=this.b.Ih(this.d),m,b,a,f,n,c,d,l,g;this.Kg||this.Ti||(this.Jg=!1);var q=this.ji||this.il;a=this.Ki||this.jl;var H=(f=this.Kg||this.Ti)&&!this.Jg;this.Ti=this.jl=this.il=!1;if(this.enabled){this.Im&&(H=f=a=q=!1);f||(this.gg=0);l=this.Eb;g=!1;this.Sj&&((this.b.ob(this.d)||this.b.xe(this.d))&&this.b.ad(this.d,-this.Wa,-this.Xa,4,!0),this.Sj=
!1);!l||0!==this.H||l.y===this.Ze&&l.x===this.Ye||(m=l.x-this.Ye,b=l.y-this.Ze,this.d.x+=m,this.d.y+=b,this.d.A(),this.Ye=l.x,this.Ze=l.y,g=!0,this.b.ob(this.d)&&this.b.ad(this.d,-m,-b,2.5*Math.sqrt(m*m+b*b)));var A=this.Up();if(b=this.b.ob(this.d))if(n=Math.abs(this.d.width),c=Math.abs(this.d.height),this.d.J.inputPredicted)this.b.ad(this.d,-this.Wa,-this.Xa,10,!1);else if(this.b.Hn(this.d,-this.Wa,-this.Xa,c/8))this.b.re(this.d,b);else if(this.b.Hn(this.d,this.hf,this.jf,n/2))this.b.re(this.d,b);
else if(this.b.Hn(this.d,this.Wa,this.Xa,c/2))this.b.re(this.d,b);else if(this.b.jr(this.d,Math.max(n,c)/2))this.b.re(this.d,b);else return;A?(this.uh=this.Bh=!1,0<this.H&&(this.nh||(this.b.Vk(this.d,-this.Wa,-this.Xa,A),this.nh=!0),this.H=0),l!=A)?(this.Eb=A,this.Ye=A.x,this.Ze=A.y,this.b.re(this.d,A)):g&&(b=this.b.ob(this.d))&&(this.b.re(this.d,b),0!==m&&(0<m?this.b.ad(this.d,-this.hf,-this.jf):this.b.ad(this.d,this.hf,this.jf)),this.b.ad(this.d,-this.Wa,-this.Xa)):f||(this.uh=!0);if(A&&H||!A&&
this.im&&f&&this.uh&&!this.Bh)l=this.d.x,g=this.d.y,this.d.x-=this.Wa,this.d.y-=this.Xa,this.d.A(),this.b.ob(this.d)?H=!1:(this.gg=this.Wm,this.b.trigger(Ac.prototype.k.Xs,this.d),this.ld=2,this.H=-this.di,H=!0,A?this.Jg=!0:this.Bh=!0),this.d.x=l,this.d.y=g,this.d.A();A||(f&&0<this.gg?(this.H=-this.di,this.gg-=e):(this.Eb=null,this.H+=this.sc*e,this.H>this.Ak&&(this.H=this.Ak)),H&&(this.Jg=!0));this.nh=!!A;q==a&&(0>this.D?(this.D+=this.tg*e,0<this.D&&(this.D=0)):0<this.D&&(this.D-=this.tg*e,0>this.D&&
(this.D=0)));q&&!a&&(this.D=0<this.D?this.D-(this.gd+this.tg)*e:this.D-this.gd*e);a&&!q&&(this.D=0>this.D?this.D+(this.gd+this.tg)*e:this.D+this.gd*e);this.D>this.Qg?this.D=this.Qg:this.D<-this.Qg&&(this.D=-this.Qg);q=!1;0!==this.D&&(l=this.d.x,g=this.d.y,m=this.D*e*this.hf,b=this.D*e*this.jf,this.d.x+=this.hf*(1<this.D?1:-1)-this.Wa,this.d.y+=this.jf*(1<this.D?1:-1)-this.Xa,this.d.A(),f=!1,n=this.b.ob(this.d),this.d.x=l+m,this.d.y=g+b,this.d.A(),a=this.b.ob(this.d),!a&&A&&(a=this.b.xe(this.d))&&
(this.d.x=l,this.d.y=g,this.d.A(),this.b.Ub(this.d,a)?(a=null,f=!1):f=!0,this.d.x=l+m,this.d.y=g+b,this.d.A()),a?(m=Math.abs(this.D*e)+2,n||!this.b.ad(this.d,-this.Wa,-this.Xa,m,f,a))?(this.b.re(this.d,a),m=Math.max(Math.abs(this.D*e*2.5),30),this.b.ad(this.d,this.hf*(0>this.D?1:-1),this.jf*(0>this.D?1:-1),m,!1)?!A||f||this.Hh||(l=this.d.x,g=this.d.y,this.d.x+=this.Wa,this.d.y+=this.Xa,this.b.ob(this.d)?this.b.ad(this.d,-this.Wa,-this.Xa,3,!1)||(this.d.x=l,this.d.y=g,this.d.A()):(this.d.x=l,this.d.y=
g,this.d.A())):(this.d.x=l,this.d.y=g,this.d.A()),f||(this.D=0)):!n&&!H&&Math.abs(this.H)<Math.abs(this.di/4)&&(this.H=0,A||(q=!0)):(l=this.Up(),A&&!l?(b=Math.ceil(Math.abs(this.D*e))+2,l=this.d.x,g=this.d.y,this.d.x+=this.Wa*b,this.d.y+=this.Xa*b,this.d.A(),this.b.ob(this.d)||this.b.xe(this.d)?this.b.ad(this.d,-this.Wa,-this.Xa,b+2,!0):(this.d.x=l,this.d.y=g,this.d.A())):l&&(!A&&this.Hh&&(this.Eb=l,this.Ye=l.x,this.Ze=l.y,this.H=0,q=!0),0===this.H&&this.b.Vk(this.d,-this.Wa,-this.Xa,l))));if(0!==
this.H){l=this.d.x;g=this.d.y;this.d.x+=this.H*e*this.Wa;this.d.y+=this.H*e*this.Xa;m=this.d.x;a=this.d.y;this.d.A();b=this.b.ob(this.d);f=!1;if(!b&&0<this.H&&!A){if((f=0<this.Cf?null:this.b.xe(this.d,!0))&&f.length){if(this.oh){this.d.x=l;this.d.y=g;this.d.A();d=n=0;for(c=f.length;n<c;n++)f[d]=f[n],this.b.Ub(this.d,f[n])||d++;f.length=d;this.d.x=m;this.d.y=a;this.d.A()}1<=f.length&&(b=f[0])}f=!!b}b&&(this.b.re(this.d,b),this.gg=0,m=f?Math.abs(this.H*e*2.5+10):Math.max(Math.abs(this.H*e*2.5+10),30),
this.b.ad(this.d,this.Wa*(0>this.H?1:-1),this.Xa*(0>this.H?1:-1),m,f,b)?(this.Eb=b,this.Ye=b.x,this.Ze=b.y,(this.Hh=f)&&(q=!0),this.H=0):(this.d.x=l,this.d.y=g,this.d.A(),this.nh=!0,f||(this.H=0)))}3!==this.ld&&0<this.H&&!A&&(this.b.trigger(Ac.prototype.k.Us,this.d),this.ld=3);(A||q)&&0<=this.H&&(3===this.ld||q||H&&0===this.H?(this.b.trigger(Ac.prototype.k.Zs,this.d),this.ld=0===this.D&&0===this.H?0:1):(0!==this.ld&&0===this.D&&0===this.H&&(this.b.trigger(Ac.prototype.k.lt,this.d),this.ld=0),1===
this.ld||0===this.D&&0===this.H||H||(this.b.trigger(Ac.prototype.k.ct,this.d),this.ld=1)));0<this.Cf&&this.Cf--;this.oh=this.b.xe(this.d)}};e.prototype.Gs=function(){if(0!==this.H)return!1;var e=null,m=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Wa;this.d.y+=this.Xa;this.d.A();(e=this.b.ob(this.d))||0!==this.Cf||(m=this.b.xe(this.d,!0));this.d.x=b;this.d.y=a;this.d.A();if(e)return!this.b.Ub(this.d,e);if(m&&m.length){a=e=0;for(b=m.length;e<b;e++)m[a]=m[e],this.b.Ub(this.d,m[e])||a++;if(1<=a)return!0}return!1};
e.prototype.Xs=function(){return!0};e.prototype.Us=function(){return!0};e.prototype.lt=function(){return!0};e.prototype.ct=function(){return!0};e.prototype.Zs=function(){return!0};q.k=new e;n.prototype.Kt=function(e){switch(e){case 0:this.il=!0;break;case 1:this.jl=!0;break;case 2:this.Ti=!0}};n.prototype.ng=function(e){this.enabled!==(1===e)&&(this.enabled=1===e,this.enabled||(this.Eb=null))};q.I=new n;q.Ta=new function(){}})();function Gc(e){this.b=e}
(function(){function e(){}function n(){}var q=Gc.prototype;q.ta=function(a){this.behavior=a;this.b=a.b};q.ta.prototype.S=function(){};q.ea=function(a,b){this.type=a;this.behavior=a.behavior;this.d=b;this.b=a.b;this.gb=0};var m=q.ea.prototype,h=2*Math.PI,r=Math.PI/2,b=3*Math.PI/2;m.S=function(){this.rb=1===this.C[0];this.Sg=this.C[1];this.vo=this.C[2];this.Qd=this.C[3];this.Qd+=Math.random()*this.C[4];0===this.Qd?this.gb=0:(this.gb=this.C[5]/this.Qd*h,this.gb+=Math.random()*this.C[6]/this.Qd*h);this.ic=
this.C[7];this.ic+=Math.random()*this.C[8];this.Ji=this.Jf=this.ka=0;5===this.Sg&&(this.ic=T(this.ic));this.init()};m.yb=function(){return{i:this.gb,a:this.rb,mv:this.Sg,w:this.vo,p:this.Qd,mag:this.ic,iv:this.ka,iv2:this.Jf,r:this.Ji,lkv:this.xc,lkv2:this.fi}};m.Sb=function(a){this.gb=a.i;this.rb=a.a;this.Sg=a.mv;this.vo=a.w;this.Qd=a.p;this.ic=a.mag;this.ka=a.iv;this.Jf=a.iv2||0;this.Ji=a.r;this.xc=a.lkv;this.fi=a.lkv2||0};m.init=function(){switch(this.Sg){case 0:this.ka=this.d.x;break;case 1:this.ka=
this.d.y;break;case 2:this.ka=this.d.width;this.Ji=this.d.height/this.d.width;break;case 3:this.ka=this.d.width;break;case 4:this.ka=this.d.height;break;case 5:this.ka=this.d.n;break;case 6:this.ka=this.d.opacity;break;case 7:this.ka=0;break;case 8:this.ka=this.d.x,this.Jf=this.d.y}this.xc=this.ka;this.fi=this.Jf};m.De=function(a){a=a%h;switch(this.vo){case 0:return Math.sin(a);case 1:return a<=r?a/r:a<=b?1-2*(a-r)/Math.PI:(a-b)/r-1;case 2:return 2*a/h-1;case 3:return-2*a/h+1;case 4:return a<Math.PI?
-1:1}return 0};m.Qa=function(){var a=this.b.Ih(this.d);this.rb&&0!==a&&(0===this.Qd?this.gb=0:(this.gb+=a/this.Qd*h,this.gb=this.gb%h),this.Px())};m.Px=function(){switch(this.Sg){case 0:this.d.x!==this.xc&&(this.ka+=this.d.x-this.xc);this.d.x=this.ka+this.De(this.gb)*this.ic;this.xc=this.d.x;break;case 1:this.d.y!==this.xc&&(this.ka+=this.d.y-this.xc);this.d.y=this.ka+this.De(this.gb)*this.ic;this.xc=this.d.y;break;case 2:this.d.width=this.ka+this.De(this.gb)*this.ic;this.d.height=this.d.width*this.Ji;
break;case 3:this.d.width=this.ka+this.De(this.gb)*this.ic;break;case 4:this.d.height=this.ka+this.De(this.gb)*this.ic;break;case 5:this.d.n!==this.xc&&(this.ka=La(this.ka+(this.d.n-this.xc)));this.d.n=La(this.ka+this.De(this.gb)*this.ic);this.xc=this.d.n;break;case 6:this.d.opacity=this.ka+this.De(this.gb)*this.ic/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.xc&&(this.ka+=this.d.x-this.xc),this.d.y!==this.fi&&(this.Jf+=this.d.y-this.fi),
this.d.x=this.ka+Math.cos(this.d.n)*this.De(this.gb)*this.ic,this.d.y=this.Jf+Math.sin(this.d.n)*this.De(this.gb)*this.ic,this.xc=this.d.x,this.fi=this.d.y}this.d.A()};m.Pq=function(a,b){switch(this.Sg){case 2:this.ka*=b.width/a.width;this.Ji=b.height/b.width;break;case 3:this.ka*=b.width/a.width;break;case 4:this.ka*=b.height/a.height}};e.prototype.zs=function(){return this.rb};q.k=new e;n.prototype.wt=function(a){this.rb=1===a};n.prototype.Et=function(a){this.Qd=a};q.I=new n;q.Ta=new function(){}})();
function sc(e){this.b=e}(function(){function e(){}var n=sc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){this.d.J.jumpthruEnabled=0!==this.C[0]};q.Qa=function(){};n.k=new function(){};e.prototype.ng=function(e){this.d.J.jumpthruEnabled=!!e};n.I=new e})();function Hc(e){this.b=e;this.Xn=this.hl=this.Si=this.Wn=0}
(function(){function e(){}var n=Hc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){this.enabled=0!==this.C[0]};q.yb=function(){return{smg:this.behavior.Wn,ss:this.behavior.Si,se:this.behavior.hl,smd:this.behavior.Xn}};q.Sb=function(e){this.behavior.Wn=e.smg;this.behavior.Si=e.ss;this.behavior.hl=e.se;this.behavior.Xn=e.smd};q.Qa=function(){};q.Zi=function(){if(this.enabled){var e=
this.behavior.Bk.Ae(),h=0,n=0,b,a,f,q=0;b=0;for(a=e.length;b<a;b++){a:{f=e[b];for(var c=void 0,d=void 0,l=void 0,c=0,d=f.P.length;c<d;++c)if(l=f.P[c],l.behavior instanceof Hc){f=l;break a}f=null}f&&f.enabled&&(h+=e[b].x,n+=e[b].y,++q)}e=this.d.q.kb;a=this.b.ib.ba;f=b=0;a>=this.behavior.Si&&a<this.behavior.hl&&(b=this.behavior.Wn*Math.min(this.b.ig,1),0===this.behavior.Xn&&(b*=1-(a-this.behavior.Si)/(this.behavior.hl-this.behavior.Si)),a=Math.random()*Math.PI*2,f=Math.random()*b,b=Math.cos(a)*f,f*=
Math.sin(a));e.Sn(h/q+b);e.Tn(n/q+f)}};e.prototype.ng=function(e){this.enabled=0!==e};n.I=new e})();function rc(e){this.b=e}(function(){function e(){}var n=rc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){this.d.J.solidEnabled=0!==this.C[0]};q.Qa=function(){};n.k=new function(){};e.prototype.ng=function(e){this.d.J.solidEnabled=!!e};n.I=new e})();
function qc(){return[tc,Y,uc,W,Z,wc,vc,xc,zc,yc,Gc,Ac,Hc,rc,sc,V.prototype.k.Es,Z.prototype.k.Ll,W.prototype.k.Js,Y.prototype.I.ws,V.prototype.k.Eo,tc.prototype.I.Play,W.prototype.I.Ms,V.prototype.k.Fs,Y.prototype.k.Nt,V.prototype.I.Dt,V.prototype.k.yo,V.prototype.I.Bt,Z.prototype.k.Ml,V.prototype.k.qs,Z.prototype.k.Is,Y.prototype.I.tt,W.prototype.I.Lo,vc.prototype.I.Lo,V.prototype.I.It,yc.prototype.I.ng,W.prototype.I.yt,Y.prototype.k.Ds,W.prototype.I.Ft,V.prototype.Ta.yx,V.prototype.Ta.zx,Z.prototype.k.Ao,
W.prototype.k.Rs,W.prototype.I.us,zc.prototype.I.pt,tc.prototype.I.Mt,tc.prototype.I.qt,V.prototype.Ta.ep,V.prototype.I.Pt,vc.prototype.I.Ht,V.prototype.I.ut,tc.prototype.I.Lt,W.prototype.k.Hs,Gc.prototype.k.zs,Gc.prototype.I.wt,W.prototype.k.rs,W.prototype.k.os,yc.prototype.I.xt,W.prototype.I.Ct,V.prototype.I.gs,Ac.prototype.k.Gs,W.prototype.k.As,uc.prototype.k.Bo,Ac.prototype.I.Kt,V.prototype.k.vs,W.prototype.I.es,V.prototype.I.ts,W.prototype.Ta.xs,W.prototype.Ta.ys,yc.prototype.I.Gt,W.prototype.I.Ut,
W.prototype.I.At,Gc.prototype.I.Et,W.prototype.I.zt]};

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 KiB

View File

@ -0,0 +1,136 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>DeLucaRun</title>
<!-- Standardised web app manifest -->
<link rel="manifest" href="appmanifest.json" />
<!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-icon" sizes="256x256" href="icon-256.png" />
<meta name="HandheldFriendly" content="true" />
<!-- Chrome for Android web app tags -->
<meta name="mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" sizes="256x256" href="icon-256.png" />
<!-- All margins and padding must be zero for the canvas to fill the screen. -->
<style type="text/css">
* {
padding: 0;
margin: 0;
}
html, body {
background: #000;
color: #fff;
overflow: hidden;
touch-action: none;
-ms-touch-action: none;
}
canvas {
touch-action-delay: none;
touch-action: none;
-ms-touch-action: none;
}
</style>
</head>
<body>
<div id="fb-root"></div>
<script>
// Issue a warning if trying to preview an exported project on disk.
(function(){
// Check for running exported on file protocol
if (window.location.protocol.substr(0, 4) === "file")
{
alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
}
})();
</script>
<!-- The canvas must be inside a div called c2canvasdiv -->
<div id="c2canvasdiv">
<!-- The canvas the project will render to. If you change its ID, don't forget to change the
ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
<canvas id="c2canvas" width="854" height="480">
<!-- This text is displayed if the visitor's browser does not support HTML5.
You can change it, but it is a good idea to link to a description of a browser
and provide some links to download some popular HTML5-compatible browsers. -->
<h1>Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. <a href="https://www.whatbrowser.org">What is a browser?</a>
<br/><br/><a href="https://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br/>
<a href="https://www.mozilla.com/firefox/">Mozilla Firefox</a><br/>
<a href="https://www.google.com/chrome/">Google Chrome</a><br/>
<a href="https://www.apple.com/safari/download/">Apple Safari</a></h1>
</canvas>
</div>
<!-- Pages load faster with scripts at the bottom -->
<!-- Construct 2 exported games require jQuery. -->
<script src="jquery-3.4.1.min.js"></script>
<!-- The runtime script. You can rename it, but don't forget to rename the reference here as well.
This file will have been minified and obfuscated if you enabled "Minify script" during export. -->
<script src="c2runtime.js"></script>
<script>
// Start the Construct 2 project running on window load.
jQuery(document).ready(function ()
{
// Create new runtime using the c2canvas
cr_createRuntime("c2canvas");
});
// Pause and resume on page becoming visible/invisible
function onVisibilityChanged() {
if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
cr_setSuspended(true);
else
cr_setSuspended(false);
};
document.addEventListener("visibilitychange", onVisibilityChanged, false);
document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
function OnRegisterSWError(e)
{
console.warn("Failed to register service worker: ", e);
};
// Runtime calls this global method when ready to start caching (i.e. after startup).
// This registers the service worker which caches resources for offline support.
window.C2_RegisterSW = function C2_RegisterSW()
{
if (!navigator.serviceWorker)
return; // no SW support, ignore call
try {
navigator.serviceWorker.register("sw.js", { scope: "./" })
.then(function (reg)
{
console.log("Registered service worker on " + reg.scope);
})
.catch(OnRegisterSWError);
}
catch (e)
{
OnRegisterSWError(e);
}
};
</script>
</body>
</html>

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB