// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ca,da,ea,H,ga,ha,M,N,ia,ka,la,ma,oa,pa,P,qa,ra,sa,ta,ua,va,wa,xa,ya,Aa,S,Ba,Ca,T,Da,Ea,Ga,Ha,Ia,Ja,Ka,La,Qa,Ra,Sa,U,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,V,Tb,Ub={},Vb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(s,h,a,q){this.set(s,h,a,q)}function l(){this.xb=this.wb=this.zb=this.yb=this.Fb=this.Eb=this.Ma=this.La=0}function b(s,h,a,q){s<h?a<q?(k=s<a?s:a,u=h>q?h:q):(k=s<q?s:q,u=h>a?h:a):a<q?(k=h<a?h:a,u=s>q?s:q):(k=h<q?h:q,u=s>a?s:a)}function n(){this.items=this.Xc=null;this.Ff=0;p&&(this.Xc=new Set);this.$f=[];this.$d=!0}function r(s){m[t++]=s}function a(){this.ra=this.qj=this.y=this.Tj=0}function g(s){this.gb=[];this.Ih=this.Kh=this.Lh=this.Jh=0;this.ph(s)}function d(s,h){this.Lr=
s;this.Kr=h;this.cells={}}function f(s,a,q){var c;return h.length?(c=h.pop(),c.xt=s,c.x=a,c.y=q,c):new da(s,a,q)}function c(s,h,a){this.xt=s;this.x=h;this.y=a;this.$g=new ea}H=function(s){window.console&&window.console.log&&window.console.log(s)};ga=function(s){window.console&&window.console.error&&window.console.error(s)};ca=function(s){return s};ha=function(s){return"undefined"===typeof s};M=function(s){return"number"===typeof s};N=function(s){return"string"===typeof s};ia=function(s){return 0<
s&&0===(s-1&s)};ka=function(s){--s;for(var h=1;32>h;h<<=1)s|=s>>h;return s+1};la=function(s){return 0>s?-s:s};ma=function(s,h){return s>h?s:h};oa=function(s,h){return s<h?s:h};pa=Math.PI;P=function(s){return 0<=s?s|0:(s|0)-1};qa=function(s){var h=s|0;return h===s?h:h+1};ra=function(s,h,a,q,c,g,f,d){var b,m,p,k;s<a?(m=s,b=a):(m=a,b=s);c<f?(k=c,p=f):(k=f,p=c);if(b<k||m>p)return!1;h<q?(m=h,b=q):(m=q,b=h);g<d?(k=g,p=d):(k=d,p=g);if(b<k||m>p)return!1;b=c-s+f-a;m=g-h+d-q;s=a-s;h=q-h;c=f-c;g=d-g;d=la(h*
c-g*s);return la(c*m-g*b)>d?!1:la(s*m-h*b)<=d};e.prototype.set=function(s,h,a,q){this.left=s;this.top=h;this.right=a;this.bottom=q};e.prototype.Or=function(s){this.left=s.left;this.top=s.top;this.right=s.right;this.bottom=s.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(s,h){this.left+=s;this.top+=h;this.right+=s;this.bottom+=h;return this};e.prototype.normalize=function(){var s=0;this.left>this.right&&
(s=this.left,this.left=this.right,this.right=s);this.top>this.bottom&&(s=this.top,this.top=this.bottom,this.bottom=s)};e.prototype.Gt=function(s){return!(s.right<this.left||s.bottom<this.top||s.left>this.right||s.top>this.bottom)};e.prototype.Ht=function(s,h,a){return!(s.right+h<this.left||s.bottom+a<this.top||s.left+h>this.right||s.top+a>this.bottom)};e.prototype.Nb=function(s,h){return s>=this.left&&s<=this.right&&h>=this.top&&h<=this.bottom};e.prototype.ms=function(s){return this.left===s.left&&
this.top===s.top&&this.right===s.right&&this.bottom===s.bottom};sa=e;l.prototype.oh=function(s){this.La=s.left;this.Ma=s.top;this.Eb=s.right;this.Fb=s.top;this.yb=s.right;this.zb=s.bottom;this.wb=s.left;this.xb=s.bottom};l.prototype.xp=function(s,h){if(0===h)this.oh(s);else{var a=Math.sin(h),q=Math.cos(h),c=s.left*a,g=s.top*a,d=s.right*a,a=s.bottom*a,f=s.left*q,b=s.top*q,m=s.right*q,q=s.bottom*q;this.La=f-g;this.Ma=b+c;this.Eb=m-g;this.Fb=b+d;this.yb=m-a;this.zb=q+d;this.wb=f-a;this.xb=q+c}};l.prototype.offset=
function(s,h){this.La+=s;this.Ma+=h;this.Eb+=s;this.Fb+=h;this.yb+=s;this.zb+=h;this.wb+=s;this.xb+=h;return this};var k=0,u=0;l.prototype.Wm=function(s){b(this.La,this.Eb,this.yb,this.wb);s.left=k;s.right=u;b(this.Ma,this.Fb,this.zb,this.xb);s.top=k;s.bottom=u};l.prototype.Nb=function(s,h){var a=this.Eb-this.La,q=this.Fb-this.Ma,c=this.yb-this.La,g=this.zb-this.Ma,d=s-this.La,f=h-this.Ma,b=a*a+q*q,m=a*c+q*g,q=a*d+q*f,p=c*c+g*g,k=c*d+g*f,t=1/(b*p-m*m),a=(p*q-m*k)*t,b=(b*k-m*q)*t;if(0<=a&&0<b&&1>a+
b)return!0;a=this.wb-this.La;q=this.xb-this.Ma;b=a*a+q*q;m=a*c+q*g;q=a*d+q*f;t=1/(b*p-m*m);a=(p*q-m*k)*t;b=(b*k-m*q)*t;return 0<=a&&0<b&&1>a+b};l.prototype.Xd=function(s,h){if(h)switch(s){case 0:return this.La;case 1:return this.Eb;case 2:return this.yb;case 3:return this.wb;case 4:return this.La;default:return this.La}else switch(s){case 0:return this.Ma;case 1:return this.Fb;case 2:return this.zb;case 3:return this.xb;case 4:return this.Ma;default:return this.Ma}};l.prototype.Do=function(){return(this.La+
this.Eb+this.yb+this.wb)/4};l.prototype.Eo=function(){return(this.Ma+this.Fb+this.zb+this.xb)/4};l.prototype.Mn=function(s){var h=s.Do(),a=s.Eo();if(this.Nb(h,a))return!0;h=this.Do();a=this.Eo();if(s.Nb(h,a))return!0;var q,c,g,b,d,f,m,p;for(m=0;4>m;m++)for(p=0;4>p;p++)if(h=this.Xd(m,!0),a=this.Xd(m,!1),q=this.Xd(m+1,!0),c=this.Xd(m+1,!1),g=s.Xd(p,!0),b=s.Xd(p,!1),d=s.Xd(p+1,!0),f=s.Xd(p+1,!1),ra(h,a,q,c,g,b,d,f))return!0;return!1};ta=l;ua=function(s,h){for(var a in h)h.hasOwnProperty(a)&&(s[a]=h[a]);
return s};va=function(s,h){var a,q;h=P(h);if(!(0>h||h>=s.length)){a=h;for(q=s.length-1;a<q;a++)s[a]=s[a+1];s.length=q}};wa=function(s,h){s.length=h.length;var a,q;a=0;for(q=h.length;a<q;a++)s[a]=h[a]};xa=function(h,a){h.push.apply(h,a)};ya=function(h,a){var q,c;q=0;for(c=h.length;q<c;++q)if(h[q]===a)return q;return-1};Aa=function(h,a){var q=ya(h,a);-1!==q&&va(h,q)};S=function(h){return h/(180/pa)};Ba=function(h){return 180/pa*h};Ca=function(h){h%=360;0>h&&(h+=360);return h};T=function(h){h%=2*pa;
0>h&&(h+=2*pa);return h};Da=function(h){return Ca(Ba(h))};Ea=function(h){return T(S(h))};Ga=function(h,a,q,c){return Math.atan2(c-a,q-h)};Ha=function(h,a){if(h===a)return 0;var q=Math.sin(h),c=Math.cos(h),g=Math.sin(a),b=Math.cos(a),q=q*g+c*b;return 1<=q?0:-1>=q?pa:Math.acos(q)};Ia=function(h,a,q){var c=Math.sin(h),g=Math.cos(h),b=Math.sin(a),d=Math.cos(a);return Math.acos(c*b+g*d)>q?0<g*b-c*d?T(h+q):T(h-q):T(a)};Ja=function(h,a){var q=Math.sin(h),c=Math.cos(h),g=Math.sin(a),b=Math.cos(a);return 0>=
c*g-q*b};Ka=function(h,a,q,c,g,b){if(0===q)return b?h:a;var d=Math.sin(q);q=Math.cos(q);h-=c;a-=g;var m=h*d;h=h*q-a*d;a=a*q+m;return b?h+c:a+g};La=function(h,a,q,c){h=q-h;a=c-a;return Math.sqrt(h*h+a*a)};Qa=function(h,a){return!h!==!a};Ra=function(h){for(var a in h)if(h.hasOwnProperty(a))return!0;return!1};Sa=function(h){for(var a in h)h.hasOwnProperty(a)&&delete h[a]};var z=+new Date;U=function(){if("undefined"!==typeof window.performance){var h=window.performance;if("undefined"!==typeof h.now)return h.now();
if("undefined"!==typeof h.webkitNow)return h.webkitNow();if("undefined"!==typeof h.mozNow)return h.mozNow();if("undefined"!==typeof h.msNow)return h.msNow()}return Date.now()-z};var w=!1,C=w=!1,x=!1;"undefined"!==typeof window&&(w=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),w=!w&&/safari/i.test(navigator.userAgent),C=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta);var p=!w&&!x&&!C&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;
n.prototype.contains=function(h){return this.Af()?!1:p?this.Xc.has(h):this.items&&this.items.hasOwnProperty(h)};n.prototype.add=function(h){if(p)this.Xc.has(h)||(this.Xc.add(h),this.$d=!1);else{var a=h.toString(),q=this.items;q?q.hasOwnProperty(a)||(q[a]=h,this.Ff++,this.$d=!1):(this.items={},this.items[a]=h,this.Ff=1,this.$d=!1)}};n.prototype.remove=function(h){if(!this.Af())if(p)this.Xc.has(h)&&(this.Xc["delete"](h),this.$d=!1);else if(this.items){h=h.toString();var a=this.items;a.hasOwnProperty(h)&&
(delete a[h],this.Ff--,this.$d=!1)}};n.prototype.clear=function(){this.Af()||(p?this.Xc.clear():(this.items=null,this.Ff=0),this.$f.length=0,this.$d=!0)};n.prototype.Af=function(){return 0===this.count()};n.prototype.count=function(){return p?this.Xc.size:this.Ff};var m=null,t=0;n.prototype.Uu=function(){if(!this.$d){if(p)this.$f.length=this.Xc.size,m=this.$f,t=0,this.Xc.forEach(r),m=null,t=0;else{var h=this.$f;h.length=this.Ff;var a,q=0,c=this.items;if(c)for(a in c)c.hasOwnProperty(a)&&(h[q++]=c[a])}this.$d=
!0}};n.prototype.ye=function(){this.Uu();return this.$f};ea=n;new ea;Va=function(h,a){p?Ta(h,a.Xc):Ua(h,a.ye())};Ta=function(h,a){var q,c,g,b;c=q=0;for(g=h.length;q<g;++q)b=h[q],a.has(b)||(h[c++]=b);h.length=c};Ua=function(h,a){var q,c,g,b;c=q=0;for(g=h.length;q<g;++q)b=h[q],-1===ya(a,b)&&(h[c++]=b);h.length=c};a.prototype.add=function(h){this.y=h-this.Tj;this.qj=this.ra+this.y;this.Tj=this.qj-this.ra-this.y;this.ra=this.qj};a.prototype.reset=function(){this.ra=this.qj=this.y=this.Tj=0};Wa=a;Xa=function(h){return h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};g.prototype.ph=function(h){this.ip=h;this.Vc=h.length/2;this.gb.length=h.length;this.Nh=this.Oh=-1;this.Zm=0};g.prototype.Cf=function(){return!this.ip.length};g.prototype.Da=function(){for(var h=this.gb,a=h[0],q=a,c=h[1],g=c,b,d,m=1,f=this.Vc;m<f;++m)d=2*m,b=h[d],d=h[d+1],b<a&&(a=b),b>q&&(q=b),d<c&&(c=d),d>g&&(g=d);this.Jh=a;this.Kh=q;this.Lh=c;this.Ih=g};g.prototype.oh=function(h,a,q){this.gb.length=8;this.Vc=4;var c=this.gb;c[0]=h.left-a;c[1]=h.top-q;c[2]=h.right-a;c[3]=h.top-q;c[4]=h.right-
a;c[5]=h.bottom-q;c[6]=h.left-a;c[7]=h.bottom-q;this.Oh=h.right-h.left;this.Nh=h.bottom-h.top;this.Da()};g.prototype.Sf=function(h,a,q,c,g){this.gb.length=8;this.Vc=4;var b=this.gb;b[0]=h.La-a;b[1]=h.Ma-q;b[2]=h.Eb-a;b[3]=h.Fb-q;b[4]=h.yb-a;b[5]=h.zb-q;b[6]=h.wb-a;b[7]=h.xb-q;this.Oh=c;this.Nh=g;this.Da()};g.prototype.wp=function(h){this.Vc=h.Vc;wa(this.gb,h.gb);this.Jh=h.Jh;this.Lh-h.Lh;this.Kh=h.Kh;this.Ih=h.Ih};g.prototype.qf=function(h,a,q){if(this.Oh!==h||this.Nh!==a||this.Zm!==q){this.Oh=h;
this.Nh=a;this.Zm=q;var c,g,b,d,m,f=0,p=1,k=this.ip,t=this.gb;0!==q&&(f=Math.sin(q),p=Math.cos(q));q=0;for(b=this.Vc;q<b;q++)c=2*q,g=c+1,d=k[c]*h,m=k[g]*a,t[c]=d*p-m*f,t[g]=m*p+d*f;this.Da()}};g.prototype.Nb=function(h,a){var q=this.gb;if(h===q[0]&&a===q[1])return!0;var c,g,b,d=this.Vc,m=this.Jh-110,f=this.Lh-101,p=this.Kh+131,k=this.Ih+120,t,n,w=0,u=0;for(c=0;c<d;c++)g=2*c,b=(c+1)%d*2,t=q[g],g=q[g+1],n=q[b],b=q[b+1],ra(m,f,h,a,t,g,n,b)&&w++,ra(p,k,h,a,t,g,n,b)&&u++;return 1===w%2||1===u%2};g.prototype.Bg=
function(h,a,q){var c=h.gb,g=this.gb;if(this.Nb(c[0]+a,c[1]+q)||h.Nb(g[0]-a,g[1]-q))return!0;var b,d,m,f,p,k,t,n,w,u,e,l;b=0;for(f=this.Vc;b<f;b++)for(d=2*b,m=(b+1)%f*2,n=g[d],d=g[d+1],w=g[m],u=g[m+1],m=0,t=h.Vc;m<t;m++)if(p=2*m,k=(m+1)%t*2,e=c[p]+a,p=c[p+1]+q,l=c[k]+a,k=c[k+1]+q,ra(n,d,w,u,e,p,l,k))return!0;return!1};Ya=g;d.prototype.qk=function(h,a,q){var c;c=this.cells[h];return c?(c=c[a])?c:q?(c=f(this,h,a),this.cells[h][a]=c):null:q?(c=f(this,h,a),this.cells[h]={},this.cells[h][a]=c):null};d.prototype.Eh=
function(h){return P(h/this.Lr)};d.prototype.Fh=function(h){return P(h/this.Kr)};d.prototype.update=function(a,q,c){var g,b,d,m,f;if(q)for(g=q.left,b=q.right;g<=b;++g)for(d=q.top,m=q.bottom;d<=m;++d)if(!c||!c.Nb(g,d))if(f=this.qk(g,d,!1))f.remove(a),f.Af()&&(f.$g.clear(),1E3>h.length&&h.push(f),this.cells[g][d]=null);if(c)for(g=c.left,b=c.right;g<=b;++g)for(d=c.top,m=c.bottom;d<=m;++d)q&&q.Nb(g,d)||this.qk(g,d,!0).Ft(a)};d.prototype.mp=function(h,a){var q,c,g,b,d,m;q=this.Eh(h.left);g=this.Fh(h.top);
c=this.Eh(h.right);for(d=this.Fh(h.bottom);q<=c;++q)for(b=g;b<=d;++b)(m=this.qk(q,b,!1))&&m.dump(a)};Za=d;var h=[];c.prototype.Af=function(){return this.$g.Af()};c.prototype.Ft=function(h){this.$g.add(h)};c.prototype.remove=function(h){this.$g.remove(h)};c.prototype.dump=function(h){xa(h,this.$g.ye())};da=c;var q="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");$a=function(h){return 0>=h||11<=h?"source-over":q[h-1]};ab=
function(h,a,q){if(q)switch(h.Db=q.ONE,h.Ab=q.ONE_MINUS_SRC_ALPHA,a){case 1:h.Db=q.ONE;h.Ab=q.ONE;break;case 3:h.Db=q.ONE;h.Ab=q.ZERO;break;case 4:h.Db=q.ONE_MINUS_DST_ALPHA;h.Ab=q.ONE;break;case 5:h.Db=q.DST_ALPHA;h.Ab=q.ZERO;break;case 6:h.Db=q.ZERO;h.Ab=q.SRC_ALPHA;break;case 7:h.Db=q.ONE_MINUS_DST_ALPHA;h.Ab=q.ZERO;break;case 8:h.Db=q.ZERO;h.Ab=q.ONE_MINUS_SRC_ALPHA;break;case 9:h.Db=q.DST_ALPHA;h.Ab=q.ONE_MINUS_SRC_ALPHA;break;case 10:h.Db=q.ONE_MINUS_DST_ALPHA,h.Ab=q.SRC_ALPHA}};bb=function(h){return Math.round(1E6*
h)/1E6};cb=function(h,a){return"string"!==typeof h||"string"!==typeof a||h.length!==a.length?!1:h===a?!0:h.toLowerCase()===a.toLowerCase()};db=function(h){h=h.target;return!h||h===document||h===window||document&&document.body&&h===document.body||cb(h.tagName,"canvas")?!0:!1}})();var Wb="undefined"!==typeof Float32Array?Float32Array:Array;function Xb(e){var l=new Wb(3);e&&(l[0]=e[0],l[1]=e[1],l[2]=e[2]);return l}
function Yb(e){var l=new Wb(16);e&&(l[0]=e[0],l[1]=e[1],l[2]=e[2],l[3]=e[3],l[4]=e[4],l[5]=e[5],l[6]=e[6],l[7]=e[7],l[8]=e[8],l[9]=e[9],l[10]=e[10],l[11]=e[11],l[12]=e[12],l[13]=e[13],l[14]=e[14],l[15]=e[15]);return l}function Zb(e,l){l[0]=e[0];l[1]=e[1];l[2]=e[2];l[3]=e[3];l[4]=e[4];l[5]=e[5];l[6]=e[6];l[7]=e[7];l[8]=e[8];l[9]=e[9];l[10]=e[10];l[11]=e[11];l[12]=e[12];l[13]=e[13];l[14]=e[14];l[15]=e[15]}
function $b(e,l){var b=l[0],n=l[1];l=l[2];e[0]*=b;e[1]*=b;e[2]*=b;e[3]*=b;e[4]*=n;e[5]*=n;e[6]*=n;e[7]*=n;e[8]*=l;e[9]*=l;e[10]*=l;e[11]*=l}
function ac(e,l,b,n){n||(n=Yb());var r,a,g,d,f,c,k,u,z=e[0],w=e[1];e=e[2];a=b[0];g=b[1];r=b[2];b=l[1];c=l[2];z===l[0]&&w===b&&e===c?(e=n,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(b=z-l[0],c=w-l[1],k=e-l[2],u=1/Math.sqrt(b*b+c*c+k*k),b*=u,c*=u,k*=u,l=g*k-r*c,r=r*b-a*k,a=a*c-g*b,(u=Math.sqrt(l*l+r*r+a*a))?(u=1/u,l*=u,r*=u,a*=u):a=r=l=0,g=c*a-k*r,d=k*l-b*a,f=b*r-c*l,(u=Math.sqrt(g*g+d*d+f*f))?(u=1/u,g*=u,d*=u,f*=u):f=d=g=0,
n[0]=l,n[1]=g,n[2]=b,n[3]=0,n[4]=r,n[5]=d,n[6]=c,n[7]=0,n[8]=a,n[9]=f,n[10]=k,n[11]=0,n[12]=-(l*z+r*w+a*e),n[13]=-(g*z+d*w+f*e),n[14]=-(b*z+c*w+k*e),n[15]=1)}
(function(){function e(a){this.Qe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.$m=Xb([0,0,100]);this.mo=Xb([0,0,0]);this.Sp=Xb([0,1,0]);this.xm=Xb([1,1,1]);this.mn=!0;this.gl=Yb();this.Ic=Yb();this.Zn=Yb();this.ak=Yb();this.q=a;this.In()}function l(a,g,b){this.q=a;this.qh=g;this.name=b;this.Hc=a.getAttribLocation(g,"aPos");this.je=a.getAttribLocation(g,"aTex");this.ko=a.getUniformLocation(g,"matP");this.Ni=a.getUniformLocation(g,"matMV");this.Hf=
a.getUniformLocation(g,"opacity");this.lo=a.getUniformLocation(g,"samplerFront");this.Sg=a.getUniformLocation(g,"samplerBack");this.Ye=a.getUniformLocation(g,"destStart");this.Xe=a.getUniformLocation(g,"destEnd");this.cl=a.getUniformLocation(g,"seconds");this.bl=a.getUniformLocation(g,"pixelWidth");this.al=a.getUniformLocation(g,"pixelHeight");this.Rg=a.getUniformLocation(g,"layerScale");this.Qg=a.getUniformLocation(g,"layerAngle");this.Ug=a.getUniformLocation(g,"viewOrigin");this.Tg=a.getUniformLocation(g,
"scrollPos");this.At=!!(this.bl||this.al||this.cl||this.Sg||this.Ye||this.Xe||this.Rg||this.Qg||this.Ug||this.Tg);this.uo=this.vo=-999;this.Qi=1;this.qo=this.po=0;this.so=this.oo=this.no=1;this.xo=this.wo=this.zo=this.yo=this.ro=0;this.Pk=[];this.to=Yb();this.Hf&&a.uniform1f(this.Hf,1);this.lo&&a.uniform1i(this.lo,0);this.Sg&&a.uniform1i(this.Sg,1);this.Ye&&a.uniform2f(this.Ye,0,0);this.Xe&&a.uniform2f(this.Xe,1,1);this.Rg&&a.uniform1f(this.Rg,1);this.Qg&&a.uniform1f(this.Qg,0);this.Ug&&a.uniform2f(this.Ug,
0,0);this.Tg&&a.uniform2f(this.Tg,0,0);this.Le=!1}function b(a,g){this.type=a;this.u=g;this.q=g.q;this.fd=this.Jc=this.Uo=0;this.qa=this.$c=null;this.yp=[]}e.prototype.In=function(){var a=this.q,g;this.$n=1;this.Te=this.he=null;this.Wh=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.bo=a.ONE;this.Xn=a.ONE_MINUS_SRC_ALPHA;this.El=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.El);this.Ch=
Array(4);this.wh=Array(4);for(g=0;4>g;g++)this.Ch[g]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Ch[g]),this.wh[g]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.wh[g]);this.Ad=0;this.Dt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Dt);this.um=new Float32Array(16E3);this.gm=new Float32Array(16E3);this.iu=new Float32Array(32E3);for(var b=new Uint16Array(12E3),f=g=0;12E3>g;)b[g++]=f,b[g++]=f+1,b[g++]=f+2,b[g++]=f,b[g++]=f+2,b[g++]=f+3,f+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,
a.STATIC_DRAW);this.Fl=this.ud=0;this.ib=[];g=this.$j({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.ib.push(g);g=this.$j({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.ib.push(g);for(var c in bc)bc.hasOwnProperty(c)&&this.ib.push(this.$j(bc[c],
"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}",c));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Zd=[];this.xd=0;this.$b=!1;this.hn=this.Jg=-1;this.ig=null;this.Ls=a.createFramebuffer();this.op=null;this.we=Xb([0,0,0]);this.Ao=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Ao&&
(this.Ao=2048);this.qd(0)};l.prototype.pm=function(a){var g=this.to;if(g[0]!==a[0]||g[1]!==a[1]||g[2]!==a[2]||g[3]!==a[3]||g[4]!==a[4]||g[5]!==a[5]||g[6]!==a[6]||g[7]!==a[7]||g[8]!==a[8]||g[9]!==a[9]||g[10]!==a[10]||g[11]!==a[11]||g[12]!==a[12]||g[13]!==a[13]||g[14]!==a[14]||g[15]!==a[15])Zb(a,this.to),this.q.uniformMatrix4fv(this.Ni,!1,a)};e.prototype.$j=function(a,g,b){var f=this.q,c=f.createShader(f.FRAGMENT_SHADER);f.shaderSource(c,a.src);f.compileShader(c);if(!f.getShaderParameter(c,f.COMPILE_STATUS))return f.deleteShader(c),
null;var k=f.createShader(f.VERTEX_SHADER);f.shaderSource(k,g);f.compileShader(k);if(!f.getShaderParameter(k,f.COMPILE_STATUS))return f.deleteShader(c),f.deleteShader(k),null;g=f.createProgram();f.attachShader(g,c);f.attachShader(g,k);f.linkProgram(g);if(!f.getProgramParameter(g,f.LINK_STATUS))return f.deleteShader(c),f.deleteShader(k),f.deleteProgram(g),null;f.useProgram(g);f.deleteShader(c);f.deleteShader(k);b=new l(f,g,b);b.hk=a.hk||0;b.ik=a.ik||0;b.gn=!!a.gn;b.Tm=!!a.Tm;b.O=a.O||[];a=0;for(c=
b.O.length;a<c;a++)b.O[a][1]=f.getUniformLocation(g,b.O[a][0]),b.Pk.push(0),f.uniform1f(b.O[a][1],0);return b};e.prototype.vk=function(a){var g,b;g=0;for(b=this.ib.length;g<b;g++)if(this.ib[g].name===a)return g;return-1};e.prototype.hp=function(a,g,b){var f=this.Ic,c=this.gl,k=[0,0,0,0,0,0,0,0];k[0]=f[0]*a+f[4]*g+f[12];k[1]=f[1]*a+f[5]*g+f[13];k[2]=f[2]*a+f[6]*g+f[14];k[3]=f[3]*a+f[7]*g+f[15];k[4]=c[0]*k[0]+c[4]*k[1]+c[8]*k[2]+c[12]*k[3];k[5]=c[1]*k[0]+c[5]*k[1]+c[9]*k[2]+c[13]*k[3];k[6]=c[2]*k[0]+
c[6]*k[1]+c[10]*k[2]+c[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],b[0]=(.5*k[4]+.5)*this.width,b[1]=(.5*k[5]+.5)*this.height)};e.prototype.Rf=function(a,g,b){if(this.width!==a||this.height!==g||b){this.be();this.width=a;this.height=g;this.q.viewport(0,0,a,g);g=a/g;var f=this.gl,c;c=1*Math.tan(45*Math.PI/360);g*=c;a=-g;b=-c;f||(f=Yb());var k=g-a,n=c-b;f[0]=2/k;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/n;f[6]=0;f[7]=0;f[8]=(g+a)/k;f[9]=(c+b)/n;f[10]=-1001/999;f[11]=-1;f[12]=
0;f[13]=0;f[14]=-2E3/999;f[15]=0;ac(this.$m,this.mo,this.Sp,this.Ic);a=[0,0];g=[0,0];this.hp(0,0,a);this.hp(1,1,g);this.xm[0]=1/(g[0]-a[0]);this.xm[1]=-1/(g[1]-a[1]);a=0;for(g=this.ib.length;a<g;a++)b=this.ib[a],b.Le=!1,b.ko&&(this.q.useProgram(b.qh),this.q.uniformMatrix4fv(b.ko,!1,this.gl));this.q.useProgram(this.ib[this.Jg].qh);this.q.bindTexture(this.q.TEXTURE_2D,null);this.q.activeTexture(this.q.TEXTURE1);this.q.bindTexture(this.q.TEXTURE_2D,null);this.q.activeTexture(this.q.TEXTURE0);this.Te=
this.he=null}};e.prototype.nd=function(){ac(this.$m,this.mo,this.Sp,this.Ic);$b(this.Ic,this.xm)};e.prototype.translate=function(a,g){if(0!==a||0!==g){this.we[0]=a;this.we[1]=g;this.we[2]=0;var b=this.Ic,f=this.we,c=f[0],k=f[1],f=f[2];b[12]=b[0]*c+b[4]*k+b[8]*f+b[12];b[13]=b[1]*c+b[5]*k+b[9]*f+b[13];b[14]=b[2]*c+b[6]*k+b[10]*f+b[14];b[15]=b[3]*c+b[7]*k+b[11]*f+b[15]}};e.prototype.scale=function(a,g){if(1!==a||1!==g)this.we[0]=a,this.we[1]=g,this.we[2]=1,$b(this.Ic,this.we)};e.prototype.Pl=function(a){if(0!==
a){var g=this.Ic,b,f=Math.sin(a);a=Math.cos(a);var c=g[0],k=g[1],n=g[2],e=g[3],w=g[4],l=g[5],r=g[6],p=g[7];b?g!==b&&(b[8]=g[8],b[9]=g[9],b[10]=g[10],b[11]=g[11],b[12]=g[12],b[13]=g[13],b[14]=g[14],b[15]=g[15]):b=g;b[0]=c*a+w*f;b[1]=k*a+l*f;b[2]=n*a+r*f;b[3]=e*a+p*f;b[4]=c*-f+w*a;b[5]=k*-f+l*a;b[6]=n*-f+r*a;b[7]=e*-f+p*a}};e.prototype.td=function(){for(var a=!1,b=0;16>b;b++)if(this.Zn[b]!==this.Ic[b]){a=!0;break}a&&(a=this.Wc(),a.type=5,a.qa?Zb(this.Ic,a.qa):a.qa=Yb(this.Ic),Zb(this.Ic,this.Zn),this.$b=
!1)};b.prototype.ds=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.$c)};b.prototype.es=function(){var a=this.q;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.$c);a.activeTexture(a.TEXTURE0)};b.prototype.as=function(){var a=this.Uo,b=this.u;b.Wh=a;b=b.ig;b.Hf&&b.Qi!==a&&(b.Qi=a,this.q.uniform1f(b.Hf,a))};b.prototype.Yr=function(){this.q.drawElements(this.q.TRIANGLES,this.fd,this.q.UNSIGNED_SHORT,2*this.Jc)};b.prototype.$r=function(){this.q.blendFunc(this.Jc,this.fd)};b.prototype.gs=
function(){var a,b,d,f=this.u.ib,c=this.u.hn;a=0;for(b=f.length;a<b;a++)d=f[a],a===c&&d.Ni?(d.pm(this.qa),d.Le=!0):d.Le=!1;Zb(this.qa,this.u.ak)};b.prototype.Zr=function(){var a=this.q,b=this.u;this.$c?(b.Te===this.$c&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Te=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Ls),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.$c,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,
null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};b.prototype.Wr=function(){var a=this.q;0===this.Jc?(a.clearColor(this.qa[0],this.qa[1],this.qa[2],this.qa[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.qa[0],this.qa[1],this.qa[2],this.qa[3]),a.clearColor(0,0,0,0),a.clear(this.q.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};b.prototype.Xr=function(){var a=this.q,b=this.u,d=b.ib[1];a.useProgram(d.qh);!d.Le&&d.Ni&&(d.pm(b.ak),d.Le=!0);a.enableVertexAttribArray(d.Hc);a.bindBuffer(a.ARRAY_BUFFER,
b.El);a.vertexAttribPointer(d.Hc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Jc/4,this.fd);d=b.ig;a.useProgram(d.qh);0<=d.Hc&&(a.enableVertexAttribArray(d.Hc),a.bindBuffer(a.ARRAY_BUFFER,b.Ch[b.Ad]),a.vertexAttribPointer(d.Hc,2,a.FLOAT,!1,0,0));0<=d.je&&(a.enableVertexAttribArray(d.je),a.bindBuffer(a.ARRAY_BUFFER,b.wh[b.Ad]),a.vertexAttribPointer(d.je,2,a.FLOAT,!1,0,0))};b.prototype.bs=function(){var a=this.q,b=this.u,d=b.ib[this.Jc];b.hn=this.Jc;b.ig=d;a.useProgram(d.qh);!d.Le&&d.Ni&&(d.pm(b.ak),
d.Le=!0);d.Hf&&d.Qi!==b.Wh&&(d.Qi=b.Wh,a.uniform1f(d.Hf,b.Wh));0<=d.Hc&&(a.enableVertexAttribArray(d.Hc),a.bindBuffer(a.ARRAY_BUFFER,b.Ch[b.Ad]),a.vertexAttribPointer(d.Hc,2,a.FLOAT,!1,0,0));0<=d.je&&(a.enableVertexAttribArray(d.je),a.bindBuffer(a.ARRAY_BUFFER,b.wh[b.Ad]),a.vertexAttribPointer(d.je,2,a.FLOAT,!1,0,0))};b.prototype.cs=function(){var a,b,d=this.u.ig,f=this.q;a=this.qa;d.Sg&&this.u.Te!==this.$c&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.$c),this.u.Te=this.$c,f.activeTexture(f.TEXTURE0));
var c=a[0];d.bl&&c!==d.vo&&(d.vo=c,f.uniform1f(d.bl,c));c=a[1];d.al&&c!==d.uo&&(d.uo=c,f.uniform1f(d.al,c));c=a[2];b=a[3];!d.Ye||c===d.po&&b===d.qo||(d.po=c,d.qo=b,f.uniform2f(d.Ye,c,b));c=a[4];b=a[5];!d.Xe||c===d.no&&b===d.oo||(d.no=c,d.oo=c,f.uniform2f(d.Xe,c,b));c=a[6];d.Rg&&c!==d.so&&(d.so=c,f.uniform1f(d.Rg,c));c=a[7];d.Qg&&c!==d.ro&&(d.ro=c,f.uniform1f(d.Qg,c));c=a[8];b=a[9];!d.Ug||c===d.yo&&b===d.zo||(d.yo=c,d.zo=b,f.uniform2f(d.Ug,c,b));c=a[10];b=a[11];!d.Tg||c===d.wo&&b===d.xo||(d.wo=c,d.xo=
b,f.uniform2f(d.Tg,c,b));d.cl&&f.uniform1f(d.cl,U()/1E3);if(d.O.length)for(a=0,b=d.O.length;a<b;a++)c=this.yp[a],c!==d.Pk[a]&&(d.Pk[a]=c,f.uniform1f(d.O[a][1],c))};e.prototype.Wc=function(){this.xd===this.Zd.length&&this.Zd.push(new b(0,this));return this.Zd[this.xd++]};e.prototype.be=function(){if(0!==this.xd&&!this.q.isContextLost()){var a=this.q;0<this.Fl&&(a.bindBuffer(a.ARRAY_BUFFER,this.El),a.bufferData(a.ARRAY_BUFFER,this.iu.subarray(0,this.Fl),a.STREAM_DRAW),b&&0<=b.Hc&&"<point>"===b.name&&
a.vertexAttribPointer(b.Hc,4,a.FLOAT,!1,0,0));if(0<this.ud){var b=this.ig;a.bindBuffer(a.ARRAY_BUFFER,this.Ch[this.Ad]);a.bufferData(a.ARRAY_BUFFER,this.um.subarray(0,this.ud),a.STREAM_DRAW);b&&0<=b.Hc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Hc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.wh[this.Ad]);a.bufferData(a.ARRAY_BUFFER,this.gm.subarray(0,this.ud),a.STREAM_DRAW);b&&0<=b.je&&"<point>"!==b.name&&a.vertexAttribPointer(b.je,2,a.FLOAT,!1,0,0)}for(var d,a=0,b=this.xd;a<b;a++)switch(d=
this.Zd[a],d.type){case 1:d.Yr();break;case 2:d.ds();break;case 3:d.as();break;case 4:d.$r();break;case 5:d.gs();break;case 6:d.Zr();break;case 7:d.Wr();break;case 8:d.Xr();break;case 9:d.bs();break;case 10:d.cs();break;case 11:d.es()}this.Fl=this.ud=this.xd=0;this.$b=!1;this.Ad++;4<=this.Ad&&(this.Ad=0)}};e.prototype.ff=function(a){if(a!==this.$n){var b=this.Wc();b.type=3;this.$n=b.Uo=a;this.$b=!1}};e.prototype.fc=function(a){if(a!==this.he){var b=this.Wc();b.type=2;this.he=b.$c=a;this.$b=!1}};e.prototype.qe=
function(a,b){if(a!==this.bo||b!==this.Xn){var d=this.Wc();d.type=4;d.Jc=a;d.fd=b;this.bo=a;this.Xn=b;this.$b=!1}};e.prototype.tp=function(){this.qe(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};e.prototype.dj=function(a,b,d,f,c,k,n,e){15992<=this.ud&&this.be();var w=this.ud,l=this.um,r=this.gm;if(this.$b)this.Zd[this.xd-1].fd+=6;else{var p=this.Wc();p.type=1;p.Jc=w/4*3;p.fd=6;this.$b=!0}l[w]=a;r[w++]=0;l[w]=b;r[w++]=0;l[w]=d;r[w++]=1;l[w]=f;r[w++]=0;l[w]=c;r[w++]=1;l[w]=k;r[w++]=1;l[w]=n;r[w++]=0;l[w]=
e;r[w++]=1;this.ud=w};e.prototype.md=function(a,b,d,f,c,k,n,e,w){15992<=this.ud&&this.be();var l=this.ud,r=this.um,p=this.gm;if(this.$b)this.Zd[this.xd-1].fd+=6;else{var m=this.Wc();m.type=1;m.Jc=l/4*3;m.fd=6;this.$b=!0}var m=w.left,t=w.top,h=w.right;w=w.bottom;r[l]=a;p[l++]=m;r[l]=b;p[l++]=t;r[l]=d;p[l++]=h;r[l]=f;p[l++]=t;r[l]=c;p[l++]=h;r[l]=k;p[l++]=w;r[l]=n;p[l++]=m;r[l]=e;p[l++]=w;this.ud=l};e.prototype.qd=function(a){if(this.Jg!==a){if(!this.ib[a]){if(0===this.Jg)return;a=0}var b=this.Wc();
b.type=9;this.Jg=b.Jc=a;this.$b=!1}};e.prototype.hh=function(a){a=this.ib[a];return!(!a.Ye&&!a.Xe)};e.prototype.Il=function(a){a=this.ib[a];return!!(a.Ye||a.Xe||a.gn)};e.prototype.ou=function(a){a=this.ib[a];return 0!==a.hk||0!==a.ik};e.prototype.bt=function(a){return this.ib[a].hk};e.prototype.ct=function(a){return this.ib[a].ik};e.prototype.dt=function(a,b){return this.ib[a].O[b][2]};e.prototype.bj=function(a){return this.ib[a].Tm};e.prototype.Qf=function(a,b,d,f,c,k,n,l,w,e,r,p,m,t){var h=this.ib[this.Jg],
q,s;if(h.At||t.length){q=this.Wc();q.type=10;q.qa?Zb(this.Ic,q.qa):q.qa=Yb();s=q.qa;s[0]=b;s[1]=d;s[2]=f;s[3]=c;s[4]=k;s[5]=n;s[6]=l;s[7]=w;s[8]=e;s[9]=r;s[10]=p;s[11]=m;q.$c=h.Sg?a:null;if(t.length)for(d=q.yp,d.length=t.length,a=0,b=t.length;a<b;a++)d[a]=t[a];this.$b=!1}};e.prototype.clear=function(a,b,d,f){var c=this.Wc();c.type=7;c.Jc=0;c.qa||(c.qa=Yb());c.qa[0]=a;c.qa[1]=b;c.qa[2]=d;c.qa[3]=f;this.$b=!1};e.prototype.clearRect=function(a,b,d,f){if(!(0>d||0>f)){var c=this.Wc();c.type=7;c.Jc=1;c.qa||
(c.qa=Yb());c.qa[0]=a;c.qa[1]=b;c.qa[2]=d;c.qa[3]=f;this.$b=!1}};e.prototype.nu=function(){this.be();this.q.flush()};var n=[],r={};e.prototype.Nr=function(){n.length=0;r={}};e.prototype.Ki=function(a,b,d,f){b=!!b;d=!!d;var c=a.src+","+b+","+d+(b?",undefined":""),k=null;if("undefined"!==typeof a.src&&r.hasOwnProperty(c))return k=r[c],k.Mh++,k;this.be();var l=this.q,e=ia(a.width)&&ia(a.height),k=l.createTexture();l.bindTexture(l.TEXTURE_2D,k);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var w=
l.RGBA,C=l.RGBA,x=l.UNSIGNED_BYTE;if(f&&!this.Qe)switch(f){case 1:C=w=l.RGB;break;case 2:x=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:x=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:C=w=l.RGB,x=l.UNSIGNED_SHORT_5_6_5}if(!e&&b){f=document.createElement("canvas");f.width=ka(a.width);f.height=ka(a.height);var p=f.getContext("2d");p.webkitImageSmoothingEnabled=d;p.mozImageSmoothingEnabled=d;p.msImageSmoothingEnabled=d;p.imageSmoothingEnabled=d;p.drawImage(a,0,0,a.width,a.height,0,0,f.width,f.height);l.texImage2D(l.TEXTURE_2D,
0,w,C,x,f)}else l.texImage2D(l.TEXTURE_2D,0,w,C,x,a);b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));d?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),e&&this.mn?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.he=null;k.gg=a.width;k.fg=a.height;k.Mh=1;k.Ym=c;n.push(k);return r[c]=k};e.prototype.zd=function(a,b,d,f){this.be();var c=this.q;this.Qe&&(f=!1);var k=c.createTexture();c.bindTexture(c.TEXTURE_2D,k);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,a,b,0,c.RGBA,f?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,null);c.texParameteri(c.TEXTURE_2D,
c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,d?c.LINEAR:c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,d?c.LINEAR:c.NEAREST);c.bindTexture(c.TEXTURE_2D,null);this.he=null;k.gg=a;k.fg=b;n.push(k);return k};e.prototype.Yu=function(a,b,d){this.be();var f=this.q;this.Qe&&(d=!1);f.bindTexture(f.TEXTURE_2D,b);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{f.texImage2D(f.TEXTURE_2D,
0,f.RGBA,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,a)}catch(c){console&&console.error&&console.error("Error updating WebGL texture: ",c)}f.bindTexture(f.TEXTURE_2D,null);this.he=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Mh&&1<a.Mh?a.Mh--:(this.be(),a===this.he&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.he=null),a===this.Te&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.Te=null),
Aa(n,a),"undefined"!==typeof a.Ym&&delete r[a.Ym],this.q.deleteTexture(a)))};e.prototype.od=function(a){if(a!==this.op){var b=this.Wc();b.type=6;this.op=b.$c=a;this.$b=!1}};eb=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function l(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(h){if(h&&(h.getContext||h.dc)&&!h.c2runtime){h.c2runtime=this;var a=this;this.Fc=(this.Dg=/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.c2isphonegap&&window.c2isphonegap;this.Bb=!!h.dc;this.zf="undefined"!==typeof window.AppMobi||this.Bb;this.Dc=!!window.c2cocoonjs;this.Qc=!!window.c2ejecta;this.Dc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Qc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.ba=this.Bb||this.Dc||this.Qc;this.Qe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.Rn=/tizen/i.test(navigator.userAgent);this.qi=/android/i.test(navigator.userAgent)&&!this.Rn&&!this.Qe;this.Nk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Qe;this.Vn=/ipad/i.test(navigator.userAgent);
this.xi=this.Nk||this.Vn||this.Qc;this.Rt=this.Nk&&/os\s6/i.test(navigator.userAgent);this.Cg=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.Nn=/amazonwebappplatform/i.test(navigator.userAgent);this.Kt=/firefox/i.test(navigator.userAgent);this.Qn=/safari/i.test(navigator.userAgent)&&!this.Cg&&!this.Qe;this.Nt=/windows/i.test(navigator.userAgent);this.fe="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.Pt=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Qt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.si=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Tn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Sn=this.Pt||this.Qt||this.Tn;this.It=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ri=this.qi&&!this.Cg&&!this.Dg&&!this.Kt&&!this.Nn&&!this.ba;this.devicePixelRatio=1;this.Ec=this.Fc||
this.Dg||this.zf||this.Dc||this.qi||this.xi||this.si||this.Tn||this.It||this.Rn||this.Qc;this.Ec||(this.Ec=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.fe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.fe=!0);this.Jt="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=h;this.Ph=document.getElementById("c2canvasdiv");
this.ta=this.u=this.q=null;this.nk="";this.fi=!1;this.Oo=this.Po=0;this.canvas.oncontextmenu=function(h){h.preventDefault&&h.preventDefault();return!1};this.canvas.onselectstart=function(h){h.preventDefault&&h.preventDefault();return!1};this.Bb&&(window.c2runtime=this);this.fe&&(window.ondragover=function(h){h.preventDefault();return!1},window.ondrop=function(h){h.preventDefault();return!1},require("nw.gui").App.clearCache());this.ri&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=h.width;this.height=h.height;this.R=this.width;this.P=this.height;this.Uh=this.width;this.Th=this.height;this.Lg=window.innerWidth;this.Kg=window.innerHeight;this.Ns=!1;this.xa=!0;this.Fg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.r=[];this.Sa=[];this.Xk={};this.Sc=[];this.gk={};this.Fd=[];this.bg=[];this.Aj=[];this.Ar=[];this.Br=[];this.Dp=null;this.De={};this.Jk=this.ee=!1;this.qc=0;this.Lk=!1;this.Oc=[];this.Ld=this.Kb=this.Ii=this.Tl=
"";this.sh=this.Cp=!1;this.Yj=this.Vg=this.Ed=this.Fe=0;this.Wf=1;this.rc=new Wa;this.vd=new Wa;this.Ci=0;this.Co=!0;this.Si=this.hi=this.uf=this.Lc=this.Mg=this.mk=0;this.Wj=null;this.$h=[];this.fk=[];this.ci=-1;this.dl=[[]];this.mm=this.Oi=0;this.cj(null);this.fl=[];this.Pi=-1;this.mg=this.Jo=this.Zg=0;this.uh=[];this.vj=this.ej=-1;this.yi=!0;this.Mi=0;this.Eg=!1;this.Lu=0;this.pf=null;this.yt=!1;this.Qk=0;this.Ia=this.xf=this.Kl=!1;this.No=new ea;this.nl=new ea;this.ol=new ea;this.fj=[];this.Yc=
new Ya([]);this.fm=new Ya([]);this.of=[];this.xg={};this.sf={};this.nf={};this.ag={};this.Vm={};this.jo=this.Gi=this.ac=this.tc=this.io=this.Fi=this.Fa=null;this.Zf=this.Mk=!1;this.ok=[null,null];this.Ie=0;this.kk="";this.me={};this.mj=this.Gf=null;this.Ri=[];this.uu()}}function n(h){h.target.result.createObjectStore("saves",{keyPath:"slot"})}function r(h,a,b,c){var m=indexedDB.open("_C2SaveStates");m.onupgradeneeded=n;m.onerror=c;m.onsuccess=function(m){m=m.target.result;m.onerror=c;m.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:h,data:a}).onsuccess=b}}function a(h,a,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=n;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;var m=c.transaction(["saves"]).objectStore("saves").get(h);m.onsuccess=function(){m.result?a(m.result.data):a(null)}}}function g(){H("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+=
"?continuous"}function d(h){var a,b={};for(a in h)!h.hasOwnProperty(a)||h[a]instanceof ea||h[a]&&"undefined"!==typeof h[a].aw||(b[a]=h[a]);return b}b.prototype.uu=function(){var h=this,a;a=this.si?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;a.open("GET","data.js",!0);var b=!1;if(!this.ba&&"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(c){b=!1}if(!b&&"responseType"in a)try{a.responseType="text"}catch(m){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(f){}a.onload=
function(){if(b)h.Zk(a.response);else if(h.Qc){var c=a.responseText,c=c.substr(c.indexOf("{"));h.Zk(JSON.parse(c))}else h.Zk(JSON.parse(a.responseText))};a.onerror=function(h){ga("Error requesting data.js:");ga(h)};a.send()};b.prototype.Et=function(){var h=this,a,b,c,m,f,g,d,p,k;this.devicePixelRatio=(this.Re=(!this.ba||this.Qc)&&this.Vu&&!this.ri)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ub();b=!(!this.Ns&&(!this.Mj||
this.fe||this.Sn||this.si||this.Dg||this.Fc||this.Nn));0<this.Ob&&this.setSize(e(),l(),!0);try{this.ks&&(this.Dc||this.Qc||!this.ba)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(t){}if(this.q){this.ba||(this.sb=document.createElement("canvas"),jQuery(this.sb).appendTo(this.canvas.parentNode),this.sb.oncontextmenu=function(){return!1},this.sb.onselectstart=function(){return!1},this.sb.width=
this.Uh,this.sb.height=this.Th,jQuery(this.sb).css({width:this.Uh+"px",height:this.Th+"px"}),this.gp(),this.Cl=this.sb.getContext("2d"));this.u=new eb(this.q,this.Ec);this.u.Rf(this.canvas.width,this.canvas.height);this.u.mn=0!==this.hs;this.ta=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();h.Yt();H("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){h.u.In();h.u.Rf(h.u.width,h.u.height,
!0);h.tc=null;h.ac=null;h.ok[0]=null;h.ok[1]=null;h.Zt();h.xa=!0;H("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.r.length;a<b;a++)for(f=this.r[a],c=0,m=f.M.length;c<m;c++)d=f.M[c],d.tb=this.u.vk(d.id),this.Zf=this.Zf||this.u.hh(d.tb);a=0;for(b=this.Sc.length;a<b;a++){p=this.Sc[a];c=0;for(m=p.M.length;c<m;c++)d=p.M[c],d.tb=this.u.vk(d.id);c=0;for(m=p.V.length;c<m;c++)for(k=p.V[c],f=0,g=k.M.length;f<g;f++)d=k.M[f],d.tb=this.u.vk(d.id),this.Zf=this.Zf||this.u.hh(d.tb)}}else{if(0<
this.Ob&&this.Bb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ta=AppMobi.canvas.getContext("2d");try{this.ta.samplingMode=this.ea?"smooth":"sharp",this.ta.globalScale=1,this.ta.HTML5CompatibilityMode=!0,this.ta.imageSmoothingEnabled=this.ea}catch(n){}0!==this.width&&0!==this.height&&(this.ta.width=this.width,this.ta.height=this.height)}this.ta||(a=this.Dc?{antialias:!!this.ea,alpha:b}:{alpha:b},this.ta=this.canvas.getContext("2d",a),
this.ta.webkitImageSmoothingEnabled=this.ea,this.ta.mozImageSmoothingEnabled=this.ea,this.ta.msImageSmoothingEnabled=this.ea,this.ta.imageSmoothingEnabled=this.ea);this.Cl=this.sb=null}this.uj=function(){h.Ra(!1)};window==window.top||this.ba||this.Sn||this.si||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Dc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
-1<window.location.search.indexOf("continuous")&&(H("Reloading for continuous preview"),this.Ii="__c2_continuouspreview",this.sh=!0),this.gu&&!this.Ec&&(jQuery(window).focus(function(){h.setSuspended(!1)}),jQuery(window).blur(function(){h.setSuspended(!0)})));this.ba||(a=function(h){db(h)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",
a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Ob&&this.Re&&1<this.devicePixelRatio&&this.setSize(this.fb,this.eb,!0);this.Op();this.ut();this.go();this.N={}};b.prototype.setSize=function(h,a,b){var c=0,m=0,f=0,g=0,g=0,d=this.Rt&&this.Qn&&!navigator.standalone&&!this.ba&&!this.Fc;d&&(a+=60);if(this.Lg!==h||this.Kg!==a||b){this.Lg=h;this.Kg=a;var p=this.Ob,k=(document.mozFullScreen||
document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Eg)&&!this.Fc;if(k||0!==this.Ob||b)k&&0<this.Ie&&(p=this.Ie),b=this.devicePixelRatio,4<=p?(f=this.fb/this.eb,h/a>f?(f*=a,5===p?(g=f*b/this.fb,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),f=this.fb*g/b,g=this.eb*g/b,c=(h-f)/2,m=(a-g)/2,h=f,a=g):(c=(h-f)/2,h=f)):(g=h/f,5===p?(g=g*b/this.eb,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),f=this.fb*g/b,g=this.eb*g/b,c=(h-f)/2,m=(a-g)/2,h=f):m=(a-g)/2,a=g),k&&!this.fe&&
(m=c=0)):this.fe&&this.Eg&&0===this.tn&&(c=Math.floor((h-this.fb)/2),m=Math.floor((a-this.eb)/2),h=this.fb,a=this.eb),2>p&&(this.eg=b),this.Re&&this.Vn&&1<b&&(1024<=h&&(h=1023),1024<=a&&(a=1023)),this.Uh=Math.round(h),this.Th=Math.round(a),this.width=Math.round(h*b),this.height=Math.round(a*b),this.xa=!0,this.cq?(this.R=this.width,this.P=this.height,this.Bc=!0):this.width<this.fb&&this.height<this.eb||1===p?(this.R=this.width,this.P=this.height,this.Bc=!0):(this.R=this.fb,this.P=this.eb,this.Bc=!1,
2===p?(f=this.fb/this.eb,p=this.Lg/this.Kg,p<f?this.R=this.P*p:p>f&&(this.P=this.R/p)):3===p&&(f=this.fb/this.eb,p=this.Lg/this.Kg,p>f?this.R=this.P*p:p<f&&(this.P=this.R/p))),this.Ph&&!this.ba&&(jQuery(this.Ph).css({width:Math.round(h)+"px",height:Math.round(a)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(m)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(h)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(h*b),this.canvas.height=
Math.round(a*b),this.Qc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(m)+"px",this.canvas.style.width=Math.round(h)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Re&&!this.ba&&jQuery(this.canvas).css({width:Math.round(h)+"px",height:Math.round(a)+"px"})),this.sb&&(this.sb.width=Math.round(h),this.sb.height=Math.round(a),jQuery(this.sb).css({width:Math.round(h)+"px",height:Math.round(a)+"px"})),this.u&&this.u.Rf(Math.round(h*b),Math.round(a*b)),this.Bb&&this.ta&&
(this.ta.width=Math.round(h),this.ta.height=Math.round(a)),this.ta&&(this.ta.webkitImageSmoothingEnabled=this.ea,this.ta.mozImageSmoothingEnabled=this.ea,this.ta.msImageSmoothingEnabled=this.ea,this.ta.imageSmoothingEnabled=this.ea),this.Op(),this.ba||!d&&!this.Nk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.Op=function(){if(this.Dr&&0!==this.Al){var h="portrait";2===this.Al&&(h="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(h):screen.lockOrientation?
screen.lockOrientation(h):screen.webkitLockOrientation?screen.webkitLockOrientation(h):screen.mozLockOrientation?screen.mozLockOrientation(h):screen.msLockOrientation&&screen.msLockOrientation(h)}};b.prototype.Yt=function(){this.u.Nr();this.Mk=!0;var h,a,b;h=0;for(a=this.r.length;h<a;h++)b=this.r[h],b.Ti&&b.Ti()};b.prototype.Zt=function(){this.Mk=!1;var h,a,b;h=0;for(a=this.r.length;h<a;h++)b=this.r[h],b.yl&&b.yl()};b.prototype.gp=function(){if(!this.ba){var h=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.Eg)&&!this.Fc?jQuery(this.canvas).offset():jQuery(this.canvas).position();h.position="absolute";jQuery(this.sb).css(h)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(h){var a;if(h&&!this.Fg)for(H("[Construct 2] Suspending"),this.Fg=!0,-1!==this.ej&&f&&f(this.ej),-1!==this.vj&&clearTimeout(this.vj),
h=0,a=this.uh.length;h<a;h++)this.uh[h](!0);else if(!h&&this.Fg){H("[Construct 2] Resuming");this.Fg=!1;this.Ci=U();this.Mg=U();h=this.Vg=this.hi=0;for(a=this.uh.length;h<a;h++)this.uh[h](!1);this.Ra(!1)}};b.prototype.yr=function(h){this.uh.push(h)};b.prototype.Ud=function(h){return this.Ri[h]};b.prototype.Zk=function(h){h&&h.project||ga("Project model unavailable");h=h.project;this.name=h[0];this.sn=h[1];this.Ob=h[12];this.tn=h[12];this.fb=h[10];this.eb=h[11];this.bp=this.fb/2;this.cp=this.eb/2;
this.ba&&!this.Qc&&(4<=h[12]||0===h[12])&&(H("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.tn=this.Ob=3);this.rm=h[18];this.Pg=h[19];0===this.Pg&&(this.Gf=new Image,this.Gf.src="loading-logo.png");this.Zg=h[21];this.Ri=cc();this.rd=new W(this);var a,b,c,m,f,g,d,p,k;a=0;for(b=h[2].length;a<b;a++)d=h[2][a],c=this.Ud(d[0]),fb(d,c.prototype),k=new c(this),k.lj=d[1],k.ge=d[2],k.Go=d[9],k.W&&k.W(),this.plugins.push(k);this.Ri=cc();
a=0;for(b=h[3].length;a<b;a++){d=h[3][a];f=this.Ud(d[1]);k=null;c=0;for(m=this.plugins.length;c<m;c++)if(this.plugins[c]instanceof f){k=this.plugins[c];break}var t=new k.Ba(k);t.name=d[0];t.J=d[2];t.Hk=d[3].slice(0);t.Xu=d[3].length;t.Er=d[4];t.Ps=d[5];t.Z=d[11];t.J?(t.Jf=[],t.Hd=this.mg++,t.Ha=null):(t.Jf=null,t.Hd=-1,t.Ha=[]);t.di=null;t.vf=null;t.on=null;t.Ib=!1;t.Xb=null;d[6]?(t.hm=d[6][0],t.im=d[6][1],t.jm=d[6][2]):(t.hm=null,t.im=0,t.jm=0);t.Wb=d[7]?d[7]:null;t.index=a;t.d=[];t.Yh=[];t.te=[new gb(t)];
t.Dd=0;t.zc=null;t.Ur=0;t.Uf=!0;t.Bj=hb;t.zn=ib;t.Zs=jb;t.S=kb;t.jh=lb;t.df=mb;t.ld=nb;t.ki=qb;t.pk=rb;t.tk=sb;t.wc=tb;t.An=ub;t.Rh=new Za(this.fb,this.eb);t.Gh=!0;t.Hh=!1;t.N={};t.toString=vb;t.Sa=[];c=0;for(m=d[8].length;c<m;c++){p=d[8][c];var n=this.Ud(p[1]),l=null;f=0;for(g=this.Sa.length;f<g;f++)if(this.Sa[f]instanceof n){l=this.Sa[f];break}l||(l=new n(this),l.ll=[],l.kl=new ea,l.W&&l.W(),this.Sa.push(l),Vb.Ku&&l instanceof Vb.Ku&&(this.Dp=l));-1===l.ll.indexOf(t)&&l.ll.push(t);f=new l.Ba(l,
t);f.name=p[0];f.Z=p[2];f.W();t.Sa.push(f)}t.global=d[9];t.Kk=d[10];t.M=[];c=0;for(m=d[12].length;c<m;c++)t.M.push({id:d[12][c][0],name:d[12][c][1],tb:-1,lc:!0,index:c});t.ow=d[13];this.rm&&!t.J&&!t.Kk&&k.ge||t.W();t.name&&(this.types[t.name]=t);this.r.push(t);k.lj&&(c=new k.ma(t),c.uid=this.Zg++,c.jp=this.Jo++,c.Ne=0,c.ug=wb,c.toString=xb,c.C=d[14],c.W(),t.d.push(c),this.me[c.uid.toString()]=c)}a=0;for(b=h[4].length;a<b;a++)for(f=h[4][a],g=this.r[f[0]],c=1,m=f.length;c<m;c++)d=this.r[f[c]],d.Ha.push(g),
g.Jf.push(d);a=0;for(b=h[27].length;a<b;a++){f=h[27][a];g=[];c=0;for(m=f.length;c<m;c++)g.push(this.r[f[c]]);c=0;for(m=g.length;c<m;c++)g[c].Ib=!0,g[c].Xb=g}if(0<this.mg)for(a=0,b=this.r.length;a<b;a++)if(d=this.r[a],!d.J&&d.Ha.length){d.di=Array(this.mg);d.vf=Array(this.mg);d.on=Array(this.mg);t=[];c=l=n=p=0;for(m=d.Ha.length;c<m;c++)for(k=d.Ha[c],d.di[k.Hd]=p,p+=k.Xu,d.vf[k.Hd]=n,n+=k.Er,d.on[k.Hd]=l,l+=k.Ps,f=0,g=k.M.length;f<g;f++)t.push(ua({},k.M[f]));d.M=t.concat(d.M);c=0;for(m=d.M.length;c<
m;c++)d.M[c].index=c}a=0;for(b=h[5].length;a<b;a++)d=h[5][a],c=new yb(this,d),this.Xk[c.name]=c,this.Sc.push(c);a=0;for(b=h[6].length;a<b;a++)d=h[6][a],c=new zb(this,d),this.gk[c.name]=c,this.Fd.push(c);a=0;for(b=this.Fd.length;a<b;a++)this.Fd[a].Pa();a=0;for(b=this.Fd.length;a<b;a++)this.Fd[a].Vp();a=0;for(b=this.Aj.length;a<b;a++)this.Aj[a].Pa();this.Aj.length=0;this.Cr=h[7];this.kk=h[8];this.kd=h[9];this.eg=1;this.ks=h[13];this.ea=h[14];this.Mj=h[15];this.Vu=h[17];this.Al=h[20];this.Dr=0<this.Al;
this.gu=h[22];this.Bc=this.cq=h[23];this.hs=h[24];this.mu=h[25];this.nj=Date.now();this.Ri.length=0;this.Et()};var c=!1;b.prototype.bq=function(h,a){h.cocoonLazyLoad=!0;h.onerror=function(a){c=h.Xm=!0;console&&console.error&&console.error("Error loading image '"+h.src+"': ",a)};this.Qc?h.src=a:h.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){h.src=a},function(b){c=h.Xm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):h.src=a);
this.bg.push(h)};b.prototype.Ms=function(h){var a,b;a=0;for(b=this.bg.length;a<b;a++)if(this.bg[a].Pr===h)return this.bg[a];return null};var k=0,u=!1;b.prototype.ut=function(){this.pf&&(k=this.pf.Gu(this.Cr))};b.prototype.Um=function(){var h=k,a=0,b=0,c=!0,m,f,b=0;for(m=this.bg.length;b<m;b++){f=this.bg[b];var g=f.en;if(!g||0>=g)g=5E4;h+=g;f.src&&(f.complete||f.loaded)&&!f.Xm?a+=g:c=!1}c&&this.mu&&this.pf&&(u||(this.pf.Mu(),u=!0),b=this.pf.$s(),a+=b,b<k&&(c=!1));this.cf=0==h?0:a/h;return c};b.prototype.go=
function(){if(this.ta||this.u){var h=this.ta||this.Cl;this.sb&&this.gp();this.cf=0;this.ho=-1;if(this.Um())this.wt();else{var a=Date.now()-this.nj;if(h){var b=this.width,f=this.height,m=this.devicePixelRatio;this.sb&&(b=this.Uh,f=this.Th,m=1);if(3!==this.Pg&&(this.Dc||500<=a&&this.ho!=this.cf)){h.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Pg&&this.Gf.complete,g=40*m,d=0,p=80*m,k;b&&(p=this.Gf.width*m,k=this.Gf.height*m,g=p/2,d=k/2,h.drawImage(this.Gf,P(a-g),P(f-d),p,k));1>=this.Pg?(a=P(a-g)+.5,
f=P(f+(d+(b?12*m:0)))+.5,h.fillStyle=c?"red":"DodgerBlue",h.fillRect(a,f,Math.floor(p*this.cf),6*m),h.strokeStyle="black",h.strokeRect(a,f,p,6*m),h.strokeStyle="white",h.strokeRect(a-1*m,f-1*m,p+2*m,8*m)):2===this.Pg&&(h.font=this.Qc?"12pt ArialMT":"12pt Arial",h.fillStyle=c?"#f00":"#999",h.nw="middle",m=Math.round(100*this.cf)+"%",b=h.measureText?h.measureText(m):null,h.fillText(m,a-(b?b.width:0)/2,f))}this.ho=this.cf}setTimeout(function(a){return function(){a.go()}}(this),this.Dc?10:100)}}};b.prototype.wt=
function(){this.sb&&(this.canvas.parentNode.removeChild(this.sb),this.sb=this.Cl=null);this.nj=Date.now();this.Mg=U();var a,q,b;if(this.rm)for(a=0,q=this.r.length;a<q;a++)b=this.r[a],b.J||b.Kk||!b.za.ge||b.W();else this.yi=!1;a=0;for(q=this.Sc.length;a<q;a++)this.Sc[a].Qr();2<=this.Ob&&(a=this.fb/this.eb,q=this.width/this.height,this.eg=2!==this.Ob&&q>a||2===this.Ob&&q<a?this.height/this.eb:this.width/this.fb);this.sn?this.Xk[this.sn].dm():this.Sc[0].dm();this.rm||(this.Mi=1,this.trigger(W.prototype.n.Dm,
null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(q=this.r.length;a<q;a++)b=this.r[a],b.Xt&&b.Xt();this.Ra(!1);this.Bb&&AppMobi.webview.execute("onGameReady();")};var z=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Ra=function(a){if(this.Fa){var q=U();if(this.yt&&this.Kl&&29>q-this.Qk)this.Kl=!1,this.Qk=q,z?this.ej=z(this.uj,
this.canvas):this.vj=setTimeout(this.uj,this.Ec?1:16);else{this.Kl=!0;this.Qk=q;var b=this.Ob,c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Fc;(c||this.Eg)&&0<this.Ie&&(b=this.Ie);0<b&&(!this.xi||window.self!==window.top)&&(b=window.innerHeight,this.Lg===window.innerWidth&&this.Kg===b||this.setSize(e(),l()));this.ba||(c?(this.fi||(this.nk=jQuery(this.canvas).css("margin")||"0",this.fi=!0),this.Cg||this.fe||jQuery(this.canvas).css({"margin-left":""+
Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.fi?(this.Cg||this.fe||jQuery(this.canvas).css("margin",this.nk),this.nk="",this.fi=!1,0===this.Ob&&this.setSize(Math.round(this.Po/this.devicePixelRatio),Math.round(this.Oo/this.devicePixelRatio),!0)):(this.Po=this.width,this.Oo=this.height));this.yi&&(c=this.Um(),this.Mi=this.cf,c&&(this.yi=!1,this.cf=1,this.trigger(W.prototype.n.Dm,null)));
this.Ut();!this.xa&&!this.Dc||this.Mk||this.sh||a||(this.xa=!1,this.u?this.oc():this.Pc(),this.mj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.mj[0],this.mj[1]),this.trigger(W.prototype.n.Hq,null)),this.mj=null));this.hw||(this.Lc++,this.uf++,this.hi++);this.Vg+=U()-q;this.Fg||a||(z?this.ej=z(this.uj,this.canvas):this.vj=setTimeout(this.uj,this.Ec?1:16))}}};b.prototype.Ut=function(){var a,q,b,c,m,f,g,d,p;a=U();1E3<=a-this.Mg&&(this.Mg+=1E3,this.mk=this.hi,this.hi=0,this.Yj=this.Vg,
this.Vg=0);this.Co&&(0!==this.Ci&&(q=a-this.Ci,0!==q||this.Jt?(this.Ed=q/1E3,.5<this.Ed?this.Ed=0:.1<this.Ed&&(this.Ed=.1)):(10<=this.pw&&(this.Co=!1),this.Ed=1/60)),this.Ci=a);this.Fe=this.Ed*this.Wf;this.rc.add(this.Fe);this.vd.add(this.Ed);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Eg)&&!this.Fc;2<=this.Ob||a&&0<this.Ie?(q=this.fb/this.eb,b=this.width/this.height,c=this.Ob,a&&0<this.Ie&&(c=this.Ie),this.eg=2!==c&&b>q||2===c&&
b<q?this.height/this.eb:this.width/this.fb,this.Fa&&(this.Fa.rp(this.Fa.scrollX),this.Fa.sp(this.Fa.scrollY))):this.eg=this.Re?this.devicePixelRatio:1;this.ub();this.qc++;this.rd.xu();this.qc--;this.ub();this.qc++;b=this.No.ye();a=0;for(q=b.length;a<q;a++)b[a].jw();a=0;for(q=this.r.length;a<q;a++)if(g=this.r[a],!g.J&&(g.Sa.length||g.Ha.length))for(b=0,c=g.d.length;b<c;b++)for(d=g.d[b],m=0,f=d.U.length;m<f;m++)d.U[m].Ra();a=0;for(q=this.r.length;a<q;a++)if(g=this.r[a],!g.J&&(g.Sa.length||g.Ha.length))for(b=
0,c=g.d.length;b<c;b++)for(d=g.d[b],m=0,f=d.U.length;m<f;m++)p=d.U[m],p.lu&&p.lu();b=this.nl.ye();a=0;for(q=b.length;a<q;a++)b[a].Ra();this.qc--;this.zt();for(a=0;this.Wj&&10>a++;)this.ln(this.Wj);a=0;for(q=this.Fd.length;a<q;a++)this.Fd[a].Ak=!1;this.Fa.kg&&this.Fa.kg.Ya();this.fj.length=0;this.qc++;a=0;for(q=this.r.length;a<q;a++)if(g=this.r[a],!g.J&&(g.Sa.length||g.Ha.length))for(b=0,c=g.d.length;b<c;b++)for(d=g.d[b],m=0,f=d.U.length;m<f;m++)p=d.U[m],p.tj&&p.tj();b=this.ol.ye();a=0;for(q=b.length;a<
q;a++)b[a].tj();this.qc--};b.prototype.ln=function(a){var b=this.Fa;this.Fa.Nu();var c,m,f,g,d,p,k;if(this.u)for(c=0,m=this.r.length;c<m;c++)d=this.r[c],d.J||!d.om||d.global&&0!==d.d.length||-1!==a.Ag.indexOf(d)||d.om();b==a&&(this.rd.ic.length=0);a.dm();c=0;for(m=this.r.length;c<m;c++)if(d=this.r[c],d.global||d.za.lj)for(a=0,b=d.d.length;a<b;a++)if(p=d.d[a],p.tl&&p.tl(),p.U)for(f=0,g=p.U.length;f<g;f++)k=p.U[f],k.tl&&k.tl();this.xa=!0;this.ub()};b.prototype.Vf=function(a){this.nl.add(a)};b.prototype.Ou=
function(a){this.ol.add(a)};b.prototype.li=function(a){return a&&-1!==a.Yg?this.Ed*a.Yg:this.Fe};b.prototype.Pc=function(){this.Fa.Pc(this.ta);this.Bb&&this.ta.present()};b.prototype.oc=function(){this.Fa.oc(this.u);this.u.nu()};b.prototype.Lj=function(a){a&&this.$h.push(a)};b.prototype.tu=function(a){Aa(this.$h,a)};b.prototype.sg=function(a){a=a.toString();return this.me.hasOwnProperty(a)?this.me[a]:null};var w=[];b.prototype.Td=function(a){var b,c;b=a.type.name;var m=null;if(this.De.hasOwnProperty(b)){if(m=
this.De[b],m.contains(a))return}else m=w.length?w.pop():new ea,this.De[b]=m;m.add(a);this.ee=!0;if(a.Ib)for(b=0,c=a.siblings.length;b<c;b++)this.Td(a.siblings[b]);this.Jk&&m.$f.push(a);this.qc++;this.trigger(Object.getPrototypeOf(a.type.za).n.Kq,a);this.qc--};b.prototype.ub=function(){if(this.ee){var a,b,c,m,f,g;this.Jk=!0;c=0;for(f=this.Oc.length;c<f;++c)for(a=this.Oc[c],b=a.type,b.d.push(a),m=0,g=b.Ha.length;m<g;++m)b.Ha[m].d.push(a),b.Ha[m].Uf=!0;this.Oc.length=0;this.Bq();Sa(this.De);this.ee=
this.Jk=!1}};b.prototype.Bq=function(){for(var a in this.De)this.De.hasOwnProperty(a)&&this.jq(this.De[a])};b.prototype.jq=function(a){var b=a.ye(),c=b[0].type,m,f,g,d,p,k;Va(c.d,a);c.Uf=!0;0===c.d.length&&(c.Hh=!1);m=0;for(f=c.Ha.length;m<f;++m)k=c.Ha[m],Va(k.d,a),k.Uf=!0;m=0;for(f=this.rd.ic.length;m<f;++m)if(p=this.rd.ic[m],p.hc.hasOwnProperty(c.index)&&Va(p.hc[c.index].Pe,a),!c.J)for(g=0,d=c.Ha.length;g<d;++g)k=c.Ha[g],p.hc.hasOwnProperty(k.index)&&Va(p.hc[k.index].Pe,a);(m=b[0].j)&&Va(m.d,a);
for(m=0;m<b.length;++m)this.iq(b[m],c);a.clear();w.push(a);this.xa=!0};b.prototype.iq=function(a,b){var c,m,f;c=0;for(m=this.$h.length;c<m;++c)this.$h[c](a);a.Qh&&b.Rh.update(a,a.Qh,null);if(c=a.j)Aa(c.d,a),c.jc=!0;if(a.U)for(c=0,m=a.U.length;c<m;++c)f=a.U[c],f.bf&&f.bf(),f.behavior.kl.remove(a);this.No.remove(a);this.nl.remove(a);this.ol.remove(a);a.bf&&a.bf();this.me.hasOwnProperty(a.uid.toString())&&delete this.me[a.uid.toString()];this.Si--;100>b.Yh.length&&b.Yh.push(a)};b.prototype.Zj=function(a,
b,c,m){if(a.J){var f=P(Math.random()*a.Jf.length);return this.Zj(a.Jf[f],b,c,m)}return a.zc?this.ae(a.zc,b,!1,c,m,!1):null};var C=[];b.prototype.ae=function(a,b,c,m,f,g){var d,p,k,t;if(!a)return null;var l=this.r[a[1]],n=l.za.ge;if(this.yi&&n&&!l.Kk||n&&!this.u&&11===a[0][11])return null;var w=b;n||(b=null);var e;l.Yh.length?(e=l.Yh.pop(),e.uc=!0,l.za.ma.call(e,l)):(e=new l.za.ma(l),e.uc=!1);e.uid=c&&!g?a[2]:this.Zg++;this.me[e.uid.toString()]=e;e.jp=this.Jo++;e.Ne=l.d.length;d=0;for(p=this.Oc.length;d<
p;++d)this.Oc[d].type===l&&e.Ne++;e.ug=wb;k=a[3];if(e.uc)Sa(e.N);else{e.N={};if("undefined"!==typeof cr_is_preview)for(e.Ln=[],e.Ln.length=k.length,d=0,p=k.length;d<p;d++)e.Ln[d]=k[d][1];e.cb=[];e.cb.length=k.length}d=0;for(p=k.length;d<p;d++)e.cb[d]=k[d][0];if(n){var r=a[0];e.x=ha(m)?r[0]:m;e.y=ha(f)?r[1]:f;e.z=r[2];e.width=r[3];e.height=r[4];e.depth=r[5];e.i=r[6];e.opacity=r[7];e.Pb=r[8];e.Qb=r[9];e.Mb=r[10];d=r[11];!this.u&&l.M.length&&(e.Mb=d);e.hg=$a(e.Mb);this.q&&ab(e,e.Mb,this.q);if(e.uc){d=
0;for(p=r[12].length;d<p;d++)for(k=0,t=r[12][d].length;k<t;k++)e.Ka[d][k]=r[12][d][k];e.Ja.set(0,0,0,0);e.Qh.set(0,0,-1,-1);e.Hb.oh(e.Ja);e.Rj.length=0}else{e.Ka=r[12].slice(0);d=0;for(p=e.Ka.length;d<p;d++)e.Ka[d]=r[12][d].slice(0);e.da=[];e.Vd=[];e.Vd.length=l.M.length;e.Ja=new sa(0,0,0,0);e.Qh=new sa(0,0,-1,-1);e.Hb=new ta;e.Rj=[];e.H=Ab;e.$v=Bb;e.Nb=Cb;e.Da=Db;e.$p=Eb;e.Cc=Fb}e.xh=!1;e.Ru=0;e.Qu=0;e.Pu=null;14===r.length&&(e.xh=!0,e.Ru=r[13][0],e.Qu=r[13][1],e.Pu=r[13][2]);d=0;for(p=l.M.length;d<
p;d++)e.Vd[d]=!0;e.Sd=Gb;e.Sd();e.aq=!!e.da.length;e.Qj=!0;e.Uj=!0;l.Gh=!0;e.visible=!0;e.Yg=-1;e.j=b;e.jf=b.d.length;"undefined"===typeof e.ja&&(e.ja=null);this.xa=e.yd=!0}e.toString=xb;var u;d=C.length=0;for(p=l.Ha.length;d<p;d++)C.push.apply(C,l.Ha[d].Sa);C.push.apply(C,l.Sa);if(e.uc)for(d=0,p=C.length;d<p;d++){var x=C[d];u=e.U[d];u.uc=!0;x.behavior.ma.call(u,x,e);r=a[4][d];k=0;for(t=r.length;k<t;k++)u.C[k]=r[k];u.W();x.behavior.kl.add(e)}else for(e.U=[],d=0,p=C.length;d<p;d++)x=C[d],u=new x.behavior.ma(x,
e),u.uc=!1,u.C=a[4][d].slice(0),u.W(),e.U.push(u),x.behavior.kl.add(e);r=a[5];if(e.uc)for(d=0,p=r.length;d<p;d++)e.C[d]=r[d];else e.C=r.slice(0);this.Oc.push(e);this.ee=!0;b&&(b.d.push(e),1!==b.Tb||1!==b.Ub)&&(l.Hh=!0);this.Si++;if(l.Ib){if(e.Ib=!0,e.uc?e.siblings.length=0:e.siblings=[],!c&&!g){d=0;for(p=l.Xb.length;d<p;d++)if(l.Xb[d]!==l){if(!l.Xb[d].zc)return null;e.siblings.push(this.ae(l.Xb[d].zc,w,!1,n?e.x:m,n?e.y:f,!0))}d=0;for(p=e.siblings.length;d<p;d++)for(e.siblings[d].siblings.push(e),
k=0;k<p;k++)d!==k&&e.siblings[d].siblings.push(e.siblings[k])}}else e.Ib=!1,e.siblings=null;e.W();d=0;for(p=e.U.length;d<p;d++)e.U[d].ku&&e.U[d].ku();return e};b.prototype.rg=function(a){var b,c;b=0;for(c=this.Fa.V.length;b<c;b++){var m=this.Fa.V[b];if(cb(m.name,a))return m}return null};b.prototype.Jd=function(a){a=P(a);0>a&&(a=0);a>=this.Fa.V.length&&(a=this.Fa.V.length-1);return this.Fa.V[a]};b.prototype.Xj=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].S().Y=!0};b.prototype.jh=function(a){var b,
c;b=0;for(c=a.length;b<c;b++)a[b].jh()};b.prototype.df=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].df()};b.prototype.ld=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].ld()};b.prototype.Tp=function(a){if(a.Gh){var b,c,m=a.d;b=0;for(c=m.length;b<c;++b)m[b].$p();m=this.Oc;b=0;for(c=m.length;b<c;++b)m[b].type===a&&m[b].$p();a.Gh=!1}};b.prototype.wn=function(a,b,c,m){var d,f,g=a?1!==a.Tb||1!==a.Ub:!1;if(b.J)for(a=0,d=b.Jf.length;a<d;++a)f=b.Jf[a],g||f.Hh?xa(m,f.d):(this.Tp(f),f.Rh.mp(c,m));
else g||b.Hh?xa(m,b.d):(this.Tp(b),b.Rh.mp(c,m))};b.prototype.ft=function(a,b,c,m){var d,f;d=0;for(f=b.length;d<f;++d)this.wn(a,b[d],c,m)};b.prototype.et=function(a,b,c){var m=this.Dp;m&&this.ft(a,m.ll,b,c)};b.prototype.vh=function(a,b,c){var m=a.S(),d,f,g,p,k,t;if(m.Y)for(m.Y=!1,d=m.d.length=0,p=a.d.length;d<p;d++)g=a.d[d],g.Da(),k=g.j.ab(b,c,!0),t=g.j.ab(b,c,!1),g.Nb(k,t)&&m.d.push(g);else{d=f=0;for(p=m.d.length;d<p;d++)g=m.d[d],g.Da(),k=g.j.ab(b,c,!0),t=g.j.ab(b,c,!1),g.Nb(k,t)&&(m.d[f]=m.d[d],
f++);m.d.length=f}a.wc();return m.zk()};b.prototype.hf=function(a,b){if(!(a&&b&&a!==b&&a.yd&&b.yd))return!1;a.Da();b.Da();var c=a.j,m=b.j,d,f,g,p,k,t,e,l;if(c===m||c.Tb===m.Tb&&m.Ub===m.Ub&&c.scale===m.scale&&c.i===m.i&&c.Gb===m.Gb){if(!a.Ja.Gt(b.Ja)||!a.Hb.Mn(b.Hb)||a.xh&&b.xh)return!1;if(a.xh)return this.Gp(a,b);if(b.xh)return this.Gp(b,a);e=a.ja&&!a.ja.Cf();d=b.ja&&!b.ja.Cf();if(!e&&!d)return!0;e?(a.ja.qf(a.width,a.height,a.i),e=a.ja):(this.Yc.Sf(a.Hb,a.x,a.y,a.width,a.height),e=this.Yc);d?(b.ja.qf(b.width,
b.height,b.i),l=b.ja):(this.Yc.Sf(b.Hb,b.x,b.y,b.width,b.height),l=this.Yc);return e.Bg(l,b.x-a.x,b.y-a.y)}e=a.ja&&!a.ja.Cf();d=b.ja&&!b.ja.Cf();e?(a.ja.qf(a.width,a.height,a.i),this.Yc.wp(a.ja)):this.Yc.Sf(a.Hb,a.x,a.y,a.width,a.height);e=this.Yc;d?(b.ja.qf(b.width,b.height,b.i),this.fm.wp(b.ja)):this.fm.Sf(b.Hb,b.x,b.y,b.width,b.height);l=this.fm;d=0;for(f=e.Vc;d<f;d++)g=2*d,p=g+1,k=e.gb[g],t=e.gb[p],e.gb[g]=c.ya(k+a.x,t+a.y,!0),e.gb[p]=c.ya(k+a.x,t+a.y,!1);e.Da();d=0;for(f=l.Vc;d<f;d++)g=2*d,p=
g+1,k=l.gb[g],t=l.gb[p],l.gb[g]=m.ya(k+b.x,t+b.y,!0),l.gb[p]=m.ya(k+b.x,t+b.y,!1);l.Da();return e.Bg(l,0,0)};var x=new ta;new sa(0,0,0,0);var p=[];b.prototype.Gp=function(a,b){var c,m,d,f,g=b.Ja,k=a.x,t=a.y;a.dw(g,p);var e=b.ja&&!b.ja.Cf();c=0;for(m=p.length;c<m;++c)if(d=p[c],f=d.kw,g.Ht(f,k,t)&&(x.oh(f),x.offset(k,t),x.Mn(b.Hb)))if(e)if(b.ja.qf(b.width,b.height,b.i),d.Gl){if(d.Gl.Bg(b.ja,b.x-(k+f.left),b.y-(t+f.top)))return p.length=0,!0}else{if(this.Yc.Sf(x,0,0,f.right-f.left,f.bottom-f.top),this.Yc.Bg(b.ja,
b.x,b.y))return p.length=0,!0}else if(d.Gl){if(this.Yc.Sf(b.Hb,0,0,b.width,b.height),d.Gl.Bg(this.Yc,-(k+f.left),-(t+f.top)))return p.length=0,!0}else return p.length=0,!0;p.length=0;return!1};b.prototype.Pp=function(a,b){if(!b)return!1;var c,m,d,f,g;c=0;for(m=a.Sa.length;c<m;c++)if(a.Sa[c].behavior instanceof b)return!0;if(!a.J)for(c=0,m=a.Ha.length;c<m;c++)for(g=a.Ha[c],d=0,f=g.Sa.length;d<f;d++)if(g.Sa[d].behavior instanceof b)return!0;return!1};b.prototype.Qp=function(a){return this.Pp(a,Vb.Bv)};
b.prototype.nm=function(a){return this.Pp(a,Vb.Cv)};var m=[];b.prototype.Zc=function(a){var b,c,d;a.Da();this.et(a.j,a.Ja,m);b=0;for(c=m.length;b<c;++b)if(d=m[b],d.N.solidEnabled&&this.hf(a,d))return m.length=0,d;m.length=0;return null};b.prototype.ru=function(a,b,c,m){m=m||50;var d=a.x,f=a.y,g,p=null,k=null;for(g=0;g<m;g++)if(a.x=d+b*g,a.y=f+c*g,a.H(),!this.hf(a,p)&&((p=this.Zc(a))&&(k=p),!p&&!p))return k&&this.pu(a,b,c,k),!0;a.x=d;a.y=f;a.H();return!1};b.prototype.pu=function(a,b,c,m){var d=2,f,
g=!1;f=!1;for(var p=a.x,k=a.y;16>=d;)f=1/d,d*=2,a.x+=b*f*(g?1:-1),a.y+=c*f*(g?1:-1),a.H(),this.hf(a,m)?f=g=!0:(f=g=!1,p=a.x,k=a.y);f&&(a.x=p,a.y=k,a.H())};b.prototype.lp=function(a,b){var c=ha(b)?100:b,m=0,d=a.x,f=a.y,g=0,p=0,k=0,t=this.Zc(a);if(!t)return!0;for(;m<=c;){switch(g){case 0:p=0;k=-1;m++;break;case 1:p=1;k=-1;break;case 2:p=1;k=0;break;case 3:k=p=1;break;case 4:p=0;k=1;break;case 5:p=-1;k=1;break;case 6:p=-1;k=0;break;case 7:k=p=-1}g=(g+1)%8;a.x=P(d+p*m);a.y=P(f+k*m);a.H();if(!this.hf(a,
t)&&(t=this.Zc(a),!t))return!0}a.x=d;a.y=f;a.H();return!1};b.prototype.kh=function(a,b){a.yd&&b.yd&&this.fj.push([a,b])};b.prototype.Mr=function(a,b){var c,m,d;c=0;for(m=this.fj.length;c<m;c++)if(d=this.fj[c],d[0]==a&&d[1]==b||d[0]==b&&d[1]==a)return!0;return!1};b.prototype.Ir=function(a,b,c){var m=a.x,d=a.y,f=ma(10,La(b,c,m,d)),g=Ga(b,c,m,d),p=this.Zc(a);if(!p)return T(g+pa);var k=p,t,e,l,n,w=S(5);for(t=1;36>t;t++)if(e=g-t*w,a.x=b+Math.cos(e)*f,a.y=c+Math.sin(e)*f,a.H(),!this.hf(a,k)&&(k=this.Zc(a),
!k)){l=e;break}36===t&&(l=T(g+pa));k=p;for(t=1;36>t;t++)if(e=g+t*w,a.x=b+Math.cos(e)*f,a.y=c+Math.sin(e)*f,a.H(),!this.hf(a,k)&&(k=this.Zc(a),!k)){n=e;break}36===t&&(n=T(g+pa));a.x=m;a.y=d;a.H();if(n===l)return n;a=Ha(n,l)/2;a=Ja(n,l)?T(l+a+pa):T(n+a);l=Math.cos(g);g=Math.sin(g);n=Math.cos(a);a=Math.sin(a);b=l*n+g*a;return Ga(0,0,l-2*b*n,g-2*b*a)};var t=-1;b.prototype.trigger=function(a,b,c){if(!this.Fa)return!1;var m=this.Fa.kg;if(!m)return!1;var d=!1,f,g,p;t++;var k=m.ck;g=0;for(p=k.length;g<p;++g)f=
this.Mp(a,b,k[g],c),d=d||f;f=this.Mp(a,b,m,c);t--;return d||f};b.prototype.Mp=function(a,b,c,m){var d=!1,f,g,p,k;if(b)for(p=this.lm(a,b,b.type.name,c,m),d=d||p,k=b.type.Ha,f=0,g=k.length;f<g;++f)p=this.lm(a,b,k[f].name,c,m),d=d||p;else p=this.lm(a,b,"system",c,m),d=d||p;return d};b.prototype.lm=function(a,b,c,m,d){var f,g=!1,p=!1,p="undefined"!==typeof d,k=(p?m.qn:m.Np)[c];if(!k)return g;var t=null;m=0;for(f=k.length;m<f;++m)if(k[m].method==a){t=k[m].lg;break}if(!t)return g;a=p?t[d]:t;if(!a)return null;
m=0;for(f=a.length;m<f;m++)d=a[m][0],p=a[m][1],p=this.Ks(b,c,d,p),g=g||p;return g};b.prototype.Ks=function(a,b,c,m){var d,f,g=!1;this.mm++;var p=this.jb().qb;p&&this.jh(p.re);var k=1<this.mm;this.jh(c.re);k&&this.qu();var e=this.cj(c);e.qb=c;a&&(d=this.types[b].S(),d.Y=!1,d.d.length=1,d.d[0]=a,this.types[b].wc());a=!0;if(c.parent){b=e.Fp;for(d=c.parent;d;)b.push(d),d=d.parent;b.reverse();d=0;for(f=b.length;d<f;d++)if(!b[d].zu()){a=!1;break}}a&&(this.uf++,c.Tc?c.yu(m):c.Ya(),g=g||e.Ue);this.Zi();k&&
this.ju();this.ld(c.re);p&&this.ld(p.re);this.ee&&0===this.qc&&0===t&&!this.Lk&&this.ub();this.mm--;return g};b.prototype.rk=function(){var a=this.jb();return a.qb.bb[a.Ta]};b.prototype.Ts=function(){var a=this.jb();return a.qb.vc[a.kc]};b.prototype.qu=function(){this.Oi++;this.Oi>=this.dl.length&&this.dl.push([])};b.prototype.ju=function(){this.Oi--};b.prototype.xn=function(){return this.dl[this.Oi]};b.prototype.cj=function(a){this.ci++;this.ci>=this.fk.length&&this.fk.push(new Hb);var b=this.jb();
b.reset(a);return b};b.prototype.Zi=function(){this.ci--};b.prototype.jb=function(){return this.fk[this.ci]};b.prototype.kp=function(a){this.Pi++;this.Pi>=this.fl.length&&this.fl.push(ca({name:a,index:0,Qa:!1}));var b=this.Us();b.name=a;b.index=0;b.Qa=!1;return b};b.prototype.fp=function(){this.Pi--};b.prototype.Us=function(){return this.fl[this.Pi]};b.prototype.yn=function(a,b){for(var c,m,d,f,g,p;b;){c=0;for(m=b.Kc.length;c<m;c++)if(p=b.Kc[c],p instanceof Ib&&cb(a,p.name))return p;b=b.parent}c=
0;for(m=this.Fd.length;c<m;c++)for(g=this.Fd[c],d=0,f=g.de.length;d<f;d++)if(p=g.de[d],p instanceof Ib&&cb(a,p.name))return p;return null};b.prototype.Bn=function(a){var b,c;b=0;for(c=this.Sc.length;b<c;b++)if(this.Sc[b].Z===a)return this.Sc[b];return null};b.prototype.ni=function(a){var b,c;b=0;for(c=this.r.length;b<c;b++)if(this.r[b].Z===a)return this.r[b];return null};b.prototype.Vs=function(a){var b,c;b=0;for(c=this.of.length;b<c;b++)if(this.of[b].Z===a)return this.of[b];return null};b.prototype.zt=
function(){var b=this,c=this.Tl,m=this.Ld,d=this.Ii,f=!1;this.Cp&&(f=!0,c="__c2_continuouspreview",this.Cp=!1);if(c.length){this.ub();m=this.Du();if(window.indexedDB&&!this.Dc)r(c,m,function(){H("Saved state to IndexedDB storage ("+m.length+" bytes)");b.Ld=m;b.trigger(W.prototype.n.Jj,null);b.Ld="";f&&g()},function(a){try{localStorage.setItem("__c2save_"+c,m),H("Saved state to WebStorage ("+m.length+" bytes)"),b.Ld=m,b.trigger(W.prototype.n.Jj,null),b.Ld="",f&&g()}catch(d){H("Failed to save game state: "+
a+"; "+d)}});else try{localStorage.setItem("__c2save_"+c,m),H("Saved state to WebStorage ("+m.length+" bytes)"),b.Ld=m,this.trigger(W.prototype.n.Jj,null),b.Ld="",f&&g()}catch(p){H("Error saving to WebStorage: "+p)}this.Kb=this.Ii=this.Tl=""}d.length&&(window.indexedDB&&!this.Dc?a(d,function(a){a?(b.Kb=a,H("Loaded state from IndexedDB storage ("+b.Kb.length+" bytes)")):(b.Kb=localStorage.getItem("__c2save_"+d)||"",H("Loaded state from WebStorage ("+b.Kb.length+" bytes)"));b.sh=!1;b.Kb.length||b.trigger(W.prototype.n.Hj,
null)},function(){b.Kb=localStorage.getItem("__c2save_"+d)||"";H("Loaded state from WebStorage ("+b.Kb.length+" bytes)");b.sh=!1;b.Kb.length||b.trigger(W.prototype.n.Hj,null)}):(this.Kb=localStorage.getItem("__c2save_"+d)||"",H("Loaded state from WebStorage ("+this.Kb.length+" bytes)"),this.sh=!1,b.Kb.length||b.trigger(W.prototype.n.Hj,null)),this.Tl=this.Ii="");this.Kb.length&&(this.ub(),this.Tt(this.Kb),this.Ld=this.Kb,this.trigger(W.prototype.n.Tq,null),this.Kb=this.Ld="")};b.prototype.Du=function(){var a,
b,c,m,f,g,p,k={c2save:!0,version:1,rt:{time:this.rc.ra,walltime:this.vd.ra,timescale:this.Wf,tickcount:this.Lc,execcount:this.uf,next_uid:this.Zg,running_layout:this.Fa.Z,start_time_offset:Date.now()-this.nj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.r.length;a<b;a++)if(f=this.r[a],!f.J&&!this.Qp(f)){g={instances:[]};Ra(f.N)&&(g.ex=d(f.N));c=0;for(m=f.d.length;c<m;c++)g.instances.push(this.Sl(f.d[c]));k.types[f.Z.toString()]=g}a=0;for(b=this.Sc.length;a<b;a++)c=
this.Sc[a],k.layouts[c.Z.toString()]=c.Cb();m=k.events.groups;a=0;for(b=this.of.length;a<b;a++)c=this.of[a],m[c.Z.toString()]=this.xg[c.wg].vg;b=k.events.cnds;for(p in this.sf)this.sf.hasOwnProperty(p)&&(a=this.sf[p],Ra(a.N)&&(b[p]={ex:d(a.N)}));b=k.events.acts;for(p in this.nf)this.nf.hasOwnProperty(p)&&(a=this.nf[p],Ra(a.N)&&(b[p]={ex:a.N}));b=k.events.vars;for(p in this.ag)this.ag.hasOwnProperty(p)&&(a=this.ag[p],a.ti||a.parent&&!a.Ig||(b[p]=a.data));k.system=this.rd.Cb();return JSON.stringify(k)};
b.prototype.np=function(){var a,b,c,m,d,f;this.me={};a=0;for(b=this.r.length;a<b;a++)if(c=this.r[a],!c.J)for(m=0,d=c.d.length;m<d;m++)f=c.d[m],this.me[f.uid.toString()]=f};b.prototype.Tt=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.rc.reset();this.rc.ra=b.time;this.vd.reset();this.vd.ra=b.walltime||0;this.Wf=b.timescale;this.Lc=b.tickcount;this.nj=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.Fa.Z)if(c=this.Bn(c))this.ln(c);else return;var m,d,f,g,p,
k,t;k=a.types;for(d in k)if(k.hasOwnProperty(d)&&(g=this.ni(parseInt(d,10)))&&!g.J&&!this.Qp(g)){k[d].ex?g.N=k[d].ex:Sa(g.N);p=g.d;f=k[d].instances;c=0;for(m=oa(p.length,f.length);c<m;c++)this.Ji(p[c],f[c]);c=f.length;for(m=p.length;c<m;c++)this.Td(p[c]);c=p.length;for(m=f.length;c<m;c++){p=null;if(g.za.ge&&(p=this.Fa.mi(f[c].w.l),!p))continue;p=this.ae(g.zc,p,!1,0,0,!0);this.Ji(p,f[c])}g.Uf=!0}this.ub();this.np();m=a.layouts;for(d in m)m.hasOwnProperty(d)&&(c=this.Bn(parseInt(d,10)))&&c.Rb(m[d]);
m=a.events.groups;for(d in m)m.hasOwnProperty(d)&&(c=this.Vs(parseInt(d,10)))&&this.xg[c.wg]&&(this.xg[c.wg].vg=m[d]);c=a.events.cnds;for(d in c)c.hasOwnProperty(d)&&this.sf.hasOwnProperty(d)&&(this.sf[d].N=c[d].ex);c=a.events.acts;for(d in c)c.hasOwnProperty(d)&&this.nf.hasOwnProperty(d)&&(this.nf[d].N=c[d].ex);c=a.events.vars;for(d in c)c.hasOwnProperty(d)&&this.ag.hasOwnProperty(d)&&(this.ag[d].data=c[d]);this.Zg=b.next_uid;this.rd.Rb(a.system);c=0;for(m=this.r.length;c<m;c++)if(g=this.r[c],!g.J)for(d=
0,a=g.d.length;d<a;d++){p=g.d[d];if(g.Ib)for(k=p.ug(),b=p.siblings.length=0,f=g.Xb.length;b<f;b++)t=g.Xb[b],g!==t&&p.siblings.push(t.d[k]);p.ad&&p.ad();if(p.U)for(b=0,f=p.U.length;b<f;b++)k=p.U[b],k.ad&&k.ad()}this.xa=!0}};b.prototype.Sl=function(a,b){var c,m,f,g,p;g=a.type;f=g.za;var k={};b?k.c2=!0:k.uid=a.uid;Ra(a.N)&&(k.ex=d(a.N));if(a.cb&&a.cb.length)for(k.ivs={},c=0,m=a.cb.length;c<m;c++)k.ivs[a.type.Hk[c].toString()]=a.cb[c];if(f.ge){f={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.Z,zi:a.Cc()};0!==
a.i&&(f.a=a.i);1!==a.opacity&&(f.o=a.opacity);.5!==a.Pb&&(f.hX=a.Pb);.5!==a.Qb&&(f.hY=a.Qb);0!==a.Mb&&(f.bm=a.Mb);a.visible||(f.v=a.visible);a.yd||(f.ce=a.yd);-1!==a.Yg&&(f.mts=a.Yg);if(g.M.length)for(f.fx=[],c=0,m=g.M.length;c<m;c++)p=g.M[c],f.fx.push({name:p.name,active:a.Vd[p.index],params:a.Ka[p.index]});k.w=f}if(a.U&&a.U.length)for(k.behs={},c=0,m=a.U.length;c<m;c++)g=a.U[c],g.Cb&&(k.behs[g.type.Z.toString()]=g.Cb());a.Cb&&(k.data=a.Cb());return k};b.prototype.Xs=function(a,b){var c,m;c=0;for(m=
a.Hk.length;c<m;c++)if(a.Hk[c]===b)return c;return-1};b.prototype.Ss=function(a,b){var c,m;c=0;for(m=a.U.length;c<m;c++)if(a.U[c].type.Z===b)return c;return-1};b.prototype.Ji=function(a,b,c){var m,d,f,g,p;p=a.type;f=p.za;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.N=b.ex:Sa(a.N);if(d=b.ivs)for(m in d)d.hasOwnProperty(m)&&(c=this.Xs(p,parseInt(m,10)),0>c||c>=a.cb.length||(a.cb[c]=d[m]));if(f.ge){f=b.w;a.j.Z!==f.l&&(c=a.j,a.j=this.Fa.mi(f.l),a.j?(a.j.d.push(a),a.j.jc=!0,Aa(c.d,a),c.jc=!0):(a.j=c,
this.Td(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.jf=f.zi;a.i=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Pb=f.hasOwnProperty("hX")?f.hX:.5;a.Qb=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.yd=f.hasOwnProperty("ce")?f.ce:!0;a.Yg=f.hasOwnProperty("mts")?f.mts:-1;a.Mb=f.hasOwnProperty("bm")?f.bm:0;a.hg=$a(a.Mb);this.q&&ab(a,a.Mb,this.q);a.H();if(f.hasOwnProperty("fx"))for(c=0,d=f.fx.length;c<d;c++)g=p.tk(f.fx[c].name),0>g||(a.Vd[g]=f.fx[c].active,
a.Ka[g]=f.fx[c].params);a.Sd()}if(p=b.behs)for(m in p)p.hasOwnProperty(m)&&(f=this.Ss(a,parseInt(m,10)),0>f||a.U[f].Rb(p[m]));b.data&&a.Rb(b.data)};Jb=function(a){return new b(document.getElementById(a))};Kb=function(a,c){return new b({dc:!0,width:a,height:c})};window.cr_createRuntime=Jb;window.cr_createDCRuntime=Kb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.mw=!0;document.body.appendChild(a);a=new b(a);
window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,l){if(0!==e&&0!==l){var b=window.cr_getC2Runtime();b&&b.setSize(e,l)}};window.cr_setSuspended=function(e){var l=window.cr_getC2Runtime();l&&l.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.kg=null;this.scrollX=this.b.fb/2;this.scrollY=this.b.eb/2;this.scale=1;this.i=0;this.pg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Rp=b[3];this.zp=b[4];this.Z=b[5];var d=b[6],f,c;this.V=[];this.Ag=[];f=0;for(c=d.length;f<c;f++){var k=new Lb(this,d[f]);k.Lo=f;this.V.push(k)}d=b[7];this.Oe=[];f=0;for(c=d.length;f<c;f++){var k=d[f],e=this.b.r[k[1]];e.zc||(e.zc=k);this.Oe.push(k);-1===this.Ag.indexOf(e)&&this.Ag.push(e)}this.M=[];this.da=[];this.Ka=
[];f=0;for(c=b[8].length;f<c;f++)this.M.push({id:b[8][f][0],name:b[8][f][1],tb:-1,lc:!0,index:f}),this.Ka.push(b[8][f][2].slice(0));this.Sd();this.oe=new sa(0,0,1,1);this.Ll=new sa(0,0,1,1);this.ne={}}function l(a,b){return a.jf-b.jf}function b(a,b){this.wa=a;this.b=a.b;this.d=[];this.scale=1;this.i=0;this.Ee=!1;this.Qd=new sa(0,0,0,0);this.Kp=new ta;this.ob=this.$a=this.pb=this.Za=0;this.jc=!1;this.name=b[0];this.index=b[1];this.Z=b[2];this.visible=b[3];this.Yd=b[4];this.Rd=b[5];this.Tb=b[6];this.Ub=
b[7];this.opacity=b[8];this.lk=b[9];this.Gb=b[10];this.Mb=b[11];this.js=b[12];this.hg="source-over";this.Ab=this.Db=0;this.pe=!1;var d=b[13],f,c;this.yf=[];f=0;for(c=d.length;f<c;f++){var k=d[f],e=this.b.r[k[1]];e.zc||(e.zc=k,e.Ur=this.index);this.yf.push(k);-1===this.wa.Ag.indexOf(e)&&this.wa.Ag.push(e)}this.M=[];this.da=[];this.Ka=[];f=0;for(c=b[14].length;f<c;f++)this.M.push({id:b[14][f][0],name:b[14][f][1],tb:-1,lc:!0,index:f}),this.Ka.push(b[14][f][2].slice(0));this.Sd();this.oe=new sa(0,0,1,
1);this.Ll=new sa(0,0,1,1)}e.prototype.Cu=function(a){var b=a.type.Z.toString();this.ne.hasOwnProperty(b)||(this.ne[b]=[]);this.ne[b].push(this.b.Sl(a))};e.prototype.En=function(){var a=this.V[0];return!a.Rd&&1===a.opacity&&!a.lk&&a.visible};e.prototype.Sd=function(){this.da.length=0;var a,b,d;a=0;for(b=this.M.length;a<b;a++)d=this.M[a],d.lc&&this.da.push(d)};e.prototype.sk=function(a){var b,d,f;b=0;for(d=this.M.length;b<d;b++)if(f=this.M[b],f.name===a)return f;return null};var n=[],r=!0;e.prototype.dm=
function(){this.zp&&(this.kg=this.b.gk[this.zp],this.kg.Vp());this.b.Fa=this;this.scrollX=this.b.fb/2;this.scrollY=this.b.eb/2;var a,b,d,f,c,k,e;a=0;for(d=this.b.r.length;a<d;a++)if(b=this.b.r[a],!b.J)for(c=b.d,b=0,f=c.length;b<f;b++)if(k=c[b],k.j){var z=k.j.Lo;z>=this.V.length&&(z=this.V.length-1);k.j=this.V[z];-1===k.j.d.indexOf(k)&&k.j.d.push(k);k.j.jc=!0}if(!r)for(a=0,d=this.V.length;a<d;++a)this.V[a].d.sort(l);n.length=0;this.Gr();a=0;for(d=this.V.length;a<d;a++)k=this.V[a],k.Rr(),k.qm();c=!1;
if(!this.pg){for(e in this.ne)if(this.ne.hasOwnProperty(e)&&(b=this.b.ni(parseInt(e,10)))&&!b.J&&this.b.nm(b)){f=this.ne[e];a=0;for(d=f.length;a<d;a++){k=null;if(b.za.ge&&(k=this.mi(f[a].w.l),!k))continue;k=this.b.ae(b.zc,k,!1,0,0,!0);this.b.Ji(k,f[a]);c=!0;n.push(k)}f.length=0}a=0;for(d=this.V.length;a<d;a++)this.V[a].d.sort(l),this.V[a].jc=!0}c&&(this.b.ub(),this.b.np());for(a=0;a<n.length;a++)if(k=n[a],k.type.Ib)for(d=k.ug(),b=0,f=k.type.Xb.length;b<f;b++)e=k.type.Xb[b],k.type!==e&&(e.d.length>
d?k.siblings.push(e.d[d]):e.zc&&(c=this.b.ae(e.zc,k.j,!0,k.x,k.y,!0),this.b.ub(),e.Bj(),k.siblings.push(c),n.push(c)));a=0;for(d=this.Oe.length;a<d;a++)this.b.ae(this.Oe[a],null,!0);this.b.Wj=null;this.b.ub();if(this.b.ta&&!this.b.ba)for(a=0,d=this.b.r.length;a<d;a++)e=this.b.r[a],!e.J&&e.d.length&&e.Hl&&e.Hl(this.b.ta);a=0;for(d=n.length;a<d;a++)k=n[a],this.b.trigger(Object.getPrototypeOf(k.type.za).n.cg,k);n.length=0;this.b.trigger(W.prototype.n.Cm,null);this.pg=!1};e.prototype.Qr=function(){var a,
b,d,f,c;b=a=0;for(d=this.Oe.length;a<d;a++)f=this.Oe[a],c=this.b.r[f[1]],c.global?this.b.ae(f,null,!0):(this.Oe[b]=f,b++);this.Oe.length=b};e.prototype.Nu=function(){this.b.trigger(W.prototype.n.Sq,null);this.b.rd.ic.length=0;var a,b,d,f,c,k;a=0;for(b=this.V.length;a<b;a++)for(this.V[a].Zp(),c=this.V[a].d,d=0,f=c.length;d<f;d++)k=c[d],k.type.global||this.b.nm(k.type)&&this.Cu(k);a=0;for(b=this.V.length;a<b;a++){c=this.V[a].d;d=0;for(f=c.length;d<f;d++)k=c[d],k.type.global||this.b.Td(k);this.b.ub();
c.length=0;this.V[a].jc=!0}a=0;for(b=this.b.r.length;a<b;a++)if(c=this.b.r[a],!(c.global||c.za.ge||c.za.lj||c.J)){d=0;for(f=c.d.length;d<f;d++)this.b.Td(c.d[d]);this.b.ub()}r=!1};e.prototype.Pc=function(a){var b,d=a,f=!1,c=!this.b.Bc;c&&(this.b.Gi||(this.b.Gi=document.createElement("canvas"),b=this.b.Gi,b.width=this.b.R,b.height=this.b.P,this.b.jo=b.getContext("2d"),f=!0),b=this.b.Gi,d=this.b.jo,b.width!==this.b.R&&(b.width=this.b.R,f=!0),b.height!==this.b.P&&(b.height=this.b.P,f=!0),f&&(d.webkitImageSmoothingEnabled=
this.b.ea,d.mozImageSmoothingEnabled=this.b.ea,d.msImageSmoothingEnabled=this.b.ea,d.imageSmoothingEnabled=this.b.ea));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.Mj&&!this.En()&&d.clearRect(0,0,this.b.R,this.b.P);var k,e,f=0;for(k=this.V.length;f<k;f++)e=this.V[f],e.visible&&0<e.opacity&&11!==e.Mb&&(e.d.length||!e.Rd)?e.Pc(d):e.qm();c&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.oc=function(a){var b=0<this.da.length||this.b.Zf||!this.b.Bc;if(b){this.b.ac||(this.b.ac=
a.zd(this.b.R,this.b.P,this.b.ea));if(this.b.ac.gg!==this.b.R||this.b.ac.fg!==this.b.P)a.deleteTexture(this.b.ac),this.b.ac=a.zd(this.b.R,this.b.P,this.b.ea);a.od(this.b.ac);this.b.Bc||a.Rf(this.b.R,this.b.P)}else this.b.ac&&(a.od(null),a.deleteTexture(this.b.ac),this.b.ac=null);this.b.Mj&&!this.En()&&a.clear(0,0,0,0);var d,f,c;d=0;for(f=this.V.length;d<f;d++)c=this.V[d],c.visible&&0<c.opacity&&(c.d.length||!c.Rd)?c.oc(a):c.qm();b&&(0===this.da.length||1===this.da.length&&this.b.Bc?(1===this.da.length?
(b=this.da[0].index,a.qd(this.da[0].tb),a.Qf(null,1/this.b.R,1/this.b.P,0,0,1,1,this.scale,this.i,0,0,this.b.R/2,this.b.P/2,this.Ka[b]),a.bj(this.da[0].tb)&&(this.b.xa=!0)):a.qd(0),this.b.Bc||a.Rf(this.b.width,this.b.height),a.od(null),a.ff(1),a.fc(this.b.ac),a.tp(),a.nd(),a.td(),b=this.b.width/2,d=this.b.height/2,a.dj(-b,d,b,d,b,-d,-b,-d),a.fc(null)):this.Ml(a,null,null,null))};e.prototype.tg=function(){return 0<this.da.length||this.b.Zf||!this.b.Bc?this.b.ac:null};e.prototype.Cn=function(){var a=
this.V[0].Zb(),b,d,f;b=1;for(d=this.V.length;b<d;b++)f=this.V[b],(0!==f.Tb||0!==f.Ub)&&f.Zb()<a&&(a=f.Zb());return a};e.prototype.rp=function(a){if(!this.Rp){var b=1/this.Cn()*this.b.R/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.xa=!0)};e.prototype.sp=function(a){if(!this.Rp){var b=1/this.Cn()*this.b.P/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.xa=!0)};e.prototype.Gr=function(){this.rp(this.scrollX);this.sp(this.scrollY)};
e.prototype.Ml=function(a,b,d,f){var c=d?d.da:b?b.da:this.da,k=1,e=0,l=0,n=0,r=this.b.R,x=this.b.P;d?(k=d.j.Zb(),e=d.j.Wa(),l=d.j.Za,n=d.j.$a,r=d.j.pb,x=d.j.ob):b&&(k=b.Zb(),e=b.Wa(),l=b.Za,n=b.$a,r=b.pb,x=b.ob);var p=this.b.ok,m,t,h,q,s=0,aa=1,B,G=this.b.R,v=this.b.P,ba=G/2,K=v/2,L=b?b.oe:this.oe,D=b?b.Ll:this.Ll,y=0,R=0,A=0,I=0,E=G,X=G,F=v,J=v,O=h=0,fa=d?d.j.Wa():0;if(d){m=0;for(t=c.length;m<t;m++)h+=a.bt(c[m].tb),O+=a.ct(c[m].tb);q=d.Ja;y=b.ya(q.left,q.top,!0,!0);A=b.ya(q.left,q.top,!1,!0);E=b.ya(q.right,
q.bottom,!0,!0);F=b.ya(q.right,q.bottom,!1,!0);0!==fa&&(m=b.ya(q.right,q.top,!0,!0),t=b.ya(q.right,q.top,!1,!0),R=b.ya(q.left,q.bottom,!0,!0),I=b.ya(q.left,q.bottom,!1,!0),q=Math.min(y,E,m,R),E=Math.max(y,E,m,R),y=q,q=Math.min(A,F,t,I),F=Math.max(A,F,t,I),A=q);y-=h;A-=O;E+=h;F+=O;D.left=y/G;D.top=1-A/v;D.right=E/G;D.bottom=1-F/v;R=y=P(y);I=A=P(A);X=E=qa(E);J=F=qa(F);R-=h;I-=O;X+=h;J+=O;0>y&&(y=0);0>A&&(A=0);E>G&&(E=G);F>v&&(F=v);0>R&&(R=0);0>I&&(I=0);X>G&&(X=G);J>v&&(J=v);L.left=y/G;L.top=1-A/v;L.right=
E/G;L.bottom=1-F/v}else L.left=D.left=0,L.top=D.top=0,L.right=D.right=1,L.bottom=D.bottom=1;O=d&&((d.i||fa)&&a.hh(c[0].tb)||0!==h||0!==O||1!==d.opacity||d.type.za.Go)||b&&!d&&1!==b.opacity;a.tp();if(O){p[s]||(p[s]=a.zd(G,v,this.b.ea));if(p[s].gg!==G||p[s].fg!==v)a.deleteTexture(p[s]),p[s]=a.zd(G,v,this.b.ea);a.qd(0);a.od(p[s]);B=J-I;a.clearRect(R,v-I-B,X-R,B);d?d.oc(a):(a.fc(this.b.tc),a.ff(b.opacity),a.nd(),a.translate(-ba,-K),a.td(),a.md(y,F,E,F,E,A,y,A,L));D.left=D.top=0;D.right=D.bottom=1;d&&
(q=L.top,L.top=L.bottom,L.bottom=q);s=1;aa=0}a.ff(1);h=c.length-1;var fa=a.Il(c[h].tb)||!b&&!d&&!this.b.Bc,na=0;m=0;for(t=c.length;m<t;m++){p[s]||(p[s]=a.zd(G,v,this.b.ea));if(p[s].gg!==G||p[s].fg!==v)a.deleteTexture(p[s]),p[s]=a.zd(G,v,this.b.ea);a.qd(c[m].tb);na=c[m].index;a.bj(c[m].tb)&&(this.b.xa=!0);0!=m||O?(a.Qf(f,1/G,1/v,D.left,D.top,D.right,D.bottom,k,e,l,n,(l+r)/2,(n+x)/2,d?d.Ka[na]:b?b.Ka[na]:this.Ka[na]),a.fc(null),m!==h||fa?(a.od(p[s]),B=J-I,q=v-I-B,a.clearRect(R,q,X-R,B)):(d?a.qe(d.Db,
d.Ab):b&&a.qe(b.Db,b.Ab),a.od(f)),a.fc(p[aa]),a.nd(),a.translate(-ba,-K),a.td(),a.md(y,F,E,F,E,A,y,A,L),m!==h||fa||a.fc(null)):(a.od(p[s]),B=J-I,q=v-I-B,a.clearRect(R,q,X-R,B),d?(a.Qf(f,1/d.width,1/d.height,D.left,D.top,D.right,D.bottom,k,e,l,n,(l+r)/2,(n+x)/2,d.Ka[na]),d.oc(a)):(a.Qf(f,1/G,1/v,0,0,1,1,k,e,l,n,(l+r)/2,(n+x)/2,b?b.Ka[na]:this.Ka[na]),a.fc(b?this.b.tc:this.b.ac),a.nd(),a.translate(-ba,-K),a.td(),a.md(y,F,E,F,E,A,y,A,L)),D.left=D.top=0,D.right=D.bottom=1,d&&!fa&&(q=F,F=A,A=q));s=0===
s?1:0;aa=0===s?1:0}fa&&(a.qd(0),d?a.qe(d.Db,d.Ab):b?a.qe(b.Db,b.Ab):this.b.Bc||(a.Rf(this.b.width,this.b.height),ba=this.b.width/2,K=this.b.height/2,A=y=0,E=this.b.width,F=this.b.height),a.od(f),a.fc(p[aa]),a.nd(),a.translate(-ba,-K),a.td(),d&&1===c.length&&!O?a.md(y,A,E,A,E,F,y,F,L):a.md(y,F,E,F,E,A,y,A,L),a.fc(null))};e.prototype.mi=function(a){var b,d;b=0;for(d=this.V.length;b<d;b++)if(this.V[b].Z===a)return this.V[b];return null};e.prototype.Cb=function(){var a,b,d,f={sx:this.scrollX,sy:this.scrollY,
s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.pg,persist:this.ne,fx:[],layers:{}};a=0;for(b=this.M.length;a<b;a++)d=this.M[a],f.fx.push({name:d.name,active:d.lc,params:this.Ka[d.index]});a=0;for(b=this.V.length;a<b;a++)d=this.V[a],f.layers[d.Z.toString()]=d.Cb();return f};e.prototype.Rb=function(a){var b,d,f,c;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.i=a.a;this.width=a.w;this.height=a.h;this.ne=a.persist;"undefined"!==typeof a.fv&&(this.pg=a.fv);var k=a.fx;b=0;for(d=k.length;b<
d;b++)if(f=this.sk(k[b].name))f.lc=k[b].active,this.Ka[f.index]=k[b].params;this.Sd();b=a.layers;for(c in b)b.hasOwnProperty(c)&&(a=this.mi(parseInt(c,10)))&&a.Rb(b[c])};yb=e;b.prototype.Sd=function(){this.da.length=0;var a,b,d;a=0;for(b=this.M.length;a<b;a++)d=this.M[a],d.lc&&this.da.push(d)};b.prototype.sk=function(a){var b,d,f;b=0;for(d=this.M.length;b<d;b++)if(f=this.M[b],f.name===a)return f;return null};b.prototype.Rr=function(){var a,b,d,f,c,k;b=a=0;for(d=this.yf.length;a<d;a++){f=this.yf[a];
c=this.b.r[f[1]];k=this.b.nm(c);c=!0;if(!k||this.wa.pg)f=this.b.ae(f,this,!0),n.push(f),f.type.global&&(c=!1);c&&(this.yf[b]=this.yf[a],b++)}this.yf.length=b;this.b.ub();!this.b.u&&this.M.length&&(this.Mb=this.js);this.hg=$a(this.Mb);this.b.q&&ab(this,this.Mb,this.b.q)};b.prototype.Zp=function(){if(this.jc){var a,b;a=0;for(b=this.d.length;a<b;a++)this.d[a].jf=a;this.jc=!1}};b.prototype.Zb=function(a){return this.Ys()*(this.b.Bc||a?this.b.eg:1)};b.prototype.Ys=function(){return(this.scale*this.wa.scale-
1)*this.Gb+1};b.prototype.Wa=function(){return this.Ee?0:T(this.wa.i+this.i)};b.prototype.Pc=function(a){this.pe=this.lk||1!==this.opacity||0!==this.Mb;var b=this.b.canvas,d=a,f=!1;this.pe&&(this.b.Fi||(this.b.Fi=document.createElement("canvas"),b=this.b.Fi,b.width=this.b.R,b.height=this.b.P,this.b.io=b.getContext("2d"),f=!0),b=this.b.Fi,d=this.b.io,b.width!==this.b.R&&(b.width=this.b.R,f=!0),b.height!==this.b.P&&(b.height=this.b.P,f=!0),f&&(d.webkitImageSmoothingEnabled=this.b.ea,d.mozImageSmoothingEnabled=
this.b.ea,d.msImageSmoothingEnabled=this.b.ea,d.imageSmoothingEnabled=this.b.ea),this.Rd&&d.clearRect(0,0,this.b.R,this.b.P));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Rd||(d.fillStyle="rgb("+this.Yd[0]+","+this.Yd[1]+","+this.Yd[2]+")",d.fillRect(0,0,this.b.R,this.b.P));d.save();this.Ee=!0;var f=this.ab(0,0,!0,!0),c=this.ab(0,0,!1,!0);this.Ee=!1;this.b.kd&&(f=Math.round(f),c=Math.round(c));this.Ol(f,c,d);var k=this.Zb();d.scale(k,k);d.translate(-f,-c);for(var e,f=0,c=this.d.length;f<
c;f++)k=this.d[f],k.visible&&0!==k.width&&0!==k.height&&(k.Da(),e=k.Ja,e.right<this.Za||e.bottom<this.$a||e.left>this.pb||e.top>this.ob||(d.globalCompositeOperation=k.hg,k.Pc(d)));d.restore();this.pe&&(a.globalCompositeOperation=this.hg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.qm=function(){this.Ee=!0;var a=this.ab(0,0,!0,!0),b=this.ab(0,0,!1,!0);this.Ee=!1;this.b.kd&&(a=Math.round(a),b=Math.round(b));this.Ol(a,b,null)};b.prototype.Ol=function(a,b,d){var f=this.Zb();this.Za=a;this.$a=
b;this.pb=a+1/f*this.b.R;this.ob=b+1/f*this.b.P;a=this.Wa();0!==a&&(d&&(d.translate(this.b.R/2,this.b.P/2),d.rotate(-a),d.translate(this.b.R/-2,this.b.P/-2)),this.Qd.set(this.Za,this.$a,this.pb,this.ob),this.Qd.offset((this.Za+this.pb)/-2,(this.$a+this.ob)/-2),this.Kp.xp(this.Qd,a),this.Kp.Wm(this.Qd),this.Qd.offset((this.Za+this.pb)/2,(this.$a+this.ob)/2),this.Za=this.Qd.left,this.$a=this.Qd.top,this.pb=this.Qd.right,this.ob=this.Qd.bottom)};b.prototype.oc=function(a){var b=this.b.R,d=this.b.P,f=
0,c=0;if(this.pe=this.lk||1!==this.opacity||0<this.da.length||0!==this.Mb){this.b.tc||(this.b.tc=a.zd(this.b.R,this.b.P,this.b.ea));if(this.b.tc.gg!==this.b.R||this.b.tc.fg!==this.b.P)a.deleteTexture(this.b.tc),this.b.tc=a.zd(this.b.R,this.b.P,this.b.ea);a.od(this.b.tc);this.Rd&&a.clear(0,0,0,0)}this.Rd||a.clear(this.Yd[0]/255,this.Yd[1]/255,this.Yd[2]/255,1);this.Ee=!0;var c=this.ab(0,0,!0,!0),k=this.ab(0,0,!1,!0);this.Ee=!1;this.b.kd&&(c=Math.round(c),k=Math.round(k));this.Ol(c,k,null);k=this.Zb();
a.nd();a.scale(k,k);a.Pl(-this.Wa());a.translate((this.Za+this.pb)/-2,(this.$a+this.ob)/-2);a.td();var e,l,n;e=0;for(l=this.d.length;e<l;e++)if(n=this.d[e],n.visible&&0!==n.width&&0!==n.height&&(n.Da(),f=n.Ja,!(f.right<this.Za||f.bottom<this.$a||f.left>this.pb||f.top>this.ob)))if(n.aq)if(f=n.da[0].tb,c=n.da[0].index,1!==n.da.length||a.Il(f)||a.ou(f)||(n.i||n.j.Wa())&&a.hh(f)||1!==n.opacity||n.type.za.Go)this.wa.Ml(a,this,n,this.pe?this.b.tc:this.wa.tg()),a.nd(),a.scale(k,k),a.Pl(-this.Wa()),a.translate((this.Za+
this.pb)/-2,(this.$a+this.ob)/-2),a.td();else{a.qd(f);a.qe(n.Db,n.Ab);a.bj(f)&&(this.b.xa=!0);var r=0,x=0,p=0,m=0;a.hh(f)&&(f=n.Ja,r=this.ya(f.left,f.top,!0,!0),x=this.ya(f.left,f.top,!1,!0),p=this.ya(f.right,f.bottom,!0,!0),f=this.ya(f.right,f.bottom,!1,!0),r/=b,x=1-x/d,p/=b,m=1-f/d);a.Qf(this.pe?this.b.tc:this.wa.tg(),1/n.width,1/n.height,r,x,p,m,this.Zb(),this.Wa(),this.Za,this.$a,(this.Za+this.pb)/2,(this.$a+this.ob)/2,n.Ka[c]);n.oc(a)}else a.qd(0),a.qe(n.Db,n.Ab),n.oc(a);this.pe&&(f=this.da.length?
this.da[0].tb:0,c=this.da.length?this.da[0].index:0,0===this.da.length||1===this.da.length&&!a.Il(f)&&1===this.opacity?(1===this.da.length?(a.qd(f),a.Qf(this.wa.tg(),1/this.b.R,1/this.b.P,0,0,1,1,this.Zb(),this.Wa(),this.Za,this.$a,(this.Za+this.pb)/2,(this.$a+this.ob)/2,this.Ka[c]),a.bj(f)&&(this.b.xa=!0)):a.qd(0),a.od(this.wa.tg()),a.ff(this.opacity),a.fc(this.b.tc),a.qe(this.Db,this.Ab),a.nd(),a.td(),b=this.b.R/2,d=this.b.P/2,a.dj(-b,d,b,d,b,-d,-b,-d),a.fc(null)):this.wa.Ml(a,this,null,this.wa.tg()))};
b.prototype.ab=function(a,b,d,f){var c=this.b.devicePixelRatio;this.b.Re&&(a*=c,b*=c);var c=this.b.bp,k=this.b.cp,c=(this.wa.scrollX-c)*this.Tb+c,k=(this.wa.scrollY-k)*this.Ub+k,e=1/this.Zb(!f);f?(c-=this.b.R*e/2,k-=this.b.P*e/2):(c-=this.b.width*e/2,k-=this.b.height*e/2);c+=a*e;k+=b*e;b=this.Wa();0!==b&&(c-=this.wa.scrollX,k-=this.wa.scrollY,a=Math.cos(b),b=Math.sin(b),f=c*a-k*b,k=k*a+c*b,c=f+this.wa.scrollX,k+=this.wa.scrollY);return d?c:k};b.prototype.ya=function(a,b,d,f){var c=this.Wa();if(0!==
c){a-=this.wa.scrollX;b-=this.wa.scrollY;var k=Math.cos(-c),c=Math.sin(-c),e=a*k-b*c;b=b*k+a*c;a=e+this.wa.scrollX;b+=this.wa.scrollY}k=this.b.bp;c=this.b.cp;k=(this.wa.scrollX-k)*this.Tb+k;c=(this.wa.scrollY-c)*this.Ub+c;e=1/this.Zb(!f);f?(k-=this.b.R*e/2,c-=this.b.P*e/2):(k-=this.b.width*e/2,c-=this.b.height*e/2);k=(a-k)/e;c=(b-c)/e;a=this.b.devicePixelRatio;this.b.Re&&!f&&(k/=a,c/=a);return d?k:c};b.prototype.Cb=function(){var a,b,d,f={s:this.scale,a:this.i,vl:this.Za,vt:this.$a,vr:this.pb,vb:this.ob,
v:this.visible,bc:this.Yd,t:this.Rd,px:this.Tb,py:this.Ub,o:this.opacity,zr:this.Gb,fx:[],instances:[]};a=0;for(b=this.M.length;a<b;a++)d=this.M[a],f.fx.push({name:d.name,active:d.lc,params:this.Ka[d.index]});return f};b.prototype.Rb=function(a){var b,d;this.scale=a.s;this.i=a.a;this.Za=a.vl;this.$a=a.vt;this.pb=a.vr;this.ob=a.vb;this.visible=a.v;this.Yd=a.bc;this.Rd=a.t;this.Tb=a.px;this.Ub=a.py;this.opacity=a.o;this.Gb=a.zr;var f=a.fx;a=0;for(b=f.length;a<b;a++)if(d=this.sk(f[a].name))d.lc=f[a].active,
this.Ka[d.index]=f[a].params;this.Sd();this.d.sort(l);this.jc=!0};Lb=b})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function l(a,b){return a.index-b.index}function b(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);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(d=f[b],e(a,d))return d;f.push(a);return a}
function n(a,b){this.b=a;this.Np={};this.qn={};this.Ak=!1;this.Hn=new ea;this.ck=[];this.Nj=[];this.name=b[0];var c=b[1];this.de=[];var d,f;d=0;for(f=c.length;d<f;d++)this.Jn(c[d],null,this.de)}function r(a){this.type=a;this.d=[];this.ka=[];this.Y=!0}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.re=[];this.Fn=this.wj=this.km=this.Gk=this.group=this.cm=!1;this.bb=[];this.vc=[];this.Kc=[];this.wg="";this.vg=this.Gk=this.group=!1;this.dn=null;c[1]&&(this.wg=c[1][1].toLowerCase(),
this.group=!0,this.Gk=!!c[1][0],this.dn=[],this.vg=this.Gk,this.b.of.push(this),this.b.xg[this.wg]=this);this.Tc=c[2];this.Z=c[4];this.group||(this.b.Vm[this.Z.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Mb(this,d[a]);f.index=a;this.bb.push(f);this.Qm(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new Nb(this,d[a]),f.index=a,this.vc.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Jn(c[a],this,this.Kc);this.vi=!1;this.bb.length&&(this.vi=null==this.bb[0].type&&
this.bb[0].rb==W.prototype.n.qq)}function g(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ib))for(c=0,d=a.Xb.length;c<d;c++)f=a.Xb[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function d(a,b){this.mc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Aa=[];this.N={};this.index=-1;this.dg=!1;this.rb=this.b.Ud(b[1]);this.trigger=0<b[3];this.pn=2===b[3];this.gd=b[4];this.Ik=b[5];this.St=b[6];this.Z=b[7];this.b.sf[this.Z.toString()]=this;-1===b[0]?(this.type=null,this.Ya=this.Rl,this.Be=null,this.xc=-1):
(this.type=this.b.r[b[0]],this.Ya=this.St?this.Au:this.Ql,b[2]?(this.Be=this.type.ki(b[2]),this.xc=this.type.pk(b[2])):(this.Be=null,this.xc=-1),this.mc.parent&&this.mc.parent.kj());this.pn&&(this.Ya=this.Bu);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var k=new Ob(this,f[c]);this.O.push(k)}this.Aa.length=f.length}}function f(a,b){this.mc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Aa=[];this.N={};this.index=-1;this.dg=!1;this.rb=this.b.Ud(b[1]);-1===b[0]?(this.type=null,this.Ya=
this.Rl,this.Be=null,this.xc=-1):(this.type=this.b.r[b[0]],this.Ya=this.Ql,b[2]?(this.Be=this.type.ki(b[2]),this.xc=this.type.pk(b[2])):(this.Be=null,this.xc=-1));this.Z=b[3];this.b.nf[this.Z.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var k=new Ob(this,f[c]);this.O.push(k)}this.Aa.length=f.length}}function c(a,b){this.G=a;this.mc=a.mc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.dd=null;this.se=0;this.get=null;this.cn=0;this.wa=null;this.key=0;this.object=null;
this.index=0;this.zh=this.gf=this.zh=this.gf=this.rn=this.He=this.Ah=null;this.Mc=!1;var c,d,f;switch(b[0]){case 0:case 7:this.dd=new Pb(this,b[1]);this.se=0;this.get=this.jt;break;case 1:this.dd=new Pb(this,b[1]);this.se=0;this.get=this.kt;break;case 5:this.dd=new Pb(this,b[1]);this.se=0;this.get=this.ot;break;case 3:case 8:this.cn=b[1];this.get=this.ht;break;case 6:this.wa=this.b.Xk[b[1]];this.get=this.pt;break;case 9:this.key=b[1];this.get=this.nt;break;case 4:this.object=this.b.r[b[1]];this.get=
this.qt;this.mc.Qm(this.object);this.G instanceof Nb?this.mc.kj():this.mc.parent&&this.mc.parent.kj();break;case 10:this.index=b[1];a.type.J?(this.get=this.lt,this.Mc=!0):this.get=this.mt;break;case 11:this.Ah=b[1];this.He=null;this.get=this.it;break;case 2:case 12:this.rn=b[1];this.get=this.gt;break;case 13:for(this.get=this.tt,this.gf=[],this.zh=[],c=1,d=b.length;c<d;c++)f=new Ob(this.G,b[c]),this.gf.push(f),this.zh.push(0)}}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=
c[1];this.Bh=c[2];this.Fk=c[3];this.Ig=!!c[4];this.ti=!!c[5];this.Z=c[6];this.b.ag[this.Z.toString()]=this;this.data=this.Fk;this.parent?(this.Ze=this.Ig||this.ti?-1:this.b.Lu++,this.b.Br.push(this)):(this.Ze=-1,this.b.Ar.push(this))}function u(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.zg=null;this.Ct=c[1];this.lc=!0}function z(){this.Fp=[];this.reset(null)}var w=[];n.prototype.toString=function(){return this.name};n.prototype.Jn=function(a,b,c){switch(a[0]){case 0:a=new Qb(this,
b,a);if(a.Tc)for(c.push(a),c=0,b=a.bb.length;c<b;c++)a.bb[c].trigger&&this.Kn(a,c);else a.Un()?this.Kn(a,0):c.push(a);break;case 1:a=new Ib(this,b,a);c.push(a);break;case 2:a=new Rb(this,b,a),c.push(a)}};n.prototype.Pa=function(){var a,b;a=0;for(b=this.de.length;a<b;a++)this.de[a].Pa(a<b-1&&this.de[a+1].vi)};n.prototype.Vp=function(){this.ck.length=0;this.Nj.length=0;this.Pm(this);this.Nj.length=0};n.prototype.Pm=function(a){var b,c,d,f,k=a.ck,e=a.Nj,g=this.Hn.ye();b=0;for(c=g.length;b<c;++b)d=g[b],
f=d.zg,!d.lc||a===f||-1<e.indexOf(f)||(e.push(f),f.Pm(a),k.push(f))};n.prototype.Ya=function(a){this.b.lw||(this.Ak=!0,a||(this.b.Lk=!0));var b,c;b=0;for(c=this.de.length;b<c;b++){var d=this.de[b];d.Ya();this.b.Xj(d.la);this.b.ee&&this.b.ub()}a||(this.b.Lk=!1)};n.prototype.Kn=function(a,b){a.Tc||this.b.Aj.push(a);var c,d,f=a.bb[b],k;k=f.type?f.type.name:"system";var e=(c=f.pn)?this.qn:this.Np;e[k]||(e[k]=[]);k=e[k];e=f.rb;if(c){if(f.O.length&&(f=f.O[0],1===f.type&&2===f.dd.type)){f=f.dd.value.toLowerCase();
c=0;for(d=k.length;c<d;c++)if(k[c].method==e){c=k[c].lg;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];k.push({method:e,lg:c})}}else{c=0;for(d=k.length;c<d;c++)if(k[c].method==e){k[c].lg.push([a,b]);return}Y&&e===Y.prototype.n.mf?k.unshift({method:e,lg:[[a,b]]}):k.push({method:e,lg:[[a,b]]})}};zb=n;r.prototype.zk=function(){return this.Y?this.type.d.length:this.d.length};r.prototype.Yb=function(){return this.Y?this.type.d:this.d};r.prototype.fh=function(a){a&&(a.b.jb().qb.Tc?(this.Y&&
(this.d.length=0,wa(this.ka,a.type.d),this.Y=!1),a=this.ka.indexOf(a),-1!==a&&(this.d.push(this.ka[a]),this.ka.splice(a,1))):(this.Y=!1,this.d.length=1,this.d[0]=a))};gb=r;window._c2hh_="";a.prototype.Pa=function(a){var c,d=this.parent;if(this.group)for(this.wj=!0;d;){if(!d.group){this.wj=!1;break}d=d.parent}this.km=!this.Un()&&(!this.parent||this.parent.group&&this.parent.wj);this.Fn=!!a;this.re=this.la.slice(0);for(d=this.parent;d;){a=0;for(c=d.la.length;a<c;a++)this.xr(d.la[a]);d=d.parent}this.la=
b(this.la);this.re=b(this.re);a=0;for(c=this.bb.length;a<c;a++)this.bb[a].Pa();a=0;for(c=this.vc.length;a<c;a++)this.vc[a].Pa();a=0;for(c=this.Kc.length;a<c;a++)this.Kc[a].Pa(a<c-1&&this.Kc[a+1].vi)};a.prototype.Qm=function(a){g(a,this.la)};a.prototype.xr=function(a){g(a,this.re)};a.prototype.kj=function(){this.cm=!0;this.parent&&this.parent.kj()};a.prototype.Un=function(){return this.bb.length?this.bb[0].trigger:!1};a.prototype.Ya=function(){var a,b=!1,c,d=this.b,f=this.b.jb();f.qb=this;var k=this.bb;
this.vi||(f.ek=!1);if(this.Tc){0===k.length&&(b=!0);f.Ta=0;for(a=k.length;f.Ta<a;f.Ta++)k[f.Ta].trigger||(c=k[f.Ta].Ya())&&(b=!0);(f.Ue=b)&&this.ij()}else{f.Ta=0;for(a=k.length;f.Ta<a;f.Ta++)if(c=k[f.Ta].Ya(),!c){f.Ue=!1;this.km&&d.ee&&d.ub();return}f.Ue=!0;this.ij()}this.ls(f)};a.prototype.ls=function(a){a.Ue&&this.Fn&&(a.ek=!0);this.km&&this.b.ee&&this.b.ub()};a.prototype.yu=function(a){this.b.jb().qb=this;this.bb[a].Ya()&&(this.ij(),this.b.jb().Ue=!0)};a.prototype.ij=function(){var a=this.b.jb(),
b;a.kc=0;for(b=this.vc.length;a.kc<b;a.kc++)if(this.vc[a.kc].Ya())return;this.pp()};a.prototype.wu=function(){var a=this.b.jb(),b;for(b=this.vc.length;a.kc<b;a.kc++)if(this.vc[a.kc].Ya())return;this.pp()};a.prototype.pp=function(){if(this.Kc.length){var a,b,c,f,d=this.Kc.length-1;this.b.cj(this);if(this.cm)for(a=0,b=this.Kc.length;a<b;a++)c=this.Kc[a],(f=!this.wj||!this.group&&a<d)&&this.b.df(c.la),c.Ya(),f?this.b.ld(c.la):this.b.Xj(c.la);else for(a=0,b=this.Kc.length;a<b;a++)this.Kc[a].Ya();this.b.Zi()}};
a.prototype.zu=function(){var a=this.b.jb();a.qb=this;var b=!1,c;a.Ta=0;for(c=this.bb.length;a.Ta<c;a.Ta++)if(this.bb[a.Ta].Ya())b=!0;else if(!this.Tc)return!1;return this.Tc?b:!0};a.prototype.ef=function(){this.b.uf++;var a=this.b.jb().Ta,b=this.b.cj(this);if(!this.Tc)for(b.Ta=a+1,a=this.bb.length;b.Ta<a;b.Ta++)if(!this.bb[b.Ta].Ya()){this.b.Zi();return}this.ij();this.b.Zi()};a.prototype.Lt=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.bb[b].type===a.type)return!1;return!0};
Qb=a;d.prototype.Pa=function(){var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Pa(),c.Mc&&(this.dg=!0)};d.prototype.Bu=function(){return!0};d.prototype.Rl=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Aa[a]=this.O[a].get();return Qa(this.rb.apply(this.b.rd,this.Aa),this.Ik)};d.prototype.Au=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Aa[a]=this.O[a].get();a=this.rb.apply(this.Be?this.Be:this.type,this.Aa);this.type.wc();return a};d.prototype.Ql=function(){var a,b,c,f,
d,k,e,g,l=this.type,n=l.S(),r=this.mc.Tc&&!this.trigger;b=0;var w=l.Ib,u=l.J,C=l.Hd,x=this.xc,z=-1<x,A=this.dg,I=this.O,E=this.Aa,X=this.Ik,F=this.rb,J;if(A)for(b=0,d=I.length;b<d;++b)k=I[b],k.Mc||(E[b]=k.get(0));else for(b=0,d=I.length;b<d;++b)E[b]=I[b].get(0);if(n.Y){n.d.length=0;n.ka.length=0;J=l.d;a=0;for(f=J.length;a<f;++a){g=J[a];if(A)for(b=0,d=I.length;b<d;++b)k=I[b],k.Mc&&(E[b]=k.get(a));z?(b=0,u&&(b=g.type.vf[C]),b=F.apply(g.U[x+b],E)):b=F.apply(g,E);(e=Qa(b,X))?n.d.push(g):r&&n.ka.push(g)}l.finish&&
l.finish(!0);n.Y=!1;l.wc();return n.zk()}c=0;J=(e=r&&!this.mc.Lt(this))?n.ka:n.d;var O=!1;a=0;for(f=J.length;a<f;++a){g=J[a];if(A)for(b=0,d=I.length;b<d;++b)k=I[b],k.Mc&&(E[b]=k.get(a));z?(b=0,u&&(b=g.type.vf[C]),b=F.apply(g.U[x+b],E)):b=F.apply(g,E);if(Qa(b,X))if(O=!0,e){if(n.d.push(g),w)for(b=0,d=g.siblings.length;b<d;b++)k=g.siblings[b],k.type.S().d.push(k)}else{J[c]=g;if(w)for(b=0,d=g.siblings.length;b<d;b++)k=g.siblings[b],k.type.S().d[c]=k;c++}else if(e){J[c]=g;if(w)for(b=0,d=g.siblings.length;b<
d;b++)k=g.siblings[b],k.type.S().ka[c]=k;c++}else if(r&&(n.ka.push(g),w))for(b=0,d=g.siblings.length;b<d;b++)k=g.siblings[b],k.type.S().ka.push(k)}J.length=c;if(w)for(u=l.Xb,a=0,f=u.length;a<f;a++)g=u[a].S(),e?g.ka.length=c:g.d.length=c;c=O;if(e&&!O)for(a=0,f=n.d.length;a<f;a++){g=n.d[a];if(A)for(b=0,d=I.length;b<d;b++)k=I[b],k.Mc&&(E[b]=k.get(a));b=z?F.apply(g.U[x],E):F.apply(g,E);if(Qa(b,X)){O=!0;break}}l.finish&&l.finish(c||r);return r?O:n.zk()};Mb=d;f.prototype.Pa=function(){var a,b,c;a=0;for(b=
this.O.length;a<b;a++)c=this.O[a],c.Pa(),c.Mc&&(this.dg=!0)};f.prototype.Rl=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Aa[a]=this.O[a].get();return this.rb.apply(this.b.rd,this.Aa)};f.prototype.Ql=function(){var a=this.type.S().Yb(),b=this.type.J,c=this.type.Hd,d=this.xc,f=-1<d,k=this.dg,g=this.O,e=this.Aa,l=this.rb,n,r,w,u,C,x;if(k)for(r=0,u=g.length;r<u;++r)C=g[r],C.Mc||(e[r]=C.get(0));else for(r=0,u=g.length;r<u;++r)e[r]=g[r].get(0);n=0;for(w=a.length;n<w;++n){x=a[n];if(k)for(r=0,
u=g.length;r<u;++r)C=g[r],C.Mc&&(e[r]=C.get(n));f?(r=0,b&&(r=x.type.vf[c]),l.apply(x.U[d+r],e)):l.apply(x,e)}return!1};Nb=f;var C=[],x=-1;c.prototype.Pa=function(){var a,b;if(11===this.type)this.He=this.b.yn(this.Ah,this.mc.parent);else if(13===this.type)for(a=0,b=this.gf.length;a<b;a++)this.gf[a].Pa();this.dd&&this.dd.Pa()};c.prototype.Wt=function(a){this.Mc||!a||a.za.lj||(this.Mc=!0)};c.prototype.vp=function(){this.Mc=!0};c.prototype.hb=function(){x++;C.length===x&&C.push(new Sb);return C[x]};c.prototype.Xa=
function(){x--};c.prototype.jt=function(a){this.se=a||0;a=this.hb();this.dd.get(a);this.Xa();return a.data};c.prototype.kt=function(a){this.se=a||0;a=this.hb();this.dd.get(a);this.Xa();return N(a.data)?a.data:""};c.prototype.qt=function(){return this.object};c.prototype.ht=function(){return this.cn};c.prototype.ot=function(a){this.se=a||0;a=this.hb();this.dd.get(a);this.Xa();return a.kb()?this.b.Jd(a.data):this.b.rg(a.data)};c.prototype.pt=function(){return this.wa};c.prototype.nt=function(){return this.key};
c.prototype.mt=function(){return this.index};c.prototype.lt=function(a){a=a||0;var b=this.G.type,c=null,c=b.S(),d=c.Yb();if(d.length)c=d[a%d.length].type;else if(c.ka.length)c=c.ka[a%c.ka.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.di[b.Hd]};c.prototype.it=function(){return this.He};c.prototype.gt=function(){return this.rn};c.prototype.tt=function(){var a,b;a=0;for(b=this.gf.length;a<b;a++)this.zh[a]=this.gf[a].get();return this.zh};Ob=c;k.prototype.Pa=
function(){this.la=b(this.la)};k.prototype.Pd=function(a){var b=this.b.xn();this.parent&&!this.Ig&&b?(this.Ze>=b.length&&(b.length=this.Ze+1),b[this.Ze]=a):this.data=a};k.prototype.Ke=function(){var a=this.b.xn();return!this.parent||this.Ig||!a||this.ti?this.data:this.Ze>=a.length||"undefined"===typeof a[this.Ze]?this.Fk:a[this.Ze]};k.prototype.Ya=function(){!this.parent||this.Ig||this.ti||this.Pd(this.Fk)};Ib=k;u.prototype.toString=function(){return"include:"+this.zg.toString()};u.prototype.Pa=function(){this.zg=
this.b.gk[this.Ct];this.sheet.Hn.add(this);this.la=b(this.la);for(var a=this.parent;a;)a.group&&a.dn.push(this),a=a.parent;this.Su()};u.prototype.Ya=function(){this.parent&&this.b.jh(this.b.r);this.zg.Ak||this.zg.Ya(!0);this.parent&&this.b.ld(this.b.r)};u.prototype.Su=function(){for(var a=this.parent;a;){if(a.group&&!a.vg){this.lc=!1;return}a=a.parent}this.lc=!0};Rb=u;z.prototype.reset=function(a){this.qb=a;this.kc=this.Ta=0;this.Fp.length=0;this.ek=this.Ue=!1};z.prototype.Pn=function(){return this.qb.cm?
!0:this.Ta<this.qb.bb.length-1?!!this.qb.la.length:!1};Hb=z})();
(function(){function e(b,e){this.G=b;this.b=b.b;this.type=e[0];this.get=[this.ys,this.us,this.Gs,this.Js,this.ns,this.Hs,this.Cs,this.rs,this.Bs,this.Fs,this.os,this.Es,this.ss,this.Ds,this.zs,this.As,this.vs,this.ws,this.qs,this.Is,this.nn,this.xs,this.nn,this.ts][this.type];var l=null;this.Sb=this.O=this.Aa=this.rb=this.sj=this.nb=this.first=this.value=null;this.xc=-1;this.Kd=null;this.tm=-1;this.He=this.Ah=null;this.lh=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Pb(b,e[1]);break;case 18:this.first=new Pb(b,e[1]);this.nb=new Pb(b,e[2]);this.sj=new Pb(b,e[3]);break;case 19:this.rb=this.b.Ud(e[1]);this.rb!==W.prototype.Ca.random&&this.rb!==W.prototype.Ca.bn||this.G.vp();this.Aa=[];this.O=[];3===e.length?(l=e[2],this.Aa.length=l.length+1):this.Aa.length=1;break;case 20:this.Sb=this.b.r[e[1]];this.xc=-1;this.rb=this.b.Ud(e[2]);this.lh=e[3];Ub.Function&&this.rb===Ub.Function.prototype.Ca.hv&&this.G.vp();this.Kd=e[4]?new Pb(b,e[4]):null;this.Aa=[];this.O=[];
6===e.length?(l=e[5],this.Aa.length=l.length+1):this.Aa.length=1;break;case 21:this.Sb=this.b.r[e[1]];this.lh=e[2];this.Kd=e[3]?new Pb(b,e[3]):null;this.tm=e[4];break;case 22:this.Sb=this.b.r[e[1]];this.Sb.ki(e[2]);this.xc=this.Sb.pk(e[2]);this.rb=this.b.Ud(e[3]);this.lh=e[4];this.Kd=e[5]?new Pb(b,e[5]):null;this.Aa=[];this.O=[];7===e.length?(l=e[6],this.Aa.length=l.length+1):this.Aa.length=1;break;case 23:this.Ah=e[1],this.He=null}this.G.Wt(this.Sb);4<=this.type&&17>=this.type&&(this.first=new Pb(b,
e[1]),this.nb=new Pb(b,e[2]));if(l){var a,g;a=0;for(g=l.length;a<g;a++)this.O.push(new Pb(b,l[a]))}}function l(b,e){this.type=b||V.lf;this.data=e||0;this.Mf=null;this.type==V.lf&&(this.data=Math.floor(this.data))}e.prototype.Pa=function(){23===this.type&&(this.He=this.G.b.yn(this.Ah,this.G.mc.parent));this.first&&this.first.Pa();this.nb&&this.nb.Pa();this.sj&&this.sj.Pa();this.Kd&&this.Kd.Pa();if(this.O){var b,e;b=0;for(e=this.O.length;b<e;b++)this.O[b].Pa()}};e.prototype.Is=function(b){this.Aa[0]=
b;b=this.G.hb();var e,l;e=0;for(l=this.O.length;e<l;e++)this.O[e].get(b),this.Aa[e+1]=b.data;this.G.Xa();this.rb.apply(this.b.rd,this.Aa)};e.prototype.nn=function(b){var e=this.Sb.S(),l=e.Yb();if(!l.length)if(e.ka.length)l=e.ka;else{this.lh?b.gc(""):b.fa(0);return}this.Aa[0]=b;b.Mf=this.Sb;b=this.G.hb();var a,e=0;for(a=this.O.length;e<a;e++)this.O[e].get(b),this.Aa[e+1]=b.data;e=this.G.se;this.Kd&&(this.Kd.get(b),b.kb()&&(e=b.data,l=this.Sb.d));this.G.Xa();e%=l.length;0>e&&(e+=l.length);l=l[e];-1<
this.xc?(b=0,this.Sb.J&&(b=l.type.vf[this.Sb.Hd]),this.rb.apply(l.U[this.xc+b],this.Aa)):this.rb.apply(l,this.Aa)};e.prototype.xs=function(b){var e=this.Sb.S(),l=e.Yb();if(!l.length)if(e.ka.length)l=e.ka;else{this.lh?b.gc(""):b.fa(0);return}e=this.G.se;if(this.Kd){var a=this.G.hb();this.Kd.get(a);if(a.kb()){e=a.data;l=this.Sb.d;e%=l.length;0>e&&(e+=l.length);l=l[e].cb[this.tm];N(l)?b.gc(l):b.A(l);this.G.Xa();return}this.G.Xa()}e%=l.length;0>e&&(e+=l.length);l=l[e];e=0;this.Sb.J&&(e=l.type.di[this.Sb.Hd]);
l=l.cb[this.tm+e];N(l)?b.gc(l):b.A(l)};e.prototype.ys=function(b){b.type=V.lf;b.data=this.value};e.prototype.us=function(b){b.type=V.kf;b.data=this.value};e.prototype.Gs=function(b){b.type=V.String;b.data=this.value};e.prototype.Js=function(b){this.first.get(b);b.kb()&&(b.data=-b.data)};e.prototype.ns=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.kb()&&e.kb()&&(b.data+=e.data,e.Df()&&b.If());this.G.Xa()};e.prototype.Hs=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);
b.kb()&&e.kb()&&(b.data-=e.data,e.Df()&&b.If());this.G.Xa()};e.prototype.Cs=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.kb()&&e.kb()&&(b.data*=e.data,e.Df()&&b.If());this.G.Xa()};e.prototype.rs=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.kb()&&e.kb()&&(b.data/=e.data,b.If());this.G.Xa()};e.prototype.Bs=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.kb()&&e.kb()&&(b.data%=e.data,e.Df()&&b.If());this.G.Xa()};e.prototype.Fs=function(b){this.first.get(b);
var e=this.G.hb();this.nb.get(e);b.kb()&&e.kb()&&(b.data=Math.pow(b.data,e.data),e.Df()&&b.If());this.G.Xa()};e.prototype.os=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.kb()?e.wi()?b.gc(b.data.toString()+e.data):b.data&&e.data?b.fa(1):b.fa(0):b.wi()&&(b.data=e.wi()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.G.Xa()};e.prototype.Es=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.kb()&&e.kb()&&(b.data||e.data?b.fa(1):b.fa(0));this.G.Xa()};
e.prototype.qs=function(b){this.first.get(b);b.data?this.nb.get(b):this.sj.get(b)};e.prototype.ss=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.fa(b.data===e.data?1:0);this.G.Xa()};e.prototype.Ds=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.fa(b.data!==e.data?1:0);this.G.Xa()};e.prototype.zs=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.fa(b.data<e.data?1:0);this.G.Xa()};e.prototype.As=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);
b.fa(b.data<=e.data?1:0);this.G.Xa()};e.prototype.vs=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.fa(b.data>e.data?1:0);this.G.Xa()};e.prototype.ws=function(b){this.first.get(b);var e=this.G.hb();this.nb.get(e);b.fa(b.data>=e.data?1:0);this.G.Xa()};e.prototype.ts=function(b){var e=this.He.Ke();M(e)?b.A(e):b.gc(e)};Pb=e;l.prototype.Df=function(){return this.type===V.kf};l.prototype.kb=function(){return this.type===V.lf||this.type===V.kf};l.prototype.wi=function(){return this.type===
V.String};l.prototype.If=function(){this.Df()||(this.wi()&&(this.data=parseFloat(this.data)),this.type=V.kf)};l.prototype.fa=function(b){this.type=V.lf;this.data=Math.floor(b)};l.prototype.A=function(b){this.type=V.kf;this.data=b};l.prototype.gc=function(b){this.type=V.String;this.data=b};l.prototype.Iu=function(b){M(b)?(this.type=V.kf,this.data=b):N(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.lf,this.data=0)};Sb=l;V={lf:0,kf:1,String:2}})();function W(e){this.b=e;this.ic=[]}
W.prototype.Cb=function(){var e={},l,b,n,r,a,g,d,f;e.waits=[];var c=e.waits,k;l=0;for(b=this.ic.length;l<b;l++){g=this.ic[l];k={t:g.time,st:g.Ju,s:g.Bp,ev:g.jg.Z,sm:[],sols:{}};g.jg.vc[g.kc]&&(k.act=g.jg.vc[g.kc].Z);n=0;for(r=g.la.length;n<r;n++)k.sm.push(g.la[n].Z);for(a in g.hc)if(g.hc.hasOwnProperty(a)){d=this.b.r[parseInt(a,10)];f={sa:g.hc[a].qp,insts:[]};n=0;for(r=g.hc[a].Pe.length;n<r;n++)f.insts.push(g.hc[a].Pe[n].uid);k.sols[d.Z.toString()]=f}c.push(k)}return e};
W.prototype.Rb=function(e){e=e.waits;var l,b,n,r,a,g,d,f,c,k,u;l=this.ic.length=0;for(b=e.length;l<b;l++)if(g=e[l],f=this.b.Vm[g.ev.toString()]){c=-1;n=0;for(r=f.vc.length;n<r;n++)if(f.vc[n].Z===g.act){c=n;break}if(-1!==c){d={hc:{},la:[],jn:!1};d.time=g.t;d.Ju=g.st||"";d.Bp=!!g.s;d.jg=f;d.kc=c;n=0;for(r=g.sm.length;n<r;n++)(f=this.b.ni(g.sm[n]))&&d.la.push(f);for(a in g.sols)if(g.sols.hasOwnProperty(a)&&(f=this.b.ni(parseInt(a,10)))){c=g.sols[a];k={qp:c.sa,Pe:[]};n=0;for(r=c.insts.length;n<r;n++)(u=
this.b.sg(c.insts[n]))&&k.Pe.push(u);d.hc[f.index.toString()]=k}this.ic.push(d)}}};
(function(){function e(){}function l(){}function b(){}var n=W.prototype;e.prototype.sq=function(){return!0};e.prototype.Cm=function(){return!0};e.prototype.Sq=function(){return!0};e.prototype.tq=function(a,b,d){var e=this.b.jb(),g=e.qb,e=e.Pn();a=this.b.kp(a);if(d<b)if(e)for(;b>=d&&!a.Qa;--b)this.b.df(g.la),a.index=b,g.ef(),this.b.ld(g.la);else for(;b>=d&&!a.Qa;--b)a.index=b,g.ef();else if(e)for(;b<=d&&!a.Qa;++b)this.b.df(g.la),a.index=b,g.ef(),this.b.ld(g.la);else for(;b<=d&&!a.Qa;++b)a.index=b,
g.ef();this.b.fp();return!1};var r=[],a=-1;e.prototype.uq=function(b){var c=b.S();a++;r.length===a&&r.push([]);var d=r[a];wa(d,c.Yb());var e=this.b.jb(),g=e.qb,l=e.Pn(),e=this.b.kp(),n,x,p,m,t,h,q=b.Ib;if(l)for(l=0,n=d.length;l<n&&!e.Qa;l++){this.b.df(g.la);m=d[l];c=b.S();c.Y=!1;c.d.length=1;c.d[0]=m;if(q)for(x=0,p=m.siblings.length;x<p;x++)t=m.siblings[x],h=t.type.S(),h.Y=!1,h.d.length=1,h.d[0]=t;e.index=l;g.ef();this.b.ld(g.la)}else for(c.Y=!1,c.d.length=1,l=0,n=d.length;l<n&&!e.Qa;l++){m=d[l];
c.d[0]=m;if(q)for(x=0,p=m.siblings.length;x<p;x++)t=m.siblings[x],h=t.type.S(),h.Y=!1,h.d.length=1,h.d[0]=t;e.index=l;g.ef()}d.length=0;this.b.fp();a--;return!1};e.prototype.rq=function(a){var b=this.b.rk(),d=b.N.Every_lastTime||0,e=this.b.rc.ra;"undefined"===typeof b.N.Every_seconds&&(b.N.Every_seconds=a);var g=b.N.Every_seconds;if(e>=d+g)return b.N.Every_lastTime=d+g,e>=b.N.Every_lastTime+.04&&(b.N.Every_lastTime=e),b.N.Every_seconds=a,!0;e<d-.1&&(b.N.Every_lastTime=e);return!1};e.prototype.mq=
function(a,b,d){return Tb(a.Ke(),b,d)};e.prototype.yq=function(a){return(a=this.b.xg[a.toLowerCase()])&&a.vg};e.prototype.qq=function(){var a=this.b.jb();return a.ek?!1:!a.Ue};e.prototype.Dm=function(){return!0};e.prototype.Hq=function(){return!0};e.prototype.Jj=function(){return!0};e.prototype.Tq=function(){return!0};e.prototype.Hj=function(){return!0};e.prototype.gq=function(a,b,d){return Ha(S(a),S(d))<=S(b)};e.prototype.xq=function(a,b){return Ja(S(a),S(b))};e.prototype.wq=function(a,b,d){a=Ea(a);
b=Ea(b);d=Ea(d);return Ja(d,b)?Ja(a,b)&&!Ja(a,d):!(!Ja(a,b)&&Ja(a,d))};n.n=new e;l.prototype.oq=function(a,b,d,e){if(b&&a&&(b=this.b.Zj(a,b,d,e))){this.b.qc++;var g;this.b.trigger(Object.getPrototypeOf(a.za).n.cg,b);if(b.Ib)for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],this.b.trigger(Object.getPrototypeOf(g.type.za).n.cg,g);this.b.qc--;a=a.S();a.Y=!1;a.d.length=1;a.d[0]=b;if(b.Ib)for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],a=g.type.S(),a.Y=!1,a.d.length=1,a.d[0]=g}};l.prototype.hr=function(a,
b){0===a.Bh?M(b)?a.Pd(b):a.Pd(parseFloat(b)):1===a.Bh&&a.Pd(b.toString())};l.prototype.dq=function(a,b){0===a.Bh?M(b)?a.Pd(a.Ke()+b):a.Pd(a.Ke()+parseFloat(b)):1===a.Bh&&a.Pd(a.Ke()+b.toString())};l.prototype.nr=function(a,b){0===a.Bh&&(M(b)?a.Pd(a.Ke()-b):a.Pd(a.Ke()-parseFloat(b)))};var g=[],d=[];n.T=new l;b.prototype["int"]=function(a,b){N(b)?(a.fa(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.fa(b)};b.prototype["float"]=function(a,b){N(b)?(a.A(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.A(b)};
b.prototype.random=function(a,b,d){void 0===d?a.A(Math.random()*b):a.A(Math.random()*(d-b)+b)};b.prototype.sqrt=function(a,b){a.A(Math.sqrt(b))};b.prototype.abs=function(a,b){a.A(Math.abs(b))};b.prototype.round=function(a,b){a.fa(Math.round(b))};b.prototype.floor=function(a,b){a.fa(Math.floor(b))};b.prototype.ceil=function(a,b){a.fa(Math.ceil(b))};b.prototype.sin=function(a,b){a.A(Math.sin(S(b)))};b.prototype.cos=function(a,b){a.A(Math.cos(S(b)))};b.prototype.tan=function(a,b){a.A(Math.tan(S(b)))};
b.prototype.asin=function(a,b){a.A(Ba(Math.asin(b)))};b.prototype.acos=function(a,b){a.A(Ba(Math.acos(b)))};b.prototype.atan=function(a,b){a.A(Ba(Math.atan(b)))};b.prototype.exp=function(a,b){a.A(Math.exp(b))};b.prototype.log10=function(a,b){a.A(Math.log(b)/Math.LN10)};b.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&b<g&&(b=g);a.A(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==
typeof b&&(b=0);var d,e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&b>g&&(b=g);a.A(b)};b.prototype.Fe=function(a){a.A(this.b.Fe)};b.prototype.Wf=function(a){a.A(this.b.Wf)};b.prototype.time=function(a){a.A(this.b.rc.ra)};b.prototype.Lc=function(a){a.fa(this.b.Lc)};b.prototype.Si=function(a){a.fa(this.b.Si)};b.prototype.mk=function(a){a.fa(this.b.mk)};b.prototype.i=function(a,b,d,e,g){a.A(Ba(Ga(b,d,e,g)))};b.prototype.$u=function(a){a.fa(this.b.width)};b.prototype.Zu=function(a){a.fa(this.b.height)};
b.prototype.find=function(a,b,d){N(b)&&N(d)?a.fa(b.search(new RegExp(Xa(d),"i"))):a.fa(-1)};b.prototype.left=function(a,b,d){a.gc(N(b)?b.substr(0,d):"")};b.prototype.right=function(a,b,d){a.gc(N(b)?b.substr(b.length-d):"")};b.prototype.replace=function(a,b,d,e){N(b)&&N(d)&&N(e)?a.gc(b.replace(new RegExp(Xa(d),"gi"),e)):a.gc(N(b)?b:"")};b.prototype.trim=function(a,b){a.gc(N(b)?b.trim():"")};b.prototype.bn=function(a){var b=P(Math.random()*(arguments.length-1));a.Iu(arguments[b+1])};b.prototype.Yj=
function(a){a.A(this.b.Yj/1E3)};b.prototype.Mi=function(a){a.A(this.b.Mi)};b.prototype.eu=function(a){a.fa(this.b.fb)};b.prototype.du=function(a){a.fa(this.b.eb)};n.Ca=new b;n.xu=function(){var a,b,e,l,n,r,C=this.b.jb();a=0;for(e=this.ic.length;a<e;a++){l=this.ic[a];if(-1===l.time){if(!l.Bp)continue}else if(l.time>this.b.rc.ra)continue;C.qb=l.jg;C.kc=l.kc;C.Ta=0;for(b in l.hc)l.hc.hasOwnProperty(b)&&(n=this.b.r[parseInt(b,10)].S(),r=l.hc[b],n.Y=r.qp,wa(n.d,r.Pe),n=r,n.Pe.length=0,d.push(n));l.jg.wu();
this.b.Xj(l.la);l.jn=!0}b=a=0;for(e=this.ic.length;a<e;a++)l=this.ic[a],this.ic[b]=l,l.jn?(Sa(l.hc),l.la.length=0,g.push(l)):b++;this.ic.length=b}})();
(function(){fb=function(e,b){var n=e[1],r=e[3],a=e[4],g=e[5],d=e[6],f=e[7],c=e[8];b.n||(b.n={});b.T||(b.T={});b.Ca||(b.Ca={});var k=b.n,u=b.T,z=b.Ca;r&&(k.lv=function(a,b){return Tb(this.x,a,b)},k.nq=function(a,b){return Tb(this.y,a,b)},k.rv=function(){var a=this.j;this.Da();var b=this.Ja;return!(b.right<a.Za||b.bottom<a.$a||b.left>a.pb||b.top>a.ob)},k.sv=function(){this.Da();var a=this.Ja,b=this.b.Fa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},k.Ev=function(a,b,c){var d=this.S(),
e=d.Yb();if(!e.length)return!1;var f=e[0],h=f,g=La(f.x,f.y,b,c),k,l,n;k=1;for(l=e.length;k<l;k++)if(f=e[k],n=La(f.x,f.y,b,c),0===a&&n<g||1===a&&n>g)g=n,h=f;d.fh(h);return!0},u.kr=function(a){this.x!==a&&(this.x=a,this.H())},u.lr=function(a){this.y!==a&&(this.y=a,this.H())},u.dr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.H()},u.Rv=function(a,b){var c=a.Zs(this);if(c){var d;c.qg?(d=c.qg(b,!0),c=c.qg(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.H()}},u.xv=
function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.H())},u.wv=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.H())},z.Lm=function(a){a.A(this.x)},z.Kj=function(a){a.A(this.y)},z.Fe=function(a){a.A(this.b.li(this))});a&&(k.kv=function(a,b){return Tb(this.width,a,b)},k.iv=function(a,b){return Tb(this.height,a,b)},u.jr=function(a){this.width!==a&&(this.width=a,this.H())},u.Pv=function(a){this.height!==a&&(this.height=a,this.H())},u.Sv=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.H()},z.Xv=function(a){a.A(this.width)},z.nv=function(a){a.A(this.height)},z.cv=function(a){this.Da();a.A(this.Ja.left)},z.gv=function(a){this.Da();a.A(this.Ja.top)},z.dv=function(a){this.Da();a.A(this.Ja.right)},z.bv=function(a){this.Da();a.A(this.Ja.bottom)});g&&(k.gq=function(a,b){return Ha(this.i,S(b))<=S(a)},k.xq=function(a){return Ja(this.i,S(a))},k.wq=function(a,b){var c=Ea(a),d=Ea(b),e=T(this.i);return Ja(d,c)?Ja(e,c)&&!Ja(e,
d):!(!Ja(e,c)&&Ja(e,d))},u.Zq=function(a){a=S(Ca(a));isNaN(a)||this.i===a||(this.i=a,this.H())},u.Iv=function(a){0===a||isNaN(a)||(this.i+=S(a),this.i=T(this.i),this.H())},u.Jv=function(a){0===a||isNaN(a)||(this.i-=S(a),this.i=T(this.i),this.H())},u.Kv=function(a,b){var c=Ia(this.i,S(b),S(a));isNaN(c)||this.i===c||(this.i=c,this.H())},u.Lv=function(a,b,c){a=Ia(this.i,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.i===a||(this.i=a,this.H())},u.Tv=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.i===c||(this.i=c,this.H())},z.fq=function(a){a.A(Da(this.i))});n||(k.kq=function(a,b,c){return Tb(this.cb[a],b,c)},k.pv=function(a){return this.cb[a]},k.Fv=function(a,b){var c=this.S(),d=c.Yb();if(!d.length)return!1;var e=d[0],f=e,h=e.cb[b],g,k,l;g=1;for(k=d.length;g<k;g++)if(e=d[g],l=e.cb[b],0===a&&l<h||1===a&&l>h)h=l,f=e;c.fh(f);return!0},k.Dv=function(a){var b,c,d,e,f;if(this.b.rk().Ik){f=this.S();if(f.Y)for(f.Y=!1,f.d.length=0,f.ka.length=0,d=this.d,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?f.ka.push(e):f.d.push(e);else{d=b=0;for(c=f.d.length;b<c;b++)e=f.d[b],f.d[d]=e,e.uid===a?f.ka.push(e):d++;f.d.length=d}this.wc();return!!f.d.length}e=this.b.sg(a);if(!e)return!1;f=this.S();if(!f.Y&&-1===f.d.indexOf(e))return!1;if(this.J)for(a=e.type.Ha,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.fh(e),this.wc(),!0}else if(e.type===this)return f.fh(e),this.wc(),!0;return!1},k.cg=function(){return!0},k.Kq=function(){return!0},u.cr=function(a,b){var c=this.cb;M(c[a])?c[a]=M(b)?b:parseFloat(b):
N(c[a])&&(c[a]=N(b)?b:b.toString())},u.av=function(a,b){var c=this.cb;M(c[a])?c[a]=M(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},u.Uv=function(a,b){var c=this.cb;M(c[a])&&(c[a]=M(b)?c[a]-b:c[a]-parseFloat(b))},u.Mv=function(a,b){this.cb[a]=b?1:0},u.Vv=function(a){this.cb[a]=1-this.cb[a]},u.pq=function(){this.b.Td(this)},u.Cq||(u.Cq=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Ji(this,b,!0);this.ad&&this.ad();if(this.U)for(a=0,b=this.U.length;a<b;++a)c=
this.U[a],c.ad&&c.ad()}),z.mv=function(a){var b=a.Mf.d.length,c,d,e;c=0;for(d=this.b.Oc.length;c<d;c++)e=this.b.Oc[c],a.Mf.J?0<=e.type.Ha.indexOf(a.Mf)&&b++:e.type===a.Mf&&b++;a.fa(b)},z.Hv=function(a){a.fa(a.Mf.S().Yb().length)},z.Wv=function(a){a.fa(this.uid)},z.ov=function(a){a.fa(this.ug())},z.hq||(z.hq=function(a){a.gc(JSON.stringify(this.b.Sl(this,!0)))}));d&&(k.tv=function(){return this.visible},u.Dh=function(a){!a!==!this.visible&&(this.visible=a,this.b.xa=!0)},k.jv=function(a,b){return Tb(bb(100*
this.opacity),a,b)},u.Qv=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.xa=!0)},z.Opacity=function(a){a.A(bb(100*this.opacity))});f&&(k.qv=function(a){return a?this.j===a:!1},k.Gv=function(a){var b=this.S(),c=b.Yb();if(!c.length)return!1;var d=c[0],e=d,f,h;f=1;for(h=c.length;f<h;f++)if(d=c[f],0===a){if(d.j.index>e.j.index||d.j.index===e.j.index&&d.Cc()>e.Cc())e=d}else if(d.j.index<e.j.index||d.j.index===e.j.index&&d.Cc()<e.Cc())e=d;b.fh(e);return!0},u.Av=function(){var a=
this.Cc();a!==this.j.d.length-1&&(va(this.j.d,a),this.j.d.push(this),this.b.xa=!0,this.j.jc=!0)},u.yv=function(){var a=this.Cc();0!==a&&(va(this.j.d,a),this.j.d.unshift(this),this.b.xa=!0,this.j.jc=!0)},u.zv=function(a){a&&a!=this.j&&(va(this.j.d,this.Cc()),this.j.jc=!0,this.j=a,this.jf=a.d.length,a.d.push(this),this.b.xa=!0)},u.Zv=function(a,b){var c=0===a;if(b){var d=b.zn(this);if(d&&d.uid!==this.uid){this.j.index!==d.j.index&&(va(this.j.d,this.Cc()),this.j.jc=!0,this.j=d.j,this.jf=d.j.d.length,
d.j.d.push(this));var e=this.Cc(),d=d.Cc();va(this.j.d,e);e<d&&d--;c&&d++;d===this.j.d.length?this.j.d.push(this):this.j.d.splice(d,0,this);this.j.jc=!0;this.b.xa=!0}}},z.vv=function(a){a.fa(this.j.Lo)},z.uv=function(a){a.gc(this.j.name)},z.Yv=function(a){a.fa(this.Cc())});c&&(u.Nv=function(a,b){if(this.b.u){var c=this.type.tk(b);if(!(0>c)){var d=1===a;this.Vd[c]!==d&&(this.Vd[c]=d,this.Sd(),this.b.xa=!0)}}},u.Ov=function(a,b,c){if(this.b.u){var d=this.type.tk(a);0>d||(a=this.type.M[d],d=this.Ka[d],
b=Math.floor(b),0>b||b>=d.length||(1===this.b.u.dt(a.tb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.lc&&(this.b.xa=!0))))}})};Ab=function(){this.Uj=this.Qj=!0;this.type.Gh=!0;this.b.xa=!0;var e,b,n=this.Rj;e=0;for(b=n.length;e<b;++e)n[e](this)};Bb=function(e){e&&this.Rj.push(e)};Db=function(){if(this.Qj){var e=this.Ja,b=this.Hb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Pb*this.width,-this.Qb*this.height);this.i?(e.offset(-this.x,-this.y),b.xp(e,this.i),b.offset(this.x,this.y),
b.Wm(e)):b.oh(e);e.normalize();this.Qj=!1}};var e=new sa(0,0,0,0);Eb=function(){if(this.Uj&&this.yd){this.Da();var l=this.type.Rh,b=this.Qh,n=this.Ja;e.set(l.Eh(n.left),l.Fh(n.top),l.Eh(n.right),l.Fh(n.bottom));b.ms(e)||(b.right<b.left?l.update(this,null,e):l.update(this,b,e),b.Or(e),this.Uj=!1)}};Cb=function(e,b){return this.Ja.Nb(e,b)&&this.Hb.Nb(e,b)?this.ja&&!this.ja.Cf()?(this.ja.qf(this.width,this.height,this.i),this.ja.Nb(e-this.x,b-this.y)):!0:!1};wb=function(){this.type.Bj();return this.Ne};
Fb=function(){this.j.Zp();return this.jf};Gb=function(){this.da.length=0;var e,b;e=0;for(b=this.Vd.length;e<b;e++)this.Vd[e]&&this.da.push(this.type.M[e]);this.aq=!!this.da.length};xb=function(){return"Inst"+this.jp};ib=function(e){if(e&&e.Ib&&e.type!=this){var b,n,r;b=0;for(n=e.siblings.length;b<n;b++)if(r=e.siblings[b],r.type==this)return r}e=this.S().Yb();return e.length?e[0]:null};jb=function(e){var b=this.S().Yb();return b.length?b[e.ug()%b.length]:null};hb=function(){if(this.Uf&&!this.J){var e,
b;e=0;for(b=this.d.length;e<b;e++)this.d[e].Ne=e;var n=e,r=this.b.Oc;e=0;for(b=r.length;e<b;++e)r[e].type===this&&(r[e].Ne=n++);this.Uf=!1}};ub=function(e){if(e<this.d.length)return this.d[e];e-=this.d.length;var b=this.b.Oc,n,r;n=0;for(r=b.length;n<r;++n)if(b[n].type===this){if(0===e)return b[n];--e}return null};kb=function(){return this.te[this.Dd]};lb=function(){this.Dd++;this.Dd===this.te.length?this.te.push(new gb(this)):this.te[this.Dd].Y=!0};mb=function(){this.Dd++;this.Dd===this.te.length&&
this.te.push(new gb(this));var e=this.te[this.Dd],b=this.te[this.Dd-1];b.Y?e.Y=!0:(e.Y=!1,wa(e.d,b.d),wa(e.ka,b.ka))};nb=function(){this.Dd--};qb=function(e){var b,n,r,a,g,d=0;if(!this.J)for(b=0,n=this.Ha.length;b<n;b++)for(g=this.Ha[b],r=0,a=g.Sa.length;r<a;r++){if(e===g.Sa[r].name)return this.N.lastBehIndex=d,g.Sa[r];d++}b=0;for(n=this.Sa.length;b<n;b++){if(e===this.Sa[b].name)return this.N.lastBehIndex=d,this.Sa[b];d++}return null};rb=function(e){return this.ki(e)?this.N.lastBehIndex:-1};sb=function(e){var b,
n;b=0;for(n=this.M.length;b<n;b++)if(this.M[b].name===e)return b;return-1};tb=function(){if(this.Ib&&!this.J){var e,b,n,r,a,g,d;this.Bj();g=this.S();var f=g.Y,c=(e=this.b.jb())&&e.qb&&e.qb.Tc;e=0;for(b=this.Xb.length;e<b;e++)if(a=this.Xb[e],a!==this&&(a.Bj(),d=a.S(),d.Y=f,!f)){d.d.length=g.d.length;n=0;for(r=g.d.length;n<r;n++)d.d[n]=a.An(g.d[n].Ne);if(c)for(d.ka.length=g.ka.length,n=0,r=g.ka.length;n<r;n++)d.ka[n]=a.An(g.ka[n].Ne)}}};vb=function(){return"Type"+this.Z};Tb=function(e,b,n){if("undefined"===
typeof e||"undefined"===typeof n)return!1;switch(b){case 0:return e===n;case 1:return e!==n;case 2:return e<n;case 3:return e<=n;case 4:return e>n;case 5:return e>=n;default:return!1}}})();var bc={};function dc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return Q.hasOwnProperty(a)&&Q[a].length?Q[a][0].pc():y.destination}function b(){return y.createGain?y.createGain():y.createGainNode()}function n(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function r(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function g(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function d(a,
c,d,e,f,h){this.type="filter";this.Uc=[a,c,d,e,f,h];this.aa=b();this.L=b();this.L.gain.value=h;this.I=b();this.I.gain.value=1-h;this.Ua=y.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?a:sc[a];this.Ua.frequency.value=c;this.Ua.detune&&(this.Ua.detune.value=d);this.Ua.Q.value=e;this.Ua.gain.value=f;this.aa.connect(this.Ua);this.aa.connect(this.I);this.Ua.connect(this.L)}function f(a,c,d){this.type="delay";this.Uc=[a,c,d];this.aa=b();this.L=b();this.L.gain.value=d;this.I=b();this.I.gain.value=
1-d;this.Wg=b();this.Ac=n(a);this.Ac.delayTime.value=a;this.Zh=b();this.Zh.gain.value=c;this.aa.connect(this.Wg);this.aa.connect(this.I);this.Wg.connect(this.L);this.Wg.connect(this.Ac);this.Ac.connect(this.Zh);this.Zh.connect(this.Wg)}function c(a,c,d,e){this.type="convolve";this.Uc=[c,d,e];this.aa=b();this.L=b();this.L.gain.value=d;this.I=b();this.I.gain.value=1-d;this.Ce=y.createConvolver();a&&(this.Ce.normalize=c,this.Ce.buffer=a);this.aa.connect(this.Ce);this.aa.connect(this.I);this.Ce.connect(this.L)}
function k(a,c,d,e,f){this.type="flanger";this.Uc=[a,c,d,e,f];this.aa=b();this.I=b();this.I.gain.value=1-f/2;this.L=b();this.L.gain.value=f/2;this.ei=b();this.ei.gain.value=e;this.Ac=n(a+c);this.Ac.delayTime.value=a;this.lb=y.createOscillator();this.lb.frequency.value=d;this.ec=b();this.ec.gain.value=c;this.aa.connect(this.Ac);this.aa.connect(this.I);this.Ac.connect(this.L);this.Ac.connect(this.ei);this.ei.connect(this.Ac);this.lb.connect(this.ec);this.ec.connect(this.Ac.delayTime);r(this.lb)}function u(a,
c,d,e,f,h){this.type="phaser";this.Uc=[a,c,d,e,f,h];this.aa=b();this.I=b();this.I.gain.value=1-h/2;this.L=b();this.L.gain.value=h/2;this.Ua=y.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?7:"allpass";this.Ua.frequency.value=a;this.Ua.detune&&(this.Ua.detune.value=c);this.Ua.Q.value=d;this.lb=y.createOscillator();this.lb.frequency.value=f;this.ec=b();this.ec.gain.value=e;this.aa.connect(this.Ua);this.aa.connect(this.I);this.Ua.connect(this.L);this.lb.connect(this.ec);this.ec.connect(this.Ua.frequency);
r(this.lb)}function z(a){this.type="gain";this.Uc=[a];this.ca=b();this.ca.gain.value=a}function w(a,c){this.type="tremolo";this.Uc=[a,c];this.ca=b();this.ca.gain.value=1-c/2;this.lb=y.createOscillator();this.lb.frequency.value=a;this.ec=b();this.ec.gain.value=c/2;this.lb.connect(this.ec);this.ec.connect(this.ca.gain);r(this.lb)}function C(a,c){this.type="ringmod";this.Uc=[a,c];this.aa=b();this.L=b();this.L.gain.value=c;this.I=b();this.I.gain.value=1-c;this.mh=b();this.mh.gain.value=0;this.lb=y.createOscillator();
this.lb.frequency.value=a;this.lb.connect(this.mh.gain);r(this.lb);this.aa.connect(this.mh);this.aa.connect(this.I);this.mh.connect(this.L)}function x(a,c,d,e,f){this.type="distortion";this.Uc=[a,c,d,e,f];this.aa=b();this.aj=b();this.$i=b();this.Eu(d,Math.pow(10,e/20));this.L=b();this.L.gain.value=f;this.I=b();this.I.gain.value=1-f;this.Fj=y.createWaveShaper();this.Xh=new Float32Array(65536);this.Qs(a,c);this.Fj.Xh=this.Xh;this.aa.connect(this.aj);this.aa.connect(this.I);this.aj.connect(this.Fj);
this.Fj.connect(this.$i);this.$i.connect(this.L)}function p(a,b,c,d,e){this.type="compressor";this.Uc=[a,b,c,d,e];this.ca=y.createDynamicsCompressor();try{this.ca.threshold.value=a,this.ca.knee.value=b,this.ca.ratio.value=c,this.ca.attack.value=d,this.ca.release.value=e}catch(f){}}function m(a,b){this.type="analyser";this.Uc=[a,b];this.ca=y.createAnalyser();this.ca.fftSize=a;this.ca.smoothingTimeConstant=b;this.Os=new Float32Array(this.ca.frequencyBinCount);this.Ap=new Uint8Array(a);this.eh=0}function t(){this.K=
null;this.Li=0;this.ue=[];this.jl=this.Bi=this.Ai=0}function h(a,c){this.src=a;this.X=D;this.Rc=c;this.Rm=!1;var d=this;this.hl=this.Bl=null;this.Pf=[];this.jj=0;this.wm=this.jk=this.Ep=this.Vi=!1;1===D&&c&&(this.X=0,this.Bl=b());this.Ae=this.na=null;var e;switch(this.X){case 0:this.na=new Audio;this.na.addEventListener("canplaythrough",function(){d.wm=!0});1===D&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Ep=!0,this.na.addEventListener("canplay",function(){d.hl||(d.hl=
y.createMediaElementSource(d.na),d.hl.connect(d.Bl))}));this.na.autoplay=!1;this.na.iw="auto";this.na.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.Ae=e.response;d.Sr()};e.onerror=function(){d.jk=!0};e.send();break;case 2:this.na=!0;break;case 3:this.na=!0}}function q(a,c){var d=this;this.tag=c;this.Qa=this.ed=!0;this.src=a.src;this.buffer=a;this.X=D;this.Rc=a.Rc;this.playbackRate=1;this.Dl=!0;this.Gc=this.Nd=!1;this.Vb=0;this.Hg=this.Ef=
this.gd=!1;this.volume=1;this.Se=1===X&&!this.Rc||2===X;this.Kf=1;this.startTime=this.Se?v.rc.ra:v.vd.ra;this.Oa=this.Va=null;this.jd=!1;this.Na=null;this.Yo=this.Xo=this.Wo=this.Vo=this.$o=this.Zo=0;this.p=null;var e=!1;1!==this.X||0!==this.buffer.X||this.buffer.Ep||(this.X=0);switch(this.X){case 0:this.Rc?(this.p=a.na,e=!a.Rm,a.Rm=!0):(this.p=new Audio,this.p.autoplay=!1,this.p.src=a.na.src,e=!0);e&&this.p.addEventListener("ended",function(){K=d.tag;d.Qa=!0;v.trigger(dc.prototype.n.Gj,ba)});break;
case 1:this.Va=b();this.Va.connect(l(c));1===this.buffer.X?a.na&&(this.p=y.createBufferSource(),this.p.buffer=a.na,this.p.connect(this.Va)):(this.p=this.buffer.na,this.buffer.Bl.connect(this.Va));break;case 2:this.p=new window.Media(L+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Dl=!0,d.Qa=!0,K=d.tag,v.trigger(dc.prototype.n.Gj,ba))});break;case 3:this.p=!0}}function s(a,b){Q.hasOwnProperty(a)?Q[a].push(b):Q[a]=[b];var c,d,e,f,h=y.destination;if(Q.hasOwnProperty(a)&&(e=Q[a],e.length))for(h=
e[0].pc(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.yc(y.destination):f.yc(e[c+1].pc());Fa.length=0;if(a.length)for(c=0,d=A.length;c<d;c++)e=A[c],cb(a,e.tag)&&Fa.push(e);else I&&!I.Me()&&(Fa.length=1,Fa[0]=I);c=0;for(d=Fa.length;c<d;c++)Fa[c].su(h);za&&ob===a&&(za.disconnect(),za.connect(h))}function aa(){}function B(){}var G=dc.prototype;G.Ba=function(a){this.za=a;this.b=a.b};G.Ba.prototype.W=function(){};var v=null,ba=null,K="",L="",D=0,y=null,R=[],A=[],I=null,E=!1,X=0,F=!1,J=1,O=0,fa=0,na=1,pb=1,
kc=10,lc=1E4,mc=1,za=null,ob="",Ma=!1,Na=[],Q={},sc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.yc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};d.prototype.remove=function(){this.aa.disconnect();this.Ua.disconnect();this.L.disconnect();this.I.disconnect()};d.prototype.pc=function(){return this.aa};f.prototype.yc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};f.prototype.remove=
function(){this.aa.disconnect();this.Wg.disconnect();this.Ac.disconnect();this.Zh.disconnect();this.L.disconnect();this.I.disconnect()};f.prototype.pc=function(){return this.aa};c.prototype.yc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};c.prototype.remove=function(){this.aa.disconnect();this.Ce.disconnect();this.L.disconnect();this.I.disconnect()};c.prototype.pc=function(){return this.aa};k.prototype.yc=function(a){this.I.disconnect();this.I.connect(a);
this.L.disconnect();this.L.connect(a)};k.prototype.remove=function(){this.aa.disconnect();this.Ac.disconnect();this.lb.disconnect();this.ec.disconnect();this.I.disconnect();this.L.disconnect();this.ei.disconnect()};k.prototype.pc=function(){return this.aa};u.prototype.yc=function(a){this.I.disconnect();this.I.connect(a);this.L.disconnect();this.L.connect(a)};u.prototype.remove=function(){this.aa.disconnect();this.Ua.disconnect();this.lb.disconnect();this.ec.disconnect();this.I.disconnect();this.L.disconnect()};
u.prototype.pc=function(){return this.aa};z.prototype.yc=function(a){this.ca.disconnect();this.ca.connect(a)};z.prototype.remove=function(){this.ca.disconnect()};z.prototype.pc=function(){return this.ca};w.prototype.yc=function(a){this.ca.disconnect();this.ca.connect(a)};w.prototype.remove=function(){this.lb.disconnect();this.ec.disconnect();this.ca.disconnect()};w.prototype.pc=function(){return this.ca};C.prototype.yc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};
C.prototype.remove=function(){this.lb.disconnect();this.mh.disconnect();this.aa.disconnect();this.L.disconnect();this.I.disconnect()};C.prototype.pc=function(){return this.aa};x.prototype.Eu=function(a,b){.01>a&&(a=.01);this.aj.gain.value=a;this.$i.gain.value=Math.pow(1/a,.6)*b};x.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};x.prototype.Qs=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=
f/32768,e=this.shape(e,c,d),this.Xh[32768+f]=e,this.Xh[32768-f-1]=-e};x.prototype.yc=function(a){this.L.disconnect();this.L.connect(a);this.I.disconnect();this.I.connect(a)};x.prototype.remove=function(){this.aa.disconnect();this.aj.disconnect();this.Fj.disconnect();this.$i.disconnect();this.L.disconnect();this.I.disconnect()};x.prototype.pc=function(){return this.aa};p.prototype.yc=function(a){this.ca.disconnect();this.ca.connect(a)};p.prototype.remove=function(){this.ca.disconnect()};p.prototype.pc=
function(){return this.ca};m.prototype.Ra=function(){this.ca.getFloatFrequencyData(this.Os);this.ca.getByteTimeDomainData(this.Ap);for(var a=this.ca.fftSize,b=0,c=this.eh=0,d=0;b<a;b++)d=(this.Ap[b]-128)/128,0>d&&(d=-d),this.eh<d&&(this.eh=d),c+=d*d;this.eh=e(this.eh);e(Math.sqrt(c/a))};m.prototype.yc=function(a){this.ca.disconnect();this.ca.connect(a)};m.prototype.remove=function(){this.ca.disconnect()};m.prototype.pc=function(){return this.ca};t.prototype.nh=function(a){if(this.K=a)this.Ai=this.K.x,
this.Bi=this.K.y;this.ue.length=0};t.prototype.pi=function(){return!!this.K};t.prototype.Ra=function(a){this.K&&0!==a&&(this.jl=Ga(this.Ai,this.Bi,this.K.x,this.K.y),a=La(this.Ai,this.Bi,this.K.x,this.K.y)/a,4>this.ue.length||this.ue.shift(),this.ue.push(a),this.Ai=this.K.x,this.Bi=this.K.y)};t.prototype.Dn=function(){if(!this.ue.length)return 0;var a,b,c=0;a=0;for(b=this.ue.length;a<b;a++)c+=this.ue[a];return c/this.ue.length};t.prototype.wk=function(){return Math.cos(this.jl)*this.Dn()};t.prototype.xk=
function(){return Math.sin(this.jl)*this.Dn()};var nc=!1;h.prototype.Sr=function(){if(!this.na&&this.Ae){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.Ae,function(b){a.na=b;a.Ae=null;var c,d,e;if(ha(a.Xi)||F)ha(a.Sh)||(c=a.Sh.Ce,c.normalize=a.Ko,c.buffer=b);else if(a.Pf.length){c=0;for(d=a.Pf.length;c<d;c++){b=a.Pf[c];e=new q(a,b.Jp);e.Wl(!0);if("undefined"!==typeof b.Mo&&(b.K=v.sg(b.Mo),!b.K))continue;if(b.K){var f=Ka(b.K.x,b.K.y,-b.K.j.Wa(),O,fa,!0),h=Ka(b.K.x,b.K.y,-b.K.j.Wa(),O,fa,!1);
e.Vl(f,h,Ba(b.K.i-b.K.j.Wa()),b.Bk,b.ml,b.pl);e.nh(b.K)}else e.Vl(b.x,b.y,b.rr,b.Bk,b.ml,b.pl);e.play(a.el,a.vm,a.jj);a.Vi&&e.pause();A.push(e)}a.Pf.length=0}else e=new q(a,a.Xi),e.play(a.el,a.vm,a.jj),a.Vi&&e.pause(),A.push(e)},function(){a.jk=!0});else if(this.na=y.createBuffer(this.Ae,!1),this.Ae=null,ha(this.Xi)||F)ha(this.Sh)||(b=this.Sh.Ce,b.normalize=this.Ko,b.buffer=this.na);else{var b=new q(this,this.Xi);b.play(this.el,this.vm,this.jj);this.Vi&&b.pause();A.push(b)}}};h.prototype.On=function(){switch(this.X){case 0:var a=
4<=this.na.readyState;a&&(this.wm=!0);return a||this.wm;case 1:return!!this.Ae||!!this.na;case 2:return!0;case 3:return!0}return!1};h.prototype.Mt=function(){switch(this.X){case 0:return this.On();case 1:return!!this.na;case 2:return!0;case 3:return!0}return!1};h.prototype.Bt=function(){switch(this.X){case 0:return!!this.na.error;case 1:return this.jk}return!1};q.prototype.Me=function(){var a;switch(this.X){case 0:return this.p.ended;case 1:if(1===this.buffer.X){if(!this.ed&&!this.Qa&&this.p.loop||
this.Gc)return!1;a=this.Se?v.rc.ra:v.vd.ra;return a-this.startTime>this.buffer.na.duration}return this.p.ended;case 2:return this.Dl;case 3:!0}return!0};q.prototype.Jr=function(){return this.ed||this.Qa?!0:this.Me()};q.prototype.Wl=function(a){1===D&&(!this.jd&&a?this.Va&&(this.Oa||(this.Oa=y.createPanner(),this.Oa.panningModel="number"===typeof this.Oa.panningModel?na:["equalpower","HRTF","soundfield"][na],this.Oa.distanceModel="number"===typeof this.Oa.distanceModel?pb:["linear","inverse","exponential"][pb],
this.Oa.refDistance=kc,this.Oa.maxDistance=lc,this.Oa.rolloffFactor=mc),this.Va.disconnect(),this.Va.connect(this.Oa),this.Oa.connect(l(this.tag)),this.jd=!0):this.jd&&!a&&this.Va&&(this.Oa.disconnect(),this.Va.disconnect(),this.Va.connect(l(this.tag)),this.jd=!1))};q.prototype.Vl=function(a,b,c,d,e,f){this.jd&&1===D&&(this.Oa.setPosition(a,b,0),this.Oa.setOrientation(Math.cos(S(c)),Math.sin(S(c)),0),this.Oa.coneInnerAngle=d,this.Oa.coneOuterAngle=e,this.Oa.coneOuterGain=f,this.Zo=a,this.$o=b,this.Vo=
c,this.Wo=d,this.Xo=e,this.Yo=f)};q.prototype.nh=function(a){this.jd&&1===D&&(this.Na||(this.Na=new t),this.Na.nh(a))};q.prototype.Ra=function(a){if(this.jd&&1===D&&this.Na&&this.Na.pi()&&this.Bf()){this.Na.Ra(a);a=this.Na.K;var b=Ka(a.x,a.y,-a.j.Wa(),O,fa,!0),c=Ka(a.x,a.y,-a.j.Wa(),O,fa,!1);this.Oa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Na.K.i&&(b=a.i-a.j.Wa(),this.Oa.setOrientation(Math.cos(b),Math.sin(b),0));b=Ka(this.Na.wk(),this.Na.xk(),-a.j.Wa(),0,0,!0);c=Ka(this.Na.wk(),this.Na.xk(),
-a.j.Wa(),0,0,!1);this.Oa.setVelocity(b,c,0)}};q.prototype.play=function(b,c,d){var e=this.p;this.gd=b;this.volume=c;d=d||0;switch(this.X){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==c*J&&(e.volume=c*J);e.loop!==b&&(e.loop=b);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Rc&&Ma&&!v.Ia)Na.push(this);else try{this.p.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=
!1;this.Kf=1;if(1===this.buffer.X)this.ed||(this.p=y.createBufferSource(),this.p.buffer=this.buffer.na,this.p.connect(this.Va)),this.p.loop=b,this.Va.gain.value=c*J,0===d?r(this.p):a(this.p,d,this.Je());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==b&&(e.loop=b);this.Va.gain.value=c*J;if(e.currentTime!==d)try{e.currentTime=d}catch(g){}this.Rc&&Ma&&!v.Ia?Na.push(this):e.play()}break;case 2:(!this.ed&&this.Qa||0!==d)&&e.seekTo(d);e.play();this.Dl=!1;break;case 3:v.Bb?AppMobi.context.playSound(this.src,
b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Se?v.rc.ra:v.vd.ra)-d;this.Gc=this.Qa=this.ed=!1};q.prototype.stop=function(){switch(this.X){case 0:this.p.paused||this.p.pause();break;case 1:1===this.buffer.X?g(this.p):this.p.paused||this.p.pause();break;case 2:this.p.stop();break;case 3:v.Bb&&AppMobi.context.stopSound(this.src)}this.Qa=!0;this.Gc=!1};q.prototype.pause=function(){if(!(this.ed||this.Qa||this.Me()||this.Gc)){switch(this.X){case 0:this.p.paused||this.p.pause();
break;case 1:1===this.buffer.X?(this.Vb=this.uk(),this.gd&&(this.Vb%=this.Je()),g(this.p)):this.p.paused||this.p.pause();break;case 2:this.p.pause();break;case 3:v.Bb&&AppMobi.context.stopSound(this.src)}this.Gc=!0}};q.prototype.vu=function(){if(!(this.ed||this.Qa||this.Me())&&this.Gc){switch(this.X){case 0:this.p.play();break;case 1:1===this.buffer.X?(this.p=y.createBufferSource(),this.p.buffer=this.buffer.na,this.p.connect(this.Va),this.p.loop=this.gd,this.Va.gain.value=J*this.volume*this.Kf,this.startTime=
(this.Se?v.rc.ra:v.vd.ra)-this.Vb,a(this.p,this.Vb,this.Je())):this.p.play();break;case 2:this.p.play();break;case 3:v.Bb&&AppMobi.context.resumeSound(this.src)}this.Gc=!1}};q.prototype.seek=function(a){if(!(this.ed||this.Qa||this.Me()))switch(this.X){case 0:try{this.p.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.X)this.Gc?this.Vb=a:(this.pause(),this.Vb=a,this.vu());else try{this.p.currentTime=a}catch(c){}break;case 3:v.Bb&&AppMobi.context.seekSound(this.src,a)}};q.prototype.su=function(a){1===
this.X&&(this.jd?(this.Oa.disconnect(),this.Oa.connect(a)):(this.Va.disconnect(),this.Va.connect(a)))};q.prototype.Je=function(){switch(this.X){case 0:if("undefined"!==typeof this.p.duration)return this.p.duration;break;case 1:return this.buffer.na.duration;case 2:return this.p.getDuration();case 3:if(v.Bb)return AppMobi.context.getDurationSound(this.src)}return 0};q.prototype.uk=function(){var a=this.Je(),b=0;switch(this.X){case 0:"undefined"!==typeof this.p.currentTime&&(b=this.p.currentTime);break;
case 1:if(1===this.buffer.X){if(this.Gc)return this.Vb;b=(this.Se?v.rc.ra:v.vd.ra)-this.startTime}else"undefined"!==typeof this.p.currentTime&&(b=this.p.currentTime);break;case 3:v.Bb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.gd&&b>a&&(b=a);return b};q.prototype.Bf=function(){return!this.Gc&&!this.ed&&!this.Qa&&!this.Me()};q.prototype.Tu=function(){var a=this.volume*J;switch(this.X){case 0:this.p.volume&&this.p.volume!==a&&(this.p.volume=a);break;case 1:this.Va.gain.value=a*this.Kf}};
q.prototype.ai=function(a){switch(this.X){case 0:this.p.muted!==!!a&&(this.p.muted=!!a);break;case 1:this.Kf=a?0:1,this.Va.gain.value=J*this.volume*this.Kf}};q.prototype.Fu=function(){this.Ef=!0;this.ai(this.Ef||this.Hg)};q.prototype.up=function(a){this.Hg=!!a;this.ai(this.Ef||this.Hg)};q.prototype.Xp=function(){var a=this.playbackRate;this.Se&&(a*=v.Wf);switch(this.X){case 0:this.p.playbackRate!==a&&(this.p.playbackRate=a);break;case 1:1===this.buffer.X?this.p.playbackRate.value!==a&&(this.p.playbackRate.value=
a):this.p.playbackRate!==a&&(this.p.playbackRate=a)}};q.prototype.Hu=function(b){switch(this.X){case 0:b?this.Bf()?(this.p.pause(),this.Nd=!0):this.Nd=!1:this.Nd&&this.p.play();break;case 1:b?this.Bf()?(1===this.buffer.X?(this.Vb=this.uk(),this.gd&&(this.Vb%=this.Je()),g(this.p)):this.p.pause(),this.Nd=!0):this.Nd=!1:this.Nd&&(1===this.buffer.X?(this.p=y.createBufferSource(),this.p.buffer=this.buffer.na,this.p.connect(this.Va),this.p.loop=this.gd,this.Va.gain.value=J*this.volume*this.Kf,this.startTime=
(this.Se?v.rc.ra:v.vd.ra)-this.Vb,a(this.p,this.Vb,this.Je())):this.p.play());break;case 2:b?this.Bf()?(this.p.pause(),this.Nd=!0):this.Nd=!1:this.Nd&&this.p.play()}};G.ma=function(a){this.type=a;v=this.b=a.b;ba=this;this.Jb=null;this.Og=-600;!(this.b.xi||this.b.qi&&(this.b.Cg||this.b.ri))||this.b.Dg||this.b.ba||(Ma=!0);y=null;"undefined"!==typeof AudioContext?(D=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,y=new webkitAudioContext);(this.b.xi&&1===D||Ma)&&document.addEventListener("touchstart",
function(){var a,b,c;!nc&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),b.buffer=a,b.connect(y.destination),r(b),nc=!0);if(Ma){if(!F)for(a=0,b=Na.length;a<b;++a)c=Na[a],c.Qa||c.Gc||c.p.play();Na.length=0}},!0);1!==D&&(this.b.Fc&&"undefined"!==typeof window.Media?D=2:this.b.zf&&(D=3));2===D&&(L=location.href,a=L.lastIndexOf("/"),-1<a&&(L=L.substr(0,a+1)),L=L.replace("file://",""));if(this.b.Qn&&this.b.Nt&&"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.Td(this);else{if(this.b.Bb)E=this.b.qi;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.Vf(this)}};var ja=G.ma.prototype;ja.W=function(){this.b.pf=this;X=this.C[0];this.Od=this.C[1];this.hu=0!==this.C[2];na=this.C[3];pb=this.C[4];this.Og=-this.C[5];kc=this.C[6];lc=this.C[7];mc=this.C[8];this.Jb=new t;var a=this.b.R||this.b.width,b=this.b.P||this.b.height;1===D&&(y.listener.speedOfSound=this.C[9],y.listener.dopplerFactor=this.C[10],y.listener.setPosition(a/
2,b/2,this.Og),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){za&&za.disconnect();ob=b.toLowerCase();za=y.createMediaStreamSource(a);za.connect(l(ob))});this.b.yr(function(a){ba.bu(a)});var c=this;this.b.Lj(function(a){c.ql(a)})};ja.ql=function(a){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Na&&d.Na.K===a&&(d.Na.K=null,d.jd&&d.Bf()&&d.gd&&d.stop());this.Jb.K===a&&(this.Jb.K=null)};ja.Cb=function(){var a={silent:F,masterVolume:J,listenerZ:this.Og,listenerUid:this.Jb.pi()?
this.Jb.K.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,h,g;c=0;for(d=A.length;c<d;c++)e=A[c],!e.Bf()||3===this.Od||e.Rc&&1===this.Od||!e.Rc&&2===this.Od||(f=e.uk(),e.gd&&(f%=e.Je()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Rc,playbackTime:f,volume:e.volume,looping:e.gd,muted:e.Ef,playbackRate:e.playbackRate,paused:e.Gc,resume_position:e.Vb},e.jd&&(f.pan={},g=f.pan,e.Na&&e.Na.pi()?g.objUid=e.Na.K.uid:(g.x=e.Zo,g.y=e.$o,g.a=e.Vo),g.ia=e.Wo,g.oa=e.Xo,g.og=e.Yo),b.push(f));b=a.effects;for(h in Q)if(Q.hasOwnProperty(h)){e=
[];c=0;for(d=Q[h].length;c<d;c++)e.push({type:Q[h][c].type,params:Q[h][c].Uc});b[h]=e}return a};var Oa=[];ja.Rb=function(a){var b=a.silent;J=a.masterVolume;this.Og=a.listenerZ;this.Jb.nh(null);var e=a.listenerUid;-1!==e&&(this.Jb.Li=e,Oa.push(this.Jb));var e=a.playing,h,g,q,l,n,r,aa,G,B,v,K;if(3!==this.Od)for(h=0,g=A.length;h<g;h++)B=A[h],B.Rc&&1===this.Od||(B.Rc||2!==this.Od)&&B.stop();for(n in Q)if(Q.hasOwnProperty(n))for(h=0,g=Q[n].length;h<g;h++)Q[n][h].remove();Sa(Q);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(r=
a.effects[n],h=0,g=r.length;h<g;h++)switch(q=r[h].type,v=r[h].params,q){case "filter":s(n,new d(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":s(n,new f(v[0],v[1],v[2]));break;case "convolve":q=v[2];B=this.ji(q,!1);B.na?q=new c(B.na,v[0],v[1],q):(q=new c(null,v[0],v[1],q),B.Ko=v[0],B.Sh=q);s(n,q);break;case "flanger":s(n,new k(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":s(n,new u(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":s(n,new z(v[0]));break;case "tremolo":s(n,new w(v[0],v[1]));break;
case "ringmod":s(n,new C(v[0],v[1]));break;case "distortion":s(n,new x(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":s(n,new p(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":s(n,new m(v[0],v[1]))}h=0;for(g=e.length;h<g;h++)3===this.Od||(a=e[h],q=a.buffersrc,l=a.is_music,n=a.tag,r=a.playbackTime,aa=a.looping,G=a.volume,K=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,l&&1===this.Od)||!l&&2===this.Od||((B=this.vn(q,n,l,aa,G))?(B.Vb=a.resume_position,B.Wl(!!v),B.play(aa,G,r),B.Xp(),B.Tu(),
B.ai(B.Ef||B.Hg),a.paused&&B.pause(),a.muted&&B.Fu(),B.ai(B.Ef||B.Hg),v&&(-1!==K?(B.Na=B.Na||new t,B.Na.Li=K,Oa.push(B.Na)):B.Vl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(B=this.ji(q,l),B.jj=r,B.Vi=a.paused,v&&(-1!==K?B.Pf.push({Mo:K,Bk:v.ia,ml:v.oa,pl:v.og,Jp:n}):B.Pf.push({x:v.x,y:v.y,rr:v.a,Bk:v.ia,ml:v.oa,pl:v.og,Jp:n}))));if(b&&!F){h=0;for(g=A.length;h<g;h++)A[h].up(!0);F=!0}else if(!b&&F){h=0;for(g=A.length;h<g;h++)A[h].up(!1);F=!1}};ja.ad=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],d=this.b.sg(c.Li),
c.nh(d),c.Li=-1,d&&(O=d.x,fa=d.y);Oa.length=0};ja.bu=function(a){if(!this.hu){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=A.length;b<c;b++)A[b].Hu(a);a&&y&&y.suspend&&y.suspend()}};ja.Ra=function(){var a=this.b.Fe,b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Ra(a),0===d.X||3===d.X||d.ed||d.Qa||!d.Me()||(d.Qa=!0,K=d.tag,v.trigger(dc.prototype.n.Gj,ba)),0!==X&&d.Xp();var e,f;for(e in Q)if(Q.hasOwnProperty(e))for(d=Q[e],b=0,c=d.length;b<c;b++)f=d[b],f.Ra&&f.Ra();1===D&&this.Jb.pi()&&(this.Jb.Ra(a),O=
this.Jb.K.x,fa=this.Jb.K.y,y.listener.setPosition(this.Jb.K.x,this.Jb.K.y,this.Og),y.listener.setVelocity(this.Jb.wk(),this.Jb.xk(),0))};var Pa=[];ja.Gu=function(a){var b,c,d,e,f,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&E||!f&&!E)Pa.push({filename:e,size:d,K:null}),h+=d;return h};ja.Mu=function(){var a,b,c,d;a=0;for(b=Pa.length;a<b;++a)c=Pa[a],d=this.b.kk+c.filename,c.K=this.ji(d,!1)};ja.$s=function(){var a=0,b,c,d;b=0;for(c=Pa.length;b<
c;++b)d=Pa[b],d.K.Mt()||d.K.Bt()||this.b.ba||this.b.ri?a+=d.size:d.K.On()&&(a+=Math.floor(d.size/2));return a};ja.ji=function(a,b){var c,d,e,f=null;c=0;for(d=R.length;c<d;c++)if(e=R[c],e.src===a){f=e;break}f||(f=new h(a,b),R.push(f));return f};ja.vn=function(a,b,c,d,e){var f,h,g;f=0;for(h=A.length;f<h;f++)if(g=A[f],g.src===a&&(g.Jr()||c))return g.tag=b,g;a=this.ji(a,c);if(!a.na)return"<preload>"!==b&&(a.Xi=b,a.el=d,a.vm=e),null;g=new q(a,b);A.push(g);return g};var Fa=[];aa.prototype.Gj=function(a){return cb(K,
a)};G.n=new aa;B.prototype.Play=function(a,b,c,d){!F&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),I=this.vn(this.b.kk+a[0]+(E?".ogg":".m4a"),d,a[1],0!==b,c))&&(I.Wl(!1),I.play(0!==b,c))};G.T=new B;G.Ca=new function(){}})();function ec(e){this.b=e}
(function(){function e(){}var l=ec.prototype;l.Ba=function(b){this.za=b;this.b=b.b};l.Ba.prototype.W=function(){};l.ma=function(b){this.type=b;this.b=b.b;this.Ok=Array(256);this.Dj=Array(256);this.xe=0};var b=l.ma.prototype;b.W=function(){var b=this;this.b.ba||(jQuery(document).keydown(function(a){b.rl(a)}),jQuery(document).keyup(function(a){b.sl(a)}))};var n=[32,33,34,35,36,37,38,39,40,44];b.rl=function(b){var a=!1;window!=window.top&&-1<n.indexOf(b.which)&&(b.preventDefault(),a=!0,b.stopPropagation());
if(this.Ok[b.which])this.Dj[b.which]&&!a&&b.preventDefault();else{this.Ok[b.which]=!0;this.xe=b.which;this.b.Ia=!0;this.b.trigger(ec.prototype.n.Fq,this);var e=this.b.trigger(ec.prototype.n.Bm,this),d=this.b.trigger(ec.prototype.n.Pq,this);this.b.Ia=!1;if(e||d)this.Dj[b.which]=!0,a||b.preventDefault()}};b.sl=function(b){this.Ok[b.which]=!1;this.xe=b.which;this.b.Ia=!0;this.b.trigger(ec.prototype.n.Gq,this);var a=this.b.trigger(ec.prototype.n.Rq,this),e=this.b.trigger(ec.prototype.n.Qq,this);this.b.Ia=
!1;if(a||e||this.Dj[b.which])this.Dj[b.which]=!0,b.preventDefault()};b.Cb=function(){return{triggerKey:this.xe}};b.Rb=function(b){this.xe=b.triggerKey};e.prototype.Bm=function(b){return b===this.xe};e.prototype.Fq=function(){return!0};e.prototype.Gq=function(){return!0};e.prototype.Rq=function(b){return b===this.xe};e.prototype.Pq=function(b){return b===this.xe};e.prototype.Qq=function(b){return b===this.xe};l.n=new e;l.T=new function(){};l.Ca=new function(){}})();function fc(e){this.b=e}
(function(){function e(){}function l(){}var b=fc.prototype;b.Ba=function(a){this.za=a;this.b=a.b};b.Ba.prototype.W=function(){};b.ma=function(a){this.type=a;this.b=a.b;this.Sj=Array(4);this.Lp=this.yj=this.Xf=this.le=this.ke=0;this.yk=!1};var n=b.ma.prototype;n.W=function(){var a=this;if(!this.b.ba){jQuery(document).mousemove(function(b){a.wl(b)});jQuery(document).mousedown(function(b){a.ul(b)});jQuery(document).mouseup(function(b){a.xl(b)});jQuery(document).dblclick(function(b){a.$t(b)});var b=function(b){a.cu(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var r={left:0,top:0};n.wl=function(a){var b=this.b.ba?r:jQuery(this.b.canvas).offset();this.ke=a.pageX-b.left;this.le=a.pageY-b.top};n.Fo=function(){return 0<this.b.Ob?!0:0<=this.ke&&0<=this.le&&this.ke<this.b.width&&this.le<this.b.height};n.ul=function(a){this.Fo()&&(this.b.xf&&!this.b.Ec&&a.preventDefault(),this.Sj[a.which]=!0,this.b.Ia=!0,this.b.trigger(fc.prototype.n.Eq,this),this.Xf=a.which-1,this.yj=
0,this.b.trigger(fc.prototype.n.Am,this),this.b.trigger(fc.prototype.n.Ij,this),this.b.Ia=!1)};n.xl=function(a){this.Sj[a.which]&&(this.b.xf&&!this.b.Ec&&a.preventDefault(),this.b.xf=!0,this.Sj[a.which]=!1,this.b.Ia=!0,this.Xf=a.which-1,this.b.trigger(fc.prototype.n.Uq,this),this.b.Ia=!1)};n.$t=function(a){this.Fo()&&(a.preventDefault(),this.b.Ia=!0,this.Xf=a.which-1,this.yj=1,this.b.trigger(fc.prototype.n.Am,this),this.b.trigger(fc.prototype.n.Ij,this),this.b.Ia=!1)};n.cu=function(a){this.Lp=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.yk=!1;this.b.Ia=!0;this.b.trigger(fc.prototype.n.Wq,this);this.b.Ia=!1;this.yk&&a.preventDefault()};e.prototype.Am=function(a,b){return a===this.Xf&&b===this.yj};e.prototype.Eq=function(){return!0};e.prototype.Uq=function(a){return a===this.Xf};e.prototype.Ij=function(a,b,d){return a!==this.Xf||b!==this.yj?!1:this.b.vh(d,this.ke,this.le)};e.prototype.Wq=function(a){this.yk=!0;return a===this.Lp};b.n=new e;b.T=new function(){};l.prototype.Lm=function(a,b){var d,
e,c,k,l;ha(b)?(d=this.b.Jd(0),e=d.scale,c=d.Gb,k=d.Tb,l=d.i,d.scale=1,d.Gb=1,d.Tb=1,d.i=0,a.A(d.ab(this.ke,this.le,!0)),d.scale=e,d.Gb=c,d.Tb=k,d.i=l):(d=M(b)?this.b.Jd(b):this.b.rg(b))?a.A(d.ab(this.ke,this.le,!0)):a.A(0)};l.prototype.Kj=function(a,b){var d,e,c,k,l;ha(b)?(d=this.b.Jd(0),e=d.scale,c=d.Gb,k=d.Ub,l=d.i,d.scale=1,d.Gb=1,d.Ub=1,d.i=0,a.A(d.ab(this.ke,this.le,!1)),d.scale=e,d.Gb=c,d.Ub=k,d.i=l):(d=M(b)?this.b.Jd(b):this.b.rg(b))?a.A(d.ab(this.ke,this.le,!1)):a.A(0)};b.Ca=new l})();
function Y(e){this.b=e}
(function(){function e(){if(0===this.bk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Tf?b.drawImage(this.ga,this.Nf,this.Of,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ga,0,0,this.width,this.height);this.bk=a.toDataURL("image/png")}return this.bk}function l(){}function b(a){a[0]=0;a[1]=0;a[2]=0;z.push(a)}function n(a,b){return a<b?""+a+","+b:""+b+","+a}function r(a,b,c,d){b=b.uid;c=c.uid;var e=n(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=z.length?z.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function a(a,c,d){c=n(c.uid,d.uid);a.hasOwnProperty(c)&&(b(a[c]),delete a[c])}function g(a,b,c){b=n(b.uid,c.uid);if(a.hasOwnProperty(b))return w=a[b][2],!0;w=-2;return!1}function d(){}var f=Y.prototype;f.Ba=function(a){this.za=a;this.b=a.b};var c=f.Ba.prototype;c.W=function(){if(!this.J){var a,b,c,d,f,g,k,l,n;this.Nc=[];this.yg=!1;a=0;for(b=this.Wb.length;a<b;a++){f=this.Wb[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];k.Nl=f[3];k.gj=
f[4];k.dp=f[5];k.Z=f[6];k.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],l={},l.hm=g[0],l.im=g[1],l.Nf=g[2],l.Of=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.Pb=g[7],l.Qb=g[8],l.Dk=g[9],l.Yi=g[10],l.ep=g[11],l.Tf=0!==l.width,l.bk="",l.ew=e,n={left:0,top:0,right:1,bottom:1},l.Xl=n,l.Ea=null,(n=this.b.Ms(g[0]))?l.ga=n:(l.ga=new Image,l.ga.Pr=g[0],l.ga.en=g[1],l.ga.Hr=null,this.b.bq(l.ga,g[0])),k.frames.push(l),this.Nc.push(l);this.Wb[a]=k}}};c.Up=function(){var a,b,c;a=0;for(b=this.d.length;a<
b;a++)c=this.d[a],c.Vh=c.nc.Ea};c.Ti=function(){if(!this.J){var a,b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],c.ga.Hr=null,c.Ea=null;this.yg=!1;this.Up()}};c.yl=function(){if(!this.J&&this.d.length){var a,b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],c.Ea=this.b.u.Ki(c.ga,!1,this.b.ea,c.ep);this.Up()}};c.$k=function(){if(!this.J&&!this.yg&&this.b.u){var a,b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],c.Ea=this.b.u.Ki(c.ga,!1,this.b.ea,c.ep);this.yg=!0}};c.om=function(){if(!this.J&&!this.d.length&&
this.yg){var a,b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],this.b.u.deleteTexture(c.Ea),c.Ea=null;this.yg=!1}};var k=[];c.Hl=function(a){var b,c,d;b=k.length=0;for(c=this.Nc.length;b<c;++b)d=this.Nc[b].ga,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};f.ma=function(a){this.type=a;this.b=a.b;a=this.type.Wb[0].frames[0].Yi;this.uc?this.ja.ph(a):this.ja=new Ya(a)};var u=f.ma.prototype;u.W=function(){this.visible=0===this.C[0];this.Ek=this.Gg=!1;this.yd=0!==this.C[3];1===this.type.Wb.length&&
1===this.type.Wb[0].frames.length||0===this.type.Wb[0].speed||(this.b.Vf(this),this.Gg=!0);this.Ga=this.un(this.C[1])||this.type.Wb[0];this.D=this.C[2];0>this.D&&(this.D=0);this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1);var a=this.Ga.frames[this.D];this.ja.ph(a.Yi);this.Pb=a.Pb;this.Qb=a.Qb;this.tf=this.Ga.speed;this.uc?this.bd.reset():this.bd=new Wa;this.Id=this.bd.ra;this.ze=!0;this.wd=0;this.Wd=!0;this.rf=this.Sm="";this.an=0;this.Vj=-1;this.type.$k();var b,c,d,e,f,g,k,a=0;for(b=
this.type.Wb.length;a<b;a++)for(e=this.type.Wb[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.ga.width,f.height=f.ga.height),f.Tf&&(k=f.ga,g=f.Xl,g.left=f.Nf/k.width,g.top=f.Of/k.height,g.right=(f.Nf+f.width)/k.width,g.bottom=(f.Of+f.height)/k.height,0===f.Nf&&0===f.Of&&f.width===k.width&&f.height===k.height&&(f.Tf=!1));this.nc=this.Ga.frames[this.D];this.Vh=this.nc.Ea};u.Cb=function(){var a={a:this.Ga.Z,f:this.D,cas:this.tf,fs:this.Id,ar:this.wd,at:this.bd.ra};this.ze||(a.ap=
this.ze);this.Wd||(a.af=this.Wd);return a};u.Rb=function(a){var b=this.Rs(a.a);b&&(this.Ga=b);this.D=a.f;0>this.D&&(this.D=0);this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1);this.tf=a.cas;this.Id=a.fs;this.wd=a.ar;this.bd.reset();this.bd.ra=a.at;this.ze=a.hasOwnProperty("ap")?a.ap:!0;this.Wd=a.hasOwnProperty("af")?a.af:!0;this.nc=this.Ga.frames[this.D];this.Vh=this.nc.Ea;this.ja.ph(this.nc.Yi);this.Pb=this.nc.Pb;this.Qb=this.nc.Qb};u.Pj=function(a){this.D=a?0:this.Ga.frames.length-
1;this.ze=!1;this.Sm=this.Ga.name;this.Ek=!0;this.b.trigger(Y.prototype.n.Dq,this);this.b.trigger(Y.prototype.n.zm,this);this.Ek=!1;this.wd=0};u.gw=function(){return this.bd.ra};u.Ra=function(){this.bd.add(this.b.li(this));this.rf.length&&this.kn();0<=this.Vj&&this.Vr();var a=this.bd.ra,b=this.Ga,c=b.frames[this.D],d=c.duration/this.tf;this.ze&&a>=this.Id+d&&(this.Wd?this.D++:this.D--,this.Id+=d,this.D>=b.frames.length&&(b.dp?(this.Wd=!1,this.D=b.frames.length-2):b.loop?this.D=b.gj:(this.wd++,this.wd>=
b.Nl?this.Pj(!1):this.D=b.gj)),0>this.D&&(b.dp?(this.D=1,this.Wd=!0,b.loop||(this.wd++,this.wd>=b.Nl&&this.Pj(!0))):b.loop?this.D=b.gj:(this.wd++,this.wd>=b.Nl?this.Pj(!0):this.D=b.gj)),0>this.D?this.D=0:this.D>=b.frames.length&&(this.D=b.frames.length-1),a>this.Id+b.frames[this.D].duration/this.tf&&(this.Id=a),a=b.frames[this.D],this.mf(c,a),this.b.xa=!0)};u.un=function(a){var b,c,d;b=0;for(c=this.type.Wb.length;b<c;b++)if(d=this.type.Wb[b],cb(d.name,a))return d;return null};u.Rs=function(a){var b,
c,d;b=0;for(c=this.type.Wb.length;b<c;b++)if(d=this.type.Wb[b],d.Z===a)return d;return null};u.kn=function(){var a=this.Ga.frames[this.D],b=this.un(this.rf);this.rf="";!b||cb(b.name,this.Ga.name)&&this.ze||(this.Ga=b,this.tf=b.speed,0>this.D&&(this.D=0),this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1),1===this.an&&(this.D=0),this.ze=!0,this.Id=this.bd.ra,this.Wd=!0,this.mf(a,this.Ga.frames[this.D]),this.b.xa=!0)};u.Vr=function(){var a=this.Ga.frames[this.D],b=this.D;this.D=P(this.Vj);
0>this.D&&(this.D=0);this.D>=this.Ga.frames.length&&(this.D=this.Ga.frames.length-1);b!==this.D&&(this.mf(a,this.Ga.frames[this.D]),this.Id=this.bd.ra,this.b.xa=!0);this.Vj=-1};u.mf=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Pb=b.Pb;this.Qb=b.Qb;this.ja.ph(b.Yi);this.H();this.nc=b;this.Vh=b.Ea;c=0;for(d=this.U.length;c<d;c++)e=this.U[c],e.au&&e.au(a,b);this.b.trigger(Y.prototype.n.mf,this)};u.Pc=function(a){a.globalAlpha=this.opacity;
var b=this.nc,c=b.Tf,d=b.ga,e=this.x,f=this.y,g=this.width,k=this.height;if(0===this.i&&0<=g&&0<=k)e-=this.Pb*g,f-=this.Qb*k,this.b.kd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Nf,b.Of,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.kd&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,n=0<k?1:-1;a.translate(e,f);1===l&&1===n||a.scale(l,n);a.rotate(this.i*l*n);e=0-this.Pb*la(g);f=0-this.Qb*la(k);c?a.drawImage(d,b.Nf,b.Of,b.width,b.height,e,f,la(g),la(k)):a.drawImage(d,
e,f,la(g),la(k));a.restore()}};u.oc=function(a){a.fc(this.Vh);a.ff(this.opacity);var b=this.nc,c=this.Hb;if(this.b.kd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Tf?a.md(c.La+d,c.Ma+e,c.Eb+d,c.Fb+e,c.yb+d,c.zb+e,c.wb+d,c.xb+e,b.Xl):a.dj(c.La+d,c.Ma+e,c.Eb+d,c.Fb+e,c.yb+d,c.zb+e,c.wb+d,c.xb+e)}else b.Tf?a.md(c.La,c.Ma,c.Eb,c.Fb,c.yb,c.zb,c.wb,c.xb,b.Xl):a.dj(c.La,c.Ma,c.Eb,c.Fb,c.yb,c.zb,c.wb,c.xb)};u.Ws=function(a){var b=this.nc,c,d;c=0;for(d=b.Dk.length;c<d;c++)if(cb(a,b.Dk[c][0]))return c;
return-1};u.qg=function(a,b){var c=this.nc,d=c.Dk,e;e=N(a)?this.Ws(a):a-1;e=P(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Pb)*this.width,d=d[e][2],d=(d-c.Qb)*this.height,c=Math.cos(this.i);e=Math.sin(this.i);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var z=[],w=-2,C=[];l.prototype.Jq=function(c){if(!c)return!1;var d=this.b,e=d.rk(),f=e.type;e.N.collmemory||(e.N.collmemory={},d.Lj(function(a){return function(c){c=c.uid;var d,e;for(d in a)a.hasOwnProperty(d)&&(e=
a[d],e[0]===c||e[1]===c)&&(b(a[d]),delete a[d])}}(e.N.collmemory)));var e=e.N.collmemory,k=f.S(),l=c.S(),k=k.Yb(),n,p,u,z,K,x,D,y=this.b.Lc,R=y-1,A=d.jb().qb;for(p=0;p<k.length;p++){u=k[p];l.Y?(u.Da(),this.b.wn(u.j,c,u.Ja,C),n=C):n=l.Yb();for(z=0;z<n.length;z++)K=n[z],d.hf(u,K)||d.Mr(u,K)?(x=g(e,u,K),x=!x||w<R,r(e,u,K,y),x&&(d.df(A.la),x=f.S(),D=c.S(),x.Y=!1,D.Y=!1,f===c?(x.d.length=2,x.d[0]=u,x.d[1]=K,f.wc()):(x.d.length=1,D.d.length=1,x.d[0]=u,D.d[0]=K,f.wc(),c.wc()),A.ef(),d.ld(A.la))):a(e,u,K);
C.length=0}return!1};var x=new ea,p=!1;c.finish=function(a){if(p){if(a){var b=this.b.jb().qb.Tc;a=null.S();var c=x.ye(),d,e;if(a.Y){a.Y=!1;a.d.length=c.length;d=0;for(e=c.length;d<e;d++)a.d[d]=c[d];if(b)for(d=a.ka.length=0,e=null.d.length;d<e;d++)c=null.d[d],x.contains(c)||a.ka.push(c)}else if(b)for(b=a.d.length,a.d.length=b+c.length,d=0,e=c.length;d<e;d++)a.d[b+d]=c[d],Aa(a.ka,c[d]);else wa(a.d,c);null.wc()}x.clear();p=!1}};l.prototype.vq=function(a){return this.rf.length?cb(this.rf,a):cb(this.Ga.name,
a)};l.prototype.zm=function(a){return cb(this.Sm,a)};l.prototype.Dq=function(){return!0};l.prototype.mf=function(){return!0};f.n=new l;d.prototype.mr=function(a,b,c){if(a&&b&&(b=this.b.Zj(a,b,this.qg(c,!0),this.qg(c,!1)))){"undefined"!==typeof b.i&&(b.i=this.i,b.H());this.b.qc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.za).n.cg,b);if(b.Ib)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.za).n.cg,f);this.b.qc--;d=this.b.Ts();c=!1;if(ha(d.N.Spawn_LastExec)||
d.N.Spawn_LastExec<this.b.uf)c=!0,d.N.Spawn_LastExec=this.b.uf;if(a!=this.type&&(a=a.S(),a.Y=!1,c?(a.d.length=1,a.d[0]=b):a.d.push(b),b.Ib))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.S(),a.Y=!1,c?(a.d.length=1,a.d[0]=f):a.d.push(f)}};d.prototype.$q=function(a,b){this.rf=a;this.an=b;this.Gg||(this.b.Vf(this),this.Gg=!0);this.Ek||this.kn()};d.prototype.br=function(a){this.tf=la(a);this.Wd=0<=a;this.Gg||(this.b.Vf(this),this.Gg=!0)};d.prototype.fr=function(a){var b=this.nc,c=b.width*
a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.H()};f.T=new d;f.Ca=new function(){}})();function gc(e){this.b=e}
(function(){function e(){return f.length?f.pop():{}}function l(a){var b,d;b=0;for(d=a.length;b<d;b++)f.push(a[b]);a.length=0}function b(){}function n(){}var r=gc.prototype;r.W=function(){r.T.jr=function(a){this.width!==a&&(this.width=a,this.ve=!0,this.H())}};r.Ba=function(a){this.za=a;this.b=a.b};var a=r.Ba.prototype;a.W=function(){};a.Ti=function(){if(!this.J){var a,b,d;a=0;for(b=this.d.length;a<b;a++)d=this.d[a],d.hd=null,d.$e=null,d.cc=null}};r.ma=function(a){this.type=a;this.b=a.b;this.uc?this.ie.length=
0:this.ie=[];this.ve=!0};var a=r.ma.prototype,g={};a.W=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.oi=this.C[4];this.Ej=this.C[5];this.ym=0===this.C[7];this.Wk=this.Ei=this.width;this.Di=this.height;this.Yk=this.C[8];this.gi=this.Gd="";this.Hp=this.Ip=this.ih=0;this.fu();this.cc=this.$e=this.hd=null;this.Io=!1;this.Ng=this.b.Lc;this.uc?this.oe.set(0,0,1,1):this.oe=new sa(0,0,1,1);this.b.u&&this.b.Vf(this)};a.fu=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.ih=parseInt(a[b].substr(0,a[b].length-2));this.Jl=Math.ceil(this.ih/72*96)+4;0<b&&(this.gi=a[b-1]);this.Gd=a[b+1];for(b+=2;b<a.length;b++)this.Gd+=" "+a[b];break}};a.Cb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.oi,va:this.Ej,wr:this.ym,lho:this.Yk,fn:this.Gd,fs:this.gi,ps:this.ih,pxh:this.Jl,tw:this.Ip,th:this.Hp,lrt:this.Ng}};a.Rb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.oi=a.ha;this.Ej=
a.va;this.ym=a.wr;this.Yk=a.lho;this.Gd=a.fn;this.gi=a.fs;this.ih=a.ps;this.Jl=a.pxh;this.Ip=a.tw;this.Hp=a.th;this.Ng=a.lrt;this.ve=!0;this.Wk=this.Ei=this.width;this.Di=this.height};a.Ra=function(){if(this.b.u&&this.cc&&300<=this.b.Lc-this.Ng){var a=this.j;this.Da();var b=this.Ja;if(b.right<a.Za||b.bottom<a.$a||b.left>a.pb||b.top>a.ob)this.b.u.deleteTexture(this.cc),this.hd=this.$e=this.cc=null}};a.bf=function(){this.hd=this.$e=null;this.b.u&&this.cc&&this.b.u.deleteTexture(this.cc);this.cc=null};
a.Wp=function(){this.font=this.gi+" "+this.ih.toString()+"pt "+this.Gd;this.ve=!0;this.b.xa=!0};a.Pc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.j.Zb(),a.save(),a.scale(d,d));if(this.ve||this.width!==this.Wk)this.type.za.pr(this.text,this.ie,a,this.width,this.ym),this.ve=!1,this.Wk=this.width;this.Da();var d=b?0:this.Hb.La,e=b?0:this.Hb.Ma;this.b.kd&&(d=d+.5|0,e=e+.5|0);0===this.i||b||(a.save(),a.translate(d,e),a.rotate(this.i),
e=d=0);var f=e+this.height,g=this.Jl,g=g+this.Yk,l,n;1===this.Ej?e+=Math.max(this.height/2-this.ie.length*g/2,0):2===this.Ej&&(e+=Math.max(this.height-this.ie.length*g-2,0));for(n=0;n<this.ie.length&&!(l=d,1===this.oi?l=d+(this.width-this.ie[n].width)/2:2===this.oi&&(l=d+(this.width-this.ie[n].width)),a.fillText(this.ie[n].text,l,e),e+=g,e>=f-g);n++);(0!==this.i||b)&&a.restore();this.Ng=this.b.Lc};a.oc=function(a){if(!(1>this.width||1>this.height)){var b=this.ve||this.Io;this.Io=!1;var d=this.j.Zb(),
e=this.j.Wa(),f=this.oe,g=d*this.width,l=d*this.height,n=Math.ceil(g),m=Math.ceil(l),r=this.b.R/2,h=this.b.P/2;this.$e||(this.hd=document.createElement("canvas"),this.hd.width=n,this.hd.height=m,this.Ei=n,this.Di=m,b=!0,this.$e=this.hd.getContext("2d"));if(n!==this.Ei||m!==this.Di)this.hd.width=n,this.hd.height=m,this.cc&&(a.deleteTexture(this.cc),this.cc=null),b=!0;b&&(this.$e.clearRect(0,0,n,m),this.Pc(this.$e,!0),this.cc||(this.cc=a.zd(n,m,this.b.ea,this.b.Ec)),a.Yu(this.hd,this.cc,this.b.Ec));
this.Ei=n;this.Di=m;a.fc(this.cc);a.ff(this.opacity);a.nd();a.translate(-r,-h);a.td();var q=this.Hb,b=this.j.ya(q.La,q.Ma,!0,!0),r=this.j.ya(q.La,q.Ma,!1,!0),h=this.j.ya(q.Eb,q.Fb,!0,!0),s=this.j.ya(q.Eb,q.Fb,!1,!0),aa=this.j.ya(q.yb,q.zb,!0,!0),B=this.j.ya(q.yb,q.zb,!1,!0),G=this.j.ya(q.wb,q.xb,!0,!0),q=this.j.ya(q.wb,q.xb,!1,!0);if(this.b.kd||0===this.i&&0===e)var v=(b+.5|0)-b,ba=(r+.5|0)-r,b=b+v,r=r+ba,h=h+v,s=s+ba,aa=aa+v,B=B+ba,G=G+v,q=q+ba;0===this.i&&0===e?(h=b+n,s=r,aa=h,B=r+m,G=b,q=B,f.right=
1,f.bottom=1):(f.right=g/n,f.bottom=l/m);a.md(b,r,h,s,aa,B,G,q,f);a.nd();a.scale(d,d);a.Pl(-this.j.Wa());a.translate((this.j.Za+this.j.pb)/-2,(this.j.$a+this.j.ob)/-2);a.td();this.Ng=this.b.Lc}};var d=[];r.or=function(a){d.length=0;for(var b="",e,f=0;f<a.length;)if(e=a.charAt(f),"\n"===e)b.length&&(d.push(b),b=""),d.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do b+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||"\t"===a.charAt(f)));d.push(b);b=""}else f<a.length&&(b+=e,f++);b.length&&
d.push(b)};var f=[];r.pr=function(a,b,d,f,g){if(a&&a.length)if(2>=f)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var n=d.measureText(a).width;if(n<=f){l(b);b.push(e());b[0].text=a;b[0].width=n;return}}this.qr(a,b,d,f,g)}else l(b)};r.qr=function(a,b,g,l,n){n&&(this.or(a),a=d);var r="",x,p,m,t=0;for(m=0;m<a.length;m++)"\n"===a[m]?(t>=b.length&&b.push(e()),p=b[t],p.text=r,p.width=g.measureText(r).width,t++,r=""):(x=r,r+=a[m],p=g.measureText(r).width,p>=l&&(t>=b.length&&b.push(e()),p=b[t],p.text=
x,p.width=g.measureText(x).width,t++,r=a[m],n||" "!==r||(r="")));r.length&&(t>=b.length&&b.push(e()),p=b[t],p.text=r,p.width=g.measureText(r).width,t++);for(m=t;m<b.length;m++)f.push(b[m]);b.length=t};r.n=new function(){};b.prototype.gr=function(a){M(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.ve=!0,this.b.xa=!0)};b.prototype.ir=function(a,b){if(this.b.ba)H("[Construct 2] Text plugin: 'Set web font' not supported on this platform - the action has been ignored");
else{var d=this,e=function(){d.b.xa=!0;d.ve=!0};if(g.hasOwnProperty(b)){var f="'"+a+"'";if(this.Gd!==f)for(this.Gd=f,this.Wp(),f=1;10>f;f++)setTimeout(e,100*f),setTimeout(e,1E3*f)}else for(f=document.createElement("link"),f.href=b,f.rel="stylesheet",f.type="text/css",f.onload=e,document.getElementsByTagName("head")[0].appendChild(f),g[b]=!0,this.Gd="'"+a+"'",this.Wp(),f=1;10>f;f++)setTimeout(e,100*f),setTimeout(e,1E3*f)}};r.T=new b;n.prototype.Text=function(a){a.gc(this.text)};r.Ca=new n})();
function hc(e){this.b=e}
(function(){var e=hc.prototype;e.Ba=function(b){this.za=b;this.b=b.b};var l=e.Ba.prototype;l.W=function(){this.J||(this.ga=new Image,this.ga.en=this.im,this.b.bq(this.ga,this.hm),this.Ea=this.pattern=null)};l.Ti=function(){this.J||(this.Ea=null)};l.yl=function(){if(!this.J&&this.d.length){this.Ea||(this.Ea=this.b.u.Ki(this.ga,!0,this.b.ea,this.jm));var b,e;b=0;for(e=this.d.length;b<e;b++)this.d[b].Ea=this.Ea}};l.$k=function(){this.J||this.Ea||!this.b.u||(this.Ea=this.b.u.Ki(this.ga,!0,this.b.ea,this.jm))};
l.om=function(){this.J||this.d.length||!this.Ea||(this.b.u.deleteTexture(this.Ea),this.Ea=null)};l.Hl=function(b){b.drawImage(this.ga,0,0)};e.ma=function(b){this.type=b;this.b=b.b};l=e.ma.prototype;l.W=function(){this.visible=0===this.C[0];this.oe=new sa(0,0,0,0);this.Gn=!1;this.ga=this.type.ga;this.b.u?(this.type.$k(),this.Ea=this.type.Ea):(this.type.pattern||(this.type.pattern=this.b.ta.createPattern(this.type.ga,"repeat")),this.pattern=this.type.pattern)};l.ad=function(){this.Gn=!1;this.ga=this.type.ga};
l.bf=function(){this.b.u&&this.Gn&&this.Ea&&(this.b.u.deleteTexture(this.Ea),this.Ea=null)};l.Pc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var e=this.x,l=this.y;this.b.kd&&(e=Math.round(e),l=Math.round(l));var a=-(this.Pb*this.width),g=-(this.Qb*this.height),d=a%this.ga.width,f=g%this.ga.height;0>d&&(d+=this.ga.width);0>f&&(f+=this.ga.height);b.translate(e,l);b.rotate(this.i);b.translate(d,f);b.fillRect(a-d,g-f,this.width,this.height);b.restore()};l.oc=function(b){b.fc(this.Ea);
b.ff(this.opacity);var e=this.oe;e.right=this.width/this.ga.width;e.bottom=this.height/this.ga.height;var l=this.Hb;if(this.b.kd){var a=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;b.md(l.La+a,l.Ma+g,l.Eb+a,l.Fb+g,l.yb+a,l.zb+g,l.wb+a,l.xb+g,e)}else b.md(l.La,l.Ma,l.Eb,l.Fb,l.yb,l.zb,l.wb,l.xb,e)};e.n=new function(){};e.T=new function(){};e.Ca=new function(){}})();function Z(e){this.b=e}
(function(){function e(a){c=a.x;k=a.y;u=a.z}function l(a){z=a.x;w=a.y;C=a.z}function b(a,b,c,d){var e;e=x.length?x.pop():new n;e.init(a,b,c,d);return e}function n(){this.rh=this.id=this.We=this.Ve=this.y=this.x=this.pj=this.oj=this.Uk=this.time=this.em=0;this.yh=this.zj=!1}function r(){}function a(){}var g=Z.prototype;g.Ba=function(a){this.za=a;this.b=a.b};g.Ba.prototype.W=function(){};g.ma=function(a){this.type=a;this.b=a.b;this.touches=[];this.il=!1};var d=g.ma.prototype,f={left:0,top:0};d.ng=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 c=0,k=0,u=0,z=0,w=0,C=0,x=[];n.prototype.init=function(a,b,c,d){var e=U();this.em=this.Uk=this.time=e;this.oj=a;this.pj=b;this.x=a;this.y=b;this.Ve=a;this.We=b;this.id=c;this.rh=d;this.yh=this.zj=!1};n.prototype.update=function(a,b,c){this.Uk=this.time;this.time=a;this.Ve=this.x;this.We=this.y;this.x=b;this.y=c;!this.yh&&15<=La(this.oj,this.pj,this.x,this.y)&&(this.yh=!0)};n.prototype.Vt=function(a,b){!this.zj&&
500<=U()-this.em&&!this.yh&&15>La(this.oj,this.pj,this.x,this.y)&&(this.zj=!0,a.sd=this.rh,a.Yf=this.id,a.wf=b,a.b.trigger(Z.prototype.n.Nq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.n.Oq,a),a.wf=0)};var p=-1E3,m=-1E3,t=-1E4;n.prototype.Bo=function(a,b){if(!this.zj){var c=U();333>=c-this.em&&!this.yh&&15>La(this.oj,this.pj,this.x,this.y)&&(a.sd=this.rh,a.Yf=this.id,a.wf=b,666>=c-t&&25>La(p,m,this.x,this.y)?(a.b.trigger(Z.prototype.n.Lq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.n.Mq,
a),m=p=-1E3,t=-1E4):(a.b.trigger(Z.prototype.n.Vq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.n.Gm,a),p=this.x,m=this.y,t=c),a.wf=0)}};d.W=function(){this.Ot=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.wf=this.Yf=this.sd=this.Cd=this.Bd=this.Om=this.Nm=this.Mm=this.ur=this.tr=this.sr=this.dh=this.bh=this.ah=0;this.Wu=0!==this.C[0];var a=0<this.b.Ob?document:this.b.canvas,b=document;this.b.Bb?b=a=window.Canvas:this.b.Dc&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.Ro(a)},!1),a.addEventListener("pointermove",function(a){c.Qo(a)},!1),b.addEventListener("pointerup",function(a){c.Ui(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Ui(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.Ro(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Qo(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Ui(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ui(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.To(a)},!1),a.addEventListener("touchmove",function(a){c.So(a)},!1),b.addEventListener("touchend",function(a){c.zl(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.zl(a,!0)},!1));if(this.Ot){var d=function(a){a=a.reading;c.Mm=a.accelerationX;c.Nm=a.accelerationY;c.Om=a.accelerationZ},f=function(a){a=a.reading;c.ah=a.yawDegrees;c.bh=a.pitchDegrees;c.dh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),
g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",
function(a){c.ah=a.alpha||0;c.bh=a.beta||0;c.dh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.sr=a.accelerationIncludingGravity.x||0,c.tr=a.accelerationIncludingGravity.y||0,c.ur=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Mm=a.acceleration.x||0,c.Nm=a.acceleration.y||0,c.Om=a.acceleration.z||0)},!1);this.Wu&&!this.b.ba&&(jQuery(document).mousemove(function(a){c.wl(a)}),jQuery(document).mousedown(function(a){c.ul(a)}),jQuery(document).mouseup(function(a){c.xl(a)}));
this.b.zf&&!this.b.Bb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.Fc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(l,null,{frequency:40});this.b.Ou(this)};d.Qo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.ng(a.pointerId),c=U();if(0<=b){var d=this.b.ba?f:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};d.Ro=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var c=this.b.ba?f:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;U();this.sd=this.touches.length;this.Yf=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.sd));this.b.Ia=!0;this.b.trigger(Z.prototype.n.Fm,this);this.b.trigger(Z.prototype.n.Jm,this);this.Bd=d;this.Cd=c;this.b.trigger(Z.prototype.n.Im,this);this.b.Ia=
!1}};d.Ui=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var c=this.ng(a.pointerId);this.sd=0<=c?this.touches[c].rh:-1;this.Yf=0<=c?this.touches[c].id:-1;this.b.Ia=!0;this.b.trigger(Z.prototype.n.Em,this);this.b.trigger(Z.prototype.n.Hm,this);0<=c&&(b||this.touches[c].Bo(this,c),100>x.length&&x.push(this.touches[c]),this.touches.splice(c,1));this.b.Ia=!1}};d.So=function(a){a.preventDefault&&a.preventDefault();var b=U(),
c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.ng(e.identifier),0<=g){var h=this.b.ba?f:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-h.left,e.pageY-h.top)}};d.To=function(a){a.preventDefault&&db(a)&&a.preventDefault();var c=this.b.ba?f:jQuery(this.b.canvas).offset();U();this.b.Ia=!0;var d,e,g,h;d=0;for(e=a.changedTouches.length;d<e;d++)if(g=a.changedTouches[d],h=this.ng(g.identifier),-1===h){h=g.pageX-c.left;var l=g.pageY-c.top;
this.sd=this.touches.length;this.Yf=g.identifier;this.touches.push(b(h,l,g.identifier,this.sd));this.b.trigger(Z.prototype.n.Fm,this);this.b.trigger(Z.prototype.n.Jm,this);this.Bd=h;this.Cd=l;this.b.trigger(Z.prototype.n.Im,this)}this.b.Ia=!1};d.zl=function(a,b){a.preventDefault&&db(a)&&a.preventDefault();this.b.Ia=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.ng(e.identifier),0<=e&&(this.sd=this.touches[e].rh,this.Yf=this.touches[e].id,this.b.trigger(Z.prototype.n.Em,
this),this.b.trigger(Z.prototype.n.Hm,this),b||this.touches[e].Bo(this,e),100>x.length&&x.push(this.touches[e]),this.touches.splice(e,1));this.b.Ia=!1};d.bw=function(){return this.b.zf&&0===this.ah&&0!==u?90*u:this.b.Fc&&0===this.ah&&0!==C?90*C:this.ah};d.cw=function(){return this.b.zf&&0===this.bh&&0!==k?-90*k:this.b.Fc&&0===this.bh&&0!==w?-90*w:this.bh};d.fw=function(){return this.b.zf&&0===this.dh&&0!==c?90*c:this.b.Fc&&0===this.dh&&0!==z?90*z:this.dh};d.ul=function(a){a.preventDefault&&this.b.xf&&
!this.b.Ec&&a.preventDefault();this.To({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.il=!0};d.wl=function(a){this.il&&this.So({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.xl=function(a){a.preventDefault&&this.b.xf&&!this.b.Ec&&a.preventDefault();this.b.xf=!0;this.zl({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.il=!1};d.tj=function(){var a,b,c,d=U();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Uk=d),c.Vt(this,
a)};r.prototype.Jm=function(){return!0};r.prototype.Hm=function(){return!0};r.prototype.Im=function(a){return a?this.b.vh(a,this.Bd,this.Cd):!1};var h=[];r.prototype.Aq=function(a){if(!a)return!1;var b=a.S(),c=b.Yb(),d,e,f,g,l,k;f=0;for(g=c.length;f<g;f++){var n=c[f];n.Da();l=0;for(k=this.touches.length;l<k;l++)if(e=this.touches[l],d=n.j.ab(e.x,e.y,!0),e=n.j.ab(e.x,e.y,!1),n.Nb(d,e)){h.push(n);break}}return h.length?(b.Y=!1,wa(b.d,h),a.wc(),h.length=0,!0):!1};r.prototype.Fm=function(a){a=Math.floor(a);
return a===this.sd};r.prototype.Em=function(a){a=Math.floor(a);return a===this.sd};r.prototype.Nq=function(){return!0};r.prototype.Vq=function(){return!0};r.prototype.Lq=function(){return!0};r.prototype.Oq=function(a){return a?this.b.vh(a,this.Bd,this.Cd):!1};r.prototype.Gm=function(a){return a?this.b.vh(a,this.Bd,this.Cd):!1};r.prototype.Mq=function(a){return a?this.b.vh(a,this.Bd,this.Cd):!1};g.n=new r;a.prototype.Lm=function(a,b){var c=this.wf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,
f,g,h;ha(b)?(d=this.b.Jd(0),e=d.scale,f=d.Gb,g=d.Tb,h=d.i,d.scale=1,d.Gb=1,d.Tb=1,d.i=0,a.A(d.ab(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Gb=f,d.Tb=g,d.i=h):(d=M(b)?this.b.Jd(b):this.b.rg(b))?a.A(d.ab(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};a.prototype.Kj=function(a,b){var c=this.wf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,h;ha(b)?(d=this.b.Jd(0),e=d.scale,f=d.Gb,g=d.Ub,h=d.i,d.scale=1,d.Gb=1,d.Ub=1,d.i=0,a.A(d.ab(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.Gb=f,d.Ub=g,d.i=h):(d=M(b)?this.b.Jd(b):this.b.rg(b))?a.A(d.ab(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};g.Ca=new a})();function ic(e){this.b=e}
(function(){function e(){}function l(){}function b(){}var n=ic.prototype;n.Ba=function(a){this.za=a;this.b=a.b};n.Ba.prototype.W=function(){};n.ma=function(a){this.type=a;this.b=a.b};var r=n.ma.prototype;r.W=function(){this.b.ba?H("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.ua=document.createElement("progress"),this.value=this.C[0],this.max=this.C[1],0<this.max&&0<=this.value&&(this.ua.max=this.max,this.ua.value=this.value),this.ua.id=
this.C[4],this.ua.title=this.C[2],jQuery(this.ua).appendTo(this.b.Ph?this.b.Ph:"body"),this.Ge=!1,0===this.C[3]&&(jQuery(this.ua).hide(),this.visible=!1,this.Ge=!0),this.ua.onclick=function(a){return function(b){b.stopPropagation();a.b.Ia=!0;a.b.trigger(ic.prototype.n.Iq,a);a.b.Ia=!1}}(this),this.ua.addEventListener("touchstart",function(a){a.stopPropagation()},!1),this.ua.addEventListener("touchmove",function(a){a.stopPropagation()},!1),this.ua.addEventListener("touchend",function(a){a.stopPropagation()},
!1),jQuery(this.ua).mousedown(function(a){a.stopPropagation()}),jQuery(this.ua).mouseup(function(a){a.stopPropagation()}),this.eo=this.fo=this.Wn=this.ao=this.co=this.Yn=0,this.Yp(!0),this.b.Vf(this))};r.Cb=function(){return{v:this.ua.value,m:this.ua.max}};r.Rb=function(a){this.ua.value=a.v;this.ua.max=a.m};r.bf=function(){this.b.ba||(jQuery(this.ua).remove(),this.ua=null)};r.Ra=function(){this.Yp()};r.Yp=function(a){if(!this.b.ba){var b=this.j.ya(this.x,this.y,!0),d=this.j.ya(this.x,this.y,!1),e=
this.j.ya(this.x+this.width,this.y+this.height,!0),c=this.j.ya(this.x+this.width,this.y+this.height,!1),l=this.b.width/this.b.devicePixelRatio,n=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=e||0>=c||b>=l||d>=n?(this.Ge||jQuery(this.ua).hide(),this.Ge=!0):(1>b&&(b=1),1>d&&(d=1),e>=l&&(e=l-1),c>=n&&(c=n-1),l=window.innerWidth,n=window.innerHeight,a||this.Yn!==b||this.co!==d||this.ao!==e||this.Wn!==c||this.fo!==l||this.eo!==n?(this.Yn=b,this.co=d,this.ao=e,this.Wn=c,this.fo=
l,this.eo=n,this.Ge&&(jQuery(this.ua).show(),this.Ge=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,l=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.ua).css("position","absolute"),jQuery(this.ua).offset({left:a,top:l}),jQuery(this.ua).width(Math.round(e-b)),jQuery(this.ua).height(Math.round(c-d))):this.Ge&&(jQuery(this.ua).show(),this.Ge=!1))}};r.Pc=function(){};r.oc=function(){};e.prototype.Iq=function(){return!0};e.prototype.lq=function(a,b){return this.ba?!1:Tb(this.ua.value,
a,b)};n.n=new e;l.prototype.Dh=function(a){this.b.ba||(this.visible=0!==a)};l.prototype.er=function(a){this.b.ba||(this.value=a,this.ua.max=this.max,this.ua.value=this.value)};n.T=new l;b.prototype.Yq=function(a){a.A(this.b.ba?0:this.ua.value)};n.Ca=new b})();function jc(e){this.b=e}
(function(){function e(){}var l=jc.prototype;l.Ba=function(b){this.behavior=b;this.b=b.b};l.Ba.prototype.W=function(){};l.ma=function(b,e){this.type=b;this.behavior=b.behavior;this.k=e;this.b=b.b};var b=l.ma.prototype;b.W=function(){var b=this.C[0];this.Lb=this.C[1];this.ii=this.C[2];this.Fr=0!==this.C[3];this.Ul=0!==this.C[4];this.F=Math.cos(this.k.i)*b;this.B=Math.sin(this.k.i)*b;this.Ve=this.k.x;this.We=this.k.y;this.sc=this.k.i;this.xj=0;this.enabled=0!==this.C[5]};b.Cb=function(){return{acc:this.Lb,
g:this.ii,dx:this.F,dy:this.B,lx:this.Ve,ly:this.We,lka:this.sc,t:this.xj,e:this.enabled}};b.Rb=function(b){this.Lb=b.acc;this.ii=b.g;this.F=b.dx;this.B=b.dy;this.Ve=b.lx;this.We=b.ly;this.sc=b.lka;this.xj=b.t;this.enabled=b.e};b.Ra=function(){if(this.enabled){var b=this.b.li(this.k),e,a;this.k.i!==this.sc&&(this.Ul&&(e=La(0,0,this.F,this.B),this.F=Math.cos(this.k.i)*e,this.B=Math.sin(this.k.i)*e),this.sc=this.k.i);0!==this.Lb&&(e=La(0,0,this.F,this.B),a=0===this.F&&0===this.B?this.k.i:Ga(0,0,this.F,
this.B),e+=this.Lb*b,0>e&&(e=0),this.F=Math.cos(a)*e,this.B=Math.sin(a)*e);0!==this.ii&&(this.B+=this.ii*b);this.Ve=this.k.x;this.We=this.k.y;if(0!==this.F||0!==this.B)if(this.k.x+=this.F*b,this.k.y+=this.B*b,this.xj+=La(0,0,this.F*b,this.B*b),this.Ul&&(this.k.i=Ga(0,0,this.F,this.B),this.k.H(),this.sc=this.k.i),this.k.H(),this.Fr&&(e=this.b.Zc(this.k)))this.b.kh(this.k,e),e=La(0,0,this.F,this.B),a=this.b.Ir(this.k,this.Ve,this.We),this.F=Math.cos(a)*e,this.B=Math.sin(a)*e,this.k.x+=this.F*b,this.k.y+=
this.B*b,this.k.H(),this.Ul&&(this.sc=this.k.i=a,this.k.H()),this.b.ru(this.k,this.F/e,this.B/e,Math.max(2.5*e*b,30))||this.b.lp(this.k,100)}};l.n=new function(){};e.prototype.Km=function(b){this.enabled=1===b};l.T=new e;l.Ca=new function(){}})();function oc(e){this.b=e}
(function(){function e(){}function l(){}var b=oc.prototype;b.Ba=function(b){this.behavior=b;this.b=b.b};b.Ba.prototype.W=function(){};b.ma=function(b,a){this.type=b;this.behavior=b.behavior;this.k=a;this.b=b.b;this.$l=this.Zl=this.Yl=this.am=this.Ck=this.hj=this.Hi=this.bi=this.Cj=!1;this.Tk=this.Sk=this.Rk=this.Vk=-1;this.B=this.F=0};var n=b.ma.prototype;n.W=function(){this.Xg=this.C[0];this.Lb=this.C[1];this.cd=this.C[2];this.dk=this.C[3];this.Oj=this.C[4];this.Tr=1===this.C[5];this.enabled=0!==
this.C[6];this.Tr&&!this.b.ba&&(jQuery(document).keydown(function(b){return function(a){b.rl(a)}}(this)),jQuery(document).keyup(function(b){return function(a){b.sl(a)}}(this)))};n.Cb=function(){return{dx:this.F,dy:this.B,enabled:this.enabled,maxspeed:this.Xg,acc:this.Lb,dec:this.cd,ignoreInput:this.Ck}};n.Rb=function(b){this.F=b.dx;this.B=b.dy;this.enabled=b.enabled;this.Xg=b.maxspeed;this.Lb=b.acc;this.cd=b.dec;this.Ck=b.ignoreInput;this.$l=this.Zl=this.Yl=this.am=this.hj=this.Hi=this.bi=this.Cj=
!1;this.Tk=this.Sk=this.Rk=this.Vk=-1};n.rl=function(b){var a=this.b.Lc;switch(b.which){case 37:b.preventDefault();this.Sk<a&&(this.Hi=!0);break;case 38:b.preventDefault();this.Vk<a&&(this.Cj=!0);break;case 39:b.preventDefault();this.Tk<a&&(this.hj=!0);break;case 40:b.preventDefault(),this.Rk<a&&(this.bi=!0)}};n.sl=function(b){var a=this.b.Lc;switch(b.which){case 37:b.preventDefault();this.Hi=!1;this.Sk=a;break;case 38:b.preventDefault();this.Cj=!1;this.Vk=a;break;case 39:b.preventDefault();this.hj=
!1;this.Tk=a;break;case 40:b.preventDefault(),this.bi=!1,this.Rk=a}};n.Ra=function(){var b=this.b.li(this.k),a=this.Hi||this.Zl,e=this.hj||this.$l,d=this.Cj||this.am,f=this.bi||this.Yl;this.Yl=this.am=this.$l=this.Zl=!1;if(this.enabled){var c=this.b.Zc(this.k);if(c&&(this.b.kh(this.k,c),!this.b.lp(this.k)))return;this.Ck&&(f=d=e=a=!1);0===this.dk?e=a=!1:1===this.dk&&(f=d=!1);2===this.dk&&(d||f)&&(e=a=!1);a==e&&(0>this.F?(this.F+=this.cd*b,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.cd*b,0>this.F&&
(this.F=0)));d==f&&(0>this.B?(this.B+=this.cd*b,0<this.B&&(this.B=0)):0<this.B&&(this.B-=this.cd*b,0>this.B&&(this.B=0)));a&&!e&&(this.F=0<this.F?this.F-(this.Lb+this.cd)*b:this.F-this.Lb*b);e&&!a&&(this.F=0>this.F?this.F+(this.Lb+this.cd)*b:this.F+this.Lb*b);d&&!f&&(this.B=0<this.B?this.B-(this.Lb+this.cd)*b:this.B-this.Lb*b);f&&!d&&(this.B=0>this.B?this.B+(this.Lb+this.cd)*b:this.B+this.Lb*b);if(0!==this.F||0!==this.B){Math.sqrt(this.F*this.F+this.B*this.B)>this.Xg&&(c=Math.atan2(this.B,this.F),
this.F=this.Xg*Math.cos(c),this.B=this.Xg*Math.sin(c));e=this.k.x;d=this.k.y;a=this.k.i;this.k.x+=this.F*b;this.k.H();if(c=this.b.Zc(this.k))this.k.x=e,this.F=0,this.k.H(),this.b.kh(this.k,c);this.k.y+=this.B*b;this.k.H();if(c=this.b.Zc(this.k))this.k.y=d,this.B=0,this.k.H(),this.b.kh(this.k,c);b=bb(this.F);c=bb(this.B);if(0!==b||0!==c)1===this.Oj?this.k.i=Ea(90*Math.round(Ba(Math.atan2(c,b))/90)):2===this.Oj?this.k.i=Ea(45*Math.round(Ba(Math.atan2(c,b))/45)):3===this.Oj&&(this.k.i=Math.atan2(c,b));
this.k.H();this.k.i!=a&&(c=this.b.Zc(this.k))&&(this.k.i=a,this.k.H(),this.b.kh(this.k,c))}}};e.prototype.zq=function(){return 0!==this.F||0!==this.B};b.n=new e;l.prototype.Km=function(b){this.enabled=1===b};b.T=new l;b.Ca=new function(){}})();function pc(e){this.b=e}
(function(){function e(){}var l=pc.prototype;l.Ba=function(b){this.behavior=b;this.b=b.b};l.Ba.prototype.W=function(){};l.ma=function(b,e){this.type=b;this.behavior=b.behavior;this.k=e;this.b=b.b};var b=l.ma.prototype;b.W=function(){this.mb=null;this.Wi=-1;this.mode=this.sc=this.rj=this.Lf=this.Md=this.gh=0;var b=this;this.uc||(this.Ho=function(e){b.ql(e)});this.b.Lj(this.Ho)};b.Cb=function(){return{uid:this.mb?this.mb.uid:-1,pa:this.gh,pd:this.Md,msa:this.Lf,tsa:this.rj,lka:this.sc,m:this.mode}};
b.Rb=function(b){this.Wi=b.uid;this.gh=b.pa;this.Md=b.pd;this.Lf=b.msa;this.rj=b.tsa;this.sc=b.lka;this.mode=b.m};b.ad=function(){this.mb=-1===this.Wi?null:this.b.sg(this.Wi);this.Wi=-1};b.ql=function(b){this.mb==b&&(this.mb=null)};b.bf=function(){this.mb=null;this.b.tu(this.Ho)};b.Ra=function(){};b.tj=function(){if(this.mb){this.sc!==this.k.i&&(this.Lf=T(this.Lf+(this.k.i-this.sc)));var b=this.k.x,e=this.k.y;if(3===this.mode||4===this.mode){var a=La(this.k.x,this.k.y,this.mb.x,this.mb.y);if(a>this.Md||
4===this.mode&&a<this.Md)e=Ga(this.mb.x,this.mb.y,this.k.x,this.k.y),b=this.mb.x+Math.cos(e)*this.Md,e=this.mb.y+Math.sin(e)*this.Md}else b=this.mb.x+Math.cos(this.mb.i+this.gh)*this.Md,e=this.mb.y+Math.sin(this.mb.i+this.gh)*this.Md;this.sc=a=T(this.Lf+(this.mb.i-this.rj));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.k.x===b&&this.k.y===e||(this.k.x=b,this.k.y=e,this.k.H());0!==this.mode&&2!==this.mode||this.k.i===a||(this.k.i=a,this.k.H())}};l.n=new function(){};e.prototype.Xq=
function(b,e){if(b){var a=b.zn(this.k);a&&(this.mb=a,this.gh=Ga(a.x,a.y,this.k.x,this.k.y)-a.i,this.Md=La(a.x,a.y,this.k.x,this.k.y),this.sc=this.Lf=this.k.i,this.rj=a.i,this.mode=e)}};l.T=new e;l.Ca=new function(){}})();function qc(e){this.b=e}
(function(){var e=qc.prototype;e.Ba=function(e){this.behavior=e;this.b=e.b};e.Ba.prototype.W=function(){};e.ma=function(e,b){this.type=e;this.behavior=e.behavior;this.k=b;this.b=e.b};e=e.ma.prototype;e.W=function(){};e.Ra=function(){this.k.Da();var e=this.k.Ja,b=this.k.j.wa;(0>e.right||0>e.bottom||e.left>b.width||e.top>b.height)&&this.b.Td(this.k)}})();function rc(e){this.b=e}
(function(){var e=rc.prototype;e.Ba=function(e){this.behavior=e;this.b=e.b};e.Ba.prototype.W=function(){};e.ma=function(e,b){this.type=e;this.behavior=e.behavior;this.k=b;this.b=e.b};e=e.ma.prototype;e.W=function(){this.mode=this.C[0]};e.Ra=function(){var e=this.k;e.Da();var b=e.Ja,n=e.j,r=n.wa,a=0,g=0,d=0,f=0;0===this.mode?(g=r.width,f=r.height):(a=n.Za,g=n.pb,d=n.$a,f=n.ob);b.right<a?(e.x=g-1+(e.x-b.left),e.H()):b.left>g?(e.x=a+1-(b.right-e.x),e.H()):b.bottom<d?(e.y=f-1+(e.y-b.top),e.H()):b.top>
f&&(e.y=d+1-(b.bottom-e.y),e.H())}})();
function cc(){return[dc,ec,ic,fc,Y,hc,gc,Z,oc,rc,jc,qc,pc,W.prototype.n.yq,fc.prototype.n.Ij,Z.prototype.n.Aq,W.prototype.T.hr,Y.prototype.T.Dh,Y.prototype.T.dr,W.prototype.Ca.eu,W.prototype.Ca.du,gc.prototype.T.Dh,gc.prototype.T.gr,ic.prototype.T.Dh,ic.prototype.T.er,W.prototype.n.Cm,dc.prototype.T.Play,pc.prototype.T.Xq,gc.prototype.T.ir,Y.prototype.T.kr,W.prototype.Ca.$u,W.prototype.n.tq,W.prototype.T.oq,W.prototype.Ca.random,W.prototype.Ca.Zu,Y.prototype.T.br,Z.prototype.n.Gm,W.prototype.n.rq,
W.prototype.n.mq,Y.prototype.T.fr,Y.prototype.T.cr,Y.prototype.T.$q,W.prototype.Ca.bn,W.prototype.n.sq,Y.prototype.T.lr,Y.prototype.Ca.Kj,Y.prototype.T.Zq,Y.prototype.Ca.fq,Y.prototype.n.nq,ec.prototype.n.Bm,Y.prototype.T.mr,W.prototype.T.nr,oc.prototype.T.Km,ic.prototype.Ca.Yq,ic.prototype.n.lq,Y.prototype.n.Jq,Y.prototype.n.vq,Y.prototype.T.pq,W.prototype.T.dq,Y.prototype.n.zm,Y.prototype.n.kq,W.prototype.n.uq,oc.prototype.n.zq]};
