// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,z,da,ea,D,O,fa,ga,ia,ja,na,oa,S,pa,ra,T,ua,va,wa,xa,U,ya,za,Aa,Ba,Ca,V,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,W,Sb,Tb={},Ub={};"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,h,d){this.set(a,c,h,d)}function p(){this.pb=this.ob=this.sb=this.rb=this.Ab=this.zb=this.ab=this.$a=0}function l(a,c,h,d){a<c?h<d?(v=a<h?a:h,w=c>d?c:d):(v=a<d?a:d,w=c>h?c:h):h<d?(v=c<h?c:h,w=a>d?a:d):(v=c<d?c:d,w=a>h?a:h)}function q(){this.items=this.Zc=null;this.Fg=0;ka&&(this.Zc=new Set);this.Tf=[];this.Hd=!0}function t(a){E[la++]=a}function u(){this.oa=this.ej=this.y=this.zj=0}function b(a){this.Ja=[];this.yh=this.Ah=this.Bh=this.zh=0;this.gh(a)}function a(a,c){this.Dj=
a;this.Cj=c;this.cells={}}function f(a,c){this.Dj=a;this.Cj=c;this.cells={}}function k(a,c,h){var d;return Q.length?(d=Q.pop(),d.hk=a,d.x=c,d.y=h,d):new aa(a,c,h)}function c(a,c,h){this.hk=a;this.x=c;this.y=h;this.Qa=new ba}function d(a,c,h){var d;return X.length?(d=X.pop(),d.hk=a,d.x=c,d.y=h,d):new ca(a,c,h)}function r(a,c,h){this.hk=a;this.x=c;this.y=h;this.Qa=[];this.of=!0;this.Xc=new ba;this.Zf=!1}function g(a,c){return a.Nc-c.Nc}z=function(a){window.console&&window.console.log&&window.console.log(a)};
da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};D=function(a){return"number"===typeof a};O=function(a){return"string"===typeof a};fa=function(a){return 0<a&&0===(a-1&a)};ga=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};ia=function(a){return 0>a?-a:a};ja=function(a,c){return a>c?a:c};na=function(a,c){return a<c?a:c};oa=Math.PI;S=function(a){return 0<=a?a|0:(a|0)-1};pa=function(a){var c=a|0;return c===a?c:c+1};
ra=function(a,c,h,d,f,m,g,k){var b,y,A,B;a<h?(y=a,b=h):(y=h,b=a);f<g?(B=f,A=g):(B=g,A=f);if(b<B||y>A)return!1;c<d?(y=c,b=d):(y=d,b=c);m<k?(B=m,A=k):(B=k,A=m);if(b<B||y>A)return!1;b=f-a+g-h;y=m-c+k-d;a=h-a;c=d-c;f=g-f;m=k-m;k=ia(c*f-m*a);return ia(f*y-m*b)>k?!1:ia(a*y-c*b)<=k};e.prototype.set=function(a,c,h,d){this.left=a;this.top=c;this.right=h;this.bottom=d};e.prototype.fg=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.us=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.vs=function(a,c,h){return!(a.right+
c<this.left||a.bottom+h<this.top||a.left+c>this.right||a.top+h>this.bottom)};e.prototype.eb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.kg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};T=e;p.prototype.fh=function(a){this.$a=a.left;this.ab=a.top;this.zb=a.right;this.Ab=a.top;this.rb=a.right;this.sb=a.bottom;this.ob=a.left;this.pb=a.bottom};p.prototype.yo=function(a,c){if(0===c)this.fh(a);else{var h=
Math.sin(c),d=Math.cos(c),f=a.left*h,m=a.top*h,g=a.right*h,h=a.bottom*h,k=a.left*d,b=a.top*d,y=a.right*d,d=a.bottom*d;this.$a=k-m;this.ab=b+f;this.zb=y-m;this.Ab=b+g;this.rb=y-h;this.sb=d+g;this.ob=k-h;this.pb=d+f}};p.prototype.offset=function(a,c){this.$a+=a;this.ab+=c;this.zb+=a;this.Ab+=c;this.rb+=a;this.sb+=c;this.ob+=a;this.pb+=c;return this};var v=0,w=0;p.prototype.$l=function(a){l(this.$a,this.zb,this.rb,this.ob);a.left=v;a.right=w;l(this.ab,this.Ab,this.sb,this.pb);a.top=v;a.bottom=w};p.prototype.eb=
function(a,c){var h=this.$a,d=this.ab,f=this.zb-h,m=this.Ab-d,g=this.rb-h,k=this.sb-d,b=a-h,y=c-d,A=f*f+m*m,B=f*g+m*k,m=f*b+m*y,r=g*g+k*k,e=g*b+k*y,n=1/(A*r-B*B),f=(r*m-B*e)*n,A=(A*e-B*m)*n;if(0<=f&&0<A&&1>f+A)return!0;f=this.ob-h;m=this.pb-d;A=f*f+m*m;B=f*g+m*k;m=f*b+m*y;n=1/(A*r-B*B);f=(r*m-B*e)*n;A=(A*e-B*m)*n;return 0<=f&&0<A&&1>f+A};p.prototype.Fd=function(a,c){if(c)switch(a){case 0:return this.$a;case 1:return this.zb;case 2:return this.rb;case 3:return this.ob;case 4:return this.$a;default:return this.$a}else switch(a){case 0:return this.ab;
case 1:return this.Ab;case 2:return this.sb;case 3:return this.pb;case 4:return this.ab;default:return this.ab}};p.prototype.Gn=function(){return(this.$a+this.zb+this.rb+this.ob)/4};p.prototype.Hn=function(){return(this.ab+this.Ab+this.sb+this.pb)/4};p.prototype.Lm=function(a){var c=a.Gn(),h=a.Hn();if(this.eb(c,h))return!0;c=this.Gn();h=this.Hn();if(a.eb(c,h))return!0;var d,f,m,g,k,b,y,A;for(y=0;4>y;y++)for(A=0;4>A;A++)if(c=this.Fd(y,!0),h=this.Fd(y,!1),d=this.Fd(y+1,!0),f=this.Fd(y+1,!1),m=a.Fd(A,
!0),g=a.Fd(A,!1),k=a.Fd(A+1,!0),b=a.Fd(A+1,!1),ra(c,h,d,f,m,g,k,b))return!0;return!1};ua=p;va=function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h]);return a};wa=function(a,c){var h,d;c=S(c);if(!(0>c||c>=a.length)){h=c;for(d=a.length-1;h<d;h++)a[h]=a[h+1];xa(a,d)}};xa=function(a,c){a.length=c};U=function(a){xa(a,0)};ya=function(a,c){U(a);var h,d;h=0;for(d=c.length;h<d;++h)a[h]=c[h]};za=function(a,c){a.push.apply(a,c)};Aa=function(a,c){var h,d;h=0;for(d=a.length;h<d;++h)if(a[h]===c)return h;
return-1};Ba=function(a,c){var h=Aa(a,c);-1!==h&&wa(a,h)};Ca=function(a,c,h){return a<c?c:a>h?h:a};V=function(a){return a/(180/oa)};Da=function(a){return 180/oa*a};Ea=function(a){a%=360;0>a&&(a+=360);return a};Fa=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ga=function(a){return Ea(Da(a))};Ha=function(a){return Fa(V(a))};Ia=function(a,c,h,d){return Math.atan2(d-c,h-a)};Ja=function(a,c){if(a===c)return 0;var h=Math.sin(a),d=Math.cos(a),f=Math.sin(c),m=Math.cos(c),h=h*f+d*m;return 1<=h?0:-1>=h?oa:Math.acos(h)};
Ka=function(a,c,h){var d=Math.sin(a),f=Math.cos(a),m=Math.sin(c),g=Math.cos(c);return Math.acos(d*m+f*g)>h?0<f*m-d*g?Fa(a+h):Fa(a-h):Fa(c)};La=function(a,c){var h=Math.sin(a),d=Math.cos(a),f=Math.sin(c),m=Math.cos(c);return 0>=d*f-h*m};Ma=function(a,c,h,d){a=h-a;c=d-c;return Math.sqrt(a*a+c*c)};Na=function(a,c){return!a!==!c};Oa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Pa=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var n=+new Date;Qa=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()-n};var h=!1,m=h=!1,x=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),m=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta);
var ka=!h&&!x&&!m&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.nd()?!1:ka?this.Zc.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(ka)this.Zc.has(a)||(this.Zc.add(a),this.Hd=!1);else{var c=a.toString(),h=this.items;h?h.hasOwnProperty(c)||(h[c]=a,this.Fg++,this.Hd=!1):(this.items={},this.items[c]=a,this.Fg=1,this.Hd=!1)}};q.prototype.remove=function(a){if(!this.nd())if(ka)this.Zc.has(a)&&(this.Zc["delete"](a),
this.Hd=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.Fg--,this.Hd=!1)}};q.prototype.clear=function(){this.nd()||(ka?this.Zc.clear():(this.items=null,this.Fg=0),U(this.Tf),this.Hd=!0)};q.prototype.nd=function(){return 0===this.count()};q.prototype.count=function(){return ka?this.Zc.size:this.Fg};var E=null,la=0;q.prototype.Qt=function(){if(!this.Hd){if(ka)U(this.Tf),E=this.Tf,la=0,this.Zc.forEach(t),E=null,la=0;else{var a=this.Tf;U(a);var c,h=0,d=this.items;
if(d)for(c in d)d.hasOwnProperty(c)&&(a[h++]=d[c])}this.Hd=!0}};q.prototype.ge=function(){this.Qt();return this.Tf};ba=q;new ba;Ra=function(a,c){ka?Sa(a,c.Zc):Ta(a,c.ge())};Sa=function(a,c){var h,d,f,m;d=h=0;for(f=a.length;h<f;++h)m=a[h],c.has(m)||(a[d++]=m);xa(a,d)};Ta=function(a,c){var h,d,f,m;d=h=0;for(f=a.length;h<f;++h)m=a[h],-1===Aa(c,m)&&(a[d++]=m);xa(a,d)};u.prototype.add=function(a){this.y=a-this.zj;this.ej=this.oa+this.y;this.zj=this.ej-this.oa-this.y;this.oa=this.ej};u.prototype.reset=
function(){this.oa=this.ej=this.y=this.zj=0};Ua=u;Va=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.gh=function(a){this.ho=a;this.Ic=a.length/2;this.Ja.length=a.length;this.Dh=this.Eh=-1;this.em=0};b.prototype.lf=function(){return!this.ho.length};b.prototype.V=function(){for(var a=this.Ja,c=a[0],h=c,d=a[1],f=d,m,g,k=1,b=this.Ic;k<b;++k)g=2*k,m=a[g],g=a[g+1],m<c&&(c=m),m>h&&(h=m),g<d&&(d=g),g>f&&(f=g);this.zh=c;this.Ah=h;this.Bh=d;this.yh=f};b.prototype.fh=function(a,
c,h){this.Ja.length=8;this.Ic=4;var d=this.Ja;d[0]=a.left-c;d[1]=a.top-h;d[2]=a.right-c;d[3]=a.top-h;d[4]=a.right-c;d[5]=a.bottom-h;d[6]=a.left-c;d[7]=a.bottom-h;this.Eh=a.right-a.left;this.Dh=a.bottom-a.top;this.V()};b.prototype.Lf=function(a,c,h,d,f){this.Ja.length=8;this.Ic=4;var m=this.Ja;m[0]=a.$a-c;m[1]=a.ab-h;m[2]=a.zb-c;m[3]=a.Ab-h;m[4]=a.rb-c;m[5]=a.sb-h;m[6]=a.ob-c;m[7]=a.pb-h;this.Eh=d;this.Dh=f;this.V()};b.prototype.xo=function(a){this.Ic=a.Ic;ya(this.Ja,a.Ja);this.zh=a.zh;this.Bh-a.Bh;
this.Ah=a.Ah;this.yh=a.yh};b.prototype.Xe=function(a,c,h){if(this.Eh!==a||this.Dh!==c||this.em!==h){this.Eh=a;this.Dh=c;this.em=h;var d,m,f,g,k,b=0,y=1,A=this.ho,B=this.Ja;0!==h&&(b=Math.sin(h),y=Math.cos(h));h=0;for(f=this.Ic;h<f;h++)d=2*h,m=d+1,g=A[d]*a,k=A[m]*c,B[d]=g*y-k*b,B[m]=k*y+g*b;this.V()}};b.prototype.eb=function(a,c){var h=this.Ja;if(a===h[0]&&c===h[1])return!0;var d,m,f,g=this.Ic,k=this.zh-110,b=this.Bh-101,y=this.Ah+131,A=this.yh+120,B,r,e=0,n=0;for(d=0;d<g;d++)m=2*d,f=(d+1)%g*2,B=h[m],
m=h[m+1],r=h[f],f=h[f+1],ra(k,b,a,c,B,m,r,f)&&e++,ra(y,A,a,c,B,m,r,f)&&n++;return 1===e%2||1===n%2};b.prototype.yg=function(a,c,h){var d=a.Ja,m=this.Ja;if(this.eb(d[0]+c,d[1]+h)||a.eb(m[0]-c,m[1]-h))return!0;var f,g,k,b,y,A,B,r,e,n,x,v;f=0;for(b=this.Ic;f<b;f++)for(g=2*f,k=(f+1)%b*2,r=m[g],g=m[g+1],e=m[k],n=m[k+1],k=0,B=a.Ic;k<B;k++)if(y=2*k,A=(k+1)%B*2,x=d[y]+c,y=d[y+1]+h,v=d[A]+c,A=d[A+1]+h,ra(r,g,e,n,x,y,v,A))return!0;return!1};Wa=b;a.prototype.Od=function(a,c,h){var d;d=this.cells[a];return d?
(d=d[c])?d:h?(d=k(this,a,c),this.cells[a][c]=d):null:h?(d=k(this,a,c),this.cells[a]={},this.cells[a][c]=d):null};a.prototype.mb=function(a){return S(a/this.Dj)};a.prototype.nb=function(a){return S(a/this.Cj)};a.prototype.update=function(a,c,h){var d,m,f,g,k;if(c)for(d=c.left,m=c.right;d<=m;++d)for(f=c.top,g=c.bottom;f<=g;++f)if(!h||!h.eb(d,f))if(k=this.Od(d,f,!1))k.remove(a),k.nd()&&(k.Qa.clear(),1E3>Q.length&&Q.push(k),this.cells[d][f]=null);if(h)for(d=h.left,m=h.right;d<=m;++d)for(f=h.top,g=h.bottom;f<=
g;++f)c&&c.eb(d,f)||this.Od(d,f,!0).mk(a)};a.prototype.Pi=function(a,c){var h,d,f,m,g,k;h=this.mb(a.left);f=this.nb(a.top);d=this.mb(a.right);for(g=this.nb(a.bottom);h<=d;++h)for(m=f;m<=g;++m)(k=this.Od(h,m,!1))&&k.dump(c)};Xa=a;f.prototype.Od=function(a,c,h){var f;f=this.cells[a];return f?(f=f[c])?f:h?(f=d(this,a,c),this.cells[a][c]=f):null:h?(f=d(this,a,c),this.cells[a]={},this.cells[a][c]=f):null};f.prototype.mb=function(a){return S(a/this.Dj)};f.prototype.nb=function(a){return S(a/this.Cj)};f.prototype.update=
function(a,c,h){var d,f,m,g,k;if(c)for(d=c.left,f=c.right;d<=f;++d)for(m=c.top,g=c.bottom;m<=g;++m)if(!h||!h.eb(d,m))if(k=this.Od(d,m,!1))k.remove(a),k.nd()&&(k.reset(),1E3>X.length&&X.push(k),this.cells[d][m]=null);if(h)for(d=h.left,f=h.right;d<=f;++d)for(m=h.top,g=h.bottom;m<=g;++m)c&&c.eb(d,m)||this.Od(d,m,!0).mk(a)};f.prototype.Pi=function(a,c,h,d,f){var m,g;a=this.mb(a);c=this.nb(c);h=this.mb(h);for(m=this.nb(d);a<=h;++a)for(d=c;d<=m;++d)(g=this.Od(a,d,!1))&&g.dump(f)};f.prototype.Os=function(a){var c,
h,d,f,m;c=a.left;d=a.top;h=a.right;for(f=a.bottom;c<=h;++c)for(a=d;a<=f;++a)if(m=this.Od(c,a,!1))m.of=!1};Ya=f;var Q=[];c.prototype.nd=function(){return this.Qa.nd()};c.prototype.mk=function(a){this.Qa.add(a)};c.prototype.remove=function(a){this.Qa.remove(a)};c.prototype.dump=function(a){za(a,this.Qa.ge())};aa=c;var X=[];r.prototype.nd=function(){if(!this.Qa.length)return!0;if(this.Qa.length>this.Xc.count())return!1;this.Uj();return!0};r.prototype.mk=function(a){this.Xc.contains(a)?(this.Xc.remove(a),
this.Xc.nd()&&(this.Zf=!1)):this.Qa.length?(this.Qa[this.Qa.length-1].Tc()>a.Tc()&&(this.of=!1),this.Qa.push(a)):(this.Qa.push(a),this.of=!0)};r.prototype.remove=function(a){this.Xc.add(a);this.Zf=!0;30<=this.Xc.count()&&this.Uj()};r.prototype.Uj=function(){this.Zf&&(this.Xc.count()===this.Qa.length?this.reset():(Ra(this.Qa,this.Xc),this.Xc.clear(),this.Zf=!1))};r.prototype.Xq=function(){this.of||(this.Qa.sort(g),this.of=!0)};r.prototype.reset=function(){U(this.Qa);this.of=!0;this.Xc.clear();this.Zf=
!1};r.prototype.dump=function(a){this.Uj();this.Xq();this.Qa.length&&a.push(this.Qa)};ca=r;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(a){return 0>=a||11<=a?"source-over":G[a-1]};ab=function(a,c,h){if(h)switch(a.jb=h.ONE,a.fb=h.ONE_MINUS_SRC_ALPHA,c){case 1:a.jb=h.ONE;a.fb=h.ONE;break;case 3:a.jb=h.ONE;a.fb=h.ZERO;break;case 4:a.jb=h.ONE_MINUS_DST_ALPHA;a.fb=h.ONE;break;case 5:a.jb=h.DST_ALPHA;a.fb=
h.ZERO;break;case 6:a.jb=h.ZERO;a.fb=h.SRC_ALPHA;break;case 7:a.jb=h.ONE_MINUS_DST_ALPHA;a.fb=h.ZERO;break;case 8:a.jb=h.ZERO;a.fb=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.jb=h.DST_ALPHA;a.fb=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.jb=h.ONE_MINUS_DST_ALPHA,a.fb=h.SRC_ALPHA}};bb=function(a){return Math.round(1E6*a)/1E6};cb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};db=function(a){a=a.target;return!a||a===document||a===
window||document&&document.body&&a===document.body||cb(a.tagName,"canvas")?!0:!1}})();var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(e){var p=new Vb(3);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2]);return p}function Xb(e){var p=new Vb(16);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2],p[3]=e[3],p[4]=e[4],p[5]=e[5],p[6]=e[6],p[7]=e[7],p[8]=e[8],p[9]=e[9],p[10]=e[10],p[11]=e[11],p[12]=e[12],p[13]=e[13],p[14]=e[14],p[15]=e[15]);return p}
function Yb(e,p){p[0]=e[0];p[1]=e[1];p[2]=e[2];p[3]=e[3];p[4]=e[4];p[5]=e[5];p[6]=e[6];p[7]=e[7];p[8]=e[8];p[9]=e[9];p[10]=e[10];p[11]=e[11];p[12]=e[12];p[13]=e[13];p[14]=e[14];p[15]=e[15]}function Zb(e,p){var l=p[0],q=p[1];p=p[2];e[0]*=l;e[1]*=l;e[2]*=l;e[3]*=l;e[4]*=q;e[5]*=q;e[6]*=q;e[7]*=q;e[8]*=p;e[9]*=p;e[10]*=p;e[11]*=p}
function $b(e,p,l,q){q||(q=Xb());var t,u,b,a,f,k,c,d,r=e[0],g=e[1];e=e[2];u=l[0];b=l[1];t=l[2];l=p[1];k=p[2];r===p[0]&&g===l&&e===k?(e=q,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):(l=r-p[0],k=g-p[1],c=e-p[2],d=1/Math.sqrt(l*l+k*k+c*c),l*=d,k*=d,c*=d,p=b*c-t*k,t=t*l-u*c,u=u*k-b*l,(d=Math.sqrt(p*p+t*t+u*u))?(d=1/d,p*=d,t*=d,u*=d):u=t=p=0,b=k*u-c*t,a=c*p-l*u,f=l*t-k*p,(d=Math.sqrt(b*b+a*a+f*f))?(d=1/d,b*=d,a*=d,f*=d):f=a=b=0,
q[0]=p,q[1]=b,q[2]=l,q[3]=0,q[4]=t,q[5]=a,q[6]=k,q[7]=0,q[8]=u,q[9]=f,q[10]=c,q[11]=0,q[12]=-(p*r+t*g+u*e),q[13]=-(b*r+a*g+f*e),q[14]=-(l*r+k*g+c*e),q[15]=1)}
(function(){function e(a,f,k){this.Sd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.fa=!!k;this.gi=this.zg=!1;this.Kj=0;this.sj=1;this.Bl=1E3;this.Yt=(this.Bl-this.sj)/32768;this.Aj=Wb([0,0,100]);this.nn=Wb([0,0,0]);this.Uo=Wb([0,1,0]);this.rh=Wb([1,1,1]);this.mm=!0;this.Bi=Xb();this.Wb=Xb();this.yk=Xb();this.Jj=Xb();this.r=a;this.version=0===this.r.getParameter(this.r.VERSION).indexOf("WebGL 2")?2:1;this.Hm()}function p(a,f,k){this.r=a;this.hh=
f;this.name=k;this.jc=a.getAttribLocation(f,"aPos");this.Zd=a.getAttribLocation(f,"aTex");this.ln=a.getUniformLocation(f,"matP");this.wi=a.getUniformLocation(f,"matMV");this.xf=a.getUniformLocation(f,"opacity");this.Fk=a.getUniformLocation(f,"colorFill");this.mn=a.getUniformLocation(f,"samplerFront");this.Og=a.getUniformLocation(f,"samplerBack");this.Ge=a.getUniformLocation(f,"destStart");this.Fe=a.getUniformLocation(f,"destEnd");this.Qg=a.getUniformLocation(f,"seconds");this.Hk=a.getUniformLocation(f,
"pixelWidth");this.Gk=a.getUniformLocation(f,"pixelHeight");this.Ng=a.getUniformLocation(f,"layerScale");this.Mg=a.getUniformLocation(f,"layerAngle");this.Rg=a.getUniformLocation(f,"viewOrigin");this.Pg=a.getUniformLocation(f,"scrollPos");this.qs=!!(this.Hk||this.Gk||this.Qg||this.Og||this.Ge||this.Fe||this.Ng||this.Mg||this.Rg||this.Pg);this.wn=this.xn=-999;this.Ai=1;this.sn=this.rn=0;this.un=this.qn=this.pn=1;this.An=this.zn=this.yn=this.Cn=this.Bn=this.tn=0;this.xk=[];this.vn=Xb();this.xf&&a.uniform1f(this.xf,
1);this.Fk&&a.uniform4f(this.Fk,1,1,1,1);this.mn&&a.uniform1i(this.mn,0);this.Og&&a.uniform1i(this.Og,1);this.Ge&&a.uniform2f(this.Ge,0,0);this.Fe&&a.uniform2f(this.Fe,1,1);this.Ng&&a.uniform1f(this.Ng,1);this.Mg&&a.uniform1f(this.Mg,0);this.Rg&&a.uniform2f(this.Rg,0,0);this.Pg&&a.uniform2f(this.Pg,0,0);this.Qg&&a.uniform1f(this.Qg,0);this.ue=!1}function l(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 q(a,f){this.type=a;this.u=f;this.r=f.r;this.Uc=this.lb=this.Wn=0;this.M=this.sc=null;this.zo=[]}var t=Xb();e.prototype.Hm=function(){var a=this.r,f;this.Zm=1;this.Ae=this.Vd=null;this.Kh=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.an=a.ONE;this.Xm=a.ONE_MINUS_SRC_ALPHA;this.qj=new Float32Array(8E3*(this.fa?3:2));this.gj=new Float32Array(16E3);this.ao=new Float32Array(32E3);this.Sk=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Sk);a.bufferData(a.ARRAY_BUFFER,this.ao.byteLength,a.DYNAMIC_DRAW);this.qh=Array(4);this.mh=Array(4);for(f=0;4>f;f++)this.qh[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.qh[f]),a.bufferData(a.ARRAY_BUFFER,this.qj.byteLength,a.DYNAMIC_DRAW),this.mh[f]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.mh[f]),a.bufferData(a.ARRAY_BUFFER,this.gj.byteLength,a.DYNAMIC_DRAW);this.fd=0;this.ss=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ss);for(var k=new Uint16Array(12E3),c=f=0;12E3>f;)k[f++]=c,k[f++]=c+1,k[f++]=c+2,k[f++]=c,k[f++]=c+2,k[f++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,k,a.STATIC_DRAW);this.Tk=this.Of=this.xd=0;this.ua=[];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}";k=this.gg({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.ua.push(k);k=this.gg({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.ua.push(k);k=this.gg({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.ua.push(k);k=this.gg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
f,"<fill>");this.ua.push(k);for(var d in ac)ac.hasOwnProperty(d)&&this.ua.push(this.gg(ac[d],f,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Gd=[];this.dd=0;this.ib=!1;this.jm=this.Ig=-1;this.Ze=null;this.Tj=a.createFramebuffer();this.Mh=this.Qi=null;this.Yl=!1;this.fa&&(this.Mh=a.createRenderbuffer());this.fe=Wb([0,0,0]);this.Dn=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Dn&&(this.Dn=2048);this.yb(0)};p.prototype.xl=function(a){l(this.vn,a)||(Yb(a,this.vn),this.r.uniformMatrix4fv(this.wi,
!1,a))};e.prototype.gg=function(a,f,k){var c=this.r,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 b=c.createShader(c.VERTEX_SHADER);c.shaderSource(b,f);c.compileShader(b);if(!c.getShaderParameter(b,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(b),c.deleteShader(d),c.deleteShader(b),Error("error compiling vertex shader: "+a);f=
c.createProgram();c.attachShader(f,d);c.attachShader(f,b);c.linkProgram(f);if(!c.getProgramParameter(f,c.LINK_STATUS))throw a=c.getProgramInfoLog(f),c.deleteShader(d),c.deleteShader(b),c.deleteProgram(f),Error("error linking shader program: "+a);c.useProgram(f);c.deleteShader(d);c.deleteShader(b);d=new p(c,f,k);d.Rj=a.Rj||0;d.Sj=a.Sj||0;d.im=!!a.im;d.Gc=!!a.Gc;d.Wl=!!a.Wl;d.N=a.N||[];a=0;for(b=d.N.length;a<b;a++)d.N[a][1]=c.getUniformLocation(f,d.N[a][0]),d.xk.push(0),c.uniform1f(d.N[a][1],0);return d};
e.prototype.fk=function(a){var f,k;f=0;for(k=this.ua.length;f<k;f++)if(this.ua[f].name===a)return f;return-1};e.prototype.fo=function(a,f,k){var c=this.Wb,d=this.Bi,b=[0,0,0,0,0,0,0,0];b[0]=c[0]*a+c[4]*f+c[12];b[1]=c[1]*a+c[5]*f+c[13];b[2]=c[2]*a+c[6]*f+c[14];b[3]=c[3]*a+c[7]*f+c[15];b[4]=d[0]*b[0]+d[4]*b[1]+d[8]*b[2]+d[12]*b[3];b[5]=d[1]*b[0]+d[5]*b[1]+d[9]*b[2]+d[13]*b[3];b[6]=d[2]*b[0]+d[6]*b[1]+d[10]*b[2]+d[14]*b[3];b[7]=-b[2];0!==b[7]&&(b[7]=1/b[7],b[4]*=b[7],b[5]*=b[7],b[6]*=b[7],k[0]=(.5*b[4]+
.5)*this.width,k[1]=(.5*b[5]+.5)*this.height)};e.prototype.Ne=function(a,f,b){if(this.width!==a||this.height!==f||b){this.Md();b=this.r;this.width=a;this.height=f;b.viewport(0,0,a,f);$b(this.Aj,this.nn,this.Uo,this.Wb);if(this.fa){var c=-a/2;a=a/2;var d=f/2;f=-f/2;var e=this.sj,g=this.Bl,v=this.Bi;v||(v=Xb());var w=a-c,n=f-d,h=g-e;v[0]=2/w;v[1]=0;v[2]=0;v[3]=0;v[4]=0;v[5]=2/n;v[6]=0;v[7]=0;v[8]=0;v[9]=0;v[10]=-2/h;v[11]=0;v[12]=-(c+a)/w;v[13]=-(f+d)/n;v[14]=-(g+e)/h;v[15]=1;this.rh[0]=1;this.rh[1]=
1}else f=a/f,c=this.sj,a=this.Bl,v=this.Bi,g=c*Math.tan(45*Math.PI/360),f*=g,d=-f,e=-g,v||(v=Xb()),w=f-d,n=g-e,h=a-c,v[0]=2*c/w,v[1]=0,v[2]=0,v[3]=0,v[4]=0,v[5]=2*c/n,v[6]=0,v[7]=0,v[8]=(f+d)/w,v[9]=(g+e)/n,v[10]=-(a+c)/h,v[11]=-1,v[12]=0,v[13]=0,v[14]=-(a*c*2)/h,v[15]=0,c=[0,0],a=[0,0],this.fo(0,0,c),this.fo(1,1,a),this.rh[0]=1/(a[0]-c[0]),this.rh[1]=-1/(a[1]-c[1]);c=0;for(a=this.ua.length;c<a;c++)d=this.ua[c],d.ue=!1,d.ln&&(b.useProgram(d.hh),b.uniformMatrix4fv(d.ln,!1,this.Bi));b.useProgram(this.ua[this.Ig].hh);
b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Ae=this.Vd=null;this.Mh&&(b.bindFramebuffer(b.FRAMEBUFFER,this.Tj),b.bindRenderbuffer(b.RENDERBUFFER,this.Mh),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Yl||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Mh),this.Yl=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),
this.Qi=null)}};e.prototype.pc=function(){$b(this.Aj,this.nn,this.Uo,this.Wb);Zb(this.Wb,this.rh)};e.prototype.translate=function(a,f){if(0!==a||0!==f){this.fe[0]=a;this.fe[1]=f;this.fe[2]=0;var b=this.Wb,c=this.fe,d=c[0],e=c[1],c=c[2];b[12]=b[0]*d+b[4]*e+b[8]*c+b[12];b[13]=b[1]*d+b[5]*e+b[9]*c+b[13];b[14]=b[2]*d+b[6]*e+b[10]*c+b[14];b[15]=b[3]*d+b[7]*e+b[11]*c+b[15]}};e.prototype.scale=function(a,f){if(1!==a||1!==f)this.fe[0]=a,this.fe[1]=f,this.fe[2]=1,Zb(this.Wb,this.fe)};e.prototype.Si=function(a){if(0!==
a){var f=this.Wb,b,c=Math.sin(a);a=Math.cos(a);var d=f[0],e=f[1],g=f[2],v=f[3],w=f[4],n=f[5],h=f[6],m=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+w*c;b[1]=e*a+n*c;b[2]=g*a+h*c;b[3]=v*a+m*c;b[4]=d*-c+w*a;b[5]=e*-c+n*a;b[6]=g*-c+h*a;b[7]=v*-c+m*a}};e.prototype.Zb=function(){if(!l(this.yk,this.Wb)){var a=this.Jb();a.type=5;a.M?Yb(this.Wb,a.M):a.M=Xb(this.Wb);Yb(this.Wb,this.yk);this.ib=!1}};e.prototype.Vi=function(a){this.fa&&
(32760<a&&(a=32760),this.Kj=this.Aj[2]-this.sj-a*this.Yt)};q.prototype.Hq=function(){var a=this.r,f=this.u;0!==this.lb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,f.Tj),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),f.gi=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),f.gi=!1)};q.prototype.Lq=function(){this.r.bindTexture(this.r.TEXTURE_2D,
this.sc)};q.prototype.Mq=function(){var a=this.r;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.sc);a.activeTexture(a.TEXTURE0)};q.prototype.Iq=function(){var a=this.Wn,f=this.u;f.Kh=a;f=f.Ze;f.xf&&f.Ai!==a&&(f.Ai=a,this.r.uniform1f(f.xf,a))};q.prototype.Cq=function(){this.r.drawElements(this.r.TRIANGLES,this.Uc,this.r.UNSIGNED_SHORT,this.lb)};q.prototype.Eq=function(){this.r.blendFunc(this.lb,this.Uc)};q.prototype.Nq=function(){var a,f,b,c=this.u.ua,d=this.u.jm;a=0;for(f=c.length;a<
f;a++)b=c[a],a===d&&b.wi?(b.xl(this.M),b.ue=!0):b.ue=!1;Yb(this.M,this.u.Jj)};q.prototype.Dq=function(){var a=this.r,f=this.u;this.sc?(f.Ae===this.sc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),f.Ae=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,f.Tj),f.gi||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.sc,0)):(f.fa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
q.prototype.zq=function(){var a=this.r,f=this.lb;0===f?(a.clearColor(this.M[0],this.M[1],this.M[2],this.M[3]),a.clear(a.COLOR_BUFFER_BIT)):1===f?(a.enable(a.SCISSOR_TEST),a.scissor(this.M[0],this.M[1],this.M[2],this.M[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.Gq=function(){var a=this.r;0!==this.lb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.Bq=function(){var a=this.r,f=this.u;f.fa&&a.disable(a.DEPTH_TEST);
var b=f.ua[1];a.useProgram(b.hh);!b.ue&&b.wi&&(b.xl(f.Jj),b.ue=!0);a.enableVertexAttribArray(b.jc);a.bindBuffer(a.ARRAY_BUFFER,f.Sk);a.vertexAttribPointer(b.jc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.lb/4,this.Uc);b=f.Ze;a.useProgram(b.hh);0<=b.jc&&(a.enableVertexAttribArray(b.jc),a.bindBuffer(a.ARRAY_BUFFER,f.qh[f.fd]),a.vertexAttribPointer(b.jc,f.fa?3:2,a.FLOAT,!1,0,0));0<=b.Zd&&(a.enableVertexAttribArray(b.Zd),a.bindBuffer(a.ARRAY_BUFFER,f.mh[f.fd]),a.vertexAttribPointer(b.Zd,2,a.FLOAT,!1,
0,0));f.fa&&a.enable(a.DEPTH_TEST)};q.prototype.Jq=function(){var a=this.r,f=this.u,b=f.ua[this.lb];f.jm=this.lb;f.Ze=b;a.useProgram(b.hh);!b.ue&&b.wi&&(b.xl(f.Jj),b.ue=!0);b.xf&&b.Ai!==f.Kh&&(b.Ai=f.Kh,a.uniform1f(b.xf,f.Kh));0<=b.jc&&(a.enableVertexAttribArray(b.jc),a.bindBuffer(a.ARRAY_BUFFER,f.qh[f.fd]),a.vertexAttribPointer(b.jc,f.fa?3:2,a.FLOAT,!1,0,0));0<=b.Zd&&(a.enableVertexAttribArray(b.Zd),a.bindBuffer(a.ARRAY_BUFFER,f.mh[f.fd]),a.vertexAttribPointer(b.Zd,2,a.FLOAT,!1,0,0))};q.prototype.Fq=
function(){var a=this.M;this.r.uniform4f(this.u.Ze.Fk,a[0],a[1],a[2],a[3])};q.prototype.Kq=function(){var a,f,b=this.u.Ze,c=this.r;a=this.M;b.Og&&this.u.Ae!==this.sc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.sc),this.u.Ae=this.sc,c.activeTexture(c.TEXTURE0));var d=a[0];b.Hk&&d!==b.xn&&(b.xn=d,c.uniform1f(b.Hk,d));d=a[1];b.Gk&&d!==b.wn&&(b.wn=d,c.uniform1f(b.Gk,d));d=a[2];f=a[3];!b.Ge||d===b.rn&&f===b.sn||(b.rn=d,b.sn=f,c.uniform2f(b.Ge,d,f));d=a[4];f=a[5];!b.Fe||d===b.pn&&f===
b.qn||(b.pn=d,b.qn=f,c.uniform2f(b.Fe,d,f));d=a[6];b.Ng&&d!==b.un&&(b.un=d,c.uniform1f(b.Ng,d));d=a[7];b.Mg&&d!==b.tn&&(b.tn=d,c.uniform1f(b.Mg,d));d=a[8];f=a[9];!b.Rg||d===b.Bn&&f===b.Cn||(b.Bn=d,b.Cn=f,c.uniform2f(b.Rg,d,f));d=a[10];f=a[11];!b.Pg||d===b.yn&&f===b.zn||(b.yn=d,b.zn=f,c.uniform2f(b.Pg,d,f));d=a[12];b.Qg&&d!==b.An&&(b.An=d,c.uniform1f(b.Qg,d));if(b.N.length)for(a=0,f=b.N.length;a<f;a++)d=this.zo[a],d!==b.xk[a]&&(b.xk[a]=d,c.uniform1f(b.N[a][1],d))};e.prototype.Jb=function(){this.dd===
this.Gd.length&&this.Gd.push(new q(0,this));return this.Gd[this.dd++]};e.prototype.Md=function(){if(0!==this.dd&&!this.r.isContextLost()){var a=this.r;0<this.Tk&&(a.bindBuffer(a.ARRAY_BUFFER,this.Sk),a.bufferSubData(a.ARRAY_BUFFER,0,this.ao.subarray(0,this.Tk)),b&&0<=b.jc&&"<point>"===b.name&&a.vertexAttribPointer(b.jc,4,a.FLOAT,!1,0,0));if(0<this.xd){var b=this.Ze;a.bindBuffer(a.ARRAY_BUFFER,this.qh[this.fd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.qj.subarray(0,this.xd));b&&0<=b.jc&&"<point>"!==b.name&&
a.vertexAttribPointer(b.jc,this.fa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.mh[this.fd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.gj.subarray(0,this.Of));b&&0<=b.Zd&&"<point>"!==b.name&&a.vertexAttribPointer(b.Zd,2,a.FLOAT,!1,0,0)}for(var e,a=0,b=this.dd;a<b;a++)switch(e=this.Gd[a],e.type){case 1:e.Cq();break;case 2:e.Lq();break;case 3:e.Iq();break;case 4:e.Eq();break;case 5:e.Nq();break;case 6:e.Dq();break;case 7:e.zq();break;case 8:e.Bq();break;case 9:e.Jq();break;case 10:e.Kq();break;
case 11:e.Mq();break;case 12:e.Fq();break;case 13:e.Gq();break;case 14:e.Hq()}this.Tk=this.Of=this.xd=this.dd=0;this.gi=this.ib=!1;this.fd++;4<=this.fd&&(this.fd=0)}};e.prototype.Jf=function(a){if(a!==this.Zm&&!this.zg){var b=this.Jb();b.type=3;this.Zm=b.Wn=a;this.ib=!1}};e.prototype.Yb=function(a){if(a!==this.Vd){var b=this.Jb();b.type=2;this.Vd=b.sc=a;this.ib=!1}};e.prototype.be=function(a,b){if((a!==this.an||b!==this.Xm)&&!this.zg){var e=this.Jb();e.type=4;e.lb=a;e.Uc=b;this.an=a;this.Xm=b;this.ib=
!1}};e.prototype.qo=function(){this.be(this.r.ONE,this.r.ONE_MINUS_SRC_ALPHA)};e.prototype.ah=function(a,b,e,c,d,r,g,v){15992<=this.xd&&this.Md();var w=this.xd,n=this.Of,h=this.qj,m=this.gj,x=this.Kj;if(this.ib)this.Gd[this.dd-1].Uc+=6;else{var p=this.Jb();p.type=1;p.lb=this.fa?w:w/2*3;p.Uc=6;this.ib=!0}this.fa?(h[w++]=a,h[w++]=b,h[w++]=x,h[w++]=e,h[w++]=c,h[w++]=x,h[w++]=d,h[w++]=r,h[w++]=x,h[w++]=g,h[w++]=v,h[w++]=x):(h[w++]=a,h[w++]=b,h[w++]=e,h[w++]=c,h[w++]=d,h[w++]=r,h[w++]=g,h[w++]=v);m[n++]=
0;m[n++]=0;m[n++]=1;m[n++]=0;m[n++]=1;m[n++]=1;m[n++]=0;m[n++]=1;this.xd=w;this.Of=n};e.prototype.ae=function(a,b,e,c,d,r,g,v,w){15992<=this.xd&&this.Md();var n=this.xd,h=this.Of,m=this.qj,x=this.gj,p=this.Kj;if(this.ib)this.Gd[this.dd-1].Uc+=6;else{var E=this.Jb();E.type=1;E.lb=this.fa?n:n/2*3;E.Uc=6;this.ib=!0}var E=w.left,l=w.top,t=w.right;w=w.bottom;this.fa?(m[n++]=a,m[n++]=b,m[n++]=p,m[n++]=e,m[n++]=c,m[n++]=p,m[n++]=d,m[n++]=r,m[n++]=p,m[n++]=g,m[n++]=v,m[n++]=p):(m[n++]=a,m[n++]=b,m[n++]=e,
m[n++]=c,m[n++]=d,m[n++]=r,m[n++]=g,m[n++]=v);x[h++]=E;x[h++]=l;x[h++]=t;x[h++]=l;x[h++]=t;x[h++]=w;x[h++]=E;x[h++]=w;this.xd=n;this.Of=h};e.prototype.yb=function(a){if(this.Ig!==a){if(!this.ua[a]){if(0===this.Ig)return;a=0}var b=this.Jb();b.type=9;this.Ig=b.lb=a;this.ib=!1}};e.prototype.Yg=function(a){a=this.ua[a];return!(!a.Ge&&!a.Fe)};e.prototype.Wk=function(a){a=this.ua[a];return!!(a.Ge||a.Fe||a.im)};e.prototype.Vk=function(a){return this.ua[a].Gc};e.prototype.nt=function(a){a=this.ua[a];return 0!==
a.Rj||0!==a.Sj};e.prototype.Tr=function(a){return this.ua[a].Rj};e.prototype.Ur=function(a){return this.ua[a].Sj};e.prototype.Vr=function(a,b){return this.ua[a].N[b][2]};e.prototype.Mi=function(a){return this.ua[a].Wl};e.prototype.Kf=function(a,b,e,c,d,r,g,v,p,n,h,m,x,l,E){var t=this.ua[this.Ig],q,u;if(t.qs||E.length){q=this.Jb();q.type=10;q.M?Yb(this.Wb,q.M):q.M=Xb();u=q.M;u[0]=b;u[1]=e;u[2]=c;u[3]=d;u[4]=r;u[5]=g;u[6]=v;u[7]=p;u[8]=n;u[9]=h;u[10]=m;u[11]=x;u[12]=l;t.Og?q.sc=a:q.sc=null;if(E.length)for(e=
q.zo,e.length=E.length,a=0,b=E.length;a<b;a++)e[a]=E[a];this.ib=!1}};e.prototype.clear=function(a,b,e,c){var d=this.Jb();d.type=7;d.lb=0;d.M||(d.M=Xb());d.M[0]=a;d.M[1]=b;d.M[2]=e;d.M[3]=c;this.ib=!1};e.prototype.clearRect=function(a,b,e,c){if(!(0>e||0>c)){var d=this.Jb();d.type=7;d.lb=1;d.M||(d.M=Xb());d.M[0]=a;d.M[1]=b;d.M[2]=e;d.M[3]=c;this.ib=!1}};e.prototype.to=function(a){if(this.fa&&(a=!!a,this.zg!==a)){var b=this.Jb();b.type=14;b.lb=a?1:0;this.ib=!1;this.zg=a;this.Qi=null;this.zg?this.yb(2):
this.yb(0)}};e.prototype.so=function(a){if(this.fa){var b=this.Jb();b.type=13;b.lb=a?1:0;this.ib=!1}};e.prototype.um=function(){Yb(this.yk,t);this.pc();this.Zb();var a=this.width/2,b=this.height/2;this.ah(-a,b,a,b,a,-b,-a,-b);Yb(t,this.Wb);this.Zb()};e.prototype.ro=function(a,b,e){this.yb(3);var c=this.Jb();c.type=12;c.M||(c.M=Xb());c.M[0]=a;c.M[1]=b;c.M[2]=e;c.M[3]=1;this.ib=!1};e.prototype.Ft=function(){this.yb(0)};e.prototype.ut=function(){this.yb(2)};e.prototype.mt=function(){this.Md();this.r.flush()};
var u=[],b={};e.prototype.pq=function(){U(u);b={}};e.prototype.kn=function(a,f,e){var c;c=!1;f=!!f;var d=a.src+","+c+","+f+(c?",undefined":""),r=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(d))return r=b[d],r.Ch++,r;this.Md();var g=this.r,v=fa(a.width)&&fa(a.height),r=g.createTexture();g.bindTexture(g.TEXTURE_2D,r);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=g.RGBA,n=g.RGBA,h=g.UNSIGNED_BYTE;if(e&&!this.Sd)switch(e){case 1:n=p=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break;
case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=p=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!v&&c){e=document.createElement("canvas");e.width=ga(a.width);e.height=ga(a.height);var m=e.getContext("2d");"undefined"!==typeof m.imageSmoothingEnabled?m.imageSmoothingEnabled=f:(m.webkitImageSmoothingEnabled=f,m.mozImageSmoothingEnabled=f,m.msImageSmoothingEnabled=f);m.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);g.texImage2D(g.TEXTURE_2D,0,p,n,h,e)}else g.texImage2D(g.TEXTURE_2D,0,
p,n,h,a);c?(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));f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(v||2<=this.version)&&this.mm?(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.Vd=null;r.le=a.width;r.ke=a.height;r.Ch=1;r.dm=d;u.push(r);return b[d]=r};e.prototype.Qb=function(a,b,e,c){this.Md();var d=this.r;this.Sd&&(c=!1);var r=d.createTexture();d.bindTexture(d.TEXTURE_2D,r);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.Vd=null;r.le=a;r.ke=b;u.push(r);return r};e.prototype.Vt=function(a,b,e){this.Md();var c=this.r;this.Sd&&(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.Vd=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ch&&1<a.Ch?a.Ch--:(this.Md(),a===this.Vd&&(this.r.bindTexture(this.r.TEXTURE_2D,null),this.Vd=null),a===this.Ae&&(this.r.activeTexture(this.r.TEXTURE1),this.r.bindTexture(this.r.TEXTURE_2D,null),this.r.activeTexture(this.r.TEXTURE0),this.Ae=null),Ba(u,a),"undefined"!==
typeof a.dm&&delete b[a.dm],this.r.deleteTexture(a)))};e.prototype.qc=function(a){if(a!==this.Qi){var b=this.Jb();b.type=6;this.Qi=b.sc=a;this.ib=!1}};eb=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.hc=(this.pk=/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.Rd=!!a.dc;this.ys="undefined"!==typeof window.AppMobi||
this.Rd;this.gc=!!window.c2cocoonjs;this.Dc=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Dc&&(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.Rd||this.gc||this.Dc;this.hi=
/edge\//i.test(navigator.userAgent);this.Sd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.hi;this.Pm=/tizen/i.test(navigator.userAgent);this.Mm=/android/i.test(navigator.userAgent)&&!this.Pm&&!this.Sd&&!this.hi;this.Um=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Sd&&!this.hi;this.Gs=/ipad/i.test(navigator.userAgent);this.mi=this.Um||this.Gs||this.Dc;this.As=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Sd&&!this.hi;this.xs=/amazonwebappplatform/i.test(navigator.userAgent);this.Bs=/firefox/i.test(navigator.userAgent);this.ji="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Sm=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Fs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Dg=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.uk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Rm=!!window.cr_windows10;this.Ds=this.Sm||this.Fs||this.uk||this.Rm;this.zs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Nm=this.Mm&&!this.As&&!this.pk&&!this.Bs&&!this.xs&&!this.la;this.devicePixelRatio=1;this.Td=this.hc||this.pk||this.ys||this.gc||this.Mm||this.mi||this.Dg||this.uk||this.zs||this.Pm||this.Dc;this.Td||
(this.Td=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Qm=!!(this.mi&&this.hc&&window.webkit);"undefined"===typeof cr_is_preview||this.ji||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.ji=!0);this.canvas=a;this.Fh=document.getElementById("c2canvasdiv");this.u=this.r=null;this.gk="(unavailable)";this.fa=!1;this.pe=0;this.qa=null;this.Rh=!1;this.Pn=this.Qn=
0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Rd&&(window.c2runtime=this);this.ji&&(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.Nm&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=
a.width;this.height=a.height;this.H=this.width;this.G=this.height;this.Ih=this.width;this.ig=this.height;this.vf=window.innerWidth;this.uf=window.innerHeight;this.Z=!0;this.Cg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.pa=[];this.Bk={};this.Fc=[];this.Qj={};this.kd=[];this.Vf=[];this.lj=[];this.uj=[];this.cq=[];this.Vm=this.Fo=null;this.ne={};this.rk=this.Pd=!1;this.Ec=0;this.qk=this.tk=!1;this.Bc=[];this.Ag=!1;this.si=this.gl="";this.Ga=null;
this.od="";this.lh=this.Co=!1;this.Qh=[];this.oe=this.cf=0;this.In=30;this.Ij=this.Sg=0;this.Qf=1;this.Vb=new Ua;this.rj=new Ua;this.Fi=this.Wh=this.ng=this.ad=this.Ce=this.Vj=this.ni=0;this.me=null;this.Nh=[];this.Pj=[];this.Oh=-1;this.Ik=[[]];this.rl=this.xi=0;this.Oi(null);this.og=this.Mn=this.Ug=0;this.cj=[];this.ol=this.Zk=-1;this.qf=!0;this.vi=0;this.Bg=!1;this.It=0;this.bg=null;this.Vc=this.Dm=!1;this.On=new ba;this.Mk=new ba;this.Nk=new ba;this.bh=[];this.Kc=new Wa([]);this.ll=new Wa([]);
this.Ed=[];this.ci={};this.Id={};this.Cd={};this.Uf={};this.Zl={};this.jn=this.ri=this.Aa=this.Ea=this.hn=this.qi=this.S=null;this.Sf=this.vk=!1;this.Wj=[null,null];this.te=0;this.rd={};this.jh=this.Xd=null;this.Do="";this.Ei=[];this.tt()}}function p(a,c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,c,h,d){try{var b=indexedDB.open("_C2SaveStates");
b.onupgradeneeded=q;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=h}}catch(m){d(m)}}function u(a,c,h){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=q;d.onerror=h;d.onsuccess=function(d){d=d.target.result;d.onerror=h;var b=d.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?c(b.result.data):c(null)}}}catch(b){h(b)}}function b(){z("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,h={};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof ba||a[c]&&"undefined"!==typeof a[c].hv||"spriteCreatedDestroyCallback"!==c&&(h[c]=a[c]);return h}var f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.tt=
function(){var a=this;if(this.Qm)this.Gr(function(c){a.Lg(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.Dg?c=new ActiveXObject("Microsoft.XMLHTTP"):c=new XMLHttpRequest;var h="data.js";if(this.Sm||this.Dg||this.uk||this.Rm)h="data.json";c.open("GET",h,!0);var d=!1;if(!this.la&&"response"in c&&"responseType"in c)try{c.responseType="json",d="json"===c.responseType}catch(b){d=!1}if(!d&&"responseType"in c)try{c.responseType="text"}catch(m){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.Dg?
c.onreadystatechange=function(){4===c.readyState&&a.Lg(JSON.parse(c.responseText))}:(c.onload=function(){if(d)a.Lg(c.response);else if(a.Dc){var h=c.responseText,h=h.substr(h.indexOf("{"));a.Lg(JSON.parse(h))}else a.Lg(JSON.parse(c.responseText))},c.onerror=function(a){da("Error requesting "+h+":");da(a)});c.send()}};e.prototype.ts=function(){var a=this,c,h,d,b,m,f,g,e,n;this.xe=(!this.la||this.Dc||this.hc)&&this.St&&!this.Nm;0===this.tb&&this.mi&&(this.xe=!1);this.devicePixelRatio=this.xe?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.bb();0<this.tb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Ts();z("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.u.Hm();a.u.Ne(a.u.width,a.u.height,!0);a.Ea=null;a.Aa=null;a.Wj[0]=null;a.Wj[1]=null;a.Us();a.Z=!0;z("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);try{this.Vq&&(this.gc||this.Dc||!this.la)&&(c={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.r=this.canvas.getContext("webgl2",c)||this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c))}catch(r){}if(this.r){if(c=this.r.getExtension("WEBGL_debug_renderer_info"))this.gk=this.r.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.r.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.fa&&(this.gk+=
" [front-to-back enabled]");this.la||(this.Wa=document.createElement("canvas"),jQuery(this.Wa).appendTo(this.canvas.parentNode),this.Wa.oncontextmenu=function(){return!1},this.Wa.onselectstart=function(){return!1},this.Wa.width=Math.round(this.Ih*this.devicePixelRatio),this.Wa.height=Math.round(this.ig*this.devicePixelRatio),jQuery(this.Wa).css({width:this.Ih+"px",height:this.ig+"px"}),this.bo(),this.Rk=this.Wa.getContext("2d"));this.u=new eb(this.r,this.Td,this.fa);this.u.Ne(this.canvas.width,this.canvas.height);
this.u.mm=0!==this.Oq;this.qa=null;c=0;for(h=this.n.length;c<h;c++)for(m=this.n[c],d=0,b=m.J.length;d<b;d++)g=m.J[d],g.Ca=this.u.fk(g.id),g.Gc=this.u.Vk(g.Ca),this.Sf=this.Sf||this.u.Yg(g.Ca);c=0;for(h=this.Fc.length;c<h;c++){e=this.Fc[c];d=0;for(b=e.J.length;d<b;d++)g=e.J[d],g.Ca=this.u.fk(g.id),g.Gc=this.u.Vk(g.Ca);e.Mc();d=0;for(b=e.K.length;d<b;d++){n=e.K[d];m=0;for(f=n.J.length;m<f;m++)g=n.J[m],g.Ca=this.u.fk(g.id),g.Gc=this.u.Vk(g.Ca),this.Sf=this.Sf||this.u.Yg(g.Ca);n.Mc()}}}else{if(0<this.tb&&
this.Rd){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.qa=AppMobi.canvas.getContext("2d");try{this.qa.samplingMode=this.ya?"smooth":"sharp",this.qa.globalScale=1,this.qa.HTML5CompatibilityMode=!0,this.qa.imageSmoothingEnabled=this.ya}catch(x){}0!==this.width&&0!==this.height&&(this.qa.width=this.width,this.qa.height=this.height)}this.qa||(this.gc?(c={antialias:!!this.ya,alpha:!0},this.qa=this.canvas.getContext("2d",c)):(c={alpha:!0},
this.qa=this.canvas.getContext("2d",c)),this.Ui(this.qa,this.ya));this.Rk=this.Wa=null}this.No=function(c){a.tc(!1,c)};window==window.top||this.la||this.Ds||this.Dg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(z("Reloading for continuous preview"),
this.si="__c2_continuouspreview",this.lh=!0),this.gt&&!this.Td&&(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.Ef()});this.la||(c=function(a){if(db(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.tb&&this.xe&&1<this.devicePixelRatio&&this.setSize(this.Ia,this.Ha,!0);this.Ro();this.ls();this.go();this.C={}};e.prototype.setSize=function(a,c,h){var d=0,b=0,m=0,f=0,f=0;if(this.vf!==a||this.uf!==c||h){this.vf=a;this.uf=c;var g=this.tb;if((m=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.Bg)&&!this.hc)||0!==this.tb||h)m&&0<this.te&&(g=this.te),h=this.devicePixelRatio,4<=g?(m=this.Ia/this.Ha,a/c>m?(m*=c,5===g?(f=m*h/this.Ia,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),m=this.Ia*f/h,f=this.Ha*f/h,d=(a-m)/2,b=(c-f)/2,a=m,c=f):(d=(a-m)/2,a=m)):(f=a/m,5===g?(f=f*h/this.Ha,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),m=this.Ia*f/h,f=this.Ha*f/h,d=(a-m)/2,b=(c-f)/2,a=m):b=(c-f)/2,c=f)):this.ji&&this.Bg&&0===this.vm&&(d=Math.floor((a-
this.Ia)/2),b=Math.floor((c-this.Ha)/2),a=this.Ia,c=this.Ha),2>g&&(this.ag=h),this.Ih=Math.round(a),this.ig=Math.round(c),this.width=Math.round(a*h),this.height=Math.round(c*h),this.Z=!0,this.dp?(this.H=this.width,this.G=this.height,this.Tb=!0):this.width<this.Ia&&this.height<this.Ha||1===g?(this.H=this.width,this.G=this.height,this.Tb=!0):(this.H=this.Ia,this.G=this.Ha,this.Tb=!1,2===g?(m=this.Ia/this.Ha,g=this.vf/this.uf,g<m?this.H=this.G*g:g>m&&(this.G=this.H/g)):3===g&&(m=this.Ia/this.Ha,g=this.vf/
this.uf,g>m?this.H=this.G*g:g<m&&(this.G=this.H/g))),this.Fh&&!this.la&&(jQuery(this.Fh).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(b)+"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*h),this.canvas.height=Math.round(c*h),this.Dc?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(b)+"px",
this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.xe&&!this.la&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Wa&&(this.Wa.width=Math.round(a*h),this.Wa.height=Math.round(c*h),this.Wa.style.width=this.Ih+"px",this.Wa.style.height=this.ig+"px"),this.u&&this.u.Ne(Math.round(a*h),Math.round(c*h)),this.Rd&&this.qa&&(this.qa.width=Math.round(a),this.qa.height=Math.round(c)),this.qa&&this.Ui(this.qa,this.ya),this.Ro(),
this.Um&&!this.hc&&window.scrollTo(0,0)}};e.prototype.Ro=function(){if(this.gq&&0!==this.Qk){var a="portrait";2===this.Qk&&(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.Ts=function(){this.u.pq();this.vk=!0;var a,c,h;a=0;for(c=this.n.length;a<c;a++)h=this.n[a],h.Ok&&h.Ok()};e.prototype.Us=function(){this.vk=!1;var a,c,h;a=0;for(c=this.n.length;a<c;a++)h=this.n[a],h.Tn&&h.Tn()};e.prototype.bo=function(){if(!this.la){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Bg)&&!this.hc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Wa).css(a)}};
var k=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var c;if(a&&!this.Cg)for(z("[Construct 2] Suspending"),this.Cg=!0,-1!==this.Zk&&k&&k(this.Zk),-1!==this.ol&&clearTimeout(this.ol),a=0,c=this.cj.length;a<c;a++)this.cj[a](!0);else if(!a&&this.Cg){z("[Construct 2] Resuming");this.Cg=!1;this.ni=Qa();this.Ce=Qa();a=this.Sg=this.Wh=0;for(c=this.cj.length;a<
c;a++)this.cj[a](!1);this.tc(!1)}};e.prototype.Ad=function(a){return this.Ei[a]};e.prototype.Lg=function(a){a&&a.project||da("Project model unavailable");a=a.project;this.name=a[0];this.tm=a[1];this.tb=a[12];this.vm=a[12];this.Ia=a[10];this.Ha=a[11];this.Xn=this.Ia/2;this.Yn=this.Ha/2;this.la&&!this.Dc&&(4<=a[12]||0===a[12])&&(z("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.vm=this.tb=3);this.zl=a[18];this.Yd=a[19];if(0===
this.Yd){var c=new Image;c.crossOrigin="anonymous";this.vo(c,"loading-logo.png");this.Xd={yi:c}}else if(4===this.Yd){c=new Image;c.src="data:image/png;base64,[encoded data, 72588 characters]";
var h=new Image;h.src="data:image/png;base64,[encoded data, 64500 characters]";
var d=new Image;d.src="data:image/png;base64,[encoded data, 26348 characters]";
var b=new Image;b.src="data:image/png;base64,[encoded data, 11240 characters]";
var m=new Image;m.src="data:image/png;base64,[encoded data, 9880 characters]";
var f=new Image;f.src="data:image/png;base64,[encoded data, 8536 characters]";
var g=new Image;g.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABmFBMVEUzMzOIjoM0NDSHjoKFjIFyeG89Pj1gZF5dYVs2NjY4ODhQU0+Ah3yBiH1XWlU5OjmEin86Ozp+hHpwdWx8gnh3fHNSVFCFjIB8gndNUEx6gHaEi4BcYFpFRkRkaGFjZ2Btcmpxd25qb2dTVlF5f3VVWFNISkc1NTVJS0hpbmZ9hHlAQkBUVlJAQT9na2Q8PDtGSEVQUk5xdm1KTElMTktMTkpobWU/QD51enFmamOCiX54fnRZXFdDREJ2fHI8PTxERUNWWVRrcGiAhntcX1leYls7PDpSVVE9Pjx/hntYXFZaXViDin5laWI7PDtvdGtPUU1obGRCREFCQ0FhZV9uc2tLTUqDin9PUk5eYlxscWk1NjVaXlhHSUZiZl9yeG50eXBlamJISUZXWlRRVE96gHVKTEg4ODdpbWZvdGx0enBERkN4fXN7gXdwdW0+Pz5bXllPUk1scGhrcGd9g3lISkZYW1UzNDNYW1ZjZ2E/QT+GjYJUVlFgZF03Nzc5OTlnbGRjaGBERUKIj4JGR0U3ODd2e3JjaGE5GY8RAAAGGUlEQVR4Xu2XVZMrNxCFdQbMzIzLzMzMzJeZmcIMfzvWaMjrWxunspO6qdV52G5199qaT9K0TL5gcXFxcXFxcXFxcXFxcXElc+6qsZDL+clVkh1dVeNmwMYB/CfiADgADoAD4AAE3ywhznJr8VZrzGmOD+Reytvf96jDTl9MT5V9euGgTytwNZbkvtGdZnWY9TUR0t9V7Gth456DsFzIDBND2a7x0Iszt/B5AN0OuS301LGkRNp9jaZ8v6+fXKKaAeFoFYrabujhlhdgkjuV8TcQ/WpqBRjQykI4Yc7sGBQlVCAO7DoLADBLR7Y+lhXz17SvHaVDEYjaPgcgFgBEAIFe5d9FfDBWZh6NlwzgOzGy9ottcmIecW09G0U8jw0H9ydCOL6rRBLoVXM+6DPuxLcuxdmElOtZsvVGIbWoAIYKSC3snLRXBvseNCwPB7MHEsICA1CC+PW+ILQvBkKPawFkMO4OEmf/bYhJGiqaSloguS4ZgDTHtrQ/ijbmPRRhZzN9dIgxG3Xy+hxuQfKwJLkHWbET8D5jyzMEj4sB8GBRrfKH0MWOxrMxLCjOfYhJlWFIrAUgtjZrH+f9sWLdONZP3SjOyCUDiGoHdzoAnxKLYFfPT6FAbT9C6uOIKRl3mV/AOjU2SWzSysdxygBglKi6gz5BdU8QoHyEBG5q2Z5aABjXZuSMIEPNGNxa1ovkZQNoMXWkKDUxjBm7bAag2/hamholaZ9Qpy9ssFgOJb18B20MQNyvRrYksV1PN6BcMTcgBfXQ21oAg/rAhwRj+FINDMDbfNkAjKYzCdBpP0GeGLoNBzWH+Epd9R4bImzx2MMKXjTp1U4JrxQAh1pkDTLRdYrHFbOIYp1tsBtYoS0DYrf28sgR6wAIAeVRNmBuNNfZbBvxhBpnelUgUexRP4NNhi0gGOUPMKgAaNUCBVw3sm8wpYRO6wRA5nHEPnWd8Q0gayEAMo4YIVuAvkGN07+CNO1hSfrQC8jQkMz6YS88DkNtWK4GkMJbIzuE95VQFI31AhhhpRNoIOy7XhArARRxj5B2/GqumEFAPb60ww3hIW1/zyvuD1JcaRqzqFZHNQAPqhRiPbVeAC+xRk1QwgzbThlLAfTBRwGI5opJpNWJ2ul59woUBqU2iLD6ohp3m/WqGoAXGXN2QAFwUi+AMANACsp7ySXBZimAEbp8rwAnMXQDHsU2YZz+GaL+In0j5nGP3ZogkypVA1hF0/lsFB31AritnpYkPM2ElCETSwGsYrASEjFJDHUgqlhhDEGSZ114DzLbBlRHWL0IwB+1V9dDOOoFEMIgi3owQHdoh6UAgmzwnK6vriHtSjOHGGkLsM2REP1bSLH4EtB5AYBNlM5nT7FdJ4CgPriJMxIU4y5LAXRot5ioUeA61u4ly3g8gzNt1ssxHOgHx34BgH52JzKrCfFH+uDPWgB7phlFVG8fkt+HOWIBAH25hQb2JNMS3HrBASIC84JiKIP7zM9iblc/227EjS3QfR6AkMJPRB9sKaEIFrTIkrcWwJzup4wbwxRmRzBoBYB0j75s8Wl1i47NqLFeEUljCg36L7G2+dRxswZORqpb6xne3XMAyENgQqscZb+aliGpX+p6iloAOp6fsaHvnlkk4BGsAJCIX6cb0pUDPqrzDCO9Rg+7/6Zo2t6LQFjz88CZseoRzMcoDtd6GuXzAMhroDRMnd9kNPyudrX0ur9SX34vhWsBtGL7g0DIXgG4b5zFOJAnVgCYLEKaejIiwdhu10aB+Eg4KkIy3WOzQKPRHFEmBgEZ2JDDUQmBZVIDgHQEgFS4OA/cCrKIcw6AxyPC07JeC8BpFyGtbgCSuYGUgBlLANg+uWUJkMJ3TfFsyQsgtDlsigl9I0GTv0VMSobTABL2afWRRxzmbLc9AiAQ3jFCA9teMTCVcZGjd9VtUnhXImSmKyJJkTtV3eUNHlBjTRcQpqdrjpd/5Z/1nKUV5wVZ58rSJ/KvlMdrqwD8LyR4xOkrDWAARXKlATxF75UGsIiIcGUBZCccUxBbyJUF4APgTRJrNDwskC9dto8Lsb9vyVxcXFxcXFxcXFxcXFxcfwEXKq8s5phFegAAAABJRU5ErkJggg==";
var e=new Image;e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAACEFBMVEUzMzN9g3g0NDR7gXdzeG9CQ0E1NTWBh3w6OzpvdGx9g3k6OjlkaGFLTUqEi394fXRvdGt1enE2NjZ3fXM9Pj1iZl+AhntVWFNjZ2BWWVQ4OTh1e3FwdWxpbmZAQT83Nzc4ODdrcGhuc2tMTkpKTElNT0tRVE9aXVdPUU1PUk42NzZ6gHZLTUk7PDs5OjldYFp0eXB+hHlYW1Z0enBeYlx+hHp5f3WAh3w2NjVtcmpqb2dMTktISkd/hntHSUY4ODhmamNdYVtnbGRBQkA3ODdyd25yeG88PTs7OzpQUk5ERkNZXFdhZV5eYVuCiX03NzY1NjVOUU2Din5ERUM/QD9uc2pma2N+hXpUV1JFR0Q0NTRDREKIj4OCiH1XWlVGSEVfY1w9Pjw+Pz0/QD6Ein92fHI7PDpdYVp8gniFjIA8PTyAhnxgY11gZF5FRkRQU05YXFZna2NCREFSVVFAQkB/hXpXW1Vrb2dJSkc9PTxlamKFi4BISUZZXVeHjoJzeW9gZF1TVlFfYlxna2RVV1JcX1lbX1lNUEyDiX5tcmlzeXB8gndRVFBOUExpbWZSVFBNT0xhZF5laWJ4fXNwdW1RU09bXllDRUJqbmZfY12Ei4BUVlJbXlhKTEhTVVFcYFpeYltxdm1xd25obGU1NTSFjIFKS0iBiHxscWl9hHlscGhpbWVaXVhvc2ttcWk0NDPL7ZluAAAChElEQVR4Xu3SU6+kWRxG8fWibNvHtm3bdtu27bFtfsXJ6a5UMkklXdU5yZlMat09++Kf38Xmf1mmTJnmnwOAuN3FvpT1fhyw5OVdygBETYlekvStAEUfCKYDBXD+KTAWVQOxduDDMu13WcCx1dLCNpifFrZXRCBoXi4fyk4AggGnKqCmxOwFaDyaImBJ7td1TleK4KlubA1GfHXkdAOx658DnwzCbctAONb8AGTTewN2DOXZrYs+B/TVfhEadUkJgK9RqWszLWBxAfhXUgV8CYxpsyneUgBizx/orhTAqYYocOQsCqcXiEkgRwDluVVAPXGYow0AHyUARYBY089cJaA7pE4V4AV4pcejAeClCSwGxNk+VQiFAMccAKKxFzkfMNgA0ORge5bkDwy3ETZugidKWoC5KO5PAbB/Bl+7afETyWNQD/VP5N1+/Bh5HKhQvZ5HTqJaTAL4SgO/fwOP89MD3DKjrwKg9xBMFuK4S34AvwHM9xSvs74B5Na/mTpUp5MAzmigScvhkbr0AO0z5F4A4KIENF+S1ISaR1VWuFxFvNeAE2XEs2UnAZTOAMLVazOkDNgEsOUQnFADBIaADscNoH7YDBSVWwGUcUCJURGfN78HcCUAxwFMJ4DSO7aW1AHyBgtr0hi4LXaU96t1QJ6xAnjx0APwyF+M6Po2DqDi4CQ0FXrZUXl+EPMOJgC+FkLuGiWwbhRIHfBTpTDSvQGIudXan39ZBwj/age8WjuAcs0p1DbsQMQAwAtp1ll2HFDIxtqOpt/igJqpP5e3/ioGoKcqDYCXOivxukSSFv73e4HyLVeFqbQAe16Whf0EdI5rDaTc33ore9wBzTj/0TJlyvQPsTd0lRaZaakAAAAASUVORK5CYII=";
var n=new Image;n.src="data:image/png;base64,[encoded data, 9588 characters]";
var r=new Image;r.src="data:image/png;base64,[encoded data, 10044 characters]";
var x=new Image;x.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABnlBMVEUzMzOIjoM0NDSHjoJyeG+FjIE2NjZISkeAhntNUEw4ODhVWFN1enFXWlWFjIA9Pj06Ozp4fnRxd26Ah3x6gHZtcmqEin98gnh5f3U8PTxobGWBiH1+hHo1NTVBQkBWWVQ9PjyEi4BMTkp9hHlna2Q5OjlDREJRVFBgZF6Din5laWJGSEU/QD5UVlJ7gXdscWlcX1lFRkRAQT9aXlhvdGtjZ2BCQ0FmamOCiX5wdm03Nzc7PDtHSEZJS0hTVlFpbmZYW1ZERkNuc2tdYVs3ODdCREF2fHJbXlliZl9QUk41NjVeYltZXFc/QD9YW1VQU09tcmlhZV9scGhKTEl3fHNeYlxERUNwdWw7PDpcYFpLTUpqb2d/hntpbWY+Pz5nbGR2e3JMTktWWlR9g3l0eXA8PDt8gndPUk44ODeDin9obGRaXViBiHxrcGhTVVFPUk1OUE1KTEhvdGx4fXNZXFZlamJyeG5RVE90enCGjYJkaGFgZF1rcGczNDNISkZISUZAQj9gY11fY11kaGBLTkpERUJVV1NGR0VUVlFwdW0dCiH/AAAHg0lEQVR4Xu3WVZPkOBYF4HOMycxYyMzMDM3MzMwwM8v4r3fKkpyZ1d3R2Rsxuw/j71HlSstH90rC/57H4/F4PB6Px+PxeDwe26/h98wmV/B71kaO4HftQ3UP/z8ej2cs3A1lKWxBagv3Yy4c3oB0JjwAqSv8ArDDi5AC4RNQguEo6gQGryWM9LnR+qHgcsL4+XgMUjgcAIB7h9OYOjVrrDhjc4htrxk3cMg6MT1rTPTY+JrrIyeNRMcJCzWrf54wZvv8ZUh2+O/AvYOTvw6ewaG5pWXDuFINwHGMeieEFvIWpBIfACX6IWW5A+ka+4Ag45C6+SmgpkM9hprwIwoJN5bbvXRE1jU4yD+J4zCLSzrJZ85YS9sMySQADCYpbI3hKKtPp8P3ElJ0lkL2bxA6OKKNmHQYMeCD/MGiiAP3uQshTHZAGHM+app9EDbJLCQf24A8eRHCSVIVUZBbqLlE/cZiPra6P8OreTg+U3+8mJ+3p3X+fCSA9rdMnjrx0nbGdk2zsOR/AWCHeuHMfKBSvcNkHo3mQny0vnox6p8lq3CMFul7shkb6N4i36oA1t9x1n8sak+avPvLOK+On49ODQ6xVSQ66X71e5pJTS4UDQB+Zt1viXAKjgojFoC4+mqrNcJhCKe5DteYrgqoJcs0Dg0yImNfyPB2YwCZyEQAApm8L5f7ASOv4AjE+QyNlpmVpfWWn7oAYD7JhPgVbZ30ywCGVDxt5F95QTzwMMdl0d0swdGppwz+EY40nwDYMCk7/w2neQmOFb4GgJ/kv+MWC2bGEi8tchSuESYg2aLP5ooMQlqir9wQAHN7kMjWAQhnOQKpn6ZKyB2YglTgsIgkZ0GapM8SAbAHUppMqQf8bHVmsNfKiuzlngPZ6VqvGEvI6KLcWuVZOCbE0i0wCcdjtk3IvWOVSQ2uPvZBeWr2Ox0ypEHSrvIPjQG0QanNWCv5xqAUuYB6VzgNpcLIHhDVaUOxfAyKAGY2IAXJl5AsXRb1GldkOv1RZmW27Th0wLRc9W3cYQsAlDOMOhnNsEusembvOcV+vc0CakYYQqOJ+g4ZZrghgBkNCnkeXzHk7tFqlWy4ipwCnjCOmnM0RAAdUM7Q3IPi46JM5bXo5asaznJTtHyf3AsfOdMyOIYdHhcrn1L5j4uZX0Gn+VQTBbOLhj3gpzLqJbkI11yn1RBACS5y4OsB+FGnQt2CK9CpAWv8C2pGGdGcAHqg2PTB1S6LroWte05L9AEjotMNlXWWC2J3APr5HgD2eUqdfgnRabvArFPOlinOQ6Wqs/3cqAbFIqOo12QA2pR/MPgrX2MAl9n+ZUS7qLHIgWYCQM5ZmAJfAWN8A2DOjFjq2DoHYInnDpvW2chCqu5iumkBuBPZAILccerLQIOFEMnetWAMjntk4McD2Cz0UmoM4ATjOCJJG3UyPN9UAD3sAbRiUXPCiAJtvOCmfBNAmuedMLqBgN5bhnCTl4EurjlhZJ3fGccRle3ZDGk+vggA+f8mgH2dpenqrUXbtkuNAXR/GcDTxm2yl6NNBWAzDtgsiApfASZ5G4IV0TthRdrFY2nAz9OQ1jkJ7HNJ9EwXEGcFX9L6P0foqwAIkPd+NIBtRoLa1/cAP4dwRIltqGOy0lQA2gxjmBTxbtIQZSBN8AH8nHQee9pq4TOXIK0yBcTFRfo41xHT2/F10ThzGoAIV38wgFiE/m9tgqPM4Ii7XEHNdfJhUwHgGbvRLi8z9/XOeaagVNmBgrweTdOPFOch/ZJk/rq87OQZxy778A1Rnf90miYIV0tX7PsBPGcc3wpgQ+cYXJUuC9hhGjVLHEJzATzntfMcVhvC826eghJlSSvK681lFlp4Fq4CBw8YVhtCtKPxmB5YvgFXjt3OwTwB1xr/8f0ARngSiqZOAeUjD+ovBccAm2YMLoM9TQYQ00uX+EEV1rPHtOFK8V/qwlWeSXZzH64HXE4wD8cTVrMRC3XmyUpd2H4Ax3R9ClJnhmPfD+A441DGeSSAQbZbENSFPsdpKLeoDzQZALaYMwNq2Jd6VIarh3FehnCNCY7CFfiUjdx0++29e3RoagEmNAi7cmVu8M1D+cwwJ5rYAzbpltWgTr5oeEE5xQ4V531RDYvkIIRKkZNoNoB9urPHJDmMGpt0Dz4/Gy77MMhxSHHKbiiHdDHY1crEKgA8HDflHAIppmznbwn68k0EgDRbgxagLaR5NsVqwwvQleHaAADtVpaGJnuG7+YB7AV7eXev6QBGySCkBXIJNeVeXoFkZVhAnXHyGKRL5HUcmqLaQ/tLpC/xessk+2RuFz+SpcS/s2R8AM0EEAiRrblcL5kOpPmu8QUYLZGpC4kieXoOQjVCPX7hboa8YqHpALQLRgySNmHMo86p0BkoPaE21KmETkMZCw2r4i6pMOdWQiZJ33I/FK3bMEnz42AZQijU4ixmKA3AHctDKR+P6+TM6UUgGLp25AXYGMnpZObkK7hadu6QnBm2IW2HqlC6QmtwDYf68ZvT5qOBo0P5fBk/worG8G1Wy0UcsdESw5c8Ho/H4/F4PB6Px+PxeDwej8fzH+ab6YZ24mCxAAAAAElFTkSuQmCC";
var v=new Image;v.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAABblBMVEUzMzM2NjY4ODheYlxAQkA/QD58gng0NDQ5Ojl6gHaCiX59hHlMTktZXFc9Pj15f3VkaGFdYVuEi39WWVQ8PTxgZF5FRkRtcmo1NTVlaWJscWl4fnSBiH1xdm5iZmBqb2c9Pjx2fHJcYFpYW1Y6Ozp9g3lHSEZcX1mAhnt+hXo3NzdSVFCHjoJGSEVAQT9CQ0FERUNZXFZobWVERkOAh3xUVlI8PDt1enF3fHNiZl9DREJ2e3I3ODdRVE+FjIE4ODdOUU2Din9KTElVWFNJS0hxdm1MTkpna2RbX1lQUk5XWlV7gXd8gndrcGhuc2tfY11tcml0eXBNUEyDin5yeG9ISkc1NjVmamOEi4BKTEhvdGx6gHVLTUp0enBwdWxNT0x4fXR4fXNVV1M+Pz5aXVhbXlhPUk5vdGs7PDs/QD9pbmZTVVGIj4NXWlRgZF1pbWY5OTlhZV9TVlFlamJzeXB/hntscWg0NDNeYluBiHw6JP9nAAAC8ElEQVR4Xu3R1YpsORhA4bVdyt3dXdvd3e2467jL2w+himloai7m6nCgvos/yWYTFoSv3tTUlFzky/pxhy+rGOQrZ0YM4NsCQEY7cAF80wEGMZTHwKz4gZkthNk7Sz8PA6xclOZmxBqA3stA4gkrb9ZzHviQKiUUibF2Rre8JiDlX+s7u0D4zN3XPUq0GDs6upOB4zKQcwCabbR0QG0qgOKlsgd839wGnq8DSKVK0Zyxu5B/FV4O587A54X+q3hLw5dI3ajsv25JWiTOSGc4YwZDR3WiF3FV3i0VwGldb8uDRCy3YmqRCJBWIGjNdyFwgpHUoJLxAEvPWKwBOxkvrD1aA9h+ChBKE7yaBT755VHAnAH4HBJQVQF51UTgRQHgNEDhuQG0/UGczTaw+Z0TKDaXYXMJDkMVBeINyARgXj3WkDck+F1FdmQd4EwhqLaGwFYEwZUdBbwD8MX4V7KNIK3+BHBzSe4DQqSAMwfwdtUA2NDgdsMkFVY9GMkiNCIELUIu1k+BvQKNGEtdvC4EAsPzgBsILTAyCnCNd8Lgh/jHj6ujADXJ2NVnxpHOOQC3H8EWn08P5BJYWngJMG3jUCF8QSwArD8h/ph3CpbKiOT82ZGRCIX+K8Bn/dJxu+1xwJAx/1uEyq8TArb2Gl5QXJU8wFw5NYBS8TgLLNtyLYrmCercu91RKGQQzOjDgOyGef8EyE0JQFrDs4nQ358QkHXEb2Dxt+sBQN6rA2mfByG10AcS4m7hfQ/g8A/UpAQYQ+1hQMsB4B4/AbkDgLTC2QmAaXcmBOBxGIClI3T9aaBshxBc/ksgbz+DbgPKwzK4PVvQj8vU7855GFBPBgzK848W+bOXhe1aGC6rWWTdFyV4HWNSQD59PyFRBoxEC6GtS4Aq5ntRvjtfdThcQDRU1asLEvQUWHgD0PsLIJy4SqYWXzip114Cu55aNdUBZk/+LtX2DdiMAAQthKdu/q/bOmNrTCZFJx+NZSaYmpqamvoHZD1hKSAldSkAAAAASUVORK5CYII=";
this.Xd={yi:[c,h,d,b],jt:[m,f,g,e],Xt:[n,r,x,v]}}this.Ug=a[21];this.Ei=bc();this.$c=new Y(this);c=0;for(h=a[2].length;c<h;c++)g=a[2][c],d=this.Ad(g[0]),fb(g,d.prototype),e=new d(this),e.Zi=g[1],e.Ud=g[2],e.pv=g[5],e.Jn=g[9],e.Y&&e.Y(),this.plugins.push(e);this.Ei=bc();c=0;for(h=a[3].length;c<h;c++){g=a[3][c];m=this.Ad(g[1]);e=null;d=0;for(b=this.plugins.length;d<b;d++)if(this.plugins[d]instanceof m){e=this.plugins[d];break}n=new e.Ka(e);n.name=g[0];n.L=g[2];n.nk=g[3].slice(0);n.Ut=g[3].length;n.hq=
g[4];n.Jr=g[5];n.P=g[11];n.L?(n.Af=[],n.ld=this.og++,n.ka=null):(n.Af=null,n.ld=-1,n.ka=[]);n.Ph=null;n.ff=null;n.nm=null;n.wb=!1;n.Cb=null;g[6]?(n.Lo=g[6][0],n.Mo=g[6][1],n.Lt=g[6][2]):(n.Lo=null,n.Mo=0,n.Lt=0);g[7]?n.Bb=g[7]:n.Bb=null;n.index=c;n.i=[];n.Lh=[];n.vd=[new gb(n)];n.Qc=0;n.ec=null;n.vq=0;n.Nf=!0;n.mj=hb;n.Mr=ib;n.Sr=jb;n.Q=kb;n.$g=lb;n.Ni=mb;n.Ke=nb;n.Xh=ob;n.Yj=pb;n.ak=qb;n.cc=rb;n.ck=sb;n.Gh=new Xa(this.Ia,this.Ha);n.vh=!0;n.wh=!1;n.C={};n.toString=tb;n.pa=[];d=0;for(b=g[8].length;d<
b;d++){r=g[8][d];x=this.Ad(r[1]);v=null;m=0;for(f=this.pa.length;m<f;m++)if(this.pa[m]instanceof x){v=this.pa[m];break}v||(v=new x(this),v.Di=[],v.Lk=new ba,v.Y&&v.Y(),this.pa.push(v),cc&&v instanceof cc&&(this.Fo=v),Ub.Is&&v instanceof Ub.Is&&(this.Vm=v));-1===v.Di.indexOf(n)&&v.Di.push(n);m=new v.Ka(v,n);m.name=r[0];m.P=r[2];m.Y();n.pa.push(m)}n.global=g[9];n.sk=g[10];n.J=[];d=0;for(b=g[12].length;d<b;d++)n.J.push({id:g[12][d][0],name:g[12][d][1],Ca:-1,Gc:!1,Ob:!0,index:d});n.Fv=g[13];this.zl&&
!n.L&&!n.sk&&e.Ud||n.Y();n.name&&(this.types[n.name]=n);this.n.push(n);e.Zi&&(d=new e.wa(n),d.uid=this.Ug++,d.io=this.Mn++,d.ve=0,d.sg=ub,d.toString=vb,d.D=g[14],d.Y(),n.i.push(d),this.rd[d.uid.toString()]=d)}c=0;for(h=a[4].length;c<h;c++)for(m=a[4][c],f=this.n[m[0]],d=1,b=m.length;d<b;d++)g=this.n[m[d]],g.ka.push(f),f.Af.push(g);c=0;for(h=a[28].length;c<h;c++){m=a[28][c];f=[];d=0;for(b=m.length;d<b;d++)f.push(this.n[m[d]]);d=0;for(b=f.length;d<b;d++)f[d].wb=!0,f[d].Cb=f}if(0<this.og)for(c=0,h=this.n.length;c<
h;c++)if(g=this.n[c],!g.L&&g.ka.length){g.Ph=Array(this.og);g.ff=Array(this.og);g.nm=Array(this.og);n=[];d=v=x=r=0;for(b=g.ka.length;d<b;d++)for(e=g.ka[d],g.Ph[e.ld]=r,r+=e.Ut,g.ff[e.ld]=x,x+=e.hq,g.nm[e.ld]=v,v+=e.Jr,m=0,f=e.J.length;m<f;m++)n.push(va({},e.J[m]));g.J=n.concat(g.J);d=0;for(b=g.J.length;d<b;d++)g.J[d].index=d}c=0;for(h=a[5].length;c<h;c++)g=a[5][c],d=new wb(this,g),this.Bk[d.name]=d,this.Fc.push(d);c=0;for(h=a[6].length;c<h;c++)g=a[6][c],d=new xb(this,g),this.Qj[d.name]=d,this.kd.push(d);
c=0;for(h=this.kd.length;c<h;c++)this.kd[c].za();c=0;for(h=this.kd.length;c<h;c++)this.kd[c].wl();c=0;for(h=this.lj.length;c<h;c++)this.lj[c].za();U(this.lj);this.dq=a[7];this.sd=a[9];this.ag=1;this.Vq=a[13];this.ya=a[14];this.fm=a[15];this.St=a[17];this.Qk=a[20];this.gq=0<this.Qk;this.gt=a[22];this.Tb=this.dp=a[23];this.Oq=a[24];this.kt=a[25];this.fa=a[27]&&!this.Sd;this.$i=Date.now();U(this.Ei);this.ts()};var c=!1,d=0,r=[];e.prototype.pt=function(a,c){function h(){d--;b.En()}var b=this;a.addEventListener("load",
h);a.addEventListener("error",h);r.push([a,c]);this.En()};e.prototype.En=function(){for(var a;r.length&&100>d;)d++,a=r.shift(),this.vo(a[0],a[1])};e.prototype.Wt=function(a,h){a.cocoonLazyLoad=!0;a.onerror=function(h){c=a.cm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",h)};this.Dc?a.src=h:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(c){a.src=c},function(d){c=a.cm=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",
d)}):(a.crossOrigin="anonymous",this.pt(a,h)));this.Vf.push(a)};e.prototype.Ir=function(a){var c,h;c=0;for(h=this.Vf.length;c<h;c++)if(this.Vf[c].rq===a)return this.Vf[c];return null};var g=0,v=!1;e.prototype.ls=function(){this.bg&&(g=this.bg.Bv(this.dq))};e.prototype.Xl=function(){var a=g,c=0,h=0,d=!0,b,m,h=0;for(b=this.Vf.length;h<b;h++){m=this.Vf[h];var f=m.qq;if(!f||0>=f)f=5E4;a+=f;m.src&&(m.complete||m.loaded)&&!m.cm?c+=f:d=!1}d&&this.kt&&this.bg&&(v||(this.bg.Cv(),v=!0),h=this.bg.mv(),c+=h,
h<g&&(d=!1));this.Hc=0==a?1:c/a;return d};var w=!1;e.prototype.go=function(){if(this.qa||this.u){var a=this.qa||this.Rk;this.Wa&&this.bo();var h=window.innerWidth,d=window.innerHeight;this.vf===h&&this.uf===d||this.setSize(h,d);this.Hc=0;this.gn=-1;var b=this;if(this.Xl()&&(4!==this.Yd||w))this.ns();else{d=Date.now()-this.$i;if(a){var m=this.width,g=this.height,h=this.devicePixelRatio;if(3>this.Yd&&(this.gc||500<=d&&this.gn!=this.Hc)){a.clearRect(0,0,m,g);var d=m/2,g=g/2,m=0===this.Yd&&this.Xd.yi.complete,
e=40*h,n=0,r=80*h,x;if(m){var v=this.Xd.yi,r=v.width*h;x=v.height*h;e=r/2;n=x/2;a.drawImage(v,S(d-e),S(g-n),r,x)}1>=this.Yd?(d=S(d-e)+.5,g=S(g+(n+(m?12*h:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(d,g,Math.floor(r*this.Hc),6*h),a.strokeStyle="black",a.strokeRect(d,g,r,6*h),a.strokeStyle="white",a.strokeRect(d-1*h,g-1*h,r+2*h,8*h)):2===this.Yd&&(a.font=this.Dc?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.Ev="middle",h=Math.round(100*this.Hc)+"%",m=a.measureText?a.measureText(h):
null,a.fillText(h,d-(m?m.width:0)/2,g));this.gn=this.Hc}else if(4===this.Yd){this.Tq(a);f?f(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.gc?10:100)}}};var n=-1,h="undefined"===typeof cr_is_preview?200:0,m=!0,x=!1,ka=0,E=0,la="undefined"===typeof cr_is_preview?3E3:0,Q=null,X=null,G=0;e.prototype.Tq=function(a){if(!w){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),g=this.Xd.yi,f=this.Xd.jt,e=this.Xd.Xt,r=0;4>r;++r)if(!g[r].complete||!f[r].complete||
!e[r].complete)return;0===G&&(n=Date.now());var r=Date.now(),v=!1,k=a,l,t;m||x?(a.clearRect(0,0,d,b),Q&&Q.width===d&&Q.height===b||(Q=document.createElement("canvas"),Q.width=d,Q.height=b,X=Q.getContext("2d")),k=X,v=!0,m&&1===G&&(n=Date.now())):a.globalAlpha=1;k.fillStyle="#333333";k.fillRect(0,0,d,b);256<this.ig?(l=Ca(.22*b,105,.6*d),t=.25*l,k.drawImage(p(f,l),.5*d-l/2,.2*b-t/2,l,t),t=l=Math.min(.395*b,.95*d),k.drawImage(p(g,l),.5*d-l/2,.485*b-t/2,l,t),l=Ca(.22*b,105,.6*d),t=.25*l,k.drawImage(p(e,
l),.5*d-l/2,.868*b-t/2,l,t),k.fillStyle="#3C3C3C",l=d,t=Math.max(.005*b,2),k.fillRect(0,.8*b-t/2,l,t),k.fillStyle=c?"red":"#E0FF65",l=d*this.Hc,k.fillRect(.5*d-l/2,.8*b-t/2,l,t)):(t=l=.55*b,k.drawImage(p(g,l),.5*d-l/2,.45*b-t/2,l,t),k.fillStyle="#3C3C3C",l=d,t=Math.max(.005*b,2),k.fillRect(0,.85*b-t/2,l,t),k.fillStyle=c?"red":"#E0FF65",l=d*this.Hc,k.fillRect(.5*d-l/2,.85*b-t/2,l,t));v&&(m?a.globalAlpha=0===G?0:Math.min((r-n)/300,1):x&&(a.globalAlpha=Math.max(1-(r-E)/300,0)),a.drawImage(Q,0,0,d,b));
m&&300<=r-n&&2<=G&&(m=!1,ka=r);!m&&r-ka>=la&&!x&&1<=this.Hc&&(x=!0,E=r);if(x&&r-E>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.Hc&&500>Date.now()-n)w=!0,x=m=!1,this.Xd=X=Q=null;++G}};e.prototype.ns=function(){this.Wa&&(this.canvas.parentNode.removeChild(this.Wa),this.Wa=this.Rk=null);this.$i=Date.now();this.Ce=Qa();var a,c,h;if(this.zl)for(a=0,c=this.n.length;a<c;a++)h=this.n[a],h.L||h.sk||!h.ma.Ud||h.Y();else this.qf=!1;a=0;for(c=this.Fc.length;a<c;a++)this.Fc[a].sq();2<=this.tb&&(a=this.Ia/
this.Ha,c=this.width/this.height,this.ag=2!==this.tb&&c>a||2===this.tb&&c<a?this.height/this.Ha:this.width/this.Ia);this.tm?this.Bk[this.tm].jl():this.Fc[0].jl();this.zl||(this.vi=1,this.trigger(Y.prototype.m.Gl,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.n.length;a<c;a++)h=this.n[a],h.Ss&&h.Ss();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):
this.tc(!1);this.Rd&&AppMobi.webview.execute("onGameReady();")};e.prototype.tc=function(a,c,h){if(this.S){var d=Qa();if(h||!this.Cg||a){a||(f?this.Zk=f(this.No):this.ol=setTimeout(this.No,this.Td?1:16));c=c||d;var b=this.tb;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.hc)||this.Bg)&&0<this.te&&(b=this.te);if(0<b){var b=window.innerWidth,m=window.innerHeight;this.vf===b&&this.uf===m||this.setSize(b,m)}this.la||(h?this.Rh||(this.Rh=
!0):this.Rh?(this.Rh=!1,0===this.tb&&this.setSize(Math.round(this.Qn/this.devicePixelRatio),Math.round(this.Pn/this.devicePixelRatio),!0)):(this.Qn=this.width,this.Pn=this.height));this.qf&&(h=this.Xl(),this.vi=this.Hc,h&&(this.qf=!1,this.Hc=1,this.trigger(Y.prototype.m.Gl,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ns(c);!this.Z&&!this.gc||this.vk||this.lh||a||(this.Z=!1,this.u?this.Sb():this.Rc(),this.jh&&(this.canvas&&this.canvas.toDataURL&&(this.Do=this.canvas.toDataURL(this.jh[0],
this.jh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Do),this.trigger(Y.prototype.m.wp,null)),this.jh=null));this.nv||(this.ad++,this.ng++,this.Wh++);this.Sg+=Qa()-d}}};e.prototype.Ns=function(a){var c,h,d,b,m,g,f,e;1E3<=a-this.Ce&&(this.Ce+=1E3,1E3<=a-this.Ce&&(this.Ce=a),this.Vj=this.Wh,this.Wh=0,this.Ij=this.Sg,this.Sg=0);c=0;0!==this.ni&&(c=a-this.ni,0>c&&(c=0),this.oe=c/=1E3,.5<this.oe?this.oe=0:this.oe>1/this.In&&(this.oe=1/this.In));this.ni=a;this.cf=this.oe*this.Qf;this.Vb.add(this.cf);
this.rj.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Bg)&&!this.hc;2<=this.tb||a&&0<this.te?(c=this.Ia/this.Ha,h=this.width/this.height,d=this.tb,a&&0<this.te&&(d=this.te),this.ag=2!==d&&h>c||2===d&&h<c?this.height/this.Ha:this.width/this.Ia,this.S&&(this.S.oo(this.S.scrollX),this.S.po(this.S.scrollY))):this.ag=this.xe?this.devicePixelRatio:1;this.bb();this.Ec++;this.$c.yt();this.Ec--;this.bb();this.Ec++;h=this.On.ge();a=
0;for(c=h.length;a<c;a++)h[a].wv();a=0;for(c=this.n.length;a<c;a++)if(g=this.n[a],!g.L&&(g.pa.length||g.ka.length))for(h=0,d=g.i.length;h<d;h++)for(f=g.i[h],b=0,m=f.I.length;b<m;b++)f.I[b].tc();a=0;for(c=this.n.length;a<c;a++)if(g=this.n[a],!g.L&&(g.pa.length||g.ka.length))for(h=0,d=g.i.length;h<d;h++)for(f=g.i[h],b=0,m=f.I.length;b<m;b++)e=f.I[b],e.co&&e.co();h=this.Mk.ge();a=0;for(c=h.length;a<c;a++)h[a].tc();this.Ec--;this.os();for(a=0;this.me&&10>a++;)this.lm(this.me);a=0;for(c=this.kd.length;a<
c;a++)this.kd[a].jk=!1;this.S.re&&this.S.re.Ba();U(this.bh);this.Ec++;a=0;for(c=this.n.length;a<c;a++)if(g=this.n[a],!g.L&&(g.pa.length||g.ka.length))for(h=0,d=g.i.length;h<d;h++)for(f=g.i[h],b=0,m=f.I.length;b<m;b++)e=f.I[b],e.ml&&e.ml();h=this.Nk.ge();a=0;for(c=h.length;a<c;a++)h[a].ml();this.Ec--};e.prototype.Ef=function(){var a,c,h,d,b,m,g,f,e;a=0;for(c=this.n.length;a<c;a++)if(g=this.n[a],!g.L)for(h=0,d=g.i.length;h<d;h++)if(f=g.i[h],f.Ef&&f.Ef(),f.I)for(b=0,m=f.I.length;b<m;b++)e=f.I[b],e.Ef&&
e.Ef()};e.prototype.lm=function(a){var c=this.S;this.S.Jt();var h,d,b;if(this.u)for(h=0,d=this.n.length;h<d;h++)b=this.n[h],b.L||!b.To||b.global&&0!==b.i.length||-1!==a.xg.indexOf(b)||b.To();c==a&&U(this.$c.Nb);U(this.bh);this.lo(!0);a.jl();this.lo(!1);this.Z=!0;this.bb()};e.prototype.lo=function(a){var c,h,d,b,m,g,f,e,n;c=0;for(h=this.pa.length;c<h;c++)d=this.pa[c],a?d.Vg&&d.Vg():d.Wg&&d.Wg();c=0;for(h=this.n.length;c<h;c++)if(d=this.n[c],d.global||d.ma.Zi)for(b=0,m=d.i.length;b<m;b++)if(g=d.i[b],
a?g.Vg&&g.Vg():g.Wg&&g.Wg(),g.I)for(f=0,e=g.I.length;f<e;f++)n=g.I[f],a?n.Vg&&n.Vg():n.Wg&&n.Wg()};e.prototype.nl=function(a){this.Mk.add(a)};e.prototype.Mt=function(a){this.Nk.add(a)};e.prototype.Yh=function(a){return a&&-1!==a.Tg?this.oe*a.Tg:this.cf};e.prototype.Rc=function(){this.S.Rc(this.qa);this.Rd&&this.qa.present()};e.prototype.Sb=function(){this.fa&&(this.pe=1,this.S.bf(this.u));this.S.Sb(this.u);this.u.mt()};e.prototype.Tl=function(a){a&&this.Nh.push(a)};e.prototype.qt=function(a){Ba(this.Nh,
a)};e.prototype.$h=function(a){a=a.toString();return this.rd.hasOwnProperty(a)?this.rd[a]:null};var J=[];e.prototype.Te=function(a){var c,h;c=a.type.name;var d=null;if(this.ne.hasOwnProperty(c)){if(d=this.ne[c],d.contains(a))return}else d=J.length?J.pop():new ba,this.ne[c]=d;d.add(a);this.Pd=!0;if(a.wb)for(c=0,h=a.siblings.length;c<h;c++)this.Te(a.siblings[c]);this.rk&&d.Tf.push(a);this.qk||(this.Ec++,this.trigger(Object.getPrototypeOf(a.type.ma).m.yp,a),this.Ec--)};e.prototype.bb=function(){if(this.Pd){var a,
c,h,d,b,m;this.rk=!0;h=0;for(b=this.Bc.length;h<b;++h)for(a=this.Bc[h],c=a.type,c.i.push(a),d=0,m=c.ka.length;d<m;++d)c.ka[d].i.push(a),c.ka[d].Nf=!0;U(this.Bc);this.qp();Pa(this.ne);this.Pd=this.rk=!1}};e.prototype.qp=function(){for(var a in this.ne)this.ne.hasOwnProperty(a)&&this.hp(this.ne[a])};e.prototype.hp=function(a){var c=a.ge(),h=c[0].type,d,b,m,g,f,e;Ra(h.i,a);h.Nf=!0;0===h.i.length&&(h.wh=!1);d=0;for(b=h.ka.length;d<b;++d)e=h.ka[d],Ra(e.i,a),e.Nf=!0;d=0;for(b=this.$c.Nb.length;d<b;++d)if(f=
this.$c.Nb[d],f.Lb.hasOwnProperty(h.index)&&Ra(f.Lb[h.index].we,a),!h.L)for(m=0,g=h.ka.length;m<g;++m)e=h.ka[m],f.Lb.hasOwnProperty(e.index)&&Ra(f.Lb[e.index].we,a);if(f=c[0].j){if(f.$b)for(m=f.i,d=0,b=m.length;d<b;++d)g=m[d],a.contains(g)&&(g.V(),f.Xa.update(g,g.xb,null),g.xb.set(0,0,-1,-1));Ra(f.i,a);f.eh(0)}for(d=0;d<c.length;++d)this.gp(c[d],h);a.clear();J.push(a);this.Z=!0};e.prototype.gp=function(a,c){var h,d,b;h=0;for(d=this.Nh.length;h<d;++h)this.Nh[h](a);a.Jd&&c.Gh.update(a,a.Jd,null);(h=
a.j)&&h.Hf(a,!0);if(a.I)for(h=0,d=a.I.length;h<d;++h)b=a.I[h],b.Df&&b.Df(),b.behavior.Lk.remove(a);this.On.remove(a);this.Mk.remove(a);this.Nk.remove(a);a.Df&&a.Df();this.rd.hasOwnProperty(a.uid.toString())&&delete this.rd[a.uid.toString()];this.Fi--;100>c.Lh.length&&c.Lh.push(a)};e.prototype.hm=function(a,c,h,d){if(a.L){var b=S(Math.random()*a.Af.length);return this.hm(a.Af[b],c,h,d)}return a.ec?this.Kd(a.ec,c,!1,h,d,!1):null};var L=[];e.prototype.Kd=function(a,c,h,d,b,m){var g,f,e,n;if(!a)return null;
var r=this.n[a[1]],x=r.ma.Ud;if(this.qf&&x&&!r.sk||x&&!this.u&&11===a[0][11])return null;var v=c;x||(c=null);var k;r.Lh.length?(k=r.Lh.pop(),k.Xb=!0,r.ma.wa.call(k,r)):(k=new r.ma.wa(r),k.Xb=!1);!h||m||this.rd.hasOwnProperty(a[2].toString())?k.uid=this.Ug++:k.uid=a[2];this.rd[k.uid.toString()]=k;k.io=this.Mn++;k.ve=r.i.length;g=0;for(f=this.Bc.length;g<f;++g)this.Bc[g].type===r&&k.ve++;k.sg=ub;k.toString=vb;e=a[3];if(k.Xb)Pa(k.C);else{k.C={};if("undefined"!==typeof cr_is_preview)for(k.Km=[],k.Km.length=
e.length,g=0,f=e.length;g<f;g++)k.Km[g]=e[g][1];k.Da=[];k.Da.length=e.length}g=0;for(f=e.length;g<f;g++)k.Da[g]=e[g][0];if(x){var p=a[0];k.x=ea(d)?p[0]:d;k.y=ea(b)?p[1]:b;k.z=p[2];k.width=p[3];k.height=p[4];k.depth=p[5];k.k=p[6];k.opacity=p[7];k.Gb=p[8];k.Hb=p[9];k.cb=p[10];g=p[11];!this.u&&r.J.length&&(k.cb=g);k.eg=Za(k.cb);this.r&&ab(k,k.cb,this.r);if(k.Xb){g=0;for(f=p[12].length;g<f;g++)for(e=0,n=p[12][g].length;e<n;e++)k.ra[g][e]=p[12][g][e];k.ia.set(0,0,0,0);k.Jd.set(0,0,-1,-1);k.xb.set(0,0,
-1,-1);k.qb.fh(k.ia);U(k.yj)}else{k.ra=p[12].slice(0);g=0;for(f=k.ra.length;g<f;g++)k.ra[g]=p[12][g].slice(0);k.R=[];k.Bd=[];k.Bd.length=r.J.length;k.ia=new T(0,0,0,0);k.Jd=new T(0,0,-1,-1);k.xb=new T(0,0,-1,-1);k.qb=new ua;k.yj=[];k.p=yb;k.gv=zb;k.eb=Ab;k.V=Bb;k.Rt=Cb;k.$o=Db;k.Tc=Eb}k.Pf=!1;k.Pt=0;k.Ot=0;k.Nt=null;14===p.length&&(k.Pf=!0,k.Pt=p[13][0],k.Ot=p[13][1],k.Nt=p[13][2]);g=0;for(f=r.J.length;g<f;g++)k.Bd[g]=!0;k.td=!0;k.Mc=Fb;k.Mc();k.bp=!!k.R.length;k.xj=!0;k.Bj=!0;r.vh=!0;k.visible=!0;
k.Tg=-1;k.j=c;k.Nc=c.i.length;k.pe=0;"undefined"===typeof k.T&&(k.T=null);this.Z=k.ed=!0}var l;U(L);g=0;for(f=r.ka.length;g<f;g++)L.push.apply(L,r.ka[g].pa);L.push.apply(L,r.pa);if(k.Xb)for(g=0,f=L.length;g<f;g++){var E=L[g];l=k.I[g];l.Xb=!0;E.behavior.wa.call(l,E,k);p=a[4][g];e=0;for(n=p.length;e<n;e++)l.D[e]=p[e];l.Y();E.behavior.Lk.add(k)}else for(k.I=[],g=0,f=L.length;g<f;g++)E=L[g],l=new E.behavior.wa(E,k),l.Xb=!1,l.D=a[4][g].slice(0),l.Y(),k.I.push(l),E.behavior.Lk.add(k);p=a[5];if(k.Xb)for(g=
0,f=p.length;g<f;g++)k.D[g]=p[g];else k.D=p.slice(0);this.Bc.push(k);this.Pd=!0;c&&(c.$f(k,!0),1!==c.mc||1!==c.nc)&&(r.wh=!0);this.Fi++;if(r.wb){if(k.wb=!0,k.Xb?U(k.siblings):k.siblings=[],!h&&!m){g=0;for(f=r.Cb.length;g<f;g++)if(r.Cb[g]!==r){if(!r.Cb[g].ec)return null;k.siblings.push(this.Kd(r.Cb[g].ec,v,!1,x?k.x:d,x?k.y:b,!0))}g=0;for(f=k.siblings.length;g<f;g++)for(k.siblings[g].siblings.push(k),e=0;e<f;e++)g!==e&&k.siblings[g].siblings.push(k.siblings[e])}}else k.wb=!1,k.siblings=null;k.Y();g=
0;for(f=k.I.length;g<f;g++)k.I[g].it&&k.I[g].it();return k};e.prototype.dk=function(a){var c,h;c=0;for(h=this.S.K.length;c<h;c++){var d=this.S.K[c];if(cb(d.name,a))return d}return null};e.prototype.qg=function(a){a=S(a);0>a&&(a=0);a>=this.S.K.length&&(a=this.S.K.length-1);return this.S.K[a]};e.prototype.Gj=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].Q().aa=!0};e.prototype.$g=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].$g()};e.prototype.Ni=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].Ni()};
e.prototype.Ke=function(a){var c,h;c=0;for(h=a.length;c<h;c++)a[c].Ke()};e.prototype.Wo=function(a){if(a.vh){var c,h,d=a.i;c=0;for(h=d.length;c<h;++c)d[c].$o();d=this.Bc;c=0;for(h=d.length;c<h;++c)d[c].type===a&&d[c].$o();a.vh=!1}};e.prototype.xm=function(a,c,h,d){var b,g,m=a?1!==a.mc||1!==a.nc:!1;if(c.L)for(a=0,b=c.Af.length;a<b;++a)g=c.Af[a],m||g.wh?za(d,g.i):(this.Wo(g),g.Gh.Pi(h,d));else m||c.wh?za(d,c.i):(this.Wo(c),c.Gh.Pi(h,d))};e.prototype.Cm=function(a,c,h,d){var b,g;b=0;for(g=c.length;b<
g;++b)this.xm(a,c[b],h,d)};e.prototype.Wr=function(a,c,h){var d=this.Fo;d&&this.Cm(a,d.Di,c,h)};e.prototype.Qr=function(a,c,h){var d=this.Vm;d&&this.Cm(a,d.Di,c,h)};e.prototype.fj=function(a,c,h){var d=a.Q(),b,g,m,f,e=this.hb().Rb.kc,n,r,k;if(d.aa)for(d.aa=!1,U(d.i),b=0,f=a.i.length;b<f;b++)m=a.i[b],m.V(),n=m.j.Sa(c,h,!0),r=m.j.Sa(c,h,!1),m.eb(n,r)?d.i.push(m):e&&d.O.push(m);else{g=0;k=e?d.O:d.i;b=0;for(f=k.length;b<f;b++)m=k[b],m.V(),n=m.j.Sa(c,h,!0),r=m.j.Sa(c,h,!1),m.eb(n,r)&&(e?d.i.push(m):(d.i[g]=
d.i[b],g++));k.length=g}a.cc();return d.ik()};e.prototype.Mb=function(a,c){if(!(a&&c&&a!==c&&a.ed&&c.ed))return!1;a.V();c.V();var h=a.j,d=c.j,b,g,m,f,e,n,r,k;if(h===d||h.mc===d.mc&&d.nc===d.nc&&h.scale===d.scale&&h.k===d.k&&h.Oc===d.Oc){if(!a.ia.us(c.ia)||!a.qb.Lm(c.qb)||a.Pf&&c.Pf)return!1;if(a.Pf)return this.Io(a,c);if(c.Pf)return this.Io(c,a);r=a.T&&!a.T.lf();b=c.T&&!c.T.lf();if(!r&&!b)return!0;r?(a.T.Xe(a.width,a.height,a.k),r=a.T):(this.Kc.Lf(a.qb,a.x,a.y,a.width,a.height),r=this.Kc);b?(c.T.Xe(c.width,
c.height,c.k),k=c.T):(this.Kc.Lf(c.qb,c.x,c.y,c.width,c.height),k=this.Kc);return r.yg(k,c.x-a.x,c.y-a.y)}r=a.T&&!a.T.lf();b=c.T&&!c.T.lf();r?(a.T.Xe(a.width,a.height,a.k),this.Kc.xo(a.T)):this.Kc.Lf(a.qb,a.x,a.y,a.width,a.height);r=this.Kc;b?(c.T.Xe(c.width,c.height,c.k),this.ll.xo(c.T)):this.ll.Lf(c.qb,c.x,c.y,c.width,c.height);k=this.ll;b=0;for(g=r.Ic;b<g;b++)m=2*b,f=m+1,e=r.Ja[m],n=r.Ja[f],r.Ja[m]=h.ba(e+a.x,n+a.y,!0),r.Ja[f]=h.ba(e+a.x,n+a.y,!1);r.V();b=0;for(g=k.Ic;b<g;b++)m=2*b,f=m+1,e=k.Ja[m],
n=k.Ja[f],k.Ja[m]=d.ba(e+c.x,n+c.y,!0),k.Ja[f]=d.ba(e+c.x,n+c.y,!1);k.V();return r.yg(k,0,0)};var K=new ua;new T(0,0,0,0);var P=[];e.prototype.Io=function(a,c){var h,d,b,g,m=c.ia,f=a.x,e=a.y;a.kv(m,P);var n=c.T&&!c.T.lf();h=0;for(d=P.length;h<d;++h)if(b=P[h],g=b.zv,m.vs(g,f,e)&&(K.fh(g),K.offset(f,e),K.Lm(c.qb)))if(n)if(c.T.Xe(c.width,c.height,c.k),b.Uk){if(b.Uk.yg(c.T,c.x-(f+g.left),c.y-(e+g.top)))return U(P),!0}else{if(this.Kc.Lf(K,0,0,g.right-g.left,g.bottom-g.top),this.Kc.yg(c.T,c.x,c.y))return U(P),
!0}else if(b.Uk){if(this.Kc.Lf(c.qb,0,0,c.width,c.height),b.Uk.yg(this.Kc,-(f+g.left),-(e+g.top)))return U(P),!0}else return U(P),!0;U(P);return!1};e.prototype.sl=function(a,c){if(!c)return!1;var h,d,b,g,m;h=0;for(d=a.pa.length;h<d;h++)if(a.pa[h].behavior instanceof c)return!0;if(!a.L)for(h=0,d=a.ka.length;h<d;h++)for(m=a.ka[h],b=0,g=m.pa.length;b<g;b++)if(m.pa[b].behavior instanceof c)return!0;return!1};e.prototype.tl=function(a){return this.sl(a,Ub.Bu)};e.prototype.ul=function(a){return this.sl(a,
Ub.Cu)};var H=[];e.prototype.Za=function(a){var c,h,d;a.V();this.Wr(a.j,a.ia,H);c=0;for(h=H.length;c<h;++c)if(d=H[c],d.C.solidEnabled&&this.Mb(a,d))return U(H),d;U(H);return null};var M=[];e.prototype.ee=function(a,c){var h=null;c&&(h=M,U(h));a.V();this.Qr(a.j,a.ia,H);var d,b,g;d=0;for(b=H.length;d<b;++d)if(g=H[d],g.C.jumpthruEnabled&&this.Mb(a,g))if(c)h.push(g);else return U(H),g;U(H);return h};e.prototype.oc=function(a,c,h,d,b,g){d=d||50;var m=a.x,f=a.y,e,n=null,r=null;for(e=0;e<d;e++)if(a.x=m+
c*e,a.y=f+h*e,a.p(),!this.Mb(a,n)&&((n=this.Za(a))&&(r=n),!n&&(b&&(g?n=this.Mb(a,g)?g:null:n=this.ee(a),n&&(r=n)),!n)))return r&&this.Xk(a,c,h,r),!0;a.x=m;a.y=f;a.p();return!1};e.prototype.Xk=function(a,c,h,d){var b=2,g,m=!1;g=!1;for(var f=a.x,e=a.y;16>=b;)g=1/b,b*=2,a.x+=c*g*(m?1:-1),a.y+=h*g*(m?1:-1),a.p(),this.Mb(a,d)?g=m=!0:(g=m=!1,f=a.x,e=a.y);g&&(a.x=f,a.y=e,a.p())};e.prototype.jo=function(a,c){var h=ea(c)?100:c,d=0,b=a.x,g=a.y,m=0,f=0,e=0,n=this.Za(a);if(!n)return!0;for(;d<=h;){switch(m){case 0:f=
0;e=-1;d++;break;case 1:f=1;e=-1;break;case 2:f=1;e=0;break;case 3:e=f=1;break;case 4:f=0;e=1;break;case 5:f=-1;e=1;break;case 6:f=-1;e=0;break;case 7:e=f=-1}m=(m+1)%8;a.x=S(b+f*d);a.y=S(g+e*d);a.p();if(!this.Mb(a,n)&&(n=this.Za(a),!n))return!0}a.x=b;a.y=g;a.p();return!1};e.prototype.Gf=function(a,c){a.ed&&c.ed&&this.bh.push([a,c])};e.prototype.nq=function(a,c){var h,d,b;h=0;for(d=this.bh.length;h<d;h++)if(b=this.bh[h],b[0]==a&&b[1]==c||b[0]==c&&b[1]==a)return!0;return!1};e.prototype.lq=function(a,
c,h){var d=a.x,b=a.y,g=ja(10,Ma(c,h,d,b)),m=Ia(c,h,d,b),f=this.Za(a);if(!f)return Fa(m+oa);var e=f,n,r,k,x,v=V(5);for(n=1;36>n;n++)if(r=m-n*v,a.x=c+Math.cos(r)*g,a.y=h+Math.sin(r)*g,a.p(),!this.Mb(a,e)&&(e=this.Za(a),!e)){k=r;break}36===n&&(k=Fa(m+oa));e=f;for(n=1;36>n;n++)if(r=m+n*v,a.x=c+Math.cos(r)*g,a.y=h+Math.sin(r)*g,a.p(),!this.Mb(a,e)&&(e=this.Za(a),!e)){x=r;break}36===n&&(x=Fa(m+oa));a.x=d;a.y=b;a.p();if(x===k)return x;a=Ja(x,k)/2;a=La(x,k)?Fa(k+a+oa):Fa(x+a);k=Math.cos(m);m=Math.sin(m);
x=Math.cos(a);a=Math.sin(a);c=k*x+m*a;return Ia(0,0,k-2*c*x,m-2*c*a)};var ha=-1;e.prototype.trigger=function(a,c,h){if(!this.S)return!1;var d=this.S.re;if(!d)return!1;var b=!1,g,m,f;ha++;var e=d.Mj;m=0;for(f=e.length;m<f;++m)g=this.Po(a,c,e[m],h),b=b||g;g=this.Po(a,c,d,h);ha--;return b||g};e.prototype.Po=function(a,c,h,d){var b=!1,g,m,f,e;if(c)for(f=this.ql(a,c,c.type.name,h,d),b=b||f,e=c.type.ka,g=0,m=e.length;g<m;++g)f=this.ql(a,c,e[g].name,h,d),b=b||f;else f=this.ql(a,c,"system",h,d),b=b||f;return b};
e.prototype.ql=function(a,c,h,d,b){var g,m=!1,f=!1,f="undefined"!==typeof b,e=(f?d.pm:d.Qo)[h];if(!e)return m;var n=null;d=0;for(g=e.length;d<g;++d)if(e[d].method==a){n=e[d].mg;break}if(!n)return m;var r;f?r=n[b]:r=n;if(!r)return null;d=0;for(g=r.length;d<g;d++)a=r[d][0],b=r[d][1],f=this.Er(c,h,a,b),m=m||f;return m};e.prototype.Er=function(a,c,h,d){var b,g,m=!1;this.rl++;var f=this.hb().Rb;f&&this.$g(f.de);var e=1<this.rl;this.$g(h.de);e&&this.ot();var n=this.Oi(h);n.Rb=h;a&&(b=this.types[c].Q(),
b.aa=!1,U(b.i),b.i[0]=a,this.types[c].cc());a=!0;if(h.parent){c=n.Ho;for(b=h.parent;b;)c.push(b),b=b.parent;c.reverse();b=0;for(g=c.length;b<g;b++)if(!c[b].At()){a=!1;break}}a&&(this.ng++,h.kc?h.zt(d):h.Ba(),m=m||n.Be);this.Li();e&&this.ht();this.Ke(h.de);f&&this.Ke(f.de);this.Pd&&0===this.Ec&&0===ha&&!this.tk&&this.bb();this.rl--;return m};e.prototype.Zj=function(){var a=this.hb();return a.Rb.Ma[a.La]};e.prototype.ot=function(){this.xi++;this.xi>=this.Ik.length&&this.Ik.push([])};e.prototype.ht=
function(){this.xi--};e.prototype.ym=function(){return this.Ik[this.xi]};e.prototype.Oi=function(a){this.Oh++;this.Oh>=this.Pj.length&&this.Pj.push(new Gb);var c=this.hb();c.reset(a);return c};e.prototype.Li=function(){this.Oh--};e.prototype.hb=function(){return this.Pj[this.Oh]};e.prototype.zm=function(a,c){for(var h,d,b,g,m,f;c;){h=0;for(d=c.rc.length;h<d;h++)if(f=c.rc[h],f instanceof Hb&&cb(a,f.name))return f;c=c.parent}h=0;for(d=this.kd.length;h<d;h++)for(m=this.kd[h],b=0,g=m.Nd.length;b<g;b++)if(f=
m.Nd[b],f instanceof Hb&&cb(a,f.name))return f;return null};e.prototype.Am=function(a){var c,h;c=0;for(h=this.Fc.length;c<h;c++)if(this.Fc[c].P===a)return this.Fc[c];return null};e.prototype.ai=function(a){var c,h;c=0;for(h=this.n.length;c<h;c++)if(this.n[c].P===a)return this.n[c];return null};e.prototype.Nr=function(a){var c,h;c=0;for(h=this.Ed.length;c<h;c++)if(this.Ed[c].P===a)return this.Ed[c];return null};e.prototype.wq=function(a,c){this.jh=[a,c];this.Z=!0};e.prototype.os=function(){var a=this,
c=this.gl,h=this.od,d=this.si,g=!1;this.Co&&(g=!0,c="__c2_continuouspreview",this.Co=!1);if(c.length){this.bb();h=this.Et();if(l()&&!this.gc)t(c,h,function(){z("Saved state to IndexedDB storage ("+h.length+" bytes)");a.od=h;a.trigger(Y.prototype.m.tj,null);a.od="";g&&b()},function(d){try{localStorage.setItem("__c2save_"+c,h),z("Saved state to WebStorage ("+h.length+" bytes)"),a.od=h,a.trigger(Y.prototype.m.tj,null),a.od="",g&&b()}catch(m){z("Failed to save game state: "+d+"; "+m),a.trigger(Y.prototype.m.Jl,
null)}});else try{localStorage.setItem("__c2save_"+c,h),z("Saved state to WebStorage ("+h.length+" bytes)"),a.od=h,this.trigger(Y.prototype.m.tj,null),a.od="",g&&b()}catch(m){z("Error saving to WebStorage: "+m),a.trigger(Y.prototype.m.Jl,null)}this.si=this.gl="";this.Ga=null}if(d.length){if(l()&&!this.gc)u(d,function(c){c?(a.Ga=c,z("Loaded state from IndexedDB storage ("+a.Ga.length+" bytes)")):(a.Ga=localStorage.getItem("__c2save_"+d)||"",z("Loaded state from WebStorage ("+a.Ga.length+" bytes)"));
a.lh=!1;a.Ga||(a.Ga=null,a.trigger(Y.prototype.m.uh,null))},function(){a.Ga=localStorage.getItem("__c2save_"+d)||"";z("Loaded state from WebStorage ("+a.Ga.length+" bytes)");a.lh=!1;a.Ga||(a.Ga=null,a.trigger(Y.prototype.m.uh,null))});else{try{this.Ga=localStorage.getItem("__c2save_"+d)||"",z("Loaded state from WebStorage ("+this.Ga.length+" bytes)")}catch(f){this.Ga=null}this.lh=!1;a.Ga||(a.Ga=null,a.trigger(Y.prototype.m.uh,null))}this.gl=this.si=""}null!==this.Ga&&(this.bb(),this.Ls(this.Ga)?(this.od=
this.Ga,this.trigger(Y.prototype.m.Hp,null),this.od=""):a.trigger(Y.prototype.m.uh,null),this.Ga=null)};e.prototype.Et=function(){var c,h,d,b,g,m,f,e={c2save:!0,version:1,rt:{time:this.Vb.oa,walltime:this.rj.oa,timescale:this.Qf,tickcount:this.ad,execcount:this.ng,next_uid:this.Ug,running_layout:this.S.P,start_time_offset:Date.now()-this.$i},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(h=this.n.length;c<h;c++)if(g=this.n[c],!g.L&&!this.tl(g)){m={instances:[]};Oa(g.C)&&(m.ex=
a(g.C));d=0;for(b=g.i.length;d<b;d++)m.instances.push(this.fl(g.i[d]));e.types[g.P.toString()]=m}c=0;for(h=this.Fc.length;c<h;c++)d=this.Fc[c],e.layouts[d.P.toString()]=d.Kb();b=e.events.groups;c=0;for(h=this.Ed.length;c<h;c++)d=this.Ed[c],b[d.P.toString()]=this.ci[d.ug].tg;h=e.events.cnds;for(f in this.Id)this.Id.hasOwnProperty(f)&&(c=this.Id[f],Oa(c.C)&&(h[f]={ex:a(c.C)}));h=e.events.acts;for(f in this.Cd)this.Cd.hasOwnProperty(f)&&(c=this.Cd[f],Oa(c.C)&&(h[f]={ex:a(c.C)}));h=e.events.vars;for(f in this.Uf)this.Uf.hasOwnProperty(f)&&
(c=this.Uf[f],c.ki||c.parent&&!c.Eg||(h[f]=c.data));e.system=this.$c.Kb();return JSON.stringify(e)};e.prototype.ko=function(){var a,c,h,d,b,g;this.rd={};a=0;for(c=this.n.length;a<c;a++)if(h=this.n[a],!h.L)for(d=0,b=h.i.length;d<b;d++)g=h.i[d],this.rd[g.uid.toString()]=g};e.prototype.Ls=function(a){var c;try{c=JSON.parse(a)}catch(h){return!1}if(!c.c2save||1<c.version)return!1;this.Ag=!0;a=c.rt;this.Vb.reset();this.Vb.oa=a.time;this.rj.reset();this.rj.oa=a.walltime||0;this.Qf=a.timescale;this.ad=a.tickcount;
this.ng=a.execcount;this.$i=Date.now()-a.start_time_offset;var d=a.running_layout;if(d!==this.S.P)if(d=this.Am(d))this.lm(d);else return;var b,g,m,f,e,n,r;n=c.types;for(g in n)if(n.hasOwnProperty(g)&&(f=this.ai(parseInt(g,10)))&&!f.L&&!this.tl(f)){n[g].ex?f.C=n[g].ex:Pa(f.C);e=f.i;m=n[g].instances;d=0;for(b=na(e.length,m.length);d<b;d++)this.ti(e[d],m[d]);d=m.length;for(b=e.length;d<b;d++)this.Te(e[d]);d=e.length;for(b=m.length;d<b;d++){e=null;if(f.ma.Ud&&(e=this.S.Zh(m[d].w.l),!e))continue;e=this.Kd(f.ec,
e,!1,0,0,!0);this.ti(e,m[d])}f.Nf=!0}this.bb();this.ko();b=c.layouts;for(g in b)b.hasOwnProperty(g)&&(d=this.Am(parseInt(g,10)))&&d.ic(b[g]);b=c.events.groups;for(g in b)b.hasOwnProperty(g)&&(d=this.Nr(parseInt(g,10)))&&this.ci[d.ug]&&this.ci[d.ug].uo(b[g]);d=c.events.cnds;for(g in this.Id)this.Id.hasOwnProperty(g)&&(d.hasOwnProperty(g)?this.Id[g].C=d[g].ex:this.Id[g].C={});d=c.events.acts;for(g in this.Cd)this.Cd.hasOwnProperty(g)&&(d.hasOwnProperty(g)?this.Cd[g].C=d[g].ex:this.Cd[g].C={});d=c.events.vars;
for(g in d)d.hasOwnProperty(g)&&this.Uf.hasOwnProperty(g)&&(this.Uf[g].data=d[g]);this.Ug=a.next_uid;this.Ag=!1;d=0;for(b=this.Qh.length;d<b;++d)e=this.Qh[d],this.trigger(Object.getPrototypeOf(e.type.ma).m.sh,e);U(this.Qh);this.$c.ic(c.system);d=0;for(b=this.n.length;d<b;d++)if(f=this.n[d],!f.L&&!this.tl(f))for(c=0,g=f.i.length;c<g;c++){e=f.i[c];if(f.wb)for(n=e.sg(),U(e.siblings),a=0,m=f.Cb.length;a<m;a++)r=f.Cb[a],f!==r&&e.siblings.push(r.i[n]);e.Dd&&e.Dd();if(e.I)for(a=0,m=e.I.length;a<m;a++)n=
e.I[a],n.Dd&&n.Dd()}return this.Z=!0};e.prototype.fl=function(c,h){var d,b,g,m,f;m=c.type;g=m.ma;var e={};h?e.c2=!0:e.uid=c.uid;Oa(c.C)&&(e.ex=a(c.C));if(c.Da&&c.Da.length)for(e.ivs={},d=0,b=c.Da.length;d<b;d++)e.ivs[c.type.nk[d].toString()]=c.Da[d];if(g.Ud){g={x:c.x,y:c.y,w:c.width,h:c.height,l:c.j.P,zi:c.Tc()};0!==c.k&&(g.a=c.k);1!==c.opacity&&(g.o=c.opacity);.5!==c.Gb&&(g.hX=c.Gb);.5!==c.Hb&&(g.hY=c.Hb);0!==c.cb&&(g.bm=c.cb);c.visible||(g.v=c.visible);c.ed||(g.ce=c.ed);-1!==c.Tg&&(g.mts=c.Tg);
if(m.J.length)for(g.fx=[],d=0,b=m.J.length;d<b;d++)f=m.J[d],g.fx.push({name:f.name,active:c.Bd[f.index],params:c.ra[f.index]});e.w=g}if(c.I&&c.I.length)for(e.behs={},d=0,b=c.I.length;d<b;d++)m=c.I[d],m.Kb&&(e.behs[m.type.P.toString()]=m.Kb());c.Kb&&(e.data=c.Kb());return e};e.prototype.Pr=function(a,c){var h,d;h=0;for(d=a.nk.length;h<d;h++)if(a.nk[h]===c)return h;return-1};e.prototype.Lr=function(a,c){var h,d;h=0;for(d=a.I.length;h<d;h++)if(a.I[h].type.P===c)return h;return-1};e.prototype.ti=function(a,
c,h){var d,b,g,m,f;f=a.type;var e=f.ma;if(h){if(!c.c2)return}else a.uid=c.uid;c.ex?a.C=c.ex:Pa(a.C);if(b=c.ivs)for(d in b)b.hasOwnProperty(d)&&(g=this.Pr(f,parseInt(d,10)),0>g||g>=a.Da.length||(m=b[d],null===m&&(m=NaN),a.Da[g]=m));if(e.Ud){g=c.w;a.j.P!==g.l&&(b=a.j,a.j=this.S.Zh(g.l),a.j?(b.Hf(a,!0),a.j.$f(a,!0),a.p(),a.j.eh(0)):(a.j=b,h||this.Te(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Nc=g.zi;a.k=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.Gb=g.hasOwnProperty("hX")?
g.hX:.5;a.Hb=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.ed=g.hasOwnProperty("ce")?g.ce:!0;a.Tg=g.hasOwnProperty("mts")?g.mts:-1;a.cb=g.hasOwnProperty("bm")?g.bm:0;a.eg=Za(a.cb);this.r&&ab(a,a.cb,this.r);a.p();if(g.hasOwnProperty("fx"))for(h=0,b=g.fx.length;h<b;h++)m=f.ak(g.fx[h].name),0>m||(a.Bd[m]=g.fx[h].active,a.ra[m]=g.fx[h].params);a.Mc()}if(f=c.behs)for(d in f)f.hasOwnProperty(d)&&(h=this.Lr(a,parseInt(d,10)),0>h||a.I[h].ic(f[d]));c.data&&a.ic(c.data)};e.prototype.qm=
function(a,c,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,h)},h)};e.prototype.Gr=function(a,c){this.qm("data.js",function(h){var d=new FileReader;d.onload=function(c){a(c.target.result)};d.onerror=c;d.readAsText(h)},c)};var qa=[],I=0;e.prototype.Jk=function(){if(qa.length&&!(8<=I)){I++;var a=qa.shift();this.Aq(a.filename,a.Kt,a.Yq)}};e.prototype.Fr=function(a,c,h){var d=this;qa.push({filename:a,Kt:function(a){I--;d.Jk();c(a)},Yq:function(a){I--;
d.Jk();h(a)}});this.Jk()};e.prototype.Aq=function(a,c,h){this.qm(a,function(a){var h=new FileReader;h.onload=function(a){c(a.target.result)};h.readAsArrayBuffer(a)},h)};e.prototype.Hr=function(a,c,h){var d="",b=a.toLowerCase(),g=b.substr(b.length-4),b=b.substr(b.length-5);".mp4"===g?d="video/mp4":".webm"===b?d="video/webm":".m4a"===g?d="audio/mp4":".mp3"===g&&(d="audio/mpeg");this.Fr(a,function(a){a=URL.createObjectURL(new Blob([a],{type:d}));c(a)},h)};e.prototype.ws=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||
"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.vo=function(a,c){this.Qm&&!this.ws(c)?this.Hr(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};e.prototype.Ui=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Ib=function(a){return new e(document.getElementById(a))};Jb=function(a,c){return new e({dc:!0,width:a,height:c})};window.cr_createRuntime=
Ib;window.cr_createDCRuntime=Jb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.xh=!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,p){var l=window.cr_getC2Runtime();l&&l.wq(e,p)};window.cr_sizeCanvas=function(e,p){if(0!==e&&0!==p){var l=window.cr_getC2Runtime();l&&l.setSize(e,p)}};window.cr_setSuspended=function(e){var p=window.cr_getC2Runtime();p&&p.setSuspended(e)};
(function(){function e(a,d){this.b=a;this.re=null;this.scrollX=this.b.Ia/2;this.scrollY=this.b.Ha/2;this.scale=1;this.k=0;this.gf=!0;this.name=d[0];this.dt=d[1];this.ct=d[2];this.width=d[1];this.height=d[2];this.So=d[3];this.Ao=d[4];this.P=d[5];var b=d[6],g,f;this.K=[];this.xg=[];g=0;for(f=b.length;g<f;g++){var e=new Kb(this,b[g]);e.Nn=g;this.K.push(e)}b=d[7];this.Qd=[];g=0;for(f=b.length;g<f;g++){var e=b[g],n=this.b.n[e[1]];n.ec||(n.ec=e);this.Qd.push(e);-1===this.xg.indexOf(n)&&this.xg.push(n)}this.J=
[];this.R=[];this.td=!0;this.ra=[];g=0;for(f=d[8].length;g<f;g++)this.J.push({id:d[8][g][0],name:d[8][g][1],Ca:-1,Gc:!1,Ob:!0,index:g}),this.ra.push(d[8][g][2].slice(0));this.Mc();this.Ff=new T(0,0,1,1);this.$k=new T(0,0,1,1);this.$d={}}function p(a,d){return a.Nc-d.Nc}function l(a,d){this.Fa=a;this.b=a.b;this.i=[];this.scale=1;this.k=0;this.jd=!1;this.wd=new T(0,0,0,0);this.Oo=new ua;this.da=this.X=this.ea=this.W=0;this.Se=!1;this.zd=-1;this.Hj=0;this.name=d[0];this.index=d[1];this.P=d[2];this.visible=
d[3];this.zc=d[4];this.Lc=d[5];this.mc=d[6];this.nc=d[7];this.opacity=d[8];this.Vh=d[9];this.$b=d[10];this.Oc=d[11];this.cb=d[12];this.Uq=d[13];this.eg="source-over";this.fb=this.jb=0;this.Xa=null;this.pd=q();this.Jc=!0;this.wf=new T(0,0,-1,-1);this.Ua=new T(0,0,-1,-1);this.$b&&(this.Xa=new Ya(this.b.Ia,this.b.Ha));this.Yc=!1;var b=d[14],g,f;this.Go=[];this.Ub=[];this.hg=[];g=0;for(f=b.length;g<f;g++){var e=b[g],n=this.b.n[e[1]];n.ec||(n.ec=e,n.vq=this.index);this.Ub.push(e);-1===this.Fa.xg.indexOf(n)&&
this.Fa.xg.push(n)}ya(this.Go,this.Ub);this.J=[];this.R=[];this.td=!0;this.ra=[];g=0;for(f=d[15].length;g<f;g++)this.J.push({id:d[15][g][0],name:d[15][g][1],Ca:-1,Gc:!1,Ob:!0,index:g}),this.ra.push(d[15][g][2].slice(0));this.Mc();this.Ff=new T(0,0,1,1);this.$k=new T(0,0,1,1)}function q(){return a.length?a.pop():[]}function t(c){U(c);a.push(c)}e.prototype.Dt=function(a){var d=a.type.P.toString();this.$d.hasOwnProperty(d)||(this.$d[d]=[]);this.$d[d].push(this.b.fl(a))};e.prototype.Em=function(){var a=
this.K[0];return!a.Lc&&1===a.opacity&&!a.Vh&&a.visible};e.prototype.Mc=function(){U(this.R);this.td=!0;var a,d,b;a=0;for(d=this.J.length;a<d;a++)b=this.J[a],b.Ob&&(this.R.push(b),b.Gc||(this.td=!1))};e.prototype.$j=function(a){var d,b,g;d=0;for(b=this.J.length;d<b;d++)if(g=this.J[d],g.name===a)return g;return null};var u=[],b=!0;e.prototype.jl=function(){this.Ao&&(this.re=this.b.Qj[this.Ao],this.re.wl());this.b.S=this;this.width=this.dt;this.height=this.ct;this.scrollX=this.b.Ia/2;this.scrollY=this.b.Ha/
2;var a,d,f,g,e,k,n;a=0;for(f=this.b.n.length;a<f;a++)if(d=this.b.n[a],!d.L)for(e=d.i,d=0,g=e.length;d<g;d++)if(k=e[d],k.j){var h=k.j.Nn;h>=this.K.length&&(h=this.K.length-1);k.j=this.K[h];-1===k.j.i.indexOf(k)&&k.j.i.push(k);k.j.Se=!0}if(!b)for(a=0,f=this.K.length;a<f;++a)this.K[a].i.sort(p);U(u);this.jq();a=0;for(f=this.K.length;a<f;a++)k=this.K[a],k.tq(),k.nj();e=!1;if(!this.gf){for(n in this.$d)if(this.$d.hasOwnProperty(n)&&(d=this.b.ai(parseInt(n,10)))&&!d.L&&this.b.ul(d)){g=this.$d[n];a=0;for(f=
g.length;a<f;a++){k=null;if(d.ma.Ud&&(k=this.Zh(g[a].w.l),!k))continue;k=this.b.Kd(d.ec,k,!1,0,0,!0);this.b.ti(k,g[a]);e=!0;u.push(k)}U(g)}a=0;for(f=this.K.length;a<f;a++)this.K[a].i.sort(p),this.K[a].Se=!0}e&&(this.b.bb(),this.b.ko());for(a=0;a<u.length;a++)if(k=u[a],k.type.wb)for(f=k.sg(),d=0,g=k.type.Cb.length;d<g;d++)n=k.type.Cb[d],k.type!==n&&(n.i.length>f?k.siblings.push(n.i[f]):n.ec&&(e=this.b.Kd(n.ec,k.j,!0,k.x,k.y,!0),this.b.bb(),n.mj(),k.siblings.push(e),u.push(e)));a=0;for(f=this.Qd.length;a<
f;a++)k=this.Qd[a],d=this.b.n[k[1]],d.wb||this.b.Kd(this.Qd[a],null,!0);this.b.me=null;this.b.bb();if(this.b.qa&&!this.b.la)for(a=0,f=this.b.n.length;a<f;a++)n=this.b.n[a],!n.L&&n.i.length&&n.eo&&n.eo(this.b.qa);if(this.b.Ag)ya(this.b.Qh,u);else for(a=0,f=u.length;a<f;a++)k=u[a],this.b.trigger(Object.getPrototypeOf(k.type.ma).m.sh,k);U(u);this.b.Ag||this.b.trigger(Y.prototype.m.Fl,null);this.gf=!1};e.prototype.sq=function(){var a,d,b,g,f;d=a=0;for(b=this.Qd.length;a<b;a++)g=this.Qd[a],f=this.b.n[g[1]],
f.global?f.wb||this.b.Kd(g,null,!0):(this.Qd[d]=g,d++);xa(this.Qd,d)};e.prototype.Jt=function(){this.b.Ag||this.b.trigger(Y.prototype.m.Gp,null);this.b.qk=!0;U(this.b.$c.Nb);var a,d,f,g,e,k;if(!this.gf)for(a=0,d=this.K.length;a<d;a++)for(this.K[a].yl(),e=this.K[a].i,f=0,g=e.length;f<g;f++)k=e[f],k.type.global||this.b.ul(k.type)&&this.Dt(k);a=0;for(d=this.K.length;a<d;a++){e=this.K[a].i;f=0;for(g=e.length;f<g;f++)k=e[f],k.type.global||this.b.Te(k);this.b.bb();U(e);this.K[a].Se=!0}a=0;for(d=this.b.n.length;a<
d;a++)if(e=this.b.n[a],!(e.global||e.ma.Ud||e.ma.Zi||e.L)){f=0;for(g=e.i.length;f<g;f++)this.b.Te(e.i[f]);this.b.bb()}b=!1;this.b.qk=!1};new T(0,0,0,0);e.prototype.Rc=function(a){var d,b=a,g=!1,f=!this.b.Tb;f&&(this.b.ri||(this.b.ri=document.createElement("canvas"),d=this.b.ri,d.width=this.b.H,d.height=this.b.G,this.b.jn=d.getContext("2d"),g=!0),d=this.b.ri,b=this.b.jn,d.width!==this.b.H&&(d.width=this.b.H,g=!0),d.height!==this.b.G&&(d.height=this.b.G,g=!0),g&&this.b.Ui(b,this.b.ya));b.globalAlpha=
1;b.globalCompositeOperation="source-over";this.b.fm&&!this.Em()&&b.clearRect(0,0,this.b.H,this.b.G);var e,n,g=0;for(e=this.K.length;g<e;g++)n=this.K[g],n.visible&&0<n.opacity&&11!==n.cb&&(n.i.length||!n.Lc)?n.Rc(b):n.nj();f&&a.drawImage(d,0,0,this.b.width,this.b.height)};e.prototype.bf=function(a){a.to(!0);this.b.Aa||(this.b.Aa=a.Qb(this.b.H,this.b.G,this.b.ya));if(this.b.Aa.le!==this.b.H||this.b.Aa.ke!==this.b.G)a.deleteTexture(this.b.Aa),this.b.Aa=a.Qb(this.b.H,this.b.G,this.b.ya);a.qc(this.b.Aa);
this.b.Tb||a.Ne(this.b.H,this.b.G);var d,b;for(d=this.K.length-1;0<=d;--d)b=this.K[d],b.visible&&1===b.opacity&&b.td&&0===b.cb&&(b.i.length||!b.Lc)?b.bf(a):b.nj();a.to(!1)};e.prototype.Sb=function(a){var d=0<this.R.length||this.b.Sf||!this.b.Tb||this.b.fa;if(d){this.b.Aa||(this.b.Aa=a.Qb(this.b.H,this.b.G,this.b.ya));if(this.b.Aa.le!==this.b.H||this.b.Aa.ke!==this.b.G)a.deleteTexture(this.b.Aa),this.b.Aa=a.Qb(this.b.H,this.b.G,this.b.ya);a.qc(this.b.Aa);this.b.Tb||a.Ne(this.b.H,this.b.G)}else this.b.Aa&&
(a.qc(null),a.deleteTexture(this.b.Aa),this.b.Aa=null);this.b.fm&&!this.Em()&&a.clear(0,0,0,0);var b,g,f;b=0;for(g=this.K.length;b<g;b++)f=this.K[b],f.visible&&0<f.opacity&&(f.i.length||!f.Lc)?f.Sb(a):f.nj();d&&(0===this.R.length||1===this.R.length&&this.b.Tb?(1===this.R.length?(d=this.R[0].index,a.yb(this.R[0].Ca),a.Kf(null,1/this.b.H,1/this.b.G,0,0,1,1,this.scale,this.k,0,0,this.b.H/2,this.b.G/2,this.b.Vb.oa,this.ra[d]),a.Mi(this.R[0].Ca)&&(this.b.Z=!0)):a.yb(0),this.b.Tb||a.Ne(this.b.width,this.b.height),
a.qc(null),a.so(!1),a.Jf(1),a.Yb(this.b.Aa),a.qo(),a.pc(),a.Zb(),d=this.b.width/2,b=this.b.height/2,a.ah(-d,b,d,b,d,-b,-d,-b),a.Yb(null),a.so(!0)):this.al(a,null,null,null))};e.prototype.rg=function(){return 0<this.R.length||this.b.Sf||!this.b.Tb||this.b.fa?this.b.Aa:null};e.prototype.Bm=function(){var a=this.K[0].ub(),d,b,g;d=1;for(b=this.K.length;d<b;d++)g=this.K[d],(0!==g.mc||0!==g.nc)&&g.ub()<a&&(a=g.ub());return a};e.prototype.oo=function(a){if(!this.So){var d=1/this.Bm()*this.b.H/2;a>this.width-
d&&(a=this.width-d);a<d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.Z=!0)};e.prototype.po=function(a){if(!this.So){var d=1/this.Bm()*this.b.G/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.b.Z=!0)};e.prototype.jq=function(){this.oo(this.scrollX);this.po(this.scrollY)};e.prototype.al=function(a,d,b,g){var f=b?b.R:d?d.R:this.R,e=1,n=0,h=0,m=0,k=this.b.H,p=this.b.G;b?(e=b.j.ub(),n=b.j.Eb(),h=b.j.W,m=b.j.X,k=b.j.ea,p=b.j.da):d&&(e=d.ub(),n=d.Eb(),h=d.W,m=d.X,
k=d.ea,p=d.da);var l=this.b.Wj,t,q,u,G,J=0,L=1,K,P,H=this.b.H,M=this.b.G,ha=H/2,qa=M/2,I=d?d.Ff:this.Ff,y=d?d.$k:this.$k,A=0,B=0,F=0,C=0,R=H,sa=H,N=M,ta=M,ma=u=0;G=b?b.j.Eb():0;if(b){t=0;for(q=f.length;t<q;t++)u+=a.Tr(f[t].Ca),ma+=a.Ur(f[t].Ca);C=b.ia;A=d.ba(C.left,C.top,!0,!0);F=d.ba(C.left,C.top,!1,!0);R=d.ba(C.right,C.bottom,!0,!0);N=d.ba(C.right,C.bottom,!1,!0);0!==G&&(t=d.ba(C.right,C.top,!0,!0),q=d.ba(C.right,C.top,!1,!0),B=d.ba(C.left,C.bottom,!0,!0),C=d.ba(C.left,C.bottom,!1,!0),G=Math.min(A,
R,t,B),R=Math.max(A,R,t,B),A=G,G=Math.min(F,N,q,C),N=Math.max(F,N,q,C),F=G);A-=u;F-=ma;R+=u;N+=ma;y.left=A/H;y.top=1-F/M;y.right=R/H;y.bottom=1-N/M;B=A=S(A);C=F=S(F);sa=R=pa(R);ta=N=pa(N);B-=u;C-=ma;sa+=u;ta+=ma;0>A&&(A=0);0>F&&(F=0);R>H&&(R=H);N>M&&(N=M);0>B&&(B=0);0>C&&(C=0);sa>H&&(sa=H);ta>M&&(ta=M);I.left=A/H;I.top=1-F/M;I.right=R/H;I.bottom=1-N/M}else I.left=y.left=0,I.top=y.top=0,I.right=y.right=1,I.bottom=y.bottom=1;ma=b&&(a.Yg(f[0].Ca)||0!==u||0!==ma||1!==b.opacity||b.type.ma.Jn)||d&&!b&&
1!==d.opacity;a.qo();if(ma){l[J]||(l[J]=a.Qb(H,M,this.b.ya));if(l[J].le!==H||l[J].ke!==M)a.deleteTexture(l[J]),l[J]=a.Qb(H,M,this.b.ya);a.yb(0);a.qc(l[J]);P=ta-C;a.clearRect(B,M-C-P,sa-B,P);b?b.Sb(a):(a.Yb(this.b.Ea),a.Jf(d.opacity),a.pc(),a.translate(-ha,-qa),a.Zb(),a.ae(A,N,R,N,R,F,A,F,I));y.left=y.top=0;y.right=y.bottom=1;b&&(G=I.top,I.top=I.bottom,I.bottom=G);J=1;L=0}a.Jf(1);u=f.length-1;var $a=a.Wk(f[u].Ca)||!d&&!b&&!this.b.Tb;t=G=0;for(q=f.length;t<q;t++){l[J]||(l[J]=a.Qb(H,M,this.b.ya));if(l[J].le!==
H||l[J].ke!==M)a.deleteTexture(l[J]),l[J]=a.Qb(H,M,this.b.ya);a.yb(f[t].Ca);G=f[t].index;a.Mi(f[t].Ca)&&(this.b.Z=!0);0!=t||ma?(a.Kf(g,1/H,1/M,y.left,y.top,y.right,y.bottom,e,n,h,m,(h+k)/2,(m+p)/2,this.b.Vb.oa,b?b.ra[G]:d?d.ra[G]:this.ra[G]),a.Yb(null),t!==u||$a?(a.qc(l[J]),P=ta-C,K=M-C-P,a.clearRect(B,K,sa-B,P)):(b?a.be(b.jb,b.fb):d&&a.be(d.jb,d.fb),a.qc(g)),a.Yb(l[L]),a.pc(),a.translate(-ha,-qa),a.Zb(),a.ae(A,N,R,N,R,F,A,F,I),t!==u||$a||a.Yb(null)):(a.qc(l[J]),P=ta-C,K=M-C-P,a.clearRect(B,K,sa-
B,P),b?(b.Ta&&b.Ta.Ra?(K=b.Ta.Ra,L=1/K.width,K=1/K.height):(L=1/b.width,K=1/b.height),a.Kf(g,L,K,y.left,y.top,y.right,y.bottom,e,n,h,m,(h+k)/2,(m+p)/2,this.b.Vb.oa,b.ra[G]),b.Sb(a)):(a.Kf(g,1/H,1/M,0,0,1,1,e,n,h,m,(h+k)/2,(m+p)/2,this.b.Vb.oa,d?d.ra[G]:this.ra[G]),a.Yb(d?this.b.Ea:this.b.Aa),a.pc(),a.translate(-ha,-qa),a.Zb(),a.ae(A,N,R,N,R,F,A,F,I)),y.left=y.top=0,y.right=y.bottom=1,b&&!$a&&(G=N,N=F,F=G));J=0===J?1:0;L=0===J?1:0}$a&&(a.yb(0),b?a.be(b.jb,b.fb):d?a.be(d.jb,d.fb):this.b.Tb||(a.Ne(this.b.width,
this.b.height),ha=this.b.width/2,qa=this.b.height/2,F=A=0,R=this.b.width,N=this.b.height),a.qc(g),a.Yb(l[L]),a.pc(),a.translate(-ha,-qa),a.Zb(),b&&1===f.length&&!ma?a.ae(A,F,R,F,R,N,A,N,I):a.ae(A,N,R,N,R,F,A,F,I),a.Yb(null))};e.prototype.Zh=function(a){var d,b;d=0;for(b=this.K.length;d<b;d++)if(this.K[d].P===a)return this.K[d];return null};e.prototype.Kb=function(){var a,d,b,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.gf,persist:this.$d,fx:[],layers:{}};
a=0;for(d=this.J.length;a<d;a++)b=this.J[a],g.fx.push({name:b.name,active:b.Ob,params:this.ra[b.index]});a=0;for(d=this.K.length;a<d;a++)b=this.K[a],g.layers[b.P.toString()]=b.Kb();return g};e.prototype.ic=function(a){var d,b,g,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.$d=a.persist;"undefined"!==typeof a.fv&&(this.gf=a.fv);var e=a.fx;d=0;for(b=e.length;d<b;d++)if(g=this.$j(e[d].name))g.Ob=e[d].active,this.ra[g.index]=e[d].params;this.Mc();
d=a.layers;for(f in d)d.hasOwnProperty(f)&&(a=this.Zh(parseInt(f,10)))&&a.ic(d[f])};wb=e;l.prototype.Mc=function(){U(this.R);this.td=!0;var a,d,b;a=0;for(d=this.J.length;a<d;a++)b=this.J[a],b.Ob&&(this.R.push(b),b.Gc||(this.td=!1))};l.prototype.$j=function(a){var d,b,g;d=0;for(b=this.J.length;d<b;d++)if(g=this.J[d],g.name===a)return g;return null};l.prototype.tq=function(){var a,d,b,g,f,e;d=a=0;for(b=this.Ub.length;a<b;a++){g=this.Ub[a];f=this.b.n[g[1]];e=this.b.ul(f);f=!0;if(!e||this.Fa.gf){g=this.b.Kd(g,
this,!0);if(!g)continue;u.push(g);g.type.global&&(f=!1,this.hg.push(g.uid))}f&&(this.Ub[d]=this.Ub[a],d++)}this.Ub.length=d;this.b.bb();!this.b.u&&this.J.length&&(this.cb=this.Uq);this.eg=Za(this.cb);this.b.r&&ab(this,this.cb,this.b.r);this.Jc=!0};l.prototype.Hf=function(a,d){var b=Aa(this.i,a);0>b||(d&&this.$b&&a.xb&&a.xb.right>=a.xb.left&&(a.V(),this.Xa.update(a,a.xb,null),a.xb.set(0,0,-1,-1)),b===this.i.length-1?this.i.pop():(wa(this.i,b),this.eh(b)),this.Jc=!0)};l.prototype.$f=function(a,d){a.Nc=
this.i.length;this.i.push(a);d&&this.$b&&a.xb&&a.p();this.Jc=!0};l.prototype.lt=function(a){this.i.unshift(a);this.eh(0)};l.prototype.Rs=function(a,d,b){var g=a.Tc();d=d.Tc();wa(this.i,g);g<d&&d--;b&&d++;d===this.i.length?this.i.push(a):this.i.splice(d,0,a);this.eh(g<d?g:d)};l.prototype.eh=function(a){-1===this.zd?this.zd=a:a<this.zd&&(this.zd=a);this.Jc=this.Se=!0};l.prototype.yl=function(){if(this.Se){-1===this.zd&&(this.zd=0);var a,d,b;if(this.$b)for(a=this.zd,d=this.i.length;a<d;++a)b=this.i[a],
b.Nc=a,this.Xa.Os(b.xb);else for(a=this.zd,d=this.i.length;a<d;++a)this.i[a].Nc=a;this.Se=!1;this.zd=-1}};l.prototype.ub=function(a){return this.Rr()*(this.b.Tb||a?this.b.ag:1)};l.prototype.Rr=function(){return(this.scale*this.Fa.scale-1)*this.Oc+1};l.prototype.Eb=function(){return this.jd?0:Fa(this.Fa.k+this.k)};var a=[],f=[],k=[];l.prototype.ek=function(){this.yl();this.Xa.Pi(this.W,this.X,this.ea,this.da,k);if(!k.length)return q();if(1===k.length){var a=q();ya(a,k[0]);U(k);return a}for(var d=!0;1<
k.length;){for(var a=k,b=void 0,g=void 0,e=void 0,p=void 0,n=void 0,b=0,g=a.length;b<g-1;b+=2){var e=a[b],p=a[b+1],n=q(),h=e,m=p,x=n,l=0,E=0,u=0,Q=h.length,X=m.length,G=void 0,J=void 0;for(x.length=Q+X;l<Q&&E<X;++u)G=h[l],J=m[E],G.Nc<J.Nc?(x[u]=G,++l):(x[u]=J,++E);for(;l<Q;++l,++u)x[u]=h[l];for(;E<X;++E,++u)x[u]=m[E];d||(t(e),t(p));f.push(n)}1===g%2&&(d?(e=q(),ya(e,a[g-1]),f.push(e)):f.push(a[g-1]));ya(a,f);U(f);d=!1}a=k[0];U(k);return a};l.prototype.Rc=function(a){this.Yc=this.Vh||1!==this.opacity||
0!==this.cb;var d=this.b.canvas,b=a,g=!1;this.Yc&&(this.b.qi||(this.b.qi=document.createElement("canvas"),d=this.b.qi,d.width=this.b.H,d.height=this.b.G,this.b.hn=d.getContext("2d"),g=!0),d=this.b.qi,b=this.b.hn,d.width!==this.b.H&&(d.width=this.b.H,g=!0),d.height!==this.b.G&&(d.height=this.b.G,g=!0),g&&this.b.Ui(b,this.b.ya),this.Lc&&b.clearRect(0,0,this.b.H,this.b.G));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.Lc||(b.fillStyle="rgb("+this.zc[0]+","+this.zc[1]+","+this.zc[2]+")",
b.fillRect(0,0,this.b.H,this.b.G));b.save();this.jd=!0;var g=this.Sa(0,0,!0,!0),f=this.Sa(0,0,!1,!0);this.jd=!1;this.b.sd&&(g=Math.round(g),f=Math.round(f));this.Ri(g,f,b);var e=this.ub();b.scale(e,e);b.translate(-g,-f);this.$b?(this.Ua.left=this.Xa.mb(this.W),this.Ua.top=this.Xa.nb(this.X),this.Ua.right=this.Xa.mb(this.ea),this.Ua.bottom=this.Xa.nb(this.da),this.Jc||!this.Ua.kg(this.wf)?(t(this.pd),g=this.ek(),this.Jc=!1,this.wf.fg(this.Ua)):g=this.pd):g=this.i;for(var n,h=null,f=0,e=g.length;f<
e;++f)n=g[f],n!==h&&(this.Pq(n,b),h=n);this.$b&&(this.pd=g);b.restore();this.Yc&&(a.globalCompositeOperation=this.eg,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};l.prototype.Pq=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.V();var b=a.ia;b.right<this.W||b.bottom<this.X||b.left>this.ea||b.top>this.da||(d.globalCompositeOperation=a.eg,a.Rc(d))}};l.prototype.nj=function(){this.jd=!0;var a=this.Sa(0,0,!0,!0),d=this.Sa(0,0,!1,!0);this.jd=!1;this.b.sd&&(a=Math.round(a),d=Math.round(d));this.Ri(a,
d,null)};l.prototype.Ri=function(a,d,b){var g=this.ub();this.W=a;this.X=d;this.ea=a+1/g*this.b.H;this.da=d+1/g*this.b.G;this.W>this.ea&&(a=this.W,this.W=this.ea,this.ea=a);this.X>this.da&&(a=this.X,this.X=this.da,this.da=a);a=this.Eb();0!==a&&(b&&(b.translate(this.b.H/2,this.b.G/2),b.rotate(-a),b.translate(this.b.H/-2,this.b.G/-2)),this.wd.set(this.W,this.X,this.ea,this.da),this.wd.offset((this.W+this.ea)/-2,(this.X+this.da)/-2),this.Oo.yo(this.wd,a),this.Oo.$l(this.wd),this.wd.offset((this.W+this.ea)/
2,(this.X+this.da)/2),this.W=this.wd.left,this.X=this.wd.top,this.ea=this.wd.right,this.da=this.wd.bottom)};l.prototype.bf=function(a){if(this.Yc=this.Vh){this.b.Ea||(this.b.Ea=a.Qb(this.b.H,this.b.G,this.b.ya));if(this.b.Ea.le!==this.b.H||this.b.Ea.ke!==this.b.G)a.deleteTexture(this.b.Ea),this.b.Ea=a.Qb(this.b.H,this.b.G,this.b.ya);a.qc(this.b.Ea)}this.jd=!0;var d=this.Sa(0,0,!0,!0),b=this.Sa(0,0,!1,!0);this.jd=!1;this.b.sd&&(d=Math.round(d),b=Math.round(b));this.Ri(d,b,null);d=this.ub();a.pc();
a.scale(d,d);a.Si(-this.Eb());a.translate((this.W+this.ea)/-2,(this.X+this.da)/-2);a.Zb();this.$b?(this.Ua.left=this.Xa.mb(this.W),this.Ua.top=this.Xa.nb(this.X),this.Ua.right=this.Xa.mb(this.ea),this.Ua.bottom=this.Xa.nb(this.da),this.Jc||!this.Ua.kg(this.wf)?(t(this.pd),d=this.ek(),this.Jc=!1,this.wf.fg(this.Ua)):d=this.pd):d=this.i;for(var g,f=null,b=d.length-1;0<=b;--b)g=d[b],g!==f&&(this.Rq(d[b],a),f=g);this.$b&&(this.pd=d);this.Lc||(this.Hj=this.b.pe++,a.Vi(this.Hj),a.ro(1,1,1),a.um(),a.ut())};
l.prototype.Sb=function(a){var b=0,f=0;if(this.Yc=this.Vh||1!==this.opacity||0<this.R.length||0!==this.cb){this.b.Ea||(this.b.Ea=a.Qb(this.b.H,this.b.G,this.b.ya));if(this.b.Ea.le!==this.b.H||this.b.Ea.ke!==this.b.G)a.deleteTexture(this.b.Ea),this.b.Ea=a.Qb(this.b.H,this.b.G,this.b.ya);a.qc(this.b.Ea);this.Lc&&a.clear(0,0,0,0)}this.Lc||(this.b.fa?(a.Vi(this.Hj),a.ro(this.zc[0]/255,this.zc[1]/255,this.zc[2]/255),a.um(),a.Ft()):a.clear(this.zc[0]/255,this.zc[1]/255,this.zc[2]/255,1));this.jd=!0;var g=
this.Sa(0,0,!0,!0),b=this.Sa(0,0,!1,!0);this.jd=!1;this.b.sd&&(g=Math.round(g),b=Math.round(b));this.Ri(g,b,null);g=this.ub();a.pc();a.scale(g,g);a.Si(-this.Eb());a.translate((this.W+this.ea)/-2,(this.X+this.da)/-2);a.Zb();this.$b?(this.Ua.left=this.Xa.mb(this.W),this.Ua.top=this.Xa.nb(this.X),this.Ua.right=this.Xa.mb(this.ea),this.Ua.bottom=this.Xa.nb(this.da),this.Jc||!this.Ua.kg(this.wf)?(t(this.pd),b=this.ek(),this.Jc=!1,this.wf.fg(this.Ua)):b=this.pd):b=this.i;var e,k,n=null,f=0;for(e=b.length;f<
e;++f)k=b[f],k!==n&&(this.Qq(b[f],a),n=k);this.$b&&(this.pd=b);this.Yc&&(b=this.R.length?this.R[0].Ca:0,f=this.R.length?this.R[0].index:0,0===this.R.length||1===this.R.length&&!a.Wk(b)&&1===this.opacity?(1===this.R.length?(a.yb(b),a.Kf(this.Fa.rg(),1/this.b.H,1/this.b.G,0,0,1,1,g,this.Eb(),this.W,this.X,(this.W+this.ea)/2,(this.X+this.da)/2,this.b.Vb.oa,this.ra[f]),a.Mi(b)&&(this.b.Z=!0)):a.yb(0),a.qc(this.Fa.rg()),a.Jf(this.opacity),a.Yb(this.b.Ea),a.be(this.jb,this.fb),a.pc(),a.Zb(),g=this.b.H/
2,b=this.b.G/2,a.ah(-g,b,g,b,g,-b,-g,-b),a.Yb(null)):this.Fa.al(a,this,null,this.Fa.rg()))};l.prototype.Qq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.V();var f=a.ia;f.right<this.W||f.bottom<this.X||f.left>this.ea||f.top>this.da||(b.Vi(a.pe),a.bp?this.Sq(a,b):(b.yb(0),b.be(a.jb,a.fb),a.Sb(b)))}};l.prototype.Rq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.V();var f=a.ia;f.right<this.W||f.bottom<this.X||f.left>this.ea||f.top>this.da||(a.pe=this.b.pe++,0===a.cb&&1===a.opacity&&
a.td&&a.bf&&(b.Vi(a.pe),a.bf(b)))}};l.prototype.Sq=function(a,b){var f=a.R[0].Ca,g=a.R[0].index,e=this.ub();if(1!==a.R.length||b.Wk(f)||b.nt(f)||(a.k||a.j.Eb())&&b.Yg(f)||1!==a.opacity||a.type.ma.Jn)this.Fa.al(b,this,a,this.Yc?this.b.Ea:this.Fa.rg()),b.pc(),b.scale(e,e),b.Si(-this.Eb()),b.translate((this.W+this.ea)/-2,(this.X+this.da)/-2),b.Zb();else{b.yb(f);b.be(a.jb,a.fb);b.Mi(f)&&(this.b.Z=!0);var k=0,n=0,h=0,m=0;b.Yg(f)&&(m=a.ia,k=this.ba(m.left,m.top,!0,!0),n=this.ba(m.left,m.top,!1,!0),h=this.ba(m.right,
m.bottom,!0,!0),m=this.ba(m.right,m.bottom,!1,!0),k=k/windowWidth,n=1-n/windowHeight,h=h/windowWidth,m=1-m/windowHeight);var x;a.Ta&&a.Ta.Ra?(x=a.Ta.Ra,f=1/x.width,x=1/x.height):(f=1/a.width,x=1/a.height);b.Kf(this.Yc?this.b.Ea:this.Fa.rg(),f,x,k,n,h,m,e,this.Eb(),this.W,this.X,(this.W+this.ea)/2,(this.X+this.da)/2,this.b.Vb.oa,a.ra[g]);a.Sb(b)}};l.prototype.Sa=function(a,b,f,g){var e=this.b.devicePixelRatio;this.b.xe&&(a*=e,b*=e);var e=this.b.Xn,k=this.b.Yn,e=(this.Fa.scrollX-e)*this.mc+e,k=(this.Fa.scrollY-
k)*this.nc+k,n=e,h=k,m=1/this.ub(!g);g?(n-=this.b.H*m/2,h-=this.b.G*m/2):(n-=this.b.width*m/2,h-=this.b.height*m/2);n+=a*m;h+=b*m;b=this.Eb();0!==b&&(n-=e,h-=k,a=Math.cos(b),b=Math.sin(b),g=n*a-h*b,h=h*a+n*b,n=g+e,h+=k);return f?n:h};l.prototype.ba=function(a,b,f,g){var e=this.b.Xn,k=this.b.Yn,n=(this.Fa.scrollX-e)*this.mc+e,h=(this.Fa.scrollY-k)*this.nc+k,k=n,e=h,m=this.Eb();if(0!==m){a-=n;b-=h;var x=Math.cos(-m),m=Math.sin(-m),p=a*x-b*m;b=b*x+a*m;a=p+n;b+=h}n=1/this.ub(!g);g?(k-=this.b.H*n/2,e-=
this.b.G*n/2):(k-=this.b.width*n/2,e-=this.b.height*n/2);k=(a-k)/n;e=(b-e)/n;a=this.b.devicePixelRatio;this.b.xe&&!g&&(k/=a,e/=a);return f?k:e};l.prototype.Kb=function(){var a,b,f,g={s:this.scale,a:this.k,vl:this.W,vt:this.X,vr:this.ea,vb:this.da,v:this.visible,bc:this.zc,t:this.Lc,px:this.mc,py:this.nc,o:this.opacity,zr:this.Oc,fx:[],cg:this.hg,instances:[]};a=0;for(b=this.J.length;a<b;a++)f=this.J[a],g.fx.push({name:f.name,active:f.Ob,params:this.ra[f.index]});return g};l.prototype.ic=function(a){var b,
f,g;this.scale=a.s;this.k=a.a;this.W=a.vl;this.X=a.vt;this.ea=a.vr;this.da=a.vb;this.visible=a.v;this.zc=a.bc;this.Lc=a.t;this.mc=a.px;this.nc=a.py;this.opacity=a.o;this.Oc=a.zr;this.hg=a.cg||[];ya(this.Ub,this.Go);var e=new ba;b=0;for(g=this.hg.length;b<g;++b)e.add(this.hg[b]);f=b=0;for(g=this.Ub.length;b<g;++b)e.contains(this.Ub[b][2])||(this.Ub[f]=this.Ub[b],++f);xa(this.Ub,f);f=a.fx;b=0;for(g=f.length;b<g;b++)if(a=this.$j(f[b].name))a.Ob=f[b].active,this.ra[a.index]=f[b].params;this.Mc();this.i.sort(p);
this.Se=!0};Kb=l})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function p(a,b){return a.index-b.index}function l(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=v.length&&(v.length=a.length+1);v[a.length]||(v[a.length]=[]);g=v[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],e(a,d))return d;g.push(a);return a}
function q(a,b){this.b=a;this.Qo={};this.pm={};this.jk=!1;this.Gm=new ba;this.Mj=[];this.vj=[];this.name=b[0];var c=b[1];this.Nd=[];var d,g;d=0;for(g=c.length;d<g;d++)this.Im(c[d],null,this.Nd)}function t(a){this.type=a;this.i=[];this.O=[];this.aa=!0}function u(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.na=[];this.de=[];this.Fm=this.ij=this.pl=this.fi=this.group=this.Eo=!1;this.Ma=[];this.wc=[];this.rc=[];this.ug="";this.tg=this.fi=this.group=!1;this.Hh=null;c[1]&&(this.ug=c[1][1].toLowerCase(),
this.group=!0,this.fi=!!c[1][0],this.Hh=[],this.tg=this.fi,this.b.Ed.push(this),this.b.ci[this.ug]=this);this.kc=c[2];this.P=c[4];this.group||(this.b.Zl[this.P.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Lb(this,d[a]);g.index=a;this.Ma.push(g);this.Ul(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Mb(this,d[a]),g.index=a,this.wc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Im(c[a],this,this.rc);this.li=!1;this.Ma.length&&(this.li=null==this.Ma[0].type&&
this.Ma[0].Va==Y.prototype.m.Dl)}function b(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.wb))for(c=0,d=a.Cb.length;c<d;c++)g=a.Cb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function a(a,b){this.Pb=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.ta=[];this.C={};this.index=-1;this.Yf=!1;this.Va=this.b.Ad(b[1]);this.trigger=0<b[3];this.om=2===b[3];this.ok=b[5];this.Hs=b[6];this.P=b[7];this.b.Id[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Ba=this.el,this.je=null,this.Ac=-1):(this.type=this.b.n[b[0]],
this.Ba=this.Hs?this.Bt:this.dl,b[2]?(this.je=this.type.Xh(b[2]),this.Ac=this.type.Yj(b[2])):(this.je=null,this.Ac=-1),this.Pb.parent&&this.Pb.parent.Wi());this.om&&(this.Ba=this.Ct);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var f=new Nb(this,g[c]);this.N.push(f)}this.ta.length=g.length}}function f(a,b){this.Pb=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.ta=[];this.C={};this.index=-1;this.Yf=!1;this.Va=this.b.Ad(b[1]);-1===b[0]?(this.type=null,this.Ba=this.el,this.je=null,this.Ac=
-1):(this.type=this.b.n[b[0]],this.Ba=this.dl,b[2]?(this.je=this.type.Xh(b[2]),this.Ac=this.type.Yj(b[2])):(this.je=null,this.Ac=-1));this.P=b[3];this.b.Cd[this.P.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var f=new Nb(this,g[c]);this.N.push(f)}this.ta.length=g.length}}function k(){n++;w.length===n&&w.push(new Ob);return w[n]}function c(a,b){this.lc=a;this.Pb=a.Pb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Sc=null;this.ud=0;this.get=null;this.gm=0;this.Fa=
null;this.key=0;this.object=null;this.index=0;this.oh=this.Pe=this.oh=this.Pe=this.rm=this.se=this.ph=null;this.uc=!1;var c,d,g;switch(b[0]){case 0:case 7:this.Sc=new Pb(this,b[1]);this.ud=0;this.get=this.$r;break;case 1:this.Sc=new Pb(this,b[1]);this.ud=0;this.get=this.as;break;case 5:this.Sc=new Pb(this,b[1]);this.ud=0;this.get=this.es;break;case 3:case 8:this.gm=b[1];this.get=this.Yr;break;case 6:this.Fa=this.b.Bk[b[1]];this.get=this.gs;break;case 9:this.key=b[1];this.get=this.ds;break;case 4:this.object=
this.b.n[b[1]];this.get=this.hs;this.Pb.Ul(this.object);this.lc instanceof Mb?this.Pb.Wi():this.Pb.parent&&this.Pb.parent.Wi();break;case 10:this.index=b[1];a.type&&a.type.L?(this.get=this.bs,this.uc=!0):this.get=this.cs;break;case 11:this.ph=b[1];this.se=null;this.get=this.Zr;break;case 2:case 12:this.rm=b[1];this.get=this.Xr;break;case 13:for(this.get=this.ks,this.Pe=[],this.oh=[],c=1,d=b.length;c<d;c++)g=new Nb(this.lc,b[c]),this.Pe.push(g),this.oh.push(0)}}function d(a,b,c){this.sheet=a;this.parent=
b;this.b=a.b;this.na=[];this.name=c[1];this.pj=c[2];this.ei=c[3];this.Eg=!!c[4];this.ki=!!c[5];this.P=c[6];this.b.Uf[this.P.toString()]=this;this.data=this.ei;this.parent?(this.He=this.Eg||this.ki?-1:this.b.It++,this.b.cq.push(this)):(this.He=-1,this.b.uj.push(this))}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.na=[];this.wg=null;this.rs=c[1];this.Ob=!0}function g(){this.Ho=[];this.reset(null)}var v=[];q.prototype.toString=function(){return this.name};q.prototype.Im=function(a,b,c){switch(a[0]){case 0:a=
new Qb(this,b,a);if(a.kc)for(c.push(a),c=0,b=a.Ma.length;c<b;c++)a.Ma[c].trigger&&this.Jm(a,c);else a.Tm()?this.Jm(a,0):c.push(a);break;case 1:a=new Hb(this,b,a);c.push(a);break;case 2:a=new Rb(this,b,a),c.push(a)}};q.prototype.za=function(){var a,b;a=0;for(b=this.Nd.length;a<b;a++)this.Nd[a].za(a<b-1&&this.Nd[a+1].li)};q.prototype.wl=function(){U(this.Mj);U(this.vj);this.Sl(this);U(this.vj)};q.prototype.Sl=function(a){var b,c,d,g,f=a.Mj,e=a.vj,n=this.Gm.ge();b=0;for(c=n.length;b<c;++b)d=n[b],g=d.wg,
!d.Ob||a===g||-1<e.indexOf(g)||(e.push(g),g.Sl(a),f.push(g))};q.prototype.Ba=function(a){this.b.Av||(this.jk=!0,a||(this.b.tk=!0));var b,c;b=0;for(c=this.Nd.length;b<c;b++){var d=this.Nd[b];d.Ba();this.b.Gj(d.na);this.b.Pd&&this.b.bb()}a||(this.b.tk=!1)};q.prototype.Jm=function(a,b){a.kc||this.b.lj.push(a);var c,d,g=a.Ma[b],f;g.type?f=g.type.name:f="system";var e=(c=g.om)?this.pm:this.Qo;e[f]||(e[f]=[]);f=e[f];e=g.Va;if(c){if(g.N.length&&(g=g.N[0],1===g.type&&2===g.Sc.type)){g=g.Sc.value.toLowerCase();
c=0;for(d=f.length;c<d;c++)if(f[c].method==e){c=f[c].mg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:e,mg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==e){f[c].mg.push([a,b]);return}dc&&e===dc.prototype.m.We?f.unshift({method:e,mg:[[a,b]]}):f.push({method:e,mg:[[a,b]]})}};xb=q;t.prototype.ik=function(){return this.aa?this.type.i.length:this.i.length};t.prototype.Fb=function(){return this.aa?this.type.i:this.i};t.prototype.Xg=function(a){a&&(a.b.hb().Rb.kc?(this.aa&&
(U(this.i),ya(this.O,a.type.i),this.aa=!1),a=this.O.indexOf(a),-1!==a&&(this.i.push(this.O[a]),this.O.splice(a,1))):(this.aa=!1,U(this.i),this.i[0]=a))};gb=t;window._c2hh_="";u.prototype.za=function(a){var b,c=this.parent;if(this.group)for(this.ij=!0;c;){if(!c.group){this.ij=!1;break}c=c.parent}this.pl=!this.Tm()&&(!this.parent||this.parent.group&&this.parent.ij);this.Fm=!!a;this.de=this.na.slice(0);for(c=this.parent;c;){a=0;for(b=c.na.length;a<b;a++)this.bq(c.na[a]);c=c.parent}this.na=l(this.na);
this.de=l(this.de);a=0;for(b=this.Ma.length;a<b;a++)this.Ma[a].za();a=0;for(b=this.wc.length;a<b;a++)this.wc[a].za();a=0;for(b=this.rc.length;a<b;a++)this.rc[a].za(a<b-1&&this.rc[a+1].li)};u.prototype.uo=function(a){if(this.tg!==!!a){this.tg=!!a;var b;a=0;for(b=this.Hh.length;a<b;++a)this.Hh[a].Vo();0<b&&this.b.S.re&&this.b.S.re.wl()}};u.prototype.Ul=function(a){b(a,this.na)};u.prototype.bq=function(a){b(a,this.de)};u.prototype.Wi=function(){this.Eo=!0;this.parent&&this.parent.Wi()};u.prototype.Tm=
function(){return this.Ma.length?this.Ma[0].trigger:!1};u.prototype.Ba=function(){var a,b,c=!1,d=this.b,g=this.b.hb();g.Rb=this;var f=this.Ma;this.li||(g.Nj=!1);if(this.kc){0===f.length&&(c=!0);g.La=0;for(a=f.length;g.La<a;g.La++)b=f[g.La],b.trigger||(b=b.Ba())&&(c=!0);(g.Be=c)&&this.Ti()}else{g.La=0;for(a=f.length;g.La<a;g.La++)if(b=f[g.La].Ba(),!b){g.Be=!1;this.pl&&d.Pd&&d.bb();return}g.Be=!0;this.Ti()}this.Wq(g)};u.prototype.Wq=function(a){a.Be&&this.Fm&&(a.Nj=!0);this.pl&&this.b.Pd&&this.b.bb()};
u.prototype.zt=function(a){this.b.hb().Rb=this;this.Ma[a].Ba()&&(this.Ti(),this.b.hb().Be=!0)};u.prototype.Ti=function(){var a=this.b.hb(),b;a.ac=0;for(b=this.wc.length;a.ac<b;a.ac++)if(this.wc[a.ac].Ba())return;this.mo()};u.prototype.wt=function(){var a=this.b.hb(),b;for(b=this.wc.length;a.ac<b;a.ac++)if(this.wc[a.ac].Ba())return;this.mo()};u.prototype.mo=function(){if(this.rc.length){var a,b,c,d,g=this.rc.length-1;this.b.Oi(this);if(this.Eo)for(a=0,b=this.rc.length;a<b;a++)c=this.rc[a],(d=!this.ij||
!this.group&&a<g)&&this.b.Ni(c.na),c.Ba(),d?this.b.Ke(c.na):this.b.Gj(c.na);else for(a=0,b=this.rc.length;a<b;a++)this.rc[a].Ba();this.b.Li()}};u.prototype.At=function(){var a=this.b.hb();a.Rb=this;var b=!1,c;a.La=0;for(c=this.Ma.length;a.La<c;a.La++)if(this.Ma[a.La].Ba())b=!0;else if(!this.kc)return!1;return this.kc?b:!0};u.prototype.xt=function(){this.b.ng++;var a=this.b.hb().La,b=this.b.Oi(this);if(!this.kc)for(b.La=a+1,a=this.Ma.length;b.La<a;b.La++)if(!this.Ma[b.La].Ba()){this.b.Li();return}this.Ti();
this.b.Li()};u.prototype.Cs=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ma[b].type===a.type)return!1;return!0};Qb=u;a.prototype.za=function(){var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.za(),c.uc&&(this.Yf=!0)};a.prototype.Ct=function(){return!0};a.prototype.el=function(){var a,b;a=0;for(b=this.N.length;a<b;a++)this.ta[a]=this.N[a].get();return Na(this.Va.apply(this.b.$c,this.ta),this.ok)};a.prototype.Bt=function(){var a,b;a=0;for(b=this.N.length;a<b;a++)this.ta[a]=
this.N[a].get();a=this.Va.apply(this.je?this.je:this.type,this.ta);this.type.cc();return a};a.prototype.dl=function(){var a,b,c,d,g,f,e,n,k=this.type,p=k.Q(),l=this.Pb.kc&&!this.trigger;b=0;var t=k.wb,r=k.L,v=k.ld,q=this.Ac,u=-1<q,w=this.Yf,I=this.N,y=this.ta,A=this.ok,B=this.Va,F;if(w)for(b=0,g=I.length;b<g;++b)f=I[b],f.uc||(y[b]=f.get(0));else for(b=0,g=I.length;b<g;++b)y[b]=I[b].get(0);if(p.aa){U(p.i);U(p.O);F=k.i;a=0;for(d=F.length;a<d;++a){n=F[a];if(w)for(b=0,g=I.length;b<g;++b)f=I[b],f.uc&&
(y[b]=f.get(a));u?(b=0,r&&(b=n.type.ff[v]),b=B.apply(n.I[q+b],y)):b=B.apply(n,y);(e=Na(b,A))?p.i.push(n):l&&p.O.push(n)}k.finish&&k.finish(!0);p.aa=!1;k.cc();return p.ik()}c=0;F=(e=l&&!this.Pb.Cs(this))?p.O:p.i;var C=!1;a=0;for(d=F.length;a<d;++a){n=F[a];if(w)for(b=0,g=I.length;b<g;++b)f=I[b],f.uc&&(y[b]=f.get(a));u?(b=0,r&&(b=n.type.ff[v]),b=B.apply(n.I[q+b],y)):b=B.apply(n,y);if(Na(b,A))if(C=!0,e){if(p.i.push(n),t)for(b=0,g=n.siblings.length;b<g;b++)f=n.siblings[b],f.type.Q().i.push(f)}else{F[c]=
n;if(t)for(b=0,g=n.siblings.length;b<g;b++)f=n.siblings[b],f.type.Q().i[c]=f;c++}else if(e){F[c]=n;if(t)for(b=0,g=n.siblings.length;b<g;b++)f=n.siblings[b],f.type.Q().O[c]=f;c++}else if(l&&(p.O.push(n),t))for(b=0,g=n.siblings.length;b<g;b++)f=n.siblings[b],f.type.Q().O.push(f)}xa(F,c);if(t)for(r=k.Cb,a=0,d=r.length;a<d;a++)n=r[a].Q(),e?xa(n.O,c):xa(n.i,c);c=C;if(e&&!C)for(a=0,d=p.i.length;a<d;a++){n=p.i[a];if(w)for(b=0,g=I.length;b<g;b++)f=I[b],f.uc&&(y[b]=f.get(a));b=u?B.apply(n.I[q],y):B.apply(n,
y);if(Na(b,A)){C=!0;break}}k.finish&&k.finish(c||l);return l?C:p.ik()};Lb=a;f.prototype.za=function(){var a,b,c;a=0;for(b=this.N.length;a<b;a++)c=this.N[a],c.za(),c.uc&&(this.Yf=!0)};f.prototype.el=function(){var a=this.b,b,c,d=this.N,g=this.ta;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.Va.apply(a.$c,g)};f.prototype.dl=function(){var a=this.type,b=this.Ac,c=a.ld,d=this.Yf,g=this.N,f=this.ta,e=this.Va,n=a.Q().Fb(),a=a.L,k=-1<b,p,l,t,r,v,q;if(d)for(l=0,r=g.length;l<r;++l)v=g[l],v.uc||(f[l]=
v.get(0));else for(l=0,r=g.length;l<r;++l)f[l]=g[l].get(0);p=0;for(t=n.length;p<t;++p){q=n[p];if(d)for(l=0,r=g.length;l<r;++l)v=g[l],v.uc&&(f[l]=v.get(p));k?(l=0,a&&(l=q.type.ff[c]),e.apply(q.I[b+l],f)):e.apply(q,f)}return!1};Mb=f;var w=[],n=-1;c.prototype.za=function(){var a,b;if(11===this.type)this.se=this.b.zm(this.ph,this.Pb.parent);else if(13===this.type)for(a=0,b=this.Pe.length;a<b;a++)this.Pe[a].za();this.Sc&&this.Sc.za()};c.prototype.Qs=function(a){this.uc||!a||a.ma.Zi||(this.uc=!0)};c.prototype.wo=
function(){this.uc=!0};c.prototype.$r=function(a){this.ud=a||0;a=k();this.Sc.get(a);n--;return a.data};c.prototype.as=function(a){this.ud=a||0;a=k();this.Sc.get(a);n--;return O(a.data)?a.data:""};c.prototype.hs=function(){return this.object};c.prototype.Yr=function(){return this.gm};c.prototype.es=function(a){this.ud=a||0;a=k();this.Sc.get(a);n--;return a.Pa()?this.b.qg(a.data):this.b.dk(a.data)};c.prototype.gs=function(){return this.Fa};c.prototype.ds=function(){return this.key};c.prototype.cs=function(){return this.index};
c.prototype.bs=function(a){a=a||0;var b=this.lc.type,c=null,c=b.Q(),d=c.Fb();if(d.length)c=d[a%d.length].type;else if(c.O.length)c=c.O[a%c.O.length].type;else if(b.i.length)c=b.i[a%b.i.length].type;else return 0;return this.index+c.Ph[b.ld]};c.prototype.Zr=function(){return this.se};c.prototype.Xr=function(){return this.rm};c.prototype.ks=function(){var a,b;a=0;for(b=this.Pe.length;a<b;a++)this.oh[a]=this.Pe[a].get();return this.oh};Nb=c;d.prototype.za=function(){this.na=l(this.na)};d.prototype.Oe=
function(a){var b=this.b.ym();this.parent&&!this.Eg&&b?(this.He>=b.length&&(b.length=this.He+1),b[this.He]=a):this.data=a};d.prototype.bi=function(){var a=this.b.ym();return!this.parent||this.Eg||!a||this.ki?this.data:this.He>=a.length||"undefined"===typeof a[this.He]?this.ei:a[this.He]};d.prototype.Ba=function(){!this.parent||this.Eg||this.ki||this.Oe(this.ei)};Hb=d;r.prototype.toString=function(){return"include:"+this.wg.toString()};r.prototype.za=function(){this.wg=this.b.Qj[this.rs];this.sheet.Gm.add(this);
this.na=l(this.na);for(var a=this.parent;a;)a.group&&a.Hh.push(this),a=a.parent;this.Vo()};r.prototype.Ba=function(){this.parent&&this.b.$g(this.b.n);this.wg.jk||this.wg.Ba(!0);this.parent&&this.b.Ke(this.b.n)};r.prototype.Vo=function(){for(var a=this.parent;a;){if(a.group&&!a.tg){this.Ob=!1;return}a=a.parent}this.Ob=!0};Rb=r;g.prototype.reset=function(a){this.Rb=a;this.ac=this.La=0;U(this.Ho);this.Nj=this.Be=!1};Gb=g})();
(function(){function e(b,a){this.lc=b;this.b=b.b;this.type=a[0];this.get=[this.or,this.kr,this.Ar,this.Dr,this.Zq,this.Br,this.sr,this.hr,this.rr,this.yr,this.$q,this.xr,this.ir,this.tr,this.pr,this.qr,this.lr,this.mr,this.gr,this.Cr,this.ur,this.nr,this.fr,this.jr][this.type];var f=null;this.qd=this.N=this.ta=this.Va=this.hj=this.second=this.first=this.value=null;this.Ac=-1;this.Cc=null;this.cp=-1;this.se=this.ph=null;this.If=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Pb(b,a[1]);break;case 18:this.first=new Pb(b,a[1]);this.second=new Pb(b,a[2]);this.hj=new Pb(b,a[3]);break;case 19:this.Va=this.b.Ad(a[1]);this.Va!==Y.prototype.gb.random&&this.Va!==Y.prototype.gb.oq||this.lc.wo();this.ta=[];this.N=[];3===a.length?(f=a[2],this.ta.length=f.length+1):this.ta.length=1;break;case 20:this.qd=this.b.n[a[1]];this.Ac=-1;this.Va=this.b.Ad(a[2]);this.If=a[3];Tb.Function&&this.Va===Tb.Function.prototype.gb.eu&&this.lc.wo();a[4]?this.Cc=new Pb(b,a[4]):this.Cc=null;this.ta=
[];this.N=[];6===a.length?(f=a[5],this.ta.length=f.length+1):this.ta.length=1;break;case 21:this.qd=this.b.n[a[1]];this.If=a[2];a[3]?this.Cc=new Pb(b,a[3]):this.Cc=null;this.cp=a[4];break;case 22:this.qd=this.b.n[a[1]];this.qd.Xh(a[2]);this.Ac=this.qd.Yj(a[2]);this.Va=this.b.Ad(a[3]);this.If=a[4];a[5]?this.Cc=new Pb(b,a[5]):this.Cc=null;this.ta=[];this.N=[];7===a.length?(f=a[6],this.ta.length=f.length+1):this.ta.length=1;break;case 23:this.ph=a[1],this.se=null}this.lc.Qs(this.qd);4<=this.type&&17>=
this.type&&(this.first=new Pb(b,a[1]),this.second=new Pb(b,a[2]));if(f){var e,c;e=0;for(c=f.length;e<c;e++)this.N.push(new Pb(b,f[e]))}}function p(){++u;t.length===u&&t.push(new Ob);return t[u]}function l(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 q(b,a){this.type=b||W.Ve;this.data=a||0;this.Je=null;this.type==W.Ve&&(this.data=Math.floor(this.data))}e.prototype.za=function(){23===this.type&&(this.se=this.lc.b.zm(this.ph,this.lc.Pb.parent));this.first&&this.first.za();
this.second&&this.second.za();this.hj&&this.hj.za();this.Cc&&this.Cc.za();if(this.N){var b,a;b=0;for(a=this.N.length;b<a;b++)this.N[b].za()}};var t=[],u=-1;e.prototype.Cr=function(b){var a=this.N,f=this.ta;f[0]=b;b=p();l(a,f,b);--u;this.Va.apply(this.b.$c,f)};e.prototype.ur=function(b){var a=this.qd,f=this.ta,e=this.N,c=this.Cc,d=this.Va,t=this.lc.ud,g=a.Q(),v=g.Fb();if(!v.length)if(g.O.length)v=g.O;else{this.If?b.Ya(""):b.ca(0);return}f[0]=b;b.Je=a;b=p();l(e,f,b);c&&(c.get(b),b.Pa()&&(t=b.data,v=
a.i));--u;a=v.length;if(t>=a||t<=-a)t%=a;0>t&&(t+=a);d.apply(v[t],f)};e.prototype.fr=function(b){var a=this.qd,f=this.ta,e=this.N,c=this.Cc,d=this.Ac,t=this.Va,g=this.lc.ud,v=a.Q(),q=v.Fb();if(!q.length)if(v.O.length)q=v.O;else{this.If?b.Ya(""):b.ca(0);return}f[0]=b;b.Je=a;b=p();l(e,f,b);c&&(c.get(b),b.Pa()&&(g=b.data,q=a.i));--u;e=q.length;if(g>=e||g<=-e)g%=e;0>g&&(g+=e);g=q[g];q=0;a.L&&(q=g.type.ff[a.ld]);t.apply(g.I[d+q],f)};e.prototype.nr=function(b){var a=this.Cc,f=this.qd,e=this.cp,c=this.lc.ud,
d=f.Q(),l=d.Fb();if(!l.length)if(d.O.length)l=d.O;else{this.If?b.Ya(""):b.ca(0);return}if(a){d=p();a.get(d);if(d.Pa()){c=d.data;l=f.i;0!==l.length&&(c%=l.length,0>c&&(c+=l.length));c=f.ck(c);f=c.Da[e];O(f)?b.Ya(f):b.F(f);--u;return}--u}a=l.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=l[c];l=0;f.L&&(l=c.type.Ph[f.ld]);f=c.Da[e+l];O(f)?b.Ya(f):b.F(f)};e.prototype.or=function(b){b.type=W.Ve;b.data=this.value};e.prototype.kr=function(b){b.type=W.Ue;b.data=this.value};e.prototype.Ar=function(b){b.type=W.String;
b.data=this.value};e.prototype.Dr=function(b){this.first.get(b);b.Pa()&&(b.data=-b.data)};e.prototype.Zq=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data+=a.data,a.nf()&&b.yf());--u};e.prototype.Br=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data-=a.data,a.nf()&&b.yf());--u};e.prototype.sr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data*=a.data,a.nf()&&b.yf());--u};e.prototype.hr=function(b){this.first.get(b);
var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data/=a.data,b.yf());--u};e.prototype.rr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data%=a.data,a.nf()&&b.yf());--u};e.prototype.yr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data=Math.pow(b.data,a.data),a.nf()&&b.yf());--u};e.prototype.$q=function(b){this.first.get(b);var a=p();this.second.get(a);a.pf()||b.pf()?this.cr(b,a):this.br(b,a);--u};e.prototype.cr=function(b,a){b.pf()&&
a.pf()?this.er(b,a):this.dr(b,a)};e.prototype.er=function(b,a){b.data+=a.data};e.prototype.dr=function(b,a){b.pf()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Ya(b.data.toString()+a.data)};e.prototype.br=function(b,a){b.ca(b.data&&a.data?1:0)};e.prototype.xr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data||a.data?b.ca(1):b.ca(0));--u};e.prototype.gr=function(b){this.first.get(b);b.data?this.second.get(b):this.hj.get(b)};e.prototype.ir=function(b){this.first.get(b);
var a=p();this.second.get(a);b.ca(b.data===a.data?1:0);--u};e.prototype.tr=function(b){this.first.get(b);var a=p();this.second.get(a);b.ca(b.data!==a.data?1:0);--u};e.prototype.pr=function(b){this.first.get(b);var a=p();this.second.get(a);b.ca(b.data<a.data?1:0);--u};e.prototype.qr=function(b){this.first.get(b);var a=p();this.second.get(a);b.ca(b.data<=a.data?1:0);--u};e.prototype.lr=function(b){this.first.get(b);var a=p();this.second.get(a);b.ca(b.data>a.data?1:0);--u};e.prototype.mr=function(b){this.first.get(b);
var a=p();this.second.get(a);b.ca(b.data>=a.data?1:0);--u};e.prototype.jr=function(b){var a=this.se.bi();D(a)?b.F(a):b.Ya(a)};Pb=e;q.prototype.nf=function(){return this.type===W.Ue};q.prototype.Pa=function(){return this.type===W.Ve||this.type===W.Ue};q.prototype.pf=function(){return this.type===W.String};q.prototype.yf=function(){this.nf()||(this.pf()&&(this.data=parseFloat(this.data)),this.type=W.Ue)};q.prototype.ca=function(b){this.type=W.Ve;this.data=Math.floor(b)};q.prototype.F=function(b){this.type=
W.Ue;this.data=b};q.prototype.Ya=function(b){this.type=W.String;this.data=b};q.prototype.Gt=function(b){D(b)?(this.type=W.Ue,this.data=b):O(b)?(this.type=W.String,this.data=b.toString()):(this.type=W.Ve,this.data=0)};Ob=q;W={Ve:0,Ue:1,String:2}})();function Y(e){this.b=e;this.Nb=[]}
Y.prototype.Kb=function(){var e={},p,l,q,t,u,b,a,f;e.waits=[];var k=e.waits,c;p=0;for(l=this.Nb.length;p<l;p++){b=this.Nb[p];c={t:b.time,st:b.Ht,s:b.Bo,ev:b.lg.P,sm:[],sols:{}};b.lg.wc[b.ac]&&(c.act=b.lg.wc[b.ac].P);q=0;for(t=b.na.length;q<t;q++)c.sm.push(b.na[q].P);for(u in b.Lb)if(b.Lb.hasOwnProperty(u)){a=this.b.n[parseInt(u,10)];f={sa:b.Lb[u].no,insts:[]};q=0;for(t=b.Lb[u].we.length;q<t;q++)f.insts.push(b.Lb[u].we[q].uid);c.sols[a.P.toString()]=f}k.push(c)}return e};
Y.prototype.ic=function(e){e=e.waits;var p,l,q,t,u,b,a,f,k,c,d;U(this.Nb);p=0;for(l=e.length;p<l;p++)if(b=e[p],f=this.b.Zl[b.ev.toString()]){k=-1;q=0;for(t=f.wc.length;q<t;q++)if(f.wc[q].P===b.act){k=q;break}if(-1!==k){a={Lb:{},na:[],km:!1};a.time=b.t;a.Ht=b.st||"";a.Bo=!!b.s;a.lg=f;a.ac=k;q=0;for(t=b.sm.length;q<t;q++)(f=this.b.ai(b.sm[q]))&&a.na.push(f);for(u in b.sols)if(b.sols.hasOwnProperty(u)&&(f=this.b.ai(parseInt(u,10)))){k=b.sols[u];c={no:k.sa,we:[]};q=0;for(t=k.insts.length;q<t;q++)(d=this.b.$h(k.insts[q]))&&
c.we.push(d);a.Lb[f.index.toString()]=c}this.Nb.push(a)}}};
(function(){function e(){}function p(){}function l(){}var q=Y.prototype;e.prototype.lp=function(){return!0};e.prototype.Fl=function(){return!0};e.prototype.Gp=function(){return!0};e.prototype.ip=function(b,a,f){return Sb(b,a,f)};e.prototype.kp=function(b){var a=this.b.Zj(),f=a.C.Every_lastTime||0,e=this.b.Vb.oa;"undefined"===typeof a.C.Every_seconds&&(a.C.Every_seconds=b);var c=a.C.Every_seconds;if(e>=f+c)return a.C.Every_lastTime=f+c,e>=a.C.Every_lastTime+.04&&(a.C.Every_lastTime=e),a.C.Every_seconds=
b,!0;e<f-.1&&(a.C.Every_lastTime=e);return!1};e.prototype.Dl=function(){var b=this.b.hb();return b.Nj?!1:!b.Be};e.prototype.Gl=function(){return!0};e.prototype.wp=function(){return!0};e.prototype.tj=function(){return!0};e.prototype.Jl=function(){return!0};e.prototype.Hp=function(){return!0};e.prototype.uh=function(){return!0};e.prototype.fp=function(b,a,f){return Ja(V(b),V(f))<=V(a)};e.prototype.op=function(b,a){return La(V(b),V(a))};e.prototype.np=function(b,a,f){b=Ha(b);a=Ha(a);f=Ha(f);return La(f,
a)?La(b,a)&&!La(b,f):!(!La(b,a)&&La(b,f))};q.m=new e;p.prototype.mp=function(b){this.b.qf||this.b.me||(this.b.me=b)};p.prototype.jp=function(b,a,f,e){if(a&&b&&(a=this.b.hm(b,a,f,e))){this.b.Ec++;var c;this.b.trigger(Object.getPrototypeOf(b.ma).m.sh,a);if(a.wb)for(f=0,e=a.siblings.length;f<e;f++)c=a.siblings[f],this.b.trigger(Object.getPrototypeOf(c.type.ma).m.sh,c);this.b.Ec--;b=b.Q();b.aa=!1;U(b.i);b.i[0]=a;if(a.wb)for(f=0,e=a.siblings.length;f<e;f++)c=a.siblings[f],b=c.type.Q(),b.aa=!1,U(b.i),b.i[0]=
c}};p.prototype.Qp=function(b,a){0===b.pj?D(a)?b.Oe(a):b.Oe(parseFloat(a)):1===b.pj&&b.Oe(a.toString())};p.prototype.ep=function(b,a){0===b.pj?D(a)?b.Oe(b.bi()+a):b.Oe(b.bi()+parseFloat(a)):1===b.pj&&b.Oe(b.bi()+a.toString())};p.prototype.Pp=function(b){0>b&&(b=0);this.b.Qf=b};var t=[],u=[];p.prototype.Np=function(){var b,a,f;b=0;for(a=this.b.uj.length;b<a;b++)f=this.b.uj[b],f.data=f.ei};p.prototype.Op=function(){if(!this.b.qf&&!this.b.me&&this.b.S){this.b.me=this.b.S;var b,a,f;b=0;for(a=this.b.Ed.length;b<
a;b++)f=this.b.Ed[b],f.uo(f.fi)}};q.xa=new p;l.prototype["int"]=function(b,a){O(a)?(b.ca(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.ca(a)};l.prototype["float"]=function(b,a){O(a)?(b.F(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.F(a)};l.prototype.random=function(b,a,f){void 0===f?b.F(Math.random()*a):b.F(Math.random()*(f-a)+a)};l.prototype.sqrt=function(b,a){b.F(Math.sqrt(a))};l.prototype.abs=function(b,a){b.F(Math.abs(a))};l.prototype.round=function(b,a){b.ca(Math.round(a))};l.prototype.floor=function(b,
a){b.ca(Math.floor(a))};l.prototype.ceil=function(b,a){b.ca(Math.ceil(a))};l.prototype.sin=function(b,a){b.F(Math.sin(V(a)))};l.prototype.cos=function(b,a){b.F(Math.cos(V(a)))};l.prototype.tan=function(b,a){b.F(Math.tan(V(a)))};l.prototype.asin=function(b,a){b.F(Da(Math.asin(a)))};l.prototype.acos=function(b,a){b.F(Da(Math.acos(a)))};l.prototype.atan=function(b,a){b.F(Da(Math.atan(a)))};l.prototype.exp=function(b,a){b.F(Math.exp(a))};l.prototype.log10=function(b,a){b.F(Math.log(a)/Math.LN10)};l.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.F(a)};l.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.F(a)};l.prototype.cf=function(b){b.F(this.b.cf)};l.prototype.Qf=function(b){b.F(this.b.Qf)};l.prototype.time=function(b){b.F(this.b.Vb.oa)};l.prototype.ad=function(b){b.ca(this.b.ad)};
l.prototype.Fi=function(b){b.ca(this.b.Fi)};l.prototype.Vj=function(b){b.ca(this.b.Vj)};l.prototype.k=function(b,a,f,e,c){b.F(Da(Ia(a,f,e,c)))};l.prototype.Ks=function(b){b.ca(this.b.S.width)};l.prototype.Js=function(b){b.ca(this.b.S.height)};l.prototype.left=function(b,a,f){b.Ya(O(a)?a.substr(0,f):"")};l.prototype.right=function(b,a,f){b.Ya(O(a)?a.substr(a.length-f):"")};l.prototype.replace=function(b,a,f,e){O(a)&&O(f)&&O(e)?b.Ya(a.replace(new RegExp(Va(f),"gi"),e)):b.Ya(O(a)?a:"")};l.prototype.trim=
function(b,a){b.Ya(O(a)?a.trim():"")};l.prototype.oq=function(b){var a=S(Math.random()*(arguments.length-1));b.Gt(arguments[a+1])};l.prototype.Ij=function(b){b.F(this.b.Ij/1E3)};l.prototype.vi=function(b){b.F(this.b.vi)};q.gb=new l;q.yt=function(){var b,a,f,e,c,d,l=this.b.hb();b=0;for(f=this.Nb.length;b<f;b++){e=this.Nb[b];if(-1===e.time){if(!e.Bo)continue}else if(e.time>this.b.Vb.oa)continue;l.Rb=e.lg;l.ac=e.ac;l.La=0;for(a in e.Lb)e.Lb.hasOwnProperty(a)&&(c=this.b.n[parseInt(a,10)].Q(),d=e.Lb[a],
c.aa=d.no,ya(c.i,d.we),c=d,U(c.we),u.push(c));e.lg.wt();this.b.Gj(e.na);e.km=!0}a=b=0;for(f=this.Nb.length;b<f;b++)e=this.Nb[b],this.Nb[a]=e,e.km?(Pa(e.Lb),U(e.na),t.push(e)):a++;xa(this.Nb,a)}})();
(function(){fb=function(e,l){var q=e[1],t=e[3],u=e[4],b=e[5],a=e[6],f=e[7],k=e[8];l.m||(l.m={});l.xa||(l.xa={});l.gb||(l.gb={});var c=l.m,d=l.xa,r=l.gb;t&&(c.ju=function(a,b){return Sb(this.x,a,b)},c.ku=function(a,b){return Sb(this.y,a,b)},c.ru=function(){var a=this.j;this.V();var b=this.ia;return!(b.right<a.W||b.bottom<a.X||b.left>a.ea||b.top>a.da)},c.su=function(){this.V();var a=this.ia,b=this.b.S;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.Eu=function(a,b,c){var d=this.Q(),
h=d.Fb();if(!h.length)return!1;var f=h[0],e=f,k=Ma(f.x,f.y,b,c),l,p,t;l=1;for(p=h.length;l<p;l++)if(f=h[l],t=Ma(f.x,f.y,b,c),0===a&&t<k||1===a&&t>k)k=t,e=f;d.Xg(e);return!0},d.Xu=function(a){this.x!==a&&(this.x=a,this.p())},d.Yu=function(a){this.y!==a&&(this.y=a,this.p())},d.Tu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.p()},d.Uu=function(a,b){var c=a.Sr(this);if(c){var d;c.bk?(d=c.bk(b,!0),c=c.bk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.p()}},d.xu=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.p())},d.wu=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.p())},r.Xp=function(a){a.F(this.x)},r.Yp=function(a){a.F(this.y)},r.cf=function(a){a.F(this.b.Yh(this))});u&&(c.iu=function(a,b){return Sb(this.width,a,b)},c.fu=function(a,b){return Sb(this.height,a,b)},d.Rp=function(a){this.width!==a&&(this.width=a,this.p())},d.Qu=function(a){this.height!==a&&(this.height=a,this.p())},d.Vu=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.p()},r.bv=function(a){a.F(this.width)},r.nu=function(a){a.F(this.height)},r.bu=function(a){this.V();a.F(this.ia.left)},r.du=function(a){this.V();a.F(this.ia.top)},r.cu=function(a){this.V();a.F(this.ia.right)},r.au=function(a){this.V();a.F(this.ia.bottom)});b&&(c.fp=function(a,b){return Ja(this.k,V(b))<=V(a)},c.op=function(a){return La(this.k,V(a))},c.np=function(a,b){var c=Ha(a),d=Ha(b),h=Fa(this.k);return La(d,c)?La(h,c)&&!La(h,
d):!(!La(h,c)&&La(h,d))},d.Mu=function(a){a=V(Ea(a));isNaN(a)||this.k===a||(this.k=a,this.p())},d.Iu=function(a){0===a||isNaN(a)||(this.k+=V(a),this.k=Fa(this.k),this.p())},d.Ju=function(a){0===a||isNaN(a)||(this.k-=V(a),this.k=Fa(this.k),this.p())},d.Ku=function(a,b){var c=Ka(this.k,V(b),V(a));isNaN(c)||this.k===c||(this.k=c,this.p())},d.Lu=function(a,b,c){a=Ka(this.k,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.k===a||(this.k=a,this.p())},d.Wu=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.k===c||(this.k=c,this.p())},r.$t=function(a){a.F(Ga(this.k))});q||(c.gu=function(a,b,c){return Sb(this.Da[a],b,c)},c.pu=function(a){return this.Da[a]},c.Fu=function(a,b){var c=this.Q(),d=c.Fb();if(!d.length)return!1;var h=d[0],f=h,e=h.Da[b],k,l,p;k=1;for(l=d.length;k<l;k++)if(h=d[k],p=h.Da[b],0===a&&p<e||1===a&&p>e)e=p,f=h;c.Xg(f);return!0},c.Du=function(a){var b,c,d,f,e;if(this.b.Zj().ok){e=this.Q();if(e.aa)for(e.aa=!1,U(e.i),U(e.O),d=this.i,b=0,c=d.length;b<c;b++)f=d[b],f.uid===a?
e.O.push(f):e.i.push(f);else{d=b=0;for(c=e.i.length;b<c;b++)f=e.i[b],e.i[d]=f,f.uid===a?e.O.push(f):d++;xa(e.i,d)}this.cc();return!!e.i.length}f=this.b.$h(a);if(!f)return!1;e=this.Q();if(!e.aa&&-1===e.i.indexOf(f))return!1;if(this.L)for(a=f.type.ka,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.Xg(f),this.cc(),!0}else if(f.type===this)return e.Xg(f),this.cc(),!0;return!1},c.sh=function(){return!0},c.yp=function(){return!0},d.Ru=function(a,b){var c=this.Da;D(c[a])?c[a]=D(b)?b:parseFloat(b):O(c[a])&&
(c[a]=O(b)?b:b.toString())},d.Zt=function(a,b){var c=this.Da;D(c[a])?c[a]=D(b)?c[a]+b:c[a]+parseFloat(b):O(c[a])&&(c[a]=O(b)?c[a]+b:c[a]+b.toString())},d.Zu=function(a,b){var c=this.Da;D(c[a])&&(c[a]=D(b)?c[a]-b:c[a]-parseFloat(b))},d.Nu=function(a,b){this.Da[a]=b?1:0},d.$u=function(a){this.Da[a]=1-this.Da[a]},d.mu=function(){this.b.Te(this)},d.rp||(d.rp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.ti(this,b,!0);this.Dd&&this.Dd();if(this.I)for(a=0,b=this.I.length;a<b;++a)c=this.I[a],
c.Dd&&c.Dd()}),r.lu=function(a){var b=a.Je.i.length,c,d,f;c=0;for(d=this.b.Bc.length;c<d;c++)f=this.b.Bc[c],a.Je.L?0<=f.type.ka.indexOf(a.Je)&&b++:f.type===a.Je&&b++;a.ca(b)},r.Hu=function(a){a.ca(a.Je.Q().Fb().length)},r.av=function(a){a.ca(this.uid)},r.ou=function(a){a.ca(this.sg())},r.Cl||(r.Cl=function(a){a.Ya(JSON.stringify(this.b.fl(this,!0)))}));a&&(c.tu=function(){return this.visible},d.Ol=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Z=!0)},c.hu=function(a,b){return Sb(bb(100*
this.opacity),a,b)},d.Su=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Z=!0)},r.Opacity=function(a){a.F(bb(100*this.opacity))});f&&(c.qu=function(a){return a?this.j===a:!1},c.Gu=function(a){var b=this.Q(),c=b.Fb();if(!c.length)return!1;var d=c[0],f=d,e,k;e=1;for(k=c.length;e<k;e++)if(d=c[e],0===a){if(d.j.index>f.j.index||d.j.index===f.j.index&&d.Tc()>f.Tc())f=d}else if(d.j.index<f.j.index||d.j.index===f.j.index&&d.Tc()<f.Tc())f=d;b.Xg(f);return!0},d.Au=function(){var a=
this.j,b=a.i;b.length&&b[b.length-1]===this||(a.Hf(this,!1),a.$f(this,!1),this.b.Z=!0)},d.yu=function(){var a=this.j,b=a.i;b.length&&b[0]===this||(a.Hf(this,!1),a.lt(this),this.b.Z=!0)},d.zu=function(a){a&&a!=this.j&&(this.j.Hf(this,!0),this.j=a,a.$f(this,!0),this.b.Z=!0)},d.dv=function(a,b){var c=0===a;if(b){var d=b.Mr(this);d&&d.uid!==this.uid&&(this.j.index!==d.j.index&&(this.j.Hf(this,!0),this.j=d.j,d.j.$f(this,!0)),this.j.Rs(this,d,c),this.b.Z=!0)}},r.vu=function(a){a.ca(this.j.Nn)},r.uu=function(a){a.Ya(this.j.name)},
r.cv=function(a){a.ca(this.Tc())});k&&(d.Ou=function(a,b){if(this.b.u){var c=this.type.ak(b);if(!(0>c)){var d=1===a;this.Bd[c]!==d&&(this.Bd[c]=d,this.Mc(),this.b.Z=!0)}}},d.Pu=function(a,b,c){if(this.b.u){var d=this.type.ak(a);0>d||(a=this.type.J[d],d=this.ra[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.u.Vr(a.Ca,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ob&&(this.b.Z=!0))))}})};yb=function(){this.Bj=this.xj=!0;this.type.vh=!0;this.b.Z=!0;var e,l,q=this.yj;e=0;for(l=q.length;e<l;++e)q[e](this);this.j.$b&&
this.V()};zb=function(e){e&&this.yj.push(e)};Bb=function(){if(this.xj){var e=this.ia,l=this.qb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Gb*this.width,-this.Hb*this.height);this.k?(e.offset(-this.x,-this.y),l.yo(e,this.k),l.offset(this.x,this.y),l.$l(e)):l.fh(e);e.normalize();this.xj=!1;this.Rt()}};var e=new T(0,0,0,0);Cb=function(){if(this.j.$b){var p=this.j.Xa,l=this.ia;e.set(p.mb(l.left),p.nb(l.top),p.mb(l.right),p.nb(l.bottom));this.xb.kg(e)||(this.xb.right<this.xb.left?
p.update(this,null,e):p.update(this,this.xb,e),this.xb.fg(e),this.j.Jc=!0)}};Db=function(){if(this.Bj&&this.ed){this.V();var p=this.type.Gh,l=this.ia;e.set(p.mb(l.left),p.nb(l.top),p.mb(l.right),p.nb(l.bottom));this.Jd.kg(e)||(this.Jd.right<this.Jd.left?p.update(this,null,e):p.update(this,this.Jd,e),this.Jd.fg(e),this.Bj=!1)}};Ab=function(e,l){return this.ia.eb(e,l)&&this.qb.eb(e,l)?this.Pf?this.Dv(e,l):this.T&&!this.T.lf()?(this.T.Xe(this.width,this.height,this.k),this.T.eb(e-this.x,l-this.y)):!0:
!1};ub=function(){this.type.mj();return this.ve};Eb=function(){this.j.yl();return this.Nc};Fb=function(){U(this.R);var e,l,q,t=!0;e=0;for(l=this.Bd.length;e<l;e++)this.Bd[e]&&(q=this.type.J[e],this.R.push(q),q.Gc||(t=!1));this.bp=!!this.R.length;this.td=t};vb=function(){return"Inst"+this.io};ib=function(e){if(e&&e.wb&&e.type!=this){var l,q,t;l=0;for(q=e.siblings.length;l<q;l++)if(t=e.siblings[l],t.type==this)return t}e=this.Q().Fb();return e.length?e[0]:null};jb=function(e){var l=this.Q().Fb();return l.length?
l[e.sg()%l.length]:null};hb=function(){if(this.Nf&&!this.L){var e,l;e=0;for(l=this.i.length;e<l;e++)this.i[e].ve=e;var q=e,t=this.b.Bc;e=0;for(l=t.length;e<l;++e)t[e].type===this&&(t[e].ve=q++);this.Nf=!1}};sb=function(e){if(e<this.i.length)return this.i[e];e-=this.i.length;var l=this.b.Bc,q,t;q=0;for(t=l.length;q<t;++q)if(l[q].type===this){if(0===e)return l[q];--e}return null};kb=function(){return this.vd[this.Qc]};lb=function(){this.Qc++;this.Qc===this.vd.length?this.vd.push(new gb(this)):(this.vd[this.Qc].aa=
!0,U(this.vd[this.Qc].O))};mb=function(){this.Qc++;this.Qc===this.vd.length&&this.vd.push(new gb(this));var e=this.vd[this.Qc],l=this.vd[this.Qc-1];l.aa?(e.aa=!0,U(e.O)):(e.aa=!1,ya(e.i,l.i),ya(e.O,l.O))};nb=function(){this.Qc--};ob=function(e){var l,q,t,u,b,a=0;if(!this.L)for(l=0,q=this.ka.length;l<q;l++)for(b=this.ka[l],t=0,u=b.pa.length;t<u;t++){if(e===b.pa[t].name)return this.C.lastBehIndex=a,b.pa[t];a++}l=0;for(q=this.pa.length;l<q;l++){if(e===this.pa[l].name)return this.C.lastBehIndex=a,this.pa[l];
a++}return null};pb=function(e){return this.Xh(e)?this.C.lastBehIndex:-1};qb=function(e){var l,q;l=0;for(q=this.J.length;l<q;l++)if(this.J[l].name===e)return l;return-1};rb=function(){if(this.wb&&!this.L){var e,l,q,t,u,b,a;this.mj();b=this.Q();var f=b.aa,k=(e=this.b.hb())&&e.Rb&&e.Rb.kc;e=0;for(l=this.Cb.length;e<l;e++)if(u=this.Cb[e],u!==this&&(u.mj(),a=u.Q(),a.aa=f,!f)){U(a.i);q=0;for(t=b.i.length;q<t;++q)a.i[q]=u.ck(b.i[q].ve);if(k)for(U(a.O),q=0,t=b.O.length;q<t;++q)a.O[q]=u.ck(b.O[q].ve)}}};
tb=function(){return"Type"+this.P};Sb=function(e,l,q){if("undefined"===typeof e||"undefined"===typeof q)return!1;switch(l){case 0:return e===q;case 1:return e!==q;case 2:return e<q;case 3:return e<=q;case 4:return e>q;case 5:return e>=q;default:return!1}}})();var ac={};function ec(e){this.b=e}
(function(){function e(){}function p(){}var l=ec.prototype;l.Ka=function(e){this.ma=e;this.b=e.b};l.Ka.prototype.Y=function(){};l.wa=function(e){this.type=e;this.b=e.b};var q=l.wa.prototype;q.Y=function(){this.b.la?z("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.kf=1===this.D[0],this.fc=document.createElement("input"),this.U=this.kf?document.createElement("label"):this.fc,this.Hg=null,this.fc.type=this.kf?"checkbox":"button",this.fc.id=this.D[6],
jQuery(this.U).appendTo(this.b.Fh?this.b.Fh:"body"),this.kf?(jQuery(this.fc).appendTo(this.U),this.Hg=document.createTextNode(this.D[1]),jQuery(this.U).append(this.Hg),this.fc.checked=0!==this.D[7],jQuery(this.U).css("font-family","sans-serif"),jQuery(this.U).css("display","inline-block"),jQuery(this.U).css("color","black")):this.fc.value=this.D[1],this.U.title=this.D[2],this.fc.disabled=0===this.D[4],this.fq=0!==this.D[5],this.qe=!1,0===this.D[3]&&(jQuery(this.U).hide(),this.visible=!1,this.qe=!0),
this.fc.onclick=function(e){return function(l){l.stopPropagation();e.b.Vc=!0;e.b.trigger(ec.prototype.m.El,e);e.b.Vc=!1}}(this),this.U.addEventListener("touchstart",function(e){e.stopPropagation()},!1),this.U.addEventListener("touchmove",function(e){e.stopPropagation()},!1),this.U.addEventListener("touchend",function(e){e.stopPropagation()},!1),jQuery(this.U).mousedown(function(e){e.stopPropagation()}),jQuery(this.U).mouseup(function(e){e.stopPropagation()}),jQuery(this.U).keydown(function(e){e.stopPropagation()}),
jQuery(this.U).keyup(function(e){e.stopPropagation()}),this.cn=this.dn=this.Wm=this.$m=this.bn=this.Ym=0,this.Zo(!0),this.b.nl(this))};q.Kb=function(){var e={tooltip:this.U.title,disabled:!!this.fc.disabled};this.kf?(e.checked=!!this.fc.checked,e.text=this.Hg.nodeValue):e.text=this.U.value;return e};q.ic=function(e){this.U.title=e.tooltip;this.fc.disabled=e.disabled;this.kf?(this.fc.checked=e.checked,this.Hg.nodeValue=e.text):this.U.value=e.text};q.Df=function(){this.b.la||(jQuery(this.U).remove(),
this.U=null)};q.tc=function(){this.Zo()};q.Zo=function(e){if(!this.b.la){var l=this.j.ba(this.x,this.y,!0),b=this.j.ba(this.x,this.y,!1),a=this.j.ba(this.x+this.width,this.y+this.height,!0),f=this.j.ba(this.x+this.width,this.y+this.height,!1),k=this.b.width/this.b.devicePixelRatio,c=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=a||0>=f||l>=k||b>=c?(this.qe||jQuery(this.U).hide(),this.qe=!0):(1>l&&(l=1),1>b&&(b=1),a>=k&&(a=k-1),f>=c&&(f=c-1),k=window.innerWidth,c=window.innerHeight,
e||this.Ym!==l||this.bn!==b||this.$m!==a||this.Wm!==f||this.dn!==k||this.cn!==c?(this.Ym=l,this.bn=b,this.$m=a,this.Wm=f,this.dn=k,this.cn=c,this.qe&&(jQuery(this.U).show(),this.qe=!1),e=Math.round(l)+jQuery(this.b.canvas).offset().left,k=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.U).css("position","absolute"),jQuery(this.U).offset({left:e,top:k}),jQuery(this.U).width(Math.round(a-l)),jQuery(this.U).height(Math.round(f-b)),this.fq&&jQuery(this.U).css("font-size",this.j.ub(!0)/this.b.devicePixelRatio-
.2+"em")):this.qe&&(jQuery(this.U).show(),this.qe=!1))}};q.Rc=function(){};q.Sb=function(){};e.prototype.El=function(){return!0};l.m=new e;p.prototype.Nl=function(e){this.b.la||(this.kf?this.Hg.nodeValue=e:this.U.value=e)};p.prototype.Ol=function(e){this.b.la||(this.visible=0!==e)};l.xa=new p;l.gb=new function(){}})();function dc(e){this.b=e}
(function(){function e(){if(0===this.Lj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Mf?b.drawImage(this.Ra,this.Bf,this.Cf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Ra,0,0,this.width,this.height);this.Lj=a.toDataURL("image/png")}return this.Lj}function p(){}function l(a){a[0]=0;a[1]=0;a[2]=0;d.push(a)}function q(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,c,f){b=b.uid;c=c.uid;var e=q(b,c);if(a.hasOwnProperty(e))a[e][2]=
f;else{var g=d.length?d.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=f;a[e]=g}}function u(a,b,c){b=q(b.uid,c.uid);a.hasOwnProperty(b)&&(l(a[b]),delete a[b])}function b(a,b,c){b=q(b.uid,c.uid);if(a.hasOwnProperty(b))return r=a[b][2],!0;r=-2;return!1}var a=dc.prototype;a.Ka=function(a){this.ma=a;this.b=a.b};var f=a.Ka.prototype;f.Y=function(){if(!this.L){var a,b,c,d,f,g,k,l,p;this.xc=[];this.vg=!1;a=0;for(b=this.Bb.length;a<b;a++){f=this.Bb[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];k.bl=f[3];k.cl=f[4];k.Zn=
f[5];k.P=f[6];k.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],l={},l.Lo=g[0],l.Mo=g[1],l.Bf=g[2],l.Cf=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.Gb=g[7],l.Hb=g[8],l.lk=g[9],l.Ki=g[10],l.$n=g[11],l.Mf=0!==l.width,l.Lj="",l.lv=e,p={left:0,top:0,right:1,bottom:1},l.il=p,l.yd=null,(p=this.b.Ir(g[0]))?l.Ra=p:(l.Ra=new Image,l.Ra.rq=g[0],l.Ra.qq=g[1],l.Ra.kq=null,this.b.Wt(l.Ra,g[0])),k.frames.push(l),this.xc.push(l);this.Bb[a]=k}}};f.Xo=function(){var a,b,c;a=0;for(b=this.i.length;a<b;a++)c=
this.i[a],c.Jh=c.Ta.yd};f.Ok=function(){if(!this.L){var a,b,c;a=0;for(b=this.xc.length;a<b;++a)c=this.xc[a],c.Ra.kq=null,c.yd=null;this.vg=!1;this.Xo()}};f.Tn=function(){if(!this.L&&this.i.length){var a,b,c;a=0;for(b=this.xc.length;a<b;++a)c=this.xc[a],c.yd=this.b.u.kn(c.Ra,this.b.ya,c.$n);this.Xo()}};f.Ms=function(){if(!this.L&&!this.vg&&this.b.u){var a,b,c;a=0;for(b=this.xc.length;a<b;++a)c=this.xc[a],c.yd=this.b.u.kn(c.Ra,this.b.ya,c.$n);this.vg=!0}};f.To=function(){if(!this.L&&!this.i.length&&
this.vg){var a,b,c;a=0;for(b=this.xc.length;a<b;++a)c=this.xc[a],this.b.u.deleteTexture(c.yd),c.yd=null;this.vg=!1}};var k=[];f.eo=function(a){var b,c,d;U(k);b=0;for(c=this.xc.length;b<c;++b)d=this.xc[b].Ra,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};a.wa=function(a){this.type=a;this.b=a.b;a=this.type.Bb[0].frames[0].Ki;this.Xb?this.T.gh(a):this.T=new Wa(a)};var c=a.wa.prototype;c.Y=function(){this.visible=0===this.D[0];this.ed=0!==this.D[3];this.ja=this.wm(this.D[1])||this.type.Bb[0];this.B=
this.D[2];0>this.B&&(this.B=0);this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1);var a=this.ja.frames[this.B];this.T.gh(a.Ki);this.Gb=a.Gb;this.Hb=a.Hb;this.Ye=this.ja.speed;this.Ld=this.ja.cl;1===this.type.Bb.length&&1===this.type.Bb[0].frames.length||0===this.Ye||this.b.nl(this);this.Xb?this.Pc.reset():this.Pc=new Ua;this.md=this.Pc.oa;this.ie=!0;this.cd=0;this.he=!0;this.Fj=this.Vl="";this.mq=0;this.Ej=-1;this.type.Ms();var b,c,d,f,e,g,k,a=0;for(b=this.type.Bb.length;a<b;a++)for(f=
this.type.Bb[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.Ra.width,e.height=e.Ra.height),e.Mf&&(k=e.Ra,g=e.il,g.left=e.Bf/k.width,g.top=e.Cf/k.height,g.right=(e.Bf+e.width)/k.width,g.bottom=(e.Cf+e.height)/k.height,0===e.Bf&&0===e.Cf&&e.width===k.width&&e.height===k.height&&(e.Mf=!1));this.Ta=this.ja.frames[this.B];this.Jh=this.Ta.yd};c.Kb=function(){var a={a:this.ja.P,f:this.B,cas:this.Ye,fs:this.md,ar:this.cd,at:this.Pc.oa,rt:this.Ld};this.ie||(a.ap=this.ie);this.he||(a.af=
this.he);return a};c.ic=function(a){var b=this.Kr(a.a);b&&(this.ja=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1);this.Ye=a.cas;this.md=a.fs;this.cd=a.ar;this.Pc.reset();this.Pc.oa=a.at;this.ie=a.hasOwnProperty("ap")?a.ap:!0;this.he=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ld=a.rt:this.Ld=this.ja.cl;this.Ta=this.ja.frames[this.B];this.Jh=this.Ta.yd;this.T.gh(this.Ta.Ki);this.Gb=this.Ta.Gb;this.Hb=this.Ta.Hb};c.wj=function(a){this.B=
a?0:this.ja.frames.length-1;this.ie=!1;this.Vl=this.ja.name;this.b.trigger(dc.prototype.m.vp,this);this.b.trigger(dc.prototype.m.up,this);this.cd=0};c.xh=function(){return this.Pc.oa};c.tc=function(){this.Pc.add(this.b.Yh(this));this.Fj.length&&this.xq();0<=this.Ej&&this.yq();var a=this.Pc.oa,b=this.ja,c=b.frames[this.B],d=c.duration/this.Ye;this.ie&&a>=this.md+d&&(this.he?this.B++:this.B--,this.md+=d,this.B>=b.frames.length&&(b.Zn?(this.he=!1,this.B=b.frames.length-2):b.loop?this.B=this.Ld:(this.cd++,
this.cd>=b.bl?this.wj(!1):this.B=this.Ld)),0>this.B&&(b.Zn?(this.B=1,this.he=!0,b.loop||(this.cd++,this.cd>=b.bl&&this.wj(!0))):b.loop?this.B=this.Ld:(this.cd++,this.cd>=b.bl?this.wj(!0):this.B=this.Ld)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.md+b.frames[this.B].duration/this.Ye&&(this.md=a),a=b.frames[this.B],this.We(c,a),this.b.Z=!0)};c.wm=function(a){var b,c,d;b=0;for(c=this.type.Bb.length;b<c;b++)if(d=this.type.Bb[b],cb(d.name,a))return d;return null};c.Kr=
function(a){var b,c,d;b=0;for(c=this.type.Bb.length;b<c;b++)if(d=this.type.Bb[b],d.P===a)return d;return null};c.xq=function(){var a=this.ja.frames[this.B],b=this.wm(this.Fj);this.Fj="";!b||cb(b.name,this.ja.name)&&this.ie||(this.ja=b,this.Ye=b.speed,this.Ld=b.cl,0>this.B&&(this.B=0),this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1),1===this.mq&&(this.B=0),this.ie=!0,this.md=this.Pc.oa,this.he=!0,this.We(a,this.ja.frames[this.B]),this.b.Z=!0)};c.yq=function(){var a=this.ja.frames[this.B],
b=this.B;this.B=S(this.Ej);0>this.B&&(this.B=0);this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1);b!==this.B&&(this.We(a,this.ja.frames[this.B]),this.md=this.Pc.oa,this.b.Z=!0);this.Ej=-1};c.We=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.Gb=b.Gb;this.Hb=b.Hb;this.T.gh(b.Ki);this.p();this.Ta=b;this.Jh=b.yd;c=0;for(d=this.I.length;c<d;c++)f=this.I[c],f.bt&&f.bt(a,b);this.b.trigger(dc.prototype.m.We,this)};c.Rc=function(a){a.globalAlpha=
this.opacity;var b=this.Ta,c=b.Mf,d=b.Ra,f=this.x,e=this.y,g=this.width,k=this.height;if(0===this.k&&0<=g&&0<=k)f-=this.Gb*g,e-=this.Hb*k,this.b.sd&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.Bf,b.Cf,b.width,b.height,f,e,g,k):a.drawImage(d,f,e,g,k);else{this.b.sd&&(f=Math.round(f),e=Math.round(e));a.save();var l=0<g?1:-1,p=0<k?1:-1;a.translate(f,e);1===l&&1===p||a.scale(l,p);a.rotate(this.k*l*p);f=0-this.Gb*ia(g);e=0-this.Hb*ia(k);c?a.drawImage(d,b.Bf,b.Cf,b.width,b.height,f,e,ia(g),ia(k)):
a.drawImage(d,f,e,ia(g),ia(k));a.restore()}};c.bf=function(a){this.Sb(a)};c.Sb=function(a){a.Yb(this.Jh);a.Jf(this.opacity);var b=this.Ta,c=this.qb;if(this.b.sd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Mf?a.ae(c.$a+d,c.ab+f,c.zb+d,c.Ab+f,c.rb+d,c.sb+f,c.ob+d,c.pb+f,b.il):a.ah(c.$a+d,c.ab+f,c.zb+d,c.Ab+f,c.rb+d,c.sb+f,c.ob+d,c.pb+f)}else b.Mf?a.ae(c.$a,c.ab,c.zb,c.Ab,c.rb,c.sb,c.ob,c.pb,b.il):a.ah(c.$a,c.ab,c.zb,c.Ab,c.rb,c.sb,c.ob,c.pb)};c.Or=function(a){var b=this.Ta,c,d;c=
0;for(d=b.lk.length;c<d;c++)if(cb(a,b.lk[c][0]))return c;return-1};c.bk=function(a,b){var c=this.Ta,d=c.lk,f;O(a)?f=this.Or(a):f=a-1;f=S(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.Gb)*this.width,d=d[f][2],d=(d-c.Hb)*this.height,c=Math.cos(this.k);f=Math.sin(this.k);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var d=[],r=-2,g=[];p.prototype.xp=function(a){if(!a)return!1;var c=this.b,d=c.Zj(),f=d.type,e=null;d.C.collmemory?e=d.C.collmemory:(e={},d.C.collmemory=e);
d.C.spriteCreatedDestroyCallback||(d.C.spriteCreatedDestroyCallback=!0,c.Tl(function(a){var b=d.C.collmemory;a=a.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&(f=b[c],f[0]===a||f[1]===a)&&(l(b[c]),delete b[c])}));var k=f.Q(),p=a.Q(),k=k.Fb(),q,v,w,J,L,K,P,H=this.b.ad,M=H-1,ha=c.hb().Rb;for(v=0;v<k.length;v++){w=k[v];p.aa?(w.V(),this.b.xm(w.j,a,w.ia,g),q=g):q=p.Fb();for(J=0;J<q.length;J++)L=q[J],c.Mb(w,L)||c.nq(w,L)?(K=b(e,w,L),K=!K||r<M,t(e,w,L,H),K&&(c.Ni(ha.na),K=f.Q(),P=a.Q(),K.aa=!1,P.aa=!1,f===
a?(K.i.length=2,K.i[0]=w,K.i[1]=L,f.cc()):(K.i.length=1,P.i.length=1,K.i[0]=w,P.i[0]=L,f.cc(),a.cc()),ha.xt(),c.Ke(ha.na))):u(e,w,L);U(g)}return!1};var v=new ba,w=!1;new T(0,0,0,0);f.finish=function(a){if(w){if(a){var b=this.b.hb().Rb.kc;a=null.Q();var c=v.ge(),d,f;if(a.aa){a.aa=!1;U(a.i);d=0;for(f=c.length;d<f;++d)a.i[d]=c[d];if(b)for(U(a.O),d=0,f=null.i.length;d<f;++d)c=null.i[d],v.contains(c)||a.O.push(c)}else if(b)for(b=a.i.length,d=0,f=c.length;d<f;++d)a.i[b+d]=c[d],Ba(a.O,c[d]);else ya(a.i,
c);null.cc()}v.clear();w=!1}};p.prototype.up=function(a){return cb(this.Vl,a)};p.prototype.vp=function(){return!0};p.prototype.We=function(){return!0};a.m=new p;a.xa=new function(){};a.gb=new function(){}})();function fc(e){this.b=e}
(function(){function e(){return a.length?a.pop():{}}function p(b){var e,c;e=0;for(c=b.length;e<c;e++)a.push(b[e]);U(b)}function l(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function q(){}var t=fc.prototype;t.Y=function(){t.xa.Rp=function(a){this.width!==a&&(this.width=a,this.Re=!0,this.p())}};t.Ka=function(a){this.ma=a;this.b=a.b};var u=t.Ka.prototype;u.Y=function(){};u.Ok=function(){if(!this.L){var a,b,c;a=0;for(b=this.i.length;a<b;a++)c=this.i[a],c.Wc=null,c.Ie=null,
c.Ib=null}};t.wa=function(a){this.type=a;this.b=a.b;this.Xb?U(this.Wd):this.Wd=[];this.Re=!0};u=t.wa.prototype;u.Y=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.di=this.D[4];this.oj=this.D[5];this.Al=0===this.D[7];this.Ak=this.pi=this.width;this.oi=this.height;this.Ck=this.D[8];this.Uh=this.df="";this.Jo=this.Ko=this.Zg=0;this.et();this.Ib=this.Ie=this.Wc=null;this.Ln=!1;this.Jg=this.b.ad;this.Xb?this.Ff.set(0,0,1,1):this.Ff=new T(0,0,1,1);
this.b.u&&this.b.nl(this)};u.et=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.Zg=parseInt(a[b].substr(0,a[b].length-2));this.Yk=Math.ceil(this.Zg/72*96)+4;0<b&&(this.Uh=a[b-1]);this.df=a[b+1];for(b+=2;b<a.length;b++)this.df+=" "+a[b];break}};u.Kb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.di,va:this.oj,wr:this.Al,lho:this.Ck,fn:this.df,fs:this.Uh,ps:this.Zg,pxh:this.Yk,tw:this.Ko,th:this.Jo,lrt:this.Jg}};u.ic=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.di=a.ha;this.oj=a.va;this.Al=a.wr;this.Ck=a.lho;this.df=a.fn;this.Uh=a.fs;this.Zg=a.ps;this.Yk=a.pxh;this.Ko=a.tw;this.Jo=a.th;this.Jg=a.lrt;this.Re=!0;this.Ak=this.pi=this.width;this.oi=this.height};u.tc=function(){if(this.b.u&&this.Ib&&300<=this.b.ad-this.Jg){var a=this.j;this.V();var b=this.ia;if(b.right<a.W||b.bottom<a.X||b.left>a.ea||b.top>a.da)this.b.u.deleteTexture(this.Ib),this.Wc=this.Ie=this.Ib=null}};u.Df=function(){this.Wc=this.Ie=null;this.b.u&&this.Ib&&
this.b.u.deleteTexture(this.Ib);this.Ib=null};u.xh=function(){this.font=this.Uh+" "+this.Zg.toString()+"pt "+this.df;this.Re=!0;this.b.Z=!0};u.Rc=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.j.ub()),a.save(),a.scale(c,c));if(this.Re||this.width!==this.Ak)this.type.ma.Vp(this.text,this.Wd,a,this.width,this.Al),this.Re=!1,this.Ak=this.width;this.V();var c=b?0:this.qb.$a,d=b?0:this.qb.ab;this.b.sd&&(c=c+.5|0,d=d+
.5|0);0===this.k||b||(a.save(),a.translate(c,d),a.rotate(this.k),d=c=0);var e=d+this.height,g=this.Yk,g=g+this.Ck,l,p;1===this.oj?d+=Math.max(this.height/2-this.Wd.length*g/2,0):2===this.oj&&(d+=Math.max(this.height-this.Wd.length*g-2,0));for(p=0;p<this.Wd.length&&!(l=c,1===this.di?l=c+(this.width-this.Wd[p].width)/2:2===this.di&&(l=c+(this.width-this.Wd[p].width)),a.fillText(this.Wd[p].text,l,d),d+=g,d>=e-g);p++);(0!==this.k||b)&&a.restore();this.Jg=this.b.ad};u.Sb=function(a){if(!(1>this.width||
1>this.height)){var b=this.Re||this.Ln;this.Ln=!1;var c=this.j.ub(),d=this.j.Eb(),e=this.Ff,g=c*this.width,l=c*this.height,p=Math.ceil(g),n=Math.ceil(l),h=Math.abs(p),m=Math.abs(n),t=this.b.H/2,q=this.b.G/2;this.Ie||(this.Wc=document.createElement("canvas"),this.Wc.width=h,this.Wc.height=m,this.pi=h,this.oi=m,b=!0,this.Ie=this.Wc.getContext("2d"));if(h!==this.pi||m!==this.oi)this.Wc.width=h,this.Wc.height=m,this.Ib&&(a.deleteTexture(this.Ib),this.Ib=null),b=!0;b&&(this.Ie.clearRect(0,0,h,m),this.Rc(this.Ie,
!0),this.Ib||(this.Ib=a.Qb(h,m,this.b.ya,this.b.Td)),a.Vt(this.Wc,this.Ib,this.b.Td));this.pi=h;this.oi=m;a.Yb(this.Ib);a.Jf(this.opacity);a.pc();a.translate(-t,-q);a.Zb();var u=this.qb,b=this.j.ba(u.$a,u.ab,!0,!0),h=this.j.ba(u.$a,u.ab,!1,!0),m=this.j.ba(u.zb,u.Ab,!0,!0),t=this.j.ba(u.zb,u.Ab,!1,!0),q=this.j.ba(u.rb,u.sb,!0,!0),la=this.j.ba(u.rb,u.sb,!1,!0),Q=this.j.ba(u.ob,u.pb,!0,!0),u=this.j.ba(u.ob,u.pb,!1,!0);if(this.b.sd||0===this.k&&0===d)var X=(b+.5|0)-b,G=(h+.5|0)-h,b=b+X,h=h+G,m=m+X,t=
t+G,q=q+X,la=la+G,Q=Q+X,u=u+G;0===this.k&&0===d?(m=b+p,t=h,q=m,la=h+n,Q=b,u=la,e.right=1,e.bottom=1):(e.right=g/p,e.bottom=l/n);a.ae(b,h,m,t,q,la,Q,u,e);a.pc();a.scale(c,c);a.Si(-this.j.Eb());a.translate((this.j.W+this.j.ea)/-2,(this.j.X+this.j.da)/-2);a.Zb();this.Jg=this.b.ad}};var b=[];t.Up=function(a){U(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=[];t.Vp=function(a,b,c,d,l){if(a&&a.length)if(2>=d)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=c.measureText(a).width;if(g<=d){p(b);b.push(e());b[0].text=a;b[0].width=g;return}}this.Wp(a,b,c,d,l)}else p(b)};t.Wp=function(f,k,c,d,p){p&&(this.Up(f),f=b);var g="",t,q,n,h=0;for(n=0;n<f.length;n++)"\n"===f[n]?(h>=k.length&&k.push(e()),g=l(g),q=k[h],q.text=g,q.width=c.measureText(g).width,h++,g=""):(t=
g,g+=f[n],q=c.measureText(g).width,q>=d&&(h>=k.length&&k.push(e()),t=l(t),q=k[h],q.text=t,q.width=c.measureText(t).width,h++,g=f[n],p||" "!==g||(g="")));g.length&&(h>=k.length&&k.push(e()),g=l(g),q=k[h],q.text=g,q.width=c.measureText(g).width,h++);for(n=h;n<k.length;n++)a.push(k[n]);k.length=h};t.m=new function(){};q.prototype.Nl=function(a){D(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Re=!0,this.b.Z=!0)};t.xa=new q;t.gb=new function(){}})();
function Z(e){this.b=e}
(function(){function e(a){k=a.x;c=a.y;d=a.z}function p(a,b,c,d){var e;e=r.length?r.pop():new l;e.init(a,b,c,d);return e}function l(){this.kh=this.id=this.Ee=this.De=this.y=this.x=this.bj=this.aj=this.zk=this.time=this.kl=0;this.nh=this.kj=!1}function q(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function t(){}function u(){}var b=Z.prototype;b.Ka=function(a){this.ma=a;
this.b=a.b};b.Ka.prototype.Y=function(){};b.wa=function(a){this.type=a;this.b=a.b;this.touches=[];this.Kk=!1};var a=b.wa.prototype,f={left:0,top:0};a.pg=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 k=0,c=0,d=0,r=[];l.prototype.init=function(a,b,c,d){var e=Qa();this.kl=this.zk=this.time=e;this.aj=a;this.bj=b;this.x=a;this.y=b;this.De=a;this.Ee=b;this.pressure=this.height=this.width=0;this.id=c;this.kh=d;this.nh=this.kj=!1};l.prototype.update=
function(a,b,c,d,e,f){this.zk=this.time;this.time=a;this.De=this.x;this.Ee=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.nh&&15<=Ma(this.aj,this.bj,this.x,this.y)&&(this.nh=!0)};l.prototype.Ps=function(a,b){!this.kj&&500<=Qa()-this.kl&&!this.nh&&15>Ma(this.aj,this.bj,this.x,this.y)&&(this.kj=!0,a.bd=this.kh,a.Rf=this.id,a.jf=b,a.b.trigger(Z.prototype.m.Cp,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.m.Dp,a),a.jf=0)};var g=-1E3,v=-1E3,w=-1E4;l.prototype.Fn=function(a,
b){if(!this.kj){var c=Qa();333>=c-this.kl&&!this.nh&&15>Ma(this.aj,this.bj,this.x,this.y)&&(a.bd=this.kh,a.Rf=this.id,a.jf=b,666>=c-w&&25>Ma(g,v,this.x,this.y)?(a.b.trigger(Z.prototype.m.zp,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.m.Ap,a),v=g=-1E3,w=-1E4):(a.b.trigger(Z.prototype.m.Lp,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.m.Mp,a),g=this.x,v=this.y,w=c),a.jf=0)}};a.Y=function(){this.Es=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.jf=this.Rf=this.bd=
this.hd=this.gd=this.Rl=this.Ql=this.Pl=this.aq=this.$p=this.Zp=this.Ji=this.Ii=this.Hi=0;this.Tt=0!==this.D[0];var a=0<this.b.tb?document:this.b.canvas,b=document;this.b.Rd?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Sn(a)},!1),a.addEventListener("pointermove",function(a){c.Rn(a)},!1),b.addEventListener("pointerup",function(a){c.Gi(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Gi(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.Sn(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Rn(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Gi(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Gi(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.Vn(a)},!1),a.addEventListener("touchmove",function(a){c.Un(a)},!1),b.addEventListener("touchend",function(a){c.Pk(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Pk(a,!0)},
!1));if(this.Es){var d=function(a){a=a.reading;c.Pl=a.accelerationX;c.Ql=a.accelerationY;c.Rl=a.accelerationZ},f=function(a){a=a.reading;c.Hi=a.yawDegrees;c.Ii=a.pitchDegrees;c.Ji=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),k&&k.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),k&&k.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Hi=a.alpha||0;c.Ii=a.beta||0;c.Ji=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Zp=a.accelerationIncludingGravity.x||0,c.$p=a.accelerationIncludingGravity.y||
0,c.aq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Pl=a.acceleration.x||0,c.Ql=a.acceleration.y||0,c.Rl=a.acceleration.z||0)},!1);this.Tt&&!this.b.la&&(jQuery(document).mousemove(function(a){c.Zs(a)}),jQuery(document).mousedown(function(a){c.Ys(a)}),jQuery(document).mouseup(function(a){c.$s(a)}));!this.b.mi&&this.b.hc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.Mt(this)};a.Rn=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.pg(a.pointerId),c=Qa();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.Sn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var b=this.b.la?f:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Qa();
this.bd=this.touches.length;this.Rf=a.pointerId;this.touches.push(p(c,b,a.pointerId,this.bd));this.b.Vc=!0;this.b.trigger(Z.prototype.m.Il,this);this.b.trigger(Z.prototype.m.Ml,this);this.gd=c;this.hd=b;this.b.trigger(Z.prototype.m.Ll,this);this.b.Vc=!1}};a.Gi=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var c=this.pg(a.pointerId);this.bd=0<=c?this.touches[c].kh:-1;this.Rf=0<=c?this.touches[c].id:-1;this.b.Vc=!0;this.b.trigger(Z.prototype.m.Hl,
this);this.b.trigger(Z.prototype.m.Kl,this);0<=c&&(b||this.touches[c].Fn(this,c),100>r.length&&r.push(this.touches[c]),this.touches.splice(c,1));this.b.Vc=!1}};a.Un=function(a){a.preventDefault&&a.preventDefault();var b=Qa(),c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.pg(e.identifier),0<=g){var k=this.b.la?f:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-k.left,e.pageY-k.top,2*(e.xv||e.Hv||e.rv||e.uv||0),2*(e.yv||e.Iv||e.sv||e.vv||
0),e.jv||e.Gv||e.qv||e.tv||0)}};a.Vn=function(a){a.preventDefault&&db(a)&&a.preventDefault();var b=this.b.la?f:jQuery(this.b.canvas).offset();Qa();this.b.Vc=!0;var c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.pg(e.identifier),-1===g){g=e.pageX-b.left;var k=e.pageY-b.top;this.bd=this.touches.length;this.Rf=e.identifier;this.touches.push(p(g,k,e.identifier,this.bd));this.b.trigger(Z.prototype.m.Il,this);this.b.trigger(Z.prototype.m.Ml,this);this.gd=g;this.hd=k;this.b.trigger(Z.prototype.m.Ll,
this)}this.b.Vc=!1};a.Pk=function(a,b){a.preventDefault&&db(a)&&a.preventDefault();this.b.Vc=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.pg(e.identifier),0<=e&&(this.bd=this.touches[e].kh,this.Rf=this.touches[e].id,this.b.trigger(Z.prototype.m.Hl,this),this.b.trigger(Z.prototype.m.Kl,this),b||this.touches[e].Fn(this,e),100>r.length&&r.push(this.touches[e]),this.touches.splice(e,1));this.b.Vc=!1};a.xh=function(){return this.b.hc&&0===this.Hi&&0!==d?90*d:this.Hi};
a.iv=function(){return this.b.hc&&0===this.Ii&&0!==c?90*c:this.Ii};a.ov=function(){return this.b.hc&&0===this.Ji&&0!==k?90*k:this.Ji};a.Ys=function(a){q(a)||(this.Vn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Kk=!0)};a.Zs=function(a){this.Kk&&!q(a)&&this.Un({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.$s=function(a){a.preventDefault&&this.b.Dm&&!this.b.Td&&a.preventDefault();this.b.Dm=!0;q(a)||(this.Pk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.Kk=!1)};a.ml=function(){var a,b,c,d=Qa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.zk=d),c.Ps(this,a)};t.prototype.Ml=function(){return!0};t.prototype.Kl=function(){return!0};t.prototype.Ll=function(a){return a?this.b.fj(a,this.gd,this.hd):!1};var n=[];t.prototype.pp=function(a){if(!a)return!1;var b=a.Q(),c=b.Fb(),d,e,f,g,k,l;f=0;for(g=c.length;f<g;f++){var p=c[f];p.V();k=0;for(l=this.touches.length;k<l;k++)if(e=this.touches[k],d=p.j.Sa(e.x,e.y,!0),e=p.j.Sa(e.x,
e.y,!1),p.eb(d,e)){n.push(p);break}}return n.length?(b.aa=!1,ya(b.i,n),a.cc(),U(n),!0):!1};t.prototype.Il=function(a){a=Math.floor(a);return a===this.bd};t.prototype.Hl=function(a){a=Math.floor(a);return a===this.bd};t.prototype.Cp=function(){return!0};t.prototype.Lp=function(){return!0};t.prototype.zp=function(){return!0};t.prototype.Dp=function(a){return a?this.b.fj(a,this.gd,this.hd):!1};t.prototype.Mp=function(a){return a?this.b.fj(a,this.gd,this.hd):!1};t.prototype.Ap=function(a){return a?this.b.fj(a,
this.gd,this.hd):!1};b.m=new t;u.prototype.Xp=function(a,b){var c=this.jf;if(0>c||c>=this.touches.length)a.F(0);else{var d,e,f,g,k;ea(b)?(d=this.b.qg(0),e=d.scale,f=d.Oc,g=d.mc,k=d.k,d.scale=1,d.Oc=1,d.mc=1,d.k=0,a.F(d.Sa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Oc=f,d.mc=g,d.k=k):(d=D(b)?this.b.qg(b):this.b.dk(b))?a.F(d.Sa(this.touches[c].x,this.touches[c].y,!0)):a.F(0)}};u.prototype.Yp=function(a,b){var c=this.jf;if(0>c||c>=this.touches.length)a.F(0);else{var d,e,f,g,k;ea(b)?(d=this.b.qg(0),
e=d.scale,f=d.Oc,g=d.nc,k=d.k,d.scale=1,d.Oc=1,d.nc=1,d.k=0,a.F(d.Sa(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Oc=f,d.nc=g,d.k=k):(d=D(b)?this.b.qg(b):this.b.dk(b))?a.F(d.Sa(this.touches[c].x,this.touches[c].y,!1)):a.F(0)}};b.gb=new u})();function gc(e){this.b=e}
(function(){function e(){}function p(){}function l(){}var q=gc.prototype;q.Ka=function(a){this.ma=a;this.b=a.b};q.Ka.prototype.Y=function(){};q.wa=function(a){this.type=a;this.b=a.b};var t=q.wa.prototype,u="",b="undefined"!==typeof window.is_scirra_arcade;b&&(u="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(f){a=!1}t.Y=function(){a||z("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};e.prototype.sp=function(b){return a?null!=
localStorage.getItem(u+b):!1};e.prototype.Jp=function(){return!0};q.m=new e;p.prototype.Tp=function(b,c){if(a)try{localStorage.setItem(u+b,c)}catch(d){this.b.trigger(gc.prototype.m.Jp,this)}};q.xa=new p;l.prototype.tp=function(b,c){a?b.Ya(localStorage.getItem(u+c)||""):b.Ya("")};l.prototype.Cl=function(e){if(a){var c={},d,f,g;d=0;for(f=localStorage.length;d<f;d++)g=localStorage.key(d),b?g.substr(0,u.length)===u&&(c[g.substr(u.length)]=localStorage.getItem(g)):c[g]=localStorage.getItem(g);e.Ya(JSON.stringify({c2dictionary:!0,
data:c}))}else e.Ya("")};q.gb=new l})();function hc(e){this.b=e}
(function(){var e=hc.prototype;e.Ka=function(e){this.behavior=e;this.b=e.b};e.Ka.prototype.Y=function(){};e.wa=function(e,p){this.type=e;this.behavior=e.behavior;this.d=p;this.b=e.b};var p=e.wa.prototype;p.Y=function(){var e=this.D[0];this.vc=this.D[1];this.Db=this.D[2];this.iq=0!==this.D[3];this.hl=0!==this.D[4];this.q=Math.cos(this.d.k)*e;this.A=Math.sin(this.d.k)*e;this.De=this.d.x;this.Ee=this.d.y;this.tf=this.d.k;this.jj=0;this.enabled=0!==this.D[5]};p.Kb=function(){return{acc:this.vc,g:this.Db,
dx:this.q,dy:this.A,lx:this.De,ly:this.Ee,lka:this.tf,t:this.jj,e:this.enabled}};p.ic=function(e){this.vc=e.acc;this.Db=e.g;this.q=e.dx;this.A=e.dy;this.De=e.lx;this.Ee=e.ly;this.tf=e.lka;this.jj=e.t;this.enabled=e.e};p.tc=function(){if(this.enabled){var e=this.b.Yh(this.d),p,t;this.d.k!==this.tf&&(this.hl&&(p=Ma(0,0,this.q,this.A),this.q=Math.cos(this.d.k)*p,this.A=Math.sin(this.d.k)*p),this.tf=this.d.k);0!==this.vc&&(p=Ma(0,0,this.q,this.A),t=0===this.q&&0===this.A?this.d.k:Ia(0,0,this.q,this.A),
p+=this.vc*e,0>p&&(p=0),this.q=Math.cos(t)*p,this.A=Math.sin(t)*p);0!==this.Db&&(this.A+=this.Db*e);this.De=this.d.x;this.Ee=this.d.y;if(0!==this.q||0!==this.A)if(this.d.x+=this.q*e,this.d.y+=this.A*e,this.jj+=Ma(0,0,this.q*e,this.A*e),this.hl&&(this.d.k=Ia(0,0,this.q,this.A),this.d.p(),this.tf=this.d.k),this.d.p(),this.iq&&(p=this.b.Za(this.d)))this.b.Gf(this.d,p),p=Ma(0,0,this.q,this.A),t=this.b.lq(this.d,this.De,this.Ee),this.q=Math.cos(t)*p,this.A=Math.sin(t)*p,this.d.x+=this.q*e,this.d.y+=this.A*
e,this.d.p(),this.hl&&(this.tf=this.d.k=t,this.d.p()),this.b.oc(this.d,this.q/p,this.A/p,Math.max(2.5*p*e,30))||this.b.jo(this.d,100)}};e.m=new function(){};e.xa=new function(){};e.gb=new function(){}})();function ic(e){this.b=e}
(function(){function e(){}function p(){}var l=ic.prototype;l.Ka=function(e){this.behavior=e;this.b=e.b};l.Ka.prototype.Y=function(){};l.wa=function(e,l){this.type=e;this.behavior=e.behavior;this.d=l;this.b=e.b;this.ih=this.Yi=this.Xi=this.kk=this.dg=this.jg=this.rf=this.sf=this.dh=this.Kg=!1;this.kb=null;this.Dk=-1;this.ze=this.ye=0;this.Th=!1;this.ef=this.yc=0;this.Sh=!0;this.A=this.q=0};var q=l.wa.prototype;q.Yo=function(){this.Na=Math.cos(this.hf);this.Oa=Math.sin(this.hf);this.Le=Math.cos(this.hf-
Math.PI/2);this.Me=Math.sin(this.hf-Math.PI/2);this.Na=bb(this.Na);this.Oa=bb(this.Oa);this.Le=bb(this.Le);this.Me=bb(this.Me);this.Xj=this.Db;0>this.Db&&(this.Na*=-1,this.Oa*=-1,this.Db=Math.abs(this.Db))};q.Y=function(){this.zf=this.D[0];this.vc=this.D[1];this.$e=this.D[2];this.Gg=this.D[3];this.Xj=this.Db=this.D[4];this.Ci=this.D[5];this.Oj=0!==this.D[6];this.wk=this.D[7]/1E3;this.uq=1===this.D[8];this.enabled=0!==this.D[9];this.Wf=!1;this.Xf=this.b.ee(this.d);this.Ek=-1;this.Qe=0;this.hf=V(90);
this.Yo();var e=this;this.uq&&!this.b.la&&(jQuery(document).keydown(function(l){e.Ws(l)}),jQuery(document).keyup(function(l){e.Xs(l)}));this.Xb||(this.Kn=function(l){e.Vs(l)});this.b.Tl(this.Kn);this.d.C.isPlatformBehavior=!0};q.Kb=function(){return{ii:this.kk,lfx:this.ye,lfy:this.ze,lfo:this.kb?this.kb.uid:-1,am:this.yc,en:this.enabled,fall:this.ef,ft:this.Sh,dx:this.q,dy:this.A,ms:this.zf,acc:this.vc,dec:this.$e,js:this.Gg,g:this.Db,g1:this.Xj,mf:this.Ci,wof:this.Wf,woj:this.Xf?this.Xf.uid:-1,ga:this.hf,
edj:this.Oj,cdj:this.dg,dj:this.jg,sus:this.wk}};q.ic=function(e){this.kk=e.ii;this.ye=e.lfx;this.ze=e.lfy;this.Dk=e.lfo;this.yc=e.am;this.enabled=e.en;this.ef=e.fall;this.Sh=e.ft;this.q=e.dx;this.A=e.dy;this.zf=e.ms;this.vc=e.acc;this.$e=e.dec;this.Gg=e.js;this.Db=e.g;this.Xj=e.g1;this.Ci=e.mf;this.Wf=e.wof;this.Ek=e.woj;this.hf=e.ga;this.Oj=e.edj;this.dg=e.cdj;this.jg=e.dj;this.wk=e.sus;this.ih=this.Yi=this.Xi=this.rf=this.sf=this.dh=this.Kg=!1;this.Qe=0;this.Yo()};q.Dd=function(){-1===this.Dk?
this.kb=null:this.kb=this.b.$h(this.Dk);-1===this.Ek?this.Xf=null:this.Xf=this.b.$h(this.Ek)};q.Vs=function(e){this.kb==e&&(this.kb=null)};q.Df=function(){this.kb=null;this.b.qt(this.Kn)};q.Ws=function(e){switch(e.which){case 38:e.preventDefault();this.sf=!0;break;case 37:e.preventDefault();this.Kg=!0;break;case 39:e.preventDefault(),this.dh=!0}};q.Xs=function(e){switch(e.which){case 38:e.preventDefault();this.rf=this.sf=!1;break;case 37:e.preventDefault();this.Kg=!1;break;case 39:e.preventDefault(),
this.dh=!1}};q.Ef=function(){this.sf=this.dh=this.Kg=!1};q.xh=function(){return 0>this.Db?-1:1};q.Om=function(){var e=null,l=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Na;this.d.y+=this.Oa;this.d.p();if(this.kb&&this.b.Mb(this.d,this.kb)&&(!this.b.sl(this.kb.type,cc)||this.kb.C.solidEnabled))return this.d.x=b,this.d.y=a,this.d.p(),this.kb;(e=this.b.Za(this.d))||0!==this.ef||(l=this.b.ee(this.d,!0));this.d.x=b;this.d.y=a;this.d.p();if(e){if(this.b.Mb(this.d,e))return null;this.Th=!1;return e}if(l&&
l.length){a=e=0;for(b=l.length;e<b;e++)l[a]=l[e],this.b.Mb(this.d,l[e])||a++;if(1<=a)return this.Th=!0,l[0]}return null};q.tc=function(){};q.co=function(){var e=this.b.Yh(this.d),l,b,a,f,k,c,d,p,g;this.sf||this.ih||(this.rf=!1);var q=this.Kg||this.Xi;a=this.dh||this.Yi;var w=(f=this.sf||this.ih)&&!this.rf;this.ih=this.Yi=this.Xi=!1;if(this.enabled){this.kk&&(w=f=a=q=!1);f||(this.Qe=0);p=this.kb;g=!1;this.Sh&&((this.b.Za(this.d)||this.b.ee(this.d))&&this.b.oc(this.d,-this.Na,-this.Oa,4,!0),this.Sh=
!1);!p||0!==this.A||p.y===this.ze&&p.x===this.ye||(l=p.x-this.ye,b=p.y-this.ze,this.d.x+=l,this.d.y+=b,this.d.p(),this.ye=p.x,this.ze=p.y,g=!0,this.b.Za(this.d)&&this.b.oc(this.d,-l,-b,2.5*Math.sqrt(l*l+b*b)));var n=this.Om();if(b=this.b.Za(this.d))if(this.d.C.inputPredicted)this.b.oc(this.d,-this.Na,-this.Oa,10,!1);else if(this.b.jo(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Gf(this.d,b);else return;n?(this.dg=this.jg=!1,0<this.A&&(this.Wf||(this.b.Xk(this.d,-this.Na,-this.Oa,n),this.Wf=
!0),this.A=0),p!=n)?(this.kb=n,this.ye=n.x,this.ze=n.y,this.b.Gf(this.d,n)):g&&(b=this.b.Za(this.d))&&(this.b.Gf(this.d,b),0!==l&&(0<l?this.b.oc(this.d,-this.Le,-this.Me):this.b.oc(this.d,this.Le,this.Me)),this.b.oc(this.d,-this.Na,-this.Oa)):f||(this.dg=!0);if(n&&w||!n&&this.Oj&&f&&this.dg&&!this.jg)p=this.d.x,g=this.d.y,this.d.x-=this.Na,this.d.y-=this.Oa,this.d.p(),this.b.Za(this.d)?w=!1:(this.Qe=this.wk,this.b.trigger(ic.prototype.m.Ep,this.d),this.yc=2,this.A=-this.Gg,w=!0,n?this.rf=!0:this.jg=
!0),this.d.x=p,this.d.y=g,this.d.p();n||(f&&0<this.Qe?(this.A=-this.Gg,this.Qe-=e):(this.kb=null,this.A+=this.Db*e,this.A>this.Ci&&(this.A=this.Ci)),w&&(this.rf=!0));this.Wf=!!n;q==a&&(0>this.q?(this.q+=this.$e*e,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.$e*e,0>this.q&&(this.q=0)));q&&!a&&(this.q=0<this.q?this.q-(this.vc+this.$e)*e:this.q-this.vc*e);a&&!q&&(this.q=0>this.q?this.q+(this.vc+this.$e)*e:this.q+this.vc*e);this.q>this.zf?this.q=this.zf:this.q<-this.zf&&(this.q=-this.zf);q=!1;0!==this.q&&
(p=this.d.x,g=this.d.y,l=this.q*e*this.Le,b=this.q*e*this.Me,this.d.x+=this.Le*(1<this.q?1:-1)-this.Na,this.d.y+=this.Me*(1<this.q?1:-1)-this.Oa,this.d.p(),f=!1,k=this.b.Za(this.d),this.d.x=p+l,this.d.y=g+b,this.d.p(),a=this.b.Za(this.d),!a&&n&&(a=this.b.ee(this.d))&&(this.d.x=p,this.d.y=g,this.d.p(),this.b.Mb(this.d,a)?(a=null,f=!1):f=!0,this.d.x=p+l,this.d.y=g+b,this.d.p()),a?(l=Math.abs(this.q*e)+2,k||!this.b.oc(this.d,-this.Na,-this.Oa,l,f,a))?(this.b.Gf(this.d,a),l=Math.max(Math.abs(this.q*e*
2.5),30),this.b.oc(this.d,this.Le*(0>this.q?1:-1),this.Me*(0>this.q?1:-1),l,!1)?!n||f||this.Th||(p=this.d.x,g=this.d.y,this.d.x+=this.Na,this.d.y+=this.Oa,this.b.Za(this.d)?this.b.oc(this.d,-this.Na,-this.Oa,3,!1)||(this.d.x=p,this.d.y=g,this.d.p()):(this.d.x=p,this.d.y=g,this.d.p())):(this.d.x=p,this.d.y=g,this.d.p()),f||(this.q=0)):!k&&!w&&Math.abs(this.A)<Math.abs(this.Gg/4)&&(this.A=0,n||(q=!0)):(p=this.Om(),n&&!p?(b=Math.ceil(Math.abs(this.q*e))+2,p=this.d.x,g=this.d.y,this.d.x+=this.Na*b,this.d.y+=
this.Oa*b,this.d.p(),this.b.Za(this.d)||this.b.ee(this.d)?this.b.oc(this.d,-this.Na,-this.Oa,b+2,!0):(this.d.x=p,this.d.y=g,this.d.p())):p&&0===this.A&&this.b.Xk(this.d,-this.Na,-this.Oa,p)));if(0!==this.A){p=this.d.x;g=this.d.y;this.d.x+=this.A*e*this.Na;this.d.y+=this.A*e*this.Oa;l=this.d.x;a=this.d.y;this.d.p();b=this.b.Za(this.d);f=!1;if(!b&&0<this.A&&!n){if((f=0<this.ef?null:this.b.ee(this.d,!0))&&f.length){if(this.Xf){this.d.x=p;this.d.y=g;this.d.p();d=k=0;for(c=f.length;k<c;k++)f[d]=f[k],this.b.Mb(this.d,
f[k])||d++;f.length=d;this.d.x=l;this.d.y=a;this.d.p()}1<=f.length&&(b=f[0])}f=!!b}b&&(this.b.Gf(this.d,b),this.Qe=0,l=f?Math.abs(this.A*e*2.5+10):Math.max(Math.abs(this.A*e*2.5+10),30),this.b.oc(this.d,this.Na*(0>this.A?1:-1),this.Oa*(0>this.A?1:-1),l,f,b)?(this.kb=b,this.ye=b.x,this.ze=b.y,(this.Th=f)&&(q=!0),this.A=0):(this.d.x=p,this.d.y=g,this.d.p(),this.Wf=!0,f||(this.A=0)))}3!==this.yc&&0<this.A&&!n&&(this.b.trigger(ic.prototype.m.Bp,this.d),this.yc=3);if(n||q)3===this.yc||q||w&&0===this.A?
(this.b.trigger(ic.prototype.m.Fp,this.d),this.yc=0===this.q&&0===this.A?0:1):(0!==this.yc&&0===this.q&&0===this.A&&(this.b.trigger(ic.prototype.m.Kp,this.d),this.yc=0),1===this.yc||0===this.q&&0===this.A||w||(this.b.trigger(ic.prototype.m.Ip,this.d),this.yc=1));0<this.ef&&this.ef--;this.Xf=this.b.ee(this.d)}};e.prototype.Ep=function(){return!0};e.prototype.Bp=function(){return!0};e.prototype.Kp=function(){return!0};e.prototype.Ip=function(){return!0};e.prototype.Fp=function(){return!0};l.m=new e;
p.prototype.Sp=function(e){switch(e){case 0:this.Xi=!0;break;case 1:this.Yi=!0;break;case 2:this.ih=!0}};l.xa=new p;l.gb=new function(){}})();function cc(e){this.b=e}(function(){var e=cc.prototype;e.Ka=function(e){this.behavior=e;this.b=e.b};e.Ka.prototype.Y=function(){};e.wa=function(e,p){this.type=e;this.behavior=e.behavior;this.d=p;this.b=e.b};var p=e.wa.prototype;p.Y=function(){this.d.C.solidEnabled=0!==this.D[0]};p.tc=function(){};e.m=new function(){};e.xa=new function(){}})();
function jc(e){this.b=e}
(function(){var e=jc.prototype;e.Ka=function(e){this.behavior=e;this.b=e.b};e.Ka.prototype.Y=function(){};e.wa=function(e,l){this.type=e;this.behavior=e.behavior;this.d=l;this.b=e.b};e=e.wa.prototype;e.Y=function(){this.mode=this.D[0]};e.tc=function(){var e=this.d;e.V();var l=e.ia,q=e.j,t=q.Fa,u=0,b=0,a=0,f=0;0===this.mode?(b=t.width,f=t.height):(u=q.W,b=q.ea,a=q.X,f=q.da);l.right<u?(e.x=b-1+(e.x-l.left),e.p()):l.left>b?(e.x=u+1-(l.right-e.x),e.p()):l.bottom<a?(e.y=f-1+(e.y-l.top),e.p()):l.top>f&&
(e.y=a+1-(l.bottom-e.y),e.p())}})();
function bc(){return[ec,dc,Z,fc,gc,ic,jc,cc,hc,Y.prototype.m.kp,Y.prototype.xa.jp,Y.prototype.gb.random,Y.prototype.gb.Ks,Y.prototype.gb.Js,dc.prototype.m.xp,fc.prototype.xa.Ol,Y.prototype.xa.Pp,Y.prototype.m.ip,Y.prototype.xa.Qp,gc.prototype.xa.Tp,Z.prototype.m.pp,Y.prototype.xa.Np,Y.prototype.xa.Op,Y.prototype.xa.ep,fc.prototype.xa.Nl,Y.prototype.m.Fl,gc.prototype.m.sp,gc.prototype.gb.tp,Y.prototype.m.Dl,Y.prototype.m.lp,ic.prototype.xa.Sp,ec.prototype.m.El,Y.prototype.xa.mp]};
