// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,ea,M,ga,ha,Q,R,ia,ja,la,ma,na,oa,S,pa,sa,ta,va,wa,ya,za,Aa,Ba,Ca,U,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Na,Oa,Pa,Qa,Ra,Sa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(h,a,b,t){this.set(h,a,b,t)}function r(){this.Da=this.Ca=this.Fa=this.Ea=this.Ia=this.Ha=this.ea=this.da=0}function p(h,a,b,t){h<a?b<t?(g=h<b?h:b,w=a>t?a:t):(g=h<t?h:t,w=a>b?a:b):b<t?(g=a<b?a:b,w=h>t?h:t):(g=a<t?a:t,w=h>b?h:b)}function q(){this.items=this.od=null;this.wg=0;h&&(this.od=new Set);this.Wg=[];this.Ee=!0}function s(h){t[D++]=h}function e(){this.na=this.Gk=this.y=this.el=0}function c(h){this.ob=[];this.Xi=this.Zi=this.$i=this.Yi=0;this.Ai(h)}function l(h,a){this.hl=
h;this.gl=a;this.cells={}}function n(h,a){this.hl=h;this.gl=a;this.cells={}}function d(h,a,b){var t;return Y.length?(t=Y.pop(),t.Sl=h,t.x=a,t.y=b,t):new ba(h,a,b)}function b(h,a,b){this.Sl=h;this.x=a;this.y=b;this.tb=new da}function f(h,a,b){var t;return z.length?(t=z.pop(),t.Sl=h,t.x=a,t.y=b,t):new ea(h,a,b)}function m(h,a,b){this.Sl=h;this.x=a;this.y=b;this.tb=[];this.vg=!0;this.Fd=new da;this.eh=!1}function a(h,a){return h.sd-a.sd}M=function(h){window.console&&window.console.log&&window.console.log(h)};
ga=function(h){window.console&&window.console.error&&window.console.error(h)};aa=function(h){return h};ha=function(h){return"undefined"===typeof h};Q=function(h){return"number"===typeof h};R=function(h){return"string"===typeof h};ia=function(h){return 0<h&&0===(h-1&h)};ja=function(h){--h;for(var a=1;32>a;a<<=1)h|=h>>a;return h+1};la=function(h){return 0>h?-h:h};ma=function(h,a){return h>a?h:a};na=function(h,a){return h<a?h:a};oa=Math.PI;S=function(h){return 0<=h?h|0:(h|0)-1};pa=function(h){var a=
h|0;return a===h?a:a+1};sa=function(h,a,b,t,f,g,m,d){var D,e,c,n;h<b?(e=h,D=b):(e=b,D=h);f<m?(n=f,c=m):(n=m,c=f);if(D<n||e>c)return!1;a<t?(e=a,D=t):(e=t,D=a);g<d?(n=g,c=d):(n=d,c=g);if(D<n||e>c)return!1;D=f-h+m-b;e=g-a+d-t;h=b-h;a=t-a;f=m-f;g=d-g;d=la(a*f-g*h);return la(f*e-g*D)>d?!1:la(h*e-a*D)<=d};k.prototype.set=function(h,a,b,t){this.left=h;this.top=a;this.right=b;this.bottom=t};k.prototype.ph=function(h){this.left=h.left;this.top=h.top;this.right=h.right;this.bottom=h.bottom};k.prototype.width=
function(){return this.right-this.left};k.prototype.height=function(){return this.bottom-this.top};k.prototype.offset=function(h,a){this.left+=h;this.top+=a;this.right+=h;this.bottom+=a;return this};k.prototype.normalize=function(){var h=0;this.left>this.right&&(h=this.left,this.left=this.right,this.right=h);this.top>this.bottom&&(h=this.top,this.top=this.bottom,this.bottom=h)};k.prototype.av=function(h){return!(h.right<this.left||h.bottom<this.top||h.left>this.right||h.top>this.bottom)};k.prototype.bv=
function(h,a,b){return!(h.right+a<this.left||h.bottom+b<this.top||h.left+a>this.right||h.top+b>this.bottom)};k.prototype.Lb=function(h,a){return h>=this.left&&h<=this.right&&a>=this.top&&a<=this.bottom};k.prototype.pj=function(h){return this.left===h.left&&this.top===h.top&&this.right===h.right&&this.bottom===h.bottom};ta=k;r.prototype.yi=function(h){this.da=h.left;this.ea=h.top;this.Ha=h.right;this.Ia=h.top;this.Ea=h.right;this.Fa=h.bottom;this.Ca=h.left;this.Da=h.bottom};r.prototype.Eq=function(h,
a){if(0===a)this.yi(h);else{var b=Math.sin(a),t=Math.cos(a),f=h.left*b,g=h.top*b,d=h.right*b,b=h.bottom*b,m=h.left*t,D=h.top*t,e=h.right*t,t=h.bottom*t;this.da=m-g;this.ea=D+f;this.Ha=e-g;this.Ia=D+d;this.Ea=e-b;this.Fa=t+d;this.Ca=m-b;this.Da=t+f}};r.prototype.offset=function(h,a){this.da+=h;this.ea+=a;this.Ha+=h;this.Ia+=a;this.Ea+=h;this.Fa+=a;this.Ca+=h;this.Da+=a;return this};var g=0,w=0;r.prototype.ko=function(h){p(this.da,this.Ha,this.Ea,this.Ca);h.left=g;h.right=w;p(this.ea,this.Ia,this.Fa,
this.Da);h.top=g;h.bottom=w};r.prototype.Lb=function(h,a){var b=this.Ha-this.da,t=this.Ia-this.ea,f=this.Ea-this.da,g=this.Fa-this.ea,d=h-this.da,m=a-this.ea,D=b*b+t*t,e=b*f+t*g,t=b*d+t*m,c=f*f+g*g,n=f*d+g*m,u=1/(D*c-e*e),b=(c*t-e*n)*u,D=(D*n-e*t)*u;if(0<=b&&0<D&&1>b+D)return!0;b=this.Ca-this.da;t=this.Da-this.ea;D=b*b+t*t;e=b*f+t*g;t=b*d+t*m;u=1/(D*c-e*e);b=(c*t-e*n)*u;D=(D*n-e*t)*u;return 0<=b&&0<D&&1>b+D};r.prototype.bd=function(h,a){if(a)switch(h){case 0:return this.da;case 1:return this.Ha;case 2:return this.Ea;
case 3:return this.Ca;case 4:return this.da;default:return this.da}else switch(h){case 0:return this.ea;case 1:return this.Ia;case 2:return this.Fa;case 3:return this.Da;case 4:return this.ea;default:return this.ea}};r.prototype.Mp=function(){return(this.da+this.Ha+this.Ea+this.Ca)/4};r.prototype.Np=function(){return(this.ea+this.Ia+this.Fa+this.Da)/4};r.prototype.$o=function(h){var a=h.Mp(),b=h.Np();if(this.Lb(a,b))return!0;a=this.Mp();b=this.Np();if(h.Lb(a,b))return!0;var t,f,g,d,m,D,e,c;for(e=
0;4>e;e++)for(c=0;4>c;c++)if(a=this.bd(e,!0),b=this.bd(e,!1),t=this.bd(e+1,!0),f=this.bd(e+1,!1),g=h.bd(c,!0),d=h.bd(c,!1),m=h.bd(c+1,!0),D=h.bd(c+1,!1),sa(a,b,t,f,g,d,m,D))return!0;return!1};va=r;wa=function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b]);return h};ya=function(h,a){var b,t;a=S(a);if(!(0>a||a>=h.length)){b=a;for(t=h.length-1;b<t;b++)h[b]=h[b+1];h.length=t}};za=function(h,a){h.length=a.length;var b,t;b=0;for(t=a.length;b<t;b++)h[b]=a[b]};Aa=function(h,a){h.push.apply(h,a)};Ba=
function(h,a){var b,t;b=0;for(t=h.length;b<t;++b)if(h[b]===a)return b;return-1};Ca=function(h,a){var b=Ba(h,a);-1!==b&&ya(h,b)};U=function(h){return h/(180/oa)};Da=function(h){return 180/oa*h};Ea=function(h){h%=360;0>h&&(h+=360);return h};Fa=function(h){h%=2*oa;0>h&&(h+=2*oa);return h};Ga=function(h){return Ea(Da(h))};Ha=function(h){return Fa(U(h))};Ia=function(h,a,b,t){return Math.atan2(t-a,b-h)};Ja=function(h,a){if(h===a)return 0;var b=Math.sin(h),t=Math.cos(h),f=Math.sin(a),g=Math.cos(a),b=b*f+
t*g;return 1<=b?0:-1>=b?oa:Math.acos(b)};Ka=function(h,a,b){var t=Math.sin(h),f=Math.cos(h),g=Math.sin(a),d=Math.cos(a);return Math.acos(t*g+f*d)>b?0<f*g-t*d?Fa(h+b):Fa(h-b):Fa(a)};La=function(h,a){var b=Math.sin(h),t=Math.cos(h),f=Math.sin(a),g=Math.cos(a);return 0>=t*f-b*g};Na=function(h,a,b,t,f,g){if(0===b)return g?h:a;var d=Math.sin(b);b=Math.cos(b);h-=t;a-=f;var m=h*d;h=h*b-a*d;a=a*b+m;return g?h+t:a+f};Oa=function(h,a,b,t){h=b-h;a=t-a;return Math.sqrt(h*h+a*a)};Pa=function(h,a){return!h!==!a};
Qa=function(h){for(var a in h)if(h.hasOwnProperty(a))return!0;return!1};Ra=function(h){for(var a in h)h.hasOwnProperty(a)&&delete h[a]};var v=+new Date;Sa=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()-v};var u=!1,N=u=!1,E=!1;"undefined"!==typeof window&&
(u=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),u=!u&&/safari/i.test(navigator.userAgent),N=/(iphone|ipod|ipad)/i.test(navigator.userAgent),E=window.c2ejecta);var h=!u&&!E&&!N&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.ie()?!1:h?this.od.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(h)this.od.has(a)||(this.od.add(a),this.Ee=!1);else{var b=a.toString(),t=this.items;
t?t.hasOwnProperty(b)||(t[b]=a,this.wg++,this.Ee=!1):(this.items={},this.items[b]=a,this.wg=1,this.Ee=!1)}};q.prototype.remove=function(a){if(!this.ie())if(h)this.od.has(a)&&(this.od["delete"](a),this.Ee=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.wg--,this.Ee=!1)}};q.prototype.clear=function(){this.ie()||(h?this.od.clear():(this.items=null,this.wg=0),this.Wg.length=0,this.Ee=!0)};q.prototype.ie=function(){return 0===this.count()};q.prototype.count=
function(){return h?this.od.size:this.wg};var t=null,D=0;q.prototype.Nw=function(){if(!this.Ee){if(h)this.Wg.length=this.od.size,t=this.Wg,D=0,this.od.forEach(s),t=null,D=0;else{var a=this.Wg;a.length=this.wg;var b,f=0,g=this.items;if(g)for(b in g)g.hasOwnProperty(b)&&(a[f++]=g[b])}this.Ee=!0}};q.prototype.ef=function(){this.Nw();return this.Wg};da=q;new da;Xa=function(a,b){h?Ya(a,b.od):Za(a,b.ef())};Ya=function(h,a){var b,t,f,g;t=b=0;for(f=h.length;b<f;++b)g=h[b],a.has(g)||(h[t++]=g);h.length=t};
Za=function(h,a){var b,t,f,g;t=b=0;for(f=h.length;b<f;++b)g=h[b],-1===Ba(a,g)&&(h[t++]=g);h.length=t};e.prototype.add=function(h){this.y=h-this.el;this.Gk=this.na+this.y;this.el=this.Gk-this.na-this.y;this.na=this.Gk};e.prototype.reset=function(){this.na=this.Gk=this.y=this.el=0};$a=e;ab=function(h){return h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.Ai=function(h){this.rq=h;this.ld=h.length/2;this.ob.length=h.length;this.bj=this.cj=-1;this.no=0};c.prototype.sg=function(){return!this.rq.length};
c.prototype.xa=function(){for(var h=this.ob,a=h[0],b=a,t=h[1],f=t,g,d,m=1,D=this.ld;m<D;++m)d=2*m,g=h[d],d=h[d+1],g<a&&(a=g),g>b&&(b=g),d<t&&(t=d),d>f&&(f=d);this.Yi=a;this.Zi=b;this.$i=t;this.Xi=f};c.prototype.yi=function(h,a,b){this.ob.length=8;this.ld=4;var t=this.ob;t[0]=h.left-a;t[1]=h.top-b;t[2]=h.right-a;t[3]=h.top-b;t[4]=h.right-a;t[5]=h.bottom-b;t[6]=h.left-a;t[7]=h.bottom-b;this.cj=h.right-h.left;this.bj=h.bottom-h.top;this.xa()};c.prototype.Pg=function(h,a,b,t,f){this.ob.length=8;this.ld=
4;var g=this.ob;g[0]=h.da-a;g[1]=h.ea-b;g[2]=h.Ha-a;g[3]=h.Ia-b;g[4]=h.Ea-a;g[5]=h.Fa-b;g[6]=h.Ca-a;g[7]=h.Da-b;this.cj=t;this.bj=f;this.xa()};c.prototype.Dq=function(h){this.ld=h.ld;za(this.ob,h.ob);this.Yi=h.Yi;this.$i-h.$i;this.Zi=h.Zi;this.Xi=h.Xi};c.prototype.cg=function(h,a,b){if(this.cj!==h||this.bj!==a||this.no!==b){this.cj=h;this.bj=a;this.no=b;var t,f,g,d,m,D=0,e=1,c=this.rq,n=this.ob;0!==b&&(D=Math.sin(b),e=Math.cos(b));b=0;for(g=this.ld;b<g;b++)t=2*b,f=t+1,d=c[t]*h,m=c[f]*a,n[t]=d*e-m*
D,n[f]=m*e+d*D;this.xa()}};c.prototype.Lb=function(h,a){var b=this.ob;if(h===b[0]&&a===b[1])return!0;var t,f,g,d=this.ld,m=this.Yi-110,D=this.$i-101,e=this.Zi+131,c=this.Xi+120,n,u,w=0,l=0;for(t=0;t<d;t++)f=2*t,g=(t+1)%d*2,n=b[f],f=b[f+1],u=b[g],g=b[g+1],sa(m,D,h,a,n,f,u,g)&&w++,sa(e,c,h,a,n,f,u,g)&&l++;return 1===w%2||1===l%2};c.prototype.Jh=function(h,a,b){var t=h.ob,f=this.ob;if(this.Lb(t[0]+a,t[1]+b)||h.Lb(f[0]-a,f[1]-b))return!0;var g,d,m,D,e,c,n,u,w,l,Y,E;g=0;for(D=this.ld;g<D;g++)for(d=2*g,
m=(g+1)%D*2,u=f[d],d=f[d+1],w=f[m],l=f[m+1],m=0,n=h.ld;m<n;m++)if(e=2*m,c=(m+1)%n*2,Y=t[e]+a,e=t[e+1]+b,E=t[c]+a,c=t[c+1]+b,sa(u,d,w,l,Y,e,E,c))return!0;return!1};bb=c;l.prototype.Je=function(h,a,b){var t;t=this.cells[h];return t?(t=t[a])?t:b?(t=d(this,h,a),this.cells[h][a]=t):null:b?(t=d(this,h,a),this.cells[h]={},this.cells[h][a]=t):null};l.prototype.sc=function(h){return S(h/this.hl)};l.prototype.tc=function(h){return S(h/this.gl)};l.prototype.update=function(h,a,b){var t,f,g,d,m;if(a)for(t=a.left,
f=a.right;t<=f;++t)for(g=a.top,d=a.bottom;g<=d;++g)if(!b||!b.Lb(t,g))if(m=this.Je(t,g,!1))m.remove(h),m.ie()&&(m.tb.clear(),1E3>Y.length&&Y.push(m),this.cells[t][g]=null);if(b)for(t=b.left,f=b.right;t<=f;++t)for(g=b.top,d=b.bottom;g<=d;++g)a&&a.Lb(t,g)||this.Je(t,g,!0).cm(h)};l.prototype.sk=function(h,a){var b,t,f,g,d,m;b=this.sc(h.left);f=this.tc(h.top);t=this.sc(h.right);for(d=this.tc(h.bottom);b<=t;++b)for(g=f;g<=d;++g)(m=this.Je(b,g,!1))&&m.dump(a)};cb=l;n.prototype.Je=function(h,a,b){var t;t=
this.cells[h];return t?(t=t[a])?t:b?(t=f(this,h,a),this.cells[h][a]=t):null:b?(t=f(this,h,a),this.cells[h]={},this.cells[h][a]=t):null};n.prototype.sc=function(h){return S(h/this.hl)};n.prototype.tc=function(h){return S(h/this.gl)};n.prototype.update=function(h,a,b){var t,f,g,d,m;if(a)for(t=a.left,f=a.right;t<=f;++t)for(g=a.top,d=a.bottom;g<=d;++g)if(!b||!b.Lb(t,g))if(m=this.Je(t,g,!1))m.remove(h),m.ie()&&(m.reset(),1E3>z.length&&z.push(m),this.cells[t][g]=null);if(b)for(t=b.left,f=b.right;t<=f;++t)for(g=
b.top,d=b.bottom;g<=d;++g)a&&a.Lb(t,g)||this.Je(t,g,!0).cm(h)};n.prototype.sk=function(h,a,b,t,f){var g,d;h=this.sc(h);a=this.tc(a);b=this.sc(b);for(g=this.tc(t);h<=b;++h)for(t=a;t<=g;++t)(d=this.Je(h,t,!1))&&d.dump(f)};n.prototype.tv=function(h){var a,b,t,f,g;a=h.left;t=h.top;b=h.right;for(f=h.bottom;a<=b;++a)for(h=t;h<=f;++h)if(g=this.Je(a,h,!1))g.vg=!1};db=n;var Y=[];b.prototype.ie=function(){return this.tb.ie()};b.prototype.cm=function(h){this.tb.add(h)};b.prototype.remove=function(h){this.tb.remove(h)};
b.prototype.dump=function(h){Aa(h,this.tb.ef())};ba=b;var z=[];m.prototype.ie=function(){if(!this.tb.length)return!0;if(this.tb.length>this.Fd.count())return!1;this.Bl();return!0};m.prototype.cm=function(h){this.Fd.contains(h)?(this.Fd.remove(h),this.Fd.ie()&&(this.eh=!1)):this.tb.length?(this.tb[this.tb.length-1].yd()>h.yd()&&(this.vg=!1),this.tb.push(h)):(this.tb.push(h),this.vg=!0)};m.prototype.remove=function(h){this.Fd.add(h);this.eh=!0;30<=this.Fd.count()&&this.Bl()};m.prototype.Bl=function(){this.eh&&
(this.Fd.count()===this.tb.length?this.reset():(Xa(this.tb,this.Fd),this.Fd.clear(),this.eh=!1))};m.prototype.Mt=function(){this.vg||(this.tb.sort(a),this.vg=!0)};m.prototype.reset=function(){this.tb.length=0;this.vg=!0;this.Fd.clear();this.eh=!1};m.prototype.dump=function(h){this.Bl();this.Mt();this.tb.length&&h.push(this.tb)};ea=m;var J="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");eb=function(h){return 0>=h||11<=
h?"source-over":J[h-1]};fb=function(h,a,b){if(b)switch(h.Kb=b.ONE,h.Jb=b.ONE_MINUS_SRC_ALPHA,a){case 1:h.Kb=b.ONE;h.Jb=b.ONE;break;case 3:h.Kb=b.ONE;h.Jb=b.ZERO;break;case 4:h.Kb=b.ONE_MINUS_DST_ALPHA;h.Jb=b.ONE;break;case 5:h.Kb=b.DST_ALPHA;h.Jb=b.ZERO;break;case 6:h.Kb=b.ZERO;h.Jb=b.SRC_ALPHA;break;case 7:h.Kb=b.ONE_MINUS_DST_ALPHA;h.Jb=b.ZERO;break;case 8:h.Kb=b.ZERO;h.Jb=b.ONE_MINUS_SRC_ALPHA;break;case 9:h.Kb=b.DST_ALPHA;h.Jb=b.ONE_MINUS_SRC_ALPHA;break;case 10:h.Kb=b.ONE_MINUS_DST_ALPHA,h.Jb=
b.SRC_ALPHA}};gb=function(h){return Math.round(1E6*h)/1E6};hb=function(h,a){return"string"!==typeof h||"string"!==typeof a||h.length!==a.length?!1:h===a?!0:h.toLowerCase()===a.toLowerCase()};ib=function(h){h=h.target;return!h||h===document||h===window||document&&document.body&&h===document.body||hb(h.tagName,"canvas")?!0:!1}})();var ac="undefined"!==typeof Float32Array?Float32Array:Array;function bc(k){var r=new ac(3);k&&(r[0]=k[0],r[1]=k[1],r[2]=k[2]);return r}
function cc(k){var r=new ac(16);k&&(r[0]=k[0],r[1]=k[1],r[2]=k[2],r[3]=k[3],r[4]=k[4],r[5]=k[5],r[6]=k[6],r[7]=k[7],r[8]=k[8],r[9]=k[9],r[10]=k[10],r[11]=k[11],r[12]=k[12],r[13]=k[13],r[14]=k[14],r[15]=k[15]);return r}function dc(k,r){r[0]=k[0];r[1]=k[1];r[2]=k[2];r[3]=k[3];r[4]=k[4];r[5]=k[5];r[6]=k[6];r[7]=k[7];r[8]=k[8];r[9]=k[9];r[10]=k[10];r[11]=k[11];r[12]=k[12];r[13]=k[13];r[14]=k[14];r[15]=k[15]}
function ec(k,r){var p=r[0],q=r[1];r=r[2];k[0]*=p;k[1]*=p;k[2]*=p;k[3]*=p;k[4]*=q;k[5]*=q;k[6]*=q;k[7]*=q;k[8]*=r;k[9]*=r;k[10]*=r;k[11]*=r}
function fc(k,r,p,q){q||(q=cc());var s,e,c,l,n,d,b,f,m=k[0],a=k[1];k=k[2];e=p[0];c=p[1];s=p[2];p=r[1];d=r[2];m===r[0]&&a===p&&k===d?(k=q,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(p=m-r[0],d=a-r[1],b=k-r[2],f=1/Math.sqrt(p*p+d*d+b*b),p*=f,d*=f,b*=f,r=c*b-s*d,s=s*p-e*b,e=e*d-c*p,(f=Math.sqrt(r*r+s*s+e*e))?(f=1/f,r*=f,s*=f,e*=f):e=s=r=0,c=d*e-b*s,l=b*r-p*e,n=p*s-d*r,(f=Math.sqrt(c*c+l*l+n*n))?(f=1/f,c*=f,l*=f,n*=f):n=l=c=0,
q[0]=r,q[1]=c,q[2]=p,q[3]=0,q[4]=s,q[5]=l,q[6]=d,q[7]=0,q[8]=e,q[9]=n,q[10]=b,q[11]=0,q[12]=-(r*m+s*a+e*k),q[13]=-(c*m+l*a+n*k),q[14]=-(p*m+d*a+b*k),q[15]=1)}
(function(){function k(e){this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.oo=bc([0,0,100]);this.wp=bc([0,0,0]);this.cr=bc([0,1,0]);this.En=bc([1,1,1]);this.xo=!0;this.ym=cc();this.Pc=cc();this.op=cc();this.nl=cc();this.p=e;this.Wo()}function r(e,c,l){this.p=e;this.Bi=c;this.name=l;this.Oc=e.getAttribLocation(c,"aPos");this.Qe=e.getAttribLocation(c,"aTex");this.up=e.getUniformLocation(c,"matP");this.Zj=e.getUniformLocation(c,"matMV");this.Cg=
e.getUniformLocation(c,"opacity");this.vp=e.getUniformLocation(c,"samplerFront");this.$h=e.getUniformLocation(c,"samplerBack");this.Hf=e.getUniformLocation(c,"destStart");this.Gf=e.getUniformLocation(c,"destEnd");this.vm=e.getUniformLocation(c,"seconds");this.um=e.getUniformLocation(c,"pixelWidth");this.tm=e.getUniformLocation(c,"pixelHeight");this.Zh=e.getUniformLocation(c,"layerScale");this.Yh=e.getUniformLocation(c,"layerAngle");this.bi=e.getUniformLocation(c,"viewOrigin");this.ai=e.getUniformLocation(c,
"scrollPos");this.Wu=!!(this.um||this.tm||this.vm||this.$h||this.Hf||this.Gf||this.Zh||this.Yh||this.bi||this.ai);this.Ep=this.Fp=-999;this.bk=1;this.Ap=this.zp=0;this.Cp=this.yp=this.xp=1;this.Hp=this.Gp=this.Jp=this.Ip=this.Bp=0;this.mm=[];this.Dp=cc();this.Cg&&e.uniform1f(this.Cg,1);this.vp&&e.uniform1i(this.vp,0);this.$h&&e.uniform1i(this.$h,1);this.Hf&&e.uniform2f(this.Hf,0,0);this.Gf&&e.uniform2f(this.Gf,1,1);this.Zh&&e.uniform1f(this.Zh,1);this.Yh&&e.uniform1f(this.Yh,0);this.bi&&e.uniform2f(this.bi,
0,0);this.ai&&e.uniform2f(this.ai,0,0);this.vf=!1}function p(e,c){this.type=e;this.r=c;this.p=c.p;this.Ad=this.Vc=this.bq=0;this.ra=this.qd=null;this.Fq=[]}k.prototype.Wo=function(){var e=this.p,c;this.pp=1;this.Df=this.Pe=null;this.jj=1;e.clearColor(0,0,0,0);e.clear(e.COLOR_BUFFER_BIT);e.enable(e.BLEND);e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA);e.disable(e.CULL_FACE);e.disable(e.DEPTH_TEST);this.qp=e.ONE;this.np=e.ONE_MINUS_SRC_ALPHA;this.Om=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,this.Om);this.Oi=
Array(4);this.Hi=Array(4);for(c=0;4>c;c++)this.Oi[c]=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.Oi[c]),this.Hi[c]=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.Hi[c]);this.Yd=0;this.Zu=e.createBuffer();e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.Zu);this.Bn=new Float32Array(16E3);this.qn=new Float32Array(16E3);this.Yv=new Float32Array(32E3);for(var l=new Uint16Array(12E3),n=c=0;12E3>c;)l[c++]=n,l[c++]=n+1,l[c++]=n+2,l[c++]=n,l[c++]=n+2,l[c++]=n+3,n+=4;e.bufferData(e.ELEMENT_ARRAY_BUFFER,l,
e.STATIC_DRAW);this.Pm=this.Pd=0;this.pb=[];c=this.ml({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.pb.push(c);c=this.ml({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.pb.push(c);for(var d in gc)gc.hasOwnProperty(d)&&this.pb.push(this.ml(gc[d],
"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}",d));e.activeTexture(e.TEXTURE0);e.bindTexture(e.TEXTURE_2D,null);this.De=[];this.Td=0;this.hc=!1;this.uo=this.Th=-1;this.rh=null;this.lu=e.createFramebuffer();this.wq=null;this.df=bc([0,0,0]);this.Kp=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Kp&&
(this.Kp=2048);this.Kd(0)};r.prototype.xn=function(e){var c=this.Dp;if(c[0]!==e[0]||c[1]!==e[1]||c[2]!==e[2]||c[3]!==e[3]||c[4]!==e[4]||c[5]!==e[5]||c[6]!==e[6]||c[7]!==e[7]||c[8]!==e[8]||c[9]!==e[9]||c[10]!==e[10]||c[11]!==e[11]||c[12]!==e[12]||c[13]!==e[13]||c[14]!==e[14]||c[15]!==e[15])dc(e,this.Dp),this.p.uniformMatrix4fv(this.Zj,!1,e)};k.prototype.ml=function(e,c,l){var n=this.p,d=n.createShader(n.FRAGMENT_SHADER);n.shaderSource(d,e.src);n.compileShader(d);if(!n.getShaderParameter(d,n.COMPILE_STATUS))return n.deleteShader(d),
null;var b=n.createShader(n.VERTEX_SHADER);n.shaderSource(b,c);n.compileShader(b);if(!n.getShaderParameter(b,n.COMPILE_STATUS))return n.deleteShader(d),n.deleteShader(b),null;c=n.createProgram();n.attachShader(c,d);n.attachShader(c,b);n.linkProgram(c);if(!n.getProgramParameter(c,n.LINK_STATUS))return n.deleteShader(d),n.deleteShader(b),n.deleteProgram(c),null;n.useProgram(c);n.deleteShader(d);n.deleteShader(b);l=new r(n,c,l);l.xl=e.xl||0;l.yl=e.yl||0;l.to=!!e.to;l.fo=!!e.fo;l.P=e.P||[];e=0;for(d=
l.P.length;e<d;e++)l.P[e][1]=n.getUniformLocation(c,l.P[e][0]),l.mm.push(0),n.uniform1f(l.P[e][1],0);return l};k.prototype.Pl=function(e){var c,l;c=0;for(l=this.pb.length;c<l;c++)if(this.pb[c].name===e)return c;return-1};k.prototype.qq=function(e,c,l){var n=this.Pc,d=this.ym,b=[0,0,0,0,0,0,0,0];b[0]=n[0]*e+n[4]*c+n[12];b[1]=n[1]*e+n[5]*c+n[13];b[2]=n[2]*e+n[6]*c+n[14];b[3]=n[3]*e+n[7]*c+n[15];b[4]=d[0]*b[0]+d[4]*b[1]+d[8]*b[2]+d[12]*b[3];b[5]=d[1]*b[0]+d[5]*b[1]+d[9]*b[2]+d[13]*b[3];b[6]=d[2]*b[0]+
d[6]*b[1]+d[10]*b[2]+d[14]*b[3];b[7]=-b[2];0!==b[7]&&(b[7]=1/b[7],b[4]*=b[7],b[5]*=b[7],b[6]*=b[7],l[0]=(.5*b[4]+.5)*this.width,l[1]=(.5*b[5]+.5)*this.height)};k.prototype.Xe=function(e,c,l){if(this.width!==e||this.height!==c||l){this.He();this.width=e;this.height=c;this.p.viewport(0,0,e,c);c=e/c;var n=this.ym,d;d=1*Math.tan(45*Math.PI/360);c*=d;e=-c;l=-d;n||(n=cc());var b=c-e,f=d-l;n[0]=2/b;n[1]=0;n[2]=0;n[3]=0;n[4]=0;n[5]=2/f;n[6]=0;n[7]=0;n[8]=(c+e)/b;n[9]=(d+l)/f;n[10]=-1001/999;n[11]=-1;n[12]=
0;n[13]=0;n[14]=-2E3/999;n[15]=0;fc(this.oo,this.wp,this.cr,this.Pc);e=[0,0];c=[0,0];this.qq(0,0,e);this.qq(1,1,c);this.En[0]=1/(c[0]-e[0]);this.En[1]=-1/(c[1]-e[1]);e=0;for(c=this.pb.length;e<c;e++)l=this.pb[e],l.vf=!1,l.up&&(this.p.useProgram(l.Bi),this.p.uniformMatrix4fv(l.up,!1,this.ym));this.p.useProgram(this.pb[this.Th].Bi);this.p.bindTexture(this.p.TEXTURE_2D,null);this.p.activeTexture(this.p.TEXTURE1);this.p.bindTexture(this.p.TEXTURE_2D,null);this.p.activeTexture(this.p.TEXTURE0);this.Df=
this.Pe=null}};k.prototype.Id=function(){fc(this.oo,this.wp,this.cr,this.Pc);ec(this.Pc,this.En)};k.prototype.translate=function(e,c){if(0!==e||0!==c){this.df[0]=e;this.df[1]=c;this.df[2]=0;var l=this.Pc,n=this.df,d=n[0],b=n[1],n=n[2];l[12]=l[0]*d+l[4]*b+l[8]*n+l[12];l[13]=l[1]*d+l[5]*b+l[9]*n+l[13];l[14]=l[2]*d+l[6]*b+l[10]*n+l[14];l[15]=l[3]*d+l[7]*b+l[11]*n+l[15]}};k.prototype.scale=function(e,c){if(1!==e||1!==c)this.df[0]=e,this.df[1]=c,this.df[2]=1,ec(this.Pc,this.df)};k.prototype.Zm=function(e){if(0!==
e){var c=this.Pc,l,n=Math.sin(e);e=Math.cos(e);var d=c[0],b=c[1],f=c[2],m=c[3],a=c[4],g=c[5],w=c[6],v=c[7];l?c!==l&&(l[8]=c[8],l[9]=c[9],l[10]=c[10],l[11]=c[11],l[12]=c[12],l[13]=c[13],l[14]=c[14],l[15]=c[15]):l=c;l[0]=d*e+a*n;l[1]=b*e+g*n;l[2]=f*e+w*n;l[3]=m*e+v*n;l[4]=d*-n+a*e;l[5]=b*-n+g*e;l[6]=f*-n+w*e;l[7]=m*-n+v*e}};k.prototype.Nd=function(){for(var e=!1,c=0;16>c;c++)if(this.op[c]!==this.Pc[c]){e=!0;break}e&&(e=this.md(),e.type=5,e.ra?dc(this.Pc,e.ra):e.ra=cc(this.Pc),dc(this.Pc,this.op),this.hc=
!1)};p.prototype.Ct=function(){this.p.bindTexture(this.p.TEXTURE_2D,this.qd)};p.prototype.Dt=function(){var e=this.p;e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,this.qd);e.activeTexture(e.TEXTURE0)};p.prototype.zt=function(){var e=this.bq,c=this.r;c.jj=e;c=c.rh;c.Cg&&c.bk!==e&&(c.bk=e,this.p.uniform1f(c.Cg,e))};p.prototype.wt=function(){this.p.drawElements(this.p.TRIANGLES,this.Ad,this.p.UNSIGNED_SHORT,2*this.Vc)};p.prototype.yt=function(){this.p.blendFunc(this.Vc,this.Ad)};p.prototype.Et=
function(){var e,c,l,n=this.r.pb,d=this.r.uo;e=0;for(c=n.length;e<c;e++)l=n[e],e===d&&l.Zj?(l.xn(this.ra),l.vf=!0):l.vf=!1;dc(this.ra,this.r.nl)};p.prototype.xt=function(){var e=this.p,c=this.r;this.qd?(c.Df===this.qd&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,null),c.Df=null,e.activeTexture(e.TEXTURE0)),e.bindFramebuffer(e.FRAMEBUFFER,c.lu),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.qd,0)):(e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,
null,0),e.bindFramebuffer(e.FRAMEBUFFER,null))};p.prototype.tt=function(){var e=this.p;0===this.Vc?(e.clearColor(this.ra[0],this.ra[1],this.ra[2],this.ra[3]),e.clear(e.COLOR_BUFFER_BIT)):(e.enable(e.SCISSOR_TEST),e.scissor(this.ra[0],this.ra[1],this.ra[2],this.ra[3]),e.clearColor(0,0,0,0),e.clear(this.p.COLOR_BUFFER_BIT),e.disable(e.SCISSOR_TEST))};p.prototype.ut=function(){var e=this.p,c=this.r,l=c.pb[1];e.useProgram(l.Bi);!l.vf&&l.Zj&&(l.xn(c.nl),l.vf=!0);e.enableVertexAttribArray(l.Oc);e.bindBuffer(e.ARRAY_BUFFER,
c.Om);e.vertexAttribPointer(l.Oc,4,e.FLOAT,!1,0,0);e.drawArrays(e.POINTS,this.Vc/4,this.Ad);l=c.rh;e.useProgram(l.Bi);0<=l.Oc&&(e.enableVertexAttribArray(l.Oc),e.bindBuffer(e.ARRAY_BUFFER,c.Oi[c.Yd]),e.vertexAttribPointer(l.Oc,2,e.FLOAT,!1,0,0));0<=l.Qe&&(e.enableVertexAttribArray(l.Qe),e.bindBuffer(e.ARRAY_BUFFER,c.Hi[c.Yd]),e.vertexAttribPointer(l.Qe,2,e.FLOAT,!1,0,0))};p.prototype.At=function(){var e=this.p,c=this.r,l=c.pb[this.Vc];c.uo=this.Vc;c.rh=l;e.useProgram(l.Bi);!l.vf&&l.Zj&&(l.xn(c.nl),
l.vf=!0);l.Cg&&l.bk!==c.jj&&(l.bk=c.jj,e.uniform1f(l.Cg,c.jj));0<=l.Oc&&(e.enableVertexAttribArray(l.Oc),e.bindBuffer(e.ARRAY_BUFFER,c.Oi[c.Yd]),e.vertexAttribPointer(l.Oc,2,e.FLOAT,!1,0,0));0<=l.Qe&&(e.enableVertexAttribArray(l.Qe),e.bindBuffer(e.ARRAY_BUFFER,c.Hi[c.Yd]),e.vertexAttribPointer(l.Qe,2,e.FLOAT,!1,0,0))};p.prototype.Bt=function(){var e,c,l=this.r.rh,n=this.p;e=this.ra;l.$h&&this.r.Df!==this.qd&&(n.activeTexture(n.TEXTURE1),n.bindTexture(n.TEXTURE_2D,this.qd),this.r.Df=this.qd,n.activeTexture(n.TEXTURE0));
var d=e[0];l.um&&d!==l.Fp&&(l.Fp=d,n.uniform1f(l.um,d));d=e[1];l.tm&&d!==l.Ep&&(l.Ep=d,n.uniform1f(l.tm,d));d=e[2];c=e[3];!l.Hf||d===l.zp&&c===l.Ap||(l.zp=d,l.Ap=c,n.uniform2f(l.Hf,d,c));d=e[4];c=e[5];!l.Gf||d===l.xp&&c===l.yp||(l.xp=d,l.yp=d,n.uniform2f(l.Gf,d,c));d=e[6];l.Zh&&d!==l.Cp&&(l.Cp=d,n.uniform1f(l.Zh,d));d=e[7];l.Yh&&d!==l.Bp&&(l.Bp=d,n.uniform1f(l.Yh,d));d=e[8];c=e[9];!l.bi||d===l.Ip&&c===l.Jp||(l.Ip=d,l.Jp=c,n.uniform2f(l.bi,d,c));d=e[10];c=e[11];!l.ai||d===l.Gp&&c===l.Hp||(l.Gp=d,l.Hp=
c,n.uniform2f(l.ai,d,c));l.vm&&n.uniform1f(l.vm,Sa()/1E3);if(l.P.length)for(e=0,c=l.P.length;e<c;e++)d=this.Fq[e],d!==l.mm[e]&&(l.mm[e]=d,n.uniform1f(l.P[e][1],d))};k.prototype.md=function(){this.Td===this.De.length&&this.De.push(new p(0,this));return this.De[this.Td++]};k.prototype.He=function(){if(0!==this.Td&&!this.p.isContextLost()){var e=this.p;0<this.Pm&&(e.bindBuffer(e.ARRAY_BUFFER,this.Om),e.bufferData(e.ARRAY_BUFFER,this.Yv.subarray(0,this.Pm),e.STREAM_DRAW),c&&0<=c.Oc&&"<point>"===c.name&&
e.vertexAttribPointer(c.Oc,4,e.FLOAT,!1,0,0));if(0<this.Pd){var c=this.rh;e.bindBuffer(e.ARRAY_BUFFER,this.Oi[this.Yd]);e.bufferData(e.ARRAY_BUFFER,this.Bn.subarray(0,this.Pd),e.STREAM_DRAW);c&&0<=c.Oc&&"<point>"!==c.name&&e.vertexAttribPointer(c.Oc,2,e.FLOAT,!1,0,0);e.bindBuffer(e.ARRAY_BUFFER,this.Hi[this.Yd]);e.bufferData(e.ARRAY_BUFFER,this.qn.subarray(0,this.Pd),e.STREAM_DRAW);c&&0<=c.Qe&&"<point>"!==c.name&&e.vertexAttribPointer(c.Qe,2,e.FLOAT,!1,0,0)}for(var l,e=0,c=this.Td;e<c;e++)switch(l=
this.De[e],l.type){case 1:l.wt();break;case 2:l.Ct();break;case 3:l.zt();break;case 4:l.yt();break;case 5:l.Et();break;case 6:l.xt();break;case 7:l.tt();break;case 8:l.ut();break;case 9:l.At();break;case 10:l.Bt();break;case 11:l.Dt()}this.Pm=this.Pd=this.Td=0;this.hc=!1;this.Yd++;4<=this.Yd&&(this.Yd=0)}};k.prototype.We=function(e){if(e!==this.pp){var c=this.md();c.type=3;this.pp=c.bq=e;this.hc=!1}};k.prototype.Yb=function(e){if(e!==this.Pe){var c=this.md();c.type=2;this.Pe=c.qd=e;this.hc=!1}};k.prototype.Ve=
function(e,c){if(e!==this.qp||c!==this.np){var l=this.md();l.type=4;l.Vc=e;l.Ad=c;this.qp=e;this.np=c;this.hc=!1}};k.prototype.Aq=function(){this.Ve(this.p.ONE,this.p.ONE_MINUS_SRC_ALPHA)};k.prototype.rk=function(e,c,l,n,d,b,f,m){15992<=this.Pd&&this.He();var a=this.Pd,g=this.Bn,w=this.qn;if(this.hc)this.De[this.Td-1].Ad+=6;else{var v=this.md();v.type=1;v.Vc=a/4*3;v.Ad=6;this.hc=!0}g[a]=e;w[a++]=0;g[a]=c;w[a++]=0;g[a]=l;w[a++]=1;g[a]=n;w[a++]=0;g[a]=d;w[a++]=1;g[a]=b;w[a++]=1;g[a]=f;w[a++]=0;g[a]=
m;w[a++]=1;this.Pd=a};k.prototype.Hd=function(e,c,l,n,d,b,f,m,a){15992<=this.Pd&&this.He();var g=this.Pd,w=this.Bn,v=this.qn;if(this.hc)this.De[this.Td-1].Ad+=6;else{var u=this.md();u.type=1;u.Vc=g/4*3;u.Ad=6;this.hc=!0}var u=a.left,N=a.top,E=a.right;a=a.bottom;w[g]=e;v[g++]=u;w[g]=c;v[g++]=N;w[g]=l;v[g++]=E;w[g]=n;v[g++]=N;w[g]=d;v[g++]=E;w[g]=b;v[g++]=a;w[g]=f;v[g++]=u;w[g]=m;v[g++]=a;this.Pd=g};k.prototype.Kd=function(e){if(this.Th!==e){if(!this.pb[e]){if(0===this.Th)return;e=0}var c=this.md();
c.type=9;this.Th=c.Vc=e;this.hc=!1}};k.prototype.oi=function(e){e=this.pb[e];return!(!e.Hf&&!e.Gf)};k.prototype.Rm=function(e){e=this.pb[e];return!!(e.Hf||e.Gf||e.to)};k.prototype.ew=function(e){e=this.pb[e];return 0!==e.xl||0!==e.yl};k.prototype.Du=function(e){return this.pb[e].xl};k.prototype.Eu=function(e){return this.pb[e].yl};k.prototype.Fu=function(e,c){return this.pb[e].P[c][2]};k.prototype.pk=function(e){return this.pb[e].fo};k.prototype.Og=function(e,c,l,n,d,b,f,m,a,g,w,v,u,N){var E=this.pb[this.Th],
h,t;if(E.Wu||N.length){h=this.md();h.type=10;h.ra?dc(this.Pc,h.ra):h.ra=cc();t=h.ra;t[0]=c;t[1]=l;t[2]=n;t[3]=d;t[4]=b;t[5]=f;t[6]=m;t[7]=a;t[8]=g;t[9]=w;t[10]=v;t[11]=u;h.qd=E.$h?e:null;if(N.length)for(l=h.Fq,l.length=N.length,e=0,c=N.length;e<c;e++)l[e]=N[e];this.hc=!1}};k.prototype.clear=function(e,c,l,n){var d=this.md();d.type=7;d.Vc=0;d.ra||(d.ra=cc());d.ra[0]=e;d.ra[1]=c;d.ra[2]=l;d.ra[3]=n;this.hc=!1};k.prototype.clearRect=function(e,c,l,n){if(!(0>l||0>n)){var d=this.md();d.type=7;d.Vc=1;d.ra||
(d.ra=cc());d.ra[0]=e;d.ra[1]=c;d.ra[2]=l;d.ra[3]=n;this.hc=!1}};k.prototype.dw=function(){this.He();this.p.flush()};var q=[],s={};k.prototype.it=function(){q.length=0;s={}};k.prototype.zg=function(e,c,l){var n;n=!1;c=!!c;var d=e.src+","+n+","+c+(n?",undefined":""),b=null;if("undefined"!==typeof e.src&&s.hasOwnProperty(d))return b=s[d],b.aj++,b;this.He();var f=this.p,m=ia(e.width)&&ia(e.height),b=f.createTexture();f.bindTexture(f.TEXTURE_2D,b);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var a=
f.RGBA,g=f.RGBA,w=f.UNSIGNED_BYTE;if(l&&!this.Me)switch(l){case 1:g=a=f.RGB;break;case 2:w=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:g=a=f.RGB,w=f.UNSIGNED_SHORT_5_6_5}if(!m&&n){l=document.createElement("canvas");l.width=ja(e.width);l.height=ja(e.height);var v=l.getContext("2d");v.webkitImageSmoothingEnabled=c;v.mozImageSmoothingEnabled=c;v.msImageSmoothingEnabled=c;v.imageSmoothingEnabled=c;v.drawImage(e,0,0,e.width,e.height,0,0,l.width,l.height);f.texImage2D(f.TEXTURE_2D,
0,a,g,w,l)}else f.texImage2D(f.TEXTURE_2D,0,a,g,w,e);n?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));c?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),m&&this.xo?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.Pe=null;b.ih=e.width;b.hh=e.height;b.aj=1;b.mo=d;q.push(b);return s[d]=b};k.prototype.Xd=function(e,c,l,n){this.He();var d=this.p;this.Me&&(n=!1);var b=d.createTexture();d.bindTexture(d.TEXTURE_2D,b);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,e,c,0,d.RGBA,n?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,
d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,l?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,l?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Pe=null;b.ih=e;b.hh=c;q.push(b);return b};k.prototype.Sw=function(e,c,l){this.He();var n=this.p;this.Me&&(l=!1);n.bindTexture(n.TEXTURE_2D,c);n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{n.texImage2D(n.TEXTURE_2D,
0,n.RGBA,n.RGBA,l?n.UNSIGNED_SHORT_4_4_4_4:n.UNSIGNED_BYTE,e)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}n.bindTexture(n.TEXTURE_2D,null);this.Pe=null};k.prototype.deleteTexture=function(e){e&&("undefined"!==typeof e.aj&&1<e.aj?e.aj--:(this.He(),e===this.Pe&&(this.p.bindTexture(this.p.TEXTURE_2D,null),this.Pe=null),e===this.Df&&(this.p.activeTexture(this.p.TEXTURE1),this.p.bindTexture(this.p.TEXTURE_2D,null),this.p.activeTexture(this.p.TEXTURE0),this.Df=null),
Ca(q,e),"undefined"!==typeof e.mo&&delete s[e.mo],this.p.deleteTexture(e)))};k.prototype.Jd=function(e){if(e!==this.wq){var c=this.md();c.type=6;this.wq=c.qd=e;this.hc=!1}};jb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function r(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function p(h){if(h&&(h.getContext||h.dc)&&!h.c2runtime){h.c2runtime=this;var a=this;this.Mc=(this.Lh=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.zb=!!h.dc;this.pg="undefined"!==typeof window.AppMobi||this.zb;this.ic=!!window.c2cocoonjs;this.fd=!!window.c2ejecta;this.ic&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.fd&&(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.Ma=this.zb||this.ic||this.fd;this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.hp=/tizen/i.test(navigator.userAgent);this.Fj=/android/i.test(navigator.userAgent)&&!this.hp&&!this.Me;this.km=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Me;this.lp=/ipad/i.test(navigator.userAgent);this.Lj=this.km||this.lp||this.fd;this.mv=this.km&&/os\s6/i.test(navigator.userAgent);this.Kh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Me;this.em=/amazonwebappplatform/i.test(navigator.userAgent);this.dv=/firefox/i.test(navigator.userAgent);this.fp=/safari/i.test(navigator.userAgent)&&!this.Kh&&!this.Me;this.jv=/windows/i.test(navigator.userAgent);this.Ne="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.jp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.lv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.rg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Hj=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.ip=this.jp||this.lv||this.Hj;this.cv=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Gj=this.Fj&&!this.Kh&&!this.Lh&&!this.dv&&!this.em&&!this.Ma;this.devicePixelRatio=1;this.je=this.Mc||this.Lh||this.pg||this.ic||this.Fj||this.Lj||this.rg||this.Hj||this.cv||this.hp||this.fd;this.je||(this.je=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Ne||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.Ne=!0);this.canvas=h;this.po=document.getElementById("c2canvasdiv");this.ya=this.r=this.p=null;this.El="";this.tj=!1;this.Wp=this.Xp=0;this.canvas.oncontextmenu=function(h){h.preventDefault&&h.preventDefault();return!1};this.canvas.onselectstart=function(h){h.preventDefault&&h.preventDefault();return!1};this.zb&&(window.c2runtime=this);this.Ne&&(window.ondragover=function(h){h.preventDefault();return!1},window.ondrop=function(h){h.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Gj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=h.width;this.height=h.height;this.N=this.width;this.M=this.height;this.hj=this.width;this.gj=this.height;this.Vh=window.innerWidth;this.Uh=window.innerHeight;this.nu=!1;this.ja=!0;this.Nh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.$a=[];this.om={};this.kd=[];this.wl={};this.be=[];this.Tf=[];this.Nk=[];this.Zk=[];this.Ys=[];this.mp=this.Lq=null;
this.nf={};this.fm=this.Ke=!1;this.gd=0;this.hm=!1;this.dd=[];this.ke=this.Pb=this.Vj=this.cn="";this.Fi=this.Iq=!1;this.ll=this.ci=this.Ge=this.pf=0;this.cf=1;this.kc=new $a;this.Qd=new $a;this.fk=this.xj=this.wh=this.te=this.Ff=this.Dl=this.Pj=0;this.kh=null;this.nj=[];this.ul=[];this.qj=-1;this.wm=[[]];this.vn=this.$j=0;this.qk(null);this.Dg=[];this.ak=-1;this.xh=this.Rp=this.gi=0;this.Gi=[];this.sn=this.Um=-1;this.Qh=!0;this.Bg=0;this.Mh=!1;this.zw=0;this.bg=null;this.Bd=this.Tl=!1;this.Vp=new da;
this.Em=new da;this.Fm=new da;this.vq=[];this.pd=new bb([]);this.pn=new bb([]);this.ag=[];this.Eh={};this.dg={};this.$f={};this.Xg={};this.jo={};this.tp=this.Tj=this.lc=this.Bc=this.sp=this.Sj=this.Ga=null;this.Vg=this.jm=!1;this.Fl=[null,null];this.sf=0;this.Al="";this.Re={};this.Ck=this.Ag=null;this.ek=[];this.jw()}}function q(h){h.target.result.createObjectStore("saves",{keyPath:"slot"})}function s(h,a,b,f){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=q;g.onerror=f;g.onsuccess=function(g){g=
g.target.result;g.onerror=f;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:h,data:a}).onsuccess=b}}function e(h,a,b){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=q;g.onerror=b;g.onsuccess=function(g){g=g.target.result;g.onerror=b;var f=g.transaction(["saves"]).objectStore("saves").get(h);f.onsuccess=function(){f.result?a(f.result.data):a(null)}}}function c(){M("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function l(h){var a,b={};for(a in h)!h.hasOwnProperty(a)||h[a]instanceof da||h[a]&&"undefined"!==typeof h[a].$x||(b[a]=h[a]);return b}p.prototype.jw=function(){var h=this,a;a=this.rg?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.jp||this.rg||this.Hj)b="data.json";a.open("GET",b,!0);var g=!1;if(!this.Ma&&"response"in a&&"responseType"in a)try{a.responseType="json",g="json"===a.responseType}catch(f){g=!1}if(!g&&
"responseType"in a)try{a.responseType="text"}catch(d){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.rg?a.onreadystatechange=function(){4===a.readyState&&h.Xj(JSON.parse(a.responseText))}:(a.onload=function(){if(g)h.Xj(a.response);else if(h.fd){var b=a.responseText,b=b.substr(b.indexOf("{"));h.Xj(JSON.parse(b))}else h.Xj(JSON.parse(a.responseText))},a.onerror=function(h){ga("Error requesting "+b+":");ga(h)});a.send()};p.prototype.$u=function(){var h=
this,a,b,g,f,d,m,e,c,n;this.devicePixelRatio=(this.zf=(!this.Ma||this.fd)&&this.Pw&&!this.Gj)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Fb();b=!(!this.nu&&(!this.$k||this.Ne||this.ip||this.rg||this.Lh||this.Mc||this.em));0<this.gc&&this.setSize(k(),r(),!0);try{this.Kt&&(this.ic||this.fd||!this.Ma)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.p=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(u){}if(this.p){this.Ma||(this.Ab=document.createElement("canvas"),jQuery(this.Ab).appendTo(this.canvas.parentNode),this.Ab.oncontextmenu=function(){return!1},this.Ab.onselectstart=function(){return!1},this.Ab.width=this.hj,this.Ab.height=this.gj,jQuery(this.Ab).css({width:this.hj+"px",height:this.gj+"px"}),this.oq(),this.Nm=this.Ab.getContext("2d"));this.r=new jb(this.p,this.je);this.r.Xe(this.canvas.width,this.canvas.height);this.r.xo=0!==this.Ft;this.ya=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();h.Dv();M("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){h.r.Wo();h.r.Xe(h.r.width,h.r.height,!0);h.Bc=null;h.lc=null;h.Fl[0]=null;h.Fl[1]=null;h.Ev();h.ja=!0;M("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.q.length;a<b;a++)for(d=this.q[a],g=0,f=d.I.length;g<f;g++)e=d.I[g],e.Cb=this.r.Pl(e.id),this.Vg=this.Vg||this.r.oi(e.Cb);a=0;for(b=this.kd.length;a<
b;a++){c=this.kd[a];g=0;for(f=c.I.length;g<f;g++)e=c.I[g],e.Cb=this.r.Pl(e.id);g=0;for(f=c.O.length;g<f;g++)for(n=c.O[g],d=0,m=n.I.length;d<m;d++)e=n.I[d],e.Cb=this.r.Pl(e.id),this.Vg=this.Vg||this.r.oi(e.Cb)}}else{if(0<this.gc&&this.zb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ya=AppMobi.canvas.getContext("2d");try{this.ya.samplingMode=this.aa?"smooth":"sharp",this.ya.globalScale=1,this.ya.HTML5CompatibilityMode=!0,this.ya.imageSmoothingEnabled=
this.aa}catch(w){}0!==this.width&&0!==this.height&&(this.ya.width=this.width,this.ya.height=this.height)}this.ya||(a=this.ic?{antialias:!!this.aa,alpha:b}:{alpha:b},this.ya=this.canvas.getContext("2d",a),this.ya.webkitImageSmoothingEnabled=this.aa,this.ya.mozImageSmoothingEnabled=this.aa,this.ya.msImageSmoothingEnabled=this.aa,this.ya.imageSmoothingEnabled=this.aa);this.Nm=this.Ab=null}this.Uq=function(a){h.Eb(!1,a)};window==window.top||this.Ma||this.ip||this.rg||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ic&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(M("Reloading for continuous preview"),this.Vj="__c2_continuouspreview",this.Fi=!0),this.Wv&&!this.je&&(jQuery(window).focus(function(){h.setSuspended(!1)}),jQuery(window).blur(function(){h.setSuspended(!0)})));this.Ma||(a=function(h){if(ib(h)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.gc&&this.zf&&1<this.devicePixelRatio&&this.setSize(this.nb,this.mb,!0);this.Yq();this.Tu();
this.go();this.T={}};p.prototype.setSize=function(h,a,b){var g=0,f=0,d=0,m=0,m=0,e=this.mv&&this.fp&&!navigator.standalone&&!this.Ma&&!this.Mc;e&&(a+=60);if(this.Vh!==h||this.Uh!==a||b){this.Vh=h;this.Uh=a;var c=this.gc,n=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Mh)&&!this.Mc;if(n||0!==this.gc||b)n&&0<this.sf&&(c=this.sf),b=this.devicePixelRatio,4<=c?(d=this.nb/this.mb,h/a>d?(d*=a,5===c?(m=d*b/this.nb,1<m?m=Math.floor(m):1>m&&
(m=1/Math.ceil(1/m)),d=this.nb*m/b,m=this.mb*m/b,g=(h-d)/2,f=(a-m)/2,h=d,a=m):(g=(h-d)/2,h=d)):(m=h/d,5===c?(m=m*b/this.mb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),d=this.nb*m/b,m=this.mb*m/b,g=(h-d)/2,f=(a-m)/2,h=d):f=(a-m)/2,a=m),n&&!this.Ne&&(f=g=0)):this.Ne&&this.Mh&&0===this.Fo&&(g=Math.floor((h-this.nb)/2),f=Math.floor((a-this.mb)/2),h=this.nb,a=this.mb),2>c&&(this.gh=b),this.zf&&this.lp&&1<b&&(1024<=h&&(h=1023),1024<=a&&(a=1023)),this.hj=Math.round(h),this.gj=Math.round(a),this.width=
Math.round(h*b),this.height=Math.round(a*b),this.ja=!0,this.mr?(this.N=this.width,this.M=this.height,this.Kc=!0):this.width<this.nb&&this.height<this.mb||1===c?(this.N=this.width,this.M=this.height,this.Kc=!0):(this.N=this.nb,this.M=this.mb,this.Kc=!1,2===c?(d=this.nb/this.mb,c=this.Vh/this.Uh,c<d?this.N=this.M*c:c>d&&(this.M=this.N/c)):3===c&&(d=this.nb/this.mb,c=this.Vh/this.Uh,c>d?this.N=this.M*c:c<d&&(this.M=this.N/c))),this.po&&!this.Ma&&(jQuery(this.po).css({width:Math.round(h)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(f)+"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.fd?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(h)+"px",this.canvas.style.height=Math.round(a)+"px"):this.zf&&!this.Ma&&jQuery(this.canvas).css({width:Math.round(h)+
"px",height:Math.round(a)+"px"})),this.Ab&&(this.Ab.width=Math.round(h),this.Ab.height=Math.round(a),jQuery(this.Ab).css({width:Math.round(h)+"px",height:Math.round(a)+"px"})),this.r&&this.r.Xe(Math.round(h*b),Math.round(a*b)),this.zb&&this.ya&&(this.ya.width=Math.round(h),this.ya.height=Math.round(a)),this.ya&&(this.ya.webkitImageSmoothingEnabled=this.aa,this.ya.mozImageSmoothingEnabled=this.aa,this.ya.msImageSmoothingEnabled=this.aa,this.ya.imageSmoothingEnabled=this.aa),this.Yq(),this.Ma||!e&&
!this.km||window.setTimeout(function(){window.scrollTo(0,1)},100)}};p.prototype.Yq=function(){if(this.$s&&0!==this.Lm){var h="portrait";2===this.Lm&&(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)}};p.prototype.Dv=function(){this.r.it();this.jm=
!0;var h,a,b;h=0;for(a=this.q.length;h<a;h++)b=this.q[h],b.hi&&b.hi()};p.prototype.Ev=function(){this.jm=!1;var h,a,b;h=0;for(a=this.q.length;h<a;h++)b=this.q[h],b.hk&&b.hk()};p.prototype.oq=function(){if(!this.Ma){var h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Mh)&&!this.Mc?jQuery(this.canvas).offset():jQuery(this.canvas).position();h.position="absolute";jQuery(this.Ab).css(h)}};var n=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;p.prototype.setSuspended=function(h){var a;if(h&&!this.Nh)for(M("[Construct 2] Suspending"),this.Nh=!0,-1!==this.Um&&n&&n(this.Um),-1!==this.sn&&clearTimeout(this.sn),h=0,a=this.Gi.length;h<a;h++)this.Gi[h](!0);else if(!h&&this.Nh){M("[Construct 2] Resuming");this.Nh=!1;this.Pj=Sa();this.Ff=Sa();h=this.ci=this.xj=0;for(a=this.Gi.length;h<a;h++)this.Gi[h](!1);this.Eb(!1)}};p.prototype.bo=function(h){this.Gi.push(h)};
p.prototype.ye=function(h){return this.ek[h]};p.prototype.Xj=function(h){h&&h.project||ga("Project model unavailable");h=h.project;this.name=h[0];this.Eo=h[1];this.gc=h[12];this.Fo=h[12];this.nb=h[10];this.mb=h[11];this.jq=this.nb/2;this.kq=this.mb/2;this.Ma&&!this.fd&&(4<=h[12]||0===h[12])&&(M("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Fo=this.gc=3);this.An=h[18];this.Xh=h[19];0===this.Xh&&(this.Ag=new Image,this.Ag.src=
"loading-logo.png");this.gi=h[21];this.ek=hc();this.Ld=new W(this);var a,b,g,f,d,m,e,c,n;a=0;for(b=h[2].length;a<b;a++)e=h[2][a],g=this.ye(e[0]),kb(e,g.prototype),n=new g(this),n.Bk=e[1],n.Oe=e[2],n.Op=e[9],n.J&&n.J(),this.plugins.push(n);this.ek=hc();a=0;for(b=h[3].length;a<b;a++){e=h[3][a];d=this.ye(e[1]);n=null;g=0;for(f=this.plugins.length;g<f;g++)if(this.plugins[g]instanceof d){n=this.plugins[g];break}var u=new n.za(n);u.name=e[0];u.C=e[2];u.dm=e[3].slice(0);u.Rw=e[3].length;u.bt=e[4];u.pu=e[5];
u.W=e[11];u.C?(u.Gg=[],u.de=this.xh++,u.La=null):(u.Gg=null,u.de=-1,u.La=[]);u.rj=null;u.ig=null;u.Ao=null;u.jc=!1;u.ec=null;e[6]?(u.Ik=e[6][0],u.Sq=e[6][1],u.Ii=e[6][2]):(u.Ik=null,u.Sq=0,u.Ii=0);u.ac=e[7]?e[7]:null;u.index=a;u.d=[];u.lj=[];u.Ze=[new lb(u)];u.ae=0;u.Hc=null;u.pt=0;u.Sg=!0;u.Pk=mb;u.uu=nb;u.Bu=ob;u.Y=pb;u.qi=qb;u.Nf=rb;u.Gd=sb;u.zj=tb;u.Hl=ub;u.Ll=vb;u.Be=wb;u.Mo=yb;u.nh=new cb(this.nb,this.mb);u.Vi=!0;u.Wi=!1;u.T={};u.toString=zb;u.$a=[];g=0;for(f=e[8].length;g<f;g++){c=e[8][g];
var w=this.ye(c[1]),l=null;d=0;for(m=this.$a.length;d<m;d++)if(this.$a[d]instanceof w){l=this.$a[d];break}l||(l=new w(this),l.dk=[],l.Cm=new da,l.J&&l.J(),this.$a.push(l),ic&&l instanceof ic&&(this.Lq=l),$b.ov&&l instanceof $b.ov&&(this.mp=l));-1===l.dk.indexOf(u)&&l.dk.push(u);d=new l.za(l,u);d.name=c[0];d.W=c[2];d.J();u.$a.push(d)}u.global=e[9];u.gm=e[10];u.I=[];g=0;for(f=e[12].length;g<f;g++)u.I.push({id:e[12][g][0],name:e[12][g][1],Cb:-1,uc:!0,index:g});u.Dy=e[13];this.An&&!u.C&&!u.gm&&n.Oe||
u.J();u.name&&(this.types[u.name]=u);this.q.push(u);n.Bk&&(g=new n.pa(u),g.uid=this.gi++,g.sq=this.Rp++,g.xf=0,g.Bh=Ab,g.toString=Bb,g.n=e[14],g.J(),u.d.push(g),this.Re[g.uid.toString()]=g)}a=0;for(b=h[4].length;a<b;a++)for(d=h[4][a],m=this.q[d[0]],g=1,f=d.length;g<f;g++)e=this.q[d[g]],e.La.push(m),m.Gg.push(e);a=0;for(b=h[27].length;a<b;a++){d=h[27][a];m=[];g=0;for(f=d.length;g<f;g++)m.push(this.q[d[g]]);g=0;for(f=m.length;g<f;g++)m[g].jc=!0,m[g].ec=m}if(0<this.xh)for(a=0,b=this.q.length;a<b;a++)if(e=
this.q[a],!e.C&&e.La.length){e.rj=Array(this.xh);e.ig=Array(this.xh);e.Ao=Array(this.xh);u=[];g=l=w=c=0;for(f=e.La.length;g<f;g++)for(n=e.La[g],e.rj[n.de]=c,c+=n.Rw,e.ig[n.de]=w,w+=n.bt,e.Ao[n.de]=l,l+=n.pu,d=0,m=n.I.length;d<m;d++)u.push(wa({},n.I[d]));e.I=u.concat(e.I);g=0;for(f=e.I.length;g<f;g++)e.I[g].index=g}a=0;for(b=h[5].length;a<b;a++)e=h[5][a],g=new Cb(this,e),this.om[g.name]=g,this.kd.push(g);a=0;for(b=h[6].length;a<b;a++)e=h[6][a],g=new Db(this,e),this.wl[g.name]=g,this.be.push(g);a=0;
for(b=this.be.length;a<b;a++)this.be[a].Ya();a=0;for(b=this.be.length;a<b;a++)this.be[a].fr();a=0;for(b=this.Nk.length;a<b;a++)this.Nk[a].Ya();this.Nk.length=0;this.Zs=h[7];this.Al=h[8];this.Uc=h[9];this.gh=1;this.Kt=h[13];this.aa=h[14];this.$k=h[15];this.Pw=h[17];this.Lm=h[20];this.$s=0<this.Lm;this.Wv=h[22];this.Kc=this.mr=h[23];this.Ft=h[24];this.aw=h[25];this.Dk=Date.now();this.ek.length=0;this.$u()};var d=!1;p.prototype.lr=function(h,a){h.cocoonLazyLoad=!0;h.onerror=function(a){d=h.lo=!0;console&&
console.error&&console.error("Error loading image '"+h.src+"': ",a)};this.fd?h.src=a:h.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){h.src=a},function(b){d=h.lo=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):h.src=a);this.Tf.push(h)};p.prototype.mu=function(h){var a,b;a=0;for(b=this.Tf.length;a<b;a++)if(this.Tf[a].kt===h)return this.Tf[a];return null};var b=0,f=!1;p.prototype.Tu=function(){this.bg&&(b=this.bg.ww(this.Zs))};
p.prototype.ho=function(){var h=b,a=0,g=0,d=!0,m,e,g=0;for(m=this.Tf.length;g<m;g++){e=this.Tf[g];var c=e.jt;if(!c||0>=c)c=5E4;h+=c;e.src&&(e.complete||e.loaded)&&!e.lo?a+=c:d=!1}d&&this.aw&&this.bg&&(f||(this.bg.Bw(),f=!0),g=this.bg.Cu(),a+=g,g<b&&(d=!1));this.Mf=0==h?0:a/h;return d};p.prototype.go=function(){if(this.ya||this.r){var h=this.ya||this.Nm;this.Ab&&this.oq();this.Mf=0;this.rp=-1;if(this.ho())this.Uu();else{var a=Date.now()-this.Dk;if(h){var b=this.width,g=this.height,f=this.devicePixelRatio;
this.Ab&&(b=this.hj,g=this.gj,f=1);if(3!==this.Xh&&(this.ic||500<=a&&this.rp!=this.Mf)){h.clearRect(0,0,b,g);var a=b/2,g=g/2,b=0===this.Xh&&this.Ag.complete,m=40*f,e=0,c=80*f,n;b&&(c=this.Ag.width*f,n=this.Ag.height*f,m=c/2,e=n/2,h.drawImage(this.Ag,S(a-m),S(g-e),c,n));1>=this.Xh?(a=S(a-m)+.5,g=S(g+(e+(b?12*f:0)))+.5,h.fillStyle=d?"red":"DodgerBlue",h.fillRect(a,g,Math.floor(c*this.Mf),6*f),h.strokeStyle="black",h.strokeRect(a,g,c,6*f),h.strokeStyle="white",h.strokeRect(a-1*f,g-1*f,c+2*f,8*f)):2===
this.Xh&&(h.font=this.fd?"12pt ArialMT":"12pt Arial",h.fillStyle=d?"#f00":"#999",h.Cy="middle",f=Math.round(100*this.Mf)+"%",b=h.measureText?h.measureText(f):null,h.fillText(f,a-(b?b.width:0)/2,g))}this.rp=this.Mf}setTimeout(function(h){return function(){h.go()}}(this),this.ic?10:100)}}};p.prototype.Uu=function(){this.Ab&&(this.canvas.parentNode.removeChild(this.Ab),this.Ab=this.Nm=null);this.Dk=Date.now();this.Ff=Sa();var h,a,b;if(this.An)for(h=0,a=this.q.length;h<a;h++)b=this.q[h],b.C||b.gm||!b.ma.Oe||
b.J();else this.Qh=!1;h=0;for(a=this.kd.length;h<a;h++)this.kd[h].lt();2<=this.gc&&(h=this.nb/this.mb,a=this.width/this.height,this.gh=2!==this.gc&&a>h||2===this.gc&&a<h?this.height/this.mb:this.width/this.nb);this.Eo?this.om[this.Eo].mn():this.kd[0].mn();this.An||(this.Bg=1,this.trigger(W.prototype.i.Kn,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();h=0;for(a=this.q.length;h<a;h++)b=this.q[h],b.xv&&b.xv();document.hidden||document.webkitHidden||document.mozHidden||
document.msHidden?window.cr_setSuspended(!0):this.Eb(!1);this.zb&&AppMobi.webview.execute("onGameReady();")};var m=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;p.prototype.Eb=function(h,a){if(this.Ga){var b=Sa(),g=a||b,f=this.gc,d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Mc;(d||this.Mh)&&0<this.sf&&(f=this.sf);
0<f&&(!this.Lj||window.self!==window.top)&&(f=window.innerHeight,this.Vh===window.innerWidth&&this.Uh===f||this.setSize(k(),r()));this.Ma||(d?(this.tj||(this.El=jQuery(this.canvas).css("margin")||"0",this.tj=!0),this.Kh||this.Ne||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.tj?(this.Kh||this.Ne||jQuery(this.canvas).css("margin",this.El),this.El=
"",this.tj=!1,0===this.gc&&this.setSize(Math.round(this.Xp/this.devicePixelRatio),Math.round(this.Wp/this.devicePixelRatio),!0)):(this.Xp=this.width,this.Wp=this.height));this.Qh&&(d=this.ho(),this.Bg=this.Mf,d&&(this.Qh=!1,this.Mf=1,this.trigger(W.prototype.i.Kn,null)));this.rv(g);!this.ja&&!this.ic||this.jm||this.Fi||h||(this.ja=!1,this.r?this.xc():this.ed(),this.Ck&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Ck[0],this.Ck[1]),this.trigger(W.prototype.i.Zr,null)),this.Ck=null));
this.my||(this.te++,this.wh++,this.xj++);this.ci+=Sa()-b;this.Nh||h||(m?this.Um=m(this.Uq,this.canvas):this.sn=setTimeout(this.Uq,this.je?1:16))}};p.prototype.rv=function(h){var a,b,g,f,d,m,e,c;1E3<=h-this.Ff&&(this.Ff+=1E3,1E3<=h-this.Ff&&(this.Ff=h),this.Dl=this.xj,this.xj=0,this.ll=this.ci,this.ci=0);0!==this.Pj&&(a=h-this.Pj,0>a&&(a=0),this.Ge=a/1E3,.5<this.Ge?this.Ge=0:.1<this.Ge&&(this.Ge=.1));this.Pj=h;this.pf=this.Ge*this.cf;this.kc.add(this.pf);this.Qd.add(this.Ge);h=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Mh)&&!this.Mc;2<=this.gc||h&&0<this.sf?(a=this.nb/this.mb,b=this.width/this.height,g=this.gc,h&&0<this.sf&&(g=this.sf),this.gh=2!==g&&b>a||2===g&&b<a?this.height/this.mb:this.width/this.nb,this.Ga&&(this.Ga.yq(this.Ga.scrollX),this.Ga.zq(this.Ga.scrollY))):this.gh=this.zf?this.devicePixelRatio:1;this.Fb();this.gd++;this.Ld.mw();this.gd--;this.Fb();this.gd++;b=this.Vp.ef();h=0;for(a=b.length;h<a;h++)b[h].uy();h=
0;for(a=this.q.length;h<a;h++)if(m=this.q[h],!m.C&&(m.$a.length||m.La.length))for(b=0,g=m.d.length;b<g;b++)for(e=m.d[b],f=0,d=e.L.length;f<d;f++)e.L[f].Eb();h=0;for(a=this.q.length;h<a;h++)if(m=this.q[h],!m.C&&(m.$a.length||m.La.length))for(b=0,g=m.d.length;b<g;b++)for(e=m.d[b],f=0,d=e.L.length;f<d;f++)c=e.L[f],c.pq&&c.pq();b=this.Em.ef();h=0;for(a=b.length;h<a;h++)b[h].Eb();this.gd--;this.Vu();for(h=0;this.kh&&10>h++;)this.wo(this.kh);h=0;for(a=this.be.length;h<a;h++)this.be[h].Vl=!1;this.Ga.uh&&
this.Ga.uh.fb();this.vq.length=0;this.gd++;h=0;for(a=this.q.length;h<a;h++)if(m=this.q[h],!m.C&&(m.$a.length||m.La.length))for(b=0,g=m.d.length;b<g;b++)for(e=m.d[b],f=0,d=e.L.length;f<d;f++)c=e.L[f],c.rn&&c.rn();b=this.Fm.ef();h=0;for(a=b.length;h<a;h++)b[h].rn();this.gd--};p.prototype.wo=function(h){var a=this.Ga;this.Ga.Cw();var b,g,f,d,m,e,c;if(this.r)for(b=0,g=this.q.length;b<g;b++)m=this.q[b],m.C||!m.Ok||m.global&&0!==m.d.length||-1!==h.Ih.indexOf(m)||m.Ok();a==h&&(this.Ld.Zb.length=0);h.mn();
b=0;for(g=this.q.length;b<g;b++)if(m=this.q[b],m.global||m.ma.Bk)for(h=0,a=m.d.length;h<a;h++)if(e=m.d[h],e.Jm&&e.Jm(),e.L)for(f=0,d=e.L.length;f<d;f++)c=e.L[f],c.Jm&&c.Jm();this.ja=!0;this.Fb()};p.prototype.Kk=function(h){this.Em.add(h)};p.prototype.Gw=function(h){this.Fm.add(h)};p.prototype.Jl=function(h){return h&&-1!==h.ei?this.Ge*h.ei:this.pf};p.prototype.ed=function(){this.Ga.ed(this.ya);this.zb&&this.ya.present()};p.prototype.xc=function(){this.Ga.xc(this.r);this.r.dw()};p.prototype.$n=function(h){h&&
this.nj.push(h)};p.prototype.iw=function(h){Ca(this.nj,h)};p.prototype.lg=function(h){h=h.toString();return this.Re.hasOwnProperty(h)?this.Re[h]:null};var a=[];p.prototype.ff=function(h){var b,g;b=h.type.name;var f=null;if(this.nf.hasOwnProperty(b)){if(f=this.nf[b],f.contains(h))return}else f=a.length?a.pop():new da,this.nf[b]=f;f.add(h);this.Ke=!0;if(h.jc)for(b=0,g=h.siblings.length;b<g;b++)this.ff(h.siblings[b]);this.fm&&f.Wg.push(h);this.gd++;this.trigger(Object.getPrototypeOf(h.type.ma).i.$r,
h);this.gd--};p.prototype.Fb=function(){if(this.Ke){var h,a,b,g,f,m;this.fm=!0;b=0;for(f=this.dd.length;b<f;++b)for(h=this.dd[b],a=h.type,a.d.push(h),g=0,m=a.La.length;g<m;++g)a.La[g].d.push(h),a.La[g].Sg=!0;this.dd.length=0;this.Sr();Ra(this.nf);this.Ke=this.fm=!1}};p.prototype.Sr=function(){for(var h in this.nf)this.nf.hasOwnProperty(h)&&this.ur(this.nf[h])};p.prototype.ur=function(h){var b=h.ef(),g=b[0].type,f,m,d,e,c,n;Xa(g.d,h);g.Sg=!0;0===g.d.length&&(g.Wi=!1);f=0;for(m=g.La.length;f<m;++f)n=
g.La[f],Xa(n.d,h),n.Sg=!0;f=0;for(m=this.Ld.Zb.length;f<m;++f)if(c=this.Ld.Zb[f],c.Sb.hasOwnProperty(g.index)&&Xa(c.Sb[g.index].he,h),!g.C)for(d=0,e=g.La.length;d<e;++d)n=g.La[d],c.Sb.hasOwnProperty(n.index)&&Xa(c.Sb[n.index].he,h);if(c=b[0].j){if(c.rd)for(d=c.d,f=0,m=d.length;f<m;++f)e=d[f],h.contains(e)&&(e.xa(),c.pc.update(e,e.Wb,null),e.Wb.set(0,0,-1,-1));Xa(c.d,h);c.xi(0)}for(f=0;f<b.length;++f)this.tr(b[f],g);h.clear();a.push(h);this.ja=!0};p.prototype.tr=function(h,a){var b,g,f;b=0;for(g=this.nj.length;b<
g;++b)this.nj[b](h);h.Cc&&a.nh.update(h,h.Cc,null);(b=h.j)&&b.Mg(h,!0);if(h.L)for(b=0,g=h.L.length;b<g;++b)f=h.L[b],f.Se&&f.Se(),f.behavior.Cm.remove(h);this.Vp.remove(h);this.Em.remove(h);this.Fm.remove(h);h.Se&&h.Se();this.Re.hasOwnProperty(h.uid.toString())&&delete this.Re[h.uid.toString()];this.fk--;100>a.lj.length&&a.lj.push(h)};p.prototype.so=function(h,a,b,g){if(h.C){var f=S(Math.random()*h.Gg.length);return this.so(h.Gg[f],a,b,g)}return h.Hc?this.Fe(h.Hc,a,!1,b,g,!1):null};var g=[];p.prototype.Fe=
function(a,b,f,m,d,e){var c,n,u,w;if(!a)return null;var l=this.q[a[1]],E=l.ma.Oe;if(this.Qh&&E&&!l.gm||E&&!this.r&&11===a[0][11])return null;var N=b;E||(b=null);var v;l.lj.length?(v=l.lj.pop(),v.Qb=!0,l.ma.pa.call(v,l)):(v=new l.ma.pa(l),v.Qb=!1);v.uid=f&&!e?a[2]:this.gi++;this.Re[v.uid.toString()]=v;v.sq=this.Rp++;v.xf=l.d.length;c=0;for(n=this.dd.length;c<n;++c)this.dd[c].type===l&&v.xf++;v.Bh=Ab;v.toString=Bb;u=a[3];if(v.Qb)Ra(v.T);else{v.T={};if("undefined"!==typeof cr_is_preview)for(v.Zo=[],
v.Zo.length=u.length,c=0,n=u.length;c<n;c++)v.Zo[c]=u[c][1];v.kb=[];v.kb.length=u.length}c=0;for(n=u.length;c<n;c++)v.kb[c]=u[c][0];if(E){var p=a[0];v.x=ha(m)?p[0]:m;v.y=ha(d)?p[1]:d;v.z=p[2];v.width=p[3];v.height=p[4];v.depth=p[5];v.m=p[6];v.opacity=p[7];v.Mb=p[8];v.Nb=p[9];v.Vb=p[10];c=p[11];!this.r&&l.I.length&&(v.Vb=c);v.oh=eb(v.Vb);this.p&&fb(v,v.Vb,this.p);if(v.Qb){c=0;for(n=p[12].length;c<n;c++)for(u=0,w=p[12][c].length;u<w;u++)v.Sa[c][u]=p[12][c][u];v.Pa.set(0,0,0,0);v.Cc.set(0,0,-1,-1);v.Wb.set(0,
0,-1,-1);v.Gb.yi(v.Pa);v.dl.length=0}else{v.Sa=p[12].slice(0);c=0;for(n=v.Sa.length;c<n;c++)v.Sa[c]=p[12][c].slice(0);v.fa=[];v.Ae=[];v.Ae.length=l.I.length;v.Pa=new ta(0,0,0,0);v.Cc=new ta(0,0,-1,-1);v.Wb=new ta(0,0,-1,-1);v.Gb=new va;v.dl=[];v.A=Eb;v.Yx=Fb;v.Lb=Gb;v.xa=Hb;v.Ow=Ib;v.ir=Jb;v.yd=Kb}v.Ji=!1;v.Jw=0;v.Iw=0;v.Hw=null;14===p.length&&(v.Ji=!0,v.Jw=p[13][0],v.Iw=p[13][1],v.Hw=p[13][2]);c=0;for(n=l.I.length;c<n;c++)v.Ae[c]=!0;v.we=Lb;v.we();v.jr=!!v.fa.length;v.cl=!0;v.fl=!0;l.Vi=!0;v.visible=
!0;v.ei=-1;v.j=b;v.sd=b.d.length;"undefined"===typeof v.la&&(v.la=null);this.ja=v.Dc=!0}var k;c=g.length=0;for(n=l.La.length;c<n;c++)g.push.apply(g,l.La[c].$a);g.push.apply(g,l.$a);if(v.Qb)for(c=0,n=g.length;c<n;c++){var r=g[c];k=v.L[c];k.Qb=!0;r.behavior.pa.call(k,r,v);p=a[4][c];u=0;for(w=p.length;u<w;u++)k.n[u]=p[u];k.J();r.behavior.Cm.add(v)}else for(v.L=[],c=0,n=g.length;c<n;c++)r=g[c],k=new r.behavior.pa(r,v),k.Qb=!1,k.n=a[4][c].slice(0),k.J(),v.L.push(k),r.behavior.Cm.add(v);p=a[5];if(v.Qb)for(c=
0,n=p.length;c<n;c++)v.n[c]=p[c];else v.n=p.slice(0);this.dd.push(v);this.Ke=!0;b&&(b.fh(v,!0),1!==b.Sc||1!==b.Tc)&&(l.Wi=!0);this.fk++;if(l.jc){if(v.jc=!0,v.Qb?v.siblings.length=0:v.siblings=[],!f&&!e){c=0;for(n=l.ec.length;c<n;c++)if(l.ec[c]!==l){if(!l.ec[c].Hc)return null;v.siblings.push(this.Fe(l.ec[c].Hc,N,!1,E?v.x:m,E?v.y:d,!0))}c=0;for(n=v.siblings.length;c<n;c++)for(v.siblings[c].siblings.push(v),u=0;u<n;u++)c!==u&&v.siblings[c].siblings.push(v.siblings[u])}}else v.jc=!1,v.siblings=null;v.J();
c=0;for(n=v.L.length;c<n;c++)v.L[c].$v&&v.L[c].$v();return v};p.prototype.Nl=function(a){var b,g;b=0;for(g=this.Ga.O.length;b<g;b++){var f=this.Ga.O[b];if(hb(f.name,a))return f}return null};p.prototype.zh=function(a){a=S(a);0>a&&(a=0);a>=this.Ga.O.length&&(a=this.Ga.O.length-1);return this.Ga.O[a]};p.prototype.jl=function(a){var b,g;b=0;for(g=a.length;b<g;b++)a[b].Y().ka=!0};p.prototype.qi=function(a){var b,g;b=0;for(g=a.length;b<g;b++)a[b].qi()};p.prototype.Nf=function(a){var b,g;b=0;for(g=a.length;b<
g;b++)a[b].Nf()};p.prototype.Gd=function(a){var b,g;b=0;for(g=a.length;b<g;b++)a[b].Gd()};p.prototype.dr=function(a){if(a.Vi){var b,g,f=a.d;b=0;for(g=f.length;b<g;++b)f[b].ir();f=this.dd;b=0;for(g=f.length;b<g;++b)f[b].type===a&&f[b].ir();a.Vi=!1}};p.prototype.Io=function(a,b,g,f){var m,d,c=a?1!==a.Sc||1!==a.Tc:!1;if(b.C)for(a=0,m=b.Gg.length;a<m;++a)d=b.Gg[a],c||d.Wi?Aa(f,d.d):(this.dr(d),d.nh.sk(g,f));else c||b.Wi?Aa(f,b.d):(this.dr(b),b.nh.sk(g,f))};p.prototype.So=function(a,b,g,f){var m,d;m=0;
for(d=b.length;m<d;++m)this.Io(a,b[m],g,f)};p.prototype.Gu=function(a,b,g){var f=this.Lq;f&&this.So(a,f.dk,b,g)};p.prototype.zu=function(a,b,g){var f=this.mp;f&&this.So(a,f.dk,b,g)};p.prototype.Hk=function(a,b,g){var f=a.Y(),m,d,c,e,n,u;if(f.ka)for(f.ka=!1,m=f.d.length=0,e=a.d.length;m<e;m++)c=a.d[m],c.xa(),n=c.j.cc(b,g,!0),u=c.j.cc(b,g,!1),c.Lb(n,u)&&f.d.push(c);else{m=d=0;for(e=f.d.length;m<e;m++)c=f.d[m],c.xa(),n=c.j.cc(b,g,!0),u=c.j.cc(b,g,!1),c.Lb(n,u)&&(f.d[d]=f.d[m],d++);f.d.length=d}a.Be();
return f.Ul()};p.prototype.Xc=function(a,b){if(!(a&&b&&a!==b&&a.Dc&&b.Dc))return!1;a.xa();b.xa();var g=a.j,f=b.j,m,d,c,e,n,u,l,w;if(g===f||g.Sc===f.Sc&&f.Tc===f.Tc&&g.scale===f.scale&&g.m===f.m&&g.td===f.td){if(!a.Pa.av(b.Pa)||!a.Gb.$o(b.Gb)||a.Ji&&b.Ji)return!1;if(a.Ji)return this.Rq(a,b);if(b.Ji)return this.Rq(b,a);l=a.la&&!a.la.sg();m=b.la&&!b.la.sg();if(!l&&!m)return!0;l?(a.la.cg(a.width,a.height,a.m),l=a.la):(this.pd.Pg(a.Gb,a.x,a.y,a.width,a.height),l=this.pd);m?(b.la.cg(b.width,b.height,b.m),
w=b.la):(this.pd.Pg(b.Gb,b.x,b.y,b.width,b.height),w=this.pd);return l.Jh(w,b.x-a.x,b.y-a.y)}l=a.la&&!a.la.sg();m=b.la&&!b.la.sg();l?(a.la.cg(a.width,a.height,a.m),this.pd.Dq(a.la)):this.pd.Pg(a.Gb,a.x,a.y,a.width,a.height);l=this.pd;m?(b.la.cg(b.width,b.height,b.m),this.pn.Dq(b.la)):this.pn.Pg(b.Gb,b.x,b.y,b.width,b.height);w=this.pn;m=0;for(d=l.ld;m<d;m++)c=2*m,e=c+1,n=l.ob[c],u=l.ob[e],l.ob[c]=g.Na(n+a.x,u+a.y,!0),l.ob[e]=g.Na(n+a.x,u+a.y,!1);l.xa();m=0;for(d=w.ld;m<d;m++)c=2*m,e=c+1,n=w.ob[c],
u=w.ob[e],w.ob[c]=f.Na(n+b.x,u+b.y,!0),w.ob[e]=f.Na(n+b.x,u+b.y,!1);w.xa();return l.Jh(w,0,0)};var w=new va;new ta(0,0,0,0);var v=[];p.prototype.Rq=function(a,b){var g,f,m,d,c=b.Pa,e=a.x,n=a.y;a.fy(c,v);var u=b.la&&!b.la.sg();g=0;for(f=v.length;g<f;++g)if(m=v[g],d=m.wy,c.bv(d,e,n)&&(w.yi(d),w.offset(e,n),w.$o(b.Gb)))if(u)if(b.la.cg(b.width,b.height,b.m),m.Qm){if(m.Qm.Jh(b.la,b.x-(e+d.left),b.y-(n+d.top)))return v.length=0,!0}else{if(this.pd.Pg(w,0,0,d.right-d.left,d.bottom-d.top),this.pd.Jh(b.la,
b.x,b.y))return v.length=0,!0}else if(m.Qm){if(this.pd.Pg(b.Gb,0,0,b.width,b.height),m.Qm.Jh(this.pd,-(e+d.left),-(n+d.top)))return v.length=0,!0}else return v.length=0,!0;v.length=0;return!1};p.prototype.Zq=function(a,b){if(!b)return!1;var g,f,m,d,c;g=0;for(f=a.$a.length;g<f;g++)if(a.$a[g].behavior instanceof b)return!0;if(!a.C)for(g=0,f=a.La.length;g<f;g++)for(c=a.La[g],m=0,d=c.$a.length;m<d;m++)if(c.$a[m].behavior instanceof b)return!0;return!1};p.prototype.$q=function(a){return this.Zq(a,$b.xx)};
p.prototype.wn=function(a){return this.Zq(a,$b.yx)};var u=[];p.prototype.rc=function(a){var b,g,f;a.xa();this.Gu(a.j,a.Pa,u);b=0;for(g=u.length;b<g;++b)if(f=u[b],f.T.solidEnabled&&this.Xc(a,f))return u.length=0,f;u.length=0;return null};var N=[];p.prototype.bf=function(a,b){var g=null;b&&(g=N,g.length=0);a.xa();this.zu(a.j,a.Pa,u);var f,m,d;f=0;for(m=u.length;f<m;++f)if(d=u[f],d.T.jumpthruEnabled&&this.Xc(a,d))if(b)g.push(d);else return u.length=0,d;u.length=0;return g};p.prototype.nd=function(a,
b,g,f,m,d){f=f||50;var c=a.x,e=a.y,n,u=null,l=null;for(n=0;n<f;n++)if(a.x=c+b*n,a.y=e+g*n,a.A(),!this.Xc(a,u)&&((u=this.rc(a))&&(l=u),!u&&(m&&(u=d?this.Xc(a,d)?d:null:this.bf(a))&&(l=u),!u)))return l&&this.Sm(a,b,g,l),!0;a.x=c;a.y=e;a.A();return!1};p.prototype.Sm=function(a,b,g,f){var m=2,d,c=!1;d=!1;for(var e=a.x,n=a.y;16>=m;)d=1/m,m*=2,a.x+=b*d*(c?1:-1),a.y+=g*d*(c?1:-1),a.A(),this.Xc(a,f)?d=c=!0:(d=c=!1,e=a.x,n=a.y);d&&(a.x=e,a.y=n,a.A())};p.prototype.gw=function(a,b){var g=ha(b)?100:b,f=0,m=a.x,
d=a.y,c=0,e=0,n=0,u=this.rc(a);if(!u)return!0;for(;f<=g;){switch(c){case 0:e=0;n=-1;f++;break;case 1:e=1;n=-1;break;case 2:e=1;n=0;break;case 3:n=e=1;break;case 4:e=0;n=1;break;case 5:e=-1;n=1;break;case 6:e=-1;n=0;break;case 7:n=e=-1}c=(c+1)%8;a.x=S(m+e*f);a.y=S(d+n*f);a.A();if(!this.Xc(a,u)&&(u=this.rc(a),!u))return!0}a.x=m;a.y=d;a.A();return!1};p.prototype.si=function(a,b){a.Dc&&b.Dc&&this.vq.push([a,b])};var E=-1;p.prototype.trigger=function(a,b,g){if(!this.Ga)return!1;var f=this.Ga.uh;if(!f)return!1;
var m=!1,d,c,e;E++;var n=f.pl;c=0;for(e=n.length;c<e;++c)d=this.Wq(a,b,n[c],g),m=m||d;d=this.Wq(a,b,f,g);E--;return m||d};p.prototype.Wq=function(a,b,g,f){var m=!1,d,c,e,n;if(b)for(e=this.un(a,b,b.type.name,g,f),m=m||e,n=b.type.La,d=0,c=n.length;d<c;++d)e=this.un(a,b,n[d].name,g,f),m=m||e;else e=this.un(a,b,"system",g,f),m=m||e;return m};p.prototype.un=function(a,b,g,f,m){var d,c=!1,e=!1,e="undefined"!==typeof m,n=(e?f.Co:f.Xq)[g];if(!n)return c;var u=null;f=0;for(d=n.length;f<d;++f)if(n[f].method==
a){u=n[f].vh;break}if(!u)return c;a=e?u[m]:u;if(!a)return null;f=0;for(d=a.length;f<d;f++)m=a[f][0],e=a[f][1],e=this.ku(b,g,m,e),c=c||e;return c};p.prototype.ku=function(a,b,g,f){var m,d,c=!1;this.vn++;var e=this.jb().ib;e&&this.qi(e.Ye);var n=1<this.vn;this.qi(g.Ye);n&&this.fw();var u=this.qk(g);u.ib=g;a&&(m=this.types[b].Y(),m.ka=!1,m.d.length=1,m.d[0]=a,this.types[b].Be());a=!0;if(g.parent){b=u.Qq;for(m=g.parent;m;)b.push(m),m=m.parent;b.reverse();m=0;for(d=b.length;m<d;m++)if(!b[m].ow()){a=!1;
break}}a&&(this.wh++,g.Qc?g.nw(f):g.fb(),c=c||u.Ef);this.lk();n&&this.Zv();this.Gd(g.Ye);e&&this.Gd(e.Ye);this.Ke&&0===this.gd&&0===E&&!this.hm&&this.Fb();this.vn--;return c};p.prototype.Il=function(){var a=this.jb();return a.ib.hb[a.ab]};p.prototype.fw=function(){this.$j++;this.$j>=this.wm.length&&this.wm.push([])};p.prototype.Zv=function(){this.$j--};p.prototype.Jo=function(){return this.wm[this.$j]};p.prototype.qk=function(a){this.qj++;this.qj>=this.ul.length&&this.ul.push(new Mb);var b=this.jb();
b.reset(a);return b};p.prototype.lk=function(){this.qj--};p.prototype.jb=function(){return this.ul[this.qj]};p.prototype.tq=function(a){this.ak++;this.ak>=this.Dg.length&&this.Dg.push(aa({name:a,index:0,Za:!1}));var b=this.Ko();b.name=a;b.index=0;b.Za=!1;return b};p.prototype.nq=function(){this.ak--};p.prototype.Ko=function(){return this.Dg[this.ak]};p.prototype.Lo=function(a,b){for(var g,f,m,d,c,e;b;){g=0;for(f=b.Wc.length;g<f;g++)if(e=b.Wc[g],e instanceof Nb&&hb(a,e.name))return e;b=b.parent}g=
0;for(f=this.be.length;g<f;g++)for(c=this.be[g],m=0,d=c.Ie.length;m<d;m++)if(e=c.Ie[m],e instanceof Nb&&hb(a,e.name))return e;return null};p.prototype.No=function(a){var b,g;b=0;for(g=this.kd.length;b<g;b++)if(this.kd[b].W===a)return this.kd[b];return null};p.prototype.Bj=function(a){var b,g;b=0;for(g=this.q.length;b<g;b++)if(this.q[b].W===a)return this.q[b];return null};p.prototype.wu=function(a){var b,g;b=0;for(g=this.ag.length;b<g;b++)if(this.ag[b].W===a)return this.ag[b];return null};p.prototype.Vu=
function(){var a=this,b=this.cn,g=this.ke,f=this.Vj,m=!1;this.Iq&&(m=!0,b="__c2_continuouspreview",this.Iq=!1);if(b.length){this.Fb();g=this.sw();if(window.indexedDB&&!this.ic)s(b,g,function(){M("Saved state to IndexedDB storage ("+g.length+" bytes)");a.ke=g;a.trigger(W.prototype.i.Vk,null);a.ke="";m&&c()},function(f){try{localStorage.setItem("__c2save_"+b,g),M("Saved state to WebStorage ("+g.length+" bytes)"),a.ke=g,a.trigger(W.prototype.i.Vk,null),a.ke="",m&&c()}catch(d){M("Failed to save game state: "+
f+"; "+d)}});else try{localStorage.setItem("__c2save_"+b,g),M("Saved state to WebStorage ("+g.length+" bytes)"),a.ke=g,this.trigger(W.prototype.i.Vk,null),a.ke="",m&&c()}catch(d){M("Error saving to WebStorage: "+d)}this.Pb=this.Vj=this.cn=""}f.length&&(window.indexedDB&&!this.ic?e(f,function(b){b?(a.Pb=b,M("Loaded state from IndexedDB storage ("+a.Pb.length+" bytes)")):(a.Pb=localStorage.getItem("__c2save_"+f)||"",M("Loaded state from WebStorage ("+a.Pb.length+" bytes)"));a.Fi=!1;a.Pb.length||a.trigger(W.prototype.i.Uk,
null)},function(){a.Pb=localStorage.getItem("__c2save_"+f)||"";M("Loaded state from WebStorage ("+a.Pb.length+" bytes)");a.Fi=!1;a.Pb.length||a.trigger(W.prototype.i.Uk,null)}):(this.Pb=localStorage.getItem("__c2save_"+f)||"",M("Loaded state from WebStorage ("+this.Pb.length+" bytes)"),this.Fi=!1,a.Pb.length||a.trigger(W.prototype.i.Uk,null)),this.cn=this.Vj="");this.Pb.length&&(this.Fb(),this.pv(this.Pb),this.ke=this.Pb,this.trigger(W.prototype.i.os,null),this.Pb=this.ke="")};p.prototype.sw=function(){var a,
b,g,f,m,d,c,e={c2save:!0,version:1,rt:{time:this.kc.na,walltime:this.Qd.na,timescale:this.cf,tickcount:this.te,execcount:this.wh,next_uid:this.gi,running_layout:this.Ga.W,start_time_offset:Date.now()-this.Dk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.q.length;a<b;a++)if(m=this.q[a],!m.C&&!this.$q(m)){d={instances:[]};Qa(m.T)&&(d.ex=l(m.T));g=0;for(f=m.d.length;g<f;g++)d.instances.push(this.bn(m.d[g]));e.types[m.W.toString()]=d}a=0;for(b=this.kd.length;a<b;a++)g=
this.kd[a],e.layouts[g.W.toString()]=g.Rb();f=e.events.groups;a=0;for(b=this.ag.length;a<b;a++)g=this.ag[a],f[g.W.toString()]=this.Eh[g.Dh].Ch;b=e.events.cnds;for(c in this.dg)this.dg.hasOwnProperty(c)&&(a=this.dg[c],Qa(a.T)&&(b[c]={ex:l(a.T)}));b=e.events.acts;for(c in this.$f)this.$f.hasOwnProperty(c)&&(a=this.$f[c],Qa(a.T)&&(b[c]={ex:a.T}));b=e.events.vars;for(c in this.Xg)this.Xg.hasOwnProperty(c)&&(a=this.Xg[c],a.Ij||a.parent&&!a.Ph||(b[c]=a.data));e.system=this.Ld.Rb();return JSON.stringify(e)};
p.prototype.uq=function(){var a,b,g,f,m,d;this.Re={};a=0;for(b=this.q.length;a<b;a++)if(g=this.q[a],!g.C)for(f=0,m=g.d.length;f<m;f++)d=g.d[f],this.Re[d.uid.toString()]=d};p.prototype.pv=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.kc.reset();this.kc.na=b.time;this.Qd.reset();this.Qd.na=b.walltime||0;this.cf=b.timescale;this.te=b.tickcount;this.wh=b.execcount;this.Dk=Date.now()-b.start_time_offset;var g=b.running_layout;if(g!==this.Ga.W)if(g=this.No(g))this.wo(g);else return;
var f,m,d,c,e,n,u;n=a.types;for(m in n)if(n.hasOwnProperty(m)&&(c=this.Bj(parseInt(m,10)))&&!c.C&&!this.$q(c)){n[m].ex?c.T=n[m].ex:Ra(c.T);e=c.d;d=n[m].instances;g=0;for(f=na(e.length,d.length);g<f;g++)this.Wj(e[g],d[g]);g=d.length;for(f=e.length;g<f;g++)this.ff(e[g]);g=e.length;for(f=d.length;g<f;g++){e=null;if(c.ma.Oe&&(e=this.Ga.Aj(d[g].w.l),!e))continue;e=this.Fe(c.Hc,e,!1,0,0,!0);this.Wj(e,d[g])}c.Sg=!0}this.Fb();this.uq();f=a.layouts;for(m in f)f.hasOwnProperty(m)&&(g=this.No(parseInt(m,10)))&&
g.mc(f[m]);f=a.events.groups;for(m in f)f.hasOwnProperty(m)&&(g=this.wu(parseInt(m,10)))&&this.Eh[g.Dh]&&(this.Eh[g.Dh].Ch=f[m]);g=a.events.cnds;for(m in g)g.hasOwnProperty(m)&&this.dg.hasOwnProperty(m)&&(this.dg[m].T=g[m].ex);g=a.events.acts;for(m in g)g.hasOwnProperty(m)&&this.$f.hasOwnProperty(m)&&(this.$f[m].T=g[m].ex);g=a.events.vars;for(m in g)g.hasOwnProperty(m)&&this.Xg.hasOwnProperty(m)&&(this.Xg[m].data=g[m]);this.gi=b.next_uid;this.Ld.mc(a.system);g=0;for(f=this.q.length;g<f;g++)if(c=this.q[g],
!c.C)for(m=0,a=c.d.length;m<a;m++){e=c.d[m];if(c.jc)for(n=e.Bh(),b=e.siblings.length=0,d=c.ec.length;b<d;b++)u=c.ec[b],c!==u&&e.siblings.push(u.d[n]);e.Rd&&e.Rd();if(e.L)for(b=0,d=e.L.length;b<d;b++)n=e.L[b],n.Rd&&n.Rd()}this.ja=!0}};p.prototype.bn=function(a,b){var g,f,m,d,c;d=a.type;m=d.ma;var e={};b?e.c2=!0:e.uid=a.uid;Qa(a.T)&&(e.ex=l(a.T));if(a.kb&&a.kb.length)for(e.ivs={},g=0,f=a.kb.length;g<f;g++)e.ivs[a.type.dm[g].toString()]=a.kb[g];if(m.Oe){m={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.W,zi:a.yd()};
0!==a.m&&(m.a=a.m);1!==a.opacity&&(m.o=a.opacity);.5!==a.Mb&&(m.hX=a.Mb);.5!==a.Nb&&(m.hY=a.Nb);0!==a.Vb&&(m.bm=a.Vb);a.visible||(m.v=a.visible);a.Dc||(m.ce=a.Dc);-1!==a.ei&&(m.mts=a.ei);if(d.I.length)for(m.fx=[],g=0,f=d.I.length;g<f;g++)c=d.I[g],m.fx.push({name:c.name,active:a.Ae[c.index],params:a.Sa[c.index]});e.w=m}if(a.L&&a.L.length)for(e.behs={},g=0,f=a.L.length;g<f;g++)d=a.L[g],d.Rb&&(e.behs[d.type.W.toString()]=d.Rb());a.Rb&&(e.data=a.Rb());return e};p.prototype.yu=function(a,b){var g,f;g=
0;for(f=a.dm.length;g<f;g++)if(a.dm[g]===b)return g;return-1};p.prototype.tu=function(a,b){var g,f;g=0;for(f=a.L.length;g<f;g++)if(a.L[g].type.W===b)return g;return-1};p.prototype.Wj=function(a,b,g){var f,m,d,c,e;e=a.type;d=e.ma;if(g){if(!b.c2)return}else a.uid=b.uid;b.ex?a.T=b.ex:Ra(a.T);if(m=b.ivs)for(f in m)m.hasOwnProperty(f)&&(g=this.yu(e,parseInt(f,10)),0>g||g>=a.kb.length||(a.kb[g]=m[f]));if(d.Oe){d=b.w;a.j.W!==d.l&&(g=a.j,a.j=this.Ga.Aj(d.l),a.j?(g.Mg(a,!0),a.j.fh(a,!0),a.A(),a.j.xi(0)):(a.j=
g,this.ff(a)));a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.sd=d.zi;a.m=d.hasOwnProperty("a")?d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Mb=d.hasOwnProperty("hX")?d.hX:.5;a.Nb=d.hasOwnProperty("hY")?d.hY:.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.Dc=d.hasOwnProperty("ce")?d.ce:!0;a.ei=d.hasOwnProperty("mts")?d.mts:-1;a.Vb=d.hasOwnProperty("bm")?d.bm:0;a.oh=eb(a.Vb);this.p&&fb(a,a.Vb,this.p);a.A();if(d.hasOwnProperty("fx"))for(g=0,m=d.fx.length;g<m;g++)c=e.Ll(d.fx[g].name),0>c||(a.Ae[c]=d.fx[g].active,
a.Sa[c]=d.fx[g].params);a.we()}if(e=b.behs)for(f in e)e.hasOwnProperty(f)&&(d=this.tu(a,parseInt(f,10)),0>d||a.L[d].mc(e[f]));b.data&&a.mc(b.data)};Ob=function(a){return new p(document.getElementById(a))};Pb=function(a,b){return new p({dc:!0,width:a,height:b})};window.cr_createRuntime=Ob;window.cr_createDCRuntime=Pb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.zy=!0;document.body.appendChild(a);a=new p(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 p(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(k,r){if(0!==k&&0!==r){var p=window.cr_getC2Runtime();p&&p.setSize(k,r)}};window.cr_setSuspended=function(k){var r=window.cr_getC2Runtime();r&&r.setSuspended(k)};
(function(){function k(b,f){this.b=b;this.uh=null;this.scrollX=this.b.nb/2;this.scrollY=this.b.mb/2;this.scale=1;this.m=0;this.jg=!0;this.name=f[0];this.width=f[1];this.height=f[2];this.br=f[3];this.Gq=f[4];this.W=f[5];var m=f[6],a,g;this.O=[];this.Ih=[];a=0;for(g=m.length;a<g;a++){var d=new Qb(this,m[a]);d.Tp=a;this.O.push(d)}m=f[7];this.yf=[];a=0;for(g=m.length;a<g;a++){var d=m[a],c=this.b.q[d[1]];c.Hc||(c.Hc=d);this.yf.push(d);-1===this.Ih.indexOf(c)&&this.Ih.push(c)}this.I=[];this.fa=[];this.Sa=
[];a=0;for(g=f[8].length;a<g;a++)this.I.push({id:f[8][a][0],name:f[8][a][1],Cb:-1,uc:!0,index:a}),this.Sa.push(f[8][a][2].slice(0));this.we();this.Lg=new ta(0,0,1,1);this.Vm=new ta(0,0,1,1);this.Te={}}function r(b,f){return b.sd-f.sd}function p(b,f){this.sb=b;this.b=b.b;this.d=[];this.scale=1;this.m=0;this.of=!1;this.ue=new ta(0,0,0,0);this.Vq=new va;this.Ua=this.Ka=this.Va=this.Ja=0;this.Vf=!1;this.xe=-1;this.name=f[0];this.index=f[1];this.W=f[2];this.visible=f[3];this.Ce=f[4];this.ve=f[5];this.Sc=
f[6];this.Tc=f[7];this.opacity=f[8];this.Cl=f[9];this.rd=f[10];this.td=f[11];this.Vb=f[12];this.Jt=f[13];this.oh="source-over";this.Jb=this.Kb=0;this.pc=null;this.yg=q();this.oe=!0;this.Oj=new ta(0,0,-1,-1);this.Gc=new ta(0,0,-1,-1);this.rd&&(this.pc=new db(this.b.nb,this.b.mb));this.Ue=!1;var m=f[14],a,g;this.ng=[];a=0;for(g=m.length;a<g;a++){var d=m[a],c=this.b.q[d[1]];c.Hc||(c.Hc=d,c.pt=this.index);this.ng.push(d);-1===this.sb.Ih.indexOf(c)&&this.sb.Ih.push(c)}this.I=[];this.fa=[];this.Sa=[];a=
0;for(g=f[15].length;a<g;a++)this.I.push({id:f[15][a][0],name:f[15][a][1],Cb:-1,uc:!0,index:a}),this.Sa.push(f[15][a][2].slice(0));this.we();this.Lg=new ta(0,0,1,1);this.Vm=new ta(0,0,1,1)}function q(){return l.length?l.pop():[]}function s(b){b.length=0;l.push(b)}k.prototype.rw=function(b){var f=b.type.W.toString();this.Te.hasOwnProperty(f)||(this.Te[f]=[]);this.Te[f].push(this.b.bn(b))};k.prototype.To=function(){var b=this.O[0];return!b.ve&&1===b.opacity&&!b.Cl&&b.visible};k.prototype.we=function(){this.fa.length=
0;var b,f,m;b=0;for(f=this.I.length;b<f;b++)m=this.I[b],m.uc&&this.fa.push(m)};k.prototype.Kl=function(b){var f,m,a;f=0;for(m=this.I.length;f<m;f++)if(a=this.I[f],a.name===b)return a;return null};var e=[],c=!0;k.prototype.mn=function(){this.Gq&&(this.uh=this.b.wl[this.Gq],this.uh.fr());this.b.Ga=this;this.scrollX=this.b.nb/2;this.scrollY=this.b.mb/2;var b,f,m,a,g,d,n;b=0;for(m=this.b.q.length;b<m;b++)if(f=this.b.q[b],!f.C)for(g=f.d,f=0,a=g.length;f<a;f++)if(d=g[f],d.j){var u=d.j.Tp;u>=this.O.length&&
(u=this.O.length-1);d.j=this.O[u];-1===d.j.d.indexOf(d)&&d.j.d.push(d);d.j.Vf=!0}if(!c)for(b=0,m=this.O.length;b<m;++b)this.O[b].d.sort(r);e.length=0;this.ct();b=0;for(m=this.O.length;b<m;b++)d=this.O[b],d.mt(),d.yn();g=!1;if(!this.jg){for(n in this.Te)if(this.Te.hasOwnProperty(n)&&(f=this.b.Bj(parseInt(n,10)))&&!f.C&&this.b.wn(f)){a=this.Te[n];b=0;for(m=a.length;b<m;b++){d=null;if(f.ma.Oe&&(d=this.Aj(a[b].w.l),!d))continue;d=this.b.Fe(f.Hc,d,!1,0,0,!0);this.b.Wj(d,a[b]);g=!0;e.push(d)}a.length=0}b=
0;for(m=this.O.length;b<m;b++)this.O[b].d.sort(r),this.O[b].Vf=!0}g&&(this.b.Fb(),this.b.uq());for(b=0;b<e.length;b++)if(d=e[b],d.type.jc)for(m=d.Bh(),f=0,a=d.type.ec.length;f<a;f++)n=d.type.ec[f],d.type!==n&&(n.d.length>m?d.siblings.push(n.d[m]):n.Hc&&(g=this.b.Fe(n.Hc,d.j,!0,d.x,d.y,!0),this.b.Fb(),n.Pk(),d.siblings.push(g),e.push(g)));b=0;for(m=this.yf.length;b<m;b++)this.b.Fe(this.yf[b],null,!0);this.b.kh=null;this.b.Fb();if(this.b.ya&&!this.b.Ma)for(b=0,m=this.b.q.length;b<m;b++)n=this.b.q[b],
!n.C&&n.d.length&&n.ok&&n.ok(this.b.ya);b=0;for(m=e.length;b<m;b++)d=e[b],this.b.trigger(Object.getPrototypeOf(d.type.ma).i.Ri,d);e.length=0;this.b.trigger(W.prototype.i.Jn,null);this.jg=!1};k.prototype.lt=function(){var b,f,d,a,g;f=b=0;for(d=this.yf.length;b<d;b++)a=this.yf[b],g=this.b.q[a[1]],g.global?this.b.Fe(a,null,!0):(this.yf[f]=a,f++);this.yf.length=f};k.prototype.Cw=function(){this.b.trigger(W.prototype.i.ns,null);this.b.Ld.Zb.length=0;var b,f,d,a,g,e;if(!this.jg)for(b=0,f=this.O.length;b<
f;b++)for(this.O[b].zn(),g=this.O[b].d,d=0,a=g.length;d<a;d++)e=g[d],e.type.global||this.b.wn(e.type)&&this.rw(e);b=0;for(f=this.O.length;b<f;b++){g=this.O[b].d;d=0;for(a=g.length;d<a;d++)e=g[d],e.type.global||this.b.ff(e);this.b.Fb();g.length=0;this.O[b].Vf=!0}b=0;for(f=this.b.q.length;b<f;b++)if(g=this.b.q[b],!(g.global||g.ma.Oe||g.ma.Bk||g.C)){d=0;for(a=g.d.length;d<a;d++)this.b.ff(g.d[d]);this.b.Fb()}c=!1};new ta(0,0,0,0);k.prototype.ed=function(b){var f,d=b,a=!1,g=!this.b.Kc;g&&(this.b.Tj||(this.b.Tj=
document.createElement("canvas"),f=this.b.Tj,f.width=this.b.N,f.height=this.b.M,this.b.tp=f.getContext("2d"),a=!0),f=this.b.Tj,d=this.b.tp,f.width!==this.b.N&&(f.width=this.b.N,a=!0),f.height!==this.b.M&&(f.height=this.b.M,a=!0),a&&(d.webkitImageSmoothingEnabled=this.b.aa,d.mozImageSmoothingEnabled=this.b.aa,d.msImageSmoothingEnabled=this.b.aa,d.imageSmoothingEnabled=this.b.aa));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.$k&&!this.To()&&d.clearRect(0,0,this.b.N,this.b.M);var c,
e,a=0;for(c=this.O.length;a<c;a++)e=this.O[a],e.visible&&0<e.opacity&&11!==e.Vb&&(e.d.length||!e.ve)?e.ed(d):e.yn();g&&b.drawImage(f,0,0,this.b.width,this.b.height)};k.prototype.xc=function(b){var f=0<this.fa.length||this.b.Vg||!this.b.Kc;if(f){this.b.lc||(this.b.lc=b.Xd(this.b.N,this.b.M,this.b.aa));if(this.b.lc.ih!==this.b.N||this.b.lc.hh!==this.b.M)b.deleteTexture(this.b.lc),this.b.lc=b.Xd(this.b.N,this.b.M,this.b.aa);b.Jd(this.b.lc);this.b.Kc||b.Xe(this.b.N,this.b.M)}else this.b.lc&&(b.Jd(null),
b.deleteTexture(this.b.lc),this.b.lc=null);this.b.$k&&!this.To()&&b.clear(0,0,0,0);var d,a,g;d=0;for(a=this.O.length;d<a;d++)g=this.O[d],g.visible&&0<g.opacity&&(g.d.length||!g.ve)?g.xc(b):g.yn();f&&(0===this.fa.length||1===this.fa.length&&this.b.Kc?(1===this.fa.length?(f=this.fa[0].index,b.Kd(this.fa[0].Cb),b.Og(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.m,0,0,this.b.N/2,this.b.M/2,this.Sa[f]),b.pk(this.fa[0].Cb)&&(this.b.ja=!0)):b.Kd(0),this.b.Kc||b.Xe(this.b.width,this.b.height),b.Jd(null),
b.We(1),b.Yb(this.b.lc),b.Aq(),b.Id(),b.Nd(),f=this.b.width/2,d=this.b.height/2,b.rk(-f,d,f,d,f,-d,-f,-d),b.Yb(null)):this.Wm(b,null,null,null))};k.prototype.Ah=function(){return 0<this.fa.length||this.b.Vg||!this.b.Kc?this.b.lc:null};k.prototype.Oo=function(){var b=this.O[0].zc(),f,d,a;f=1;for(d=this.O.length;f<d;f++)a=this.O[f],(0!==a.Sc||0!==a.Tc)&&a.zc()<b&&(b=a.zc());return b};k.prototype.yq=function(b){if(!this.br){var f=1/this.Oo()*this.b.N/2;b>this.width-f&&(b=this.width-f);b<f&&(b=f)}this.scrollX!==
b&&(this.scrollX=b,this.b.ja=!0)};k.prototype.zq=function(b){if(!this.br){var f=1/this.Oo()*this.b.M/2;b>this.height-f&&(b=this.height-f);b<f&&(b=f)}this.scrollY!==b&&(this.scrollY=b,this.b.ja=!0)};k.prototype.ct=function(){this.yq(this.scrollX);this.zq(this.scrollY)};k.prototype.Wm=function(b,f,d,a){var g=d?d.fa:f?f.fa:this.fa,c=1,e=0,n=0,l=0,E=this.b.N,h=this.b.M;d?(c=d.j.zc(),e=d.j.eb(),n=d.j.Ja,l=d.j.Ka,E=d.j.Va,h=d.j.Ua):f&&(c=f.zc(),e=f.eb(),n=f.Ja,l=f.Ka,E=f.Va,h=f.Ua);var t=this.b.Fl,p,k,
r,s,q=0,ca=1,K,C=this.b.N,x=this.b.M,V=C/2,B=x/2,G=f?f.Lg:this.Lg,y=f?f.Vm:this.Vm,A=0,O=0,H=0,L=0,I=C,qa=C,P=x,ua=x,ka=r=0,xa=d?d.j.eb():0;if(d){p=0;for(k=g.length;p<k;p++)r+=b.Du(g[p].Cb),ka+=b.Eu(g[p].Cb);s=d.Pa;A=f.Na(s.left,s.top,!0,!0);H=f.Na(s.left,s.top,!1,!0);I=f.Na(s.right,s.bottom,!0,!0);P=f.Na(s.right,s.bottom,!1,!0);0!==xa&&(p=f.Na(s.right,s.top,!0,!0),k=f.Na(s.right,s.top,!1,!0),O=f.Na(s.left,s.bottom,!0,!0),L=f.Na(s.left,s.bottom,!1,!0),s=Math.min(A,I,p,O),I=Math.max(A,I,p,O),A=s,s=
Math.min(H,P,k,L),P=Math.max(H,P,k,L),H=s);A-=r;H-=ka;I+=r;P+=ka;y.left=A/C;y.top=1-H/x;y.right=I/C;y.bottom=1-P/x;O=A=S(A);L=H=S(H);qa=I=pa(I);ua=P=pa(P);O-=r;L-=ka;qa+=r;ua+=ka;0>A&&(A=0);0>H&&(H=0);I>C&&(I=C);P>x&&(P=x);0>O&&(O=0);0>L&&(L=0);qa>C&&(qa=C);ua>x&&(ua=x);G.left=A/C;G.top=1-H/x;G.right=I/C;G.bottom=1-P/x}else G.left=y.left=0,G.top=y.top=0,G.right=y.right=1,G.bottom=y.bottom=1;ka=d&&((d.m||xa)&&b.oi(g[0].Cb)||0!==r||0!==ka||1!==d.opacity||d.type.ma.Op)||f&&!d&&1!==f.opacity;b.Aq();if(ka){t[q]||
(t[q]=b.Xd(C,x,this.b.aa));if(t[q].ih!==C||t[q].hh!==x)b.deleteTexture(t[q]),t[q]=b.Xd(C,x,this.b.aa);b.Kd(0);b.Jd(t[q]);K=ua-L;b.clearRect(O,x-L-K,qa-O,K);d?d.xc(b):(b.Yb(this.b.Bc),b.We(f.opacity),b.Id(),b.translate(-V,-B),b.Nd(),b.Hd(A,P,I,P,I,H,A,H,G));y.left=y.top=0;y.right=y.bottom=1;d&&(s=G.top,G.top=G.bottom,G.bottom=s);q=1;ca=0}b.We(1);r=g.length-1;var xa=b.Rm(g[r].Cb)||!f&&!d&&!this.b.Kc,fa=0;p=0;for(k=g.length;p<k;p++){t[q]||(t[q]=b.Xd(C,x,this.b.aa));if(t[q].ih!==C||t[q].hh!==x)b.deleteTexture(t[q]),
t[q]=b.Xd(C,x,this.b.aa);b.Kd(g[p].Cb);fa=g[p].index;b.pk(g[p].Cb)&&(this.b.ja=!0);0!=p||ka?(b.Og(a,1/C,1/x,y.left,y.top,y.right,y.bottom,c,e,n,l,(n+E)/2,(l+h)/2,d?d.Sa[fa]:f?f.Sa[fa]:this.Sa[fa]),b.Yb(null),p!==r||xa?(b.Jd(t[q]),K=ua-L,s=x-L-K,b.clearRect(O,s,qa-O,K)):(d?b.Ve(d.Kb,d.Jb):f&&b.Ve(f.Kb,f.Jb),b.Jd(a)),b.Yb(t[ca]),b.Id(),b.translate(-V,-B),b.Nd(),b.Hd(A,P,I,P,I,H,A,H,G),p!==r||xa||b.Yb(null)):(b.Jd(t[q]),K=ua-L,s=x-L-K,b.clearRect(O,s,qa-O,K),d?(b.Og(a,1/d.width,1/d.height,y.left,y.top,
y.right,y.bottom,c,e,n,l,(n+E)/2,(l+h)/2,d.Sa[fa]),d.xc(b)):(b.Og(a,1/C,1/x,0,0,1,1,c,e,n,l,(n+E)/2,(l+h)/2,f?f.Sa[fa]:this.Sa[fa]),b.Yb(f?this.b.Bc:this.b.lc),b.Id(),b.translate(-V,-B),b.Nd(),b.Hd(A,P,I,P,I,H,A,H,G)),y.left=y.top=0,y.right=y.bottom=1,d&&!xa&&(s=P,P=H,H=s));q=0===q?1:0;ca=0===q?1:0}xa&&(b.Kd(0),d?b.Ve(d.Kb,d.Jb):f?b.Ve(f.Kb,f.Jb):this.b.Kc||(b.Xe(this.b.width,this.b.height),V=this.b.width/2,B=this.b.height/2,H=A=0,I=this.b.width,P=this.b.height),b.Jd(a),b.Yb(t[ca]),b.Id(),b.translate(-V,
-B),b.Nd(),d&&1===g.length&&!ka?b.Hd(A,H,I,H,I,P,A,P,G):b.Hd(A,P,I,P,I,H,A,H,G),b.Yb(null))};k.prototype.Aj=function(b){var d,c;d=0;for(c=this.O.length;d<c;d++)if(this.O[d].W===b)return this.O[d];return null};k.prototype.Rb=function(){var b,d,c,a={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.jg,persist:this.Te,fx:[],layers:{}};b=0;for(d=this.I.length;b<d;b++)c=this.I[b],a.fx.push({name:c.name,active:c.uc,params:this.Sa[c.index]});b=0;for(d=this.O.length;b<
d;b++)c=this.O[b],a.layers[c.W.toString()]=c.Rb();return a};k.prototype.mc=function(b){var d,c,a,g;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.m=b.a;this.width=b.w;this.height=b.h;this.Te=b.persist;"undefined"!==typeof b.fv&&(this.jg=b.fv);var e=b.fx;d=0;for(c=e.length;d<c;d++)if(a=this.Kl(e[d].name))a.uc=e[d].active,this.Sa[a.index]=e[d].params;this.we();d=b.layers;for(g in d)d.hasOwnProperty(g)&&(b=this.Aj(parseInt(g,10)))&&b.mc(d[g])};Cb=k;p.prototype.we=function(){this.fa.length=0;
var b,d,c;b=0;for(d=this.I.length;b<d;b++)c=this.I[b],c.uc&&this.fa.push(c)};p.prototype.Kl=function(b){var d,c,a;d=0;for(c=this.I.length;d<c;d++)if(a=this.I[d],a.name===b)return a;return null};p.prototype.mt=function(){var b,d,c,a,g,n;d=b=0;for(c=this.ng.length;b<c;b++){a=this.ng[b];g=this.b.q[a[1]];n=this.b.wn(g);g=!0;if(!n||this.sb.jg)a=this.b.Fe(a,this,!0),e.push(a),a.type.global&&(g=!1);g&&(this.ng[d]=this.ng[b],d++)}this.ng.length=d;this.b.Fb();!this.b.r&&this.I.length&&(this.Vb=this.Jt);this.oh=
eb(this.Vb);this.b.p&&fb(this,this.Vb,this.b.p);this.oe=!0};p.prototype.Mg=function(b,d){var c=Ba(this.d,b);0>c||(d&&this.rd&&b.Wb&&b.Wb.right>=b.Wb.left&&(b.xa(),this.pc.update(b,b.Wb,null),b.Wb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(ya(this.d,c),this.xi(c)),this.oe=!0)};p.prototype.fh=function(b,d){b.sd=this.d.length;this.d.push(b);d&&this.rd&&b.Wb&&b.A();this.oe=!0};p.prototype.bw=function(b){this.d.unshift(b);this.xi(0)};p.prototype.wv=function(b,d,c){var a=b.yd();d=d.yd();ya(this.d,
a);a<d&&d--;c&&d++;d===this.d.length?this.d.push(b):this.d.splice(d,0,b);this.xi(a<d?a:d)};p.prototype.xi=function(b){-1===this.xe?this.xe=b:b<this.xe&&(this.xe=b);this.oe=this.Vf=!0};p.prototype.zn=function(){if(this.Vf){-1===this.xe&&(this.xe=0);var b,d,c;if(this.rd)for(b=this.xe,d=this.d.length;b<d;++b)c=this.d[b],c.sd=b,this.pc.tv(c.Wb);else for(b=this.xe,d=this.d.length;b<d;++b)this.d[b].sd=b;this.Vf=!1;this.xe=-1}};p.prototype.zc=function(b){return this.Au()*(this.b.Kc||b?this.b.gh:1)};p.prototype.Au=
function(){return(this.scale*this.sb.scale-1)*this.td+1};p.prototype.eb=function(){return this.of?0:Fa(this.sb.m+this.m)};var l=[],n=[],d=[];p.prototype.Po=function(){this.zn();this.pc.sk(this.Ja,this.Ka,this.Va,this.Ua,d);if(!d.length)return q();if(1===d.length){var b=q();za(b,d[0]);d.length=0;return b}for(var f=!0;1<d.length;){for(var b=d,c=void 0,a=void 0,g=void 0,e=void 0,l=void 0,c=0,a=b.length;c<a-1;c+=2){var g=b[c],e=b[c+1],l=q(),u=g,N=e,E=l,h=0,t=0,p=0,k=u.length,r=N.length,J=void 0,F=void 0;
for(E.length=k+r;h<k&&t<r;++p)J=u[h],F=N[t],J.sd<F.sd?(E[p]=J,++h):(E[p]=F,++t);for(;h<k;++h,++p)E[p]=u[h];for(;t<r;++t,++p)E[p]=N[t];f||(s(g),s(e));n.push(l)}1===a%2&&(f?(g=q(),za(g,b[a-1]),n.push(g)):n.push(b[a-1]));za(b,n);n.length=0;f=!1}b=d[0];d.length=0;return b};p.prototype.ed=function(b){this.Ue=this.Cl||1!==this.opacity||0!==this.Vb;var d=this.b.canvas,c=b,a=!1;this.Ue&&(this.b.Sj||(this.b.Sj=document.createElement("canvas"),d=this.b.Sj,d.width=this.b.N,d.height=this.b.M,this.b.sp=d.getContext("2d"),
a=!0),d=this.b.Sj,c=this.b.sp,d.width!==this.b.N&&(d.width=this.b.N,a=!0),d.height!==this.b.M&&(d.height=this.b.M,a=!0),a&&(c.webkitImageSmoothingEnabled=this.b.aa,c.mozImageSmoothingEnabled=this.b.aa,c.msImageSmoothingEnabled=this.b.aa,c.imageSmoothingEnabled=this.b.aa),this.ve&&c.clearRect(0,0,this.b.N,this.b.M));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ve||(c.fillStyle="rgb("+this.Ce[0]+","+this.Ce[1]+","+this.Ce[2]+")",c.fillRect(0,0,this.b.N,this.b.M));c.save();this.of=!0;
var a=this.cc(0,0,!0,!0),g=this.cc(0,0,!1,!0);this.of=!1;this.b.Uc&&(a=Math.round(a),g=Math.round(g));this.Ym(a,g,c);var e=this.zc();c.scale(e,e);c.translate(-a,-g);this.rd?(this.Gc.left=this.pc.sc(this.Ja),this.Gc.top=this.pc.tc(this.Ka),this.Gc.right=this.pc.sc(this.Va),this.Gc.bottom=this.pc.tc(this.Ua),this.oe||!this.Gc.pj(this.Oj)?(s(this.yg),a=this.Po(),this.oe=!1,this.Oj.ph(this.Gc)):a=this.yg):a=this.d;for(var n,u=null,g=0,e=a.length;g<e;++g)n=a[g],n!==u&&(this.Gt(n,c),u=n);this.rd&&(this.yg=
a);c.restore();this.Ue&&(b.globalCompositeOperation=this.oh,b.globalAlpha=this.opacity,b.drawImage(d,0,0))};p.prototype.Gt=function(b,d){if(b.visible&&0!==b.width&&0!==b.height){b.xa();var c=b.Pa;c.right<this.Ja||c.bottom<this.Ka||c.left>this.Va||c.top>this.Ua||(d.globalCompositeOperation=b.oh,b.ed(d))}};p.prototype.yn=function(){this.of=!0;var b=this.cc(0,0,!0,!0),d=this.cc(0,0,!1,!0);this.of=!1;this.b.Uc&&(b=Math.round(b),d=Math.round(d));this.Ym(b,d,null)};p.prototype.Ym=function(b,d,c){var a=
this.zc();this.Ja=b;this.Ka=d;this.Va=b+1/a*this.b.N;this.Ua=d+1/a*this.b.M;b=this.eb();0!==b&&(c&&(c.translate(this.b.N/2,this.b.M/2),c.rotate(-b),c.translate(this.b.N/-2,this.b.M/-2)),this.ue.set(this.Ja,this.Ka,this.Va,this.Ua),this.ue.offset((this.Ja+this.Va)/-2,(this.Ka+this.Ua)/-2),this.Vq.Eq(this.ue,b),this.Vq.ko(this.ue),this.ue.offset((this.Ja+this.Va)/2,(this.Ka+this.Ua)/2),this.Ja=this.ue.left,this.Ka=this.ue.top,this.Va=this.ue.right,this.Ua=this.ue.bottom)};p.prototype.xc=function(b){var d=
0,c=0;if(this.Ue=this.Cl||1!==this.opacity||0<this.fa.length||0!==this.Vb){this.b.Bc||(this.b.Bc=b.Xd(this.b.N,this.b.M,this.b.aa));if(this.b.Bc.ih!==this.b.N||this.b.Bc.hh!==this.b.M)b.deleteTexture(this.b.Bc),this.b.Bc=b.Xd(this.b.N,this.b.M,this.b.aa);b.Jd(this.b.Bc);this.ve&&b.clear(0,0,0,0)}this.ve||b.clear(this.Ce[0]/255,this.Ce[1]/255,this.Ce[2]/255,1);this.of=!0;var a=this.cc(0,0,!0,!0),d=this.cc(0,0,!1,!0);this.of=!1;this.b.Uc&&(a=Math.round(a),d=Math.round(d));this.Ym(a,d,null);a=this.zc();
b.Id();b.scale(a,a);b.Zm(-this.eb());b.translate((this.Ja+this.Va)/-2,(this.Ka+this.Ua)/-2);b.Nd();this.rd?(this.Gc.left=this.pc.sc(this.Ja),this.Gc.top=this.pc.tc(this.Ka),this.Gc.right=this.pc.sc(this.Va),this.Gc.bottom=this.pc.tc(this.Ua),this.oe||!this.Gc.pj(this.Oj)?(s(this.yg),d=this.Po(),this.oe=!1,this.Oj.ph(this.Gc)):d=this.yg):d=this.d;var g,e,n=null,c=0;for(g=d.length;c<g;++c)e=d[c],e!==n&&(this.Ht(d[c],b),n=e);this.rd&&(this.yg=d);this.Ue&&(d=this.fa.length?this.fa[0].Cb:0,c=this.fa.length?
this.fa[0].index:0,0===this.fa.length||1===this.fa.length&&!b.Rm(d)&&1===this.opacity?(1===this.fa.length?(b.Kd(d),b.Og(this.sb.Ah(),1/this.b.N,1/this.b.M,0,0,1,1,a,this.eb(),this.Ja,this.Ka,(this.Ja+this.Va)/2,(this.Ka+this.Ua)/2,this.Sa[c]),b.pk(d)&&(this.b.ja=!0)):b.Kd(0),b.Jd(this.sb.Ah()),b.We(this.opacity),b.Yb(this.b.Bc),b.Ve(this.Kb,this.Jb),b.Id(),b.Nd(),a=this.b.N/2,d=this.b.M/2,b.rk(-a,d,a,d,a,-d,-a,-d),b.Yb(null)):this.sb.Wm(b,this,null,this.sb.Ah()))};p.prototype.Ht=function(b,d){if(b.visible&&
0!==b.width&&0!==b.height){b.xa();var c=b.Pa;c.right<this.Ja||c.bottom<this.Ka||c.left>this.Va||c.top>this.Ua||(b.jr?this.It(b,d):(d.Kd(0),d.Ve(b.Kb,b.Jb),b.xc(d)))}};p.prototype.It=function(b,d){var c=b.fa[0].Cb,a=b.fa[0].index,g=this.zc();if(1!==b.fa.length||d.Rm(c)||d.ew(c)||(b.m||b.j.eb())&&d.oi(c)||1!==b.opacity||b.type.ma.Op)this.sb.Wm(d,this,b,this.Ue?this.b.Bc:this.sb.Ah()),d.Id(),d.scale(g,g),d.Zm(-this.eb()),d.translate((this.Ja+this.Va)/-2,(this.Ka+this.Ua)/-2),d.Nd();else{d.Kd(c);d.Ve(b.Kb,
b.Jb);d.pk(c)&&(this.b.ja=!0);var e=0,n=0,u=0,l=0;d.oi(c)&&(c=b.Pa,e=this.Na(c.left,c.top,!0,!0),n=this.Na(c.left,c.top,!1,!0),u=this.Na(c.right,c.bottom,!0,!0),c=this.Na(c.right,c.bottom,!1,!0),e/=windowWidth,n=1-n/windowHeight,u/=windowWidth,l=1-c/windowHeight);d.Og(this.Ue?this.b.Bc:this.sb.Ah(),1/b.width,1/b.height,e,n,u,l,g,this.eb(),this.Ja,this.Ka,(this.Ja+this.Va)/2,(this.Ka+this.Ua)/2,b.Sa[a]);b.xc(d)}};p.prototype.cc=function(b,d,c,a){var g=this.b.devicePixelRatio;this.b.zf&&(b*=g,d*=g);
var g=this.b.jq,e=this.b.kq,g=(this.sb.scrollX-g)*this.Sc+g,e=(this.sb.scrollY-e)*this.Tc+e,n=g,u=e,l=1/this.zc(!a);a?(n-=this.b.N*l/2,u-=this.b.M*l/2):(n-=this.b.width*l/2,u-=this.b.height*l/2);n+=b*l;u+=d*l;d=this.eb();0!==d&&(n-=g,u-=e,b=Math.cos(d),d=Math.sin(d),a=n*b-u*d,u=u*b+n*d,n=a+g,u+=e);return c?n:u};p.prototype.Na=function(b,d,c,a){var g=this.b.jq,e=this.b.kq,n=(this.sb.scrollX-g)*this.Sc+g,u=(this.sb.scrollY-e)*this.Tc+e,e=n,g=u,l=this.eb();if(0!==l){b-=n;d-=u;var E=Math.cos(-l),l=Math.sin(-l),
h=b*E-d*l;d=d*E+b*l;b=h+n;d+=u}n=1/this.zc(!a);a?(e-=this.b.N*n/2,g-=this.b.M*n/2):(e-=this.b.width*n/2,g-=this.b.height*n/2);e=(b-e)/n;g=(d-g)/n;b=this.b.devicePixelRatio;this.b.zf&&!a&&(e/=b,g/=b);return c?e:g};p.prototype.Rb=function(){var b,d,c,a={s:this.scale,a:this.m,vl:this.Ja,vt:this.Ka,vr:this.Va,vb:this.Ua,v:this.visible,bc:this.Ce,t:this.ve,px:this.Sc,py:this.Tc,o:this.opacity,zr:this.td,fx:[],instances:[]};b=0;for(d=this.I.length;b<d;b++)c=this.I[b],a.fx.push({name:c.name,active:c.uc,
params:this.Sa[c.index]});return a};p.prototype.mc=function(b){var d,c;this.scale=b.s;this.m=b.a;this.Ja=b.vl;this.Ka=b.vt;this.Va=b.vr;this.Ua=b.vb;this.visible=b.v;this.Ce=b.bc;this.ve=b.t;this.Sc=b.px;this.Tc=b.py;this.opacity=b.o;this.td=b.zr;var a=b.fx;b=0;for(d=a.length;b<d;b++)if(c=this.Kl(a[b].name))c.uc=a[b].active,this.Sa[c.index]=a[b].params;this.we();this.d.sort(r);this.Vf=!0};Qb=p})();
(function(){function k(a,b){var d,g=a.length;switch(g){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<g;d++)if(a[d]!==b[d])return!1;return!0}}function r(a,b){return a.index-b.index}function p(a){var b,d,c,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(r);a.length>=g.length&&(g.length=a.length+1);g[a.length]||(g[a.length]=[]);e=g[a.length];b=0;for(d=e.length;b<d;b++)if(c=e[b],k(a,c))return c;e.push(a);return a}
function q(a,b){this.b=a;this.Xq={};this.Co={};this.Vl=!1;this.Vo=new da;this.pl=[];this.al=[];this.name=b[0];var d=b[1];this.Ie=[];var g,c;g=0;for(c=d.length;g<c;g++)this.Xo(d[g],null,this.Ie)}function s(a){this.type=a;this.d=[];this.X=[];this.ka=!0}function e(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ba=[];this.Ye=[];this.Uo=this.Lk=this.tn=this.$l=this.group=this.ln=!1;this.hb=[];this.Zc=[];this.Wc=[];this.Dh="";this.Ch=this.$l=this.group=!1;this.ro=null;d[1]&&(this.Dh=d[1][1].toLowerCase(),
this.group=!0,this.$l=!!d[1][0],this.ro=[],this.Ch=this.$l,this.b.ag.push(this),this.b.Eh[this.Dh]=this);this.Qc=d[2];this.W=d[4];this.group||(this.b.jo[this.W.toString()]=this);var g=d[5];a=0;for(b=g.length;a<b;a++){var c=new Rb(this,g[a]);c.index=a;this.hb.push(c);this.ao(c.type)}g=d[6];a=0;for(b=g.length;a<b;a++)c=new Sb(this,g[a]),c.index=a,this.Zc.push(c);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Xo(d[a],this,this.Wc);this.Jj=!1;this.hb.length&&(this.Jj=null==this.hb[0].type&&
this.hb[0].yb==W.prototype.i.Gn)}function c(a,b){var d,g,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.jc))for(d=0,g=a.ec.length;d<g;d++)c=a.ec[d],a!==c&&-1===b.indexOf(c)&&b.push(c)}function l(a,b){this.vc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.Ta=[];this.T={};this.index=-1;this.dh=!1;this.yb=this.b.ye(b[1]);this.trigger=0<b[3];this.Bo=2===b[3];this.Cd=b[4];this.Ej=b[5];this.nv=b[6];this.W=b[7];this.b.dg[this.W.toString()]=this;-1===b[0]?(this.type=null,this.fb=this.an,this.kf=null,this.cd=-1):
(this.type=this.b.q[b[0]],this.fb=this.nv?this.pw:this.$m,b[2]?(this.kf=this.type.zj(b[2]),this.cd=this.type.Hl(b[2])):(this.kf=null,this.cd=-1),this.vc.parent&&this.vc.parent.yk());this.Bo&&(this.fb=this.qw);if(10===b.length){var d,g,c=b[9];d=0;for(g=c.length;d<g;d++){var e=new Tb(this,c[d]);this.P.push(e)}this.Ta.length=c.length}}function n(a,b){this.vc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.Ta=[];this.T={};this.index=-1;this.dh=!1;this.yb=this.b.ye(b[1]);-1===b[0]?(this.type=null,this.fb=
this.an,this.kf=null,this.cd=-1):(this.type=this.b.q[b[0]],this.fb=this.$m,b[2]?(this.kf=this.type.zj(b[2]),this.cd=this.type.Hl(b[2])):(this.kf=null,this.cd=-1));this.W=b[3];this.b.$f[this.W.toString()]=this;if(6===b.length){var d,g,c=b[5];d=0;for(g=c.length;d<g;d++){var e=new Tb(this,c[d]);this.P.push(e)}this.Ta.length=c.length}}function d(){v++;w.length===v&&w.push(new Ub);return w[v]}function b(a,b){this.Rc=a;this.vc=a.vc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.vd=null;this.se=0;this.get=
null;this.qo=0;this.sb=null;this.key=0;this.object=null;this.index=0;this.Li=this.Rf=this.Li=this.Rf=this.Do=this.qf=this.Mi=null;this.Yc=!1;var d,g,c;switch(b[0]){case 0:case 7:this.vd=new Vb(this,b[1]);this.se=0;this.get=this.Ku;break;case 1:this.vd=new Vb(this,b[1]);this.se=0;this.get=this.Lu;break;case 5:this.vd=new Vb(this,b[1]);this.se=0;this.get=this.Pu;break;case 3:case 8:this.qo=b[1];this.get=this.Iu;break;case 6:this.sb=this.b.om[b[1]];this.get=this.Qu;break;case 9:this.key=b[1];this.get=
this.Ou;break;case 4:this.object=this.b.q[b[1]];this.get=this.Ru;this.vc.ao(this.object);this.Rc instanceof Sb?this.vc.yk():this.vc.parent&&this.vc.parent.yk();break;case 10:this.index=b[1];a.type.C?(this.get=this.Mu,this.Yc=!0):this.get=this.Nu;break;case 11:this.Mi=b[1];this.qf=null;this.get=this.Ju;break;case 2:case 12:this.Do=b[1];this.get=this.Hu;break;case 13:for(this.get=this.Su,this.Rf=[],this.Li=[],d=1,g=b.length;d<g;d++)c=new Tb(this.Rc,b[d]),this.Rf.push(c),this.Li.push(0)}}function f(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ba=[];this.name=d[1];this.Ni=d[2];this.Dj=d[3];this.Ph=!!d[4];this.Ij=!!d[5];this.W=d[6];this.b.Xg[this.W.toString()]=this;this.data=this.Dj;this.parent?(this.If=this.Ph||this.Ij?-1:this.b.zw++,this.b.Ys.push(this)):(this.If=-1,this.b.Zk.push(this))}function m(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ba=[];this.Hh=null;this.Yu=d[1];this.uc=!0}function a(){this.Qq=[];this.reset(null)}var g=[];q.prototype.toString=function(){return this.name};
q.prototype.Xo=function(a,b,d){switch(a[0]){case 0:a=new Wb(this,b,a);if(a.Qc)for(d.push(a),d=0,b=a.hb.length;d<b;d++)a.hb[d].trigger&&this.Yo(a,d);else a.kp()?this.Yo(a,0):d.push(a);break;case 1:a=new Nb(this,b,a);d.push(a);break;case 2:a=new Xb(this,b,a),d.push(a)}};q.prototype.Ya=function(){var a,b;a=0;for(b=this.Ie.length;a<b;a++)this.Ie[a].Ya(a<b-1&&this.Ie[a+1].Jj)};q.prototype.fr=function(){this.pl.length=0;this.al.length=0;this.Zn(this);this.al.length=0};q.prototype.Zn=function(a){var b,d,
g,c,e=a.pl,f=a.al,n=this.Vo.ef();b=0;for(d=n.length;b<d;++b)g=n[b],c=g.Hh,!g.uc||a===c||-1<f.indexOf(c)||(f.push(c),c.Zn(a),e.push(c))};q.prototype.fb=function(a){this.b.xy||(this.Vl=!0,a||(this.b.hm=!0));var b,d;b=0;for(d=this.Ie.length;b<d;b++){var g=this.Ie[b];g.fb();this.b.jl(g.ba);this.b.Ke&&this.b.Fb()}a||(this.b.hm=!1)};q.prototype.Yo=function(a,b){a.Qc||this.b.Nk.push(a);var d,g,c=a.hb[b],e;e=c.type?c.type.name:"system";var f=(d=c.Bo)?this.Co:this.Xq;f[e]||(f[e]=[]);e=f[e];f=c.yb;if(d){if(c.P.length&&
(c=c.P[0],1===c.type&&2===c.vd.type)){c=c.vd.value.toLowerCase();d=0;for(g=e.length;d<g;d++)if(e[d].method==f){d=e[d].vh;d[c]?d[c].push([a,b]):d[c]=[[a,b]];return}d={};d[c]=[[a,b]];e.push({method:f,vh:d})}}else{d=0;for(g=e.length;d<g;d++)if(e[d].method==f){e[d].vh.push([a,b]);return}jc&&f===jc.prototype.i.Yf?e.unshift({method:f,vh:[[a,b]]}):e.push({method:f,vh:[[a,b]]})}};Db=q;s.prototype.Ul=function(){return this.ka?this.type.d.length:this.d.length};s.prototype.Lc=function(){return this.ka?this.type.d:
this.d};s.prototype.ni=function(a){a&&(a.b.jb().ib.Qc?(this.ka&&(this.d.length=0,za(this.X,a.type.d),this.ka=!1),a=this.X.indexOf(a),-1!==a&&(this.d.push(this.X[a]),this.X.splice(a,1))):(this.ka=!1,this.d.length=1,this.d[0]=a))};lb=s;window._c2hh_="7E88F68FCD6436573253B64D71CDB978245A0CED";e.prototype.Ya=function(a){var b,d=this.parent;if(this.group)for(this.Lk=!0;d;){if(!d.group){this.Lk=!1;break}d=d.parent}this.tn=!this.kp()&&(!this.parent||this.parent.group&&this.parent.Lk);this.Uo=!!a;this.Ye=
this.ba.slice(0);for(d=this.parent;d;){a=0;for(b=d.ba.length;a<b;a++)this.Xs(d.ba[a]);d=d.parent}this.ba=p(this.ba);this.Ye=p(this.Ye);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].Ya();a=0;for(b=this.Zc.length;a<b;a++)this.Zc[a].Ya();a=0;for(b=this.Wc.length;a<b;a++)this.Wc[a].Ya(a<b-1&&this.Wc[a+1].Jj)};e.prototype.ao=function(a){c(a,this.ba)};e.prototype.Xs=function(a){c(a,this.Ye)};e.prototype.yk=function(){this.ln=!0;this.parent&&this.parent.yk()};e.prototype.kp=function(){return this.hb.length?
this.hb[0].trigger:!1};e.prototype.fb=function(){var a,b=!1,d,g=this.b,c=this.b.jb();c.ib=this;var e=this.hb;this.Jj||(c.sl=!1);if(this.Qc){0===e.length&&(b=!0);c.ab=0;for(a=e.length;c.ab<a;c.ab++)e[c.ab].trigger||(d=e[c.ab].fb())&&(b=!0);(c.Ef=b)&&this.vk()}else{c.ab=0;for(a=e.length;c.ab<a;c.ab++)if(d=e[c.ab].fb(),!d){c.Ef=!1;this.tn&&g.Ke&&g.Fb();return}c.Ef=!0;this.vk()}this.Lt(c)};e.prototype.Lt=function(a){a.Ef&&this.Uo&&(a.sl=!0);this.tn&&this.b.Ke&&this.b.Fb()};e.prototype.nw=function(a){this.b.jb().ib=
this;this.hb[a].fb()&&(this.vk(),this.b.jb().Ef=!0)};e.prototype.vk=function(){var a=this.b.jb(),b;a.$b=0;for(b=this.Zc.length;a.$b<b;a.$b++)if(this.Zc[a.$b].fb())return;this.xq()};e.prototype.lw=function(){var a=this.b.jb(),b;for(b=this.Zc.length;a.$b<b;a.$b++)if(this.Zc[a.$b].fb())return;this.xq()};e.prototype.xq=function(){if(this.Wc.length){var a,b,d,g,c=this.Wc.length-1;this.b.qk(this);if(this.ln)for(a=0,b=this.Wc.length;a<b;a++)d=this.Wc[a],(g=!this.Lk||!this.group&&a<c)&&this.b.Nf(d.ba),d.fb(),
g?this.b.Gd(d.ba):this.b.jl(d.ba);else for(a=0,b=this.Wc.length;a<b;a++)this.Wc[a].fb();this.b.lk()}};e.prototype.ow=function(){var a=this.b.jb();a.ib=this;var b=!1,d;a.ab=0;for(d=this.hb.length;a.ab<d;a.ab++)if(this.hb[a.ab].fb())b=!0;else if(!this.Qc)return!1;return this.Qc?b:!0};e.prototype.Of=function(){this.b.wh++;var a=this.b.jb().ab,b=this.b.qk(this);if(!this.Qc)for(b.ab=a+1,a=this.hb.length;b.ab<a;b.ab++)if(!this.hb[b.ab].fb()){this.b.lk();return}this.vk();this.b.lk()};e.prototype.gv=function(a){var b=
a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.hb[b].type===a.type)return!1;return!0};Wb=e;l.prototype.Ya=function(){var a,b,d;a=0;for(b=this.P.length;a<b;a++)d=this.P[a],d.Ya(),d.Yc&&(this.dh=!0)};l.prototype.qw=function(){return!0};l.prototype.an=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.Ta[a]=this.P[a].get();return Pa(this.yb.apply(this.b.Ld,this.Ta),this.Ej)};l.prototype.pw=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.Ta[a]=this.P[a].get();a=this.yb.apply(this.kf?
this.kf:this.type,this.Ta);this.type.Be();return a};l.prototype.$m=function(){var a,b,d,g,c,e,f,n,m=this.type,l=m.Y(),w=this.vc.Qc&&!this.trigger;b=0;var v=m.jc,p=m.C,k=m.de,r=this.cd,s=-1<r,q=this.dh,y=this.P,A=this.Ta,O=this.Ej,H=this.yb,L;if(q)for(b=0,c=y.length;b<c;++b)e=y[b],e.Yc||(A[b]=e.get(0));else for(b=0,c=y.length;b<c;++b)A[b]=y[b].get(0);if(l.ka){l.d.length=0;l.X.length=0;L=m.d;a=0;for(g=L.length;a<g;++a){n=L[a];if(q)for(b=0,c=y.length;b<c;++b)e=y[b],e.Yc&&(A[b]=e.get(a));s?(b=0,p&&(b=
n.type.ig[k]),b=H.apply(n.L[r+b],A)):b=H.apply(n,A);(f=Pa(b,O))?l.d.push(n):w&&l.X.push(n)}m.finish&&m.finish(!0);l.ka=!1;m.Be();return l.Ul()}d=0;L=(f=w&&!this.vc.gv(this))?l.X:l.d;var I=!1;a=0;for(g=L.length;a<g;++a){n=L[a];if(q)for(b=0,c=y.length;b<c;++b)e=y[b],e.Yc&&(A[b]=e.get(a));s?(b=0,p&&(b=n.type.ig[k]),b=H.apply(n.L[r+b],A)):b=H.apply(n,A);if(Pa(b,O))if(I=!0,f){if(l.d.push(n),v)for(b=0,c=n.siblings.length;b<c;b++)e=n.siblings[b],e.type.Y().d.push(e)}else{L[d]=n;if(v)for(b=0,c=n.siblings.length;b<
c;b++)e=n.siblings[b],e.type.Y().d[d]=e;d++}else if(f){L[d]=n;if(v)for(b=0,c=n.siblings.length;b<c;b++)e=n.siblings[b],e.type.Y().X[d]=e;d++}else if(w&&(l.X.push(n),v))for(b=0,c=n.siblings.length;b<c;b++)e=n.siblings[b],e.type.Y().X.push(e)}L.length=d;if(v)for(p=m.ec,a=0,g=p.length;a<g;a++)n=p[a].Y(),f?n.X.length=d:n.d.length=d;d=I;if(f&&!I)for(a=0,g=l.d.length;a<g;a++){n=l.d[a];if(q)for(b=0,c=y.length;b<c;b++)e=y[b],e.Yc&&(A[b]=e.get(a));b=s?H.apply(n.L[r],A):H.apply(n,A);if(Pa(b,O)){I=!0;break}}m.finish&&
m.finish(d||w);return w?I:l.Ul()};Rb=l;n.prototype.Ya=function(){var a,b,d;a=0;for(b=this.P.length;a<b;a++)d=this.P[a],d.Ya(),d.Yc&&(this.dh=!0)};n.prototype.an=function(){var a=this.b,b,d,g=this.P,c=this.Ta;b=0;for(d=g.length;b<d;++b)c[b]=g[b].get();return this.yb.apply(a.Ld,c)};n.prototype.$m=function(){var a=this.type,b=this.cd,d=a.de,g=this.dh,c=this.P,e=this.Ta,f=this.yb,n=a.Y().Lc(),a=a.C,m=-1<b,l,w,v,p,k,r;if(g)for(w=0,p=c.length;w<p;++w)k=c[w],k.Yc||(e[w]=k.get(0));else for(w=0,p=c.length;w<
p;++w)e[w]=c[w].get(0);l=0;for(v=n.length;l<v;++l){r=n[l];if(g)for(w=0,p=c.length;w<p;++w)k=c[w],k.Yc&&(e[w]=k.get(l));m?(w=0,a&&(w=r.type.ig[d]),f.apply(r.L[b+w],e)):f.apply(r,e)}return!1};Sb=n;var w=[],v=-1;b.prototype.Ya=function(){var a,b;if(11===this.type)this.qf=this.b.Lo(this.Mi,this.vc.parent);else if(13===this.type)for(a=0,b=this.Rf.length;a<b;a++)this.Rf[a].Ya();this.vd&&this.vd.Ya()};b.prototype.vv=function(a){this.Yc||!a||a.ma.Bk||(this.Yc=!0)};b.prototype.Cq=function(){this.Yc=!0};b.prototype.Ku=
function(a){this.se=a||0;a=d();this.vd.get(a);v--;return a.data};b.prototype.Lu=function(a){this.se=a||0;a=d();this.vd.get(a);v--;return R(a.data)?a.data:""};b.prototype.Ru=function(){return this.object};b.prototype.Iu=function(){return this.qo};b.prototype.Pu=function(a){this.se=a||0;a=d();this.vd.get(a);v--;return a.lb()?this.b.zh(a.data):this.b.Nl(a.data)};b.prototype.Qu=function(){return this.sb};b.prototype.Ou=function(){return this.key};b.prototype.Nu=function(){return this.index};b.prototype.Mu=
function(a){a=a||0;var b=this.Rc.type,d=null,d=b.Y(),g=d.Lc();if(g.length)d=g[a%g.length].type;else if(d.X.length)d=d.X[a%d.X.length].type;else if(b.d.length)d=b.d[a%b.d.length].type;else return 0;return this.index+d.rj[b.de]};b.prototype.Ju=function(){return this.qf};b.prototype.Hu=function(){return this.Do};b.prototype.Su=function(){var a,b;a=0;for(b=this.Rf.length;a<b;a++)this.Li[a]=this.Rf[a].get();return this.Li};Tb=b;f.prototype.Ya=function(){this.ba=p(this.ba)};f.prototype.re=function(a){var b=
this.b.Jo();this.parent&&!this.Ph&&b?(this.If>=b.length&&(b.length=this.If+1),b[this.If]=a):this.data=a};f.prototype.uf=function(){var a=this.b.Jo();return!this.parent||this.Ph||!a||this.Ij?this.data:this.If>=a.length||"undefined"===typeof a[this.If]?this.Dj:a[this.If]};f.prototype.fb=function(){!this.parent||this.Ph||this.Ij||this.re(this.Dj)};Nb=f;m.prototype.toString=function(){return"include:"+this.Hh.toString()};m.prototype.Ya=function(){this.Hh=this.b.wl[this.Yu];this.sheet.Vo.add(this);this.ba=
p(this.ba);for(var a=this.parent;a;)a.group&&a.ro.push(this),a=a.parent;this.Lw()};m.prototype.fb=function(){this.parent&&this.b.qi(this.b.q);this.Hh.Vl||this.Hh.fb(!0);this.parent&&this.b.Gd(this.b.q)};m.prototype.Lw=function(){for(var a=this.parent;a;){if(a.group&&!a.Ch){this.uc=!1;return}a=a.parent}this.uc=!0};Xb=m;a.prototype.reset=function(a){this.ib=a;this.$b=this.ab=0;this.Qq.length=0;this.sl=this.Ef=!1};a.prototype.dp=function(){return this.ib.ln?!0:this.ab<this.ib.hb.length-1?!!this.ib.ba.length:
!1};Mb=a})();
(function(){function k(c,e){this.Rc=c;this.b=c.b;this.type=e[0];this.get=[this.Yt,this.Ut,this.gu,this.ju,this.Nt,this.hu,this.bu,this.Rt,this.au,this.fu,this.Ot,this.eu,this.St,this.cu,this.Zt,this.$t,this.Vt,this.Wt,this.Qt,this.iu,this.du,this.Xt,this.Pt,this.Tt][this.type];var n=null;this.me=this.P=this.Ta=this.yb=this.Jk=this.wb=this.first=this.value=null;this.cd=-1;this.Le=null;this.kr=-1;this.qf=this.Mi=null;this.Ng=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Vb(c,e[1]);break;case 18:this.first=new Vb(c,e[1]);this.wb=new Vb(c,e[2]);this.Jk=new Vb(c,e[3]);break;case 19:this.yb=this.b.ye(e[1]);this.yb!==W.prototype.wa.random&&this.yb!==W.prototype.wa.ht||this.Rc.Cq();this.Ta=[];this.P=[];3===e.length?(n=e[2],this.Ta.length=n.length+1):this.Ta.length=1;break;case 20:this.me=this.b.q[e[1]];this.cd=-1;this.yb=this.b.ye(e[2]);this.Ng=e[3];kc&&this.yb===kc.prototype.wa.rr&&this.Rc.Cq();this.Le=e[4]?new Vb(c,e[4]):null;this.Ta=[];this.P=[];6===e.length?(n=
e[5],this.Ta.length=n.length+1):this.Ta.length=1;break;case 21:this.me=this.b.q[e[1]];this.Ng=e[2];this.Le=e[3]?new Vb(c,e[3]):null;this.kr=e[4];break;case 22:this.me=this.b.q[e[1]];this.me.zj(e[2]);this.cd=this.me.Hl(e[2]);this.yb=this.b.ye(e[3]);this.Ng=e[4];this.Le=e[5]?new Vb(c,e[5]):null;this.Ta=[];this.P=[];7===e.length?(n=e[6],this.Ta.length=n.length+1):this.Ta.length=1;break;case 23:this.Mi=e[1],this.qf=null}this.Rc.vv(this.me);4<=this.type&&17>=this.type&&(this.first=new Vb(c,e[1]),this.wb=
new Vb(c,e[2]));if(n){var d,b;d=0;for(b=n.length;d<b;d++)this.P.push(new Vb(c,n[d]))}}function r(){++e;s.length===e&&s.push(new Ub);return s[e]}function p(c,e,n){var d,b;d=0;for(b=c.length;d<b;++d)c[d].get(n),e[d+1]=n.data}function q(c,e){this.type=c||Yb.Xf;this.data=e||0;this.Lf=null;this.type==Yb.Xf&&(this.data=Math.floor(this.data))}k.prototype.Ya=function(){23===this.type&&(this.qf=this.Rc.b.Lo(this.Mi,this.Rc.vc.parent));this.first&&this.first.Ya();this.wb&&this.wb.Ya();this.Jk&&this.Jk.Ya();
this.Le&&this.Le.Ya();if(this.P){var c,e;c=0;for(e=this.P.length;c<e;c++)this.P[c].Ya()}};var s=[],e=-1;k.prototype.iu=function(c){var l=this.P,n=this.Ta;n[0]=c;c=r();p(l,n,c);--e;this.yb.apply(this.b.Ld,n)};k.prototype.du=function(c){var l=this.me,n=this.Ta,d=this.P,b=this.Le,f=this.yb,m=this.Rc.se,a=l.Y(),g=a.Lc();if(!g.length)if(a.X.length)g=a.X;else{this.Ng?c.Ba(""):c.V(0);return}n[0]=c;c.Lf=l;c=r();p(d,n,c);b&&(b.get(c),c.lb()&&(m=c.data,g=l.d));--e;l=g.length;if(m>=l||m<=-l)m%=l;0>m&&(m+=l);
f.apply(g[m],n)};k.prototype.Pt=function(c){var l=this.me,n=this.Ta,d=this.P,b=this.Le,f=this.cd,m=this.yb,a=this.Rc.se,g=l.Y(),w=g.Lc();if(!w.length)if(g.X.length)w=g.X;else{this.Ng?c.Ba(""):c.V(0);return}n[0]=c;c.Lf=l;c=r();p(d,n,c);b&&(b.get(c),c.lb()&&(a=c.data,w=l.d));--e;d=w.length;if(a>=d||a<=-d)a%=d;0>a&&(a+=d);a=w[a];w=0;l.C&&(w=a.type.ig[l.de]);m.apply(a.L[f+w],n)};k.prototype.Xt=function(c){var l=this.Le,n=this.me,d=this.kr,b=this.Rc.se,f=n.Y(),m=f.Lc();if(!m.length)if(f.X.length)m=f.X;
else{this.Ng?c.Ba(""):c.V(0);return}if(l){f=r();l.get(f);if(f.lb()){b=f.data;n=n.d;b%=n.length;0>b&&(b+=n.length);d=n[b].kb[d];R(d)?c.Ba(d):c.D(d);--e;return}--e}l=m.length;if(b>=l||b<=-l)b%=l;0>b&&(b+=l);b=m[b];m=0;n.C&&(m=b.type.rj[n.de]);d=b.kb[d+m];R(d)?c.Ba(d):c.D(d)};k.prototype.Yt=function(c){c.type=Yb.Xf;c.data=this.value};k.prototype.Ut=function(c){c.type=Yb.Wf;c.data=this.value};k.prototype.gu=function(c){c.type=Yb.String;c.data=this.value};k.prototype.ju=function(c){this.first.get(c);c.lb()&&
(c.data=-c.data)};k.prototype.Nt=function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()&&l.lb()&&(c.data+=l.data,l.tg()&&c.Eg());--e};k.prototype.hu=function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()&&l.lb()&&(c.data-=l.data,l.tg()&&c.Eg());--e};k.prototype.bu=function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()&&l.lb()&&(c.data*=l.data,l.tg()&&c.Eg());--e};k.prototype.Rt=function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()&&l.lb()&&(c.data/=l.data,c.Eg());--e};
k.prototype.au=function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()&&l.lb()&&(c.data%=l.data,l.tg()&&c.Eg());--e};k.prototype.fu=function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()&&l.lb()&&(c.data=Math.pow(c.data,l.data),l.tg()&&c.Eg());--e};k.prototype.Ot=function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()?l.Kj()?c.Ba(c.data.toString()+l.data):c.data&&l.data?c.V(1):c.V(0):c.Kj()&&(c.data=l.Kj()?c.data+l.data:c.data+(Math.round(1E10*l.data)/1E10).toString());--e};k.prototype.eu=
function(c){this.first.get(c);var l=r();this.wb.get(l);c.lb()&&l.lb()&&(c.data||l.data?c.V(1):c.V(0));--e};k.prototype.Qt=function(c){this.first.get(c);c.data?this.wb.get(c):this.Jk.get(c)};k.prototype.St=function(c){this.first.get(c);var l=r();this.wb.get(l);c.V(c.data===l.data?1:0);--e};k.prototype.cu=function(c){this.first.get(c);var l=r();this.wb.get(l);c.V(c.data!==l.data?1:0);--e};k.prototype.Zt=function(c){this.first.get(c);var l=r();this.wb.get(l);c.V(c.data<l.data?1:0);--e};k.prototype.$t=
function(c){this.first.get(c);var l=r();this.wb.get(l);c.V(c.data<=l.data?1:0);--e};k.prototype.Vt=function(c){this.first.get(c);var l=r();this.wb.get(l);c.V(c.data>l.data?1:0);--e};k.prototype.Wt=function(c){this.first.get(c);var l=r();this.wb.get(l);c.V(c.data>=l.data?1:0);--e};k.prototype.Tt=function(c){var e=this.qf.uf();Q(e)?c.D(e):c.Ba(e)};Vb=k;q.prototype.tg=function(){return this.type===Yb.Wf};q.prototype.lb=function(){return this.type===Yb.Xf||this.type===Yb.Wf};q.prototype.Kj=function(){return this.type===
Yb.String};q.prototype.Eg=function(){this.tg()||(this.Kj()&&(this.data=parseFloat(this.data)),this.type=Yb.Wf)};q.prototype.V=function(c){this.type=Yb.Xf;this.data=Math.floor(c)};q.prototype.D=function(c){this.type=Yb.Wf;this.data=c};q.prototype.Ba=function(c){this.type=Yb.String;this.data=c};q.prototype.hn=function(c){Q(c)?(this.type=Yb.Wf,this.data=c):R(c)?(this.type=Yb.String,this.data=c.toString()):(this.type=Yb.Xf,this.data=0)};Ub=q;Yb={Xf:0,Wf:1,String:2}})();
function W(k){this.b=k;this.Zb=[]}W.prototype.Rb=function(){var k={},r,p,q,s,e,c,l,n;k.waits=[];var d=k.waits,b;r=0;for(p=this.Zb.length;r<p;r++){c=this.Zb[r];b={t:c.time,st:c.Jq,s:c.kn,ev:c.fg.W,sm:[],sols:{}};c.fg.Zc[c.$b]&&(b.act=c.fg.Zc[c.$b].W);q=0;for(s=c.ba.length;q<s;q++)b.sm.push(c.ba[q].W);for(e in c.Sb)if(c.Sb.hasOwnProperty(e)){l=this.b.q[parseInt(e,10)];n={sa:c.Sb[e].wk,insts:[]};q=0;for(s=c.Sb[e].he.length;q<s;q++)n.insts.push(c.Sb[e].he[q].uid);b.sols[l.W.toString()]=n}d.push(b)}return k};
W.prototype.mc=function(k){k=k.waits;var r,p,q,s,e,c,l,n,d,b,f;r=this.Zb.length=0;for(p=k.length;r<p;r++)if(c=k[r],n=this.b.jo[c.ev.toString()]){d=-1;q=0;for(s=n.Zc.length;q<s;q++)if(n.Zc[q].W===c.act){d=q;break}if(-1!==d){l={Sb:{},ba:[],ql:!1};l.time=c.t;l.Jq=c.st||"";l.kn=!!c.s;l.fg=n;l.$b=d;q=0;for(s=c.sm.length;q<s;q++)(n=this.b.Bj(c.sm[q]))&&l.ba.push(n);for(e in c.sols)if(c.sols.hasOwnProperty(e)&&(n=this.b.Bj(parseInt(e,10)))){d=c.sols[e];b={wk:d.sa,he:[]};q=0;for(s=d.insts.length;q<s;q++)(f=
this.b.lg(d.insts[q]))&&b.he.push(f);l.Sb[n.index.toString()]=b}this.Zb.push(l)}}};
(function(){function k(){}function r(){}function p(){}var q=W.prototype;k.prototype.Hr=function(){return!0};k.prototype.Jn=function(){return!0};k.prototype.ns=function(){return!0};k.prototype.xr=function(c,d,b){return Zb(c,d,b)};k.prototype.Ir=function(c,d,b){var e=this.b.jb(),m=e.ib,e=e.dp();c=this.b.tq(c);if(b<d)if(e)for(;d>=b&&!c.Za;--d)this.b.Nf(m.ba),c.index=d,m.Of(),this.b.Gd(m.ba);else for(;d>=b&&!c.Za;--d)c.index=d,m.Of();else if(e)for(;d<=b&&!c.Za;++d)this.b.Nf(m.ba),c.index=d,m.Of(),this.b.Gd(m.ba);
else for(;d<=b&&!c.Za;++d)c.index=d,m.Of();this.b.nq();return!1};var s=[],e=-1;k.prototype.Jr=function(c){var d=c.Y();e++;s.length===e&&s.push([]);var b=s[e];za(b,d.Lc());var f=this.b.jb(),m=f.ib,a=f.dp(),f=this.b.tq(),g,l,v,p,k,r,h=c.jc;if(a)for(a=0,g=b.length;a<g&&!f.Za;a++){this.b.Nf(m.ba);p=b[a];d=c.Y();d.ka=!1;d.d.length=1;d.d[0]=p;if(h)for(l=0,v=p.siblings.length;l<v;l++)k=p.siblings[l],r=k.type.Y(),r.ka=!1,r.d.length=1,r.d[0]=k;f.index=a;m.Of();this.b.Gd(m.ba)}else for(d.ka=!1,d.d.length=1,
a=0,g=b.length;a<g&&!f.Za;a++){p=b[a];d.d[0]=p;if(h)for(l=0,v=p.siblings.length;l<v;l++)k=p.siblings[l],r=k.type.Y(),r.ka=!1,r.d.length=1,r.d[0]=k;f.index=a;m.Of()}b.length=0;this.b.nq();e--;return!1};k.prototype.Gr=function(c){var d=this.b.Il(),b=d.T.Every_lastTime||0,e=this.b.kc.na;"undefined"===typeof d.T.Every_seconds&&(d.T.Every_seconds=c);var m=d.T.Every_seconds;if(e>=b+m)return d.T.Every_lastTime=b+m,e>=d.T.Every_lastTime+.04&&(d.T.Every_lastTime=e),d.T.Every_seconds=c,!0;e<b-.1&&(d.T.Every_lastTime=
e);return!1};k.prototype.Ar=function(c,d,b){return Zb(c.uf(),d,b)};k.prototype.Qr=function(c){return(c=this.b.Eh[c.toLowerCase()])&&c.Ch};k.prototype.Gn=function(){var c=this.b.jb();return c.sl?!1:!c.Ef};k.prototype.Kn=function(){return!0};k.prototype.Zr=function(){return!0};k.prototype.Vk=function(){return!0};k.prototype.os=function(){return!0};k.prototype.Uk=function(){return!0};k.prototype.or=function(c,d,b){return Ja(U(c),U(b))<=U(d)};k.prototype.Pr=function(c,d){return La(U(c),U(d))};k.prototype.Or=
function(c,d,b){c=Ha(c);d=Ha(d);b=Ha(b);return La(b,d)?La(c,d)&&!La(c,b):!(!La(c,d)&&La(c,b))};q.i=new k;r.prototype.Lr=function(c){this.b.Qh||this.b.kh||(this.b.kh=c)};r.prototype.Cr=function(c,d,b,e){if(d&&c&&(d=this.b.so(c,d,b,e))){this.b.gd++;var m;this.b.trigger(Object.getPrototypeOf(c.ma).i.Ri,d);if(d.jc)for(b=0,e=d.siblings.length;b<e;b++)m=d.siblings[b],this.b.trigger(Object.getPrototypeOf(m.type.ma).i.Ri,m);this.b.gd--;c=c.Y();c.ka=!1;c.d.length=1;c.d[0]=d;if(d.jc)for(b=0,e=d.siblings.length;b<
e;b++)m=d.siblings[b],c=m.type.Y(),c.ka=!1,c.d.length=1,c.d[0]=m}};r.prototype.Ks=function(c,d){0===c.Ni?Q(d)?c.re(d):c.re(parseFloat(d)):1===c.Ni&&c.re(d.toString())};r.prototype.nr=function(c,d){0===c.Ni?Q(d)?c.re(c.uf()+d):c.re(c.uf()+parseFloat(d)):1===c.Ni&&c.re(c.uf()+d.toString())};r.prototype.Ps=function(c,d){0===c.Ni&&(Q(d)?c.re(c.uf()-d):c.re(c.uf()-parseFloat(d)))};r.prototype.Js=function(c){0>c&&(c=0);this.b.cf=c};var c=[],l=[];r.prototype.Qs=function(e){if(!(0>e)){var d,b,f,m=this.b.jb(),
a;a=c.length?c.pop():{Sb:{},ba:[]};a.ql=!1;a.time=this.b.kc.na+e;a.Jq="";a.kn=!1;a.fg=m.ib;a.$b=m.$b+1;e=0;for(d=this.b.q.length;e<d;e++)f=this.b.q[e],b=f.Y(),b.ka&&-1===m.ib.ba.indexOf(f)||(a.ba.push(f),f=void 0,f=l.length?l.pop():{he:[]},f.wk=!1,f.wk=b.ka,za(f.he,b.d),a.Sb[e.toString()]=f);this.Zb.push(a);return!0}};r.prototype.Ds=function(){var c,d,b;c=0;for(d=this.b.Zk.length;c<d;c++)b=this.b.Zk[c],b.data=b.Dj};q.B=new r;p.prototype["int"]=function(c,d){R(d)?(c.V(parseInt(d,10)),isNaN(c.data)&&
(c.data=0)):c.V(d)};p.prototype["float"]=function(c,d){R(d)?(c.D(parseFloat(d)),isNaN(c.data)&&(c.data=0)):c.D(d)};p.prototype.random=function(c,d,b){void 0===b?c.D(Math.random()*d):c.D(Math.random()*(b-d)+d)};p.prototype.sqrt=function(c,d){c.D(Math.sqrt(d))};p.prototype.abs=function(c,d){c.D(Math.abs(d))};p.prototype.round=function(c,d){c.V(Math.round(d))};p.prototype.floor=function(c,d){c.V(Math.floor(d))};p.prototype.ceil=function(c,d){c.V(Math.ceil(d))};p.prototype.sin=function(c,d){c.D(Math.sin(U(d)))};
p.prototype.cos=function(c,d){c.D(Math.cos(U(d)))};p.prototype.tan=function(c,d){c.D(Math.tan(U(d)))};p.prototype.asin=function(c,d){c.D(Da(Math.asin(d)))};p.prototype.acos=function(c,d){c.D(Da(Math.acos(d)))};p.prototype.atan=function(c,d){c.D(Da(Math.atan(d)))};p.prototype.exp=function(c,d){c.D(Math.exp(d))};p.prototype.log10=function(c,d){c.D(Math.log(d)/Math.LN10)};p.prototype.max=function(c){var d=arguments[1];"number"!==typeof d&&(d=0);var b,e,m;b=2;for(e=arguments.length;b<e;b++)m=arguments[b],
"number"===typeof m&&d<m&&(d=m);c.D(d)};p.prototype.min=function(c){var d=arguments[1];"number"!==typeof d&&(d=0);var b,e,m;b=2;for(e=arguments.length;b<e;b++)m=arguments[b],"number"===typeof m&&d>m&&(d=m);c.D(d)};p.prototype.pf=function(c){c.D(this.b.pf)};p.prototype.cf=function(c){c.D(this.b.cf)};p.prototype.time=function(c){c.D(this.b.kc.na)};p.prototype.te=function(c){c.V(this.b.te)};p.prototype.fk=function(c){c.V(this.b.fk)};p.prototype.Dl=function(c){c.V(this.b.Dl)};p.prototype.sv=function(c,
d){var b,e,m;if(this.b.Dg.length)if(d){e=0;for(m=this.b.Dg.length;e<m;e++)if(b=this.b.Dg[e],b.name===d){c.V(b.index);return}c.V(0)}else b=this.b.Ko(),c.V(b?b.index:-1);else c.V(0)};p.prototype.m=function(c,d,b,e,m){c.D(Da(Ia(d,b,e,m)))};p.prototype.find=function(c,d,b){R(d)&&R(b)?c.V(d.search(new RegExp(ab(b),"i"))):c.V(-1)};p.prototype.left=function(c,d,b){c.Ba(R(d)?d.substr(0,b):"")};p.prototype.right=function(c,d,b){c.Ba(R(d)?d.substr(d.length-b):"")};p.prototype.Kw=function(c,d,b,e){R(d)&&R(e)?
(d=d.split(e),b=S(b),0>b||b>=d.length?c.Ba(""):c.Ba(d[b])):c.Ba("")};p.prototype.replace=function(c,d,b,e){R(d)&&R(b)&&R(e)?c.Ba(d.replace(new RegExp(ab(b),"gi"),e)):c.Ba(R(d)?d:"")};p.prototype.trim=function(c,d){c.Ba(R(d)?d.trim():"")};p.prototype.ht=function(c){var d=S(Math.random()*(arguments.length-1));c.hn(arguments[d+1])};p.prototype.ll=function(c){c.D(this.b.ll/1E3)};p.prototype.Bg=function(c){c.D(this.b.Bg)};q.wa=new p;q.mw=function(){var e,d,b,f,m,a,g=this.b.jb();e=0;for(b=this.Zb.length;e<
b;e++){f=this.Zb[e];if(-1===f.time){if(!f.kn)continue}else if(f.time>this.b.kc.na)continue;g.ib=f.fg;g.$b=f.$b;g.ab=0;for(d in f.Sb)f.Sb.hasOwnProperty(d)&&(m=this.b.q[parseInt(d,10)].Y(),a=f.Sb[d],m.ka=a.wk,za(m.d,a.he),m=a,m.he.length=0,l.push(m));f.fg.lw();this.b.jl(f.ba);f.ql=!0}d=e=0;for(b=this.Zb.length;e<b;e++)f=this.Zb[e],this.Zb[d]=f,f.ql?(Ra(f.Sb),f.ba.length=0,c.push(f)):d++;this.Zb.length=d}})();
(function(){kb=function(k,p){var q=k[1],s=k[3],e=k[4],c=k[5],l=k[6],n=k[7],d=k[8];p.i||(p.i={});p.B||(p.B={});p.wa||(p.wa={});var b=p.i,f=p.B,m=p.wa;s&&(b.Fn=function(a,b){return Zb(this.x,a,b)},b.cx=function(a,b){return Zb(this.y,a,b)},b.lx=function(){var a=this.j;this.xa();var b=this.Pa;return!(b.right<a.Ja||b.bottom<a.Ka||b.left>a.Va||b.top>a.Ua)},b.mx=function(){this.xa();var a=this.Pa,b=this.b.Ga;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.Ax=function(a,b,d){var c=this.Y(),
e=c.Lc();if(!e.length)return!1;var f=e[0],m=f,h=Oa(f.x,f.y,b,d),n,l,p;n=1;for(l=e.length;n<l;n++)if(f=e[n],p=Oa(f.x,f.y,b,d),0===a&&p<h||1===a&&p>h)h=p,m=f;c.ni(m);return!0},f.Un=function(a){this.x!==a&&(this.x=a,this.A())},f.Qx=function(a){this.y!==a&&(this.y=a,this.A())},f.Ox=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.A()},f.Hs=function(a,b){var d=a.Bu(this);if(d){var c;d.Ml?(c=d.Ml(b,!0),d=d.Ml(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.A()}},f.tx=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.A())},f.rx=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.A())},m.Rs=function(a){a.D(this.x)},m.Ss=function(a){a.D(this.y)},m.pf=function(a){a.D(this.b.Jl(this))});e&&(b.bx=function(a,b){return Zb(this.width,a,b)},b.Zw=function(a,b){return Zb(this.height,a,b)},f.Ls=function(a){this.width!==a&&(this.width=a,this.A())},f.Mx=function(a){this.height!==a&&(this.height=a,this.A())},f.Is=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.A()},m.Vn=function(a){a.D(this.width)},m.Hn=function(a){a.D(this.height)},m.Ww=function(a){this.xa();a.D(this.Pa.left)},m.Yw=function(a){this.xa();a.D(this.Pa.top)},m.Xw=function(a){this.xa();a.D(this.Pa.right)},m.Vw=function(a){this.xa();a.D(this.Pa.bottom)});c&&(b.or=function(a,b){return Ja(this.m,U(b))<=U(a)},b.Pr=function(a){return La(this.m,U(a))},b.Or=function(a,b){var d=Ha(a),c=Ha(b),e=Fa(this.m);return La(c,d)?La(e,d)&&
!La(e,c):!(!La(e,d)&&La(e,c))},f.Ix=function(a){a=U(Ea(a));isNaN(a)||this.m===a||(this.m=a,this.A())},f.Ex=function(a){0===a||isNaN(a)||(this.m+=U(a),this.m=Fa(this.m),this.A())},f.Fx=function(a){0===a||isNaN(a)||(this.m-=U(a),this.m=Fa(this.m),this.A())},f.Gx=function(a,b){var d=Ka(this.m,U(b),U(a));isNaN(d)||this.m===d||(this.m=d,this.A())},f.Hx=function(a,b,d){a=Ka(this.m,Math.atan2(d-this.y,b-this.x),U(a));isNaN(a)||this.m===a||(this.m=a,this.A())},f.Px=function(a,b){var d=Math.atan2(b-this.y,
a-this.x);isNaN(d)||this.m===d||(this.m=d,this.A())},m.Uw=function(a){a.D(Ga(this.m))});q||(b.$w=function(a,b,d){return Zb(this.kb[a],b,d)},b.jx=function(a){return this.kb[a]},b.Bx=function(a,b){var d=this.Y(),c=d.Lc();if(!c.length)return!1;var e=c[0],f=e,m=e.kb[b],h,n,l;h=1;for(n=c.length;h<n;h++)if(e=c[h],l=e.kb[b],0===a&&l<m||1===a&&l>m)m=l,f=e;d.ni(f);return!0},b.zx=function(a){var b,d,c,e,f;if(this.b.Il().Ej){f=this.Y();if(f.ka)for(f.ka=!1,f.d.length=0,f.X.length=0,c=this.d,b=0,d=c.length;b<
d;b++)e=c[b],e.uid===a?f.X.push(e):f.d.push(e);else{c=b=0;for(d=f.d.length;b<d;b++)e=f.d[b],f.d[c]=e,e.uid===a?f.X.push(e):c++;f.d.length=c}this.Be();return!!f.d.length}e=this.b.lg(a);if(!e)return!1;f=this.Y();if(!f.ka&&-1===f.d.indexOf(e))return!1;if(this.C)for(a=e.type.La,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.ni(e),this.Be(),!0}else if(e.type===this)return f.ni(e),this.Be(),!0;return!1},b.Ri=function(){return!0},b.$r=function(){return!0},f.Gs=function(a,b){var d=this.kb;Q(d[a])?d[a]=Q(b)?
b:parseFloat(b):R(d[a])&&(d[a]=R(b)?b:b.toString())},f.Tw=function(a,b){var d=this.kb;Q(d[a])?d[a]=Q(b)?d[a]+b:d[a]+parseFloat(b):R(d[a])&&(d[a]=R(b)?d[a]+b:d[a]+b.toString())},f.Rx=function(a,b){var d=this.kb;Q(d[a])&&(d[a]=Q(b)?d[a]-b:d[a]-parseFloat(b))},f.Jx=function(a,b){this.kb[a]=b?1:0},f.Sx=function(a){this.kb[a]=1-this.kb[a]},f.Fr=function(){this.b.ff(this)},f.Tr||(f.Tr=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.Wj(this,b,!0);this.Rd&&this.Rd();if(this.L)for(a=0,b=this.L.length;a<
b;++a)d=this.L[a],d.Rd&&d.Rd()}),m.gx=function(a){var b=a.Lf.d.length,d,c,e;d=0;for(c=this.b.dd.length;d<c;d++)e=this.b.dd[d],a.Lf.C?0<=e.type.La.indexOf(a.Lf)&&b++:e.type===a.Lf&&b++;a.V(b)},m.Dx=function(a){a.V(a.Lf.Y().Lc().length)},m.Tx=function(a){a.V(this.uid)},m.ix=function(a){a.V(this.Bh())},m.Rk||(m.Rk=function(a){a.Ba(JSON.stringify(this.b.bn(this,!0)))}));l&&(b.nx=function(){return this.visible},f.Tn=function(a){!a!==!this.visible&&(this.visible=a,this.b.ja=!0)},b.ax=function(a,b){return Zb(gb(100*
this.opacity),a,b)},f.Nx=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ja=!0)},m.Opacity=function(a){a.D(gb(100*this.opacity))});n&&(b.kx=function(a){return a?this.j===a:!1},b.Cx=function(a){var b=this.Y(),d=b.Lc();if(!d.length)return!1;var c=d[0],e=c,f,m;f=1;for(m=d.length;f<m;f++)if(c=d[f],0===a){if(c.j.index>e.j.index||c.j.index===e.j.index&&c.yd()>e.yd())e=c}else if(c.j.index<e.j.index||c.j.index===e.j.index&&c.yd()<e.yd())e=c;b.ni(e);return!0},f.wx=function(){var a=
this.j,b=a.d;b.length&&b[b.length-1]===this||(a.Mg(this,!1),a.fh(this,!1),this.b.ja=!0)},f.ux=function(){var a=this.j,b=a.d;b.length&&b[0]===this||(a.Mg(this,!1),a.bw(this),this.b.ja=!0)},f.vx=function(a){a&&a!=this.j&&(this.j.Mg(this,!0),this.j=a,a.fh(this,!0),this.b.ja=!0)},f.Vx=function(a,b){var d=0===a;if(b){var c=b.uu(this);c&&c.uid!==this.uid&&(this.j.index!==c.j.index&&(this.j.Mg(this,!0),this.j=c.j,c.j.fh(this,!0)),this.j.wv(this,c,d),this.b.ja=!0)}},m.qx=function(a){a.V(this.j.Tp)},m.ox=
function(a){a.Ba(this.j.name)},m.Ux=function(a){a.V(this.yd())});d&&(f.Kx=function(a,b){if(this.b.r){var d=this.type.Ll(b);if(!(0>d)){var c=1===a;this.Ae[d]!==c&&(this.Ae[d]=c,this.we(),this.b.ja=!0)}}},f.Lx=function(a,b,d){if(this.b.r){var c=this.type.Ll(a);0>c||(a=this.type.I[c],c=this.Sa[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.r.Fu(a.Cb,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.uc&&(this.b.ja=!0))))}})};Eb=function(){this.fl=this.cl=!0;this.type.Vi=!0;this.b.ja=!0;var k,p,q=this.dl;k=0;for(p=q.length;k<
p;++k)q[k](this);this.j.rd&&this.xa()};Fb=function(k){k&&this.dl.push(k)};Hb=function(){if(this.cl){var k=this.Pa,p=this.Gb;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.Mb*this.width,-this.Nb*this.height);this.m?(k.offset(-this.x,-this.y),p.Eq(k,this.m),p.offset(this.x,this.y),p.ko(k)):p.yi(k);k.normalize();this.cl=!1;this.Ow()}};var k=new ta(0,0,0,0);Ib=function(){if(this.j.rd){var r=this.j.pc,p=this.Pa;k.set(r.sc(p.left),r.tc(p.top),r.sc(p.right),r.tc(p.bottom));this.Wb.pj(k)||
(this.Wb.right<this.Wb.left?r.update(this,null,k):r.update(this,this.Wb,k),this.Wb.ph(k),this.j.oe=!0)}};Jb=function(){if(this.fl&&this.Dc){this.xa();var r=this.type.nh,p=this.Pa;k.set(r.sc(p.left),r.tc(p.top),r.sc(p.right),r.tc(p.bottom));this.Cc.pj(k)||(this.Cc.right<this.Cc.left?r.update(this,null,k):r.update(this,this.Cc,k),this.Cc.ph(k),this.fl=!1)}};Gb=function(k,p){return this.Pa.Lb(k,p)&&this.Gb.Lb(k,p)?this.la&&!this.la.sg()?(this.la.cg(this.width,this.height,this.m),this.la.Lb(k-this.x,
p-this.y)):!0:!1};Ab=function(){this.type.Pk();return this.xf};Kb=function(){this.j.zn();return this.sd};Lb=function(){this.fa.length=0;var k,p;k=0;for(p=this.Ae.length;k<p;k++)this.Ae[k]&&this.fa.push(this.type.I[k]);this.jr=!!this.fa.length};Bb=function(){return"Inst"+this.sq};nb=function(k){if(k&&k.jc&&k.type!=this){var p,q,s;p=0;for(q=k.siblings.length;p<q;p++)if(s=k.siblings[p],s.type==this)return s}k=this.Y().Lc();return k.length?k[0]:null};ob=function(k){var p=this.Y().Lc();return p.length?
p[k.Bh()%p.length]:null};mb=function(){if(this.Sg&&!this.C){var k,p;k=0;for(p=this.d.length;k<p;k++)this.d[k].xf=k;var q=k,s=this.b.dd;k=0;for(p=s.length;k<p;++k)s[k].type===this&&(s[k].xf=q++);this.Sg=!1}};yb=function(k){if(k<this.d.length)return this.d[k];k-=this.d.length;var p=this.b.dd,q,s;q=0;for(s=p.length;q<s;++q)if(p[q].type===this){if(0===k)return p[q];--k}return null};pb=function(){return this.Ze[this.ae]};qb=function(){this.ae++;this.ae===this.Ze.length?this.Ze.push(new lb(this)):this.Ze[this.ae].ka=
!0};rb=function(){this.ae++;this.ae===this.Ze.length&&this.Ze.push(new lb(this));var k=this.Ze[this.ae],p=this.Ze[this.ae-1];p.ka?k.ka=!0:(k.ka=!1,za(k.d,p.d),za(k.X,p.X))};sb=function(){this.ae--};tb=function(k){var p,q,s,e,c,l=0;if(!this.C)for(p=0,q=this.La.length;p<q;p++)for(c=this.La[p],s=0,e=c.$a.length;s<e;s++){if(k===c.$a[s].name)return this.T.lastBehIndex=l,c.$a[s];l++}p=0;for(q=this.$a.length;p<q;p++){if(k===this.$a[p].name)return this.T.lastBehIndex=l,this.$a[p];l++}return null};ub=function(k){return this.zj(k)?
this.T.lastBehIndex:-1};vb=function(k){var p,q;p=0;for(q=this.I.length;p<q;p++)if(this.I[p].name===k)return p;return-1};wb=function(){if(this.jc&&!this.C){var k,p,q,s,e,c,l;this.Pk();c=this.Y();var n=c.ka,d=(k=this.b.jb())&&k.ib&&k.ib.Qc;k=0;for(p=this.ec.length;k<p;k++)if(e=this.ec[k],e!==this&&(e.Pk(),l=e.Y(),l.ka=n,!n)){l.d.length=c.d.length;q=0;for(s=c.d.length;q<s;q++)l.d[q]=e.Mo(c.d[q].xf);if(d)for(l.X.length=c.X.length,q=0,s=c.X.length;q<s;q++)l.X[q]=e.Mo(c.X[q].xf)}}};zb=function(){return"Type"+
this.W};Zb=function(k,p,q){if("undefined"===typeof k||"undefined"===typeof q)return!1;switch(p){case 0:return k===q;case 1:return k!==q;case 2:return k<q;case 3:return k<=q;case 4:return k>q;case 5:return k>=q;default:return!1}}})();var gc={};function lc(k){this.b=k}
(function(){function k(){return n.length?n.pop():[]}function r(d){var b,c;b=0;for(c=d.length;b<c;b++)Array.isArray(d[b])&&r(d[b]);d.length=0;n.push(d)}function p(){}function q(){}function s(d,b){if(Q(d)&&Q(b))return d-b;var c=""+d,e=""+b;return c<e?-1:c>e?1:0}function e(){}var c=lc.prototype;c.za=function(d){this.ma=d;this.b=d.b};c.za.prototype.J=function(){};c.pa=function(d){this.type=d;this.b=d.b};var l=c.pa.prototype,n=[];Array.isArray||(Array.isArray=function(d){return"[object Array]"===Object.prototype.toString.call(d)});
l.J=function(){this.ta=this.n[0];this.Aa=this.n[1];this.Ra=this.n[2];this.Qb||(this.Ub=k());var d=this.Ub;d.length=this.ta;var b,c,e;for(b=0;b<this.ta;b++)for(d[b]||(d[b]=k()),d[b].length=this.Aa,c=0;c<this.Aa;c++)for(d[b][c]||(d[b][c]=k()),d[b][c].length=this.Ra,e=0;e<this.Ra;e++)d[b][c][e]=0;this.fc=[];this.wd=[];this.rf=[];this.Jc=-1};l.Se=function(){var d;for(d=0;d<this.ta;d++)r(this.Ub[d]);this.Ub.length=0};l.bd=function(d,b,c){d=Math.floor(d);b=Math.floor(b);c=Math.floor(c);return isNaN(d)||
0>d||d>this.ta-1||isNaN(b)||0>b||b>this.Aa-1||isNaN(c)||0>c||c>this.Ra-1?0:this.Ub[d][b][c]};l.set=function(d,b,c,e){d=Math.floor(d);b=Math.floor(b);c=Math.floor(c);isNaN(d)||0>d||d>this.ta-1||isNaN(b)||0>b||b>this.Aa-1||isNaN(c)||0>c||c>this.Ra-1||(this.Ub[d][b][c]=e)};l.su=function(){return JSON.stringify({c2array:!0,size:[this.ta,this.Aa,this.Ra],data:this.Ub})};l.Rb=function(){return{size:[this.ta,this.Aa,this.Ra],data:this.Ub}};l.mc=function(d){var b=d.size;this.ta=b[0];this.Aa=b[1];this.Ra=
b[2];this.Ub=d.data};l.Xe=function(d,b,c){0>d&&(d=0);0>b&&(b=0);0>c&&(c=0);if(this.ta!==d||this.Aa!==b||this.Ra!==c){this.ta=d;this.Aa=b;this.Ra=c;var e,a,g=this.Ub;g.length=d;for(d=0;d<this.ta;d++)for(ha(g[d])&&(g[d]=k()),g[d].length=b,e=0;e<this.Aa;e++)for(ha(g[d][e])&&(g[d][e]=k()),g[d][e].length=c,a=0;a<this.Ra;a++)ha(g[d][e][a])&&(g[d][e][a]=0)}};l.vu=function(){return 0<=this.Jc&&this.Jc<this.fc.length?this.fc[this.Jc]:0};l.hy=function(){return 0<=this.Jc&&this.Jc<this.wd.length?this.wd[this.Jc]:
0};l.iy=function(){return 0<=this.Jc&&this.Jc<this.rf.length?this.rf[this.Jc]:0};p.prototype.Fn=function(d,b,c){return Zb(this.bd(d,0,0),b,c)};l.rl=function(d){this.b.Nf(d.ba);d.Of();this.b.Gd(d.ba)};p.prototype.pr=function(d){var b=this.b.jb().ib;this.Jc++;var c=this.Jc;c===this.fc.length?(this.fc.push(0),this.wd.push(0),this.rf.push(0)):(this.fc[c]=0,this.wd[c]=0,this.rf[c]=0);switch(d){case 0:for(this.fc[c]=0;this.fc[c]<this.ta;this.fc[c]++)for(this.wd[c]=0;this.wd[c]<this.Aa;this.wd[c]++)for(this.rf[c]=
0;this.rf[c]<this.Ra;this.rf[c]++)this.rl(b);break;case 1:for(this.fc[c]=0;this.fc[c]<this.ta;this.fc[c]++)for(this.wd[c]=0;this.wd[c]<this.Aa;this.wd[c]++)this.rl(b);break;case 2:for(this.fc[c]=0;this.fc[c]<this.ta;this.fc[c]++)this.rl(b)}this.Jc--;return!1};p.prototype.Br=function(d){var b,c,e;for(b=0;b<this.ta;b++)for(c=0;c<this.Aa;c++)for(e=0;e<this.Ra;e++)if(this.Ub[b][c][e]===d)return!0;return!1};c.i=new p;q.prototype.sr=function(){var d,b,c;for(d=0;d<this.ta;d++)for(b=0;b<this.Aa;b++)for(c=
0;c<this.Ra;c++)this.Ub[d][b][c]=0};q.prototype.Is=function(d,b,c){this.Xe(d,b,c)};q.prototype.Un=function(d,b){this.set(d,0,0,b)};q.prototype.Ns=function(d){var b=0,c=0,e=this.Ub;if(0!==this.ta&&0!==this.Aa&&0!==this.Ra)switch(d){case 0:e.sort(function(a,b){return s(a[0][0],b[0][0])});break;case 1:for(;b<this.ta;b++)e[b].sort(function(a,b){return s(a[0],b[0])});break;case 2:for(;b<this.ta;b++)for(c=0;c<this.Aa;c++)e[b][c].sort(s)}};q.prototype.Er=function(d,b){var c=0,e=0;d=Math.floor(d);var a=this.Ub;
if(!(0>d))switch(b){case 0:if(d>=this.ta)break;r(a[d]);a.splice(d,1);this.ta--;break;case 1:if(d>=this.Aa)break;for(;c<this.ta;c++)r(a[c][d]),a[c].splice(d,1);this.Aa--;break;case 2:if(d>=this.Ra)break;for(;c<this.ta;c++)for(e=0;e<this.Aa;e++)a[c][e].splice(d,1);this.Ra--}};q.prototype.Nr=function(d,b,c){var e=0,a=0,g=0;b=Math.floor(b);var n=this.Ub;if(!(0>b))switch(c){case 0:if(b>this.ta)break;e=b;n.splice(e,0,k());for(n[e].length=this.Aa;a<this.Aa;a++)for(n[e][a]=k(),n[e][a].length=this.Ra,g=0;g<
this.Ra;g++)n[e][a][g]=d;this.ta++;break;case 1:if(b>this.Aa)break;for(;e<this.ta;e++)for(a=b,n[e].splice(a,0,k()),n[e][a].length=this.Ra,g=0;g<this.Ra;g++)n[e][a][g]=d;this.Aa++;break;case 2:if(b>this.Ra)break;for(;e<this.ta;e++)for(a=0;a<this.Aa;a++)n[e][a].splice(b,0,d);this.Ra++}};q.prototype.In=function(d){var b;try{b=JSON.parse(d)}catch(c){return}b.c2array&&(d=b.size,this.ta=d[0],this.Aa=d[1],this.Ra=d[2],this.Ub=b.data)};c.B=new q;e.prototype.qr=function(d,b,c,e){d.hn(this.bd(b,c||0,e||0))};
e.prototype.Vn=function(c){c.V(this.ta)};e.prototype.Hn=function(c){c.V(this.Aa)};e.prototype.Dr=function(c){c.V(this.vu())};e.prototype.Rk=function(c){c.Ba(this.su())};c.wa=new e})();function mc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function r(a){a=a.toLowerCase();return T.hasOwnProperty(a)&&T[a].length?T[a][0].yc():x.destination}function p(){return x.createGain?x.createGain():x.createGainNode()}function q(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function s(a){a.start?a.start(0):a.noteOn(0)}function e(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function l(a,
b,c,d,e,g){this.type="filter";this.Bb=[a,b,c,d,e,g];this.Z=p();this.H=p();this.H.gain.value=g;this.F=p();this.F.gain.value=1-g;this.bb=x.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?a:uc[a];this.bb.frequency.value=b;this.bb.detune&&(this.bb.detune.value=c);this.bb.Q.value=d;this.bb.gain.value=e;this.Z.connect(this.bb);this.Z.connect(this.F);this.bb.connect(this.H)}function n(a,b,c){this.type="delay";this.Bb=[a,b,c];this.Z=p();this.H=p();this.H.gain.value=c;this.F=p();this.F.gain.value=
1-c;this.di=p();this.Ic=q(a);this.Ic.delayTime.value=a;this.mj=p();this.mj.gain.value=b;this.Z.connect(this.di);this.Z.connect(this.F);this.di.connect(this.H);this.di.connect(this.Ic);this.Ic.connect(this.mj);this.mj.connect(this.di)}function d(a,b,c,d){this.type="convolve";this.Bb=[b,c,d];this.Z=p();this.H=p();this.H.gain.value=c;this.F=p();this.F.gain.value=1-c;this.lf=x.createConvolver();a&&(this.lf.normalize=b,this.lf.buffer=a);this.Z.connect(this.lf);this.Z.connect(this.F);this.lf.connect(this.H)}
function b(a,b,c,d,e){this.type="flanger";this.Bb=[a,b,c,d,e];this.Z=p();this.F=p();this.F.gain.value=1-e/2;this.H=p();this.H.gain.value=e/2;this.sj=p();this.sj.gain.value=d;this.Ic=q(a+b);this.Ic.delayTime.value=a;this.ub=x.createOscillator();this.ub.frequency.value=c;this.oc=p();this.oc.gain.value=b;this.Z.connect(this.Ic);this.Z.connect(this.F);this.Ic.connect(this.H);this.Ic.connect(this.sj);this.sj.connect(this.Ic);this.ub.connect(this.oc);this.oc.connect(this.Ic.delayTime);s(this.ub)}function f(a,
b,c,d,e,g){this.type="phaser";this.Bb=[a,b,c,d,e,g];this.Z=p();this.F=p();this.F.gain.value=1-g/2;this.H=p();this.H.gain.value=g/2;this.bb=x.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?7:"allpass";this.bb.frequency.value=a;this.bb.detune&&(this.bb.detune.value=b);this.bb.Q.value=c;this.ub=x.createOscillator();this.ub.frequency.value=e;this.oc=p();this.oc.gain.value=d;this.Z.connect(this.bb);this.Z.connect(this.F);this.bb.connect(this.H);this.ub.connect(this.oc);this.oc.connect(this.bb.frequency);
s(this.ub)}function m(a){this.type="gain";this.Bb=[a];this.ca=p();this.ca.gain.value=a}function a(a,b){this.type="tremolo";this.Bb=[a,b];this.ca=p();this.ca.gain.value=1-b/2;this.ub=x.createOscillator();this.ub.frequency.value=a;this.oc=p();this.oc.gain.value=b/2;this.ub.connect(this.oc);this.oc.connect(this.ca.gain);s(this.ub)}function g(a,b){this.type="ringmod";this.Bb=[a,b];this.Z=p();this.H=p();this.H.gain.value=b;this.F=p();this.F.gain.value=1-b;this.vi=p();this.vi.gain.value=0;this.ub=x.createOscillator();
this.ub.frequency.value=a;this.ub.connect(this.vi.gain);s(this.ub);this.Z.connect(this.vi);this.Z.connect(this.F);this.vi.connect(this.H)}function w(a,b,c,d,e){this.type="distortion";this.Bb=[a,b,c,d,e];this.Z=p();this.nk=p();this.mk=p();this.uw(c,Math.pow(10,d/20));this.H=p();this.H.gain.value=e;this.F=p();this.F.gain.value=1-e;this.Qk=x.createWaveShaper();this.kj=new Float32Array(65536);this.qu(a,b);this.Qk.kj=this.kj;this.Z.connect(this.nk);this.Z.connect(this.F);this.nk.connect(this.Qk);this.Qk.connect(this.mk);
this.mk.connect(this.H)}function v(a,b,c,d,e){this.type="compressor";this.Bb=[a,b,c,d,e];this.ca=x.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(g){}}function u(a,b){this.type="analyser";this.Bb=[a,b];this.ca=x.createAnalyser();this.ca.fftSize=a;this.ca.smoothingTimeConstant=b;this.ou=new Float32Array(this.ca.frequencyBinCount);this.Hq=new Uint8Array(a);this.mi=0}function N(){this.G=null;this.Yj=
0;this.$e=[];this.Bm=this.Nj=this.Mj=0}function E(a,b){this.src=a;this.U=C;this.hd=b;this.co=!1;var c=this;this.zm=this.Mm=null;this.Kg=[];this.xk=0;this.Dn=this.zl=this.Pq=this.ik=!1;1===C&&b&&(this.U=0,this.Mm=p());this.jf=this.qa=null;var d;switch(this.U){case 0:this.qa=new Audio;this.qa.addEventListener("canplaythrough",function(){c.Dn=!0});1===C&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Pq=!0,this.qa.addEventListener("canplay",function(){c.zm||(c.zm=x.createMediaElementSource(c.qa),
c.zm.connect(c.Mm))}));this.qa.autoplay=!1;this.qa.ty="auto";this.qa.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.jf=d.response;c.nt()};d.onerror=function(){c.zl=!0};d.send();break;case 2:this.qa=!0;break;case 3:this.qa=!0}}function h(a,b){var c=this;this.tag=b;this.Za=this.xd=!0;this.src=a.src;this.buffer=a;this.U=C;this.hd=a.hd;this.playbackRate=1;this.kl=!0;this.Nc=this.pe=!1;this.Xb=0;this.Oh=this.ug=this.Cd=!1;this.volume=1;this.Af=
1===A&&!this.hd||2===A;this.Hg=1;this.startTime=this.Af?J.kc.na:J.Qd.na;this.Xa=this.cb=null;this.Ed=!1;this.Wa=null;this.gq=this.fq=this.dq=this.cq=this.iq=this.hq=0;this.k=null;var d=!1;1!==this.U||0!==this.buffer.U||this.buffer.Pq||(this.U=0);switch(this.U){case 0:this.hd?(this.k=a.qa,d=!a.co,a.co=!0):(this.k=new Audio,this.k.autoplay=!1,this.k.src=a.qa.src,d=!0);d&&this.k.addEventListener("ended",function(){ca=c.tag;c.Za=!0;J.trigger(mc.prototype.i.Tk,F)});break;case 1:this.cb=p();this.cb.connect(r(b));
1===this.buffer.U?a.qa&&(this.k=x.createBufferSource(),this.k.buffer=a.qa,this.k.connect(this.cb)):(this.k=this.buffer.qa,this.buffer.Mm.connect(this.cb));break;case 2:this.k=new window.Media(K+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.kl=!0,c.Za=!0,ca=c.tag,J.trigger(mc.prototype.i.Tk,F))});break;case 3:this.k=!0}}function t(a,b){T.hasOwnProperty(a)?T[a].push(b):T[a]=[b];var c,d,e,g,h=x.destination;if(T.hasOwnProperty(a)&&(e=T[a],e.length))for(h=e[0].yc(),c=0,d=e.length;c<
d;c++)g=e[c],c+1===d?g.Ec(x.destination):g.Ec(e[c+1].yc());Ma.length=0;if(a.length)for(c=0,d=B.length;c<d;c++)e=B[c],hb(a,e.tag)&&Ma.push(e);else G&&!G.wf()&&(Ma.length=1,Ma[0]=G);c=0;for(d=Ma.length;c<d;c++)Ma[c].hw(h);fa&&xb===a&&(fa.disconnect(),fa.connect(h))}function D(){}function Y(){}var z=mc.prototype;z.za=function(a){this.ma=a;this.b=a.b};z.za.prototype.J=function(){};var J=null,F=null,ca="",K="",C=0,x=null,V=[],B=[],G=null,y=!1,A=0,O=!1,H=1,L=0,I=0,qa=1,P=1,ua=10,ka=1E4,xa=1,fa=null,xb=
"",Ta=!1,Ua=[],T={},uc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");l.prototype.Ec=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};l.prototype.remove=function(){this.Z.disconnect();this.bb.disconnect();this.H.disconnect();this.F.disconnect()};l.prototype.yc=function(){return this.Z};n.prototype.Ec=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};n.prototype.remove=function(){this.Z.disconnect();
this.di.disconnect();this.Ic.disconnect();this.mj.disconnect();this.H.disconnect();this.F.disconnect()};n.prototype.yc=function(){return this.Z};d.prototype.Ec=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};d.prototype.remove=function(){this.Z.disconnect();this.lf.disconnect();this.H.disconnect();this.F.disconnect()};d.prototype.yc=function(){return this.Z};b.prototype.Ec=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};
b.prototype.remove=function(){this.Z.disconnect();this.Ic.disconnect();this.ub.disconnect();this.oc.disconnect();this.F.disconnect();this.H.disconnect();this.sj.disconnect()};b.prototype.yc=function(){return this.Z};f.prototype.Ec=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};f.prototype.remove=function(){this.Z.disconnect();this.bb.disconnect();this.ub.disconnect();this.oc.disconnect();this.F.disconnect();this.H.disconnect()};f.prototype.yc=function(){return this.Z};
m.prototype.Ec=function(a){this.ca.disconnect();this.ca.connect(a)};m.prototype.remove=function(){this.ca.disconnect()};m.prototype.yc=function(){return this.ca};a.prototype.Ec=function(a){this.ca.disconnect();this.ca.connect(a)};a.prototype.remove=function(){this.ub.disconnect();this.oc.disconnect();this.ca.disconnect()};a.prototype.yc=function(){return this.ca};g.prototype.Ec=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};g.prototype.remove=function(){this.ub.disconnect();
this.vi.disconnect();this.Z.disconnect();this.H.disconnect();this.F.disconnect()};g.prototype.yc=function(){return this.Z};w.prototype.uw=function(a,b){.01>a&&(a=.01);this.nk.gain.value=a;this.mk.gain.value=Math.pow(1/a,.6)*b};w.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};w.prototype.qu=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,c,d),this.kj[32768+g]=e,this.kj[32768-
g-1]=-e};w.prototype.Ec=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};w.prototype.remove=function(){this.Z.disconnect();this.nk.disconnect();this.Qk.disconnect();this.mk.disconnect();this.H.disconnect();this.F.disconnect()};w.prototype.yc=function(){return this.Z};v.prototype.Ec=function(a){this.ca.disconnect();this.ca.connect(a)};v.prototype.remove=function(){this.ca.disconnect()};v.prototype.yc=function(){return this.ca};u.prototype.Eb=function(){this.ca.getFloatFrequencyData(this.ou);
this.ca.getByteTimeDomainData(this.Hq);for(var a=this.ca.fftSize,b=0,c=this.mi=0,d=0;b<a;b++)d=(this.Hq[b]-128)/128,0>d&&(d=-d),this.mi<d&&(this.mi=d),c+=d*d;this.mi=k(this.mi);k(Math.sqrt(c/a))};u.prototype.Ec=function(a){this.ca.disconnect();this.ca.connect(a)};u.prototype.remove=function(){this.ca.disconnect()};u.prototype.yc=function(){return this.ca};N.prototype.wi=function(a){if(this.G=a)this.Mj=this.G.x,this.Nj=this.G.y;this.$e.length=0};N.prototype.Cj=function(){return!!this.G};N.prototype.Eb=
function(a){this.G&&0!==a&&(this.Bm=Ia(this.Mj,this.Nj,this.G.x,this.G.y),a=Oa(this.Mj,this.Nj,this.G.x,this.G.y)/a,4>this.$e.length||this.$e.shift(),this.$e.push(a),this.Mj=this.G.x,this.Nj=this.G.y)};N.prototype.Ro=function(){if(!this.$e.length)return 0;var a,b,c=0;a=0;for(b=this.$e.length;a<b;a++)c+=this.$e[a];return c/this.$e.length};N.prototype.Ql=function(){return Math.cos(this.Bm)*this.Ro()};N.prototype.Rl=function(){return Math.sin(this.Bm)*this.Ro()};var sc=!1;E.prototype.nt=function(){if(!this.qa&&
this.jf){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.jf,function(b){a.qa=b;a.jf=null;var c,d,e;if(ha(a.jk)||O)ha(a.fj)||(c=a.fj.lf,c.normalize=a.Sp,c.buffer=b);else if(a.Kg.length){c=0;for(d=a.Kg.length;c<d;c++){b=a.Kg[c];e=new h(a,b.Tq);e.gn(!0);if("undefined"!==typeof b.Up&&(b.G=J.lg(b.Up),!b.G))continue;if(b.G){var g=Na(b.G.x,b.G.y,-b.G.j.eb(),L,I,!0),f=Na(b.G.x,b.G.y,-b.G.j.eb(),L,I,!1);e.dn(g,f,Da(b.G.m-b.G.j.eb()),b.Wl,b.Dm,b.Gm);e.wi(b.G)}else e.dn(b.x,b.y,b.Ts,b.Wl,b.Dm,b.Gm);e.play(a.xm,
a.Cn,a.xk);a.ik&&e.pause();B.push(e)}a.Kg.length=0}else e=new h(a,a.jk),e.play(a.xm,a.Cn,a.xk),a.ik&&e.pause(),B.push(e)},function(){a.zl=!0});else if(this.qa=x.createBuffer(this.jf,!1),this.jf=null,ha(this.jk)||O)ha(this.fj)||(b=this.fj.lf,b.normalize=this.Sp,b.buffer=this.qa);else{var b=new h(this,this.jk);b.play(this.xm,this.Cn,this.xk);this.ik&&b.pause();B.push(b)}}};E.prototype.cp=function(){switch(this.U){case 0:var a=4<=this.qa.readyState;a&&(this.Dn=!0);return a||this.Dn;case 1:return!!this.jf||
!!this.qa;case 2:return!0;case 3:return!0}return!1};E.prototype.hv=function(){switch(this.U){case 0:return this.cp();case 1:return!!this.qa;case 2:return!0;case 3:return!0}return!1};E.prototype.Xu=function(){switch(this.U){case 0:return!!this.qa.error;case 1:return this.zl}return!1};h.prototype.wf=function(){var a;switch(this.U){case 0:return this.k.ended;case 1:if(1===this.buffer.U){if(!this.xd&&!this.Za&&this.k.loop||this.Nc)return!1;a=this.Af?J.kc.na:J.Qd.na;return a-this.startTime>this.buffer.qa.duration}return this.k.ended;
case 2:return this.kl;case 3:!0}return!0};h.prototype.et=function(){return this.xd||this.Za?!0:this.wf()};h.prototype.gn=function(a){1===C&&(!this.Ed&&a?this.cb&&(this.Xa||(this.Xa=x.createPanner(),this.Xa.panningModel="number"===typeof this.Xa.panningModel?qa:["equalpower","HRTF","soundfield"][qa],this.Xa.distanceModel="number"===typeof this.Xa.distanceModel?P:["linear","inverse","exponential"][P],this.Xa.refDistance=ua,this.Xa.maxDistance=ka,this.Xa.rolloffFactor=xa),this.cb.disconnect(),this.cb.connect(this.Xa),
this.Xa.connect(r(this.tag)),this.Ed=!0):this.Ed&&!a&&this.cb&&(this.Xa.disconnect(),this.cb.disconnect(),this.cb.connect(r(this.tag)),this.Ed=!1))};h.prototype.dn=function(a,b,c,d,e,g){this.Ed&&1===C&&(this.Xa.setPosition(a,b,0),this.Xa.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.Xa.coneInnerAngle=d,this.Xa.coneOuterAngle=e,this.Xa.coneOuterGain=g,this.hq=a,this.iq=b,this.cq=c,this.dq=d,this.fq=e,this.gq=g)};h.prototype.wi=function(a){this.Ed&&1===C&&(this.Wa||(this.Wa=new N),this.Wa.wi(a))};
h.prototype.Eb=function(a){if(this.Ed&&1===C&&this.Wa&&this.Wa.Cj()&&this.qg()){this.Wa.Eb(a);a=this.Wa.G;var b=Na(a.x,a.y,-a.j.eb(),L,I,!0),c=Na(a.x,a.y,-a.j.eb(),L,I,!1);this.Xa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Wa.G.m&&(b=a.m-a.j.eb(),this.Xa.setOrientation(Math.cos(b),Math.sin(b),0));b=Na(this.Wa.Ql(),this.Wa.Rl(),-a.j.eb(),0,0,!0);c=Na(this.Wa.Ql(),this.Wa.Rl(),-a.j.eb(),0,0,!1);this.Xa.setVelocity(b,c,0)}};h.prototype.play=function(a,b,c){var d=this.k;this.Cd=a;this.volume=b;
c=c||0;switch(this.U){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*H&&(d.volume=b*H);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(g){}if(this.hd&&Ta&&!J.Bd)Ua.push(this);else try{this.k.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.Hg=1;if(1===this.buffer.U)this.xd||(this.k=x.createBufferSource(),this.k.buffer=this.buffer.qa,this.k.connect(this.cb)),
this.k.loop=a,this.cb.gain.value=b*H,0===c?s(this.k):e(this.k,c,this.tf());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);this.cb.gain.value=b*H;if(d.currentTime!==c)try{d.currentTime=c}catch(f){}this.hd&&Ta&&!J.Bd?Ua.push(this):d.play()}break;case 2:(!this.xd&&this.Za||0!==c)&&d.seekTo(c);d.play();this.kl=!1;break;case 3:J.zb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Af?J.kc.na:J.Qd.na)-c;this.Nc=this.Za=
this.xd=!1};h.prototype.stop=function(){switch(this.U){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.U?c(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:J.zb&&AppMobi.context.stopSound(this.src)}this.Za=!0;this.Nc=!1};h.prototype.pause=function(){if(!(this.xd||this.Za||this.wf()||this.Nc)){switch(this.U){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.U?(this.Xb=this.Ol(),this.Cd&&(this.Xb%=this.tf()),c(this.k)):this.k.paused||this.k.pause();
break;case 2:this.k.pause();break;case 3:J.zb&&AppMobi.context.stopSound(this.src)}this.Nc=!0}};h.prototype.kw=function(){if(!(this.xd||this.Za||this.wf())&&this.Nc){switch(this.U){case 0:this.k.play();break;case 1:1===this.buffer.U?(this.k=x.createBufferSource(),this.k.buffer=this.buffer.qa,this.k.connect(this.cb),this.k.loop=this.Cd,this.cb.gain.value=H*this.volume*this.Hg,this.startTime=(this.Af?J.kc.na:J.Qd.na)-this.Xb,e(this.k,this.Xb,this.tf())):this.k.play();break;case 2:this.k.play();break;
case 3:J.zb&&AppMobi.context.resumeSound(this.src)}this.Nc=!1}};h.prototype.seek=function(a){if(!(this.xd||this.Za||this.wf()))switch(this.U){case 0:try{this.k.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.U)this.Nc?this.Xb=a:(this.pause(),this.Xb=a,this.kw());else try{this.k.currentTime=a}catch(c){}break;case 3:J.zb&&AppMobi.context.seekSound(this.src,a)}};h.prototype.hw=function(a){1===this.U&&(this.Ed?(this.Xa.disconnect(),this.Xa.connect(a)):(this.cb.disconnect(),this.cb.connect(a)))};
h.prototype.tf=function(){switch(this.U){case 0:if("undefined"!==typeof this.k.duration)return this.k.duration;break;case 1:return this.buffer.qa.duration;case 2:return this.k.getDuration();case 3:if(J.zb)return AppMobi.context.getDurationSound(this.src)}return 0};h.prototype.Ol=function(){var a=this.tf(),b=0;switch(this.U){case 0:"undefined"!==typeof this.k.currentTime&&(b=this.k.currentTime);break;case 1:if(1===this.buffer.U){if(this.Nc)return this.Xb;b=(this.Af?J.kc.na:J.Qd.na)-this.startTime}else"undefined"!==
typeof this.k.currentTime&&(b=this.k.currentTime);break;case 3:J.zb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Cd&&b>a&&(b=a);return b};h.prototype.qg=function(){return!this.Nc&&!this.xd&&!this.Za&&!this.wf()};h.prototype.Mw=function(){var a=this.volume*H;switch(this.U){case 0:this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:this.cb.gain.value=a*this.Hg}};h.prototype.oj=function(a){switch(this.U){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:this.Hg=a?0:
1,this.cb.gain.value=H*this.volume*this.Hg}};h.prototype.vw=function(){this.ug=!0;this.oj(this.ug||this.Oh)};h.prototype.Bq=function(a){this.Oh=!!a;this.oj(this.ug||this.Oh)};h.prototype.hr=function(){var a=this.playbackRate;this.Af&&(a*=J.cf);switch(this.U){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.U?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};h.prototype.xw=function(a){switch(this.U){case 0:a?
this.qg()?(this.k.pause(),this.pe=!0):this.pe=!1:this.pe&&this.k.play();break;case 1:a?this.qg()?(1===this.buffer.U?(this.Xb=this.Ol(),this.Cd&&(this.Xb%=this.tf()),c(this.k)):this.k.pause(),this.pe=!0):this.pe=!1:this.pe&&(1===this.buffer.U?(this.k=x.createBufferSource(),this.k.buffer=this.buffer.qa,this.k.connect(this.cb),this.k.loop=this.Cd,this.cb.gain.value=H*this.volume*this.Hg,this.startTime=(this.Af?J.kc.na:J.Qd.na)-this.Xb,e(this.k,this.Xb,this.tf())):this.k.play());break;case 2:a?this.qg()?
(this.k.pause(),this.pe=!0):this.pe=!1:this.pe&&this.k.play()}};z.pa=function(a){this.type=a;J=this.b=a.b;F=this;this.Ob=null;this.Wh=-600;!(this.b.Lj||this.b.Fj&&(this.b.Kh||this.b.Gj))||this.b.Lh||this.b.Ma||this.b.em||(Ta=!0);x=null;"undefined"!==typeof AudioContext?(C=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(C=1,x=new webkitAudioContext);(this.b.Lj&&1===C||Ta)&&document.addEventListener("touchstart",function(){var a,b,c;!sc&&x&&(a=x.createBuffer(1,1,22050),b=x.createBufferSource(),
b.buffer=a,b.connect(x.destination),s(b),sc=!0);if(Ta){if(!O)for(a=0,b=Ua.length;a<b;++a)c=Ua[a],c.Za||c.Nc||c.k.play();Ua.length=0}},!0);1!==C&&(this.b.Mc&&"undefined"!==typeof window.Media?C=2:this.b.pg&&(C=3));2===C&&(K=location.href,a=K.lastIndexOf("/"),-1<a&&(K=K.substr(0,a+1)),K=K.replace("file://",""));if(this.b.fp&&this.b.jv&&"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.ff(this);
else{if(this.b.zb)y=this.b.Fj;else try{y=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){y=!1}this.b.Kk(this)}};var ra=z.pa.prototype;ra.J=function(){this.b.bg=this;A=this.n[0];this.qe=this.n[1];this.Xv=0!==this.n[2];qa=this.n[3];P=this.n[4];this.Wh=-this.n[5];ua=this.n[6];ka=this.n[7];xa=this.n[8];this.Ob=new N;var a=this.b.N||this.b.width,b=this.b.M||this.b.height;1===C&&(x.listener.speedOfSound=this.n[9],x.listener.dopplerFactor=this.n[10],x.listener.setPosition(a/2,b/2,this.Wh),
x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){fa&&fa.disconnect();xb=b.toLowerCase();fa=x.createMediaStreamSource(a);fa.connect(r(xb))});this.b.bo(function(a){F.Uv(a)});var c=this;this.b.$n(function(a){c.Im(a)})};ra.Im=function(a){var b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.Wa&&d.Wa.G===a&&(d.Wa.G=null,d.Ed&&d.qg()&&d.Cd&&d.stop());this.Ob.G===a&&(this.Ob.G=null)};ra.Rb=function(){var a={silent:O,masterVolume:H,listenerZ:this.Wh,listenerUid:this.Ob.Cj()?this.Ob.G.uid:
-1,playing:[],effects:{}},b=a.playing,c,d,e,g,h,f;c=0;for(d=B.length;c<d;c++)e=B[c],!e.qg()||3===this.qe||e.hd&&1===this.qe||!e.hd&&2===this.qe||(g=e.Ol(),e.Cd&&(g%=e.tf()),g={tag:e.tag,buffersrc:e.buffer.src,is_music:e.hd,playbackTime:g,volume:e.volume,looping:e.Cd,muted:e.ug,playbackRate:e.playbackRate,paused:e.Nc,resume_position:e.Xb},e.Ed&&(g.pan={},f=g.pan,e.Wa&&e.Wa.Cj()?f.objUid=e.Wa.G.uid:(f.x=e.hq,f.y=e.iq,f.a=e.cq),f.ia=e.dq,f.oa=e.fq,f.og=e.gq),b.push(g));b=a.effects;for(h in T)if(T.hasOwnProperty(h)){e=
[];c=0;for(d=T[h].length;c<d;c++)e.push({type:T[h][c].type,params:T[h][c].Bb});b[h]=e}return a};var Va=[];ra.mc=function(c){var e=c.silent;H=c.masterVolume;this.Wh=c.listenerZ;this.Ob.wi(null);var h=c.listenerUid;-1!==h&&(this.Ob.Yj=h,Va.push(this.Ob));var h=c.playing,k,p,s,E,q,r,D,Y,F,z,x;if(3!==this.qe)for(k=0,p=B.length;k<p;k++)F=B[k],F.hd&&1===this.qe||(F.hd||2!==this.qe)&&F.stop();for(q in T)if(T.hasOwnProperty(q))for(k=0,p=T[q].length;k<p;k++)T[q][k].remove();Ra(T);for(q in c.effects)if(c.effects.hasOwnProperty(q))for(r=
c.effects[q],k=0,p=r.length;k<p;k++)switch(s=r[k].type,z=r[k].params,s){case "filter":t(q,new l(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "delay":t(q,new n(z[0],z[1],z[2]));break;case "convolve":s=z[2];F=this.yj(s,!1);F.qa?s=new d(F.qa,z[0],z[1],s):(s=new d(null,z[0],z[1],s),F.Sp=z[0],F.fj=s);t(q,s);break;case "flanger":t(q,new b(z[0],z[1],z[2],z[3],z[4]));break;case "phaser":t(q,new f(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "gain":t(q,new m(z[0]));break;case "tremolo":t(q,new a(z[0],z[1]));break;
case "ringmod":t(q,new g(z[0],z[1]));break;case "distortion":t(q,new w(z[0],z[1],z[2],z[3],z[4]));break;case "compressor":t(q,new v(z[0],z[1],z[2],z[3],z[4]));break;case "analyser":t(q,new u(z[0],z[1]))}k=0;for(p=h.length;k<p;k++)3===this.qe||(c=h[k],s=c.buffersrc,E=c.is_music,q=c.tag,r=c.playbackTime,D=c.looping,Y=c.volume,x=(z=c.pan)&&z.hasOwnProperty("objUid")?z.objUid:-1,E&&1===this.qe)||!E&&2===this.qe||((F=this.Ho(s,q,E,D,Y))?(F.Xb=c.resume_position,F.gn(!!z),F.play(D,Y,r),F.hr(),F.Mw(),F.oj(F.ug||
F.Oh),c.paused&&F.pause(),c.muted&&F.vw(),F.oj(F.ug||F.Oh),z&&(-1!==x?(F.Wa=F.Wa||new N,F.Wa.Yj=x,Va.push(F.Wa)):F.dn(z.x,z.y,z.a,z.ia,z.oa,z.og))):(F=this.yj(s,E),F.xk=r,F.ik=c.paused,z&&(-1!==x?F.Kg.push({Up:x,Wl:z.ia,Dm:z.oa,Gm:z.og,Tq:q}):F.Kg.push({x:z.x,y:z.y,Ts:z.a,Wl:z.ia,Dm:z.oa,Gm:z.og,Tq:q}))));if(e&&!O){k=0;for(p=B.length;k<p;k++)B[k].Bq(!0);O=!0}else if(!e&&O){k=0;for(p=B.length;k<p;k++)B[k].Bq(!1);O=!1}};ra.Rd=function(){var a,b,c,d;a=0;for(b=Va.length;a<b;a++)c=Va[a],d=this.b.lg(c.Yj),
c.wi(d),c.Yj=-1,d&&(L=d.x,I=d.y);Va.length=0};ra.Uv=function(a){if(!this.Xv){!a&&x&&x.resume&&x.resume();var b,c;b=0;for(c=B.length;b<c;b++)B[b].xw(a);a&&x&&x.suspend&&x.suspend()}};ra.Eb=function(){var a=this.b.pf,b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.Eb(a),0===d.U||3===d.U||d.xd||d.Za||!d.wf()||(d.Za=!0,ca=d.tag,J.trigger(mc.prototype.i.Tk,F)),0!==A&&d.hr();var e,g;for(e in T)if(T.hasOwnProperty(e))for(d=T[e],b=0,c=d.length;b<c;b++)g=d[b],g.Eb&&g.Eb();1===C&&this.Ob.Cj()&&(this.Ob.Eb(a),L=this.Ob.G.x,
I=this.Ob.G.y,x.listener.setPosition(this.Ob.G.x,this.Ob.G.y,this.Wh),x.listener.setVelocity(this.Ob.Ql(),this.Ob.Rl(),0))};var Wa=[];ra.ww=function(a){var b,c,d,e,g,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&y||!g&&!y)Wa.push({filename:e,size:d,G:null}),h+=d;return h};ra.Bw=function(){var a,b,c,d;a=0;for(b=Wa.length;a<b;++a)c=Wa[a],d=this.b.Al+c.filename,c.G=this.yj(d,!1)};ra.Cu=function(){var a=0,b,c,d;b=0;for(c=Wa.length;b<c;++b)d=Wa[b],
d.G.hv()||d.G.Xu()||this.b.Ma||this.b.Gj?a+=d.size:d.G.cp()&&(a+=Math.floor(d.size/2));return a};ra.yj=function(a,b){var c,d,e,g=null;c=0;for(d=V.length;c<d;c++)if(e=V[c],e.src===a){g=e;break}g||(g=new E(a,b),V.push(g));return g};ra.Ho=function(a,b,c,d,e){var g,f,m;g=0;for(f=B.length;g<f;g++)if(m=B[g],m.src===a&&(m.et()||c))return m.tag=b,m;a=this.yj(a,c);if(!a.qa)return"<preload>"!==b&&(a.jk=b,a.xm=d,a.Cn=e),null;m=new h(a,b);B.push(m);return m};var Ma=[];D.prototype.Tk=function(a){return hb(ca,
a)};z.i=new D;Y.prototype.Play=function(a,b,c,d){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),G=this.Ho(this.b.Al+a[0]+(y?".ogg":".m4a"),d,a[1],0!==b,c))&&(G.gn(!1),G.play(0!==b,c))};z.B=new Y;z.wa=new function(){}})();function nc(k){this.b=k}
(function(){function k(){}function r(){}var p=nc.prototype;p.za=function(k){this.ma=k;this.b=k.b};p.za.prototype.J=function(){};p.pa=function(k){this.type=k;this.b=k.b};p.pa.prototype.J=function(){var k=this;window.addEventListener("resize",function(){k.b.trigger(nc.prototype.i.ys,k)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){k.b.trigger(nc.prototype.i.ss,k)}),window.addEventListener("offline",function(){k.b.trigger(nc.prototype.i.rs,k)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){k.b.Bg=1;k.b.trigger(nc.prototype.i.Rn,k)}),window.applicationCache.addEventListener("progress",function(p){k.b.Bg=p.loaded/p.total}));this.b.zb||(document.addEventListener("appMobi.device.update.available",function(){k.b.trigger(nc.prototype.i.Rn,k)}),document.addEventListener("backbutton",function(){k.b.trigger(nc.prototype.i.Sk,k)}),document.addEventListener("menubutton",function(){k.b.trigger(nc.prototype.i.Ln,
k)}),document.addEventListener("searchbutton",function(){k.b.trigger(nc.prototype.i.zs,k)}),document.addEventListener("tizenhwkey",function(p){var e;switch(p.keyName){case "back":e=k.b.trigger(nc.prototype.i.Sk,k);!e&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(e=k.b.trigger(nc.prototype.i.Ln,k))||p.preventDefault()}}));this.b.Hj&&(WinJS.Application.onbackclick=function(){return!!k.b.trigger(nc.prototype.i.Sk,k)});this.b.bo(function(p){p?k.b.trigger(nc.prototype.i.ts,
k):k.b.trigger(nc.prototype.i.us,k)})};k.prototype.ss=function(){return!0};k.prototype.rs=function(){return!0};k.prototype.Rn=function(){return!0};k.prototype.us=function(){return!0};k.prototype.ts=function(){return!0};k.prototype.ys=function(){return!0};k.prototype.Sk=function(){return!0};k.prototype.Ln=function(){return!0};k.prototype.zs=function(){return!0};p.i=new k;p.B=new function(){};r.prototype.URL=function(k){k.Ba(this.b.Ma?"":window.location.toString())};p.wa=new r})();
function X(k){this.b=k}
(function(){function k(){}function r(){}function p(e){e&&console.log(e);s.b.trigger(X.prototype.i.Rv,s)}var q=X.prototype;q.za=function(e){this.ma=e;this.b=e.b};q.za.prototype.J=function(){};q.pa=function(e){this.type=e;this.b=e.b};var s;q.pa.prototype.J=function(){this.gp=this.iv=!1;this.Tg="";this.qc=null;this.Di=this.n[2];this.Fw=this.b.ic&&"undefined"!==typeof Cocoon.ze.fi;this.Dw=1!==this.n[1];this.Ew=0!==this.n[3];this.Kq=this.n[4];this.yo=this.n[5];this.zo=this.n[6];this.Hm=this.Bv="";s=this;
s.b.ic&&(Cocoon.Zg.io.ne("shown",function(){s.iv=!0;s.b.trigger(X.prototype.i.Yr,s)}),Cocoon.Zg.io.ne("ready",function(){s.b.trigger(X.prototype.i.zv,s)}),Cocoon.Zg.io.ne("hidden",function(){s.b.trigger(X.prototype.i.yv,s)}),Cocoon.Zg.bp.ne("shown",function(){s.gp=!0;s.b.trigger(X.prototype.i.es,s)}),Cocoon.Zg.bp.ne("hidden",function(){s.gp=!1;s.b.trigger(X.prototype.i.ds,s)}),Cocoon.Zg.bp.ne("ready",function(){s.b.trigger(X.prototype.i.Fv,s)}),s.Fw&&(Cocoon.ze.ne("consume",{nn:function(){s.b.trigger(X.prototype.i.Cv,
s)},success:function(e){s.Hm=e;s.b.trigger(X.prototype.i.Hm,s)},error:function(e){s.Bv=e;s.b.trigger(X.prototype.i.Av,s)}}),Cocoon.ze.ne("purchase",{nn:function(e){console.log("onProductPurchaseStarted "+e);s.Tg=e;s.b.trigger(X.prototype.i.xs,s)},success:function(e){console.log("onProductPurchaseCompleted "+e.productId);s.Tg=e.productId;Cocoon.ze.Xx(e);Cocoon.ze.finish(e.transactionId);s.b.trigger(X.prototype.i.vs,s)},Fy:function(){},error:function(e,c){console.log("onProductPurchaseFailed "+e);s.Tg=
e;console.log(c);s.b.trigger(X.prototype.i.ws,s)}}),Cocoon.ze.ne("load",{nn:function(){s.b.trigger(X.prototype.i.Nv,s)},success:function(e){for(var c=e.length-1;0<=c;c--)console.log("Product fetched: "+e[c].vy),Cocoon.ze.Wx(e[c]);s.b.trigger(X.prototype.i.Lv,s)},error:function(){s.b.trigger(X.prototype.i.Mv,s)}}),Cocoon.ze.ne("restore",{nn:function(){console.log("onRestorePurchasesStarted ");s.b.trigger(X.prototype.i.Qv,s)},success:function(){console.log("onRestorePurchasesCompleted ");s.b.trigger(X.prototype.i.Ov,
s)},error:function(){console.log("onRestorePurchasesFailed ");s.b.trigger(X.prototype.i.Pv,s)}}),Cocoon.ze.ny({yy:s.Ew,ry:s.Dw})),0!==this.Di&&(this.Nq=function(){console.log("GameCenter selected as social service");if(this.qc=Cocoon.Ui.Kr)this.qc.fi&&(this.Qg=this.qc.Qo());else throw Error("Cannot find GameCenter service, are you using the latest CocoonJS Plugin?");},this.Oq=function(){console.log("GooglePlayGames selected as social service");if(this.qc=Cocoon.Ui.Mr){var e={};this.Kq&&(e.by=this.Kq);
this.qc.init(e);this.qc.fi&&(this.Qg=this.qc.Qo())}else throw Error("Cannot find GooglePlayGames service, are you using the latest CocoonJS Plugin?");},this.Aw=function(){console.log("Facebook selected as social service");if(this.qc=Cocoon.Ui.hx){var e={};this.yo&&this.zo&&(e.Zx=this.yo,e.ay=this.zo);this.qc.init(e);this.qc.fi&&(this.Qg=this.qc.Qo(),this.Qg.Ay("leaderboards.html","achievements.html"))}else throw Error("Cannot find Facebook service, are you using the latest CocoonJS Plugin?");},2===
this.Di&&this.Nq.apply(this,[]),3===this.Di&&this.Oq.apply(this,[]),4===this.Di&&this.Aw.apply(this,[]),1===this.Di&&(Cocoon.Ui.Mr.fi?this.Oq.apply(this,[]):Cocoon.Ui.Kr.fi&&this.Nq.apply(this,[]))))};k.prototype.Yr=function(){return!0};k.prototype.es=function(){return!0};k.prototype.ds=function(){return!0};k.prototype.Fv=function(){return!0};k.prototype.zv=function(){return!0};k.prototype.yv=function(){return!0};k.prototype.xs=function(e){console.log("OnPurchaseStart ");return this.Tg===e};k.prototype.vs=
function(e){console.log("OnPurchaseComplete ");return this.Tg===e};k.prototype.ws=function(e){console.log("OnPurchaseFail ");return this.Tg===e};k.prototype.Nv=function(){return!0};k.prototype.Av=function(){return!0};k.prototype.Hm=function(){return!0};k.prototype.Cv=function(){return!0};k.prototype.Lv=function(){return!0};k.prototype.Mv=function(){return!0};k.prototype.Sv=function(){return!0};k.prototype.Rv=function(){return!0};k.prototype.Qv=function(){return!0};k.prototype.Ov=function(){return!0};
k.prototype.Pv=function(){return!0};q.i=new k;r.prototype.yw=function(e){this.Qg&&this.Qg.oy()&&(s.b.trigger(X.prototype.i.Sv,s),this.Qg.By(p,{qy:e}))};q.B=new r;q.wa=new function(){}})();function kc(k){this.b=k}
(function(){function k(){this.name="";this.ti=0;this.Bb=[]}function r(){l++;l===c.length&&c.push(new k);return c[l]}function p(){}function q(){}function s(){}var e=kc.prototype;e.za=function(c){this.ma=c;this.b=c.b};e.za.prototype.J=function(){};e.pa=function(c){this.type=c;this.b=c.b};var c=[],l=-1;e.pa.prototype.J=function(){var c=this;window.c2_callFunction=function(d,b){var e,m,a,g=r();g.name=d.toLowerCase();g.ti=0;if(b)for(g.Bb.length=b.length,e=0,m=b.length;e<m;++e)a=b[e],g.Bb[e]="number"===
typeof a||"string"===typeof a?a:"boolean"===typeof a?a?1:0:0;else g.Bb.length=0;c.b.trigger(kc.prototype.i.Si,c,g.name);l--;return g.ti}};p.prototype.Si=function(e){var d=0>l?null:c[l];return d?hb(e,d.name):!1};e.i=new p;q.prototype.CallFunction=function(c,d){var b=r();b.name=c.toLowerCase();b.ti=0;za(b.Bb,d);this.b.trigger(kc.prototype.i.Si,this,b.name);l--};e.B=new q;s.prototype.rr=function(c,d){var b=r();b.name=d.toLowerCase();b.ti=0;b.Bb.length=0;var e,m;e=2;for(m=arguments.length;e<m;e++)b.Bb.push(arguments[e]);
this.b.trigger(kc.prototype.i.Si,this,b.name);l--;c.hn(b.ti)};e.wa=new s})();function jc(k){this.b=k}
(function(){function k(){if(0===this.ol.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Rg?a.drawImage(this.R,this.Ig,this.Jg,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.R,0,0,this.width,this.height);this.ol=b.toDataURL("image/png")}return this.ol}function r(){}function p(){}var q=jc.prototype;q.za=function(b){this.ma=b;this.b=b.b};var s=q.za.prototype;s.J=function(){if(!this.C){var b,a,c,d,e,f,n,l,h;this.$c=
[];this.Gh=!1;b=0;for(a=this.ac.length;b<a;b++){e=this.ac[b];n={};n.name=e[0];n.speed=e[1];n.loop=e[2];n.Xm=e[3];n.tk=e[4];n.lq=e[5];n.W=e[6];n.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],l={},l.Ik=f[0],l.Sq=f[1],l.Ig=f[2],l.Jg=f[3],l.width=f[4],l.height=f[5],l.duration=f[6],l.Mb=f[7],l.Nb=f[8],l.Yl=f[9],l.kk=f[10],l.mq=f[11],l.Rg=0!==l.width,l.ol="",l.gy=k,h={left:0,top:0,right:1,bottom:1},l.jn=h,l.S=null,(h=this.b.mu(f[0]))?l.R=h:(l.R=new Image,l.R.kt=f[0],l.R.jt=f[1],l.R.dt=null,this.b.lr(l.R,
f[0])),n.frames.push(l),this.$c.push(l);this.ac[b]=n}}};s.er=function(){var b,a,c;b=0;for(a=this.d.length;b<a;b++)c=this.d[b],c.ij=c.Fc.S};s.hi=function(){if(!this.C){var b,a,c;b=0;for(a=this.$c.length;b<a;++b)c=this.$c[b],c.R.dt=null,c.S=null;this.Gh=!1;this.er()}};s.hk=function(){if(!this.C&&this.d.length){var b,a,c;b=0;for(a=this.$c.length;b<a;++b)c=this.$c[b],c.S=this.b.r.zg(c.R,this.b.aa,c.mq);this.er()}};s.qv=function(){if(!this.C&&!this.Gh&&this.b.r){var b,a,c;b=0;for(a=this.$c.length;b<a;++b)c=
this.$c[b],c.S=this.b.r.zg(c.R,this.b.aa,c.mq);this.Gh=!0}};s.Ok=function(){if(!this.C&&!this.d.length&&this.Gh){var b,a,c;b=0;for(a=this.$c.length;b<a;++b)c=this.$c[b],this.b.r.deleteTexture(c.S),c.S=null;this.Gh=!1}};var e=[];s.ok=function(b){var a,c,d;a=e.length=0;for(c=this.$c.length;a<c;++a)d=this.$c[a].R,-1===e.indexOf(d)&&(b.drawImage(d,0,0),e.push(d))};q.pa=function(b){this.type=b;this.b=b.b;b=this.type.ac[0].frames[0].kk;this.Qb?this.la.Ai(b):this.la=new bb(b)};var c=q.pa.prototype;c.J=function(){this.visible=
0===this.n[0];this.Zl=this.im=!1;this.Dc=0!==this.n[3];1===this.type.ac.length&&1===this.type.ac[0].frames.length||0===this.type.ac[0].speed||(this.b.Kk(this),this.im=!0);this.Qa=this.Go(this.n[1])||this.type.ac[0];this.u=this.n[2];0>this.u&&(this.u=0);this.u>=this.Qa.frames.length&&(this.u=this.Qa.frames.length-1);var b=this.Qa.frames[this.u];this.la.Ai(b.kk);this.Mb=b.Mb;this.Nb=b.Nb;this.qh=this.Qa.speed;this.Qb?this.ud.reset():this.ud=new $a;this.ee=this.ud.na;this.hf=!0;this.Sd=0;this.gf=!0;
this.il=this.eo="";this.gt=0;this.ej=-1;this.type.qv();var a,c,d,e,f,n,l,b=0;for(a=this.type.ac.length;b<a;b++)for(e=this.type.ac[b],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.R.width,f.height=f.R.height),f.Rg&&(l=f.R,n=f.jn,n.left=f.Ig/l.width,n.top=f.Jg/l.height,n.right=(f.Ig+f.width)/l.width,n.bottom=(f.Jg+f.height)/l.height,0===f.Ig&&0===f.Jg&&f.width===l.width&&f.height===l.height&&(f.Rg=!1));this.Fc=this.Qa.frames[this.u];this.ij=this.Fc.S};c.Rb=function(){var b={a:this.Qa.W,
f:this.u,cas:this.qh,fs:this.ee,ar:this.Sd,at:this.ud.na};this.hf||(b.ap=this.hf);this.gf||(b.af=this.gf);return b};c.mc=function(b){var a=this.ru(b.a);a&&(this.Qa=a);this.u=b.f;0>this.u&&(this.u=0);this.u>=this.Qa.frames.length&&(this.u=this.Qa.frames.length-1);this.qh=b.cas;this.ee=b.fs;this.Sd=b.ar;this.ud.reset();this.ud.na=b.at;this.hf=b.hasOwnProperty("ap")?b.ap:!0;this.gf=b.hasOwnProperty("af")?b.af:!0;this.Fc=this.Qa.frames[this.u];this.ij=this.Fc.S;this.la.Ai(this.Fc.kk);this.Mb=this.Fc.Mb;
this.Nb=this.Fc.Nb};c.bl=function(b){this.u=b?0:this.Qa.frames.length-1;this.hf=!1;this.eo=this.Qa.name;this.Zl=!0;this.b.trigger(jc.prototype.i.Xr,this);this.b.trigger(jc.prototype.i.Wr,this);this.Zl=!1;this.Sd=0};c.ly=function(){return this.ud.na};c.Eb=function(){this.ud.add(this.b.Jl(this));this.il.length&&this.qt();0<=this.ej&&this.vo();var b=this.ud.na,a=this.Qa,c=a.frames[this.u],d=c.duration/this.qh;this.hf&&b>=this.ee+d&&(this.gf?this.u++:this.u--,this.ee+=d,this.u>=a.frames.length&&(a.lq?
(this.gf=!1,this.u=a.frames.length-2):a.loop?this.u=a.tk:(this.Sd++,this.Sd>=a.Xm?this.bl(!1):this.u=a.tk)),0>this.u&&(a.lq?(this.u=1,this.gf=!0,a.loop||(this.Sd++,this.Sd>=a.Xm&&this.bl(!0))):a.loop?this.u=a.tk:(this.Sd++,this.Sd>=a.Xm?this.bl(!0):this.u=a.tk)),0>this.u?this.u=0:this.u>=a.frames.length&&(this.u=a.frames.length-1),b>this.ee+a.frames[this.u].duration/this.qh&&(this.ee=b),b=a.frames[this.u],this.Yf(c,b),this.b.ja=!0)};c.Go=function(b){var a,c,d;a=0;for(c=this.type.ac.length;a<c;a++)if(d=
this.type.ac[a],hb(d.name,b))return d;return null};c.ru=function(b){var a,c,d;a=0;for(c=this.type.ac.length;a<c;a++)if(d=this.type.ac[a],d.W===b)return d;return null};c.qt=function(){var b=this.Qa.frames[this.u],a=this.Go(this.il);this.il="";!a||hb(a.name,this.Qa.name)&&this.hf||(this.Qa=a,this.qh=a.speed,0>this.u&&(this.u=0),this.u>=this.Qa.frames.length&&(this.u=this.Qa.frames.length-1),1===this.gt&&(this.u=0),this.hf=!0,this.ee=this.ud.na,this.gf=!0,this.Yf(b,this.Qa.frames[this.u]),this.b.ja=
!0)};c.vo=function(){var b=this.Qa.frames[this.u],a=this.u;this.u=S(this.ej);0>this.u&&(this.u=0);this.u>=this.Qa.frames.length&&(this.u=this.Qa.frames.length-1);a!==this.u&&(this.Yf(b,this.Qa.frames[this.u]),this.ee=this.ud.na,this.b.ja=!0);this.ej=-1};c.Yf=function(b,a){var c=b.width,d=b.height,e=a.width,f=a.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Mb=a.Mb;this.Nb=a.Nb;this.la.Ai(a.kk);this.A();this.Fc=a;this.ij=a.S;c=0;for(d=this.L.length;c<d;c++)e=this.L[c],e.Tv&&e.Tv(b,a);
this.b.trigger(jc.prototype.i.Yf,this)};c.ed=function(b){b.globalAlpha=this.opacity;var a=this.Fc,c=a.Rg,d=a.R,e=this.x,f=this.y,n=this.width,l=this.height;if(0===this.m&&0<=n&&0<=l)e-=this.Mb*n,f-=this.Nb*l,this.b.Uc&&(e=Math.round(e),f=Math.round(f)),c?b.drawImage(d,a.Ig,a.Jg,a.width,a.height,e,f,n,l):b.drawImage(d,e,f,n,l);else{this.b.Uc&&(e=Math.round(e),f=Math.round(f));b.save();var h=0<n?1:-1,k=0<l?1:-1;b.translate(e,f);1===h&&1===k||b.scale(h,k);b.rotate(this.m*h*k);e=0-this.Mb*la(n);f=0-this.Nb*
la(l);c?b.drawImage(d,a.Ig,a.Jg,a.width,a.height,e,f,la(n),la(l)):b.drawImage(d,e,f,la(n),la(l));b.restore()}};c.xc=function(b){b.Yb(this.ij);b.We(this.opacity);var a=this.Fc,c=this.Gb;if(this.b.Uc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;a.Rg?b.Hd(c.da+d,c.ea+e,c.Ha+d,c.Ia+e,c.Ea+d,c.Fa+e,c.Ca+d,c.Da+e,a.jn):b.rk(c.da+d,c.ea+e,c.Ha+d,c.Ia+e,c.Ea+d,c.Fa+e,c.Ca+d,c.Da+e)}else a.Rg?b.Hd(c.da,c.ea,c.Ha,c.Ia,c.Ea,c.Fa,c.Ca,c.Da,a.jn):b.rk(c.da,c.ea,c.Ha,c.Ia,c.Ea,c.Fa,c.Ca,c.Da)};
c.xu=function(b){var a=this.Fc,c,d;c=0;for(d=a.Yl.length;c<d;c++)if(hb(b,a.Yl[c][0]))return c;return-1};c.Ml=function(b,a){var c=this.Fc,d=c.Yl,e;e=R(b)?this.xu(b):b-1;e=S(e);if(0>e||e>=d.length)return a?this.x:this.y;var f=(d[e][1]-c.Mb)*this.width,d=d[e][2],d=(d-c.Nb)*this.height,c=Math.cos(this.m);e=Math.sin(this.m);var n=f*c-d*e,d=d*c+f*e,f=n+this.x,d=d+this.y;return a?f:d};var l=null,n=new da,d=!1,b=[],f=new ta(0,0,0,0);s.finish=function(b){if(d){if(b){var a=this.b.jb().ib.Qc;b=l.Y();var c=n.ef(),
e,f;if(b.ka){b.ka=!1;b.d.length=c.length;e=0;for(f=c.length;e<f;e++)b.d[e]=c[e];if(a)for(e=b.X.length=0,f=l.d.length;e<f;e++)c=l.d[e],n.contains(c)||b.X.push(c)}else if(a)for(a=b.d.length,b.d.length=a+c.length,e=0,f=c.length;e<f;e++)b.d[a+e]=c[e],Ca(b.X,c[e]);else za(b.d,c);l.Be()}n.clear();d=!1}};r.prototype.Rr=function(c){if(c){var a=!1,e,k,p,s=this.b.Il(),q=s.type,s=s.Ej;e=c.Y();k=this.b.jb().ib.Qc;var E;e.ka?(this.xa(),f.ph(this.Pa),f.offset(0,0),this.b.Io(this.j,c,f,b),E=b):E=k?e.X:e.d;l=c;d=
q!==c&&!s;e=0;for(k=E.length;e<k;e++)if(p=E[e],this.b.Xc(this,p)){a=!0;if(s)break;q!==c&&n.add(p)}b.length=0;c=a}else c=!1;return c};r.prototype.yr=function(b,a){return Zb(this.u,b,a)};r.prototype.Wr=function(b){return hb(this.eo,b)};r.prototype.Xr=function(){return!0};r.prototype.Yf=function(){return!0};q.i=new r;p.prototype.Es=function(b){this.ej=b;this.im||(this.b.Kk(this),this.im=!0);this.Zl||this.vo()};p.prototype.Fs=function(b){this.Dc!==(0!==b)&&((this.Dc=0!==b)?this.A():(this.Cc.right>=this.Cc.left&&
this.type.nh.update(this,this.Cc,null),this.Cc.set(0,0,-1,-1)))};q.B=new p;q.wa=new function(){}})();function oc(k){this.b=k}
(function(){function k(a,b){return a.length?a.pop():new b}function r(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<l&&a.push(b[c]);b.length=0}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<l&&a.push(b[d]),delete b[d])}function p(a,b,c){var d=a.Oa;c=c.replace(/\s\s*$/,"");b>=d.length&&d.push(k(n,Object));b=d[b];b.text=c;b.width=a.Jf(c);a.Tb=ma(a.Tb,b.width)}function q(){}function s(){}var e=oc.prototype;e.J=function(){};e.za=function(a){this.ma=a;this.b=a.b};var c=e.za.prototype;
c.J=function(){this.C||(this.R=new Image,this.R.idtkLoadDisposed=!0,this.R.src=this.Ik,this.b.Tf.push(this.R),this.S=null)};c.hi=function(){this.C||(this.S=null)};c.hk=function(){if(!this.C&&this.d.length){this.S||(this.S=this.b.r.zg(this.R,this.b.aa,this.Ii));var a,b;a=0;for(b=this.d.length;a<b;a++)this.d[a].S=this.S}};c.Ok=function(){this.C||this.d.length||!this.S||(this.b.r.deleteTexture(this.S),this.S=null)};c.ok=function(a){a.drawImage(this.R,0,0)};e.pa=function(a){this.type=a;this.b=a.b};c=
e.pa.prototype;c.Se=function(){r(n,this.Oa,!0);r(d,this.Vd,!1);r(b,this.Wd,!1);Ra(this.gb)};c.J=function(){this.R=this.type.R;this.Ud=this.n[0];this.Hb=this.n[1];this.characterSet=this.n[2];this.text=this.n[3];this.Ib=this.n[4];this.visible=0===this.n[5];this.zd=this.n[6]/2;this.Od=this.n[7]/2;this.Uf=0===this.n[9];this.wc=this.n[10];this.lineHeight=this.n[11];this.Db=this.Tb=0;this.mh=this.n[12];this.Mq=this.n[13];console.log(this.mh);this.Qb?(this.Oa.length=0,Ra(this.Vd),Ra(this.Wd),Ra(this.gb)):
(this.Oa=[],this.Vd={},this.Wd={},this.gb={});try{if(this.mh)if(-1!==this.mh.indexOf('""c2array""'))for(var a=jQuery.parseJSON(this.mh.replace(/""/g,'"')),b=a.size[1],c=0;c<b;c++)for(var d=a.data[1][c][0],e=a.data[0][c][0],f=0;f<d.length;f++)this.gb[d.charAt(f)]=e;else for(a=jQuery.parseJSON(this.mh),b=a.length,c=0;c<b;c++)for(d=a[c][1],e=a[c][0],f=0;f<d.length;f++)this.gb[d.charAt(f)]=e;-1!==this.Mq&&(this.gb[" "]=this.Mq)}catch(n){window.console&&window.console.log&&window.console.log("SpriteFont+ Failure: "+
n)}this.xb=!0;this.jd=this.width;this.b.r&&(this.type.S||(this.type.S=this.b.r.zg(this.type.R,this.b.aa,this.type.Ii)),this.S=this.type.S);this.Yk()};c.Rb=function(){var a={t:this.text,csc:this.Ib,csp:this.wc,lh:this.lineHeight,tw:this.Tb,th:this.Db,lrt:this.le,cw:{}},b;for(b in this.gb)a.cw[b]=this.gb[b];return a};c.mc=function(a){this.text=a.t;this.Ib=a.csc;this.wc=a.csp;this.lineHeight=a.lh;this.Tb=a.tw;this.Db=a.th;this.le=a.lrt;for(var b in a.cw)this.gb[b]=a.cw[b];this.xb=!0;this.jd=this.width};
var l=1E3,n=[],d=[],b=[];c.Yk=function(){for(var a=this.R,c=a.width,e=a.height,a=this.Ud,f=this.Hb,n=a/c,l=f/e,m=this.characterSet,c=Math.floor(c/a),e=Math.floor(e/f),h=0;h<m.length&&!(h>=c*e);h++){var p=h%c,s=Math.floor(h/c),q=m.charAt(h);if(this.b.r){var r=this.Wd,J=p*n,F=s*l,p=(p+1)*n,s=(s+1)*l;void 0===r[q]&&(r[q]=k(b,ta));r[q].left=J;r[q].top=F;r[q].right=p;r[q].bottom=s}else r=this.Vd,p*=a,s*=f,J=a,F=f,void 0===r[q]&&(r[q]=k(d,Object)),r[q].x=p,r[q].y=s,r[q].Pi=J,r[q].Fh=F}};var f=[];e.$g=function(a){f.length=
0;for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(f.push(b),b=""),f.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));f.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&f.push(b)};e.ah=function(a){var b=a.text,c=a.Oa;if(b&&b.length){var d=a.width;if(2>=d)r(n,c,!0);else{var e=a.Ib,f=a.wc;if(b.length*(a.Ud*e+f)-f<=d&&-1===b.indexOf("\n")&&(f=a.Jf(b),f<=d)){r(n,c,!0);c.push(k(n,Object));c[0].text=
b;c[0].width=f;a.Tb=f;a.Db=a.Hb*e+a.lineHeight;return}this.bh(a);a.Db=c.length*(a.Hb*e+a.lineHeight)}}else r(n,c,!0)};e.bh=function(a){var b=a.Uf,c=a.text,d=a.Oa,e=a.width;b&&(this.$g(c),c=f);var m="",k,h,t,s=0,q=!1;for(t=0;t<c.length;t++)"\n"===c[t]?(!0===q?q=!1:(p(a,s,m),s++),m=""):(q=!1,k=m,m+=c[t],h=a.Jf(m.replace(/\s\s*$/,"")),h>e&&(""===k?(p(a,s,m),m="",q=!0):(p(a,s,k),m=c[t]),s++,b||" "!==m||(m="")));m.replace(/\s\s*$/,"").length&&(p(a,s,m),s++);for(t=s;t<d.length;t++)n.length<l&&n.push(d[t]);
d.length=s};c.Jf=function(a){for(var b=this.wc,c=a.length,d=0,e=0;e<c;e++)d+=this.ge(a.charAt(e))*this.Ib+b;return d-(0<d?b:0)};c.ge=function(a){var b=this.gb;return void 0!==b[a]?b[a]:this.Ud};c.ri=function(){if(this.xb||this.width!==this.jd)this.Db=this.Tb=0,this.type.ma.ah(this),this.xb=!1,this.jd=this.width};c.ed=function(a){var b=this.R;if(""!==this.text&&null!=b&&(this.ri(),!(this.height<this.Hb*this.Ib+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Uc&&(b=b+.5|0,
c=c+.5|0);a.save();a.translate(b,c);a.rotate(this.m);for(var b=this.zd,c=this.Ib,d=this.Hb*c,e=this.lineHeight,f=this.wc,n=this.Oa,h,l=-(this.Mb*this.width),m=-(this.Nb*this.height),m=m+this.Od*ma(0,this.height-this.Db),k=0;k<n.length;k++){var p=n[k].text;h=b*ma(0,this.width-n[k].width);h=l+h;for(var m=m+e,s=0;s<p.length;s++){var q=p.charAt(s),r=this.Vd[q];if(h+this.ge(q)*c>this.width+1E-5)break;void 0!==r&&a.drawImage(this.R,r.x,r.y,r.Pi,r.Fh,Math.round(h),Math.round(m),r.Pi*c,r.Fh*c);h+=this.ge(q)*
c+f}m+=d;if(m+d+e>this.height)break}a.restore()}};var m=new va;c.xc=function(a){a.Yb(this.S);a.We(this.opacity);if(""!==this.text&&(this.ri(),!(this.height<this.Hb*this.Ib+this.lineHeight))){this.xa();var b=this.Gb,c=0,d=0;this.b.Uc&&(c=(this.x+.5|0)-this.x,d=(this.y+.5|0)-this.y);var e=this.m,f=this.zd,n=this.Od,h=this.Ib,l=this.Hb*h,k=this.lineHeight,p=this.wc,s=this.Oa,q=this.Db,r,ca;0!==e&&(r=Math.cos(e),ca=Math.sin(e));for(var K,c=b.da+c,b=b.ea+d,n=n*ma(0,this.height-q),q=0;q<s.length;q++){d=
s[q].text;K=f*ma(0,this.width-s[q].width);for(var n=n+k,C=0;C<d.length;C++){var x=d.charAt(C),V=this.Wd[x];if(K+this.ge(x)*h>this.width+1E-5)break;if(void 0!==V){var B=this.Ud*h,G=this.Hb*h;m.da=K;m.ea=n;m.Ha=K+B;m.Ia=n;m.Ca=K;m.Da=n+G;m.Ea=K+B;m.Fa=n+G;if(0!==e){var B=m,G=r,y=ca,A=void 0,A=B.da*G-B.ea*y;B.ea=B.ea*G+B.da*y;B.da=A;A=B.Ha*G-B.Ia*y;B.Ia=B.Ia*G+B.Ha*y;B.Ha=A;A=B.Ca*G-B.Da*y;B.Da=B.Da*G+B.Ca*y;B.Ca=A;A=B.Ea*G-B.Fa*y;B.Fa=B.Fa*G+B.Ea*y;B.Ea=A}m.offset(c,b);a.Hd(m.da,m.ea,m.Ha,m.Ia,m.Ea,
m.Fa,m.Ca,m.Da,V)}K+=this.ge(x)*h+p}n+=l;if(n+l+k>this.height)break}}};e.i=new function(){};q.prototype.Ti=function(a){Q(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.xb=!0,this.b.ja=!0)};c.Xk=function(a,b){var c=parseInt(b,10);this.gb[a]!==c&&(this.gb[a]=c,this.xb=!0,this.b.ja=!0)};q.prototype.Sn=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.Xk(a.charAt(c),b)};e.B=new q;s.prototype.Text=function(a){a.Ba(this.text)};e.wa=new s})();
function pc(k){this.b=k}
(function(){function k(a,b){return a.length?a.pop():new b}function r(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<l&&a.push(b[c]);b.length=0}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<l&&a.push(b[d]),delete b[d])}function p(a,b,c){var d=a.Oa;c=c.replace(/\s\s*$/,"");b>=d.length&&d.push(k(n,Object));b=d[b];b.text=c;b.width=a.Jf(c);a.Tb=ma(a.Tb,b.width)}function q(){}function s(){}var e=pc.prototype;e.J=function(){};e.za=function(a){this.ma=a;this.b=a.b};var c=e.za.prototype;
c.J=function(){this.C||(this.R=new Image,this.b.lr(this.R,this.Ik),this.S=null)};c.hi=function(){this.C||(this.S=null)};c.hk=function(){if(!this.C&&this.d.length){this.S||(this.S=this.b.r.zg(this.R,this.b.aa,this.Ii));var a,b;a=0;for(b=this.d.length;a<b;a++)this.d[a].S=this.S}};c.Ok=function(){this.C||this.d.length||!this.S||(this.b.r.deleteTexture(this.S),this.S=null)};c.ok=function(a){a.drawImage(this.R,0,0)};e.pa=function(a){this.type=a;this.b=a.b};c=e.pa.prototype;c.Se=function(){r(n,this.Oa,
!0);r(d,this.Vd,!1);r(b,this.Wd,!1);Ra(this.gb)};c.J=function(){this.R=this.type.R;this.Ud=this.n[0];this.Hb=this.n[1];this.characterSet=this.n[2];this.text=this.n[3];this.Ib=this.n[4];this.visible=0===this.n[5];this.zd=this.n[6]/2;this.Od=this.n[7]/2;this.Uf=0===this.n[9];this.wc=this.n[10];this.lineHeight=this.n[11];this.Db=this.Tb=0;this.Qb?(this.Oa.length=0,Ra(this.Vd),Ra(this.Wd),Ra(this.gb)):(this.Oa=[],this.Vd={},this.Wd={},this.gb={});this.xb=!0;this.jd=this.width;this.b.r&&(this.type.S||
(this.type.S=this.b.r.zg(this.type.R,this.b.aa,this.type.Ii)),this.S=this.type.S);this.Yk()};c.Rb=function(){var a={t:this.text,csc:this.Ib,csp:this.wc,lh:this.lineHeight,tw:this.Tb,th:this.Db,lrt:this.le,cw:{}},b;for(b in this.gb)a.cw[b]=this.gb[b];return a};c.mc=function(a){this.text=a.t;this.Ib=a.csc;this.wc=a.csp;this.lineHeight=a.lh;this.Tb=a.tw;this.Db=a.th;this.le=a.lrt;for(var b in a.cw)this.gb[b]=a.cw[b];this.xb=!0;this.jd=this.width};var l=1E3,n=[],d=[],b=[];c.Yk=function(){for(var a=this.R,
c=a.width,e=a.height,a=this.Ud,f=this.Hb,n=a/c,l=f/e,m=this.characterSet,c=Math.floor(c/a),e=Math.floor(e/f),h=0;h<m.length&&!(h>=c*e);h++){var p=h%c,s=Math.floor(h/c),q=m.charAt(h);if(this.b.r){var r=this.Wd,J=p*n,F=s*l,p=(p+1)*n,s=(s+1)*l;void 0===r[q]&&(r[q]=k(b,ta));r[q].left=J;r[q].top=F;r[q].right=p;r[q].bottom=s}else r=this.Vd,p*=a,s*=f,J=a,F=f,void 0===r[q]&&(r[q]=k(d,Object)),r[q].x=p,r[q].y=s,r[q].Pi=J,r[q].Fh=F}};var f=[];e.$g=function(a){f.length=0;for(var b="",c,d=0;d<a.length;)if(c=
a.charAt(d),"\n"===c)b.length&&(f.push(b),b=""),f.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));f.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&f.push(b)};e.ah=function(a){var b=a.text,c=a.Oa;if(b&&b.length){var d=a.width;if(2>=d)r(n,c,!0);else{var e=a.Ib,f=a.wc;if(b.length*(a.Ud*e+f)-f<=d&&-1===b.indexOf("\n")&&(f=a.Jf(b),f<=d)){r(n,c,!0);c.push(k(n,Object));c[0].text=b;c[0].width=f;a.Tb=f;a.Db=a.Hb*e+a.lineHeight;
return}this.bh(a);a.Db=c.length*(a.Hb*e+a.lineHeight)}}else r(n,c,!0)};e.bh=function(a){var b=a.Uf,c=a.text,d=a.Oa,e=a.width;b&&(this.$g(c),c=f);var m="",k,h,t,s=0,q=!1;for(t=0;t<c.length;t++)"\n"===c[t]?(!0===q?q=!1:(p(a,s,m),s++),m=""):(q=!1,k=m,m+=c[t],h=a.Jf(m.replace(/\s\s*$/,"")),h>e&&(""===k?(p(a,s,m),m="",q=!0):(p(a,s,k),m=c[t]),s++,b||" "!==m||(m="")));m.replace(/\s\s*$/,"").length&&(p(a,s,m),s++);for(t=s;t<d.length;t++)n.length<l&&n.push(d[t]);d.length=s};c.Jf=function(a){for(var b=this.wc,
c=a.length,d=0,e=0;e<c;e++)d+=this.ge(a.charAt(e))*this.Ib+b;return d-(0<d?b:0)};c.ge=function(a){var b=this.gb;return void 0!==b[a]?b[a]:this.Ud};c.ri=function(){if(this.xb||this.width!==this.jd)this.Db=this.Tb=0,this.type.ma.ah(this),this.xb=!1,this.jd=this.width};c.ed=function(a){var b=this.R;if(""!==this.text&&null!=b&&(this.ri(),!(this.height<this.Hb*this.Ib+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Uc&&(b=Math.round(b),c=Math.round(c));var d=this.j.Ja,e=this.j.Ka,
f=this.j.Va,n=this.j.Ua;a.save();a.translate(b,c);a.rotate(this.m);for(var h=this.zd,l=this.Ib,m=this.Hb*l,k=this.lineHeight,p=this.wc,s=this.Oa,q,r=-(this.Mb*this.width),K=-(this.Nb*this.height),K=K+this.Od*ma(0,this.height-this.Db),C,x,V,B=0;B<s.length;B++){var G=s[B].text;q=h*ma(0,this.width-s[B].width);C=r+q;K+=k;if(c+K+m<e)K+=m;else{for(var y=0;y<G.length;y++){x=G.charAt(y);q=this.ge(x);var A=this.Vd[x];if(b+C+q*l+p<d)C+=q*l+p;else{if(C+q*l>this.width+1E-5)break;void 0!==A&&(x=C,V=K,0===this.m&&
(x=Math.round(x),V=Math.round(V)),a.drawImage(this.R,A.x,A.y,A.Pi,A.Fh,x,V,A.Pi*l,A.Fh*l));C+=q*l+p;if(b+C>f)break}}K+=m;if(K+m+k>this.height||c+K>n)break}}a.restore()}};var m=new va;c.xc=function(a){a.Yb(this.S);a.We(this.opacity);if(this.text&&(this.ri(),!(this.height<this.Hb*this.Ib+this.lineHeight))){this.xa();var b=this.Gb,c=0,d=0;this.b.Uc&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y);var e=this.j.Ja,f=this.j.Ka,n=this.j.Va,h=this.j.Ua,l=this.m,k=this.zd,p=this.Od,s=this.Ib,q=this.Hb*
s,r=this.lineHeight,ca=this.wc,K=this.Oa,C=this.Db,x,V,B;0!==l&&(V=Math.cos(l),B=Math.sin(l));for(var c=b.da+c,b=b.ea+d,G,p=p*ma(0,this.height-C),y,A,C=0;C<K.length;C++)if(d=K[C].text,G=x=k*ma(0,this.width-K[C].width),p+=r,0===l&&b+p+q<f)p+=q;else{for(var O=0;O<d.length;O++){var H=d.charAt(O);x=this.ge(H);H=this.Wd[H];if(c+G+x*s+ca<e)G+=x*s+ca;else{if(G+x*s>this.width+1E-5)break;if(void 0!==H){var L=this.Ud*s,I=this.Hb*s;y=G;A=p;0===l&&(y=Math.round(y),A=Math.round(A));m.da=y;m.ea=A;m.Ha=y+L;m.Ia=
A;m.Ca=y;m.Da=A+I;m.Ea=y+L;m.Fa=A+I;0!==l&&(y=m,A=V,L=B,I=void 0,I=y.da*A-y.ea*L,y.ea=y.ea*A+y.da*L,y.da=I,I=y.Ha*A-y.Ia*L,y.Ia=y.Ia*A+y.Ha*L,y.Ha=I,I=y.Ca*A-y.Da*L,y.Da=y.Da*A+y.Ca*L,y.Ca=I,I=y.Ea*A-y.Fa*L,y.Fa=y.Fa*A+y.Ea*L,y.Ea=I);m.offset(c,b);a.Hd(m.da,m.ea,m.Ha,m.Ia,m.Ea,m.Fa,m.Ca,m.Da,H)}G+=x*s+ca;if(0===l&&c+G>n)break}}p+=q;if(p+q+r>this.height||b+p>h)break}}};e.i=new function(){};q.prototype.Ti=function(a){Q(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=
a,this.xb=!0,this.b.ja=!0)};c.Xk=function(a,b){var c=parseInt(b,10);this.gb[a]!==c&&(this.gb[a]=c,this.xb=!0,this.b.ja=!0)};q.prototype.Sn=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.Xk(a.charAt(c),b)};e.B=new q;s.prototype.Text=function(a){a.Ba(this.text)};e.wa=new s})();function qc(k){this.b=k}
(function(){function k(){return l.length?l.pop():{}}function r(c){var d,b;d=0;for(b=c.length;d<b;d++)l.push(c[d]);c.length=0}function p(){}function q(){}var s=qc.prototype;s.J=function(){s.B.Ls=function(c){this.width!==c&&(this.width=c,this.xb=!0,this.A())}};s.za=function(c){this.ma=c;this.b=c.b};var e=s.za.prototype;e.J=function(){};e.hi=function(){if(!this.C){var c,d,b;c=0;for(d=this.d.length;c<d;c++)b=this.d[c],b.Dd=null,b.Kf=null,b.nc=null}};s.pa=function(c){this.type=c;this.b=c.b;this.Qb?this.Oa.length=
0:this.Oa=[];this.xb=!0};e=s.pa.prototype;e.J=function(){this.text=this.n[0];this.visible=0===this.n[1];this.font=this.n[2];this.color=this.n[3];this.zd=this.n[4];this.Od=this.n[5];this.Uf=0===this.n[7];this.jd=this.Rj=this.width;this.Qj=this.height;this.pm=this.n[8];this.wj=this.gg="";this.Db=this.Tb=this.pi=0;this.Vv();this.nc=this.Kf=this.Dd=null;this.Qp=!1;this.le=this.b.te;this.Qb?this.Lg.set(0,0,1,1):this.Lg=new ta(0,0,1,1);this.b.r&&this.b.Kk(this)};e.Vv=function(){var c=this.font.split(" "),
d;for(d=0;d<c.length;d++)if("pt"===c[d].substr(c[d].length-2,2)){this.pi=parseInt(c[d].substr(0,c[d].length-2));this.Tm=Math.ceil(this.pi/72*96)+4;0<d&&(this.wj=c[d-1]);this.gg=c[d+1];for(d+=2;d<c.length;d++)this.gg+=" "+c[d];break}};e.Rb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.zd,va:this.Od,wr:this.Uf,lho:this.pm,fn:this.gg,fs:this.wj,ps:this.pi,pxh:this.Tm,tw:this.Tb,th:this.Db,lrt:this.le}};e.mc=function(c){this.text=c.t;this.font=c.f;this.color=c.c;this.zd=c.ha;this.Od=
c.va;this.Uf=c.wr;this.pm=c.lho;this.gg=c.fn;this.wj=c.fs;this.pi=c.ps;this.Tm=c.pxh;this.Tb=c.tw;this.Db=c.th;this.le=c.lrt;this.xb=!0;this.jd=this.Rj=this.width;this.Qj=this.height};e.Eb=function(){if(this.b.r&&this.nc&&300<=this.b.te-this.le){var c=this.j;this.xa();var d=this.Pa;if(d.right<c.Ja||d.bottom<c.Ka||d.left>c.Va||d.top>c.Ua)this.b.r.deleteTexture(this.nc),this.Dd=this.Kf=this.nc=null}};e.Se=function(){this.Dd=this.Kf=null;this.b.r&&this.nc&&this.b.r.deleteTexture(this.nc);this.nc=null};
e.Ey=function(){this.font=this.wj+" "+this.pi.toString()+"pt "+this.gg;this.xb=!0;this.b.ja=!0};e.ed=function(c,d){c.font=this.font;c.textBaseline="top";c.fillStyle=this.color;c.globalAlpha=d?1:this.opacity;var b=1;d&&(b=this.j.zc(),c.save(),c.scale(b,b));if(this.xb||this.width!==this.jd)this.type.ma.ah(this.text,this.Oa,c,this.width,this.Uf),this.xb=!1,this.jd=this.width;this.xa();var b=d?0:this.Gb.da,e=d?0:this.Gb.ea;this.b.Uc&&(b=b+.5|0,e=e+.5|0);0===this.m||d||(c.save(),c.translate(b,e),c.rotate(this.m),
e=b=0);var l=e+this.height,a=this.Tm,a=a+this.pm,g,k;1===this.Od?e+=Math.max(this.height/2-this.Oa.length*a/2,0):2===this.Od&&(e+=Math.max(this.height-this.Oa.length*a-2,0));for(k=0;k<this.Oa.length&&!(g=b,1===this.zd?g=b+(this.width-this.Oa[k].width)/2:2===this.zd&&(g=b+(this.width-this.Oa[k].width)),c.fillText(this.Oa[k].text,g,e),e+=a,e>=l-a);k++);(0!==this.m||d)&&c.restore();this.le=this.b.te};e.xc=function(c){if(!(1>this.width||1>this.height)){var d=this.xb||this.Qp;this.Qp=!1;var b=this.j.zc(),
e=this.j.eb(),l=this.Lg,a=b*this.width,g=b*this.height,k=Math.ceil(a),p=Math.ceil(g),s=this.b.N/2,q=this.b.M/2;this.Kf||(this.Dd=document.createElement("canvas"),this.Dd.width=k,this.Dd.height=p,this.Rj=k,this.Qj=p,d=!0,this.Kf=this.Dd.getContext("2d"));if(k!==this.Rj||p!==this.Qj)this.Dd.width=k,this.Dd.height=p,this.nc&&(c.deleteTexture(this.nc),this.nc=null),d=!0;d&&(this.Kf.clearRect(0,0,k,p),this.ed(this.Kf,!0),this.nc||(this.nc=c.Xd(k,p,this.b.aa,this.b.je)),c.Sw(this.Dd,this.nc,this.b.je));
this.Rj=k;this.Qj=p;c.Yb(this.nc);c.We(this.opacity);c.Id();c.translate(-s,-q);c.Nd();var r=this.Gb,d=this.j.Na(r.da,r.ea,!0,!0),s=this.j.Na(r.da,r.ea,!1,!0),q=this.j.Na(r.Ha,r.Ia,!0,!0),h=this.j.Na(r.Ha,r.Ia,!1,!0),t=this.j.Na(r.Ea,r.Fa,!0,!0),D=this.j.Na(r.Ea,r.Fa,!1,!0),Y=this.j.Na(r.Ca,r.Da,!0,!0),r=this.j.Na(r.Ca,r.Da,!1,!0);if(this.b.Uc||0===this.m&&0===e)var z=(d+.5|0)-d,J=(s+.5|0)-s,d=d+z,s=s+J,q=q+z,h=h+J,t=t+z,D=D+J,Y=Y+z,r=r+J;0===this.m&&0===e?(q=d+k,h=s,t=q,D=s+p,Y=d,r=D,l.right=1,l.bottom=
1):(l.right=a/k,l.bottom=g/p);c.Hd(d,s,q,h,t,D,Y,r,l);c.Id();c.scale(b,b);c.Zm(-this.j.eb());c.translate((this.j.Ja+this.j.Va)/-2,(this.j.Ka+this.j.Ua)/-2);c.Nd();this.le=this.b.te}};var c=[];s.$g=function(e){c.length=0;for(var d="",b,f=0;f<e.length;)if(b=e.charAt(f),"\n"===b)d.length&&(c.push(d),d=""),c.push("\n"),++f;else if(" "===b||"\t"===b||"-"===b){do d+=e.charAt(f),f++;while(f<e.length&&(" "===e.charAt(f)||"\t"===e.charAt(f)));c.push(d);d=""}else f<e.length&&(d+=b,f++);d.length&&c.push(d)};
var l=[];s.ah=function(c,d,b,e,l){if(c&&c.length)if(2>=e)r(d);else{if(100>=c.length&&-1===c.indexOf("\n")){var a=b.measureText(c).width;if(a<=e){r(d);d.push(k());d[0].text=c;d[0].width=a;return}}this.bh(c,d,b,e,l)}else r(d)};s.bh=function(e,d,b,f,m){m&&(this.$g(e),e=c);var a="",g,p,s,q=0;for(s=0;s<e.length;s++)"\n"===e[s]?(q>=d.length&&d.push(k()),p=d[q],p.text=a,p.width=b.measureText(a).width,q++,a=""):(g=a,a+=e[s],p=b.measureText(a).width,p>=f&&(q>=d.length&&d.push(k()),p=d[q],p.text=g,p.width=
b.measureText(g).width,q++,a=e[s],m||" "!==a||(a="")));a.length&&(q>=d.length&&d.push(k()),p=d[q],p.text=a,p.width=b.measureText(a).width,q++);for(s=q;s<d.length;s++)l.push(d[s]);d.length=q};s.i=new function(){};p.prototype.Ti=function(c){Q(c)&&1E9>c&&(c=Math.round(1E10*c)/1E10);c=c.toString();this.text!==c&&(this.text=c,this.xb=!0,this.b.ja=!0)};s.B=new p;q.prototype.Text=function(c){c.Ba(this.text)};s.wa=new q})();function Z(k){this.b=k}
(function(){function k(a){d=a.x;b=a.y;f=a.z}function r(b){m=b.x;a=b.y;g=b.z}function p(a,b,c,d){var e;e=w.length?w.pop():new q;e.init(a,b,c,d);return e}function q(){this.Ei=this.id=this.y=this.x=this.Fk=this.Ek=this.nm=this.time=this.on=0;this.Ki=this.Mk=!1}function s(){}function e(){}var c=Z.prototype;c.za=function(a){this.ma=a;this.b=a.b};c.za.prototype.J=function(){};c.pa=function(a){this.type=a;this.b=a.b;this.touches=[];this.Am=!1};var l=c.pa.prototype,n={left:0,top:0};l.yh=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 d=0,b=0,f=0,m=0,a=0,g=0,w=[];q.prototype.init=function(a,b,c,d){var e=Sa();this.on=this.nm=this.time=e;this.Ek=a;this.Fk=b;this.x=a;this.y=b;this.id=c;this.Ei=d;this.Ki=this.Mk=!1};q.prototype.update=function(a,b,c){this.nm=this.time;this.time=a;this.x=b;this.y=c;!this.Ki&&15<=Oa(this.Ek,this.Fk,this.x,this.y)&&(this.Ki=!0)};q.prototype.uv=function(a,b){!this.Mk&&500<=Sa()-this.on&&!this.Ki&&15>Oa(this.Ek,this.Fk,
this.x,this.y)&&(this.Mk=!0,a.Md=this.Ei,a.Ug=this.id,a.mg=b,a.b.trigger(Z.prototype.i.gs,a),a.Zd=this.x,a.$d=this.y,a.b.trigger(Z.prototype.i.hs,a),a.mg=0)};var v=-1E3,u=-1E3,N=-1E4;q.prototype.Lp=function(a,b){if(!this.Mk){var c=Sa();333>=c-this.on&&!this.Ki&&15>Oa(this.Ek,this.Fk,this.x,this.y)&&(a.Md=this.Ei,a.Ug=this.id,a.mg=b,666>=c-N&&25>Oa(v,u,this.x,this.y)?(a.b.trigger(Z.prototype.i.as,a),a.Zd=this.x,a.$d=this.y,a.b.trigger(Z.prototype.i.bs,a),u=v=-1E3,N=-1E4):(a.b.trigger(Z.prototype.i.Bs,
a),a.Zd=this.x,a.$d=this.y,a.b.trigger(Z.prototype.i.Cs,a),v=this.x,u=this.y,N=c),a.mg=0)}};l.J=function(){this.kv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.mg=this.Ug=this.Md=this.$d=this.Zd=this.Yn=this.Xn=this.Wn=this.Ws=this.Vs=this.Us=this.li=this.ki=this.ji=0;this.Qw=0!==this.n[0];var a=0<this.b.gc?document:this.b.canvas,b=document;this.b.zb?b=a=window.Canvas:this.b.ic&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Zp(a)},
!1),a.addEventListener("pointermove",function(a){c.Yp(a)},!1),b.addEventListener("pointerup",function(a){c.gk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.gk(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.Zp(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Yp(a)},!1),b.addEventListener("MSPointerUp",function(a){c.gk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.gk(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.aq(a)},
!1),a.addEventListener("touchmove",function(a){c.$p(a)},!1),b.addEventListener("touchend",function(a){c.Km(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Km(a,!0)},!1));if(this.kv){var d=function(a){a=a.reading;c.Wn=a.accelerationX;c.Xn=a.accelerationY;c.Yn=a.accelerationZ},e=function(a){a=a.reading;c.ji=a.yawDegrees;c.ki=a.pitchDegrees;c.li=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.ji=a.alpha||
0;c.ki=a.beta||0;c.li=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Us=a.accelerationIncludingGravity.x||0,c.Vs=a.accelerationIncludingGravity.y||0,c.Ws=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Wn=a.acceleration.x||0,c.Xn=a.acceleration.y||0,c.Yn=a.acceleration.z||0)},!1);this.Qw&&!this.b.Ma&&(jQuery(document).mousemove(function(a){c.Jv(a)}),jQuery(document).mousedown(function(a){c.Iv(a)}),jQuery(document).mouseup(function(a){c.Kv(a)}));
this.b.pg&&!this.b.zb&&AppMobi.accelerometer.watchAcceleration(k,{frequency:40,adjustForRotation:!0});this.b.Mc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(r,null,{frequency:40});this.b.Gw(this)};l.Yp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.yh(a.pointerId),c=Sa();if(0<=b){var d=this.b.Ma?n:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};l.Zp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var b=this.b.Ma?n:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Sa();this.Md=this.touches.length;this.Ug=a.pointerId;this.touches.push(p(c,b,a.pointerId,this.Md));this.b.Bd=!0;this.b.trigger(Z.prototype.i.Nn,this);this.b.trigger(Z.prototype.i.Qn,this);this.Zd=c;this.$d=b;this.b.trigger(Z.prototype.i.Wk,this);
this.b.Bd=!1}};l.gk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var c=this.yh(a.pointerId);this.Md=0<=c?this.touches[c].Ei:-1;this.Ug=0<=c?this.touches[c].id:-1;this.b.Bd=!0;this.b.trigger(Z.prototype.i.Mn,this);this.b.trigger(Z.prototype.i.Pn,this);0<=c&&(b||this.touches[c].Lp(this,c),100>w.length&&w.push(this.touches[c]),this.touches.splice(c,1));this.b.Bd=!1}};l.$p=function(a){a.preventDefault&&a.preventDefault();
var b=Sa(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.yh(e.identifier),0<=f){var g=this.b.Ma?n:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};l.aq=function(a){a.preventDefault&&ib(a)&&a.preventDefault();var b=this.b.Ma?n:jQuery(this.b.canvas).offset();Sa();this.b.Bd=!0;var c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.yh(e.identifier),-1===f){f=e.pageX-b.left;var g=e.pageY-
b.top;this.Md=this.touches.length;this.Ug=e.identifier;this.touches.push(p(f,g,e.identifier,this.Md));this.b.trigger(Z.prototype.i.Nn,this);this.b.trigger(Z.prototype.i.Qn,this);this.Zd=f;this.$d=g;this.b.trigger(Z.prototype.i.Wk,this)}this.b.Bd=!1};l.Km=function(a,b){a.preventDefault&&ib(a)&&a.preventDefault();this.b.Bd=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.yh(e.identifier),0<=e&&(this.Md=this.touches[e].Ei,this.Ug=this.touches[e].id,this.b.trigger(Z.prototype.i.Mn,
this),this.b.trigger(Z.prototype.i.Pn,this),b||this.touches[e].Lp(this,e),100>w.length&&w.push(this.touches[e]),this.touches.splice(e,1));this.b.Bd=!1};l.cy=function(){return this.b.pg&&0===this.ji&&0!==f?90*f:this.b.Mc&&0===this.ji&&0!==g?90*g:this.ji};l.ey=function(){return this.b.pg&&0===this.ki&&0!==b?-90*b:this.b.Mc&&0===this.ki&&0!==a?90*a:this.ki};l.ky=function(){return this.b.pg&&0===this.li&&0!==d?90*d:this.b.Mc&&0===this.li&&0!==m?90*m:this.li};l.Iv=function(a){a.preventDefault&&this.b.Tl&&
!this.b.je&&a.preventDefault();this.aq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Am=!0};l.Jv=function(a){this.Am&&this.$p({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};l.Kv=function(a){a.preventDefault&&this.b.Tl&&!this.b.je&&a.preventDefault();this.b.Tl=!0;this.Km({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Am=!1};l.rn=function(){var a,b,c,d=Sa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.nm=d),c.uv(this,
a)};s.prototype.Qn=function(){return!0};s.prototype.Pn=function(){return!0};s.prototype.Wk=function(a){return a?this.b.Hk(a,this.Zd,this.$d):!1};s.prototype.Nn=function(a){a=Math.floor(a);return a===this.Md};s.prototype.Mn=function(a){a=Math.floor(a);return a===this.Md};s.prototype.gs=function(){return!0};s.prototype.Bs=function(){return!0};s.prototype.as=function(){return!0};s.prototype.hs=function(a){return a?this.b.Hk(a,this.Zd,this.$d):!1};s.prototype.Cs=function(a){return a?this.b.Hk(a,this.Zd,
this.$d):!1};s.prototype.bs=function(a){return a?this.b.Hk(a,this.Zd,this.$d):!1};c.i=new s;e.prototype.Rs=function(a,b){var c=this.mg;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,f,g,l;ha(b)?(d=this.b.zh(0),e=d.scale,f=d.td,g=d.Sc,l=d.m,d.scale=1,d.td=1,d.Sc=1,d.m=0,a.D(d.cc(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.td=f,d.Sc=g,d.m=l):(d=Q(b)?this.b.zh(b):this.b.Nl(b))?a.D(d.cc(this.touches[c].x,this.touches[c].y,!0)):a.D(0)}};e.prototype.Ss=function(a,b){var c=this.mg;if(0>c||c>=
this.touches.length)a.D(0);else{var d,e,f,g,l;ha(b)?(d=this.b.zh(0),e=d.scale,f=d.td,g=d.Tc,l=d.m,d.scale=1,d.td=1,d.Tc=1,d.m=0,a.D(d.cc(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.td=f,d.Tc=g,d.m=l):(d=Q(b)?this.b.zh(b):this.b.Nl(b))?a.D(d.cc(this.touches[c].x,this.touches[c].y,!1)):a.D(0)}};c.wa=new e})();function rc(k){this.b=k}
(function(){function k(){}function r(){}function p(){}var q=rc.prototype;q.za=function(c){this.ma=c;this.b=c.b};q.za.prototype.J=function(){};q.pa=function(c){this.type=c;this.b=c.b};var s=q.pa.prototype,e="",c="undefined"!==typeof window.is_scirra_arcade;c&&(e="arcade"+window.scirra_arcade_id);s.J=function(){"undefined"===typeof localStorage&&M("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");"undefined"===typeof sessionStorage&&M("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")};
k.prototype.Ur=function(c){return"undefined"===typeof localStorage?!1:null!=localStorage.getItem(e+c)};k.prototype.On=function(){return!0};q.i=new k;r.prototype.Os=function(c,n){if("undefined"!==typeof localStorage)try{localStorage.setItem(e+c,n)}catch(d){this.b.trigger(rc.prototype.i.On,this)}};r.prototype.In=function(l,n){if("undefined"!==typeof localStorage){var d;try{d=JSON.parse(l)}catch(b){return}if(d.c2dictionary){d=d.data;0!==n||c||localStorage.clear();for(var f in d)if(d.hasOwnProperty(f))try{localStorage.setItem(e+
f,d[f])}catch(m){this.b.trigger(rc.prototype.i.On,this);break}}}};q.B=new r;p.prototype.Vr=function(c,n){"undefined"===typeof localStorage?c.Ba(""):c.Ba(localStorage.getItem(e+n)||"")};p.prototype.Rk=function(l){if("undefined"===typeof localStorage)l.Ba("");else{var n={},d,b,f;d=0;for(b=localStorage.length;d<b;d++)f=localStorage.key(d),c?f.substr(0,e.length)===e&&(n[f.substr(e.length)]=localStorage.getItem(f)):n[f]=localStorage.getItem(f);l.Ba(JSON.stringify({c2dictionary:!0,data:n}))}};q.wa=new p})();
function tc(k){this.b=k}
(function(){function k(){}function r(){}var p=tc.prototype;p.za=function(k){this.behavior=k;this.b=k.b};p.za.prototype.J=function(){};p.pa=function(k,e){this.type=k;this.behavior=k.behavior;this.e=e;this.b=k.b;this.Ci=this.Ak=this.zk=this.Xl=this.jh=this.sh=this.xg=this.Sh=this.uk=this.Uj=!1;this.Ac=null;this.qm=-1;this.Cf=this.Bf=0;this.vj=!1;this.hg=this.ad=0;this.uj=!0;this.ua=this.K=0};var q=p.pa.prototype;q.gr=function(){this.qb=Math.cos(this.kg);this.rb=Math.sin(this.kg);this.Pf=Math.cos(this.kg-
Math.PI/2);this.Qf=Math.sin(this.kg-Math.PI/2);this.qb=gb(this.qb);this.rb=gb(this.rb);this.Pf=gb(this.Pf);this.Qf=gb(this.Qf);this.Gl=this.fe;0>this.fe&&(this.qb*=-1,this.rb*=-1,this.fe=Math.abs(this.fe))};q.J=function(){this.Fg=this.n[0];this.Zf=this.n[1];this.eg=this.n[2];this.Rh=this.n[3];this.Gl=this.fe=this.n[4];this.ck=this.n[5];this.tl=0!==this.n[6];this.lm=this.n[7]/1E3;this.ot=1===this.n[8];this.enabled=0!==this.n[9];this.Yg=!1;this.Qi=this.b.bf(this.e);this.rm=-1;this.Sf=0;this.kg=U(90);
this.gr();var k=this;this.ot&&!this.b.Ma&&(jQuery(document).keydown(function(e){k.Gv(e)}),jQuery(document).keyup(function(e){k.Hv(e)}));this.Qb||(this.Pp=function(e){k.Im(e)});this.b.$n(this.Pp);this.e.T.isPlatformBehavior=!0};q.Rb=function(){return{ii:this.Xl,lfx:this.Bf,lfy:this.Cf,lfo:this.Ac?this.Ac.uid:-1,am:this.ad,en:this.enabled,fall:this.hg,ft:this.uj,dx:this.K,dy:this.ua,ms:this.Fg,acc:this.Zf,dec:this.eg,js:this.Rh,g:this.fe,g1:this.Gl,mf:this.ck,wof:this.Yg,woj:this.Qi?this.Qi.uid:-1,
ga:this.kg,edj:this.tl,cdj:this.jh,dj:this.sh,sus:this.lm}};q.mc=function(k){this.Xl=k.ii;this.Bf=k.lfx;this.Cf=k.lfy;this.qm=k.lfo;this.ad=k.am;this.enabled=k.en;this.hg=k.fall;this.uj=k.ft;this.K=k.dx;this.ua=k.dy;this.Fg=k.ms;this.Zf=k.acc;this.eg=k.dec;this.Rh=k.js;this.fe=k.g;this.Gl=k.g1;this.ck=k.mf;this.Yg=k.wof;this.rm=k.woj;this.kg=k.ga;this.tl=k.edj;this.jh=k.cdj;this.sh=k.dj;this.lm=k.sus;this.Ci=this.Ak=this.zk=this.xg=this.Sh=this.uk=this.Uj=!1;this.Sf=0;this.gr()};q.Rd=function(){this.Ac=
-1===this.qm?null:this.b.lg(this.qm);this.Qi=-1===this.rm?null:this.b.lg(this.rm)};q.Im=function(k){this.Ac==k&&(this.Ac=null)};q.Se=function(){this.Ac=null;this.b.iw(this.Pp)};q.Gv=function(k){switch(k.which){case 38:k.preventDefault();this.Sh=!0;break;case 37:k.preventDefault();this.Uj=!0;break;case 39:k.preventDefault(),this.uk=!0}};q.Hv=function(k){switch(k.which){case 38:k.preventDefault();this.xg=this.Sh=!1;break;case 37:k.preventDefault();this.Uj=!1;break;case 39:k.preventDefault(),this.uk=
!1}};q.jy=function(){return 0>this.fe?-1:1};q.ep=function(){var k=null,e=null,c,l;c=this.e.x;l=this.e.y;this.e.x+=this.qb;this.e.y+=this.rb;this.e.A();if(this.Ac&&this.b.Xc(this.e,this.Ac))return this.e.x=c,this.e.y=l,this.e.A(),this.Ac;(k=this.b.rc(this.e))||0!==this.hg||(e=this.b.bf(this.e,!0));this.e.x=c;this.e.y=l;this.e.A();if(k){if(this.b.Xc(this.e,k))return null;this.vj=!1;return k}if(e&&e.length){l=k=0;for(c=e.length;k<c;k++)e[l]=e[k],this.b.Xc(this.e,e[k])||l++;if(1<=l)return this.vj=!0,
e[0]}return null};q.Eb=function(){};q.pq=function(){var k=this.b.Jl(this.e),e,c,l,n,d,b,f,m,a;this.Sh||this.Ci||(this.xg=!1);var g=this.Uj||this.zk;l=this.uk||this.Ak;var p=(n=this.Sh||this.Ci)&&!this.xg;this.Ci=this.Ak=this.zk=!1;if(this.enabled){this.Xl&&(p=n=l=g=!1);n||(this.Sf=0);m=this.Ac;a=!1;this.uj&&((this.b.rc(this.e)||this.b.bf(this.e))&&this.b.nd(this.e,-this.qb,-this.rb,4,!0),this.uj=!1);!m||0!==this.ua||m.y===this.Cf&&m.x===this.Bf||(e=m.x-this.Bf,c=m.y-this.Cf,this.e.x+=e,this.e.y+=
c,this.e.A(),this.Bf=m.x,this.Cf=m.y,a=!0,this.b.rc(this.e)&&this.b.nd(this.e,-e,-c,2.5*Math.sqrt(e*e+c*c)));var q=this.ep();if(c=this.b.rc(this.e))if(this.e.T.inputPredicted)this.b.nd(this.e,-this.qb,-this.rb,10,!1);else if(this.b.gw(this.e,Math.max(this.e.width,this.e.height)/2))this.b.si(this.e,c);else return;q?(this.jh=this.sh=!1,0<this.ua&&(this.Yg||(this.b.Sm(this.e,-this.qb,-this.rb,q),this.Yg=!0),this.ua=0),m!=q)?(this.Ac=q,this.Bf=q.x,this.Cf=q.y,this.b.si(this.e,q)):a&&(c=this.b.rc(this.e))&&
(this.b.si(this.e,c),0!==e&&(0<e?this.b.nd(this.e,-this.Pf,-this.Qf):this.b.nd(this.e,this.Pf,this.Qf)),this.b.nd(this.e,-this.qb,-this.rb)):n||(this.jh=!0);if(q&&p||!q&&this.tl&&n&&this.jh&&!this.sh)m=this.e.x,a=this.e.y,this.e.x-=this.qb,this.e.y-=this.rb,this.e.A(),this.b.rc(this.e)?p=!1:(this.Sf=this.lm,this.b.trigger(tc.prototype.i.ks,this.e),this.ad=2,this.ua=-this.Rh,p=!0,q?this.xg=!0:this.sh=!0),this.e.x=m,this.e.y=a,this.e.A();q||(n&&0<this.Sf?(this.ua=-this.Rh,this.Sf-=k):(this.Ac=null,
this.ua+=this.fe*k,this.ua>this.ck&&(this.ua=this.ck)),p&&(this.xg=!0));this.Yg=!!q;g==l&&(0>this.K?(this.K+=this.eg*k,0<this.K&&(this.K=0)):0<this.K&&(this.K-=this.eg*k,0>this.K&&(this.K=0)));g&&!l&&(this.K=0<this.K?this.K-(this.Zf+this.eg)*k:this.K-this.Zf*k);l&&!g&&(this.K=0>this.K?this.K+(this.Zf+this.eg)*k:this.K+this.Zf*k);this.K>this.Fg?this.K=this.Fg:this.K<-this.Fg&&(this.K=-this.Fg);g=!1;0!==this.K&&(m=this.e.x,a=this.e.y,e=this.K*k*this.Pf,c=this.K*k*this.Qf,this.e.x+=this.Pf*(1<this.K?
1:-1)-this.qb,this.e.y+=this.Qf*(1<this.K?1:-1)-this.rb,this.e.A(),n=!1,d=this.b.rc(this.e),this.e.x=m+e,this.e.y=a+c,this.e.A(),l=this.b.rc(this.e),!l&&q&&(l=this.b.bf(this.e))&&(this.e.x=m,this.e.y=a,this.e.A(),this.b.Xc(this.e,l)?(l=null,n=!1):n=!0,this.e.x=m+e,this.e.y=a+c,this.e.A()),l?(e=Math.abs(this.K*k)+2,d||!this.b.nd(this.e,-this.qb,-this.rb,e,n,l))?(this.b.si(this.e,l),e=Math.max(Math.abs(this.K*k*2.5),30),this.b.nd(this.e,this.Pf*(0>this.K?1:-1),this.Qf*(0>this.K?1:-1),e,!1)?!q||n||this.vj||
(m=this.e.x,a=this.e.y,this.e.x+=this.qb,this.e.y+=this.rb,this.b.rc(this.e)?this.b.nd(this.e,-this.qb,-this.rb,3,!1)||(this.e.x=m,this.e.y=a,this.e.A()):(this.e.x=m,this.e.y=a,this.e.A())):(this.e.x=m,this.e.y=a,this.e.A()),n||(this.K=0)):!d&&!p&&Math.abs(this.ua)<Math.abs(this.Rh/4)&&(this.ua=0,q||(g=!0)):(m=this.ep(),q&&!m?(c=Math.ceil(Math.abs(this.K*k))+2,m=this.e.x,a=this.e.y,this.e.x+=this.qb*c,this.e.y+=this.rb*c,this.e.A(),this.b.rc(this.e)||this.b.bf(this.e)?this.b.nd(this.e,-this.qb,-this.rb,
c+2,!0):(this.e.x=m,this.e.y=a,this.e.A())):m&&0===this.ua&&this.b.Sm(this.e,-this.qb,-this.rb,m)));if(0!==this.ua){m=this.e.x;a=this.e.y;this.e.x+=this.ua*k*this.qb;this.e.y+=this.ua*k*this.rb;e=this.e.x;l=this.e.y;this.e.A();c=this.b.rc(this.e);n=!1;if(!c&&0<this.ua&&!q){if((n=0<this.hg?null:this.b.bf(this.e,!0))&&n.length){if(this.Qi){this.e.x=m;this.e.y=a;this.e.A();f=d=0;for(b=n.length;d<b;d++)n[f]=n[d],this.b.Xc(this.e,n[d])||f++;n.length=f;this.e.x=e;this.e.y=l;this.e.A()}1<=n.length&&(c=n[0])}n=
!!c}c&&(this.b.si(this.e,c),this.Sf=0,e=n?Math.abs(this.ua*k*2.5+10):Math.max(Math.abs(this.ua*k*2.5+10),30),this.b.nd(this.e,this.qb*(0>this.ua?1:-1),this.rb*(0>this.ua?1:-1),e,n,c)?(this.Ac=c,this.Bf=c.x,this.Cf=c.y,(this.vj=n)&&(g=!0),this.ua=0):(this.e.x=m,this.e.y=a,this.e.A(),this.Yg=!0,n||(this.ua=0)))}3!==this.ad&&0<this.ua&&!q&&(this.b.trigger(tc.prototype.i.cs,this.e),this.ad=3);if(q||g)3===this.ad||g||p&&0===this.ua?(this.b.trigger(tc.prototype.i.ls,this.e),this.ad=0===this.K&&0===this.ua?
0:1):(0!==this.ad&&0===this.K&&0===this.ua&&(this.b.trigger(tc.prototype.i.As,this.e),this.ad=0),1===this.ad||0===this.K&&0===this.ua||p||(this.b.trigger(tc.prototype.i.qs,this.e),this.ad=1));0<this.hg&&this.hg--;this.Qi=this.b.bf(this.e)}};k.prototype.ks=function(){return!0};k.prototype.cs=function(){return!0};k.prototype.As=function(){return!0};k.prototype.qs=function(){return!0};k.prototype.ls=function(){return!0};p.i=new k;r.prototype.Ms=function(k){switch(k){case 0:this.zk=!0;break;case 1:this.Ak=
!0;break;case 2:this.Ci=!0}};p.B=new r;p.wa=new function(){}})();function ic(k){this.b=k}(function(){var k=ic.prototype;k.za=function(k){this.behavior=k;this.b=k.b};k.za.prototype.J=function(){};k.pa=function(k,q){this.type=k;this.behavior=k.behavior;this.e=q;this.b=k.b};var r=k.pa.prototype;r.J=function(){this.e.T.solidEnabled=0!==this.n[0]};r.Eb=function(){};k.i=new function(){};k.B=new function(){}})();
function hc(){return[X,mc,lc,kc,nc,pc,jc,qc,Z,rc,oc,tc,ic,W.prototype.i.Jn,jc.prototype.B.Es,W.prototype.B.Ks,W.prototype.i.Ar,pc.prototype.B.Ti,W.prototype.B.Ds,W.prototype.i.Qr,Z.prototype.i.Wk,jc.prototype.B.Fr,jc.prototype.B.Tn,jc.prototype.B.Fs,pc.prototype.B.Tn,W.prototype.B.Qs,W.prototype.B.Lr,W.prototype.i.Hr,kc.prototype.B.CallFunction,W.prototype.i.Gr,W.prototype.B.Ps,kc.prototype.i.Si,lc.prototype.B.sr,lc.prototype.B.Un,W.prototype.wa.random,lc.prototype.wa.Vn,W.prototype.i.Ir,W.prototype.wa.sv,
lc.prototype.wa.qr,W.prototype.wa.round,lc.prototype.i.Br,lc.prototype.i.Fn,W.prototype.i.Gn,jc.prototype.i.yr,W.prototype.i.Jr,jc.prototype.B.Gs,jc.prototype.i.Rr,W.prototype.i.xr,W.prototype.wa.cf,tc.prototype.B.Ms,mc.prototype.B.Play,W.prototype.B.nr,W.prototype.B.Js,W.prototype.B.Cr,jc.prototype.B.Hs,oc.prototype.B.Ti,rc.prototype.i.Ur,rc.prototype.wa.Vr,lc.prototype.i.pr,lc.prototype.wa.Dr,W.prototype.wa["int"],W.prototype.wa.Kw,lc.prototype.B.Ns,lc.prototype.B.Er,lc.prototype.B.Nr,rc.prototype.B.Os,
X.prototype.B.yw,pc.prototype.i.Ri,lc.prototype.B.In,pc.prototype.B.Sn,lc.prototype.wa.Hn]};
