// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,K,fa,ga,P,R,ia,ka,la,ma,na,T,qa,ra,U,ta,va,wa,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ga,Ia,Ja,Ka,La,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(e,a,b,q){this.set(e,a,b,q)}function m(){this.wb=this.ub=this.yb=this.xb=this.Kb=this.Jb=this.Ua=this.Ta=0}function d(e,a,b,q){e<a?b<q?(r=e<b?e:b,B=a>q?a:q):(r=e<q?e:q,B=a>b?a:b):b<q?(r=a<b?a:b,B=e>q?e:q):(r=a<q?a:q,B=e>b?e:b)}function p(){this.items=this.Oc=null;this.Cf=0;q&&(this.Oc=new Set);this.gg=[];this.Wd=!0}function l(e){x[C++]=e}function c(){this.aa=this.Ej=this.y=this.fk=0}function a(e){this.Pa=[];this.Nh=this.Ph=this.Qh=this.Oh=0;this.zh(e)}function b(e,a){this.ik=
e;this.hk=a;this.cells={}}function v(e,a){this.ik=e;this.hk=a;this.cells={}}function s(e,a,b){var q;return oa.length?(q=oa.pop(),q.Rk=e,q.x=a,q.y=b,q):new aa(e,a,b)}function f(e,a,b){this.Rk=e;this.x=a;this.y=b;this.Za=new ca}function k(e,a,b){var q;return w.length?(q=w.pop(),q.Rk=e,q.x=a,q.y=b,q):new da(e,a,b)}function t(e,a,b){this.Rk=e;this.x=a;this.y=b;this.Za=[];this.Af=!0;this.ad=new ca;this.kg=!1}function h(e,a){return e.Tc-a.Tc}K=function(e){window.console&&window.console.log&&window.console.log(e)};
fa=function(e){window.console&&window.console.error&&window.console.error(e)};ga=function(e){return"undefined"===typeof e};P=function(e){return"number"===typeof e};R=function(e){return"string"===typeof e};ia=function(e){return 0<e&&0===(e-1&e)};ka=function(e){--e;for(var a=1;32>a;a<<=1)e|=e>>a;return e+1};la=function(e){return 0>e?-e:e};ma=function(e,a){return e<a?e:a};na=Math.PI;T=function(e){return 0<=e?e|0:(e|0)-1};qa=function(e){var a=e|0;return a===e?a:a+1};ra=function(e,a,b,q,u,f,c,k){var h,
x,n,C;e<b?(x=e,h=b):(x=b,h=e);u<c?(C=u,n=c):(C=c,n=u);if(h<C||x>n)return!1;a<q?(x=a,h=q):(x=q,h=a);f<k?(C=f,n=k):(C=k,n=f);if(h<C||x>n)return!1;h=u-e+c-b;x=f-a+k-q;e=b-e;a=q-a;u=c-u;f=k-f;k=la(a*u-f*e);return la(u*x-f*h)>k?!1:la(e*x-a*h)<=k};g.prototype.set=function(e,a,b,q){this.left=e;this.top=a;this.right=b;this.bottom=q};g.prototype.rg=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};g.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};g.prototype.Us=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};g.prototype.Vs=function(e,a,b){return!(e.right+a<this.left||e.bottom+
b<this.top||e.left+a>this.right||e.top+b>this.bottom)};g.prototype.bb=function(e,a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};g.prototype.gi=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};U=g;m.prototype.Vf=function(e){this.Ta=e.left;this.Ua=e.top;this.Jb=e.right;this.Kb=e.top;this.xb=e.right;this.yb=e.bottom;this.ub=e.left;this.wb=e.bottom};m.prototype.fp=function(e,a){if(0===a)this.Vf(e);else{var b=Math.sin(a),q=Math.cos(a),
u=e.left*b,f=e.top*b,k=e.right*b,b=e.bottom*b,c=e.left*q,h=e.top*q,x=e.right*q,q=e.bottom*q;this.Ta=c-f;this.Ua=h+u;this.Jb=x-f;this.Kb=h+k;this.xb=x-b;this.yb=q+k;this.ub=c-b;this.wb=q+u}};m.prototype.offset=function(e,a){this.Ta+=e;this.Ua+=a;this.Jb+=e;this.Kb+=a;this.xb+=e;this.yb+=a;this.ub+=e;this.wb+=a;return this};var r=0,B=0;m.prototype.Vm=function(e){d(this.Ta,this.Jb,this.xb,this.ub);e.left=r;e.right=B;d(this.Ua,this.Kb,this.yb,this.wb);e.top=r;e.bottom=B};m.prototype.bb=function(e,a){var b=
this.Jb-this.Ta,q=this.Kb-this.Ua,u=this.xb-this.Ta,f=this.yb-this.Ua,k=e-this.Ta,c=a-this.Ua,h=b*b+q*q,x=b*u+q*f,q=b*k+q*c,n=u*u+f*f,C=u*k+f*c,t=1/(h*n-x*x),b=(n*q-x*C)*t,h=(h*C-x*q)*t;if(0<=b&&0<h&&1>b+h)return!0;b=this.ub-this.Ta;q=this.wb-this.Ua;h=b*b+q*q;x=b*u+q*f;q=b*k+q*c;t=1/(h*n-x*x);b=(n*q-x*C)*t;h=(h*C-x*q)*t;return 0<=b&&0<h&&1>b+h};m.prototype.Ud=function(e,a){if(a)switch(e){case 0:return this.Ta;case 1:return this.Jb;case 2:return this.xb;case 3:return this.ub;case 4:return this.Ta;
default:return this.Ta}else switch(e){case 0:return this.Ua;case 1:return this.Kb;case 2:return this.yb;case 3:return this.wb;case 4:return this.Ua;default:return this.Ua}};m.prototype.po=function(){return(this.Ta+this.Jb+this.xb+this.ub)/4};m.prototype.qo=function(){return(this.Ua+this.Kb+this.yb+this.wb)/4};m.prototype.Hn=function(e){var a=e.po(),b=e.qo();if(this.bb(a,b))return!0;a=this.po();b=this.qo();if(e.bb(a,b))return!0;var q,u,f,k,c,h,x,n;for(x=0;4>x;x++)for(n=0;4>n;n++)if(a=this.Ud(x,!0),
b=this.Ud(x,!1),q=this.Ud(x+1,!0),u=this.Ud(x+1,!1),f=e.Ud(n,!0),k=e.Ud(n,!1),c=e.Ud(n+1,!0),h=e.Ud(n+1,!1),ra(a,b,q,u,f,k,c,h))return!0;return!1};ta=m;va=function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b]);return e};wa=function(e,a){var b,q;a=T(a);if(!(0>a||a>=e.length)){b=a;for(q=e.length-1;b<q;b++)e[b]=e[b+1];e.length=q}};xa=function(e,a){e.length=a.length;var b,q;b=0;for(q=a.length;b<q;b++)e[b]=a[b]};ya=function(e,a){e.push.apply(e,a)};za=function(e,a){var b,q;b=0;for(q=e.length;b<q;++b)if(e[b]===
a)return b;return-1};Aa=function(e,a){var b=za(e,a);-1!==b&&wa(e,b)};V=function(e){return e/(180/na)};Ba=function(e){return 180/na*e};Ca=function(e){e%=360;0>e&&(e+=360);return e};Da=function(e){e%=2*na;0>e&&(e+=2*na);return e};Ea=function(e){return Ca(Ba(e))};Fa=function(e){return Da(V(e))};Ga=function(e,a,b,q){return Math.atan2(q-a,b-e)};Ia=function(e,a){if(e===a)return 0;var b=Math.sin(e),q=Math.cos(e),u=Math.sin(a),f=Math.cos(a),b=b*u+q*f;return 1<=b?0:-1>=b?na:Math.acos(b)};Ja=function(e,a,b){var q=
Math.sin(e),u=Math.cos(e),f=Math.sin(a),k=Math.cos(a);return Math.acos(q*f+u*k)>b?0<u*f-q*k?Da(e+b):Da(e-b):Da(a)};Ka=function(e,a){var b=Math.sin(e),q=Math.cos(e),u=Math.sin(a),f=Math.cos(a);return 0>=q*u-b*f};La=function(e,a,b,q,u,f){if(0===b)return f?e:a;var k=Math.sin(b);b=Math.cos(b);e-=q;a-=u;var c=e*k;e=e*b-a*k;a=a*b+c;return f?e+q:a+u};Qa=function(e,a,b,q){e=b-e;a=q-a;return Math.sqrt(e*e+a*a)};Ra=function(e,a){return!e!==!a};Sa=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};
Ta=function(e){for(var a in e)e.hasOwnProperty(a)&&delete e[a]};var A=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-A};var n=!1,e=n=!1,u=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
n=!n&&/safari/i.test(navigator.userAgent),e=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var q=!n&&!u&&!e&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(e){return this.xd()?!1:q?this.Oc.has(e):this.items&&this.items.hasOwnProperty(e)};p.prototype.add=function(e){if(q)this.Oc.has(e)||(this.Oc.add(e),this.Wd=!1);else{var a=e.toString(),b=this.items;b?b.hasOwnProperty(a)||(b[a]=e,this.Cf++,this.Wd=!1):(this.items={},this.items[a]=
e,this.Cf=1,this.Wd=!1)}};p.prototype.remove=function(e){if(!this.xd())if(q)this.Oc.has(e)&&(this.Oc["delete"](e),this.Wd=!1);else if(this.items){e=e.toString();var a=this.items;a.hasOwnProperty(e)&&(delete a[e],this.Cf--,this.Wd=!1)}};p.prototype.clear=function(){this.xd()||(q?this.Oc.clear():(this.items=null,this.Cf=0),this.gg.length=0,this.Wd=!0)};p.prototype.xd=function(){return 0===this.count()};p.prototype.count=function(){return q?this.Oc.size:this.Cf};var x=null,C=0;p.prototype.nu=function(){if(!this.Wd){if(q)this.gg.length=
this.Oc.size,x=this.gg,C=0,this.Oc.forEach(l),x=null,C=0;else{var e=this.gg;e.length=this.Cf;var a,b=0,u=this.items;if(u)for(a in u)u.hasOwnProperty(a)&&(e[b++]=u[a])}this.Wd=!0}};p.prototype.Sc=function(){this.nu();return this.gg};ca=p;new ca;Va=function(e,a){q?Wa(e,a.Oc):Xa(e,a.Sc())};Wa=function(e,a){var b,q,u,f;q=b=0;for(u=e.length;b<u;++b)f=e[b],a.has(f)||(e[q++]=f);e.length=q};Xa=function(e,a){var b,q,u,f;q=b=0;for(u=e.length;b<u;++b)f=e[b],-1===za(a,f)&&(e[q++]=f);e.length=q};c.prototype.add=
function(e){this.y=e-this.fk;this.Ej=this.aa+this.y;this.fk=this.Ej-this.aa-this.y;this.aa=this.Ej};c.prototype.reset=function(){this.aa=this.Ej=this.y=this.fk=0};Ya=c;Za=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.zh=function(e){this.So=e;this.Mc=e.length/2;this.Pa.length=e.length;this.Uh=this.Vh=-1;this.Ym=0};a.prototype.xf=function(){return!this.So.length};a.prototype.ma=function(){for(var e=this.Pa,a=e[0],b=a,q=e[1],u=q,f,k,c=1,h=this.Mc;c<h;++c)k=2*c,f=e[k],k=
e[k+1],f<a&&(a=f),f>b&&(b=f),k<q&&(q=k),k>u&&(u=k);this.Oh=a;this.Ph=b;this.Qh=q;this.Nh=u};a.prototype.Vf=function(e,a,b){this.Pa.length=8;this.Mc=4;var q=this.Pa;q[0]=e.left-a;q[1]=e.top-b;q[2]=e.right-a;q[3]=e.top-b;q[4]=e.right-a;q[5]=e.bottom-b;q[6]=e.left-a;q[7]=e.bottom-b;this.Vh=e.right-e.left;this.Uh=e.bottom-e.top;this.ma()};a.prototype.Uf=function(e,a,b,q,u){this.Pa.length=8;this.Mc=4;var f=this.Pa;f[0]=e.Ta-a;f[1]=e.Ua-b;f[2]=e.Jb-a;f[3]=e.Kb-b;f[4]=e.xb-a;f[5]=e.yb-b;f[6]=e.ub-a;f[7]=
e.wb-b;this.Vh=q;this.Uh=u;this.ma()};a.prototype.ep=function(e){this.Mc=e.Mc;xa(this.Pa,e.Pa);this.Oh=e.Oh;this.Qh-e.Qh;this.Ph=e.Ph;this.Nh=e.Nh};a.prototype.kf=function(e,a,b){if(this.Vh!==e||this.Uh!==a||this.Ym!==b){this.Vh=e;this.Uh=a;this.Ym=b;var q,f,u,k,c,h=0,x=1,n=this.So,C=this.Pa;0!==b&&(h=Math.sin(b),x=Math.cos(b));b=0;for(u=this.Mc;b<u;b++)q=2*b,f=q+1,k=n[q]*e,c=n[f]*a,C[q]=k*x-c*h,C[f]=c*x+k*h;this.ma()}};a.prototype.bb=function(e,a){var b=this.Pa;if(e===b[0]&&a===b[1])return!0;var q,
f,u,k=this.Mc,c=this.Oh-110,h=this.Qh-101,x=this.Ph+131,n=this.Nh+120,C,t,d=0,r=0;for(q=0;q<k;q++)f=2*q,u=(q+1)%k*2,C=b[f],f=b[f+1],t=b[u],u=b[u+1],ra(c,h,e,a,C,f,t,u)&&d++,ra(x,n,e,a,C,f,t,u)&&r++;return 1===d%2||1===r%2};a.prototype.Hg=function(e,a,b){var q=e.Pa,f=this.Pa;if(this.bb(q[0]+a,q[1]+b)||e.bb(f[0]-a,f[1]-b))return!0;var u,k,c,h,x,n,C,t,d,r,w,v;u=0;for(h=this.Mc;u<h;u++)for(k=2*u,c=(u+1)%h*2,t=f[k],k=f[k+1],d=f[c],r=f[c+1],c=0,C=e.Mc;c<C;c++)if(x=2*c,n=(c+1)%C*2,w=q[x]+a,x=q[x+1]+b,v=
q[n]+a,n=q[n+1]+b,ra(t,k,d,r,w,x,v,n))return!0;return!1};$a=a;b.prototype.de=function(e,a,b){var q;q=this.cells[e];return q?(q=q[a])?q:b?(q=s(this,e,a),this.cells[e][a]=q):null:b?(q=s(this,e,a),this.cells[e]={},this.cells[e][a]=q):null};b.prototype.$b=function(e){return T(e/this.ik)};b.prototype.ac=function(e){return T(e/this.hk)};b.prototype.update=function(e,a,b){var q,f,u,k,c;if(a)for(q=a.left,f=a.right;q<=f;++q)for(u=a.top,k=a.bottom;u<=k;++u)if(!b||!b.bb(q,u))if(c=this.de(q,u,!1))c.remove(e),
c.xd()&&(c.Za.clear(),1E3>oa.length&&oa.push(c),this.cells[q][u]=null);if(b)for(q=b.left,f=b.right;q<=f;++q)for(u=b.top,k=b.bottom;u<=k;++u)a&&a.bb(q,u)||this.de(q,u,!0).al(e)};b.prototype.pj=function(e,a){var b,q,u,f,k,c;b=this.$b(e.left);u=this.ac(e.top);q=this.$b(e.right);for(k=this.ac(e.bottom);b<=q;++b)for(f=u;f<=k;++f)(c=this.de(b,f,!1))&&c.dump(a)};ab=b;v.prototype.de=function(e,a,b){var q;q=this.cells[e];return q?(q=q[a])?q:b?(q=k(this,e,a),this.cells[e][a]=q):null:b?(q=k(this,e,a),this.cells[e]=
{},this.cells[e][a]=q):null};v.prototype.$b=function(e){return T(e/this.ik)};v.prototype.ac=function(e){return T(e/this.hk)};v.prototype.update=function(e,a,b){var q,u,f,k,c;if(a)for(q=a.left,u=a.right;q<=u;++q)for(f=a.top,k=a.bottom;f<=k;++f)if(!b||!b.bb(q,f))if(c=this.de(q,f,!1))c.remove(e),c.xd()&&(c.reset(),1E3>w.length&&w.push(c),this.cells[q][f]=null);if(b)for(q=b.left,u=b.right;q<=u;++q)for(f=b.top,k=b.bottom;f<=k;++f)a&&a.bb(q,f)||this.de(q,f,!0).al(e)};v.prototype.pj=function(e,a,b,q,f){var u,
k;e=this.$b(e);a=this.ac(a);b=this.$b(b);for(u=this.ac(q);e<=b;++e)for(q=a;q<=u;++q)(k=this.de(e,q,!1))&&k.dump(f)};v.prototype.it=function(e){var a,b,q,f,u;a=e.left;q=e.top;b=e.right;for(f=e.bottom;a<=b;++a)for(e=q;e<=f;++e)if(u=this.de(a,e,!1))u.Af=!1};bb=v;var oa=[];f.prototype.xd=function(){return this.Za.xd()};f.prototype.al=function(e){this.Za.add(e)};f.prototype.remove=function(e){this.Za.remove(e)};f.prototype.dump=function(e){ya(e,this.Za.Sc())};aa=f;var w=[];t.prototype.xd=function(){if(!this.Za.length)return!0;
if(this.Za.length>this.ad.count())return!1;this.Dk();return!0};t.prototype.al=function(e){this.ad.contains(e)?(this.ad.remove(e),this.ad.xd()&&(this.kg=!1)):this.Za.length?(this.Za[this.Za.length-1].tc()>e.tc()&&(this.Af=!1),this.Za.push(e)):(this.Za.push(e),this.Af=!0)};t.prototype.remove=function(e){this.ad.add(e);this.kg=!0;30<=this.ad.count()&&this.Dk()};t.prototype.Dk=function(){this.kg&&(this.ad.count()===this.Za.length?this.reset():(Va(this.Za,this.ad),this.ad.clear(),this.kg=!1))};t.prototype.Gr=
function(){this.Af||(this.Za.sort(h),this.Af=!0)};t.prototype.reset=function(){this.Za.length=0;this.Af=!0;this.ad.clear();this.kg=!1};t.prototype.dump=function(e){this.Dk();this.Gr();this.Za.length&&e.push(this.Za)};da=t;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(e){return 0>=e||11<=e?"source-over":z[e-1]};db=function(e,a,b){if(b)switch(e.kb=b.ONE,e.jb=b.ONE_MINUS_SRC_ALPHA,a){case 1:e.kb=b.ONE;
e.jb=b.ONE;break;case 3:e.kb=b.ONE;e.jb=b.ZERO;break;case 4:e.kb=b.ONE_MINUS_DST_ALPHA;e.jb=b.ONE;break;case 5:e.kb=b.DST_ALPHA;e.jb=b.ZERO;break;case 6:e.kb=b.ZERO;e.jb=b.SRC_ALPHA;break;case 7:e.kb=b.ONE_MINUS_DST_ALPHA;e.jb=b.ZERO;break;case 8:e.kb=b.ZERO;e.jb=b.ONE_MINUS_SRC_ALPHA;break;case 9:e.kb=b.DST_ALPHA;e.jb=b.ONE_MINUS_SRC_ALPHA;break;case 10:e.kb=b.ONE_MINUS_DST_ALPHA,e.jb=b.SRC_ALPHA}};eb=function(e){return Math.round(1E6*e)/1E6};fb=function(e,a){return"string"!==typeof e||"string"!==
typeof a||e.length!==a.length?!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};gb=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||fb(e.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(g){var m=new Zb(3);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2]);return m}
function ac(g){var m=new Zb(16);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2],m[3]=g[3],m[4]=g[4],m[5]=g[5],m[6]=g[6],m[7]=g[7],m[8]=g[8],m[9]=g[9],m[10]=g[10],m[11]=g[11],m[12]=g[12],m[13]=g[13],m[14]=g[14],m[15]=g[15]);return m}function bc(g,m){m[0]=g[0];m[1]=g[1];m[2]=g[2];m[3]=g[3];m[4]=g[4];m[5]=g[5];m[6]=g[6];m[7]=g[7];m[8]=g[8];m[9]=g[9];m[10]=g[10];m[11]=g[11];m[12]=g[12];m[13]=g[13];m[14]=g[14];m[15]=g[15]}
function cc(g,m){var d=m[0],p=m[1];m=m[2];g[0]*=d;g[1]*=d;g[2]*=d;g[3]*=d;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=m;g[9]*=m;g[10]*=m;g[11]*=m}
function dc(g,m,d,p){p||(p=ac());var l,c,a,b,v,s,f,k,t=g[0],h=g[1];g=g[2];c=d[0];a=d[1];l=d[2];d=m[1];s=m[2];t===m[0]&&h===d&&g===s?(g=p,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(d=t-m[0],s=h-m[1],f=g-m[2],k=1/Math.sqrt(d*d+s*s+f*f),d*=k,s*=k,f*=k,m=a*f-l*s,l=l*d-c*f,c=c*s-a*d,(k=Math.sqrt(m*m+l*l+c*c))?(k=1/k,m*=k,l*=k,c*=k):c=l=m=0,a=s*c-f*l,b=f*m-d*c,v=d*l-s*m,(k=Math.sqrt(a*a+b*b+v*v))?(k=1/k,a*=k,b*=k,v*=k):v=b=a=0,
p[0]=m,p[1]=a,p[2]=d,p[3]=0,p[4]=l,p[5]=b,p[6]=s,p[7]=0,p[8]=c,p[9]=v,p[10]=f,p[11]=0,p[12]=-(m*t+l*h+c*g),p[13]=-(a*t+b*h+v*g),p[14]=-(d*t+s*h+f*g),p[15]=1)}
(function(){function g(c){this.Ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Zm=$b([0,0,100]);this.Yn=$b([0,0,0]);this.Ap=$b([0,1,0]);this.Am=$b([1,1,1]);this.hn=!0;this.tl=ac();this.yc=ac();this.Qn=ac();this.qk=ac();this.k=c;this.Dn()}function m(c,a,b){this.k=c;this.Ah=a;this.name=b;this.xc=c.getAttribLocation(a,"aPos");this.ie=c.getAttribLocation(a,"aTex");this.Wn=c.getUniformLocation(a,"matP");this.Ti=c.getUniformLocation(a,"matMV");this.Gf=
c.getUniformLocation(a,"opacity");this.Xn=c.getUniformLocation(a,"samplerFront");this.$g=c.getUniformLocation(a,"samplerBack");this.Ve=c.getUniformLocation(a,"destStart");this.Ue=c.getUniformLocation(a,"destEnd");this.ql=c.getUniformLocation(a,"seconds");this.pl=c.getUniformLocation(a,"pixelWidth");this.ol=c.getUniformLocation(a,"pixelHeight");this.Zg=c.getUniformLocation(a,"layerScale");this.Yg=c.getUniformLocation(a,"layerAngle");this.bh=c.getUniformLocation(a,"viewOrigin");this.ah=c.getUniformLocation(a,
"scrollPos");this.Ps=!!(this.pl||this.ol||this.ql||this.$g||this.Ve||this.Ue||this.Zg||this.Yg||this.bh||this.ah);this.ho=this.jo=-999;this.Vi=1;this.bo=this.ao=0;this.eo=this.$n=this.Zn=1;this.lo=this.ko=this.no=this.mo=this.co=0;this.kl=[];this.fo=ac();this.Gf&&c.uniform1f(this.Gf,1);this.Xn&&c.uniform1i(this.Xn,0);this.$g&&c.uniform1i(this.$g,1);this.Ve&&c.uniform2f(this.Ve,0,0);this.Ue&&c.uniform2f(this.Ue,1,1);this.Zg&&c.uniform1f(this.Zg,1);this.Yg&&c.uniform1f(this.Yg,0);this.bh&&c.uniform2f(this.bh,
0,0);this.ah&&c.uniform2f(this.ah,0,0);this.Je=!1}function d(c,a){this.type=c;this.n=a;this.k=a.k;this.uc=this.kc=this.Co=0;this.X=this.Qc=null;this.gp=[]}g.prototype.Dn=function(){var c=this.k,a;this.Rn=1;this.Re=this.Qe=null;this.bi=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Sn=c.ONE;this.Pn=c.ONE_MINUS_SRC_ALPHA;this.Kl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Kl);this.Kh=
Array(4);this.Eh=Array(4);for(a=0;4>a;a++)this.Kh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Kh[a]),this.Eh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Eh[a]);this.od=0;this.Ss=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Ss);this.wm=new Float32Array(16E3);this.hm=new Float32Array(16E3);this.Oo=new Float32Array(32E3);for(var b=new Uint16Array(12E3),d=a=0;12E3>a;)b[a++]=d,b[a++]=d+1,b[a++]=d+2,b[a++]=d,b[a++]=d+2,b[a++]=d+3,d+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.Of=this.hd=0;this.Ra=[];a=this.pk({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.Ra.push(a);a=this.pk({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.Ra.push(a);for(var s in ec)ec.hasOwnProperty(s)&&this.Ra.push(this.pk(ec[s],
"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}",s));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.nd=[];this.Vc=0;this.Sb=this.Bb=!1;this.cn=this.Og=-1;this.ug=null;this.gs=c.createFramebuffer();this.Vo=null;this.re=$b([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.lt=c[0];this.ul=
c[1];2048<this.ul&&(this.ul=2048);this.ed(0)};m.prototype.qm=function(c){var a=this.fo;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])bc(c,this.fo),this.k.uniformMatrix4fv(this.Ti,!1,c)};g.prototype.pk=function(c,a,b){var d=this.k,s=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(s,c.src);d.compileShader(s);if(!d.getShaderParameter(s,
d.COMPILE_STATUS))return d.deleteShader(s),null;var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,a);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(s),d.deleteShader(f),null;a=d.createProgram();d.attachShader(a,s);d.attachShader(a,f);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(s),d.deleteShader(f),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(s);d.deleteShader(f);b=new m(d,a,b);b.zk=c.zk||0;b.Ak=c.Ak||0;b.bn=
!!c.bn;b.Sm=!!c.Sm;b.K=c.K||[];c=0;for(s=b.K.length;c<s;c++)b.K[c][1]=d.getUniformLocation(a,b.K[c][0]),b.kl.push(0),d.uniform1f(b.K[c][1],0);return b};g.prototype.Ok=function(c){var a,b;a=0;for(b=this.Ra.length;a<b;a++)if(this.Ra[a].name===c)return a;return-1};g.prototype.Ro=function(c,a,b){var d=this.yc,s=this.tl,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*c+d[4]*a+d[12];f[1]=d[1]*c+d[5]*a+d[13];f[2]=d[2]*c+d[6]*a+d[14];f[3]=d[3]*c+d[7]*a+d[15];f[4]=s[0]*f[0]+s[4]*f[1]+s[8]*f[2]+s[12]*f[3];f[5]=s[1]*f[0]+s[5]*
f[1]+s[9]*f[2]+s[13]*f[3];f[6]=s[2]*f[0]+s[6]*f[1]+s[10]*f[2]+s[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};g.prototype.Tf=function(c,a,b){if(this.width!==c||this.height!==a||b){this.ae();this.width=c;this.height=a;this.k.viewport(0,0,c,a);a=c/a;var d=this.tl,s;s=1*Math.tan(45*Math.PI/360);a*=s;c=-a;b=-s;d||(d=ac());var f=a-c,k=s-b;d[0]=2/f;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/k;d[6]=0;d[7]=0;d[8]=(a+c)/f;d[9]=
(s+b)/k;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;dc(this.Zm,this.Yn,this.Ap,this.yc);c=[0,0];a=[0,0];this.Ro(0,0,c);this.Ro(1,1,a);this.Am[0]=1/(a[0]-c[0]);this.Am[1]=-1/(a[1]-c[1]);c=0;for(a=this.Ra.length;c<a;c++)b=this.Ra[c],b.Je=!1,b.Wn&&(this.k.useProgram(b.Ah),this.k.uniformMatrix4fv(b.Wn,!1,this.tl));this.k.useProgram(this.Ra[this.Og].Ah);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Re=this.Qe=null}};g.prototype.le=function(){dc(this.Zm,this.Yn,this.Ap,this.yc);cc(this.yc,this.Am)};g.prototype.translate=function(c,a){if(0!==c||0!==a){this.re[0]=c;this.re[1]=a;this.re[2]=0;var b=this.yc,d=this.re,s=d[0],f=d[1],d=d[2];b[12]=b[0]*s+b[4]*f+b[8]*d+b[12];b[13]=b[1]*s+b[5]*f+b[9]*d+b[13];b[14]=b[2]*s+b[6]*f+b[10]*d+b[14];b[15]=b[3]*s+b[7]*f+b[11]*d+b[15]}};g.prototype.scale=function(c,a){if(1!==c||1!==a)this.re[0]=c,this.re[1]=a,this.re[2]=1,cc(this.yc,this.re)};g.prototype.Wo=
function(c){if(0!==c){var a=this.yc,b,d=Math.sin(c);c=Math.cos(c);var s=a[0],f=a[1],k=a[2],t=a[3],h=a[4],r=a[5],B=a[6],g=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=s*c+h*d;b[1]=f*c+r*d;b[2]=k*c+B*d;b[3]=t*c+g*d;b[4]=s*-d+h*c;b[5]=f*-d+r*c;b[6]=k*-d+B*c;b[7]=t*-d+g*c}};g.prototype.te=function(){for(var c=!1,a=0;16>a;a++)if(this.Qn[a]!==this.yc[a]){c=!0;break}c&&(c=this.zc(),c.type=5,c.X?bc(this.yc,c.X):c.X=ac(this.yc),bc(this.yc,
this.Qn),this.Sb=this.Bb=!1)};d.prototype.sr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Qc)};d.prototype.tr=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Qc);c.activeTexture(c.TEXTURE0)};d.prototype.pr=function(){var c=this.Co,a=this.n;a.bi=c;a=a.ug;a.Gf&&a.Vi!==c&&(a.Vi=c,this.k.uniform1f(a.Gf,c))};d.prototype.mr=function(){this.k.drawElements(this.k.TRIANGLES,this.uc,this.k.UNSIGNED_SHORT,2*this.kc)};d.prototype.or=function(){this.k.blendFunc(this.kc,
this.uc)};d.prototype.ur=function(){var c,a,b,d=this.n.Ra,s=this.n.cn;c=0;for(a=d.length;c<a;c++)b=d[c],c===s&&b.Ti?(b.qm(this.X),b.Je=!0):b.Je=!1;bc(this.X,this.n.qk)};d.prototype.nr=function(){var c=this.k,a=this.n;this.Qc?(a.Re===this.Qc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Re=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.gs),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Qc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};d.prototype.kr=function(){var c=this.k;0===this.kc?(c.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};d.prototype.lr=function(){var c=this.k,a=this.n,b=a.Ra[1];c.useProgram(b.Ah);!b.Je&&b.Ti&&(b.qm(a.qk),b.Je=!0);c.enableVertexAttribArray(b.xc);
c.bindBuffer(c.ARRAY_BUFFER,a.Kl);c.vertexAttribPointer(b.xc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.kc/4,this.uc);b=a.ug;c.useProgram(b.Ah);0<=b.xc&&(c.enableVertexAttribArray(b.xc),c.bindBuffer(c.ARRAY_BUFFER,a.Kh[a.od]),c.vertexAttribPointer(b.xc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Eh[a.od]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.qr=function(){var c=this.k,a=this.n,b=a.Ra[this.kc];a.cn=this.kc;a.ug=b;c.useProgram(b.Ah);
!b.Je&&b.Ti&&(b.qm(a.qk),b.Je=!0);b.Gf&&b.Vi!==a.bi&&(b.Vi=a.bi,c.uniform1f(b.Gf,a.bi));0<=b.xc&&(c.enableVertexAttribArray(b.xc),c.bindBuffer(c.ARRAY_BUFFER,a.Kh[a.od]),c.vertexAttribPointer(b.xc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Eh[a.od]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.rr=function(){var c,a,b=this.n.ug,d=this.k;c=this.X;b.$g&&this.n.Re!==this.Qc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Qc),
this.n.Re=this.Qc,d.activeTexture(d.TEXTURE0));var s=c[0];b.pl&&s!==b.jo&&(b.jo=s,d.uniform1f(b.pl,s));s=c[1];b.ol&&s!==b.ho&&(b.ho=s,d.uniform1f(b.ol,s));s=c[2];a=c[3];!b.Ve||s===b.ao&&a===b.bo||(b.ao=s,b.bo=a,d.uniform2f(b.Ve,s,a));s=c[4];a=c[5];!b.Ue||s===b.Zn&&a===b.$n||(b.Zn=s,b.$n=s,d.uniform2f(b.Ue,s,a));s=c[6];b.Zg&&s!==b.eo&&(b.eo=s,d.uniform1f(b.Zg,s));s=c[7];b.Yg&&s!==b.co&&(b.co=s,d.uniform1f(b.Yg,s));s=c[8];a=c[9];!b.bh||s===b.mo&&a===b.no||(b.mo=s,b.no=a,d.uniform2f(b.bh,s,a));s=c[10];
a=c[11];!b.ah||s===b.ko&&a===b.lo||(b.ko=s,b.lo=a,d.uniform2f(b.ah,s,a));b.ql&&d.uniform1f(b.ql,Ua()/1E3);if(b.K.length)for(c=0,a=b.K.length;c<a;c++)s=this.gp[c],s!==b.kl[c]&&(b.kl[c]=s,d.uniform1f(b.K[c][1],s))};g.prototype.zc=function(){this.Vc===this.nd.length&&this.nd.push(new d(0,this));return this.nd[this.Vc++]};g.prototype.ae=function(){if(0!==this.Vc&&!this.k.isContextLost()){var c=this.k;0<this.Of&&(c.bindBuffer(c.ARRAY_BUFFER,this.Kl),c.bufferData(c.ARRAY_BUFFER,this.Oo.subarray(0,this.Of),
c.STREAM_DRAW),a&&0<=a.xc&&"<point>"===a.name&&c.vertexAttribPointer(a.xc,4,c.FLOAT,!1,0,0));if(0<this.hd){var a=this.ug;c.bindBuffer(c.ARRAY_BUFFER,this.Kh[this.od]);c.bufferData(c.ARRAY_BUFFER,this.wm.subarray(0,this.hd),c.STREAM_DRAW);a&&0<=a.xc&&"<point>"!==a.name&&c.vertexAttribPointer(a.xc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Eh[this.od]);c.bufferData(c.ARRAY_BUFFER,this.hm.subarray(0,this.hd),c.STREAM_DRAW);a&&0<=a.ie&&"<point>"!==a.name&&c.vertexAttribPointer(a.ie,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.Vc;c<a;c++)switch(b=this.nd[c],b.type){case 1:b.mr();break;case 2:b.sr();break;case 3:b.pr();break;case 4:b.or();break;case 5:b.ur();break;case 6:b.nr();break;case 7:b.kr();break;case 8:b.lr();break;case 9:b.qr();break;case 10:b.rr();break;case 11:b.tr()}this.Of=this.hd=this.Vc=0;this.Sb=this.Bb=!1;this.od++;4<=this.od&&(this.od=0)}};g.prototype.$e=function(c){if(c!==this.Rn){var a=this.zc();a.type=3;this.Rn=a.Co=c;this.Sb=this.Bb=!1}};g.prototype.Xb=function(c){if(c!==
this.Qe){var a=this.zc();a.type=2;this.Qe=a.Qc=c;this.Sb=this.Bb=!1}};g.prototype.me=function(c,a){if(c!==this.Sn||a!==this.Pn){var b=this.zc();b.type=4;b.kc=c;b.uc=a;this.Sn=c;this.Pn=a;this.Sb=this.Bb=!1}};g.prototype.$o=function(){this.me(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};g.prototype.uh=function(c,a,b,d,s,f,k,t){15992<=this.hd&&this.ae();var h=this.hd,r=this.wm,g=this.hm;if(this.Bb)this.nd[this.Vc-1].uc+=6;else{var m=this.zc();m.type=1;m.kc=h/4*3;m.uc=6;this.Bb=!0;this.Sb=!1}r[h]=c;g[h++]=
0;r[h]=a;g[h++]=0;r[h]=b;g[h++]=1;r[h]=d;g[h++]=0;r[h]=s;g[h++]=1;r[h]=f;g[h++]=1;r[h]=k;g[h++]=0;r[h]=t;g[h++]=1;this.hd=h};g.prototype.Gd=function(c,a,b,d,g,f,k,t,h){15992<=this.hd&&this.ae();var r=this.hd,B=this.wm,m=this.hm;if(this.Bb)this.nd[this.Vc-1].uc+=6;else{var n=this.zc();n.type=1;n.kc=r/4*3;n.uc=6;this.Bb=!0;this.Sb=!1}var n=h.left,e=h.top,u=h.right;h=h.bottom;B[r]=c;m[r++]=n;B[r]=a;m[r++]=e;B[r]=b;m[r++]=u;B[r]=d;m[r++]=e;B[r]=g;m[r++]=u;B[r]=f;m[r++]=h;B[r]=k;m[r++]=n;B[r]=t;m[r++]=
h;this.hd=r};g.prototype.Ft=function(c,a,b,d){7996<=this.Of&&this.ae();var g=this.Of,f=this.Oo;if(this.Sb)this.nd[this.Vc-1].uc++;else{var k=this.zc();k.type=8;k.kc=g;k.uc=1;this.Sb=!0;this.Bb=!1}f[g++]=c;f[g++]=a;f[g++]=b;f[g++]=d;this.Of=g};g.prototype.ed=function(c){if(this.Og!==c){if(!this.Ra[c]){if(0===this.Og)return;c=0}var a=this.zc();a.type=9;this.Og=a.kc=c;this.Sb=this.Bb=!1}};g.prototype.sh=function(c){c=this.Ra[c];return!(!c.Ve&&!c.Ue)};g.prototype.Ml=function(c){c=this.Ra[c];return!!(c.Ve||
c.Ue||c.bn)};g.prototype.Mt=function(c){c=this.Ra[c];return 0!==c.zk||0!==c.Ak};g.prototype.xs=function(c){return this.Ra[c].zk};g.prototype.ys=function(c){return this.Ra[c].Ak};g.prototype.zs=function(c,a){return this.Ra[c].K[a][2]};g.prototype.oj=function(c){return this.Ra[c].Sm};g.prototype.Sf=function(c,a,b,d,g,f,k,t,h,r,m,l,n,e){var u=this.Ra[this.Og],q,x;if(u.Ps||e.length){q=this.zc();q.type=10;q.X?bc(this.yc,q.X):q.X=ac();x=q.X;x[0]=a;x[1]=b;x[2]=d;x[3]=g;x[4]=f;x[5]=k;x[6]=t;x[7]=h;x[8]=r;
x[9]=m;x[10]=l;x[11]=n;q.Qc=u.$g?c:null;if(e.length)for(b=q.gp,b.length=e.length,c=0,a=e.length;c<a;c++)b[c]=e[c];this.Sb=this.Bb=!1}};g.prototype.clear=function(c,a,b,d){var g=this.zc();g.type=7;g.kc=0;g.X||(g.X=ac());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Sb=this.Bb=!1};g.prototype.clearRect=function(c,a,b,d){if(!(0>b||0>d)){var g=this.zc();g.type=7;g.kc=1;g.X||(g.X=ac());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Sb=this.Bb=!1}};g.prototype.Lt=function(){this.ae();this.k.flush()};var p=[],l={};
g.prototype.br=function(){p.length=0;l={}};g.prototype.Ef=function(c,a,b,d){a=!!a;b=!!b;var g=c.src+","+a+","+b+(a?",undefined":""),f=null;if("undefined"!==typeof c.src&&l.hasOwnProperty(g))return f=l[g],f.Th++,f;this.ae();var k=this.k,t=ia(c.width)&&ia(c.height),f=k.createTexture();k.bindTexture(k.TEXTURE_2D,f);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=k.RGBA,r=k.RGBA,m=k.UNSIGNED_BYTE;if(d&&!this.Ne)switch(d){case 1:r=h=k.RGB;break;case 2:m=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=
k.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=h=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(!t&&a){d=document.createElement("canvas");d.width=ka(c.width);d.height=ka(c.height);var A=d.getContext("2d");A.webkitImageSmoothingEnabled=b;A.mozImageSmoothingEnabled=b;A.msImageSmoothingEnabled=b;A.imageSmoothingEnabled=b;A.drawImage(c,0,0,c.width,c.height,0,0,d.width,d.height);k.texImage2D(k.TEXTURE_2D,0,h,r,m,d)}else k.texImage2D(k.TEXTURE_2D,0,h,r,m,c);a?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),t&&this.hn?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,
k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.Qe=null;f.pg=c.width;f.ng=c.height;f.Th=1;f.Xm=g;p.push(f);return l[g]=f};g.prototype.Yd=function(c,a,b){var d;this.ae();var g=this.k;this.Ne&&(d=!1);var f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,a,0,g.RGBA,d?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Qe=null;f.pg=c;f.ng=a;p.push(f);return f};g.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Th&&1<c.Th?c.Th--:(this.ae(),c===this.Qe&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Qe=null),c===this.Re&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Re=
null),Aa(p,c),"undefined"!==typeof c.Xm&&delete l[c.Xm],this.k.deleteTexture(c)))};g.prototype.cd=function(c){if(c!==this.Vo){var a=this.zc();a.type=6;this.Vo=a.Qc=c;this.Sb=this.Bb=!1}};hb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.vc=(this.Jg=/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.eb=!!e.dc;this.uf="undefined"!==typeof window.AppMobi||this.eb;this.gc=!!window.c2cocoonjs;this.Hc=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Hc&&(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.ea=this.eb||this.gc||this.Hc;this.Ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Kn=/tizen/i.test(navigator.userAgent);this.Di=/android/i.test(navigator.userAgent)&&!this.Kn&&!this.Ne;this.il=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Ne;this.On=/ipad/i.test(navigator.userAgent);this.Ii=this.il||this.On||this.Hc;this.dt=this.il&&/os\s6/i.test(navigator.userAgent);this.Ig=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Ne;this.cl=/amazonwebappplatform/i.test(navigator.userAgent);this.Xs=/firefox/i.test(navigator.userAgent);this.Jn=/safari/i.test(navigator.userAgent)&&!this.Ig&&!this.Ne;this.$s=/windows/i.test(navigator.userAgent);this.ge="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Mn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ct=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.wf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.gl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Ln=this.Mn||this.ct||this.gl;this.Ws=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Ei=this.Di&&!this.Ig&&!this.Jg&&!this.Xs&&!this.cl&&!this.ea;this.devicePixelRatio=1;this.zd=this.vc||this.Jg||this.uf||this.gc||this.Di||this.Ii||this.wf||this.gl||this.Ws||this.Kn||this.Hc;this.zd||(this.zd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ge||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ge=!0);this.canvas=e;this.$m=document.getElementById("c2canvasdiv");this.ba=this.n=this.k=null;this.Gk="";this.li=!1;this.Ao=this.Bo=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.ge&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Ei&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.M=this.width;this.L=this.height;this.$h=this.width;this.Zh=this.height;this.Qg=window.innerWidth;this.Pg=window.innerHeight;this.js=!1;this.Y=!0;this.Lg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Ga=[];this.nl={};this.Ub=[];this.yk={};this.sd=[];this.ig=[];this.Lj=[];this.Zj=[];this.Sq=[];this.Ce={};this.dl=
this.ee=!1;this.yd=0;this.fl=!1;this.Fc=[];this.Ad=this.qb=this.Vg=this.tj="";this.Ch=this.jp=!1;this.nk=this.dh=this.$d=this.Ee=0;this.bg=1;this.hc=new Ya;this.jd=new Ya;this.Yi=this.ni=this.ii=this.ag=this.Te=this.Fk=this.Mi=0;this.ye=null;this.uk=[];this.xk=[];this.hi=-1;this.rl=[[]];this.nm=this.Ui=0;this.Ol(null);this.vo=this.gh=0;this.ml=!0;this.wg=0;this.Dh=[];this.km=this.Pl=-1;this.Bf=!0;this.Si=0;this.Kg=!1;this.eu=0;this.jf=null;this.ha=this.sf=!1;this.zo=new ca;this.Al=new ca;this.Bl=
new ca;this.Pt=[];this.Pc=new $a([]);this.gm=new $a([]);this.Td=[];this.wi={};this.lf={};this.hf={};this.hg={};this.Um={};this.Vn=this.Oi=this.Tb=this.ic=this.Un=this.Ni=this.Z=null;this.fg=this.hl=!1;this.Hk=[null,null];this.He=0;this.Ck="";this.Ed={};this.yj=this.Ff=null;this.Xi=[];this.Qt()}}function p(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(e,a,b,f){var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=p;k.onerror=f;k.onsuccess=function(k){k=k.target.result;
k.onerror=f;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function c(e,a,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=p;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var k=f.transaction(["saves"]).objectStore("saves").get(e);k.onsuccess=function(){k.result?a(k.result.data):a(null)}}}function a(){K("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function b(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof ca||e[a]&&"undefined"!==typeof e[a].yv||(b[a]=e[a]);return b}d.prototype.Qt=function(){var e=this,a;a=this.wf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.Mn||this.wf||this.gl)b="data.json";a.open("GET",b,!0);var f=!1;if(!this.ea&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(k){f=!1}if(!f&&
"responseType"in a)try{a.responseType="text"}catch(c){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.wf?a.onreadystatechange=function(){4===a.readyState&&e.Qi(JSON.parse(a.responseText))}:(a.onload=function(){if(f)e.Qi(a.response);else if(e.Hc){var b=a.responseText,b=b.substr(b.indexOf("{"));e.Qi(JSON.parse(b))}else e.Qi(JSON.parse(a.responseText))},a.onerror=function(e){fa("Error requesting "+b+":");fa(e)});a.send()};d.prototype.Ts=function(){var e=
this,a,b,f,k,c,h,d,n,t;this.devicePixelRatio=(this.Oe=(!this.ea||this.Hc)&&this.pu&&!this.Ei)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.hb();b=!(!this.js&&(!this.ak||this.ge||this.Ln||this.wf||this.Jg||this.vc||this.cl));0<this.mb&&this.setSize(g(),m(),!0);try{this.Er&&(this.gc||this.Hc||!this.ea)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(r){}if(this.k){this.ea||(this.fb=document.createElement("canvas"),jQuery(this.fb).appendTo(this.canvas.parentNode),this.fb.oncontextmenu=function(){return!1},this.fb.onselectstart=function(){return!1},this.fb.width=this.$h,this.fb.height=this.Zh,jQuery(this.fb).css({width:this.$h+"px",height:this.Zh+"px"}),this.Qo(),this.Jl=this.fb.getContext("2d"));this.n=new hb(this.k,this.zd);this.n.Tf(this.canvas.width,this.canvas.height);this.n.hn=0!==this.wr;this.ba=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();e.ot();K("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.n.Dn();e.n.Tf(e.n.width,e.n.height,!0);e.ic=null;e.Tb=null;e.Hk[0]=null;e.Hk[1]=null;e.pt();e.Y=!0;K("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.m.length;a<b;a++)for(c=this.m[a],f=0,k=c.G.length;f<k;f++)d=c.G[f],d.gb=this.n.Ok(d.id),this.fg=this.fg||this.n.sh(d.gb);a=0;for(b=this.Ub.length;a<
b;a++){n=this.Ub[a];f=0;for(k=n.G.length;f<k;f++)d=n.G[f],d.gb=this.n.Ok(d.id);f=0;for(k=n.J.length;f<k;f++)for(t=n.J[f],c=0,h=t.G.length;c<h;c++)d=t.G[c],d.gb=this.n.Ok(d.id),this.fg=this.fg||this.n.sh(d.gb)}}else{if(0<this.mb&&this.eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ba=AppMobi.canvas.getContext("2d");try{this.ba.samplingMode=this.S?"smooth":"sharp",this.ba.globalScale=1,this.ba.HTML5CompatibilityMode=!0,this.ba.imageSmoothingEnabled=
this.S}catch(B){}0!==this.width&&0!==this.height&&(this.ba.width=this.width,this.ba.height=this.height)}this.ba||(a=this.gc?{antialias:!!this.S,alpha:b}:{alpha:b},this.ba=this.canvas.getContext("2d",a),this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S);this.Jl=this.fb=null}this.rp=function(a){e.Sa(!1,a)};window==window.top||this.ea||this.Ln||this.wf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(K("Reloading for continuous preview"),this.Vg="__c2_continuouspreview",this.Ch=!0),this.Dt&&!this.zd&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.ea||(a=function(e){if(gb(e)&&
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.mb&&this.Oe&&1<this.devicePixelRatio&&this.setSize(this.Oa,this.Na,!0);this.wp();this.Ms();
this.go();this.ua={}};d.prototype.setSize=function(e,a,b){var f=0,k=0,c=0,h=0,h=0,d=this.dt&&this.Jn&&!navigator.standalone&&!this.ea&&!this.vc;d&&(a+=60);if(this.Qg!==e||this.Pg!==a||b){this.Qg=e;this.Pg=a;var n=this.mb,t=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Kg)&&!this.vc;if(t||0!==this.mb||b)t&&0<this.He&&(n=this.He),b=this.devicePixelRatio,4<=n?(c=this.Oa/this.Na,e/a>c?(c*=a,5===n?(h=c*b/this.Oa,1<h?h=Math.floor(h):1>h&&
(h=1/Math.ceil(1/h)),c=this.Oa*h/b,h=this.Na*h/b,f=(e-c)/2,k=(a-h)/2,e=c,a=h):(f=(e-c)/2,e=c)):(h=e/c,5===n?(h=h*b/this.Na,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),c=this.Oa*h/b,h=this.Na*h/b,f=(e-c)/2,k=(a-h)/2,e=c):k=(a-h)/2,a=h),t&&!this.ge&&(k=f=0)):this.ge&&this.Kg&&0===this.pn&&(f=Math.floor((e-this.Oa)/2),k=Math.floor((a-this.Na)/2),e=this.Oa,a=this.Na),2>n&&(this.mg=b),this.Oe&&this.On&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.$h=Math.round(e),this.Zh=Math.round(a),this.width=
Math.round(e*b),this.height=Math.round(a*b),this.Y=!0,this.Hp?(this.M=this.width,this.L=this.height,this.pc=!0):this.width<this.Oa&&this.height<this.Na||1===n?(this.M=this.width,this.L=this.height,this.pc=!0):(this.M=this.Oa,this.L=this.Na,this.pc=!1,2===n?(c=this.Oa/this.Na,n=this.Qg/this.Pg,n<c?this.M=this.L*n:n>c&&(this.L=this.M/n)):3===n&&(c=this.Oa/this.Na,n=this.Qg/this.Pg,n>c?this.M=this.L*n:n<c&&(this.L=this.M/n))),this.$m&&!this.ea&&(jQuery(this.$m).css({width:Math.round(e)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*b),this.canvas.height=Math.round(a*b),this.Hc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Oe&&!this.ea&&jQuery(this.canvas).css({width:Math.round(e)+
"px",height:Math.round(a)+"px"})),this.fb&&(this.fb.width=Math.round(e),this.fb.height=Math.round(a),jQuery(this.fb).css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.n&&this.n.Tf(Math.round(e*b),Math.round(a*b)),this.eb&&this.ba&&(this.ba.width=Math.round(e),this.ba.height=Math.round(a)),this.ba&&(this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S),this.wp(),this.ea||!d&&!this.il||
window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.wp=function(){if(this.Uq&&0!==this.Hl){var e="portrait";2===this.Hl&&(e="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(e):screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};d.prototype.ot=function(){this.n.br();this.hl=!0;var e,
a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.$i&&b.$i()};d.prototype.pt=function(){this.hl=!1;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.aj&&b.aj()};d.prototype.Qo=function(){if(!this.ea){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Kg)&&!this.vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.fb).css(e)}};var v=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(e){var a;if(e&&!this.Lg)for(K("[Construct 2] Suspending"),this.Lg=!0,-1!==this.Pl&&v&&v(this.Pl),-1!==this.km&&clearTimeout(this.km),e=0,a=this.Dh.length;e<a;e++)this.Dh[e](!0);else if(!e&&this.Lg){K("[Construct 2] Resuming");this.Lg=!1;this.Mi=Ua();this.Te=Ua();e=this.dh=this.ni=0;for(a=this.Dh.length;e<a;e++)this.Dh[e](!1);this.Sa(!1)}};d.prototype.Qq=function(e){this.Dh.push(e)};
d.prototype.Qd=function(e){return this.Xi[e]};d.prototype.Qi=function(e){e&&e.project||fa("Project model unavailable");e=e.project;this.name=e[0];this.nn=e[1];this.mb=e[12];this.pn=e[12];this.Oa=e[10];this.Na=e[11];this.Jo=this.Oa/2;this.Ko=this.Na/2;this.ea&&!this.Hc&&(4<=e[12]||0===e[12])&&(K("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.pn=this.mb=3);this.vm=e[18];this.Xg=e[19];0===this.Xg&&(this.Ff=new Image,this.Ff.src=
"loading-logo.png");this.gh=e[21];this.Xi=fc();this.fd=new Y(this);var a,b,f,k,c,h,d,n,t;a=0;for(b=e[2].length;a<b;a++)d=e[2][a],f=this.Qd(d[0]),ib(d,f.prototype),t=new f(this),t.wj=d[1],t.he=d[2],t.so=d[9],t.fa&&t.fa(),this.plugins.push(t);this.Xi=fc();a=0;for(b=e[3].length;a<b;a++){d=e[3][a];c=this.Qd(d[1]);t=null;f=0;for(k=this.plugins.length;f<k;f++)if(this.plugins[f]instanceof c){t=this.plugins[f];break}var r=new t.Va(t);r.name=d[0];r.A=d[2];r.bl=d[3].slice(0);r.ru=d[3].length;r.Vq=d[4];r.ls=
d[5];r.O=d[11];r.A?(r.Wi=[],r.td=this.wg++,r.pa=null):(r.Wi=null,r.td=-1,r.pa=[]);r.ji=null;r.of=null;r.jn=null;r.Ic=!1;r.Pb=null;d[6]?(r.Fj=d[6][0],r.Gj=d[6][1],r.Fh=d[6][2]):(r.Fj=null,r.Gj=0,r.Fh=0);r.Nb=d[7]?d[7]:null;r.index=a;r.c=[];r.di=[];r.oe=[new jb(r)];r.rd=0;r.Wc=null;r.hr=0;r.Zf=!0;r.Nj=kb;r.qs=lb;r.vs=mb;r.ca=nb;r.th=ob;r.Nl=pb;r.Pf=qb;r.pi=sb;r.Jk=tb;r.Lk=ub;r.md=vb;r.un=wb;r.Wh=new ab(this.Oa,this.Na);r.Lh=!0;r.Mh=!1;r.ua={};r.toString=xb;r.Ga=[];f=0;for(k=d[8].length;f<k;f++){n=d[8][f];
var g=this.Qd(n[1]),m=null;c=0;for(h=this.Ga.length;c<h;c++)if(this.Ga[c]instanceof g){m=this.Ga[c];break}m||(m=new g(this),m.uo=[],m.Jf=new ca,m.fa&&m.fa(),this.Ga.push(m));-1===m.uo.indexOf(r)&&m.uo.push(r);c=new m.Va(m,r);c.name=n[0];c.O=n[2];c.fa();r.Ga.push(c)}r.global=d[9];r.el=d[10];r.G=[];f=0;for(k=d[12].length;f<k;f++)r.G.push({id:d[12][f][0],name:d[12][f][1],gb:-1,Wa:!0,index:f});r.Mv=d[13];this.vm&&!r.A&&!r.el&&t.he||r.fa();r.name&&(this.types[r.name]=r);this.m.push(r);t.wj&&(f=new t.qa(r),
f.uid=this.gh++,f.To=this.vo++,f.Le=0,f.Bg=yb,f.toString=zb,f.Fa=d[14],f.fa(),r.c.push(f),this.Ed[f.uid.toString()]=f)}a=0;for(b=e[4].length;a<b;a++)for(c=e[4][a],h=this.m[c[0]],f=1,k=c.length;f<k;f++)d=this.m[c[f]],d.pa.push(h),h.Wi.push(d);a=0;for(b=e[27].length;a<b;a++){c=e[27][a];h=[];f=0;for(k=c.length;f<k;f++)h.push(this.m[c[f]]);f=0;for(k=h.length;f<k;f++)h[f].Ic=!0,h[f].Pb=h}if(0<this.wg)for(a=0,b=this.m.length;a<b;a++)if(d=this.m[a],!d.A&&d.pa.length){d.ji=Array(this.wg);d.of=Array(this.wg);
d.jn=Array(this.wg);r=[];f=m=g=n=0;for(k=d.pa.length;f<k;f++)for(t=d.pa[f],d.ji[t.td]=n,n+=t.ru,d.of[t.td]=g,g+=t.Vq,d.jn[t.td]=m,m+=t.ls,c=0,h=t.G.length;c<h;c++)r.push(va({},t.G[c]));d.G=r.concat(d.G);f=0;for(k=d.G.length;f<k;f++)d.G[f].index=f}a=0;for(b=e[5].length;a<b;a++)d=e[5][a],f=new Ab(this,d),this.nl[f.name]=f,this.Ub.push(f);a=0;for(b=e[6].length;a<b;a++)d=e[6][a],f=new Bb(this,d),this.yk[f.name]=f,this.sd.push(f);a=0;for(b=this.sd.length;a<b;a++)this.sd[a].Ea();a=0;for(b=this.sd.length;a<
b;a++)this.sd[a].pm();a=0;for(b=this.Lj.length;a<b;a++)this.Lj[a].Ea();this.Lj.length=0;this.Tq=e[7];this.Ck=e[8];this.bd=e[9];this.mg=1;this.Er=e[13];this.S=e[14];this.ak=e[15];this.pu=e[17];this.Hl=e[20];this.Uq=0<this.Hl;this.Dt=e[22];this.pc=this.Hp=e[23];this.wr=e[24];this.Jt=e[25];this.Bj=Date.now();this.Xi.length=0;this.Ts()};var s=!1;d.prototype.ym=function(e,a){e.cocoonLazyLoad=!0;e.onerror=function(a){s=e.Wm=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};
this.Hc?e.src=a:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){e.src=a},function(b){s=e.Wm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):e.src=a);this.ig.push(e)};d.prototype.hs=function(e){var a,b;a=0;for(b=this.ig.length;a<b;a++)if(this.ig[a].cr===e)return this.ig[a];return null};var f=0,k=!1;d.prototype.Ms=function(){this.jf&&(f=this.jf.bu(this.Tq))};d.prototype.Tm=function(){var e=f,a=0,b=0,c=!0,h,d,b=0;for(h=this.ig.length;b<
h;b++){d=this.ig[b];var n=d.ok;if(!n||0>=n)n=5E4;e+=n;d.src&&(d.complete||d.loaded)&&!d.Wm?a+=n:c=!1}c&&this.Jt&&this.jf&&(k||(this.jf.fu(),k=!0),b=this.jf.ws(),a+=b,b<f&&(c=!1));this.Ze=0==e?0:a/e;return c};d.prototype.go=function(){if(this.ba||this.n){var e=this.ba||this.Jl;this.fb&&this.Qo();this.Ze=0;this.Tn=-1;if(this.Tm())this.Ns();else{var a=Date.now()-this.Bj;if(e){var b=this.width,f=this.height,c=this.devicePixelRatio;this.fb&&(b=this.$h,f=this.Zh,c=1);if(3!==this.Xg&&(this.gc||500<=a&&this.Tn!=
this.Ze)){e.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Xg&&this.Ff.complete,k=40*c,h=0,d=80*c,n;b&&(d=this.Ff.width*c,n=this.Ff.height*c,k=d/2,h=n/2,e.drawImage(this.Ff,T(a-k),T(f-h),d,n));1>=this.Xg?(a=T(a-k)+.5,f=T(f+(h+(b?12*c:0)))+.5,e.fillStyle=s?"red":"DodgerBlue",e.fillRect(a,f,Math.floor(d*this.Ze),6*c),e.strokeStyle="black",e.strokeRect(a,f,d,6*c),e.strokeStyle="white",e.strokeRect(a-1*c,f-1*c,d+2*c,8*c)):2===this.Xg&&(e.font=this.Hc?"12pt ArialMT":"12pt Arial",e.fillStyle=s?"#f00":"#999",
e.Lv="middle",c=Math.round(100*this.Ze)+"%",b=e.measureText?e.measureText(c):null,e.fillText(c,a-(b?b.width:0)/2,f))}this.Tn=this.Ze}setTimeout(function(e){return function(){e.go()}}(this),this.gc?10:100)}}};d.prototype.Ns=function(){this.fb&&(this.canvas.parentNode.removeChild(this.fb),this.fb=this.Jl=null);this.Bj=Date.now();this.Te=Ua();var e,a,b;if(this.vm)for(e=0,a=this.m.length;e<a;e++)b=this.m[e],b.A||b.el||!b.Da.he||b.fa();else this.Bf=!1;e=0;for(a=this.Ub.length;e<a;e++)this.Ub[e].dr();2<=
this.mb&&(e=this.Oa/this.Na,a=this.width/this.height,this.mg=2!==this.mb&&a>e||2===this.mb&&a<e?this.height/this.Na:this.width/this.Oa);this.nn?this.nl[this.nn].em():this.Ub[0].em();this.vm||(this.Si=1,this.trigger(Y.prototype.j.Em,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.nt&&b.nt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Sa(!1);this.eb&&
AppMobi.webview.execute("onGameReady();")};var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Sa=function(e,a,b){if(this.Z){var f=Ua();if(b||!this.Lg||e){e||(t?this.Pl=t(this.rp):this.km=setTimeout(this.rp,this.zd?1:16));a=a||f;var c=this.mb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.vc)||this.Kg)&&
0<this.He&&(c=this.He);0<c&&(!this.Ii||window.self!==window.top)&&(c=window.innerHeight,this.Qg===window.innerWidth&&this.Pg===c||this.setSize(g(),m()));this.ea||(b?(this.li||(this.Gk=jQuery(this.canvas).css("margin")||"0",this.li=!0),this.Ig||this.ge||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.li?(this.Ig||this.ge||jQuery(this.canvas).css("margin",
this.Gk),this.Gk="",this.li=!1,0===this.mb&&this.setSize(Math.round(this.Bo/this.devicePixelRatio),Math.round(this.Ao/this.devicePixelRatio),!0)):(this.Bo=this.width,this.Ao=this.height));this.Bf&&(b=this.Tm(),this.Si=this.Ze,b&&(this.Bf=!1,this.Ze=1,this.trigger(Y.prototype.j.Em,null)));this.ht(a);!this.Y&&!this.gc||this.hl||this.Ch||e||(this.Y=!1,this.n?this.Rb():this.Gc(),this.yj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.yj[0],this.yj[1]),this.trigger(Y.prototype.j.hq,null)),
this.yj=null));this.Fv||(this.ag++,this.ii++,this.ni++);this.dh+=Ua()-f}}};d.prototype.ht=function(e){var a,b,f,c,k,h,d,n;1E3<=e-this.Te&&(this.Te+=1E3,1E3<=e-this.Te&&(this.Te=e),this.Fk=this.ni,this.ni=0,this.nk=this.dh,this.dh=0);0!==this.Mi&&(a=e-this.Mi,0>a&&(a=0),this.$d=a/1E3,.5<this.$d?this.$d=0:.1<this.$d&&(this.$d=.1));this.Mi=e;this.Ee=this.$d*this.bg;this.hc.add(this.Ee);this.jd.add(this.$d);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Kg)&&!this.vc;2<=this.mb||e&&0<this.He?(a=this.Oa/this.Na,b=this.width/this.height,f=this.mb,e&&0<this.He&&(f=this.He),this.mg=2!==f&&b>a||2===f&&b<a?this.height/this.Na:this.width/this.Oa,this.Z&&(this.Z.Yo(this.Z.scrollX),this.Z.Zo(this.Z.scrollY))):this.mg=this.Oe?this.devicePixelRatio:1;this.hb();this.yd++;this.fd.Tt();this.yd--;this.hb();this.yd++;b=this.zo.Sc();e=0;for(a=b.length;e<a;e++)b[e].Hv();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Ga.length||h.pa.length))for(b=0,f=
h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)d.F[c].Sa();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Ga.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)n=d.F[c],n.It&&n.It();b=this.Al.Sc();e=0;for(a=b.length;e<a;e++)b[e].Sa();this.yd--;this.Os();for(e=0;this.ye&&10>e++;)this.dn(this.ye);e=0;for(a=this.sd.length;e<a;e++)this.sd[e].Vk=!1;this.Z.Fe&&this.Z.Fe.Qa();this.Pt.length=0;this.ml=!1;this.yd++;e=0;for(a=this.m.length;e<a;e++)if(h=
this.m[e],!h.A&&(h.Ga.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)n=d.F[c],n.im&&n.im();b=this.Bl.Sc();e=0;for(a=b.length;e<a;e++)b[e].im();this.yd--};d.prototype.dn=function(e){var a=this.Z;this.Z.gu();var b,f,c,k,h,d,n;if(this.n)for(b=0,f=this.m.length;b<f;b++)h=this.m[b],h.A||!h.Mj||h.global&&0!==h.c.length||-1!==e.Gg.indexOf(h)||h.Mj();a==e&&(this.fd.Lb.length=0);e.em();b=0;for(f=this.m.length;b<f;b++)if(h=this.m[b],h.global||h.Da.wj)for(e=0,a=h.c.length;e<
a;e++)if(d=h.c[e],d.Gl&&d.Gl(),d.F)for(c=0,k=d.F.length;c<k;c++)n=d.F[c],n.Gl&&n.Gl();this.ml=this.Y=!0;this.hb()};d.prototype.jm=function(e){this.Al.add(e)};d.prototype.iu=function(e){this.Bl.add(e)};d.prototype.ri=function(e){return e&&-1!==e.fh?this.$d*e.fh:this.Ee};d.prototype.Gc=function(){this.Z.Gc(this.ba);this.eb&&this.ba.present()};d.prototype.Rb=function(){this.Z.Rb(this.n);this.n.Lt()};d.prototype.Oq=function(e){e&&this.uk.push(e)};d.prototype.ti=function(e){e=e.toString();return this.Ed.hasOwnProperty(e)?
this.Ed[e]:null};var h=[];d.prototype.Pd=function(e){var a,b;a=e.type.name;var f=null;if(this.Ce.hasOwnProperty(a)){if(f=this.Ce[a],f.contains(e))return}else f=h.length?h.pop():new ca,this.Ce[a]=f;f.add(e);this.ee=!0;if(e.Ic)for(a=0,b=e.siblings.length;a<b;a++)this.Pd(e.siblings[a]);this.dl&&f.gg.push(e);this.yd++;this.trigger(Object.getPrototypeOf(e.type.Da).j.jq,e);this.yd--};d.prototype.hb=function(){if(this.ee){var e,a,b,f,c,k;this.dl=!0;b=0;for(c=this.Fc.length;b<c;++b)for(e=this.Fc[b],a=e.type,
a.c.push(e),f=0,k=a.pa.length;f<k;++f)a.pa[f].c.push(e),a.pa[f].Zf=!0;this.Fc.length=0;this.Yp();Ta(this.Ce);this.ee=this.dl=!1}};d.prototype.Yp=function(){for(var e in this.Ce)this.Ce.hasOwnProperty(e)&&this.Mp(this.Ce[e])};d.prototype.Mp=function(e){var a=e.Sc(),b=a[0].type,f,c,k,d,n,r;Va(b.c,e);b.Zf=!0;0===b.c.length&&(b.Mh=!1);f=0;for(c=b.pa.length;f<c;++f)r=b.pa[f],Va(r.c,e),r.Zf=!0;f=0;for(c=this.fd.Lb.length;f<c;++f)if(n=this.fd.Lb[f],n.sb.hasOwnProperty(b.index)&&Va(n.sb[b.index].wd,e),!b.A)for(k=
0,d=b.pa.length;k<d;++k)r=b.pa[k],n.sb.hasOwnProperty(r.index)&&Va(n.sb[r.index].wd,e);if(n=a[0].d){if(n.Rc)for(k=n.c,f=0,c=k.length;f<c;++f)d=k[f],e.contains(d)&&(d.ma(),n.Wb.update(d,d.Gb,null),d.Gb.set(0,0,-1,-1));Va(n.c,e);n.yh(0)}for(f=0;f<a.length;++f)this.Lp(a[f],b);e.clear();h.push(e);this.Y=!0};d.prototype.Lp=function(e,a){var b,f,c;b=0;for(f=this.uk.length;b<f;++b)this.uk[b](e);e.Xd&&a.Wh.update(e,e.Xd,null);(b=e.d)&&b.Qf(e,!0);if(e.F)for(b=0,f=e.F.length;b<f;++b)c=e.F[b],c.hh&&c.hh(),c.behavior.Jf.remove(e);
this.zo.remove(e);this.Al.remove(e);this.Bl.remove(e);e.hh&&e.hh();this.Ed.hasOwnProperty(e.uid.toString())&&delete this.Ed[e.uid.toString()];this.Yi--;100>a.di.length&&a.di.push(e)};var r=[];d.prototype.Be=function(e,a,b,f,c,k){var h,d,n,t;if(!e)return null;var g=this.m[e[1]],m=g.Da.he;if(this.Bf&&m&&!g.el||m&&!this.n&&11===e[0][11])return null;var B=a;m||(a=null);var l;g.di.length?(l=g.di.pop(),l.Nc=!0,g.Da.qa.call(l,g)):(l=new g.Da.qa(g),l.Nc=!1);l.uid=!b||k||this.Ed.hasOwnProperty(e[2].toString())?
this.gh++:e[2];this.Ed[l.uid.toString()]=l;l.To=this.vo++;l.Le=g.c.length;h=0;for(d=this.Fc.length;h<d;++h)this.Fc[h].type===g&&l.Le++;l.Bg=yb;l.toString=zb;n=e[3];if(l.Nc)Ta(l.ua);else{l.ua={};if("undefined"!==typeof cr_is_preview)for(l.Gn=[],l.Gn.length=n.length,h=0,d=n.length;h<d;h++)l.Gn[h]=n[h][1];l.La=[];l.La.length=n.length}h=0;for(d=n.length;h<d;h++)l.La[h]=n[h][0];if(m){var s=e[0];l.x=ga(f)?s[0]:f;l.y=ga(c)?s[1]:c;l.z=s[2];l.width=s[3];l.height=s[4];l.depth=s[5];l.i=s[6];l.opacity=s[7];l.Cb=
s[8];l.Db=s[9];l.tb=s[10];h=s[11];!this.n&&g.G.length&&(l.tb=h);l.qg=cb(l.tb);this.k&&db(l,l.tb,this.k);if(l.Nc){h=0;for(d=s[12].length;h<d;h++)for(n=0,t=s[12][h].length;n<t;n++)l.ta[h][n]=s[12][h][n];l.za.set(0,0,0,0);l.Xd.set(0,0,-1,-1);l.Gb.set(0,0,-1,-1);l.Ob.Vf(l.za);l.ek.length=0}else{l.ta=s[12].slice(0);h=0;for(d=l.ta.length;h<d;h++)l.ta[h]=s[12][h].slice(0);l.U=[];l.Rd=[];l.Rd.length=g.G.length;l.za=new U(0,0,0,0);l.Xd=new U(0,0,-1,-1);l.Gb=new U(0,0,-1,-1);l.Ob=new ta;l.ek=[];l.wa=Cb;l.Rq=
Db;l.bb=Eb;l.ma=Fb;l.ou=Gb;l.um=Hb;l.tc=Ib}l.Gh=!1;l.lu=0;l.ku=0;l.ju=null;14===s.length&&(l.Gh=!0,l.lu=s[13][0],l.ku=s[13][1],l.ju=s[13][2]);h=0;for(d=g.G.length;h<d;h++)l.Rd[h]=!0;l.Nd=Jb;l.Nd();l.Fp=!!l.U.length;l.Rh=!0;l.gk=!0;g.Lh=!0;l.visible=!0;l.fh=-1;l.d=a;l.Tc=a.c.length;"undefined"===typeof l.V&&(l.V=null);this.Y=l.ze=!0}var A;h=r.length=0;for(d=g.pa.length;h<d;h++)r.push.apply(r,g.pa[h].Ga);r.push.apply(r,g.Ga);if(l.Nc)for(h=0,d=r.length;h<d;h++){var v=r[h];A=l.F[h];A.Nc=!0;v.behavior.qa.call(A,
v,l);s=e[4][h];n=0;for(t=s.length;n<t;n++)A.Fa[n]=s[n];A.fa();v.behavior.Jf.add(l)}else for(l.F=[],h=0,d=r.length;h<d;h++)v=r[h],A=new v.behavior.qa(v,l),A.Nc=!1,A.Fa=e[4][h].slice(0),A.fa(),l.F.push(A),v.behavior.Jf.add(l);s=e[5];if(l.Nc)for(h=0,d=s.length;h<d;h++)l.Fa[h]=s[h];else l.Fa=s.slice(0);this.Fc.push(l);this.ee=!0;a&&(a.lg(l,!0),1!==a.Eb||1!==a.Fb)&&(g.Mh=!0);this.Yi++;if(g.Ic){if(l.Ic=!0,l.Nc?l.siblings.length=0:l.siblings=[],!b&&!k){h=0;for(d=g.Pb.length;h<d;h++)if(g.Pb[h]!==g){if(!g.Pb[h].Wc)return null;
l.siblings.push(this.Be(g.Pb[h].Wc,B,!1,m?l.x:f,m?l.y:c,!0))}h=0;for(d=l.siblings.length;h<d;h++)for(l.siblings[h].siblings.push(l),n=0;n<d;n++)h!==n&&l.siblings[h].siblings.push(l.siblings[n])}}else l.Ic=!1,l.siblings=null;l.fa();h=0;for(d=l.F.length;h<d;h++)l.F[h].Ht&&l.F[h].Ht();return l};d.prototype.yg=function(e){var a,b;a=0;for(b=this.Z.J.length;a<b;a++){var f=this.Z.J[a];if(fb(f.name,e))return f}return null};d.prototype.vd=function(e){e=T(e);0>e&&(e=0);e>=this.Z.J.length&&(e=this.Z.J.length-
1);return this.Z.J[e]};d.prototype.lk=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].ca().ga=!0};d.prototype.th=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].th()};d.prototype.Nl=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Nl()};d.prototype.Pf=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Pf()};d.prototype.Cp=function(e){if(e.Lh){var a,b,f=e.c;a=0;for(b=f.length;a<b;++a)f[a].um();f=this.Fc;a=0;for(b=f.length;a<b;++a)f[a].type===e&&f[a].um();e.Lh=!1}};d.prototype.ps=function(e,
a,b,f){var c,k,h=e?1!==e.Eb||1!==e.Fb:!1;if(a.A)for(e=0,c=a.Wi.length;e<c;++e)k=a.Wi[e],h||k.Mh?ya(f,k.c):(this.Cp(k),k.Wh.pj(b,f));else h||a.Mh?ya(f,a.c):(this.Cp(a),a.Wh.pj(b,f))};d.prototype.$f=function(e,a,b,f){var c=e.ca(),k,h,d,n,r,t;if(c.ga)for(f||(c.ga=!1,c.c.length=0),k=0,n=e.c.length;k<n;k++){if(d=e.c[k],d.ma(),r=d.d.na(a,b,!0),t=d.d.na(a,b,!1),d.bb(r,t)){if(f)return!1;c.c.push(d)}}else{k=h=0;for(n=c.c.length;k<n;k++)if(d=c.c[k],d.ma(),r=d.d.na(a,b,!0),t=d.d.na(a,b,!1),d.bb(r,t)){if(f)return!1;
c.c[h]=c.c[k];h++}f||(c.c.length=h)}e.md();return f?!0:c.Uk()};d.prototype.hu=function(e,a){if(!(e&&a&&e!==a&&e.ze&&a.ze))return!1;e.ma();a.ma();var b=e.d,f=a.d,c,k,h,d,n,r,t,g;if(b===f||b.Eb===f.Eb&&f.Fb===f.Fb&&b.scale===f.scale&&b.i===f.i&&b.lb===f.lb){if(!e.za.Us(a.za)||!e.Ob.Hn(a.Ob)||e.Gh&&a.Gh)return!1;if(e.Gh)return this.pp(e,a);if(a.Gh)return this.pp(a,e);t=e.V&&!e.V.xf();c=a.V&&!a.V.xf();if(!t&&!c)return!0;t?(e.V.kf(e.width,e.height,e.i),t=e.V):(this.Pc.Uf(e.Ob,e.x,e.y,e.width,e.height),
t=this.Pc);c?(a.V.kf(a.width,a.height,a.i),g=a.V):(this.Pc.Uf(a.Ob,a.x,a.y,a.width,a.height),g=this.Pc);return t.Hg(g,a.x-e.x,a.y-e.y)}t=e.V&&!e.V.xf();c=a.V&&!a.V.xf();t?(e.V.kf(e.width,e.height,e.i),this.Pc.ep(e.V)):this.Pc.Uf(e.Ob,e.x,e.y,e.width,e.height);t=this.Pc;c?(a.V.kf(a.width,a.height,a.i),this.gm.ep(a.V)):this.gm.Uf(a.Ob,a.x,a.y,a.width,a.height);g=this.gm;c=0;for(k=t.Mc;c<k;c++)h=2*c,d=h+1,n=t.Pa[h],r=t.Pa[d],t.Pa[h]=b.ob(n+e.x,r+e.y,!0),t.Pa[d]=b.ob(n+e.x,r+e.y,!1);t.ma();c=0;for(k=
g.Mc;c<k;c++)h=2*c,d=h+1,n=g.Pa[h],r=g.Pa[d],g.Pa[h]=f.ob(n+a.x,r+a.y,!0),g.Pa[d]=f.ob(n+a.x,r+a.y,!1);g.ma();return t.Hg(g,0,0)};var B=new ta;new U(0,0,0,0);var A=[];d.prototype.pp=function(e,a){var b,f,c,k,h=a.za,d=e.x,n=e.y;e.Bv(h,A);var t=a.V&&!a.V.xf();b=0;for(f=A.length;b<f;++b)if(c=A[b],k=c.Iv,h.Vs(k,d,n)&&(B.Vf(k),B.offset(d,n),B.Hn(a.Ob)))if(t)if(a.V.kf(a.width,a.height,a.i),c.Ll){if(c.Ll.Hg(a.V,a.x-(d+k.left),a.y-(n+k.top)))return A.length=0,!0}else{if(this.Pc.Uf(B,0,0,k.right-k.left,k.bottom-
k.top),this.Pc.Hg(a.V,a.x,a.y))return A.length=0,!0}else if(c.Ll){if(this.Pc.Uf(a.Ob,0,0,a.width,a.height),c.Ll.Hg(this.Pc,-(d+k.left),-(n+k.top)))return A.length=0,!0}else return A.length=0,!0;A.length=0;return!1};d.prototype.xp=function(e,a){if(!a)return!1;var b,f,c,k,h;b=0;for(f=e.Ga.length;b<f;b++)if(e.Ga[b].behavior instanceof a)return!0;if(!e.A)for(b=0,f=e.pa.length;b<f;b++)for(h=e.pa[b],c=0,k=h.Ga.length;c<k;c++)if(h.Ga[c].behavior instanceof a)return!0;return!1};d.prototype.yp=function(e){return this.xp(e,
Yb.Uu)};d.prototype.om=function(e){return this.xp(e,Yb.Vu)};var n=-1;d.prototype.trigger=function(e,a,b){if(!this.Z)return!1;var f=this.Z.Fe;if(!f)return!1;var c=!1,k,h,d;n++;var t=f.sk;h=0;for(d=t.length;h<d;++h)k=this.up(e,a,t[h],b),c=c||k;k=this.up(e,a,f,b);n--;return c||k};d.prototype.up=function(e,a,b,f){var c=!1,k,h,d,n;if(a)for(d=this.mm(e,a,a.type.name,b,f),c=c||d,n=a.type.pa,k=0,h=n.length;k<h;++k)d=this.mm(e,a,n[k].name,b,f),c=c||d;else d=this.mm(e,a,"system",b,f),c=c||d;return c};d.prototype.mm=
function(e,a,b,f,c){var k,h=!1,d=!1,d="undefined"!==typeof c,n=(d?f.ln:f.vp)[b];if(!n)return h;var t=null;f=0;for(k=n.length;f<k;++f)if(n[f].method==e){t=n[f].vg;break}if(!t)return h;e=d?t[c]:t;if(!e)return null;f=0;for(k=e.length;f<k;f++)c=e[f][0],d=e[f][1],d=this.es(a,b,c,d),h=h||d;return h};d.prototype.es=function(e,a,b,f){var c,k,h=!1;this.nm++;var d=this.nb().Qb;d&&this.th(d.ne);var t=1<this.nm;this.th(b.ne);t&&this.Nt();var r=this.Ol(b);r.Qb=b;e&&(c=this.types[a].ca(),c.ga=!1,c.c.length=1,c.c[0]=
e,this.types[a].md());e=!0;if(b.parent){a=r.op;for(c=b.parent;c;)a.push(c),c=c.parent;a.reverse();c=0;for(k=a.length;c<k;c++)if(!a[c].Vt()){e=!1;break}}e&&(this.ii++,b.Kc?b.Ut(f):b.Qa(),h=h||r.Se);this.Po();t&&this.Gt();this.Pf(b.ne);d&&this.Pf(d.ne);this.ee&&0===this.yd&&0===n&&!this.fl&&this.hb();this.nm--;return h};d.prototype.qi=function(){var e=this.nb();return e.Qb.ib[e.zb]};d.prototype.Nt=function(){this.Ui++;this.Ui>=this.rl.length&&this.rl.push([])};d.prototype.Gt=function(){this.Ui--};d.prototype.sn=
function(){return this.rl[this.Ui]};d.prototype.Ol=function(e){this.hi++;this.hi>=this.xk.length&&this.xk.push(new Kb);var a=this.nb();a.reset(e);return a};d.prototype.Po=function(){this.hi--};d.prototype.nb=function(){return this.xk[this.hi]};d.prototype.tn=function(e,a){for(var b,f,c,k,h,d;a;){b=0;for(f=a.Ac.length;b<f;b++)if(d=a.Ac[b],d instanceof Lb&&fb(e,d.name))return d;a=a.parent}b=0;for(f=this.sd.length;b<f;b++)for(h=this.sd[b],c=0,k=h.be.length;c<k;c++)if(d=h.be[c],d instanceof Lb&&fb(e,
d.name))return d;return null};d.prototype.vn=function(e){var a,b;a=0;for(b=this.Ub.length;a<b;a++)if(this.Ub[a].O===e)return this.Ub[a];return null};d.prototype.vi=function(e){var a,b;a=0;for(b=this.m.length;a<b;a++)if(this.m[a].O===e)return this.m[a];return null};d.prototype.rs=function(e){var a,b;a=0;for(b=this.Td.length;a<b;a++)if(this.Td[a].O===e)return this.Td[a];return null};d.prototype.Os=function(){var e=this,b=this.tj,f=this.Ad,k=this.Vg,h=!1;this.jp&&(h=!0,b="__c2_continuouspreview",this.jp=
!1);if(b.length){this.hb();f=this.Zt();if(window.indexedDB&&!this.gc)l(b,f,function(){K("Saved state to IndexedDB storage ("+f.length+" bytes)");e.Ad=f;e.trigger(Y.prototype.j.Wj,null);e.Ad="";h&&a()},function(c){try{localStorage.setItem("__c2save_"+b,f),K("Saved state to WebStorage ("+f.length+" bytes)"),e.Ad=f,e.trigger(Y.prototype.j.Wj,null),e.Ad="",h&&a()}catch(k){K("Failed to save game state: "+c+"; "+k)}});else try{localStorage.setItem("__c2save_"+b,f),K("Saved state to WebStorage ("+f.length+
" bytes)"),e.Ad=f,this.trigger(Y.prototype.j.Wj,null),e.Ad="",h&&a()}catch(d){K("Error saving to WebStorage: "+d)}this.qb=this.Vg=this.tj=""}k.length&&(window.indexedDB&&!this.gc?c(k,function(a){a?(e.qb=a,K("Loaded state from IndexedDB storage ("+e.qb.length+" bytes)")):(e.qb=localStorage.getItem("__c2save_"+k)||"",K("Loaded state from WebStorage ("+e.qb.length+" bytes)"));e.Ch=!1;e.qb.length||e.trigger(Y.prototype.j.Uj,null)},function(){e.qb=localStorage.getItem("__c2save_"+k)||"";K("Loaded state from WebStorage ("+
e.qb.length+" bytes)");e.Ch=!1;e.qb.length||e.trigger(Y.prototype.j.Uj,null)}):(this.qb=localStorage.getItem("__c2save_"+k)||"",K("Loaded state from WebStorage ("+this.qb.length+" bytes)"),this.Ch=!1,e.qb.length||e.trigger(Y.prototype.j.Uj,null)),this.tj=this.Vg="");this.qb.length&&(this.hb(),this.gt(this.qb),this.Ad=this.qb,this.trigger(Y.prototype.j.vq,null),this.qb=this.Ad="")};d.prototype.Zt=function(){var e,a,f,c,k,h,d,n={c2save:!0,version:1,rt:{time:this.hc.aa,walltime:this.jd.aa,timescale:this.bg,
tickcount:this.ag,execcount:this.ii,next_uid:this.gh,running_layout:this.Z.O,start_time_offset:Date.now()-this.Bj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(a=this.m.length;e<a;e++)if(k=this.m[e],!k.A&&!this.yp(k)){h={instances:[]};Sa(k.ua)&&(h.ex=b(k.ua));f=0;for(c=k.c.length;f<c;f++)h.instances.push(this.Xl(k.c[f]));n.types[k.O.toString()]=h}e=0;for(a=this.Ub.length;e<a;e++)f=this.Ub[e],n.layouts[f.O.toString()]=f.Ib();c=n.events.groups;e=0;for(a=this.Td.length;e<a;e++)f=
this.Td[e],c[f.O.toString()]=this.wi[f.Dg].Cg;a=n.events.cnds;for(d in this.lf)this.lf.hasOwnProperty(d)&&(e=this.lf[d],Sa(e.ua)&&(a[d]={ex:b(e.ua)}));a=n.events.acts;for(d in this.hf)this.hf.hasOwnProperty(d)&&(e=this.hf[d],Sa(e.ua)&&(a[d]={ex:e.ua}));a=n.events.vars;for(d in this.hg)this.hg.hasOwnProperty(d)&&(e=this.hg[d],e.Fi||e.parent&&!e.Ng||(a[d]=e.data));n.system=this.fd.Ib();return JSON.stringify(n)};d.prototype.Uo=function(){var a,b,f,c,k,h;this.Ed={};a=0;for(b=this.m.length;a<b;a++)if(f=
this.m[a],!f.A)for(c=0,k=f.c.length;c<k;c++)h=f.c[c],this.Ed[h.uid.toString()]=h};d.prototype.gt=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.hc.reset();this.hc.aa=b.time;this.jd.reset();this.jd.aa=b.walltime||0;this.bg=b.timescale;this.ag=b.tickcount;this.ii=b.execcount;this.Bj=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.Z.O)if(f=this.vn(f))this.dn(f);else return;var c,k,h,d,n,t,r;t=a.types;for(k in t)if(t.hasOwnProperty(k)&&(d=this.vi(parseInt(k,
10)))&&!d.A&&!this.yp(d)){t[k].ex?d.ua=t[k].ex:Ta(d.ua);n=d.c;h=t[k].instances;f=0;for(c=ma(n.length,h.length);f<c;f++)this.Pi(n[f],h[f]);f=h.length;for(c=n.length;f<c;f++)this.Pd(n[f]);f=n.length;for(c=h.length;f<c;f++){n=null;if(d.Da.he&&(n=this.Z.si(h[f].w.l),!n))continue;n=this.Be(d.Wc,n,!1,0,0,!0);this.Pi(n,h[f])}d.Zf=!0}this.hb();this.Uo();c=a.layouts;for(k in c)c.hasOwnProperty(k)&&(f=this.vn(parseInt(k,10)))&&f.jc(c[k]);c=a.events.groups;for(k in c)c.hasOwnProperty(k)&&(f=this.rs(parseInt(k,
10)))&&this.wi[f.Dg]&&this.wi[f.Dg].bp(c[k]);f=a.events.cnds;for(k in f)f.hasOwnProperty(k)&&this.lf.hasOwnProperty(k)&&(this.lf[k].ua=f[k].ex);f=a.events.acts;for(k in f)f.hasOwnProperty(k)&&this.hf.hasOwnProperty(k)&&(this.hf[k].ua=f[k].ex);f=a.events.vars;for(k in f)f.hasOwnProperty(k)&&this.hg.hasOwnProperty(k)&&(this.hg[k].data=f[k]);this.gh=b.next_uid;this.fd.jc(a.system);f=0;for(c=this.m.length;f<c;f++)if(d=this.m[f],!d.A)for(k=0,a=d.c.length;k<a;k++){n=d.c[k];if(d.Ic)for(t=n.Bg(),b=n.siblings.length=
0,h=d.Pb.length;b<h;b++)r=d.Pb[b],d!==r&&n.siblings.push(r.c[t]);n.kd&&n.kd();if(n.F)for(b=0,h=n.F.length;b<h;b++)t=n.F[b],t.kd&&t.kd()}this.Y=!0}};d.prototype.Xl=function(a,f){var c,k,h,d,n;d=a.type;h=d.Da;var t={};f?t.c2=!0:t.uid=a.uid;Sa(a.ua)&&(t.ex=b(a.ua));if(a.La&&a.La.length)for(t.ivs={},c=0,k=a.La.length;c<k;c++)t.ivs[a.type.bl[c].toString()]=a.La[c];if(h.he){h={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.O,zi:a.tc()};0!==a.i&&(h.a=a.i);1!==a.opacity&&(h.o=a.opacity);.5!==a.Cb&&(h.hX=a.Cb);.5!==
a.Db&&(h.hY=a.Db);0!==a.tb&&(h.bm=a.tb);a.visible||(h.v=a.visible);a.ze||(h.ce=a.ze);-1!==a.fh&&(h.mts=a.fh);if(d.G.length)for(h.fx=[],c=0,k=d.G.length;c<k;c++)n=d.G[c],h.fx.push({name:n.name,active:a.Rd[n.index],params:a.ta[n.index]});t.w=h}if(a.F&&a.F.length)for(t.behs={},c=0,k=a.F.length;c<k;c++)d=a.F[c],d.Ib&&(t.behs[d.type.O.toString()]=d.Ib());a.Ib&&(t.data=a.Ib());return t};d.prototype.ts=function(a,b){var f,c;f=0;for(c=a.bl.length;f<c;f++)if(a.bl[f]===b)return f;return-1};d.prototype.os=function(a,
b){var f,c;f=0;for(c=a.F.length;f<c;f++)if(a.F[f].type.O===b)return f;return-1};d.prototype.Pi=function(a,b,f){var c,k,h,d,n;n=a.type;h=n.Da;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ua=b.ex:Ta(a.ua);if(k=b.ivs)for(c in k)k.hasOwnProperty(c)&&(f=this.ts(n,parseInt(c,10)),0>f||f>=a.La.length||(a.La[f]=k[c]));if(h.he){h=b.w;a.d.O!==h.l&&(f=a.d,a.d=this.Z.si(h.l),a.d?(f.Qf(a,!0),a.d.lg(a,!0),a.wa(),a.d.yh(0)):(a.d=f,this.Pd(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.Tc=h.zi;a.i=h.hasOwnProperty("a")?
h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.Cb=h.hasOwnProperty("hX")?h.hX:.5;a.Db=h.hasOwnProperty("hY")?h.hY:.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.ze=h.hasOwnProperty("ce")?h.ce:!0;a.fh=h.hasOwnProperty("mts")?h.mts:-1;a.tb=h.hasOwnProperty("bm")?h.bm:0;a.qg=cb(a.tb);this.k&&db(a,a.tb,this.k);a.wa();if(h.hasOwnProperty("fx"))for(f=0,k=h.fx.length;f<k;f++)d=n.Lk(h.fx[f].name),0>d||(a.Rd[d]=h.fx[f].active,a.ta[d]=h.fx[f].params);a.Nd()}if(n=b.behs)for(c in n)n.hasOwnProperty(c)&&(h=this.os(a,
parseInt(c,10)),0>h||a.F[h].jc(n[c]));b.data&&a.jc(b.data)};Mb=function(a){return new d(document.getElementById(a))};Nb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Kv=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(g,m){if(0!==g&&0!==m){var d=window.cr_getC2Runtime();d&&d.setSize(g,m)}};window.cr_setSuspended=function(g){var m=window.cr_getC2Runtime();m&&m.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.Fe=null;this.scrollX=this.b.Oa/2;this.scrollY=this.b.Na/2;this.scale=1;this.i=0;this.pf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.zp=b[3];this.hp=b[4];this.O=b[5];var c=b[6],h,d;this.J=[];this.Gg=[];h=0;for(d=c.length;h<d;h++){var g=new Ob(this,c[h]);g.xo=h;this.J.push(g)}c=b[7];this.Me=[];h=0;for(d=c.length;h<d;h++){var g=c[h],l=this.b.m[g[1]];l.Wc||(l.Wc=g);this.Me.push(g);-1===this.Gg.indexOf(l)&&this.Gg.push(l)}this.G=[];this.U=[];this.ta=
[];h=0;for(d=b[8].length;h<d;h++)this.G.push({id:b[8][h][0],name:b[8][h][1],gb:-1,Wa:!0,index:h}),this.ta.push(b[8][h][2].slice(0));this.Nd();this.vh=new U(0,0,1,1);this.Ql=new U(0,0,1,1);this.je={}}function m(a,b){return a.Tc-b.Tc}function d(a,b){this.Ya=a;this.b=a.b;this.c=[];this.scale=1;this.i=0;this.De=!1;this.Ld=new U(0,0,0,0);this.sp=new ta;this.Ia=this.ya=this.Ja=this.xa=0;this.df=!1;this.Od=-1;this.name=b[0];this.index=b[1];this.O=b[2];this.visible=b[3];this.Vd=b[4];this.Md=b[5];this.Eb=
b[6];this.Fb=b[7];this.opacity=b[8];this.Ek=b[9];this.Rc=b[10];this.lb=b[11];this.tb=b[12];this.Dr=b[13];this.qg="source-over";this.jb=this.kb=0;this.Wb=null;this.Df=p();this.Hd=!0;this.Li=new U(0,0,-1,-1);this.nc=new U(0,0,-1,-1);this.Rc&&(this.Wb=new bb(this.b.Oa,this.b.Na));this.ke=!1;var c=b[14],h,d;this.mp=[];this.fc=[];this.sg=[];h=0;for(d=c.length;h<d;h++){var g=c[h],l=this.b.m[g[1]];l.Wc||(l.Wc=g,l.hr=this.index);this.fc.push(g);-1===this.Ya.Gg.indexOf(l)&&this.Ya.Gg.push(l)}xa(this.mp,this.fc);
this.G=[];this.U=[];this.ta=[];h=0;for(d=b[15].length;h<d;h++)this.G.push({id:b[15][h][0],name:b[15][h][1],gb:-1,Wa:!0,index:h}),this.ta.push(b[15][h][2].slice(0));this.Nd();this.vh=new U(0,0,1,1);this.Ql=new U(0,0,1,1)}function p(){return b.length?b.pop():[]}function l(a){a.length=0;b.push(a)}g.prototype.Yt=function(a){var b=a.type.O.toString();this.je.hasOwnProperty(b)||(this.je[b]=[]);this.je[b].push(this.b.Xl(a))};g.prototype.zn=function(){var a=this.J[0];return!a.Md&&1===a.opacity&&!a.Ek&&a.visible};
g.prototype.Nd=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Wa&&this.U.push(c)};g.prototype.Kk=function(a){var b,c,h;b=0;for(c=this.G.length;b<c;b++)if(h=this.G[b],h.name===a)return h;return null};var c=[],a=!0;g.prototype.em=function(){this.hp&&(this.Fe=this.b.yk[this.hp],this.Fe.pm());this.b.Z=this;this.scrollX=this.b.Oa/2;this.scrollY=this.b.Na/2;var b,k,d,h,r,g,l;b=0;for(d=this.b.m.length;b<d;b++)if(k=this.b.m[b],!k.A)for(r=k.c,k=0,h=r.length;k<h;k++)if(g=
r[k],g.d){var n=g.d.xo;n>=this.J.length&&(n=this.J.length-1);g.d=this.J[n];-1===g.d.c.indexOf(g)&&g.d.c.push(g);g.d.df=!0}if(!a)for(b=0,d=this.J.length;b<d;++b)this.J[b].c.sort(m);c.length=0;this.Wq();b=0;for(d=this.J.length;b<d;b++)g=this.J[b],g.er(),g.rm();r=!1;if(!this.pf){for(l in this.je)if(this.je.hasOwnProperty(l)&&(k=this.b.vi(parseInt(l,10)))&&!k.A&&this.b.om(k)){h=this.je[l];b=0;for(d=h.length;b<d;b++){g=null;if(k.Da.he&&(g=this.si(h[b].w.l),!g))continue;g=this.b.Be(k.Wc,g,!1,0,0,!0);this.b.Pi(g,
h[b]);r=!0;c.push(g)}h.length=0}b=0;for(d=this.J.length;b<d;b++)this.J[b].c.sort(m),this.J[b].df=!0}r&&(this.b.hb(),this.b.Uo());for(b=0;b<c.length;b++)if(g=c[b],g.type.Ic)for(d=g.Bg(),k=0,h=g.type.Pb.length;k<h;k++)l=g.type.Pb[k],g.type!==l&&(l.c.length>d?g.siblings.push(l.c[d]):l.Wc&&(r=this.b.Be(l.Wc,g.d,!0,g.x,g.y,!0),this.b.hb(),l.Nj(),g.siblings.push(r),c.push(r)));b=0;for(d=this.Me.length;b<d;b++)this.b.Be(this.Me[b],null,!0);this.b.ye=null;this.b.hb();if(this.b.ba&&!this.b.ea)for(b=0,d=this.b.m.length;b<
d;b++)l=this.b.m[b],!l.A&&l.c.length&&l.nj&&l.nj(this.b.ba);b=0;for(d=c.length;b<d;b++)g=c[b],this.b.trigger(Object.getPrototypeOf(g.type.Da).j.iq,g);c.length=0;this.b.trigger(Y.prototype.j.Dm,null);this.pf=!1};g.prototype.dr=function(){var a,b,c,h,d;b=a=0;for(c=this.Me.length;a<c;a++)h=this.Me[a],d=this.b.m[h[1]],d.global?this.b.Be(h,null,!0):(this.Me[b]=h,b++);this.Me.length=b};g.prototype.gu=function(){this.b.trigger(Y.prototype.j.uq,null);this.b.fd.Lb.length=0;var b,c,d,h,r,g;if(!this.pf)for(b=
0,c=this.J.length;b<c;b++)for(this.J[b].tm(),r=this.J[b].c,d=0,h=r.length;d<h;d++)g=r[d],g.type.global||this.b.om(g.type)&&this.Yt(g);b=0;for(c=this.J.length;b<c;b++){r=this.J[b].c;d=0;for(h=r.length;d<h;d++)g=r[d],g.type.global||this.b.Pd(g);this.b.hb();r.length=0;this.J[b].df=!0}b=0;for(c=this.b.m.length;b<c;b++)if(r=this.b.m[b],!(r.global||r.Da.he||r.Da.wj||r.A)){d=0;for(h=r.c.length;d<h;d++)this.b.Pd(r.c[d]);this.b.hb()}a=!1};new U(0,0,0,0);g.prototype.Gc=function(a){var b,c=a,h=!1,d=!this.b.pc;
d&&(this.b.Oi||(this.b.Oi=document.createElement("canvas"),b=this.b.Oi,b.width=this.b.M,b.height=this.b.L,this.b.Vn=b.getContext("2d"),h=!0),b=this.b.Oi,c=this.b.Vn,b.width!==this.b.M&&(b.width=this.b.M,h=!0),b.height!==this.b.L&&(b.height=this.b.L,h=!0),h&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.ak&&!this.zn()&&c.clearRect(0,0,this.b.M,
this.b.L);var g,l,h=0;for(g=this.J.length;h<g;h++)l=this.J[h],l.visible&&0<l.opacity&&11!==l.tb&&(l.c.length||!l.Md)?l.Gc(c):l.rm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Rb=function(a){var b=0<this.U.length||this.b.fg||!this.b.pc;if(b){this.b.Tb||(this.b.Tb=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.Tb.pg!==this.b.M||this.b.Tb.ng!==this.b.L)a.deleteTexture(this.b.Tb),this.b.Tb=a.Yd(this.b.M,this.b.L,this.b.S);a.cd(this.b.Tb);this.b.pc||a.Tf(this.b.M,this.b.L)}else this.b.Tb&&
(a.cd(null),a.deleteTexture(this.b.Tb),this.b.Tb=null);this.b.ak&&!this.zn()&&a.clear(0,0,0,0);var c,h,d;c=0;for(h=this.J.length;c<h;c++)d=this.J[c],d.visible&&0<d.opacity&&(d.c.length||!d.Md)?d.Rb(a):d.rm();b&&(0===this.U.length||1===this.U.length&&this.b.pc?(1===this.U.length?(b=this.U[0].index,a.ed(this.U[0].gb),a.Sf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.i,0,0,this.b.M/2,this.b.L/2,this.ta[b]),a.oj(this.U[0].gb)&&(this.b.Y=!0)):a.ed(0),this.b.pc||a.Tf(this.b.width,this.b.height),a.cd(null),
a.$e(1),a.Xb(this.b.Tb),a.$o(),a.le(),a.te(),b=this.b.width/2,c=this.b.height/2,a.uh(-b,c,b,c,b,-c,-b,-c),a.Xb(null)):this.Rl(a,null,null,null))};g.prototype.zg=function(){return 0<this.U.length||this.b.fg||!this.b.pc?this.b.Tb:null};g.prototype.wn=function(){var a=this.J[0].rc(),b,c,h;b=1;for(c=this.J.length;b<c;b++)h=this.J[b],(0!==h.Eb||0!==h.Fb)&&h.rc()<a&&(a=h.rc());return a};g.prototype.Yo=function(a){if(!this.zp){var b=1/this.wn()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==
a&&(this.scrollX=a,this.b.Y=!0)};g.prototype.Zo=function(a){if(!this.zp){var b=1/this.wn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.Y=!0)};g.prototype.Wq=function(){this.Yo(this.scrollX);this.Zo(this.scrollY)};g.prototype.Rl=function(a,b,c,h){var d=c?c.U:b?b.U:this.U,g=1,l=0,n=0,e=0,m=this.b.M,q=this.b.L;c?(g=c.d.rc(),l=c.d.Xa(),n=c.d.xa,e=c.d.ya,m=c.d.Ja,q=c.d.Ia):b&&(g=b.rc(),l=b.Xa(),n=b.xa,e=b.ya,m=b.Ja,q=b.Ia);var s=this.b.Hk,v,p,w,z,L=
0,D=1,X,H=this.b.M,y=this.b.L,ua=H/2,N=y/2,Q=b?b.vh:this.vh,F=b?b.Ql:this.Ql,G=0,O=0,E=0,J=0,I=H,ha=H,M=y,pa=y,ea=w=0,sa=c?c.d.Xa():0;if(c){v=0;for(p=d.length;v<p;v++)w+=a.xs(d[v].gb),ea+=a.ys(d[v].gb);z=c.za;G=b.ob(z.left,z.top,!0,!0);E=b.ob(z.left,z.top,!1,!0);I=b.ob(z.right,z.bottom,!0,!0);M=b.ob(z.right,z.bottom,!1,!0);0!==sa&&(v=b.ob(z.right,z.top,!0,!0),p=b.ob(z.right,z.top,!1,!0),O=b.ob(z.left,z.bottom,!0,!0),J=b.ob(z.left,z.bottom,!1,!0),z=Math.min(G,I,v,O),I=Math.max(G,I,v,O),G=z,z=Math.min(E,
M,p,J),M=Math.max(E,M,p,J),E=z);G-=w;E-=ea;I+=w;M+=ea;F.left=G/H;F.top=1-E/y;F.right=I/H;F.bottom=1-M/y;O=G=T(G);J=E=T(E);ha=I=qa(I);pa=M=qa(M);O-=w;J-=ea;ha+=w;pa+=ea;0>G&&(G=0);0>E&&(E=0);I>H&&(I=H);M>y&&(M=y);0>O&&(O=0);0>J&&(J=0);ha>H&&(ha=H);pa>y&&(pa=y);Q.left=G/H;Q.top=1-E/y;Q.right=I/H;Q.bottom=1-M/y}else Q.left=F.left=0,Q.top=F.top=0,Q.right=F.right=1,Q.bottom=F.bottom=1;ea=c&&((c.i||sa)&&a.sh(d[0].gb)||0!==w||0!==ea||1!==c.opacity||c.type.Da.so)||b&&!c&&1!==b.opacity;a.$o();if(ea){s[L]||
(s[L]=a.Yd(H,y,this.b.S));if(s[L].pg!==H||s[L].ng!==y)a.deleteTexture(s[L]),s[L]=a.Yd(H,y,this.b.S);a.ed(0);a.cd(s[L]);X=pa-J;a.clearRect(O,y-J-X,ha-O,X);c?c.Rb(a):(a.Xb(this.b.ic),a.$e(b.opacity),a.le(),a.translate(-ua,-N),a.te(),a.Gd(G,M,I,M,I,E,G,E,Q));F.left=F.top=0;F.right=F.bottom=1;c&&(z=Q.top,Q.top=Q.bottom,Q.bottom=z);L=1;D=0}a.$e(1);w=d.length-1;var sa=a.Ml(d[w].gb)||!b&&!c&&!this.b.pc,ba=0;v=0;for(p=d.length;v<p;v++){s[L]||(s[L]=a.Yd(H,y,this.b.S));if(s[L].pg!==H||s[L].ng!==y)a.deleteTexture(s[L]),
s[L]=a.Yd(H,y,this.b.S);a.ed(d[v].gb);ba=d[v].index;a.oj(d[v].gb)&&(this.b.Y=!0);0!=v||ea?(a.Sf(h,1/H,1/y,F.left,F.top,F.right,F.bottom,g,l,n,e,(n+m)/2,(e+q)/2,c?c.ta[ba]:b?b.ta[ba]:this.ta[ba]),a.Xb(null),v!==w||sa?(a.cd(s[L]),X=pa-J,z=y-J-X,a.clearRect(O,z,ha-O,X)):(c?a.me(c.kb,c.jb):b&&a.me(b.kb,b.jb),a.cd(h)),a.Xb(s[D]),a.le(),a.translate(-ua,-N),a.te(),a.Gd(G,M,I,M,I,E,G,E,Q),v!==w||sa||a.Xb(null)):(a.cd(s[L]),X=pa-J,z=y-J-X,a.clearRect(O,z,ha-O,X),c?(a.Sf(h,1/c.width,1/c.height,F.left,F.top,
F.right,F.bottom,g,l,n,e,(n+m)/2,(e+q)/2,c.ta[ba]),c.Rb(a)):(a.Sf(h,1/H,1/y,0,0,1,1,g,l,n,e,(n+m)/2,(e+q)/2,b?b.ta[ba]:this.ta[ba]),a.Xb(b?this.b.ic:this.b.Tb),a.le(),a.translate(-ua,-N),a.te(),a.Gd(G,M,I,M,I,E,G,E,Q)),F.left=F.top=0,F.right=F.bottom=1,c&&!sa&&(z=M,M=E,E=z));L=0===L?1:0;D=0===L?1:0}sa&&(a.ed(0),c?a.me(c.kb,c.jb):b?a.me(b.kb,b.jb):this.b.pc||(a.Tf(this.b.width,this.b.height),ua=this.b.width/2,N=this.b.height/2,E=G=0,I=this.b.width,M=this.b.height),a.cd(h),a.Xb(s[D]),a.le(),a.translate(-ua,
-N),a.te(),c&&1===d.length&&!ea?a.Gd(G,E,I,E,I,M,G,M,Q):a.Gd(G,M,I,M,I,E,G,E,Q),a.Xb(null))};g.prototype.si=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].O===a)return this.J[b];return null};g.prototype.Ib=function(){var a,b,c,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.pf,persist:this.je,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],h.fx.push({name:c.name,active:c.Wa,params:this.ta[c.index]});a=0;for(b=this.J.length;a<
b;a++)c=this.J[a],h.layers[c.O.toString()]=c.Ib();return h};g.prototype.jc=function(a){var b,c,h,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.i=a.a;this.width=a.w;this.height=a.h;this.je=a.persist;"undefined"!==typeof a.fv&&(this.pf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(h=this.Kk(g[b].name))h.Wa=g[b].active,this.ta[h.index]=g[b].params;this.Nd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.si(parseInt(d,10)))&&a.jc(b[d])};Ab=g;d.prototype.Nd=function(){this.U.length=0;
var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Wa&&this.U.push(c)};d.prototype.Kk=function(a){var b,c,h;b=0;for(c=this.G.length;b<c;b++)if(h=this.G[b],h.name===a)return h;return null};d.prototype.er=function(){var a,b,d,h,g,l;b=a=0;for(d=this.fc.length;a<d;a++){h=this.fc[a];g=this.b.m[h[1]];l=this.b.om(g);g=!0;if(!l||this.Ya.pf)h=this.b.Be(h,this,!0),c.push(h),h.type.global&&(g=!1,this.sg.push(h.uid));g&&(this.fc[b]=this.fc[a],b++)}this.fc.length=b;this.b.hb();!this.b.n&&this.G.length&&(this.tb=
this.Dr);this.qg=cb(this.tb);this.b.k&&db(this,this.tb,this.b.k);this.Hd=!0};d.prototype.Qf=function(a,b){var c=za(this.c,a);0>c||(b&&this.Rc&&a.Gb&&a.Gb.right>=a.Gb.left&&(a.ma(),this.Wb.update(a,a.Gb,null),a.Gb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(wa(this.c,c),this.yh(c)),this.Hd=!0)};d.prototype.lg=function(a,b){a.Tc=this.c.length;this.c.push(a);b&&this.Rc&&a.Gb&&a.wa();this.Hd=!0};d.prototype.Kt=function(a){this.c.unshift(a);this.yh(0)};d.prototype.mt=function(a,b,c){var h=a.tc();
b=b.tc();wa(this.c,h);h<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.yh(h<b?h:b)};d.prototype.yh=function(a){-1===this.Od?this.Od=a:a<this.Od&&(this.Od=a);this.Hd=this.df=!0};d.prototype.tm=function(){if(this.df){-1===this.Od&&(this.Od=0);var a,b,c;if(this.Rc)for(a=this.Od,b=this.c.length;a<b;++a)c=this.c[a],c.Tc=a,this.Wb.it(c.Gb);else for(a=this.Od,b=this.c.length;a<b;++a)this.c[a].Tc=a;this.df=!1;this.Od=-1}};d.prototype.rc=function(a){return this.us()*(this.b.pc||a?
this.b.mg:1)};d.prototype.us=function(){return(this.scale*this.Ya.scale-1)*this.lb+1};d.prototype.Xa=function(){return this.De?0:Da(this.Ya.i+this.i)};var b=[],v=[],s=[];d.prototype.xn=function(){this.tm();this.Wb.pj(this.xa,this.ya,this.Ja,this.Ia,s);if(!s.length)return p();if(1===s.length){var a=p();xa(a,s[0]);s.length=0;return a}for(var b=!0;1<s.length;){for(var a=s,c=void 0,h=void 0,d=void 0,g=void 0,m=void 0,c=0,h=a.length;c<h-1;c+=2){var d=a[c],g=a[c+1],m=p(),n=d,e=g,u=m,q=0,x=0,C=0,oa=n.length,
w=e.length,z=void 0,L=void 0;for(u.length=oa+w;q<oa&&x<w;++C)z=n[q],L=e[x],z.Tc<L.Tc?(u[C]=z,++q):(u[C]=L,++x);for(;q<oa;++q,++C)u[C]=n[q];for(;x<w;++x,++C)u[C]=e[x];b||(l(d),l(g));v.push(m)}1===h%2&&(b?(d=p(),xa(d,a[h-1]),v.push(d)):v.push(a[h-1]));xa(a,v);v.length=0;b=!1}a=s[0];s.length=0;return a};d.prototype.Gc=function(a){this.ke=this.Ek||1!==this.opacity||0!==this.tb;var b=this.b.canvas,c=a,h=!1;this.ke&&(this.b.Ni||(this.b.Ni=document.createElement("canvas"),b=this.b.Ni,b.width=this.b.M,b.height=
this.b.L,this.b.Un=b.getContext("2d"),h=!0),b=this.b.Ni,c=this.b.Un,b.width!==this.b.M&&(b.width=this.b.M,h=!0),b.height!==this.b.L&&(b.height=this.b.L,h=!0),h&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Md&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Md||(c.fillStyle="rgb("+this.Vd[0]+","+this.Vd[1]+","+this.Vd[2]+")",c.fillRect(0,0,this.b.M,
this.b.L));c.save();this.De=!0;var h=this.na(0,0,!0,!0),d=this.na(0,0,!1,!0);this.De=!1;this.b.bd&&(h=Math.round(h),d=Math.round(d));this.Tl(h,d,c);var g=this.rc();c.scale(g,g);c.translate(-h,-d);this.Rc?(this.nc.left=this.Wb.$b(this.xa),this.nc.top=this.Wb.ac(this.ya),this.nc.right=this.Wb.$b(this.Ja),this.nc.bottom=this.Wb.ac(this.Ia),this.Hd||!this.nc.gi(this.Li)?(l(this.Df),h=this.xn(),this.Hd=!1,this.Li.rg(this.nc)):h=this.Df):h=this.c;for(var m,n=null,d=0,g=h.length;d<g;++d)m=h[d],m!==n&&(this.Ar(m,
c),n=m);this.Rc&&(this.Df=h);c.restore();this.ke&&(a.globalCompositeOperation=this.qg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.Ar=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.za;c.right<this.xa||c.bottom<this.ya||c.left>this.Ja||c.top>this.Ia||(b.globalCompositeOperation=a.qg,a.Gc(b))}};d.prototype.rm=function(){this.De=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.De=!1;this.b.bd&&(a=Math.round(a),b=Math.round(b));this.Tl(a,b,null)};d.prototype.Tl=
function(a,b,c){var h=this.rc();this.xa=a;this.ya=b;this.Ja=a+1/h*this.b.M;this.Ia=b+1/h*this.b.L;a=this.Xa();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.Ld.set(this.xa,this.ya,this.Ja,this.Ia),this.Ld.offset((this.xa+this.Ja)/-2,(this.ya+this.Ia)/-2),this.sp.fp(this.Ld,a),this.sp.Vm(this.Ld),this.Ld.offset((this.xa+this.Ja)/2,(this.ya+this.Ia)/2),this.xa=this.Ld.left,this.ya=this.Ld.top,this.Ja=this.Ld.right,this.Ia=this.Ld.bottom)};d.prototype.Rb=
function(a){var b=0,c=0;if(this.ke=this.Ek||1!==this.opacity||0<this.U.length||0!==this.tb){this.b.ic||(this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.ic.pg!==this.b.M||this.b.ic.ng!==this.b.L)a.deleteTexture(this.b.ic),this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S);a.cd(this.b.ic);this.Md&&a.clear(0,0,0,0)}this.Md||a.clear(this.Vd[0]/255,this.Vd[1]/255,this.Vd[2]/255,1);this.De=!0;var h=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.De=!1;this.b.bd&&(h=Math.round(h),b=Math.round(b));this.Tl(h,b,
null);h=this.rc();a.le();a.scale(h,h);a.Wo(-this.Xa());a.translate((this.xa+this.Ja)/-2,(this.ya+this.Ia)/-2);a.te();this.Rc?(this.nc.left=this.Wb.$b(this.xa),this.nc.top=this.Wb.ac(this.ya),this.nc.right=this.Wb.$b(this.Ja),this.nc.bottom=this.Wb.ac(this.Ia),this.Hd||!this.nc.gi(this.Li)?(l(this.Df),b=this.xn(),this.Hd=!1,this.Li.rg(this.nc)):b=this.Df):b=this.c;var d,g,m=null,c=0;for(d=b.length;c<d;++c)g=b[c],g!==m&&(this.Br(b[c],a),m=g);this.Rc&&(this.Df=b);this.ke&&(b=this.U.length?this.U[0].gb:
0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Ml(b)&&1===this.opacity?(1===this.U.length?(a.ed(b),a.Sf(this.Ya.zg(),1/this.b.M,1/this.b.L,0,0,1,1,h,this.Xa(),this.xa,this.ya,(this.xa+this.Ja)/2,(this.ya+this.Ia)/2,this.ta[c]),a.oj(b)&&(this.b.Y=!0)):a.ed(0),a.cd(this.Ya.zg()),a.$e(this.opacity),a.Xb(this.b.ic),a.me(this.kb,this.jb),a.le(),a.te(),h=this.b.M/2,b=this.b.L/2,a.uh(-h,b,h,b,h,-b,-h,-b),a.Xb(null)):this.Ya.Rl(a,this,null,this.Ya.zg()))};d.prototype.Br=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.za;c.right<this.xa||c.bottom<this.ya||c.left>this.Ja||c.top>this.Ia||(a.Fp?this.Cr(a,b):(b.ed(0),b.me(a.kb,a.jb),a.Rb(b)))}};d.prototype.Cr=function(a,b){var c=a.U[0].gb,d=a.U[0].index,g=this.rc();if(1!==a.U.length||b.Ml(c)||b.Mt(c)||(a.i||a.d.Xa())&&b.sh(c)||1!==a.opacity||a.type.Da.so)this.Ya.Rl(b,this,a,this.ke?this.b.ic:this.Ya.zg()),b.le(),b.scale(g,g),b.Wo(-this.Xa()),b.translate((this.xa+this.Ja)/-2,(this.ya+this.Ia)/-2),b.te();else{b.ed(c);
b.me(a.kb,a.jb);b.oj(c)&&(this.b.Y=!0);var l=0,m=0,n=0,e=0;b.sh(c)&&(c=a.za,l=this.ob(c.left,c.top,!0,!0),m=this.ob(c.left,c.top,!1,!0),n=this.ob(c.right,c.bottom,!0,!0),c=this.ob(c.right,c.bottom,!1,!0),l/=windowWidth,m=1-m/windowHeight,n/=windowWidth,e=1-c/windowHeight);b.Sf(this.ke?this.b.ic:this.Ya.zg(),1/a.width,1/a.height,l,m,n,e,g,this.Xa(),this.xa,this.ya,(this.xa+this.Ja)/2,(this.ya+this.Ia)/2,a.ta[d]);a.Rb(b)}};d.prototype.na=function(a,b,c,d){var g=this.b.devicePixelRatio;this.b.Oe&&(a*=
g,b*=g);var g=this.b.Jo,l=this.b.Ko,g=(this.Ya.scrollX-g)*this.Eb+g,l=(this.Ya.scrollY-l)*this.Fb+l,m=g,n=l,e=1/this.rc(!d);d?(m-=this.b.M*e/2,n-=this.b.L*e/2):(m-=this.b.width*e/2,n-=this.b.height*e/2);m+=a*e;n+=b*e;b=this.Xa();0!==b&&(m-=g,n-=l,a=Math.cos(b),b=Math.sin(b),d=m*a-n*b,n=n*a+m*b,m=d+g,n+=l);return c?m:n};d.prototype.ob=function(a,b,c,d){var g=this.b.Jo,l=this.b.Ko,m=(this.Ya.scrollX-g)*this.Eb+g,n=(this.Ya.scrollY-l)*this.Fb+l,l=m,g=n,e=this.Xa();if(0!==e){a-=m;b-=n;var s=Math.cos(-e),
e=Math.sin(-e),q=a*s-b*e;b=b*s+a*e;a=q+m;b+=n}m=1/this.rc(!d);d?(l-=this.b.M*m/2,g-=this.b.L*m/2):(l-=this.b.width*m/2,g-=this.b.height*m/2);l=(a-l)/m;g=(b-g)/m;a=this.b.devicePixelRatio;this.b.Oe&&!d&&(l/=a,g/=a);return c?l:g};d.prototype.Ib=function(){var a,b,c,d={s:this.scale,a:this.i,vl:this.xa,vt:this.ya,vr:this.Ja,vb:this.Ia,v:this.visible,bc:this.Vd,t:this.Md,px:this.Eb,py:this.Fb,o:this.opacity,zr:this.lb,fx:[],cg:this.sg,instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,
active:c.Wa,params:this.ta[c.index]});return d};d.prototype.jc=function(a){var b,c,d;this.scale=a.s;this.i=a.a;this.xa=a.vl;this.ya=a.vt;this.Ja=a.vr;this.Ia=a.vb;this.visible=a.v;this.Vd=a.bc;this.Md=a.t;this.Eb=a.px;this.Fb=a.py;this.opacity=a.o;this.lb=a.zr;this.sg=a.cg||[];xa(this.fc,this.mp);var g=new ca;b=0;for(d=this.sg.length;b<d;++b)g.add(this.sg[b]);c=b=0;for(d=this.fc.length;b<d;++b)g.contains(this.fc[b][2])||(this.fc[c]=this.fc[b],++c);this.fc.length=c;c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=
this.Kk(c[b].name))a.Wa=c[b].active,this.ta[a.index]=c[b].params;this.Nd();this.c.sort(m);this.df=!0};Ob=d})();
(function(){function g(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function d(a){var b,c,d,h;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=r.length&&(r.length=a.length+1);r[a.length]||(r[a.length]=[]);h=r[a.length];b=0;for(c=h.length;b<c;b++)if(d=h[b],g(a,d))return d;h.push(a);return a}
function p(a,b){this.b=a;this.vp={};this.ln={};this.Vk=!1;this.Cn=new ca;this.sk=[];this.bk=[];this.name=b[0];var c=b[1];this.be=[];var d,h;d=0;for(h=c.length;d<h;d++)this.En(c[d],null,this.be)}function l(a){this.type=a;this.c=[];this.P=[];this.ga=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.ne=[];this.An=this.Ij=this.lm=this.Ci=this.group=this.lp=!1;this.ib=[];this.Cc=[];this.Ac=[];this.Dg="";this.Cg=this.Ci=this.group=!1;this.Xh=null;c[1]&&(this.Dg=c[1][1].toLowerCase(),
this.group=!0,this.Ci=!!c[1][0],this.Xh=[],this.Cg=this.Ci,this.b.Td.push(this),this.b.wi[this.Dg]=this);this.Kc=c[2];this.O=c[4];this.group||(this.b.Um[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var h=new Pb(this,d[a]);h.index=a;this.ib.push(h);this.Pm(h.type)}d=c[6];a=0;for(b=d.length;a<b;a++)h=new Qb(this,d[a]),h.index=a,this.Cc.push(h);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.En(c[a],this,this.Ac);this.Gi=!1;this.ib.length&&(this.Gi=null==this.ib[0].type&&
this.ib[0].cb==Y.prototype.j.Op)}function a(a,b){var c,d,h;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ic))for(c=0,d=a.Pb.length;c<d;c++)h=a.Pb[c],a!==h&&-1===b.indexOf(h)&&b.push(h)}function b(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.jg=!1;this.cb=this.b.Qd(b[1]);this.trigger=0<b[3];this.kn=2===b[3];this.Zc=b[4];this.tf=b[5];this.et=b[6];this.O=b[7];this.b.lf[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Qa=this.Wl,this.xe=null,this.Ec=-1):
(this.type=this.b.m[b[0]],this.Qa=this.et?this.Wt:this.Vl,b[2]?(this.xe=this.type.pi(b[2]),this.Ec=this.type.Jk(b[2])):(this.xe=null,this.Ec=-1),this.cc.parent&&this.cc.parent.vj());this.kn&&(this.Qa=this.Xt);if(10===b.length){var c,d,h=b[9];c=0;for(d=h.length;c<d;c++){var f=new Rb(this,h[c]);this.K.push(f)}this.va.length=h.length}}function v(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.jg=!1;this.cb=this.b.Qd(b[1]);-1===b[0]?(this.type=null,this.Qa=
this.Wl,this.xe=null,this.Ec=-1):(this.type=this.b.m[b[0]],this.Qa=this.Vl,b[2]?(this.xe=this.type.pi(b[2]),this.Ec=this.type.Jk(b[2])):(this.xe=null,this.Ec=-1));this.O=b[3];this.b.hf[this.O.toString()]=this;if(6===b.length){var c,d,h=b[5];c=0;for(d=h.length;c<d;c++){var f=new Rb(this,h[c]);this.K.push(f)}this.va.length=h.length}}function s(){A++;B.length===A&&B.push(new Sb);return B[A]}function f(a,b){this.ja=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Xc=null;this.Kd=0;this.get=
null;this.an=0;this.Ya=null;this.key=0;this.object=null;this.index=0;this.Ih=this.cf=this.Ih=this.cf=this.mn=this.Ge=this.Jh=null;this.Bc=!1;var c,d,h;switch(b[0]){case 0:case 7:this.Xc=new Tb(this,b[1]);this.Kd=0;this.get=this.Ds;break;case 1:this.Xc=new Tb(this,b[1]);this.Kd=0;this.get=this.Es;break;case 5:this.Xc=new Tb(this,b[1]);this.Kd=0;this.get=this.Is;break;case 3:case 8:this.an=b[1];this.get=this.Bs;break;case 6:this.Ya=this.b.nl[b[1]];this.get=this.Js;break;case 9:this.key=b[1];this.get=
this.Hs;break;case 4:this.object=this.b.m[b[1]];this.get=this.Ks;this.cc.Pm(this.object);this.ja instanceof Qb?this.cc.vj():this.cc.parent&&this.cc.parent.vj();break;case 10:this.index=b[1];a.type.A?(this.get=this.Fs,this.Bc=!0):this.get=this.Gs;break;case 11:this.Jh=b[1];this.Ge=null;this.get=this.Cs;break;case 2:case 12:this.mn=b[1];this.get=this.As;break;case 13:for(this.get=this.Ls,this.cf=[],this.Ih=[],c=1,d=b.length;c<d;c++)h=new Rb(this.ja,b[c]),this.cf.push(h),this.Ih.push(0)}}function k(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=c[1];this.Pj=c[2];this.Bi=c[3];this.Ng=!!c[4];this.Fi=!!c[5];this.O=c[6];this.b.hg[this.O.toString()]=this;this.data=this.Bi;this.parent?(this.We=this.Ng||this.Fi?-1:this.b.eu++,this.b.Sq.push(this)):(this.We=-1,this.b.Zj.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Fg=null;this.Rs=c[1];this.Wa=!0}function h(){this.op=[];this.reset(null)}var r=[];p.prototype.toString=function(){return this.name};
p.prototype.En=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.Kc)for(c.push(a),c=0,b=a.ib.length;c<b;c++)a.ib[c].trigger&&this.Fn(a,c);else a.Nn()?this.Fn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};p.prototype.Ea=function(){var a,b;a=0;for(b=this.be.length;a<b;a++)this.be[a].Ea(a<b-1&&this.be[a+1].Gi)};p.prototype.pm=function(){this.sk.length=0;this.bk.length=0;this.Om(this);this.bk.length=0};p.prototype.Om=function(a){var b,c,
d,h,f=a.sk,k=a.bk,g=this.Cn.Sc();b=0;for(c=g.length;b<c;++b)d=g[b],h=d.Fg,!d.Wa||a===h||-1<k.indexOf(h)||(k.push(h),h.Om(a),f.push(h))};p.prototype.Qa=function(a){this.b.Jv||(this.Vk=!0,a||(this.b.fl=!0));var b,c;b=0;for(c=this.be.length;b<c;b++){var d=this.be[b];d.Qa();this.b.lk(d.la);this.b.ee&&this.b.hb()}a||(this.b.fl=!1)};p.prototype.Fn=function(a,b){a.Kc||this.b.Lj.push(a);var c,d,h=a.ib[b],f;f=h.type?h.type.name:"system";var k=(c=h.kn)?this.ln:this.vp;k[f]||(k[f]=[]);f=k[f];k=h.cb;if(c){if(h.K.length&&
(h=h.K[0],1===h.type&&2===h.Xc.type)){h=h.Xc.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==k){c=f[c].vg;c[h]?c[h].push([a,b]):c[h]=[[a,b]];return}c={};c[h]=[[a,b]];f.push({method:k,vg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==k){f[c].vg.push([a,b]);return}gc&&k===gc.prototype.j.gf?f.unshift({method:k,vg:[[a,b]]}):f.push({method:k,vg:[[a,b]]})}};Bb=p;l.prototype.Uk=function(){return this.ga?this.type.c.length:this.c.length};l.prototype.qc=function(){return this.ga?this.type.c:
this.c};l.prototype.rh=function(a){a&&(a.b.nb().Qb.Kc?(this.ga&&(this.c.length=0,xa(this.P,a.type.c),this.ga=!1),a=this.P.indexOf(a),-1!==a&&(this.c.push(this.P[a]),this.P.splice(a,1))):(this.ga=!1,this.c.length=1,this.c[0]=a))};jb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ea=function(a){var b,c=this.parent;if(this.group)for(this.Ij=!0;c;){if(!c.group){this.Ij=!1;break}c=c.parent}this.lm=!this.Nn()&&(!this.parent||this.parent.group&&this.parent.Ij);this.An=!!a;this.ne=
this.la.slice(0);for(c=this.parent;c;){a=0;for(b=c.la.length;a<b;a++)this.Pq(c.la[a]);c=c.parent}this.la=d(this.la);this.ne=d(this.ne);a=0;for(b=this.ib.length;a<b;a++)this.ib[a].Ea();a=0;for(b=this.Cc.length;a<b;a++)this.Cc[a].Ea();a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].Ea(a<b-1&&this.Ac[a+1].Gi)};c.prototype.bp=function(a){if(this.Cg!==!!a){this.Cg=!!a;var b;a=0;for(b=this.Xh.length;a<b;++a)this.Xh[a].Bp();0<b&&this.b.Z.Fe&&this.b.Z.Fe.pm()}};c.prototype.Pm=function(b){a(b,this.la)};c.prototype.Pq=
function(b){a(b,this.ne)};c.prototype.vj=function(){this.lp=!0;this.parent&&this.parent.vj()};c.prototype.Nn=function(){return this.ib.length?this.ib[0].trigger:!1};c.prototype.Qa=function(){var a,b=!1,c,d=this.b,h=this.b.nb();h.Qb=this;var f=this.ib;this.Gi||(h.wk=!1);if(this.Kc){0===f.length&&(b=!0);h.zb=0;for(a=f.length;h.zb<a;h.zb++)f[h.zb].trigger||(c=f[h.zb].Qa())&&(b=!0);(h.Se=b)&&this.Ul()}else{h.zb=0;for(a=f.length;h.zb<a;h.zb++)if(c=f[h.zb].Qa(),!c){h.Se=!1;this.lm&&d.ee&&d.hb();return}h.Se=
!0;this.Ul()}this.Fr(h)};c.prototype.Fr=function(a){a.Se&&this.An&&(a.wk=!0);this.lm&&this.b.ee&&this.b.hb()};c.prototype.Ut=function(a){this.b.nb().Qb=this;this.ib[a].Qa()&&(this.Ul(),this.b.nb().Se=!0)};c.prototype.Ul=function(){var a=this.b.nb(),b;a.Mb=0;for(b=this.Cc.length;a.Mb<b;a.Mb++)if(this.Cc[a.Mb].Qa())return;this.Xo()};c.prototype.St=function(){var a=this.b.nb(),b;for(b=this.Cc.length;a.Mb<b;a.Mb++)if(this.Cc[a.Mb].Qa())return;this.Xo()};c.prototype.Xo=function(){if(this.Ac.length){var a,
b,c,d,h=this.Ac.length-1;this.b.Ol(this);if(this.lp)for(a=0,b=this.Ac.length;a<b;a++)c=this.Ac[a],(d=!this.Ij||!this.group&&a<h)&&this.b.Nl(c.la),c.Qa(),d?this.b.Pf(c.la):this.b.lk(c.la);else for(a=0,b=this.Ac.length;a<b;a++)this.Ac[a].Qa();this.b.Po()}};c.prototype.Vt=function(){var a=this.b.nb();a.Qb=this;var b=!1,c;a.zb=0;for(c=this.ib.length;a.zb<c;a.zb++)if(this.ib[a.zb].Qa())b=!0;else if(!this.Kc)return!1;return this.Kc?b:!0};c.prototype.Ys=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.ib[b].type===a.type)return!1;return!0};Ub=c;b.prototype.Ea=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ea(),c.Bc&&(this.jg=!0)};b.prototype.Xt=function(){return!0};b.prototype.Wl=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();return Ra(this.cb.apply(this.b.fd,this.va),this.tf)};b.prototype.Wt=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();a=this.cb.apply(this.xe?this.xe:this.type,this.va);this.type.md();
return a};b.prototype.Vl=function(){var a,b,c,d,h,f,k,g,l=this.type,r=l.ca(),m=this.cc.Kc&&!this.trigger;b=0;var s=l.Ic,t=l.A,v=l.td,p=this.Ec,B=-1<p,A=this.jg,F=this.K,G=this.va,O=this.tf,E=this.cb,J;if(A)for(b=0,h=F.length;b<h;++b)f=F[b],f.Bc||(G[b]=f.get(0));else for(b=0,h=F.length;b<h;++b)G[b]=F[b].get(0);if(r.ga){r.c.length=0;r.P.length=0;J=l.c;a=0;for(d=J.length;a<d;++a){g=J[a];if(A)for(b=0,h=F.length;b<h;++b)f=F[b],f.Bc&&(G[b]=f.get(a));B?(b=0,t&&(b=g.type.of[v]),b=E.apply(g.F[p+b],G)):b=E.apply(g,
G);(k=Ra(b,O))?r.c.push(g):m&&r.P.push(g)}l.finish&&l.finish(!0);r.ga=!1;l.md();return r.Uk()}c=0;J=(k=m&&!this.cc.Ys(this))?r.P:r.c;var I=!1;a=0;for(d=J.length;a<d;++a){g=J[a];if(A)for(b=0,h=F.length;b<h;++b)f=F[b],f.Bc&&(G[b]=f.get(a));B?(b=0,t&&(b=g.type.of[v]),b=E.apply(g.F[p+b],G)):b=E.apply(g,G);if(Ra(b,O))if(I=!0,k){if(r.c.push(g),s)for(b=0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.ca().c.push(f)}else{J[c]=g;if(s)for(b=0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.ca().c[c]=
f;c++}else if(k){J[c]=g;if(s)for(b=0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.ca().P[c]=f;c++}else if(m&&(r.P.push(g),s))for(b=0,h=g.siblings.length;b<h;b++)f=g.siblings[b],f.type.ca().P.push(f)}J.length=c;if(s)for(t=l.Pb,a=0,d=t.length;a<d;a++)g=t[a].ca(),k?g.P.length=c:g.c.length=c;c=I;if(k&&!I)for(a=0,d=r.c.length;a<d;a++){g=r.c[a];if(A)for(b=0,h=F.length;b<h;b++)f=F[b],f.Bc&&(G[b]=f.get(a));b=B?E.apply(g.F[p],G):E.apply(g,G);if(Ra(b,O)){I=!0;break}}l.finish&&l.finish(c||m);return m?
I:r.Uk()};Pb=b;v.prototype.Ea=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ea(),c.Bc&&(this.jg=!0)};v.prototype.Wl=function(){var a=this.b,b,c,d=this.K,h=this.va;b=0;for(c=d.length;b<c;++b)h[b]=d[b].get();return this.cb.apply(a.fd,h)};v.prototype.Vl=function(){var a=this.type,b=this.Ec,c=a.td,d=this.jg,h=this.K,f=this.va,k=this.cb,g=a.ca().qc(),a=a.A,l=-1<b,r,m,s,t,v,p;if(d)for(m=0,t=h.length;m<t;++m)v=h[m],v.Bc||(f[m]=v.get(0));else for(m=0,t=h.length;m<t;++m)f[m]=h[m].get(0);
r=0;for(s=g.length;r<s;++r){p=g[r];if(d)for(m=0,t=h.length;m<t;++m)v=h[m],v.Bc&&(f[m]=v.get(r));l?(m=0,a&&(m=p.type.of[c]),k.apply(p.F[b+m],f)):k.apply(p,f)}return!1};Qb=v;var B=[],A=-1;f.prototype.Ea=function(){var a,b;if(11===this.type)this.Ge=this.b.tn(this.Jh,this.cc.parent);else if(13===this.type)for(a=0,b=this.cf.length;a<b;a++)this.cf[a].Ea();this.Xc&&this.Xc.Ea()};f.prototype.kt=function(a){this.Bc||!a||a.Da.wj||(this.Bc=!0)};f.prototype.dp=function(){this.Bc=!0};f.prototype.Ds=function(a){this.Kd=
a||0;a=s();this.Xc.get(a);A--;return a.data};f.prototype.Es=function(a){this.Kd=a||0;a=s();this.Xc.get(a);A--;return R(a.data)?a.data:""};f.prototype.Ks=function(){return this.object};f.prototype.Bs=function(){return this.an};f.prototype.Is=function(a){this.Kd=a||0;a=s();this.Xc.get(a);A--;return a.Ma()?this.b.vd(a.data):this.b.yg(a.data)};f.prototype.Js=function(){return this.Ya};f.prototype.Hs=function(){return this.key};f.prototype.Gs=function(){return this.index};f.prototype.Fs=function(a){a=
a||0;var b=this.ja.type,c=null,c=b.ca(),d=c.qc();if(d.length)c=d[a%d.length].type;else if(c.P.length)c=c.P[a%c.P.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.ji[b.td]};f.prototype.Cs=function(){return this.Ge};f.prototype.As=function(){return this.mn};f.prototype.Ls=function(){var a,b;a=0;for(b=this.cf.length;a<b;a++)this.Ih[a]=this.cf[a].get();return this.Ih};Rb=f;k.prototype.Ea=function(){this.la=d(this.la)};k.prototype.bf=function(a){var b=this.b.sn();
this.parent&&!this.Ng&&b?(this.We>=b.length&&(b.length=this.We+1),b[this.We]=a):this.data=a};k.prototype.Ag=function(){var a=this.b.sn();return!this.parent||this.Ng||!a||this.Fi?this.data:this.We>=a.length||"undefined"===typeof a[this.We]?this.Bi:a[this.We]};k.prototype.Qa=function(){!this.parent||this.Ng||this.Fi||this.bf(this.Bi)};Lb=k;t.prototype.toString=function(){return"include:"+this.Fg.toString()};t.prototype.Ea=function(){this.Fg=this.b.yk[this.Rs];this.sheet.Cn.add(this);this.la=d(this.la);
for(var a=this.parent;a;)a.group&&a.Xh.push(this),a=a.parent;this.Bp()};t.prototype.Qa=function(){this.parent&&this.b.th(this.b.m);this.Fg.Vk||this.Fg.Qa(!0);this.parent&&this.b.Pf(this.b.m)};t.prototype.Bp=function(){for(var a=this.parent;a;){if(a.group&&!a.Cg){this.Wa=!1;return}a=a.parent}this.Wa=!0};Vb=t;h.prototype.reset=function(a){this.Qb=a;this.Mb=this.zb=0;this.op.length=0;this.wk=this.Se=!1};Kb=h})();
(function(){function g(a,b){this.ja=a;this.b=a.b;this.type=b[0];this.get=[this.Sr,this.Or,this.as,this.ds,this.Hr,this.bs,this.Wr,this.Lr,this.Vr,this.$r,this.Ir,this.Zr,this.Mr,this.Xr,this.Tr,this.Ur,this.Pr,this.Qr,this.Kr,this.cs,this.Yr,this.Rr,this.Jr,this.Nr][this.type];var c=null;this.Dd=this.K=this.va=this.cb=this.Hj=this.ab=this.first=this.value=null;this.Ec=-1;this.fe=null;this.Gp=-1;this.Ge=this.Jh=null;this.Rf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.ab=new Tb(a,b[2]);this.Hj=new Tb(a,b[3]);break;case 19:this.cb=this.b.Qd(b[1]);this.cb!==Y.prototype.Ab.random&&this.cb!==Y.prototype.Ab.$q||this.ja.dp();this.va=[];this.K=[];3===b.length?(c=b[2],this.va.length=c.length+1):this.va.length=1;break;case 20:this.Dd=this.b.m[b[1]];this.Ec=-1;this.cb=this.b.Qd(b[2]);this.Rf=b[3];Xb.Function&&this.cb===Xb.Function.prototype.Ab.yu&&this.ja.dp();this.fe=b[4]?new Tb(a,b[4]):null;this.va=[];this.K=
[];6===b.length?(c=b[5],this.va.length=c.length+1):this.va.length=1;break;case 21:this.Dd=this.b.m[b[1]];this.Rf=b[2];this.fe=b[3]?new Tb(a,b[3]):null;this.Gp=b[4];break;case 22:this.Dd=this.b.m[b[1]];this.Dd.pi(b[2]);this.Ec=this.Dd.Jk(b[2]);this.cb=this.b.Qd(b[3]);this.Rf=b[4];this.fe=b[5]?new Tb(a,b[5]):null;this.va=[];this.K=[];7===b.length?(c=b[6],this.va.length=c.length+1):this.va.length=1;break;case 23:this.Jh=b[1],this.Ge=null}this.ja.kt(this.Dd);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.ab=new Tb(a,b[2]));if(c){var d,f;d=0;for(f=c.length;d<f;d++)this.K.push(new Tb(a,c[d]))}}function m(){++c;l.length===c&&l.push(new Sb);return l[c]}function d(a,b,c){var d,f;d=0;for(f=a.length;d<f;++d)a[d].get(c),b[d+1]=c.data}function p(a,b){this.type=a||W.ff;this.data=b||0;this.Xe=null;this.type==W.ff&&(this.data=Math.floor(this.data))}g.prototype.Ea=function(){23===this.type&&(this.Ge=this.ja.b.tn(this.Jh,this.ja.cc.parent));this.first&&this.first.Ea();this.ab&&this.ab.Ea();this.Hj&&
this.Hj.Ea();this.fe&&this.fe.Ea();if(this.K){var a,b;a=0;for(b=this.K.length;a<b;a++)this.K[a].Ea()}};var l=[],c=-1;g.prototype.cs=function(a){var b=this.K,g=this.va;g[0]=a;a=m();d(b,g,a);--c;this.cb.apply(this.b.fd,g)};g.prototype.Yr=function(a){var b=this.Dd,g=this.va,l=this.K,f=this.fe,k=this.cb,t=this.ja.Kd,h=b.ca(),r=h.qc();if(!r.length)if(h.P.length)r=h.P;else{this.Rf?a.Yb(""):a.da(0);return}g[0]=a;a.Xe=b;a=m();d(l,g,a);f&&(f.get(a),a.Ma()&&(t=a.data,r=b.c));--c;b=r.length;if(t>=b||t<=-b)t%=
b;0>t&&(t+=b);k.apply(r[t],g)};g.prototype.Jr=function(a){var b=this.Dd,g=this.va,l=this.K,f=this.fe,k=this.Ec,t=this.cb,h=this.ja.Kd,r=b.ca(),p=r.qc();if(!p.length)if(r.P.length)p=r.P;else{this.Rf?a.Yb(""):a.da(0);return}g[0]=a;a.Xe=b;a=m();d(l,g,a);f&&(f.get(a),a.Ma()&&(h=a.data,p=b.c));--c;l=p.length;if(h>=l||h<=-l)h%=l;0>h&&(h+=l);h=p[h];p=0;b.A&&(p=h.type.of[b.td]);t.apply(h.F[k+p],g)};g.prototype.Rr=function(a){var b=this.fe,d=this.Dd,g=this.Gp,f=this.ja.Kd,k=d.ca(),l=k.qc();if(!l.length)if(k.P.length)l=
k.P;else{this.Rf?a.Yb(""):a.da(0);return}if(b){k=m();b.get(k);if(k.Ma()){f=k.data;d=d.c;f%=d.length;0>f&&(f+=d.length);g=d[f].La[g];R(g)?a.Yb(g):a.q(g);--c;return}--c}b=l.length;if(f>=b||f<=-b)f%=b;0>f&&(f+=b);f=l[f];l=0;d.A&&(l=f.type.ji[d.td]);g=f.La[g+l];R(g)?a.Yb(g):a.q(g)};g.prototype.Sr=function(a){a.type=W.ff;a.data=this.value};g.prototype.Or=function(a){a.type=W.ef;a.data=this.value};g.prototype.as=function(a){a.type=W.String;a.data=this.value};g.prototype.ds=function(a){this.first.get(a);
a.Ma()&&(a.data=-a.data)};g.prototype.Hr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()&&b.Ma()&&(a.data+=b.data,b.yf()&&a.Hf());--c};g.prototype.bs=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()&&b.Ma()&&(a.data-=b.data,b.yf()&&a.Hf());--c};g.prototype.Wr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()&&b.Ma()&&(a.data*=b.data,b.yf()&&a.Hf());--c};g.prototype.Lr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()&&b.Ma()&&(a.data/=b.data,a.Hf());
--c};g.prototype.Vr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()&&b.Ma()&&(a.data%=b.data,b.yf()&&a.Hf());--c};g.prototype.$r=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()&&b.Ma()&&(a.data=Math.pow(a.data,b.data),b.yf()&&a.Hf());--c};g.prototype.Ir=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()?b.Hi()?a.Yb(a.data.toString()+b.data):a.data&&b.data?a.da(1):a.da(0):a.Hi()&&(a.data=b.Hi()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};
g.prototype.Zr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.Ma()&&b.Ma()&&(a.data||b.data?a.da(1):a.da(0));--c};g.prototype.Kr=function(a){this.first.get(a);a.data?this.ab.get(a):this.Hj.get(a)};g.prototype.Mr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.da(a.data===b.data?1:0);--c};g.prototype.Xr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.da(a.data!==b.data?1:0);--c};g.prototype.Tr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.da(a.data<b.data?1:0);
--c};g.prototype.Ur=function(a){this.first.get(a);var b=m();this.ab.get(b);a.da(a.data<=b.data?1:0);--c};g.prototype.Pr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.da(a.data>b.data?1:0);--c};g.prototype.Qr=function(a){this.first.get(a);var b=m();this.ab.get(b);a.da(a.data>=b.data?1:0);--c};g.prototype.Nr=function(a){var b=this.Ge.Ag();P(b)?a.q(b):a.Yb(b)};Tb=g;p.prototype.yf=function(){return this.type===W.ef};p.prototype.Ma=function(){return this.type===W.ff||this.type===W.ef};p.prototype.Hi=
function(){return this.type===W.String};p.prototype.Hf=function(){this.yf()||(this.Hi()&&(this.data=parseFloat(this.data)),this.type=W.ef)};p.prototype.da=function(a){this.type=W.ff;this.data=Math.floor(a)};p.prototype.q=function(a){this.type=W.ef;this.data=a};p.prototype.Yb=function(a){this.type=W.String;this.data=a};p.prototype.du=function(a){P(a)?(this.type=W.ef,this.data=a):R(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.ff,this.data=0)};Sb=p;W={ff:0,ef:1,String:2}})();
function Y(g){this.b=g;this.Lb=[]}Y.prototype.Ib=function(){var g={},m,d,p,l,c,a,b,v;g.waits=[];var s=g.waits,f;m=0;for(d=this.Lb.length;m<d;m++){a=this.Lb[m];f={t:a.time,st:a.kp,s:a.am,ev:a.nf.O,sm:[],sols:{}};a.nf.Cc[a.Mb]&&(f.act=a.nf.Cc[a.Mb].O);p=0;for(l=a.la.length;p<l;p++)f.sm.push(a.la[p].O);for(c in a.sb)if(a.sb.hasOwnProperty(c)){b=this.b.m[parseInt(c,10)];v={sa:a.sb[c].sj,insts:[]};p=0;for(l=a.sb[c].wd.length;p<l;p++)v.insts.push(a.sb[c].wd[p].uid);f.sols[b.O.toString()]=v}s.push(f)}return g};
Y.prototype.jc=function(g){g=g.waits;var m,d,p,l,c,a,b,v,s,f,k;m=this.Lb.length=0;for(d=g.length;m<d;m++)if(a=g[m],v=this.b.Um[a.ev.toString()]){s=-1;p=0;for(l=v.Cc.length;p<l;p++)if(v.Cc[p].O===a.act){s=p;break}if(-1!==s){b={sb:{},la:[],tk:!1};b.time=a.t;b.kp=a.st||"";b.am=!!a.s;b.nf=v;b.Mb=s;p=0;for(l=a.sm.length;p<l;p++)(v=this.b.vi(a.sm[p]))&&b.la.push(v);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(v=this.b.vi(parseInt(c,10)))){s=a.sols[c];f={sj:s.sa,wd:[]};p=0;for(l=s.insts.length;p<l;p++)(k=
this.b.ti(s.insts[p]))&&f.wd.push(k);b.sb[v.index.toString()]=f}this.Lb.push(b)}}};
(function(){function g(){}function m(){}function d(){}var p=Y.prototype;g.prototype.Dm=function(){return!0};g.prototype.uq=function(){return!0};g.prototype.Iq=function(){var a=this.b.qi().ua;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.ag;a.TriggerOnce_lastTick=c;return this.b.ml||b!==c-1};g.prototype.Np=function(a,b,c){return Wb(a.Ag(),b,c)};g.prototype.Op=function(){var a=this.b.nb();return a.wk?!1:!a.Se};g.prototype.Em=function(){return!0};
g.prototype.hq=function(){return!0};g.prototype.Wj=function(){return!0};g.prototype.vq=function(){return!0};g.prototype.Uj=function(){return!0};g.prototype.Jp=function(a,b,c){return Ia(V(a),V(c))<=V(b)};g.prototype.Sp=function(a,b){return Ka(V(a),V(b))};g.prototype.Qp=function(a,b,c){a=Fa(a);b=Fa(b);c=Fa(c);return Ka(c,b)?Ka(a,b)&&!Ka(a,c):!(!Ka(a,b)&&Ka(a,c))};p.j=new g;m.prototype.aq=function(a){if(!this.b.Bf&&!this.b.ye){var b=this.b.Ub.indexOf(this.b.Z);if(!a||0!==b)if(a||b!==this.b.Ub.length-
1)this.b.ye=this.b.Ub[b+(a?-1:1)]}};m.prototype.Gq=function(a,b){0===a.Pj?P(b)?a.bf(b):a.bf(parseFloat(b)):1===a.Pj&&a.bf(b.toString())};m.prototype.Ip=function(a,b){0===a.Pj?P(b)?a.bf(a.Ag()+b):a.bf(a.Ag()+parseFloat(b)):1===a.Pj&&a.bf(a.Ag()+b.toString())};var l=[],c=[];m.prototype.Jq=function(a){if(!(0>a)){var b,d,g,f=this.b.nb(),k;k=l.length?l.pop():{sb:{},la:[]};k.tk=!1;k.time=this.b.hc.aa+a;k.kp="";k.am=!1;k.nf=f.Qb;k.Mb=f.Mb+1;a=0;for(b=this.b.m.length;a<b;a++)g=this.b.m[a],d=g.ca(),d.ga&&
-1===f.Qb.la.indexOf(g)||(k.la.push(g),g=void 0,g=c.length?c.pop():{wd:[]},g.sj=!1,g.sj=d.ga,xa(g.wd,d.c),k.sb[a.toString()]=g);this.Lb.push(k);return!0}};m.prototype.Aq=function(){var a,b,c;a=0;for(b=this.b.Zj.length;a<b;a++)c=this.b.Zj[a],c.data=c.Bi};m.prototype.Bq=function(){if(!this.b.Bf&&!this.b.ye&&this.b.Z){this.b.ye=this.b.Z;var a,b,c;a=0;for(b=this.b.Td.length;a<b;a++)c=this.b.Td[a],c.bp(c.Ci)}};m.prototype.Cq=function(a){this.b.tj=a};m.prototype.$p=function(a){this.b.Vg=a};p.ka=new m;d.prototype["int"]=
function(a,b){R(b)?(a.da(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.da(b)};d.prototype["float"]=function(a,b){R(b)?(a.q(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.q(b)};d.prototype.random=function(a,b,c){void 0===c?a.q(Math.random()*b):a.q(Math.random()*(c-b)+b)};d.prototype.sqrt=function(a,b){a.q(Math.sqrt(b))};d.prototype.abs=function(a,b){a.q(Math.abs(b))};d.prototype.round=function(a,b){a.da(Math.round(b))};d.prototype.floor=function(a,b){a.da(Math.floor(b))};d.prototype.ceil=function(a,b){a.da(Math.ceil(b))};
d.prototype.sin=function(a,b){a.q(Math.sin(V(b)))};d.prototype.cos=function(a,b){a.q(Math.cos(V(b)))};d.prototype.tan=function(a,b){a.q(Math.tan(V(b)))};d.prototype.asin=function(a,b){a.q(Ba(Math.asin(b)))};d.prototype.acos=function(a,b){a.q(Ba(Math.acos(b)))};d.prototype.atan=function(a,b){a.q(Ba(Math.atan(b)))};d.prototype.exp=function(a,b){a.q(Math.exp(b))};d.prototype.log10=function(a,b){a.q(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,
d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b<f&&(b=f);a.q(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b>f&&(b=f);a.q(b)};d.prototype.Ee=function(a){a.q(this.b.Ee)};d.prototype.bg=function(a){a.q(this.b.bg)};d.prototype.time=function(a){a.q(this.b.hc.aa)};d.prototype.ag=function(a){a.da(this.b.ag)};d.prototype.Yi=function(a){a.da(this.b.Yi)};d.prototype.Fk=
function(a){a.da(this.b.Fk)};d.prototype.i=function(a,b,c,d,f){a.q(Ba(Ga(b,c,d,f)))};d.prototype.find=function(a,b,c){R(b)&&R(c)?a.da(b.search(new RegExp(Za(c),"i"))):a.da(-1)};d.prototype.left=function(a,b,c){a.Yb(R(b)?b.substr(0,c):"")};d.prototype.right=function(a,b,c){a.Yb(R(b)?b.substr(b.length-c):"")};d.prototype.replace=function(a,b,c,d){R(b)&&R(c)&&R(d)?a.Yb(b.replace(new RegExp(Za(c),"gi"),d)):a.Yb(R(b)?b:"")};d.prototype.trim=function(a,b){a.Yb(R(b)?b.trim():"")};d.prototype.$q=function(a){var b=
T(Math.random()*(arguments.length-1));a.du(arguments[b+1])};d.prototype.nk=function(a){a.q(this.b.nk/1E3)};d.prototype.Si=function(a){a.q(this.b.Si)};p.Ab=new d;p.Tt=function(){var a,b,d,g,f,k,m=this.b.nb();a=0;for(d=this.Lb.length;a<d;a++){g=this.Lb[a];if(-1===g.time){if(!g.am)continue}else if(g.time>this.b.hc.aa)continue;m.Qb=g.nf;m.Mb=g.Mb;m.zb=0;for(b in g.sb)g.sb.hasOwnProperty(b)&&(f=this.b.m[parseInt(b,10)].ca(),k=g.sb[b],f.ga=k.sj,xa(f.c,k.wd),f=k,f.wd.length=0,c.push(f));g.nf.St();this.b.lk(g.la);
g.tk=!0}b=a=0;for(d=this.Lb.length;a<d;a++)g=this.Lb[a],this.Lb[b]=g,g.tk?(Ta(g.sb),g.la.length=0,l.push(g)):b++;this.Lb.length=b}})();
(function(){ib=function(g,d){var p=g[1],l=g[3],c=g[4],a=g[5],b=g[6],v=g[7],s=g[8];d.j||(d.j={});d.ka||(d.ka={});d.Ab||(d.Ab={});var f=d.j,k=d.ka,t=d.Ab;l&&(f.Du=function(a,b){return Wb(this.x,a,b)},f.Eu=function(a,b){return Wb(this.y,a,b)},f.Lu=function(){var a=this.d;this.ma();var b=this.za;return!(b.right<a.xa||b.bottom<a.ya||b.left>a.Ja||b.top>a.Ia)},f.Mu=function(){this.ma();var a=this.za,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},f.Xu=function(a,b,c){var d=this.ca(),
f=d.qc();if(!f.length)return!1;var e=f[0],g=e,k=Qa(e.x,e.y,b,c),l,m,t;l=1;for(m=f.length;l<m;l++)if(e=f[l],t=Qa(e.x,e.y,b,c),0===a&&t<k||1===a&&t>k)k=t,g=e;d.rh(g);return!0},k.qv=function(a){this.x!==a&&(this.x=a,this.wa())},k.rv=function(a){this.y!==a&&(this.y=a,this.wa())},k.Fq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.wa()},k.mv=function(a,b){var c=a.vs(this);if(c){var d;c.Mk?(d=c.Mk(b,!0),c=c.Mk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.wa()}},
k.Qu=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.wa())},k.Pu=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.wa())},t.Jm=function(a){a.q(this.x)},t.Km=function(a){a.q(this.y)},t.Ee=function(a){a.q(this.b.ri(this))});c&&(f.Cu=function(a,b){return Wb(this.width,a,b)},f.zu=function(a,b){return Wb(this.height,a,b)},k.pv=function(a){this.width!==a&&(this.width=a,this.wa())},k.kv=function(a){this.height!==a&&(this.height=a,this.wa())},k.nv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.wa()},t.vv=function(a){a.q(this.width)},t.Hu=function(a){a.q(this.height)},t.vu=function(a){this.ma();a.q(this.za.left)},t.xu=function(a){this.ma();a.q(this.za.top)},t.wu=function(a){this.ma();a.q(this.za.right)},t.uu=function(a){this.ma();a.q(this.za.bottom)});a&&(f.Jp=function(a,b){return Ia(this.i,V(b))<=V(a)},f.Sp=function(a){return Ka(this.i,V(a))},f.Qp=function(a,b){var c=Fa(a),d=Fa(b),f=Da(this.i);return Ka(d,
c)?Ka(f,c)&&!Ka(f,d):!(!Ka(f,c)&&Ka(f,d))},k.gv=function(a){a=V(Ca(a));isNaN(a)||this.i===a||(this.i=a,this.wa())},k.av=function(a){0===a||isNaN(a)||(this.i+=V(a),this.i=Da(this.i),this.wa())},k.bv=function(a){0===a||isNaN(a)||(this.i-=V(a),this.i=Da(this.i),this.wa())},k.cv=function(a,b){var c=Ja(this.i,V(b),V(a));isNaN(c)||this.i===c||(this.i=c,this.wa())},k.dv=function(a,b,c){a=Ja(this.i,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.i===a||(this.i=a,this.wa())},k.ov=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.wa())},t.tu=function(a){a.q(Ea(this.i))});p||(f.Au=function(a,b,c){return Wb(this.La[a],b,c)},f.Ju=function(a){return this.La[a]},f.Yu=function(a,b){var c=this.ca(),d=c.qc();if(!d.length)return!1;var f=d[0],e=f,g=f.La[b],k,l,m;k=1;for(l=d.length;k<l;k++)if(f=d[k],m=f.La[b],0===a&&m<g||1===a&&m>g)g=m,e=f;c.rh(e);return!0},f.Wu=function(a){var b,c,d,f,e;if(this.b.qi().tf){e=this.ca();if(e.ga)for(e.ga=!1,e.c.length=0,e.P.length=0,d=this.c,b=0,c=d.length;b<
c;b++)f=d[b],f.uid===a?e.P.push(f):e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.P.push(f):d++;e.c.length=d}this.md();return!!e.c.length}f=this.b.ti(a);if(!f)return!1;e=this.ca();if(!e.ga&&-1===e.c.indexOf(f))return!1;if(this.A)for(a=f.type.pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.rh(f),this.md(),!0}else if(f.type===this)return e.rh(f),this.md(),!0;return!1},f.iq=function(){return!0},f.jq=function(){return!0},k.lv=function(a,b){var c=this.La;P(c[a])?c[a]=
P(b)?b:parseFloat(b):R(c[a])&&(c[a]=R(b)?b:b.toString())},k.su=function(a,b){var c=this.La;P(c[a])?c[a]=P(b)?c[a]+b:c[a]+parseFloat(b):R(c[a])&&(c[a]=R(b)?c[a]+b:c[a]+b.toString())},k.sv=function(a,b){var c=this.La;P(c[a])&&(c[a]=P(b)?c[a]-b:c[a]-parseFloat(b))},k.hv=function(a,b){this.La[a]=b?1:0},k.tv=function(a){this.La[a]=1-this.La[a]},k.Gu=function(){this.b.Pd(this)},k.Zp||(k.Zp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Pi(this,b,!0);this.kd&&this.kd();if(this.F)for(a=0,
b=this.F.length;a<b;++a)c=this.F[a],c.kd&&c.kd()}),t.Fu=function(a){var b=a.Xe.c.length,c,d,f;c=0;for(d=this.b.Fc.length;c<d;c++)f=this.b.Fc[c],a.Xe.A?0<=f.type.pa.indexOf(a.Xe)&&b++:f.type===a.Xe&&b++;a.da(b)},t.$u=function(a){a.da(a.Xe.ca().qc().length)},t.uv=function(a){a.da(this.uid)},t.Iu=function(a){a.da(this.Bg())},t.Kp||(t.Kp=function(a){a.Yb(JSON.stringify(this.b.Xl(this,!0)))}));b&&(f.Xp=function(){return this.visible},k.Hq=function(a){!a!==!this.visible&&(this.visible=a,this.b.Y=!0)},f.Bu=
function(a,b){return Wb(eb(100*this.opacity),a,b)},k.Eq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Y=!0)},t.Opacity=function(a){a.q(eb(100*this.opacity))});v&&(f.Ku=function(a){return a?this.d===a:!1},f.Zu=function(a){var b=this.ca(),c=b.qc();if(!c.length)return!1;var d=c[0],f=d,e,g;e=1;for(g=c.length;e<g;e++)if(d=c[e],0===a){if(d.d.index>f.d.index||d.d.index===f.d.index&&d.tc()>f.tc())f=d}else if(d.d.index<f.d.index||d.d.index===f.d.index&&d.tc()<f.tc())f=d;b.rh(f);
return!0},k.Tu=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Qf(this,!1),a.lg(this,!1),this.b.Y=!0)},k.Ru=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Qf(this,!1),a.Kt(this),this.b.Y=!0)},k.Su=function(a){a&&a!=this.d&&(this.d.Qf(this,!0),this.d=a,a.lg(this,!0),this.b.Y=!0)},k.xv=function(a,b){var c=0===a;if(b){var d=b.qs(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Qf(this,!0),this.d=d.d,d.d.lg(this,!0)),this.d.mt(this,d,c),this.b.Y=!0)}},t.Ou=function(a){a.da(this.d.xo)},
t.Nu=function(a){a.Yb(this.d.name)},t.wv=function(a){a.da(this.tc())});s&&(k.iv=function(a,b){if(this.b.n){var c=this.type.Lk(b);if(!(0>c)){var d=1===a;this.Rd[c]!==d&&(this.Rd[c]=d,this.Nd(),this.b.Y=!0)}}},k.jv=function(a,b,c){if(this.b.n){var d=this.type.Lk(a);0>d||(a=this.type.G[d],d=this.ta[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.zs(a.gb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Wa&&(this.b.Y=!0))))}})};Cb=function(){this.gk=this.Rh=!0;this.type.Lh=!0;this.b.Y=!0;var g,d,p=this.ek;g=0;for(d=
p.length;g<d;++g)p[g](this);this.d.Rc&&this.ma()};Db=function(g){g&&this.ek.push(g)};Fb=function(){if(this.Rh){var g=this.za,d=this.Ob;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Cb*this.width,-this.Db*this.height);this.i?(g.offset(-this.x,-this.y),d.fp(g,this.i),d.offset(this.x,this.y),d.Vm(g)):d.Vf(g);g.normalize();this.Rh=!1;this.ou()}};var g=new U(0,0,0,0);Gb=function(){if(this.d.Rc){var m=this.d.Wb,d=this.za;g.set(m.$b(d.left),m.ac(d.top),m.$b(d.right),m.ac(d.bottom));
this.Gb.gi(g)||(this.Gb.right<this.Gb.left?m.update(this,null,g):m.update(this,this.Gb,g),this.Gb.rg(g),this.d.Hd=!0)}};Hb=function(){if(this.gk&&this.ze){this.ma();var m=this.type.Wh,d=this.za;g.set(m.$b(d.left),m.ac(d.top),m.$b(d.right),m.ac(d.bottom));this.Xd.gi(g)||(this.Xd.right<this.Xd.left?m.update(this,null,g):m.update(this,this.Xd,g),this.Xd.rg(g),this.gk=!1)}};Eb=function(g,d){return this.za.bb(g,d)&&this.Ob.bb(g,d)?this.V&&!this.V.xf()?(this.V.kf(this.width,this.height,this.i),this.V.bb(g-
this.x,d-this.y)):!0:!1};yb=function(){this.type.Nj();return this.Le};Ib=function(){this.d.tm();return this.Tc};Jb=function(){this.U.length=0;var g,d;g=0;for(d=this.Rd.length;g<d;g++)this.Rd[g]&&this.U.push(this.type.G[g]);this.Fp=!!this.U.length};zb=function(){return"Inst"+this.To};lb=function(g){if(g&&g.Ic&&g.type!=this){var d,p,l;d=0;for(p=g.siblings.length;d<p;d++)if(l=g.siblings[d],l.type==this)return l}g=this.ca().qc();return g.length?g[0]:null};mb=function(g){var d=this.ca().qc();return d.length?
d[g.Bg()%d.length]:null};kb=function(){if(this.Zf&&!this.A){var g,d;g=0;for(d=this.c.length;g<d;g++)this.c[g].Le=g;var p=g,l=this.b.Fc;g=0;for(d=l.length;g<d;++g)l[g].type===this&&(l[g].Le=p++);this.Zf=!1}};wb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var d=this.b.Fc,p,l;p=0;for(l=d.length;p<l;++p)if(d[p].type===this){if(0===g)return d[p];--g}return null};nb=function(){return this.oe[this.rd]};ob=function(){this.rd++;this.rd===this.oe.length?this.oe.push(new jb(this)):this.oe[this.rd].ga=
!0};pb=function(){this.rd++;this.rd===this.oe.length&&this.oe.push(new jb(this));var g=this.oe[this.rd],d=this.oe[this.rd-1];d.ga?g.ga=!0:(g.ga=!1,xa(g.c,d.c),xa(g.P,d.P))};qb=function(){this.rd--};sb=function(g){var d,p,l,c,a,b=0;if(!this.A)for(d=0,p=this.pa.length;d<p;d++)for(a=this.pa[d],l=0,c=a.Ga.length;l<c;l++){if(g===a.Ga[l].name)return this.ua.lastBehIndex=b,a.Ga[l];b++}d=0;for(p=this.Ga.length;d<p;d++){if(g===this.Ga[d].name)return this.ua.lastBehIndex=b,this.Ga[d];b++}return null};tb=function(g){return this.pi(g)?
this.ua.lastBehIndex:-1};ub=function(g){var d,p;d=0;for(p=this.G.length;d<p;d++)if(this.G[d].name===g)return d;return-1};vb=function(){if(this.Ic&&!this.A){var g,d,p,l,c,a,b;this.Nj();a=this.ca();var v=a.ga,s=(g=this.b.nb())&&g.Qb&&g.Qb.Kc;g=0;for(d=this.Pb.length;g<d;g++)if(c=this.Pb[g],c!==this&&(c.Nj(),b=c.ca(),b.ga=v,!v)){b.c.length=a.c.length;p=0;for(l=a.c.length;p<l;p++)b.c[p]=c.un(a.c[p].Le);if(s)for(b.P.length=a.P.length,p=0,l=a.P.length;p<l;p++)b.P[p]=c.un(a.P[p].Le)}}};xb=function(){return"Type"+
this.O};Wb=function(g,d,p){if("undefined"===typeof g||"undefined"===typeof p)return!1;switch(d){case 0:return g===p;case 1:return g!==p;case 2:return g<p;case 3:return g<=p;case 4:return g>p;case 5:return g>=p;default:return!1}}})();var ec={};function hc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].ec():y.destination}function d(){return y.createGain?y.createGain():y.createGainNode()}function p(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,e,f,h){this.type="filter";this.Lc=[a,b,c,e,f,h];this.R=d();this.D=d();this.D.gain.value=h;this.B=d();this.B.gain.value=1-h;this.Ha=y.createBiquadFilter();this.Ha.type="number"===typeof this.Ha.type?a:pc[a];this.Ha.frequency.value=b;this.Ha.detune&&(this.Ha.detune.value=c);this.Ha.Q.value=e;this.Ha.gain.value=f;this.R.connect(this.Ha);this.R.connect(this.B);this.Ha.connect(this.D)}function v(a,b,c){this.type="delay";this.Lc=[a,b,c];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=
1-c;this.eh=d();this.oc=p(a);this.oc.delayTime.value=a;this.ei=d();this.ei.gain.value=b;this.R.connect(this.eh);this.R.connect(this.B);this.eh.connect(this.D);this.eh.connect(this.oc);this.oc.connect(this.ei);this.ei.connect(this.eh)}function s(a,b,c,e){this.type="convolve";this.Lc=[b,c,e];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=1-c;this.Ae=y.createConvolver();a&&(this.Ae.normalize=b,this.Ae.buffer=a);this.R.connect(this.Ae);this.R.connect(this.B);this.Ae.connect(this.D)}
function f(a,b,c,e,f){this.type="flanger";this.Lc=[a,b,c,e,f];this.R=d();this.B=d();this.B.gain.value=1-f/2;this.D=d();this.D.gain.value=f/2;this.ki=d();this.ki.gain.value=e;this.oc=p(a+b);this.oc.delayTime.value=a;this.$a=y.createOscillator();this.$a.frequency.value=c;this.Vb=d();this.Vb.gain.value=b;this.R.connect(this.oc);this.R.connect(this.B);this.oc.connect(this.D);this.oc.connect(this.ki);this.ki.connect(this.oc);this.$a.connect(this.Vb);this.Vb.connect(this.oc.delayTime);l(this.$a)}function k(a,
b,c,e,f,h){this.type="phaser";this.Lc=[a,b,c,e,f,h];this.R=d();this.B=d();this.B.gain.value=1-h/2;this.D=d();this.D.gain.value=h/2;this.Ha=y.createBiquadFilter();this.Ha.type="number"===typeof this.Ha.type?7:"allpass";this.Ha.frequency.value=a;this.Ha.detune&&(this.Ha.detune.value=b);this.Ha.Q.value=c;this.$a=y.createOscillator();this.$a.frequency.value=f;this.Vb=d();this.Vb.gain.value=e;this.R.connect(this.Ha);this.R.connect(this.B);this.Ha.connect(this.D);this.$a.connect(this.Vb);this.Vb.connect(this.Ha.frequency);
l(this.$a)}function t(a){this.type="gain";this.Lc=[a];this.T=d();this.T.gain.value=a}function h(a,b){this.type="tremolo";this.Lc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.$a=y.createOscillator();this.$a.frequency.value=a;this.Vb=d();this.Vb.gain.value=b/2;this.$a.connect(this.Vb);this.Vb.connect(this.T.gain);l(this.$a)}function r(a,b){this.type="ringmod";this.Lc=[a,b];this.R=d();this.D=d();this.D.gain.value=b;this.B=d();this.B.gain.value=1-b;this.wh=d();this.wh.gain.value=0;this.$a=y.createOscillator();
this.$a.frequency.value=a;this.$a.connect(this.wh.gain);l(this.$a);this.R.connect(this.wh);this.R.connect(this.B);this.wh.connect(this.D)}function B(a,b,c,e,f){this.type="distortion";this.Lc=[a,b,c,e,f];this.R=d();this.mj=d();this.lj=d();this.$t(c,Math.pow(10,e/20));this.D=d();this.D.gain.value=f;this.B=d();this.B.gain.value=1-f;this.Qj=y.createWaveShaper();this.ci=new Float32Array(65536);this.ms(a,b);this.Qj.ci=this.ci;this.R.connect(this.mj);this.R.connect(this.B);this.mj.connect(this.Qj);this.Qj.connect(this.lj);
this.lj.connect(this.D)}function A(a,b,c,e,d){this.type="compressor";this.Lc=[a,b,c,e,d];this.T=y.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=e,this.T.release.value=d}catch(f){}}function n(a,b){this.type="analyser";this.Lc=[a,b];this.T=y.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.ks=new Float32Array(this.T.frequencyBinCount);this.ip=new Uint8Array(a);this.qh=0}function e(){this.C=null;this.Ri=0;this.pe=
[];this.yl=this.Ki=this.Ji=0}function u(a,b){this.src=a;this.I=H;this.Jc=b;this.Qm=!1;var c=this;this.wl=this.Il=null;this.Nf=[];this.uj=0;this.zm=this.Bk=this.np=this.ij=!1;1===H&&b&&(this.I=0,this.Il=d());this.we=this.W=null;var e;switch(this.I){case 0:this.W=new Audio;this.W.addEventListener("canplaythrough",function(){c.zm=!0});1===H&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.np=!0,this.W.addEventListener("canplay",function(){c.wl||(c.wl=y.createMediaElementSource(c.W),
c.wl.connect(c.Il))}));this.W.autoplay=!1;this.W.Gv="auto";this.W.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.we=e.response;c.fr()};e.onerror=function(){c.Bk=!0};e.send();break;case 2:this.W=!0;break;case 3:this.W=!0}}function q(a,b){var c=this;this.tag=b;this.Zb=this.Yc=!0;this.src=a.src;this.buffer=a;this.I=H;this.Jc=a.Jc;this.playbackRate=1;this.mk=!0;this.wc=this.Id=!1;this.Hb=0;this.Mg=this.zf=this.Zc=!1;this.volume=1;this.Pe=
1===G&&!this.Jc||2===G;this.If=1;this.startTime=this.Pe?z.hc.aa:z.jd.aa;this.Ca=this.Ka=null;this.$c=!1;this.Ba=null;this.Go=this.Fo=this.Eo=this.Do=this.Io=this.Ho=0;this.e=null;var e=!1;1!==this.I||0!==this.buffer.I||this.buffer.np||(this.I=0);switch(this.I){case 0:this.Jc?(this.e=a.W,e=!a.Qm,a.Qm=!0):(this.e=new Audio,this.e.autoplay=!1,this.e.src=a.W.src,e=!0);e&&this.e.addEventListener("ended",function(){D=c.tag;c.Zb=!0;z.trigger(hc.prototype.j.Tj,L)});break;case 1:this.Ka=d();this.Ka.connect(m(b));
1===this.buffer.I?a.W&&(this.e=y.createBufferSource(),this.e.buffer=a.W,this.e.connect(this.Ka)):(this.e=this.buffer.W,this.buffer.Il.connect(this.Ka));break;case 2:this.e=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.mk=!0,c.Zb=!0,D=c.tag,z.trigger(hc.prototype.j.Tj,L))});break;case 3:this.e=!0}}function x(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,e,d,f,h=y.destination;if(S.hasOwnProperty(a)&&(d=S[a],d.length))for(h=d[0].ec(),c=0,e=d.length;c<e;c++)f=
d[c],c+1===e?f.lc(y.destination):f.lc(d[c+1].ec());Ha.length=0;if(a.length)for(c=0,e=N.length;c<e;c++)d=N[c],fb(a,d.tag)&&Ha.push(d);else Q&&!Q.Ke()&&(Ha.length=1,Ha[0]=Q);c=0;for(e=Ha.length;c<e;c++)Ha[c].Ot(h);ba&&rb===a&&(ba.disconnect(),ba.connect(h))}function C(){}function oa(){}var w=hc.prototype;w.Va=function(a){this.Da=a;this.b=a.b};w.Va.prototype.fa=function(){};var z=null,L=null,D="",X="",H=0,y=null,ua=[],N=[],Q=null,F=!1,G=0,O=!1,E=1,J=0,I=0,ha=1,M=1,pa=10,ea=1E4,sa=1,ba=null,rb="",Ma=
!1,Na=[],S={},pc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};b.prototype.remove=function(){this.R.disconnect();this.Ha.disconnect();this.D.disconnect();this.B.disconnect()};b.prototype.ec=function(){return this.R};v.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};v.prototype.remove=function(){this.R.disconnect();
this.eh.disconnect();this.oc.disconnect();this.ei.disconnect();this.D.disconnect();this.B.disconnect()};v.prototype.ec=function(){return this.R};s.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};s.prototype.remove=function(){this.R.disconnect();this.Ae.disconnect();this.D.disconnect();this.B.disconnect()};s.prototype.ec=function(){return this.R};f.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};
f.prototype.remove=function(){this.R.disconnect();this.oc.disconnect();this.$a.disconnect();this.Vb.disconnect();this.B.disconnect();this.D.disconnect();this.ki.disconnect()};f.prototype.ec=function(){return this.R};k.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};k.prototype.remove=function(){this.R.disconnect();this.Ha.disconnect();this.$a.disconnect();this.Vb.disconnect();this.B.disconnect();this.D.disconnect()};k.prototype.ec=function(){return this.R};
t.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};t.prototype.remove=function(){this.T.disconnect()};t.prototype.ec=function(){return this.T};h.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};h.prototype.remove=function(){this.$a.disconnect();this.Vb.disconnect();this.T.disconnect()};h.prototype.ec=function(){return this.T};r.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};r.prototype.remove=function(){this.$a.disconnect();
this.wh.disconnect();this.R.disconnect();this.D.disconnect();this.B.disconnect()};r.prototype.ec=function(){return this.R};B.prototype.$t=function(a,b){.01>a&&(a=.01);this.mj.gain.value=a;this.lj.gain.value=Math.pow(1/a,.6)*b};B.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};B.prototype.ms=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.ci[32768+f]=d,this.ci[32768-
f-1]=-d};B.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};B.prototype.remove=function(){this.R.disconnect();this.mj.disconnect();this.Qj.disconnect();this.lj.disconnect();this.D.disconnect();this.B.disconnect()};B.prototype.ec=function(){return this.R};A.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};A.prototype.remove=function(){this.T.disconnect()};A.prototype.ec=function(){return this.T};n.prototype.Sa=function(){this.T.getFloatFrequencyData(this.ks);
this.T.getByteTimeDomainData(this.ip);for(var a=this.T.fftSize,b=0,c=this.qh=0,e=0;b<a;b++)e=(this.ip[b]-128)/128,0>e&&(e=-e),this.qh<e&&(this.qh=e),c+=e*e;this.qh=g(this.qh);g(Math.sqrt(c/a))};n.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};n.prototype.remove=function(){this.T.disconnect()};n.prototype.ec=function(){return this.T};e.prototype.xh=function(a){if(this.C=a)this.Ji=this.C.x,this.Ki=this.C.y;this.pe.length=0};e.prototype.Ai=function(){return!!this.C};e.prototype.Sa=function(a){this.C&&
0!==a&&(this.yl=Ga(this.Ji,this.Ki,this.C.x,this.C.y),a=Qa(this.Ji,this.Ki,this.C.x,this.C.y)/a,4>this.pe.length||this.pe.shift(),this.pe.push(a),this.Ji=this.C.x,this.Ki=this.C.y)};e.prototype.yn=function(){if(!this.pe.length)return 0;var a,b,c=0;a=0;for(b=this.pe.length;a<b;a++)c+=this.pe[a];return c/this.pe.length};e.prototype.Pk=function(){return Math.cos(this.yl)*this.yn()};e.prototype.Qk=function(){return Math.sin(this.yl)*this.yn()};var mc=!1;u.prototype.fr=function(){if(!this.W&&this.we){var a=
this;if(y.decodeAudioData)y.decodeAudioData(this.we,function(b){a.W=b;a.we=null;var c,e,d;if(ga(a.jj)||O)ga(a.Yh)||(c=a.Yh.Ae,c.normalize=a.wo,c.buffer=b);else if(a.Nf.length){c=0;for(e=a.Nf.length;c<e;c++){b=a.Nf[c];d=new q(a,b.qp);d.Zl(!0);if("undefined"!==typeof b.yo&&(b.C=z.ti(b.yo),!b.C))continue;if(b.C){var f=La(b.C.x,b.C.y,-b.C.d.Xa(),J,I,!0),h=La(b.C.x,b.C.y,-b.C.d.Xa(),J,I,!1);d.Yl(f,h,Ba(b.C.i-b.C.d.Xa()),b.Wk,b.zl,b.Cl);d.xh(b.C)}else d.Yl(b.x,b.y,b.Kq,b.Wk,b.zl,b.Cl);d.play(a.sl,a.xm,
a.uj);a.ij&&d.pause();N.push(d)}a.Nf.length=0}else d=new q(a,a.jj),d.play(a.sl,a.xm,a.uj),a.ij&&d.pause(),N.push(d)},function(){a.Bk=!0});else if(this.W=y.createBuffer(this.we,!1),this.we=null,ga(this.jj)||O)ga(this.Yh)||(b=this.Yh.Ae,b.normalize=this.wo,b.buffer=this.W);else{var b=new q(this,this.jj);b.play(this.sl,this.xm,this.uj);this.ij&&b.pause();N.push(b)}}};u.prototype.In=function(){switch(this.I){case 0:var a=4<=this.W.readyState;a&&(this.zm=!0);return a||this.zm;case 1:return!!this.we||!!this.W;
case 2:return!0;case 3:return!0}return!1};u.prototype.Zs=function(){switch(this.I){case 0:return this.In();case 1:return!!this.W;case 2:return!0;case 3:return!0}return!1};u.prototype.Qs=function(){switch(this.I){case 0:return!!this.W.error;case 1:return this.Bk}return!1};q.prototype.Ke=function(){var a;switch(this.I){case 0:return this.e.ended;case 1:if(1===this.buffer.I){if(!this.Yc&&!this.Zb&&this.e.loop||this.wc)return!1;a=this.Pe?z.hc.aa:z.jd.aa;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.W.duration/b}return this.e.ended;case 2:return this.mk;case 3:!0}return!0};q.prototype.Yq=function(){return this.Yc||this.Zb?!0:this.Ke()};q.prototype.Zl=function(a){1===H&&(!this.$c&&a?this.Ka&&(this.Ca||(this.Ca=y.createPanner(),this.Ca.panningModel="number"===typeof this.Ca.panningModel?ha:["equalpower","HRTF","soundfield"][ha],this.Ca.distanceModel="number"===typeof this.Ca.distanceModel?M:["linear","inverse","exponential"][M],this.Ca.refDistance=pa,this.Ca.maxDistance=
ea,this.Ca.rolloffFactor=sa),this.Ka.disconnect(),this.Ka.connect(this.Ca),this.Ca.connect(m(this.tag)),this.$c=!0):this.$c&&!a&&this.Ka&&(this.Ca.disconnect(),this.Ka.disconnect(),this.Ka.connect(m(this.tag)),this.$c=!1))};q.prototype.Yl=function(a,b,c,e,d,f){this.$c&&1===H&&(this.Ca.setPosition(a,b,0),this.Ca.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Ca.coneInnerAngle=e,this.Ca.coneOuterAngle=d,this.Ca.coneOuterGain=f,this.Ho=a,this.Io=b,this.Do=c,this.Eo=e,this.Fo=d,this.Go=f)};q.prototype.xh=
function(a){this.$c&&1===H&&(this.Ba||(this.Ba=new e),this.Ba.xh(a))};q.prototype.Sa=function(a){if(this.$c&&1===H&&this.Ba&&this.Ba.Ai()&&this.vf()){this.Ba.Sa(a);a=this.Ba.C;var b=La(a.x,a.y,-a.d.Xa(),J,I,!0),c=La(a.x,a.y,-a.d.Xa(),J,I,!1);this.Ca.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ba.C.i&&(b=a.i-a.d.Xa(),this.Ca.setOrientation(Math.cos(b),Math.sin(b),0));b=La(this.Ba.Pk(),this.Ba.Qk(),-a.d.Xa(),0,0,!0);c=La(this.Ba.Pk(),this.Ba.Qk(),-a.d.Xa(),0,0,!1);this.Ca.setVelocity(b,c,0)}};
q.prototype.play=function(a,b,e){var d=this.e;this.Zc=a;this.volume=b;e=e||0;switch(this.I){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*E&&(d.volume=b*E);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(f){}if(this.Jc&&Ma&&!z.ha)Na.push(this);else try{this.e.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.If=1;if(1===this.buffer.I)this.Ka.gain.value=
b*E,this.Yc||(this.e=y.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ka)),this.e.loop=a,0===e?l(this.e):c(this.e,e,this.Ie());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*E;if(d.currentTime!==e)try{d.currentTime=e}catch(g){}this.Jc&&Ma&&!z.ha?Na.push(this):d.play()}break;case 2:(!this.Yc&&this.Zb||0!==e)&&d.seekTo(e);d.play();this.mk=!1;break;case 3:z.eb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Pe?z.hc.aa:z.jd.aa)-e;this.wc=this.Zb=this.Yc=!1};q.prototype.stop=function(){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?a(this.e):this.e.paused||this.e.pause();break;case 2:this.e.stop();break;case 3:z.eb&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.wc=!1};q.prototype.pause=function(){if(!(this.Yc||this.Zb||this.Ke()||this.wc)){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?(this.Hb=this.Nk(),
this.Zc&&(this.Hb%=this.Ie()),a(this.e)):this.e.paused||this.e.pause();break;case 2:this.e.pause();break;case 3:z.eb&&AppMobi.context.stopSound(this.src)}this.wc=!0}};q.prototype.Rt=function(){if(!(this.Yc||this.Zb||this.Ke())&&this.wc){switch(this.I){case 0:this.e.play();break;case 1:1===this.buffer.I?(this.e=y.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ka),this.e.loop=this.Zc,this.Ka.gain.value=E*this.volume*this.If,this.startTime=(this.Pe?z.hc.aa:z.jd.aa)-this.Hb,c(this.e,
this.Hb,this.Ie())):this.e.play();break;case 2:this.e.play();break;case 3:z.eb&&AppMobi.context.resumeSound(this.src)}this.wc=!1}};q.prototype.seek=function(a){if(!(this.Yc||this.Zb||this.Ke()))switch(this.I){case 0:try{this.e.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.wc?this.Hb=a:(this.pause(),this.Hb=a,this.Rt());else try{this.e.currentTime=a}catch(c){}break;case 3:z.eb&&AppMobi.context.seekSound(this.src,a)}};q.prototype.Ot=function(a){1===this.I&&(this.$c?(this.Ca.disconnect(),
this.Ca.connect(a)):(this.Ka.disconnect(),this.Ka.connect(a)))};q.prototype.Ie=function(){switch(this.I){case 0:if("undefined"!==typeof this.e.duration)return this.e.duration;break;case 1:return this.buffer.W.duration;case 2:return this.e.getDuration();case 3:if(z.eb)return AppMobi.context.getDurationSound(this.src)}return 0};q.prototype.Nk=function(){var a=this.Ie(),b=0;switch(this.I){case 0:"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 1:if(1===this.buffer.I){if(this.wc)return this.Hb;
b=(this.Pe?z.hc.aa:z.jd.aa)-this.startTime}else"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 3:z.eb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Zc&&b>a&&(b=a);return b};q.prototype.vf=function(){return!this.wc&&!this.Yc&&!this.Zb&&!this.Ke()};q.prototype.mu=function(){var a=this.volume*E;switch(this.I){case 0:"undefined"!==typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a);break;case 1:1===this.buffer.I?this.Ka.gain.value=a*this.If:"undefined"!==
typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a)}};q.prototype.fi=function(a){switch(this.I){case 0:this.e.muted!==!!a&&(this.e.muted=!!a);break;case 1:1===this.buffer.I?(this.If=a?0:1,this.Ka.gain.value=E*this.volume*this.If):this.e.muted!==!!a&&(this.e.muted=!!a)}};q.prototype.au=function(){this.zf=!0;this.fi(this.zf||this.Mg)};q.prototype.cp=function(a){this.Mg=!!a;this.fi(this.zf||this.Mg)};q.prototype.Ep=function(){var a=this.playbackRate;this.Pe&&(a*=z.bg);switch(this.I){case 0:this.e.playbackRate!==
a&&(this.e.playbackRate=a);break;case 1:1===this.buffer.I?this.e.playbackRate.value!==a&&(this.e.playbackRate.value=a):this.e.playbackRate!==a&&(this.e.playbackRate=a)}};q.prototype.cu=function(b){switch(this.I){case 0:b?this.vf()?(this.e.pause(),this.Id=!0):this.Id=!1:this.Id&&this.e.play();break;case 1:b?this.vf()?(1===this.buffer.I?(this.Hb=this.Nk(),this.Zc&&(this.Hb%=this.Ie()),a(this.e)):this.e.pause(),this.Id=!0):this.Id=!1:this.Id&&(1===this.buffer.I?(this.e=y.createBufferSource(),this.e.buffer=
this.buffer.W,this.e.connect(this.Ka),this.e.loop=this.Zc,this.Ka.gain.value=E*this.volume*this.If,this.startTime=(this.Pe?z.hc.aa:z.jd.aa)-this.Hb,c(this.e,this.Hb,this.Ie())):this.e.play());break;case 2:b?this.vf()?(this.e.pause(),this.Id=!0):this.Id=!1:this.Id&&this.e.play()}};w.qa=function(a){this.type=a;z=this.b=a.b;L=this;this.pb=null;this.Ug=-600;!(this.b.Ii||this.b.Di&&(this.b.Ig||this.b.Ei))||this.b.Jg||this.b.ea||this.b.cl||(Ma=!0);y=null;"undefined"!==typeof AudioContext?(H=1,y=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(H=1,y=new webkitAudioContext);(this.b.Ii&&1===H||Ma)&&document.addEventListener("touchstart",function(){var a,b,c;!mc&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),b.buffer=a,b.connect(y.destination),l(b),mc=!0);if(Ma){if(!O)for(a=0,b=Na.length;a<b;++a)c=Na[a],c.Zb||c.wc||c.e.play();Na.length=0}},!0);1!==H&&(this.b.vc&&"undefined"!==typeof window.Media?H=2:this.b.uf&&(H=3));2===H&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),
X=X.replace("file://",""));if(this.b.Jn&&this.b.$s&&"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.Pd(this);else{if(this.b.eb)F=this.b.Di;else try{F=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){F=!1}this.b.jm(this)}};var ja=w.qa.prototype;ja.fa=function(){this.b.jf=this;G=this.Fa[0];this.Jd=this.Fa[1];this.Et=0!==this.Fa[2];ha=this.Fa[3];M=this.Fa[4];this.Ug=-this.Fa[5];
pa=this.Fa[6];ea=this.Fa[7];sa=this.Fa[8];this.pb=new e;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===H&&("undefined"!==typeof y.listener.dopplerFactor&&(y.listener.dopplerFactor=0),y.listener.setPosition(a/2,b/2,this.Ug),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();rb=b.toLowerCase();ba=y.createMediaStreamSource(a);ba.connect(m(rb))});this.b.Qq(function(a){L.At(a)});var c=this;this.b.Oq(function(a){c.ut(a)})};ja.ut=function(a){var b,
c,e;b=0;for(c=N.length;b<c;b++)e=N[b],e.Ba&&e.Ba.C===a&&(e.Ba.C=null,e.$c&&e.vf()&&e.Zc&&e.stop());this.pb.C===a&&(this.pb.C=null)};ja.Ib=function(){var a={silent:O,masterVolume:E,listenerZ:this.Ug,listenerUid:this.pb.Ai()?this.pb.C.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,f,h,g;c=0;for(e=N.length;c<e;c++)d=N[c],!d.vf()||3===this.Jd||d.Jc&&1===this.Jd||!d.Jc&&2===this.Jd||(f=d.Nk(),d.Zc&&(f%=d.Ie()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Jc,playbackTime:f,volume:d.volume,looping:d.Zc,
muted:d.zf,playbackRate:d.playbackRate,paused:d.wc,resume_position:d.Hb},d.$c&&(f.pan={},g=f.pan,d.Ba&&d.Ba.Ai()?g.objUid=d.Ba.C.uid:(g.x=d.Ho,g.y=d.Io,g.a=d.Do),g.ia=d.Eo,g.oa=d.Fo,g.og=d.Go),b.push(f));b=a.effects;for(h in S)if(S.hasOwnProperty(h)){d=[];c=0;for(e=S[h].length;c<e;c++)d.push({type:S[h][c].type,params:S[h][c].Lc});b[h]=d}return a};var Oa=[];ja.jc=function(a){var c=a.silent;E=a.masterVolume;this.Ug=a.listenerZ;this.pb.xh(null);var d=a.listenerUid;-1!==d&&(this.pb.Ri=d,Oa.push(this.pb));
var d=a.playing,g,l,q,m,p,C,u,z,D,w,y;if(3!==this.Jd)for(g=0,l=N.length;g<l;g++)D=N[g],D.Jc&&1===this.Jd||(D.Jc||2!==this.Jd)&&D.stop();for(p in S)if(S.hasOwnProperty(p))for(g=0,l=S[p].length;g<l;g++)S[p][g].remove();Ta(S);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(C=a.effects[p],g=0,l=C.length;g<l;g++)switch(q=C[g].type,w=C[g].params,q){case "filter":x(p,new b(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":x(p,new v(w[0],w[1],w[2]));break;case "convolve":q=w[2];D=this.oi(q,!1);D.W?
q=new s(D.W,w[0],w[1],q):(q=new s(null,w[0],w[1],q),D.wo=w[0],D.Yh=q);x(p,q);break;case "flanger":x(p,new f(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":x(p,new k(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":x(p,new t(w[0]));break;case "tremolo":x(p,new h(w[0],w[1]));break;case "ringmod":x(p,new r(w[0],w[1]));break;case "distortion":x(p,new B(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":x(p,new A(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":x(p,new n(w[0],w[1]))}g=0;for(l=d.length;g<
l;g++)3===this.Jd||(a=d[g],q=a.buffersrc,m=a.is_music,p=a.tag,C=a.playbackTime,u=a.looping,z=a.volume,y=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,m&&1===this.Jd)||!m&&2===this.Jd||((D=this.rn(q,p,m,u,z))?(D.Hb=a.resume_position,D.Zl(!!w),D.play(u,z,C),D.Ep(),D.mu(),D.fi(D.zf||D.Mg),a.paused&&D.pause(),a.muted&&D.au(),D.fi(D.zf||D.Mg),w&&(-1!==y?(D.Ba=D.Ba||new e,D.Ba.Ri=y,Oa.push(D.Ba)):D.Yl(w.x,w.y,w.a,w.ia,w.oa,w.og))):(D=this.oi(q,m),D.uj=C,D.ij=a.paused,w&&(-1!==y?D.Nf.push({yo:y,Wk:w.ia,
zl:w.oa,Cl:w.og,qp:p}):D.Nf.push({x:w.x,y:w.y,Kq:w.a,Wk:w.ia,zl:w.oa,Cl:w.og,qp:p}))));if(c&&!O){g=0;for(l=N.length;g<l;g++)N[g].cp(!0);O=!0}else if(!c&&O){g=0;for(l=N.length;g<l;g++)N[g].cp(!1);O=!1}};ja.kd=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],d=this.b.ti(c.Ri),c.xh(d),c.Ri=-1,d&&(J=d.x,I=d.y);Oa.length=0};ja.At=function(a){if(!this.Et){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].cu(a);a&&y&&y.suspend&&y.suspend()}};ja.Sa=function(){var a=this.b.Ee,b,
c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.Sa(a),0===d.I||3===d.I||d.Yc||d.Zb||!d.Ke()||(d.Zb=!0,D=d.tag,z.trigger(hc.prototype.j.Tj,L)),0!==G&&d.Ep();var e,f;for(e in S)if(S.hasOwnProperty(e))for(d=S[e],b=0,c=d.length;b<c;b++)f=d[b],f.Sa&&f.Sa();1===H&&this.pb.Ai()&&(this.pb.Sa(a),J=this.pb.C.x,I=this.pb.C.y,y.listener.setPosition(this.pb.C.x,this.pb.C.y,this.Ug),y.listener.setVelocity(this.pb.Pk(),this.pb.Qk(),0))};var Pa=[];ja.bu=function(a){var b,c,d,e,f,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],
e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&F||!f&&!F)Pa.push({filename:e,size:d,C:null}),h+=d;return h};ja.fu=function(){var a,b,c,d;a=0;for(b=Pa.length;a<b;++a)c=Pa[a],d=this.b.Ck+c.filename,c.C=this.oi(d,!1)};ja.ws=function(){var a=0,b,c,d;b=0;for(c=Pa.length;b<c;++b)d=Pa[b],d.C.Zs()||d.C.Qs()||this.b.ea||this.b.Ei?a+=d.size:d.C.In()&&(a+=Math.floor(d.size/2));return a};ja.oi=function(a,b){var c,d,e,f=null;c=0;for(d=ua.length;c<d;c++)if(e=ua[c],e.src===a){f=e;break}f||(f=new u(a,
b),ua.push(f));return f};ja.rn=function(a,b,c,d,e){var f,h,g;f=0;for(h=N.length;f<h;f++)if(g=N[f],g.src===a&&(g.Yq()||c))return g.tag=b,g;a=this.oi(a,c);if(!a.W)return"<preload>"!==b&&(a.jj=b,a.sl=d,a.xm=e),null;g=new q(a,b);N.push(g);return g};var Ha=[];C.prototype.Tj=function(a){return fb(D,a)};w.j=new C;oa.prototype.Play=function(a,b,c,d){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),Q=this.rn(this.b.Ck+a[0]+(F?".ogg":".m4a"),d,a[1],0!==b,c))&&(Q.Zl(!1),Q.play(0!==b,c))};w.ka=new oa;w.Ab=new function(){}})();
function ic(g){this.b=g}
(function(){function g(){}var m=ic.prototype;m.Va=function(d){this.Da=d;this.b=d.b};m.Va.prototype.fa=function(){};m.qa=function(d){this.type=d;this.b=d.b;this.jl=Array(256);this.Oj=Array(256);this.se=0};var d=m.qa.prototype;d.fa=function(){var d=this;this.b.ea||(jQuery(document).keydown(function(c){d.wt(c)}),jQuery(document).keyup(function(c){d.xt(c)}))};var p=[32,33,34,35,36,37,38,39,40,44];d.wt=function(d){var c=!1;window!=window.top&&-1<p.indexOf(d.which)&&(d.preventDefault(),c=!0,d.stopPropagation());
if(this.jl[d.which])this.Oj[d.which]&&!c&&d.preventDefault();else{this.jl[d.which]=!0;this.se=d.which;this.b.ha=!0;this.b.trigger(ic.prototype.j.fq,this);var a=this.b.trigger(ic.prototype.j.qq,this),b=this.b.trigger(ic.prototype.j.rq,this);this.b.ha=!1;if(a||b)this.Oj[d.which]=!0,c||d.preventDefault()}};d.xt=function(d){this.jl[d.which]=!1;this.se=d.which;this.b.ha=!0;this.b.trigger(ic.prototype.j.gq,this);var c=this.b.trigger(ic.prototype.j.tq,this),a=this.b.trigger(ic.prototype.j.sq,this);this.b.ha=
!1;if(c||a||this.Oj[d.which])this.Oj[d.which]=!0,d.preventDefault()};d.Ib=function(){return{triggerKey:this.se}};d.jc=function(d){this.se=d.triggerKey};g.prototype.qq=function(d){return d===this.se};g.prototype.fq=function(){return!0};g.prototype.gq=function(){return!0};g.prototype.tq=function(d){return d===this.se};g.prototype.rq=function(d){return d===this.se};g.prototype.sq=function(d){return d===this.se};m.j=new g;m.ka=new function(){};m.Ab=new function(){}})();function jc(g){this.b=g}
(function(){function g(){}function m(){}var d=jc.prototype;d.Va=function(c){this.Da=c;this.b=c.b};d.Va.prototype.fa=function(){};d.qa=function(c){this.type=c;this.b=c.b;this.Sh=Array(4);this.tp=this.Jj=this.dg=this.Cd=this.Bd=0;this.Tk=!1};var p=d.qa.prototype;p.fa=function(){var c=this;if(!this.b.ea){jQuery(document).mousemove(function(a){c.jh(a)});jQuery(document).mousedown(function(a){c.ih(a)});jQuery(document).mouseup(function(a){c.kh(a)});jQuery(document).dblclick(function(a){c.qt(a)});var a=
function(a){c.Ct(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};p.jh=function(c){var a=this.b.ea?l:jQuery(this.b.canvas).offset();this.Bd=c.pageX-a.left;this.Cd=c.pageY-a.top};p.ro=function(){return 0<this.b.mb?!0:0<=this.Bd&&0<=this.Cd&&this.Bd<this.b.width&&this.Cd<this.b.height};p.ih=function(c){this.ro()&&(this.b.sf&&!this.b.zd&&c.preventDefault(),this.Sh[c.which]=!0,this.b.ha=!0,this.b.trigger(jc.prototype.j.dq,this),this.dg=
c.which-1,this.Jj=0,this.b.trigger(jc.prototype.j.Bm,this),this.b.trigger(jc.prototype.j.Vj,this),this.b.ha=!1)};p.kh=function(c){this.Sh[c.which]&&(this.b.sf&&!this.b.zd&&c.preventDefault(),this.b.sf=!0,this.Sh[c.which]=!1,this.b.ha=!0,this.dg=c.which-1,this.b.trigger(jc.prototype.j.wq,this),this.b.ha=!1)};p.qt=function(c){this.ro()&&(c.preventDefault(),this.b.ha=!0,this.dg=c.which-1,this.Jj=1,this.b.trigger(jc.prototype.j.Bm,this),this.b.trigger(jc.prototype.j.Vj,this),this.b.ha=!1)};p.Ct=function(c){this.tp=
0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:0)?0:1;this.Tk=!1;this.b.ha=!0;this.b.trigger(jc.prototype.j.zq,this);this.b.ha=!1;this.Tk&&gb(c)&&c.preventDefault()};g.prototype.Bm=function(c,a){return c===this.dg&&a===this.Jj};g.prototype.dq=function(){return!0};g.prototype.Rp=function(c){return this.Sh[c+1]};g.prototype.wq=function(c){return c===this.dg};g.prototype.Up=function(c){var a=this.b.qi();return Ra(this.b.$f(c,this.Bd,this.Cd,a.tf),a.tf)};g.prototype.Vj=function(c,a,b){return c!==this.dg||
a!==this.Jj?!1:this.b.$f(b,this.Bd,this.Cd,!1)};g.prototype.zq=function(c){this.Tk=!0;return c===this.tp};d.j=new g;d.ka=new function(){};m.prototype.Jm=function(c,a){var b,d,g,f,k;ga(a)?(b=this.b.vd(0),d=b.scale,g=b.lb,f=b.Eb,k=b.i,b.scale=1,b.lb=1,b.Eb=1,b.i=0,c.q(b.na(this.Bd,this.Cd,!0)),b.scale=d,b.lb=g,b.Eb=f,b.i=k):(b=P(a)?this.b.vd(a):this.b.yg(a))?c.q(b.na(this.Bd,this.Cd,!0)):c.q(0)};m.prototype.Km=function(c,a){var b,d,g,f,k;ga(a)?(b=this.b.vd(0),d=b.scale,g=b.lb,f=b.Fb,k=b.i,b.scale=1,
b.lb=1,b.Fb=1,b.i=0,c.q(b.na(this.Bd,this.Cd,!1)),b.scale=d,b.lb=g,b.Fb=f,b.i=k):(b=P(a)?this.b.vd(a):this.b.yg(a))?c.q(b.na(this.Bd,this.Cd,!1)):c.q(0)};d.Ab=new m})();function kc(g){this.b=g}
(function(){function g(d){this.ja=d;this.Wa=!1;this.i=this.speed=this.y=this.x=0;this.opacity=1;this.Sd=this.rf=this.size=this.xi=0}var m=kc.prototype;m.Va=function(d){this.Da=d;this.b=d.b};var d=m.Va.prototype;d.fa=function(){this.A||(this.H=new Image,this.H.ok=this.Gj,this.N=null,this.b.ym(this.H,this.Fj))};d.$i=function(){this.A||(this.N=null)};d.aj=function(){this.A||!this.c.length||this.N||(this.N=this.b.n.Ef(this.H,!0,this.b.S,this.Fh))};d.Wg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Ef(this.H,
!0,this.b.S,this.Fh))};d.Mj=function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};d.nj=function(d){d.drawImage(this.H,0,0)};g.prototype.init=function(){var d=this.ja;this.x=d.x-d.Rj/2+Math.random()*d.Rj;this.y=d.y-d.Sj/2+Math.random()*d.Sj;this.speed=d.$k-d.zj/2+Math.random()*d.zj;this.i=d.i-d.Aj/2+Math.random()*d.Aj;this.opacity=d.Yk;this.size=d.Zk-d.xj/2+Math.random()*d.xj;this.xi=d.Sk-d.yi/2+Math.random()*d.yi;this.Sd=this.rf=0};g.prototype.Sa=function(d){var c=
this.ja;this.x+=Math.cos(this.i)*this.speed*d;this.y+=Math.sin(this.i)*this.speed*d;this.y+=this.rf*d;this.speed+=c.Yj*d;this.size+=this.xi*d;this.rf+=c.Ik*d;this.Sd+=d;1>this.size?this.Wa=!1:(0!==c.Rg&&(this.i+=Math.random()*c.Rg*d-c.Rg*d/2),0!==c.Tg&&(this.speed+=Math.random()*c.Tg*d-c.Tg*d/2),0!==c.Sg&&(this.opacity+=Math.random()*c.Sg*d-c.Sg*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.mf&&this.Sd>=c.timeout&&(this.Wa=!1),2===c.mf&&0>=this.speed&&(this.Wa=!1))};g.prototype.Gc=
function(d){var c=this.ja.opacity*this.opacity;if(0!==c){0===this.ja.mf&&(c*=1-this.Sd/this.ja.timeout);d.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ja.b.bd&&(c=c+.5|0,a=a+.5|0);d.drawImage(this.ja.type.H,c,a,this.size,this.size)}};g.prototype.Rb=function(d){var c=this.ja.opacity*this.opacity;0===this.ja.mf&&(c*=1-this.Sd/this.ja.timeout);var a=this.size,b=a*this.ja.Lo,g=this.x-a/2,m=this.y-a/2;this.ja.b.bd&&(g=g+.5|0,m=m+.5|0);1>b||0===c||(b<d.lt||b>d.ul?(d.$e(c),d.uh(g,m,g+
a,m,g+a,m+a,g,m+a)):d.Ft(this.x,this.y,b,c))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};m.qa=function(d){this.type=d;this.b=d.b};var d=m.qa.prototype,p=[];d.fa=function(){var d=this.Fa;this.qj=d[0];this.Aj=V(d[1]);this.Wf=d[2];this.cm=!0;this.$k=d[3];this.Zk=d[4];this.Yk=d[5]/100;this.Sk=d[6];this.Rj=d[7];this.Sj=d[8];this.zj=
d[9];this.xj=d[10];this.yi=d[11];this.Yj=d[12];this.Ik=d[13];this.Rg=d[14];this.Tg=d[15];this.Sg=d[16];this.mf=d[17];this.timeout=d[18];this.Ye=0;this.Lo=1;this.fj=this.x;this.hj=this.y;this.gj=this.x;this.ej=this.y;this.Rq(function(c){c.za.set(c.fj,c.hj,c.gj,c.ej);c.Ob.Vf(c.za);c.Rh=!1;c.um()});this.Nc||(this.rb=[]);this.b.jm(this);this.type.Wg();if(1===this.Wf)for(d=0;d<this.qj;d++)this.$j().opacity=0;this.mi=!0};d.Ib=function(){var d={r:this.qj,sc:this.Aj,st:this.Wf,s:this.cm,isp:this.$k,isz:this.Zk,
io:this.Yk,gr:this.Sk,xr:this.Rj,yr:this.Sj,spr:this.zj,szr:this.xj,grnd:this.yi,acc:this.Yj,g:this.Ik,lar:this.Rg,lsr:this.Tg,lor:this.Sg,dm:this.mf,to:this.timeout,pcc:this.Ye,ft:this.mi,p:[]},c,a,b,g=d.p;c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],g.push([b.x,b.y,b.speed,b.i,b.opacity,b.xi,b.size,b.rf,b.Sd]);return d};d.jc=function(d){this.qj=d.r;this.Aj=d.sc;this.Wf=d.st;this.cm=d.s;this.$k=d.isp;this.Zk=d.isz;this.Yk=d.io;this.Sk=d.gr;this.Rj=d.xr;this.Sj=d.yr;this.zj=d.spr;this.xj=d.szr;this.yi=
d.grnd;this.Yj=d.acc;this.Ik=d.g;this.Rg=d.lar;this.Tg=d.lsr;this.Sg=d.lor;this.mf=d.dm;this.timeout=d.to;this.Ye=d.pcc;this.mi=d.ft;p.push.apply(p,this.rb);this.rb.length=0;var c,a,b,g=d.p;d=0;for(c=g.length;d<c;d++)a=this.$j(),b=g[d],a.x=b[0],a.y=b[1],a.speed=b[2],a.i=b[3],a.opacity=b[4],a.xi=b[5],a.size=b[6],a.rf=b[7],a.Sd=b[8]};d.hh=function(){p.push.apply(p,this.rb);this.rb.length=0};d.$j=function(){var d;p.length?(d=p.pop(),d.ja=this):d=new g(this);this.rb.push(d);d.Wa=!0;return d};d.Sa=function(){var d=
this.b.ri(this),c,a,b,g;if(0===this.Wf&&this.cm)for(this.Ye+=d*this.qj,a=T(this.Ye),this.Ye-=a,c=0;c<a;c++)b=this.$j(),b.init();this.fj=this.x;this.hj=this.y;this.gj=this.x;this.ej=this.y;g=c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],this.rb[g]=b,this.b.Y=!0,1===this.Wf&&this.mi&&b.init(),b.Sa(d),b.Wa?(b.left()<this.fj&&(this.fj=b.left()),b.right()>this.gj&&(this.gj=b.right()),b.top()<this.hj&&(this.hj=b.top()),b.bottom()>this.ej&&(this.ej=b.bottom()),g++):p.push(b);this.rb.length=g;this.wa();this.mi=
!1;1===this.Wf&&0===this.rb.length&&this.b.Pd(this)};d.Gc=function(d){var c,a,b,g=this.d;c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],b.right()>=g.xa&&b.bottom()>=g.ya&&b.left()<=g.Ja&&b.top()<=g.Ia&&b.Gc(d)};d.Rb=function(d){this.Lo=this.d.rc();d.Xb(this.type.N);var c,a,b,g=this.d;c=0;for(a=this.rb.length;c<a;c++)b=this.rb[c],b.right()>=g.xa&&b.bottom()>=g.ya&&b.left()<=g.Ja&&b.top()<=g.Ia&&b.Rb(d)};m.j=new function(){};m.ka=new function(){};m.Ab=new function(){}})();function gc(g){this.b=g}
(function(){function g(){if(0===this.rk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Xf?b.drawImage(this.H,this.Kf,this.Lf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.rk=a.toDataURL("image/png")}return this.rk}function m(){}var d=gc.prototype;d.Va=function(a){this.Da=a;this.b=a.b};var p=d.Va.prototype;p.fa=function(){if(!this.A){var a,b,c,d,f,l,m,e,p;this.Dc=[];this.Eg=
!1;a=0;for(b=this.Nb.length;a<b;a++){f=this.Nb[a];m={};m.name=f[0];m.speed=f[1];m.loop=f[2];m.Sl=f[3];m.rj=f[4];m.Mo=f[5];m.O=f[6];m.frames=[];c=0;for(d=f[7].length;c<d;c++)l=f[7][c],e={},e.Fj=l[0],e.Gj=l[1],e.Kf=l[2],e.Lf=l[3],e.width=l[4],e.height=l[5],e.duration=l[6],e.Cb=l[7],e.Db=l[8],e.Xk=l[9],e.kj=l[10],e.No=l[11],e.Xf=0!==e.width,e.rk="",e.Cv=g,p={left:0,top:0,right:1,bottom:1},e.$l=p,e.N=null,(p=this.b.hs(l[0]))?e.H=p:(e.H=new Image,e.H.cr=l[0],e.H.ok=l[1],e.H.Xq=null,this.b.ym(e.H,l[0])),
m.frames.push(e),this.Dc.push(e);this.Nb[a]=m}}};p.Dp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.ai=c.mc.N};p.$i=function(){if(!this.A){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.H.Xq=null,c.N=null;this.Eg=!1;this.Dp()}};p.aj=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.N=this.b.n.Ef(c.H,!1,this.b.S,c.No);this.Dp()}};p.Wg=function(){if(!this.A&&!this.Eg&&this.b.n){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=
this.Dc[a],c.N=this.b.n.Ef(c.H,!1,this.b.S,c.No);this.Eg=!0}};p.Mj=function(){if(!this.A&&!this.c.length&&this.Eg){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],this.b.n.deleteTexture(c.N),c.N=null;this.Eg=!1}};var l=[];p.nj=function(a){var b,c,d;b=l.length=0;for(c=this.Dc.length;b<c;++b)d=this.Dc[b].H,-1===l.indexOf(d)&&(a.drawImage(d,0,0),l.push(d))};d.qa=function(a){this.type=a;this.b=a.b;a=this.type.Nb[0].frames[0].kj;this.Nc?this.V.zh(a):this.V=new $a(a)};var c=d.qa.prototype;c.fa=
function(){this.visible=0===this.Fa[0];this.ze=0!==this.Fa[3];1===this.type.Nb.length&&1===this.type.Nb[0].frames.length||0===this.type.Nb[0].speed||this.b.jm(this);this.ra=this.qn(this.Fa[1])||this.type.Nb[0];this.u=this.Fa[2];0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);var a=this.ra.frames[this.u];this.V.zh(a.kj);this.Cb=a.Cb;this.Db=a.Db;this.tg=this.ra.speed;this.Nc?this.Uc.reset():this.Uc=new Ya;this.ud=this.Uc.aa;this.ve=!0;this.ld=0;this.ue=!0;this.kk=
this.Rm="";this.Zq=0;this.jk=-1;this.type.Wg();var b,c,d,f,g,l,e,a=0;for(b=this.type.Nb.length;a<b;a++)for(f=this.type.Nb[a],c=0,d=f.frames.length;c<d;c++)g=f.frames[c],0===g.width&&(g.width=g.H.width,g.height=g.H.height),g.Xf&&(e=g.H,l=g.$l,l.left=g.Kf/e.width,l.top=g.Lf/e.height,l.right=(g.Kf+g.width)/e.width,l.bottom=(g.Lf+g.height)/e.height,0===g.Kf&&0===g.Lf&&g.width===e.width&&g.height===e.height&&(g.Xf=!1));this.mc=this.ra.frames[this.u];this.ai=this.mc.N};c.Ib=function(){var a={a:this.ra.O,
f:this.u,cas:this.tg,fs:this.ud,ar:this.ld,at:this.Uc.aa};this.ve||(a.ap=this.ve);this.ue||(a.af=this.ue);return a};c.jc=function(a){var b=this.ns(a.a);b&&(this.ra=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);this.tg=a.cas;this.ud=a.fs;this.ld=a.ar;this.Uc.reset();this.Uc.aa=a.at;this.ve=a.hasOwnProperty("ap")?a.ap:!0;this.ue=a.hasOwnProperty("af")?a.af:!0;this.mc=this.ra.frames[this.u];this.ai=this.mc.N;this.V.zh(this.mc.kj);this.Cb=this.mc.Cb;
this.Db=this.mc.Db};c.ck=function(a){this.u=a?0:this.ra.frames.length-1;this.ve=!1;this.Rm=this.ra.name;this.b.trigger(gc.prototype.j.cq,this);this.b.trigger(gc.prototype.j.bq,this);this.ld=0};c.Ev=function(){return this.Uc.aa};c.Sa=function(){this.Uc.add(this.b.ri(this));this.kk.length&&this.ir();0<=this.jk&&this.jr();var a=this.Uc.aa,b=this.ra,c=b.frames[this.u],d=c.duration/this.tg;this.ve&&a>=this.ud+d&&(this.ue?this.u++:this.u--,this.ud+=d,this.u>=b.frames.length&&(b.Mo?(this.ue=!1,this.u=b.frames.length-
2):b.loop?this.u=b.rj:(this.ld++,this.ld>=b.Sl?this.ck(!1):this.u=b.rj)),0>this.u&&(b.Mo?(this.u=1,this.ue=!0,b.loop||(this.ld++,this.ld>=b.Sl&&this.ck(!0))):b.loop?this.u=b.rj:(this.ld++,this.ld>=b.Sl?this.ck(!0):this.u=b.rj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.ud+b.frames[this.u].duration/this.tg&&(this.ud=a),a=b.frames[this.u],this.gf(c,a),this.b.Y=!0)};c.qn=function(a){var b,c,d;b=0;for(c=this.type.Nb.length;b<c;b++)if(d=this.type.Nb[b],fb(d.name,a))return d;
return null};c.ns=function(a){var b,c,d;b=0;for(c=this.type.Nb.length;b<c;b++)if(d=this.type.Nb[b],d.O===a)return d;return null};c.ir=function(){var a=this.ra.frames[this.u],b=this.qn(this.kk);this.kk="";!b||fb(b.name,this.ra.name)&&this.ve||(this.ra=b,this.tg=b.speed,0>this.u&&(this.u=0),this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1),1===this.Zq&&(this.u=0),this.ve=!0,this.ud=this.Uc.aa,this.ue=!0,this.gf(a,this.ra.frames[this.u]),this.b.Y=!0)};c.jr=function(){var a=this.ra.frames[this.u],
b=this.u;this.u=T(this.jk);0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);b!==this.u&&(this.gf(a,this.ra.frames[this.u]),this.ud=this.Uc.aa,this.b.Y=!0);this.jk=-1};c.gf=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Cb=b.Cb;this.Db=b.Db;this.V.zh(b.kj);this.wa();this.mc=b;this.ai=b.N;c=0;for(d=this.F.length;c<d;c++)f=this.F[c],f.zt&&f.zt(a,b);this.b.trigger(gc.prototype.j.gf,this)};c.Gc=function(a){a.globalAlpha=
this.opacity;var b=this.mc,c=b.Xf,d=b.H,f=this.x,g=this.y,l=this.width,e=this.height;if(0===this.i&&0<=l&&0<=e)f-=this.Cb*l,g-=this.Db*e,this.b.bd&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(d,b.Kf,b.Lf,b.width,b.height,f,g,l,e):a.drawImage(d,f,g,l,e);else{this.b.bd&&(f=Math.round(f),g=Math.round(g));a.save();var m=0<l?1:-1,q=0<e?1:-1;a.translate(f,g);1===m&&1===q||a.scale(m,q);a.rotate(this.i*m*q);f=0-this.Cb*la(l);g=0-this.Db*la(e);c?a.drawImage(d,b.Kf,b.Lf,b.width,b.height,f,g,la(l),la(e)):
a.drawImage(d,f,g,la(l),la(e));a.restore()}};c.Rb=function(a){a.Xb(this.ai);a.$e(this.opacity);var b=this.mc,c=this.Ob;if(this.b.bd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Xf?a.Gd(c.Ta+d,c.Ua+f,c.Jb+d,c.Kb+f,c.xb+d,c.yb+f,c.ub+d,c.wb+f,b.$l):a.uh(c.Ta+d,c.Ua+f,c.Jb+d,c.Kb+f,c.xb+d,c.yb+f,c.ub+d,c.wb+f)}else b.Xf?a.Gd(c.Ta,c.Ua,c.Jb,c.Kb,c.xb,c.yb,c.ub,c.wb,b.$l):a.uh(c.Ta,c.Ua,c.Jb,c.Kb,c.xb,c.yb,c.ub,c.wb)};c.ss=function(a){var b=this.mc,c,d;c=0;for(d=b.Xk.length;c<d;c++)if(fb(a,
b.Xk[c][0]))return c;return-1};c.Mk=function(a,b){var c=this.mc,d=c.Xk,f;f=R(a)?this.ss(a):a-1;f=T(f);if(0>f||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Cb)*this.width,d=d[f][2],d=(d-c.Db)*this.height,c=Math.cos(this.i);f=Math.sin(this.i);var l=g*c-d*f,d=d*c+g*f,g=l+this.x,d=d+this.y;return b?g:d};var a=null,b=new ca,v=!1,s=[],f=new U(0,0,0,0);p.finish=function(c){if(v){if(c){var d=this.b.nb().Qb.Kc;c=a.ca();var f=b.Sc(),g,l;if(c.ga){c.ga=!1;c.c.length=f.length;g=0;for(l=f.length;g<l;g++)c.c[g]=
f[g];if(d)for(g=c.P.length=0,l=a.c.length;g<l;g++)f=a.c[g],b.contains(f)||c.P.push(f)}else if(d)for(d=c.c.length,c.c.length=d+f.length,g=0,l=f.length;g<l;g++)c.c[d+g]=f[g],Aa(c.P,f[g]);else xa(c.c,f);a.md()}b.clear();v=!1}};m.prototype.Vp=function(c){if(c){var d=!1,g,l,m,p=this.b.qi(),n=p.type,p=p.tf;g=c.ca();l=this.b.nb().Qb.Kc;var e;g.ga?(this.ma(),f.rg(this.za),f.offset(0,0),this.b.ps(this.d,c,f,s),e=s):e=l?g.P:g.c;a=c;v=n!==c&&!p;g=0;for(l=e.length;g<l;g++)if(m=e[g],this.b.hu(this,m)){d=!0;if(p)break;
n!==c&&b.add(m)}s.length=0;c=d}else c=!1;return c};m.prototype.bq=function(a){return fb(this.Rm,a)};m.prototype.cq=function(){return!0};m.prototype.gf=function(){return!0};d.j=new m;d.ka=new function(){};d.Ab=new function(){}})();function lc(g){this.b=g}
(function(){var g=lc.prototype;g.Va=function(d){this.Da=d;this.b=d.b};var m=g.Va.prototype;m.fa=function(){this.A||(this.H=new Image,this.H.ok=this.Gj,this.b.ym(this.H,this.Fj),this.N=this.pattern=null)};m.$i=function(){this.A||(this.N=null)};m.aj=function(){if(!this.A&&this.c.length){this.N||(this.N=this.b.n.Ef(this.H,!0,this.b.S,this.Fh));var d,g;d=0;for(g=this.c.length;d<g;d++)this.c[d].N=this.N}};m.Wg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Ef(this.H,!0,this.b.S,this.Fh))};m.Mj=
function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};m.nj=function(d){d.drawImage(this.H,0,0)};g.qa=function(d){this.type=d;this.b=d.b};m=g.qa.prototype;m.fa=function(){this.visible=0===this.Fa[0];this.vh=new U(0,0,0,0);this.Bn=!1;this.H=this.type.H;this.b.n?(this.type.Wg(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.ba.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};m.kd=function(){this.Bn=!1;this.H=this.type.H};m.hh=
function(){this.b.n&&this.Bn&&this.N&&(this.b.n.deleteTexture(this.N),this.N=null)};m.Gc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,l=this.y;this.b.bd&&(g=Math.round(g),l=Math.round(l));var c=-(this.Cb*this.width),a=-(this.Db*this.height),b=c%this.H.width,m=a%this.H.height;0>b&&(b+=this.H.width);0>m&&(m+=this.H.height);d.translate(g,l);d.rotate(this.i);d.translate(b,m);d.fillRect(c-b,a-m,this.width,this.height);d.restore()};m.Rb=function(d){d.Xb(this.N);
d.$e(this.opacity);var g=this.vh;g.right=this.width/this.H.width;g.bottom=this.height/this.H.height;var l=this.Ob;if(this.b.bd){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Gd(l.Ta+c,l.Ua+a,l.Jb+c,l.Kb+a,l.xb+c,l.yb+a,l.ub+c,l.wb+a,g)}else d.Gd(l.Ta,l.Ua,l.Jb,l.Kb,l.xb,l.yb,l.ub,l.wb,g)};g.j=new function(){};g.ka=new function(){};g.Ab=new function(){}})();function Z(g){this.b=g}
(function(){function g(a){s=a.x;f=a.y;k=a.z}function m(a){t=a.x;h=a.y;r=a.z}function d(a,b,c,d){var e;e=B.length?B.pop():new p;e.init(a,b,c,d);return e}function p(){this.Bh=this.id=this.y=this.x=this.Dj=this.Cj=this.ll=this.time=this.fm=0;this.Hh=this.Kj=!1}function l(){}function c(){}var a=Z.prototype;a.Va=function(a){this.Da=a;this.b=a.b};a.Va.prototype.fa=function(){};a.qa=function(a){this.type=a;this.b=a.b;this.touches=[];this.xl=!1};var b=a.qa.prototype,v={left:0,top:0};b.xg=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 s=0,f=0,k=0,t=0,h=0,r=0,B=[];p.prototype.init=function(a,b,c,d){var e=Ua();this.fm=this.ll=this.time=e;this.Cj=a;this.Dj=b;this.x=a;this.y=b;this.id=c;this.Bh=d;this.Hh=this.Kj=!1};p.prototype.update=function(a,b,c){this.ll=this.time;this.time=a;this.x=b;this.y=c;!this.Hh&&15<=Qa(this.Cj,this.Dj,this.x,this.y)&&(this.Hh=!0)};p.prototype.jt=function(a,b){!this.Kj&&500<=Ua()-this.fm&&!this.Hh&&15>Qa(this.Cj,this.Dj,
this.x,this.y)&&(this.Kj=!0,a.gd=this.Bh,a.eg=this.id,a.qf=b,a.b.trigger(Z.prototype.j.oq,a),a.pd=this.x,a.qd=this.y,a.b.trigger(Z.prototype.j.pq,a),a.qf=0)};var A=-1E3,n=-1E3,e=-1E4;p.prototype.oo=function(a,b){if(!this.Kj){var c=Ua();333>=c-this.fm&&!this.Hh&&15>Qa(this.Cj,this.Dj,this.x,this.y)&&(a.gd=this.Bh,a.eg=this.id,a.qf=b,666>=c-e&&25>Qa(A,n,this.x,this.y)?(a.b.trigger(Z.prototype.j.kq,a),a.pd=this.x,a.qd=this.y,a.b.trigger(Z.prototype.j.lq,a),n=A=-1E3,e=-1E4):(a.b.trigger(Z.prototype.j.xq,
a),a.pd=this.x,a.qd=this.y,a.b.trigger(Z.prototype.j.yq,a),A=this.x,n=this.y,e=c),a.qf=0)}};b.fa=function(){this.bt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.qf=this.eg=this.gd=this.qd=this.pd=this.Nm=this.Mm=this.Lm=this.Nq=this.Mq=this.Lq=this.ph=this.oh=this.nh=0;this.qu=0!==this.Fa[0];var a=0<this.b.mb?document:this.b.canvas,b=document;this.b.eb?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.mh(a)},
!1),a.addEventListener("pointermove",function(a){c.lh(a)},!1),b.addEventListener("pointerup",function(a){c.Fd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Fd(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.mh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.lh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Fd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Fd(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.cj(a)},
!1),a.addEventListener("touchmove",function(a){c.bj(a)},!1),b.addEventListener("touchend",function(a){c.Mf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Mf(a,!0)},!1));if(this.bt){var d=function(a){a=a.reading;c.Lm=a.accelerationX;c.Mm=a.accelerationY;c.Nm=a.accelerationZ},e=function(a){a=a.reading;c.nh=a.yawDegrees;c.oh=a.pitchDegrees;c.ph=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.nh=a.alpha||
0;c.oh=a.beta||0;c.ph=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Lq=a.accelerationIncludingGravity.x||0,c.Mq=a.accelerationIncludingGravity.y||0,c.Nq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Lm=a.acceleration.x||0,c.Mm=a.acceleration.y||0,c.Nm=a.acceleration.z||0)},!1);this.qu&&!this.b.ea&&(jQuery(document).mousemove(function(a){c.jh(a)}),jQuery(document).mousedown(function(a){c.ih(a)}),jQuery(document).mouseup(function(a){c.kh(a)}));
this.b.uf&&!this.b.eb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.vc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.iu(this)};b.lh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.xg(a.pointerId),c=Ua();if(0<=b){var d=this.b.ea?v:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.mh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.ea?v:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.gd=this.touches.length;this.eg=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.gd));this.b.ha=!0;this.b.trigger(Z.prototype.j.Gm,this);this.b.trigger(Z.prototype.j.Im,this);this.pd=c;this.qd=b;this.b.trigger(Z.prototype.j.Hm,this);
this.b.ha=!1}};b.Fd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.xg(a.pointerId);this.gd=0<=c?this.touches[c].Bh:-1;this.eg=0<=c?this.touches[c].id:-1;this.b.ha=!0;this.b.trigger(Z.prototype.j.Fm,this);this.b.trigger(Z.prototype.j.Xj,this);0<=c&&(b||this.touches[c].oo(this,c),100>B.length&&B.push(this.touches[c]),this.touches.splice(c,1));this.b.ha=!1}};b.bj=function(a){a.preventDefault&&a.preventDefault();
var b=Ua(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.xg(e.identifier),0<=f){var g=this.b.ea?v:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};b.cj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.ea?v:jQuery(this.b.canvas).offset();Ua();this.b.ha=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.xg(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-
b.top;this.gd=this.touches.length;this.eg=f.identifier;this.touches.push(d(g,h,f.identifier,this.gd));this.b.trigger(Z.prototype.j.Gm,this);this.b.trigger(Z.prototype.j.Im,this);this.pd=g;this.qd=h;this.b.trigger(Z.prototype.j.Hm,this)}this.b.ha=!1};b.Mf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ha=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.xg(e.identifier),0<=e&&(this.gd=this.touches[e].Bh,this.eg=this.touches[e].id,this.b.trigger(Z.prototype.j.Fm,
this),this.b.trigger(Z.prototype.j.Xj,this),b||this.touches[e].oo(this,e),100>B.length&&B.push(this.touches[e]),this.touches.splice(e,1));this.b.ha=!1};b.zv=function(){return this.b.uf&&0===this.nh&&0!==k?90*k:this.b.vc&&0===this.nh&&0!==r?90*r:this.nh};b.Av=function(){return this.b.uf&&0===this.oh&&0!==f?-90*f:this.b.vc&&0===this.oh&&0!==h?90*h:this.oh};b.Dv=function(){return this.b.uf&&0===this.ph&&0!==s?90*s:this.b.vc&&0===this.ph&&0!==t?90*t:this.ph};b.ih=function(a){a.preventDefault&&this.b.sf&&
!this.b.zd&&a.preventDefault();this.cj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.xl=!0};b.jh=function(a){this.xl&&this.bj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.kh=function(a){a.preventDefault&&this.b.sf&&!this.b.zd&&a.preventDefault();this.b.sf=!0;this.Mf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.xl=!1};b.im=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.ll=d),c.jt(this,
a)};l.prototype.Im=function(){return!0};l.prototype.Xj=function(){return!0};l.prototype.Hm=function(a){return a?this.b.$f(a,this.pd,this.qd,!1):!1};var u=[];l.prototype.Wp=function(a){if(!a)return!1;var b=a.ca(),c=b.qc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.ma();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.na(e.x,e.y,!0),e=l.d.na(e.x,e.y,!1),l.bb(d,e)){u.push(l);break}}return u.length?(b.ga=!1,xa(b.c,u),a.md(),u.length=0,!0):!1};l.prototype.Gm=function(a){a=Math.floor(a);
return a===this.gd};l.prototype.Fm=function(a){a=Math.floor(a);return a===this.gd};l.prototype.oq=function(){return!0};l.prototype.xq=function(){return!0};l.prototype.kq=function(){return!0};l.prototype.pq=function(a){return a?this.b.$f(a,this.pd,this.qd,!1):!1};l.prototype.yq=function(a){return a?this.b.$f(a,this.pd,this.qd,!1):!1};l.prototype.lq=function(a){return a?this.b.$f(a,this.pd,this.qd,!1):!1};a.j=new l;c.prototype.Jm=function(a,b){var c=this.qf;if(0>c||c>=this.touches.length)a.q(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.vd(0),e=d.scale,f=d.lb,g=d.Eb,h=d.i,d.scale=1,d.lb=1,d.Eb=1,d.i=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.lb=f,d.Eb=g,d.i=h):(d=P(b)?this.b.vd(b):this.b.yg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!0)):a.q(0)}};c.prototype.Km=function(a,b){var c=this.qf;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;ga(b)?(d=this.b.vd(0),e=d.scale,f=d.lb,g=d.Fb,h=d.i,d.scale=1,d.lb=1,d.Fb=1,d.i=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.lb=f,d.Fb=g,d.i=h):(d=P(b)?this.b.vd(b):this.b.yg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!1)):a.q(0)}};a.Ab=new c})();
function nc(g){this.b=g;var m=this;this.b.ea||(jQuery(document).mousemove(function(d){m.jh(d)}),jQuery(document).mousedown(function(d){m.ih(d)}),jQuery(document).mouseup(function(d){m.kh(d)}));g=0<this.b.mb?document:this.b.canvas;this.b.eb?g=window.Canvas:this.b.gc&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(d){m.mh(d)},!1),g.addEventListener("pointermove",function(d){m.lh(d)},!1),g.addEventListener("pointerup",function(d){m.Fd(d)},!1),g.addEventListener("pointercancel",
function(d){m.Fd(d)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(d){m.mh(d)},!1),g.addEventListener("MSPointerMove",function(d){m.lh(d)},!1),g.addEventListener("MSPointerUp",function(d){m.Fd(d)},!1),g.addEventListener("MSPointerCancel",function(d){m.Fd(d)},!1)):(g.addEventListener("touchstart",function(d){m.cj(d)},!1),g.addEventListener("touchmove",function(d){m.bj(d)},!1),g.addEventListener("touchend",function(d){m.Mf(d)},!1),g.addEventListener("touchcancel",
function(d){m.Mf(d)},!1))}
(function(){function g(a){var b,c;b=0;for(c=a.F.length;b<c;b++)if(a.F[b]instanceof p.qa)return a.F[b];return null}function m(){}function d(){}var p=nc.prototype,l={left:0,top:0};p.ih=function(a){1===a.which&&this.Dl("leftmouse",a.pageX,a.pageY)};p.jh=function(a){1===a.which&&this.El("leftmouse",a.pageX,a.pageY)};p.kh=function(a){1===a.which&&this.Fl("leftmouse")};p.cj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],
f=d.identifier,this.Dl(f?f.toString():"<none>",d.pageX,d.pageY)};p.bj=function(a){a.preventDefault&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],f=d.identifier,this.El(f?f.toString():"<none>",d.pageX,d.pageY)};p.Mf=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=d.identifier,this.Fl(d?d.toString():"<none>")};p.mh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Dl(a.pointerId.toString(),a.pageX,a.pageY))};p.lh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.El(a.pointerId.toString(),a.pageX,a.pageY))};p.Fd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Fl(a.pointerId.toString()))};p.Dl=function(a,b,c){var d=this.b.ea?l:jQuery(this.b.canvas).offset();
b-=d.left;c-=d.top;var f,k,m,h,d=this.Jf.Sc(),p,B,A,n=null;p=0;for(B=d.length;p<B;p++)if(A=d[p],f=g(A),f.enabled&&!f.Zd&&(f=A.d.na(b,c,!0),k=A.d.na(b,c,!1),A.ma(),A.bb(f,k)))n?A.d.index>n.d.index?(n=A,m=f,h=k):A.d.index===n.d.index&&A.tc()>n.tc()&&(n=A,m=f,h=k):(n=A,m=f,h=k);n&&g(n).tt(a,m,h)};p.El=function(a,b,c){var d=this.b.ea?l:jQuery(this.b.canvas).offset();b-=d.left;c-=d.top;var f,k=this.Jf.Sc(),m,h,p;m=0;for(h=k.length;m<h;m++)f=k[m],p=g(f),!p.enabled||!p.Zd||p.Zd&&p.vk!==a||(d=f.d.na(b,c,
!0),f=f.d.na(b,c,!1),p.yt(d,f))};p.Fl=function(a){var b=this.Jf.Sc(),c,d,f;c=0;for(d=b.length;c<d;c++)f=b[c],f=g(f),f.Zd&&f.vk===a&&f.Bt()};p.Va=function(a){this.behavior=a;this.b=a.b};p.Va.prototype.fa=function(){};p.qa=function(a,b){this.type=a;this.behavior=a.behavior;this.Aa=b;this.b=a.b};var c=p.qa.prototype;c.fa=function(){this.Zd=!1;this.gn=this.en=0;this.vk="<none>";this.dk=this.Fa[0];this.enabled=0!==this.Fa[1]};c.Ib=function(){return{enabled:this.enabled}};c.jc=function(a){this.enabled=
a.enabled;this.Zd=!1};c.tt=function(a,b,c){this.en=b-this.Aa.x;this.gn=c-this.Aa.y;this.Zd=!0;this.vk=a;this.b.ha=!0;this.b.trigger(nc.prototype.j.mq,this.Aa);this.b.ha=!1};c.yt=function(a,b){var c=a-this.en,d=b-this.gn;if(0===this.dk){if(this.Aa.x!==c||this.Aa.y!==d)this.Aa.x=c,this.Aa.y=d,this.Aa.wa()}else 1===this.dk?this.Aa.x!==c&&(this.Aa.x=c,this.Aa.wa()):2===this.dk&&this.Aa.y!==d&&(this.Aa.y=d,this.Aa.wa())};c.Bt=function(){this.Zd=!1;this.b.ha=!0;this.b.trigger(nc.prototype.j.Cm,this.Aa);
this.b.ha=!1};c.Sa=function(){};m.prototype.mq=function(){return!0};m.prototype.Cm=function(){return!0};m.prototype.Tp=function(){return!!this.enabled};p.j=new m;d.prototype.Dq=function(a){this.enabled=0!==a;this.enabled||(this.Zd=!1)};p.ka=new d;p.Ab=new function(){}})();function oc(g){this.b=g}
(function(){function g(){}function m(){}var d=oc.prototype;d.Va=function(d){this.behavior=d;this.b=d.b};d.Va.prototype.fa=function(){};d.qa=function(d,c){this.type=d;this.behavior=d.behavior;this.Aa=c;this.b=d.b};var p=d.qa.prototype;p.fa=function(){this.qe=this.dd=this.Yf=this.Zi=this.dj=0};p.Ib=function(){return{ontime:this.dj,offtime:this.Zi,stage:this.Yf,stagetimeleft:this.dd,timeleft:this.qe}};p.jc=function(d){this.dj=d.ontime;this.Zi=d.offtime;this.Yf=d.stage;this.dd=d.stagetimeleft;this.qe=
d.timeleft};p.Sa=function(){if(!(0>=this.qe)){var d=this.b.ri(this.Aa);this.qe-=d;0>=this.qe?(this.qe=0,this.Aa.visible=!0,this.b.Y=!0,this.b.trigger(oc.prototype.j.nq,this.Aa)):(this.dd-=d,0>=this.dd&&(0===this.Yf?(this.Aa.visible=!1,this.Yf=1,this.dd+=this.Zi):(this.Aa.visible=!0,this.Yf=0,this.dd+=this.dj),this.b.Y=!0))}};g.prototype.nq=function(){return!0};d.j=new g;m.prototype.Pp=function(d,c,a){this.dj=d;this.Zi=c;this.Yf=1;this.dd=c;this.qe=a;this.Aa.visible=!1;this.b.Y=!0};d.ka=new m;d.Ab=
new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,lc,Z,nc,oc,jc.prototype.j.Up,gc.prototype.ka.Eq,jc.prototype.j.Vj,Z.prototype.j.Wp,Y.prototype.ka.Gq,jc.prototype.j.Rp,Y.prototype.j.Np,Y.prototype.ka.Cq,Y.prototype.ka.aq,hc.prototype.ka.Play,Y.prototype.ka.Jq,Z.prototype.j.Xj,Y.prototype.j.Dm,gc.prototype.ka.Hq,gc.prototype.j.Xp,Y.prototype.j.Iq,gc.prototype.ka.Fq,oc.prototype.ka.Pp,gc.prototype.j.Vp,Y.prototype.ka.Ip,nc.prototype.ka.Dq,nc.prototype.j.Cm,nc.prototype.j.Tp,Y.prototype.ka.Aq,Y.prototype.ka.Bq,Y.prototype.ka.$p]}
;
