// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ca,da,ea,fa,ga,ia,ja,ka,la,ma,na,oa,qa,ra,sa,ta,ua,va,wa,ya,za,A,Aa,Ba,Ca,Fa,Ga,E,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Qa,Ra,Sa,Ua,Va,Wa,Xa,Ya,Za,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc={},ic={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,e,h,c){this.set(a,e,h,c)}function g(){this.ec=this.cc=this.hc=this.gc=this.vc=this.uc=this.Lb=this.Kb=0}function b(a,e,h,c){a<e?h<c?(w=a<h?a:h,B=e>c?e:c):(w=a<c?a:c,B=e>h?e:h):h<c?(w=e<h?e:h,B=a>c?a:c):(w=e<c?e:c,B=a>h?a:h)}function n(){this.items=this.qc=null;this.pi=0;Q&&(this.qc=new Set);this.zh=[];this.Te=!0}function m(a){y[X++]=a}function q(){this.Z=this.sh=this.y=this.Wl=0}function f(a){this.sb=[];this.Bj=this.Dj=this.Ej=this.Cj=0;this.aj(a)}function a(a,e){this.$l=
a;this.Zl=e;this.cells={}}function c(a,e){this.$l=a;this.Zl=e;this.cells={}}function u(a,e,h){var c;return G.length?(c=G.pop(),c.Im=a,c.x=e,c.y=h,c):new ca(a,e,h)}function e(a,e,h){this.Im=a;this.x=e;this.y=h;this.zb=new da}function k(a,e,h){var c;return v.length?(c=v.pop(),c.Im=a,c.x=e,c.y=h,c):new ea(a,e,h)}function r(a,e,h){this.Im=a;this.x=e;this.y=h;this.zb=[];this.Og=!0;this.Yd=new da;this.Fh=!1}function p(a,e){return a.Id-e.Id}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};ka=function(a){return"string"===typeof a};la=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,e){return a<e?a:e};qa=Math.PI;ra=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var e=a|0;return e===a?e:e+1};ta=function(a,e,h,c,k,l,b,p){var f,
z,x,t;a<h?(z=a,f=h):(z=h,f=a);k<b?(t=k,x=b):(t=b,x=k);if(f<t||z>x)return!1;e<c?(z=e,f=c):(z=c,f=e);l<p?(t=l,x=p):(t=p,x=l);if(f<t||z>x)return!1;f=k-a+b-h;z=l-e+p-c;a=h-a;e=c-e;k=b-k;l=p-l;p=na(e*k-l*a);return na(k*z-l*f)>p?!1:na(a*z-e*f)<=p};d.prototype.set=function(a,e,h,c){this.left=a;this.top=e;this.right=h;this.bottom=c};d.prototype.Lh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height=
function(){return this.bottom-this.top};d.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};d.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)};d.prototype.Sv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.Tv=function(a,e,h){return!(a.right+e<this.left||a.bottom+
h<this.top||a.left+e>this.right||a.top+h>this.bottom)};d.prototype.Ob=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};d.prototype.Qh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=d;g.prototype.$i=function(a){this.Kb=a.left;this.Lb=a.top;this.uc=a.right;this.vc=a.top;this.gc=a.right;this.hc=a.bottom;this.cc=a.left;this.ec=a.bottom};g.prototype.tr=function(a,e){if(0===e)this.$i(a);else{var h=Math.sin(e),c=Math.cos(e),
k=a.left*h,l=a.top*h,b=a.right*h,h=a.bottom*h,p=a.left*c,f=a.top*c,z=a.right*c,c=a.bottom*c;this.Kb=p-l;this.Lb=f+k;this.uc=z-l;this.vc=f+b;this.gc=z-h;this.hc=c+b;this.cc=p-h;this.ec=c+k}};g.prototype.offset=function(a,e){this.Kb+=a;this.Lb+=e;this.uc+=a;this.vc+=e;this.gc+=a;this.hc+=e;this.cc+=a;this.ec+=e;return this};var w=0,B=0;g.prototype.Qo=function(a){b(this.Kb,this.uc,this.gc,this.cc);a.left=w;a.right=B;b(this.Lb,this.vc,this.hc,this.ec);a.top=w;a.bottom=B};g.prototype.Ob=function(a,e){var h=
this.Kb,c=this.Lb,k=this.uc-h,l=this.vc-c,b=this.gc-h,p=this.hc-c,f=a-h,z=e-c,x=k*k+l*l,t=k*b+l*p,l=k*f+l*z,u=b*b+p*p,d=b*f+p*z,g=1/(x*u-t*t),k=(u*l-t*d)*g,x=(x*d-t*l)*g;if(0<=k&&0<x&&1>k+x)return!0;k=this.cc-h;l=this.ec-c;x=k*k+l*l;t=k*b+l*p;l=k*f+l*z;g=1/(x*u-t*t);k=(u*l-t*d)*g;x=(x*d-t*l)*g;return 0<=k&&0<x&&1>k+x};g.prototype.Nd=function(a,e){if(e)switch(a){case 0:return this.Kb;case 1:return this.uc;case 2:return this.gc;case 3:return this.cc;case 4:return this.Kb;default:return this.Kb}else switch(a){case 0:return this.Lb;
case 1:return this.vc;case 2:return this.hc;case 3:return this.ec;case 4:return this.Lb;default:return this.Lb}};g.prototype.sq=function(){return(this.Kb+this.uc+this.gc+this.cc)/4};g.prototype.tq=function(){return(this.Lb+this.vc+this.hc+this.ec)/4};g.prototype.Gp=function(a){var e=a.sq(),h=a.tq();if(this.Ob(e,h))return!0;e=this.sq();h=this.tq();if(a.Ob(e,h))return!0;var c,k,l,b,p,f,z,x;for(z=0;4>z;z++)for(x=0;4>x;x++)if(e=this.Nd(z,!0),h=this.Nd(z,!1),c=this.Nd(z+1,!0),k=this.Nd(z+1,!1),l=a.Nd(x,
!0),b=a.Nd(x,!1),p=a.Nd(x+1,!0),f=a.Nd(x+1,!1),ta(e,h,c,k,l,b,p,f))return!0;return!1};va=g;wa=function(a,e){for(var h in e)e.hasOwnProperty(h)&&(a[h]=e[h]);return a};ya=function(a,e){var h,c;e=ra(e);if(!(0>e||e>=a.length)){h=e;for(c=a.length-1;h<c;h++)a[h]=a[h+1];za(a,c)}};za=function(a,e){a.length=e};A=function(a){za(a,0)};Aa=function(a,e){A(a);var h,c;h=0;for(c=e.length;h<c;++h)a[h]=e[h]};Ba=function(a,e){a.push.apply(a,e)};Ca=function(a,e){var h,c;h=0;for(c=a.length;h<c;++h)if(a[h]===e)return h;
return-1};Fa=function(a,e){var h=Ca(a,e);-1!==h&&ya(a,h)};Ga=function(a,e,h){return a<e?e:a>h?h:a};E=function(a){return a/(180/qa)};Ha=function(a){return 180/qa*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ka=function(a){return Ia(Ha(a))};La=function(a){return Ja(E(a))};Ma=function(a,e,h,c){return Math.atan2(c-e,h-a)};Na=function(a,e){if(a===e)return 0;var h=Math.sin(a),c=Math.cos(a),k=Math.sin(e),l=Math.cos(e),h=h*k+c*l;return 1<=h?0:-1>=h?qa:Math.acos(h)};
Oa=function(a,e,h){var c=Math.sin(a),k=Math.cos(a),l=Math.sin(e),b=Math.cos(e);return Math.acos(c*l+k*b)>h?0<k*l-c*b?Ja(a+h):Ja(a-h):Ja(e)};Qa=function(a,e){var h=Math.sin(a),c=Math.cos(a),k=Math.sin(e),l=Math.cos(e);return 0>=c*k-h*l};Ra=function(a,e,h,c,k,l){if(0===h)return l?a:e;var b=Math.sin(h);h=Math.cos(h);a-=c;e-=k;var p=a*b;a=a*h-e*b;e=e*h+p;return l?a+c:e+k};Sa=function(a,e,h,c){a=h-a;e=c-e;return Math.sqrt(a*a+e*e)};Ua=function(a,e){return!a!==!e};Va=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;
return!1};Wa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var C=+new Date;Xa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-C};var h=!1,l=h=!1,D=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
h=!h&&/safari/i.test(navigator.userAgent),l=/(iphone|ipod|ipad)/i.test(navigator.userAgent),D=window.c2ejecta);var Q=!h&&!D&&!l&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.te()?!1:Q?this.qc.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(Q)this.qc.has(a)||(this.qc.add(a),this.Te=!1);else{var e=a.toString(),h=this.items;h?h.hasOwnProperty(e)||(h[e]=a,this.pi++,this.Te=!1):(this.items={},this.items[e]=
a,this.pi=1,this.Te=!1)}};n.prototype.remove=function(a){if(!this.te())if(Q)this.qc.has(a)&&(this.qc["delete"](a),this.Te=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.pi--,this.Te=!1)}};n.prototype.clear=function(){this.te()||(Q?this.qc.clear():(this.items=null,this.pi=0),A(this.zh),this.Te=!0)};n.prototype.te=function(){return 0===this.count()};n.prototype.count=function(){return Q?this.qc.size:this.pi};var y=null,X=0;n.prototype.Ax=function(){if(!this.Te){if(Q)A(this.zh),
y=this.zh,X=0,this.qc.forEach(m),y=null,X=0;else{var a=this.zh;A(a);var e,h=0,c=this.items;if(c)for(e in c)c.hasOwnProperty(e)&&(a[h++]=c[e])}this.Te=!0}};n.prototype.yf=function(){this.Ax();return this.zh};da=n;new da;Ya=function(a,e){Q?Za(a,e.qc):bb(a,e.yf())};Za=function(a,e){var h,c,k,l;c=h=0;for(k=a.length;h<k;++h)l=a[h],e.has(l)||(a[c++]=l);za(a,c)};bb=function(a,e){var h,c,k,l;c=h=0;for(k=a.length;h<k;++h)l=a[h],-1===Ca(e,l)&&(a[c++]=l);za(a,c)};q.prototype.add=function(a){this.y=a-this.Wl;
this.sh=this.Z+this.y;this.Wl=this.sh-this.Z-this.y;this.Z=this.sh};q.prototype.reset=function(){this.Z=this.sh=this.y=this.Wl=0};cb=q;db=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.aj=function(a){this.$q=a;this.Cd=a.length/2;this.sb.length=a.length;this.Gj=this.Hj=-1;this.To=0};f.prototype.Lg=function(){return!this.$q.length};f.prototype.xa=function(){for(var a=this.sb,e=a[0],h=e,c=a[1],k=c,l,b,p=1,f=this.Cd;p<f;++p)b=2*p,l=a[b],b=a[b+1],l<e&&(e=l),l>h&&(h=l),b<c&&
(c=b),b>k&&(k=b);this.Cj=e;this.Dj=h;this.Ej=c;this.Bj=k};f.prototype.$i=function(a,e,h){this.sb.length=8;this.Cd=4;var c=this.sb;c[0]=a.left-e;c[1]=a.top-h;c[2]=a.right-e;c[3]=a.top-h;c[4]=a.right-e;c[5]=a.bottom-h;c[6]=a.left-e;c[7]=a.bottom-h;this.Hj=a.right-a.left;this.Gj=a.bottom-a.top;this.xa()};f.prototype.ph=function(a,e,h,c,k){this.sb.length=8;this.Cd=4;var l=this.sb;l[0]=a.Kb-e;l[1]=a.Lb-h;l[2]=a.uc-e;l[3]=a.vc-h;l[4]=a.gc-e;l[5]=a.hc-h;l[6]=a.cc-e;l[7]=a.ec-h;this.Hj=c;this.Gj=k;this.xa()};
f.prototype.sr=function(a){this.Cd=a.Cd;Aa(this.sb,a.sb);this.Cj=a.Cj;this.Ej-a.Ej;this.Dj=a.Dj;this.Bj=a.Bj};f.prototype.vg=function(a,e,h){if(this.Hj!==a||this.Gj!==e||this.To!==h){this.Hj=a;this.Gj=e;this.To=h;var c,k,l,b,p,f=0,z=1,x=this.$q,t=this.sb;0!==h&&(f=Math.sin(h),z=Math.cos(h));h=0;for(l=this.Cd;h<l;h++)c=2*h,k=c+1,b=x[c]*a,p=x[k]*e,t[c]=b*z-p*f,t[k]=p*z+b*f;this.xa()}};f.prototype.Ob=function(a,e){var h=this.sb;if(a===h[0]&&e===h[1])return!0;var c,k,l,b=this.Cd,p=this.Cj-110,f=this.Ej-
101,z=this.Dj+131,x=this.Bj+120,t,u,d=0,g=0;for(c=0;c<b;c++)k=2*c,l=(c+1)%b*2,t=h[k],k=h[k+1],u=h[l],l=h[l+1],ta(p,f,a,e,t,k,u,l)&&d++,ta(z,x,a,e,t,k,u,l)&&g++;return 1===d%2||1===g%2};f.prototype.ei=function(a,e,h){var c=a.sb,k=this.sb;if(this.Ob(c[0]+e,c[1]+h)||a.Ob(k[0]-e,k[1]-h))return!0;var l,b,p,f,z,x,u,d,g,r,D,m;l=0;for(f=this.Cd;l<f;l++)for(b=2*l,p=(l+1)%f*2,d=k[b],b=k[b+1],g=k[p],r=k[p+1],p=0,u=a.Cd;p<u;p++)if(z=2*p,x=(p+1)%u*2,D=c[z]+e,z=c[z+1]+h,m=c[x]+e,x=c[x+1]+h,ta(d,b,g,r,D,z,m,x))return!0;
return!1};eb=f;a.prototype.bf=function(a,e,h){var c;c=this.cells[a];return c?(c=c[e])?c:h?(c=u(this,a,e),this.cells[a][e]=c):null:h?(c=u(this,a,e),this.cells[a]={},this.cells[a][e]=c):null};a.prototype.$b=function(a){return ra(a/this.$l)};a.prototype.ac=function(a){return ra(a/this.Zl)};a.prototype.update=function(a,e,h){var c,k,l,b,p;if(e)for(c=e.left,k=e.right;c<=k;++c)for(l=e.top,b=e.bottom;l<=b;++l)if(!h||!h.Ob(c,l))if(p=this.bf(c,l,!1))p.remove(a),p.te()&&(p.zb.clear(),1E3>G.length&&G.push(p),
this.cells[c][l]=null);if(h)for(c=h.left,k=h.right;c<=k;++c)for(l=h.top,b=h.bottom;l<=b;++l)e&&e.Ob(c,l)||this.bf(c,l,!0).Pm(a)};a.prototype.hl=function(a,e){var h,c,k,l,b,p;h=this.$b(a.left);k=this.ac(a.top);c=this.$b(a.right);for(b=this.ac(a.bottom);h<=c;++h)for(l=k;l<=b;++l)(p=this.bf(h,l,!1))&&p.dump(e)};fb=a;c.prototype.bf=function(a,e,h){var c;c=this.cells[a];return c?(c=c[e])?c:h?(c=k(this,a,e),this.cells[a][e]=c):null:h?(c=k(this,a,e),this.cells[a]={},this.cells[a][e]=c):null};c.prototype.$b=
function(a){return ra(a/this.$l)};c.prototype.ac=function(a){return ra(a/this.Zl)};c.prototype.update=function(a,e,h){var c,k,l,b,p;if(e)for(c=e.left,k=e.right;c<=k;++c)for(l=e.top,b=e.bottom;l<=b;++l)if(!h||!h.Ob(c,l))if(p=this.bf(c,l,!1))p.remove(a),p.te()&&(p.reset(),1E3>v.length&&v.push(p),this.cells[c][l]=null);if(h)for(c=h.left,k=h.right;c<=k;++c)for(l=h.top,b=h.bottom;l<=b;++l)e&&e.Ob(c,l)||this.bf(c,l,!0).Pm(a)};c.prototype.hl=function(a,e,h,c,k){var l,b;a=this.$b(a);e=this.ac(e);h=this.$b(h);
for(l=this.ac(c);a<=h;++a)for(c=e;c<=l;++c)(b=this.bf(a,c,!1))&&b.dump(k)};c.prototype.jw=function(a){var e,h,c,k,l;e=a.left;c=a.top;h=a.right;for(k=a.bottom;e<=h;++e)for(a=c;a<=k;++a)if(l=this.bf(e,a,!1))l.Og=!1};gb=c;var G=[];e.prototype.te=function(){return this.zb.te()};e.prototype.Pm=function(a){this.zb.add(a)};e.prototype.remove=function(a){this.zb.remove(a)};e.prototype.dump=function(a){Ba(a,this.zb.yf())};ca=e;var v=[];r.prototype.te=function(){if(!this.zb.length)return!0;if(this.zb.length>
this.Yd.count())return!1;this.tm();return!0};r.prototype.Pm=function(a){this.Yd.contains(a)?(this.Yd.remove(a),this.Yd.te()&&(this.Fh=!1)):this.zb.length?(this.zb[this.zb.length-1].Rd()>a.Rd()&&(this.Og=!1),this.zb.push(a)):(this.zb.push(a),this.Og=!0)};r.prototype.remove=function(a){this.Yd.add(a);this.Fh=!0;30<=this.Yd.count()&&this.tm()};r.prototype.tm=function(){this.Fh&&(this.Yd.count()===this.zb.length?this.reset():(Ya(this.zb,this.Yd),this.Yd.clear(),this.Fh=!1))};r.prototype.vu=function(){this.Og||
(this.zb.sort(p),this.Og=!0)};r.prototype.reset=function(){A(this.zb);this.Og=!0;this.Yd.clear();this.Fh=!1};r.prototype.dump=function(a){this.tm();this.vu();this.zb.length&&a.push(this.zb)};ea=r;var L="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":L[a-1]};ib=function(a,e,h){if(h)switch(a.Tb=h.ONE,a.Pb=h.ONE_MINUS_SRC_ALPHA,e){case 1:a.Tb=h.ONE;a.Pb=h.ONE;break;case 3:a.Tb=
h.ONE;a.Pb=h.ZERO;break;case 4:a.Tb=h.ONE_MINUS_DST_ALPHA;a.Pb=h.ONE;break;case 5:a.Tb=h.DST_ALPHA;a.Pb=h.ZERO;break;case 6:a.Tb=h.ZERO;a.Pb=h.SRC_ALPHA;break;case 7:a.Tb=h.ONE_MINUS_DST_ALPHA;a.Pb=h.ZERO;break;case 8:a.Tb=h.ZERO;a.Pb=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.Tb=h.DST_ALPHA;a.Pb=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.Tb=h.ONE_MINUS_DST_ALPHA,a.Pb=h.SRC_ALPHA}};jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?
!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};lb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(d){var g=new jc(3);d&&(g[0]=d[0],g[1]=d[1],g[2]=d[2]);return g}
function lc(d){var g=new jc(16);d&&(g[0]=d[0],g[1]=d[1],g[2]=d[2],g[3]=d[3],g[4]=d[4],g[5]=d[5],g[6]=d[6],g[7]=d[7],g[8]=d[8],g[9]=d[9],g[10]=d[10],g[11]=d[11],g[12]=d[12],g[13]=d[13],g[14]=d[14],g[15]=d[15]);return g}function mc(d,g){g[0]=d[0];g[1]=d[1];g[2]=d[2];g[3]=d[3];g[4]=d[4];g[5]=d[5];g[6]=d[6];g[7]=d[7];g[8]=d[8];g[9]=d[9];g[10]=d[10];g[11]=d[11];g[12]=d[12];g[13]=d[13];g[14]=d[14];g[15]=d[15]}
function nc(d,g){var b=g[0],n=g[1];g=g[2];d[0]*=b;d[1]*=b;d[2]*=b;d[3]*=b;d[4]*=n;d[5]*=n;d[6]*=n;d[7]*=n;d[8]*=g;d[9]*=g;d[10]*=g;d[11]*=g}
function oc(d,g,b,n){n||(n=lc());var m,q,f,a,c,u,e,k,r=d[0],p=d[1];d=d[2];q=b[0];f=b[1];m=b[2];b=g[1];u=g[2];r===g[0]&&p===b&&d===u?(d=n,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(b=r-g[0],u=p-g[1],e=d-g[2],k=1/Math.sqrt(b*b+u*u+e*e),b*=k,u*=k,e*=k,g=f*e-m*u,m=m*b-q*e,q=q*u-f*b,(k=Math.sqrt(g*g+m*m+q*q))?(k=1/k,g*=k,m*=k,q*=k):q=m=g=0,f=u*q-e*m,a=e*g-b*q,c=b*m-u*g,(k=Math.sqrt(f*f+a*a+c*c))?(k=1/k,f*=k,a*=k,c*=k):c=a=f=0,
n[0]=g,n[1]=f,n[2]=b,n[3]=0,n[4]=m,n[5]=a,n[6]=u,n[7]=0,n[8]=q,n[9]=c,n[10]=e,n[11]=0,n[12]=-(g*r+m*p+q*d),n[13]=-(f*r+a*p+c*d),n[14]=-(b*r+u*p+e*d),n[15]=1)}
(function(){function d(a,c,b){this.ue=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ga=!!b;this.rk=this.gi=!1;this.hm=0;this.Nl=1;this.to=1E3;this.Ix=(this.to-this.Nl)/32768;this.Xl=kc([0,0,100]);this.$p=kc([0,0,0]);this.Vr=kc([0,1,0]);this.sj=kc([1,1,1]);this.ep=!0;this.Kk=lc();this.Sc=lc();this.cn=lc();this.gm=lc();this.C=a;this.version=0===this.C.getParameter(this.C.VERSION).indexOf("WebGL 2")?2:1;this.Cp()}function g(a,c,b){this.C=a;this.bj=
c;this.name=b;this.dd=a.getAttribLocation(c,"aPos");this.nf=a.getAttribLocation(c,"aTex");this.Yp=a.getUniformLocation(c,"matP");this.Gk=a.getUniformLocation(c,"matMV");this.Xg=a.getUniformLocation(c,"opacity");this.mn=a.getUniformLocation(c,"colorFill");this.Zp=a.getUniformLocation(c,"samplerFront");this.Bi=a.getUniformLocation(c,"samplerBack");this.ag=a.getUniformLocation(c,"destStart");this.$f=a.getUniformLocation(c,"destEnd");this.Di=a.getUniformLocation(c,"seconds");this.pn=a.getUniformLocation(c,
"pixelWidth");this.nn=a.getUniformLocation(c,"pixelHeight");this.Ai=a.getUniformLocation(c,"layerScale");this.yi=a.getUniformLocation(c,"layerAngle");this.Ei=a.getUniformLocation(c,"viewOrigin");this.Ci=a.getUniformLocation(c,"scrollPos");this.Nv=!!(this.pn||this.nn||this.Di||this.Bi||this.ag||this.$f||this.Ai||this.yi||this.Ei||this.Ci);this.iq=this.jq=-999;this.Jk=1;this.dq=this.cq=0;this.gq=this.bq=this.aq=1;this.mq=this.lq=this.kq=this.oq=this.nq=this.fq=0;this.bn=[];this.hq=lc();this.Xg&&a.uniform1f(this.Xg,
1);this.mn&&a.uniform4f(this.mn,1,1,1,1);this.Zp&&a.uniform1i(this.Zp,0);this.Bi&&a.uniform1i(this.Bi,1);this.ag&&a.uniform2f(this.ag,0,0);this.$f&&a.uniform2f(this.$f,1,1);this.Ai&&a.uniform1f(this.Ai,1);this.yi&&a.uniform1f(this.yi,0);this.Ei&&a.uniform2f(this.Ei,0,0);this.Ci&&a.uniform2f(this.Ci,0,0);this.Di&&a.uniform1f(this.Di,0);this.Pf=!1}function b(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function n(a,c){this.type=a;this.D=c;this.C=c.C;this.Sd=this.Zb=this.Lq=0;this.V=this.nd=null;this.ur=[]}var m=lc();d.prototype.Cp=function(){var a=this.C,c;this.Rp=1;this.Xf=this.hf=null;this.Pj=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.Ga?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Sp=a.ONE;this.Qp=a.ONE_MINUS_SRC_ALPHA;this.Ll=new Float32Array(8E3*(this.Ga?3:2));this.Bl=new Float32Array(16E3);this.Vq=new Float32Array(32E3);this.Fn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Fn);a.bufferData(a.ARRAY_BUFFER,this.Vq.byteLength,a.DYNAMIC_DRAW);this.rj=Array(4);this.jj=Array(4);for(c=0;4>c;c++)this.rj[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.rj[c]),a.bufferData(a.ARRAY_BUFFER,this.Ll.byteLength,a.DYNAMIC_DRAW),this.jj[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.jj[c]),a.bufferData(a.ARRAY_BUFFER,this.Bl.byteLength,a.DYNAMIC_DRAW);this.ie=0;this.Qv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Qv);for(var b=new Uint16Array(12E3),e=c=0;12E3>c;)b[c++]=e,b[c++]=e+1,b[c++]=e+2,b[c++]=e,b[c++]=e+2,b[c++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Gn=this.uh=this.Ke=0;this.Ua=[];c=this.Ga?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";b=this.Mh({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}"},c,"<default>");this.Ua.push(b);b=this.Mh({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(b);b=this.Mh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Ua.push(b);b=this.Mh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Ua.push(b);for(var k in pc)pc.hasOwnProperty(k)&&this.Ua.push(this.Mh(pc[k],c,k));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Se=[];this.ge=0;this.Rb=!1;this.Zo=this.si=-1;this.xg=null;this.qm=a.createFramebuffer();this.Tj=this.il=null;this.Oo=!1;this.Ga&&(this.Tj=a.createRenderbuffer());this.xf=kc([0,0,0]);this.pq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.pq&&(this.pq=2048);this.sc(0)};g.prototype.lo=function(a){b(this.hq,a)||(mc(a,this.hq),this.C.uniformMatrix4fv(this.Gk,
!1,a))};d.prototype.Mh=function(a,c,b){var e=this.C,k=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(k,a.src);e.compileShader(k);if(!e.getShaderParameter(k,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(k),e.deleteShader(k),Error("error compiling fragment shader: "+a);var f=e.createShader(e.VERTEX_SHADER);e.shaderSource(f,c);e.compileShader(f);if(!e.getShaderParameter(f,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(f),e.deleteShader(k),e.deleteShader(f),Error("error compiling vertex shader: "+a);c=
e.createProgram();e.attachShader(c,k);e.attachShader(c,f);e.linkProgram(c);if(!e.getProgramParameter(c,e.LINK_STATUS))throw a=e.getProgramInfoLog(c),e.deleteShader(k),e.deleteShader(f),e.deleteProgram(c),Error("error linking shader program: "+a);e.useProgram(c);e.deleteShader(k);e.deleteShader(f);k=new g(e,c,b);k.Xj=a.Xj||0;k.Yj=a.Yj||0;k.fm=!!a.fm;k.jd=!!a.jd;k.Sl=!!a.Sl;k.U=a.U||[];a=0;for(f=k.U.length;a<f;a++)k.U[a][1]=e.getUniformLocation(c,k.U[a][0]),k.bn.push(0),e.uniform1f(k.U[a][1],0);return k};
d.prototype.Gm=function(a){var c,b;c=0;for(b=this.Ua.length;c<b;c++)if(this.Ua[c].name===a)return c;return-1};d.prototype.Zq=function(a,c,b){var e=this.Sc,k=this.Kk,f=[0,0,0,0,0,0,0,0];f[0]=e[0]*a+e[4]*c+e[12];f[1]=e[1]*a+e[5]*c+e[13];f[2]=e[2]*a+e[6]*c+e[14];f[3]=e[3]*a+e[7]*c+e[15];f[4]=k[0]*f[0]+k[4]*f[1]+k[8]*f[2]+k[12]*f[3];f[5]=k[1]*f[0]+k[5]*f[1]+k[9]*f[2]+k[13]*f[3];f[6]=k[2]*f[0]+k[6]*f[1]+k[10]*f[2]+k[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+
.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};d.prototype.Ee=function(a,c,b){if(this.width!==a||this.height!==c||b){this.Ze();b=this.C;this.width=a;this.height=c;b.viewport(0,0,a,c);oc(this.Xl,this.$p,this.Vr,this.Sc);if(this.Ga){var e=-a/2;a=a/2;var k=c/2;c=-c/2;var f=this.Nl,p=this.to,d=this.Kk;d||(d=lc());var g=a-e,m=c-k,h=p-f;d[0]=2/g;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/m;d[6]=0;d[7]=0;d[8]=0;d[9]=0;d[10]=-2/h;d[11]=0;d[12]=-(e+a)/g;d[13]=-(c+k)/m;d[14]=-(p+f)/h;d[15]=1;this.sj[0]=1;this.sj[1]=
1}else c=a/c,e=this.Nl,a=this.to,d=this.Kk,p=e*Math.tan(45*Math.PI/360),c*=p,k=-c,f=-p,d||(d=lc()),g=c-k,m=p-f,h=a-e,d[0]=2*e/g,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=2*e/m,d[6]=0,d[7]=0,d[8]=(c+k)/g,d[9]=(p+f)/m,d[10]=-(a+e)/h,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(a*e*2)/h,d[15]=0,e=[0,0],a=[0,0],this.Zq(0,0,e),this.Zq(1,1,a),this.sj[0]=1/(a[0]-e[0]),this.sj[1]=-1/(a[1]-e[1]);e=0;for(a=this.Ua.length;e<a;e++)k=this.Ua[e],k.Pf=!1,k.Yp&&(b.useProgram(k.bj),b.uniformMatrix4fv(k.Yp,!1,this.Kk));b.useProgram(this.Ua[this.si].bj);
b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Xf=this.hf=null;this.Tj&&(b.bindFramebuffer(b.FRAMEBUFFER,this.qm),b.bindRenderbuffer(b.RENDERBUFFER,this.Tj),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Oo||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Tj),this.Oo=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),
this.il=null)}};d.prototype.kd=function(){oc(this.Xl,this.$p,this.Vr,this.Sc);nc(this.Sc,this.sj)};d.prototype.translate=function(a,c){if(0!==a||0!==c){this.xf[0]=a;this.xf[1]=c;this.xf[2]=0;var b=this.Sc,e=this.xf,k=e[0],f=e[1],e=e[2];b[12]=b[0]*k+b[4]*f+b[8]*e+b[12];b[13]=b[1]*k+b[5]*f+b[9]*e+b[13];b[14]=b[2]*k+b[6]*f+b[10]*e+b[14];b[15]=b[3]*k+b[7]*f+b[11]*e+b[15]}};d.prototype.scale=function(a,c){if(1!==a||1!==c)this.xf[0]=a,this.xf[1]=c,this.xf[2]=1,nc(this.Sc,this.xf)};d.prototype.kl=function(a){if(0!==
a){var c=this.Sc,b,e=Math.sin(a);a=Math.cos(a);var k=c[0],f=c[1],p=c[2],d=c[3],g=c[4],m=c[5],h=c[6],l=c[7];b?c!==b&&(b[8]=c[8],b[9]=c[9],b[10]=c[10],b[11]=c[11],b[12]=c[12],b[13]=c[13],b[14]=c[14],b[15]=c[15]):b=c;b[0]=k*a+g*e;b[1]=f*a+m*e;b[2]=p*a+h*e;b[3]=d*a+l*e;b[4]=k*-e+g*a;b[5]=f*-e+m*a;b[6]=p*-e+h*a;b[7]=d*-e+l*a}};d.prototype.Wc=function(){if(!b(this.cn,this.Sc)){var a=this.Jc();a.type=5;a.V?mc(this.Sc,a.V):a.V=lc(this.Sc);mc(this.Sc,this.cn);this.Rb=!1}};d.prototype.pl=function(a){this.Ga&&
(32760<a&&(a=32760),this.hm=this.Xl[2]-this.Nl-a*this.Ix)};n.prototype.eu=function(){var a=this.C,c=this.D;0!==this.Zb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,c.qm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.rk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.rk=!1)};n.prototype.iu=function(){this.C.bindTexture(this.C.TEXTURE_2D,
this.nd)};n.prototype.ju=function(){var a=this.C;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.nd);a.activeTexture(a.TEXTURE0)};n.prototype.fu=function(){var a=this.Lq,c=this.D;c.Pj=a;c=c.xg;c.Xg&&c.Jk!==a&&(c.Jk=a,this.C.uniform1f(c.Xg,a))};n.prototype.$t=function(){this.C.drawElements(this.C.TRIANGLES,this.Sd,this.C.UNSIGNED_SHORT,this.Zb)};n.prototype.bu=function(){this.C.blendFunc(this.Zb,this.Sd)};n.prototype.ku=function(){var a,c,b,e=this.D.Ua,k=this.D.Zo;a=0;for(c=e.length;a<
c;a++)b=e[a],a===k&&b.Gk?(b.lo(this.V),b.Pf=!0):b.Pf=!1;mc(this.V,this.D.gm)};n.prototype.au=function(){var a=this.C,c=this.D;this.nd?(c.Xf===this.nd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Xf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.qm),c.rk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.nd,0)):(c.Ga||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
n.prototype.Xt=function(){var a=this.C,c=this.Zb;0===c?(a.clearColor(this.V[0],this.V[1],this.V[2],this.V[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.V[0],this.V[1],this.V[2],this.V[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};n.prototype.du=function(){var a=this.C;0!==this.Zb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};n.prototype.Zt=function(){var a=this.C,c=this.D;c.Ga&&a.disable(a.DEPTH_TEST);
var b=c.Ua[1];a.useProgram(b.bj);!b.Pf&&b.Gk&&(b.lo(c.gm),b.Pf=!0);a.enableVertexAttribArray(b.dd);a.bindBuffer(a.ARRAY_BUFFER,c.Fn);a.vertexAttribPointer(b.dd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Zb/4,this.Sd);b=c.xg;a.useProgram(b.bj);0<=b.dd&&(a.enableVertexAttribArray(b.dd),a.bindBuffer(a.ARRAY_BUFFER,c.rj[c.ie]),a.vertexAttribPointer(b.dd,c.Ga?3:2,a.FLOAT,!1,0,0));0<=b.nf&&(a.enableVertexAttribArray(b.nf),a.bindBuffer(a.ARRAY_BUFFER,c.jj[c.ie]),a.vertexAttribPointer(b.nf,2,a.FLOAT,!1,
0,0));c.Ga&&a.enable(a.DEPTH_TEST)};n.prototype.gu=function(){var a=this.C,c=this.D,b=c.Ua[this.Zb];c.Zo=this.Zb;c.xg=b;a.useProgram(b.bj);!b.Pf&&b.Gk&&(b.lo(c.gm),b.Pf=!0);b.Xg&&b.Jk!==c.Pj&&(b.Jk=c.Pj,a.uniform1f(b.Xg,c.Pj));0<=b.dd&&(a.enableVertexAttribArray(b.dd),a.bindBuffer(a.ARRAY_BUFFER,c.rj[c.ie]),a.vertexAttribPointer(b.dd,c.Ga?3:2,a.FLOAT,!1,0,0));0<=b.nf&&(a.enableVertexAttribArray(b.nf),a.bindBuffer(a.ARRAY_BUFFER,c.jj[c.ie]),a.vertexAttribPointer(b.nf,2,a.FLOAT,!1,0,0))};n.prototype.cu=
function(){var a=this.V;this.C.uniform4f(this.D.xg.mn,a[0],a[1],a[2],a[3])};n.prototype.hu=function(){var a,c,b=this.D.xg,e=this.C;a=this.V;b.Bi&&this.D.Xf!==this.nd&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.nd),this.D.Xf=this.nd,e.activeTexture(e.TEXTURE0));var k=a[0];b.pn&&k!==b.jq&&(b.jq=k,e.uniform1f(b.pn,k));k=a[1];b.nn&&k!==b.iq&&(b.iq=k,e.uniform1f(b.nn,k));k=a[2];c=a[3];!b.ag||k===b.cq&&c===b.dq||(b.cq=k,b.dq=c,e.uniform2f(b.ag,k,c));k=a[4];c=a[5];!b.$f||k===b.aq&&c===
b.bq||(b.aq=k,b.bq=c,e.uniform2f(b.$f,k,c));k=a[6];b.Ai&&k!==b.gq&&(b.gq=k,e.uniform1f(b.Ai,k));k=a[7];b.yi&&k!==b.fq&&(b.fq=k,e.uniform1f(b.yi,k));k=a[8];c=a[9];!b.Ei||k===b.nq&&c===b.oq||(b.nq=k,b.oq=c,e.uniform2f(b.Ei,k,c));k=a[10];c=a[11];!b.Ci||k===b.kq&&c===b.lq||(b.kq=k,b.lq=c,e.uniform2f(b.Ci,k,c));k=a[12];b.Di&&k!==b.mq&&(b.mq=k,e.uniform1f(b.Di,k));if(b.U.length)for(a=0,c=b.U.length;a<c;a++)k=this.ur[a],k!==b.bn[a]&&(b.bn[a]=k,e.uniform1f(b.U[a][1],k))};d.prototype.Jc=function(){this.ge===
this.Se.length&&this.Se.push(new n(0,this));return this.Se[this.ge++]};d.prototype.Ze=function(){if(0!==this.ge&&!this.C.isContextLost()){var a=this.C;0<this.Gn&&(a.bindBuffer(a.ARRAY_BUFFER,this.Fn),a.bufferSubData(a.ARRAY_BUFFER,0,this.Vq.subarray(0,this.Gn)),c&&0<=c.dd&&"<point>"===c.name&&a.vertexAttribPointer(c.dd,4,a.FLOAT,!1,0,0));if(0<this.Ke){var c=this.xg;a.bindBuffer(a.ARRAY_BUFFER,this.rj[this.ie]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ll.subarray(0,this.Ke));c&&0<=c.dd&&"<point>"!==c.name&&
a.vertexAttribPointer(c.dd,this.Ga?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.jj[this.ie]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Bl.subarray(0,this.uh));c&&0<=c.nf&&"<point>"!==c.name&&a.vertexAttribPointer(c.nf,2,a.FLOAT,!1,0,0)}for(var b,a=0,c=this.ge;a<c;a++)switch(b=this.Se[a],b.type){case 1:b.$t();break;case 2:b.iu();break;case 3:b.fu();break;case 4:b.bu();break;case 5:b.ku();break;case 6:b.au();break;case 7:b.Xt();break;case 8:b.Zt();break;case 9:b.gu();break;case 10:b.hu();break;
case 11:b.ju();break;case 12:b.cu();break;case 13:b.du();break;case 14:b.eu()}this.Gn=this.uh=this.Ke=this.ge=0;this.rk=this.Rb=!1;this.ie++;4<=this.ie&&(this.ie=0)}};d.prototype.nh=function(a){if(a!==this.Rp&&!this.gi){var c=this.Jc();c.type=3;this.Rp=c.Lq=a;this.Rb=!1}};d.prototype.Uc=function(a){if(a!==this.hf){var c=this.Jc();c.type=2;this.hf=c.nd=a;this.Rb=!1}};d.prototype.uf=function(a,c){if((a!==this.Sp||c!==this.Qp)&&!this.gi){var b=this.Jc();b.type=4;b.Zb=a;b.Sd=c;this.Sp=a;this.Qp=c;this.Rb=
!1}};d.prototype.kr=function(){this.uf(this.C.ONE,this.C.ONE_MINUS_SRC_ALPHA)};d.prototype.Ui=function(a,c,b,e,k,f,p,d){15992<=this.Ke&&this.Ze();var g=this.Ke,m=this.uh,h=this.Ll,l=this.Bl,D=this.hm;if(this.Rb)this.Se[this.ge-1].Sd+=6;else{var n=this.Jc();n.type=1;n.Zb=this.Ga?g:g/2*3;n.Sd=6;this.Rb=!0}this.Ga?(h[g++]=a,h[g++]=c,h[g++]=D,h[g++]=b,h[g++]=e,h[g++]=D,h[g++]=k,h[g++]=f,h[g++]=D,h[g++]=p,h[g++]=d,h[g++]=D):(h[g++]=a,h[g++]=c,h[g++]=b,h[g++]=e,h[g++]=k,h[g++]=f,h[g++]=p,h[g++]=d);l[m++]=
0;l[m++]=0;l[m++]=1;l[m++]=0;l[m++]=1;l[m++]=1;l[m++]=0;l[m++]=1;this.Ke=g;this.uh=m};d.prototype.rf=function(a,c,b,e,k,f,p,d,g){15992<=this.Ke&&this.Ze();var m=this.Ke,h=this.uh,l=this.Ll,D=this.Bl,n=this.hm;if(this.Rb)this.Se[this.ge-1].Sd+=6;else{var y=this.Jc();y.type=1;y.Zb=this.Ga?m:m/2*3;y.Sd=6;this.Rb=!0}var y=g.left,q=g.top,G=g.right;g=g.bottom;this.Ga?(l[m++]=a,l[m++]=c,l[m++]=n,l[m++]=b,l[m++]=e,l[m++]=n,l[m++]=k,l[m++]=f,l[m++]=n,l[m++]=p,l[m++]=d,l[m++]=n):(l[m++]=a,l[m++]=c,l[m++]=b,
l[m++]=e,l[m++]=k,l[m++]=f,l[m++]=p,l[m++]=d);D[h++]=y;D[h++]=q;D[h++]=G;D[h++]=q;D[h++]=G;D[h++]=g;D[h++]=y;D[h++]=g;this.Ke=m;this.uh=h};d.prototype.sc=function(a){if(this.si!==a){if(!this.Ua[a]){if(0===this.si)return;a=0}var c=this.Jc();c.type=9;this.si=c.Zb=a;this.Rb=!1}};d.prototype.Qi=function(a){a=this.Ua[a];return!(!a.ag&&!a.$f)};d.prototype.Jn=function(a){a=this.Ua[a];return!!(a.ag||a.$f||a.fm)};d.prototype.In=function(a){return this.Ua[a].jd};d.prototype.Jw=function(a){a=this.Ua[a];return 0!==
a.Xj||0!==a.Yj};d.prototype.uv=function(a){return this.Ua[a].Xj};d.prototype.vv=function(a){return this.Ua[a].Yj};d.prototype.wv=function(a,c){return this.Ua[a].U[c][2]};d.prototype.el=function(a){return this.Ua[a].Sl};d.prototype.oh=function(a,c,b,e,k,f,p,d,g,m,h,l,D,n,y){var q=this.Ua[this.si],G,v;if(q.Nv||y.length){G=this.Jc();G.type=10;G.V?mc(this.Sc,G.V):G.V=lc();v=G.V;v[0]=c;v[1]=b;v[2]=e;v[3]=k;v[4]=f;v[5]=p;v[6]=d;v[7]=g;v[8]=m;v[9]=h;v[10]=l;v[11]=D;v[12]=n;q.Bi?G.nd=a:G.nd=null;if(y.length)for(b=
G.ur,b.length=y.length,a=0,c=y.length;a<c;a++)b[a]=y[a];this.Rb=!1}};d.prototype.clear=function(a,c,b,e){var k=this.Jc();k.type=7;k.Zb=0;k.V||(k.V=lc());k.V[0]=a;k.V[1]=c;k.V[2]=b;k.V[3]=e;this.Rb=!1};d.prototype.clearRect=function(a,c,b,e){if(!(0>b||0>e)){var k=this.Jc();k.type=7;k.Zb=1;k.V||(k.V=lc());k.V[0]=a;k.V[1]=c;k.V[2]=b;k.V[3]=e;this.Rb=!1}};d.prototype.nr=function(a){if(this.Ga&&(a=!!a,this.gi!==a)){var c=this.Jc();c.type=14;c.Zb=a?1:0;this.Rb=!1;this.gi=a;this.il=null;this.gi?this.sc(2):
this.sc(0)}};d.prototype.mr=function(a){if(this.Ga){var c=this.Jc();c.type=13;c.Zb=a?1:0;this.Rb=!1}};d.prototype.pp=function(){mc(this.cn,m);this.kd();this.Wc();var a=this.width/2,c=this.height/2;this.Ui(-a,c,a,c,a,-c,-a,-c);mc(m,this.Sc);this.Wc()};d.prototype.lr=function(a,c,b){this.sc(3);var e=this.Jc();e.type=12;e.V||(e.V=lc());e.V[0]=a;e.V[1]=c;e.V[2]=b;e.V[3]=1;this.Rb=!1};d.prototype.jx=function(){this.sc(0)};d.prototype.Rw=function(){this.sc(2)};d.prototype.Iw=function(){this.Ze();this.C.flush()};
var q=[],f={};d.prototype.Ot=function(){A(q);f={}};d.prototype.Xp=function(a,c,b){var e;e=!1;c=!!c;var k=a.src+","+e+","+c+(e?",undefined":""),d=null;if("undefined"!==typeof a.src&&f.hasOwnProperty(k))return d=f[k],d.Fj++,d;this.Ze();var p=this.C,g=la(a.width)&&la(a.height),d=p.createTexture();p.bindTexture(p.TEXTURE_2D,d);p.pixelStorei(p.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=p.RGBA,n=p.RGBA,h=p.UNSIGNED_BYTE;if(b&&!this.ue)switch(b){case 1:n=m=p.RGB;break;case 2:h=p.UNSIGNED_SHORT_4_4_4_4;break;
case 3:h=p.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=m=p.RGB,h=p.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!g&&e){b=document.createElement("canvas");b.width=ma(a.width);b.height=ma(a.height);var l=b.getContext("2d");"undefined"!==typeof l.imageSmoothingEnabled?l.imageSmoothingEnabled=c:(l.webkitImageSmoothingEnabled=c,l.mozImageSmoothingEnabled=c,l.msImageSmoothingEnabled=c);l.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);p.texImage2D(p.TEXTURE_2D,0,m,n,h,b)}else p.texImage2D(p.TEXTURE_2D,0,
m,n,h,a);e?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.REPEAT),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.REPEAT)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.CLAMP_TO_EDGE),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.CLAMP_TO_EDGE));c?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.LINEAR),(g||2<=this.version)&&this.ep?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.LINEAR_MIPMAP_LINEAR),p.generateMipmap(p.TEXTURE_2D)):p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,
p.LINEAR)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.NEAREST),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.NEAREST));p.bindTexture(p.TEXTURE_2D,null);this.hf=null;d.Ef=a.width;d.Df=a.height;d.Fj=1;d.So=k;q.push(d);return f[k]=d};d.prototype.Lc=function(a,b,f,e){this.Ze();var k=this.C;this.ue&&(e=!1);var d=k.createTexture();k.bindTexture(k.TEXTURE_2D,d);k.texImage2D(k.TEXTURE_2D,0,k.RGBA,a,b,0,k.RGBA,e?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,null);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,
k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,f?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,f?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,null);this.hf=null;d.Ef=a;d.Df=b;q.push(d);return d};d.prototype.Fx=function(a,b,f){this.Ze();var e=this.C;this.ue&&(f=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,
f?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(k){console&&console.error&&console.error("Error updating WebGL texture: ",k)}e.bindTexture(e.TEXTURE_2D,null);this.hf=null};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Fj&&1<a.Fj?a.Fj--:(this.Ze(),a===this.hf&&(this.C.bindTexture(this.C.TEXTURE_2D,null),this.hf=null),a===this.Xf&&(this.C.activeTexture(this.C.TEXTURE1),this.C.bindTexture(this.C.TEXTURE_2D,null),this.C.activeTexture(this.C.TEXTURE0),this.Xf=null),Fa(q,a),"undefined"!==
typeof a.So&&delete f[a.So],this.C.deleteTexture(a)))};d.prototype.ld=function(a){if(a!==this.il){var b=this.Jc();b.type=6;this.il=b.nd=a;this.Rb=!1}};mb=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.Rc=(this.sk=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Ub=!!a.dc;this.Ip="undefined"!==typeof window.AppMobi||
this.Ub;this.cd=!!window.c2cocoonjs;this.yd=!!window.c2ejecta;this.cd&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.yd&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.cb=this.Ub||this.cd||this.yd;this.ji=
/edge\//i.test(navigator.userAgent);this.ue=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.ji;this.Lp=/tizen/i.test(navigator.userAgent);this.fi=/android/i.test(navigator.userAgent)&&!this.Lp&&!this.ue&&!this.ji;this.Op=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ue&&!this.ji;this.dw=/ipad/i.test(navigator.userAgent);this.Qg=this.Op||this.dw||this.yd;this.Sm=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.ue&&!this.ji;this.Hp=/amazonwebappplatform/i.test(navigator.userAgent);this.Wv=/firefox/i.test(navigator.userAgent);this.Zv=/safari/i.test(navigator.userAgent)&&!this.Sm&&!this.ue&&!this.ji;this.aw=/windows/i.test(navigator.userAgent);this.Vm="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Mp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.cw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.mi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Zm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Ym=!!window.cr_windows10;this.$v=this.Mp||this.cw||this.Zm||this.Ym;this.Vv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.qk=this.fi&&!this.Sm&&!this.sk&&!this.Wv&&!this.Hp&&!this.cb;this.devicePixelRatio=
1;this.ff=this.Rc||this.sk||this.Ip||this.cd||this.fi||this.Qg||this.mi||this.Zm||this.Vv||this.Lp||this.yd;this.ff||(this.ff=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.uk=!!(this.Qg&&this.Rc&&window.webkit);"undefined"===typeof cr_is_preview||this.Vm||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Vm=!0);this.canvas=a;this.Uo=document.getElementById("c2canvasdiv");
this.D=this.C=null;this.Hm="(unavailable)";this.Ga=!1;this.Jf=0;this.Qa=null;this.ck=!1;this.Dq=this.Eq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ub&&(window.c2runtime=this);this.Vm&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.qk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.K=this.width;this.J=this.height;this.Nj=this.width;this.Oh=this.height;this.Vg=window.innerWidth;this.Ug=window.innerHeight;this.ya=!0;this.ki=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.A=[];this.Pa=[];this.hn={};this.Ad=[];this.pm={};
this.ne=[];this.Bh=[];this.Fl=[];this.Et=[];this.Ft=[];this.Pp=this.Er=null;this.Hf={};this.Um=this.df=!1;this.zd=0;this.Tm=this.Xm=!1;this.vd=[];this.hi=!1;this.Ck=this.Tn="";this.pb=null;this.we="";this.hj=this.Ar=!1;this.bk=[];this.If=this.Ye=0;this.uq=30;this.em=this.Fi=0;this.wh=1;this.yb=new cb;this.Le=new cb;this.Ok=this.hk=this.Sh=this.ae=this.Zf=this.um=this.xk=0;this.Ff=null;this.Uj=[];this.om=[];this.Wj=-1;this.qn=[[]];this.fo=this.Hk=0;this.fl(null);this.Th=this.yq=this.Ki=0;this.ij=[];
this.bo=this.Ln=-1;this.Rg=!0;this.Fk=0;this.tk=!1;this.mx=0;this.ug=null;this.ve=this.yp=!1;this.Cq=new da;this.wn=new da;this.xn=new da;this.jg=[];this.Fd=new eb([]);this.$n=new eb([]);this.Re=[];this.ai={};this.Ue={};this.Qe={};this.Ah={};this.Po={};this.Wp=this.Bk=this.eb=this.nb=this.Vp=this.Ak=this.wa=null;this.yh=this.$m=!1;this.vm=[null,null];this.Fg=0;this.rm="";this.ze={};this.ej=this.kf=null;this.Cr="";this.Nk=[];this.Qw()}}function g(a,e){return 128>=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}
function b(){try{return!!window.indexedDB}catch(a){return!1}}function n(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,e,h,b){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=n;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=h}}catch(k){b(k)}}function q(a,e,h){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=n;b.onerror=h;b.onsuccess=function(b){b=
b.target.result;b.onerror=h;var c=b.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?e(c.result.data):e(null)}}}catch(c){h(c)}}function f(){fa("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 e,h={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof da||a[e]&&"undefined"!==typeof a[e].dz||"spriteCreatedDestroyCallback"!==
e&&(h[e]=a[e]);return h}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Qw=function(){var a=this;if(this.uk)this.$u(function(e){a.xi(JSON.parse(e))},function(){alert("Error fetching data.js")});else{var e;this.mi?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var h="data.js";if(this.Mp||this.mi||this.Zm||this.Ym)h="data.json";e.open("GET",h,!0);var b=!1;
if(!this.cb&&"response"in e&&"responseType"in e)try{e.responseType="json",b="json"===e.responseType}catch(c){b=!1}if(!b&&"responseType"in e)try{e.responseType="text"}catch(k){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(l){}this.mi?e.onreadystatechange=function(){4===e.readyState&&a.xi(JSON.parse(e.responseText))}:(e.onload=function(){if(b)a.xi(e.response);else if(a.yd){var h=e.responseText,h=h.substr(h.indexOf("{"));a.xi(JSON.parse(h))}else a.xi(JSON.parse(e.responseText))},
e.onerror=function(a){ga("Error requesting "+h+":");ga(a)});e.send()}};d.prototype.Rv=function(){var a=this,e,h,b,c,k,l,f,p,d;this.Uf=(!this.cb||this.yd||this.Rc)&&this.Cx&&!this.qk;0===this.kc&&this.Qg&&(this.Uf=!1);this.devicePixelRatio=this.Uf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Mb();0<this.kc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();
a.pw();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.D.Cp();a.D.Ee(a.D.width,a.D.height,!0);a.nb=null;a.eb=null;a.vm[0]=null;a.vm[1]=null;a.qw();a.ya=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.tu&&(this.cd||this.yd||!this.cb)&&(e={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.fi||(this.C=this.canvas.getContext("webgl2",
e)),this.C||(this.C=this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",e)))}catch(g){}if(this.C){if(e=this.C.getExtension("WEBGL_debug_renderer_info"))this.Hm=this.C.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.C.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.Ga&&(this.Hm+=" [front-to-back enabled]");this.cb||(this.Ib=document.createElement("canvas"),jQuery(this.Ib).appendTo(this.canvas.parentNode),this.Ib.oncontextmenu=function(){return!1},this.Ib.onselectstart=function(){return!1},
this.Ib.width=Math.round(this.Nj*this.devicePixelRatio),this.Ib.height=Math.round(this.Oh*this.devicePixelRatio),jQuery(this.Ib).css({width:this.Nj+"px",height:this.Oh+"px"}),this.Wq(),this.En=this.Ib.getContext("2d"));this.D=new mb(this.C,this.ff,this.Ga);this.D.Ee(this.canvas.width,this.canvas.height);this.D.ep=0!==this.lu;this.Qa=null;e=0;for(h=this.A.length;e<h;e++)for(k=this.A[e],b=0,c=k.O.length;b<c;b++)f=k.O[b],f.hb=this.D.Gm(f.id),f.jd=this.D.In(f.hb),this.yh=this.yh||this.D.Qi(f.hb);e=0;
for(h=this.Ad.length;e<h;e++){p=this.Ad[e];b=0;for(c=p.O.length;b<c;b++)f=p.O[b],f.hb=this.D.Gm(f.id),f.jd=this.D.In(f.hb);p.Hd();b=0;for(c=p.R.length;b<c;b++){d=p.R[b];k=0;for(l=d.O.length;k<l;k++)f=d.O[k],f.hb=this.D.Gm(f.id),f.jd=this.D.In(f.hb),this.yh=this.yh||this.D.Qi(f.hb);d.Hd()}}}else{if(0<this.kc&&this.Ub){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(D){}0!==this.width&&0!==this.height&&(this.Qa.width=this.width,this.Qa.height=this.height)}this.Qa||(this.cd?(e={antialias:!!this.Ya,alpha:!0},this.Qa=this.canvas.getContext("2d",e)):(e={alpha:!0},this.Qa=this.canvas.getContext("2d",e)),this.ol(this.Qa,this.Ya));this.En=this.Ib=null}this.Or=function(e){a.$a(!1,e)};window==window.top||this.cb||this.$v||this.mi||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.cd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.Ck="__c2_continuouspreview",this.hj=!0),this.Bw&&!this.ff&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));
window.addEventListener("blur",function(){a.fh()});this.cb||(e=function(a){if(lb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.kc&&
this.Uf&&1<this.devicePixelRatio&&this.setSize(this.rb,this.qb,!0);this.Sr();this.Kv();this.go();this.I={}};d.prototype.setSize=function(a,e,h){var b=0,c=0,k=0,l=0,l=0;if(this.Vg!==a||this.Ug!==e||h){this.Vg=a;this.Ug=e;var f=this.kc;if((k=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.tk)&&!this.Rc)||0!==this.kc||h)k&&(f=this.Fg),h=this.devicePixelRatio,4<=f?(k=this.rb/this.qb,a/e>k?(k*=e,5===f?(l=k*h/this.rb,1<l?l=Math.floor(l):1>
l&&(l=1/Math.ceil(1/l)),k=this.rb*l/h,l=this.qb*l/h,b=(a-k)/2,c=(e-l)/2,a=k,e=l):(b=(a-k)/2,a=k)):(l=a/k,5===f?(l=l*h/this.qb,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),k=this.rb*l/h,l=this.qb*l/h,b=(a-k)/2,c=(e-l)/2,a=k):c=(e-l)/2,e=l)):k&&0===f&&(b=Math.floor((a-this.rb)/2),c=Math.floor((e-this.qb)/2),a=this.rb,e=this.qb),2>f&&(this.Hh=h),this.Nj=Math.round(a),this.Oh=Math.round(e),this.width=Math.round(a*h),this.height=Math.round(e*h),this.ya=!0,this.cs?(this.K=this.width,this.J=this.height,
this.Oc=!0):this.width<this.rb&&this.height<this.qb||1===f?(this.K=this.width,this.J=this.height,this.Oc=!0):(this.K=this.rb,this.J=this.qb,this.Oc=!1,2===f?(k=this.rb/this.qb,f=this.Vg/this.Ug,f<k?this.K=this.J*f:f>k&&(this.J=this.K/f)):3===f&&(k=this.rb/this.qb,f=this.Vg/this.Ug,f>k?this.K=this.J*f:f<k&&(this.J=this.K/f))),this.Uo&&!this.cb&&(jQuery(this.Uo).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*h),this.canvas.height=Math.round(e*h),this.yd?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.Uf&&!this.cb&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.Ib&&(this.Ib.width=Math.round(a*h),this.Ib.height=
Math.round(e*h),this.Ib.style.width=this.Nj+"px",this.Ib.style.height=this.Oh+"px"),this.D&&this.D.Ee(Math.round(a*h),Math.round(e*h)),this.Ub&&this.Qa&&(this.Qa.width=Math.round(a),this.Qa.height=Math.round(e)),this.Qa&&this.ol(this.Qa,this.Ya),this.Sr(),this.Op&&!this.Rc&&window.scrollTo(0,0)}};d.prototype.Sr=function(){if(this.Ht&&0!==this.Dn){var a="portrait";2===this.Dn&&(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(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};d.prototype.pw=function(){this.D.Ot();this.$m=!0;var a,e,h;a=0;for(e=this.A.length;a<e;a++)h=this.A[a],h.An&&h.An()};d.prototype.qw=function(){this.$m=!1;var a,e,h;a=0;for(e=this.A.length;a<e;a++)h=this.A[a],h.Hq&&h.Hq()};d.prototype.Wq=
function(){if(!this.cb){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.tk)&&!this.Rc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Ib).css(a)}};var u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var e;if(a&&!this.ki)for(fa("[Construct 2] Suspending"),
this.ki=!0,-1!==this.Ln&&u&&u(this.Ln),-1!==this.bo&&clearTimeout(this.bo),a=0,e=this.ij.length;a<e;a++)this.ij[a](!0);else if(!a&&this.ki){fa("[Construct 2] Resuming");this.ki=!1;this.xk=Xa();this.Zf=Xa();a=this.Fi=this.hk=0;for(e=this.ij.length;a<e;a++)this.ij[a](!1);this.$a(!1)}};d.prototype.Dt=function(a){this.ij.push(a)};d.prototype.Oe=function(a){return this.Nk[a]};d.prototype.xi=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.lp=a[1];this.kc=a[12];
this.rb=a[10];this.qb=a[11];this.Sq=this.rb/2;this.Tq=this.qb/2;this.cb&&!this.yd&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.kc=3);this.oo=a[18];this.lf=a[19];if(0===this.lf){var e=new Image;e.crossOrigin="anonymous";this.pr(e,"loading-logo.png");this.kf={Ik:e}}else if(4===this.lf){e=new Image;e.src="";var h=new Image;h.src="";var b=new Image;b.src="";var c=new Image;c.src="";var k=new Image;
k.src="";var l=new Image;l.src="";var f=new Image;f.src="";var p=new Image;p.src="";var d=new Image;d.src="";var g=new Image;g.src="";var D=new Image;D.src="";var m=new Image;m.src="";this.kf={Ik:[e,h,b,c],Fw:[k,l,f,p],Hx:[d,g,D,m]}}this.Ki=a[21];this.Nk=qc();this.$d=new N(this);e=0;for(h=a[2].length;e<h;e++)f=a[2][e],b=this.Oe(f[0]),nb(f,b.prototype),p=new b(this),p.ul=f[1],p.gf=f[2],p.iz=f[5],p.vq=f[9],p.la&&p.la(),this.plugins.push(p);this.Nk=qc();e=0;for(h=a[3].length;e<h;e++){f=a[3][e];k=this.Oe(f[1]);
p=null;b=0;for(c=this.plugins.length;b<c;b++)if(this.plugins[b]instanceof k){p=this.plugins[b];break}d=new p.Oa(p);d.name=f[0];d.T=f[2];d.Qm=f[3].slice(0);d.Ex=f[3].length;d.It=f[4];d.dv=f[5];d.Y=f[11];d.T?(d.dg=[],d.oe=this.Th++,d.Ja=null):(d.dg=null,d.oe=-1,d.Ja=[]);d.$j=null;d.Dg=null;d.fp=null;d.lc=!1;d.zc=null;f[6]?(d.Lr=f[6][0],d.Mr=f[6][1],d.tx=f[6][2]):(d.Lr=null,d.Mr=0,d.tx=0);f[7]?d.yc=f[7]:d.yc=null;d.index=e;d.e=[];d.Rj=[];d.Ie=[new ob(d)];d.Od=0;d.$c=null;d.Vt=0;d.rh=!0;d.Gl=pb;d.lv=
sb;d.sv=tb;d.ba=ub;d.Si=vb;d.Ti=wb;d.qf=xb;d.jk=yb;d.xm=zb;d.Am=Ab;d.Yc=Bb;d.Cm=Cb;d.Kj=new fb(this.rb,this.qb);d.zj=!0;d.Aj=!1;d.I={};d.toString=Db;d.Pa=[];b=0;for(c=f[8].length;b<c;b++){g=f[8][b];D=this.Oe(g[1]);m=null;k=0;for(l=this.Pa.length;k<l;k++)if(this.Pa[k]instanceof D){m=this.Pa[k];break}m||(m=new D(this),m.Mk=[],m.un=new da,m.la&&m.la(),this.Pa.push(m),rc&&m instanceof rc&&(this.Er=m),ic.fw&&m instanceof ic.fw&&(this.Pp=m));-1===m.Mk.indexOf(d)&&m.Mk.push(d);k=new m.Oa(m,d);k.name=g[0];
k.Y=g[2];k.la();d.Pa.push(k)}d.global=f[9];d.Wm=f[10];d.O=[];b=0;for(c=f[12].length;b<c;b++)d.O.push({id:f[12][b][0],name:f[12][b][1],hb:-1,jd:!1,Wa:!0,index:b});d.zz=f[13];this.oo&&!d.T&&!d.Wm&&p.gf||d.la();d.name&&(this.types[d.name]=d);this.A.push(d);p.ul&&(b=new p.Fa(d),b.uid=this.Ki++,b.br=this.yq++,b.Rf=0,b.Zh=Eb,b.toString=Fb,b.u=f[14],b.la(),d.e.push(b),this.ze[b.uid.toString()]=b)}e=0;for(h=a[4].length;e<h;e++)for(k=a[4][e],l=this.A[k[0]],b=1,c=k.length;b<c;b++)f=this.A[k[b]],f.Ja.push(l),
l.dg.push(f);e=0;for(h=a[28].length;e<h;e++){k=a[28][e];l=[];b=0;for(c=k.length;b<c;b++)l.push(this.A[k[b]]);b=0;for(c=l.length;b<c;b++)l[b].lc=!0,l[b].zc=l}if(0<this.Th)for(e=0,h=this.A.length;e<h;e++)if(f=this.A[e],!f.T&&f.Ja.length){f.$j=Array(this.Th);f.Dg=Array(this.Th);f.fp=Array(this.Th);d=[];b=m=D=g=0;for(c=f.Ja.length;b<c;b++)for(p=f.Ja[b],f.$j[p.oe]=g,g+=p.Ex,f.Dg[p.oe]=D,D+=p.It,f.fp[p.oe]=m,m+=p.dv,k=0,l=p.O.length;k<l;k++)d.push(wa({},p.O[k]));f.O=d.concat(f.O);b=0;for(c=f.O.length;b<
c;b++)f.O[b].index=b}e=0;for(h=a[5].length;e<h;e++)f=a[5][e],b=new Kb(this,f),this.hn[b.name]=b,this.Ad.push(b);e=0;for(h=a[6].length;e<h;e++)f=a[6][e],b=new Lb(this,f),this.pm[b.name]=b,this.ne.push(b);e=0;for(h=this.ne.length;e<h;e++)this.ne[e].Za();e=0;for(h=this.ne.length;e<h;e++)this.ne[e].ko();e=0;for(h=this.Fl.length;e<h;e++)this.Fl[e].Za();A(this.Fl);this.Gt=a[7];this.rm=a[8];this.Ce=a[9];this.Hh=1;this.tu=a[13];this.Ya=a[14];this.Wo=a[15];this.Cx=a[17];this.Dn=a[20];this.Ht=0<this.Dn;this.Bw=
a[22];this.Oc=this.cs=a[23];this.lu=a[24];this.Gw=a[25];this.Ga=a[27]&&!this.ue;this.wl=Date.now();A(this.Nk);this.Rv()};var e=!1,k=0,r=[];d.prototype.Mw=function(a,e){function h(){k--;b.qq()}var b=this;a.addEventListener("load",h);a.addEventListener("error",h);r.push([a,e]);this.qq()};d.prototype.qq=function(){for(var a;r.length&&100>k;)k++,a=r.shift(),this.pr(a[0],a[1])};d.prototype.Gx=function(a,h){a.cocoonLazyLoad=!0;a.onerror=function(h){e=a.Ro=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",h)};this.yd?a.src=h:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(e){a.src=e},function(b){e=a.Ro=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.Mw(a,h)));this.Bh.push(a)};d.prototype.bv=function(a){var e,h;e=0;for(h=this.Bh.length;e<h;e++)if(this.Bh[e].Qt===a)return this.Bh[e];return null};var p=0,w=!1;d.prototype.Kv=function(){this.ug&&(p=this.ug.gx(this.Gt))};d.prototype.No=function(){var a=
p,e=0,h=0,b=!0,c,k,h=0;for(c=this.Bh.length;h<c;h++){k=this.Bh[h];var l=k.Pt;if(!l||0>=l)l=5E4;a+=l;k.src&&(k.complete||k.loaded)&&!k.Ro?e+=l:b=!1}b&&this.Gw&&this.ug&&(w||(this.ug.nx(),w=!0),h=this.ug.tv(),e+=h,h<p&&(b=!1));this.W=0==a?1:e/a;return b};var B=!1;d.prototype.go=function(){if(this.Qa||this.D){var a=this.Qa||this.En;this.Ib&&this.Wq();var h=window.innerWidth,b=window.innerHeight;this.Vg===h&&this.Ug===b||this.setSize(h,b);this.W=0;this.Up=-1;var k=this;if(this.No()&&(4!==this.lf||B))this.Lv();
else{b=Date.now()-this.wl;if(a){var l=this.width,f=this.height,h=this.devicePixelRatio;if(3>this.lf&&(this.cd||500<=b&&this.Up!=this.W)){a.clearRect(0,0,l,f);var b=l/2,f=f/2,l=0===this.lf&&this.kf.Ik.complete,d=40*h,p=0,g=80*h,m;if(l){var D=this.kf.Ik,g=D.width*h;m=D.height*h;d=g/2;p=m/2;a.drawImage(D,ra(b-d),ra(f-p),g,m)}1>=this.lf?(b=ra(b-d)+.5,f=ra(f+(p+(l?12*h:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(b,f,Math.floor(g*this.W),6*h),a.strokeStyle="black",a.strokeRect(b,f,g,6*h),a.strokeStyle=
"white",a.strokeRect(b-1*h,f-1*h,g+2*h,8*h)):2===this.lf&&(a.font=this.yd?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.yz="middle",h=Math.round(100*this.W)+"%",l=a.measureText?a.measureText(h):null,a.fillText(h,b-(l?l.width:0)/2,f));this.Up=this.W}else if(4===this.lf){this.qu(a);c?c(function(){k.go()}):setTimeout(function(){k.go()},16);return}}setTimeout(function(){k.go()},this.cd?10:100)}}};var C=-1,h="undefined"===typeof cr_is_preview?200:0,l=!0,D=!1,Q=0,y=0,X="undefined"===typeof cr_is_preview?
3E3:0,G=null,v=null,L=0;d.prototype.qu=function(a){if(!B){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),k=this.kf.Ik,f=this.kf.Fw,d=this.kf.Hx,p=0;4>p;++p)if(!k[p].complete||!f[p].complete||!d[p].complete)return;0===L&&(C=Date.now());var p=Date.now(),m=!1,r=a,n,w;l||D?(a.clearRect(0,0,b,c),G&&G.width===b&&G.height===c||(G=document.createElement("canvas"),G.width=b,G.height=c,v=G.getContext("2d")),r=v,m=!0,l&&1===L&&(C=Date.now())):a.globalAlpha=1;r.fillStyle="#333333";r.fillRect(0,0,b,
c);256<this.Oh?(n=Ga(.22*c,105,.6*b),w=.25*n,r.drawImage(g(f,n),.5*b-n/2,.2*c-w/2,n,w),w=n=Math.min(.395*c,.95*b),r.drawImage(g(k,n),.5*b-n/2,.485*c-w/2,n,w),n=Ga(.22*c,105,.6*b),w=.25*n,r.drawImage(g(d,n),.5*b-n/2,.868*c-w/2,n,w),r.fillStyle="#3C3C3C",n=b,w=Math.max(.005*c,2),r.fillRect(0,.8*c-w/2,n,w),r.fillStyle=e?"red":"#E0FF65",n=b*this.W,r.fillRect(.5*b-n/2,.8*c-w/2,n,w)):(w=n=.55*c,r.drawImage(g(k,n),.5*b-n/2,.45*c-w/2,n,w),r.fillStyle="#3C3C3C",n=b,w=Math.max(.005*c,2),r.fillRect(0,.85*c-
w/2,n,w),r.fillStyle=e?"red":"#E0FF65",n=b*this.W,r.fillRect(.5*b-n/2,.85*c-w/2,n,w));m&&(l?a.globalAlpha=0===L?0:Math.min((p-C)/300,1):D&&(a.globalAlpha=Math.max(1-(p-y)/300,0)),a.drawImage(G,0,0,b,c));l&&300<=p-C&&2<=L&&(l=!1,Q=p);!l&&p-Q>=X&&!D&&1<=this.W&&(D=!0,y=p);if(D&&p-y>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.W&&500>Date.now()-C)B=!0,D=l=!1,this.kf=v=G=null;++L}};d.prototype.Lv=function(){this.Ib&&(this.canvas.parentNode.removeChild(this.Ib),this.Ib=this.En=null);this.wl=Date.now();
this.Zf=Xa();var a,e,h;if(this.oo)for(a=0,e=this.A.length;a<e;a++)h=this.A[a],h.T||h.Wm||!h.Ma.gf||h.la();else this.Rg=!1;a=0;for(e=this.Ad.length;a<e;a++)this.Ad[a].Rt();2<=this.kc&&(a=this.rb/this.qb,e=this.width/this.height,this.Hh=2!==this.kc&&e>a||2===this.kc&&e<a?this.height/this.qb:this.width/this.rb);this.lp?this.hn[this.lp].Yn():this.Ad[0].Yn();this.oo||(this.Fk=1,this.trigger(N.prototype.q.wo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(e=this.A.length;a<e;a++)h=this.A[a],h.ow&&h.ow();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.$a(!1);this.Ub&&AppMobi.webview.execute("onGameReady();")};d.prototype.$a=function(a,e,h){if(this.wa){var b=Xa();if(h||!this.ki||a){a||(c?this.Ln=c(this.Or):this.bo=setTimeout(this.Or,this.ff?1:16));e=e||b;var k=this.kc;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Rc)||this.tk)&&0<this.Fg&&(k=this.Fg);if(0<k){var k=window.innerWidth,l=window.innerHeight;this.Vg===k&&this.Ug===l||this.setSize(k,l)}this.cb||(h?this.ck||(this.ck=!0):this.ck?(this.ck=!1,0===this.kc&&this.setSize(Math.round(this.Eq/this.devicePixelRatio),Math.round(this.Dq/this.devicePixelRatio),!0)):(this.Eq=this.width,this.Dq=this.height));this.Rg&&(h=this.No(),this.Fk=this.W,h&&(this.Rg=!1,this.W=1,this.trigger(N.prototype.q.wo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.iw(e);
!this.ya&&!this.cd||this.$m||this.hj||a||(this.ya=!1,this.D?this.bd():this.me(),this.ej&&(this.canvas&&this.canvas.toDataURL&&(this.Cr=this.canvas.toDataURL(this.ej[0],this.ej[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Cr),this.trigger(N.prototype.q.Hs,null)),this.ej=null));this.hz||(this.ae++,this.Sh++,this.hk++);this.Fi+=Xa()-b}}};d.prototype.iw=function(a){var e,h,b,c,k,l,f,d;1E3<=a-this.Zf&&(this.Zf+=1E3,1E3<=a-this.Zf&&(this.Zf=a),this.um=this.hk,this.hk=0,this.em=this.Fi,this.Fi=0);
e=0;0!==this.xk&&(e=a-this.xk,0>e&&(e=0),this.If=e/=1E3,.5<this.If?this.If=0:this.If>1/this.uq&&(this.If=1/this.uq));this.xk=a;this.Ye=this.If*this.wh;this.yb.add(this.Ye);this.Le.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.tk)&&!this.Rc;2<=this.kc||a&&0<this.Fg?(e=this.rb/this.qb,h=this.width/this.height,b=this.kc,a&&0<this.Fg&&(b=this.Fg),this.Hh=2!==b&&h>e||2===b&&h<e?this.height/this.qb:this.width/this.rb,this.wa&&(this.wa.ir(this.wa.scrollX),
this.wa.jr(this.wa.scrollY))):this.Hh=this.Uf?this.devicePixelRatio:1;this.Mb();this.zd++;this.$d.Vw();this.zd--;this.Mb();this.zd++;h=this.Cq.yf();a=0;for(e=h.length;a<e;a++)h[a].rz();a=0;for(e=this.A.length;a<e;a++)if(l=this.A[a],!l.T&&(l.Pa.length||l.Ja.length))for(h=0,b=l.e.length;h<b;h++)for(f=l.e[h],c=0,k=f.N.length;c<k;c++)f.N[c].$a();a=0;for(e=this.A.length;a<e;a++)if(l=this.A[a],!l.T&&(l.Pa.length||l.Ja.length))for(h=0,b=l.e.length;h<b;h++)for(f=l.e[h],c=0,k=f.N.length;c<k;c++)d=f.N[c],d.Xq&&
d.Xq();h=this.wn.yf();a=0;for(e=h.length;a<e;a++)h[a].$a();this.zd--;this.Mv();for(a=0;this.Ff&&10>a++;)this.dp(this.Ff);a=0;for(e=this.ne.length;a<e;a++)this.ne[a].Km=!1;this.wa.Lf&&this.wa.Lf.gb();A(this.jg);this.zd++;a=0;for(e=this.A.length;a<e;a++)if(l=this.A[a],!l.T&&(l.Pa.length||l.Ja.length))for(h=0,b=l.e.length;h<b;h++)for(f=l.e[h],c=0,k=f.N.length;c<k;c++)d=f.N[c],d.lj&&d.lj();h=this.xn.yf();a=0;for(e=h.length;a<e;a++)h[a].lj();this.zd--};d.prototype.fh=function(){var a,e,h,b,c,k,l,f,d;a=
0;for(e=this.A.length;a<e;a++)if(l=this.A[a],!l.T)for(h=0,b=l.e.length;h<b;h++)if(f=l.e[h],f.fh&&f.fh(),f.N)for(c=0,k=f.N.length;c<k;c++)d=f.N[c],d.fh&&d.fh()};d.prototype.dp=function(a){var e=this.wa;this.wa.ox();var h,b,c;if(this.D)for(h=0,b=this.A.length;h<b;h++)c=this.A[h],c.T||!c.Ur||c.global&&0!==c.e.length||-1!==a.di.indexOf(c)||c.Ur();e==a&&A(this.$d.wc);A(this.jg);this.gr(!0);a.Yn();this.gr(!1);this.ya=!0;this.Mb()};d.prototype.gr=function(a){var e,h,b,c,k,l,f,d,p;e=0;for(h=this.Pa.length;e<
h;e++)b=this.Pa[e],a?b.Li&&b.Li():b.Ni&&b.Ni();e=0;for(h=this.A.length;e<h;e++)if(b=this.A[e],b.global||b.Ma.ul)for(c=0,k=b.e.length;c<k;c++)if(l=b.e[c],a?l.Li&&l.Li():l.Ni&&l.Ni(),l.N)for(f=0,d=l.N.length;f<d;f++)p=l.N[f],a?p.Li&&p.Li():p.Ni&&p.Ni()};d.prototype.mj=function(a){this.wn.add(a)};d.prototype.ux=function(a){this.xn.add(a)};d.prototype.Wh=function(a){return a&&-1!==a.Ji?this.If*a.Ji:this.Ye};d.prototype.me=function(){this.wa.me(this.Qa);this.Ub&&this.Qa.present()};d.prototype.bd=function(){this.Ga&&
(this.Jf=1,this.wa.zg(this.D));this.wa.bd(this.D);this.D.Iw()};d.prototype.xj=function(a){a&&this.Uj.push(a)};d.prototype.er=function(a){Fa(this.Uj,a)};d.prototype.Nf=function(a){a=a.toString();return this.ze.hasOwnProperty(a)?this.ze[a]:null};var P=[];d.prototype.zf=function(a){var e,h;e=a.type.name;var b=null;if(this.Hf.hasOwnProperty(e)){if(b=this.Hf[e],b.contains(a))return}else b=P.length?P.pop():new da,this.Hf[e]=b;b.add(a);this.df=!0;if(a.lc)for(e=0,h=a.siblings.length;e<h;e++)this.zf(a.siblings[e]);
this.Um&&b.zh.push(a);this.Tm||(this.zd++,this.trigger(Object.getPrototypeOf(a.type.Ma).q.Js,a),this.zd--)};d.prototype.Mb=function(){if(this.df){var a,e,h,b,c,k;this.Um=!0;h=0;for(c=this.vd.length;h<c;++h)for(a=this.vd[h],e=a.type,e.e.push(a),b=0,k=e.Ja.length;b<k;++b)e.Ja[b].e.push(a),e.Ja[b].rh=!0;A(this.vd);this.Cs();Wa(this.Hf);this.df=this.Um=!1}};d.prototype.Cs=function(){for(var a in this.Hf)this.Hf.hasOwnProperty(a)&&this.hs(this.Hf[a])};d.prototype.hs=function(a){var e=a.yf(),h=e[0].type,
b,c,k,l,f,d;Ya(h.e,a);h.rh=!0;0===h.e.length&&(h.Aj=!1);b=0;for(c=h.Ja.length;b<c;++b)d=h.Ja[b],Ya(d.e,a),d.rh=!0;b=0;for(c=this.$d.wc.length;b<c;++b)if(f=this.$d.wc[b],f.Yb.hasOwnProperty(h.index)&&Ya(f.Yb[h.index].se,a),!h.T)for(k=0,l=h.Ja.length;k<l;++k)d=h.Ja[k],f.Yb.hasOwnProperty(d.index)&&Ya(f.Yb[d.index].se,a);if(f=e[0].j){if(f.Xc)for(k=f.e,b=0,c=k.length;b<c;++b)l=k[b],a.contains(l)&&(l.xa(),f.Jb.update(l,l.oc,null),l.oc.set(0,0,-1,-1));Ya(f.e,a);f.Zi(0)}for(b=0;b<e.length;++b)this.gs(e[b],
h);a.clear();P.push(a);this.ya=!0};d.prototype.gs=function(a,e){var h,b,c;h=0;for(b=this.Uj.length;h<b;++h)this.Uj[h](a);a.Ve&&e.Kj.update(a,a.Ve,null);(h=a.j)&&h.kh(a,!0);if(a.N)for(h=0,b=a.N.length;h<b;++h)c=a.N[h],c.hg&&c.hg(),c.behavior.un.remove(a);this.Cq.remove(a);this.wn.remove(a);this.xn.remove(a);a.hg&&a.hg();this.ze.hasOwnProperty(a.uid.toString())&&delete this.ze[a.uid.toString()];this.Ok--;100>e.Rj.length&&e.Rj.push(a)};d.prototype.Yo=function(a,e,h,b){if(a.T){var c=ra(Math.random()*
a.dg.length);return this.Yo(a.dg[c],e,h,b)}return a.$c?this.We(a.$c,e,!1,h,b,!1):null};var T=[];d.prototype.We=function(a,e,h,b,c,k){var l,f,d,p;if(!a)return null;var g=this.A[a[1]],m=g.Ma.gf;if(this.Rg&&m&&!g.Wm||m&&!this.D&&11===a[0][11])return null;var D=e;m||(e=null);var r;g.Rj.length?(r=g.Rj.pop(),r.nc=!0,g.Ma.Fa.call(r,g)):(r=new g.Ma.Fa(g),r.nc=!1);!h||k||this.ze.hasOwnProperty(a[2].toString())?r.uid=this.Ki++:r.uid=a[2];this.ze[r.uid.toString()]=r;r.br=this.yq++;r.Rf=g.e.length;l=0;for(f=
this.vd.length;l<f;++l)this.vd[l].type===g&&r.Rf++;r.Zh=Eb;r.toString=Fb;d=a[3];if(r.nc)Wa(r.I);else{r.I={};if("undefined"!==typeof cr_is_preview)for(r.Fp=[],r.Fp.length=d.length,l=0,f=d.length;l<f;l++)r.Fp[l]=d[l][1];r.mb=[];r.mb.length=d.length}l=0;for(f=d.length;l<f;l++)r.mb[l]=d[l][0];if(m){var n=a[0];r.x=ia(b)?n[0]:b;r.y=ia(c)?n[1]:c;r.z=n[2];r.width=n[3];r.height=n[4];r.depth=n[5];r.k=n[6];r.opacity=n[7];r.Cc=n[8];r.Dc=n[9];r.Nb=n[10];l=n[11];!this.D&&g.O.length&&(r.Nb=l);r.Kh=hb(r.Nb);this.C&&
ib(r,r.Nb,this.C);if(r.nc){l=0;for(f=n[12].length;l<f;l++)for(d=0,p=n[12][l].length;d<p;d++)r.Sa[l][d]=n[12][l][d];r.Ha.set(0,0,0,0);r.Ve.set(0,0,-1,-1);r.oc.set(0,0,-1,-1);r.fc.$i(r.Ha);A(r.Vl)}else{r.Sa=n[12].slice(0);l=0;for(f=r.Sa.length;l<f;l++)r.Sa[l]=n[12][l].slice(0);r.ma=[];r.Pe=[];r.Pe.length=g.O.length;r.Ha=new ua(0,0,0,0);r.Ve=new ua(0,0,-1,-1);r.oc=new ua(0,0,-1,-1);r.fc=new va;r.Vl=[];r.F=Mb;r.cz=Nb;r.Ob=Ob;r.xa=Pb;r.Bx=Qb;r.$r=Rb;r.Rd=Sb}r.vh=!1;r.xx=0;r.wx=0;r.vx=null;14===n.length&&
(r.vh=!0,r.xx=n[13][0],r.wx=n[13][1],r.vx=n[13][2]);l=0;for(f=g.O.length;l<f;l++)r.Pe[l]=!0;r.Ge=!0;r.Hd=Tb;r.Hd();r.as=!!r.ma.length;r.Ul=!0;r.Yl=!0;g.zj=!0;r.visible=!0;r.Ji=-1;r.j=e;r.Id=e.e.length;r.Jf=0;"undefined"===typeof r.qa&&(r.qa=null);this.ya=r.he=!0}var w;A(T);l=0;for(f=g.Ja.length;l<f;l++)T.push.apply(T,g.Ja[l].Pa);T.push.apply(T,g.Pa);if(r.nc)for(l=0,f=T.length;l<f;l++){var y=T[l];w=r.N[l];w.nc=!0;y.behavior.Fa.call(w,y,r);n=a[4][l];d=0;for(p=n.length;d<p;d++)w.u[d]=n[d];w.la();y.behavior.un.add(r)}else for(r.N=
[],l=0,f=T.length;l<f;l++)y=T[l],w=new y.behavior.Fa(y,r),w.nc=!1,w.u=a[4][l].slice(0),w.la(),r.N.push(w),y.behavior.un.add(r);n=a[5];if(r.nc)for(l=0,f=n.length;l<f;l++)r.u[l]=n[l];else r.u=n.slice(0);this.vd.push(r);this.df=!0;e&&(e.Gh(r,!0),1!==e.gd||1!==e.hd)&&(g.Aj=!0);this.Ok++;if(g.lc){if(r.lc=!0,r.nc?A(r.siblings):r.siblings=[],!h&&!k){l=0;for(f=g.zc.length;l<f;l++)if(g.zc[l]!==g){if(!g.zc[l].$c)return null;r.siblings.push(this.We(g.zc[l].$c,D,!1,m?r.x:b,m?r.y:c,!0))}l=0;for(f=r.siblings.length;l<
f;l++)for(r.siblings[l].siblings.push(r),d=0;d<f;d++)l!==d&&r.siblings[l].siblings.push(r.siblings[d])}}else r.lc=!1,r.siblings=null;r.la();l=0;for(f=r.N.length;l<f;l++)r.N[l].Ew&&r.N[l].Ew();return r};d.prototype.Dm=function(a){var e,h;e=0;for(h=this.wa.R.length;e<h;e++){var b=this.wa.R[e];if(kb(b.name,a))return b}return null};d.prototype.Xh=function(a){a=ra(a);0>a&&(a=0);a>=this.wa.R.length&&(a=this.wa.R.length-1);return this.wa.R[a]};d.prototype.cm=function(a){var e,h;e=0;for(h=a.length;e<h;e++)a[e].ba().ta=
!0};d.prototype.Si=function(a){var e,h;e=0;for(h=a.length;e<h;e++)a[e].Si()};d.prototype.Ti=function(a){var e,h;e=0;for(h=a.length;e<h;e++)a[e].Ti()};d.prototype.qf=function(a){var e,h;e=0;for(h=a.length;e<h;e++)a[e].qf()};d.prototype.Xr=function(a){if(a.zj){var e,h,b=a.e;e=0;for(h=b.length;e<h;++e)b[e].$r();b=this.vd;e=0;for(h=b.length;e<h;++e)b[e].type===a&&b[e].$r();a.zj=!1}};d.prototype.sp=function(a,e,h,b){var c,l,k=a?1!==a.gd||1!==a.hd:!1;if(e.T)for(a=0,c=e.dg.length;a<c;++a)l=e.dg[a],k||l.Aj?
Ba(b,l.e):(this.Xr(l),l.Kj.hl(h,b));else k||e.Aj?Ba(b,e.e):(this.Xr(e),e.Kj.hl(h,b))};d.prototype.xp=function(a,e,h,b){var c,l;c=0;for(l=e.length;c<l;++c)this.sp(a,e[c],h,b)};d.prototype.xv=function(a,e,h){var b=this.Er;b&&this.xp(a,b.Mk,e,h)};d.prototype.qv=function(a,e,h){var b=this.Pp;b&&this.xp(a,b.Mk,e,h)};d.prototype.Al=function(a,e,h){var b=a.ba(),c,l,k,f,d=this.Gb().ic.ed,p,g,r;if(b.ta)for(b.ta=!1,A(b.e),c=0,f=a.e.length;c<f;c++)k=a.e[c],k.xa(),p=k.j.Db(e,h,!0),g=k.j.Db(e,h,!1),k.Ob(p,g)?
b.e.push(k):d&&b.aa.push(k);else{l=0;r=d?b.aa:b.e;c=0;for(f=r.length;c<f;c++)k=r[c],k.xa(),p=k.j.Db(e,h,!0),g=k.j.Db(e,h,!1),k.Ob(p,g)&&(d?b.e.push(k):(b.e[l]=b.e[c],l++));r.length=l}a.Yc();return b.Jm()};d.prototype.Vc=function(a,e){if(!(a&&e&&a!==e&&a.he&&e.he))return!1;a.xa();e.xa();var h=a.j,b=e.j,c,l,k,f,d,p,g,r;if(h===b||h.gd===b.gd&&b.hd===b.hd&&h.scale===b.scale&&h.k===b.k&&h.Jd===b.Jd){if(!a.Ha.Sv(e.Ha)||!a.fc.Gp(e.fc)||a.vh&&e.vh)return!1;if(a.vh)return this.Ir(a,e);if(e.vh)return this.Ir(e,
a);g=a.qa&&!a.qa.Lg();c=e.qa&&!e.qa.Lg();if(!g&&!c)return!0;g?(a.qa.vg(a.width,a.height,a.k),g=a.qa):(this.Fd.ph(a.fc,a.x,a.y,a.width,a.height),g=this.Fd);c?(e.qa.vg(e.width,e.height,e.k),r=e.qa):(this.Fd.ph(e.fc,e.x,e.y,e.width,e.height),r=this.Fd);return g.ei(r,e.x-a.x,e.y-a.y)}g=a.qa&&!a.qa.Lg();c=e.qa&&!e.qa.Lg();g?(a.qa.vg(a.width,a.height,a.k),this.Fd.sr(a.qa)):this.Fd.ph(a.fc,a.x,a.y,a.width,a.height);g=this.Fd;c?(e.qa.vg(e.width,e.height,e.k),this.$n.sr(e.qa)):this.$n.ph(e.fc,e.x,e.y,e.width,
e.height);r=this.$n;c=0;for(l=g.Cd;c<l;c++)k=2*c,f=k+1,d=g.sb[k],p=g.sb[f],g.sb[k]=h.La(d+a.x,p+a.y,!0),g.sb[f]=h.La(d+a.x,p+a.y,!1);g.xa();c=0;for(l=r.Cd;c<l;c++)k=2*c,f=k+1,d=r.sb[k],p=r.sb[f],r.sb[k]=b.La(d+e.x,p+e.y,!0),r.sb[f]=b.La(d+e.x,p+e.y,!1);r.xa();return g.ei(r,0,0)};var W=new va;new ua(0,0,0,0);var O=[];d.prototype.Ir=function(a,e){var h,b,c,k,l=e.Ha,f=a.x,d=a.y;a.fz(l,O);var p=e.qa&&!e.qa.Lg();h=0;for(b=O.length;h<b;++h)if(c=O[h],k=c.vz,l.Tv(k,f,d)&&(W.$i(k),W.offset(f,d),W.Gp(e.fc)))if(p)if(e.qa.vg(e.width,
e.height,e.k),c.Hn){if(c.Hn.ei(e.qa,e.x-(f+k.left),e.y-(d+k.top)))return A(O),!0}else{if(this.Fd.ph(W,0,0,k.right-k.left,k.bottom-k.top),this.Fd.ei(e.qa,e.x,e.y))return A(O),!0}else if(c.Hn){if(this.Fd.ph(e.fc,0,0,e.width,e.height),c.Hn.ei(this.Fd,-(f+k.left),-(d+k.top)))return A(O),!0}else return A(O),!0;A(O);return!1};d.prototype.ho=function(a,e){if(!e)return!1;var h,b,c,k,l;h=0;for(b=a.Pa.length;h<b;h++)if(a.Pa[h].behavior instanceof e)return!0;if(!a.T)for(h=0,b=a.Ja.length;h<b;h++)for(l=a.Ja[h],
c=0,k=l.Pa.length;c<k;c++)if(l.Pa[c].behavior instanceof e)return!0;return!1};d.prototype.io=function(a){return this.ho(a,ic.ly)};d.prototype.jo=function(a){return this.ho(a,ic.ny)};var K=[];d.prototype.tc=function(a){var e,h,b;a.xa();this.xv(a.j,a.Ha,K);e=0;for(h=K.length;e<h;++e)if(b=K[e],b.I.solidEnabled&&this.Vc(a,b))return A(K),b;A(K);return null};var M=[];d.prototype.wf=function(a,e){var h=null;e&&(h=M,A(h));a.xa();this.qv(a.j,a.Ha,K);var b,c,k;b=0;for(c=K.length;b<c;++b)if(k=K[b],k.I.jumpthruEnabled&&
this.Vc(a,k))if(e)h.push(k);else return A(K),k;A(K);return h};d.prototype.Dd=function(a,e,h,b,c,k){b=b||50;var l=a.x,f=a.y,d,p=null,g=null;for(d=0;d<b;d++)if(a.x=l+e*d,a.y=f+h*d,a.F(),!this.Vc(a,p)&&((p=this.tc(a))&&(g=p),!p&&(c&&(k?p=this.Vc(a,k)?k:null:p=this.wf(a),p&&(g=p)),!p)))return g&&this.gl(a,e,h,g),!0;a.x=l;a.y=f;a.F();return!1};d.prototype.cr=function(a,e,h,b){b=b||50;var c=a.x,k=a.y,l=null,f=null,d,p,g;for(d=0;d<b;++d)for(p=0;2>p;++p)if(g=2*p-1,a.x=c+e*d*g,a.y=k+h*d*g,a.F(),!this.Vc(a,
l))if(l=this.tc(a))f=l;else return f&&this.gl(a,e*g,h*g,f),!0;a.x=c;a.y=k;a.F();return!1};d.prototype.gl=function(a,e,h,b){var c=2,k,l=!1;k=!1;for(var f=a.x,d=a.y;16>=c;)k=1/c,c*=2,a.x+=e*k*(l?1:-1),a.y+=h*k*(l?1:-1),a.F(),this.Vc(a,b)?k=l=!0:(k=l=!1,f=a.x,d=a.y);k&&(a.x=f,a.y=d,a.F())};d.prototype.Lw=function(a,e){var h=ia(e)?100:e,b=0,c=a.x,k=a.y,l=0,f=0,d=0,p=this.tc(a);if(!p)return!0;for(;b<=h;){switch(l){case 0:f=0;d=-1;b++;break;case 1:f=1;d=-1;break;case 2:f=1;d=0;break;case 3:d=f=1;break;
case 4:f=0;d=1;break;case 5:f=-1;d=1;break;case 6:f=-1;d=0;break;case 7:d=f=-1}l=(l+1)%8;a.x=ra(c+f*b);a.y=ra(k+d*b);a.F();if(!this.Vc(a,p)&&(p=this.tc(a),!p))return!0}a.x=c;a.y=k;a.F();return!1};d.prototype.ig=function(a,e){a.he&&e.he&&this.jg.push([a,e])};d.prototype.Ct=function(a,e,h){var b,c,k;b=0;for(c=this.jg.length;b<c;++b){k=this.jg[b];if(k[0]===a)k=k[1];else if(k[1]===a)k=k[0];else continue;if(e.T){if(-1===e.dg.indexOf(e))continue}else if(k.type!==e)continue;-1===h.indexOf(k)&&h.push(k)}};
d.prototype.Mt=function(a,e){var h,b,c;h=0;for(b=this.jg.length;h<b;h++)if(c=this.jg[h],c[0]===a&&c[1]===e||c[0]===e&&c[1]===a)return!0;return!1};var I=-1;d.prototype.trigger=function(a,e,h){if(!this.wa)return!1;var b=this.wa.Lf;if(!b)return!1;var c=!1,k,l,f;I++;var d=b.jm;l=0;for(f=d.length;l<f;++l)k=this.Qr(a,e,d[l],h),c=c||k;k=this.Qr(a,e,b,h);I--;return c||k};d.prototype.Qr=function(a,e,h,b){var c=!1,k,l,f,d;if(e)for(f=this.eo(a,e,e.type.name,h,b),c=c||f,d=e.type.Ja,k=0,l=d.length;k<l;++k)f=this.eo(a,
e,d[k].name,h,b),c=c||f;else f=this.eo(a,e,"system",h,b),c=c||f;return c};d.prototype.eo=function(a,e,h,b,c){var k,l=!1,f=!1,f="undefined"!==typeof c,d=(f?b.hp:b.Rr)[h];if(!d)return l;var p=null;b=0;for(k=d.length;b<k;++b)if(d[b].method==a){p=d[b].Rh;break}if(!p)return l;var g;f?g=p[c]:g=p;if(!g)return null;b=0;for(k=g.length;b<k;b++)a=g[b][0],c=g[b][1],f=this.Zu(e,h,a,c),l=l||f;return l};d.prototype.Zu=function(a,e,h,b){var c,k,l=!1;this.fo++;var f=this.Gb().ic;f&&this.Si(f.vf);var d=1<this.fo;this.Si(h.vf);
d&&this.Kw();var p=this.fl(h);p.ic=h;a&&(c=this.types[e].ba(),c.ta=!1,A(c.e),c.e[0]=a,this.types[e].Yc());a=!0;if(h.parent){e=p.Hr;for(c=h.parent;c;)e.push(c),c=c.parent;e.reverse();c=0;for(k=e.length;c<k;c++)if(!e[c].Xw()){a=!1;break}}a&&(this.Sh++,h.ed?h.Ww(b):h.gb(),l=l||p.Yf);this.bl();d&&this.Dw();this.qf(h.vf);f&&this.qf(f.vf);this.df&&0===this.zd&&0===I&&!this.Xm&&this.Mb();this.fo--;return l};d.prototype.ym=function(){var a=this.Gb();return a.ic.ub[a.tb]};d.prototype.Kw=function(){this.Hk++;
this.Hk>=this.qn.length&&this.qn.push([])};d.prototype.Dw=function(){this.Hk--};d.prototype.tp=function(){return this.qn[this.Hk]};d.prototype.fl=function(a){this.Wj++;this.Wj>=this.om.length&&this.om.push(new Ub);var e=this.Gb();e.reset(a);return e};d.prototype.bl=function(){this.Wj--};d.prototype.Gb=function(){return this.om[this.Wj]};d.prototype.up=function(a,e){for(var h,b,c,k,l,f;e;){h=0;for(b=e.md.length;h<b;h++)if(f=e.md[h],f instanceof Vb&&kb(a,f.name))return f;e=e.parent}h=0;for(b=this.ne.length;h<
b;h++)for(l=this.ne[h],c=0,k=l.$e.length;c<k;c++)if(f=l.$e[c],f instanceof Vb&&kb(a,f.name))return f;return null};d.prototype.vp=function(a){var e,h;e=0;for(h=this.Ad.length;e<h;e++)if(this.Ad[e].Y===a)return this.Ad[e];return null};d.prototype.lk=function(a){var e,h;e=0;for(h=this.A.length;e<h;e++)if(this.A[e].Y===a)return this.A[e];return null};d.prototype.nv=function(a){var e,h;e=0;for(h=this.Re.length;e<h;e++)if(this.Re[e].Y===a)return this.Re[e];return null};d.prototype.Wt=function(a,e){this.ej=
[a,e];this.ya=!0};d.prototype.Mv=function(){var a=this,e=this.Tn,h=this.we,c=this.Ck,k=!1;this.Ar&&(k=!0,e="__c2_continuouspreview",this.Ar=!1);if(e.length){this.Mb();h=this.ax();if(b()&&!this.cd)m(e,h,function(){fa("Saved state to IndexedDB storage ("+h.length+" bytes)");a.we=h;a.trigger(N.prototype.q.Ol,null);a.we="";k&&f()},function(b){try{localStorage.setItem("__c2save_"+e,h),fa("Saved state to WebStorage ("+h.length+" bytes)"),a.we=h,a.trigger(N.prototype.q.Ol,null),a.we="",k&&f()}catch(c){fa("Failed to save game state: "+
b+"; "+c),a.trigger(N.prototype.q.zo,null)}});else try{localStorage.setItem("__c2save_"+e,h),fa("Saved state to WebStorage ("+h.length+" bytes)"),a.we=h,this.trigger(N.prototype.q.Ol,null),a.we="",k&&f()}catch(l){fa("Error saving to WebStorage: "+l),a.trigger(N.prototype.q.zo,null)}this.Ck=this.Tn="";this.pb=null}if(c.length){if(b()&&!this.cd)q(c,function(e){e?(a.pb=e,fa("Loaded state from IndexedDB storage ("+a.pb.length+" bytes)")):(a.pb=localStorage.getItem("__c2save_"+c)||"",fa("Loaded state from WebStorage ("+
a.pb.length+" bytes)"));a.hj=!1;a.pb||(a.pb=null,a.trigger(N.prototype.q.vj,null))},function(){a.pb=localStorage.getItem("__c2save_"+c)||"";fa("Loaded state from WebStorage ("+a.pb.length+" bytes)");a.hj=!1;a.pb||(a.pb=null,a.trigger(N.prototype.q.vj,null))});else{try{this.pb=localStorage.getItem("__c2save_"+c)||"",fa("Loaded state from WebStorage ("+this.pb.length+" bytes)")}catch(d){this.pb=null}this.hj=!1;a.pb||(a.pb=null,a.trigger(N.prototype.q.vj,null))}this.Tn=this.Ck=""}null!==this.pb&&(this.Mb(),
this.gw(this.pb)?(this.we=this.pb,this.trigger(N.prototype.q.Ts,null),this.we=""):a.trigger(N.prototype.q.vj,null),this.pb=null)};d.prototype.ax=function(){var e,h,b,c,k,l,f,d={c2save:!0,version:1,rt:{time:this.yb.Z,walltime:this.Le.Z,timescale:this.wh,tickcount:this.ae,execcount:this.Sh,next_uid:this.Ki,running_layout:this.wa.Y,start_time_offset:Date.now()-this.wl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(h=this.A.length;e<h;e++)if(k=this.A[e],!k.T&&!this.io(k)){l=
{instances:[]};Va(k.I)&&(l.ex=a(k.I));b=0;for(c=k.e.length;b<c;b++)l.instances.push(this.Sn(k.e[b]));d.types[k.Y.toString()]=l}e=0;for(h=this.Ad.length;e<h;e++)b=this.Ad[e],d.layouts[b.Y.toString()]=b.Sb();c=d.events.groups;e=0;for(h=this.Re.length;e<h;e++)b=this.Re[e],c[b.Y.toString()]=this.ai[b.$h].Ig;h=d.events.cnds;for(f in this.Ue)this.Ue.hasOwnProperty(f)&&(e=this.Ue[f],Va(e.I)&&(h[f]={ex:a(e.I)}));h=d.events.acts;for(f in this.Qe)this.Qe.hasOwnProperty(f)&&(e=this.Qe[f],Va(e.I)&&(h[f]={ex:a(e.I)}));
h=d.events.vars;for(f in this.Ah)this.Ah.hasOwnProperty(f)&&(e=this.Ah[f],e.vk||e.parent&&!e.oi||(h[f]=e.data));d.system=this.$d.Sb();return JSON.stringify(d)};d.prototype.dr=function(){var a,e,h,b,c,k;this.ze={};a=0;for(e=this.A.length;a<e;a++)if(h=this.A[a],!h.T)for(b=0,c=h.e.length;b<c;b++)k=h.e[b],this.ze[k.uid.toString()]=k};d.prototype.gw=function(a){var e;try{e=JSON.parse(a)}catch(h){return!1}if(!e.c2save||1<e.version)return!1;this.hi=!0;a=e.rt;this.yb.reset();this.yb.Z=a.time;this.Le.reset();
this.Le.Z=a.walltime||0;this.wh=a.timescale;this.ae=a.tickcount;this.Sh=a.execcount;this.wl=Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.wa.Y)if(b=this.vp(b))this.dp(b);else return;var c,k,l,f,d,p,g;p=e.types;for(k in p)if(p.hasOwnProperty(k)&&(f=this.lk(parseInt(k,10)))&&!f.T&&!this.io(f)){p[k].ex?f.I=p[k].ex:Wa(f.I);d=f.e;l=p[k].instances;b=0;for(c=oa(d.length,l.length);b<c;b++)this.Dk(d[b],l[b]);b=l.length;for(c=d.length;b<c;b++)this.zf(d[b]);b=d.length;for(c=l.length;b<c;b++){d=
null;if(f.Ma.gf&&(d=this.wa.kk(l[b].w.l),!d))continue;d=this.We(f.$c,d,!1,0,0,!0);this.Dk(d,l[b])}f.rh=!0}this.Mb();this.dr();c=e.layouts;for(k in c)c.hasOwnProperty(k)&&(b=this.vp(parseInt(k,10)))&&b.mc(c[k]);c=e.events.groups;for(k in c)c.hasOwnProperty(k)&&(b=this.nv(parseInt(k,10)))&&this.ai[b.$h]&&this.ai[b.$h].or(c[k]);b=e.events.cnds;for(k in this.Ue)this.Ue.hasOwnProperty(k)&&(b.hasOwnProperty(k)?this.Ue[k].I=b[k].ex:this.Ue[k].I={});b=e.events.acts;for(k in this.Qe)this.Qe.hasOwnProperty(k)&&
(b.hasOwnProperty(k)?this.Qe[k].I=b[k].ex:this.Qe[k].I={});b=e.events.vars;for(k in b)b.hasOwnProperty(k)&&this.Ah.hasOwnProperty(k)&&(this.Ah[k].data=b[k]);this.Ki=a.next_uid;this.hi=!1;b=0;for(c=this.bk.length;b<c;++b)d=this.bk[b],this.trigger(Object.getPrototypeOf(d.type.Ma).q.tj,d);A(this.bk);this.$d.mc(e.system);b=0;for(c=this.A.length;b<c;b++)if(f=this.A[b],!f.T&&!this.io(f))for(e=0,k=f.e.length;e<k;e++){d=f.e[e];if(f.lc)for(p=d.Zh(),A(d.siblings),a=0,l=f.zc.length;a<l;a++)g=f.zc[a],f!==g&&
d.siblings.push(g.e[p]);d.Kd&&d.Kd();if(d.N)for(a=0,l=d.N.length;a<l;a++)p=d.N[a],p.Kd&&p.Kd()}return this.ya=!0};d.prototype.Sn=function(e,h){var b,c,k,l,f;l=e.type;k=l.Ma;var d={};h?d.c2=!0:d.uid=e.uid;Va(e.I)&&(d.ex=a(e.I));if(e.mb&&e.mb.length)for(d.ivs={},b=0,c=e.mb.length;b<c;b++)d.ivs[e.type.Qm[b].toString()]=e.mb[b];if(k.gf){k={x:e.x,y:e.y,w:e.width,h:e.height,l:e.j.Y,zi:e.Rd()};0!==e.k&&(k.a=e.k);1!==e.opacity&&(k.o=e.opacity);.5!==e.Cc&&(k.hX=e.Cc);.5!==e.Dc&&(k.hY=e.Dc);0!==e.Nb&&(k.bm=
e.Nb);e.visible||(k.v=e.visible);e.he||(k.ce=e.he);-1!==e.Ji&&(k.mts=e.Ji);if(l.O.length)for(k.fx=[],b=0,c=l.O.length;b<c;b++)f=l.O[b],k.fx.push({name:f.name,active:e.Pe[f.index],params:e.Sa[f.index]});d.w=k}if(e.N&&e.N.length)for(d.behs={},b=0,c=e.N.length;b<c;b++)l=e.N[b],l.Sb&&(d.behs[l.type.Y.toString()]=l.Sb());e.Sb&&(d.data=e.Sb());return d};d.prototype.pv=function(a,e){var h,b;h=0;for(b=a.Qm.length;h<b;h++)if(a.Qm[h]===e)return h;return-1};d.prototype.kv=function(a,e){var h,b;h=0;for(b=a.N.length;h<
b;h++)if(a.N[h].type.Y===e)return h;return-1};d.prototype.Dk=function(a,e,h){var b,c,k,l,f;f=a.type;var d=f.Ma;if(h){if(!e.c2)return}else a.uid=e.uid;e.ex?a.I=e.ex:Wa(a.I);if(c=e.ivs)for(b in c)c.hasOwnProperty(b)&&(k=this.pv(f,parseInt(b,10)),0>k||k>=a.mb.length||(l=c[b],null===l&&(l=NaN),a.mb[k]=l));if(d.gf){k=e.w;a.j.Y!==k.l&&(c=a.j,a.j=this.wa.kk(k.l),a.j?(c.kh(a,!0),a.j.Gh(a,!0),a.F(),a.j.Zi(0)):(a.j=c,h||this.zf(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Id=k.zi;a.k=k.hasOwnProperty("a")?
k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.Cc=k.hasOwnProperty("hX")?k.hX:.5;a.Dc=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.he=k.hasOwnProperty("ce")?k.ce:!0;a.Ji=k.hasOwnProperty("mts")?k.mts:-1;a.Nb=k.hasOwnProperty("bm")?k.bm:0;a.Kh=hb(a.Nb);this.C&&ib(a,a.Nb,this.C);a.F();if(k.hasOwnProperty("fx"))for(h=0,c=k.fx.length;h<c;h++)l=f.Am(k.fx[h].name),0>l||(a.Pe[l]=k.fx[h].active,a.Sa[l]=k.fx[h].params);a.Hd()}if(f=e.behs)for(b in f)f.hasOwnProperty(b)&&(h=this.kv(a,
parseInt(b,10)),0>h||a.N[h].mc(f[b]));e.data&&a.mc(e.data)};d.prototype.ip=function(a,e,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,h)},h)};d.prototype.$u=function(a,e){this.ip("data.js",function(h){var b=new FileReader;b.onload=function(e){a(e.target.result)};b.onerror=e;b.readAsText(h)},e)};var ba=[],J=0;d.prototype.sn=function(){if(ba.length&&!(8<=J)){J++;var a=ba.shift();this.Yt(a.filename,a.rx,a.wu)}};d.prototype.jp=function(a,e,h){var b=
this;ba.push({filename:a,rx:function(a){J--;b.sn();e(a)},wu:function(a){J--;b.sn();h(a)}});this.sn()};d.prototype.Yt=function(a,e,h){this.ip(a,function(a){var h=new FileReader;h.onload=function(a){e(a.target.result)};h.readAsArrayBuffer(a)},h)};d.prototype.av=function(a,e,h){var b="",c=a.toLowerCase(),k=c.substr(c.length-4),c=c.substr(c.length-5);".mp4"===k?b="video/mp4":".webm"===c?b="video/webm":".m4a"===k?b="audio/mp4":".mp3"===k&&(b="audio/mpeg");this.jp(a,function(a){a=URL.createObjectURL(new Blob([a],
{type:b}));e(a)},h)};d.prototype.Uv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.pr=function(a,e){this.uk&&!this.Uv(e)?this.av(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};d.prototype.ol=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Wb=function(a){return new d(document.getElementById(a))};
Xb=function(a,e){return new d({dc:!0,width:a,height:e})};window.cr_createRuntime=Wb;window.cr_createDCRuntime=Xb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ih=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,g){var b=window.cr_getC2Runtime();b&&b.Wt(d,g)};
window.cr_sizeCanvas=function(d,g){if(0!==d&&0!==g){var b=window.cr_getC2Runtime();b&&b.setSize(d,g)}};window.cr_setSuspended=function(d){var g=window.cr_getC2Runtime();g&&g.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.Lf=null;this.scrollX=this.b.rb/2;this.scrollY=this.b.qb/2;this.scale=1;this.k=0;this.Eg=!0;this.name=b[0];this.zw=b[1];this.yw=b[2];this.width=b[1];this.height=b[2];this.Tr=b[3];this.xr=b[4];this.Y=b[5];var c=b[6],f,d;this.R=[];this.di=[];f=0;for(d=c.length;f<d;f++){var g=new Yb(this,c[f]);g.Aq=f;this.R.push(g)}c=b[7];this.ef=[];f=0;for(d=c.length;f<d;f++){var g=c[f],m=this.b.A[g[1]];m.$c||(m.$c=g);this.ef.push(g);-1===this.di.indexOf(m)&&this.di.push(m)}this.O=
[];this.ma=[];this.Ge=!0;this.Sa=[];f=0;for(d=b[8].length;f<d;f++)this.O.push({id:b[8][f][0],name:b[8][f][1],hb:-1,jd:!1,Wa:!0,index:f}),this.Sa.push(b[8][f][2].slice(0));this.Hd();this.jh=new ua(0,0,1,1);this.Mn=new ua(0,0,1,1);this.of={}}function g(a,b){return a.Id-b.Id}function b(a,b){this.ob=a;this.b=a.b;this.e=[];this.scale=1;this.k=0;this.le=!1;this.Je=new ua(0,0,0,0);this.Pr=new va;this.Da=this.Ba=this.Ea=this.Aa=0;this.ng=!1;this.Ne=-1;this.dm=0;this.name=b[0];this.index=b[1];this.Y=b[2];
this.visible=b[3];this.td=b[4];this.Gd=b[5];this.gd=b[6];this.hd=b[7];this.opacity=b[8];this.gk=b[9];this.Xc=b[10];this.Jd=b[11];this.Nb=b[12];this.su=b[13];this.Kh="source-over";this.Pb=this.Tb=0;this.Jb=null;this.xe=n();this.Ed=!0;this.Wg=new ua(0,0,-1,-1);this.Eb=new ua(0,0,-1,-1);this.Xc&&(this.Jb=new gb(this.b.rb,this.b.qb));this.Zd=!1;var c=b[14],f,d;this.Fr=[];this.Qc=[];this.Nh=[];f=0;for(d=c.length;f<d;f++){var g=c[f],m=this.b.A[g[1]];m.$c||(m.$c=g,m.Vt=this.index);this.Qc.push(g);-1===this.ob.di.indexOf(m)&&
this.ob.di.push(m)}Aa(this.Fr,this.Qc);this.O=[];this.ma=[];this.Ge=!0;this.Sa=[];f=0;for(d=b[15].length;f<d;f++)this.O.push({id:b[15][f][0],name:b[15][f][1],hb:-1,jd:!1,Wa:!0,index:f}),this.Sa.push(b[15][f][2].slice(0));this.Hd();this.jh=new ua(0,0,1,1);this.Mn=new ua(0,0,1,1)}function n(){return a.length?a.pop():[]}function m(e){A(e);a.push(e)}d.prototype.$w=function(a){var b=a.type.Y.toString();this.of.hasOwnProperty(b)||(this.of[b]=[]);this.of[b].push(this.b.Sn(a))};d.prototype.zp=function(){var a=
this.R[0];return!a.Gd&&1===a.opacity&&!a.gk&&a.visible};d.prototype.Hd=function(){A(this.ma);this.Ge=!0;var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Wa&&(this.ma.push(c),c.jd||(this.Ge=!1))};d.prototype.zm=function(a){var b,c,f;b=0;for(c=this.O.length;b<c;b++)if(f=this.O[b],f.name===a)return f;return null};var q=[],f=!0;d.prototype.Yn=function(){this.xr&&(this.Lf=this.b.pm[this.xr],this.Lf.ko());this.b.wa=this;this.width=this.zw;this.height=this.yw;this.scrollX=this.b.rb/2;this.scrollY=
this.b.qb/2;var a,b,c,d,m,n,u;a=0;for(c=this.b.A.length;a<c;a++)if(b=this.b.A[a],!b.T)for(m=b.e,b=0,d=m.length;b<d;b++)if(n=m[b],n.j){var h=n.j.Aq;h>=this.R.length&&(h=this.R.length-1);n.j=this.R[h];-1===n.j.e.indexOf(n)&&n.j.e.push(n);n.j.ng=!0}if(!f)for(a=0,c=this.R.length;a<c;++a)this.R[a].e.sort(g);A(q);this.Jt();a=0;for(c=this.R.length;a<c;a++)n=this.R[a],n.St(),n.Il();m=!1;if(!this.Eg){for(u in this.of)if(this.of.hasOwnProperty(u)&&(b=this.b.lk(parseInt(u,10)))&&!b.T&&this.b.jo(b)){d=this.of[u];
a=0;for(c=d.length;a<c;a++){n=null;if(b.Ma.gf&&(n=this.kk(d[a].w.l),!n))continue;n=this.b.We(b.$c,n,!1,0,0,!0);this.b.Dk(n,d[a]);m=!0;q.push(n)}A(d)}a=0;for(c=this.R.length;a<c;a++)this.R[a].e.sort(g),this.R[a].ng=!0}m&&(this.b.Mb(),this.b.dr());for(a=0;a<q.length;a++)if(n=q[a],n.type.lc)for(c=n.Zh(),b=0,d=n.type.zc.length;b<d;b++)u=n.type.zc[b],n.type!==u&&(u.e.length>c?n.siblings.push(u.e[c]):u.$c&&(m=this.b.We(u.$c,n.j,!0,n.x,n.y,!0),this.b.Mb(),u.Gl(),n.siblings.push(m),q.push(m)));a=0;for(c=
this.ef.length;a<c;a++)n=this.ef[a],b=this.b.A[n[1]],b.lc||this.b.We(this.ef[a],null,!0);this.b.Ff=null;this.b.Mb();if(this.b.Qa&&!this.b.cb)for(a=0,c=this.b.A.length;a<c;a++)u=this.b.A[a],!u.T&&u.e.length&&u.Yq&&u.Yq(this.b.Qa);if(this.b.hi)Aa(this.b.bk,q);else for(a=0,c=q.length;a<c;a++)n=q[a],this.b.trigger(Object.getPrototypeOf(n.type.Ma).q.tj,n);A(q);this.b.hi||this.b.trigger(N.prototype.q.vo,null);this.Eg=!1};d.prototype.Rt=function(){var a,b,c,f,d;b=a=0;for(c=this.ef.length;a<c;a++)f=this.ef[a],
d=this.b.A[f[1]],d.global?d.lc||this.b.We(f,null,!0):(this.ef[b]=f,b++);za(this.ef,b)};d.prototype.ox=function(){this.b.hi||this.b.trigger(N.prototype.q.Ss,null);this.b.Tm=!0;A(this.b.$d.wc);var a,b,c,d,g,m;if(!this.Eg)for(a=0,b=this.R.length;a<b;a++)for(this.R[a].no(),g=this.R[a].e,c=0,d=g.length;c<d;c++)m=g[c],m.type.global||this.b.jo(m.type)&&this.$w(m);a=0;for(b=this.R.length;a<b;a++){g=this.R[a].e;c=0;for(d=g.length;c<d;c++)m=g[c],m.type.global||this.b.zf(m);this.b.Mb();A(g);this.R[a].ng=!0}a=
0;for(b=this.b.A.length;a<b;a++)if(g=this.b.A[a],!(g.global||g.Ma.gf||g.Ma.ul||g.T)){c=0;for(d=g.e.length;c<d;c++)this.b.zf(g.e[c]);this.b.Mb()}f=!1;this.b.Tm=!1};new ua(0,0,0,0);d.prototype.me=function(a){var b,c=a,f=!1,d=!this.b.Oc;d&&(this.b.Bk||(this.b.Bk=document.createElement("canvas"),b=this.b.Bk,b.width=this.b.K,b.height=this.b.J,this.b.Wp=b.getContext("2d"),f=!0),b=this.b.Bk,c=this.b.Wp,b.width!==this.b.K&&(b.width=this.b.K,f=!0),b.height!==this.b.J&&(b.height=this.b.J,f=!0),f&&this.b.ol(c,
this.b.Ya));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Wo&&!this.zp()&&c.clearRect(0,0,this.b.K,this.b.J);var g,m,f=0;for(g=this.R.length;f<g;f++)m=this.R[f],m.visible&&0<m.opacity&&11!==m.Nb&&(m.e.length||!m.Gd)?m.me(c):m.Il();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.zg=function(a){a.nr(!0);this.b.eb||(this.b.eb=a.Lc(this.b.K,this.b.J,this.b.Ya));if(this.b.eb.Ef!==this.b.K||this.b.eb.Df!==this.b.J)a.deleteTexture(this.b.eb),this.b.eb=a.Lc(this.b.K,this.b.J,
this.b.Ya);a.ld(this.b.eb);this.b.Oc||a.Ee(this.b.K,this.b.J);var b,c;for(b=this.R.length-1;0<=b;--b)c=this.R[b],c.visible&&1===c.opacity&&c.Ge&&0===c.Nb&&(c.e.length||!c.Gd)?c.zg(a):c.Il();a.nr(!1)};d.prototype.bd=function(a){var b=0<this.ma.length||this.b.yh||!this.b.Oc||this.b.Ga;if(b){this.b.eb||(this.b.eb=a.Lc(this.b.K,this.b.J,this.b.Ya));if(this.b.eb.Ef!==this.b.K||this.b.eb.Df!==this.b.J)a.deleteTexture(this.b.eb),this.b.eb=a.Lc(this.b.K,this.b.J,this.b.Ya);a.ld(this.b.eb);this.b.Oc||a.Ee(this.b.K,
this.b.J)}else this.b.eb&&(a.ld(null),a.deleteTexture(this.b.eb),this.b.eb=null);this.b.Wo&&!this.zp()&&a.clear(0,0,0,0);var c,f,d;c=0;for(f=this.R.length;c<f;c++)d=this.R[c],d.visible&&0<d.opacity&&(d.e.length||!d.Gd)?d.bd(a):d.Il();b&&(0===this.ma.length||1===this.ma.length&&this.b.Oc?(1===this.ma.length?(b=this.ma[0].index,a.sc(this.ma[0].hb),a.oh(null,1/this.b.K,1/this.b.J,0,0,1,1,this.scale,this.k,0,0,this.b.K/2,this.b.J/2,this.b.yb.Z,this.Sa[b]),a.el(this.ma[0].hb)&&(this.b.ya=!0)):a.sc(0),
this.b.Oc||a.Ee(this.b.width,this.b.height),a.ld(null),a.mr(!1),a.nh(1),a.Uc(this.b.eb),a.kr(),a.kd(),a.Wc(),b=this.b.width/2,c=this.b.height/2,a.Ui(-b,c,b,c,b,-c,-b,-c),a.Uc(null),a.mr(!0)):this.Nn(a,null,null,null))};d.prototype.Yh=function(){return 0<this.ma.length||this.b.yh||!this.b.Oc||this.b.Ga?this.b.eb:null};d.prototype.wp=function(){var a=this.R[0].Bc(),b,c,f;b=1;for(c=this.R.length;b<c;b++)f=this.R[b],(0!==f.gd||0!==f.hd)&&f.Bc()<a&&(a=f.Bc());return a};d.prototype.ir=function(a){if(!this.Tr){var b=
1/this.wp()*this.b.K/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ya=!0)};d.prototype.jr=function(a){if(!this.Tr){var b=1/this.wp()*this.b.J/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ya=!0)};d.prototype.Jt=function(){this.ir(this.scrollX);this.jr(this.scrollY)};d.prototype.Nn=function(a,b,c,f){var d=c?c.ma:b?b.ma:this.ma,g=1,m=0,h=0,l=0,D=this.b.K,n=this.b.J;c?(g=c.j.Bc(),m=c.j.lb(),h=c.j.Aa,l=c.j.Ba,D=c.j.Ea,
n=c.j.Da):b&&(g=b.Bc(),m=b.lb(),h=b.Aa,l=b.Ba,D=b.Ea,n=b.Da);var y=this.b.vm,u,q,v,L,P=0,T=1,W,O,K=this.b.K,M=this.b.J,I=K/2,ba=M/2,J=b?b.jh:this.jh,z=b?b.Mn:this.Mn,x=0,t=0,H=0,F=0,R=K,pa=K,S=M,ha=M,Y=v=0;L=c?c.j.lb():0;if(c){u=0;for(q=d.length;u<q;u++)v+=a.uv(d[u].hb),Y+=a.vv(d[u].hb);F=c.Ha;x=b.La(F.left,F.top,!0,!0);H=b.La(F.left,F.top,!1,!0);R=b.La(F.right,F.bottom,!0,!0);S=b.La(F.right,F.bottom,!1,!0);0!==L&&(u=b.La(F.right,F.top,!0,!0),q=b.La(F.right,F.top,!1,!0),t=b.La(F.left,F.bottom,!0,
!0),F=b.La(F.left,F.bottom,!1,!0),L=Math.min(x,R,u,t),R=Math.max(x,R,u,t),x=L,L=Math.min(H,S,q,F),S=Math.max(H,S,q,F),H=L);x-=v;H-=Y;R+=v;S+=Y;z.left=x/K;z.top=1-H/M;z.right=R/K;z.bottom=1-S/M;t=x=ra(x);F=H=ra(H);pa=R=sa(R);ha=S=sa(S);t-=v;F-=Y;pa+=v;ha+=Y;0>x&&(x=0);0>H&&(H=0);R>K&&(R=K);S>M&&(S=M);0>t&&(t=0);0>F&&(F=0);pa>K&&(pa=K);ha>M&&(ha=M);J.left=x/K;J.top=1-H/M;J.right=R/K;J.bottom=1-S/M}else J.left=z.left=0,J.top=z.top=0,J.right=z.right=1,J.bottom=z.bottom=1;Y=c&&(a.Qi(d[0].hb)||0!==v||0!==
Y||1!==c.opacity||c.type.Ma.vq)||b&&!c&&1!==b.opacity;a.kr();if(Y){y[P]||(y[P]=a.Lc(K,M,this.b.Ya));if(y[P].Ef!==K||y[P].Df!==M)a.deleteTexture(y[P]),y[P]=a.Lc(K,M,this.b.Ya);a.sc(0);a.ld(y[P]);O=ha-F;a.clearRect(t,M-F-O,pa-t,O);c?c.bd(a):(a.Uc(this.b.nb),a.nh(b.opacity),a.kd(),a.translate(-I,-ba),a.Wc(),a.rf(x,S,R,S,R,H,x,H,J));z.left=z.top=0;z.right=z.bottom=1;c&&(L=J.top,J.top=J.bottom,J.bottom=L);P=1;T=0}a.nh(1);v=d.length-1;var Da=a.Jn(d[v].hb)||!b&&!c&&!this.b.Oc;u=L=0;for(q=d.length;u<q;u++){y[P]||
(y[P]=a.Lc(K,M,this.b.Ya));if(y[P].Ef!==K||y[P].Df!==M)a.deleteTexture(y[P]),y[P]=a.Lc(K,M,this.b.Ya);a.sc(d[u].hb);L=d[u].index;a.el(d[u].hb)&&(this.b.ya=!0);0!=u||Y?(a.oh(f,1/K,1/M,z.left,z.top,z.right,z.bottom,g,m,h,l,(h+D)/2,(l+n)/2,this.b.yb.Z,c?c.Sa[L]:b?b.Sa[L]:this.Sa[L]),a.Uc(null),u!==v||Da?(a.ld(y[P]),O=ha-F,W=M-F-O,a.clearRect(t,W,pa-t,O)):(c?a.uf(c.Tb,c.Pb):b&&a.uf(b.Tb,b.Pb),a.ld(f)),a.Uc(y[T]),a.kd(),a.translate(-I,-ba),a.Wc(),a.rf(x,S,R,S,R,H,x,H,J),u!==v||Da||a.Uc(null)):(a.ld(y[P]),
O=ha-F,W=M-F-O,a.clearRect(t,W,pa-t,O),c?(c.Ra&&c.Ra.Cb?(W=c.Ra.Cb,T=1/W.width,W=1/W.height):(T=1/c.width,W=1/c.height),a.oh(f,T,W,z.left,z.top,z.right,z.bottom,g,m,h,l,(h+D)/2,(l+n)/2,this.b.yb.Z,c.Sa[L]),c.bd(a)):(a.oh(f,1/K,1/M,0,0,1,1,g,m,h,l,(h+D)/2,(l+n)/2,this.b.yb.Z,b?b.Sa[L]:this.Sa[L]),a.Uc(b?this.b.nb:this.b.eb),a.kd(),a.translate(-I,-ba),a.Wc(),a.rf(x,S,R,S,R,H,x,H,J)),z.left=z.top=0,z.right=z.bottom=1,c&&!Da&&(L=S,S=H,H=L));P=0===P?1:0;T=0===P?1:0}Da&&(a.sc(0),c?a.uf(c.Tb,c.Pb):b?a.uf(b.Tb,
b.Pb):this.b.Oc||(a.Ee(this.b.width,this.b.height),I=this.b.width/2,ba=this.b.height/2,H=x=0,R=this.b.width,S=this.b.height),a.ld(f),a.Uc(y[T]),a.kd(),a.translate(-I,-ba),a.Wc(),c&&1===d.length&&!Y?a.rf(x,H,R,H,R,S,x,S,J):a.rf(x,S,R,S,R,H,x,H,J),a.Uc(null))};d.prototype.kk=function(a){var b,c;b=0;for(c=this.R.length;b<c;b++)if(this.R[b].Y===a)return this.R[b];return null};d.prototype.Sb=function(){var a,b,c,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Eg,
persist:this.of,fx:[],layers:{}};a=0;for(b=this.O.length;a<b;a++)c=this.O[a],f.fx.push({name:c.name,active:c.Wa,params:this.Sa[c.index]});a=0;for(b=this.R.length;a<b;a++)c=this.R[a],f.layers[c.Y.toString()]=c.Sb();return f};d.prototype.mc=function(a){var b,c,f,d;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.of=a.persist;"undefined"!==typeof a.fv&&(this.Eg=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(f=this.zm(g[b].name))f.Wa=g[b].active,this.Sa[f.index]=
g[b].params;this.Hd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.kk(parseInt(d,10)))&&a.mc(b[d])};Kb=d;b.prototype.Hd=function(){A(this.ma);this.Ge=!0;var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Wa&&(this.ma.push(c),c.jd||(this.Ge=!1))};b.prototype.zm=function(a){var b,c,f;b=0;for(c=this.O.length;b<c;b++)if(f=this.O[b],f.name===a)return f;return null};b.prototype.St=function(){var a,b,c,f,d,g;b=a=0;for(c=this.Qc.length;a<c;a++){f=this.Qc[a];d=this.b.A[f[1]];g=this.b.jo(d);d=!0;
if(!g||this.ob.Eg){f=this.b.We(f,this,!0);if(!f)continue;q.push(f);f.type.global&&(d=!1,this.Nh.push(f.uid))}d&&(this.Qc[b]=this.Qc[a],b++)}this.Qc.length=b;this.b.Mb();!this.b.D&&this.O.length&&(this.Nb=this.su);this.Kh=hb(this.Nb);this.b.C&&ib(this,this.Nb,this.b.C);this.Ed=!0};b.prototype.kh=function(a,b){var c=Ca(this.e,a);0>c||(b&&this.Xc&&a.oc&&a.oc.right>=a.oc.left&&(a.xa(),this.Jb.update(a,a.oc,null),a.oc.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(ya(this.e,c),this.Zi(c)),this.Ed=!0)};
b.prototype.Gh=function(a,b){a.Id=this.e.length;this.e.push(a);b&&this.Xc&&a.oc&&a.F();this.Ed=!0};b.prototype.Hw=function(a){this.e.unshift(a);this.Zi(0)};b.prototype.mw=function(a,b,c){var f=a.Rd();b=b.Rd();ya(this.e,f);f<b&&b--;c&&b++;b===this.e.length?this.e.push(a):this.e.splice(b,0,a);this.Zi(f<b?f:b)};b.prototype.Zi=function(a){-1===this.Ne?this.Ne=a:a<this.Ne&&(this.Ne=a);this.Ed=this.ng=!0};b.prototype.no=function(){if(this.ng){-1===this.Ne&&(this.Ne=0);var a,b,c;if(this.Xc)for(a=this.Ne,
b=this.e.length;a<b;++a)c=this.e[a],c.Id=a,this.Jb.jw(c.oc);else for(a=this.Ne,b=this.e.length;a<b;++a)this.e[a].Id=a;this.ng=!1;this.Ne=-1}};b.prototype.Bc=function(a){return this.rv()*(this.b.Oc||a?this.b.Hh:1)};b.prototype.rv=function(){return(this.scale*this.ob.scale-1)*this.Jd+1};b.prototype.lb=function(){return this.le?0:Ja(this.ob.k+this.k)};var a=[],c=[],u=[];b.prototype.Fm=function(){this.no();this.Jb.hl(this.Aa,this.Ba,this.Ea,this.Da,u);if(!u.length)return n();if(1===u.length){var a=n();
Aa(a,u[0]);A(u);return a}for(var b=!0;1<u.length;){for(var a=u,f=void 0,d=void 0,g=void 0,q=void 0,C=void 0,f=0,d=a.length;f<d-1;f+=2){var g=a[f],q=a[f+1],C=n(),h=g,l=q,D=C,Q=0,y=0,X=0,G=h.length,v=l.length,L=void 0,P=void 0;for(D.length=G+v;Q<G&&y<v;++X)L=h[Q],P=l[y],L.Id<P.Id?(D[X]=L,++Q):(D[X]=P,++y);for(;Q<G;++Q,++X)D[X]=h[Q];for(;y<v;++y,++X)D[X]=l[y];b||(m(g),m(q));c.push(C)}1===d%2&&(b?(g=n(),Aa(g,a[d-1]),c.push(g)):c.push(a[d-1]));Aa(a,c);A(c);b=!1}a=u[0];A(u);return a};b.prototype.me=function(a){this.Zd=
this.gk||1!==this.opacity||0!==this.Nb;var b=this.b.canvas,c=a,f=!1;this.Zd&&(this.b.Ak||(this.b.Ak=document.createElement("canvas"),b=this.b.Ak,b.width=this.b.K,b.height=this.b.J,this.b.Vp=b.getContext("2d"),f=!0),b=this.b.Ak,c=this.b.Vp,b.width!==this.b.K&&(b.width=this.b.K,f=!0),b.height!==this.b.J&&(b.height=this.b.J,f=!0),f&&this.b.ol(c,this.b.Ya),this.Gd&&c.clearRect(0,0,this.b.K,this.b.J));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Gd||(c.fillStyle="rgb("+this.td[0]+","+
this.td[1]+","+this.td[2]+")",c.fillRect(0,0,this.b.K,this.b.J));c.save();this.le=!0;var f=this.Db(0,0,!0,!0),d=this.Db(0,0,!1,!0);this.le=!1;this.b.Ce&&(f=Math.round(f),d=Math.round(d));this.jl(f,d,c);var g=this.Bc();c.scale(g,g);c.translate(-f,-d);this.Xc?(this.Eb.left=this.Jb.$b(this.Aa),this.Eb.top=this.Jb.ac(this.Ba),this.Eb.right=this.Jb.$b(this.Ea),this.Eb.bottom=this.Jb.ac(this.Da),this.Ed||!this.Eb.Qh(this.Wg)?(m(this.xe),f=this.Fm(),this.Ed=!1,this.Wg.Lh(this.Eb)):f=this.xe):f=this.e;for(var n,
h=null,d=0,g=f.length;d<g;++d)n=f[d],n!==h&&(this.mu(n,c),h=n);this.Xc&&(this.xe=f);c.restore();this.Zd&&(a.globalCompositeOperation=this.Kh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.mu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Ha;c.right<this.Aa||c.bottom<this.Ba||c.left>this.Ea||c.top>this.Da||(b.globalCompositeOperation=a.Kh,a.me(b))}};b.prototype.Il=function(){this.le=!0;var a=this.Db(0,0,!0,!0),b=this.Db(0,0,!1,!0);this.le=!1;this.b.Ce&&(a=Math.round(a),
b=Math.round(b));this.jl(a,b,null)};b.prototype.jl=function(a,b,c){var f=this.Bc();this.Aa=a;this.Ba=b;this.Ea=a+1/f*this.b.K;this.Da=b+1/f*this.b.J;this.Aa>this.Ea&&(a=this.Aa,this.Aa=this.Ea,this.Ea=a);this.Ba>this.Da&&(a=this.Ba,this.Ba=this.Da,this.Da=a);a=this.lb();0!==a&&(c&&(c.translate(this.b.K/2,this.b.J/2),c.rotate(-a),c.translate(this.b.K/-2,this.b.J/-2)),this.Je.set(this.Aa,this.Ba,this.Ea,this.Da),this.Je.offset((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2),this.Pr.tr(this.Je,a),this.Pr.Qo(this.Je),
this.Je.offset((this.Aa+this.Ea)/2,(this.Ba+this.Da)/2),this.Aa=this.Je.left,this.Ba=this.Je.top,this.Ea=this.Je.right,this.Da=this.Je.bottom)};b.prototype.zg=function(a){if(this.Zd=this.gk){this.b.nb||(this.b.nb=a.Lc(this.b.K,this.b.J,this.b.Ya));if(this.b.nb.Ef!==this.b.K||this.b.nb.Df!==this.b.J)a.deleteTexture(this.b.nb),this.b.nb=a.Lc(this.b.K,this.b.J,this.b.Ya);a.ld(this.b.nb)}this.le=!0;var b=this.Db(0,0,!0,!0),c=this.Db(0,0,!1,!0);this.le=!1;this.b.Ce&&(b=Math.round(b),c=Math.round(c));this.jl(b,
c,null);b=this.Bc();a.kd();a.scale(b,b);a.kl(-this.lb());a.translate((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2);a.Wc();this.Xc?(this.Eb.left=this.Jb.$b(this.Aa),this.Eb.top=this.Jb.ac(this.Ba),this.Eb.right=this.Jb.$b(this.Ea),this.Eb.bottom=this.Jb.ac(this.Da),this.Ed||!this.Eb.Qh(this.Wg)?(m(this.xe),b=this.Fm(),this.Ed=!1,this.Wg.Lh(this.Eb)):b=this.xe):b=this.e;for(var f,d=null,c=b.length-1;0<=c;--c)f=b[c],f!==d&&(this.ou(b[c],a),d=f);this.Xc&&(this.xe=b);this.Gd||(this.dm=this.b.Jf++,a.pl(this.dm),
a.lr(1,1,1),a.pp(),a.Rw())};b.prototype.bd=function(a){var b=0,c=0;if(this.Zd=this.gk||1!==this.opacity||0<this.ma.length||0!==this.Nb){this.b.nb||(this.b.nb=a.Lc(this.b.K,this.b.J,this.b.Ya));if(this.b.nb.Ef!==this.b.K||this.b.nb.Df!==this.b.J)a.deleteTexture(this.b.nb),this.b.nb=a.Lc(this.b.K,this.b.J,this.b.Ya);a.ld(this.b.nb);this.Gd&&a.clear(0,0,0,0)}this.Gd||(this.b.Ga?(a.pl(this.dm),a.lr(this.td[0]/255,this.td[1]/255,this.td[2]/255),a.pp(),a.jx()):a.clear(this.td[0]/255,this.td[1]/255,this.td[2]/
255,1));this.le=!0;var f=this.Db(0,0,!0,!0),b=this.Db(0,0,!1,!0);this.le=!1;this.b.Ce&&(f=Math.round(f),b=Math.round(b));this.jl(f,b,null);f=this.Bc();a.kd();a.scale(f,f);a.kl(-this.lb());a.translate((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2);a.Wc();this.Xc?(this.Eb.left=this.Jb.$b(this.Aa),this.Eb.top=this.Jb.ac(this.Ba),this.Eb.right=this.Jb.$b(this.Ea),this.Eb.bottom=this.Jb.ac(this.Da),this.Ed||!this.Eb.Qh(this.Wg)?(m(this.xe),b=this.Fm(),this.Ed=!1,this.Wg.Lh(this.Eb)):b=this.xe):b=this.e;var d,
g,n=null,c=0;for(d=b.length;c<d;++c)g=b[c],g!==n&&(this.nu(b[c],a),n=g);this.Xc&&(this.xe=b);this.Zd&&(b=this.ma.length?this.ma[0].hb:0,c=this.ma.length?this.ma[0].index:0,0===this.ma.length||1===this.ma.length&&!a.Jn(b)&&1===this.opacity?(1===this.ma.length?(a.sc(b),a.oh(this.ob.Yh(),1/this.b.K,1/this.b.J,0,0,1,1,f,this.lb(),this.Aa,this.Ba,(this.Aa+this.Ea)/2,(this.Ba+this.Da)/2,this.b.yb.Z,this.Sa[c]),a.el(b)&&(this.b.ya=!0)):a.sc(0),a.ld(this.ob.Yh()),a.nh(this.opacity),a.Uc(this.b.nb),a.uf(this.Tb,
this.Pb),a.kd(),a.Wc(),f=this.b.K/2,b=this.b.J/2,a.Ui(-f,b,f,b,f,-b,-f,-b),a.Uc(null)):this.ob.Nn(a,this,null,this.ob.Yh()))};b.prototype.nu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Ha;c.right<this.Aa||c.bottom<this.Ba||c.left>this.Ea||c.top>this.Da||(b.pl(a.Jf),a.as?this.pu(a,b):(b.sc(0),b.uf(a.Tb,a.Pb),a.bd(b)))}};b.prototype.ou=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Ha;c.right<this.Aa||c.bottom<this.Ba||c.left>this.Ea||c.top>this.Da||
(a.Jf=this.b.Jf++,0===a.Nb&&1===a.opacity&&a.Ge&&a.zg&&(b.pl(a.Jf),a.zg(b)))}};b.prototype.pu=function(a,b){var c=a.ma[0].hb,f=a.ma[0].index,d=this.Bc();if(1!==a.ma.length||b.Jn(c)||b.Jw(c)||(a.k||a.j.lb())&&b.Qi(c)||1!==a.opacity||a.type.Ma.vq)this.ob.Nn(b,this,a,this.Zd?this.b.nb:this.ob.Yh()),b.kd(),b.scale(d,d),b.kl(-this.lb()),b.translate((this.Aa+this.Ea)/-2,(this.Ba+this.Da)/-2),b.Wc();else{b.sc(c);b.uf(a.Tb,a.Pb);b.el(c)&&(this.b.ya=!0);var g=0,m=0,h=0,l=0;b.Qi(c)&&(l=a.Ha,g=this.La(l.left,
l.top,!0,!0),m=this.La(l.left,l.top,!1,!0),h=this.La(l.right,l.bottom,!0,!0),l=this.La(l.right,l.bottom,!1,!0),g=g/windowWidth,m=1-m/windowHeight,h=h/windowWidth,l=1-l/windowHeight);var n;a.Ra&&a.Ra.Cb?(n=a.Ra.Cb,c=1/n.width,n=1/n.height):(c=1/a.width,n=1/a.height);b.oh(this.Zd?this.b.nb:this.ob.Yh(),c,n,g,m,h,l,d,this.lb(),this.Aa,this.Ba,(this.Aa+this.Ea)/2,(this.Ba+this.Da)/2,this.b.yb.Z,a.Sa[f]);a.bd(b)}};b.prototype.Db=function(a,b,c,f){var d=this.b.devicePixelRatio;this.b.Uf&&(a*=d,b*=d);var d=
this.b.Sq,g=this.b.Tq,d=(this.ob.scrollX-d)*this.gd+d,g=(this.ob.scrollY-g)*this.hd+g,m=d,h=g,l=1/this.Bc(!f);f?(m-=this.b.K*l/2,h-=this.b.J*l/2):(m-=this.b.width*l/2,h-=this.b.height*l/2);m+=a*l;h+=b*l;b=this.lb();0!==b&&(m-=d,h-=g,a=Math.cos(b),b=Math.sin(b),f=m*a-h*b,h=h*a+m*b,m=f+d,h+=g);return c?m:h};b.prototype.La=function(a,b,c,f){var d=this.b.Sq,g=this.b.Tq,m=(this.ob.scrollX-d)*this.gd+d,h=(this.ob.scrollY-g)*this.hd+g,g=m,d=h,l=this.lb();if(0!==l){a-=m;b-=h;var n=Math.cos(-l),l=Math.sin(-l),
u=a*n-b*l;b=b*n+a*l;a=u+m;b+=h}m=1/this.Bc(!f);f?(g-=this.b.K*m/2,d-=this.b.J*m/2):(g-=this.b.width*m/2,d-=this.b.height*m/2);g=(a-g)/m;d=(b-d)/m;a=this.b.devicePixelRatio;this.b.Uf&&!f&&(g/=a,d/=a);return c?g:d};b.prototype.Sb=function(){var a,b,c,f={s:this.scale,a:this.k,vl:this.Aa,vt:this.Ba,vr:this.Ea,vb:this.Da,v:this.visible,bc:this.td,t:this.Gd,px:this.gd,py:this.hd,o:this.opacity,zr:this.Jd,fx:[],cg:this.Nh,instances:[]};a=0;for(b=this.O.length;a<b;a++)c=this.O[a],f.fx.push({name:c.name,active:c.Wa,
params:this.Sa[c.index]});return f};b.prototype.mc=function(a){var b,c,f;this.scale=a.s;this.k=a.a;this.Aa=a.vl;this.Ba=a.vt;this.Ea=a.vr;this.Da=a.vb;this.visible=a.v;this.td=a.bc;this.Gd=a.t;this.gd=a.px;this.hd=a.py;this.opacity=a.o;this.Jd=a.zr;this.Nh=a.cg||[];Aa(this.Qc,this.Fr);var d=new da;b=0;for(f=this.Nh.length;b<f;++b)d.add(this.Nh[b]);c=b=0;for(f=this.Qc.length;b<f;++b)d.contains(this.Qc[b][2])||(this.Qc[c]=this.Qc[b],++c);za(this.Qc,c);c=a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.zm(c[b].name))a.Wa=
c[b].active,this.Sa[a.index]=c[b].params;this.Hd();this.e.sort(g);this.ng=!0};Yb=b})();
(function(){function d(a,b){var c,e=a.length;switch(e){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<e;c++)if(a[c]!==b[c])return!1;return!0}}function g(a,b){return a.index-b.index}function b(a){var b,c,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(g);a.length>=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);f=w[a.length];b=0;for(c=f.length;b<c;b++)if(e=f[b],d(a,e))return e;f.push(a);return a}
function n(a,b){this.b=a;this.Rr={};this.hp={};this.Km=!1;this.Bp=new da;this.jm=[];this.Rl=[];this.name=b[0];var c=b[1];this.$e=[];var e,f;e=0;for(f=c.length;e<f;e++)this.Dp(c[e],null,this.$e)}function m(a){this.type=a;this.e=[];this.aa=[];this.ta=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.za=[];this.vf=[];this.Ap=this.Dl=this.co=this.pk=this.group=this.Dr=!1;this.ub=[];this.qd=[];this.md=[];this.$h="";this.Ig=this.pk=this.group=!1;this.Lj=null;c[1]&&(this.$h=c[1][1].toLowerCase(),
this.group=!0,this.pk=!!c[1][0],this.Lj=[],this.Ig=this.pk,this.b.Re.push(this),this.b.ai[this.$h]=this);this.ed=c[2];this.Y=c[4];this.group||(this.b.Po[this.Y.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var f=new Zb(this,e[a]);f.index=a;this.ub.push(f);this.Ko(f.type)}e=c[6];a=0;for(b=e.length;a<b;a++)f=new $b(this,e[a]),f.index=a,this.qd.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Dp(c[a],this,this.md);this.wk=!1;this.ub.length&&(this.wk=null==this.ub[0].type&&
this.ub[0].Fb==N.prototype.q.ss)}function f(a,b){var c,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.lc))for(c=0,e=a.zc.length;c<e;c++)f=a.zc[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.Kc=a;this.sheet=a.sheet;this.b=a.b;this.U=[];this.Ta=[];this.I={};this.index=-1;this.Eh=!1;this.Fb=this.b.Oe(b[1]);this.trigger=0<b[3];this.gp=2===b[3];this.Ud=b[4];this.Rm=b[5];this.ew=b[6];this.Y=b[7];this.b.Ue[this.Y.toString()]=this;-1===b[0]?(this.type=null,this.gb=this.Rn,this.Cf=null,this.ud=-1):
(this.type=this.b.A[b[0]],this.gb=this.ew?this.Yw:this.Qn,b[2]?(this.Cf=this.type.jk(b[2]),this.ud=this.type.xm(b[2])):(this.Cf=null,this.ud=-1),this.Kc.parent&&this.Kc.parent.ql());this.gp&&(this.gb=this.Zw);if(10===b.length){var c,e,f=b[9];c=0;for(e=f.length;c<e;c++){var d=new ac(this,f[c]);this.U.push(d)}this.Ta.length=f.length}}function c(a,b){this.Kc=a;this.sheet=a.sheet;this.b=a.b;this.U=[];this.Ta=[];this.I={};this.index=-1;this.Eh=!1;this.Fb=this.b.Oe(b[1]);-1===b[0]?(this.type=null,this.gb=
this.Rn,this.Cf=null,this.ud=-1):(this.type=this.b.A[b[0]],this.gb=this.Qn,b[2]?(this.Cf=this.type.jk(b[2]),this.ud=this.type.xm(b[2])):(this.Cf=null,this.ud=-1));this.Y=b[3];this.b.Qe[this.Y.toString()]=this;if(6===b.length){var c,e,f=b[5];c=0;for(e=f.length;c<e;c++){var d=new ac(this,f[c]);this.U.push(d)}this.Ta.length=f.length}}function u(){C++;B.length===C&&B.push(new bc);return B[C]}function e(a,b){this.fd=a;this.Kc=a.Kc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Pd=null;this.He=0;this.get=
null;this.Xo=0;this.ob=null;this.key=0;this.object=null;this.index=0;this.oj=this.kg=this.oj=this.kg=this.kp=this.Mf=this.pj=null;this.od=!1;var c,e,f;switch(b[0]){case 0:case 7:this.Pd=new cc(this,b[1]);this.He=0;this.get=this.Bv;break;case 1:this.Pd=new cc(this,b[1]);this.He=0;this.get=this.Cv;break;case 5:this.Pd=new cc(this,b[1]);this.He=0;this.get=this.Gv;break;case 3:case 8:this.Xo=b[1];this.get=this.zv;break;case 6:this.ob=this.b.hn[b[1]];this.get=this.Hv;break;case 9:this.key=b[1];this.get=
this.Fv;break;case 4:this.object=this.b.A[b[1]];this.get=this.Iv;this.Kc.Ko(this.object);this.fd instanceof $b?this.Kc.ql():this.Kc.parent&&this.Kc.parent.ql();break;case 10:this.index=b[1];a.type&&a.type.T?(this.get=this.Dv,this.od=!0):this.get=this.Ev;break;case 11:this.pj=b[1];this.Mf=null;this.get=this.Av;break;case 2:case 12:this.kp=b[1];this.get=this.yv;break;case 13:for(this.get=this.Jv,this.kg=[],this.oj=[],c=1,e=b.length;c<e;c++)f=new ac(this.fd,b[c]),this.kg.push(f),this.oj.push(0)}}function k(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.za=[];this.name=c[1];this.qj=c[2];this.Om=c[3];this.oi=!!c[4];this.vk=!!c[5];this.Y=c[6];this.b.Ah[this.Y.toString()]=this;this.data=this.Om;this.parent?(this.bg=this.oi||this.vk?-1:this.b.mx++,this.b.Ft.push(this)):(this.bg=-1,this.b.Et.push(this))}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.za=[];this.ci=null;this.Pv=c[1];this.Wa=!0}function p(){this.Hr=[];this.reset(null)}var w=[];n.prototype.toString=function(){return this.name};
n.prototype.Dp=function(a,b,c){switch(a[0]){case 0:a=new dc(this,b,a);if(a.ed)for(c.push(a),c=0,b=a.ub.length;c<b;c++)a.ub[c].trigger&&this.Ep(a,c);else a.Np()?this.Ep(a,0):c.push(a);break;case 1:a=new Vb(this,b,a);c.push(a);break;case 2:a=new ec(this,b,a),c.push(a)}};n.prototype.Za=function(){var a,b;a=0;for(b=this.$e.length;a<b;a++)this.$e[a].Za(a<b-1&&this.$e[a+1].wk)};n.prototype.ko=function(){A(this.jm);A(this.Rl);this.Jo(this);A(this.Rl)};n.prototype.Jo=function(a){var b,c,e,f,d=a.jm,k=a.Rl,
g=this.Bp.yf();b=0;for(c=g.length;b<c;++b)e=g[b],f=e.ci,!e.Wa||a===f||-1<k.indexOf(f)||(k.push(f),f.Jo(a),d.push(f))};n.prototype.gb=function(a){this.b.wz||(this.Km=!0,a||(this.b.Xm=!0));var b,c;b=0;for(c=this.$e.length;b<c;b++){var e=this.$e[b];e.gb();this.b.cm(e.za);this.b.df&&this.b.Mb()}a||(this.b.Xm=!1)};n.prototype.Ep=function(a,b){a.ed||this.b.Fl.push(a);var c,e,f=a.ub[b],d;f.type?d=f.type.name:d="system";var k=(c=f.gp)?this.hp:this.Rr;k[d]||(k[d]=[]);d=k[d];k=f.Fb;if(c){if(f.U.length&&(f=
f.U[0],1===f.type&&2===f.Pd.type)){f=f.Pd.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==k){c=d[c].Rh;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];d.push({method:k,Rh:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==k){d[c].Rh.push([a,b]);return}sc&&k===sc.prototype.q.rg?d.unshift({method:k,Rh:[[a,b]]}):d.push({method:k,Rh:[[a,b]]})}};Lb=n;m.prototype.Jm=function(){return this.ta?this.type.e.length:this.e.length};m.prototype.Ac=function(){return this.ta?this.type.e:
this.e};m.prototype.Pi=function(a){a&&(a.b.Gb().ic.ed?(this.ta&&(A(this.e),Aa(this.aa,a.type.e),this.ta=!1),a=this.aa.indexOf(a),-1!==a&&(this.e.push(this.aa[a]),this.aa.splice(a,1))):(this.ta=!1,A(this.e),this.e[0]=a))};ob=m;window._c2hh_="45B4A76D7A0605FB4E1DB4B29DA2921537A67D4C";q.prototype.Za=function(a){var c,e=this.parent;if(this.group)for(this.Dl=!0;e;){if(!e.group){this.Dl=!1;break}e=e.parent}this.co=!this.Np()&&(!this.parent||this.parent.group&&this.parent.Dl);this.Ap=!!a;this.vf=this.za.slice(0);
for(e=this.parent;e;){a=0;for(c=e.za.length;a<c;a++)this.Bt(e.za[a]);e=e.parent}this.za=b(this.za);this.vf=b(this.vf);a=0;for(c=this.ub.length;a<c;a++)this.ub[a].Za();a=0;for(c=this.qd.length;a<c;a++)this.qd[a].Za();a=0;for(c=this.md.length;a<c;a++)this.md[a].Za(a<c-1&&this.md[a+1].wk)};q.prototype.or=function(a){if(this.Ig!==!!a){this.Ig=!!a;var b;a=0;for(b=this.Lj.length;a<b;++a)this.Lj[a].Wr();0<b&&this.b.wa.Lf&&this.b.wa.Lf.ko()}};q.prototype.Ko=function(a){f(a,this.za)};q.prototype.Bt=function(a){f(a,
this.vf)};q.prototype.ql=function(){this.Dr=!0;this.parent&&this.parent.ql()};q.prototype.Np=function(){return this.ub.length?this.ub[0].trigger:!1};q.prototype.gb=function(){var a,b,c=!1,e=this.b,f=this.b.Gb();f.ic=this;var d=this.ub;this.wk||(f.mm=!1);if(this.ed){0===d.length&&(c=!0);f.tb=0;for(a=d.length;f.tb<a;f.tb++)b=d[f.tb],b.trigger||(b=b.gb())&&(c=!0);(f.Yf=c)&&this.ll()}else{f.tb=0;for(a=d.length;f.tb<a;f.tb++)if(b=d[f.tb].gb(),!b){f.Yf=!1;this.co&&e.df&&e.Mb();return}f.Yf=!0;this.ll()}this.uu(f)};
q.prototype.uu=function(a){a.Yf&&this.Ap&&(a.mm=!0);this.co&&this.b.df&&this.b.Mb()};q.prototype.Ww=function(a){this.b.Gb().ic=this;this.ub[a].gb()&&(this.ll(),this.b.Gb().Yf=!0)};q.prototype.ll=function(){var a=this.b.Gb(),b;a.xc=0;for(b=this.qd.length;a.xc<b;a.xc++)if(this.qd[a.xc].gb())return;this.hr()};q.prototype.Tw=function(){var a=this.b.Gb(),b;for(b=this.qd.length;a.xc<b;a.xc++)if(this.qd[a.xc].gb())return;this.hr()};q.prototype.hr=function(){if(this.md.length){var a,b,c,e,f=this.md.length-
1;this.b.fl(this);if(this.Dr)for(a=0,b=this.md.length;a<b;a++)c=this.md[a],(e=!this.Dl||!this.group&&a<f)&&this.b.Ti(c.za),c.gb(),e?this.b.qf(c.za):this.b.cm(c.za);else for(a=0,b=this.md.length;a<b;a++)this.md[a].gb();this.b.bl()}};q.prototype.Xw=function(){var a=this.b.Gb();a.ic=this;var b=!1,c;a.tb=0;for(c=this.ub.length;a.tb<c;a.tb++)if(this.ub[a.tb].gb())b=!0;else if(!this.ed)return!1;return this.ed?b:!0};q.prototype.fr=function(){this.b.Sh++;var a=this.b.Gb().tb,b=this.b.fl(this);if(!this.ed)for(b.tb=
a+1,a=this.ub.length;b.tb<a;b.tb++)if(!this.ub[b.tb].gb()){this.b.bl();return}this.ll();this.b.bl()};q.prototype.Xv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.ub[b].type===a.type)return!1;return!0};dc=q;a.prototype.Za=function(){var a,b,c;a=0;for(b=this.U.length;a<b;a++)c=this.U[a],c.Za(),c.od&&(this.Eh=!0)};a.prototype.Zw=function(){return!0};a.prototype.Rn=function(){var a,b;a=0;for(b=this.U.length;a<b;a++)this.Ta[a]=this.U[a].get();return Ua(this.Fb.apply(this.b.$d,this.Ta),
this.Rm)};a.prototype.Yw=function(){var a,b;a=0;for(b=this.U.length;a<b;a++)this.Ta[a]=this.U[a].get();a=this.Fb.apply(this.Cf?this.Cf:this.type,this.Ta);this.type.Yc();return a};a.prototype.Qn=function(){var a,b,c,e,f,d,k,g,p=this.type,m=p.ba(),n=this.Kc.ed&&!this.trigger;b=0;var u=p.lc,q=p.T,r=p.oe,w=this.ud,B=-1<w,C=this.Eh,J=this.U,z=this.Ta,x=this.Rm,t=this.Fb,H;if(C)for(b=0,f=J.length;b<f;++b)d=J[b],d.od||(z[b]=d.get(0));else for(b=0,f=J.length;b<f;++b)z[b]=J[b].get(0);if(m.ta){A(m.e);A(m.aa);
H=p.e;a=0;for(e=H.length;a<e;++a){g=H[a];if(C)for(b=0,f=J.length;b<f;++b)d=J[b],d.od&&(z[b]=d.get(a));B?(b=0,q&&(b=g.type.Dg[r]),b=t.apply(g.N[w+b],z)):b=t.apply(g,z);(k=Ua(b,x))?m.e.push(g):n&&m.aa.push(g)}p.finish&&p.finish(!0);m.ta=!1;p.Yc();return m.Jm()}c=0;H=(k=n&&!this.Kc.Xv(this))?m.aa:m.e;var F=!1;a=0;for(e=H.length;a<e;++a){g=H[a];if(C)for(b=0,f=J.length;b<f;++b)d=J[b],d.od&&(z[b]=d.get(a));B?(b=0,q&&(b=g.type.Dg[r]),b=t.apply(g.N[w+b],z)):b=t.apply(g,z);if(Ua(b,x))if(F=!0,k){if(m.e.push(g),
u)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.ba().e.push(d)}else{H[c]=g;if(u)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.ba().e[c]=d;c++}else if(k){H[c]=g;if(u)for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.ba().aa[c]=d;c++}else if(n&&(m.aa.push(g),u))for(b=0,f=g.siblings.length;b<f;b++)d=g.siblings[b],d.type.ba().aa.push(d)}za(H,c);if(u)for(q=p.zc,a=0,e=q.length;a<e;a++)g=q[a].ba(),k?za(g.aa,c):za(g.e,c);c=F;if(k&&!F)for(a=0,e=m.e.length;a<e;a++){g=m.e[a];
if(C)for(b=0,f=J.length;b<f;b++)d=J[b],d.od&&(z[b]=d.get(a));b=B?t.apply(g.N[w],z):t.apply(g,z);if(Ua(b,x)){F=!0;break}}p.finish&&p.finish(c||n);return n?F:m.Jm()};Zb=a;c.prototype.Za=function(){var a,b,c;a=0;for(b=this.U.length;a<b;a++)c=this.U[a],c.Za(),c.od&&(this.Eh=!0)};c.prototype.Rn=function(){var a=this.b,b,c,e=this.U,f=this.Ta;b=0;for(c=e.length;b<c;++b)f[b]=e[b].get();return this.Fb.apply(a.$d,f)};c.prototype.Qn=function(){var a=this.type,b=this.ud,c=a.oe,e=this.Eh,f=this.U,d=this.Ta,k=
this.Fb,g=a.ba().Ac(),a=a.T,p=-1<b,m,n,u,q,r,w;if(e)for(n=0,q=f.length;n<q;++n)r=f[n],r.od||(d[n]=r.get(0));else for(n=0,q=f.length;n<q;++n)d[n]=f[n].get(0);m=0;for(u=g.length;m<u;++m){w=g[m];if(e)for(n=0,q=f.length;n<q;++n)r=f[n],r.od&&(d[n]=r.get(m));p?(n=0,a&&(n=w.type.Dg[c]),k.apply(w.N[b+n],d)):k.apply(w,d)}return!1};$b=c;var B=[],C=-1;e.prototype.Za=function(){var a,b;if(11===this.type)this.Mf=this.b.up(this.pj,this.Kc.parent);else if(13===this.type)for(a=0,b=this.kg.length;a<b;a++)this.kg[a].Za();
this.Pd&&this.Pd.Za()};e.prototype.lw=function(a){this.od||!a||a.Ma.ul||(this.od=!0)};e.prototype.rr=function(){this.od=!0};e.prototype.Bv=function(a){this.He=a||0;a=u();this.Pd.get(a);C--;return a.data};e.prototype.Cv=function(a){this.He=a||0;a=u();this.Pd.get(a);C--;return ka(a.data)?a.data:""};e.prototype.Iv=function(){return this.object};e.prototype.zv=function(){return this.Xo};e.prototype.Gv=function(a){this.He=a||0;a=u();this.Pd.get(a);C--;return a.xb()?this.b.Xh(a.data):this.b.Dm(a.data)};
e.prototype.Hv=function(){return this.ob};e.prototype.Fv=function(){return this.key};e.prototype.Ev=function(){return this.index};e.prototype.Dv=function(a){a=a||0;var b=this.fd.type,c=null,c=b.ba(),e=c.Ac();if(e.length)c=e[a%e.length].type;else if(c.aa.length)c=c.aa[a%c.aa.length].type;else if(b.e.length)c=b.e[a%b.e.length].type;else return 0;return this.index+c.$j[b.oe]};e.prototype.Av=function(){return this.Mf};e.prototype.yv=function(){return this.kp};e.prototype.Jv=function(){var a,b;a=0;for(b=
this.kg.length;a<b;a++)this.oj[a]=this.kg[a].get();return this.oj};ac=e;k.prototype.Za=function(){this.za=b(this.za)};k.prototype.Fe=function(a){var b=this.b.tp();this.parent&&!this.oi&&b?(this.bg>=b.length&&(b.length=this.bg+1),b[this.bg]=a):this.data=a};k.prototype.Of=function(){var a=this.b.tp();return!this.parent||this.oi||!a||this.vk?this.data:this.bg>=a.length||"undefined"===typeof a[this.bg]?this.Om:a[this.bg]};k.prototype.gb=function(){!this.parent||this.oi||this.vk||this.Fe(this.Om)};Vb=
k;r.prototype.toString=function(){return"include:"+this.ci.toString()};r.prototype.Za=function(){this.ci=this.b.pm[this.Pv];this.sheet.Bp.add(this);this.za=b(this.za);for(var a=this.parent;a;)a.group&&a.Lj.push(this),a=a.parent;this.Wr()};r.prototype.gb=function(){this.parent&&this.b.Si(this.b.A);this.ci.Km||this.ci.gb(!0);this.parent&&this.b.qf(this.b.A)};r.prototype.Wr=function(){for(var a=this.parent;a;){if(a.group&&!a.Ig){this.Wa=!1;return}a=a.parent}this.Wa=!0};ec=r;p.prototype.reset=function(a){this.ic=
a;this.xc=this.tb=0;A(this.Hr);this.mm=this.Yf=!1};Ub=p})();
(function(){function d(b,a){this.fd=b;this.b=b.b;this.type=a[0];this.get=[this.Mu,this.Iu,this.Vu,this.Yu,this.xu,this.Wu,this.Qu,this.Fu,this.Pu,this.Uu,this.yu,this.Tu,this.Gu,this.Ru,this.Nu,this.Ou,this.Ju,this.Ku,this.Eu,this.Xu,this.Su,this.Lu,this.Du,this.Hu][this.type];var c=null;this.ye=this.U=this.Ta=this.Fb=this.Cl=this.second=this.first=this.value=null;this.ud=-1;this.xd=null;this.bs=-1;this.Mf=this.pj=null;this.lh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new cc(b,a[1]);break;case 18:this.first=new cc(b,a[1]);this.second=new cc(b,a[2]);this.Cl=new cc(b,a[3]);break;case 19:this.Fb=this.b.Oe(a[1]);this.Fb!==N.prototype.wb.random&&this.Fb!==N.prototype.wb.Nt||this.fd.rr();this.Ta=[];this.U=[];3===a.length?(c=a[2],this.Ta.length=c.length+1):this.Ta.length=1;break;case 20:this.ye=this.b.A[a[1]];this.ud=-1;this.Fb=this.b.Oe(a[2]);this.lh=a[3];hc.Function&&this.Fb===hc.Function.prototype.wb.Px&&this.fd.rr();a[4]?this.xd=new cc(b,a[4]):this.xd=null;this.Ta=
[];this.U=[];6===a.length?(c=a[5],this.Ta.length=c.length+1):this.Ta.length=1;break;case 21:this.ye=this.b.A[a[1]];this.lh=a[2];a[3]?this.xd=new cc(b,a[3]):this.xd=null;this.bs=a[4];break;case 22:this.ye=this.b.A[a[1]];this.ye.jk(a[2]);this.ud=this.ye.xm(a[2]);this.Fb=this.b.Oe(a[3]);this.lh=a[4];a[5]?this.xd=new cc(b,a[5]):this.xd=null;this.Ta=[];this.U=[];7===a.length?(c=a[6],this.Ta.length=c.length+1):this.Ta.length=1;break;case 23:this.pj=a[1],this.Mf=null}this.fd.lw(this.ye);4<=this.type&&17>=
this.type&&(this.first=new cc(b,a[1]),this.second=new cc(b,a[2]));if(c){var d,e;d=0;for(e=c.length;d<e;d++)this.U.push(new cc(b,c[d]))}}function g(){++q;m.length===q&&m.push(new bc);return m[q]}function b(b,a,c){var d,e;d=0;for(e=b.length;d<e;++d)b[d].get(c),a[d+1]=c.data}function n(b,a){this.type=b||fc.qg;this.data=a||0;this.gg=null;this.type==fc.qg&&(this.data=Math.floor(this.data))}d.prototype.Za=function(){23===this.type&&(this.Mf=this.fd.b.up(this.pj,this.fd.Kc.parent));this.first&&this.first.Za();
this.second&&this.second.Za();this.Cl&&this.Cl.Za();this.xd&&this.xd.Za();if(this.U){var b,a;b=0;for(a=this.U.length;b<a;b++)this.U[b].Za()}};var m=[],q=-1;d.prototype.Xu=function(f){var a=this.U,c=this.Ta;c[0]=f;f=g();b(a,c,f);--q;this.Fb.apply(this.b.$d,c)};d.prototype.Su=function(f){var a=this.ye,c=this.Ta,d=this.U,e=this.xd,k=this.Fb,m=this.fd.He,p=a.ba(),n=p.Ac();if(!n.length)if(p.aa.length)n=p.aa;else{this.lh?f.Xb(""):f.Ca(0);return}c[0]=f;f.gg=a;f=g();b(d,c,f);e&&(e.get(f),f.xb()&&(m=f.data,
n=a.e));--q;a=n.length;if(m>=a||m<=-a)m%=a;0>m&&(m+=a);k.apply(n[m],c)};d.prototype.Du=function(f){var a=this.ye,c=this.Ta,d=this.U,e=this.xd,k=this.ud,m=this.Fb,p=this.fd.He,n=a.ba(),B=n.Ac();if(!B.length)if(n.aa.length)B=n.aa;else{this.lh?f.Xb(""):f.Ca(0);return}c[0]=f;f.gg=a;f=g();b(d,c,f);e&&(e.get(f),f.xb()&&(p=f.data,B=a.e));--q;d=B.length;if(p>=d||p<=-d)p%=d;0>p&&(p+=d);p=B[p];B=0;a.T&&(B=p.type.Dg[a.oe]);m.apply(p.N[k+B],c)};d.prototype.Lu=function(b){var a=this.xd,c=this.ye,d=this.bs,e=this.fd.He,
k=c.ba(),m=k.Ac();if(!m.length)if(k.aa.length)m=k.aa;else{this.lh?b.Xb(""):b.Ca(0);return}if(a){k=g();a.get(k);if(k.xb()){e=k.data;m=c.e;0!==m.length&&(e%=m.length,0>e&&(e+=m.length));e=c.Cm(e);c=e.mb[d];ka(c)?b.Xb(c):b.G(c);--q;return}--q}a=m.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=m[e];m=0;c.T&&(m=e.type.$j[c.oe]);c=e.mb[d+m];ka(c)?b.Xb(c):b.G(c)};d.prototype.Mu=function(b){b.type=fc.qg;b.data=this.value};d.prototype.Iu=function(b){b.type=fc.pg;b.data=this.value};d.prototype.Vu=function(b){b.type=
fc.String;b.data=this.value};d.prototype.Yu=function(b){this.first.get(b);b.xb()&&(b.data=-b.data)};d.prototype.xu=function(b){this.first.get(b);var a=g();this.second.get(a);b.xb()&&a.xb()&&(b.data+=a.data,a.Mg()&&b.Yg());--q};d.prototype.Wu=function(b){this.first.get(b);var a=g();this.second.get(a);b.xb()&&a.xb()&&(b.data-=a.data,a.Mg()&&b.Yg());--q};d.prototype.Qu=function(b){this.first.get(b);var a=g();this.second.get(a);b.xb()&&a.xb()&&(b.data*=a.data,a.Mg()&&b.Yg());--q};d.prototype.Fu=function(b){this.first.get(b);
var a=g();this.second.get(a);b.xb()&&a.xb()&&(b.data/=a.data,b.Yg());--q};d.prototype.Pu=function(b){this.first.get(b);var a=g();this.second.get(a);b.xb()&&a.xb()&&(b.data%=a.data,a.Mg()&&b.Yg());--q};d.prototype.Uu=function(b){this.first.get(b);var a=g();this.second.get(a);b.xb()&&a.xb()&&(b.data=Math.pow(b.data,a.data),a.Mg()&&b.Yg());--q};d.prototype.yu=function(b){this.first.get(b);var a=g();this.second.get(a);a.Pg()||b.Pg()?this.Au(b,a):this.zu(b,a);--q};d.prototype.Au=function(b,a){b.Pg()&&
a.Pg()?this.Cu(b,a):this.Bu(b,a)};d.prototype.Cu=function(b,a){b.data+=a.data};d.prototype.Bu=function(b,a){b.Pg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Xb(b.data.toString()+a.data)};d.prototype.zu=function(b,a){b.Ca(b.data&&a.data?1:0)};d.prototype.Tu=function(b){this.first.get(b);var a=g();this.second.get(a);b.xb()&&a.xb()&&(b.data||a.data?b.Ca(1):b.Ca(0));--q};d.prototype.Eu=function(b){this.first.get(b);b.data?this.second.get(b):this.Cl.get(b)};d.prototype.Gu=function(b){this.first.get(b);
var a=g();this.second.get(a);b.Ca(b.data===a.data?1:0);--q};d.prototype.Ru=function(b){this.first.get(b);var a=g();this.second.get(a);b.Ca(b.data!==a.data?1:0);--q};d.prototype.Nu=function(b){this.first.get(b);var a=g();this.second.get(a);b.Ca(b.data<a.data?1:0);--q};d.prototype.Ou=function(b){this.first.get(b);var a=g();this.second.get(a);b.Ca(b.data<=a.data?1:0);--q};d.prototype.Ju=function(b){this.first.get(b);var a=g();this.second.get(a);b.Ca(b.data>a.data?1:0);--q};d.prototype.Ku=function(b){this.first.get(b);
var a=g();this.second.get(a);b.Ca(b.data>=a.data?1:0);--q};d.prototype.Hu=function(b){var a=this.Mf.Of();ja(a)?b.G(a):b.Xb(a)};cc=d;n.prototype.Mg=function(){return this.type===fc.pg};n.prototype.xb=function(){return this.type===fc.qg||this.type===fc.pg};n.prototype.Pg=function(){return this.type===fc.String};n.prototype.Yg=function(){this.Mg()||(this.Pg()&&(this.data=parseFloat(this.data)),this.type=fc.pg)};n.prototype.Ca=function(b){this.type=fc.qg;this.data=Math.floor(b)};n.prototype.G=function(b){this.type=
fc.pg;this.data=b};n.prototype.Xb=function(b){this.type=fc.String;this.data=b};n.prototype.kx=function(b){ja(b)?(this.type=fc.pg,this.data=b):ka(b)?(this.type=fc.String,this.data=b.toString()):(this.type=fc.qg,this.data=0)};bc=n;fc={qg:0,pg:1,String:2}})();function N(d){this.b=d;this.wc=[]}
N.prototype.Sb=function(){var d={},g,b,n,m,q,f,a,c;d.waits=[];var u=d.waits,e;g=0;for(b=this.wc.length;g<b;g++){f=this.wc[g];e={t:f.time,st:f.Br,s:f.Xn,ev:f.Ag.Y,sm:[],sols:{}};f.Ag.qd[f.xc]&&(e.act=f.Ag.qd[f.xc].Y);n=0;for(m=f.za.length;n<m;n++)e.sm.push(f.za[n].Y);for(q in f.Yb)if(f.Yb.hasOwnProperty(q)){a=this.b.A[parseInt(q,10)];c={sa:f.Yb[q].ml,insts:[]};n=0;for(m=f.Yb[q].se.length;n<m;n++)c.insts.push(f.Yb[q].se[n].uid);e.sols[a.Y.toString()]=c}u.push(e)}return d};
N.prototype.mc=function(d){d=d.waits;var g,b,n,m,q,f,a,c,u,e,k;A(this.wc);g=0;for(b=d.length;g<b;g++)if(f=d[g],c=this.b.Po[f.ev.toString()]){u=-1;n=0;for(m=c.qd.length;n<m;n++)if(c.qd[n].Y===f.act){u=n;break}if(-1!==u){a={Yb:{},za:[],km:!1};a.time=f.t;a.Br=f.st||"";a.Xn=!!f.s;a.Ag=c;a.xc=u;n=0;for(m=f.sm.length;n<m;n++)(c=this.b.lk(f.sm[n]))&&a.za.push(c);for(q in f.sols)if(f.sols.hasOwnProperty(q)&&(c=this.b.lk(parseInt(q,10)))){u=f.sols[q];e={ml:u.sa,se:[]};n=0;for(m=u.insts.length;n<m;n++)(k=this.b.Nf(u.insts[n]))&&
e.se.push(k);a.Yb[c.index.toString()]=e}this.wc.push(a)}}};
(function(){function d(){}function g(){}function b(){}var n=N.prototype;d.prototype.us=function(){return!0};d.prototype.vo=function(){return!0};d.prototype.Ss=function(){return!0};d.prototype.ts=function(b){var a=this.b.ym(),c=a.I.Every_lastTime||0,d=this.b.yb.Z;"undefined"===typeof a.I.Every_seconds&&(a.I.Every_seconds=b);var e=a.I.Every_seconds;if(d>=c+e)return a.I.Every_lastTime=c+e,d>=a.I.Every_lastTime+.04&&(a.I.Every_lastTime=d),a.I.Every_seconds=b,!0;d<c-.1&&(a.I.Every_lastTime=d);return!1};
d.prototype.ls=function(b,a,c){return gc(b.Of(),a,c)};d.prototype.As=function(b){return(b=this.b.ai[b.toLowerCase()])&&b.Ig};d.prototype.ss=function(){var b=this.b.Gb();return b.mm?!1:!b.Yf};d.prototype.wo=function(){return!0};d.prototype.Hs=function(){return!0};d.prototype.Ol=function(){return!0};d.prototype.zo=function(){return!0};d.prototype.Ts=function(){return!0};d.prototype.vj=function(){return!0};d.prototype.es=function(b,a,c){return Na(E(b),E(c))<=E(a)};d.prototype.zs=function(b,a){return Qa(E(b),
E(a))};d.prototype.ys=function(b,a,c){b=La(b);a=La(a);c=La(c);return Qa(c,a)?Qa(b,a)&&!Qa(b,c):!(!Qa(b,a)&&Qa(b,c))};n.q=new d;g.prototype.vs=function(b){this.b.Rg||this.b.Ff||(this.b.Ff=b)};g.prototype.os=function(b,a,c,d){if(a&&b&&(a=this.b.Yo(b,a,c,d))){this.b.zd++;var e;this.b.trigger(Object.getPrototypeOf(b.Ma).q.tj,a);if(a.lc)for(c=0,d=a.siblings.length;c<d;c++)e=a.siblings[c],this.b.trigger(Object.getPrototypeOf(e.type.Ma).q.tj,e);this.b.zd--;b=b.ba();b.ta=!1;A(b.e);b.e[0]=a;if(a.lc)for(c=
0,d=a.siblings.length;c<d;c++)e=a.siblings[c],b=e.type.ba(),b.ta=!1,A(b.e),b.e[0]=e}};g.prototype.ht=function(b,a){0===b.qj?ja(a)?b.Fe(a):b.Fe(parseFloat(a)):1===b.qj&&b.Fe(a.toString())};g.prototype.ds=function(b,a){0===b.qj?ja(a)?b.Fe(b.Of()+a):b.Fe(b.Of()+parseFloat(a)):1===b.qj&&b.Fe(b.Of()+a.toString())};g.prototype.ot=function(b,a){0===b.qj&&(ja(a)?b.Fe(b.Of()-a):b.Fe(b.Of()-parseFloat(a)))};var m=[],q=[];g.prototype.tt=function(b){if(!(0>b)){var a,c,d,e=this.b.Gb(),k;m.length?k=m.pop():k={Yb:{},
za:[]};k.km=!1;k.time=this.b.yb.Z+b;k.Br="";k.Xn=!1;k.Ag=e.ic;k.xc=e.xc+1;b=0;for(a=this.b.A.length;b<a;b++)d=this.b.A[b],c=d.ba(),c.ta&&-1===e.ic.za.indexOf(d)||(k.za.push(d),d=void 0,q.length?d=q.pop():d={se:[]},d.ml=!1,d.ml=c.ta,Aa(d.se,c.e),k.Yb[b.toString()]=d);this.wc.push(k);return!0}};g.prototype.bt=function(){if(!this.b.Rg&&!this.b.Ff&&this.b.wa){this.b.Ff=this.b.wa;var b,a,c;b=0;for(a=this.b.Re.length;b<a;b++)c=this.b.Re[b],c.or(c.pk)}};n.na=new g;b.prototype["int"]=function(b,a){ka(a)?
(b.Ca(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.Ca(a)};b.prototype["float"]=function(b,a){ka(a)?(b.G(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.G(a)};b.prototype.random=function(b,a,c){void 0===c?b.G(Math.random()*a):b.G(Math.random()*(c-a)+a)};b.prototype.sqrt=function(b,a){b.G(Math.sqrt(a))};b.prototype.abs=function(b,a){b.G(Math.abs(a))};b.prototype.round=function(b,a){b.Ca(Math.round(a))};b.prototype.floor=function(b,a){b.Ca(Math.floor(a))};b.prototype.ceil=function(b,a){b.Ca(Math.ceil(a))};
b.prototype.sin=function(b,a){b.G(Math.sin(E(a)))};b.prototype.cos=function(b,a){b.G(Math.cos(E(a)))};b.prototype.tan=function(b,a){b.G(Math.tan(E(a)))};b.prototype.asin=function(b,a){b.G(Ha(Math.asin(a)))};b.prototype.acos=function(b,a){b.G(Ha(Math.acos(a)))};b.prototype.atan=function(b,a){b.G(Ha(Math.atan(a)))};b.prototype.exp=function(b,a){b.G(Math.exp(a))};b.prototype.log10=function(b,a){b.G(Math.log(a)/Math.LN10)};b.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,
d,e;c=2;for(d=arguments.length;c<d;c++)e=arguments[c],"number"===typeof e&&a<e&&(a=e);b.G(a)};b.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,d,e;c=2;for(d=arguments.length;c<d;c++)e=arguments[c],"number"===typeof e&&a>e&&(a=e);b.G(a)};b.prototype.Ye=function(b){b.G(this.b.Ye)};b.prototype.wh=function(b){b.G(this.b.wh)};b.prototype.time=function(b){b.G(this.b.yb.Z)};b.prototype.ae=function(b){b.Ca(this.b.ae)};b.prototype.Ok=function(b){b.Ca(this.b.Ok)};b.prototype.um=
function(b){b.Ca(this.b.um)};b.prototype.k=function(b,a,c,d,e){b.G(Ha(Ma(a,c,d,e)))};b.prototype.left=function(b,a,c){b.Xb(ka(a)?a.substr(0,c):"")};b.prototype.right=function(b,a,c){b.Xb(ka(a)?a.substr(a.length-c):"")};b.prototype.replace=function(b,a,c,d){ka(a)&&ka(c)&&ka(d)?b.Xb(a.replace(new RegExp(db(c),"gi"),d)):b.Xb(ka(a)?a:"")};b.prototype.trim=function(b,a){b.Xb(ka(a)?a.trim():"")};b.prototype.Nt=function(b){var a=ra(Math.random()*(arguments.length-1));b.kx(arguments[a+1])};b.prototype.em=
function(b){b.G(this.b.em/1E3)};b.prototype.Fk=function(b){b.G(this.b.Fk)};n.wb=new b;n.Vw=function(){var b,a,c,d,e,k,g=this.b.Gb();b=0;for(c=this.wc.length;b<c;b++){d=this.wc[b];if(-1===d.time){if(!d.Xn)continue}else if(d.time>this.b.yb.Z)continue;g.ic=d.Ag;g.xc=d.xc;g.tb=0;for(a in d.Yb)d.Yb.hasOwnProperty(a)&&(e=this.b.A[parseInt(a,10)].ba(),k=d.Yb[a],e.ta=k.ml,Aa(e.e,k.se),e=k,A(e.se),q.push(e));d.Ag.Tw();this.b.cm(d.za);d.km=!0}a=b=0;for(c=this.wc.length;b<c;b++)d=this.wc[b],this.wc[a]=d,d.km?
(Wa(d.Yb),A(d.za),m.push(d)):a++;za(this.wc,a)}})();
(function(){nb=function(d,b){var n=d[1],m=d[3],q=d[4],f=d[5],a=d[6],c=d[7],u=d[8];b.q||(b.q={});b.na||(b.na={});b.wb||(b.wb={});var e=b.q,k=b.na,r=b.wb;m&&(e.ns=function(a,b){return gc(this.x,a,b)},e.Vx=function(a,b){return gc(this.y,a,b)},e.$x=function(){var a=this.j;this.xa();var b=this.Ha;return!(b.right<a.Aa||b.bottom<a.Ba||b.left>a.Ea||b.top>a.Da)},e.ay=function(){this.xa();var a=this.Ha,b=this.b.wa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.qy=function(a,b,c){var e=this.ba(),
h=e.Ac();if(!h.length)return!1;var d=h[0],f=d,k=Sa(d.x,d.y,b,c),g,m,n;g=1;for(m=h.length;g<m;g++)if(d=h[g],n=Sa(d.x,d.y,b,c),0===a&&n<k||1===a&&n>k)k=n,f=d;e.Pi(f);return!0},k.kt=function(a){this.x!==a&&(this.x=a,this.F())},k.Uy=function(a){this.y!==a&&(this.y=a,this.F())},k.et=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},k.Py=function(a,b){var c=a.sv(this);if(c){var e;c.Bm?(e=c.Bm(b,!0),c=c.Bm(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.F()}},k.hy=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.F())},k.gy=function(a,b){0!==b&&(this.x+=Math.cos(E(a))*b,this.y+=Math.sin(E(a))*b,this.F())},r.Eo=function(a){a.G(this.x)},r.Fo=function(a){a.G(this.y)},r.Ye=function(a){a.G(this.b.Wh(this))});q&&(e.Ux=function(a,b){return gc(this.width,a,b)},e.Qx=function(a,b){return gc(this.height,a,b)},k.jt=function(a){this.width!==a&&(this.width=a,this.F())},k.Ky=function(a){this.height!==a&&(this.height=a,this.F())},k.Do=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},r.ut=function(a){a.G(this.width)},r.ws=function(a){a.G(this.height)},r.Mx=function(a){this.xa();a.G(this.Ha.left)},r.Ox=function(a){this.xa();a.G(this.Ha.top)},r.Nx=function(a){this.xa();a.G(this.Ha.right)},r.Lx=function(a){this.xa();a.G(this.Ha.bottom)});f&&(e.es=function(a,b){return Na(this.k,E(b))<=E(a)},e.zs=function(a){return Qa(this.k,E(a))},e.ys=function(a,b){var c=La(a),e=La(b),h=Ja(this.k);return Qa(e,c)?Qa(h,c)&&
!Qa(h,e):!(!Qa(h,c)&&Qa(h,e))},k.Cy=function(a){a=E(Ia(a));isNaN(a)||this.k===a||(this.k=a,this.F())},k.yy=function(a){0===a||isNaN(a)||(this.k+=E(a),this.k=Ja(this.k),this.F())},k.zy=function(a){0===a||isNaN(a)||(this.k-=E(a),this.k=Ja(this.k),this.F())},k.Ay=function(a,b){var c=Oa(this.k,E(b),E(a));isNaN(c)||this.k===c||(this.k=c,this.F())},k.By=function(a,b,c){a=Oa(this.k,Math.atan2(c-this.y,b-this.x),E(a));isNaN(a)||this.k===a||(this.k=a,this.F())},k.Ry=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.k===c||(this.k=c,this.F())},r.Kx=function(a){a.G(Ka(this.k))});n||(e.Rx=function(a,b,c){return gc(this.mb[a],b,c)},e.Yx=function(a){return this.mb[a]},e.ry=function(a,b){var c=this.ba(),e=c.Ac();if(!e.length)return!1;var h=e[0],d=h,f=h.mb[b],k,g,m;k=1;for(g=e.length;k<g;k++)if(h=e[k],m=h.mb[b],0===a&&m<f||1===a&&m>f)f=m,d=h;c.Pi(d);return!0},e.oy=function(a){var b,c,e,h,d;if(this.b.ym().Rm){d=this.ba();if(d.ta)for(d.ta=!1,A(d.e),A(d.aa),e=this.e,b=0,c=e.length;b<c;b++)h=e[b],
h.uid===a?d.aa.push(h):d.e.push(h);else{e=b=0;for(c=d.e.length;b<c;b++)h=d.e[b],d.e[e]=h,h.uid===a?d.aa.push(h):e++;za(d.e,e)}this.Yc();return!!d.e.length}h=this.b.Nf(a);if(!h)return!1;d=this.ba();if(!d.ta&&-1===d.e.indexOf(h))return!1;if(this.T)for(a=h.type.Ja,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.Pi(h),this.Yc(),!0}else if(h.type===this)return d.Pi(h),this.Yc(),!0;return!1},e.tj=function(){return!0},e.Js=function(){return!0},k.My=function(a,b){var c=this.mb;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):
ka(c[a])&&(c[a]=ka(b)?b:b.toString())},k.Jx=function(a,b){var c=this.mb;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):ka(c[a])&&(c[a]=ka(b)?c[a]+b:c[a]+b.toString())},k.Wy=function(a,b){var c=this.mb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},k.Dy=function(a,b){this.mb[a]=b?1:0},k.Yy=function(a){this.mb[a]=1-this.mb[a]},k.qs=function(){this.b.zf(this)},k.Es||(k.Es=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Dk(this,b,!0);this.Kd&&this.Kd();if(this.N)for(a=0,b=this.N.length;a<
b;++a)c=this.N[a],c.Kd&&c.Kd()}),r.Wx=function(a){var b=a.gg.e.length,c,e,d;c=0;for(e=this.b.vd.length;c<e;c++)d=this.b.vd[c],a.gg.T?0<=d.type.Ja.indexOf(a.gg)&&b++:d.type===a.gg&&b++;a.Ca(b)},r.uy=function(a){a.Ca(a.gg.ba().Ac().length)},r.$y=function(a){a.Ca(this.uid)},r.Xx=function(a){a.Ca(this.Zh())},r.uo||(r.uo=function(a){a.Xb(JSON.stringify(this.b.Sn(this,!0)))}));a&&(e.cy=function(){return this.visible},k.it=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ya=!0)},e.Sx=function(a,
b){return gc(jb(100*this.opacity),a,b)},k.Ny=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ya=!0)},r.Opacity=function(a){a.G(jb(100*this.opacity))});c&&(e.Zx=function(a){return a?this.j===a:!1},e.ty=function(a){var b=this.ba(),c=b.Ac();if(!c.length)return!1;var e=c[0],d=e,f,k;f=1;for(k=c.length;f<k;f++)if(e=c[f],0===a){if(e.j.index>d.j.index||e.j.index===d.j.index&&e.Rd()>d.Rd())d=e}else if(e.j.index<d.j.index||e.j.index===d.j.index&&e.Rd()<d.Rd())d=e;b.Pi(d);return!0},
k.ky=function(){var a=this.j,b=a.e;b.length&&b[b.length-1]===this||(a.kh(this,!1),a.Gh(this,!1),this.b.ya=!0)},k.iy=function(){var a=this.j,b=a.e;b.length&&b[0]===this||(a.kh(this,!1),a.Hw(this),this.b.ya=!0)},k.jy=function(a){a&&a!=this.j&&(this.j.kh(this,!0),this.j=a,a.Gh(this,!0),this.b.ya=!0)},k.bz=function(a,b){var c=0===a;if(b){var e=b.lv(this);e&&e.uid!==this.uid&&(this.j.index!==e.j.index&&(this.j.kh(this,!0),this.j=e.j,e.j.Gh(this,!0)),this.j.mw(this,e,c),this.b.ya=!0)}},r.fy=function(a){a.Ca(this.j.Aq)},
r.ey=function(a){a.Xb(this.j.name)},r.az=function(a){a.Ca(this.Rd())});u&&(k.Hy=function(a,b){if(this.b.D){var c=this.type.Am(b);if(!(0>c)){var e=1===a;this.Pe[c]!==e&&(this.Pe[c]=e,this.Hd(),this.b.ya=!0)}}},k.Iy=function(a,b,c){if(this.b.D){var e=this.type.Am(a);0>e||(a=this.type.O[e],e=this.Sa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.D.wv(a.hb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Wa&&(this.b.ya=!0))))}})};Mb=function(){this.Yl=this.Ul=!0;this.type.zj=!0;this.b.ya=!0;var d,b,n=this.Vl;d=0;for(b=
n.length;d<b;++d)n[d](this);this.j.Xc&&this.xa()};Nb=function(d){d&&this.Vl.push(d)};Pb=function(){if(this.Ul){var d=this.Ha,b=this.fc;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Cc*this.width,-this.Dc*this.height);this.k?(d.offset(-this.x,-this.y),b.tr(d,this.k),b.offset(this.x,this.y),b.Qo(d)):b.$i(d);d.normalize();this.Ul=!1;this.Bx()}};var d=new ua(0,0,0,0);Qb=function(){if(this.j.Xc){var g=this.j.Jb,b=this.Ha;d.set(g.$b(b.left),g.ac(b.top),g.$b(b.right),g.ac(b.bottom));
this.oc.Qh(d)||(this.oc.right<this.oc.left?g.update(this,null,d):g.update(this,this.oc,d),this.oc.Lh(d),this.j.Ed=!0)}};Rb=function(){if(this.Yl&&this.he){this.xa();var g=this.type.Kj,b=this.Ha;d.set(g.$b(b.left),g.ac(b.top),g.$b(b.right),g.ac(b.bottom));this.Ve.Qh(d)||(this.Ve.right<this.Ve.left?g.update(this,null,d):g.update(this,this.Ve,d),this.Ve.Lh(d),this.Yl=!1)}};Ob=function(d,b){return this.Ha.Ob(d,b)&&this.fc.Ob(d,b)?this.vh?this.xz(d,b):this.qa&&!this.qa.Lg()?(this.qa.vg(this.width,this.height,
this.k),this.qa.Ob(d-this.x,b-this.y)):!0:!1};Eb=function(){this.type.Gl();return this.Rf};Sb=function(){this.j.no();return this.Id};Tb=function(){A(this.ma);var d,b,n,m=!0;d=0;for(b=this.Pe.length;d<b;d++)this.Pe[d]&&(n=this.type.O[d],this.ma.push(n),n.jd||(m=!1));this.as=!!this.ma.length;this.Ge=m};Fb=function(){return"Inst"+this.br};sb=function(d){if(d&&d.lc&&d.type!=this){var b,n,m;b=0;for(n=d.siblings.length;b<n;b++)if(m=d.siblings[b],m.type==this)return m}d=this.ba().Ac();return d.length?d[0]:
null};tb=function(d){var b=this.ba().Ac();return b.length?b[d.Zh()%b.length]:null};pb=function(){if(this.rh&&!this.T){var d,b;d=0;for(b=this.e.length;d<b;d++)this.e[d].Rf=d;var n=d,m=this.b.vd;d=0;for(b=m.length;d<b;++d)m[d].type===this&&(m[d].Rf=n++);this.rh=!1}};Cb=function(d){if(d<this.e.length)return this.e[d];d-=this.e.length;var b=this.b.vd,n,m;n=0;for(m=b.length;n<m;++n)if(b[n].type===this){if(0===d)return b[n];--d}return null};ub=function(){return this.Ie[this.Od]};vb=function(){this.Od++;
this.Od===this.Ie.length?this.Ie.push(new ob(this)):(this.Ie[this.Od].ta=!0,A(this.Ie[this.Od].aa))};wb=function(){this.Od++;this.Od===this.Ie.length&&this.Ie.push(new ob(this));var d=this.Ie[this.Od],b=this.Ie[this.Od-1];b.ta?d.ta=!0:(d.ta=!1,Aa(d.e,b.e));A(d.aa)};xb=function(){this.Od--};yb=function(d){var b,n,m,q,f,a=0;if(!this.T)for(b=0,n=this.Ja.length;b<n;b++)for(f=this.Ja[b],m=0,q=f.Pa.length;m<q;m++){if(d===f.Pa[m].name)return this.I.lastBehIndex=a,f.Pa[m];a++}b=0;for(n=this.Pa.length;b<n;b++){if(d===
this.Pa[b].name)return this.I.lastBehIndex=a,this.Pa[b];a++}return null};zb=function(d){return this.jk(d)?this.I.lastBehIndex:-1};Ab=function(d){var b,n;b=0;for(n=this.O.length;b<n;b++)if(this.O[b].name===d)return b;return-1};Bb=function(){if(this.lc&&!this.T){var d,b,n,m,q,f,a;this.Gl();f=this.ba();var c=f.ta,u=(d=this.b.Gb())&&d.ic&&d.ic.ed;d=0;for(b=this.zc.length;d<b;d++)if(q=this.zc[d],q!==this&&(q.Gl(),a=q.ba(),a.ta=c,!c)){A(a.e);n=0;for(m=f.e.length;n<m;++n)a.e[n]=q.Cm(f.e[n].Rf);if(u)for(A(a.aa),
n=0,m=f.aa.length;n<m;++n)a.aa[n]=q.Cm(f.aa[n].Rf)}}};Db=function(){return"Type"+this.Y};gc=function(d,b,n){if("undefined"===typeof d||"undefined"===typeof n)return!1;switch(b){case 0:return d===n;case 1:return d!==n;case 2:return d<n;case 3:return d<=n;case 4:return d>n;case 5:return d>=n;default:return!1}}})();
var pc={pixellate:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nuniform mediump float tilesize;\nvoid main(void)\n{\nmediump vec2 tilecount = vec2((1.0 / pixelWidth) / tilesize, (1.0 / pixelHeight) / tilesize);\nmediump vec2 tile = vec2(1.0 / tilecount.x, 1.0 / tilecount.y);\nmediump vec2 halftile = tile / 2.0;\nmediump vec2 tex = floor(vTex / tile) * tile + halftile;\ngl_FragColor = texture2D(samplerFront, tex);\n}",Xj:0,
Yj:0,fm:!1,jd:!1,Sl:!1,U:[["tilesize",0,0]]}};function tc(d){this.b=d}
(function(){function d(){return a.length?a.pop():[]}function g(b){var d,e;d=0;for(e=b.length;d<e;d++)Array.isArray(b[d])&&g(b[d]);A(b);a.push(b)}function b(){}function n(){}function m(){}var q=tc.prototype;q.Oa=function(a){this.Ma=a;this.b=a.b};q.Oa.prototype.la=function(){};q.Fa=function(a){this.type=a;this.b=a.b};var f=q.Fa.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});f.la=function(){this.jc=this.u[0];this.Mc=this.u[1];this.wd=
this.u[2];this.nc||(this.Md=d());var a=this.Md;a.length=this.jc;var b,e,f;for(b=0;b<this.jc;b++)for(a[b]||(a[b]=d()),a[b].length=this.Mc,e=0;e<this.Mc;e++)for(a[b][e]||(a[b][e]=d()),a[b][e].length=this.wd,f=0;f<this.wd;f++)a[b][e][f]=0;this.mp=[];this.np=[];this.op=[];this.pe=-1};f.hg=function(){var a;for(a=0;a<this.jc;a++)g(this.Md[a]);A(this.Md)};f.Nd=function(a,b,e){a=Math.floor(a);b=Math.floor(b);e=Math.floor(e);return isNaN(a)||0>a||a>this.jc-1||isNaN(b)||0>b||b>this.Mc-1||isNaN(e)||0>e||e>this.wd-
1?0:this.Md[a][b][e]};f.set=function(a,b,e,d){a=Math.floor(a);b=Math.floor(b);e=Math.floor(e);isNaN(a)||0>a||a>this.jc-1||isNaN(b)||0>b||b>this.Mc-1||isNaN(e)||0>e||e>this.wd-1||(this.Md[a][b][e]=d)};f.jv=function(){return JSON.stringify({c2array:!0,size:[this.jc,this.Mc,this.wd],data:this.Md})};f.Sb=function(){return{size:[this.jc,this.Mc,this.wd],data:this.Md}};f.mc=function(a){var b=a.size;this.jc=b[0];this.Mc=b[1];this.wd=b[2];this.Md=a.data};f.Ee=function(a,b,e){0>a&&(a=0);0>b&&(b=0);0>e&&(e=
0);if(this.jc!==a||this.Mc!==b||this.wd!==e){this.jc=a;this.Mc=b;this.wd=e;var f,g,m=this.Md;m.length=a;for(a=0;a<this.jc;a++)for(ia(m[a])&&(m[a]=d()),m[a].length=b,f=0;f<this.Mc;f++)for(ia(m[a][f])&&(m[a][f]=d()),m[a][f].length=e,g=0;g<this.wd;g++)ia(m[a][f][g])&&(m[a][f][g]=0)}};f.Tt=function(){return 0<=this.pe&&this.pe<this.mp.length?this.mp[this.pe]:0};f.ru=function(){return 0<=this.pe&&this.pe<this.np.length?this.np[this.pe]:0};f.jz=function(){return 0<=this.pe&&this.pe<this.op.length?this.op[this.pe]:
0};b.prototype.ns=function(a,b,e){return gc(this.Nd(a,0,0),b,e)};f.Ih=function(a){this.b.Ti(a.za);a.fr();this.b.qf(a.za)};q.q=new b;n.prototype.Do=function(a,b,e){this.Ee(a,b,e)};n.prototype.kt=function(a,b){this.set(a,0,0,b)};n.prototype.Co=function(a){var b=0,e=0,d=this.Md;if(0!==this.jc&&0!==this.Mc&&0!==this.wd)switch(a){case 0:d.reverse();break;case 1:for(;b<this.jc;b++)d[b].reverse();break;case 2:for(;b<this.jc;b++)for(e=0;e<this.Mc;e++)d[b][e].reverse()}};q.na=new n;m.prototype.ut=function(a){a.Ca(this.jc)};
m.prototype.ws=function(a){a.Ca(this.Mc)};m.prototype.uo=function(a){a.Xb(this.jv())};q.wb=new m})();function uc(d){this.b=d}
(function(){function d(a){-1===qb.indexOf(a)&&qb.push(a)}function g(a){var b=a.n,c;try{c=b.play()}catch(e){d(a);return}c?c.catch(function(){d(a)}):Jc&&!I.ve&&d(a)}function b(){var a,b,c,e;Kc||Gb||!t||(n(),"running"===t.state&&(Kc=!0));var h=qb.slice(0);A(qb);if(!ha)for(a=0,b=h.length;a<b;++a)c=h[a],c.rc||c.Ec||(e=c.n.play())&&e.catch(function(){d(c)})}function n(){"suspended"===t.state&&t.resume&&t.resume();if(t.createBuffer){var a=t.createBuffer(1,220,22050),b=t.createBufferSource();b.buffer=a;b.connect(t.destination);
c(b)}}function m(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return aa.hasOwnProperty(a)&&aa[a].length?aa[a][0].Pc():t.destination}function f(){return t.createGain?t.createGain():t.createGainNode()}function a(a){return t.createDelay?t.createDelay(a):t.createDelayNode(a)}function c(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function u(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||0,b,c-b)}function e(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function k(a,b,c,e,d,h){this.type="filter";this.Bd=[a,b,c,e,d,h];this.da=f();this.M=f();this.M.gain.value=h;this.L=f();this.L.gain.value=1-h;this.ab=t.createBiquadFilter();this.ab.type="number"===typeof this.ab.type?a:Yc[a];this.ab.frequency.value=b;this.ab.detune&&(this.ab.detune.value=c);this.ab.Q.value=e;this.ab.gain.value=d;this.da.connect(this.ab);this.da.connect(this.L);this.ab.connect(this.M)}function r(b,c,e){this.type="delay";this.Bd=[b,c,e];this.da=f();this.M=f();this.M.gain.value=e;this.L=
f();this.L.gain.value=1-e;this.Gi=f();this.ad=a(b);this.ad.delayTime.value=b;this.Sj=f();this.Sj.gain.value=c;this.da.connect(this.Gi);this.da.connect(this.L);this.Gi.connect(this.M);this.Gi.connect(this.ad);this.ad.connect(this.Sj);this.Sj.connect(this.Gi)}function p(a,b,c,e){this.type="convolve";this.Bd=[b,c,e];this.da=f();this.M=f();this.M.gain.value=c;this.L=f();this.L.gain.value=1-c;this.Gf=t.createConvolver();a&&(this.Gf.normalize=b,this.Gf.buffer=a);this.da.connect(this.Gf);this.da.connect(this.L);
this.Gf.connect(this.M)}function w(b,e,d,h,k){this.type="flanger";this.Bd=[b,e,d,h,k];this.da=f();this.L=f();this.L.gain.value=1-k/2;this.M=f();this.M.gain.value=k/2;this.ak=f();this.ak.gain.value=h;this.ad=a(b+e);this.ad.delayTime.value=b;this.Ab=t.createOscillator();this.Ab.frequency.value=d;this.Ic=f();this.Ic.gain.value=e;this.da.connect(this.ad);this.da.connect(this.L);this.ad.connect(this.M);this.ad.connect(this.ak);this.ak.connect(this.ad);this.Ab.connect(this.Ic);this.Ic.connect(this.ad.delayTime);
c(this.Ab)}function B(a,b,e,d,h,k){this.type="phaser";this.Bd=[a,b,e,d,h,k];this.da=f();this.L=f();this.L.gain.value=1-k/2;this.M=f();this.M.gain.value=k/2;this.ab=t.createBiquadFilter();this.ab.type="number"===typeof this.ab.type?7:"allpass";this.ab.frequency.value=a;this.ab.detune&&(this.ab.detune.value=b);this.ab.Q.value=e;this.Ab=t.createOscillator();this.Ab.frequency.value=h;this.Ic=f();this.Ic.gain.value=d;this.da.connect(this.ab);this.da.connect(this.L);this.ab.connect(this.M);this.Ab.connect(this.Ic);
this.Ic.connect(this.ab.frequency);c(this.Ab)}function C(a){this.type="gain";this.Bd=[a];this.ka=f();this.ka.gain.value=a}function h(a,b){this.type="tremolo";this.Bd=[a,b];this.ka=f();this.ka.gain.value=1-b/2;this.Ab=t.createOscillator();this.Ab.frequency.value=a;this.Ic=f();this.Ic.gain.value=b/2;this.Ab.connect(this.Ic);this.Ic.connect(this.ka.gain);c(this.Ab)}function l(a,b){this.type="ringmod";this.Bd=[a,b];this.da=f();this.M=f();this.M.gain.value=b;this.L=f();this.L.gain.value=1-b;this.Xi=f();
this.Xi.gain.value=0;this.Ab=t.createOscillator();this.Ab.frequency.value=a;this.Ab.connect(this.Xi.gain);c(this.Ab);this.da.connect(this.Xi);this.da.connect(this.L);this.Xi.connect(this.M)}function D(a,b,c,e,d){this.type="distortion";this.Bd=[a,b,c,e,d];this.da=f();this.dl=f();this.cl=f();this.bx(c,Math.pow(10,e/20));this.M=f();this.M.gain.value=d;this.L=f();this.L.gain.value=1-d;this.Ml=t.createWaveShaper();this.Qj=new Float32Array(65536);this.gv(a,b);this.Ml.Qj=this.Qj;this.da.connect(this.dl);
this.da.connect(this.L);this.dl.connect(this.Ml);this.Ml.connect(this.cl);this.cl.connect(this.M)}function Q(a,b,c,e,d){this.type="compressor";this.Bd=[a,b,c,e,d];this.ka=t.createDynamicsCompressor();try{this.ka.threshold.value=a,this.ka.knee.value=b,this.ka.ratio.value=c,this.ka.attack.value=e,this.ka.release.value=d}catch(h){}}function y(a,b){this.type="analyser";this.Bd=[a,b];this.ka=t.createAnalyser();this.ka.fftSize=a;this.ka.smoothingTimeConstant=b;this.cv=new Float32Array(this.ka.frequencyBinCount);
this.yr=new Uint8Array(a);this.Oi=0}function X(){this.ra=null;this.Ek=0}function G(a,b){this.src=a;this.X=x;this.Td=b;this.yj=!1;var c=this;this.$g=this.gh=null;this.hh=[];this.nl=0;this.qo=this.Zj=this.Gr=this.Xk=!1;1===x&&b&&!rb&&(this.X=0,this.gh=f());this.fe=this.fa=null;var e;switch(this.X){case 0:this.fa=new Audio;this.fa.crossOrigin="anonymous";this.fa.addEventListener("canplaythrough",function(){c.qo=!0});1===x&&t.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Gr=!0,this.fa.addEventListener("canplay",
function(){!c.$g&&c.fa&&(c.$g=t.createMediaElementSource(c.fa),c.$g.connect(c.gh))}));this.fa.autoplay=!1;this.fa.qz="auto";this.fa.src=a;break;case 1:I.uk?I.jp(a,function(a){c.fe=a;c.$o()},function(){c.Zj=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.fe=e.response;c.$o()},e.onerror=function(){c.Zj=!0},e.send());break;case 2:this.fa=!0;break;case 3:this.fa=!0}}function v(a,b){var c=this;this.tag=b;this.rc=this.Qd=!0;this.src=a.src;this.buffer=a;this.X=
x;this.Td=a.Td;this.playbackRate=1;this.Jg=!0;this.Ec=this.Tc=!1;this.pc=0;this.ni=this.Ng=this.Ud=!1;this.volume=1;this.Cn=function(a){if(!c.Ec&&!c.Tc){var b=this;b||(b=a.target);b===c.wj&&(c.Jg=!0,c.rc=!0,J=c.tag,I.trigger(uc.prototype.q.uj,ba))}};this.wj=null;this.Kg=1===S&&!this.Td||2===S;this.ah=1;this.startTime=this.Kg?I.yb.Z:I.Le.Z;this.fb=this.kb=null;this.Wd=!1;this.Hb=null;this.Pq=this.Oq=this.Nq=this.Mq=this.Rq=this.Qq=0;this.n=null;var e=!1;1!==this.X||0!==this.buffer.X||this.buffer.Gr||
(this.X=0);switch(this.X){case 0:this.Td?(this.n=a.fa,e=!a.yj,a.yj=!0):(this.n=new Audio,this.n.crossOrigin="anonymous",this.n.autoplay=!1,this.n.src=a.fa.src,e=!0);e&&this.n.addEventListener("ended",function(){J=c.tag;c.rc=!0;I.trigger(uc.prototype.q.uj,ba)});break;case 1:this.kb=f();this.kb.connect(q(b));1===this.buffer.X?a.fa&&(this.n=t.createBufferSource(),this.n.buffer=a.fa,this.n.connect(this.kb)):(this.n=this.buffer.fa,this.buffer.gh.connect(this.kb),this.buffer.yj||(this.buffer.yj=!0,this.buffer.fa.addEventListener("ended",
function(){J=c.tag;c.rc=!0;I.trigger(uc.prototype.q.uj,ba)})));break;case 2:this.n=new window.Media(z+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Jg=!0,c.rc=!0,J=c.tag,I.trigger(uc.prototype.q.uj,ba))});break;case 3:this.n=!0}}function L(a,b){var c=a.Tf()?1:0,e=b.Tf()?1:0;return c===e?0:c<e?1:-1}function P(a,b){A(Ea);if(a.length){var c,e,d;c=0;for(e=F.length;c<e;c++)d=F[c],kb(a,d.tag)&&Ea.push(d);b&&Ea.sort(L)}else R&&!R.Qf()&&(A(Ea),Ea[0]=R)}function T(a,b){aa.hasOwnProperty(a)?
aa[a].push(b):aa[a]=[b];var c,e,d,h,f=t.destination;if(aa.hasOwnProperty(a)&&(d=aa[a],d.length))for(f=d[0].Pc(),c=0,e=d.length;c<e;c++)h=d[c],c+1===e?h.Zc(t.destination):h.Zc(d[c+1].Pc());P(a);c=0;for(e=Ea.length;c<e;c++)Ea[c].Nw(f);Pa&&Jb===a&&(Pa.disconnect(),Pa.connect(f))}function W(){}function O(){}function K(){}var M=uc.prototype;M.Oa=function(a){this.Ma=a;this.b=a.b};M.Oa.prototype.la=function(){};var I=null,ba=null,J="",z="",x=0,t=null,H=[],F=[],R=null,pa=!1,S=0,ha=!1,Y=1,Da=0,Ta=0,Gb=!1,
Hb=1,Ib=1,Gc=10,Hc=1E4,Lc=1,Pa=null,Jb="",Jc=!1,qb=[],rb=!1,Kc=!1;document.addEventListener("pointerup",b,!0);document.addEventListener("touchend",b,!0);document.addEventListener("click",b,!0);document.addEventListener("keydown",b,!0);document.addEventListener("gamepadconnected",b,!0);var aa={},Yc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");k.prototype.Zc=function(a){this.M.disconnect();this.M.connect(a);this.L.disconnect();this.L.connect(a)};k.prototype.remove=
function(){this.da.disconnect();this.ab.disconnect();this.M.disconnect();this.L.disconnect()};k.prototype.Pc=function(){return this.da};r.prototype.Zc=function(a){this.M.disconnect();this.M.connect(a);this.L.disconnect();this.L.connect(a)};r.prototype.remove=function(){this.da.disconnect();this.Gi.disconnect();this.ad.disconnect();this.Sj.disconnect();this.M.disconnect();this.L.disconnect()};r.prototype.Pc=function(){return this.da};p.prototype.Zc=function(a){this.M.disconnect();this.M.connect(a);
this.L.disconnect();this.L.connect(a)};p.prototype.remove=function(){this.da.disconnect();this.Gf.disconnect();this.M.disconnect();this.L.disconnect()};p.prototype.Pc=function(){return this.da};w.prototype.Zc=function(a){this.L.disconnect();this.L.connect(a);this.M.disconnect();this.M.connect(a)};w.prototype.remove=function(){this.da.disconnect();this.ad.disconnect();this.Ab.disconnect();this.Ic.disconnect();this.L.disconnect();this.M.disconnect();this.ak.disconnect()};w.prototype.Pc=function(){return this.da};
B.prototype.Zc=function(a){this.L.disconnect();this.L.connect(a);this.M.disconnect();this.M.connect(a)};B.prototype.remove=function(){this.da.disconnect();this.ab.disconnect();this.Ab.disconnect();this.Ic.disconnect();this.L.disconnect();this.M.disconnect()};B.prototype.Pc=function(){return this.da};C.prototype.Zc=function(a){this.ka.disconnect();this.ka.connect(a)};C.prototype.remove=function(){this.ka.disconnect()};C.prototype.Pc=function(){return this.ka};h.prototype.Zc=function(a){this.ka.disconnect();
this.ka.connect(a)};h.prototype.remove=function(){this.Ab.disconnect();this.Ic.disconnect();this.ka.disconnect()};h.prototype.Pc=function(){return this.ka};l.prototype.Zc=function(a){this.M.disconnect();this.M.connect(a);this.L.disconnect();this.L.connect(a)};l.prototype.remove=function(){this.Ab.disconnect();this.Xi.disconnect();this.da.disconnect();this.M.disconnect();this.L.disconnect()};l.prototype.Pc=function(){return this.da};D.prototype.bx=function(a,b){.01>a&&(a=.01);this.dl.gain.value=a;
this.cl.gain.value=Math.pow(1/a,.6)*b};D.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};D.prototype.gv=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,h=0;32768>h;++h)d=h/32768,d=this.shape(d,c,e),this.Qj[32768+h]=d,this.Qj[32768-h-1]=-d};D.prototype.Zc=function(a){this.M.disconnect();this.M.connect(a);this.L.disconnect();this.L.connect(a)};D.prototype.remove=function(){this.da.disconnect();this.dl.disconnect();
this.Ml.disconnect();this.cl.disconnect();this.M.disconnect();this.L.disconnect()};D.prototype.Pc=function(){return this.da};Q.prototype.Zc=function(a){this.ka.disconnect();this.ka.connect(a)};Q.prototype.remove=function(){this.ka.disconnect()};Q.prototype.Pc=function(){return this.ka};y.prototype.$a=function(){this.ka.getFloatFrequencyData(this.cv);this.ka.getByteTimeDomainData(this.yr);for(var a=this.ka.fftSize,b=0,c=this.Oi=0,e=0;b<a;b++)e=(this.yr[b]-128)/128,0>e&&(e=-e),this.Oi<e&&(this.Oi=e),
c+=e*e;this.Oi=m(this.Oi);m(Math.sqrt(c/a))};y.prototype.Zc=function(a){this.ka.disconnect();this.ka.connect(a)};y.prototype.remove=function(){this.ka.disconnect()};y.prototype.Pc=function(){return this.ka};X.prototype.Yi=function(a){this.ra=a};X.prototype.nk=function(){return!!this.ra};X.prototype.$a=function(){};G.prototype.Ow=function(){var a,b,c,e;c=a=0;for(b=F.length;a<b;++a)e=F[a],F[c]=e,e.buffer===this?e.stop():++c;F.length=c;this.$g&&(this.$g.disconnect(),this.$g=null);this.gh&&(this.gh.disconnect(),
this.gh=null);this.fe=this.fa=null};G.prototype.$o=function(){if(!this.fa&&this.fe){var a=this;if(t.decodeAudioData)t.decodeAudioData(this.fe,function(b){a.fa=b;a.fe=null;var c,e,d;if(ia(a.$k)||ha)ia(a.Mj)||(c=a.Mj.Gf,c.normalize=a.zq,c.buffer=b);else if(a.hh.length){c=0;for(e=a.hh.length;c<e;c++){b=a.hh[c];d=new v(a,b.Nr);d.Vn(!0);if("undefined"!==typeof b.Bq&&(b.ra=I.Nf(b.Bq),!b.ra))continue;if(b.ra){var h=Ra(b.ra.x,b.ra.y,-b.ra.j.lb(),Da,Ta,!0),f=Ra(b.ra.x,b.ra.y,-b.ra.j.lb(),Da,Ta,!1);d.Un(h,
f,Ha(b.ra.k-b.ra.j.lb()),b.Lm,b.vn,b.yn);d.Yi(b.ra)}else d.Un(b.x,b.y,b.sg,b.Lm,b.vn,b.yn);d.play(a.rn,a.po,a.nl);a.Xk&&d.pause();F.push(d)}A(a.hh)}else d=new v(a,a.$k||""),d.play(a.rn,a.po,a.nl),a.Xk&&d.pause(),F.push(d)},function(){a.Zj=!0});else if(this.fa=t.createBuffer(this.fe,!1),this.fe=null,ia(this.$k)||ha)ia(this.Mj)||(b=this.Mj.Gf,b.normalize=this.zq,b.buffer=this.fa);else{var b=new v(this,this.$k);b.play(this.rn,this.po,this.nl);this.Xk&&b.pause();F.push(b)}}};G.prototype.Jp=function(){switch(this.X){case 0:var a=
4<=this.fa.readyState;a&&(this.qo=!0);return a||this.qo;case 1:return!!this.fe||!!this.fa;case 2:return!0;case 3:return!0}return!1};G.prototype.Yv=function(){switch(this.X){case 0:return this.Jp();case 1:return!!this.fa;case 2:return!0;case 3:return!0}return!1};G.prototype.Ov=function(){switch(this.X){case 0:return!!this.fa.error;case 1:return this.Zj}return!1};v.prototype.Qf=function(){switch(this.X){case 0:return this.n.ended;case 1:return 1===this.buffer.X?!this.Qd&&!this.rc&&this.n.loop||this.Ec?
!1:this.Jg:this.n.ended;case 2:return this.Jg;case 3:!0}return!0};v.prototype.Lt=function(){return this.Qd||this.rc?!0:this.Qf()};v.prototype.Vn=function(a){1===x&&(!this.Wd&&a?this.kb&&(this.fb||(this.fb=t.createPanner(),this.fb.panningModel="number"===typeof this.fb.panningModel?Hb:["equalpower","HRTF","soundfield"][Hb],this.fb.distanceModel="number"===typeof this.fb.distanceModel?Ib:["linear","inverse","exponential"][Ib],this.fb.refDistance=Gc,this.fb.maxDistance=Hc,this.fb.rolloffFactor=Lc),this.kb.disconnect(),
this.kb.connect(this.fb),this.fb.connect(q(this.tag)),this.Wd=!0):this.Wd&&!a&&this.kb&&(this.fb.disconnect(),this.kb.disconnect(),this.kb.connect(q(this.tag)),this.Wd=!1))};v.prototype.Un=function(a,b,c,e,d,h){this.Wd&&1===x&&(this.fb.setPosition(a,b,0),this.fb.setOrientation(Math.cos(E(c)),Math.sin(E(c)),0),this.fb.coneInnerAngle=e,this.fb.coneOuterAngle=d,this.fb.coneOuterGain=h,this.Qq=a,this.Rq=b,this.Mq=c,this.Nq=e,this.Oq=d,this.Pq=h)};v.prototype.Yi=function(a){this.Wd&&1===x&&(this.Hb||(this.Hb=
new X),this.Hb.Yi(a))};v.prototype.$a=function(a){if(this.Wd&&1===x&&this.Hb&&this.Hb.nk()&&this.Tf()){this.Hb.$a(a);a=this.Hb.ra;var b=Ra(a.x,a.y,-a.j.lb(),Da,Ta,!0),c=Ra(a.x,a.y,-a.j.lb(),Da,Ta,!1);this.fb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Hb.ra.k&&(b=a.k-a.j.lb(),this.fb.setOrientation(Math.cos(b),Math.sin(b),0))}};v.prototype.play=function(a,b,e,d){var h=this.n;this.Ud=a;this.volume=b;e=e||0;d=d||0;switch(this.X){case 0:1!==h.playbackRate&&(h.playbackRate=1);h.volume!==b*Y&&(h.volume=
b*Y);h.loop!==a&&(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==e)try{h.currentTime=e}catch(f){}g(this);break;case 1:this.muted=!1;this.ah=1;if(1===this.buffer.X)this.kb.gain.value=b*Y,this.Qd||(this.n=t.createBufferSource(),this.n.buffer=this.buffer.fa,this.n.connect(this.kb)),this.n.onended=this.Cn,this.wj=this.n,this.n.loop=a,this.Jg=!1,0===e?c(this.n,d):u(this.n,e,this.cf(),d);else{1!==h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=b*Y;if(h.currentTime!==e)try{h.currentTime=
e}catch(k){}g(this)}break;case 2:(!this.Qd&&this.rc||0!==e)&&h.seekTo(e);h.play();this.Jg=!1;break;case 3:I.Ub?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Kg?I.yb.Z:I.Le.Z)-e;this.Ec=this.rc=this.Qd=!1};v.prototype.stop=function(){switch(this.X){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.X?e(this.n):this.n.paused||this.n.pause();break;case 2:this.n.stop();break;case 3:I.Ub&&AppMobi.context.stopSound(this.src)}this.rc=
!0;this.Ec=!1};v.prototype.pause=function(){if(!(this.Qd||this.rc||this.Qf()||this.Ec)){switch(this.X){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.X?(this.pc=this.Em(!0),this.Ud&&(this.pc=this.pc%this.cf()),this.Ec=!0,e(this.n)):this.n.paused||this.n.pause();break;case 2:this.n.pause();break;case 3:I.Ub&&AppMobi.context.stopSound(this.src)}this.Ec=!0}};v.prototype.Sw=function(){if(!(this.Qd||this.rc||this.Qf())&&this.Ec){switch(this.X){case 0:g(this);break;case 1:1===this.buffer.X?
(this.n=t.createBufferSource(),this.n.buffer=this.buffer.fa,this.n.connect(this.kb),this.n.onended=this.Cn,this.wj=this.n,this.n.loop=this.Ud,this.kb.gain.value=Y*this.volume*this.ah,this.Hl(),this.startTime=(this.Kg?I.yb.Z:I.Le.Z)-this.pc/(this.playbackRate||.001),u(this.n,this.pc,this.cf())):g(this);break;case 2:this.n.play();break;case 3:I.Ub&&AppMobi.context.resumeSound(this.src)}this.Ec=!1}};v.prototype.seek=function(a){if(!(this.Qd||this.rc||this.Qf()))switch(this.X){case 0:try{this.n.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.X)this.Ec?this.pc=a:(this.pause(),this.pc=a,this.Sw());else try{this.n.currentTime=a}catch(c){}break;case 3:I.Ub&&AppMobi.context.seekSound(this.src,a)}};v.prototype.Nw=function(a){1===this.X&&(this.Wd?(this.fb.disconnect(),this.fb.connect(a)):(this.kb.disconnect(),this.kb.connect(a)))};v.prototype.cf=function(){var a=0;switch(this.X){case 0:"undefined"!==typeof this.n.duration&&(a=this.n.duration);break;case 1:a=this.buffer.fa.duration;break;case 2:a=this.n.getDuration();
break;case 3:I.Ub&&(a=AppMobi.context.getDurationSound(this.src))}return a};v.prototype.Em=function(a){var b=this.cf(),c=0;switch(this.X){case 0:"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 1:if(1===this.buffer.X){if(this.Ec)return this.pc;c=(this.Kg?I.yb.Z:I.Le.Z)-this.startTime}else"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 3:I.Ub&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Ud&&c>b&&(c=b);return c};
v.prototype.Tf=function(){return!this.Ec&&!this.Qd&&!this.rc&&!this.Qf()};v.prototype.lx=function(){return!this.Qd&&!this.rc&&!this.Qf()};v.prototype.zx=function(){var a=this.volume*Y;isFinite(a)||(a=0);switch(this.X){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.X?this.kb.gain.value=a*this.ah:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};v.prototype.Vj=function(a){switch(this.X){case 0:this.n.muted!==!!a&&
(this.n.muted=!!a);break;case 1:1===this.buffer.X?(this.ah=a?0:1,this.kb.gain.value=Y*this.volume*this.ah):this.n.muted!==!!a&&(this.n.muted=!!a)}};v.prototype.cx=function(){this.Ng=!0;this.Vj(this.Ng||this.ni)};v.prototype.qr=function(a){this.ni=!!a;this.Vj(this.Ng||this.ni)};v.prototype.Hl=function(){var a=this.playbackRate;this.Kg&&(a*=I.wh);switch(this.X){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.X?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=
a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};v.prototype.ix=function(a){switch(this.X){case 0:a?this.Tf()?(this.Tc=!0,this.n.pause()):this.Tc=!1:this.Tc&&(this.n.play(),this.Tc=!1);break;case 1:a?this.Tf()?(this.Tc=!0,1===this.buffer.X?(this.pc=this.Em(!0),this.Ud&&(this.pc=this.pc%this.cf()),e(this.n)):this.n.pause()):this.Tc=!1:this.Tc&&(1===this.buffer.X?(this.n=t.createBufferSource(),this.n.buffer=this.buffer.fa,this.n.connect(this.kb),this.n.onended=this.Cn,this.wj=this.n,this.n.loop=
this.Ud,this.kb.gain.value=Y*this.volume*this.ah,this.Hl(),this.startTime=(this.Kg?I.yb.Z:I.Le.Z)-this.pc/(this.playbackRate||.001),u(this.n,this.pc,this.cf())):this.n.play(),this.Tc=!1);break;case 2:a?this.Tf()?(this.n.pause(),this.Tc=!0):this.Tc=!1:this.Tc&&(this.Tc=!1,this.n.play())}};M.Fa=function(a){this.type=a;I=this.b=a.b;ba=this;this.Fc=null;this.wi=-600;this.b.uk&&(rb=!0);!(this.b.Qg||this.b.fi&&(this.b.Sm||this.b.qk))||this.b.sk||this.b.cb||this.b.Hp||rb||(Jc=!0);t=null;"undefined"!==typeof AudioContext?
(x=1,t=new AudioContext):"undefined"!==typeof webkitAudioContext&&(x=1,t=new webkitAudioContext);this.b.Qg&&t&&(t.close&&t.close(),"undefined"!==typeof AudioContext?t=new AudioContext:"undefined"!==typeof webkitAudioContext&&(t=new webkitAudioContext));1!==x&&(this.b.Rc&&"undefined"!==typeof window.Media?x=2:this.b.Ip&&(x=3));2===x&&(z=location.href,a=z.lastIndexOf("/"),-1<a&&(z=z.substr(0,a+1)),z=z.replace("file://",""));if(this.b.Zv&&this.b.aw&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),
this.b.zf(this);else{if(this.b.Ub)pa=this.b.fi;else try{pa=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.Ym}catch(b){pa=!1}this.b.mj(this)}};var xa=M.Fa.prototype;xa.la=function(){this.b.ug=this;S=this.u[0];this.De=this.u[1];this.Cw=0!==this.u[2];this.xq=0;Hb=this.u[3];Ib=this.u[4];this.wi=-this.u[5];Gc=this.u[6];Hc=this.u[7];Lc=this.u[8];this.Fc=new X;var a=this.b.K||this.b.width,b=this.b.J||this.b.height;1===x&&(t.listener.setPosition(a/2,b/2,this.wi),t.listener.setOrientation(0,
0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Pa&&Pa.disconnect();Jb=b.toLowerCase();Pa=t.createMediaStreamSource(a);Pa.connect(q(Jb))});this.b.Dt(function(a){ba.xw(a)});var c=this;this.b.xj(function(a){c.Mi(a)})};xa.Mi=function(a){var b,c,e;b=0;for(c=F.length;b<c;b++)e=F[b],e.Hb&&e.Hb.ra===a&&(e.Hb.ra=null,e.Wd&&e.Tf()&&e.Ud&&e.stop());this.Fc.ra===a&&(this.Fc.ra=null)};xa.Sb=function(){var a={silent:ha,masterVolume:Y,listenerZ:this.wi,listenerUid:this.Fc.nk()?this.Fc.ra.uid:-1,playing:[],
effects:{}},b=a.playing,c,e,d,h,f,k;c=0;for(e=F.length;c<e;c++)d=F[c],!d.lx()||3===this.De||d.Td&&1===this.De||!d.Td&&2===this.De||(h=d.Em(),d.Ud&&(h=h%d.cf()),h={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Td,playbackTime:h,volume:d.volume,looping:d.Ud,muted:d.Ng,playbackRate:d.playbackRate,paused:d.Ec,resume_position:d.pc},d.Wd&&(h.pan={},k=h.pan,d.Hb&&d.Hb.nk()?k.objUid=d.Hb.ra.uid:(k.x=d.Qq,k.y=d.Rq,k.a=d.Mq),k.ia=d.Nq,k.oa=d.Oq,k.og=d.Pq),b.push(h));b=a.effects;for(f in aa)if(aa.hasOwnProperty(f)){d=
[];c=0;for(e=aa[f].length;c<e;c++)d.push({type:aa[f][c].type,params:aa[f][c].Bd});b[f]=d}return a};var $a=[];xa.mc=function(a){var b=a.silent;Y=a.masterVolume;this.wi=a.listenerZ;this.Fc.Yi(null);var c=a.listenerUid;-1!==c&&(this.Fc.Ek=c,$a.push(this.Fc));var c=a.playing,e,d,f,g,m,n,q,u,v,t,G;if(3!==this.De)for(e=0,d=F.length;e<d;e++)v=F[e],v.Td&&1===this.De||(v.Td||2!==this.De)&&v.stop();for(m in aa)if(aa.hasOwnProperty(m))for(e=0,d=aa[m].length;e<d;e++)aa[m][e].remove();Wa(aa);for(m in a.effects)if(a.effects.hasOwnProperty(m))for(n=
a.effects[m],e=0,d=n.length;e<d;e++)switch(f=n[e].type,t=n[e].params,f){case "filter":T(m,new k(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":T(m,new r(t[0],t[1],t[2]));break;case "convolve":f=t[2];v=this.ik(f,!1);v.fa?f=new p(v.fa,t[0],t[1],f):(f=new p(null,t[0],t[1],f),v.zq=t[0],v.Mj=f);T(m,f);break;case "flanger":T(m,new w(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":T(m,new B(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":T(m,new C(t[0]));break;case "tremolo":T(m,new h(t[0],t[1]));break;
case "ringmod":T(m,new l(t[0],t[1]));break;case "distortion":T(m,new D(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":T(m,new Q(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":T(m,new y(t[0],t[1]))}e=0;for(d=c.length;e<d;e++)3===this.De||(a=c[e],f=a.buffersrc,g=a.is_music,m=a.tag,n=a.playbackTime,q=a.looping,u=a.volume,G=(t=a.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,g&&1===this.De)||!g&&2===this.De||((v=this.rp(f,m,g,q,u))?(v.pc=a.resume_position,v.Vn(!!t),v.play(q,u,n),v.Hl(),v.zx(),v.Vj(v.Ng||
v.ni),a.paused&&v.pause(),a.muted&&v.cx(),v.Vj(v.Ng||v.ni),t&&(-1!==G?(v.Hb=v.Hb||new X,v.Hb.Ek=G,$a.push(v.Hb)):v.Un(t.x,t.y,t.a,t.ia,t.oa,t.og))):(v=this.ik(f,g),v.nl=n,v.Xk=a.paused,t&&(-1!==G?v.hh.push({Bq:G,Lm:t.ia,vn:t.oa,yn:t.og,Nr:m}):v.hh.push({x:t.x,y:t.y,sg:t.a,Lm:t.ia,vn:t.oa,yn:t.og,Nr:m}))));if(b&&!ha){e=0;for(d=F.length;e<d;e++)F[e].qr(!0);ha=!0}else if(!b&&ha){e=0;for(d=F.length;e<d;e++)F[e].qr(!1);ha=!1}};xa.Kd=function(){var a,b,c,e;a=0;for(b=$a.length;a<b;a++)c=$a[a],e=this.b.Nf(c.Ek),
c.Yi(e),c.Ek=-1,e&&(Da=e.x,Ta=e.y);A($a)};xa.xw=function(a){if(!this.Cw){!a&&t&&t.resume&&(t.resume(),Gb=!1);var b,c;b=0;for(c=F.length;b<c;b++)F[b].ix(a);a&&t&&t.suspend&&(t.suspend(),Gb=!0)}};xa.$a=function(){var a=this.b.Ye,b,c,e;b=0;for(c=F.length;b<c;b++)e=F[b],e.$a(a),0!==S&&e.Hl();var d,h;for(d in aa)if(aa.hasOwnProperty(d))for(e=aa[d],b=0,c=e.length;b<c;b++)h=e[b],h.$a&&h.$a();1===x&&this.Fc.nk()&&(this.Fc.$a(a),Da=this.Fc.ra.x,Ta=this.Fc.ra.y,t.listener.setPosition(this.Fc.ra.x,this.Fc.ra.y,
this.wi))};var ab=[];xa.gx=function(a){var b,c,e,d,h,f=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(h=4<d.length&&".ogg"===d.substr(d.length-4))&&pa||!h&&!pa)ab.push({filename:d,size:e,ra:null}),f+=e;return f};xa.nx=function(){var a,b,c,e;a=0;for(b=ab.length;a<b;++a)c=ab[a],e=this.b.rm+c.filename,c.ra=this.ik(e,!1)};xa.tv=function(){var a=0,b,c,e;b=0;for(c=ab.length;b<c;++b)e=ab[b],e.ra.Yv()||e.ra.Ov()||this.b.cb||this.b.qk?a+=e.size:e.ra.Jp()&&(a+=Math.floor(e.size/2));return a};xa.Pw=
function(){var a,b,c,e;c=a=0;for(b=H.length;a<b;++a)e=H[a],H[c]=e,e.Td?e.Ow():++c;H.length=c};xa.ik=function(a,b){var c,e,d,h=null;c=0;for(e=H.length;c<e;c++)if(d=H[c],d.src===a){h=d;break}h||(rb&&b&&this.Pw(),h=new G(a,b),H.push(h));return h};xa.rp=function(a,b,c,e,d){var h,f,k;h=0;for(f=F.length;h<f;h++)if(k=F[h],k.src===a&&(k.Lt()||c))return k.tag=b,k;a=this.ik(a,c);if(!a.fa)return"<preload>"!==b&&(a.$k=b,a.rn=e,a.po=d),null;k=new v(a,b);F.push(k);return k};var Ea=[];W.prototype.uj=function(a){return kb(J,
a)};M.q=new W;O.prototype.Play=function(a,b,c,e){!ha&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),R=this.rp(this.b.rm+a[0]+(pa?".ogg":".m4a"),e,a[1],0!==b,c))&&(R.Vn(!1),R.play(0!==b,c,0,this.xq),this.xq=0)};O.prototype.nt=function(a){P(a);var b;a=0;for(b=Ea.length;a<b;a++)Ea[a].stop()};M.na=new O;K.prototype.rs=function(a,b){P(b,!0);Ea.length?a.G(Ea[0].cf()):a.G(0)};M.wb=new K})();function sc(d){this.b=d}
(function(){function d(){if(0===this.im.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.qh?b.drawImage(this.Cb,this.bh,this.dh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Cb,0,0,this.width,this.height);this.im=a.toDataURL("image/png")}return this.im}function g(){}function b(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function n(a,b){return a<b?""+a+","+b:""+b+","+a}function m(a,b,c,e){b=b.uid;c=c.uid;var d=n(b,c);if(a.hasOwnProperty(d))a[d][2]=
e;else{var f=r.length?r.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=e;a[d]=f}}function q(a,c,e){c=n(c.uid,e.uid);a.hasOwnProperty(c)&&(b(a[c]),delete a[c])}function f(a,b,c){b=n(b.uid,c.uid);if(a.hasOwnProperty(b))return p=a[b][2],!0;p=-2;return!1}function a(){}var c=sc.prototype;c.Oa=function(a){this.Ma=a;this.b=a.b};var u=c.Oa.prototype;u.la=function(){if(!this.T){var a,b,c,e,f,k,g,m,n;this.rd=[];this.bi=!1;a=0;for(b=this.yc.length;a<b;a++){f=this.yc[a];g={};g.name=f[0];g.speed=f[1];g.loop=f[2];g.On=f[3];
g.Pn=f[4];g.Be=f[5];g.Y=f[6];g.frames=[];c=0;for(e=f[7].length;c<e;c++)k=f[7][c],m={},m.Lr=k[0],m.Mr=k[1],m.bh=k[2],m.dh=k[3],m.width=k[4],m.height=k[5],m.duration=k[6],m.Cc=k[7],m.Dc=k[8],m.Nm=k[9],m.al=k[10],m.Uq=k[11],m.qh=0!==m.width,m.im="",m.gz=d,n={left:0,top:0,right:1,bottom:1},m.Wn=n,m.Me=null,(n=this.b.bv(k[0]))?m.Cb=n:(m.Cb=new Image,m.Cb.Qt=k[0],m.Cb.Pt=k[1],m.Cb.Kt=null,this.b.Gx(m.Cb,k[0])),g.frames.push(m),this.rd.push(m);this.yc[a]=g}}};u.Yr=function(){var a,b,c;a=0;for(b=this.e.length;a<
b;a++)c=this.e[a],c.Oj=c.Ra.Me};u.An=function(){if(!this.T){var a,b,c;a=0;for(b=this.rd.length;a<b;++a)c=this.rd[a],c.Cb.Kt=null,c.Me=null;this.bi=!1;this.Yr()}};u.Hq=function(){if(!this.T&&this.e.length){var a,b,c;a=0;for(b=this.rd.length;a<b;++a)c=this.rd[a],c.Me=this.b.D.Xp(c.Cb,this.b.Ya,c.Uq);this.Yr()}};u.hw=function(){if(!this.T&&!this.bi&&this.b.D){var a,b,c;a=0;for(b=this.rd.length;a<b;++a)c=this.rd[a],c.Me=this.b.D.Xp(c.Cb,this.b.Ya,c.Uq);this.bi=!0}};u.Ur=function(){if(!this.T&&!this.e.length&&
this.bi){var a,b,c;a=0;for(b=this.rd.length;a<b;++a)c=this.rd[a],this.b.D.deleteTexture(c.Me),c.Me=null;this.bi=!1}};var e=[];u.Yq=function(a){var b,c,d;A(e);b=0;for(c=this.rd.length;b<c;++b)d=this.rd[b].Cb,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};c.Fa=function(a){this.type=a;this.b=a.b;a=this.type.yc[0].frames[0].al;this.nc?this.qa.aj(a):this.qa=new eb(a)};var k=c.Fa.prototype;k.la=function(){this.visible=0===this.u[0];this.ok=this.li=!1;this.he=0!==this.u[3];this.Ia=this.qp(this.u[1])||
this.type.yc[0];this.H=this.u[2];0>this.H&&(this.H=0);this.H>=this.Ia.frames.length&&(this.H=this.Ia.frames.length-1);var a=this.Ia.frames[this.H];this.qa.aj(a.al);this.Cc=a.Cc;this.Dc=a.Dc;this.wg=this.Ia.speed;this.Xe=this.Ia.Pn;1===this.type.yc.length&&1===this.type.yc[0].frames.length||0===this.wg||(this.b.mj(this),this.li=!0);this.nc?this.Ld.reset():this.Ld=new cb;this.qe=this.Ld.Z;this.Bf=!0;this.ee=0;this.Af=!0;this.Jj=this.Mo="";this.Vo=0;this.Ij=-1;this.type.hw();var b,c,e,d,f,k,g,a=0;for(b=
this.type.yc.length;a<b;a++)for(d=this.type.yc[a],c=0,e=d.frames.length;c<e;c++)f=d.frames[c],0===f.width&&(f.width=f.Cb.width,f.height=f.Cb.height),f.qh&&(g=f.Cb,k=f.Wn,k.left=f.bh/g.width,k.top=f.dh/g.height,k.right=(f.bh+f.width)/g.width,k.bottom=(f.dh+f.height)/g.height,0===f.bh&&0===f.dh&&f.width===g.width&&f.height===g.height&&(f.qh=!1));this.Ra=this.Ia.frames[this.H];this.Oj=this.Ra.Me};k.Sb=function(){var a={a:this.Ia.Y,f:this.H,cas:this.wg,fs:this.qe,ar:this.ee,at:this.Ld.Z,rt:this.Xe};this.Bf||
(a.ap=this.Bf);this.Af||(a.af=this.Af);return a};k.mc=function(a){var b=this.hv(a.a);b&&(this.Ia=b);this.H=a.f;0>this.H&&(this.H=0);this.H>=this.Ia.frames.length&&(this.H=this.Ia.frames.length-1);this.wg=a.cas;this.qe=a.fs;this.ee=a.ar;this.Ld.reset();this.Ld.Z=a.at;this.Bf=a.hasOwnProperty("ap")?a.ap:!0;this.Af=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Xe=a.rt:this.Xe=this.Ia.Pn;this.Ra=this.Ia.frames[this.H];this.Oj=this.Ra.Me;this.qa.aj(this.Ra.al);this.Cc=this.Ra.Cc;this.Dc=this.Ra.Dc};
k.Tl=function(a){this.H=a?0:this.Ia.frames.length-1;this.Bf=!1;this.Mo=this.Ia.name;this.ok=!0;this.b.trigger(sc.prototype.q.Gs,this);this.b.trigger(sc.prototype.q.Fs,this);this.ok=!1;this.ee=0};k.Ih=function(){return this.Ld.Z};k.$a=function(){this.Ld.add(this.b.Wh(this));this.Jj.length&&this.bp();0<=this.Ij&&this.cp();var a=this.Ld.Z,b=this.Ia,c=b.frames[this.H],e=c.duration/this.wg;this.Bf&&a>=this.qe+e&&(this.Af?this.H++:this.H--,this.qe+=e,this.H>=b.frames.length&&(b.Be?(this.Af=!1,this.H=b.frames.length-
2):b.loop?this.H=this.Xe:(this.ee++,this.ee>=b.On?this.Tl(!1):this.H=this.Xe)),0>this.H&&(b.Be?(this.H=1,this.Af=!0,b.loop||(this.ee++,this.ee>=b.On&&this.Tl(!0))):b.loop?this.H=this.Xe:(this.ee++,this.ee>=b.On?this.Tl(!0):this.H=this.Xe)),0>this.H?this.H=0:this.H>=b.frames.length&&(this.H=b.frames.length-1),a>this.qe+b.frames[this.H].duration/this.wg&&(this.qe=a),a=b.frames[this.H],this.rg(c,a),this.b.ya=!0)};k.qp=function(a){var b,c,e;b=0;for(c=this.type.yc.length;b<c;b++)if(e=this.type.yc[b],kb(e.name,
a))return e;return null};k.hv=function(a){var b,c,e;b=0;for(c=this.type.yc.length;b<c;b++)if(e=this.type.yc[b],e.Y===a)return e;return null};k.bp=function(){var a=this.Ia.frames[this.H],b=this.qp(this.Jj);this.Jj="";!b||kb(b.name,this.Ia.name)&&this.Bf||(this.Ia=b,this.wg=b.speed,this.Xe=b.Pn,0>this.H&&(this.H=0),this.H>=this.Ia.frames.length&&(this.H=this.Ia.frames.length-1),1===this.Vo&&(this.H=0),this.Bf=!0,this.qe=this.Ld.Z,this.Af=!0,this.rg(a,this.Ia.frames[this.H]),this.b.ya=!0)};k.cp=function(){var a=
this.Ia.frames[this.H],b=this.H;this.H=ra(this.Ij);0>this.H&&(this.H=0);this.H>=this.Ia.frames.length&&(this.H=this.Ia.frames.length-1);b!==this.H&&(this.rg(a,this.Ia.frames[this.H]),this.qe=this.Ld.Z,this.b.ya=!0);this.Ij=-1};k.rg=function(a,b){var c=a.width,e=a.height,d=b.width,f=b.height;c!=d&&(this.width*=d/c);e!=f&&(this.height*=f/e);this.Cc=b.Cc;this.Dc=b.Dc;this.qa.aj(b.al);this.F();this.Ra=b;this.Oj=b.Me;c=0;for(e=this.N.length;c<e;c++)d=this.N[c],d.Iq&&d.Iq(a,b);this.b.trigger(sc.prototype.q.rg,
this)};k.me=function(a){a.globalAlpha=this.opacity;var b=this.Ra,c=b.qh,e=b.Cb,d=this.x,f=this.y,k=this.width,g=this.height;if(0===this.k&&0<=k&&0<=g)d-=this.Cc*k,f-=this.Dc*g,this.b.Ce&&(d=Math.round(d),f=Math.round(f)),c?a.drawImage(e,b.bh,b.dh,b.width,b.height,d,f,k,g):a.drawImage(e,d,f,k,g);else{this.b.Ce&&(d=Math.round(d),f=Math.round(f));a.save();var m=0<k?1:-1,n=0<g?1:-1;a.translate(d,f);1===m&&1===n||a.scale(m,n);a.rotate(this.k*m*n);d=0-this.Cc*na(k);f=0-this.Dc*na(g);c?a.drawImage(e,b.bh,
b.dh,b.width,b.height,d,f,na(k),na(g)):a.drawImage(e,d,f,na(k),na(g));a.restore()}};k.zg=function(a){this.bd(a)};k.bd=function(a){a.Uc(this.Oj);a.nh(this.opacity);var b=this.Ra,c=this.fc;if(this.b.Ce){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.qh?a.rf(c.Kb+e,c.Lb+d,c.uc+e,c.vc+d,c.gc+e,c.hc+d,c.cc+e,c.ec+d,b.Wn):a.Ui(c.Kb+e,c.Lb+d,c.uc+e,c.vc+d,c.gc+e,c.hc+d,c.cc+e,c.ec+d)}else b.qh?a.rf(c.Kb,c.Lb,c.uc,c.vc,c.gc,c.hc,c.cc,c.ec,b.Wn):a.Ui(c.Kb,c.Lb,c.uc,c.vc,c.gc,c.hc,c.cc,c.ec)};
k.ov=function(a){var b=this.Ra,c,e;c=0;for(e=b.Nm.length;c<e;c++)if(kb(a,b.Nm[c][0]))return c;return-1};k.Bm=function(a,b){var c=this.Ra,e=c.Nm,d;ka(a)?d=this.ov(a):d=a-1;d=ra(d);if(0>d||d>=e.length)return b?this.x:this.y;var f=(e[d][1]-c.Cc)*this.width,e=e[d][2],e=(e-c.Dc)*this.height,c=Math.cos(this.k);d=Math.sin(this.k);var k=f*c-e*d,e=e*c+f*d,f=k+this.x,e=e+this.y;return b?f:e};var r=[],p=-2,w=[];g.prototype.Is=function(a){if(!a)return!1;var c=this.b,e=c.ym(),d=e.type,k=null;e.I.collmemory?k=
e.I.collmemory:(k={},e.I.collmemory=k);e.I.spriteCreatedDestroyCallback||(e.I.spriteCreatedDestroyCallback=!0,c.xj(function(a){var c=e.I.collmemory;a=a.uid;var d,h;for(d in c)c.hasOwnProperty(d)&&(h=c[d],h[0]===a||h[1]===a)&&(b(c[d]),delete c[d])}));var g=d.ba(),n=a.ba(),g=g.Ac(),r,u,B,C,W,O,K,M=this.b.ae,I=M-1,ba=c.Gb().ic;for(u=0;u<g.length;u++){B=g[u];n.ta?(B.xa(),this.b.sp(B.j,a,B.Ha,w),r=w,this.b.Ct(B,a,r)):r=n.Ac();for(C=0;C<r.length;C++)W=r[C],c.Vc(B,W)||c.Mt(B,W)?(O=f(k,B,W),O=!O||p<I,m(k,
B,W,M),O&&(c.Ti(ba.za),O=d.ba(),K=a.ba(),O.ta=!1,K.ta=!1,d===a?(O.e.length=2,O.e[0]=B,O.e[1]=W,d.Yc()):(O.e.length=1,K.e.length=1,O.e[0]=B,K.e[0]=W,d.Yc(),a.Yc()),ba.fr(),c.qf(ba.za))):q(k,B,W);A(w)}return!1};var B=new da,C=!1;new ua(0,0,0,0);u.finish=function(a){if(C){if(a){var b=this.b.Gb().ic.ed;a=null.ba();var c=B.yf(),e,d;if(a.ta){a.ta=!1;A(a.e);e=0;for(d=c.length;e<d;++e)a.e[e]=c[e];if(b)for(A(a.aa),e=0,d=null.e.length;e<d;++e)c=null.e[e],B.contains(c)||a.aa.push(c)}else if(b)for(b=a.e.length,
e=0,d=c.length;e<d;++e)a.e[b+e]=c[e],Fa(a.aa,c[e]);else Aa(a.e,c);null.Yc()}B.clear();C=!1}};g.prototype.ks=function(a,b){return gc(this.H,a,b)};g.prototype.Fs=function(a){return kb(this.Mo,a)};g.prototype.Gs=function(){return!0};g.prototype.rg=function(){return!0};c.q=new g;a.prototype.ct=function(a,b){this.Jj=a;this.Vo=b;this.li||(this.b.mj(this),this.li=!0);this.ok||this.bp()};a.prototype.dt=function(a){this.Ij=a;this.li||(this.b.mj(this),this.li=!0);this.ok||this.cp()};c.na=new a;c.wb=new function(){}})();
function vc(d){this.b=d}
(function(){function d(){return a.length?a.pop():{}}function g(b){var d,e;d=0;for(e=b.length;d<e;d++)a.push(b[d]);A(b)}function b(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function n(){}var m=vc.prototype;m.la=function(){m.na.jt=function(a){this.width!==a&&(this.width=a,this.mg=!0,this.F())}};m.Oa=function(a){this.Ma=a;this.b=a.b};var q=m.Oa.prototype;q.la=function(){};q.An=function(){if(!this.T){var a,b,e;a=0;for(b=this.e.length;a<b;a++)e=this.e[a],e.Vd=null,e.fg=
null,e.Gc=null}};m.Fa=function(a){this.type=a;this.b=a.b;this.nc?A(this.jf):this.jf=[];this.mg=!0};q=m.Fa.prototype;q.la=function(){this.text=this.u[0];this.visible=0===this.u[1];this.font=this.u[2];this.color=this.u[3];this.mk=this.u[4];this.Kl=this.u[5];this.so=0===this.u[7];this.gn=this.zk=this.width;this.yk=this.height;this.jn=this.u[8];this.fk=this.Bg="";this.Jr=this.Kr=this.Ri=0;this.Aw();this.Gc=this.fg=this.Vd=null;this.wq=!1;this.ti=this.b.ae;this.nc?this.jh.set(0,0,1,1):this.jh=new ua(0,
0,1,1);this.b.D&&this.b.mj(this)};q.Aw=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.Ri=parseInt(a[b].substr(0,a[b].length-2));this.Kn=Math.ceil(this.Ri/72*96)+4;0<b&&(this.fk=a[b-1]);this.Bg=a[b+1];for(b+=2;b<a.length;b++)this.Bg+=" "+a[b];break}};q.Sb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.mk,va:this.Kl,wr:this.so,lho:this.jn,fn:this.Bg,fs:this.fk,ps:this.Ri,pxh:this.Kn,tw:this.Kr,th:this.Jr,lrt:this.ti}};q.mc=
function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.mk=a.ha;this.Kl=a.va;this.so=a.wr;this.jn=a.lho;this.Bg=a.fn;this.fk=a.fs;this.Ri=a.ps;this.Kn=a.pxh;this.Kr=a.tw;this.Jr=a.th;this.ti=a.lrt;this.mg=!0;this.gn=this.zk=this.width;this.yk=this.height};q.$a=function(){if(this.b.D&&this.Gc&&300<=this.b.ae-this.ti){var a=this.j;this.xa();var b=this.Ha;if(b.right<a.Aa||b.bottom<a.Ba||b.left>a.Ea||b.top>a.Da)this.b.D.deleteTexture(this.Gc),this.Vd=this.fg=this.Gc=null}};q.hg=function(){this.Vd=
this.fg=null;this.b.D&&this.Gc&&this.b.D.deleteTexture(this.Gc);this.Gc=null};q.Ih=function(){this.font=this.fk+" "+this.Ri.toString()+"pt "+this.Bg;this.mg=!0;this.b.ya=!0};q.me=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var e=1;b&&(e=Math.abs(this.j.Bc()),a.save(),a.scale(e,e));if(this.mg||this.width!==this.gn)this.type.Ma.wt(this.text,this.jf,a,this.width,this.so),this.mg=!1,this.gn=this.width;this.xa();var e=b?0:this.fc.Kb,d=b?0:this.fc.Lb;
this.b.Ce&&(e=e+.5|0,d=d+.5|0);0===this.k||b||(a.save(),a.translate(e,d),a.rotate(this.k),d=e=0);var f=d+this.height,g=this.Kn,g=g+this.jn,m,n;1===this.Kl?d+=Math.max(this.height/2-this.jf.length*g/2,0):2===this.Kl&&(d+=Math.max(this.height-this.jf.length*g-2,0));for(n=0;n<this.jf.length&&!(m=e,1===this.mk?m=e+(this.width-this.jf[n].width)/2:2===this.mk&&(m=e+(this.width-this.jf[n].width)),a.fillText(this.jf[n].text,m,d),d+=g,d>=f-g);n++);(0!==this.k||b)&&a.restore();this.ti=this.b.ae};q.bd=function(a){if(!(1>
this.width||1>this.height)){var b=this.mg||this.wq;this.wq=!1;var e=this.j.Bc(),d=this.j.lb(),f=this.jh,g=e*this.width,m=e*this.height,n=Math.ceil(g),q=Math.ceil(m),h=Math.abs(n),l=Math.abs(q),D=this.b.K/2,Q=this.b.J/2;this.fg||(this.Vd=document.createElement("canvas"),this.Vd.width=h,this.Vd.height=l,this.zk=h,this.yk=l,b=!0,this.fg=this.Vd.getContext("2d"));if(h!==this.zk||l!==this.yk)this.Vd.width=h,this.Vd.height=l,this.Gc&&(a.deleteTexture(this.Gc),this.Gc=null),b=!0;b&&(this.fg.clearRect(0,
0,h,l),this.me(this.fg,!0),this.Gc||(this.Gc=a.Lc(h,l,this.b.Ya,this.b.ff)),a.Fx(this.Vd,this.Gc,this.b.ff));this.zk=h;this.yk=l;a.Uc(this.Gc);a.nh(this.opacity);a.kd();a.translate(-D,-Q);a.Wc();var y=this.fc,b=this.j.La(y.Kb,y.Lb,!0,!0),h=this.j.La(y.Kb,y.Lb,!1,!0),l=this.j.La(y.uc,y.vc,!0,!0),D=this.j.La(y.uc,y.vc,!1,!0),Q=this.j.La(y.gc,y.hc,!0,!0),X=this.j.La(y.gc,y.hc,!1,!0),G=this.j.La(y.cc,y.ec,!0,!0),y=this.j.La(y.cc,y.ec,!1,!0);if(this.b.Ce||0===this.k&&0===d)var v=(b+.5|0)-b,L=(h+.5|0)-
h,b=b+v,h=h+L,l=l+v,D=D+L,Q=Q+v,X=X+L,G=G+v,y=y+L;0===this.k&&0===d?(l=b+n,D=h,Q=l,X=h+q,G=b,y=X,f.right=1,f.bottom=1):(f.right=g/n,f.bottom=m/q);a.rf(b,h,l,D,Q,X,G,y,f);a.kd();a.scale(e,e);a.kl(-this.j.lb());a.translate((this.j.Aa+this.j.Ea)/-2,(this.j.Ba+this.j.Da)/-2);a.Wc();this.ti=this.b.ae}};var f=[];m.pt=function(a){A(f);for(var b="",e,d=0;d<a.length;)if(e=a.charAt(d),"\n"===e)b.length&&(f.push(b),b=""),f.push("\n"),++d;else if(" "===e||"\t"===e||"-"===e){do b+=a.charAt(d),d++;while(d<a.length&&
(" "===a.charAt(d)||"\t"===a.charAt(d)));f.push(b);b=""}else d<a.length&&(b+=e,d++);b.length&&f.push(b)};var a=[];m.wt=function(a,b,e,f,m){if(a&&a.length)if(2>=f)g(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var n=e.measureText(a).width;if(n<=f){g(b);b.push(d());b[0].text=a;b[0].width=n;return}}this.xt(a,b,e,f,m)}else g(b)};m.xt=function(c,g,e,k,m){m&&(this.pt(c),c=f);var n="",q,B,C,h=0;for(C=0;C<c.length;C++)"\n"===c[C]?(h>=g.length&&g.push(d()),n=b(n),B=g[h],B.text=n,B.width=e.measureText(n).width,
h++,n=""):(q=n,n+=c[C],B=e.measureText(n).width,B>=k&&(h>=g.length&&g.push(d()),q=b(q),B=g[h],B.text=q,B.width=e.measureText(q).width,h++,n=c[C],m||" "!==n||(n="")));n.length&&(h>=g.length&&g.push(d()),n=b(n),B=g[h],B.text=n,B.width=e.measureText(n).width,h++);for(C=h;C<g.length;C++)a.push(g[C]);g.length=h};m.q=new function(){};n.prototype.gt=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.mg=!0,this.b.ya=!0)};m.na=new n;m.wb=new function(){}})();
function wc(d){this.b=d}
(function(){function d(a){u=a.x;e=a.y;k=a.z}function g(a,c,e,d){var f;f=r.length?r.pop():new b;f.init(a,c,e,d);return f}function b(){this.gj=this.id=this.y=this.x=this.yl=this.xl=this.dn=this.time=this.Zn=0;this.nj=this.El=!1}function n(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function m(){}function q(){}var f=wc.prototype;f.Oa=function(a){this.Ma=a;this.b=a.b};f.Oa.prototype.la=
function(){};f.Fa=function(a){this.type=a;this.b=a.b;this.touches=[];this.tn=!1};var a=f.Fa.prototype,c={left:0,top:0};a.Uh=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 u=0,e=0,k=0,r=[];b.prototype.init=function(a,b,c,e){var d=Xa();this.Zn=this.dn=this.time=d;this.xl=a;this.yl=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.gj=e;this.nj=this.El=!1};b.prototype.update=function(a,b,c,e,d,f){this.dn=this.time;this.time=
a;this.x=b;this.y=c;this.width=e;this.height=d;this.pressure=f;!this.nj&&15<=Sa(this.xl,this.yl,this.x,this.y)&&(this.nj=!0)};b.prototype.kw=function(a,b){!this.El&&500<=Xa()-this.Zn&&!this.nj&&15>Sa(this.xl,this.yl,this.x,this.y)&&(this.El=!0,a.be=this.gj,a.xh=this.id,a.Hg=b,a.b.trigger(wc.prototype.q.Os,a),a.je=this.x,a.ke=this.y,a.b.trigger(wc.prototype.q.Ps,a),a.Hg=0)};var p=-1E3,w=-1E3,B=-1E4;b.prototype.rq=function(a,b){if(!this.El){var c=Xa();333>=c-this.Zn&&!this.nj&&15>Sa(this.xl,this.yl,
this.x,this.y)&&(a.be=this.gj,a.xh=this.id,a.Hg=b,666>=c-B&&25>Sa(p,w,this.x,this.y)?(a.b.trigger(wc.prototype.q.Ks,a),a.je=this.x,a.ke=this.y,a.b.trigger(wc.prototype.q.Ls,a),w=p=-1E3,B=-1E4):(a.b.trigger(wc.prototype.q.Zs,a),a.je=this.x,a.ke=this.y,a.b.trigger(wc.prototype.q.$s,a),p=this.x,w=this.y,B=c),a.Hg=0)}};a.la=function(){this.bw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Hg=this.xh=this.be=this.ke=this.je=this.Io=this.Ho=this.Go=this.At=this.zt=this.yt=this.Vk=
this.Uk=this.Tk=0;this.Dx=0!==this.u[0];var a=0<this.b.kc?document:this.b.canvas,b=document;this.b.Ub?b=a=window.Canvas:this.b.cd&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Gq(a)},!1),a.addEventListener("pointermove",function(a){c.Fq(a)},!1),b.addEventListener("pointerup",function(a){c.Qk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Qk(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.Gq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Fq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Qk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Qk(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.Kq(a)},!1),a.addEventListener("touchmove",function(a){c.Jq(a)},!1),b.addEventListener("touchend",function(a){c.Bn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Bn(a,!0)},!1));if(this.bw){var e=function(a){a=a.reading;c.Go=a.accelerationX;c.Ho=a.accelerationY;
c.Io=a.accelerationZ},f=function(a){a=a.reading;c.Tk=a.yawDegrees;c.Uk=a.pitchDegrees;c.Vk=a.rollDegrees},k=Windows.Devices.Sensors.Accelerometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",e));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(k&&k.removeEventListener("readingchanged",e),g&&g.removeEventListener("readingchanged",f)):(k&&k.addEventListener("readingchanged",e),g&&g.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Tk=a.alpha||0;c.Uk=a.beta||0;c.Vk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.yt=a.accelerationIncludingGravity.x||0,c.zt=a.accelerationIncludingGravity.y||0,c.At=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.Go=a.acceleration.x||0,c.Ho=a.acceleration.y||0,c.Io=a.acceleration.z||0)},!1);this.Dx&&!this.b.cb&&(jQuery(document).mousemove(function(a){c.vw(a)}),jQuery(document).mousedown(function(a){c.uw(a)}),jQuery(document).mouseup(function(a){c.ww(a)}));!this.b.Qg&&this.b.Rc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(d,null,{frequency:40});this.b.ux(this)};a.Fq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Uh(a.pointerId),e=Xa();if(0<=b){var d=this.b.cb?c:jQuery(this.b.canvas).offset(),b=this.touches[b];2>e-b.time||b.update(e,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.Gq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&lb(a)&&a.preventDefault();var b=this.b.cb?c:jQuery(this.b.canvas).offset(),e=a.pageX-b.left,b=a.pageY-b.top;Xa();this.be=this.touches.length;
this.xh=a.pointerId;this.touches.push(g(e,b,a.pointerId,this.be));this.b.ve=!0;this.b.trigger(wc.prototype.q.yo,this);this.b.trigger(wc.prototype.q.Bo,this);this.je=e;this.ke=b;this.b.trigger(wc.prototype.q.Ql,this);this.b.ve=!1}};a.Qk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&lb(a)&&a.preventDefault();var c=this.Uh(a.pointerId);this.be=0<=c?this.touches[c].gj:-1;this.xh=0<=c?this.touches[c].id:-1;this.b.ve=!0;this.b.trigger(wc.prototype.q.xo,
this);this.b.trigger(wc.prototype.q.Ao,this);0<=c&&(b||this.touches[c].rq(this,c),100>r.length&&r.push(this.touches[c]),this.touches.splice(c,1));this.b.ve=!1}};a.Jq=function(a){a.preventDefault&&a.preventDefault();var b=Xa(),e,d,f,k;e=0;for(d=a.changedTouches.length;e<d;e++)if(f=a.changedTouches[e],k=this.Uh(f.identifier),0<=k){var g=this.b.cb?c:jQuery(this.b.canvas).offset();k=this.touches[k];2>b-k.time||k.update(b,f.pageX-g.left,f.pageY-g.top,2*(f.sz||f.Bz||f.lz||f.oz||0),2*(f.uz||f.Cz||f.mz||
f.pz||0),f.ez||f.Az||f.kz||f.nz||0)}};a.Kq=function(a){a.preventDefault&&lb(a)&&a.preventDefault();var b=this.b.cb?c:jQuery(this.b.canvas).offset();Xa();this.b.ve=!0;var e,d,f,k;e=0;for(d=a.changedTouches.length;e<d;e++)if(f=a.changedTouches[e],k=this.Uh(f.identifier),-1===k){k=f.pageX-b.left;var m=f.pageY-b.top;this.be=this.touches.length;this.xh=f.identifier;this.touches.push(g(k,m,f.identifier,this.be));this.b.trigger(wc.prototype.q.yo,this);this.b.trigger(wc.prototype.q.Bo,this);this.je=k;this.ke=
m;this.b.trigger(wc.prototype.q.Ql,this)}this.b.ve=!1};a.Bn=function(a,b){a.preventDefault&&lb(a)&&a.preventDefault();this.b.ve=!0;var c,e,d;c=0;for(e=a.changedTouches.length;c<e;c++)d=a.changedTouches[c],d=this.Uh(d.identifier),0<=d&&(this.be=this.touches[d].gj,this.xh=this.touches[d].id,this.b.trigger(wc.prototype.q.xo,this),this.b.trigger(wc.prototype.q.Ao,this),b||this.touches[d].rq(this,d),100>r.length&&r.push(this.touches[d]),this.touches.splice(d,1));this.b.ve=!1};a.Ih=function(){return this.b.Rc&&
0===this.Tk&&0!==k?90*k:this.Tk};a.Tt=function(){return this.b.Rc&&0===this.Uk&&0!==e?90*e:this.Uk};a.ru=function(){return this.b.Rc&&0===this.Vk&&0!==u?90*u:this.Vk};a.uw=function(a){n(a)||(this.Kq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.tn=!0)};a.vw=function(a){this.tn&&!n(a)&&this.Jq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.ww=function(a){a.preventDefault&&this.b.yp&&!this.b.ff&&a.preventDefault();this.b.yp=!0;n(a)||(this.Bn({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.tn=!1)};a.lj=function(){var a,b,c,e=Xa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.dn=e),c.kw(this,a)};m.prototype.Bo=function(){return!0};m.prototype.Ao=function(){return!0};m.prototype.Ql=function(a){return a?this.b.Al(a,this.je,this.ke):!1};var C=[];m.prototype.Bs=function(a){if(!a)return!1;var b=a.ba(),c=b.Ac(),e,d,f,k,g,m;f=0;for(k=c.length;f<k;f++){var n=c[f];n.xa();g=0;for(m=this.touches.length;g<m;g++)if(d=this.touches[g],
e=n.j.Db(d.x,d.y,!0),d=n.j.Db(d.x,d.y,!1),n.Ob(e,d)){C.push(n);break}}return C.length?(b.ta=!1,Aa(b.e,C),a.Yc(),A(C),!0):!1};m.prototype.yo=function(a){a=Math.floor(a);return a===this.be};m.prototype.xo=function(a){a=Math.floor(a);return a===this.be};m.prototype.Os=function(){return!0};m.prototype.Zs=function(){return!0};m.prototype.Ks=function(){return!0};m.prototype.Ps=function(a){return a?this.b.Al(a,this.je,this.ke):!1};m.prototype.$s=function(a){return a?this.b.Al(a,this.je,this.ke):!1};m.prototype.Ls=
function(a){return a?this.b.Al(a,this.je,this.ke):!1};f.q=new m;q.prototype.Eo=function(a,b){var c=this.Hg;if(0>c||c>=this.touches.length)a.G(0);else{var e,d,f,k,g;ia(b)?(e=this.b.Xh(0),d=e.scale,f=e.Jd,k=e.gd,g=e.k,e.scale=1,e.Jd=1,e.gd=1,e.k=0,a.G(e.Db(this.touches[c].x,this.touches[c].y,!0)),e.scale=d,e.Jd=f,e.gd=k,e.k=g):(e=ja(b)?this.b.Xh(b):this.b.Dm(b))?a.G(e.Db(this.touches[c].x,this.touches[c].y,!0)):a.G(0)}};q.prototype.Fo=function(a,b){var c=this.Hg;if(0>c||c>=this.touches.length)a.G(0);
else{var e,d,f,k,g;ia(b)?(e=this.b.Xh(0),d=e.scale,f=e.Jd,k=e.hd,g=e.k,e.scale=1,e.Jd=1,e.hd=1,e.k=0,a.G(e.Db(this.touches[c].x,this.touches[c].y,!1)),e.scale=d,e.Jd=f,e.hd=k,e.k=g):(e=ja(b)?this.b.Xh(b):this.b.Dm(b))?a.G(e.Db(this.touches[c].x,this.touches[c].y,!1)):a.G(0)}};f.wb=new q})();function xc(d){this.b=d}
(function(){var d=xc.prototype;d.Oa=function(b){this.behavior=b;this.b=b.b};d.Oa.prototype.la=function(){};d.Fa=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b};var g=d.Fa.prototype;g.la=function(){this.Bb=null;this.Zk=-1;this.mode=this.ri=this.ao=this.Ii=this.pf=this.Yk=0;var b=this;this.nc||(this.Hi=function(d){b.Mi(d)});this.b.xj(this.Hi)};g.Sb=function(){return{uid:this.Bb?this.Bb.uid:-1,pa:this.Yk,pd:this.pf,msa:this.Ii,tsa:this.ao,lka:this.ri,m:this.mode}};g.mc=function(b){this.Zk=
b.uid;this.Yk=b.pa;this.pf=b.pd;this.Ii=b.msa;this.ao=b.tsa;this.ri=b.lka;this.mode=b.m};g.Kd=function(){-1===this.Zk?this.Bb=null:this.Bb=this.b.Nf(this.Zk);this.Zk=-1};g.Mi=function(b){this.Bb==b&&(this.Bb=null)};g.hg=function(){this.Bb=null;this.b.er(this.Hi)};g.$a=function(){};g.lj=function(){if(this.Bb){this.ri!==this.d.k&&(this.Ii=Ja(this.Ii+(this.d.k-this.ri)));var b=this.d.x,d=this.d.y;if(3===this.mode||4===this.mode){var g=Sa(this.d.x,this.d.y,this.Bb.x,this.Bb.y);if(g>this.pf||4===this.mode&&
g<this.pf)d=Ma(this.Bb.x,this.Bb.y,this.d.x,this.d.y),b=this.Bb.x+Math.cos(d)*this.pf,d=this.Bb.y+Math.sin(d)*this.pf}else b=this.Bb.x+Math.cos(this.Bb.k+this.Yk)*this.pf,d=this.Bb.y+Math.sin(this.Bb.k+this.Yk)*this.pf;this.ri=g=Ja(this.Ii+(this.Bb.k-this.ao));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===b&&this.d.y===d||(this.d.x=b,this.d.y=d,this.d.F());0!==this.mode&&2!==this.mode||this.d.k===g||(this.d.k=g,this.d.F())}};d.q=new function(){};d.na=new function(){};d.wb=
new function(){}})();function yc(d){this.b=d}
(function(){function d(){}function g(){}var b=yc.prototype;b.Oa=function(b){this.behavior=b;this.b=b.b};b.Oa.prototype.la=function(){};b.Fa=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b;this.cj=this.tl=this.sl=this.Mm=this.Jh=this.Ph=this.Sg=this.Tg=this.Wi=this.vi=!1;this.Vb=null;this.kn=-1;this.Wf=this.Vf=0;this.ek=!1;this.Cg=this.sd=0;this.dk=!0;this.ua=this.S=0};var n=b.Fa.prototype;n.Zr=function(){this.ib=Math.cos(this.Gg);this.jb=Math.sin(this.Gg);this.sf=Math.cos(this.Gg-
Math.PI/2);this.tf=Math.sin(this.Gg-Math.PI/2);this.ib=jb(this.ib);this.jb=jb(this.jb);this.sf=jb(this.sf);this.tf=jb(this.tf);this.wm=this.re;0>this.re&&(this.ib*=-1,this.jb*=-1,this.re=Math.abs(this.re))};n.la=function(){this.Zg=this.u[0];this.tg=this.u[1];this.yg=this.u[2];this.qi=this.u[3];this.wm=this.re=this.u[4];this.Lk=this.u[5];this.nm=0!==this.u[6];this.an=this.u[7]/1E3;this.Ut=1===this.u[8];this.enabled=0!==this.u[9];this.Ch=!1;this.Dh=this.b.wf(this.d);this.ln=-1;this.lg=0;this.Gg=E(90);
this.Zr();var b=this;this.Ut&&!this.b.cb&&(jQuery(document).keydown(function(d){b.rw(d)}),jQuery(document).keyup(function(d){b.sw(d)}));this.nc||(this.Hi=function(d){b.Mi(d)});this.b.xj(this.Hi);this.d.I.isPlatformBehavior=!0};n.Sb=function(){return{ii:this.Mm,lfx:this.Vf,lfy:this.Wf,lfo:this.Vb?this.Vb.uid:-1,am:this.sd,en:this.enabled,fall:this.Cg,ft:this.dk,dx:this.S,dy:this.ua,ms:this.Zg,acc:this.tg,dec:this.yg,js:this.qi,g:this.re,g1:this.wm,mf:this.Lk,wof:this.Ch,woj:this.Dh?this.Dh.uid:-1,
ga:this.Gg,edj:this.nm,cdj:this.Jh,dj:this.Ph,sus:this.an}};n.mc=function(b){this.Mm=b.ii;this.Vf=b.lfx;this.Wf=b.lfy;this.kn=b.lfo;this.sd=b.am;this.enabled=b.en;this.Cg=b.fall;this.dk=b.ft;this.S=b.dx;this.ua=b.dy;this.Zg=b.ms;this.tg=b.acc;this.yg=b.dec;this.qi=b.js;this.re=b.g;this.wm=b.g1;this.Lk=b.mf;this.Ch=b.wof;this.ln=b.woj;this.Gg=b.ga;this.nm=b.edj;this.Jh=b.cdj;this.Ph=b.dj;this.an=b.sus;this.cj=this.tl=this.sl=this.Sg=this.Tg=this.Wi=this.vi=!1;this.lg=0;this.Zr()};n.Kd=function(){-1===
this.kn?this.Vb=null:this.Vb=this.b.Nf(this.kn);-1===this.ln?this.Dh=null:this.Dh=this.b.Nf(this.ln)};n.Mi=function(b){this.Vb==b&&(this.Vb=null)};n.hg=function(){this.Vb=null;this.b.er(this.Hi)};n.rw=function(b){switch(b.which){case 38:b.preventDefault();this.Tg=!0;break;case 37:b.preventDefault();this.vi=!0;break;case 39:b.preventDefault(),this.Wi=!0}};n.sw=function(b){switch(b.which){case 38:b.preventDefault();this.Sg=this.Tg=!1;break;case 37:b.preventDefault();this.vi=!1;break;case 39:b.preventDefault(),
this.Wi=!1}};n.fh=function(){this.Tg=this.Wi=this.vi=!1};n.Ih=function(){return 0>this.re?-1:1};n.Kp=function(){var b=null,d=null,f,a;f=this.d.x;a=this.d.y;this.d.x+=this.ib;this.d.y+=this.jb;this.d.F();if(this.Vb&&this.b.Vc(this.d,this.Vb)&&(!this.b.ho(this.Vb.type,rc)||this.Vb.I.solidEnabled))return this.d.x=f,this.d.y=a,this.d.F(),this.Vb;(b=this.b.tc(this.d))||0!==this.Cg||(d=this.b.wf(this.d,!0));this.d.x=f;this.d.y=a;this.d.F();if(b){if(this.b.Vc(this.d,b))return null;this.ek=!1;return b}if(d&&
d.length){a=b=0;for(f=d.length;b<f;b++)d[a]=d[b],this.b.Vc(this.d,d[b])||a++;if(1<=a)return this.ek=!0,d[0]}return null};n.$a=function(){};n.Xq=function(){var b=this.b.Wh(this.d),d,f,a,c,g,e,k,n,p;this.Tg||this.cj||(this.Sg=!1);var w=this.vi||this.sl;a=this.Wi||this.tl;var B=(c=this.Tg||this.cj)&&!this.Sg;this.cj=this.tl=this.sl=!1;if(this.enabled){this.Mm&&(B=c=a=w=!1);c||(this.lg=0);n=this.Vb;p=!1;this.dk&&((this.b.tc(this.d)||this.b.wf(this.d))&&this.b.Dd(this.d,-this.ib,-this.jb,4,!0),this.dk=
!1);!n||0!==this.ua||n.y===this.Wf&&n.x===this.Vf||(d=n.x-this.Vf,f=n.y-this.Wf,this.d.x+=d,this.d.y+=f,this.d.F(),this.Vf=n.x,this.Wf=n.y,p=!0,this.b.tc(this.d)&&this.b.Dd(this.d,-d,-f,2.5*Math.sqrt(d*d+f*f)));var C=this.Kp();if(f=this.b.tc(this.d))if(this.d.I.inputPredicted)this.b.Dd(this.d,-this.ib,-this.jb,10,!1);else if(this.b.cr(this.d,this.sf,this.tf,this.d.width/2))this.b.ig(this.d,f);else if(this.b.cr(this.d,this.ib,this.jb,this.d.height/2))this.b.ig(this.d,f);else if(this.b.Lw(this.d,Math.max(this.d.width,
this.d.height)/2))this.b.ig(this.d,f);else return;C?(this.Jh=this.Ph=!1,0<this.ua&&(this.Ch||(this.b.gl(this.d,-this.ib,-this.jb,C),this.Ch=!0),this.ua=0),n!=C)?(this.Vb=C,this.Vf=C.x,this.Wf=C.y,this.b.ig(this.d,C)):p&&(f=this.b.tc(this.d))&&(this.b.ig(this.d,f),0!==d&&(0<d?this.b.Dd(this.d,-this.sf,-this.tf):this.b.Dd(this.d,this.sf,this.tf)),this.b.Dd(this.d,-this.ib,-this.jb)):c||(this.Jh=!0);if(C&&B||!C&&this.nm&&c&&this.Jh&&!this.Ph)n=this.d.x,p=this.d.y,this.d.x-=this.ib,this.d.y-=this.jb,
this.d.F(),this.b.tc(this.d)?B=!1:(this.lg=this.an,this.b.trigger(yc.prototype.q.Qs,this.d),this.sd=2,this.ua=-this.qi,B=!0,C?this.Sg=!0:this.Ph=!0),this.d.x=n,this.d.y=p,this.d.F();C||(c&&0<this.lg?(this.ua=-this.qi,this.lg-=b):(this.Vb=null,this.ua+=this.re*b,this.ua>this.Lk&&(this.ua=this.Lk)),B&&(this.Sg=!0));this.Ch=!!C;w==a&&(0>this.S?(this.S+=this.yg*b,0<this.S&&(this.S=0)):0<this.S&&(this.S-=this.yg*b,0>this.S&&(this.S=0)));w&&!a&&(this.S=0<this.S?this.S-(this.tg+this.yg)*b:this.S-this.tg*
b);a&&!w&&(this.S=0>this.S?this.S+(this.tg+this.yg)*b:this.S+this.tg*b);this.S>this.Zg?this.S=this.Zg:this.S<-this.Zg&&(this.S=-this.Zg);w=!1;0!==this.S&&(n=this.d.x,p=this.d.y,d=this.S*b*this.sf,f=this.S*b*this.tf,this.d.x+=this.sf*(1<this.S?1:-1)-this.ib,this.d.y+=this.tf*(1<this.S?1:-1)-this.jb,this.d.F(),c=!1,g=this.b.tc(this.d),this.d.x=n+d,this.d.y=p+f,this.d.F(),a=this.b.tc(this.d),!a&&C&&(a=this.b.wf(this.d))&&(this.d.x=n,this.d.y=p,this.d.F(),this.b.Vc(this.d,a)?(a=null,c=!1):c=!0,this.d.x=
n+d,this.d.y=p+f,this.d.F()),a?(d=Math.abs(this.S*b)+2,g||!this.b.Dd(this.d,-this.ib,-this.jb,d,c,a))?(this.b.ig(this.d,a),d=Math.max(Math.abs(this.S*b*2.5),30),this.b.Dd(this.d,this.sf*(0>this.S?1:-1),this.tf*(0>this.S?1:-1),d,!1)?!C||c||this.ek||(n=this.d.x,p=this.d.y,this.d.x+=this.ib,this.d.y+=this.jb,this.b.tc(this.d)?this.b.Dd(this.d,-this.ib,-this.jb,3,!1)||(this.d.x=n,this.d.y=p,this.d.F()):(this.d.x=n,this.d.y=p,this.d.F())):(this.d.x=n,this.d.y=p,this.d.F()),c||(this.S=0)):!g&&!B&&Math.abs(this.ua)<
Math.abs(this.qi/4)&&(this.ua=0,C||(w=!0)):(n=this.Kp(),C&&!n?(f=Math.ceil(Math.abs(this.S*b))+2,n=this.d.x,p=this.d.y,this.d.x+=this.ib*f,this.d.y+=this.jb*f,this.d.F(),this.b.tc(this.d)||this.b.wf(this.d)?this.b.Dd(this.d,-this.ib,-this.jb,f+2,!0):(this.d.x=n,this.d.y=p,this.d.F())):n&&0===this.ua&&this.b.gl(this.d,-this.ib,-this.jb,n)));if(0!==this.ua){n=this.d.x;p=this.d.y;this.d.x+=this.ua*b*this.ib;this.d.y+=this.ua*b*this.jb;d=this.d.x;a=this.d.y;this.d.F();f=this.b.tc(this.d);c=!1;if(!f&&
0<this.ua&&!C){if((c=0<this.Cg?null:this.b.wf(this.d,!0))&&c.length){if(this.Dh){this.d.x=n;this.d.y=p;this.d.F();k=g=0;for(e=c.length;g<e;g++)c[k]=c[g],this.b.Vc(this.d,c[g])||k++;c.length=k;this.d.x=d;this.d.y=a;this.d.F()}1<=c.length&&(f=c[0])}c=!!f}f&&(this.b.ig(this.d,f),this.lg=0,d=c?Math.abs(this.ua*b*2.5+10):Math.max(Math.abs(this.ua*b*2.5+10),30),this.b.Dd(this.d,this.ib*(0>this.ua?1:-1),this.jb*(0>this.ua?1:-1),d,c,f)?(this.Vb=f,this.Vf=f.x,this.Wf=f.y,(this.ek=c)&&(w=!0),this.ua=0):(this.d.x=
n,this.d.y=p,this.d.F(),this.Ch=!0,c||(this.ua=0)))}3!==this.sd&&0<this.ua&&!C&&(this.b.trigger(yc.prototype.q.Ns,this.d),this.sd=3);(C||w)&&0<=this.ua&&(3===this.sd||w||B&&0===this.ua?(this.b.trigger(yc.prototype.q.Rs,this.d),this.sd=0===this.S&&0===this.ua?0:1):(0!==this.sd&&0===this.S&&0===this.ua&&(this.b.trigger(yc.prototype.q.Ys,this.d),this.sd=0),1===this.sd||0===this.S&&0===this.ua||B||(this.b.trigger(yc.prototype.q.Us,this.d),this.sd=1)));0<this.Cg&&this.Cg--;this.Dh=this.b.wf(this.d)}};
d.prototype.Qs=function(){return!0};d.prototype.Ns=function(){return!0};d.prototype.Ys=function(){return!0};d.prototype.Us=function(){return!0};d.prototype.Rs=function(){return!0};b.q=new d;g.prototype.lt=function(b){switch(b){case 0:this.sl=!0;break;case 1:this.tl=!0;break;case 2:this.cj=!0}};b.na=new g;b.wb=new function(){}})();function zc(d){this.b=d}
(function(){function d(){}function g(){}var b=zc.prototype;b.Oa=function(a){this.behavior=a;this.b=a.b};b.Oa.prototype.la=function(){};b.Fa=function(a,b){this.type=a;this.behavior=a.behavior;this.d=b;this.b=a.b;this.Xa=0};var n=b.Fa.prototype,m=2*Math.PI,q=Math.PI/2,f=3*Math.PI/2;n.la=function(){this.Wa=1===this.u[0];this.eg=this.u[1];this.ro=this.u[2];this.Ae=this.u[3];this.Ae+=Math.random()*this.u[4];0===this.Ae?this.Xa=0:(this.Xa=this.u[5]/this.Ae*m,this.Xa+=Math.random()*this.u[6]/this.Ae*m);
this.Wb=this.u[7];this.Wb+=Math.random()*this.u[8];this.Vi=this.Sf=this.ca=0;5===this.eg&&(this.Wb=E(this.Wb));this.init()};n.Sb=function(){return{i:this.Xa,a:this.Wa,mv:this.eg,w:this.ro,p:this.Ae,mag:this.Wb,iv:this.ca,iv2:this.Sf,r:this.Vi,lkv:this.P,lkv2:this.Ka}};n.mc=function(a){this.Xa=a.i;this.Wa=a.a;this.eg=a.mv;this.ro=a.w;this.Ae=a.p;this.Wb=a.mag;this.ca=a.iv;this.Sf=a.iv2||0;this.Vi=a.r;this.P=a.lkv;this.Ka=a.lkv2||0};n.init=function(){switch(this.eg){case 0:this.ca=this.d.x;break;case 1:this.ca=
this.d.y;break;case 2:this.ca=this.d.width;this.Vi=this.d.height/this.d.width;break;case 3:this.ca=this.d.width;break;case 4:this.ca=this.d.height;break;case 5:this.ca=this.d.k;break;case 6:this.ca=this.d.opacity;break;case 7:this.ca=0;break;case 8:this.ca=this.d.x,this.Sf=this.d.y}this.P=this.ca;this.Ka=this.Sf};n.de=function(a){a=a%m;switch(this.ro){case 0:return Math.sin(a);case 1:return a<=q?a/q:a<=f?1-2*(a-q)/Math.PI:(a-f)/q-1;case 2:return 2*a/m-1;case 3:return-2*a/m+1;case 4:return a<Math.PI?
-1:1}return 0};n.$a=function(){var a=this.b.Wh(this.d);this.Wa&&0!==a&&(0===this.Ae?this.Xa=0:(this.Xa+=a/this.Ae*m,this.Xa=this.Xa%m),this.yx())};n.yx=function(){switch(this.eg){case 0:this.d.x!==this.P&&(this.ca+=this.d.x-this.P);this.d.x=this.ca+this.de(this.Xa)*this.Wb;this.P=this.d.x;break;case 1:this.d.y!==this.P&&(this.ca+=this.d.y-this.P);this.d.y=this.ca+this.de(this.Xa)*this.Wb;this.P=this.d.y;break;case 2:this.d.width=this.ca+this.de(this.Xa)*this.Wb;this.d.height=this.d.width*this.Vi;
break;case 3:this.d.width=this.ca+this.de(this.Xa)*this.Wb;break;case 4:this.d.height=this.ca+this.de(this.Xa)*this.Wb;break;case 5:this.d.k!==this.P&&(this.ca=Ja(this.ca+(this.d.k-this.P)));this.d.k=Ja(this.ca+this.de(this.Xa)*this.Wb);this.P=this.d.k;break;case 6:this.d.opacity=this.ca+this.de(this.Xa)*this.Wb/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.P&&(this.ca+=this.d.x-this.P),this.d.y!==this.Ka&&(this.Sf+=this.d.y-this.Ka),this.d.x=
this.ca+Math.cos(this.d.k)*this.de(this.Xa)*this.Wb,this.d.y=this.Sf+Math.sin(this.d.k)*this.de(this.Xa)*this.Wb,this.P=this.d.x,this.Ka=this.d.y}this.d.F()};n.Iq=function(a,b){switch(this.eg){case 2:this.ca*=b.width/a.width;this.Vi=b.height/b.width;break;case 3:this.ca*=b.width/a.width;break;case 4:this.ca*=b.height/a.height}};d.prototype.xs=function(){return this.Wa};b.q=new d;b.na=new function(){};g.prototype.qt=function(a){a.G(this.de(this.Xa)*this.Wb)};b.wb=new g})();
function Ac(d){this.b=d}
(function(){var d=Ac.prototype;d.Oa=function(d){this.behavior=d;this.b=d.b};d.Oa.prototype.la=function(){};d.Fa=function(d,b){this.type=d;this.behavior=d.behavior;this.d=b;this.b=d.b;this.mode=0};d=d.Fa.prototype;d.la=function(){this.mode=this.u[0]};d.$a=function(){};d.lj=function(){this.d.xa();var d=this.d.Ha,b=this.d.j.ob,n=!1;0===this.mode?(0>this.d.x&&(this.d.x=0,n=!0),0>this.d.y&&(this.d.y=0,n=!0),this.d.x>b.width&&(this.d.x=b.width,n=!0),this.d.y>b.height&&(this.d.y=b.height,n=!0)):(0>d.left&&
(this.d.x-=d.left,n=!0),0>d.top&&(this.d.y-=d.top,n=!0),d.right>b.width&&(this.d.x-=d.right-b.width,n=!0),d.bottom>b.height&&(this.d.y-=d.bottom-b.height,n=!0));n&&this.d.F()}})();var Bc=[],Cc=[],Dc=[],Ec=[],Fc=[],Ic=[],Mc=[],Nc=[],Oc=[],Pc=[];function Qc(d){return result=(d/=1)<1/2.75?7.5625*d*d+0:d<2/2.75?1*(7.5625*(d-=1.5/2.75)*d+.75)+0:d<2.5/2.75?1*(7.5625*(d-=2.25/2.75)*d+.9375)+0:1*(7.5625*(d-=2.625/2.75)*d+.984375)+0}function Rc(d,g){return Math.round(d/g*1E4)}
function Sc(d,g,b,n,m){var q=0;switch(d){case 0:q=1*g/b+0;break;case 1:q=1*(g/=b)*g+0;break;case 2:q=-1*(g/=b)*(g-2)+0;break;case 3:q=1>(g/=b/2)?.5*g*g+0:-.5*(--g*(g-2)-1)+0;break;case 4:q=1*(g/=b)*g*g+0;break;case 5:q=1*((g=g/b-1)*g*g+1)+0;break;case 6:q=1>(g/=b/2)?.5*g*g*g+0:.5*((g-=2)*g*g+2)+0;break;case 7:q=1*(g/=b)*g*g*g+0;break;case 8:q=-1*((g=g/b-1)*g*g*g-1)+0;break;case 9:q=1>(g/=b/2)?.5*g*g*g*g+0:-.5*((g-=2)*g*g*g-2)+0;break;case 10:q=1*(g/=b)*g*g*g*g+0;break;case 11:q=1*((g=g/b-1)*g*g*g*
g+1)+0;break;case 12:q=1>(g/=b/2)?.5*g*g*g*g*g+0:.5*((g-=2)*g*g*g*g+2)+0;break;case 13:m.Hc?q=Fc[Rc(g,b)]:q=-(Math.sqrt(1-g*g)-1);break;case 14:m.Hc?q=Ic[Rc(g,b)]:q=Math.sqrt(1-(g-1)*(g-1));break;case 15:q=m.Hc?Mc[Rc(g,b)]:1>(g/=b/2)?-.5*(Math.sqrt(1-g*g)-1)+0:.5*(Math.sqrt(1-(g-=2)*g)+1)+0;break;case 16:m.Hc?q=Nc[Rc(g,b)]:(m=m.qc,q=1*(g/=b)*g*((m+1)*g-m)+0);break;case 17:m.Hc?q=Oc[Rc(g,b)]:(m=m.qc,q=1*((g=g/b-1)*g*((m+1)*g+m)+1)+0);break;case 18:m.Hc?q=Pc[Rc(g,b)]:(m=m.qc,q=1>(g/=b/2)?.5*g*g*(((m*=
1.525)+1)*g-m)+0:.5*((g-=2)*g*(((m*=1.525)+1)*g+m)+2)+0);break;case 19:m.Hc?q=Cc[Rc(g,b)]:(q=m.sg,d=m.Wk,g/=b,0==d&&(d=.3*b),0==q||q<Math.abs(1)?(q=1,m=d/4):m=d/(2*Math.PI)*Math.asin(1/q),q=-(q*Math.pow(2,10*--g)*Math.sin(2*(g*b-m)*Math.PI/d))+0);break;case 20:m.Hc?q=Dc[Rc(g,b)]:(q=m.sg,d=m.Wk,g/=b,0==d&&(d=.3*b),0==q||q<Math.abs(1)?(q=1,m=d/4):m=d/(2*Math.PI)*Math.asin(1/q),q=q*Math.pow(2,-10*g)*Math.sin(2*(g*b-m)*Math.PI/d)+1);break;case 21:m.Hc?q=Ec[Rc(g,b)]:(q=m.sg,d=m.Wk,g/=b/2,0==d&&(d=.3*b*
1.5),0==q||q<Math.abs(1)?(q=1,m=d/4):m=d/(2*Math.PI)*Math.asin(1/q),q=1>g?-.5*q*Math.pow(2,10*--g)*Math.sin(2*(g*b-m)*Math.PI/d)+0:q*Math.pow(2,-10*--g)*Math.sin(2*(g*b-m)*Math.PI/d)*.5+1);break;case 22:q=m.Hc?1-Bc[Rc(b-g,b)]+0:1-Qc(b-g/b)+0;break;case 23:q=m.Hc?Bc[Rc(g,b)]:Qc(g/b);break;case 24:q=m.Hc?g<b/2?.5*(1-Bc[Rc(b-2*g,b)]+0)+0:.5*Bc[Rc(2*g-b,b)]+.5:g<b/2?.5*(1-Qc(b-2*g)+0)+0:.5*Qc((2*g-b)/b)+.5;break;case 25:g=g/b/2;q=2*g*g*(3-2*g);break;case 26:g=(g/b+1)/2;q=2*g*g*(3-2*g)-1;break;case 27:g=
g/b,q=g*g*(3-2*g)}return n?1-q:q}
for(var Tc=0,Uc=0,Vc=0,U=0,V=0,Z=0;1E4>=Z;Z++)U=Z/1E4,Tc=(U/=1)<1/2.75?7.5625*U*U+0:U<2/2.75?1*(7.5625*(U-=1.5/2.75)*U+.75)+0:U<2.5/2.75?1*(7.5625*(U-=2.25/2.75)*U+.9375)+0:1*(7.5625*(U-=2.625/2.75)*U+.984375)+0,Bc[Z]=Tc,U=Z/1E4,Vc=Uc=0,U/=1,0==Vc&&(Vc=.3),0==Uc||Uc<Math.abs(1)?(Uc=1,V=Vc/4):V=Vc/(2*Math.PI)*Math.asin(1/Uc),Tc=-(Uc*Math.pow(2,10*--U)*Math.sin(2*(1*U-V)*Math.PI/Vc))+0,Cc[Z]=Tc,U=Z/1E4,Vc=Uc=0,U/=1,0==Vc&&(Vc=.3),0==Uc||Uc<Math.abs(1)?(Uc=1,V=Vc/4):V=Vc/(2*Math.PI)*Math.asin(1/Uc),
Tc=Uc*Math.pow(2,-10*U)*Math.sin(2*(1*U-V)*Math.PI/Vc)+1,Dc[Z]=Tc,U=Z/1E4,Vc=Uc=0,U/=.5,0==Vc&&(Vc=.3*1.5),0==Uc||Uc<Math.abs(1)?(Uc=1,V=Vc/4):V=Vc/(2*Math.PI)*Math.asin(1/Uc),Tc=1>U?-.5*Uc*Math.pow(2,10*--U)*Math.sin(2*(1*U-V)*Math.PI/Vc)+0:Uc*Math.pow(2,-10*--U)*Math.sin(2*(1*U-V)*Math.PI/Vc)*.5+1,Ec[Z]=Tc,U=Z/1E4,Fc[Z]=-(Math.sqrt(1-U*U)-1),U=Z/1E4,Ic[Z]=Math.sqrt(1-(U-1)*(U-1)),U=Z/1E4,Tc=1>(U/=.5)?-.5*(Math.sqrt(1-U*U)-1)+0:.5*(Math.sqrt(1-(U-=2)*U)+1)+0,Mc[Z]=Tc,U=Z/1E4,V=0,0==V&&(V=1.70158),
Tc=1*(U/=1)*U*((V+1)*U-V)+0,Nc[Z]=Tc,U=Z/1E4,V=0,0==V&&(V=1.70158),Tc=1*((U=U/1-1)*U*((V+1)*U+V)+1)+0,Oc[Z]=Tc,U=Z/1E4,V=0,0==V&&(V=1.70158),Tc=1>(U/=.5)?.5*U*U*(((V*=1.525)+1)*U-V)+0:.5*((U-=2)*U*(((V*=1.525)+1)*U+V)+2)+0,Pc[Z]=Tc;
function Wc(d,g,b,n,m,q,f){this.name=d;this.value=0;this.mh(n);this.rl(m);this.Kf=b;this.Na=g;this.duration=q;this.state=this.W=0;this.Rk=this.Sk=this.Pk=this.eh=!1;this.Ka=this.P=0;this.Qb=f;this.Be=1;this.Vh=!1;this.Nc=[];this.Tp=1;for(d=0;28>d;d++)this.Nc[d]={},this.Nc[d].sg=0,this.Nc[d].Wk=0,this.Nc[d].sh=0,this.Nc[d].qc=0,this.Nc[d].Hc=!0}Wc.prototype={};Wc.prototype.mh=function(d){this.ja=parseFloat(d.split(",")[0]);this.bb=parseFloat(d.split(",")[1]);this.Ka=this.P=0};
Wc.prototype.rl=function(d){this.ea=parseFloat(d.split(",")[0]);this.Va=parseFloat(d.split(",")[1]);isNaN(this.Va)&&(this.Va=this.ea)};
Wc.prototype.Pl=function(d){if(0===this.state)return-1;1===this.state&&(this.W+=d);2===this.state&&(this.W-=d);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.W+=d*this.Be;5===this.state&&(this.W+=d*this.Be);return 0>this.W?(this.W=0,4===this.state?this.Be=1:6===this.state?(this.Be=1,this.Vh=!1):this.state=0,this.Rk=!0,0):this.W>this.duration?(this.W=this.duration,4===this.state?this.Be=-1:6===this.state?(this.Be=-1,this.Vh=!0):5===this.state?this.W=0:this.state=0,this.Pk=!0,
1):this.Vh?Sc(this.Kf,this.duration-this.W,this.duration,this.Vh,this.Nc[this.Kf]):Sc(this.Kf,this.W,this.duration,this.Vh,this.Nc[this.Kf])};function Xc(d){this.b=d}
(function(){var d=Xc.prototype;d.Oa=function(b){this.behavior=b;this.b=b.b};d.Oa.prototype.la=function(){};d.Fa=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b;this.Xa=0};var g=d.Fa.prototype;g.la=function(){this.ih=this.u[0];this.Wa=1==this.ih||2==this.ih||3==this.ih||4==this.ih;this.Na=this.u[1];this.lm=this.u[2];this.target=this.u[3];this.zl=this.u[4];this.Jl=!1;1===this.zl&&(this.target="relative("+this.target+")");this.duration=this.u[5];this.Qb=1===this.u[6];this.value=
0;this.B={};this.Lo(this.Na,this.lm,"current",this.target,this.duration,this.Qb);1===this.u[0]&&this.fj(0);2===this.u[0]&&this.fj(2);3===this.u[0]&&this.fj(3);4===this.u[0]&&this.fj(4)};g.Xd=function(b,d){void 0===d&&(d="current");var g=d.replace(/^\s\s*/,"").replace(/\s\s*$/,"");d=d.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var q=this.value;if("current"===d)switch(b){case 0:g=this.d.x+","+this.d.y;break;case 1:g=this.d.width+","+this.d.height;break;case 2:g=this.d.width+","+this.d.height;break;case 3:g=
this.d.width+","+this.d.height;break;case 4:g=Ha(this.d.k)+","+Ha(this.d.k);break;case 5:g=100*this.d.opacity+","+100*this.d.opacity;break;case 6:g=q+","+q;break;case 7:g=this.d.x+","+this.d.y;break;case 8:g=this.d.x+","+this.d.y;break;case 9:g=void 0!==this.d.Ra?this.d.width/this.d.Ra.width+","+this.d.height/this.d.Ra.height:"1,1"}if("relative"===d.substring(0,8)){var f=d.match(/\((.*?)\)/);if(f)var a=parseFloat(f[1].split(",")[0]),c=parseFloat(f[1].split(",")[1]);isNaN(a)&&(a=0);isNaN(c)&&(c=0);
switch(b){case 0:g=this.d.x+a+","+(this.d.y+c);break;case 1:g=this.d.width+a+","+(this.d.height+c);break;case 2:g=this.d.width+a+","+(this.d.height+c);break;case 3:g=this.d.width+a+","+(this.d.height+c);break;case 4:g=Ha(this.d.k)+a+","+(Ha(this.d.k)+c);break;case 5:g=100*this.d.opacity+a+","+(100*this.d.opacity+c);break;case 6:g=q+a+","+q+a;break;case 7:g=this.d.x+a+","+this.d.y;break;case 8:g=this.d.x+","+(this.d.y+a);break;case 9:g=a+","+c}}return g};g.Lo=function(b,d,g,q,f,a){g=this.Xd(b,g);q=
this.Xd(b,q);void 0!==this.B["default"]&&delete this.B["default"];this.B["default"]=new Wc("default",b,d,g,q,f,a);this.B["default"].Ye=0};g.Sb=function(){JSON.stringify(this.B["default"]);return{playmode:this.ih,active:this.Wa,tweened:this.Na,easing:this.lm,target:this.target,targetmode:this.zl,useCurrent:this.Jl,duration:this.duration,enforce:this.Qb,value:this.value,tweenlist:JSON.stringify(this.B["default"])}};Wc.Ds=function(b,d,g,q,f,a,c,u){d=new Wc(d,g,q,f,a,c,u);for(var e in b)d[e]=b[e];return d};
g.mc=function(b){var d=JSON.parse(b.tweenlist),d=Wc.Ds(d,d.name,d.Na,d.Kf,d.ja+","+d.bb,d.ea+","+d.Va,d.duration,d.Qb);this.B["default"]=d;this.ih=b.playmode;this.Wa=b.active;this.eg=b.tweened;this.lm=b.easing;this.target=b.target;this.zl=b.targetmode;this.Jl=b.useCurrent;this.duration=b.duration;this.Qb=b.enforce;this.value=b.value};g.hx=function(b){1<b&&(b=1);0>b&&(b=0);for(var d in this.B){var g=this.B[d];g.P=0;g.Ka=0;g.state=3;g.W=b*g.duration;var q=g.Pl(0);this.mo(g,q)}};g.fj=function(b){for(var d in this.B){var g=
this.B[d];if(this.Jl){var q=this.Xd(g.Na,"current"),f=this.Xd(g.Na,this.target);g.mh(q);g.rl(f)}0===b&&(g.W=1E-6,g.P=0,g.Ka=0,g.eh=!0,g.state=1);1===b&&(g.state=g.Tp);if(2===b||4===b)g.W=1E-6,g.P=0,g.Ka=0,g.eh=!0,2==b&&(g.state=4),4==b&&(g.state=6);3===b&&(g.W=1E-6,g.P=0,g.Ka=0,g.eh=!0,g.state=5)}};g.qx=function(b){for(var d in this.B){var g=this.B[d];3!=g.state&&0!=g.state&&(g.Tp=g.state);1===b&&(g.W=0);2===b&&(g.W=g.duration);g.state=3;var q=g.Pl(0);this.mo(g,q)}};g.Uw=function(b){for(var d in this.B){var g=
this.B[d];1===b&&(g.W=g.duration,g.P=0,g.Ka=0,g.Sk=!0);g.state=2}};g.mo=function(b,d){if(0===b.Na)b.Qb?(this.d.x=b.ja+(b.ea-b.ja)*d,this.d.y=b.bb+(b.Va-b.bb)*d):(this.d.x+=(b.ea-b.ja)*d-b.P,this.d.y+=(b.Va-b.bb)*d-b.Ka,b.P=(b.ea-b.ja)*d,b.Ka=(b.Va-b.bb)*d);else if(1===b.Na)b.Qb?(this.d.width=b.ja+(b.ea-b.ja)*d,this.d.height=b.bb+(b.Va-b.bb)*d):(this.d.width+=(b.ea-b.ja)*d-b.P,this.d.height+=(b.Va-b.bb)*d-b.Ka,b.P=(b.ea-b.ja)*d,b.Ka=(b.Va-b.bb)*d);else if(2===b.Na)b.Qb?this.d.width=b.ja+(b.ea-b.ja)*
d:(this.d.width+=(b.ea-b.ja)*d-b.P,b.P=(b.ea-b.ja)*d);else if(3===b.Na)b.Qb?this.d.height=b.bb+(b.Va-b.bb)*d:(this.d.height+=(b.Va-b.bb)*d-b.Ka,b.Ka=(b.Va-b.bb)*d);else if(4===b.Na)if(b.Qb){var g=b.ja+(b.ea-b.ja)*d;this.d.k=Ja(E(g))}else g=(b.ea-b.ja)*d-b.P,this.d.k=Ja(this.d.k+E(g)),b.P=(b.ea-b.ja)*d;else if(5===b.Na)b.Qb?this.d.opacity=(b.ja+(b.ea-b.ja)*d)/100:(this.d.opacity+=((b.ea-b.ja)*d-b.P)/100,b.P=(b.ea-b.ja)*d);else if(6===b.Na)b.Qb?this.value=b.ja+(b.ea-b.ja)*d:(this.value+=(b.ea-b.ja)*
d-b.P,b.P=(b.ea-b.ja)*d);else if(7===b.Na)b.Qb?this.d.x=b.ja+(b.ea-b.ja)*d:(this.d.x+=(b.ea-b.ja)*d-b.P,b.P=(b.ea-b.ja)*d);else if(8===b.Na)b.Qb?this.d.y=b.bb+(b.Va-b.bb)*d:(this.d.y+=(b.Va-b.bb)*d-b.Ka,b.Ka=(b.Va-b.bb)*d);else if(9===b.Na){var g=b.ja+(b.ea-b.ja)*d,q=b.bb+(b.Va-b.bb)*d;0>this.d.width&&(g=b.ja+(b.ea+b.ja)*-d);0>this.d.height&&(q=b.bb+(b.Va+b.bb)*-d);b.Qb?(this.d.width=this.d.Ra.width*g,this.d.height=this.d.Ra.height*q):(0>this.d.width?(this.d.width=this.d.width/(-1+b.P)*g,b.P=g+1):
(this.d.width=this.d.width/(1+b.P)*g,b.P=g-1),0>this.d.height?(this.d.height=this.d.height/(-1+b.Ka)*q,b.Ka=q+1):(this.d.height=this.d.height/(1+b.Ka)*q,b.Ka=q-1))}this.d.F()};g.$a=function(){var b=this.b.Wh(this.d),d=this.B["default"];0!==d.state&&(d.eh&&(this.b.trigger(Xc.prototype.q.Xs,this.d),d.eh=!1),d.Sk&&(this.b.trigger(Xc.prototype.q.Ws,this.d),d.Sk=!1),this.Wa=1==d.state||2==d.state||4==d.state||5==d.state||6==d.state,b=d.Pl(b),this.mo(d,b),d.Pk&&(this.b.trigger(Xc.prototype.q.Ms,this.d),
d.Pk=!1),d.Rk&&(this.b.trigger(Xc.prototype.q.Vs,this.d),d.Rk=!1))};d.q={};g=d.q;g.xs=function(){return 0!==this.B["default"].state};g.by=function(){return 2==this.B["default"].state};g.Tx=function(b,d){var g=this.B["default"];return gc(g.W/g.duration,b,d)};g.my=function(b,d){var g=this.B["default"];this.kj=gc(g.W/g.duration,b,d);if(g=this.zn!=this.kj&&this.kj)this.zn=this.kj;return g};g.Xs=function(){return void 0===this.B["default"]?!1:this.B["default"].eh};g.Ws=function(){return void 0===this.B["default"]?
!1:this.B["default"].Sk};g.Ms=function(){return void 0===this.B["default"]?!1:this.B["default"].Pk};g.Vs=function(){return void 0===this.B["default"]?!1:this.B["default"].Rk};d.na={};g=d.na;g.mt=function(b,d){this.zn=this.kj=!1;this.Jl=1==d;this.fj(b)};g.nt=function(b){this.qx(b)};g.Co=function(b){this.zn=this.kj=!1;this.Uw(b)};g.wy=function(b){this.hx(b)};g.Ey=function(b){isNaN(b)||0>b||void 0===this.B["default"]||(this.B["default"].duration=b)};g.Jy=function(b){void 0!==this.B["default"]&&(this.B["default"].Qb=
1===b)};g.Ly=function(b){void 0!==this.B["default"]&&(b=this.Xd(this.B["default"].Na,b),this.B["default"].mh(b))};g.Qy=function(b,d,g){if(void 0!==this.B["default"]&&!isNaN(g)){var q=this.B["default"],f=g+"";this.zl=d;var a="",c="";if(1===d){this.target="relative("+f+")";switch(b){case 0:a=this.d.x+g;c=q.Va;break;case 1:a=q.ea;c=this.d.y+g;break;case 2:c=a=""+Ha(this.d.k+E(g));break;case 3:c=a=""+100*this.d.opacity+g;break;case 4:a=this.d.width+g;c=q.Va;break;case 5:a=q.ea;c=this.d.height+g;break;
case 6:c=a=g}f=a+","+c}else{switch(b){case 0:a=g;c=q.Va;break;case 1:a=q.ea;c=g;break;case 2:c=a=g;break;case 3:c=a=g;break;case 4:a=g;c=q.Va;break;case 5:a=q.ea;c=g;break;case 6:c=a=g}this.target=f=a+","+c}b=this.Xd(this.B["default"].Na,"current");f=this.Xd(this.B["default"].Na,f);q.mh(b);q.rl(f)}};g.Sy=function(b){void 0!==this.B["default"]&&(this.B["default"].Na=b)};g.Fy=function(b){void 0!==this.B["default"]&&(this.B["default"].Kf=b)};g.Gy=function(b,d,g,q,f){void 0!==this.B["default"]&&(this.B["default"].Nc[b].Hc=
!1,this.B["default"].Nc[b].sg=d,this.B["default"].Nc[b].Wk=g,this.B["default"].Nc[b].sh=q,this.B["default"].Nc[b].qc=f)};g.xy=function(){void 0!==this.B["default"]&&(this.B["default"].Hc=!0)};g.Ty=function(b){var d=this.B["default"];this.value=b;6===d.Na&&d.mh(this.Xd(d.Na,"current"))};g.Oy=function(b,d,g,q,f){if(void 0===this.B["default"])this.Lo(b,d,initial,g,q,f);else{var a=this.B["default"];a.Na=b;a.Kf=d;a.mh(this.Xd(b,"current"));a.rl(this.Xd(b,g));a.duration=q;a.Qb=1===f}};d.wb={};d=d.wb;d.Vy=
function(b){var d="N/A";switch(this.B["default"].state){case 0:d="paused";break;case 1:d="playing";break;case 2:d="reversing";break;case 3:d="seeking"}b.Xb(d)};d.vy=function(b){b.G(this.B["default"].W/this.B["default"].duration)};d.rs=function(b){b.G(this.B["default"].duration)};d.Xy=function(b){var d=this.B["default"],g="N/A";switch(d.Na){case 0:g=d.ea;break;case 1:g=d.Va;break;case 2:g=d.ea;break;case 3:g=d.ea;break;case 4:g=d.ea;break;case 5:g=d.Va;break;case 6:g=d.ea}b.G(g)};d.qt=function(b){b.G(this.value)};
d.Zy=function(b,d,g,q,f){q=1<q?1:q;f=Sc(f,0>q?0:q,1,!1,!1);b.G(d+f*(g-d))}})();function rc(d){this.b=d}(function(){var d=rc.prototype;d.Oa=function(b){this.behavior=b;this.b=b.b};d.Oa.prototype.la=function(){};d.Fa=function(b,d){this.type=b;this.behavior=b.behavior;this.d=d;this.b=b.b};var g=d.Fa.prototype;g.la=function(){this.d.I.solidEnabled=0!==this.u[0]};g.$a=function(){};d.q=new function(){};d.na=new function(){}})();
function qc(){return[tc,uc,vc,sc,wc,yc,Ac,rc,xc,zc,Xc,N.prototype.q.As,N.prototype.q.ls,N.prototype.na.os,sc.prototype.na.qs,N.prototype.na.tt,N.prototype.na.ht,vc.prototype.na.gt,N.prototype.na.bt,N.prototype.q.us,sc.prototype.na.et,sc.prototype.wb.Eo,sc.prototype.wb.Fo,wc.prototype.q.Bs,yc.prototype.na.lt,N.prototype.q.ts,N.prototype.wb.random,sc.prototype.na.dt,sc.prototype.q.ks,sc.prototype.na.Do,sc.prototype.q.Is,sc.prototype.na.ct,N.prototype.na.ds,N.prototype.na.ot,N.prototype.q.vo,wc.prototype.q.Ql,
N.prototype.na.vs,Xc.prototype.na.mt,Xc.prototype.na.Co,uc.prototype.na.Play,sc.prototype.na.it]};
