// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,ea,ga,ha,ia,ja,la,ma,na,oa,pa,qa,ra,C,sa,ta,ua,va,xa,ya,za,J,Ba,Ca,Da,Ea,Fa,M,Ga,Ha,Ia,Ja,La,Ma,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc;"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(l){return l.__proto__}:function(l){return l.constructor.prototype});
(function(){function l(a,b,d,k){this.set(a,b,d,k)}function h(){this.ub=this.tb=this.xb=this.wb=this.Kb=this.Jb=this.bb=this.ab=0}function f(a,b,d,k){a<b?d<k?(D=a<d?a:d,w=b>k?b:k):(D=a<k?a:k,w=b>d?b:d):d<k?(D=b<d?b:d,w=a>k?a:k):(D=b<k?b:k,w=a>d?a:d)}function g(){this.items=this.yf=null;this.Kk=0;v&&(this.yf=new Set);this.Qj=[];this.Hg=!0}function m(a){A[N++]=a}function e(){this.S=this.$o=this.y=this.hq=0}function c(a){this.Xa=[];this.qm=this.tm=this.um=this.rm=0;this.tl(a)}function b(a,b){this.Yb=
a;this.jc=b;this.cells={}}function t(a,b){this.Yb=a;this.jc=b;this.cells={}}function d(a,b,d){var k;return B.length?(k=B.pop(),k.$q=a,k.x=b,k.y=d,k):new ca(a,b,d)}function a(a,b,d){this.$q=a;this.x=b;this.y=d;this.oc=new da}function k(a,b,d){var k;return E.length?(k=E.pop(),k.$q=a,k.x=b,k.y=d,k):new ea(a,b,d)}function r(a,b,d){this.$q=a;this.x=b;this.y=d;this.oc=[];this.aj=!0;this.vf=new da;this.Zj=!1}function n(a,b){return a.bf-b.bf}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,b){return a>b?a:b};qa=function(a,b){return a<b?a:b};ra=Math.PI;C=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var b=
a|0;return b===a?b:b+1};ta=function(a,b,d,k,p,c,t,z){var n,e,r,q;a<d?(e=a,n=d):(e=d,n=a);p<t?(q=p,r=t):(q=t,r=p);if(n<q||e>r)return!1;b<k?(e=b,n=k):(e=k,n=b);c<z?(q=c,r=z):(q=z,r=c);if(n<q||e>r)return!1;n=p-a+t-d;e=c-b+z-k;a=d-a;b=k-b;p=t-p;c=z-c;z=oa(b*p-c*a);return oa(p*e-c*n)>z?!1:oa(a*e-b*n)<=z};l.prototype.set=function(a,b,d,k){this.left=a;this.top=b;this.right=d;this.bottom=k};l.prototype.Fi=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};l.prototype.width=
function(){return this.right-this.left};l.prototype.height=function(){return this.bottom-this.top};l.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};l.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};l.prototype.wv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};l.prototype.xv=
function(a,b,d){return!(a.right+b<this.left||a.bottom+d<this.top||a.left+b>this.right||a.top+d>this.bottom)};l.prototype.ac=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};l.prototype.mk=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=l;h.prototype.ji=function(a){this.ab=a.left;this.bb=a.top;this.Jb=a.right;this.Kb=a.top;this.wb=a.right;this.xb=a.bottom;this.tb=a.left;this.ub=a.bottom};h.prototype.hx=function(a,
b){if(0===b)this.ji(a);else{var d=Math.sin(b),k=Math.cos(b),p=a.left*d,c=a.top*d,t=a.right*d,d=a.bottom*d,z=a.left*k,n=a.top*k,e=a.right*k,k=a.bottom*k;this.ab=z-c;this.bb=n+p;this.Jb=e-c;this.Kb=n+t;this.wb=e-d;this.xb=k+t;this.tb=z-d;this.ub=k+p}};h.prototype.offset=function(a,b){this.ab+=a;this.bb+=b;this.Jb+=a;this.Kb+=b;this.wb+=a;this.xb+=b;this.tb+=a;this.ub+=b;return this};var D=0,w=0;h.prototype.Du=function(a){f(this.ab,this.Jb,this.wb,this.tb);a.left=D;a.right=w;f(this.bb,this.Kb,this.xb,
this.ub);a.top=D;a.bottom=w};h.prototype.ac=function(a,b){var d=this.ab,k=this.bb,p=this.Jb-d,c=this.Kb-k,t=this.wb-d,z=this.xb-k,n=a-d,e=b-k,r=p*p+c*c,q=p*t+c*z,c=p*n+c*e,u=t*t+z*z,f=t*n+z*e,D=1/(r*u-q*q),p=(u*c-q*f)*D,r=(r*f-q*c)*D;if(0<=p&&0<r&&1>p+r)return!0;p=this.tb-d;c=this.ub-k;r=p*p+c*c;q=p*t+c*z;c=p*n+c*e;D=1/(r*u-q*q);p=(u*c-q*f)*D;r=(r*f-q*c)*D;return 0<=p&&0<r&&1>p+r};h.prototype.Rc=function(a,b){if(b)switch(a){case 0:return this.ab;case 1:return this.Jb;case 2:return this.wb;case 3:return this.tb;
case 4:return this.ab;default:return this.ab}else switch(a){case 0:return this.bb;case 1:return this.Kb;case 2:return this.xb;case 3:return this.ub;case 4:return this.bb;default:return this.bb}};h.prototype.kw=function(){return(this.ab+this.Jb+this.wb+this.tb)/4};h.prototype.lw=function(){return(this.bb+this.Kb+this.xb+this.ub)/4};h.prototype.Ak=function(a,b,d,k){if(this.ac(a,b)||this.ac(d,k))return!0;var p,c,t,z,n;for(n=0;4>n;n++)if(p=this.Rc(n,!0),c=this.Rc(n,!1),t=this.Rc(n+1,!0),z=this.Rc(n+1,
!1),ta(a,b,d,k,p,c,t,z))return!0;return!1};h.prototype.vv=function(a){var b=a.kw(),d=a.lw();if(this.ac(b,d))return!0;b=this.kw();d=this.lw();if(a.ac(b,d))return!0;var k,p,c,n,z,t,e,r;for(e=0;4>e;e++)for(r=0;4>r;r++)if(b=this.Rc(e,!0),d=this.Rc(e,!1),k=this.Rc(e+1,!0),p=this.Rc(e+1,!1),c=a.Rc(r,!0),n=a.Rc(r,!1),z=a.Rc(r+1,!0),t=a.Rc(r+1,!1),ta(b,d,k,p,c,n,z,t))return!0;return!1};va=h;xa=function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);return a};ya=function(a,b){var d,k;b=C(b);if(!(0>b||
b>=a.length)){d=b;for(k=a.length-1;d<k;d++)a[d]=a[d+1];za(a,k)}};za=function(a,b){a.length=b};J=function(a){za(a,0)};Ba=function(a,b){J(a);var d,k;d=0;for(k=b.length;d<k;++d)a[d]=b[d]};Ca=function(a,b){a.push.apply(a,b)};Da=function(a,b){var d,k;d=0;for(k=a.length;d<k;++d)if(a[d]===b)return d;return-1};Ea=function(a,b){var d=Da(a,b);-1!==d&&ya(a,d)};Fa=function(a,b,d){return a<b?b:a>d?d:a};M=function(a){return a/(180/ra)};Ga=function(a){return 180/ra*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};
Ia=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ja=function(a){return Ha(Ga(a))};La=function(a){return Ia(M(a))};Ma=function(a,b,d,k){return Math.atan2(k-b,d-a)};Na=function(a,b){if(a===b)return 0;var d=Math.sin(a),k=Math.cos(a),p=Math.sin(b),c=Math.cos(b),d=d*p+k*c;return 1<=d?0:-1>=d?ra:Math.acos(d)};Oa=function(a,b,d){var k=Math.sin(a),p=Math.cos(a),c=Math.sin(b),n=Math.cos(b);return Math.acos(k*c+p*n)>d?0<p*c-k*n?Ia(a+d):Ia(a-d):Ia(b)};Pa=function(a,b){var d=Math.sin(a),k=Math.cos(a),p=Math.sin(b),
c=Math.cos(b);return 0>=k*p-d*c};Ra=function(a,b,d,k,p,c){if(0===d)return c?a:b;var n=Math.sin(d);d=Math.cos(d);a-=k;b-=p;var z=a*n;a=a*d-b*n;b=b*d+z;return c?a+k:b+p};Sa=function(a,b,d,k){a=d-a;b=k-b;return Math.sqrt(a*a+b*b)};Ta=function(a,b){return!a!==!b};Ua=function(a,b,d){return a+(b-a)*d};Va=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Wa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var u=+new Date;Xa=function(){if("undefined"!==typeof window.performance){var a=
window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-u};var p=!1,q=p=!1,X=!1;"undefined"!==typeof window&&(p=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),p=!p&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),X=window.c2ejecta);var v=!p&&!X&&!q&&"undefined"!==
typeof Set&&"undefined"!==typeof Set.prototype.forEach;g.prototype.contains=function(a){return this.Yf()?!1:v?this.yf.has(a):this.items&&this.items.hasOwnProperty(a)};g.prototype.add=function(a){if(v)this.yf.has(a)||(this.yf.add(a),this.Hg=!1);else{var b=a.toString(),d=this.items;d?d.hasOwnProperty(b)||(d[b]=a,this.Kk++,this.Hg=!1):(this.items={},this.items[b]=a,this.Kk=1,this.Hg=!1)}};g.prototype.remove=function(a){if(!this.Yf())if(v)this.yf.has(a)&&(this.yf["delete"](a),this.Hg=!1);else if(this.items){a=
a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Kk--,this.Hg=!1)}};g.prototype.clear=function(){this.Yf()||(v?this.yf.clear():(this.items=null,this.Kk=0),J(this.Qj),this.Hg=!0)};g.prototype.Yf=function(){return 0===this.count()};g.prototype.count=function(){return v?this.yf.size:this.Kk};var A=null,N=0;g.prototype.gF=function(){if(!this.Hg){if(v)J(this.Qj),A=this.Qj,N=0,this.yf.forEach(m),A=null,N=0;else{var a=this.Qj;J(a);var b,d=0,k=this.items;if(k)for(b in k)k.hasOwnProperty(b)&&
(a[d++]=k[b])}this.Hg=!0}};g.prototype.ye=function(){this.gF();return this.Qj};da=g;new da;Ya=function(a,b){v?Za(a,b.yf):$a(a,b.ye())};Za=function(a,b){var d,k,p,c;k=d=0;for(p=a.length;d<p;++d)c=a[d],b.has(c)||(a[k++]=c);za(a,k)};$a=function(a,b){var d,k,p,c;k=d=0;for(p=a.length;d<p;++d)c=a[d],-1===Da(b,c)&&(a[k++]=c);za(a,k)};e.prototype.add=function(a){this.y=a-this.hq;this.$o=this.S+this.y;this.hq=this.$o-this.S-this.y;this.S=this.$o};e.prototype.reset=function(){this.S=this.$o=this.y=this.hq=
0};ab=e;bb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.tl=function(a){this.Sw=a;this.rd=a.length/2;this.Xa.length=a.length;this.ym=this.zm=-1;this.Gu=0};c.prototype.Oh=function(){return!this.Sw.length};c.prototype.Fa=function(){for(var a=this.Xa,b=a[0],d=b,k=a[1],c=k,p,n,z=1,t=this.rd;z<t;++z)n=2*z,p=a[n],n=a[n+1],p<b&&(b=p),p>d&&(d=p),n<k&&(k=n),n>c&&(c=n);this.rm=b;this.tm=d;this.um=k;this.qm=c};c.prototype.ji=function(a,b,d){this.Xa.length=8;this.rd=4;var k=this.Xa;
k[0]=a.left-b;k[1]=a.top-d;k[2]=a.right-b;k[3]=a.top-d;k[4]=a.right-b;k[5]=a.bottom-d;k[6]=a.left-b;k[7]=a.bottom-d;this.zm=a.right-a.left;this.ym=a.bottom-a.top;this.Fa()};c.prototype.Hj=function(a,b,d,k,p){this.Xa.length=8;this.rd=4;var c=this.Xa;c[0]=a.ab-b;c[1]=a.bb-d;c[2]=a.Jb-b;c[3]=a.Kb-d;c[4]=a.wb-b;c[5]=a.xb-d;c[6]=a.tb-b;c[7]=a.ub-d;this.zm=k;this.ym=p;this.Fa()};c.prototype.gx=function(a){this.rd=a.rd;Ba(this.Xa,a.Xa);this.rm=a.rm;this.um-a.um;this.tm=a.tm;this.qm=a.qm};c.prototype.Gg=
function(a,b,d){if(this.zm!==a||this.ym!==b||this.Gu!==d){this.zm=a;this.ym=b;this.Gu=d;var k,c,p,n,z,t=0,e=1,r=this.Sw,q=this.Xa;0!==d&&(t=Math.sin(d),e=Math.cos(d));d=0;for(p=this.rd;d<p;d++)k=2*d,c=k+1,n=r[k]*a,z=r[c]*b,q[k]=n*e-z*t,q[c]=z*e+n*t;this.Fa()}};c.prototype.ac=function(a,b){var d=this.Xa;if(a===d[0]&&b===d[1])return!0;var k,c,p,n=this.rd,z=this.rm-110,t=this.um-101,e=this.tm+131,r=this.qm+120,q,u,f=0,D=0;for(k=0;k<n;k++)c=2*k,p=(k+1)%n*2,q=d[c],c=d[c+1],u=d[p],p=d[p+1],ta(z,t,a,b,q,
c,u,p)&&f++,ta(e,r,a,b,q,c,u,p)&&D++;return 1===f%2||1===D%2};c.prototype.zk=function(a,b,d){var k=a.Xa,c=this.Xa;if(this.ac(k[0]+b,k[1]+d)||a.ac(c[0]-b,c[1]-d))return!0;var p,n,z,t,e,r,q,u,f,D,g,A;p=0;for(t=this.rd;p<t;p++)for(n=2*p,z=(p+1)%t*2,u=c[n],n=c[n+1],f=c[z],D=c[z+1],z=0,q=a.rd;z<q;z++)if(e=2*z,r=(z+1)%q*2,g=k[e]+b,e=k[e+1]+d,A=k[r]+b,r=k[r+1]+d,ta(u,n,f,D,g,e,A,r))return!0;return!1};c.prototype.Ak=function(a,b,d,k,c,p){var n=this.Xa;if(this.ac(d-a,k-b))return!0;var z,t,e,r,q,u;z=0;for(t=
this.rd;z<t;z++)if(e=2*z,r=(z+1)%t*2,q=n[e]+a,e=n[e+1]+b,u=n[r]+a,r=n[r+1]+b,ta(d,k,c,p,q,e,u,r))return!0;return!1};c.prototype.jE=function(a){var b,d,k;b=0;for(d=this.rd;b<d;++b)k=2*b,this.Xa[k]=2*a-this.Xa[k]};c.prototype.ZC=function(a){var b,d,k;b=0;for(d=this.rd;b<d;++b)k=2*b+1,this.Xa[k]=2*a-this.Xa[k]};c.prototype.RB=function(){var a,b,d,k,c;a=0;for(b=this.rd;a<b;++a)d=2*a,k=d+1,c=this.Xa[d],this.Xa[d]=this.Xa[k],this.Xa[k]=c};cb=c;b.prototype.Pg=function(a,b,k){var c;c=this.cells[a];return c?
(c=c[b])?c:k?(c=d(this,a,b),this.cells[a][b]=c):null:k?(c=d(this,a,b),this.cells[a]={},this.cells[a][b]=c):null};b.prototype.cd=function(a){return C(a/this.Yb)};b.prototype.dd=function(a){return C(a/this.jc)};b.prototype.update=function(a,b,d){var k,c,p,n,z;if(b)for(k=b.left,c=b.right;k<=c;++k)for(p=b.top,n=b.bottom;p<=n;++p)if(!d||!d.ac(k,p))if(z=this.Pg(k,p,!1))z.remove(a),z.Yf()&&(z.oc.clear(),1E3>B.length&&B.push(z),this.cells[k][p]=null);if(d)for(k=d.left,c=d.right;k<=c;++k)for(p=d.top,n=d.bottom;p<=
n;++p)b&&b.ac(k,p)||this.Pg(k,p,!0).mr(a)};b.prototype.vo=function(a,b){var d,k,c,p,n,z;d=this.cd(a.left);c=this.dd(a.top);k=this.cd(a.right);for(n=this.dd(a.bottom);d<=k;++d)for(p=c;p<=n;++p)(z=this.Pg(d,p,!1))&&z.dump(b)};db=b;t.prototype.Pg=function(a,b,d){var c;c=this.cells[a];return c?(c=c[b])?c:d?(c=k(this,a,b),this.cells[a][b]=c):null:d?(c=k(this,a,b),this.cells[a]={},this.cells[a][b]=c):null};t.prototype.cd=function(a){return C(a/this.Yb)};t.prototype.dd=function(a){return C(a/this.jc)};t.prototype.update=
function(a,b,d){var k,c,p,n,z;if(b)for(k=b.left,c=b.right;k<=c;++k)for(p=b.top,n=b.bottom;p<=n;++p)if(!d||!d.ac(k,p))if(z=this.Pg(k,p,!1))z.remove(a),z.Yf()&&(z.reset(),1E3>E.length&&E.push(z),this.cells[k][p]=null);if(d)for(k=d.left,c=d.right;k<=c;++k)for(p=d.top,n=d.bottom;p<=n;++p)b&&b.ac(k,p)||this.Pg(k,p,!0).mr(a)};t.prototype.vo=function(a,b,d,k,c){var p,n;a=this.cd(a);b=this.dd(b);d=this.cd(d);for(p=this.dd(k);a<=d;++a)for(k=b;k<=p;++k)(n=this.Pg(a,k,!1))&&n.dump(c)};t.prototype.fE=function(a){var b,
d,k,c,p;b=a.left;k=a.top;d=a.right;for(c=a.bottom;b<=d;++b)for(a=k;a<=c;++a)if(p=this.Pg(b,a,!1))p.aj=!1};eb=t;var B=[];a.prototype.Yf=function(){return this.oc.Yf()};a.prototype.mr=function(a){this.oc.add(a)};a.prototype.remove=function(a){this.oc.remove(a)};a.prototype.dump=function(a){Ca(a,this.oc.ye())};ca=a;var E=[];r.prototype.Yf=function(){if(!this.oc.length)return!0;if(this.oc.length>this.vf.count())return!1;this.Jq();return!0};r.prototype.mr=function(a){this.vf.contains(a)?(this.vf.remove(a),
this.vf.Yf()&&(this.Zj=!1)):this.oc.length?(this.oc[this.oc.length-1].lf()>a.lf()&&(this.aj=!1),this.oc.push(a)):(this.oc.push(a),this.aj=!0)};r.prototype.remove=function(a){this.vf.add(a);this.Zj=!0;30<=this.vf.count()&&this.Jq()};r.prototype.Jq=function(){this.Zj&&(this.vf.count()===this.oc.length?this.reset():(Ya(this.oc,this.vf),this.vf.clear(),this.Zj=!1))};r.prototype.sC=function(){this.aj||(this.oc.sort(n),this.aj=!0)};r.prototype.reset=function(){J(this.oc);this.aj=!0;this.vf.clear();this.Zj=
!1};r.prototype.dump=function(a){this.Jq();this.sC();this.oc.length&&a.push(this.oc)};ea=r;var x="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");fb=function(a){return 0>=a||11<=a?"source-over":x[a-1]};gb=function(a,b,d){if(d)switch(a.Lc=d.ONE,a.Fc=d.ONE_MINUS_SRC_ALPHA,b){case 1:a.Lc=d.ONE;a.Fc=d.ONE;break;case 3:a.Lc=d.ONE;a.Fc=d.ZERO;break;case 4:a.Lc=d.ONE_MINUS_DST_ALPHA;a.Fc=d.ONE;break;case 5:a.Lc=d.DST_ALPHA;a.Fc=
d.ZERO;break;case 6:a.Lc=d.ZERO;a.Fc=d.SRC_ALPHA;break;case 7:a.Lc=d.ONE_MINUS_DST_ALPHA;a.Fc=d.ZERO;break;case 8:a.Lc=d.ZERO;a.Fc=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Lc=d.DST_ALPHA;a.Fc=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Lc=d.ONE_MINUS_DST_ALPHA,a.Fc=d.SRC_ALPHA}};hb=function(a){return Math.round(1E6*a)/1E6};ib=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};jb=function(a){a=a.target;return!a||a===document||a===
window||document&&document.body&&a===document.body||ib(a.tagName,"canvas")?!0:!1}})();var ec="undefined"!==typeof Float32Array?Float32Array:Array;function fc(l){var h=new ec(3);l&&(h[0]=l[0],h[1]=l[1],h[2]=l[2]);return h}function gc(l){var h=new ec(16);l&&(h[0]=l[0],h[1]=l[1],h[2]=l[2],h[3]=l[3],h[4]=l[4],h[5]=l[5],h[6]=l[6],h[7]=l[7],h[8]=l[8],h[9]=l[9],h[10]=l[10],h[11]=l[11],h[12]=l[12],h[13]=l[13],h[14]=l[14],h[15]=l[15]);return h}
function ic(l,h){h[0]=l[0];h[1]=l[1];h[2]=l[2];h[3]=l[3];h[4]=l[4];h[5]=l[5];h[6]=l[6];h[7]=l[7];h[8]=l[8];h[9]=l[9];h[10]=l[10];h[11]=l[11];h[12]=l[12];h[13]=l[13];h[14]=l[14];h[15]=l[15]}function jc(l,h){var f=h[0],g=h[1];h=h[2];l[0]*=f;l[1]*=f;l[2]*=f;l[3]*=f;l[4]*=g;l[5]*=g;l[6]*=g;l[7]*=g;l[8]*=h;l[9]*=h;l[10]*=h;l[11]*=h}
function kc(l,h,f,g){g||(g=gc());var m,e,c,b,t,d,a,k,r=l[0],n=l[1];l=l[2];e=f[0];c=f[1];m=f[2];f=h[1];d=h[2];r===h[0]&&n===f&&l===d?(l=g,l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1):(f=r-h[0],d=n-h[1],a=l-h[2],k=1/Math.sqrt(f*f+d*d+a*a),f*=k,d*=k,a*=k,h=c*a-m*d,m=m*f-e*a,e=e*d-c*f,(k=Math.sqrt(h*h+m*m+e*e))?(k=1/k,h*=k,m*=k,e*=k):e=m=h=0,c=d*e-a*m,b=a*h-f*e,t=f*m-d*h,(k=Math.sqrt(c*c+b*b+t*t))?(k=1/k,c*=k,b*=k,t*=k):t=b=c=0,
g[0]=h,g[1]=c,g[2]=f,g[3]=0,g[4]=m,g[5]=b,g[6]=d,g[7]=0,g[8]=e,g[9]=t,g[10]=a,g[11]=0,g[12]=-(h*r+m*n+e*l),g[13]=-(c*r+b*n+t*l),g[14]=-(f*r+d*n+a*l),g[15]=1)}
(function(){function l(b,c,d){this.Vc=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Za=!!d;this.wn=this.Dk=!1;this.Km=0;this.op=1;this.ut=1E3;this.vF=(this.ut-this.op)/32768;this.iq=fc([0,0,100]);this.Tv=fc([0,0,0]);this.Mx=fc([0,1,0]);this.Tl=fc([1,1,1]);this.Pu=!0;this.Pn=gc();this.Sd=gc();this.Er=gc();this.sq=gc();this.T=b;this.rv()}function h(b,c,d){this.T=b;this.ul=c;this.name=d;this.pe=b.getAttribLocation(c,"aPos");this.bh=b.getAttribLocation(c,
"aTex");this.Rv=b.getUniformLocation(c,"matP");this.Kn=b.getUniformLocation(c,"matMV");this.mj=b.getUniformLocation(c,"opacity");this.Or=b.getUniformLocation(c,"colorFill");this.Sv=b.getUniformLocation(c,"samplerFront");this.Uk=b.getUniformLocation(c,"samplerBack");this.$h=b.getUniformLocation(c,"destStart");this.Zh=b.getUniformLocation(c,"destEnd");this.Wk=b.getUniformLocation(c,"seconds");this.Qr=b.getUniformLocation(c,"pixelWidth");this.Pr=b.getUniformLocation(c,"pixelHeight");this.Tk=b.getUniformLocation(c,
"layerScale");this.Sk=b.getUniformLocation(c,"layerAngle");this.Xk=b.getUniformLocation(c,"viewOrigin");this.Vk=b.getUniformLocation(c,"scrollPos");this.JD=!!(this.Qr||this.Pr||this.Wk||this.Uk||this.$h||this.Zh||this.Tk||this.Sk||this.Xk||this.Vk);this.aw=this.bw=-999;this.On=1;this.Xv=this.Wv=0;this.Zv=this.Vv=this.Uv=1;this.fw=this.ew=this.dw=this.hw=this.gw=this.Yv=0;this.Dr=[];this.$v=gc();this.mj&&b.uniform1f(this.mj,1);this.Or&&b.uniform4f(this.Or,1,1,1,1);this.Sv&&b.uniform1i(this.Sv,0);this.Uk&&
b.uniform1i(this.Uk,1);this.$h&&b.uniform2f(this.$h,0,0);this.Zh&&b.uniform2f(this.Zh,1,1);this.Tk&&b.uniform1f(this.Tk,1);this.Sk&&b.uniform1f(this.Sk,0);this.Xk&&b.uniform2f(this.Xk,0,0);this.Vk&&b.uniform2f(this.Vk,0,0);this.Wk&&b.uniform1f(this.Wk,0);this.Hh=!1}function f(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&b[8]===c[8]&&b[9]===c[9]&&b[10]===c[10]&&b[11]===c[11]&&b[12]===c[12]&&b[13]===c[13]&&b[14]===c[14]&&b[15]===
c[15]}function g(b,c){this.type=b;this.G=c;this.T=c.T;this.hd=this.Cc=this.Dw=0;this.wa=this.xe=null;this.ix=[]}var m=gc();l.prototype.rv=function(){var b=this.T,c;this.Lv=1;this.Sh=this.Zg=null;this.Jm=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.Za?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.Mv=b.ONE;this.Kv=b.ONE_MINUS_SRC_ALPHA;
this.Ol=new Float32Array(8E3*(this.Za?3:2));this.Dl=new Float32Array(16E3);this.ts=new Float32Array(32E3);this.rs=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.rs);b.bufferData(b.ARRAY_BUFFER,this.ts.byteLength,b.DYNAMIC_DRAW);this.Nl=Array(4);this.Cl=Array(4);for(c=0;4>c;c++)this.Nl[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Nl[c]),b.bufferData(b.ARRAY_BUFFER,this.Ol.byteLength,b.DYNAMIC_DRAW),this.Cl[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Cl[c]),b.bufferData(b.ARRAY_BUFFER,
this.Dl.byteLength,b.DYNAMIC_DRAW);this.Kf=0;this.OD=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.OD);for(var d=new Uint16Array(12E3),a=c=0;12E3>c;)d[c++]=a,d[c++]=a+1,d[c++]=a+2,d[c++]=a,d[c++]=a+2,d[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,d,b.STATIC_DRAW);this.xj=this.mh=this.Ae=0;this.sb=[];c=this.Za?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.gk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},c,"<default>");this.sb.push(d);d=this.gk({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.sb.push(d);d=this.gk({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.sb.push(d);d=this.gk({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.sb.push(d);for(var k in lc)lc.hasOwnProperty(k)&&this.sb.push(this.gk(lc[k],c,k));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.He=[];this.be=0;this.vc=this.ec=!1;this.Ku=this.Lk=-1;this.Hi=null;this.Hq=b.createFramebuffer();this.Om=this.yo=null;this.Au=!1;this.Za&&(this.Om=b.createRenderbuffer());this.ph=fc([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.iE=b[0];this.Tr=b[1];2048<this.Tr&&(this.Tr=2048);this.vd(0)};h.prototype.it=function(b){f(this.$v,
b)||(ic(b,this.$v),this.T.uniformMatrix4fv(this.Kn,!1,b))};l.prototype.gk=function(b,c,d){var a=this.T,k=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(k,b.src);a.compileShader(k);if(!a.getShaderParameter(k,a.COMPILE_STATUS))return a.deleteShader(k),null;var e=a.createShader(a.VERTEX_SHADER);a.shaderSource(e,c);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))return a.deleteShader(k),a.deleteShader(e),null;c=a.createProgram();a.attachShader(c,k);a.attachShader(c,e);a.linkProgram(c);
if(!a.getProgramParameter(c,a.LINK_STATUS))return a.deleteShader(k),a.deleteShader(e),a.deleteProgram(c),null;a.useProgram(c);a.deleteShader(k);a.deleteShader(e);d=new h(a,c,d);d.Ld=b.Ld||0;d.Md=b.Md||0;d.he=!!b.he;d.Ub=!!b.Ub;d.$d=!!b.$d;d.Y=b.Y||[];b=0;for(k=d.Y.length;b<k;b++)d.Y[b][1]=a.getUniformLocation(c,d.Y[b][0]),d.Dr.push(0),a.uniform1f(d.Y[b][1],0);return d};l.prototype.Vq=function(b){var c,d;c=0;for(d=this.sb.length;c<d;c++)if(this.sb[c].name===b)return c;return-1};l.prototype.Rw=function(b,
c,d){var a=this.Sd,k=this.Pn,e=[0,0,0,0,0,0,0,0];e[0]=a[0]*b+a[4]*c+a[12];e[1]=a[1]*b+a[5]*c+a[13];e[2]=a[2]*b+a[6]*c+a[14];e[3]=a[3]*b+a[7]*c+a[15];e[4]=k[0]*e[0]+k[4]*e[1]+k[8]*e[2]+k[12]*e[3];e[5]=k[1]*e[0]+k[5]*e[1]+k[9]*e[2]+k[13]*e[3];e[6]=k[2]*e[0]+k[6]*e[1]+k[10]*e[2]+k[14]*e[3];e[7]=-e[2];0!==e[7]&&(e[7]=1/e[7],e[4]*=e[7],e[5]*=e[7],e[6]*=e[7],d[0]=(.5*e[4]+.5)*this.width,d[1]=(.5*e[5]+.5)*this.height)};l.prototype.ng=function(b,c,d){if(this.width!==b||this.height!==c||d){this.gf();d=this.T;
this.width=b;this.height=c;d.viewport(0,0,b,c);kc(this.iq,this.Tv,this.Mx,this.Sd);if(this.Za){var a=-b/2;b=b/2;var k=c/2;c=-c/2;var e=this.op,n=this.ut,f=this.Pn;f||(f=gc());var g=b-a,u=c-k,p=n-e;f[0]=2/g;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/u;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/p;f[11]=0;f[12]=-(a+b)/g;f[13]=-(c+k)/u;f[14]=-(n+e)/p;f[15]=1;this.Tl[0]=1;this.Tl[1]=1}else c=b/c,a=this.op,b=this.ut,f=this.Pn,n=a*Math.tan(45*Math.PI/360),c*=n,k=-c,e=-n,f||(f=gc()),g=c-k,u=n-e,p=b-a,f[0]=2*a/g,f[1]=0,
f[2]=0,f[3]=0,f[4]=0,f[5]=2*a/u,f[6]=0,f[7]=0,f[8]=(c+k)/g,f[9]=(n+e)/u,f[10]=-(b+a)/p,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(b*a*2)/p,f[15]=0,a=[0,0],b=[0,0],this.Rw(0,0,a),this.Rw(1,1,b),this.Tl[0]=1/(b[0]-a[0]),this.Tl[1]=-1/(b[1]-a[1]);a=0;for(b=this.sb.length;a<b;a++)k=this.sb[a],k.Hh=!1,k.Rv&&(d.useProgram(k.ul),d.uniformMatrix4fv(k.Rv,!1,this.Pn));d.useProgram(this.sb[this.Lk].ul);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);
this.Sh=this.Zg=null;this.Om&&(d.bindFramebuffer(d.FRAMEBUFFER,this.Hq),d.bindRenderbuffer(d.RENDERBUFFER,this.Om),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Au||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.Om),this.Au=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.yo=null)}};l.prototype.ue=function(){kc(this.iq,this.Tv,this.Mx,this.Sd);jc(this.Sd,this.Tl)};l.prototype.translate=function(b,
c){if(0!==b||0!==c){this.ph[0]=b;this.ph[1]=c;this.ph[2]=0;var d=this.Sd,a=this.ph,k=a[0],e=a[1],a=a[2];d[12]=d[0]*k+d[4]*e+d[8]*a+d[12];d[13]=d[1]*k+d[5]*e+d[9]*a+d[13];d[14]=d[2]*k+d[6]*e+d[10]*a+d[14];d[15]=d[3]*k+d[7]*e+d[11]*a+d[15]}};l.prototype.scale=function(b,c){if(1!==b||1!==c)this.ph[0]=b,this.ph[1]=c,this.ph[2]=1,jc(this.Sd,this.ph)};l.prototype.Bo=function(b){if(0!==b){var c=this.Sd,d,a=Math.sin(b);b=Math.cos(b);var k=c[0],e=c[1],n=c[2],f=c[3],g=c[4],u=c[5],p=c[6],q=c[7];d?c!==d&&(d[8]=
c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=k*b+g*a;d[1]=e*b+u*a;d[2]=n*b+p*a;d[3]=f*b+q*a;d[4]=k*-a+g*b;d[5]=e*-a+u*b;d[6]=n*-a+p*b;d[7]=f*-a+q*b}};l.prototype.Wd=function(){if(!f(this.Er,this.Sd)){var b=this.$c();b.type=5;b.wa?ic(this.Sd,b.wa):b.wa=gc(this.Sd);ic(this.Sd,this.Er);this.vc=this.ec=!1}};l.prototype.Ho=function(b){this.Za&&(32760<b&&(b=32760),this.Km=this.iq[2]-this.op-b*this.vF)};g.prototype.bC=function(){var b=this.T,c=this.G;0!==
this.Cc?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,c.Hq),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.wn=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.wn=!1)};g.prototype.fC=function(){this.T.bindTexture(this.T.TEXTURE_2D,this.xe)};g.prototype.gC=function(){var b=this.T;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.xe);
b.activeTexture(b.TEXTURE0)};g.prototype.cC=function(){var b=this.Dw,c=this.G;c.Jm=b;c=c.Hi;c.mj&&c.On!==b&&(c.On=b,this.T.uniform1f(c.mj,b))};g.prototype.WB=function(){this.T.drawElements(this.T.TRIANGLES,this.hd,this.T.UNSIGNED_SHORT,this.Cc)};g.prototype.ZB=function(){this.T.blendFunc(this.Cc,this.hd)};g.prototype.hC=function(){var b,c,d,a=this.G.sb,k=this.G.Ku;b=0;for(c=a.length;b<c;b++)d=a[b],b===k&&d.Kn?(d.it(this.wa),d.Hh=!0):d.Hh=!1;ic(this.wa,this.G.sq)};g.prototype.XB=function(){var b=this.T,
c=this.G;this.xe?(c.Sh===this.xe&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),c.Sh=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.Hq),c.wn||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.xe,0)):(c.Za||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};g.prototype.UB=function(){var b=this.T,c=this.Cc;0===c?(b.clearColor(this.wa[0],this.wa[1],this.wa[2],this.wa[3]),b.clear(b.COLOR_BUFFER_BIT)):
1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.wa[0],this.wa[1],this.wa[2],this.wa[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};g.prototype.aC=function(){var b=this.T;0!==this.Cc?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};g.prototype.VB=function(){var b=this.T,c=this.G;c.Za&&b.disable(b.DEPTH_TEST);var d=c.sb[1];b.useProgram(d.ul);!d.Hh&&d.Kn&&(d.it(c.sq),d.Hh=!0);b.enableVertexAttribArray(d.pe);b.bindBuffer(b.ARRAY_BUFFER,c.rs);
b.vertexAttribPointer(d.pe,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Cc/4,this.hd);d=c.Hi;b.useProgram(d.ul);0<=d.pe&&(b.enableVertexAttribArray(d.pe),b.bindBuffer(b.ARRAY_BUFFER,c.Nl[c.Kf]),b.vertexAttribPointer(d.pe,c.Za?3:2,b.FLOAT,!1,0,0));0<=d.bh&&(b.enableVertexAttribArray(d.bh),b.bindBuffer(b.ARRAY_BUFFER,c.Cl[c.Kf]),b.vertexAttribPointer(d.bh,2,b.FLOAT,!1,0,0));c.Za&&b.enable(b.DEPTH_TEST)};g.prototype.dC=function(){var b=this.T,c=this.G,d=c.sb[this.Cc];c.Ku=this.Cc;c.Hi=d;b.useProgram(d.ul);
!d.Hh&&d.Kn&&(d.it(c.sq),d.Hh=!0);d.mj&&d.On!==c.Jm&&(d.On=c.Jm,b.uniform1f(d.mj,c.Jm));0<=d.pe&&(b.enableVertexAttribArray(d.pe),b.bindBuffer(b.ARRAY_BUFFER,c.Nl[c.Kf]),b.vertexAttribPointer(d.pe,c.Za?3:2,b.FLOAT,!1,0,0));0<=d.bh&&(b.enableVertexAttribArray(d.bh),b.bindBuffer(b.ARRAY_BUFFER,c.Cl[c.Kf]),b.vertexAttribPointer(d.bh,2,b.FLOAT,!1,0,0))};g.prototype.$B=function(){var b=this.wa;this.T.uniform4f(this.G.Hi.Or,b[0],b[1],b[2],b[3])};g.prototype.eC=function(){var b,c,d=this.G.Hi,a=this.T;b=
this.wa;d.Uk&&this.G.Sh!==this.xe&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.xe),this.G.Sh=this.xe,a.activeTexture(a.TEXTURE0));var k=b[0];d.Qr&&k!==d.bw&&(d.bw=k,a.uniform1f(d.Qr,k));k=b[1];d.Pr&&k!==d.aw&&(d.aw=k,a.uniform1f(d.Pr,k));k=b[2];c=b[3];!d.$h||k===d.Wv&&c===d.Xv||(d.Wv=k,d.Xv=c,a.uniform2f(d.$h,k,c));k=b[4];c=b[5];!d.Zh||k===d.Uv&&c===d.Vv||(d.Uv=k,d.Vv=k,a.uniform2f(d.Zh,k,c));k=b[6];d.Tk&&k!==d.Zv&&(d.Zv=k,a.uniform1f(d.Tk,k));k=b[7];d.Sk&&k!==d.Yv&&(d.Yv=k,a.uniform1f(d.Sk,
k));k=b[8];c=b[9];!d.Xk||k===d.gw&&c===d.hw||(d.gw=k,d.hw=c,a.uniform2f(d.Xk,k,c));k=b[10];c=b[11];!d.Vk||k===d.dw&&c===d.ew||(d.dw=k,d.ew=c,a.uniform2f(d.Vk,k,c));k=b[12];d.Wk&&k!==d.fw&&(d.fw=k,a.uniform1f(d.Wk,k));if(d.Y.length)for(b=0,c=d.Y.length;b<c;b++)k=this.ix[b],k!==d.Dr[b]&&(d.Dr[b]=k,a.uniform1f(d.Y[b][1],k))};l.prototype.$c=function(){this.be===this.He.length&&this.He.push(new g(0,this));return this.He[this.be++]};l.prototype.gf=function(){if(0!==this.be&&!this.T.isContextLost()){var b=
this.T;0<this.xj&&(b.bindBuffer(b.ARRAY_BUFFER,this.rs),b.bufferSubData(b.ARRAY_BUFFER,0,this.ts.subarray(0,this.xj)),c&&0<=c.pe&&"<point>"===c.name&&b.vertexAttribPointer(c.pe,4,b.FLOAT,!1,0,0));if(0<this.Ae){var c=this.Hi;b.bindBuffer(b.ARRAY_BUFFER,this.Nl[this.Kf]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Ol.subarray(0,this.Ae));c&&0<=c.pe&&"<point>"!==c.name&&b.vertexAttribPointer(c.pe,this.Za?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Cl[this.Kf]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Dl.subarray(0,
this.mh));c&&0<=c.bh&&"<point>"!==c.name&&b.vertexAttribPointer(c.bh,2,b.FLOAT,!1,0,0)}for(var d,b=0,c=this.be;b<c;b++)switch(d=this.He[b],d.type){case 1:d.WB();break;case 2:d.fC();break;case 3:d.cC();break;case 4:d.ZB();break;case 5:d.hC();break;case 6:d.XB();break;case 7:d.UB();break;case 8:d.VB();break;case 9:d.dC();break;case 10:d.eC();break;case 11:d.gC();break;case 12:d.$B();break;case 13:d.aC();break;case 14:d.bC()}this.xj=this.mh=this.Ae=this.be=0;this.wn=this.vc=this.ec=!1;this.Kf++;4<=this.Kf&&
(this.Kf=0)}};l.prototype.Ve=function(b){if(b!==this.Lv&&!this.Dk){var c=this.$c();c.type=3;this.Lv=c.Dw=b;this.vc=this.ec=!1}};l.prototype.rc=function(b){if(b!==this.Zg){var c=this.$c();c.type=2;this.Zg=c.xe=b;this.vc=this.ec=!1}};l.prototype.hh=function(b,c){if((b!==this.Mv||c!==this.Kv)&&!this.Dk){var d=this.$c();d.type=4;d.Cc=b;d.hd=c;this.Mv=b;this.Kv=c;this.vc=this.ec=!1}};l.prototype.Yw=function(){this.hh(this.T.ONE,this.T.ONE_MINUS_SRC_ALPHA)};l.prototype.Bj=function(b,c,d,a,k,e,n,f){15992<=
this.Ae&&this.gf();var g=this.Ae,u=this.mh,p=this.Ol,q=this.Dl,h=this.Km;if(this.ec)this.He[this.be-1].hd+=6;else{var m=this.$c();m.type=1;m.Cc=this.Za?g:g/2*3;m.hd=6;this.ec=!0;this.vc=!1}this.Za?(p[g++]=b,p[g++]=c,p[g++]=h,p[g++]=d,p[g++]=a,p[g++]=h,p[g++]=k,p[g++]=e,p[g++]=h,p[g++]=n,p[g++]=f,p[g++]=h):(p[g++]=b,p[g++]=c,p[g++]=d,p[g++]=a,p[g++]=k,p[g++]=e,p[g++]=n,p[g++]=f);q[u++]=0;q[u++]=0;q[u++]=1;q[u++]=0;q[u++]=1;q[u++]=1;q[u++]=0;q[u++]=1;this.Ae=g;this.mh=u};l.prototype.Gd=function(b,c,
d,a,k,e,n,f,g){15992<=this.Ae&&this.gf();var u=this.Ae,p=this.mh,q=this.Ol,h=this.Dl,m=this.Km;if(this.ec)this.He[this.be-1].hd+=6;else{var A=this.$c();A.type=1;A.Cc=this.Za?u:u/2*3;A.hd=6;this.ec=!0;this.vc=!1}var A=g.left,l=g.top,B=g.right;g=g.bottom;this.Za?(q[u++]=b,q[u++]=c,q[u++]=m,q[u++]=d,q[u++]=a,q[u++]=m,q[u++]=k,q[u++]=e,q[u++]=m,q[u++]=n,q[u++]=f,q[u++]=m):(q[u++]=b,q[u++]=c,q[u++]=d,q[u++]=a,q[u++]=k,q[u++]=e,q[u++]=n,q[u++]=f);h[p++]=A;h[p++]=l;h[p++]=B;h[p++]=l;h[p++]=B;h[p++]=g;h[p++]=
A;h[p++]=g;this.Ae=u;this.mh=p};l.prototype.FE=function(b,c,d,a,k,e,n,f,g,u,p,q,h,m,A,l){15992<=this.Ae&&this.gf();var B=this.Ae,E=this.mh,x=this.Ol,H=this.Dl,ba=this.Km;if(this.ec)this.He[this.be-1].hd+=6;else{var R=this.$c();R.type=1;R.Cc=this.Za?B:B/2*3;R.hd=6;this.ec=!0;this.vc=!1}this.Za?(x[B++]=b,x[B++]=c,x[B++]=ba,x[B++]=d,x[B++]=a,x[B++]=ba,x[B++]=k,x[B++]=e,x[B++]=ba,x[B++]=n,x[B++]=f,x[B++]=ba):(x[B++]=b,x[B++]=c,x[B++]=d,x[B++]=a,x[B++]=k,x[B++]=e,x[B++]=n,x[B++]=f);H[E++]=g;H[E++]=u;H[E++]=
p;H[E++]=q;H[E++]=h;H[E++]=m;H[E++]=A;H[E++]=l;this.Ae=B;this.mh=E};l.prototype.vE=function(b,c,d,a){7996<=this.xj&&this.gf();var k=this.xj,e=this.ts;if(this.vc)this.He[this.be-1].hd++;else{var n=this.$c();n.type=8;n.Cc=k;n.hd=1;this.vc=!0;this.ec=!1}e[k++]=b;e[k++]=c;e[k++]=d;e[k++]=a;this.xj=k};l.prototype.vd=function(b){if(this.Lk!==b){if(!this.sb[b]){if(0===this.Lk)return;b=0}var c=this.$c();c.type=9;this.Lk=c.Cc=b;this.vc=this.ec=!1}};l.prototype.kl=function(b){b=this.sb[b];return!(!b.$h&&!b.Zh)};
l.prototype.vs=function(b){b=this.sb[b];return!!(b.$h||b.Zh||b.he)};l.prototype.us=function(b){return this.sb[b].Ub};l.prototype.CE=function(b){b=this.sb[b];return 0!==b.Ld||0!==b.Md};l.prototype.qD=function(b){return this.sb[b].Ld};l.prototype.rD=function(b){return this.sb[b].Md};l.prototype.hv=function(b,c){return this.sb[b].Y[c][2]};l.prototype.ro=function(b){return this.sb[b].$d};l.prototype.Gj=function(b,c,d,a,k,e,n,f,g,u,p,q,h,m,A){var l=this.sb[this.Lk],B,E;if(l.JD||A.length){B=this.$c();B.type=
10;B.wa?ic(this.Sd,B.wa):B.wa=gc();E=B.wa;E[0]=c;E[1]=d;E[2]=a;E[3]=k;E[4]=e;E[5]=n;E[6]=f;E[7]=g;E[8]=u;E[9]=p;E[10]=q;E[11]=h;E[12]=m;l.Uk?B.xe=b:B.xe=null;if(A.length)for(d=B.ix,d.length=A.length,b=0,c=A.length;b<c;b++)d[b]=A[b];this.vc=this.ec=!1}};l.prototype.clear=function(b,c,d,a){var k=this.$c();k.type=7;k.Cc=0;k.wa||(k.wa=gc());k.wa[0]=b;k.wa[1]=c;k.wa[2]=d;k.wa[3]=a;this.vc=this.ec=!1};l.prototype.clearRect=function(b,c,d,a){if(!(0>d||0>a)){var k=this.$c();k.type=7;k.Cc=1;k.wa||(k.wa=gc());
k.wa[0]=b;k.wa[1]=c;k.wa[2]=d;k.wa[3]=a;this.vc=this.ec=!1}};l.prototype.ax=function(b){if(this.Za&&(b=!!b,this.Dk!==b)){var c=this.$c();c.type=14;c.Cc=b?1:0;this.vc=this.ec=!1;this.Dk=b;this.yo=null;this.Dk?this.vd(2):this.vd(0)}};l.prototype.$w=function(b){if(this.Za){var c=this.$c();c.type=13;c.Cc=b?1:0;this.vc=this.ec=!1}};l.prototype.Vu=function(){ic(this.Er,m);this.ue();this.Wd();var b=this.width/2,c=this.height/2;this.Bj(-b,c,b,c,b,-c,-b,-c);ic(m,this.Sd);this.Wd()};l.prototype.Zw=function(b,
c,d){this.vd(3);var a=this.$c();a.type=12;a.wa||(a.wa=gc());a.wa[0]=b;a.wa[1]=c;a.wa[2]=d;a.wa[3]=1;this.vc=this.ec=!1};l.prototype.$E=function(){this.vd(0)};l.prototype.JE=function(){this.vd(2)};l.prototype.BE=function(){this.gf();this.T.flush()};var e=[],c={};l.prototype.JB=function(){J(e);c={}};l.prototype.ld=function(b,f,d,a,k){f=!!f;d=!!d;var r=b.src+","+f+","+d+(f?","+k:""),n=null;if("undefined"!==typeof b.src&&c.hasOwnProperty(r))return n=c[r],n.xm++,n;this.gf();var g=this.T,h=ma(b.width)&&
ma(b.height),n=g.createTexture();g.bindTexture(g.TEXTURE_2D,n);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var u=g.RGBA,p=g.RGBA,q=g.UNSIGNED_BYTE;if(a&&!this.Vc)switch(a){case 1:p=u=g.RGB;break;case 2:q=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:q=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=u=g.RGB,q=g.UNSIGNED_SHORT_5_6_5}if(!h&&f){a=document.createElement("canvas");a.width=na(b.width);a.height=na(b.height);var m=a.getContext("2d");m.webkitImageSmoothingEnabled=d;m.mozImageSmoothingEnabled=d;m.msImageSmoothingEnabled=
d;m.imageSmoothingEnabled=d;m.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);g.texImage2D(g.TEXTURE_2D,0,u,p,q,a)}else g.texImage2D(g.TEXTURE_2D,0,u,p,q,b);f?"repeat-x"===k?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE)):("repeat-y"===k?g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),h&&this.Pu?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Zg=
null;n.ee=b.width;n.de=b.height;n.xm=1;n.Fu=r;e.push(n);return c[r]=n};l.prototype.Ad=function(b,c,d,a,k){this.gf();var f=this.T;this.Vc&&(a=!1);var n=f.createTexture();f.bindTexture(f.TEXTURE_2D,n);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,c,0,f.RGBA,a?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);k?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Zg=null;n.ee=b;n.de=c;e.push(n);return n};l.prototype.Ux=function(b,c,d){this.gf();var a=this.T;this.Vc&&(d=!1);a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,d?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(k){console&&
console.error&&console.error("Error updating WebGL texture: ",k)}a.bindTexture(a.TEXTURE_2D,null);this.Zg=null};l.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.xm&&1<b.xm?b.xm--:(this.gf(),b===this.Zg&&(this.T.bindTexture(this.T.TEXTURE_2D,null),this.Zg=null),b===this.Sh&&(this.T.activeTexture(this.T.TEXTURE1),this.T.bindTexture(this.T.TEXTURE_2D,null),this.T.activeTexture(this.T.TEXTURE0),this.Sh=null),Ea(e,b),"undefined"!==typeof b.Fu&&delete c[b.Fu],this.T.deleteTexture(b)))};
l.prototype.tC=function(){var b=this.width*this.height*8,c,d,a;c=0;for(d=e.length;c<d;c++)a=e[c],b+=a.ee*a.de*4;return b};l.prototype.ve=function(b){if(b!==this.yo){var c=this.$c();c.type=6;this.yo=c.xe=b;this.vc=this.ec=!1}};kb=l})();
(function(){function l(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function h(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.kd=(this.Xi=/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.wc=!!a.dc;this.yv="undefined"!==typeof window.AppMobi||this.wc;this.jd=!!window.c2cocoonjs;this.ne=!!window.c2ejecta;this.jd&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.ne&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.ua=this.wc||this.jd||this.ne;this.Ek=/edge\//i.test(navigator.userAgent);this.Vc=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Ek;this.tr=/tizen/i.test(navigator.userAgent);this.Wi=/android/i.test(navigator.userAgent)&&!this.tr&&!this.Vc&&!this.Ek;this.Br=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Vc&&!this.Ek;this.Iv=/ipad/i.test(navigator.userAgent);this.Vg=this.Br||this.Iv||this.ne;this.YD=this.Br&&/os\s6/i.test(navigator.userAgent);this.Ck=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Vc&&!this.Ek;this.Bk=/amazonwebappplatform/i.test(navigator.userAgent);this.TD=/firefox/i.test(navigator.userAgent);this.Cv=/safari/i.test(navigator.userAgent)&&!this.Ck&&!this.Vc&&!this.Ek;this.WD=/windows/i.test(navigator.userAgent);
this.yn=this.pf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.SD="undefined"!==typeof window.is_scirra_arcade;this.ur=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Fv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.oe=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.zn=!("undefined"===typeof window.c2isWindowsPhone81||
!window.c2isWindowsPhone81);this.Ev=!!window.cr_windows10;this.Hk=this.ur||this.Fv||this.zn||this.Ev;this.or=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.vn=this.Wi&&!this.Ck&&!this.Xi&&!this.TD&&!this.Bk&&!this.ua;this.devicePixelRatio=1;this.of=this.kd||this.Xi||this.yv||this.jd||this.Wi||this.Vg||this.oe||this.zn||this.or||this.tr||this.ne;this.of||(this.of=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));
"undefined"===typeof cr_is_preview||this.pf||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.pf=!0);this.zv="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.jq=document.getElementById("c2canvasdiv");this.G=this.T=null;this.Zq="(unavailable)";this.Za=!1;this.zh=0;this.Ja=null;this.Lq="";this.Wm=!1;this.ww=this.xw=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();
return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.wc&&(window.c2runtime=this);this.pf&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.vn&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.da=this.width;this.ca=this.height;this.Hm=this.width;this.ik=this.height;this.hj=
window.innerWidth;this.gj=window.innerHeight;this.$C=!1;this.V=!0;this.Gk=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.P=[];this.Lb=[];this.jj={};this.Oe=[];this.Fq={};this.Rf=[];this.Tj=[];this.ip=[];this.vB=[];this.wB=[];this.Jv=this.Qs=null;this.yh={};this.qr=this.Sg=!1;this.Qd=0;this.pr=this.sr=!1;this.Je=[];this.xn=!1;this.$f=this.Kc=this.Rk=this.Eo="";this.Al=this.mx=!1;this.Mg=this.Lg=0;this.mw=30;this.qq=this.Yk=0;this.oh=1;this.Ob=new ab;this.yg=
new ab;this.Sn=this.cn=this.Ch=this.Vd=this.Uh=this.bn=this.En=0;this.vh=null;this.Pm=[];this.Eq=[];this.Sm=-1;this.Rr=[[]];this.ct=this.Ln=0;this.so(null);this.nj=[];this.Nn=-1;this.qw=this.cl=0;this.Kr=!0;this.ok=0;this.Bl=[];this.Ys=this.ys=-1;this.cj=!0;this.lj=0;this.qf=!1;this.aF=0;this.Bi=null;this.Cb=this.qn=!1;this.vw=new da;this.as=new da;this.bs=new da;this.pl=[];this.We=new cb([]);this.Ts=new cb([]);this.Ai=[];this.Si={};this.Ei={};this.yi={};this.Rj={};this.Bu={};this.Pv=this.Gn=this.Pb=
this.gc=this.Ov=this.Fn=this.Ea=null;this.Pj=this.Ar=!1;this.Mq=[null,null];this.Wf=0;this.Vm="";this.hg={};this.yl=this.$g=null;this.ox="";this.Rn=[];this.IE()}}function g(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function e(a,b,d,c){var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=m;k.onerror=c;k.onsuccess=function(k){k=k.target.result;k.onerror=c;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:b}).onsuccess=d}}function c(a,b,d){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=m;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;var k=c.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?b(k.result.data):b(null)}}}function b(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function t(a){var b,
d={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof da||a[b]&&"undefined"!==typeof a[b].ZF||(d[b]=a[b]);return d}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.IE=function(){var a=this,b;this.oe?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var d="data.js";if(this.ur||this.oe||this.zn||this.Ev)d="data.json";b.open("GET",d,!0);var c=!1;if(!this.ua&&"response"in
b&&"responseType"in b)try{b.responseType="json",c="json"===b.responseType}catch(k){c=!1}if(!c&&"responseType"in b)try{b.responseType="text"}catch(p){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(e){}this.oe?b.onreadystatechange=function(){4===b.readyState&&a.In(JSON.parse(b.responseText))}:(b.onload=function(){if(c)a.In(b.response);else if(a.ne){var d=b.responseText,d=d.substr(d.indexOf("{"));a.In(JSON.parse(d))}else a.In(JSON.parse(b.responseText))},b.onerror=
function(a){ha("Error requesting "+d+":");ha(a)});b.send()};f.prototype.PD=function(){var a=this,b,d,c,k,p,e,n,f,q;this.Tg=(!this.ua||this.ne)&&this.hF&&!this.vn;0===this.Gc&&this.Vg&&(this.Tg=!1);this.devicePixelRatio=this.Tg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Dc();d=!(!this.$C&&(!this.aq||this.pf||this.Hk||this.oe||this.Xi||this.kd||this.Bk));0<this.Gc&&this.setSize(l(),h(),!0);try{this.qC&&(this.jd||this.ne||!this.ua)&&
(b={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.T=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(g){}if(this.T){if(b=this.T.getExtension("WEBGL_debug_renderer_info"))this.Zq=this.T.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.T.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Za&&(this.Zq+=" [front-to-back enabled]");this.ua||(this.zc=document.createElement("canvas"),jQuery(this.zc).appendTo(this.canvas.parentNode),this.zc.oncontextmenu=
function(){return!1},this.zc.onselectstart=function(){return!1},this.zc.width=Math.round(this.Hm*this.devicePixelRatio),this.zc.height=Math.round(this.ik*this.devicePixelRatio),jQuery(this.zc).css({width:this.Hm+"px",height:this.ik+"px"}),this.Pw(),this.qs=this.zc.getContext("2d"));this.G=new kb(this.T,this.of,this.Za);this.G.ng(this.canvas.width,this.canvas.height);this.G.Pu=0!==this.iC;this.Ja=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.nE();ga("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.G.rv();a.G.ng(a.G.width,a.G.height,!0);a.gc=null;a.Pb=null;a.Mq[0]=null;a.Mq[1]=null;a.oE();a.V=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(d=this.P.length;b<d;b++)for(p=this.P[b],c=0,k=p.qa.length;c<k;c++)n=p.qa[c],n.Ib=this.G.Vq(n.id),n.Ub=this.G.us(n.Ib),this.Pj=this.Pj||this.G.kl(n.Ib);b=0;for(d=this.Oe.length;b<d;b++){f=this.Oe[b];c=0;for(k=f.qa.length;c<
k;c++)n=f.qa[c],n.Ib=this.G.Vq(n.id),n.Ub=this.G.us(n.Ib);f.$e();c=0;for(k=f.ra.length;c<k;c++){q=f.ra[c];p=0;for(e=q.qa.length;p<e;p++)n=q.qa[p],n.Ib=this.G.Vq(n.id),n.Ub=this.G.us(n.Ib),this.Pj=this.Pj||this.G.kl(n.Ib);q.$e()}}}else{if(0<this.Gc&&this.wc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ja=AppMobi.canvas.getContext("2d");try{this.Ja.samplingMode=this.ea?"smooth":"sharp",this.Ja.globalScale=1,this.Ja.HTML5CompatibilityMode=
!0,this.Ja.imageSmoothingEnabled=this.ea}catch(u){}0!==this.width&&0!==this.height&&(this.Ja.width=this.width,this.Ja.height=this.height)}this.Ja||(this.jd?(b={antialias:!!this.ea,alpha:d},this.Ja=this.canvas.getContext("2d",b)):(b={alpha:d},this.Ja=this.canvas.getContext("2d",b)),this.Ja.webkitImageSmoothingEnabled=this.ea,this.Ja.mozImageSmoothingEnabled=this.ea,this.Ja.msImageSmoothingEnabled=this.ea,this.Ja.imageSmoothingEnabled=this.ea);this.qs=this.zc=null}this.zx=function(b){a.ta(!1,b)};window==
window.top||this.ua||this.Hk||this.oe||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.jd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Rk="__c2_continuouspreview",this.Al=!0),this.tE&&!this.of&&(jQuery(window).focus(function(){a.setSuspended(!1)}),
jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.fh()});this.ua||(b=function(a){if(jb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",
b));0===this.Gc&&this.Tg&&1<this.devicePixelRatio&&this.setSize(this.Rb,this.Qb,!0);this.Jx();this.GD();this.go();this.U={}};f.prototype.setSize=function(a,b,d){var c=0,k=0,p=0,e=0,e=0,n=this.YD&&this.Cv&&!navigator.standalone&&!this.ua&&!this.kd;n&&(b+=60);if(this.hj!==a||this.gj!==b||d){this.hj=a;this.gj=b;var f=this.Gc,q=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.qf)&&!this.kd;if(q||0!==this.Gc||d)q&&0<this.Wf&&(f=this.Wf),d=
this.devicePixelRatio,4<=f?(p=this.Rb/this.Qb,a/b>p?(p*=b,5===f?(e=p*d/this.Rb,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),p=this.Rb*e/d,e=this.Qb*e/d,c=(a-p)/2,k=(b-e)/2,a=p,b=e):(c=(a-p)/2,a=p)):(e=a/p,5===f?(e=e*d/this.Qb,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),p=this.Rb*e/d,e=this.Qb*e/d,c=(a-p)/2,k=(b-e)/2,a=p):k=(b-e)/2,b=e),q&&!this.pf&&(k=c=0)):this.pf&&this.qf&&0===this.Wu&&(c=Math.floor((a-this.Rb)/2),k=Math.floor((b-this.Qb)/2),a=this.Rb,b=this.Qb),2>f&&(this.ak=d),this.Tg&&this.Iv&&
1<d&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.Hm=Math.round(a),this.ik=Math.round(b),this.width=Math.round(a*d),this.height=Math.round(b*d),this.V=!0,this.pt?(this.da=this.width,this.ca=this.height,this.Nd=!0):this.width<this.Rb&&this.height<this.Qb||1===f?(this.da=this.width,this.ca=this.height,this.Nd=!0):(this.da=this.Rb,this.ca=this.Qb,this.Nd=!1,2===f?(p=this.Rb/this.Qb,f=this.hj/this.gj,f<p?this.da=this.ca*f:f>p&&(this.ca=this.da/f)):3===f&&(p=this.Rb/this.Qb,f=this.hj/this.gj,f>p?this.da=
this.ca*f:f<p&&(this.ca=this.da/f))),this.jq&&!this.ua&&(jQuery(this.jq).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(b*d),this.ne?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Tg&&!this.ua&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.zc&&(this.zc.width=Math.round(a*d),this.zc.height=Math.round(b*d),this.zc.style.width=this.Hm+"px",this.zc.style.height=this.ik+"px"),this.G&&this.G.ng(Math.round(a*d),Math.round(b*d)),this.wc&&this.Ja&&(this.Ja.width=Math.round(a),this.Ja.height=Math.round(b)),this.Ja&&(this.Ja.webkitImageSmoothingEnabled=this.ea,this.Ja.mozImageSmoothingEnabled=
this.ea,this.Ja.msImageSmoothingEnabled=this.ea,this.Ja.imageSmoothingEnabled=this.ea),this.Jx(),this.ua||!n&&!this.Br||window.setTimeout(function(){window.scrollTo(0,1)},100)}};f.prototype.Jx=function(){if(this.AB&&0!==this.ns){var a="portrait";2===this.ns&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):
screen.msLockOrientation&&screen.msLockOrientation(a)}};f.prototype.nE=function(){this.G.JB();this.Ar=!0;var a,b,d;a=0;for(b=this.P.length;a<b;a++)d=this.P[a],d.eh&&d.eh()};f.prototype.oE=function(){this.Ar=!1;var a,b,d;a=0;for(b=this.P.length;a<b;a++)d=this.P[a],d.fi&&d.fi()};f.prototype.Pw=function(){if(!this.ua){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.qf)&&!this.kd?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.zc).css(a)}};var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(b){var d;if(b&&!this.Gk)for(ga("[Construct 2] Suspending"),this.Gk=!0,-1!==this.ys&&a&&a(this.ys),-1!==this.Ys&&clearTimeout(this.Ys),b=0,d=this.Bl.length;b<d;b++)this.Bl[b](!0);else if(!b&&this.Gk){ga("[Construct 2] Resuming");this.Gk=!1;this.En=Xa();this.Uh=
Xa();b=this.Yk=this.cn=0;for(d=this.Bl.length;b<d;b++)this.Bl[b](!1);this.ta(!1)}};f.prototype.vu=function(a){this.Bl.push(a)};f.prototype.Ag=function(a){return this.Rn[a]};f.prototype.In=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.Uu=a[1];this.Gc=a[12];this.Wu=a[12];this.Rb=a[10];this.Qb=a[11];this.Kw=this.Rb/2;this.Lw=this.Qb/2;this.ua&&!this.ne&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.Wu=this.Gc=3);this.nt=a[18];this.ah=a[19];if(0===this.ah){var b=new Image;b.crossOrigin="anonymous";b.src="loading-logo.png";this.$g={Mn:b}}else if(4===this.ah){b=new Image;b.src="";var d=new Image;d.src="";var c=new Image;c.src="";var k=new Image;k.src="";var p=new Image;p.src="";var e=new Image;e.src="";var n=new Image;n.src="";var f=new Image;f.src="";var q=new Image;q.src="";var g=new Image;g.src="";var u=new Image;u.src="";var r=new Image;r.src="";this.$g={Mn:[b,d,c,k],yE:[p,e,n,f],pF:[q,
g,u,r]}}this.cl=a[21];this.Rn=mc();this.Bf=new Q(this);b=0;for(d=a[2].length;b<d;b++)n=a[2][b],c=this.Ag(n[0]),mb(n,c.prototype),f=new c(this),f.So=n[1],f.Ug=n[2],f.ow=n[9],f.H&&f.H(),this.plugins.push(f);this.Rn=mc();b=0;for(d=a[3].length;b<d;b++){n=a[3][b];p=this.Ag(n[1]);f=null;c=0;for(k=this.plugins.length;c<k;c++)if(this.plugins[c]instanceof p){f=this.plugins[c];break}q=new f.M(f);q.name=n[0];q.R=n[2];q.nr=n[3].slice(0);q.jF=n[3].length;q.BB=n[4];q.bD=n[5];q.ya=n[11];q.R?(q.pj=[],q.Tf=this.ok++,
q.mb=null):(q.pj=null,q.Tf=-1,q.mb=[]);q.Tm=null;q.Mi=null;q.Qu=null;q.xc=!1;q.zd=null;n[6]?(q.oi=n[6][0],q.Lj=n[6][1],q.Ef=n[6][2]):(q.oi=null,q.Lj=0,q.Ef=0);n[7]?q.fd=n[7]:q.fd=null;q.index=b;q.n=[];q.Mm=[];q.jh=[new nb(q)];q.Nf=0;q.ie=null;q.QB=0;q.Jj=!0;q.jp=ob;q.bv=pb;q.oD=qb;q.X=rb;q.ml=sb;q.re=tb;q.qd=ub;q.hn=vb;q.Oq=wb;q.Rq=Bb;q.ae=Cb;q.Sq=Db;q.dk=new db(this.Rb,this.Qb);q.mm=!0;q.nm=!1;q.U={};q.toString=Eb;q.Lb=[];c=0;for(k=n[8].length;c<k;c++){g=n[8][c];u=this.Ag(g[1]);r=null;p=0;for(e=
this.Lb.length;p<e;p++)if(this.Lb[p]instanceof u){r=this.Lb[p];break}r||(r=new u(this),r.Qn=[],r.bl=new da,r.H&&r.H(),this.Lb.push(r),nc&&r instanceof nc&&(this.Qs=r),oc&&r instanceof oc&&(this.Jv=r));-1===r.Qn.indexOf(q)&&r.Qn.push(q);p=new r.M(r,q);p.name=g[0];p.ya=g[2];p.H();q.Lb.push(p)}q.global=n[9];q.rr=n[10];q.qa=[];c=0;for(k=n[12].length;c<k;c++)q.qa.push({id:n[12][c][0],name:n[12][c][1],Ib:-1,Ub:!1,Ya:!0,index:c});q.dp=n[13];this.nt&&!q.R&&!q.rr&&f.Ug||q.H();q.name&&(this.types[q.name]=q);
this.P.push(q);f.So&&(c=new f.J(q),c.uid=this.cl++,c.Tw=this.qw++,c.Jh=0,c.tk=Fb,c.toString=Gb,c.A=n[14],c.H(),q.n.push(c),this.hg[c.uid.toString()]=c)}b=0;for(d=a[4].length;b<d;b++)for(p=a[4][b],e=this.P[p[0]],c=1,k=p.length;c<k;c++)n=this.P[p[c]],n.mb.push(e),e.pj.push(n);b=0;for(d=a[28].length;b<d;b++){p=a[28][b];e=[];c=0;for(k=p.length;c<k;c++)e.push(this.P[p[c]]);c=0;for(k=e.length;c<k;c++)e[c].xc=!0,e[c].zd=e}if(0<this.ok)for(b=0,d=this.P.length;b<d;b++)if(n=this.P[b],!n.R&&n.mb.length){n.Tm=
Array(this.ok);n.Mi=Array(this.ok);n.Qu=Array(this.ok);q=[];c=r=u=g=0;for(k=n.mb.length;c<k;c++)for(f=n.mb[c],n.Tm[f.Tf]=g,g+=f.jF,n.Mi[f.Tf]=u,u+=f.BB,n.Qu[f.Tf]=r,r+=f.bD,p=0,e=f.qa.length;p<e;p++)q.push(xa({},f.qa[p]));n.qa=q.concat(n.qa);c=0;for(k=n.qa.length;c<k;c++)n.qa[c].index=c}b=0;for(d=a[5].length;b<d;b++)n=a[5][b],c=new Hb(this,n),this.jj[c.name]=c,this.Oe.push(c);b=0;for(d=a[6].length;b<d;b++)n=a[6][b],c=new Ib(this,n),this.Fq[c.name]=c,this.Rf.push(c);b=0;for(d=this.Rf.length;b<d;b++)this.Rf[b].Hb();
b=0;for(d=this.Rf.length;b<d;b++)this.Rf[b].gt();b=0;for(d=this.ip.length;b<d;b++)this.ip[b].Hb();J(this.ip);this.zB=a[7];this.Vm=a[8];this.qc=a[9];this.ak=1;this.qC=a[13];this.ea=a[14];this.aq=a[15];this.kF=a[16];this.hF=a[17];this.ns=a[20];this.AB=0<this.ns;this.tE=a[22];this.Nd=this.pt=a[23];this.iC=a[24];this.zE=a[25];this.Za=a[27]&&!this.Vc;this.Xo=Date.now();J(this.Rn);this.PD()};var k=!1;f.prototype.Sj=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){k=a.Eu=!0;console&&console.error&&
console.error("Error loading image '"+a.src+"': ",b)};this.ne?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(d){k=a.Eu=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",d)}):(a.crossOrigin="anonymous",a.src=b));this.Tj.push(a)};f.prototype.YC=function(a){var b,d;b=0;for(d=this.Tj.length;b<d;b++)if(this.Tj[b].KB===a)return this.Tj[b];return null};var r=0,n=!1;f.prototype.GD=function(){this.Bi&&(r=this.Bi.XE(this.zB))};
f.prototype.zu=function(){var a=r,b=0,d=0,c=!0,k,p,d=0;for(k=this.Tj.length;d<k;d++){p=this.Tj[d];var e=p.fk;if(!e||0>=e)e=5E4;a+=e;p.src&&(p.complete||p.loaded)&&!p.Eu?b+=e:c=!1}c&&this.zE&&this.Bi&&(n||(this.Bi.bF(),n=!0),d=this.Bi.pD(),b+=d,d<r&&(c=!1));this.La=0==a?1:b/a;return c};var D=!1;f.prototype.go=function(){if(this.Ja||this.G){var a=this.Ja||this.qs;this.zc&&this.Pw();this.La=0;this.Nv=-1;var b=this;if(this.zu()&&(4!==this.ah||D))this.HD();else{var c=Date.now()-this.Xo;if(a){var p=this.width,
e=this.height,n=this.devicePixelRatio;if(3>this.ah&&(this.jd||500<=c&&this.Nv!=this.La)){a.clearRect(0,0,p,e);var c=p/2,e=e/2,p=0===this.ah&&this.$g.Mn.complete,f=40*n,q=0,g=80*n,u;if(p){var r=this.$g.Mn,g=r.width*n;u=r.height*n;f=g/2;q=u/2;a.drawImage(r,C(c-f),C(e-q),g,u)}1>=this.ah?(c=C(c-f)+.5,e=C(e+(q+(p?12*n:0)))+.5,a.fillStyle=k?"red":"DodgerBlue",a.fillRect(c,e,Math.floor(g*this.La),6*n),a.strokeStyle="black",a.strokeRect(c,e,g,6*n),a.strokeStyle="white",a.strokeRect(c-1*n,e-1*n,g+2*n,8*n)):
2===this.ah&&(a.font=this.ne?"12pt ArialMT":"12pt Arial",a.fillStyle=k?"#f00":"#999",a.gG="middle",n=Math.round(100*this.La)+"%",p=a.measureText?a.measureText(n):null,a.fillText(n,c-(p?p.width:0)/2,e));this.Nv=this.La}else if(4===this.ah){this.nC(a);d?d(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.jd?10:100)}}};var w=-1,u="undefined"===typeof cr_is_preview?200:0,p=!0,q=!1,X=0,v=0,A="undefined"===typeof cr_is_preview?3E3:0,N=null,B=null,E=0;f.prototype.nC=
function(a){if(!D){for(var b=Math.ceil(this.width),d=Math.ceil(this.height),c=this.$g.Mn,e=this.$g.yE,n=this.$g.pF,f=0;4>f;++f)if(!c[f].complete||!e[f].complete||!n[f].complete)return;0===E&&(w=Date.now());var f=Date.now(),r=!1,h=a,m,l;p||q?(a.clearRect(0,0,b,d),N&&N.width===b&&N.height===d||(N=document.createElement("canvas"),N.width=b,N.height=d,B=N.getContext("2d")),h=B,r=!0,p&&1===E&&(w=Date.now())):a.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,b,d);256<this.ik?(m=Fa(.22*d,105,.6*b),l=
.25*m,h.drawImage(g(e,m),.5*b-m/2,.2*d-l/2,m,l),l=m=Math.min(.395*d,.95*b),h.drawImage(g(c,m),.5*b-m/2,.485*d-l/2,m,l),m=Fa(.22*d,105,.6*b),l=.25*m,h.drawImage(g(n,m),.5*b-m/2,.868*d-l/2,m,l),h.fillStyle="#3C3C3C",m=b,l=Math.max(.005*d,2),h.fillRect(0,.8*d-l/2,m,l),h.fillStyle=k?"red":"#E0FF65",m=b*this.La,h.fillRect(.5*b-m/2,.8*d-l/2,m,l)):(l=m=.55*d,h.drawImage(g(c,m),.5*b-m/2,.45*d-l/2,m,l),h.fillStyle="#3C3C3C",m=b,l=Math.max(.005*d,2),h.fillRect(0,.85*d-l/2,m,l),h.fillStyle=k?"red":"#E0FF65",
m=b*this.La,h.fillRect(.5*b-m/2,.85*d-l/2,m,l));r&&(p?a.globalAlpha=0===E?0:Math.min((f-w)/300,1):q&&(a.globalAlpha=Math.max(1-(f-v)/300,0)),a.drawImage(N,0,0,b,d));p&&300<=f-w&&2<=E&&(p=!1,X=f);!p&&f-X>=A&&!q&&1<=this.La&&(q=!0,v=f);if(q&&f-v>=300+u||"undefined"!==typeof cr_is_preview&&1<=this.La&&500>Date.now()-w)D=!0,q=p=!1,this.$g=B=N=null;++E}};f.prototype.HD=function(){this.zc&&(this.canvas.parentNode.removeChild(this.zc),this.zc=this.qs=null);this.Xo=Date.now();this.Uh=Xa();var a,b,d;if(this.nt)for(a=
0,b=this.P.length;a<b;a++)d=this.P[a],d.R||d.rr||!d.ma.Ug||d.H();else this.cj=!1;a=0;for(b=this.Oe.length;a<b;a++)this.Oe[a].LB();2<=this.Gc&&(a=this.Rb/this.Qb,b=this.width/this.height,this.ak=2!==this.Gc&&b>a||2===this.Gc&&b<a?this.height/this.Qb:this.width/this.Rb);this.Uu?this.jj[this.Uu].Rs():this.Oe[0].Rs();this.nt||(this.lj=1,this.trigger(Q.prototype.k.St,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.P.length;a<b;a++)d=this.P[a],d.mE&&
d.mE();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ta(!1);this.wc&&AppMobi.webview.execute("onGameReady();")};f.prototype.ta=function(a,b,c){if(this.Ea){var k=Xa();if(c||!this.Gk||a){a||(d?this.ys=d(this.zx):this.Ys=setTimeout(this.zx,this.of?1:16));b=b||k;var p=this.Gc;((c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.kd)||this.qf)&&0<this.Wf&&(p=this.Wf);0<p&&(!this.Vg||
window.self!==window.top)&&(p=window.innerHeight,this.hj===window.innerWidth&&this.gj===p||this.setSize(l(),h()));this.ua||(c?(this.Wm||(this.Lq=jQuery(this.canvas).css("margin")||"0",this.Wm=!0),this.Ck||this.pf||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.Wm?(this.Ck||this.pf||jQuery(this.canvas).css("margin",this.Lq),this.Lq="",this.Wm=!1,
0===this.Gc&&this.setSize(Math.round(this.xw/this.devicePixelRatio),Math.round(this.ww/this.devicePixelRatio),!0)):(this.xw=this.width,this.ww=this.height));this.cj&&(c=this.zu(),this.lj=this.La,c&&(this.cj=!1,this.La=1,this.trigger(Q.prototype.k.St,null)));this.dE(b);!this.V&&!this.jd||this.Ar||this.Al||a||(this.V=!1,this.G?this.Ab():this.Uc(),this.yl&&(this.canvas&&this.canvas.toDataURL&&(this.ox=this.canvas.toDataURL(this.yl[0],this.yl[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.ox),this.trigger(Q.prototype.k.Az,
null)),this.yl=null));this.aG||(this.Vd++,this.Ch++,this.cn++);this.Yk+=Xa()-k}}};f.prototype.dE=function(a){var b,d,c,k,p,e,n,f;1E3<=a-this.Uh&&(this.Uh+=1E3,1E3<=a-this.Uh&&(this.Uh=a),this.bn=this.cn,this.cn=0,this.qq=this.Yk,this.Yk=0);0!==this.En&&(b=a-this.En,0>b&&(b=0),this.Mg=b/1E3,.5<this.Mg?this.Mg=0:this.Mg>1/this.mw&&(this.Mg=1/this.mw));this.En=a;this.Lg=this.Mg*this.oh;this.Ob.add(this.Lg);this.yg.add(this.Mg);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
!!document.msFullscreenElement||this.qf)&&!this.kd;2<=this.Gc||a&&0<this.Wf?(b=this.Rb/this.Qb,d=this.width/this.height,c=this.Gc,a&&0<this.Wf&&(c=this.Wf),this.ak=2!==c&&d>b||2===c&&d<b?this.height/this.Qb:this.width/this.Rb,this.Ea&&(this.Ea.Hs(this.Ea.scrollX),this.Ea.Is(this.Ea.scrollY))):this.ak=this.Tg?this.devicePixelRatio:1;this.Dc();this.Qd++;this.Bf.NE();this.Qd--;this.Dc();this.Qd++;d=this.vw.ye();a=0;for(b=d.length;a<b;a++)d[a].eG();a=0;for(b=this.P.length;a<b;a++)if(e=this.P[a],!e.R&&
(e.Lb.length||e.mb.length))for(d=0,c=e.n.length;d<c;d++)for(n=e.n[d],k=0,p=n.ba.length;k<p;k++)n.ba[k].ta();a=0;for(b=this.P.length;a<b;a++)if(e=this.P[a],!e.R&&(e.Lb.length||e.mb.length))for(d=0,c=e.n.length;d<c;d++)for(n=e.n[d],k=0,p=n.ba.length;k<p;k++)f=n.ba[k],f.Qw&&f.Qw();d=this.as.ye();a=0;for(b=d.length;a<b;a++)d[a].ta();this.Qd--;this.ID();for(a=0;this.vh&&10>a++;)this.Nu(this.vh);a=0;for(b=this.Rf.length;a<b;a++)this.Rf[a].dr=!1;this.Ea.Ah&&this.Ea.Ah.Wb();J(this.pl);this.Kr=!1;this.Qd++;
a=0;for(b=this.P.length;a<b;a++)if(e=this.P[a],!e.R&&(e.Lb.length||e.mb.length))for(d=0,c=e.n.length;d<c;d++)for(n=e.n[d],k=0,p=n.ba.length;k<p;k++)f=n.ba[k],f.Mj&&f.Mj();d=this.bs.ye();a=0;for(b=d.length;a<b;a++)d[a].Mj();this.Qd--};f.prototype.fh=function(){var a,b,d,c,k,p,e,n,f;a=0;for(b=this.P.length;a<b;a++)if(e=this.P[a],!e.R)for(d=0,c=e.n.length;d<c;d++)if(n=e.n[d],n.fh&&n.fh(),n.ba)for(k=0,p=n.ba.length;k<p;k++)f=n.ba[k],f.fh&&f.fh()};f.prototype.Nu=function(a){var b=this.Ea;this.Ea.cF();
var d,c,k,p,e,n,f;if(this.G)for(d=0,c=this.P.length;d<c;d++)e=this.P[d],e.R||!e.qi||e.global&&0!==e.n.length||-1!==a.yk.indexOf(e)||e.qi();b==a&&J(this.Bf.yd);J(this.pl);a.Rs();d=0;for(c=this.P.length;d<c;d++)if(e=this.P[d],e.global||e.ma.So)for(a=0,b=e.n.length;a<b;a++)if(n=e.n[a],n.ds&&n.ds(),n.ba)for(k=0,p=n.ba.length;k<p;k++)f=n.ba[k],f.ds&&f.ds();this.Kr=this.V=!0;this.Dc()};f.prototype.nh=function(a){this.as.add(a)};f.prototype.eF=function(a){this.bs.add(a)};f.prototype.le=function(a){return a&&
-1!==a.tj?this.Mg*a.tj:this.Lg};f.prototype.Uc=function(){this.Ea.Uc(this.Ja);this.wc&&this.Ja.present()};f.prototype.Ab=function(){this.Za&&(this.zh=1,this.Ea.Pf(this.G));this.Ea.Ab(this.G);this.G.BE()};f.prototype.jm=function(a){a&&this.Pm.push(a)};f.prototype.Vw=function(a){Ea(this.Pm,a)};f.prototype.Eh=function(a){a=a.toString();return this.hg.hasOwnProperty(a)?this.hg[a]:null};var x=[];f.prototype.Hd=function(a){var b,d;b=a.type.name;var c=null;if(this.yh.hasOwnProperty(b)){if(c=this.yh[b],c.contains(a))return}else c=
x.length?x.pop():new da,this.yh[b]=c;c.add(a);this.Sg=!0;if(a.xc)for(b=0,d=a.siblings.length;b<d;b++)this.Hd(a.siblings[b]);this.qr&&c.Qj.push(a);this.pr||(this.Qd++,this.trigger(Object.getPrototypeOf(a.type.ma).k.Lt,a),this.Qd--)};f.prototype.Dc=function(){if(this.Sg){var a,b,d,c,k,p;this.qr=!0;d=0;for(k=this.Je.length;d<k;++d)for(a=this.Je[d],b=a.type,b.n.push(a),c=0,p=b.mb.length;c<p;++c)b.mb[c].n.push(a),b.mb[c].Jj=!0;J(this.Je);this.iz();Wa(this.yh);this.Sg=this.qr=!1}};f.prototype.iz=function(){for(var a in this.yh)this.yh.hasOwnProperty(a)&&
this.iy(this.yh[a])};f.prototype.iy=function(a){var b=a.ye(),d=b[0].type,c,k,p,e,n,f;Ya(d.n,a);d.Jj=!0;0===d.n.length&&(d.nm=!1);c=0;for(k=d.mb.length;c<k;++c)f=d.mb[c],Ya(f.n,a),f.Jj=!0;c=0;for(k=this.Bf.yd.length;c<k;++c)if(n=this.Bf.yd[c],n.ad.hasOwnProperty(d.index)&&Ya(n.ad[d.index].Xf,a),!d.R)for(p=0,e=d.mb.length;p<e;++p)f=d.mb[p],n.ad.hasOwnProperty(f.index)&&Ya(n.ad[f.index].Xf,a);if(n=b[0].C){if(n.Xd)for(p=n.n,c=0,k=p.length;c<k;++c)e=p[c],a.contains(e)&&(e.Fa(),n.Bc.update(e,e.sd,null),
e.sd.set(0,0,-1,-1));Ya(n.n,a);n.sl(0)}for(c=0;c<b.length;++c)this.hy(b[c],d);a.clear();x.push(a);this.V=!0};f.prototype.hy=function(a,b){var d,c,k;d=0;for(c=this.Pm.length;d<c;++d)this.Pm[d](a);a.fe&&b.dk.update(a,a.fe,null);(d=a.C)&&d.Dj(a,!0);if(a.ba)for(d=0,c=a.ba.length;d<c;++d)k=a.ba[d],k.md&&k.md(),k.behavior.bl.remove(a);this.vw.remove(a);this.as.remove(a);this.bs.remove(a);a.md&&a.md();this.hg.hasOwnProperty(a.uid.toString())&&delete this.hg[a.uid.toString()];this.Sn--;100>b.Mm.length&&b.Mm.push(a)};
f.prototype.rq=function(a,b,d,c){if(a.R){var k=C(Math.random()*a.pj.length);return this.rq(a.pj[k],b,d,c)}return a.ie?this.Kg(a.ie,b,!1,d,c,!1):null};var H=[];f.prototype.Kg=function(a,b,d,c,k,p){var e,n,f,q;if(!a)return null;var g=this.P[a[1]],u=g.ma.Ug;if(this.cj&&u&&!g.rr||u&&!this.G&&11===a[0][11])return null;var r=b;u||(b=null);var m;g.Mm.length?(m=g.Mm.pop(),m.Vb=!0,g.ma.J.call(m,g)):(m=new g.ma.J(g),m.Vb=!1);!d||p||this.hg.hasOwnProperty(a[2].toString())?m.uid=this.cl++:m.uid=a[2];this.hg[m.uid.toString()]=
m;m.Tw=this.qw++;m.Jh=g.n.length;e=0;for(n=this.Je.length;e<n;++e)this.Je[e].type===g&&m.Jh++;m.tk=Fb;m.toString=Gb;f=a[3];if(m.Vb)Wa(m.U);else{m.U={};if("undefined"!==typeof cr_is_preview)for(m.uv=[],m.uv.length=f.length,e=0,n=f.length;e<n;e++)m.uv[e]=f[e][1];m.fc=[];m.fc.length=f.length}e=0;for(n=f.length;e<n;e++)m.fc[e]=f[e][0];if(u){var h=a[0];m.x=ia(c)?h[0]:c;m.y=ia(k)?h[1]:k;m.z=h[2];m.width=h[3];m.height=h[4];m.depth=h[5];m.u=h[6];m.opacity=h[7];m.Hc=h[8];m.Ic=h[9];m.Ec=h[10];e=h[11];!this.G&&
g.qa.length&&(m.Ec=e);m.ek=fb(m.Ec);this.T&&gb(m,m.Ec,this.T);if(m.Vb){e=0;for(n=h[12].length;e<n;e++)for(f=0,q=h[12][e].length;f<q;f++)m.lb[e][f]=h[12][e][f];m.Ua.set(0,0,0,0);m.fe.set(0,0,-1,-1);m.sd.set(0,0,-1,-1);m.Xb.ji(m.Ua);J(m.fq)}else{m.lb=h[12].slice(0);e=0;for(n=m.lb.length;e<n;e++)m.lb[e]=h[12][e].slice(0);m.Na=[];m.Bg=[];m.Bg.length=g.qa.length;m.Ua=new ua(0,0,0,0);m.fe=new ua(0,0,-1,-1);m.sd=new ua(0,0,-1,-1);m.Xb=new va;m.fq=[];m.K=Jb;m.uB=Kb;m.ac=Lb;m.Fa=Mb;m.Qx=Nb;m.mt=Ob;m.lf=Pb}m.Nj=
!1;m.Dx=0;m.Cx=0;m.Bx=null;14===h.length&&(m.Nj=!0,m.Dx=h[13][0],m.Cx=h[13][1],m.Bx=h[13][2]);e=0;for(n=g.qa.length;e<n;e++)m.Bg[e]=!0;m.qg=!0;m.$e=Qb;m.$e();m.Sx=!!m.Na.length;m.vm=!0;m.mq=!0;g.mm=!0;m.visible=!0;m.tj=-1;m.C=b;m.bf=b.n.length;m.zh=0;"undefined"===typeof m.Aa&&(m.Aa=null);this.V=m.Jd=!0}var l;J(H);e=0;for(n=g.mb.length;e<n;e++)H.push.apply(H,g.mb[e].Lb);H.push.apply(H,g.Lb);if(m.Vb)for(e=0,n=H.length;e<n;e++){var A=H[e];l=m.ba[e];l.Vb=!0;A.behavior.J.call(l,A,m);h=a[4][e];f=0;for(q=
h.length;f<q;f++)l.A[f]=h[f];l.H();A.behavior.bl.add(m)}else for(m.ba=[],e=0,n=H.length;e<n;e++)A=H[e],l=new A.behavior.J(A,m),l.Vb=!1,l.A=a[4][e].slice(0),l.H(),m.ba.push(l),A.behavior.bl.add(m);h=a[5];if(m.Vb)for(e=0,n=h.length;e<n;e++)m.A[e]=h[e];else m.A=h.slice(0);this.Je.push(m);this.Sg=!0;b&&(b.$j(m,!0),1!==b.nd||1!==b.od)&&(g.nm=!0);this.Sn++;if(g.xc){if(m.xc=!0,m.Vb?J(m.siblings):m.siblings=[],!d&&!p){e=0;for(n=g.zd.length;e<n;e++)if(g.zd[e]!==g){if(!g.zd[e].ie)return null;m.siblings.push(this.Kg(g.zd[e].ie,
r,!1,u?m.x:c,u?m.y:k,!0))}e=0;for(n=m.siblings.length;e<n;e++)for(m.siblings[e].siblings.push(m),f=0;f<n;f++)e!==f&&m.siblings[e].siblings.push(m.siblings[f])}}else m.xc=!1,m.siblings=null;m.H();e=0;for(n=m.ba.length;e<n;e++)m.ba[e].xE&&m.ba[e].xE();return m};f.prototype.Qi=function(a){var b,d;b=0;for(d=this.Ea.ra.length;b<d;b++){var c=this.Ea.ra[b];if(ib(c.name,a))return c}return null};f.prototype.kf=function(a){a=C(a);0>a&&(a=0);a>=this.Ea.ra.length&&(a=this.Ea.ra.length-1);return this.Ea.ra[a]};
f.prototype.kn=function(a){return ja(a)?this.kf(a):this.Qi(a.toString())};f.prototype.nq=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].X().aa=!0};f.prototype.ml=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].ml()};f.prototype.re=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].re()};f.prototype.qd=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].qd()};f.prototype.Ox=function(a){if(a.mm){var b,d,c=a.n;b=0;for(d=c.length;b<d;++b)c[b].mt();c=this.Je;b=0;for(d=c.length;b<d;++b)c[b].type===
a&&c[b].mt();a.mm=!1}};f.prototype.Qq=function(a,b,d,c){var k,e,p=a?1!==a.nd||1!==a.od:!1;if(b.R)for(a=0,k=b.pj.length;a<k;++a)e=b.pj[a],p||e.nm?Ca(c,e.n):(this.Ox(e),e.dk.vo(d,c));else p||b.nm?Ca(c,b.n):(this.Ox(b),b.dk.vo(d,c))};f.prototype.Wq=function(a,b,d,c){var k,e;k=0;for(e=b.length;k<e;++k)this.Qq(a,b[k],d,c)};f.prototype.jv=function(a,b,d){var c=this.Qs;c&&this.Wq(a,c.Qn,b,d)};f.prototype.mD=function(a,b,d){var c=this.Jv;c&&this.Wq(a,c.Qn,b,d)};f.prototype.Kj=function(a,b,d,c){var k=a.X(),
e,p,n,f,q,g;if(k.aa)for(c||(k.aa=!1,J(k.n)),e=0,f=a.n.length;e<f;e++){if(n=a.n[e],n.Fa(),q=n.C.zb(b,d,!0),g=n.C.zb(b,d,!1),n.ac(q,g)){if(c)return!1;k.n.push(n)}}else{e=p=0;for(f=k.n.length;e<f;e++)if(n=k.n[e],n.Fa(),q=n.C.zb(b,d,!0),g=n.C.zb(b,d,!1),n.ac(q,g)){if(c)return!1;k.n[p]=k.n[e];p++}c||(k.n.length=p)}a.ae();return c?!0:k.sn()};f.prototype.Nc=function(a,b){if(!(a&&b&&a!==b&&a.Jd&&b.Jd))return!1;a.Fa();b.Fa();var d=a.C,c=b.C,k,e,p,n,f,q,g,m;if(d===c||d.nd===c.nd&&c.od===c.od&&d.scale===c.scale&&
d.u===c.u&&d.Qc===c.Qc){if(!a.Ua.wv(b.Ua)||!a.Xb.vv(b.Xb)||a.Nj&&b.Nj)return!1;if(a.Nj)return this.xx(a,b);if(b.Nj)return this.xx(b,a);g=a.Aa&&!a.Aa.Oh();k=b.Aa&&!b.Aa.Oh();if(!g&&!k)return!0;g?(a.Aa.Gg(a.width,a.height,a.u),g=a.Aa):(this.We.Hj(a.Xb,a.x,a.y,a.width,a.height),g=this.We);k?(b.Aa.Gg(b.width,b.height,b.u),m=b.Aa):(this.We.Hj(b.Xb,b.x,b.y,b.width,b.height),m=this.We);return g.zk(m,b.x-a.x,b.y-a.y)}g=a.Aa&&!a.Aa.Oh();k=b.Aa&&!b.Aa.Oh();g?(a.Aa.Gg(a.width,a.height,a.u),this.We.gx(a.Aa)):
this.We.Hj(a.Xb,a.x,a.y,a.width,a.height);g=this.We;k?(b.Aa.Gg(b.width,b.height,b.u),this.Ts.gx(b.Aa)):this.Ts.Hj(b.Xb,b.x,b.y,b.width,b.height);m=this.Ts;k=0;for(e=g.rd;k<e;k++)p=2*k,n=p+1,f=g.Xa[p],q=g.Xa[n],g.Xa[p]=d.ob(f+a.x,q+a.y,!0),g.Xa[n]=d.ob(f+a.x,q+a.y,!1);g.Fa();k=0;for(e=m.rd;k<e;k++)p=2*k,n=p+1,f=m.Xa[p],q=m.Xa[n],m.Xa[p]=c.ob(f+b.x,q+b.y,!0),m.Xa[n]=c.ob(f+b.x,q+b.y,!1);m.Fa();return g.zk(m,0,0)};var ba=new va,R=new ua(0,0,0,0),G=[];f.prototype.xx=function(a,b){var d,c,k,e,p=b.Ua,n=
a.x,f=a.y;a.Yu(p,G);var q=b.Aa&&!b.Aa.Oh();d=0;for(c=G.length;d<c;++d)if(k=G[d],e=k.Oa,p.xv(e,n,f)&&(ba.ji(e),ba.offset(n,f),ba.vv(b.Xb)))if(q)if(b.Aa.Gg(b.width,b.height,b.u),k.Re){if(k.Re.zk(b.Aa,b.x-(n+e.left),b.y-(f+e.top)))return J(G),!0}else{if(this.We.Hj(ba,0,0,e.right-e.left,e.bottom-e.top),this.We.zk(b.Aa,b.x,b.y))return J(G),!0}else if(k.Re){if(this.We.Hj(b.Xb,0,0,b.width,b.height),k.Re.zk(this.We,-(n+e.left),-(f+e.top)))return J(G),!0}else return J(G),!0;J(G);return!1};f.prototype.wx=function(a,
b,d,c,k){if(!k||!k.Jd)return!1;k.Fa();R.set(qa(a,d),qa(b,c),pa(a,d),pa(b,c));if(!k.Ua.wv(R))return!1;if(k.Nj){k.Yu(R,G);var e,p,n,f=k.x,q=k.y;k=0;for(e=G.length;k<e;++k)if(p=G[k],n=p.Oa,R.xv(n,f,q)&&(ba.ji(n),ba.offset(f,q),ba.Ak(a,b,d,c)))if(p.Re){if(p.Re.Ak(f+n.left,q+n.top,a,b,d,c))return J(G),!0}else return J(G),!0;J(G);return!1}if(!k.Xb.Ak(a,b,d,c))return!1;if(!k.Aa||k.Aa.Oh())return!0;k.Aa.Gg(k.width,k.height,k.u);return k.Aa.Ak(k.x,k.y,a,b,d,c)};f.prototype.Kx=function(a,b){if(!b)return!1;
var d,c,k,e,p;d=0;for(c=a.Lb.length;d<c;d++)if(a.Lb[d].behavior instanceof b)return!0;if(!a.R)for(d=0,c=a.mb.length;d<c;d++)for(p=a.mb[d],k=0,e=p.Lb.length;k<e;k++)if(p.Lb[k].behavior instanceof b)return!0;return!1};f.prototype.dt=function(a){return this.Kx(a,pc)};f.prototype.et=function(a){return this.Kx(a,qc)};var P=[];f.prototype.gb=function(a){var b,d,c;a.Fa();this.jv(a.C,a.Ua,P);b=0;for(d=P.length;b<d;++b)if(c=P[b],c.U.solidEnabled&&this.Nc(a,c))return J(P),c;J(P);return null};var Z=[];f.prototype.Cf=
function(a,b){var d=null;b&&(d=Z,J(d));a.Fa();this.mD(a.C,a.Ua,P);var c,k,e;c=0;for(k=P.length;c<k;++c)if(e=P[c],e.U.jumpthruEnabled&&this.Nc(a,e))if(b)d.push(e);else return J(P),e;J(P);return d};f.prototype.Td=function(a,b,d,c,k,e){c=c||50;var p=a.x,n=a.y,f,q=null,g=null;for(f=0;f<c;f++)if(a.x=p+b*f,a.y=n+d*f,a.K(),!this.Nc(a,q)&&((q=this.gb(a))&&(g=q),!q&&(k&&(e?q=this.Nc(a,e)?e:null:q=this.Cf(a),q&&(g=q)),!q)))return g&&this.ws(a,b,d,g),!0;a.x=p;a.y=n;a.K();return!1};f.prototype.ws=function(a,
b,d,c){var k=2,e,p=!1;e=!1;for(var n=a.x,f=a.y;16>=k;)e=1/k,k*=2,a.x+=b*e*(p?1:-1),a.y+=d*e*(p?1:-1),a.K(),this.Nc(a,c)?e=p=!0:(e=p=!1,n=a.x,f=a.y);e&&(a.x=n,a.y=f,a.K())};f.prototype.xs=function(a,b){var d=ia(b)?100:b,c=0,k=a.x,e=a.y,p=0,n=0,f=0,q=this.gb(a);if(!q)return!0;for(;c<=d;){switch(p){case 0:n=0;f=-1;c++;break;case 1:n=1;f=-1;break;case 2:n=1;f=0;break;case 3:f=n=1;break;case 4:n=0;f=1;break;case 5:n=-1;f=1;break;case 6:n=-1;f=0;break;case 7:f=n=-1}p=(p+1)%8;a.x=C(k+n*c);a.y=C(e+f*c);a.K();
if(!this.Nc(a,q)&&(q=this.gb(a),!q))return!0}a.x=k;a.y=e;a.K();return!1};f.prototype.wf=function(a,b){a.Jd&&b.Jd&&this.pl.push([a,b])};f.prototype.IB=function(a,b){var d,c,k;d=0;for(c=this.pl.length;d<c;d++)if(k=this.pl[d],k[0]==a&&k[1]==b||k[0]==b&&k[1]==a)return!0;return!1};f.prototype.GB=function(a,b,d){var c=a.x,k=a.y,e=pa(10,Sa(b,d,c,k)),p=Ma(b,d,c,k),n=this.gb(a);if(!n)return Ia(p+ra);var f=n,q,g,m,u,r=M(5);for(q=1;36>q;q++)if(g=p-q*r,a.x=b+Math.cos(g)*e,a.y=d+Math.sin(g)*e,a.K(),!this.Nc(a,
f)&&(f=this.gb(a),!f)){m=g;break}36===q&&(m=Ia(p+ra));f=n;for(q=1;36>q;q++)if(g=p+q*r,a.x=b+Math.cos(g)*e,a.y=d+Math.sin(g)*e,a.K(),!this.Nc(a,f)&&(f=this.gb(a),!f)){u=g;break}36===q&&(u=Ia(p+ra));a.x=c;a.y=k;a.K();if(u===m)return u;a=Na(u,m)/2;a=Pa(u,m)?Ia(m+a+ra):Ia(u+a);m=Math.cos(p);p=Math.sin(p);u=Math.cos(a);a=Math.sin(a);b=m*u+p*a;return Ma(0,0,m-2*b*u,p-2*b*a)};var T=-1;f.prototype.trigger=function(a,b,d){if(!this.Ea)return!1;var c=this.Ea.Ah;if(!c)return!1;var k=!1,e,p,n;T++;var f=c.vq;p=
0;for(n=f.length;p<n;++p)e=this.Hx(a,b,f[p],d),k=k||e;e=this.Hx(a,b,c,d);T--;return k||e};f.prototype.Hx=function(a,b,d,c){var k=!1,e,p,n,f;if(b)for(n=this.bt(a,b,b.type.name,d,c),k=k||n,f=b.type.mb,e=0,p=f.length;e<p;++e)n=this.bt(a,b,f[e].name,d,c),k=k||n;else n=this.bt(a,b,"system",d,c),k=k||n;return k};f.prototype.bt=function(a,b,d,c,k){var e,p=!1,n=!1,n="undefined"!==typeof k,f=(n?c.Su:c.Ix)[d];if(!f)return p;var q=null;c=0;for(e=f.length;c<e;++c)if(f[c].method==a){q=f[c].nk;break}if(!q)return p;
var g;n?g=q[k]:g=q;if(!g)return null;c=0;for(e=g.length;c<e;c++)a=g[c][0],k=g[c][1],n=this.WC(b,d,a,k),p=p||n;return p};f.prototype.WC=function(a,b,d,c){var k,e,p=!1;this.ct++;var n=this.eb().cb;n&&this.ml(n.ih);var f=1<this.ct;this.ml(d.ih);f&&this.EE();var q=this.so(d);q.cb=d;a&&(k=this.types[b].X(),k.aa=!1,J(k.n),k.n[0]=a,this.types[b].ae());a=!0;if(d.parent){b=q.vx;for(k=d.parent;k;)b.push(k),k=k.parent;b.reverse();k=0;for(e=b.length;k<e;k++)if(!b[k].PE()){a=!1;break}}a&&(this.Ch++,d.qe?d.OE(c):
d.Wb(),p=p||q.Th);this.oo();f&&this.wE();this.qd(d.ih);n&&this.qd(n.ih);this.Sg&&0===this.Qd&&0===T&&!this.sr&&this.Dc();this.ct--;return p};f.prototype.Qg=function(){var a=this.eb();return a.cb.$b[a.Zb]};f.prototype.gD=function(){var a=this.eb();return a.cb.Yd[a.ed]};f.prototype.EE=function(){this.Ln++;this.Ln>=this.Rr.length&&this.Rr.push([])};f.prototype.wE=function(){this.Ln--};f.prototype.Zu=function(){return this.Rr[this.Ln]};f.prototype.so=function(a){this.Sm++;this.Sm>=this.Eq.length&&this.Eq.push(new Rb);
var b=this.eb();b.reset(a);return b};f.prototype.oo=function(){this.Sm--};f.prototype.eb=function(){return this.Eq[this.Sm]};f.prototype.Aj=function(a){this.Nn++;this.Nn>=this.nj.length&&this.nj.push(aa({name:a,index:0,Wa:!1}));var b=this.$u();b.name=a;b.index=0;b.Wa=!1;return b};f.prototype.yj=function(){this.Nn--};f.prototype.$u=function(){return this.nj[this.Nn]};f.prototype.av=function(a,b){for(var d,c,k,e,p,n;b;){d=0;for(c=b.we.length;d<c;d++)if(n=b.we[d],n instanceof Sb&&ib(a,n.name))return n;
b=b.parent}d=0;for(c=this.Rf.length;d<c;d++)for(p=this.Rf[d],k=0,e=p.Ng.length;k<e;k++)if(n=p.Ng[k],n instanceof Sb&&ib(a,n.name))return n;return null};f.prototype.dv=function(a){var b,d;b=0;for(d=this.Oe.length;b<d;b++)if(this.Oe[b].ya===a)return this.Oe[b];return null};f.prototype.rk=function(a){var b,d;b=0;for(d=this.P.length;b<d;b++)if(this.P[b].ya===a)return this.P[b];return null};f.prototype.jD=function(a){var b,d;b=0;for(d=this.Ai.length;b<d;b++)if(this.Ai[b].ya===a)return this.Ai[b];return null};
f.prototype.TB=function(a,b){this.yl=[a,b];this.V=!0};f.prototype.ID=function(){var a=this,d=this.Eo,k=this.$f,p=this.Rk,n=!1;this.mx&&(n=!0,d="__c2_continuouspreview",this.mx=!1);if(d.length){this.Dc();k=this.TE();if(window.indexedDB&&!this.jd)e(d,k,function(){ga("Saved state to IndexedDB storage ("+k.length+" bytes)");a.$f=k;a.trigger(Q.prototype.k.Cp,null);a.$f="";n&&b()},function(c){try{localStorage.setItem("__c2save_"+d,k),ga("Saved state to WebStorage ("+k.length+" bytes)"),a.$f=k,a.trigger(Q.prototype.k.Cp,
null),a.$f="",n&&b()}catch(e){ga("Failed to save game state: "+c+"; "+e)}});else try{localStorage.setItem("__c2save_"+d,k),ga("Saved state to WebStorage ("+k.length+" bytes)"),a.$f=k,this.trigger(Q.prototype.k.Cp,null),a.$f="",n&&b()}catch(f){ga("Error saving to WebStorage: "+f)}this.Kc=this.Rk=this.Eo=""}if(p.length){if(window.indexedDB&&!this.jd)c(p,function(b){b?(a.Kc=b,ga("Loaded state from IndexedDB storage ("+a.Kc.length+" bytes)")):(a.Kc=localStorage.getItem("__c2save_"+p)||"",ga("Loaded state from WebStorage ("+
a.Kc.length+" bytes)"));a.Al=!1;a.Kc.length||a.trigger(Q.prototype.k.Ap,null)},function(){a.Kc=localStorage.getItem("__c2save_"+p)||"";ga("Loaded state from WebStorage ("+a.Kc.length+" bytes)");a.Al=!1;a.Kc.length||a.trigger(Q.prototype.k.Ap,null)});else{try{this.Kc=localStorage.getItem("__c2save_"+p)||"",ga("Loaded state from WebStorage ("+this.Kc.length+" bytes)")}catch(q){this.Kc=""}this.Al=!1;a.Kc.length||a.trigger(Q.prototype.k.Ap,null)}this.Eo=this.Rk=""}this.Kc.length&&(this.Dc(),this.cE(this.Kc),
this.$f=this.Kc,this.trigger(Q.prototype.k.Pz,null),this.Kc=this.$f="")};f.prototype.TE=function(){var a,b,d,c,k,e,p,n={c2save:!0,version:1,rt:{time:this.Ob.S,walltime:this.yg.S,timescale:this.oh,tickcount:this.Vd,execcount:this.Ch,next_uid:this.cl,running_layout:this.Ea.ya,start_time_offset:Date.now()-this.Xo},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.P.length;a<b;a++)if(k=this.P[a],!k.R&&!this.dt(k)){e={instances:[]};Va(k.U)&&(e.ex=t(k.U));d=0;for(c=k.n.length;d<
c;d++)e.instances.push(this.Gs(k.n[d]));n.types[k.ya.toString()]=e}a=0;for(b=this.Oe.length;a<b;a++)d=this.Oe[a],n.layouts[d.ya.toString()]=d.Pa();c=n.events.groups;a=0;for(b=this.Ai.length;a<b;a++)d=this.Ai[a],c[d.ya.toString()]=this.Si[d.uk].Gh;b=n.events.cnds;for(p in this.Ei)this.Ei.hasOwnProperty(p)&&(a=this.Ei[p],Va(a.U)&&(b[p]={ex:t(a.U)}));b=n.events.acts;for(p in this.yi)this.yi.hasOwnProperty(p)&&(a=this.yi[p],Va(a.U)&&(b[p]={ex:a.U}));b=n.events.vars;for(p in this.Rj)this.Rj.hasOwnProperty(p)&&
(a=this.Rj[p],a.An||a.parent&&!a.Jk||(b[p]=a.data));n.system=this.Bf.Pa();return JSON.stringify(n)};f.prototype.Uw=function(){var a,b,d,c,k,e;this.hg={};a=0;for(b=this.P.length;a<b;a++)if(d=this.P[a],!d.R)for(c=0,k=d.n.length;c<k;c++)e=d.n[c],this.hg[e.uid.toString()]=e};f.prototype.cE=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.xn=!0;var b=a.rt;this.Ob.reset();this.Ob.S=b.time;this.yg.reset();this.yg.S=b.walltime||0;this.oh=b.timescale;this.Vd=b.tickcount;this.Ch=b.execcount;this.Xo=
Date.now()-b.start_time_offset;var d=b.running_layout;if(d!==this.Ea.ya)if(d=this.dv(d))this.Nu(d);else return;var c,k,e,p,n,f,q;f=a.types;for(k in f)if(f.hasOwnProperty(k)&&(p=this.rk(parseInt(k,10)))&&!p.R&&!this.dt(p)){f[k].ex?p.U=f[k].ex:Wa(p.U);n=p.n;e=f[k].instances;d=0;for(c=qa(n.length,e.length);d<c;d++)this.Hn(n[d],e[d]);d=e.length;for(c=n.length;d<c;d++)this.Hd(n[d]);d=n.length;for(c=e.length;d<c;d++){n=null;if(p.ma.Ug&&(n=this.Ea.ln(e[d].w.l),!n))continue;n=this.Kg(p.ie,n,!1,0,0,!0);this.Hn(n,
e[d])}p.Jj=!0}this.Dc();this.Uw();c=a.layouts;for(k in c)c.hasOwnProperty(k)&&(d=this.dv(parseInt(k,10)))&&d.Va(c[k]);c=a.events.groups;for(k in c)c.hasOwnProperty(k)&&(d=this.jD(parseInt(k,10)))&&this.Si[d.uk]&&this.Si[d.uk].Io(c[k]);d=a.events.cnds;for(k in d)d.hasOwnProperty(k)&&this.Ei.hasOwnProperty(k)&&(this.Ei[k].U=d[k].ex);d=a.events.acts;for(k in d)d.hasOwnProperty(k)&&this.yi.hasOwnProperty(k)&&(this.yi[k].U=d[k].ex);d=a.events.vars;for(k in d)d.hasOwnProperty(k)&&this.Rj.hasOwnProperty(k)&&
(this.Rj[k].data=d[k]);this.cl=b.next_uid;this.xn=!1;this.Bf.Va(a.system);d=0;for(c=this.P.length;d<c;d++)if(p=this.P[d],!p.R&&!this.dt(p))for(k=0,a=p.n.length;k<a;k++){n=p.n[k];if(p.xc)for(f=n.tk(),J(n.siblings),b=0,e=p.zd.length;b<e;b++)q=p.zd[b],p!==q&&n.siblings.push(q.n[f]);n.Ce&&n.Ce();if(n.ba)for(b=0,e=n.ba.length;b<e;b++)f=n.ba[b],f.Ce&&f.Ce()}this.V=!0}};f.prototype.Gs=function(a,b){var d,c,k,e,p;e=a.type;k=e.ma;var n={};b?n.c2=!0:n.uid=a.uid;Va(a.U)&&(n.ex=t(a.U));if(a.fc&&a.fc.length)for(n.ivs=
{},d=0,c=a.fc.length;d<c;d++)n.ivs[a.type.nr[d].toString()]=a.fc[d];if(k.Ug){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.C.ya,zi:a.lf()};0!==a.u&&(k.a=a.u);1!==a.opacity&&(k.o=a.opacity);.5!==a.Hc&&(k.hX=a.Hc);.5!==a.Ic&&(k.hY=a.Ic);0!==a.Ec&&(k.bm=a.Ec);a.visible||(k.v=a.visible);a.Jd||(k.ce=a.Jd);-1!==a.tj&&(k.mts=a.tj);if(e.qa.length)for(k.fx=[],d=0,c=e.qa.length;d<c;d++)p=e.qa[d],k.fx.push({name:p.name,active:a.Bg[p.index],params:a.lb[p.index]});n.w=k}if(a.ba&&a.ba.length)for(n.behs={},d=0,c=a.ba.length;d<
c;d++)e=a.ba[d],e.Pa&&(n.behs[e.type.ya.toString()]=e.Pa());a.Pa&&(n.data=a.Pa());return n};f.prototype.lD=function(a,b){var d,c;d=0;for(c=a.nr.length;d<c;d++)if(a.nr[d]===b)return d;return-1};f.prototype.fD=function(a,b){var d,c;d=0;for(c=a.ba.length;d<c;d++)if(a.ba[d].type.ya===b)return d;return-1};f.prototype.Hn=function(a,b,d){var c,k,e,p,n;n=a.type;p=n.ma;if(d){if(!b.c2)return}else a.uid=b.uid;b.ex?a.U=b.ex:Wa(a.U);if(k=b.ivs)for(c in k)k.hasOwnProperty(c)&&(e=this.lD(n,parseInt(c,10)),0>e||
e>=a.fc.length||(a.fc[e]=k[c]));if(p.Ug){e=b.w;a.C.ya!==e.l&&(k=a.C,a.C=this.Ea.ln(e.l),a.C?(k.Dj(a,!0),a.C.$j(a,!0),a.K(),a.C.sl(0)):(a.C=k,d||this.Hd(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.bf=e.zi;a.u=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Hc=e.hasOwnProperty("hX")?e.hX:.5;a.Ic=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.Jd=e.hasOwnProperty("ce")?e.ce:!0;a.tj=e.hasOwnProperty("mts")?e.mts:-1;a.Ec=e.hasOwnProperty("bm")?e.bm:0;a.ek=
fb(a.Ec);this.T&&gb(a,a.Ec,this.T);a.K();if(e.hasOwnProperty("fx"))for(d=0,k=e.fx.length;d<k;d++)p=n.Rq(e.fx[d].name),0>p||(a.Bg[p]=e.fx[d].active,a.lb[p]=e.fx[d].params);a.$e()}if(n=b.behs)for(c in n)n.hasOwnProperty(c)&&(d=this.fD(a,parseInt(c,10)),0>d||a.ba[d].Va(n[c]));b.data&&a.Va(b.data)};Tb=function(a){return new f(document.getElementById(a))};Ub=function(a,b){return new f({dc:!0,width:a,height:b})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.bk=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a}})();window.cr_getC2Runtime=function(){var l=document.getElementById("c2canvas");return l?l.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(l,h){var f=window.cr_getC2Runtime();f&&f.TB(l,h)};window.cr_sizeCanvas=function(l,h){if(0!==l&&0!==h){var f=window.cr_getC2Runtime();f&&f.setSize(l,h)}};window.cr_setSuspended=function(l){var h=window.cr_getC2Runtime();h&&h.setSuspended(l)};
(function(){function l(a,b){this.b=a;this.Ah=null;this.scrollX=this.b.Rb/2;this.scrollY=this.b.Qb/2;this.scale=1;this.u=0;this.Ni=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Lx=b[3];this.jx=b[4];this.ya=b[5];var d=b[6],c,e;this.ra=[];this.yk=[];c=0;for(e=d.length;c<e;c++){var f=new Vb(this,d[c]);f.sw=c;this.ra.push(f)}d=b[7];this.Lh=[];c=0;for(e=d.length;c<e;c++){var f=d[c],g=this.b.P[f[1]];g.ie||(g.ie=f);this.Lh.push(f);-1===this.yk.indexOf(g)&&this.yk.push(g)}this.qa=[];this.Na=[];this.qg=
!0;this.lb=[];c=0;for(e=b[8].length;c<e;c++)this.qa.push({id:b[8][c][0],name:b[8][c][1],Ib:-1,Ub:!1,Ya:!0,index:c}),this.lb.push(b[8][c][2].slice(0));this.$e();this.te=new ua(0,0,1,1);this.zs=new ua(0,0,1,1);this.gh={}}function h(a,b){return a.bf-b.bf}function f(a,b){this.Db=a;this.b=a.b;this.n=[];this.scale=1;this.u=0;this.Of=!1;this.vg=new ua(0,0,0,0);this.Ex=new va;this.Qa=this.Ha=this.Ra=this.Ga=0;this.ri=!1;this.zg=-1;this.oq=0;this.name=b[0];this.index=b[1];this.ya=b[2];this.visible=b[3];this.Ge=
b[4];this.Ze=b[5];this.nd=b[6];this.od=b[7];this.opacity=b[8];this.an=b[9];this.Xd=b[10];this.Qc=b[11];this.Ec=b[12];this.pC=b[13];this.ek="source-over";this.Fc=this.Lc=0;this.Bc=null;this.ag=g();this.Se=!0;this.ij=new ua(0,0,-1,-1);this.tc=new ua(0,0,-1,-1);this.Xd&&(this.Bc=new eb(this.b.Rb,this.b.Qb));this.xf=!1;var d=b[14],c,e;this.rx=[];this.Pd=[];this.hk=[];c=0;for(e=d.length;c<e;c++){var f=d[c],m=this.b.P[f[1]];m.ie||(m.ie=f,m.QB=this.index);this.Pd.push(f);-1===this.Db.yk.indexOf(m)&&this.Db.yk.push(m)}Ba(this.rx,
this.Pd);this.qa=[];this.Na=[];this.qg=!0;this.lb=[];c=0;for(e=b[15].length;c<e;c++)this.qa.push({id:b[15][c][0],name:b[15][c][1],Ib:-1,Ub:!1,Ya:!0,index:c}),this.lb.push(b[15][c][2].slice(0));this.$e();this.te=new ua(0,0,1,1);this.zs=new ua(0,0,1,1)}function g(){return b.length?b.pop():[]}function m(a){J(a);b.push(a)}l.prototype.SE=function(a){var b=a.type.ya.toString();this.gh.hasOwnProperty(b)||(this.gh[b]=[]);this.gh[b].push(this.b.Gs(a))};l.prototype.nv=function(){var a=this.ra[0];return!a.Ze&&
1===a.opacity&&!a.an&&a.visible};l.prototype.$e=function(){J(this.Na);this.qg=!0;var a,b,d;a=0;for(b=this.qa.length;a<b;a++)d=this.qa[a],d.Ya&&(this.Na.push(d),d.Ub||(this.qg=!1))};l.prototype.jn=function(a){var b,d,c;b=0;for(d=this.qa.length;b<d;b++)if(c=this.qa[b],c.name===a)return c;return null};var e=[],c=!0;l.prototype.Rs=function(){this.jx&&(this.Ah=this.b.Fq[this.jx],this.Ah.gt());this.b.Ea=this;this.scrollX=this.b.Rb/2;this.scrollY=this.b.Qb/2;var a,b,d,n,f,g,m;a=0;for(d=this.b.P.length;a<
d;a++)if(b=this.b.P[a],!b.R)for(f=b.n,b=0,n=f.length;b<n;b++)if(g=f[b],g.C){var p=g.C.sw;p>=this.ra.length&&(p=this.ra.length-1);g.C=this.ra[p];-1===g.C.n.indexOf(g)&&g.C.n.push(g);g.C.ri=!0}if(!c)for(a=0,d=this.ra.length;a<d;++a)this.ra[a].n.sort(h);J(e);this.DB();a=0;for(d=this.ra.length;a<d;a++)g=this.ra[a],g.MB(),g.kp();f=!1;if(!this.Ni){for(m in this.gh)if(this.gh.hasOwnProperty(m)&&(b=this.b.rk(parseInt(m,10)))&&!b.R&&this.b.et(b)){n=this.gh[m];a=0;for(d=n.length;a<d;a++){g=null;if(b.ma.Ug&&
(g=this.ln(n[a].w.l),!g))continue;g=this.b.Kg(b.ie,g,!1,0,0,!0);this.b.Hn(g,n[a]);f=!0;e.push(g)}J(n)}a=0;for(d=this.ra.length;a<d;a++)this.ra[a].n.sort(h),this.ra[a].ri=!0}f&&(this.b.Dc(),this.b.Uw());for(a=0;a<e.length;a++)if(g=e[a],g.type.xc)for(d=g.tk(),b=0,n=g.type.zd.length;b<n;b++)m=g.type.zd[b],g.type!==m&&(m.n.length>d?g.siblings.push(m.n[d]):m.ie&&(f=this.b.Kg(m.ie,g.C,!0,g.x,g.y,!0),this.b.Dc(),m.jp(),g.siblings.push(f),e.push(f)));a=0;for(d=this.Lh.length;a<d;a++)this.b.Kg(this.Lh[a],
null,!0);this.b.vh=null;this.b.Dc();if(this.b.Ja&&!this.b.ua)for(a=0,d=this.b.P.length;a<d;a++)m=this.b.P[a],!m.R&&m.n.length&&m.zj&&m.zj(this.b.Ja);a=0;for(d=e.length;a<d;a++)g=e[a],this.b.trigger(Object.getPrototypeOf(g.type.ma).k.If,g);J(e);this.b.xn||this.b.trigger(Q.prototype.k.Rt,null);this.Ni=!1};l.prototype.LB=function(){var a,b,d,c,e;b=a=0;for(d=this.Lh.length;a<d;a++)c=this.Lh[a],e=this.b.P[c[1]],e.global?e.xc||this.b.Kg(c,null,!0):(this.Lh[b]=c,b++);za(this.Lh,b)};l.prototype.cF=function(){this.b.xn||
this.b.trigger(Q.prototype.k.Oz,null);this.b.pr=!0;J(this.b.Bf.yd);var a,b,d,e,f,g;if(!this.Ni)for(a=0,b=this.ra.length;a<b;a++)for(this.ra[a].lt(),f=this.ra[a].n,d=0,e=f.length;d<e;d++)g=f[d],g.type.global||this.b.et(g.type)&&this.SE(g);a=0;for(b=this.ra.length;a<b;a++){f=this.ra[a].n;d=0;for(e=f.length;d<e;d++)g=f[d],g.type.global||this.b.Hd(g);this.b.Dc();J(f);this.ra[a].ri=!0}a=0;for(b=this.b.P.length;a<b;a++)if(f=this.b.P[a],!(f.global||f.ma.Ug||f.ma.So||f.R)){d=0;for(e=f.n.length;d<e;d++)this.b.Hd(f.n[d]);
this.b.Dc()}c=!1;this.b.pr=!1};new ua(0,0,0,0);l.prototype.Uc=function(a){var b,d=a,c=!1,e=!this.b.Nd;e&&(this.b.Gn||(this.b.Gn=document.createElement("canvas"),b=this.b.Gn,b.width=this.b.da,b.height=this.b.ca,this.b.Pv=b.getContext("2d"),c=!0),b=this.b.Gn,d=this.b.Pv,b.width!==this.b.da&&(b.width=this.b.da,c=!0),b.height!==this.b.ca&&(b.height=this.b.ca,c=!0),c&&(d.webkitImageSmoothingEnabled=this.b.ea,d.mozImageSmoothingEnabled=this.b.ea,d.msImageSmoothingEnabled=this.b.ea,d.imageSmoothingEnabled=
this.b.ea));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.aq&&!this.nv()&&d.clearRect(0,0,this.b.da,this.b.ca);var f,g,c=0;for(f=this.ra.length;c<f;c++)g=this.ra[c],g.visible&&0<g.opacity&&11!==g.Ec&&(g.n.length||!g.Ze)?g.Uc(d):g.kp();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};l.prototype.Pf=function(a){a.ax(!0);this.b.Pb||(this.b.Pb=a.Ad(this.b.da,this.b.ca,this.b.ea));if(this.b.Pb.ee!==this.b.da||this.b.Pb.de!==this.b.ca)a.deleteTexture(this.b.Pb),this.b.Pb=a.Ad(this.b.da,
this.b.ca,this.b.ea);a.ve(this.b.Pb);this.b.Nd||a.ng(this.b.da,this.b.ca);var b,d;for(b=this.ra.length-1;0<=b;--b)d=this.ra[b],d.visible&&1===d.opacity&&d.qg&&0===d.Ec&&(d.n.length||!d.Ze)?d.Pf(a):d.kp();a.ax(!1)};l.prototype.Ab=function(a){var b=0<this.Na.length||this.b.Pj||!this.b.Nd||this.b.Za;if(b){this.b.Pb||(this.b.Pb=a.Ad(this.b.da,this.b.ca,this.b.ea));if(this.b.Pb.ee!==this.b.da||this.b.Pb.de!==this.b.ca)a.deleteTexture(this.b.Pb),this.b.Pb=a.Ad(this.b.da,this.b.ca,this.b.ea);a.ve(this.b.Pb);
this.b.Nd||a.ng(this.b.da,this.b.ca)}else this.b.Pb&&(a.ve(null),a.deleteTexture(this.b.Pb),this.b.Pb=null);this.b.aq&&!this.nv()&&a.clear(0,0,0,0);var d,c,e;d=0;for(c=this.ra.length;d<c;d++)e=this.ra[d],e.visible&&0<e.opacity&&(e.n.length||!e.Ze)?e.Ab(a):e.kp();b&&(0===this.Na.length||1===this.Na.length&&this.b.Nd?(1===this.Na.length?(b=this.Na[0].index,a.vd(this.Na[0].Ib),a.Gj(null,1/this.b.da,1/this.b.ca,0,0,1,1,this.scale,this.u,0,0,this.b.da/2,this.b.ca/2,this.b.Ob.S,this.lb[b]),a.ro(this.Na[0].Ib)&&
(this.b.V=!0)):a.vd(0),this.b.Nd||a.ng(this.b.width,this.b.height),a.ve(null),a.$w(!1),a.Ve(1),a.rc(this.b.Pb),a.Yw(),a.ue(),a.Wd(),b=this.b.width/2,d=this.b.height/2,a.Bj(-b,d,b,d,b,-d,-b,-d),a.rc(null),a.$w(!0)):this.Bs(a,null,null,null))};l.prototype.sk=function(){return 0<this.Na.length||this.b.Pj||!this.b.Nd||this.b.Za?this.b.Pb:null};l.prototype.gv=function(){var a=this.ra[0].gd(),b,d,c;b=1;for(d=this.ra.length;b<d;b++)c=this.ra[b],(0!==c.nd||0!==c.od)&&c.gd()<a&&(a=c.gd());return a};l.prototype.Hs=
function(a){if(!this.Lx){var b=1/this.gv()*this.b.da/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.V=!0)};l.prototype.Is=function(a){if(!this.Lx){var b=1/this.gv()*this.b.ca/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.V=!0)};l.prototype.DB=function(){this.Hs(this.scrollX);this.Is(this.scrollY)};l.prototype.Bs=function(a,b,d,c){var e=d?d.Na:b?b.Na:this.Na,f=1,g=0,p=0,q=0,m=this.b.da,h=this.b.ca;d?(f=d.C.gd(),g=d.C.Bb(),
p=d.C.Ga,q=d.C.Ha,m=d.C.Ra,h=d.C.Qa):b&&(f=b.gd(),g=b.Bb(),p=b.Ga,q=b.Ha,m=b.Ra,h=b.Qa);var l=this.b.Mq,t,B,E,x,H=0,ba=1,R,G=this.b.da,P=this.b.ca,Z=G/2,T=P/2,z=b?b.te:this.te,y=b?b.zs:this.zs,F=0,L=0,K=0,I=0,O=G,V=G,S=P,U=P,fa=E=0;x=d?d.C.Bb():0;if(d){t=0;for(B=e.length;t<B;t++)E+=a.qD(e[t].Ib),fa+=a.rD(e[t].Ib);I=d.Ua;F=b.ob(I.left,I.top,!0,!0);K=b.ob(I.left,I.top,!1,!0);O=b.ob(I.right,I.bottom,!0,!0);S=b.ob(I.right,I.bottom,!1,!0);0!==x&&(t=b.ob(I.right,I.top,!0,!0),B=b.ob(I.right,I.top,!1,!0),
L=b.ob(I.left,I.bottom,!0,!0),I=b.ob(I.left,I.bottom,!1,!0),x=Math.min(F,O,t,L),O=Math.max(F,O,t,L),F=x,x=Math.min(K,S,B,I),S=Math.max(K,S,B,I),K=x);F-=E;K-=fa;O+=E;S+=fa;y.left=F/G;y.top=1-K/P;y.right=O/G;y.bottom=1-S/P;L=F=C(F);I=K=C(K);V=O=sa(O);U=S=sa(S);L-=E;I-=fa;V+=E;U+=fa;0>F&&(F=0);0>K&&(K=0);O>G&&(O=G);S>P&&(S=P);0>L&&(L=0);0>I&&(I=0);V>G&&(V=G);U>P&&(U=P);z.left=F/G;z.top=1-K/P;z.right=O/G;z.bottom=1-S/P}else z.left=y.left=0,z.top=y.top=0,z.right=y.right=1,z.bottom=y.bottom=1;fa=d&&(a.kl(e[0].Ib)||
0!==E||0!==fa||1!==d.opacity||d.type.ma.ow)||b&&!d&&1!==b.opacity;a.Yw();if(fa){l[H]||(l[H]=a.Ad(G,P,this.b.ea));if(l[H].ee!==G||l[H].de!==P)a.deleteTexture(l[H]),l[H]=a.Ad(G,P,this.b.ea);a.vd(0);a.ve(l[H]);R=U-I;a.clearRect(L,P-I-R,V-L,R);d?d.Ab(a):(a.rc(this.b.gc),a.Ve(b.opacity),a.ue(),a.translate(-Z,-T),a.Wd(),a.Gd(F,S,O,S,O,K,F,K,z));y.left=y.top=0;y.right=y.bottom=1;d&&(x=z.top,z.top=z.bottom,z.bottom=x);H=1;ba=0}a.Ve(1);E=e.length-1;var Ka=a.vs(e[E].Ib)||!b&&!d&&!this.b.Nd,wa=0;t=0;for(B=e.length;t<
B;t++){l[H]||(l[H]=a.Ad(G,P,this.b.ea));if(l[H].ee!==G||l[H].de!==P)a.deleteTexture(l[H]),l[H]=a.Ad(G,P,this.b.ea);a.vd(e[t].Ib);wa=e[t].index;a.ro(e[t].Ib)&&(this.b.V=!0);0!=t||fa?(a.Gj(c,1/G,1/P,y.left,y.top,y.right,y.bottom,f,g,p,q,(p+m)/2,(q+h)/2,this.b.Ob.S,d?d.lb[wa]:b?b.lb[wa]:this.lb[wa]),a.rc(null),t!==E||Ka?(a.ve(l[H]),R=U-I,x=P-I-R,a.clearRect(L,x,V-L,R)):(d?a.hh(d.Lc,d.Fc):b&&a.hh(b.Lc,b.Fc),a.ve(c)),a.rc(l[ba]),a.ue(),a.translate(-Z,-T),a.Wd(),a.Gd(F,S,O,S,O,K,F,K,z),t!==E||Ka||a.rc(null)):
(a.ve(l[H]),R=U-I,x=P-I-R,a.clearRect(L,x,V-L,R),d?(a.Gj(c,1/d.width,1/d.height,y.left,y.top,y.right,y.bottom,f,g,p,q,(p+m)/2,(q+h)/2,this.b.Ob.S,d.lb[wa]),d.Ab(a)):(a.Gj(c,1/G,1/P,0,0,1,1,f,g,p,q,(p+m)/2,(q+h)/2,this.b.Ob.S,b?b.lb[wa]:this.lb[wa]),a.rc(b?this.b.gc:this.b.Pb),a.ue(),a.translate(-Z,-T),a.Wd(),a.Gd(F,S,O,S,O,K,F,K,z)),y.left=y.top=0,y.right=y.bottom=1,d&&!Ka&&(x=S,S=K,K=x));H=0===H?1:0;ba=0===H?1:0}Ka&&(a.vd(0),d?a.hh(d.Lc,d.Fc):b?a.hh(b.Lc,b.Fc):this.b.Nd||(a.ng(this.b.width,this.b.height),
Z=this.b.width/2,T=this.b.height/2,K=F=0,O=this.b.width,S=this.b.height),a.ve(c),a.rc(l[ba]),a.ue(),a.translate(-Z,-T),a.Wd(),d&&1===e.length&&!fa?a.Gd(F,K,O,K,O,S,F,S,z):a.Gd(F,S,O,S,O,K,F,K,z),a.rc(null))};l.prototype.ln=function(a){var b,d;b=0;for(d=this.ra.length;b<d;b++)if(this.ra[b].ya===a)return this.ra[b];return null};l.prototype.Pa=function(){var a,b,d,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.u,w:this.width,h:this.height,fv:this.Ni,persist:this.gh,fx:[],layers:{}};a=0;for(b=
this.qa.length;a<b;a++)d=this.qa[a],c.fx.push({name:d.name,active:d.Ya,params:this.lb[d.index]});a=0;for(b=this.ra.length;a<b;a++)d=this.ra[a],c.layers[d.ya.toString()]=d.Pa();return c};l.prototype.Va=function(a){var b,d,c,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.u=a.a;this.width=a.w;this.height=a.h;this.gh=a.persist;"undefined"!==typeof a.fv&&(this.Ni=a.fv);var f=a.fx;b=0;for(d=f.length;b<d;b++)if(c=this.jn(f[b].name))c.Ya=f[b].active,this.lb[c.index]=f[b].params;this.$e();b=a.layers;
for(e in b)b.hasOwnProperty(e)&&(a=this.ln(parseInt(e,10)))&&a.Va(b[e])};Hb=l;f.prototype.$e=function(){J(this.Na);this.qg=!0;var a,b,d;a=0;for(b=this.qa.length;a<b;a++)d=this.qa[a],d.Ya&&(this.Na.push(d),d.Ub||(this.qg=!1))};f.prototype.jn=function(a){var b,d,c;b=0;for(d=this.qa.length;b<d;b++)if(c=this.qa[b],c.name===a)return c;return null};f.prototype.MB=function(){var a,b,d,c,f,g;b=a=0;for(d=this.Pd.length;a<d;a++){c=this.Pd[a];f=this.b.P[c[1]];g=this.b.et(f);f=!0;if(!g||this.Db.Ni)c=this.b.Kg(c,
this,!0),e.push(c),c.type.global&&(f=!1,this.hk.push(c.uid));f&&(this.Pd[b]=this.Pd[a],b++)}this.Pd.length=b;this.b.Dc();!this.b.G&&this.qa.length&&(this.Ec=this.pC);this.ek=fb(this.Ec);this.b.T&&gb(this,this.Ec,this.b.T);this.Se=!0};f.prototype.Dj=function(a,b){var d=Da(this.n,a);0>d||(b&&this.Xd&&a.sd&&a.sd.right>=a.sd.left&&(a.Fa(),this.Bc.update(a,a.sd,null),a.sd.set(0,0,-1,-1)),d===this.n.length-1?this.n.pop():(ya(this.n,d),this.sl(d)),this.Se=!0)};f.prototype.$j=function(a,b){a.bf=this.n.length;
this.n.push(a);b&&this.Xd&&a.sd&&a.K();this.Se=!0};f.prototype.AE=function(a){this.n.unshift(a);this.sl(0)};f.prototype.kE=function(a,b,d){var c=a.lf();b=b.lf();ya(this.n,c);c<b&&b--;d&&b++;b===this.n.length?this.n.push(a):this.n.splice(b,0,a);this.sl(c<b?c:b)};f.prototype.sl=function(a){-1===this.zg?this.zg=a:a<this.zg&&(this.zg=a);this.Se=this.ri=!0};f.prototype.lt=function(){if(this.ri){-1===this.zg&&(this.zg=0);var a,b,d;if(this.Xd)for(a=this.zg,b=this.n.length;a<b;++a)d=this.n[a],d.bf=a,this.Bc.fE(d.sd);
else for(a=this.zg,b=this.n.length;a<b;++a)this.n[a].bf=a;this.ri=!1;this.zg=-1}};f.prototype.gd=function(a){return this.nD()*(this.b.Nd||a?this.b.ak:1)};f.prototype.nD=function(){return(this.scale*this.Db.scale-1)*this.Qc+1};f.prototype.Bb=function(){return this.Of?0:Ia(this.Db.u+this.u)};var b=[],t=[],d=[];f.prototype.Uq=function(){this.lt();this.Bc.vo(this.Ga,this.Ha,this.Ra,this.Qa,d);if(!d.length)return g();if(1===d.length){var a=g();Ba(a,d[0]);J(d);return a}for(var b=!0;1<d.length;){for(var a=
d,c=void 0,e=void 0,f=void 0,h=void 0,u=void 0,c=0,e=a.length;c<e-1;c+=2){var f=a[c],h=a[c+1],u=g(),p=f,q=h,l=u,v=0,A=0,N=0,B=p.length,E=q.length,x=void 0,H=void 0;for(l.length=B+E;v<B&&A<E;++N)x=p[v],H=q[A],x.bf<H.bf?(l[N]=x,++v):(l[N]=H,++A);for(;v<B;++v,++N)l[N]=p[v];for(;A<E;++A,++N)l[N]=q[A];b||(m(f),m(h));t.push(u)}1===e%2&&(b?(f=g(),Ba(f,a[e-1]),t.push(f)):t.push(a[e-1]));Ba(a,t);J(t);b=!1}a=d[0];J(d);return a};f.prototype.Uc=function(a){this.xf=this.an||1!==this.opacity||0!==this.Ec;var b=
this.b.canvas,d=a,c=!1;this.xf&&(this.b.Fn||(this.b.Fn=document.createElement("canvas"),b=this.b.Fn,b.width=this.b.da,b.height=this.b.ca,this.b.Ov=b.getContext("2d"),c=!0),b=this.b.Fn,d=this.b.Ov,b.width!==this.b.da&&(b.width=this.b.da,c=!0),b.height!==this.b.ca&&(b.height=this.b.ca,c=!0),c&&(d.webkitImageSmoothingEnabled=this.b.ea,d.mozImageSmoothingEnabled=this.b.ea,d.msImageSmoothingEnabled=this.b.ea,d.imageSmoothingEnabled=this.b.ea),this.Ze&&d.clearRect(0,0,this.b.da,this.b.ca));d.globalAlpha=
1;d.globalCompositeOperation="source-over";this.Ze||(d.fillStyle="rgb("+this.Ge[0]+","+this.Ge[1]+","+this.Ge[2]+")",d.fillRect(0,0,this.b.da,this.b.ca));d.save();this.Of=!0;var c=this.zb(0,0,!0,!0),e=this.zb(0,0,!1,!0);this.Of=!1;this.b.qc&&(c=Math.round(c),e=Math.round(e));this.Ao(c,e,d);var f=this.gd();d.scale(f,f);d.translate(-c,-e);this.Xd?(this.tc.left=this.Bc.cd(this.Ga),this.tc.top=this.Bc.dd(this.Ha),this.tc.right=this.Bc.cd(this.Ra),this.tc.bottom=this.Bc.dd(this.Qa),this.Se||!this.tc.mk(this.ij)?
(m(this.ag),c=this.Uq(),this.Se=!1,this.ij.Fi(this.tc)):c=this.ag):c=this.n;for(var g,p=null,e=0,f=c.length;e<f;++e)g=c[e],g!==p&&(this.jC(g,d),p=g);this.Xd&&(this.ag=c);d.restore();this.xf&&(a.globalCompositeOperation=this.ek,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.jC=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var d=a.Ua;d.right<this.Ga||d.bottom<this.Ha||d.left>this.Ra||d.top>this.Qa||(b.globalCompositeOperation=a.ek,a.Uc(b))}};f.prototype.kp=function(){this.Of=
!0;var a=this.zb(0,0,!0,!0),b=this.zb(0,0,!1,!0);this.Of=!1;this.b.qc&&(a=Math.round(a),b=Math.round(b));this.Ao(a,b,null)};f.prototype.Ao=function(a,b,d){var c=this.gd();this.Ga=a;this.Ha=b;this.Ra=a+1/c*this.b.da;this.Qa=b+1/c*this.b.ca;a=this.Bb();0!==a&&(d&&(d.translate(this.b.da/2,this.b.ca/2),d.rotate(-a),d.translate(this.b.da/-2,this.b.ca/-2)),this.vg.set(this.Ga,this.Ha,this.Ra,this.Qa),this.vg.offset((this.Ga+this.Ra)/-2,(this.Ha+this.Qa)/-2),this.Ex.hx(this.vg,a),this.Ex.Du(this.vg),this.vg.offset((this.Ga+
this.Ra)/2,(this.Ha+this.Qa)/2),this.Ga=this.vg.left,this.Ha=this.vg.top,this.Ra=this.vg.right,this.Qa=this.vg.bottom)};f.prototype.Pf=function(a){if(this.xf=this.an){this.b.gc||(this.b.gc=a.Ad(this.b.da,this.b.ca,this.b.ea));if(this.b.gc.ee!==this.b.da||this.b.gc.de!==this.b.ca)a.deleteTexture(this.b.gc),this.b.gc=a.Ad(this.b.da,this.b.ca,this.b.ea);a.ve(this.b.gc)}this.Of=!0;var b=this.zb(0,0,!0,!0),d=this.zb(0,0,!1,!0);this.Of=!1;this.b.qc&&(b=Math.round(b),d=Math.round(d));this.Ao(b,d,null);b=
this.gd();a.ue();a.scale(b,b);a.Bo(-this.Bb());a.translate((this.Ga+this.Ra)/-2,(this.Ha+this.Qa)/-2);a.Wd();this.Xd?(this.tc.left=this.Bc.cd(this.Ga),this.tc.top=this.Bc.dd(this.Ha),this.tc.right=this.Bc.cd(this.Ra),this.tc.bottom=this.Bc.dd(this.Qa),this.Se||!this.tc.mk(this.ij)?(m(this.ag),b=this.Uq(),this.Se=!1,this.ij.Fi(this.tc)):b=this.ag):b=this.n;for(var c,e=null,d=b.length-1;0<=d;--d)c=b[d],c!==e&&(this.lC(b[d],a),e=c);this.Xd&&(this.ag=b);this.Ze||(this.oq=this.b.zh++,a.Ho(this.oq),a.Zw(1,
1,1),a.Vu(),a.JE())};f.prototype.Ab=function(a){var b=0,d=0;if(this.xf=this.an||1!==this.opacity||0<this.Na.length||0!==this.Ec){this.b.gc||(this.b.gc=a.Ad(this.b.da,this.b.ca,this.b.ea));if(this.b.gc.ee!==this.b.da||this.b.gc.de!==this.b.ca)a.deleteTexture(this.b.gc),this.b.gc=a.Ad(this.b.da,this.b.ca,this.b.ea);a.ve(this.b.gc);this.Ze&&a.clear(0,0,0,0)}this.Ze||(this.b.Za?(a.Ho(this.oq),a.Zw(this.Ge[0]/255,this.Ge[1]/255,this.Ge[2]/255),a.Vu(),a.$E()):a.clear(this.Ge[0]/255,this.Ge[1]/255,this.Ge[2]/
255,1));this.Of=!0;var c=this.zb(0,0,!0,!0),b=this.zb(0,0,!1,!0);this.Of=!1;this.b.qc&&(c=Math.round(c),b=Math.round(b));this.Ao(c,b,null);c=this.gd();a.ue();a.scale(c,c);a.Bo(-this.Bb());a.translate((this.Ga+this.Ra)/-2,(this.Ha+this.Qa)/-2);a.Wd();this.Xd?(this.tc.left=this.Bc.cd(this.Ga),this.tc.top=this.Bc.dd(this.Ha),this.tc.right=this.Bc.cd(this.Ra),this.tc.bottom=this.Bc.dd(this.Qa),this.Se||!this.tc.mk(this.ij)?(m(this.ag),b=this.Uq(),this.Se=!1,this.ij.Fi(this.tc)):b=this.ag):b=this.n;var e,
f,g=null,d=0;for(e=b.length;d<e;++d)f=b[d],f!==g&&(this.kC(b[d],a),g=f);this.Xd&&(this.ag=b);this.xf&&(b=this.Na.length?this.Na[0].Ib:0,d=this.Na.length?this.Na[0].index:0,0===this.Na.length||1===this.Na.length&&!a.vs(b)&&1===this.opacity?(1===this.Na.length?(a.vd(b),a.Gj(this.Db.sk(),1/this.b.da,1/this.b.ca,0,0,1,1,c,this.Bb(),this.Ga,this.Ha,(this.Ga+this.Ra)/2,(this.Ha+this.Qa)/2,this.b.Ob.S,this.lb[d]),a.ro(b)&&(this.b.V=!0)):a.vd(0),a.ve(this.Db.sk()),a.Ve(this.opacity),a.rc(this.b.gc),a.hh(this.Lc,
this.Fc),a.ue(),a.Wd(),c=this.b.da/2,b=this.b.ca/2,a.Bj(-c,b,c,b,c,-b,-c,-b),a.rc(null)):this.Db.Bs(a,this,null,this.Db.sk()))};f.prototype.kC=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var d=a.Ua;d.right<this.Ga||d.bottom<this.Ha||d.left>this.Ra||d.top>this.Qa||(b.Ho(a.zh),a.Sx?this.mC(a,b):(b.vd(0),b.hh(a.Lc,a.Fc),a.Ab(b)))}};f.prototype.lC=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var d=a.Ua;d.right<this.Ga||d.bottom<this.Ha||d.left>this.Ra||d.top>this.Qa||
(a.zh=this.b.zh++,0===a.Ec&&1===a.opacity&&a.qg&&a.Pf&&(b.Ho(a.zh),a.Pf(b)))}};f.prototype.mC=function(a,b){var d=a.Na[0].Ib,c=a.Na[0].index,e=this.gd();if(1!==a.Na.length||b.vs(d)||b.CE(d)||(a.u||a.C.Bb())&&b.kl(d)||1!==a.opacity||a.type.ma.ow)this.Db.Bs(b,this,a,this.xf?this.b.gc:this.Db.sk()),b.ue(),b.scale(e,e),b.Bo(-this.Bb()),b.translate((this.Ga+this.Ra)/-2,(this.Ha+this.Qa)/-2),b.Wd();else{b.vd(d);b.hh(a.Lc,a.Fc);b.ro(d)&&(this.b.V=!0);var f=0,g=0,p=0,q=0;b.kl(d)&&(d=a.Ua,f=this.ob(d.left,
d.top,!0,!0),g=this.ob(d.left,d.top,!1,!0),p=this.ob(d.right,d.bottom,!0,!0),d=this.ob(d.right,d.bottom,!1,!0),f=f/windowWidth,g=1-g/windowHeight,p=p/windowWidth,q=1-d/windowHeight);b.Gj(this.xf?this.b.gc:this.Db.sk(),1/a.width,1/a.height,f,g,p,q,e,this.Bb(),this.Ga,this.Ha,(this.Ga+this.Ra)/2,(this.Ha+this.Qa)/2,this.b.Ob.S,a.lb[c]);a.Ab(b)}};f.prototype.zb=function(a,b,d,c){var e=this.b.devicePixelRatio;this.b.Tg&&(a*=e,b*=e);var e=this.b.Kw,f=this.b.Lw,e=(this.Db.scrollX-e)*this.nd+e,f=(this.Db.scrollY-
f)*this.od+f,g=e,p=f,q=1/this.gd(!c);c?(g-=this.b.da*q/2,p-=this.b.ca*q/2):(g-=this.b.width*q/2,p-=this.b.height*q/2);g+=a*q;p+=b*q;b=this.Bb();0!==b&&(g-=e,p-=f,a=Math.cos(b),b=Math.sin(b),c=g*a-p*b,p=p*a+g*b,g=c+e,p+=f);return d?g:p};f.prototype.ob=function(a,b,d,c){var e=this.b.Kw,f=this.b.Lw,g=(this.Db.scrollX-e)*this.nd+e,p=(this.Db.scrollY-f)*this.od+f,f=g,e=p,q=this.Bb();if(0!==q){a-=g;b-=p;var m=Math.cos(-q),q=Math.sin(-q),h=a*m-b*q;b=b*m+a*q;a=h+g;b+=p}g=1/this.gd(!c);c?(f-=this.b.da*g/2,
e-=this.b.ca*g/2):(f-=this.b.width*g/2,e-=this.b.height*g/2);f=(a-f)/g;e=(b-e)/g;a=this.b.devicePixelRatio;this.b.Tg&&!c&&(f/=a,e/=a);return d?f:e};f.prototype.Pa=function(){var a,b,d,c={s:this.scale,a:this.u,vl:this.Ga,vt:this.Ha,vr:this.Ra,vb:this.Qa,v:this.visible,bc:this.Ge,t:this.Ze,px:this.nd,py:this.od,o:this.opacity,zr:this.Qc,fx:[],cg:this.hk,instances:[]};a=0;for(b=this.qa.length;a<b;a++)d=this.qa[a],c.fx.push({name:d.name,active:d.Ya,params:this.lb[d.index]});return c};f.prototype.Va=function(a){var b,
d,c;this.scale=a.s;this.u=a.a;this.Ga=a.vl;this.Ha=a.vt;this.Ra=a.vr;this.Qa=a.vb;this.visible=a.v;this.Ge=a.bc;this.Ze=a.t;this.nd=a.px;this.od=a.py;this.opacity=a.o;this.Qc=a.zr;this.hk=a.cg||[];Ba(this.Pd,this.rx);var e=new da;b=0;for(c=this.hk.length;b<c;++b)e.add(this.hk[b]);d=b=0;for(c=this.Pd.length;b<c;++b)e.contains(this.Pd[b][2])||(this.Pd[d]=this.Pd[b],++d);za(this.Pd,d);d=a.fx;b=0;for(c=d.length;b<c;b++)if(a=this.jn(d[b].name))a.Ya=d[b].active,this.lb[a.index]=d[b].params;this.$e();this.n.sort(h);
this.ri=!0};Vb=f})();
(function(){function l(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function h(a,b){return a.index-b.index}function f(a){var b,d,c,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(h);a.length>=D.length&&(D.length=a.length+1);D[a.length]||(D[a.length]=[]);e=D[a.length];b=0;for(d=e.length;b<d;b++)if(c=e[b],l(a,c))return c;e.push(a);return a}
function g(a,b){this.b=a;this.Ix={};this.Su={};this.dr=!1;this.qv=new da;this.vq=[];this.bq=[];this.name=b[0];var d=b[1];this.Ng=[];var c,e;c=0;for(e=d.length;c<e;c++)this.sv(d[c],null,this.Ng)}function m(a){this.type=a;this.n=[];this.Ba=[];this.aa=!0}function e(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.fa=[];this.ih=[];this.ov=this.fp=this.$s=this.ir=this.group=this.Ps=!1;this.$b=[];this.Yd=[];this.we=[];this.uk="";this.Gh=this.ir=this.group=!1;this.Fm=null;d[1]&&(this.uk=d[1][1].toLowerCase(),
this.group=!0,this.ir=!!d[1][0],this.Fm=[],this.Gh=this.ir,this.b.Ai.push(this),this.b.Si[this.uk]=this);this.qe=d[2];this.ya=d[4];this.group||(this.b.Bu[this.ya.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var e=new Wb(this,c[a]);e.index=a;this.$b.push(e);this.uu(e.type)}c=d[6];a=0;for(b=c.length;a<b;a++)e=new Xb(this,c[a]),e.index=a,this.Yd.push(e);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.sv(d[a],this,this.we);this.Bn=!1;this.$b.length&&(this.Bn=null==this.$b[0].type&&
this.$b[0].uc==Q.prototype.k.At)}function c(a,b){var d,c,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.xc))for(d=0,c=a.zd.length;d<c;d++)e=a.zd[d],a!==e&&-1===b.indexOf(e)&&b.push(e)}function b(a,b){this.Id=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.rb=[];this.U={};this.index=-1;this.Yj=!1;this.uc=this.b.Ag(b[1]);this.trigger=0<b[3];this.Ru=2===b[3];this.rf=b[4];this.Mh=b[5];this.ZD=b[6];this.ya=b[7];this.b.Ei[this.ya.toString()]=this;-1===b[0]?(this.type=null,this.Wb=this.Fs,this.uh=null,this.Ie=-1):
(this.type=this.b.P[b[0]],this.Wb=this.ZD?this.QE:this.Es,b[2]?(this.uh=this.type.hn(b[2]),this.Ie=this.type.Oq(b[2])):(this.uh=null,this.Ie=-1),this.Id.parent&&this.Id.parent.Mo());this.Ru&&(this.Wb=this.RE);if(10===b.length){var d,c,e=b[9];d=0;for(c=e.length;d<c;d++){var f=new Yb(this,e[d]);this.Y.push(f)}this.rb.length=e.length}}function t(a,b){this.Id=a;this.sheet=a.sheet;this.b=a.b;this.Y=[];this.rb=[];this.U={};this.index=-1;this.Yj=!1;this.uc=this.b.Ag(b[1]);-1===b[0]?(this.type=null,this.Wb=
this.Fs,this.uh=null,this.Ie=-1):(this.type=this.b.P[b[0]],this.Wb=this.Es,b[2]?(this.uh=this.type.hn(b[2]),this.Ie=this.type.Oq(b[2])):(this.uh=null,this.Ie=-1));this.ya=b[3];this.b.yi[this.ya.toString()]=this;if(6===b.length){var d,c,e=b[5];d=0;for(c=e.length;d<c;d++){var f=new Yb(this,e[d]);this.Y.push(f)}this.rb.length=e.length}}function d(){u++;w.length===u&&w.push(new Zb);return w[u]}function a(a,b){this.fb=a;this.Id=a.Id;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.hf=null;this.tg=0;this.get=
null;this.Ju=0;this.Db=null;this.key=0;this.object=null;this.index=0;this.Jl=this.mi=this.Jl=this.mi=this.Tu=this.Bh=this.Kl=null;this.ze=!1;var d,c,e;switch(b[0]){case 0:case 7:this.hf=new $b(this,b[1]);this.tg=0;this.get=this.xD;break;case 1:this.hf=new $b(this,b[1]);this.tg=0;this.get=this.yD;break;case 5:this.hf=new $b(this,b[1]);this.tg=0;this.get=this.CD;break;case 3:case 8:this.Ju=b[1];this.get=this.vD;break;case 6:this.Db=this.b.jj[b[1]];this.get=this.DD;break;case 9:this.key=b[1];this.get=
this.BD;break;case 4:this.object=this.b.P[b[1]];this.get=this.ED;this.Id.uu(this.object);this.fb instanceof Xb?this.Id.Mo():this.Id.parent&&this.Id.parent.Mo();break;case 10:this.index=b[1];a.type.R?(this.get=this.zD,this.ze=!0):this.get=this.AD;break;case 11:this.Kl=b[1];this.Bh=null;this.get=this.wD;break;case 2:case 12:this.Tu=b[1];this.get=this.uD;break;case 13:for(this.get=this.FD,this.mi=[],this.Jl=[],d=1,c=b.length;d<c;d++)e=new Yb(this.fb,b[d]),this.mi.push(e),this.Jl.push(0)}}function k(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.fa=[];this.name=d[1];this.Ll=d[2];this.hr=d[3];this.Jk=!!d[4];this.An=!!d[5];this.ya=d[6];this.b.Rj[this.ya.toString()]=this;this.data=this.hr;this.parent?(this.ai=this.Jk||this.An?-1:this.b.aF++,this.b.wB.push(this)):(this.ai=-1,this.b.vB.push(this))}function r(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.fa=[];this.xk=null;this.ND=d[1];this.Ya=!0}function n(){this.vx=[];this.reset(null)}var D=[];g.prototype.toString=function(){return this.name};
g.prototype.sv=function(a,b,d){switch(a[0]){case 0:a=new ac(this,b,a);if(a.qe)for(d.push(a),d=0,b=a.$b.length;d<b;d++)a.$b[d].trigger&&this.tv(a,d);else a.Hv()?this.tv(a,0):d.push(a);break;case 1:a=new Sb(this,b,a);d.push(a);break;case 2:a=new bc(this,b,a),d.push(a)}};g.prototype.Hb=function(){var a,b;a=0;for(b=this.Ng.length;a<b;a++)this.Ng[a].Hb(a<b-1&&this.Ng[a+1].Bn)};g.prototype.gt=function(){J(this.vq);J(this.bq);this.tu(this);J(this.bq)};g.prototype.tu=function(a){var b,d,c,e,f=a.vq,k=a.bq,
n=this.qv.ye();b=0;for(d=n.length;b<d;++b)c=n[b],e=c.xk,!c.Ya||a===e||-1<k.indexOf(e)||(k.push(e),e.tu(a),f.push(e))};g.prototype.Wb=function(a){this.b.fG||(this.dr=!0,a||(this.b.sr=!0));var b,d;b=0;for(d=this.Ng.length;b<d;b++){var c=this.Ng[b];c.Wb();this.b.nq(c.fa);this.b.Sg&&this.b.Dc()}a||(this.b.sr=!1)};g.prototype.tv=function(a,b){a.qe||this.b.ip.push(a);var d,c,e=a.$b[b],f;e.type?f=e.type.name:f="system";var k=(d=e.Ru)?this.Su:this.Ix;k[f]||(k[f]=[]);f=k[f];k=e.uc;if(d){if(e.Y.length&&(e=
e.Y[0],1===e.type&&2===e.hf.type)){e=e.hf.value.toLowerCase();d=0;for(c=f.length;d<c;d++)if(f[d].method==k){d=f[d].nk;d[e]?d[e].push([a,b]):d[e]=[[a,b]];return}d={};d[e]=[[a,b]];f.push({method:k,nk:d})}}else{d=0;for(c=f.length;d<c;d++)if(f[d].method==k){f[d].nk.push([a,b]);return}W&&k===W.prototype.k.vi?f.unshift({method:k,nk:[[a,b]]}):f.push({method:k,nk:[[a,b]]})}};Ib=g;m.prototype.sn=function(){return this.aa?this.type.n.length:this.n.length};m.prototype.lc=function(){return this.aa?this.type.n:
this.n};m.prototype.il=function(a){a&&(a.b.eb().cb.qe?(this.aa&&(J(this.n),Ba(this.Ba,a.type.n),this.aa=!1),a=this.Ba.indexOf(a),-1!==a&&(this.n.push(this.Ba[a]),this.Ba.splice(a,1))):(this.aa=!1,J(this.n),this.n[0]=a))};nb=m;window._c2hh_="991F888069B5441B673E331F9BAE76E2F2960D27";e.prototype.Hb=function(a){var b,d=this.parent;if(this.group)for(this.fp=!0;d;){if(!d.group){this.fp=!1;break}d=d.parent}this.$s=!this.Hv()&&(!this.parent||this.parent.group&&this.parent.fp);this.ov=!!a;this.ih=this.fa.slice(0);
for(d=this.parent;d;){a=0;for(b=d.fa.length;a<b;a++)this.tB(d.fa[a]);d=d.parent}this.fa=f(this.fa);this.ih=f(this.ih);a=0;for(b=this.$b.length;a<b;a++)this.$b[a].Hb();a=0;for(b=this.Yd.length;a<b;a++)this.Yd[a].Hb();a=0;for(b=this.we.length;a<b;a++)this.we[a].Hb(a<b-1&&this.we[a+1].Bn)};e.prototype.Io=function(a){if(this.Gh!==!!a){this.Gh=!!a;var b;a=0;for(b=this.Fm.length;a<b;++a)this.Fm[a].Nx();0<b&&this.b.Ea.Ah&&this.b.Ea.Ah.gt()}};e.prototype.uu=function(a){c(a,this.fa)};e.prototype.tB=function(a){c(a,
this.ih)};e.prototype.Mo=function(){this.Ps=!0;this.parent&&this.parent.Mo()};e.prototype.Hv=function(){return this.$b.length?this.$b[0].trigger:!1};e.prototype.Wb=function(){var a,b,d=!1,c=this.b,e=this.b.eb();e.cb=this;var f=this.$b;this.Bn||(e.Cq=!1);if(this.qe){0===f.length&&(d=!0);e.Zb=0;for(a=f.length;e.Zb<a;e.Zb++)b=f[e.Zb],b.trigger||(b=b.Wb())&&(d=!0);(e.Th=d)&&this.Co()}else{e.Zb=0;for(a=f.length;e.Zb<a;e.Zb++)if(b=f[e.Zb].Wb(),!b){e.Th=!1;this.$s&&c.Sg&&c.Dc();return}e.Th=!0;this.Co()}this.rC(e)};
e.prototype.rC=function(a){a.Th&&this.ov&&(a.Cq=!0);this.$s&&this.b.Sg&&this.b.Dc()};e.prototype.OE=function(a){this.b.eb().cb=this;this.$b[a].Wb()&&(this.Co(),this.b.eb().Th=!0)};e.prototype.Co=function(){var a=this.b.eb(),b;a.ed=0;for(b=this.Yd.length;a.ed<b;a.ed++)if(this.Yd[a.ed].Wb())return;this.Xw()};e.prototype.LE=function(){var a=this.b.eb(),b;for(b=this.Yd.length;a.ed<b;a.ed++)if(this.Yd[a.ed].Wb())return;this.Xw()};e.prototype.Xw=function(){if(this.we.length){var a,b,d,c,e=this.we.length-
1;this.b.so(this);if(this.Ps)for(a=0,b=this.we.length;a<b;a++)d=this.we[a],(c=!this.fp||!this.group&&a<e)&&this.b.re(d.fa),d.Wb(),c?this.b.qd(d.fa):this.b.nq(d.fa);else for(a=0,b=this.we.length;a<b;a++)this.we[a].Wb();this.b.oo()}};e.prototype.PE=function(){var a=this.b.eb();a.cb=this;var b=!1,d;a.Zb=0;for(d=this.$b.length;a.Zb<d;a.Zb++)if(this.$b[a.Zb].Wb())b=!0;else if(!this.qe)return!1;return this.qe?b:!0};e.prototype.ud=function(){this.b.Ch++;var a=this.b.eb().Zb,b=this.b.so(this);if(!this.qe)for(b.Zb=
a+1,a=this.$b.length;b.Zb<a;b.Zb++)if(!this.$b[b.Zb].Wb())return this.b.oo(),!1;this.Co();this.b.oo();return!0};e.prototype.UD=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.$b[b].type===a.type)return!1;return!0};ac=e;b.prototype.Hb=function(){var a,b,d;a=0;for(b=this.Y.length;a<b;a++)d=this.Y[a],d.Hb(),d.ze&&(this.Yj=!0)};b.prototype.RE=function(){return!0};b.prototype.Fs=function(){var a,b;a=0;for(b=this.Y.length;a<b;a++)this.rb[a]=this.Y[a].get();return Ta(this.uc.apply(this.b.Bf,
this.rb),this.Mh)};b.prototype.QE=function(){var a,b;a=0;for(b=this.Y.length;a<b;a++)this.rb[a]=this.Y[a].get();a=this.uc.apply(this.uh?this.uh:this.type,this.rb);this.type.ae();return a};b.prototype.Es=function(){var a,b,d,c,e,f,k,n,g=this.type,m=g.X(),u=this.Id.qe&&!this.trigger;b=0;var h=g.xc,l=g.R,t=g.Tf,r=this.Ie,D=-1<r,w=this.Yj,y=this.Y,F=this.rb,L=this.Mh,K=this.uc,I;if(w)for(b=0,e=y.length;b<e;++b)f=y[b],f.ze||(F[b]=f.get(0));else for(b=0,e=y.length;b<e;++b)F[b]=y[b].get(0);if(m.aa){J(m.n);
J(m.Ba);I=g.n;a=0;for(c=I.length;a<c;++a){n=I[a];if(w)for(b=0,e=y.length;b<e;++b)f=y[b],f.ze&&(F[b]=f.get(a));D?(b=0,l&&(b=n.type.Mi[t]),b=K.apply(n.ba[r+b],F)):b=K.apply(n,F);(k=Ta(b,L))?m.n.push(n):u&&m.Ba.push(n)}g.finish&&g.finish(!0);m.aa=!1;g.ae();return m.sn()}d=0;I=(k=u&&!this.Id.UD(this))?m.Ba:m.n;var O=!1;a=0;for(c=I.length;a<c;++a){n=I[a];if(w)for(b=0,e=y.length;b<e;++b)f=y[b],f.ze&&(F[b]=f.get(a));D?(b=0,l&&(b=n.type.Mi[t]),b=K.apply(n.ba[r+b],F)):b=K.apply(n,F);if(Ta(b,L))if(O=!0,k){if(m.n.push(n),
h)for(b=0,e=n.siblings.length;b<e;b++)f=n.siblings[b],f.type.X().n.push(f)}else{I[d]=n;if(h)for(b=0,e=n.siblings.length;b<e;b++)f=n.siblings[b],f.type.X().n[d]=f;d++}else if(k){I[d]=n;if(h)for(b=0,e=n.siblings.length;b<e;b++)f=n.siblings[b],f.type.X().Ba[d]=f;d++}else if(u&&(m.Ba.push(n),h))for(b=0,e=n.siblings.length;b<e;b++)f=n.siblings[b],f.type.X().Ba.push(f)}za(I,d);if(h)for(l=g.zd,a=0,c=l.length;a<c;a++)n=l[a].X(),k?za(n.Ba,d):za(n.n,d);d=O;if(k&&!O)for(a=0,c=m.n.length;a<c;a++){n=m.n[a];if(w)for(b=
0,e=y.length;b<e;b++)f=y[b],f.ze&&(F[b]=f.get(a));b=D?K.apply(n.ba[r],F):K.apply(n,F);if(Ta(b,L)){O=!0;break}}g.finish&&g.finish(d||u);return u?O:m.sn()};Wb=b;t.prototype.Hb=function(){var a,b,d;a=0;for(b=this.Y.length;a<b;a++)d=this.Y[a],d.Hb(),d.ze&&(this.Yj=!0)};t.prototype.Fs=function(){var a=this.b,b,d,c=this.Y,e=this.rb;b=0;for(d=c.length;b<d;++b)e[b]=c[b].get();return this.uc.apply(a.Bf,e)};t.prototype.Es=function(){var a=this.type,b=this.Ie,d=a.Tf,c=this.Yj,e=this.Y,f=this.rb,k=this.uc,n=
a.X().lc(),a=a.R,g=-1<b,m,u,h,l,t,r;if(c)for(u=0,l=e.length;u<l;++u)t=e[u],t.ze||(f[u]=t.get(0));else for(u=0,l=e.length;u<l;++u)f[u]=e[u].get(0);m=0;for(h=n.length;m<h;++m){r=n[m];if(c)for(u=0,l=e.length;u<l;++u)t=e[u],t.ze&&(f[u]=t.get(m));g?(u=0,a&&(u=r.type.Mi[d]),k.apply(r.ba[b+u],f)):k.apply(r,f)}return!1};Xb=t;var w=[],u=-1;a.prototype.Hb=function(){var a,b;if(11===this.type)this.Bh=this.b.av(this.Kl,this.Id.parent);else if(13===this.type)for(a=0,b=this.mi.length;a<b;a++)this.mi[a].Hb();this.hf&&
this.hf.Hb()};a.prototype.hE=function(a){this.ze||!a||a.ma.So||(this.ze=!0)};a.prototype.cx=function(){this.ze=!0};a.prototype.xD=function(a){this.tg=a||0;a=d();this.hf.get(a);u--;return a.data};a.prototype.yD=function(a){this.tg=a||0;a=d();this.hf.get(a);u--;return la(a.data)?a.data:""};a.prototype.ED=function(){return this.object};a.prototype.vD=function(){return this.Ju};a.prototype.CD=function(a){this.tg=a||0;a=d();this.hf.get(a);u--;return a.mc()?this.b.kf(a.data):this.b.Qi(a.data)};a.prototype.DD=
function(){return this.Db};a.prototype.BD=function(){return this.key};a.prototype.AD=function(){return this.index};a.prototype.zD=function(a){a=a||0;var b=this.fb.type,d=null,d=b.X(),c=d.lc();if(c.length)d=c[a%c.length].type;else if(d.Ba.length)d=d.Ba[a%d.Ba.length].type;else if(b.n.length)d=b.n[a%b.n.length].type;else return 0;return this.index+d.Tm[b.Tf]};a.prototype.wD=function(){return this.Bh};a.prototype.uD=function(){return this.Tu};a.prototype.FD=function(){var a,b;a=0;for(b=this.mi.length;a<
b;a++)this.Jl[a]=this.mi[a].get();return this.Jl};Yb=a;k.prototype.Hb=function(){this.fa=f(this.fa)};k.prototype.pg=function(a){var b=this.b.Zu();this.parent&&!this.Jk&&b?(this.ai>=b.length&&(b.length=this.ai+1),b[this.ai]=a):this.data=a};k.prototype.Fh=function(){var a=this.b.Zu();return!this.parent||this.Jk||!a||this.An?this.data:this.ai>=a.length||"undefined"===typeof a[this.ai]?this.hr:a[this.ai]};k.prototype.Wb=function(){!this.parent||this.Jk||this.An||this.pg(this.hr)};Sb=k;r.prototype.toString=
function(){return"include:"+this.xk.toString()};r.prototype.Hb=function(){this.xk=this.b.Fq[this.ND];this.sheet.qv.add(this);this.fa=f(this.fa);for(var a=this.parent;a;)a.group&&a.Fm.push(this),a=a.parent;this.Nx()};r.prototype.Wb=function(){this.parent&&this.b.ml(this.b.P);this.xk.dr||this.xk.Wb(!0);this.parent&&this.b.qd(this.b.P)};r.prototype.Nx=function(){for(var a=this.parent;a;){if(a.group&&!a.Gh){this.Ya=!1;return}a=a.parent}this.Ya=!0};bc=r;n.prototype.reset=function(a){this.cb=a;this.ed=
this.Zb=0;J(this.vx);this.Cq=this.Th=!1};n.prototype.Fk=function(){return this.cb.Ps?!0:this.Zb<this.cb.$b.length-1?!!this.cb.fa.length:!1};Rb=n})();
(function(){function l(c,b){this.fb=c;this.b=c.b;this.type=b[0];this.get=[this.JC,this.FC,this.SC,this.VC,this.uC,this.TC,this.NC,this.CC,this.MC,this.RC,this.vC,this.QC,this.DC,this.OC,this.KC,this.LC,this.GC,this.HC,this.BC,this.UC,this.PC,this.IC,this.AC,this.EC][this.type];var e=null;this.gg=this.Y=this.rb=this.uc=this.cp=this.second=this.first=this.value=null;this.Ie=-1;this.Me=null;this.Tx=-1;this.Bh=this.Kl=null;this.Fj=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new $b(c,b[1]);break;case 18:this.first=new $b(c,b[1]);this.second=new $b(c,b[2]);this.cp=new $b(c,b[3]);break;case 19:this.uc=this.b.Ag(b[1]);this.uc!==Q.prototype.B.random&&this.uc!==Q.prototype.B.Iu||this.fb.cx();this.rb=[];this.Y=[];3===b.length?(e=b[2],this.rb.length=e.length+1):this.rb.length=1;break;case 20:this.gg=this.b.P[b[1]];this.Ie=-1;this.uc=this.b.Ag(b[2]);this.Fj=b[3];rc&&this.uc===rc.prototype.B.xt&&this.fb.cx();b[4]?this.Me=new $b(c,b[4]):this.Me=null;this.rb=[];this.Y=[];6===b.length?
(e=b[5],this.rb.length=e.length+1):this.rb.length=1;break;case 21:this.gg=this.b.P[b[1]];this.Fj=b[2];b[3]?this.Me=new $b(c,b[3]):this.Me=null;this.Tx=b[4];break;case 22:this.gg=this.b.P[b[1]];this.gg.hn(b[2]);this.Ie=this.gg.Oq(b[2]);this.uc=this.b.Ag(b[3]);this.Fj=b[4];b[5]?this.Me=new $b(c,b[5]):this.Me=null;this.rb=[];this.Y=[];7===b.length?(e=b[6],this.rb.length=e.length+1):this.rb.length=1;break;case 23:this.Kl=b[1],this.Bh=null}this.fb.hE(this.gg);4<=this.type&&17>=this.type&&(this.first=new $b(c,
b[1]),this.second=new $b(c,b[2]));if(e){var d,a;d=0;for(a=e.length;d<a;d++)this.Y.push(new $b(c,e[d]))}}function h(){++e;m.length===e&&m.push(new Zb);return m[e]}function f(c,b,e){var d,a;d=0;for(a=c.length;d<a;++d)c[d].get(e),b[d+1]=e.data}function g(c,b){this.type=c||cc.ti;this.data=b||0;this.di=null;this.type==cc.ti&&(this.data=Math.floor(this.data))}l.prototype.Hb=function(){23===this.type&&(this.Bh=this.fb.b.av(this.Kl,this.fb.Id.parent));this.first&&this.first.Hb();this.second&&this.second.Hb();
this.cp&&this.cp.Hb();this.Me&&this.Me.Hb();if(this.Y){var c,b;c=0;for(b=this.Y.length;c<b;c++)this.Y[c].Hb()}};var m=[],e=-1;l.prototype.UC=function(c){var b=this.Y,g=this.rb;g[0]=c;c=h();f(b,g,c);--e;this.uc.apply(this.b.Bf,g)};l.prototype.PC=function(c){var b=this.gg,g=this.rb,d=this.Y,a=this.Me,k=this.uc,m=this.fb.tg,n=b.X(),l=n.lc();if(!l.length)if(n.Ba.length)l=n.Ba;else{this.Fj?c.Ma(""):c.Z(0);return}g[0]=c;c.di=b;c=h();f(d,g,c);a&&(a.get(c),c.mc()&&(m=c.data,l=b.n));--e;b=l.length;if(m>=b||
m<=-b)m%=b;0>m&&(m+=b);k.apply(l[m],g)};l.prototype.AC=function(c){var b=this.gg,g=this.rb,d=this.Y,a=this.Me,k=this.Ie,m=this.uc,n=this.fb.tg,l=b.X(),w=l.lc();if(!w.length)if(l.Ba.length)w=l.Ba;else{this.Fj?c.Ma(""):c.Z(0);return}g[0]=c;c.di=b;c=h();f(d,g,c);a&&(a.get(c),c.mc()&&(n=c.data,w=b.n));--e;d=w.length;if(n>=d||n<=-d)n%=d;0>n&&(n+=d);n=w[n];w=0;b.R&&(w=n.type.Mi[b.Tf]);m.apply(n.ba[k+w],g)};l.prototype.IC=function(c){var b=this.Me,f=this.gg,d=this.Tx,a=this.fb.tg,k=f.X(),g=k.lc();if(!g.length)if(k.Ba.length)g=
k.Ba;else{this.Fj?c.Ma(""):c.Z(0);return}if(b){k=h();b.get(k);if(k.mc()){a=k.data;g=f.n;0!==g.length&&(a%=g.length,0>a&&(a+=g.length));a=f.Sq(a);f=a.fc[d];la(f)?c.Ma(f):c.L(f);--e;return}--e}b=g.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=g[a];g=0;f.R&&(g=a.type.Tm[f.Tf]);f=a.fc[d+g];la(f)?c.Ma(f):c.L(f)};l.prototype.JC=function(c){c.type=cc.ti;c.data=this.value};l.prototype.FC=function(c){c.type=cc.si;c.data=this.value};l.prototype.SC=function(c){c.type=cc.String;c.data=this.value};l.prototype.VC=function(c){this.first.get(c);
c.mc()&&(c.data=-c.data)};l.prototype.uC=function(c){this.first.get(c);var b=h();this.second.get(b);c.mc()&&b.mc()&&(c.data+=b.data,b.Zi()&&c.oj());--e};l.prototype.TC=function(c){this.first.get(c);var b=h();this.second.get(b);c.mc()&&b.mc()&&(c.data-=b.data,b.Zi()&&c.oj());--e};l.prototype.NC=function(c){this.first.get(c);var b=h();this.second.get(b);c.mc()&&b.mc()&&(c.data*=b.data,b.Zi()&&c.oj());--e};l.prototype.CC=function(c){this.first.get(c);var b=h();this.second.get(b);c.mc()&&b.mc()&&(c.data/=
b.data,c.oj());--e};l.prototype.MC=function(c){this.first.get(c);var b=h();this.second.get(b);c.mc()&&b.mc()&&(c.data%=b.data,b.Zi()&&c.oj());--e};l.prototype.RC=function(c){this.first.get(c);var b=h();this.second.get(b);c.mc()&&b.mc()&&(c.data=Math.pow(c.data,b.data),b.Zi()&&c.oj());--e};l.prototype.vC=function(c){this.first.get(c);var b=h();this.second.get(b);b.bj()||c.bj()?this.xC(c,b):this.wC(c,b);--e};l.prototype.xC=function(c,b){c.bj()&&b.bj()?this.zC(c,b):this.yC(c,b)};l.prototype.zC=function(c,
b){c.data+=b.data};l.prototype.yC=function(c,b){c.bj()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Ma(c.data.toString()+b.data)};l.prototype.wC=function(c,b){c.Z(c.data&&b.data?1:0)};l.prototype.QC=function(c){this.first.get(c);var b=h();this.second.get(b);c.mc()&&b.mc()&&(c.data||b.data?c.Z(1):c.Z(0));--e};l.prototype.BC=function(c){this.first.get(c);c.data?this.second.get(c):this.cp.get(c)};l.prototype.DC=function(c){this.first.get(c);var b=h();this.second.get(b);c.Z(c.data===b.data?1:0);
--e};l.prototype.OC=function(c){this.first.get(c);var b=h();this.second.get(b);c.Z(c.data!==b.data?1:0);--e};l.prototype.KC=function(c){this.first.get(c);var b=h();this.second.get(b);c.Z(c.data<b.data?1:0);--e};l.prototype.LC=function(c){this.first.get(c);var b=h();this.second.get(b);c.Z(c.data<=b.data?1:0);--e};l.prototype.GC=function(c){this.first.get(c);var b=h();this.second.get(b);c.Z(c.data>b.data?1:0);--e};l.prototype.HC=function(c){this.first.get(c);var b=h();this.second.get(b);c.Z(c.data>=
b.data?1:0);--e};l.prototype.EC=function(c){var b=this.Bh.Fh();ja(b)?c.L(b):c.Ma(b)};$b=l;g.prototype.Zi=function(){return this.type===cc.si};g.prototype.mc=function(){return this.type===cc.ti||this.type===cc.si};g.prototype.bj=function(){return this.type===cc.String};g.prototype.oj=function(){this.Zi()||(this.bj()&&(this.data=parseFloat(this.data)),this.type=cc.si)};g.prototype.Z=function(c){this.type=cc.ti;this.data=Math.floor(c)};g.prototype.L=function(c){this.type=cc.si;this.data=c};g.prototype.Ma=
function(c){this.type=cc.String;this.data=c};g.prototype.No=function(c){ja(c)?(this.type=cc.si,this.data=c):la(c)?(this.type=cc.String,this.data=c.toString()):(this.type=cc.ti,this.data=0)};Zb=g;cc={ti:0,si:1,String:2}})();function Q(l){this.b=l;this.yd=[]}
Q.prototype.Pa=function(){var l={},h,f,g,m,e,c,b,t;l.waits=[];var d=l.waits,a;h=0;for(f=this.yd.length;h<f;h++){c=this.yd[h];a={t:c.time,st:c.nx,s:c.Os,ev:c.Ki.ya,sm:[],sols:{}};c.Ki.Yd[c.ed]&&(a.act=c.Ki.Yd[c.ed].ya);g=0;for(m=c.fa.length;g<m;g++)a.sm.push(c.fa[g].ya);for(e in c.ad)if(c.ad.hasOwnProperty(e)){b=this.b.P[parseInt(e,10)];t={sa:c.ad[e].Do,insts:[]};g=0;for(m=c.ad[e].Xf.length;g<m;g++)t.insts.push(c.ad[e].Xf[g].uid);a.sols[b.ya.toString()]=t}d.push(a)}return l};
Q.prototype.Va=function(l){l=l.waits;var h,f,g,m,e,c,b,t,d,a,k;J(this.yd);h=0;for(f=l.length;h<f;h++)if(c=l[h],t=this.b.Bu[c.ev.toString()]){d=-1;g=0;for(m=t.Yd.length;g<m;g++)if(t.Yd[g].ya===c.act){d=g;break}if(-1!==d){b={ad:{},fa:[],xq:!1};b.time=c.t;b.nx=c.st||"";b.Os=!!c.s;b.Ki=t;b.ed=d;g=0;for(m=c.sm.length;g<m;g++)(t=this.b.rk(c.sm[g]))&&b.fa.push(t);for(e in c.sols)if(c.sols.hasOwnProperty(e)&&(t=this.b.rk(parseInt(e,10)))){d=c.sols[e];a={Do:d.sa,Xf:[]};g=0;for(m=d.insts.length;g<m;g++)(k=
this.b.Eh(d.insts[g]))&&a.Xf.push(k);b.ad[t.index.toString()]=a}this.yd.push(b)}}};
(function(){function l(){}function h(b,a){var c=b.U.c2_feo_val,e=a.U.c2_feo_val;if(ja(c)&&ja(e))return c-e;c=""+c;e=""+e;return c<e?-1:c>e?1:0}function f(){}function g(){}var m=Q.prototype;l.prototype.Ey=function(){return!0};l.prototype.Rt=function(){return!0};l.prototype.Oz=function(){return!0};l.prototype.ky=function(b,a,c){return dc(b,a,c)};l.prototype.lA=function(b){var a=this.b.eb(),c=a.cb,e=a.Fk(),a=this.b.Aj();if(e)for(e=0;e<b&&!a.Wa;e++)this.b.re(c.fa),a.index=e,c.ud(),this.b.qd(c.fa);else for(e=
0;e<b&&!a.Wa;e++)a.index=e,c.ud();this.b.yj();return!1};l.prototype.nB=function(){var b=this.b.eb(),a=b.cb,c=b.Fk(),b=this.b.Aj();if(c)for(c=0;!b.Wa;c++)this.b.re(a.fa),b.index=c,a.ud()||(b.Wa=!0),this.b.qd(a.fa);else for(c=0;!b.Wa;c++)b.index=c,a.ud()||(b.Wa=!0);this.b.yj();return!1};l.prototype.Hy=function(b,a,c){var e=this.b.eb(),f=e.cb,e=e.Fk();b=this.b.Aj(b);if(c<a)if(e)for(;a>=c&&!b.Wa;--a)this.b.re(f.fa),b.index=a,f.ud(),this.b.qd(f.fa);else for(;a>=c&&!b.Wa;--a)b.index=a,f.ud();else if(e)for(;a<=
c&&!b.Wa;++a)this.b.re(f.fa),b.index=a,f.ud(),this.b.qd(f.fa);else for(;a<=c&&!b.Wa;++a)b.index=a,f.ud();this.b.yj();return!1};var e=[],c=-1;l.prototype.up=function(b){var a=b.X();c++;e.length===c&&e.push([]);var f=e[c];Ba(f,a.lc());var g=this.b.eb(),n=g.cb,m=g.Fk(),g=this.b.Aj(),h,u,p,q,l,t,A=b.xc;if(m)for(m=0,h=f.length;m<h&&!g.Wa;m++){this.b.re(n.fa);q=f[m];a=b.X();a.aa=!1;J(a.n);a.n[0]=q;if(A)for(u=0,p=q.siblings.length;u<p;u++)l=q.siblings[u],t=l.type.X(),t.aa=!1,J(t.n),t.n[0]=l;g.index=m;n.ud();
this.b.qd(n.fa)}else for(a.aa=!1,J(a.n),m=0,h=f.length;m<h&&!g.Wa;m++){q=f[m];a.n[0]=q;if(A)for(u=0,p=q.siblings.length;u<p;u++)l=q.siblings[u],t=l.type.X(),t.aa=!1,J(t.n),t.n[0]=l;g.index=m;n.ud()}J(f);this.b.yj();c--;return!1};l.prototype.Iy=function(b,a,f){a=b.X();c++;e.length===c&&e.push([]);var g=e[c];Ba(g,a.lc());var n=this.b.eb(),m=n.cb,l=this.b.Qg(),u=n.Fk(),n=this.b.Aj(),p,q,t,v,A;p=0;for(q=g.length;p<q;p++)g[p].U.c2_feo_val=l.Y[1].get(p);g.sort(h);1===f&&g.reverse();f=b.xc;if(u)for(p=0,
q=g.length;p<q&&!n.Wa;p++){this.b.re(m.fa);t=g[p];a=b.X();a.aa=!1;J(a.n);a.n[0]=t;if(f)for(l=0,u=t.siblings.length;l<u;l++)v=t.siblings[l],A=v.type.X(),A.aa=!1,J(A.n),A.n[0]=v;n.index=p;m.ud();this.b.qd(m.fa)}else for(a.aa=!1,J(a.n),p=0,q=g.length;p<q&&!n.Wa;p++){t=g[p];a.n[0]=t;if(f)for(l=0,u=t.siblings.length;l<u;l++)v=t.siblings[l],A=v.type.X(),A.aa=!1,J(A.n),A.n[0]=v;n.index=p;m.ud()}J(g);this.b.yj();c--;return!1};l.prototype.jB=function(){var b=this.b.Qg().U;"undefined"===typeof b.TriggerOnce_lastTick&&
(b.TriggerOnce_lastTick=-1);var a=b.TriggerOnce_lastTick,c=this.b.Vd;b.TriggerOnce_lastTick=c;return this.b.Kr||a!==c-1};l.prototype.Dy=function(b){var a=this.b.Qg(),c=a.U.Every_lastTime||0,e=this.b.Ob.S;"undefined"===typeof a.U.Every_seconds&&(a.U.Every_seconds=b);var f=a.U.Every_seconds;if(e>=c+f)return a.U.Every_lastTime=c+f,e>=a.U.Every_lastTime+.04&&(a.U.Every_lastTime=e),a.U.Every_seconds=b,!0;e<c-.1&&(a.U.Every_lastTime=e);return!1};l.prototype.vy=function(b,a,c){return dc(b.Fh(),a,c)};l.prototype.Vy=
function(b){return(b=this.b.Si[b.toLowerCase()])&&b.Gh};l.prototype.$y=function(){return this.b.of};l.prototype.At=function(){var b=this.b.eb();return b.Cq?!1:!b.Th};l.prototype.St=function(){return!0};l.prototype.Az=function(){return!0};l.prototype.Cp=function(){return!0};l.prototype.Pz=function(){return!0};l.prototype.Ap=function(){return!0};l.prototype.bz=function(b){var a=this.b;switch(b){case 0:return!a.ua&&!a.yn&&!a.kd&&!a.Hk&&!a.oe&&!a.or&&!a.Bk;case 1:return a.Vg;case 2:return a.Wi;case 3:return a.ur;
case 4:return a.oe;case 5:return a.or;case 6:return a.tr;case 7:return a.jd;case 8:return a.kd;case 9:return a.SD;case 10:return a.yn;case 11:return a.Xi;case 12:return a.Bk;default:return!1}};l.prototype.ay=function(b,a,c){return Na(M(b),M(c))<=M(a)};l.prototype.Sy=function(b,a){return Pa(M(b),M(a))};l.prototype.Ct=function(b,a,c){b=La(b);a=La(a);c=La(c);return Pa(c,a)?Pa(b,a)&&!Pa(b,c):!(!Pa(b,a)&&Pa(b,c))};m.k=new l;f.prototype.Jy=function(b){this.b.cj||this.b.vh||(this.b.vh=b)};f.prototype.xy=
function(b,a,c,e){if(a&&b&&(a=this.b.rq(b,a,c,e))){this.b.Qd++;var f;this.b.trigger(Object.getPrototypeOf(b.ma).k.If,a);if(a.xc)for(c=0,e=a.siblings.length;c<e;c++)f=a.siblings[c],this.b.trigger(Object.getPrototypeOf(f.type.ma).k.If,f);this.b.Qd--;b=b.X();b.aa=!1;J(b.n);b.n[0]=a;if(a.xc)for(c=0,e=a.siblings.length;c<e;c++)f=a.siblings[c],b=f.type.X(),b.aa=!1,J(b.n),b.n[0]=f}};f.prototype.TA=function(b,a){0===b.Ll?ja(a)?b.pg(a):b.pg(parseFloat(a)):1===b.Ll&&b.pg(a.toString())};f.prototype.Zx=function(b,
a){0===b.Ll?ja(a)?b.pg(b.Fh()+a):b.pg(b.Fh()+parseFloat(a)):1===b.Ll&&b.pg(b.Fh()+a.toString())};f.prototype.gB=function(b,a){0===b.Ll&&(ja(a)?b.pg(b.Fh()-a):b.pg(b.Fh()-parseFloat(a)))};f.prototype.zA=function(b,a){var c=this.b.Si[b.toLowerCase()];if(c)switch(a){case 0:c.Io(!1);break;case 1:c.Io(!0);break;case 2:c.Io(!c.Gh)}};f.prototype.RA=function(b){0>b&&(b=0);this.b.oh=b};f.prototype.GA=function(b,a){var c=a;0>c&&(c=0);if(b){var e=b.X().lc(),f,g;f=0;for(g=e.length;f<g;f++)e[f].tj=c}};var b=[],
t=[];f.prototype.pu=function(d){if(!(0>d)){var a,c,e,f=this.b.eb(),g;b.length?g=b.pop():g={ad:{},fa:[]};g.xq=!1;g.time=this.b.Ob.S+d;g.nx="";g.Os=!1;g.Ki=f.cb;g.ed=f.ed+1;d=0;for(a=this.b.P.length;d<a;d++)e=this.b.P[d],c=e.X(),c.aa&&-1===f.cb.fa.indexOf(e)||(g.fa.push(e),e=void 0,t.length?e=t.pop():e={Xf:[]},e.Do=!1,e.Do=c.aa,Ba(e.Xf,c.n),g.ad[d.toString()]=e);this.yd.push(g);return!0}};f.prototype.CA=function(b,a){b&&b.scale!==a&&(b.scale=a,this.b.V=!0)};f.prototype.Ky=function(b){if(!this.b.cj&&
!this.b.vh)for(var a in this.b.jj)if(this.b.jj.hasOwnProperty(a)&&ib(a,b)){this.b.vh=this.b.jj[a];break}};f.prototype.DA=function(b,a,c){if(this.b.Ea&&this.b.G&&(b=this.b.Ea.jn(b))){var e=this.b.Ea.lb[b.index];a=Math.floor(a);0>a||a>=e.length||(1===this.b.G.hv(b.Ib,a)&&(c/=100),e[a]!==c&&(e[a]=c,b.Ya&&(this.b.V=!0)))}};f.prototype.oA=function(b){this.b.Eo=b};f.prototype.nz=function(b){this.b.Rk=b};f.prototype.yA=function(b){if(document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||
document.fullScreen||this.qf||0!==this.b.Gc)this.b.pt=0!==b,this.b.setSize(this.b.hj,this.b.gj,!0)};m.q=new f;g.prototype["int"]=function(b,a){la(a)?(b.Z(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.Z(a)};g.prototype["float"]=function(b,a){la(a)?(b.L(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.L(a)};g.prototype.random=function(b,a,c){void 0===c?b.L(Math.random()*a):b.L(Math.random()*(c-a)+a)};g.prototype.sqrt=function(b,a){b.L(Math.sqrt(a))};g.prototype.abs=function(b,a){b.L(Math.abs(a))};g.prototype.round=
function(b,a){b.Z(Math.round(a))};g.prototype.floor=function(b,a){b.Z(Math.floor(a))};g.prototype.ceil=function(b,a){b.Z(Math.ceil(a))};g.prototype.sin=function(b,a){b.L(Math.sin(M(a)))};g.prototype.cos=function(b,a){b.L(Math.cos(M(a)))};g.prototype.tan=function(b,a){b.L(Math.tan(M(a)))};g.prototype.asin=function(b,a){b.L(Ga(Math.asin(a)))};g.prototype.acos=function(b,a){b.L(Ga(Math.acos(a)))};g.prototype.atan=function(b,a){b.L(Ga(Math.atan(a)))};g.prototype.exp=function(b,a){b.L(Math.exp(a))};g.prototype.log10=
function(b,a){b.L(Math.log(a)/Math.LN10)};g.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&a<f&&(a=f);b.L(a)};g.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&a>f&&(a=f);b.L(a)};g.prototype.Lg=function(b){b.L(this.b.Lg)};g.prototype.oh=function(b){b.L(this.b.oh)};g.prototype.time=function(b){b.L(this.b.Ob.S)};
g.prototype.Vd=function(b){b.Z(this.b.Vd)};g.prototype.Sn=function(b){b.Z(this.b.Sn)};g.prototype.bn=function(b){b.Z(this.b.bn)};g.prototype.eE=function(b,a){var c,e,f;if(this.b.nj.length)if(a){e=0;for(f=this.b.nj.length;e<f;e++)if(c=this.b.nj[e],c.name===a){b.Z(c.index);return}b.Z(0)}else c=this.b.$u(),b.Z(c?c.index:-1);else b.Z(0)};g.prototype.SB=function(b,a,c,e,f){b.L(Sa(a,c,e,f))};g.prototype.u=function(b,a,c,e,f){b.L(Ga(Ma(a,c,e,f)))};g.prototype.bE=function(b,a,c,e){b.L(Ua(a,c,e))};g.prototype.rF=
function(b){b.Z(this.b.width)};g.prototype.qF=function(b){b.Z(this.b.height)};g.prototype.$D=function(b){b.Z(this.b.Ea.height)};g.prototype.left=function(b,a,c){b.Ma(la(a)?a.substr(0,c):"")};g.prototype.right=function(b,a,c){b.Ma(la(a)?a.substr(a.length-c):"")};g.prototype.replace=function(b,a,c,e){la(a)&&la(c)&&la(e)?b.Ma(a.replace(new RegExp(bb(c),"gi"),e)):b.Ma(la(a)?a:"")};g.prototype.trim=function(b,a){b.Ma(la(a)?a.trim():"")};g.prototype.aE=function(b){this.b.Ea?b.Ma(this.b.Ea.name):b.Ma("")};
g.prototype.HE=function(b){b.Ma(this.b.T?"webgl":"canvas2d")};g.prototype.Iu=function(b){var a=C(Math.random()*(arguments.length-1));b.No(arguments[a+1])};g.prototype.DE=function(b){b.Ma(this.b.kF)};g.prototype.wF=function(b,a,c){var e=0>a?"-":"";0>a&&(a=-a);c=c-a.toString().length;for(var f=0;f<c;f++)e+="0";b.Ma(e+a.toString())};g.prototype.qq=function(b){b.L(this.b.qq/1E3)};g.prototype.mF=function(b,a){var c=this.b.kn(a);b.L(c?c.Ga:0)};g.prototype.oF=function(b,a){var c=this.b.kn(a);b.L(c?c.Ha:
0)};g.prototype.nF=function(b,a){var c=this.b.kn(a);b.L(c?c.Ra:0)};g.prototype.lF=function(b,a){var c=this.b.kn(a);b.L(c?c.Qa:0)};g.prototype.lj=function(b){b.L(this.b.lj)};g.prototype.MD=function(b){this.b.G?b.L(Math.round(100*this.b.G.tC()/1048576)/100):b.L(0)};m.B=new g;m.NE=function(){var c,a,e,f,g,m,h=this.b.eb();c=0;for(e=this.yd.length;c<e;c++){f=this.yd[c];if(-1===f.time){if(!f.Os)continue}else if(f.time>this.b.Ob.S)continue;h.cb=f.Ki;h.ed=f.ed;h.Zb=0;for(a in f.ad)f.ad.hasOwnProperty(a)&&
(g=this.b.P[parseInt(a,10)].X(),m=f.ad[a],g.aa=m.Do,Ba(g.n,m.Xf),g=m,J(g.Xf),t.push(g));f.Ki.LE();this.b.nq(f.fa);f.xq=!0}a=c=0;for(e=this.yd.length;c<e;c++)f=this.yd[c],this.yd[a]=f,f.xq?(Wa(f.ad),J(f.fa),b.push(f)):a++;za(this.yd,a)}})();
(function(){mb=function(h,f){var g=h[1],m=h[3],e=h[4],c=h[5],b=h[6],l=h[7],d=h[8];f.k||(f.k={});f.q||(f.q={});f.B||(f.B={});var a=f.k,k=f.q,r=f.B;m&&(a.rp=function(a,b){return dc(this.x,a,b)},a.yt=function(a,b){return dc(this.y,a,b)},a.cz=function(){var a=this.C;this.Fa();var b=this.Ua;return!(b.right<a.Ga||b.bottom<a.Ha||b.left>a.Ra||b.top>a.Qa)},a.dz=function(){this.Fa();var a=this.Ua,b=this.b.Ea;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.au=function(a,b,c){var d=this.X(),e=
d.lc();if(!e.length)return!1;var f=e[0],g=f,k=Sa(f.x,f.y,b,c),m,h,l;m=1;for(h=e.length;m<h;m++)if(f=e[m],l=Sa(f.x,f.y,b,c),0===a&&l<k||1===a&&l>k)k=l,g=f;d.il(g);return!0},k.Rp=function(a){this.x!==a&&(this.x=a,this.K())},k.Sp=function(a){this.y!==a&&(this.y=a,this.K())},k.Mp=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.K()},k.Np=function(a,b){var c=a.oD(this);if(c){var d;c.Pi?(d=c.Pi(b,!0),c=c.Pi(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.K()}},k.JF=function(a){0!==
a&&(this.x+=Math.cos(this.u)*a,this.y+=Math.sin(this.u)*a,this.K())},k.IF=function(a,b){0!==b&&(this.x+=Math.cos(M(a))*b,this.y+=Math.sin(M(a))*b,this.K())},r.wi=function(a){a.L(this.x)},r.xi=function(a){a.L(this.y)},r.Lg=function(a){a.L(this.b.le(this))});e&&(a.CF=function(a,b){return dc(this.width,a,b)},a.BF=function(a,b){return dc(this.height,a,b)},k.Xj=function(a){this.width!==a&&(this.width=a,this.K())},k.fm=function(a){this.height!==a&&(this.height=a,this.K())},k.fu=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.K()},r.hm=function(a){a.L(this.width)},r.Wl=function(a){a.L(this.height)},r.yF=function(a){this.Fa();a.L(this.Ua.left)},r.AF=function(a){this.Fa();a.L(this.Ua.top)},r.zF=function(a){this.Fa();a.L(this.Ua.right)},r.xF=function(a){this.Fa();a.L(this.Ua.bottom)});c&&(a.ay=function(a,b){return Na(this.u,M(b))<=M(a)},a.Sy=function(a){return Pa(this.u,M(a))},a.Ct=function(a,b){var c=La(a),d=La(b),e=Ia(this.u);return Pa(d,c)?Pa(e,c)&&!Pa(e,d):!(!Pa(e,c)&&
Pa(e,d))},k.Kp=function(a){a=M(Ha(a));isNaN(a)||this.u===a||(this.u=a,this.K())},k.OF=function(a){0===a||isNaN(a)||(this.u+=M(a),this.u=Ia(this.u),this.K())},k.PF=function(a){0===a||isNaN(a)||(this.u-=M(a),this.u=Ia(this.u),this.K())},k.QF=function(a,b){var c=Oa(this.u,M(b),M(a));isNaN(c)||this.u===c||(this.u=c,this.K())},k.RF=function(a,b,c){a=Oa(this.u,Math.atan2(c-this.y,b-this.x),M(a));isNaN(a)||this.u===a||(this.u=a,this.K())},k.SA=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.u===c||(this.u=c,this.K())},r.$x=function(a){a.L(Ja(this.u))});g||(a.qp=function(a,b,c){return dc(this.fc[a],b,c)},a.Xl=function(a){return this.fc[a]},a.LF=function(a,b){var c=this.X(),d=c.lc();if(!d.length)return!1;var e=d[0],f=e,g=e.fc[b],k,m,h;k=1;for(m=d.length;k<m;k++)if(e=d[k],h=e.fc[b],0===a&&h<g||1===a&&h>g)g=h,f=e;c.il(f);return!0},a.eA=function(a){var b,c,d,e,f;if(this.b.Qg().Mh){f=this.X();if(f.aa)for(f.aa=!1,J(f.n),J(f.Ba),d=this.n,b=0,c=d.length;b<c;b++)e=d[b],e.uid===a?f.Ba.push(e):
f.n.push(e);else{d=b=0;for(c=f.n.length;b<c;b++)e=f.n[b],f.n[d]=e,e.uid===a?f.Ba.push(e):d++;za(f.n,d)}this.ae();return!!f.n.length}e=this.b.Eh(a);if(!e)return!1;f=this.X();if(!f.aa&&-1===f.n.indexOf(e))return!1;if(this.R)for(a=e.type.mb,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.il(e),this.ae(),!0}else if(e.type===this)return f.il(e),this.ae(),!0;return!1},a.If=function(){return!0},a.Lt=function(){return!0},k.Lp=function(a,b){var c=this.fc;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):la(c[a])&&(c[a]=
la(b)?b:b.toString())},k.Yx=function(a,b){var c=this.fc;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},k.fB=function(a,b){var c=this.fc;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},k.cm=function(a,b){this.fc[a]=b?1:0},k.hB=function(a){this.fc[a]=1-this.fc[a]},k.sp=function(){this.b.Hd(this)},k.mz||(k.mz=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Hn(this,b,!0);this.Ce&&this.Ce();if(this.ba)for(a=0,b=this.ba.length;a<b;++a)c=this.ba[a],
c.Ce&&c.Ce()}),r.DF=function(a){var b=a.di.n.length,c,d,e;c=0;for(d=this.b.Je.length;c<d;c++)e=this.b.Je[c],a.di.R?0<=e.type.mb.indexOf(a.di)&&b++:e.type===a.di&&b++;a.Z(b)},r.MF=function(a){a.Z(a.di.X().lc().length)},r.mu=function(a){a.Z(this.uid)},r.EF=function(a){a.Z(this.tk())},r.pp||(r.pp=function(a){a.Ma(JSON.stringify(this.b.Gs(this,!0)))}));b&&(a.GF=function(){return this.visible},k.Qp=function(a){!a!==!this.visible&&(this.visible=a,this.b.V=!0)},a.ry=function(a,b){return dc(hb(100*this.opacity),
a,b)},k.HA=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.V=!0)},r.Opacity=function(a){a.L(hb(100*this.opacity))});l&&(a.FF=function(a){return a?this.C===a:!1},a.bu=function(a){var b=this.X(),c=b.lc();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.C.index>e.C.index||d.C.index===e.C.index&&d.lf()>e.lf())e=d}else if(d.C.index<e.C.index||d.C.index===e.C.index&&d.lf()<e.lf())e=d;b.il(e);return!0},k.uz=function(){var a=this.C,
b=a.n;b.length&&b[b.length-1]===this||(a.Dj(this,!1),a.$j(this,!1),this.b.V=!0)},k.KF=function(){var a=this.C,b=a.n;b.length&&b[0]===this||(a.Dj(this,!1),a.AE(this),this.b.V=!0)},k.sz=function(a){a&&a!=this.C&&(this.C.Dj(this,!0),this.C=a,a.$j(this,!0),this.b.V=!0)},k.Zp=function(a,b){var c=0===a;if(b){var d=b.bv(this);d&&d.uid!==this.uid&&(this.C.index!==d.C.index&&(this.C.Dj(this,!0),this.C=d.C,d.C.$j(this,!0)),this.C.kE(this,d,c),this.b.V=!0)}},r.kz=function(a){a.Z(this.C.sw)},r.HF=function(a){a.Ma(this.C.name)},
r.Yp=function(a){a.Z(this.lf())});d&&(k.TF=function(a,b){if(this.b.G){var c=this.type.Rq(b);if(!(0>c)){var d=1===a;this.Bg[c]!==d&&(this.Bg[c]=d,this.$e(),this.b.V=!0)}}},k.du=function(a,b,c){if(this.b.G){var d=this.type.Rq(a);0>d||(a=this.type.qa[d],d=this.lb[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.G.hv(a.Ib,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ya&&(this.b.V=!0))))}})};Jb=function(){this.mq=this.vm=!0;this.type.mm=!0;this.b.V=!0;var h,f,g=this.fq;h=0;for(f=g.length;h<f;++h)g[h](this);this.C.Xd&&
this.Fa()};Kb=function(h){h&&this.fq.push(h)};Mb=function(){if(this.vm){var h=this.Ua,f=this.Xb;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.Hc*this.width,-this.Ic*this.height);this.u?(h.offset(-this.x,-this.y),f.hx(h,this.u),f.offset(this.x,this.y),f.Du(h)):f.ji(h);h.normalize();this.vm=!1;this.Qx()}};var l=new ua(0,0,0,0);Nb=function(){if(this.C.Xd){var h=this.C.Bc,f=this.Ua;l.set(h.cd(f.left),h.dd(f.top),h.cd(f.right),h.dd(f.bottom));this.sd.mk(l)||(this.sd.right<this.sd.left?
h.update(this,null,l):h.update(this,this.sd,l),this.sd.Fi(l),this.C.Se=!0)}};Ob=function(){if(this.mq&&this.Jd){this.Fa();var h=this.type.dk,f=this.Ua;l.set(h.cd(f.left),h.dd(f.top),h.cd(f.right),h.dd(f.bottom));this.fe.mk(l)||(this.fe.right<this.fe.left?h.update(this,null,l):h.update(this,this.fe,l),this.fe.Fi(l),this.mq=!1)}};Lb=function(h,f){return this.Ua.ac(h,f)&&this.Xb.ac(h,f)?this.Aa&&!this.Aa.Oh()?(this.Aa.Gg(this.width,this.height,this.u),this.Aa.ac(h-this.x,f-this.y)):!0:!1};Fb=function(){this.type.jp();
return this.Jh};Pb=function(){this.C.lt();return this.bf};Qb=function(){J(this.Na);var h,f,g,m=!0;h=0;for(f=this.Bg.length;h<f;h++)this.Bg[h]&&(g=this.type.qa[h],this.Na.push(g),g.Ub||(m=!1));this.Sx=!!this.Na.length;this.qg=m};Gb=function(){return"Inst"+this.Tw};pb=function(h){if(h&&h.xc&&h.type!=this){var f,g,m;f=0;for(g=h.siblings.length;f<g;f++)if(m=h.siblings[f],m.type==this)return m}h=this.X().lc();return h.length?h[0]:null};qb=function(h){var f=this.X().lc();return f.length?f[h.tk()%f.length]:
null};ob=function(){if(this.Jj&&!this.R){var h,f;h=0;for(f=this.n.length;h<f;h++)this.n[h].Jh=h;var g=h,m=this.b.Je;h=0;for(f=m.length;h<f;++h)m[h].type===this&&(m[h].Jh=g++);this.Jj=!1}};Db=function(h){if(h<this.n.length)return this.n[h];h-=this.n.length;var f=this.b.Je,g,m;g=0;for(m=f.length;g<m;++g)if(f[g].type===this){if(0===h)return f[g];--h}return null};rb=function(){return this.jh[this.Nf]};sb=function(){this.Nf++;this.Nf===this.jh.length?this.jh.push(new nb(this)):this.jh[this.Nf].aa=!0};
tb=function(){this.Nf++;this.Nf===this.jh.length&&this.jh.push(new nb(this));var h=this.jh[this.Nf],f=this.jh[this.Nf-1];f.aa?h.aa=!0:(h.aa=!1,Ba(h.n,f.n),Ba(h.Ba,f.Ba))};ub=function(){this.Nf--};vb=function(h){var f,g,m,e,c,b=0;if(!this.R)for(f=0,g=this.mb.length;f<g;f++)for(c=this.mb[f],m=0,e=c.Lb.length;m<e;m++){if(h===c.Lb[m].name)return this.U.lastBehIndex=b,c.Lb[m];b++}f=0;for(g=this.Lb.length;f<g;f++){if(h===this.Lb[f].name)return this.U.lastBehIndex=b,this.Lb[f];b++}return null};wb=function(h){return this.hn(h)?
this.U.lastBehIndex:-1};Bb=function(h){var f,g;f=0;for(g=this.qa.length;f<g;f++)if(this.qa[f].name===h)return f;return-1};Cb=function(){if(this.xc&&!this.R){var h,f,g,m,e,c,b;this.jp();c=this.X();var l=c.aa,d=(h=this.b.eb())&&h.cb&&h.cb.qe;h=0;for(f=this.zd.length;h<f;h++)if(e=this.zd[h],e!==this&&(e.jp(),b=e.X(),b.aa=l,!l)){J(b.n);g=0;for(m=c.n.length;g<m;++g)b.n[g]=e.Sq(c.n[g].Jh);if(d)for(J(b.Ba),g=0,m=c.Ba.length;g<m;++g)b.Ba[g]=e.Sq(c.Ba[g].Jh)}}};Eb=function(){return"Type"+this.ya};dc=function(h,
f,g){if("undefined"===typeof h||"undefined"===typeof g)return!1;switch(f){case 0:return h===g;case 1:return h!==g;case 2:return h<g;case 3:return h<=g;case 4:return h>g;case 5:return h>=g;default:return!1}}})();
var lc={blurhorizontal:{src:"varying mediump vec2 vTex;\nuniform mediump sampler2D samplerFront;\nuniform mediump float pixelWidth;\nuniform mediump float intensity;\nvoid main(void)\n{\nmediump vec4 sum = vec4(0.0);\nmediump float halfPixelWidth = pixelWidth / 2.0;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 7.0 + halfPixelWidth, 0.0)) * 0.06;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 5.0 + halfPixelWidth, 0.0)) * 0.10;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 3.0 + halfPixelWidth, 0.0)) * 0.13;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 1.0 + halfPixelWidth, 0.0)) * 0.16;\nmediump vec4 front = texture2D(samplerFront, vTex);\nsum += front * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 1.0 + halfPixelWidth, 0.0)) * 0.16;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 3.0 + halfPixelWidth, 0.0)) * 0.13;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 5.0 + halfPixelWidth, 0.0)) * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 7.0 + halfPixelWidth, 0.0)) * 0.06;\ngl_FragColor = mix(front, sum, intensity);\n}",Ld:8,
Md:0,he:!1,Ub:!1,$d:!1,Y:[["intensity",0,1]]},blurvertical:{src:"varying mediump vec2 vTex;\nuniform mediump sampler2D samplerFront;\nuniform mediump float pixelHeight;\nuniform mediump float intensity;\nvoid main(void)\n{\nmediump vec4 sum = vec4(0.0);\nmediump float halfPixelHeight = pixelHeight / 2.0;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 7.0 + halfPixelHeight)) * 0.06;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 5.0 + halfPixelHeight)) * 0.10;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 3.0 + halfPixelHeight)) * 0.13;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 1.0 + halfPixelHeight)) * 0.16;\nmediump vec4 front = texture2D(samplerFront, vTex);\nsum += front * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 1.0 + halfPixelHeight)) * 0.16;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 3.0 + halfPixelHeight)) * 0.13;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 5.0 + halfPixelHeight)) * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 7.0 + halfPixelHeight)) * 0.06;\ngl_FragColor = mix(front, sum, intensity);\n}",
Ld:0,Md:8,he:!1,Ub:!1,$d:!1,Y:[["intensity",0,1]]},brightness:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float brightness;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nfront.rgb /= front.a;\nfront.rgb += (brightness - 1.0);\nfront.rgb *= front.a;\ngl_FragColor = front;\n}",Ld:0,Md:0,he:!1,Ub:!0,$d:!1,Y:[["brightness",0,1]]},exposure:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float exposure;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = vec4(front.rgb * pow(2.0, exposure), front.a);\n}",
Ld:0,Md:0,he:!1,Ub:!0,$d:!1,Y:[["exposure",0,1]]},glowhorizontal:{src:"varying mediump vec2 vTex;\nuniform mediump sampler2D samplerFront;\nuniform mediump float pixelWidth;\nuniform mediump float intensity;\nvoid main(void)\n{\nmediump vec4 sum = vec4(0.0);\nmediump float halfPixelWidth = pixelWidth / 2.0;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 7.0 + halfPixelWidth, 0.0)) * 0.06;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 5.0 + halfPixelWidth, 0.0)) * 0.10;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 3.0 + halfPixelWidth, 0.0)) * 0.13;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 1.0 + halfPixelWidth, 0.0)) * 0.16;\nmediump vec4 front = texture2D(samplerFront, vTex);\nsum += front * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 1.0 + halfPixelWidth, 0.0)) * 0.16;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 3.0 + halfPixelWidth, 0.0)) * 0.13;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 5.0 + halfPixelWidth, 0.0)) * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 7.0 + halfPixelWidth, 0.0)) * 0.06;\ngl_FragColor = mix(front, max(front, sum), intensity);\n}",
Ld:8,Md:0,he:!1,Ub:!1,$d:!1,Y:[["intensity",0,1]]},glowvertical:{src:"varying mediump vec2 vTex;\nuniform mediump sampler2D samplerFront;\nuniform mediump float pixelHeight;\nuniform mediump float intensity;\nvoid main(void)\n{\nmediump vec4 sum = vec4(0.0);\nmediump float halfPixelHeight = pixelHeight / 2.0;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 7.0 + halfPixelHeight)) * 0.06;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 5.0 + halfPixelHeight)) * 0.10;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 3.0 + halfPixelHeight)) * 0.13;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 1.0 + halfPixelHeight)) * 0.16;\nmediump vec4 front = texture2D(samplerFront, vTex);\nsum += front * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 1.0 + halfPixelHeight)) * 0.16;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 3.0 + halfPixelHeight)) * 0.13;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 5.0 + halfPixelHeight)) * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 7.0 + halfPixelHeight)) * 0.06;\ngl_FragColor = mix(front, max(front, sum), intensity);\n}",
Ld:0,Md:8,he:!1,Ub:!1,$d:!1,Y:[["intensity",0,1]]},hsladjust:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nprecision mediump float;\nuniform float huerotate;\nuniform float satadjust;\nuniform float lumadjust;\nvec3 rgb_to_hsl(vec3 color)\n{\nvec3 hsl = vec3(0.0, 0.0, 0.0);\nfloat fmin = min(min(color.r, color.g), color.b);\nfloat fmax = max(max(color.r, color.g), color.b);\nfloat delta = fmax - fmin;\nhsl.z = (fmax + fmin) / 2.0;\nif (delta == 0.0)\n{\nhsl.x = 0.0;\nhsl.y = 0.0;\n}\nelse\n{\nif (hsl.z < 0.5)\nhsl.y = delta / (fmax + fmin);\nelse\nhsl.y = delta / (2.0 - fmax - fmin);\nfloat dR = (((fmax - color.r) / 6.0) + (delta / 2.0)) / delta;\nfloat dG = (((fmax - color.g) / 6.0) + (delta / 2.0)) / delta;\nfloat dB = (((fmax - color.b) / 6.0) + (delta / 2.0)) / delta;\nif (color.r == fmax)\nhsl.x = dB - dG;\nelse if (color.g == fmax)\nhsl.x = (1.0 / 3.0) + dR - dB;\nelse if (color.b == fmax)\nhsl.x = (2.0 / 3.0) + dG - dR;\nif (hsl.x < 0.0)\nhsl.x += 1.0;\nelse if (hsl.x > 1.0)\nhsl.x -= 1.0;\n}\nreturn hsl;\n}\nfloat hue_to_rgb(float f1, float f2, float hue)\n{\nif (hue < 0.0)\nhue += 1.0;\nelse if (hue > 1.0)\nhue -= 1.0;\nfloat ret;\nif ((6.0 * hue) < 1.0)\nret = f1 + (f2 - f1) * 6.0 * hue;\nelse if ((2.0 * hue) < 1.0)\nret = f2;\nelse if ((3.0 * hue) < 2.0)\nret = f1 + (f2 - f1) * ((2.0 / 3.0) - hue) * 6.0;\nelse\nret = f1;\nreturn ret;\n}\nvec3 hsl_to_rgb(vec3 hsl)\n{\nvec3 rgb = vec3(hsl.z);\nif (hsl.y != 0.0)\n{\nfloat f2;\nif (hsl.z < 0.5)\nf2 = hsl.z * (1.0 + hsl.y);\nelse\nf2 = (hsl.z + hsl.y) - (hsl.y * hsl.z);\nfloat f1 = 2.0 * hsl.z - f2;\nrgb.r = hue_to_rgb(f1, f2, hsl.x + (1.0 / 3.0));\nrgb.g = hue_to_rgb(f1, f2, hsl.x);\nrgb.b = hue_to_rgb(f1, f2, hsl.x - (1.0 / 3.0));\n}\nreturn rgb;\n}\nvoid main(void)\n{\nvec4 front = texture2D(samplerFront, vTex);\nvec3 rgb = rgb_to_hsl(front.rgb) + vec3(huerotate, 0, (lumadjust - 1.0) * front.a);\nrgb.y *= satadjust;\nrgb = hsl_to_rgb(rgb);\ngl_FragColor = vec4(rgb, front.a);\n}",
Ld:0,Md:0,he:!1,Ub:!0,$d:!1,Y:[["huerotate",0,1],["satadjust",0,1],["lumadjust",0,1]]},setcolor:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp float a = texture2D(samplerFront, vTex).a;\ngl_FragColor = vec4(red * a, green * a, blue * a, a);\n}",Ld:0,Md:0,he:!1,Ub:!0,$d:!1,Y:[["red",0,1],["green",0,1],["blue",0,1]]},warp:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float seconds;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nuniform mediump float layerScale;\nuniform mediump float freqX;\nuniform mediump float freqY;\nuniform mediump float ampX;\nuniform mediump float ampY;\nuniform mediump float speedX;\nuniform mediump float speedY;\nvoid main(void)\n{\nmediump float boxLeft = 0.0;\nmediump float boxTop = 0.0;\nmediump float aspect = pixelHeight / pixelWidth;\nmediump vec2 p = vTex;\np.x += (cos((vTex.y - boxTop) * freqX / layerScale / (pixelWidth * 750.0) + (seconds * speedX)) * ampX * pixelWidth * layerScale);\np.y += (sin((vTex.x - boxLeft) * freqY * aspect / layerScale / (pixelHeight * 750.0) + (seconds * speedY)) * ampY * pixelHeight * layerScale);\ngl_FragColor = texture2D(samplerFront, p);\n}",
Ld:25,Md:25,he:!1,Ub:!1,$d:!0,Y:[["freqX",0,0],["freqY",0,0],["ampX",0,0],["ampY",0,0],["speedX",0,0],["speedY",0,0]]},warpripple:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float seconds;\nuniform mediump float pixelWidth;\nuniform mediump float layerScale;\nuniform mediump float freq;\nuniform mediump float amp;\nuniform mediump float speed;\nconst mediump float PI = 3.1415926;\nvoid main(void)\n{\nmediump vec2 p = vTex;\nmediump vec2 tex = vTex * 2.0 - 1.0;\nmediump float d = length(tex);\nmediump float a = atan(tex.y, tex.x);\nd += sin((d * 2.0 * PI) * freq / layerScale / (pixelWidth * 750.0) + (seconds * speed)) * amp * (pixelWidth * 750.0) * layerScale;\ntex.x = cos(a) * d;\ntex.y = sin(a) * d;\ntex = (tex + 1.0) / 2.0;\ngl_FragColor = texture2D(samplerFront, tex);\n}",
Ld:50,Md:50,he:!1,Ub:!1,$d:!0,Y:[["freq",0,0],["amp",0,1],["speed",0,0]]}};function sc(l){this.b=l}
(function(){function l(){}function h(){}function f(){}var g=!1,m=null,e=null,c="",b=sc.prototype;b.M=function(a){this.ma=a;this.b=a.b};b.M.prototype.H=function(){};b.J=function(a){this.type=a;this.b=a.b;this.ff=this.Yg="";this.La=0;this.timeout=-1;if(g=this.b.pf)m=require("path"),e=require("fs"),c=m.dirname(process.execPath)+"\\"};var t=b.J.prototype,d=null;window.C2_AJAX_DCSide=function(a,b,c){d&&("success"===a?(d.ff=b,d.Yg=c,d.b.trigger(sc.prototype.k.Yl,d)):"error"===a?(d.ff=b,d.b.trigger(sc.prototype.k.wp,
d)):"progress"===a&&(d.La=c,d.ff=b,d.b.trigger(sc.prototype.k.Wt,d)))};t.H=function(){d=this};t.Pa=function(){return{lastData:this.Yg}};t.Va=function(a){this.Yg=a.lastData;this.ff="";this.La=0};var a={},k="";t.YB=function(b,d){if(this.b.wc)AppMobi.webview.execute('C2_AJAX_WebSide("'+b+'", "'+d+'", "GET", null);');else{var f=this,m=null,h=function(){f.ff=b;f.b.trigger(sc.prototype.k.wp,f)},p=function(){if(g){var a=c+d;e.existsSync(a)?e.readFile(a,{encoding:"utf8"},function(a,b){a?h():(f.Yg=b.replace(/\r\n/g,
"\n"),f.b.trigger(sc.prototype.k.Yl,f))}):h()}else h()},l=function(a){a.lengthComputable&&(f.La=a.loaded/a.total,f.ff=b,f.b.trigger(sc.prototype.k.Wt,f))};try{this.b.oe?m=new ActiveXObject("Microsoft.XMLHTTP"):m=new XMLHttpRequest;m.onreadystatechange=function(){4===m.readyState&&(f.ff=b,m.responseText?f.Yg=m.responseText.replace(/\r\n/g,"\n"):f.Yg="",400<=m.status?f.b.trigger(sc.prototype.k.wp,f):g&&!f.Yg.length||f.b.trigger(sc.prototype.k.Yl,f))};this.b.oe||(m.onerror=p,m.ontimeout=p,m.onabort=
p,m.onprogress=l);m.open("GET",d);!this.b.oe&&0<=this.timeout&&"undefined"!==typeof m.timeout&&(m.timeout=this.timeout);try{m.responseType="text"}catch(t){}if(m.setRequestHeader){for(var v in a)if(a.hasOwnProperty(v))try{m.setRequestHeader(v,a[v])}catch(A){}a={}}if(k&&m.overrideMimeType){try{m.overrideMimeType(k)}catch(N){}k=""}m.send()}catch(B){p()}}};l.prototype.Yl=function(a){return ib(a,this.ff)};l.prototype.wp=function(a){return ib(a,this.ff)};l.prototype.Wt=function(a){return ib(a,this.ff)};
b.k=new l;h.prototype.mA=function(a,b){this.YB(a,b)};b.q=new h;f.prototype.jz=function(a){a.Ma(this.Yg)};f.prototype.jA=function(a){a.L(this.La)};b.B=new f})();function tc(l){this.b=l}
(function(){function l(){return b.length?b.pop():[]}function h(c){var d,a;d=0;for(a=c.length;d<a;d++)Array.isArray(c[d])&&h(c[d]);J(c);b.push(c)}function f(){}function g(){}function m(){}var e=tc.prototype;e.M=function(b){this.ma=b;this.b=b.b};e.M.prototype.H=function(){};e.J=function(b){this.type=b;this.b=b.b};var c=e.J.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});c.H=function(){this.kc=this.A[0];this.Tc=this.A[1];this.Bd=this.A[2];
this.Vb||(this.Fe=l());var b=this.Fe;b.length=this.kc;var c,a,e;for(c=0;c<this.kc;c++)for(b[c]||(b[c]=l()),b[c].length=this.Tc,a=0;a<this.Tc;a++)for(b[c][a]||(b[c][a]=l()),b[c][a].length=this.Bd,e=0;e<this.Bd;e++)b[c][a][e]=0;this.Cd=[];this.jf=[];this.Dh=[];this.ke=-1};c.md=function(){var b;for(b=0;b<this.kc;b++)h(this.Fe[b]);J(this.Fe)};c.Rc=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.kc-1||isNaN(c)||0>c||c>this.Tc-1||isNaN(a)||0>a||a>this.Bd-1?0:
this.Fe[b][c][a]};c.set=function(b,c,a,e){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.kc-1||isNaN(c)||0>c||c>this.Tc-1||isNaN(a)||0>a||a>this.Bd-1||(this.Fe[b][c][a]=e)};c.eD=function(){return JSON.stringify({c2array:!0,size:[this.kc,this.Tc,this.Bd],data:this.Fe})};c.Pa=function(){return{size:[this.kc,this.Tc,this.Bd],data:this.Fe}};c.Va=function(b){var c=b.size;this.kc=c[0];this.Tc=c[1];this.Bd=c[2];this.Fe=b.data};c.ng=function(b,c,a){0>b&&(b=0);0>c&&(c=0);0>a&&(a=0);
if(this.kc!==b||this.Tc!==c||this.Bd!==a){this.kc=b;this.Tc=c;this.Bd=a;var e,f,g=this.Fe;g.length=b;for(b=0;b<this.kc;b++)for(ia(g[b])&&(g[b]=l()),g[b].length=c,e=0;e<this.Tc;e++)for(ia(g[b][e])&&(g[b][e]=l()),g[b][e].length=a,f=0;f<this.Bd;f++)ia(g[b][e][f])&&(g[b][e][f]=0)}};c.cv=function(){return 0<=this.ke&&this.ke<this.Cd.length?this.Cd[this.ke]:0};c.hD=function(){return 0<=this.ke&&this.ke<this.jf.length?this.jf[this.ke]:0};c.iD=function(){return 0<=this.ke&&this.ke<this.Dh.length?this.Dh[this.ke]:
0};f.prototype.rp=function(b,c,a){return dc(this.Rc(b,0,0),c,a)};c.zq=function(b){this.b.re(b.fa);b.ud();this.b.qd(b.fa)};f.prototype.ey=function(b){var c=this.b.eb().cb;this.ke++;var a=this.ke;a===this.Cd.length?(this.Cd.push(0),this.jf.push(0),this.Dh.push(0)):(this.Cd[a]=0,this.jf[a]=0,this.Dh[a]=0);switch(b){case 0:for(this.Cd[a]=0;this.Cd[a]<this.kc;this.Cd[a]++)for(this.jf[a]=0;this.jf[a]<this.Tc;this.jf[a]++)for(this.Dh[a]=0;this.Dh[a]<this.Bd;this.Dh[a]++)this.zq(c);break;case 1:for(this.Cd[a]=
0;this.Cd[a]<this.kc;this.Cd[a]++)for(this.jf[a]=0;this.jf[a]<this.Tc;this.jf[a]++)this.zq(c);break;case 2:for(this.Cd[a]=0;this.Cd[a]<this.kc;this.Cd[a]++)this.zq(c)}this.ke--;return!1};f.prototype.ny=function(b,c){return dc(this.Rc(this.cv(),this.hD(),this.iD()),b,c)};e.k=new f;g.prototype.fu=function(b,c,a){this.ng(b,c,a)};g.prototype.Rp=function(b,c){this.set(b,0,0,c)};g.prototype.Ip=function(b){var c=0,a=0,e=this.Fe;if(0!==this.kc&&0!==this.Tc&&0!==this.Bd)switch(b){case 0:e.reverse();break;
case 1:for(;c<this.kc;c++)e[c].reverse();break;case 2:for(;c<this.kc;c++)for(a=0;a<this.Tc;a++)e[c][a].reverse();this.Bd--}};g.prototype.Ft=function(b){var c;try{c=JSON.parse(b)}catch(a){return}c.c2array&&(b=c.size,this.kc=b[0],this.Tc=b[1],this.Bd=b[2],this.Fe=c.data)};e.q=new g;m.prototype.fy=function(b,c,a,e){b.No(this.Rc(c,a||0,e||0))};m.prototype.hm=function(b){b.Z(this.kc)};m.prototype.Wl=function(b){b.Z(this.Tc)};m.prototype.yy=function(b){b.Z(this.cv())};m.prototype.pp=function(b){b.Ma(this.eD())};
e.B=new m})();function uc(l){this.b=l}
(function(){function l(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function h(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function f(a){a=a.toLowerCase();return ka.hasOwnProperty(a)&&ka[a].length?ka[a][0].Od():y.destination}function g(){return y.createGain?y.createGain():y.createGainNode()}function m(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function e(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 b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function t(a,b,c,d,e,f){this.type="filter";this.Gb=[a,b,c,d,e,f];this.Da=g();this.na=g();this.na.gain.value=f;this.ka=g();this.ka.gain.value=1-f;this.Mb=y.createBiquadFilter();this.Mb.type="number"===typeof this.Mb.type?a:td[a];this.Mb.frequency.value=b;this.Mb.detune&&(this.Mb.detune.value=c);this.Mb.Q.value=d;this.Mb.gain.value=e;this.Da.connect(this.Mb);this.Da.connect(this.ka);this.Mb.connect(this.na)}function d(a,b,c){this.type=
"delay";this.Gb=[a,b,c];this.Da=g();this.na=g();this.na.gain.value=c;this.ka=g();this.ka.gain.value=1-c;this.Zk=g();this.je=m(a);this.je.delayTime.value=a;this.Nm=g();this.Nm.gain.value=b;this.Da.connect(this.Zk);this.Da.connect(this.ka);this.Zk.connect(this.na);this.Zk.connect(this.je);this.je.connect(this.Nm);this.Nm.connect(this.Zk)}function a(a,b,c,d){this.type="convolve";this.Gb=[b,c,d];this.Da=g();this.na=g();this.na.gain.value=c;this.ka=g();this.ka.gain.value=1-c;this.wh=y.createConvolver();
a&&(this.wh.normalize=b,this.wh.buffer=a);this.Da.connect(this.wh);this.Da.connect(this.ka);this.wh.connect(this.na)}function k(a,b,c,d,f){this.type="flanger";this.Gb=[a,b,c,d,f];this.Da=g();this.ka=g();this.ka.gain.value=1-f/2;this.na=g();this.na.gain.value=f/2;this.Um=g();this.Um.gain.value=d;this.je=m(a+b);this.je.delayTime.value=a;this.pc=y.createOscillator();this.pc.frequency.value=c;this.Fd=g();this.Fd.gain.value=b;this.Da.connect(this.je);this.Da.connect(this.ka);this.je.connect(this.na);this.je.connect(this.Um);
this.Um.connect(this.je);this.pc.connect(this.Fd);this.Fd.connect(this.je.delayTime);e(this.pc)}function r(a,b,c,d,f,k){this.type="phaser";this.Gb=[a,b,c,d,f,k];this.Da=g();this.ka=g();this.ka.gain.value=1-k/2;this.na=g();this.na.gain.value=k/2;this.Mb=y.createBiquadFilter();this.Mb.type="number"===typeof this.Mb.type?7:"allpass";this.Mb.frequency.value=a;this.Mb.detune&&(this.Mb.detune.value=b);this.Mb.Q.value=c;this.pc=y.createOscillator();this.pc.frequency.value=f;this.Fd=g();this.Fd.gain.value=
d;this.Da.connect(this.Mb);this.Da.connect(this.ka);this.Mb.connect(this.na);this.pc.connect(this.Fd);this.Fd.connect(this.Mb.frequency);e(this.pc)}function n(a){this.type="gain";this.Gb=[a];this.Ka=g();this.Ka.gain.value=a}function D(a,b){this.type="tremolo";this.Gb=[a,b];this.Ka=g();this.Ka.gain.value=1-b/2;this.pc=y.createOscillator();this.pc.frequency.value=a;this.Fd=g();this.Fd.gain.value=b/2;this.pc.connect(this.Fd);this.Fd.connect(this.Ka.gain);e(this.pc)}function w(a,b){this.type="ringmod";
this.Gb=[a,b];this.Da=g();this.na=g();this.na.gain.value=b;this.ka=g();this.ka.gain.value=1-b;this.ql=g();this.ql.gain.value=0;this.pc=y.createOscillator();this.pc.frequency.value=a;this.pc.connect(this.ql.gain);e(this.pc);this.Da.connect(this.ql);this.Da.connect(this.ka);this.ql.connect(this.na)}function u(a,b,c,d,e){this.type="distortion";this.Gb=[a,b,c,d,e];this.Da=g();this.qo=g();this.po=g();this.UE(c,Math.pow(10,d/20));this.na=g();this.na.gain.value=e;this.ka=g();this.ka.gain.value=1-e;this.mp=
y.createWaveShaper();this.Lm=new Float32Array(65536);this.cD(a,b);this.mp.Lm=this.Lm;this.Da.connect(this.qo);this.Da.connect(this.ka);this.qo.connect(this.mp);this.mp.connect(this.po);this.po.connect(this.na)}function p(a,b,c,d,e){this.type="compressor";this.Gb=[a,b,c,d,e];this.Ka=y.createDynamicsCompressor();try{this.Ka.threshold.value=a,this.Ka.knee.value=b,this.Ka.ratio.value=c,this.Ka.attack.value=d,this.Ka.release.value=e}catch(f){}}function q(a,b){this.type="analyser";this.Gb=[a,b];this.Ka=
y.createAnalyser();this.Ka.fftSize=a;this.Ka.smoothingTimeConstant=b;this.aD=new Float32Array(this.Ka.frequencyBinCount);this.kx=new Uint8Array(a);this.gl=0}function X(){this.la=null;this.Jn=0;this.kh=[];this.Zr=this.Dn=this.Cn=0}function v(a,b){this.src=a;this.xa=z;this.Ne=b;this.km=!1;var c=this;this.Xr=this.os=null;this.wj=[];this.Fo=0;this.qt=this.Gq=this.tx=this.jo=!1;1===z&&b&&(this.xa=0,this.os=g());this.sh=this.Sa=null;var d;switch(this.xa){case 0:this.Sa=new Audio;this.Sa.crossOrigin="anonymous";
this.Sa.addEventListener("canplaythrough",function(){c.qt=!0});1===z&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.tx=!0,this.Sa.addEventListener("canplay",function(){c.Xr||(c.Xr=y.createMediaElementSource(c.Sa),c.Xr.connect(c.os))}));this.Sa.autoplay=!1;this.Sa.dG="auto";this.Sa.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.sh=d.response;c.PB()};d.onerror=function(){c.Gq=!0};d.send();break;case 2:this.Sa=!0;
break;case 3:this.Sa=!0}}function A(a,b){var c=this;this.tag=b;this.Wa=this.Vf=!0;this.src=a.src;this.buffer=a;this.xa=z;this.Ne=a.Ne;this.playbackRate=1;this.Vi=!0;this.Dd=this.Ud=!1;this.td=0;this.Ik=this.$i=this.rf=!1;this.volume=1;this.ls=function(){c.Dd||c.Ud||this!==c.im||(c.Vi=!0,c.Wa=!0,Z=c.tag,G.trigger(uc.prototype.k.Zl,P))};this.im=null;this.Yi=1===O&&!this.Ne||2===O;this.rj=1;this.startTime=this.Yi?G.Ob.S:G.yg.S;this.Fb=this.cc=null;this.uf=!1;this.Eb=null;this.Hw=this.Gw=this.Fw=this.Ew=
this.Jw=this.Iw=0;this.I=null;var d=!1;1!==this.xa||0!==this.buffer.xa||this.buffer.tx||(this.xa=0);switch(this.xa){case 0:this.Ne?(this.I=a.Sa,d=!a.km,a.km=!0):(this.I=new Audio,this.I.crossOrigin="anonymous",this.I.autoplay=!1,this.I.src=a.Sa.src,d=!0);d&&this.I.addEventListener("ended",function(){Z=c.tag;c.Wa=!0;G.trigger(uc.prototype.k.Zl,P)});break;case 1:this.cc=g();this.cc.connect(f(b));1===this.buffer.xa?a.Sa&&(this.I=y.createBufferSource(),this.I.buffer=a.Sa,this.I.connect(this.cc)):(this.I=
this.buffer.Sa,this.buffer.os.connect(this.cc),this.buffer.km||(this.buffer.km=!0,this.buffer.Sa.addEventListener("ended",function(){Z=c.tag;c.Wa=!0;G.trigger(uc.prototype.k.Zl,P)})));break;case 2:this.I=new window.Media(T+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Vi=!0,c.Wa=!0,Z=c.tag,G.trigger(uc.prototype.k.Zl,P))});break;case 3:this.I=!0}}function N(a,b){var c=a.Zf()?1:0,d=b.Zf()?1:0;return c===d?0:c<d?1:-1}function B(a,b){J(Aa);if(a.length){var c,d,e;c=0;for(d=L.length;c<
d;c++)e=L[c],ib(a,e.tag)&&Aa.push(e);b&&Aa.sort(N)}else K&&!K.Ui()&&(J(Aa),Aa[0]=K)}function E(a,b){ka.hasOwnProperty(a)?ka[a].push(b):ka[a]=[b];var c,d,e,f,g=y.destination;if(ka.hasOwnProperty(a)&&(e=ka[a],e.length))for(g=e[0].Od(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.ge(y.destination):f.ge(e[c+1].Od());B(a);c=0;for(d=Aa.length;c<d;c++)Aa[c].GE(g);lb&&hc===a&&(lb.disconnect(),lb.connect(g))}function x(){}function H(){}function ba(){}var R=uc.prototype;R.M=function(a){this.ma=a;this.b=a.b};R.M.prototype.H=
function(){};var G=null,P=null,Z="",T="",z=0,y=null,F=[],L=[],K=null,I=!1,O=0,V=!1,S=1,U=0,fa=0,Ka=1,wa=1,cd=10,ed=1E4,fd=1,lb=null,hc="",xb=!1,yb=[],ka={},td="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");t.prototype.ge=function(a){this.na.disconnect();this.na.connect(a);this.ka.disconnect();this.ka.connect(a)};t.prototype.remove=function(){this.Da.disconnect();this.Mb.disconnect();this.na.disconnect();this.ka.disconnect()};t.prototype.Od=function(){return this.Da};
d.prototype.ge=function(a){this.na.disconnect();this.na.connect(a);this.ka.disconnect();this.ka.connect(a)};d.prototype.remove=function(){this.Da.disconnect();this.Zk.disconnect();this.je.disconnect();this.Nm.disconnect();this.na.disconnect();this.ka.disconnect()};d.prototype.Od=function(){return this.Da};a.prototype.ge=function(a){this.na.disconnect();this.na.connect(a);this.ka.disconnect();this.ka.connect(a)};a.prototype.remove=function(){this.Da.disconnect();this.wh.disconnect();this.na.disconnect();
this.ka.disconnect()};a.prototype.Od=function(){return this.Da};k.prototype.ge=function(a){this.ka.disconnect();this.ka.connect(a);this.na.disconnect();this.na.connect(a)};k.prototype.remove=function(){this.Da.disconnect();this.je.disconnect();this.pc.disconnect();this.Fd.disconnect();this.ka.disconnect();this.na.disconnect();this.Um.disconnect()};k.prototype.Od=function(){return this.Da};r.prototype.ge=function(a){this.ka.disconnect();this.ka.connect(a);this.na.disconnect();this.na.connect(a)};r.prototype.remove=
function(){this.Da.disconnect();this.Mb.disconnect();this.pc.disconnect();this.Fd.disconnect();this.ka.disconnect();this.na.disconnect()};r.prototype.Od=function(){return this.Da};n.prototype.ge=function(a){this.Ka.disconnect();this.Ka.connect(a)};n.prototype.remove=function(){this.Ka.disconnect()};n.prototype.Od=function(){return this.Ka};D.prototype.ge=function(a){this.Ka.disconnect();this.Ka.connect(a)};D.prototype.remove=function(){this.pc.disconnect();this.Fd.disconnect();this.Ka.disconnect()};
D.prototype.Od=function(){return this.Ka};w.prototype.ge=function(a){this.na.disconnect();this.na.connect(a);this.ka.disconnect();this.ka.connect(a)};w.prototype.remove=function(){this.pc.disconnect();this.ql.disconnect();this.Da.disconnect();this.na.disconnect();this.ka.disconnect()};w.prototype.Od=function(){return this.Da};u.prototype.UE=function(a,b){.01>a&&(a=.01);this.qo.gain.value=a;this.po.gain.value=Math.pow(1/a,.6)*b};u.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:
a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};u.prototype.cD=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Lm[32768+f]=e,this.Lm[32768-f-1]=-e};u.prototype.ge=function(a){this.na.disconnect();this.na.connect(a);this.ka.disconnect();this.ka.connect(a)};u.prototype.remove=function(){this.Da.disconnect();this.qo.disconnect();this.mp.disconnect();this.po.disconnect();this.na.disconnect();this.ka.disconnect()};u.prototype.Od=
function(){return this.Da};p.prototype.ge=function(a){this.Ka.disconnect();this.Ka.connect(a)};p.prototype.remove=function(){this.Ka.disconnect()};p.prototype.Od=function(){return this.Ka};q.prototype.ta=function(){this.Ka.getFloatFrequencyData(this.aD);this.Ka.getByteTimeDomainData(this.kx);for(var a=this.Ka.fftSize,b=0,c=this.gl=0,d=0;b<a;b++)d=(this.kx[b]-128)/128,0>d&&(d=-d),this.gl<d&&(this.gl=d),c+=d*d;this.gl=h(this.gl);h(Math.sqrt(c/a))};q.prototype.ge=function(a){this.Ka.disconnect();this.Ka.connect(a)};
q.prototype.remove=function(){this.Ka.disconnect()};q.prototype.Od=function(){return this.Ka};X.prototype.rl=function(a){if(this.la=a)this.Cn=this.la.x,this.Dn=this.la.y;J(this.kh)};X.prototype.rn=function(){return!!this.la};X.prototype.ta=function(a){this.la&&0!==a&&(this.Zr=Ma(this.Cn,this.Dn,this.la.x,this.la.y),a=Sa(this.Cn,this.Dn,this.la.x,this.la.y)/a,4>this.kh.length||this.kh.shift(),this.kh.push(a),this.Cn=this.la.x,this.Dn=this.la.y)};X.prototype.kv=function(){if(!this.kh.length)return 0;
var a,b,c=0;a=0;for(b=this.kh.length;a<b;a++)c+=this.kh[a];return c/this.kh.length};X.prototype.Xq=function(){return Math.cos(this.Zr)*this.kv()};X.prototype.Yq=function(){return Math.sin(this.Zr)*this.kv()};var gd=!1;v.prototype.PB=function(){if(!this.Sa&&this.sh){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.sh,function(b){a.Sa=b;a.sh=null;var c,d,e;if(ia(a.lo)||V)ia(a.Gm)||(c=a.Gm.wh,c.normalize=a.rw,c.buffer=b);else if(a.wj.length){c=0;for(d=a.wj.length;c<d;c++){b=a.wj[c];e=new A(a,b.yx);
e.Ko(!0);if("undefined"!==typeof b.uw&&(b.la=G.Eh(b.uw),!b.la))continue;if(b.la){var f=Ra(b.la.x,b.la.y,-b.la.C.Bb(),U,fa,!0),g=Ra(b.la.x,b.la.y,-b.la.C.Bb(),U,fa,!1);e.Ks(f,g,Ga(b.la.u-b.la.C.Bb()),b.er,b.$r,b.cs);e.rl(b.la)}else e.Ks(b.x,b.y,b.pB,b.er,b.$r,b.cs);e.play(a.Sr,a.ot,a.Fo);a.jo&&e.pause();L.push(e)}J(a.wj)}else e=new A(a,a.lo||""),e.play(a.Sr,a.ot,a.Fo),a.jo&&e.pause(),L.push(e)},function(){a.Gq=!0});else if(this.Sa=y.createBuffer(this.sh,!1),this.sh=null,ia(this.lo)||V)ia(this.Gm)||
(b=this.Gm.wh,b.normalize=this.rw,b.buffer=this.Sa);else{var b=new A(this,this.lo);b.play(this.Sr,this.ot,this.Fo);this.jo&&b.pause();L.push(b)}}};v.prototype.Av=function(){switch(this.xa){case 0:var a=4<=this.Sa.readyState;a&&(this.qt=!0);return a||this.qt;case 1:return!!this.sh||!!this.Sa;case 2:return!0;case 3:return!0}return!1};v.prototype.VD=function(){switch(this.xa){case 0:return this.Av();case 1:return!!this.Sa;case 2:return!0;case 3:return!0}return!1};v.prototype.KD=function(){switch(this.xa){case 0:return!!this.Sa.error;
case 1:return this.Gq}return!1};A.prototype.Ui=function(){switch(this.xa){case 0:return this.I.ended;case 1:return 1===this.buffer.xa?!this.Vf&&!this.Wa&&this.I.loop||this.Dd?!1:this.Vi:this.I.ended;case 2:return this.Vi;case 3:!0}return!0};A.prototype.HB=function(){return this.Vf||this.Wa?!0:this.Ui()};A.prototype.Ko=function(a){1===z&&(!this.uf&&a?this.cc&&(this.Fb||(this.Fb=y.createPanner(),this.Fb.panningModel="number"===typeof this.Fb.panningModel?Ka:["equalpower","HRTF","soundfield"][Ka],this.Fb.distanceModel=
"number"===typeof this.Fb.distanceModel?wa:["linear","inverse","exponential"][wa],this.Fb.refDistance=cd,this.Fb.maxDistance=ed,this.Fb.rolloffFactor=fd),this.cc.disconnect(),this.cc.connect(this.Fb),this.Fb.connect(f(this.tag)),this.uf=!0):this.uf&&!a&&this.cc&&(this.Fb.disconnect(),this.cc.disconnect(),this.cc.connect(f(this.tag)),this.uf=!1))};A.prototype.Ks=function(a,b,c,d,e,f){this.uf&&1===z&&(this.Fb.setPosition(a,b,0),this.Fb.setOrientation(Math.cos(M(c)),Math.sin(M(c)),0),this.Fb.coneInnerAngle=
d,this.Fb.coneOuterAngle=e,this.Fb.coneOuterGain=f,this.Iw=a,this.Jw=b,this.Ew=c,this.Fw=d,this.Gw=e,this.Hw=f)};A.prototype.rl=function(a){this.uf&&1===z&&(this.Eb||(this.Eb=new X),this.Eb.rl(a))};A.prototype.ta=function(a){if(this.uf&&1===z&&this.Eb&&this.Eb.rn()&&this.Zf()){this.Eb.ta(a);a=this.Eb.la;var b=Ra(a.x,a.y,-a.C.Bb(),U,fa,!0),c=Ra(a.x,a.y,-a.C.Bb(),U,fa,!1);this.Fb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Eb.la.u&&(b=a.u-a.C.Bb(),this.Fb.setOrientation(Math.cos(b),Math.sin(b),
0));b=Ra(this.Eb.Xq(),this.Eb.Yq(),-a.C.Bb(),0,0,!0);c=Ra(this.Eb.Xq(),this.Eb.Yq(),-a.C.Bb(),0,0,!1);this.Fb.setVelocity(b,c,0)}};A.prototype.play=function(a,b,d){var f=this.I;this.rf=a;this.volume=b;d=d||0;switch(this.xa){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*S&&(f.volume=b*S);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==d)try{f.currentTime=d}catch(g){}if(this.Ne&&xb&&!G.Cb)yb.push(this);else try{this.I.play()}catch(k){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+
this.buffer.src+"': ",k)}break;case 1:this.muted=!1;this.rj=1;if(1===this.buffer.xa)this.cc.gain.value=b*S,this.Vf||(this.I=y.createBufferSource(),this.I.buffer=this.buffer.Sa,this.I.connect(this.cc)),this.I.onended=this.ls,this.im=this.I,this.I.loop=a,this.Vi=!1,0===d?e(this.I):c(this.I,d,this.Rg());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*S;if(f.currentTime!==d)try{f.currentTime=d}catch(m){}this.Ne&&xb&&!G.Cb?yb.push(this):f.play()}break;case 2:(!this.Vf&&this.Wa||
0!==d)&&f.seekTo(d);f.play();this.Vi=!1;break;case 3:G.wc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Yi?G.Ob.S:G.yg.S)-d;this.Dd=this.Wa=this.Vf=!1};A.prototype.stop=function(){switch(this.xa){case 0:this.I.paused||this.I.pause();break;case 1:1===this.buffer.xa?b(this.I):this.I.paused||this.I.pause();break;case 2:this.I.stop();break;case 3:G.wc&&AppMobi.context.stopSound(this.src)}this.Wa=!0;this.Dd=!1};A.prototype.pause=function(){if(!(this.Vf||
this.Wa||this.Ui()||this.Dd)){switch(this.xa){case 0:this.I.paused||this.I.pause();break;case 1:1===this.buffer.xa?(this.td=this.Tq(),this.rf&&(this.td=this.td%this.Rg()),this.Dd=!0,b(this.I)):this.I.paused||this.I.pause();break;case 2:this.I.pause();break;case 3:G.wc&&AppMobi.context.stopSound(this.src)}this.Dd=!0}};A.prototype.KE=function(){if(!(this.Vf||this.Wa||this.Ui())&&this.Dd){switch(this.xa){case 0:this.I.play();break;case 1:1===this.buffer.xa?(this.I=y.createBufferSource(),this.I.buffer=
this.buffer.Sa,this.I.connect(this.cc),this.I.onended=this.ls,this.im=this.I,this.I.loop=this.rf,this.cc.gain.value=S*this.volume*this.rj,this.startTime=(this.Yi?G.Ob.S:G.yg.S)-this.td,c(this.I,this.td,this.Rg())):this.I.play();break;case 2:this.I.play();break;case 3:G.wc&&AppMobi.context.resumeSound(this.src)}this.Dd=!1}};A.prototype.seek=function(a){if(!(this.Vf||this.Wa||this.Ui()))switch(this.xa){case 0:try{this.I.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.xa)this.Dd?this.td=a:(this.pause(),
this.td=a,this.KE());else try{this.I.currentTime=a}catch(c){}break;case 3:G.wc&&AppMobi.context.seekSound(this.src,a)}};A.prototype.GE=function(a){1===this.xa&&(this.uf?(this.Fb.disconnect(),this.Fb.connect(a)):(this.cc.disconnect(),this.cc.connect(a)))};A.prototype.Rg=function(){switch(this.xa){case 0:if("undefined"!==typeof this.I.duration)return this.I.duration;break;case 1:return this.buffer.Sa.duration;case 2:return this.I.getDuration();case 3:if(G.wc)return AppMobi.context.getDurationSound(this.src)}return 0};
A.prototype.Tq=function(){var a=this.Rg(),b=0;switch(this.xa){case 0:"undefined"!==typeof this.I.currentTime&&(b=this.I.currentTime);break;case 1:if(1===this.buffer.xa){if(this.Dd)return this.td;b=(this.Yi?G.Ob.S:G.yg.S)-this.startTime}else"undefined"!==typeof this.I.currentTime&&(b=this.I.currentTime);break;case 3:G.wc&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.rf&&b>a&&(b=a);return b};A.prototype.Zf=function(){return!this.Dd&&!this.Vf&&!this.Wa&&!this.Ui()};A.prototype.fF=function(){var a=
this.volume*S;isFinite(a)||(a=0);switch(this.xa){case 0:"undefined"!==typeof this.I.volume&&this.I.volume!==a&&(this.I.volume=a);break;case 1:1===this.buffer.xa?this.cc.gain.value=a*this.rj:"undefined"!==typeof this.I.volume&&this.I.volume!==a&&(this.I.volume=a)}};A.prototype.Qm=function(a){switch(this.xa){case 0:this.I.muted!==!!a&&(this.I.muted=!!a);break;case 1:1===this.buffer.xa?(this.rj=a?0:1,this.cc.gain.value=S*this.volume*this.rj):this.I.muted!==!!a&&(this.I.muted=!!a)}};A.prototype.VE=function(){this.$i=
!0;this.Qm(this.$i||this.Ik)};A.prototype.Lo=function(a){this.Ik=!!a;this.Qm(this.$i||this.Ik)};A.prototype.WE=function(a){this.playbackRate=a;this.jt()};A.prototype.jt=function(){var a=this.playbackRate;this.Yi&&(a*=G.oh);switch(this.xa){case 0:this.I.playbackRate!==a&&(this.I.playbackRate=a);break;case 1:1===this.buffer.xa?this.I.playbackRate.value!==a&&(this.I.playbackRate.value=a):this.I.playbackRate!==a&&(this.I.playbackRate=a)}};A.prototype.ZE=function(a){switch(this.xa){case 0:a?this.Zf()?
(this.Ud=!0,this.I.pause()):this.Ud=!1:this.Ud&&(this.I.play(),this.Ud=!1);break;case 1:a?this.Zf()?(this.Ud=!0,1===this.buffer.xa?(this.td=this.Tq(),this.rf&&(this.td=this.td%this.Rg()),b(this.I)):this.I.pause()):this.Ud=!1:this.Ud&&(1===this.buffer.xa?(this.I=y.createBufferSource(),this.I.buffer=this.buffer.Sa,this.I.connect(this.cc),this.I.onended=this.ls,this.im=this.I,this.I.loop=this.rf,this.cc.gain.value=S*this.volume*this.rj,this.startTime=(this.Yi?G.Ob.S:G.yg.S)-this.td,c(this.I,this.td,
this.Rg())):this.I.play(),this.Ud=!1);break;case 2:a?this.Zf()?(this.I.pause(),this.Ud=!0):this.Ud=!1:this.Ud&&(this.Ud=!1,this.I.play())}};R.J=function(a){this.type=a;G=this.b=a.b;P=this;this.Xc=null;this.Qk=-600;!(this.b.Vg||this.b.Wi&&(this.b.Ck||this.b.vn))||this.b.Xi||this.b.ua||this.b.Bk||(xb=!0);y=null;"undefined"!==typeof AudioContext?(z=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(z=1,y=new webkitAudioContext);(this.b.Vg&&1===z||xb)&&document.addEventListener("touchstart",
function(){var a,b,c;!gd&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),b.buffer=a,b.connect(y.destination),e(b),gd=!0);if(xb){if(!V)for(a=0,b=yb.length;a<b;++a)c=yb[a],c.Wa||c.Dd||c.I.play();J(yb)}},!0);1!==z&&(this.b.kd&&"undefined"!==typeof window.Media?z=2:this.b.yv&&(z=3));2===z&&(T=location.href,a=T.lastIndexOf("/"),-1<a&&(T=T.substr(0,a+1)),T=T.replace("file://",""));if(this.b.Cv&&this.b.WD&&"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.Hd(this);else{if(this.b.wc)I=this.b.Wi;else try{I=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){I=!1}this.b.nh(this)}};var Qa=R.J.prototype;Qa.H=function(){this.b.Bi=this;O=this.A[0];this.mg=this.A[1];this.uE=0!==this.A[2];Ka=this.A[3];wa=this.A[4];this.Qk=-this.A[5];cd=this.A[6];ed=this.A[7];fd=this.A[8];this.Xc=new X;var a=this.b.da||this.b.width,b=this.b.ca||this.b.height;1===z&&("undefined"!==typeof y.listener.dopplerFactor&&(y.listener.dopplerFactor=0),y.listener.setPosition(a/
2,b/2,this.Qk),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){lb&&lb.disconnect();hc=b.toLowerCase();lb=y.createMediaStreamSource(a);lb.connect(f(hc))});this.b.vu(function(a){P.qE(a)});var c=this;this.b.jm(function(a){c.dl(a)})};Qa.dl=function(a){var b,c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.Eb&&d.Eb.la===a&&(d.Eb.la=null,d.uf&&d.Zf()&&d.rf&&d.stop());this.Xc.la===a&&(this.Xc.la=null)};Qa.Pa=function(){var a={silent:V,masterVolume:S,listenerZ:this.Qk,listenerUid:this.Xc.rn()?
this.Xc.la.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,k;c=0;for(d=L.length;c<d;c++)e=L[c],!e.Zf()||3===this.mg||e.Ne&&1===this.mg||!e.Ne&&2===this.mg||(f=e.Tq(),e.rf&&(f=f%e.Rg()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Ne,playbackTime:f,volume:e.volume,looping:e.rf,muted:e.$i,playbackRate:e.playbackRate,paused:e.Dd,resume_position:e.td},e.uf&&(f.pan={},k=f.pan,e.Eb&&e.Eb.rn()?k.objUid=e.Eb.la.uid:(k.x=e.Iw,k.y=e.Jw,k.a=e.Ew),k.ia=e.Fw,k.oa=e.Gw,k.og=e.Hw),b.push(f));b=a.effects;for(g in ka)if(ka.hasOwnProperty(g)){e=
[];c=0;for(d=ka[g].length;c<d;c++)e.push({type:ka[g][c].type,params:ka[g][c].Gb});b[g]=e}return a};var zb=[];Qa.Va=function(b){var c=b.silent;S=b.masterVolume;this.Qk=b.listenerZ;this.Xc.rl(null);var e=b.listenerUid;-1!==e&&(this.Xc.Jn=e,zb.push(this.Xc));var e=b.playing,f,g,m,h,l,A,B,N,v,x,H;if(3!==this.mg)for(f=0,g=L.length;f<g;f++)v=L[f],v.Ne&&1===this.mg||(v.Ne||2!==this.mg)&&v.stop();for(l in ka)if(ka.hasOwnProperty(l))for(f=0,g=ka[l].length;f<g;f++)ka[l][f].remove();Wa(ka);for(l in b.effects)if(b.effects.hasOwnProperty(l))for(A=
b.effects[l],f=0,g=A.length;f<g;f++)switch(m=A[f].type,x=A[f].params,m){case "filter":E(l,new t(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":E(l,new d(x[0],x[1],x[2]));break;case "convolve":m=x[2];v=this.gn(m,!1);v.Sa?m=new a(v.Sa,x[0],x[1],m):(m=new a(null,x[0],x[1],m),v.rw=x[0],v.Gm=m);E(l,m);break;case "flanger":E(l,new k(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":E(l,new r(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":E(l,new n(x[0]));break;case "tremolo":E(l,new D(x[0],x[1]));break;
case "ringmod":E(l,new w(x[0],x[1]));break;case "distortion":E(l,new u(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":E(l,new p(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":E(l,new q(x[0],x[1]))}f=0;for(g=e.length;f<g;f++)3===this.mg||(b=e[f],m=b.buffersrc,h=b.is_music,l=b.tag,A=b.playbackTime,B=b.looping,N=b.volume,H=(x=b.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,h&&1===this.mg)||!h&&2===this.mg||((v=this.Nq(m,l,h,B,N))?(v.td=b.resume_position,v.Ko(!!x),v.play(B,N,A),v.jt(),v.fF(),v.Qm(v.$i||
v.Ik),b.paused&&v.pause(),b.muted&&v.VE(),v.Qm(v.$i||v.Ik),x&&(-1!==H?(v.Eb=v.Eb||new X,v.Eb.Jn=H,zb.push(v.Eb)):v.Ks(x.x,x.y,x.a,x.ia,x.oa,x.og))):(v=this.gn(m,h),v.Fo=A,v.jo=b.paused,x&&(-1!==H?v.wj.push({uw:H,er:x.ia,$r:x.oa,cs:x.og,yx:l}):v.wj.push({x:x.x,y:x.y,pB:x.a,er:x.ia,$r:x.oa,cs:x.og,yx:l}))));if(c&&!V){f=0;for(g=L.length;f<g;f++)L[f].Lo(!0);V=!0}else if(!c&&V){f=0;for(g=L.length;f<g;f++)L[f].Lo(!1);V=!1}};Qa.Ce=function(){var a,b,c,d;a=0;for(b=zb.length;a<b;a++)c=zb[a],d=this.b.Eh(c.Jn),
c.rl(d),c.Jn=-1,d&&(U=d.x,fa=d.y);J(zb)};Qa.qE=function(a){if(!this.uE){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=L.length;b<c;b++)L[b].ZE(a);a&&y&&y.suspend&&y.suspend()}};Qa.ta=function(){var a=this.b.Lg,b,c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.ta(a),0!==O&&d.jt();var e,f;for(e in ka)if(ka.hasOwnProperty(e))for(d=ka[e],b=0,c=d.length;b<c;b++)f=d[b],f.ta&&f.ta();1===z&&this.Xc.rn()&&(this.Xc.ta(a),U=this.Xc.la.x,fa=this.Xc.la.y,y.listener.setPosition(this.Xc.la.x,this.Xc.la.y,this.Qk),y.listener.setVelocity(this.Xc.Xq(),
this.Xc.Yq(),0))};var Ab=[];Qa.XE=function(a){var b,c,d,e,f,g=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))&&I||!f&&!I)Ab.push({filename:e,size:d,la:null}),g+=d;return g};Qa.bF=function(){var a,b,c,d;a=0;for(b=Ab.length;a<b;++a)c=Ab[a],d=this.b.Vm+c.filename,c.la=this.gn(d,!1)};Qa.pD=function(){var a=0,b,c,d;b=0;for(c=Ab.length;b<c;++b)d=Ab[b],d.la.VD()||d.la.KD()||this.b.ua||this.b.vn?a+=d.size:d.la.Av()&&(a+=Math.floor(d.size/2));return a};
Qa.gn=function(a,b){var c,d,e,f=null;c=0;for(d=F.length;c<d;c++)if(e=F[c],e.src===a){f=e;break}f||(f=new v(a,b),F.push(f));return f};Qa.Nq=function(a,b,c,d,e){var f,g,k;f=0;for(g=L.length;f<g;f++)if(k=L[f],k.src===a&&(k.HB()||c))return k.tag=b,k;a=this.gn(a,c);if(!a.Sa)return"<preload>"!==b&&(a.lo=b,a.Sr=d,a.ot=e),null;k=new A(a,b);L.push(k);return k};var Aa=[];x.prototype.Zl=function(a){return ib(Z,a)};x.prototype.gz=function(a){B(a);var b;a=0;for(b=Aa.length;a<b;a++)if(Aa[a].Zf())return!0;return!1};
R.k=new x;H.prototype.Play=function(a,b,c,d){!V&&(c=l(c),K=this.Nq(this.b.Vm+a[0]+(I?".ogg":".m4a"),d,a[1],0!==b,c))&&(K.Ko(!1),K.play(0!==b,c))};H.prototype.gA=function(a,b,c,d,e){!V&&(d=l(d),K=this.Nq(this.b.Vm+b.toLowerCase()+(I?".ogg":".m4a"),e,1===a,0!==c,d))&&(K.Ko(!1),K.play(0!==c,d))};H.prototype.KA=function(a,b){B(a);0>b&&(b=0);var c,d;c=0;for(d=Aa.length;c<d;c++)Aa[c].WE(b)};H.prototype.gm=function(a){B(a);var b;a=0;for(b=Aa.length;a<b;a++)Aa[a].stop()};H.prototype.OA=function(a){var b;
2===a&&(a=V?1:0);if(0===a&&!V){a=0;for(b=L.length;a<b;a++)L[a].Lo(!0);V=!0}else if(1===a&&V){a=0;for(b=L.length;a<b;a++)L[a].Lo(!1);V=!1}};R.q=new H;ba.prototype.zt=function(a,b){B(b,!0);Aa.length?a.L(Aa[0].Rg()):a.L(0)};R.B=new ba})();function vc(l){this.b=l}
(function(){function l(){}function h(){}function f(b){console&&console.warn&&console.warn("Fullscreen request failed: ",b);c.setSize(window.innerWidth,window.innerHeight)}function g(){}var m=vc.prototype;m.M=function(b){this.ma=b;this.b=b.b};m.M.prototype.H=function(){};m.J=function(b){this.type=b;this.b=b.b};m.J.prototype.H=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(vc.prototype.k.Wz,b)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",
function(){b.b.trigger(vc.prototype.k.Sz,b)}),window.addEventListener("offline",function(){b.b.trigger(vc.prototype.k.Rz,b)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){b.b.lj=1;b.b.trigger(vc.prototype.k.$t,b)}),window.applicationCache.addEventListener("progress",function(c){b.b.lj=c.loaded/c.total}));this.b.wc||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(vc.prototype.k.$t,b)}),document.addEventListener("backbutton",
function(){b.b.trigger(vc.prototype.k.vp,b)}),document.addEventListener("menubutton",function(){b.b.trigger(vc.prototype.k.Bp,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(vc.prototype.k.Yz,b)}),document.addEventListener("tizenhwkey",function(c){var d;switch(c.keyName){case "back":d=b.b.trigger(vc.prototype.k.vp,b);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=b.b.trigger(vc.prototype.k.Bp,b))||c.preventDefault()}}));this.b.Hk&&
WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(vc.prototype.k.vp,b)});this.b.vu(function(c){c?b.b.trigger(vc.prototype.k.Tz,b):b.b.trigger(vc.prototype.k.Uz,b)});this.Gv="undefined"!==typeof window.is_scirra_arcade};l.prototype.Sz=function(){return!0};l.prototype.Rz=function(){return!0};l.prototype.Ty=function(){return"undefined"===typeof window.applicationCache?!1:window.applicationCache.status===window.applicationCache.DOWNLOADING};l.prototype.$t=function(){return!0};
l.prototype.Uz=function(){return!0};l.prototype.Tz=function(){return!0};l.prototype.Wz=function(){return!0};l.prototype.vp=function(){return!0};l.prototype.Bp=function(){return!0};l.prototype.Yz=function(){return!0};m.k=new l;h.prototype.jy=function(){this.b.jd?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.Gv||this.b.ua||
window.close()};h.prototype.Ly=function(b,c){this.b.jd?CocoonJS.App.openURL(b):this.b.ne?ejecta.openURL(b):this.b.Hk?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(b)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(b,{openExternal:!0}):this.b.kd?window.open(b,"_system"):this.Gv||this.b.ua||window.open(b,c)};var e=!0,c=null;h.prototype.nA=function(b){this.b.ua?ga("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=
b&&(b+=1),6===b&&(b=2),this.b.yn?this.b.zv?debuggerFullscreen(!0):!this.b.qf&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.qf=!0,this.b.Wf=2<=b?b:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Wf=2<=b?b:0,b=this.b.jq||this.b.canvas,e&&(e=!1,c=this.b,b.addEventListener("mozfullscreenerror",f),b.addEventListener("webkitfullscreenerror",f),b.addEventListener("MSFullscreenError",f),b.addEventListener("fullscreenerror",
f)),b.requestFullscreen?b.requestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?b.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):b.webkitRequestFullScreen())))};h.prototype.gy=function(){this.b.ua?ga("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):this.b.yn?this.b.zv?debuggerFullscreen(!1):
this.b.qf&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.qf=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};h.prototype.wy=function(b,c){"undefined"!==typeof console&&(0===b&&console.log&&console.log(c.toString()),1===b&&console.warn&&console.warn(c.toString()),2===b&&console.error&&console.error(c.toString()))};
m.q=new h;g.prototype.Cy=function(b){b.Ma(this.b.ua?"":window.location.hostname)};m.B=new g})();function rc(l){this.b=l}
(function(){function l(){this.name="";this.Ej=0;this.Gb=[]}function h(){t++;t===b.length&&b.push(new l);return b[t]}function f(){return 0>t?null:b[t]}function g(){}function m(){}function e(){}var c=rc.prototype;c.M=function(b){this.ma=b;this.b=b.b};c.M.prototype.H=function(){};c.J=function(b){this.type=b;this.b=b.b};var b=[],t=-1;c.J.prototype.H=function(){var b=this;window.c2_callFunction=function(a,c){var e,f,g,m=h();m.name=a.toLowerCase();m.Ej=0;if(c)for(m.Gb.length=c.length,e=0,f=c.length;e<f;++e)g=
c[e],m.Gb[e]="number"===typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else J(m.Gb);b.b.trigger(rc.prototype.k.$l,b,m.name);t--;return m.Ej}};g.prototype.$l=function(b){var a=f();return a?ib(b,a.name):!1};g.prototype.ty=function(b,a,c){var e=f();if(!e)return!1;b=C(b);return 0>b||b>=e.Gb.length?!1:dc(e.Gb[b],a,c)};c.k=new g;m.prototype.CallFunction=function(b,a){var c=h();c.name=b.toLowerCase();c.Ej=0;Ba(c.Gb,a);this.b.trigger(rc.prototype.k.$l,this,c.name);t--};m.prototype.NA=function(b){var a=
f();a&&(a.Ej=b)};c.q=new m;e.prototype.dA=function(b,a){a=C(a);var c=f();c?0<=a&&a<c.Gb.length?b.No(c.Gb[a]):b.Z(0):b.Z(0)};e.prototype.xt=function(b,a){var c=h();c.name=a.toLowerCase();c.Ej=0;J(c.Gb);var e,f;e=2;for(f=arguments.length;e<f;e++)c.Gb.push(arguments[e]);this.b.trigger(rc.prototype.k.$l,this,c.name);t--;b.No(c.Ej)};c.B=new e})();function wc(l){this.b=l}
(function(){function l(){}var h=wc.prototype;h.M=function(f){this.ma=f;this.b=f.b};h.M.prototype.H=function(){};h.J=function(f){this.type=f;this.b=f.b;this.Xg=Array(256);this.Il=Array(256);this.wg=0};var f=h.J.prototype;f.H=function(){var f=this;this.b.ua||(jQuery(document).keydown(function(e){f.el(e)}),jQuery(document).keyup(function(e){f.fl(e)}))};var g=[32,33,34,35,36,37,38,39,40,44];f.el=function(f){var e=!1;window!=window.top&&-1<g.indexOf(f.which)&&(f.preventDefault(),e=!0,f.stopPropagation());
if(this.Xg[f.which])this.Il[f.which]&&!e&&f.preventDefault();else{this.Xg[f.which]=!0;this.wg=f.which;this.b.Cb=!0;this.b.trigger(wc.prototype.k.It,this);var c=this.b.trigger(wc.prototype.k.Ot,this),b=this.b.trigger(wc.prototype.k.Nz,this);this.b.Cb=!1;if(c||b)this.Il[f.which]=!0,e||f.preventDefault()}};f.fl=function(f){this.Xg[f.which]=!1;this.wg=f.which;this.b.Cb=!0;this.b.trigger(wc.prototype.k.Jt,this);var e=this.b.trigger(wc.prototype.k.zp,this),c=this.b.trigger(wc.prototype.k.Pt,this);this.b.Cb=
!1;if(e||c||this.Il[f.which])this.Il[f.which]=!0,f.preventDefault()};f.fh=function(){var f;for(f=0;256>f;++f)if(this.Xg[f]){this.Xg[f]=!1;this.wg=f;this.b.trigger(wc.prototype.k.Jt,this);var e=this.b.trigger(wc.prototype.k.zp,this),c=this.b.trigger(wc.prototype.k.Pt,this);if(e||c)this.Il[f]=!0}};f.Pa=function(){return{triggerKey:this.wg}};f.Va=function(f){this.wg=f.triggerKey};l.prototype.Yy=function(f){return this.Xg[f]};l.prototype.Ot=function(f){return f===this.wg};l.prototype.It=function(){return!0};
l.prototype.Jt=function(){return!0};l.prototype.zp=function(f){return f===this.wg};l.prototype.Xy=function(f){f=Math.floor(f);return 0>f||f>=this.Xg.length?!1:this.Xg[f]};l.prototype.Nz=function(f){return f===this.wg};l.prototype.Pt=function(f){return f===this.wg};h.k=new l;h.q=new function(){};h.B=new function(){}})();function xc(l){this.b=l}
(function(){function l(){}function h(){}var f=xc.prototype;f.M=function(e){this.ma=e;this.b=e.b};f.M.prototype.H=function(){};f.J=function(e){this.type=e;this.b=e.b;this.wm=Array(4);this.Gx=this.gp=this.Oj=this.fg=this.eg=0;this.cr=!1};var g=f.J.prototype;g.H=function(){var e=this;if(!this.b.ua){jQuery(document).mousemove(function(b){e.gs(b)});jQuery(document).mousedown(function(b){e.es(b)});jQuery(document).mouseup(function(b){e.hs(b)});jQuery(document).dblclick(function(b){e.pE(b)});var c=function(b){e.rE(b)};
document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var m={left:0,top:0};g.gs=function(e){var c=this.b.ua?m:jQuery(this.b.canvas).offset();this.eg=e.pageX-c.left;this.fg=e.pageY-c.top};g.nw=function(){return 0<this.b.Gc?!0:0<=this.eg&&0<=this.fg&&this.eg<this.b.width&&this.fg<this.b.height};g.es=function(e){this.nw()&&(this.wm[e.which]=!0,this.b.Cb=!0,this.b.trigger(xc.prototype.k.Ht,this),this.Oj=e.which-1,this.gp=0,this.b.trigger(xc.prototype.k.Kt,this),
this.b.trigger(xc.prototype.k.Vt,this),this.b.Cb=!1)};g.hs=function(e){this.wm[e.which]&&(this.b.qn&&!this.b.of&&e.preventDefault(),this.b.qn=!0,this.wm[e.which]=!1,this.b.Cb=!0,this.Oj=e.which-1,this.b.trigger(xc.prototype.k.Vz,this),this.b.Cb=!1)};g.pE=function(e){this.nw()&&(e.preventDefault(),this.b.Cb=!0,this.Oj=e.which-1,this.gp=1,this.b.trigger(xc.prototype.k.Kt,this),this.b.trigger(xc.prototype.k.Vt,this),this.b.Cb=!1)};g.rE=function(e){this.Gx=0>(e.wheelDelta?e.wheelDelta:e.detail?-e.detail:
0)?0:1;this.cr=!1;this.b.Cb=!0;this.b.trigger(xc.prototype.k.cA,this);this.b.Cb=!1;this.cr&&jb(e)&&e.preventDefault()};l.prototype.Kt=function(e,c){return e===this.Oj&&c===this.gp};l.prototype.Ht=function(){return!0};l.prototype.Dt=function(e){return this.wm[e+1]};l.prototype.Vz=function(e){return e===this.Oj};l.prototype.ez=function(e){var c=this.b.Qg();return Ta(this.b.Kj(e,this.eg,this.fg,c.Mh),c.Mh)};l.prototype.Vt=function(e,c,b){return e!==this.Oj||c!==this.gp?!1:this.b.Kj(b,this.eg,this.fg,
!1)};l.prototype.cA=function(e){this.cr=!0;return e===this.Gx};f.k=new l;f.q=new function(){};h.prototype.wi=function(e,c){var b,f,d,a,g;ia(c)?(b=this.b.kf(0),f=b.scale,d=b.Qc,a=b.nd,g=b.u,b.scale=1,b.Qc=1,b.nd=1,b.u=0,e.L(b.zb(this.eg,this.fg,!0)),b.scale=f,b.Qc=d,b.nd=a,b.u=g):(b=ja(c)?this.b.kf(c):this.b.Qi(c))?e.L(b.zb(this.eg,this.fg,!0)):e.L(0)};h.prototype.xi=function(e,c){var b,f,d,a,g;ia(c)?(b=this.b.kf(0),f=b.scale,d=b.Qc,a=b.od,g=b.u,b.scale=1,b.Qc=1,b.od=1,b.u=0,e.L(b.zb(this.eg,this.fg,
!1)),b.scale=f,b.Qc=d,b.od=a,b.u=g):(b=ja(c)?this.b.kf(c):this.b.Qi(c))?e.L(b.zb(this.eg,this.fg,!1)):e.L(0)};f.B=new h})();function yc(l){this.b=l}
(function(){function l(f,m,e,c,b,l,d,a,k,h){f.save();f.fillStyle=m;m=b%e;var n=l%c;0>m&&(m+=e);0>n&&(n+=c);f.translate(m+k,n+h);f.fillRect(b-m-k,l-n-h,d,a);f.restore()}var h=yc.prototype;h.M=function(f){this.ma=f;this.b=f.b};var f=h.M.prototype;f.H=function(){this.R||(this.N=new Image,this.N.fk=this.Lj,this.b.Sj(this.N,this.oi),this.Pl=this.Sl=this.Rl=this.Ql=this.Wj=this.O=this.Cu=this.Fx=this.Ww=this.Qv=this.Iq=null)};f.eh=function(){this.R||(this.Pl=this.Sl=this.Rl=this.Ql=this.Wj=this.O=null)};
f.fi=function(){this.R||!this.n.length||this.O||(this.O=this.b.G.ld(this.N,!0,this.b.ea,this.Ef))};f.qi=function(){this.R||this.n.length||!this.b.G||(this.b.G.deleteTexture(this.O),this.b.G.deleteTexture(this.Wj),this.b.G.deleteTexture(this.Ql),this.b.G.deleteTexture(this.Rl),this.b.G.deleteTexture(this.Sl),this.b.G.deleteTexture(this.Pl),this.Pl=this.Sl=this.Rl=this.Ql=this.Wj=this.O=null)};f.zf=function(f,m,e,c){var b=document.createElement("canvas");e=e-f;c=c-m;b.width=e;b.height=c;b.getContext("2d").drawImage(this.N,
f,m,e,c,0,0,e,c);return b};f.NB=function(f,m,e,c){var b=this.N.width,l=this.N.height,d=b-m,a=l-c;if(this.b.G){if(!this.Wj){var k=this.b.G,h=this.b.ea,n=this.Ef;d>f&&a>e&&(this.Wj=k.ld(this.zf(f,e,d,a),!0,h,n));0<f&&a>e&&(this.Ql=k.ld(this.zf(0,e,f,a),!0,h,n,"repeat-y"));0<m&&a>e&&(this.Rl=k.ld(this.zf(d,e,b,a),!0,h,n,"repeat-y"));0<e&&d>f&&(this.Sl=k.ld(this.zf(f,0,d,e),!0,h,n,"repeat-x"));0<c&&d>f&&(this.Pl=k.ld(this.zf(f,a,d,l),!0,h,n,"repeat-x"))}}else this.Iq||(k=this.b.Ja,d>f&&a>e&&(this.Iq=
k.createPattern(this.zf(f,e,d,a),"repeat")),0<f&&a>e&&(this.Qv=k.createPattern(this.zf(0,e,f,a),"repeat")),0<m&&a>e&&(this.Ww=k.createPattern(this.zf(d,e,b,a),"repeat")),0<e&&d>f&&(this.Fx=k.createPattern(this.zf(f,0,d,e),"repeat")),0<c&&d>f&&(this.Cu=k.createPattern(this.zf(f,a,d,l),"repeat")))};h.J=function(f){this.type=f;this.b=f.b};f=h.J.prototype;f.H=function(){this.Lr=this.A[0];this.Ds=this.A[1];this.Zs=this.A[2];this.gq=this.A[3];this.Rm=this.A[4];this.fill=this.A[5];this.visible=0===this.A[6];
this.Ue=0!==this.A[8];this.Vb?this.te.set(0,0,0,0):this.te=new ua(0,0,0,0);this.b.G&&!this.type.O&&(this.type.O=this.b.G.ld(this.type.N,!1,this.b.ea,this.type.Ef));this.type.NB(this.Lr,this.Ds,this.Zs,this.gq)};f.Uc=function(f){var m=this.type.N,e=this.Lr,c=this.Ds,b=this.Zs,h=this.gq,d=m.width,a=m.height,k=d-c,r=a-h;f.globalAlpha=this.opacity;f.save();var n=this.x,D=this.y,w=this.width,u=this.height;this.b.qc&&(n=Math.round(n),D=Math.round(D));var p=-(this.Hc*this.width),q=-(this.Ic*this.height),
X=p%d,v=q%a;0>X&&(X+=d);0>v&&(v+=a);f.translate(n+X,D+v);d=p-X;q-=v;v=this.Ue?1:0;0<e&&0<b&&f.drawImage(m,0,0,e+v,b+v,d,q,e+v,b+v);0<c&&0<b&&f.drawImage(m,k-v,0,c+v,b+v,d+w-c-v,q,c+v,b+v);0<c&&0<h&&f.drawImage(m,k-v,r-v,c+v,h+v,d+w-c-v,q+u-h-v,c+v,h+v);0<e&&0<h&&f.drawImage(m,0,r-v,e+v,h+v,d,q+u-h-v,e+v,h+v);0===this.Rm?(v=2===this.fill?0:v,0<e&&r>b&&l(f,this.type.Qv,e,r-b,d,q+b,e+v,u-b-h,0,0),0<c&&r>b&&l(f,this.type.Ww,c,r-b,d+w-c-v,q+b,c+v,u-b-h,v,0),0<b&&k>e&&l(f,this.type.Fx,k-e,b,d+e,q,w-e-c,
b+v,0,0),0<h&&k>e&&l(f,this.type.Cu,k-e,h,d+e,q+u-h-v,w-e-c,h+v,0,v)):1===this.Rm&&(0<e&&r>b&&0<u-b-h&&f.drawImage(m,0,b,e,r-b,d,q+b,e,u-b-h),0<c&&r>b&&0<u-b-h&&f.drawImage(m,k,b,c,r-b,d+w-c,q+b,c,u-b-h),0<b&&k>e&&0<w-e-c&&f.drawImage(m,e,0,k-e,b,d+e,q,w-e-c,b),0<h&&k>e&&0<w-e-c&&f.drawImage(m,e,r,k-e,h,d+e,q+u-h,w-e-c,h));r>b&&k>e&&(0===this.fill?l(f,this.type.Iq,k-e,r-b,d+e,q+b,w-e-c,u-b-h,0,0):1===this.fill&&0<w-e-c&&0<u-b-h&&f.drawImage(m,e,b,k-e,r-b,d+e,q+b,w-e-c,u-b-h));f.restore()};f.Qf=function(f,
m,e,c,b,h,d,a,k,l){f.rc(m);var n=this.te;n.left=e/m.ee;n.top=c/m.de;n.right=(e+b)/m.ee;n.bottom=(c+h)/m.de;f.Gd(d,a,d+k,a,d+k,a+l,d,a+l,n)};f.El=function(f,m,e,c,b,h,d,a){f.rc(m);var k=this.te;k.left=-d/m.ee;k.top=-a/m.de;k.right=(b-d)/m.ee;k.bottom=(h-a)/m.de;f.Gd(e,c,e+b,c,e+b,c+h,e,c+h,k)};f.Pf=function(f){this.Ab(f)};f.Ab=function(f){var m=this.Lr,e=this.Ds,c=this.Zs,b=this.gq,h=this.type.N.width-e,d=this.type.N.height-b;f.Ve(this.opacity);var a=this.Xb,k=a.ab,a=a.bb,l=this.width,n=this.height;
this.b.qc&&(k=Math.round(k),a=Math.round(a));var D=this.Ue?1:0;0<m&&0<c&&this.Qf(f,this.type.O,0,0,m+D,c+D,k,a,m+D,c+D);0<e&&0<c&&this.Qf(f,this.type.O,h-D,0,e+D,c+D,k+l-e-D,a,e+D,c+D);0<e&&0<b&&this.Qf(f,this.type.O,h-D,d-D,e+D,b+D,k+l-e-D,a+n-b-D,e+D,b+D);0<m&&0<b&&this.Qf(f,this.type.O,0,d-D,m+D,b+D,k,a+n-b-D,m+D,b+D);0===this.Rm?(D=2===this.fill?0:D,0<m&&d>c&&this.El(f,this.type.Ql,k,a+c,m+D,n-c-b,0,0),0<e&&d>c&&this.El(f,this.type.Rl,k+l-e-D,a+c,e+D,n-c-b,D,0),0<c&&h>m&&this.El(f,this.type.Sl,
k+m,a,l-m-e,c+D,0,0),0<b&&h>m&&this.El(f,this.type.Pl,k+m,a+n-b-D,l-m-e,b+D,0,D)):1===this.Rm&&(0<m&&d>c&&this.Qf(f,this.type.O,0,c,m,d-c,k,a+c,m,n-c-b),0<e&&d>c&&this.Qf(f,this.type.O,h,c,e,d-c,k+l-e,a+c,e,n-c-b),0<c&&h>m&&this.Qf(f,this.type.O,m,0,h-m,c,k+m,a,l-m-e,c),0<b&&h>m&&this.Qf(f,this.type.O,m,d,h-m,b,k+m,a+n-b,l-m-e,b));d>c&&h>m&&(0===this.fill?this.El(f,this.type.Wj,k+m,a+c,l-m-e,n-c-b,0,0):1===this.fill&&this.Qf(f,this.type.O,m,c,h-m,d-c,k+m,a+c,l-m-e,n-c-b))};h.k=new function(){};h.q=
new function(){};h.B=new function(){}})();function zc(l){this.b=l}
(function(){function l(c){this.fb=c;this.Ya=!1;this.u=this.speed=this.y=this.x=0;this.opacity=1;this.Cg=this.Ti=this.size=this.mn=0}function h(){}function f(){}var g=zc.prototype;g.M=function(c){this.ma=c;this.b=c.b};var m=g.M.prototype;m.H=function(){this.R||(this.N=new Image,this.N.fk=this.Lj,this.O=null,this.b.Sj(this.N,this.oi))};m.eh=function(){this.R||(this.O=null)};m.fi=function(){this.R||!this.n.length||this.O||(this.O=this.b.G.ld(this.N,!0,this.b.ea,this.Ef))};m.kj=function(){this.R||this.O||
!this.b.G||(this.O=this.b.G.ld(this.N,!0,this.b.ea,this.Ef))};m.qi=function(){this.R||this.n.length||!this.O||(this.b.G.deleteTexture(this.O),this.O=null)};m.zj=function(c){c.drawImage(this.N,0,0)};l.prototype.init=function(){var c=this.fb;this.x=c.x-c.Vl/2+Math.random()*c.Vl;this.y=c.y-c.np/2+Math.random()*c.np;this.speed=c.lr-c.Uo/2+Math.random()*c.Uo;this.u=c.u-c.Vo/2+Math.random()*c.Vo;this.opacity=c.jr;this.size=c.kr-c.To/2+Math.random()*c.To;this.mn=c.br-c.nn/2+Math.random()*c.nn;this.Cg=this.Ti=
0};l.prototype.ta=function(c){var b=this.fb;this.x+=Math.cos(this.u)*this.speed*c;this.y+=Math.sin(this.u)*this.speed*c;this.y+=this.Ti*c;this.speed+=b.Ia*c;this.size+=this.mn*c;this.Ti+=b.Nb*c;this.Cg+=c;1>this.size?this.Ya=!1:(0!==b.Mk&&(this.u+=Math.random()*b.Mk*c-b.Mk*c/2),0!==b.Ok&&(this.speed+=Math.random()*b.Ok*c-b.Ok*c/2),0!==b.Nk&&(this.opacity+=Math.random()*b.Nk*c-b.Nk*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=b.Ii&&this.Cg>=b.timeout&&(this.Ya=!1),2===b.Ii&&
0>=this.speed&&(this.Ya=!1))};l.prototype.Uc=function(c){var b=this.fb.opacity*this.opacity;if(0!==b){0===this.fb.Ii&&(b*=1-this.Cg/this.fb.timeout);c.globalAlpha=b;var b=this.x-this.size/2,e=this.y-this.size/2;this.fb.b.qc&&(b=b+.5|0,e=e+.5|0);c.drawImage(this.fb.type.N,b,e,this.size,this.size)}};l.prototype.Ab=function(c){var b=this.fb.opacity*this.opacity;0===this.fb.Ii&&(b*=1-this.Cg/this.fb.timeout);var e=this.size,d=e*this.fb.Mw,a=this.x-e/2,f=this.y-e/2;this.fb.b.qc&&(a=a+.5|0,f=f+.5|0);1>
d||0===b||(d<c.iE||d>c.Tr?(c.Ve(b),c.Bj(a,f,a+e,f,a+e,f+e,a,f+e)):c.vE(this.x,this.y,d,b))};l.prototype.left=function(){return this.x-this.size/2};l.prototype.right=function(){return this.x+this.size/2};l.prototype.top=function(){return this.y-this.size/2};l.prototype.bottom=function(){return this.y+this.size/2};g.J=function(c){this.type=c;this.b=c.b};var m=g.J.prototype,e=[];m.H=function(){var c=this.A;this.Cj=c[0];this.Vo=M(c[1]);this.li=c[2];this.Wo=!0;this.lr=c[3];this.kr=c[4];this.jr=c[5]/100;
this.br=c[6];this.Vl=c[7];this.np=c[8];this.Uo=c[9];this.To=c[10];this.nn=c[11];this.Ia=c[12];this.Nb=c[13];this.Mk=c[14];this.Ok=c[15];this.Nk=c[16];this.Ii=c[17];this.timeout=c[18];this.hi=0;this.Mw=1;this.eo=this.x;this.ho=this.y;this.fo=this.x;this.co=this.y;this.uB(function(b){b.Ua.set(b.eo,b.ho,b.fo,b.co);b.Xb.ji(b.Ua);b.vm=!1;b.mt();b.Qx()});this.Vb||(this.Sb=[]);this.b.nh(this);this.type.kj();if(1===this.li)for(c=0;c<this.Cj;c++)this.lm().opacity=0;this.qk=!0};m.Pa=function(){var c={r:this.Cj,
sc:this.Vo,st:this.li,s:this.Wo,isp:this.lr,isz:this.kr,io:this.jr,gr:this.br,xr:this.Vl,yr:this.np,spr:this.Uo,szr:this.To,grnd:this.nn,acc:this.Ia,g:this.Nb,lar:this.Mk,lsr:this.Ok,lor:this.Nk,dm:this.Ii,to:this.timeout,pcc:this.hi,ft:this.qk,p:[]},b,e,d,a=c.p;b=0;for(e=this.Sb.length;b<e;b++)d=this.Sb[b],a.push([d.x,d.y,d.speed,d.u,d.opacity,d.mn,d.size,d.Ti,d.Cg]);return c};m.Va=function(c){this.Cj=c.r;this.Vo=c.sc;this.li=c.st;this.Wo=c.s;this.lr=c.isp;this.kr=c.isz;this.jr=c.io;this.br=c.gr;
this.Vl=c.xr;this.np=c.yr;this.Uo=c.spr;this.To=c.szr;this.nn=c.grnd;this.Ia=c.acc;this.Nb=c.g;this.Mk=c.lar;this.Ok=c.lsr;this.Nk=c.lor;this.Ii=c.dm;this.timeout=c.to;this.hi=c.pcc;this.qk=c.ft;e.push.apply(e,this.Sb);J(this.Sb);var b,f,d,a=c.p;c=0;for(b=a.length;c<b;c++)f=this.lm(),d=a[c],f.x=d[0],f.y=d[1],f.speed=d[2],f.u=d[3],f.opacity=d[4],f.mn=d[5],f.size=d[6],f.Ti=d[7],f.Cg=d[8]};m.md=function(){e.push.apply(e,this.Sb);J(this.Sb)};m.lm=function(){var c;e.length?(c=e.pop(),c.fb=this):c=new l(this);
this.Sb.push(c);c.Ya=!0;return c};m.ta=function(){var c=this.b.le(this),b,f,d,a;if(0===this.li&&this.Wo)for(this.hi+=c*this.Cj,f=C(this.hi),this.hi-=f,b=0;b<f;b++)d=this.lm(),d.init();this.eo=this.x;this.ho=this.y;this.fo=this.x;this.co=this.y;a=b=0;for(f=this.Sb.length;b<f;b++)d=this.Sb[b],this.Sb[a]=d,this.b.V=!0,1===this.li&&this.qk&&d.init(),d.ta(c),d.Ya?(d.left()<this.eo&&(this.eo=d.left()),d.right()>this.fo&&(this.fo=d.right()),d.top()<this.ho&&(this.ho=d.top()),d.bottom()>this.co&&(this.co=
d.bottom()),a++):e.push(d);za(this.Sb,a);this.K();this.qk=!1;1===this.li&&0===this.Sb.length&&this.b.Hd(this)};m.Uc=function(c){var b,e,d,a=this.C;b=0;for(e=this.Sb.length;b<e;b++)d=this.Sb[b],d.right()>=a.Ga&&d.bottom()>=a.Ha&&d.left()<=a.Ra&&d.top()<=a.Qa&&d.Uc(c)};m.Ab=function(c){this.Mw=this.C.gd();c.rc(this.type.O);var b,e,d,a=this.C;b=0;for(e=this.Sb.length;b<e;b++)d=this.Sb[b],d.right()>=a.Ga&&d.bottom()>=a.Ha&&d.left()<=a.Ra&&d.top()<=a.Qa&&d.Ab(c)};g.k=new function(){};h.prototype.PA=function(c){this.Wo=
0!==c};h.prototype.MA=function(c){this.Cj=c;var b;if(1===this.li&&this.qk)if(c<this.Sb.length)for(c=this.Sb.length-c,b=0;b<c;b++)e.push(this.Sb.pop());else if(c>this.Sb.length)for(c=c-this.Sb.length,b=0;b<c;b++)this.lm().opacity=0};h.prototype.UA=function(c){this.Vl=c};h.prototype.em=function(c){this.Nb=c};g.q=new h;f.prototype.kA=function(c){c.L(this.Cj)};g.B=new f})();function Ac(l){this.b=l}
(function(){function l(){}function h(){}var f=Ac.prototype;f.M=function(f){this.ma=f;this.b=f.b};f.M.prototype.H=function(){};f.J=function(f){this.type=f;this.b=f.b};var g=f.J.prototype;g.H=function(){this.$p={}};g.Pa=function(){return{tims:this.$p}};g.Va=function(f){this.$p=f.tims};f.k=new function(){};f.q=new l;l.prototype.ju=function(f){this.$p[f]=(new Date).getTime()};f.B=new h;h.prototype.oB=function(f,e){f.Z((null!=e?new Date(e):new Date).getFullYear())};h.prototype.rz=function(f,e){f.Z((null!=
e?new Date(e):new Date).getMonth()+1)};h.prototype.Date=function(f,e){f.Z((null!=e?new Date(e):new Date).getDate())};h.prototype.Ay=function(f,e){f.Z((null!=e?new Date(e):new Date).getDay())};h.prototype.Oy=function(f,e){f.Z((null!=e?new Date(e):new Date).getHours())};h.prototype.qz=function(f,e){f.Z((null!=e?new Date(e):new Date).getMinutes())};h.prototype.kB=function(f){f.L((new Date).getTime())}})();function W(l){this.b=l}
(function(){function l(){if(0===this.uq.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Ij?b.drawImage(this.N,this.uj,this.vj,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.N,0,0,this.width,this.height);this.uq=a.toDataURL("image/png")}return this.uq}function h(){}function f(a){a[0]=0;a[1]=0;a[2]=0;n.push(a)}function g(a,b){return a<b?""+a+","+b:""+b+","+a}function m(a,b,c,d){b=b.uid;c=c.uid;var e=g(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=n.length?n.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function e(a,b,c){b=g(b.uid,c.uid);a.hasOwnProperty(b)&&(f(a[b]),delete a[b])}function c(a,b,c){b=g(b.uid,c.uid);if(a.hasOwnProperty(b))return D=a[b][2],!0;D=-2;return!1}function b(){}function t(){}var d=W.prototype;d.M=function(a){this.ma=a;this.b=a.b};var a=d.M.prototype;a.H=function(){if(!this.R){var a,b,c,d,e,f,g,k,m;this.De=[];this.vk=!1;a=0;for(b=this.fd.length;a<b;a++){e=this.fd[a];g={};g.name=e[0];g.speed=e[1];g.loop=e[2];
g.Cs=e[3];g.zo=e[4];g.Nw=e[5];g.ya=e[6];g.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],k={},k.oi=f[0],k.Lj=f[1],k.uj=f[2],k.vj=f[3],k.width=f[4],k.height=f[5],k.duration=f[6],k.Hc=f[7],k.Ic=f[8],k.fr=f[9],k.no=f[10],k.Ow=f[11],k.Ij=0!==k.width,k.uq="",k.$F=l,m={left:0,top:0,right:1,bottom:1},k.Ns=m,k.O=null,(m=this.b.YC(f[0]))?k.N=m:(k.N=new Image,k.N.KB=f[0],k.N.fk=f[1],k.N.EB=null,this.b.Sj(k.N,f[0])),g.frames.push(k),this.De.push(k);this.fd[a]=g}}};a.Px=function(){var a,b,c;a=0;for(b=this.n.length;a<
b;a++)c=this.n[a],c.Im=c.Kd.O};a.eh=function(){if(!this.R){var a,b,c;a=0;for(b=this.De.length;a<b;++a)c=this.De[a],c.N.EB=null,c.O=null;this.vk=!1;this.Px()}};a.fi=function(){if(!this.R&&this.n.length){var a,b,c;a=0;for(b=this.De.length;a<b;++a)c=this.De[a],c.O=this.b.G.ld(c.N,!1,this.b.ea,c.Ow);this.Px()}};a.kj=function(){if(!this.R&&!this.vk&&this.b.G){var a,b,c;a=0;for(b=this.De.length;a<b;++a)c=this.De[a],c.O=this.b.G.ld(c.N,!1,this.b.ea,c.Ow);this.vk=!0}};a.qi=function(){if(!this.R&&!this.n.length&&
this.vk){var a,b,c;a=0;for(b=this.De.length;a<b;++a)c=this.De[a],this.b.G.deleteTexture(c.O),c.O=null;this.vk=!1}};var k=[];a.zj=function(a){var b,c,d;J(k);b=0;for(c=this.De.length;b<c;++b)d=this.De[b].N,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};d.J=function(a){this.type=a;this.b=a.b;a=this.type.fd[0].frames[0].no;this.Vb?this.Aa.tl(a):this.Aa=new cb(a)};var r=d.J.prototype;r.H=function(){this.visible=0===this.A[0];this.tn=this.Nh=!1;this.Jd=0!==this.A[3];1===this.type.fd.length&&1===this.type.fd[0].frames.length||
0===this.type.fd[0].speed||(this.b.nh(this),this.Nh=!0);this.ib=this.Xu(this.A[1])||this.type.fd[0];this.W=this.A[2];0>this.W&&(this.W=0);this.W>=this.ib.frames.length&&(this.W=this.ib.frames.length-1);var a=this.ib.frames[this.W];this.Aa.tl(a.no);this.Hc=a.Hc;this.Ic=a.Ic;this.Gi=this.ib.speed;this.Vb?this.df.reset():this.df=new ab;this.Uf=this.df.S;this.Eg=!0;this.Jf=0;this.Dg=!0;this.Bm=this.xu="";this.Hu=0;this.Am=-1;this.type.kj();var b,c,d,e,f,g,k,a=0;for(b=this.type.fd.length;a<b;a++)for(e=
this.type.fd[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.N.width,f.height=f.N.height),f.Ij&&(k=f.N,g=f.Ns,g.left=f.uj/k.width,g.top=f.vj/k.height,g.right=(f.uj+f.width)/k.width,g.bottom=(f.vj+f.height)/k.height,0===f.uj&&0===f.vj&&f.width===k.width&&f.height===k.height&&(f.Ij=!1));this.Kd=this.ib.frames[this.W];this.Im=this.Kd.O};r.Pa=function(){var a={a:this.ib.ya,f:this.W,cas:this.Gi,fs:this.Uf,ar:this.Jf,at:this.df.S};this.Eg||(a.ap=this.Eg);this.Dg||(a.af=this.Dg);return a};
r.Va=function(a){var b=this.dD(a.a);b&&(this.ib=b);this.W=a.f;0>this.W&&(this.W=0);this.W>=this.ib.frames.length&&(this.W=this.ib.frames.length-1);this.Gi=a.cas;this.Uf=a.fs;this.Jf=a.ar;this.df.reset();this.df.S=a.at;this.Eg=a.hasOwnProperty("ap")?a.ap:!0;this.Dg=a.hasOwnProperty("af")?a.af:!0;this.Kd=this.ib.frames[this.W];this.Im=this.Kd.O;this.Aa.tl(this.Kd.no);this.Hc=this.Kd.Hc;this.Ic=this.Kd.Ic};r.dq=function(a){this.W=a?0:this.ib.frames.length-1;this.Eg=!1;this.xu=this.ib.name;this.tn=!0;
this.b.trigger(W.prototype.k.vz,this);this.b.trigger(W.prototype.k.Gt,this);this.tn=!1;this.Jf=0};r.bk=function(){return this.df.S};r.ta=function(){this.df.add(this.b.le(this));this.Bm.length&&this.Lu();0<=this.Am&&this.Mu();var a=this.df.S,b=this.ib,c=b.frames[this.W],d=c.duration/this.Gi;this.Eg&&a>=this.Uf+d&&(this.Dg?this.W++:this.W--,this.Uf+=d,this.W>=b.frames.length&&(b.Nw?(this.Dg=!1,this.W=b.frames.length-2):b.loop?this.W=b.zo:(this.Jf++,this.Jf>=b.Cs?this.dq(!1):this.W=b.zo)),0>this.W&&
(b.Nw?(this.W=1,this.Dg=!0,b.loop||(this.Jf++,this.Jf>=b.Cs&&this.dq(!0))):b.loop?this.W=b.zo:(this.Jf++,this.Jf>=b.Cs?this.dq(!0):this.W=b.zo)),0>this.W?this.W=0:this.W>=b.frames.length&&(this.W=b.frames.length-1),a>this.Uf+b.frames[this.W].duration/this.Gi&&(this.Uf=a),a=b.frames[this.W],this.vi(c,a),this.b.V=!0)};r.Xu=function(a){var b,c,d;b=0;for(c=this.type.fd.length;b<c;b++)if(d=this.type.fd[b],ib(d.name,a))return d;return null};r.dD=function(a){var b,c,d;b=0;for(c=this.type.fd.length;b<c;b++)if(d=
this.type.fd[b],d.ya===a)return d;return null};r.Lu=function(){var a=this.ib.frames[this.W],b=this.Xu(this.Bm);this.Bm="";!b||ib(b.name,this.ib.name)&&this.Eg||(this.ib=b,this.Gi=b.speed,0>this.W&&(this.W=0),this.W>=this.ib.frames.length&&(this.W=this.ib.frames.length-1),1===this.Hu&&(this.W=0),this.Eg=!0,this.Uf=this.df.S,this.Dg=!0,this.vi(a,this.ib.frames[this.W]),this.b.V=!0)};r.Mu=function(){var a=this.ib.frames[this.W],b=this.W;this.W=C(this.Am);0>this.W&&(this.W=0);this.W>=this.ib.frames.length&&
(this.W=this.ib.frames.length-1);b!==this.W&&(this.vi(a,this.ib.frames[this.W]),this.Uf=this.df.S,this.b.V=!0);this.Am=-1};r.vi=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Hc=b.Hc;this.Ic=b.Ic;this.Aa.tl(b.no);this.K();this.Kd=b;this.Im=b.O;c=0;for(d=this.ba.length;c<d;c++)e=this.ba[c],e.Aw&&e.Aw(a,b);this.b.trigger(W.prototype.k.vi,this)};r.Uc=function(a){a.globalAlpha=this.opacity;var b=this.Kd,c=b.Ij,d=b.N,e=this.x,f=this.y,
g=this.width,k=this.height;if(0===this.u&&0<=g&&0<=k)e-=this.Hc*g,f-=this.Ic*k,this.b.qc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.uj,b.vj,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.qc&&(e=Math.round(e),f=Math.round(f));a.save();var m=0<g?1:-1,p=0<k?1:-1;a.translate(e,f);1===m&&1===p||a.scale(m,p);a.rotate(this.u*m*p);e=0-this.Hc*oa(g);f=0-this.Ic*oa(k);c?a.drawImage(d,b.uj,b.vj,b.width,b.height,e,f,oa(g),oa(k)):a.drawImage(d,e,f,oa(g),oa(k));a.restore()}};r.Pf=function(a){this.Ab(a)};
r.Ab=function(a){a.rc(this.Im);a.Ve(this.opacity);var b=this.Kd,c=this.Xb;if(this.b.qc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Ij?a.Gd(c.ab+d,c.bb+e,c.Jb+d,c.Kb+e,c.wb+d,c.xb+e,c.tb+d,c.ub+e,b.Ns):a.Bj(c.ab+d,c.bb+e,c.Jb+d,c.Kb+e,c.wb+d,c.xb+e,c.tb+d,c.ub+e)}else b.Ij?a.Gd(c.ab,c.bb,c.Jb,c.Kb,c.wb,c.xb,c.tb,c.ub,b.Ns):a.Bj(c.ab,c.bb,c.Jb,c.Kb,c.wb,c.xb,c.tb,c.ub)};r.kD=function(a){var b=this.Kd,c,d;c=0;for(d=b.fr.length;c<d;c++)if(ib(a,b.fr[c][0]))return c;return-1};r.Pi=function(a,
b){var c=this.Kd,d=c.fr,e;la(a)?e=this.kD(a):e=a-1;e=C(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Hc)*this.width,d=d[e][2],d=(d-c.Ic)*this.height,c=Math.cos(this.u);e=Math.sin(this.u);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var n=[],D=-2,w=[];h.prototype.Bz=function(a){if(!a)return!1;var b=this.b,d=b.Qg(),g=d.type,k=null;d.U.collmemory?k=d.U.collmemory:(k={},d.U.collmemory=k,b.jm(function(a){var b=d.U.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&
(e=b[c],e[0]===a||e[1]===a)&&(f(b[c]),delete b[c])}));var p=g.X(),h=a.X(),p=p.lc(),n,l,q,u,t,v,r,X=this.b.Vd,L=X-1,K=b.eb().cb;for(l=0;l<p.length;l++){q=p[l];h.aa?(q.Fa(),this.b.Qq(q.C,a,q.Ua,w),n=w):n=h.lc();for(u=0;u<n.length;u++)t=n[u],b.Nc(q,t)||b.IB(q,t)?(v=c(k,q,t),v=!v||D<L,m(k,q,t,X),v&&(b.re(K.fa),v=g.X(),r=a.X(),v.aa=!1,r.aa=!1,g===a?(v.n.length=2,v.n[0]=q,v.n[1]=t,g.ae()):(v.n.length=1,r.n.length=1,v.n[0]=q,r.n[0]=t,g.ae(),a.ae()),K.ud(),b.qd(K.fa))):e(k,q,t);J(w)}return!1};var u=null,
p=new da,q=!1,X=[],v=new ua(0,0,0,0);a.finish=function(a){if(q){if(a){var b=this.b.eb().cb.qe;a=u.X();var c=p.ye(),d,e;if(a.aa){a.aa=!1;J(a.n);d=0;for(e=c.length;d<e;++d)a.n[d]=c[d];if(b)for(J(a.Ba),d=0,e=u.n.length;d<e;++d)c=u.n[d],p.contains(c)||a.Ba.push(c)}else if(b)for(b=a.n.length,d=0,e=c.length;d<e;++d)a.n[b+d]=c[d],Ea(a.Ba,c[d]);else Ba(a.n,c);u.ae()}p.clear();q=!1}};h.prototype.fz=function(a){if(a){var b=!1,c,d,e,f=this.b.Qg(),g=f.type,f=f.Mh;c=a.X();d=this.b.eb().cb.qe;var k;c.aa?(this.Fa(),
v.Fi(this.Ua),v.offset(0,0),this.b.Qq(this.C,a,v,X),k=X):k=d?c.Ba:c.n;u=a;q=g!==a&&!f;c=0;for(d=k.length;c<d;c++)if(e=k[c],this.b.Nc(this,e)){b=!0;if(f)break;g!==a&&p.add(e)}J(X);a=b}else a=!1;return a};h.prototype.oy=function(a,b){return dc(this.W,a,b)};h.prototype.Gt=function(a){return ib(this.xu,a)};h.prototype.vz=function(){return!0};h.prototype.vi=function(){return!0};h.prototype.Zy=function(){return 0>this.width};d.k=new h;b.prototype.YA=function(a,b,c){if(a&&b&&(b=this.b.rq(a,b,this.Pi(c,!0),
this.Pi(c,!1)))){"undefined"!==typeof b.u&&(b.u=this.u,b.K());this.b.Qd++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.ma).k.If,b);if(b.xc)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.ma).k.If,f);this.b.Qd--;d=this.b.gD();c=!1;if(ia(d.U.Spawn_LastExec)||d.U.Spawn_LastExec<this.b.Ch)c=!0,d.U.Spawn_LastExec=this.b.Ch;if(a!=this.type&&(a=a.X(),a.aa=!1,c?(J(a.n),a.n[0]=b):a.n.push(b),b.xc))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.X(),
a.aa=!1,c?(J(a.n),a.n[0]=f):a.n.push(f)}};b.prototype.aB=function(){this.Eg=!1};b.prototype.rA=function(a,b){this.Bm=a;this.Hu=b;this.Nh||(this.b.nh(this),this.Nh=!0);this.tn||this.Lu()};b.prototype.sA=function(a){this.Am=a;this.Nh||(this.b.nh(this),this.Nh=!0);this.tn||this.Mu()};b.prototype.tA=function(a){this.Gi=oa(a);this.Dg=0<=a;this.Nh||(this.b.nh(this),this.Nh=!0)};b.prototype.FA=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.K())};b.prototype.Op=function(a){var b=
this.Kd,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.K()};b.prototype.wA=function(a){this.Jd!==(0!==a)&&((this.Jd=0!==a)?this.K():(this.fe.right>=this.fe.left&&this.type.dk.update(this,this.fe,null),this.fe.set(0,0,-1,-1)))};d.q=new b;t.prototype.by=function(a){a.Z(this.W)};t.prototype.cy=function(a){a.Ma(this.ib.name)};t.prototype.Py=function(a,b){a.L(this.Pi(b,!1))};d.B=new t})();function Bc(l){this.b=l}
(function(){function l(a,b){return a.length?a.pop():new b}function h(a,c,d){if(d){var e;d=0;for(e=c.length;d<e;d++)a.length<b&&a.push(c[d]);J(c)}else for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(a.length<b&&a.push(c[e]),delete c[e])}function f(a,b,c){var d=a.nc;c=c.replace(/\s\s*$/,"");b>=d.length&&d.push(l(t,Object));b=d[b];b.text=c;b.width=a.Wr(c);a.Df=pa(a.Df,b.width)}function g(){}function m(){}var e=Bc.prototype;e.H=function(){};e.M=function(a){this.ma=a;this.b=a.b};var c=e.M.prototype;
c.H=function(){this.R||(this.N=new Image,this.b.Sj(this.N,this.oi),this.O=null)};c.eh=function(){this.R||(this.O=null)};c.fi=function(){if(!this.R&&this.n.length){this.O||(this.O=this.b.G.ld(this.N,!1,this.b.ea,this.Ef));var a,b;a=0;for(b=this.n.length;a<b;a++)this.n[a].O=this.O}};c.qi=function(){this.R||this.n.length||!this.O||(this.b.G.deleteTexture(this.O),this.O=null)};c.zj=function(a){a.drawImage(this.N,0,0)};e.J=function(a){this.type=a;this.b=a.b};c=e.J.prototype;c.md=function(){h(t,this.nc,
!0);h(d,this.Dm,!1);h(a,this.Em,!1);Wa(this.Jg)};c.H=function(){this.N=this.type.N;this.Cm=this.A[0];this.Ig=this.A[1];this.characterSet=this.A[2];this.text=this.A[3];this.ef=this.A[4];this.visible=0===this.A[5];this.nf=this.A[6]/2;this.xg=this.A[7]/2;this.Ul=0===this.A[9];this.Di=this.A[10];this.lineHeight=this.A[11];this.Xe=this.Df=0;this.Vb?(J(this.nc),Wa(this.Dm),Wa(this.Em),Wa(this.Jg)):(this.nc=[],this.Dm={},this.Em={},this.Jg={});this.wd=!0;this.Wh=this.width;this.b.G&&(this.type.O||(this.type.O=
this.b.G.ld(this.type.N,!1,this.b.ea,this.type.Ef)),this.O=this.type.O);this.ZA()};c.Pa=function(){var a={t:this.text,csc:this.ef,csp:this.Di,lh:this.lineHeight,tw:this.Df,th:this.Xe,lrt:this.Vh,ha:this.nf,va:this.xg,cw:{}},b;for(b in this.Jg)a.cw[b]=this.Jg[b];return a};c.Va=function(a){this.text=a.t;this.ef=a.csc;this.Di=a.csp;this.lineHeight=a.lh;this.Df=a.tw;this.Xe=a.th;this.Vh=a.lrt;a.hasOwnProperty("ha")&&(this.nf=a.ha);a.hasOwnProperty("va")&&(this.xg=a.va);for(var b in a.cw)this.Jg[b]=a.cw[b];
this.wd=!0;this.Wh=this.width};var b=1E3,t=[],d=[],a=[];c.ZA=function(){for(var b=this.N,c=b.width,e=b.height,b=this.Cm,f=this.Ig,g=b/c,k=f/e,m=this.characterSet,c=Math.floor(c/b),e=Math.floor(e/f),h=0;h<m.length&&!(h>=c*e);h++){var t=h%c,r=Math.floor(h/c),B=m.charAt(h);if(this.b.G){var E=this.Em,x=t*g,H=r*k,t=(t+1)*g,r=(r+1)*k;void 0===E[B]&&(E[B]=l(a,ua));E[B].left=x;E[B].top=H;E[B].right=t;E[B].bottom=r}else E=this.Dm,t=t*b,r=r*f,x=b,H=f,void 0===E[B]&&(E[B]=l(d,Object)),E[B].x=t,E[B].y=r,E[B].lp=
x,E[B].pn=H}};var k=[];e.Vp=function(a){J(k);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(k.push(b),b=""),k.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));k.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&k.push(b)};e.Wp=function(a){var b=a.text,c=a.nc;if(b&&b.length){var d=a.width;if(2>=d)h(t,c,!0);else{var e=a.ef,f=a.Di;if(b.length*(a.Cm*e+f)-f<=d&&-1===b.indexOf("\n")&&(f=a.Wr(b),f<=d)){h(t,
c,!0);c.push(l(t,Object));c[0].text=b;c[0].width=f;a.Df=f;a.Xe=a.Ig*e+a.lineHeight;return}this.Xp(a);a.Xe=c.length*(a.Ig*e+a.lineHeight)}}else h(t,c,!0)};e.Xp=function(a){var c=a.Ul,d=a.text,e=a.nc,g=a.width;c&&(this.Vp(d),d=k);var m="",h,l,r,N=0,B=!1;for(r=0;r<d.length;r++)"\n"===d[r]?(!0===B?B=!1:(f(a,N,m),N++),m=""):(B=!1,h=m,m+=d[r],l=a.Wr(m.replace(/\s\s*$/,"")),l>g&&(""===h?(f(a,N,m),m="",B=!0):(f(a,N,h),m=d[r]),N++,c||" "!==m||(m="")));m.replace(/\s\s*$/,"").length&&(f(a,N,m),N++);for(r=N;r<
e.length;r++)t.length<b&&t.push(e[r]);e.length=N};c.Wr=function(a){for(var b=this.Di,c=a.length,d=0,e=0;e<c;e++)d+=this.Pq(a.charAt(e))*this.ef+b;return d-(0<d?b:0)};c.Pq=function(a){var b=this.Jg;return void 0!==b[a]?b[a]:this.Cm};c.xo=function(){if(this.wd||this.width!==this.Wh)this.Xe=this.Df=0,this.type.ma.Wp(this),this.wd=!1,this.Wh=this.width};c.Uc=function(a){var b=this.N;if(""!==this.text&&null!=b&&(this.xo(),!(this.height<this.Ig*this.ef+this.lineHeight))){a.globalAlpha=this.opacity;var b=
this.x,c=this.y;this.b.qc&&(b=Math.round(b),c=Math.round(c));var d=this.C.Ga,e=this.C.Ha,f=this.C.Ra,g=this.C.Qa;a.save();a.translate(b,c);a.rotate(this.u);for(var k=this.nf,m=this.ef,h=this.Ig*m,l=this.lineHeight,t=this.Di,r=this.nc,H,ba=-(this.Hc*this.width),R=-(this.Ic*this.height),R=R+this.xg*pa(0,this.height-this.Xe),G,P,Z,T=0;T<r.length;T++){var z=r[T].text;H=k*pa(0,this.width-r[T].width);G=ba+H;R+=l;if(c+R+h<e)R+=h;else{for(var y=0;y<z.length;y++){P=z.charAt(y);H=this.Pq(P);var F=this.Dm[P];
if(b+G+H*m+t<d)G+=H*m+t;else{if(G+H*m>this.width+1E-5)break;void 0!==F&&(P=G,Z=R,0===this.u&&(P=Math.round(P),Z=Math.round(Z)),a.drawImage(this.N,F.x,F.y,F.lp,F.pn,P,Z,F.lp*m,F.pn*m));G+=H*m+t;if(b+G>f)break}}R+=h;if(R+h+l>this.height||c+R>g)break}}a.restore()}};var r=new va;c.Ab=function(a){a.rc(this.O);a.Ve(this.opacity);if(this.text&&(this.xo(),!(this.height<this.Ig*this.ef+this.lineHeight))){this.Fa();var b=this.Xb,c=0,d=0;this.b.qc&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y);var e=
this.C.Ga,f=this.C.Ha,g=this.C.Ra,k=this.C.Qa,m=this.u,h=this.nf,l=this.xg,t=this.ef,x=this.Ig*t,H=this.lineHeight,ba=this.Di,R=this.nc,G=this.Xe,P,Z,T;0!==m&&(Z=Math.cos(m),T=Math.sin(m));for(var c=b.ab+c,b=b.bb+d,z,l=l*pa(0,this.height-G),y,F,G=0;G<R.length;G++)if(d=R[G].text,z=P=h*pa(0,this.width-R[G].width),l+=H,0===m&&b+l+x<f)l+=x;else{for(var L=0;L<d.length;L++){var K=d.charAt(L);P=this.Pq(K);K=this.Em[K];if(c+z+P*t+ba<e)z+=P*t+ba;else{if(z+P*t>this.width+1E-5)break;if(void 0!==K){var I=this.Cm*
t,O=this.Ig*t;y=z;F=l;0===m&&(y=Math.round(y),F=Math.round(F));r.ab=y;r.bb=F;r.Jb=y+I;r.Kb=F;r.tb=y;r.ub=F+O;r.wb=y+I;r.xb=F+O;0!==m&&(y=r,F=Z,I=T,O=void 0,O=y.ab*F-y.bb*I,y.bb=y.bb*F+y.ab*I,y.ab=O,O=y.Jb*F-y.Kb*I,y.Kb=y.Kb*F+y.Jb*I,y.Jb=O,O=y.tb*F-y.ub*I,y.ub=y.ub*F+y.tb*I,y.tb=O,O=y.wb*F-y.xb*I,y.xb=y.xb*F+y.wb*I,y.wb=O);r.offset(c,b);a.Gd(r.ab,r.bb,r.Jb,r.Kb,r.wb,r.xb,r.tb,r.ub,K)}z+=P*t+ba;if(0===m&&c+z>g)break}}l+=x;if(l+x+H>this.height||b+l>k)break}}};e.k=new function(){};g.prototype.Pp=function(a){ja(a)&&
1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.wd=!0,this.b.V=!0)};g.prototype.Op=function(a){a!==this.ef&&(this.ef=a,this.wd=!0,this.b.V=!0)};c.uA=function(a,b){var c=parseInt(b,10);this.Jg[a]!==c&&(this.Jg[a]=c,this.wd=!0,this.b.V=!0)};g.prototype.vA=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.uA(a.charAt(c),b)};g.prototype.AA=function(a){this.nf=a/2;this.wd=!0;this.b.V=!0};e.q=new g;m.prototype.lu=function(a){this.xo();a.L(this.Df)};m.prototype.ku=
function(a){this.xo();a.L(this.Xe)};e.B=new m})();function Cc(l){this.b=l}
(function(){function l(){return t.length?t.pop():{}}function h(b){var a,c;a=0;for(c=b.length;a<c;a++)t.push(b[a]);J(b)}function f(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function g(){}function m(){}var e=Cc.prototype;e.H=function(){e.q.Xj=function(b){this.width!==b&&(this.width=b,this.wd=!0,this.K())}};e.M=function(b){this.ma=b;this.b=b.b};var c=e.M.prototype;c.H=function(){};c.eh=function(){if(!this.R){var b,a,c;b=0;for(a=this.n.length;b<a;b++)c=this.n[b],c.tf=
null,c.ci=null,c.Ed=null}};e.J=function(b){this.type=b;this.b=b.b;this.Vb?J(this.nc):this.nc=[];this.wd=!0};c=e.J.prototype;c.H=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.nf=this.A[4];this.xg=this.A[5];this.Ul=0===this.A[7];this.Wh=this.dg=this.width;this.bg=this.height;this.Pk=this.A[8];this.$m=this.Li="";this.Xe=this.Df=this.ll=0;this.sE();this.Ed=this.ci=this.tf=null;this.pw=!1;this.Vh=this.b.Vd;this.Vb?this.te.set(0,0,1,1):this.te=new ua(0,
0,1,1);this.b.G&&this.b.nh(this)};c.sE=function(){var b=this.font.split(" "),a;for(a=0;a<b.length;a++)if("pt"===b[a].substr(b[a].length-2,2)){this.ll=parseInt(b[a].substr(0,b[a].length-2));this.uo=Math.ceil(this.ll/72*96)+4;0<a&&(this.$m=b[a-1]);this.Li=b[a+1];for(a+=2;a<b.length;a++)this.Li+=" "+b[a];break}};c.Pa=function(){return{t:this.text,f:this.font,c:this.color,ha:this.nf,va:this.xg,wr:this.Ul,lho:this.Pk,fn:this.Li,fs:this.$m,ps:this.ll,pxh:this.uo,tw:this.Df,th:this.Xe,lrt:this.Vh}};c.Va=
function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.nf=b.ha;this.xg=b.va;this.Ul=b.wr;this.Pk=b.lho;this.Li=b.fn;this.$m=b.fs;this.ll=b.ps;this.uo=b.pxh;this.Df=b.tw;this.Xe=b.th;this.Vh=b.lrt;this.wd=!0;this.Wh=this.dg=this.width;this.bg=this.height};c.ta=function(){if(this.b.G&&this.Ed&&300<=this.b.Vd-this.Vh){var b=this.C;this.Fa();var a=this.Ua;if(a.right<b.Ga||a.bottom<b.Ha||a.left>b.Ra||a.top>b.Qa)this.b.G.deleteTexture(this.Ed),this.tf=this.ci=this.Ed=null}};c.md=function(){this.tf=
this.ci=null;this.b.G&&this.Ed&&this.b.G.deleteTexture(this.Ed);this.Ed=null};c.bk=function(){this.font=this.$m+" "+this.ll.toString()+"pt "+this.Li;this.wd=!0;this.b.V=!0};c.Uc=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var c=1;a&&(c=this.C.gd(),b.save(),b.scale(c,c));if(this.wd||this.width!==this.Wh)this.type.ma.Wp(this.text,this.nc,b,this.width,this.Ul),this.wd=!1,this.Wh=this.width;this.Fa();var c=a?0:this.Xb.ab,e=a?0:this.Xb.bb;this.b.qc&&
(c=c+.5|0,e=e+.5|0);0===this.u||a||(b.save(),b.translate(c,e),b.rotate(this.u),e=c=0);var f=e+this.height,g=this.uo,g=g+this.Pk,m,h;1===this.xg?e+=Math.max(this.height/2-this.nc.length*g/2,0):2===this.xg&&(e+=Math.max(this.height-this.nc.length*g-2,0));for(h=0;h<this.nc.length&&!(m=c,1===this.nf?m=c+(this.width-this.nc[h].width)/2:2===this.nf&&(m=c+(this.width-this.nc[h].width)),b.fillText(this.nc[h].text,m,e),e+=g,e>=f-g);h++);(0!==this.u||a)&&b.restore();this.Vh=this.b.Vd};c.Ab=function(b){if(!(1>
this.width||1>this.height)){var a=this.wd||this.pw;this.pw=!1;var c=this.C.gd(),e=this.C.Bb(),f=this.te,g=c*this.width,m=c*this.height,h=Math.ceil(g),p=Math.ceil(m),l=this.b.da/2,t=this.b.ca/2;this.ci||(this.tf=document.createElement("canvas"),this.tf.width=h,this.tf.height=p,this.dg=h,this.bg=p,a=!0,this.ci=this.tf.getContext("2d"));if(h!==this.dg||p!==this.bg)this.tf.width=h,this.tf.height=p,this.Ed&&(b.deleteTexture(this.Ed),this.Ed=null),a=!0;a&&(this.ci.clearRect(0,0,h,p),this.Uc(this.ci,!0),
this.Ed||(this.Ed=b.Ad(h,p,this.b.ea,this.b.of)),b.Ux(this.tf,this.Ed,this.b.of));this.dg=h;this.bg=p;b.rc(this.Ed);b.Ve(this.opacity);b.ue();b.translate(-l,-t);b.Wd();var v=this.Xb,a=this.C.ob(v.ab,v.bb,!0,!0),l=this.C.ob(v.ab,v.bb,!1,!0),t=this.C.ob(v.Jb,v.Kb,!0,!0),A=this.C.ob(v.Jb,v.Kb,!1,!0),N=this.C.ob(v.wb,v.xb,!0,!0),B=this.C.ob(v.wb,v.xb,!1,!0),E=this.C.ob(v.tb,v.ub,!0,!0),v=this.C.ob(v.tb,v.ub,!1,!0);if(this.b.qc||0===this.u&&0===e)var x=(a+.5|0)-a,H=(l+.5|0)-l,a=a+x,l=l+H,t=t+x,A=A+H,N=
N+x,B=B+H,E=E+x,v=v+H;0===this.u&&0===e?(t=a+h,A=l,N=t,B=l+p,E=a,v=B,f.right=1,f.bottom=1):(f.right=g/h,f.bottom=m/p);b.Gd(a,l,t,A,N,B,E,v,f);b.ue();b.scale(c,c);b.Bo(-this.C.Bb());b.translate((this.C.Ga+this.C.Ra)/-2,(this.C.Ha+this.C.Qa)/-2);b.Wd();this.Vh=this.b.Vd}};var b=[];e.Vp=function(c){J(b);for(var a="",e,f=0;f<c.length;)if(e=c.charAt(f),"\n"===e)a.length&&(b.push(a),a=""),b.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do a+=c.charAt(f),f++;while(f<c.length&&(" "===c.charAt(f)||"\t"===
c.charAt(f)));b.push(a);a=""}else f<c.length&&(a+=e,f++);a.length&&b.push(a)};var t=[];e.Wp=function(b,a,c,e,f){if(b&&b.length)if(2>=e)h(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var g=c.measureText(b).width;if(g<=e){h(a);a.push(l());a[0].text=b;a[0].width=g;return}}this.Xp(b,a,c,e,f)}else h(a)};e.Xp=function(c,a,e,g,m){m&&(this.Vp(c),c=b);var h="",w,u,p,q=0;for(p=0;p<c.length;p++)"\n"===c[p]?(q>=a.length&&a.push(l()),h=f(h),u=a[q],u.text=h,u.width=e.measureText(h).width,q++,h=""):(w=h,h+=c[p],
u=e.measureText(h).width,u>=g&&(q>=a.length&&a.push(l()),w=f(w),u=a[q],u.text=w,u.width=e.measureText(w).width,q++,h=c[p],m||" "!==h||(h="")));h.length&&(q>=a.length&&a.push(l()),h=f(h),u=a[q],u.text=h,u.width=e.measureText(h).width,q++);for(p=q;p<a.length;p++)t.push(a[p]);a.length=q};e.k=new function(){};g.prototype.Pp=function(b){ja(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.wd=!0,this.b.V=!0)};e.q=new g;m.prototype.lu=function(b){var a=0,c,e,f;c=0;for(e=
this.nc.length;c<e;c++)f=this.nc[c].width,a<f&&(a=f);b.Z(a)};m.prototype.ku=function(b){b.Z(this.nc.length*(this.uo+this.Pk)-this.Pk)};e.B=new m})();function Dc(l){this.b=l}
(function(){var l=Dc.prototype;l.M=function(f){this.ma=f;this.b=f.b};var h=l.M.prototype;h.H=function(){this.R||(this.N=new Image,this.N.fk=this.Lj,this.b.Sj(this.N,this.oi),this.O=this.pattern=null)};h.eh=function(){this.R||(this.O=null)};h.fi=function(){if(!this.R&&this.n.length){this.O||(this.O=this.b.G.ld(this.N,!0,this.b.ea,this.Ef));var f,g;f=0;for(g=this.n.length;f<g;f++)this.n[f].O=this.O}};h.kj=function(){this.R||this.O||!this.b.G||(this.O=this.b.G.ld(this.N,!0,this.b.ea,this.Ef))};h.qi=
function(){this.R||this.n.length||!this.O||(this.b.G.deleteTexture(this.O),this.O=null)};h.zj=function(f){f.drawImage(this.N,0,0)};l.J=function(f){this.type=f;this.b=f.b};h=l.J.prototype;h.H=function(){this.visible=0===this.A[0];this.te=new ua(0,0,0,0);this.pv=!1;this.N=this.type.N;this.b.G?(this.type.kj(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.Ja.createPattern(this.type.N,"repeat")),this.pattern=this.type.pattern)};h.Ce=function(){this.pv=!1;this.N=this.type.N};h.md=function(){this.b.G&&
this.pv&&this.O&&(this.b.G.deleteTexture(this.O),this.O=null)};h.Uc=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var g=this.x,m=this.y;this.b.qc&&(g=Math.round(g),m=Math.round(m));var e=-(this.Hc*this.width),c=-(this.Ic*this.height),b=e%this.N.width,h=c%this.N.height;0>b&&(b+=this.N.width);0>h&&(h+=this.N.height);f.translate(g,m);f.rotate(this.u);f.translate(b,h);f.fillRect(e-b,c-h,this.width,this.height);f.restore()};h.Pf=function(f){this.Ab(f)};h.Ab=function(f){f.rc(this.O);
f.Ve(this.opacity);var g=this.te;g.right=this.width/this.N.width;g.bottom=this.height/this.N.height;var m=this.Xb;if(this.b.qc){var e=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;f.Gd(m.ab+e,m.bb+c,m.Jb+e,m.Kb+c,m.wb+e,m.xb+c,m.tb+e,m.ub+c,g)}else f.Gd(m.ab,m.bb,m.Jb,m.Kb,m.wb,m.xb,m.tb,m.ub,g)};l.k=new function(){};l.q=new function(){};l.B=new function(){}})();function Ec(l){this.b=l}
(function(){function l(){this.ep=this.id=-1;this.yu=this.Ji=this.Ml=this.wk=!1;this.Oa=new ua(0,0,0,0)}function h(a){1E4>r.length&&r.push(a)}function f(){this.id=-1;this.Oa=new ua(0,0,0,0);this.Re=null}function g(a){1E4>n.length&&n.push(a)}function m(a,b,c){var d;return D.length?(d=D.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.Yb*d.j.Pc,d.top=d.y*d.j.jc*d.j.Oc,d.clear(),d.nl=!1,d):new e(a,b,c)}function e(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.Yb*this.j.Pc;this.top=this.y*this.j.jc*this.j.Oc;
this.Ff=[];this.Ac=[];this.Sc=[];this.nl=!1;var d,e;a=0;for(b=this.j.jc;a<b;++a){e=[];c=0;for(d=this.j.Yb;c<d;++c)e.push(-1);this.Ff.push(e)}}var c=Ec.prototype;c.M=function(a){this.ma=a;this.b=a.b};var b=c.M.prototype;b.H=function(){var a,b,c;if(!this.R&&(this.N=new Image,this.N.fk=this.Lj,this.b.Sj(this.N,this.oi),this.xh=[],this.tq=!1,this.Ye=[],this.Ax=!1,this.dp&&this.dp.length))for(a=0,b=this.dp.length;a<b;++a)(c=this.dp[a])?this.Ye.push({Re:c,Ym:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.Ye.push(null)};b.Fg=function(a,b,c,d,e,f){if(!(0>a||a>=this.Ye.length)&&this.Ye[a]){var g=this.Ye[a].Ym;a=new cb(this.Ye[a].Re);a.Gg(b,c,0);f&&a.RB();d&&a.jE(b/2);e&&a.ZC(c/2);g[d?1:0][e?1:0][f?1:0]=a}};b.sD=function(b){if(-1===b)return null;var c=b&k;return 0>c||c>=this.Ye.length||!this.Ye[c]?null:this.Ye[c].Ym[b&t?1:0][b&d?1:0][b&a?1:0]};b.Kq=function(){var a,b,c=this.b.G;if(c)for(a=0,b=this.xh.length;a<b;++a)c.deleteTexture(this.xh[a]);J(this.xh);this.tq=!1};b.Vr=function(a,b,c,
d,e,f,g){if(!(this.tq||0>=a||0>=b)){this.Kq();var k=this.N.width,m=this.N.height,h;for(h=d;h+b<=m;h+=b+f)for(d=c;d+a<=k;d+=a+e)this.xh.push(this.zy(d,h,a,b,g));this.tq=!0}};b.zy=function(a,b,c,d,e){if(this.b.G)return this.tp(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.tp(a,b,c,d,!1,!1,!1,e);return{Ym:f,x:a,y:b,lp:c,pn:d}};b.Bt=function(a,b,c,d,e){if(0>a||a>=this.xh.length)return null;a=this.xh[a];var f=a.Ym;b=b?1:0;c=c?1:0;d=d?1:0;var g=f[b][c][d];
if(g)return g;g=this.tp(a.x,a.y,a.lp,a.pn,0!==b,0!==c,0!==d,e);return f[b][c][d]=g};b.tp=function(a,b,c,d,e,f,g,k){var m=c,h=d;this.b.G&&!k&&(ma(m)||(m=na(m)),ma(h)||(h=na(h)));var l=document.createElement("canvas");l.width=m;l.height=h;var n=l.getContext("2d");if(this.b.Ja)return e?f?(g?(n.rotate(Math.PI/2),n.scale(-1,1)):n.scale(-1,-1),n.translate(-m,-h)):g?(n.rotate(Math.PI/2),n.translate(0,-h)):(n.scale(-1,1),n.translate(-m,0)):f?g?(n.rotate(-Math.PI/2),n.translate(-m,0)):(n.scale(1,-1),n.translate(0,
-h)):g&&(n.scale(-1,1),n.rotate(Math.PI/2)),n.drawImage(this.N,a,b,c,d,0,0,m,h),k?l:this.b.Ja.createPattern(l,"repeat");n.drawImage(this.N,a,b,c,d,0,0,m,h);a=this.b.G.Ad(m,h,this.b.ea,!1,!k);this.b.G.Ux(l,a);return a};b.eh=function(){this.R||this.Kq()};b.fi=function(){};b.kj=function(){};b.qi=function(){this.R||this.n.length||this.Kq()};b.zj=function(){};c.J=function(a){this.type=a;this.b=a.b};var b=c.J.prototype,t=-2147483648,d=1073741824,a=536870912,k=536870911,r=[],n=[],D=[];e.prototype.clear=
function(){var a,b,c,d,e;this.Ff.length=this.j.jc;a=0;for(b=this.Ff.length;a<b;++a)for(e=this.Ff[a],e||(e=[],this.Ff[a]=e),e.length=this.j.Yb,c=0,d=e.length;c<d;++c)e[c]=-1};e.prototype.$k=function(){if(!this.nl){var b=this.j.Pc,c=this.j.Oc;if(!(0>=b||0>=c)){var e,m,v,A,N,B;e=0;for(m=this.Ac.length;e<m;++e)h(this.Ac[e]);e=0;for(m=this.Sc.length;e<m;++e)g(this.Sc[e]);J(this.Ac);J(this.Sc);var E=Math.floor(this.j.width/b),x=Math.floor(this.j.height/c),E=E-this.left/b,x=x-this.top/c;E>this.j.Yb&&(E=
this.j.Yb);x>this.j.jc&&(x=this.j.jc);var D=this.j.Ue,w=null;e=0;for(m=x;e<m;++e){N=this.Ff[e];v=0;for(A=E;v<A;++v)B=N[v],-1===B?w&&(this.Ac.push(w),w=null):D||!w||B!==w.id?(w&&this.Ac.push(w),w=r.length?r.pop():new l,w.id=B,w.ep=B&k,w.wk=0!==(B&t),w.Ml=0!==(B&d),w.Ji=0!==(B&a),w.yu=w.wk||w.Ml||w.Ji,w.Oa.left=v*b+this.left,w.Oa.top=e*c+this.top,w.Oa.right=w.Oa.left+b,w.Oa.bottom=w.Oa.top+c):w.Oa.right+=b;w&&(this.Ac.push(w),w=null)}var w=null,R=!1;e=0;for(m=x;e<m;++e){N=this.Ff[e];v=0;for(A=E;v<A;++v)B=
N[v],-1===B?w&&(this.Sc.push(w),w=null,R=!1):(x=this.j.type.sD(B),!w||x||R?(w&&this.Sc.push(w),w=n.length?n.pop():new f,w.id=B,w.Re=x?x:null,B=w.Oa,B.left=v*b+this.left,B.top=e*c+this.top,B.right=B.left+b,B.bottom=B.top+c,R=!!x):w.Oa.right+=b);w&&(this.Sc.push(w),w=null,R=!1)}if(!D)for(m=this.Ac.length,e=0;e<m;++e)for(A=this.Ac[e],b=e+1;b<m;++b)if(v=this.Ac[b],!(v.Oa.top<A.Oa.bottom)){if(v.Oa.top>A.Oa.bottom)break;if(v.Oa.right>A.Oa.right||v.Oa.left>A.Oa.left)break;v.id===A.id&&v.Oa.left===A.Oa.left&&
v.Oa.right===A.Oa.right&&(h(this.Ac[b]),this.Ac.splice(b,1),--m,A.Oa.bottom+=c,--b)}m=this.Sc.length;for(e=0;e<m;++e)if(A=this.Sc[e],!A.Re)for(N=A.Oa,b=e+1;b<m;++b)if(v=this.Sc[b],A=v.Oa,!(A.top<N.bottom)){if(A.top>N.bottom)break;if(A.right>N.right||A.left>N.left)break;v.Re||A.left!==N.left||A.right!==N.right||(g(this.Sc[b]),this.Sc.splice(b,1),--m,N.bottom+=c,--b)}this.nl=!0}}};e.prototype.Ms=function(a,b,c){this.Ff[b][a]!==c&&(this.Ff[b][a]=c,this.nl=!1,this.j.om=!0,this.j.hl=!0,this.j.b.V=!0)};
b.H=function(){var a,b,c;this.visible=0===this.A[0];this.Pc=this.A[1];this.Oc=this.A[2];this.Us=this.A[3];this.Ws=this.A[4];this.Vs=this.A[5];this.Xs=this.A[6];this.Ue=0!==this.A[7];this.Qe=this.Dx;this.sf=this.Cx;this.dg=this.width;this.bg=this.height;var d=this.Pc,e=this.Oc;0===d&&(d=1);0===e&&(e=1);this.Yb=Math.ceil(this.b.Rb/d);this.jc=Math.ceil(this.b.Qb/e);if(!this.type.Ax)for(this.type.Ax=!0,a=0,b=this.type.Ye.length;a<b;++a)if(c=this.type.Ye[a])this.type.Fg(a,d,e,!1,!1,!1),this.type.Fg(a,
d,e,!1,!1,!0),this.type.Fg(a,d,e,!1,!0,!1),this.type.Fg(a,d,e,!1,!0,!0),this.type.Fg(a,d,e,!0,!1,!1),this.type.Fg(a,d,e,!0,!1,!0),this.type.Fg(a,d,e,!0,!0,!1),this.type.Fg(a,d,e,!0,!0,!0);this.Vb||(this.bd=[]);this.iw(!0);this.bx(this.Bx);this.type.Vr(this.Pc,this.Oc,this.Us,this.Ws,this.Vs,this.Xs,this.Ue);this.hl=!1;this.om=!0;this.Ur()};b.Ur=function(){if(this.om){var a,b,c,d,e;a=0;for(b=this.bd.length;a<b;++a)for(e=this.bd[a],c=0,d=e.length;c<d;++c)e[c].$k();this.om=!1}};b.Go=function(){var a,
b,c,d,e;a=0;for(b=this.bd.length;a<b;++a)for(e=this.bd[a],c=0,d=e.length;c<d;++c)e[c].nl=!1;this.om=!0};b.iw=function(a){var b=C(this.width/this.Pc),c=C(this.height/this.Oc);if(!(b<=this.Qe&&c<=this.sf)||a){var d;a?(a=Math.ceil(this.sf/this.jc),d=Math.ceil(this.Qe/this.Yb)):(a=this.bd.length,d=Math.ceil(this.Qe/this.Yb),c>this.sf&&(this.sf=c,a=Math.ceil(this.sf/this.jc)),b>this.Qe&&(this.Qe=b,d=Math.ceil(this.Qe/this.Yb)),this.Go(),this.hl=!0,this.b.V=!0);for(var e,b=0;b<a;++b)if(e=this.bd[b])for(c=
e.length;c<d;++c)e.push(m(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(m(this,c,b));this.bd[b]=e}}};b.kq=function(a,b){if(0>a||0>b)return null;var c=C(b/this.jc);if(c>=this.bd.length)return null;var c=this.bd[c],d=C(a/this.Yb);return d>=c.length?null:c[d]};b.lq=function(a,b){if(0>a||0>b||b>=this.bd.length)return null;var c=this.bd[b];return a>=c.length?null:c[a]};b.bx=function(b){var c=[];b=b.split(",");var e,f,g,k,m;e=0;for(f=b.length;e<f;++e)if(g=b[e],k=g.indexOf("x"),-1<k)for(m=parseInt(g.substring(0,
k),10),g=g.substring(k+1),k=parseInt(g,10),-1<g.indexOf("h")&&(k|=t),-1<g.indexOf("v")&&(k|=d),-1<g.indexOf("d")&&(k|=a);0<m;--m)c.push(k);else k=parseInt(g,10),-1<g.indexOf("h")&&(k|=t),-1<g.indexOf("v")&&(k|=d),-1<g.indexOf("d")&&(k|=a),c.push(k);for(e=b=0;e<this.sf;++e)for(f=0;f<this.Qe;++f)m=c[b++],(g=this.kq(f,e))&&g.Ms(f%this.Yb,e%this.jc,m)};b.tD=function(){var b="";if(0>=this.Qe||0>=this.sf)return b;var c=1,e=this.lv(0,0),f,g,m,h,l,n,r,w;h=C(this.width/this.Pc);g=C(this.height/this.Oc);for(f=
0;f<g;++f)for(m=0===f?1:0;m<h;++m)l=this.lv(m,f),l===e?++c:(-1===e?(n=-1,e=w=r=!1):(n=e&k,r=0!==(e&t),w=0!==(e&d),e=0!==(e&a)),b=1===c?b+(""+n):b+(""+c+"x"+n),r&&(b+="h"),w&&(b+="v"),e&&(b+="d"),b+=",",c=1,e=l);-1===e?(n=-1,e=w=r=!1):(n=e&k,r=0!==(e&t),w=0!==(e&d),e=0!==(e&a));b=1===c?b+(""+n):b+(""+c+"x"+n);r&&(b+="h");w&&(b+="v");e&&(b+="d");return b};b.lv=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Qe||b>=this.sf)return-1;var c=this.kq(a,b);return c?c.Ff[b%this.jc][a%this.Yb]:
-1};b.Ms=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Qe||b>=this.sf)return-1;var d=this.kq(a,b);if(!d)return-1;d.Ms(a%this.Yb,b%this.jc,c)};b.Vx=function(a){return Math.floor((a-this.x)/(this.Yb*this.Pc))};b.Wx=function(a){return Math.floor((a-this.y)/(this.jc*this.Oc))};b.Yu=function(a,b){var c=this.Wx(a.top),d=this.Vx(a.right),e=this.Wx(a.bottom),f,g,k;for(f=this.Vx(a.left);f<=d;++f)for(g=c;g<=e;++g)if(k=this.lq(f,g))k.$k(),Ca(b,k.Sc)};b.bk=function(a){var b,c,d,e,f,g;b=
0;for(c=this.bd.length;b<c;++b)for(f=this.bd[b],d=0,e=f.length;d<e;++d)g=f[d],g.$k(),Ca(a,g.Sc)};b.md=function(){var a,b,c,d,e;a=0;for(b=this.bd.length;a<b;++a){e=this.bd[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],k=void 0,m=void 0,k=0,m=f.Ac.length;k<m;++k)h(f.Ac[k]);J(f.Ac);k=0;for(m=f.Sc.length;k<m;++k)g(f.Sc[k]);J(f.Sc);1E3>D.length&&D.push(f)}J(e)}J(this.bd)};b.Pa=function(){this.iw();return{w:C(this.width/this.Pc),h:C(this.height/this.Oc),d:this.tD()}};b.Va=function(a){this.Qe=a.w;this.sf=
a.h;this.bx(a.d);this.hl=!0;this.Go()};b.Uc=function(a){if(!(0>=this.Pc||0>=this.Oc)){this.type.Vr(this.Pc,this.Oc,this.Us,this.Ws,this.Vs,this.Xs,this.Ue);if(this.width!==this.dg||this.height!==this.bg)this.hl=!0,this.Go(),this.Ur(),this.dg=this.width,this.bg=this.height;a.globalAlpha=this.opacity;var b=this.C,c=b.Ga,d=b.Ha,e=b.Ra,b=b.Qa,f=this.x,g=this.y,k=this.Ue,m;this.b.qc&&(f=Math.round(f),g=Math.round(g));var h=this.Yb*this.Pc,l=this.jc*this.Oc,n=Math.floor((c-f)/h),h=Math.floor((e-f)/h),t=
Math.floor((d-g)/l),l=Math.floor((b-g)/l),r=f%this.Pc,w=g%this.Oc;this.Ue&&(w=r=0);if(0!==r||0!==w)a.save(),a.translate(r,w),f-=r,g-=w,c-=r,d-=w,e-=r,b-=w;for(var D,T,z,y,F,L,K,I,O;n<=h;++n)for(D=t;D<=l;++D)if(T=this.lq(n,D))for(T.$k(),z=0,y=T.Ac.length;z<y;++z)F=T.Ac[z],-1!==F.id&&(m=F.Oa,L=m.left+f,K=m.top+g,I=m.right+f,m=m.bottom+g,L>e||I<c||K>b||m<d||(O=this.type.Bt(F.ep,F.wk,F.Ml,F.Ji,this.Ue),k?a.drawImage(O,L,K):(a.fillStyle=this.type.Bt(F.ep,F.wk,F.Ml,F.Ji,this.Ue),a.fillRect(L,K,I-L,m-K))));
0===r&&0===w||a.restore()}};var w=new ua(0,0,1,1);b.Pf=function(a){this.Ab(a)};b.Ab=function(a){if(!(0>=this.Pc||0>=this.Oc)){this.type.Vr(this.Pc,this.Oc,this.Us,this.Ws,this.Vs,this.Xs,this.Ue);if(this.width!==this.dg||this.height!==this.bg)this.hl=!0,this.Go(),this.Ur(),this.dg=this.width,this.bg=this.height;a.Ve(this.opacity);var b=this.type.xh,c=this.C,d=c.Ga,e=c.Ha,f=c.Ra,c=c.Qa,g=this.x,k=this.y,m;this.b.qc&&(g=Math.round(g),k=Math.round(k));var h=this.Yb*this.Pc,l=this.jc*this.Oc,n=Math.floor((f-
g)/h),t=Math.floor((e-k)/l),l=Math.floor((c-k)/l),r,D,Z,T,z,y,F,L,K,I,O,V,S,U,fa,Ka,wa;for(fa=Math.floor((d-g)/h);fa<=n;++fa)for(Ka=t;Ka<=l;++Ka)if(wa=this.lq(fa,Ka))for(wa.$k(),h=0,r=wa.Ac.length;h<r;++h)D=wa.Ac[h],-1!==D.id&&(m=D.Oa,Z=m.left+g,T=m.top+k,z=m.right+g,m=m.bottom+k,Z>f||z<d||T>c||m<e||(a.rc(b[D.ep]),w.right=(z-Z)/this.Pc,w.bottom=(m-T)/this.Oc,D.yu?(D.Ji&&(U=w.right,w.right=w.bottom,w.bottom=U),F=y=0,L=w.right,K=0,I=w.right,O=w.bottom,V=0,S=w.bottom,D.Ji&&(U=V,V=L,L=U,U=S,S=K,K=U),
D.wk&&(U=y,y=L,L=U,U=F,F=K,K=U,U=V,V=I,I=U,U=S,S=O,O=U),D.Ml&&(U=y,y=V,V=U,U=F,F=S,S=U,U=L,L=I,I=U,U=K,K=O,O=U),a.FE(Z,T,z,T,z,m,Z,m,y,F,L,K,I,O,V,S)):a.Gd(Z,T,z,T,z,m,Z,m,w)))}};c.k=new function(){};c.q=new function(){};c.B=new function(){}})();function Fc(l){this.b=l}
(function(){function l(b){t=b.x;d=b.y;a=b.z}function h(a,b,c,d){var e;e=k.length?k.pop():new f;e.init(a,b,c,d);return e}function f(){this.zl=this.id=this.Yh=this.Xh=this.y=this.x=this.Zo=this.Yo=this.Ir=this.time=this.Ss=0;this.Fl=this.hp=!1}function g(){}function m(){}var e=Fc.prototype;e.M=function(a){this.ma=a;this.b=a.b};e.M.prototype.H=function(){};e.J=function(a){this.type=a;this.b=a.b;this.touches=[];this.Yr=!1};var c=e.J.prototype,b={left:0,top:0};c.pk=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 t=0,d=0,a=0,k=[];f.prototype.init=function(a,b,c,d){var e=Xa();this.Ss=this.Ir=this.time=e;this.Yo=a;this.Zo=b;this.x=a;this.y=b;this.Xh=a;this.Yh=b;this.id=c;this.zl=d;this.Fl=this.hp=!1};f.prototype.update=function(a,b,c){this.Ir=this.time;this.time=a;this.Xh=this.x;this.Yh=this.y;this.x=b;this.y=c;!this.Fl&&15<=Sa(this.Yo,this.Zo,this.x,this.y)&&(this.Fl=!0)};f.prototype.gE=function(a,b){!this.hp&&500<=Xa()-this.Ss&&!this.Fl&&15>Sa(this.Yo,
this.Zo,this.x,this.y)&&(this.hp=!0,a.Gf=this.zl,a.pi=this.id,a.Ri=b,a.b.trigger(Fc.prototype.k.Iz,a),a.Lf=this.x,a.Mf=this.y,a.b.trigger(Fc.prototype.k.Jz,a),a.Ri=0)};var r=-1E3,n=-1E3,D=-1E4;f.prototype.jw=function(a,b){if(!this.hp){var c=Xa();333>=c-this.Ss&&!this.Fl&&15>Sa(this.Yo,this.Zo,this.x,this.y)&&(a.Gf=this.zl,a.pi=this.id,a.Ri=b,666>=c-D&&25>Sa(r,n,this.x,this.y)?(a.b.trigger(Fc.prototype.k.Cz,a),a.Lf=this.x,a.Mf=this.y,a.b.trigger(Fc.prototype.k.Dz,a),n=r=-1E3,D=-1E4):(a.b.trigger(Fc.prototype.k.$z,
a),a.Lf=this.x,a.Mf=this.y,a.b.trigger(Fc.prototype.k.aA,a),r=this.x,n=this.y,D=c),a.Ri=0)}};c.H=function(){this.XD=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ri=this.pi=this.Gf=this.Mf=this.Lf=this.su=this.ru=this.qu=this.sB=this.rB=this.qB=this.bo=this.ao=this.$n=0;this.iF=0!==this.A[0];var a=0<this.b.Gc?document:this.b.canvas,b=document;this.b.wc?b=a=window.Canvas:this.b.jd&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.zw(a)},
!1),a.addEventListener("pointermove",function(a){c.yw(a)},!1),b.addEventListener("pointerup",function(a){c.Vn(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Vn(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.zw(a)},!1),a.addEventListener("MSPointerMove",function(a){c.yw(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Vn(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Vn(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.Cw(a)},
!1),a.addEventListener("touchmove",function(a){c.Bw(a)},!1),b.addEventListener("touchend",function(a){c.ks(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.ks(a,!0)},!1));if(this.XD){var d=function(a){a=a.reading;c.qu=a.accelerationX;c.ru=a.accelerationY;c.su=a.accelerationZ},e=function(a){a=a.reading;c.$n=a.yawDegrees;c.ao=a.pitchDegrees;c.bo=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.$n=a.alpha||
0;c.ao=a.beta||0;c.bo=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.qB=a.accelerationIncludingGravity.x||0,c.rB=a.accelerationIncludingGravity.y||0,c.sB=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.qu=a.acceleration.x||0,c.ru=a.acceleration.y||0,c.su=a.acceleration.z||0)},!1);this.iF&&!this.b.ua&&(jQuery(document).mousemove(function(a){c.gs(a)}),jQuery(document).mousedown(function(a){c.es(a)}),jQuery(document).mouseup(function(a){c.hs(a)}));
!this.b.Vg&&this.b.kd&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(l,null,{frequency:40});this.b.eF(this)};c.yw=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.pk(a.pointerId),d=Xa();if(0<=c){var e=this.b.ua?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top)}}};c.zw=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&jb(a)&&a.preventDefault();var c=this.b.ua?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;Xa();this.Gf=this.touches.length;this.pi=a.pointerId;this.touches.push(h(d,c,a.pointerId,this.Gf));this.b.Cb=!0;this.b.trigger(Fc.prototype.k.Ut,this);this.b.trigger(Fc.prototype.k.Gp,this);this.Lf=d;this.Mf=c;this.b.trigger(Fc.prototype.k.Fp,this);this.b.Cb=!1}};c.Vn=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&
jb(a)&&a.preventDefault();var c=this.pk(a.pointerId);this.Gf=0<=c?this.touches[c].zl:-1;this.pi=0<=c?this.touches[c].id:-1;this.b.Cb=!0;this.b.trigger(Fc.prototype.k.Tt,this);this.b.trigger(Fc.prototype.k.Ep,this);0<=c&&(b||this.touches[c].jw(this,c),100>k.length&&k.push(this.touches[c]),this.touches.splice(c,1));this.b.Cb=!1}};c.Bw=function(a){a.preventDefault&&a.preventDefault();var c=Xa(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.pk(f.identifier),0<=g){var k=
this.b.ua?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-k.left,f.pageY-k.top)}};c.Cw=function(a){a.preventDefault&&jb(a)&&a.preventDefault();var c=this.b.ua?b:jQuery(this.b.canvas).offset();Xa();this.b.Cb=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.pk(f.identifier),-1===g){g=f.pageX-c.left;var k=f.pageY-c.top;this.Gf=this.touches.length;this.pi=f.identifier;this.touches.push(h(g,k,f.identifier,this.Gf));this.b.trigger(Fc.prototype.k.Ut,
this);this.b.trigger(Fc.prototype.k.Gp,this);this.Lf=g;this.Mf=k;this.b.trigger(Fc.prototype.k.Fp,this)}this.b.Cb=!1};c.ks=function(a,b){a.preventDefault&&jb(a)&&a.preventDefault();this.b.Cb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.pk(e.identifier),0<=e&&(this.Gf=this.touches[e].zl,this.pi=this.touches[e].id,this.b.trigger(Fc.prototype.k.Tt,this),this.b.trigger(Fc.prototype.k.Ep,this),b||this.touches[e].jw(this,e),100>k.length&&k.push(this.touches[e]),this.touches.splice(e,
1));this.b.Cb=!1};c.bk=function(){return this.b.kd&&0===this.$n&&0!==a?90*a:this.$n};c.bG=function(){return this.b.kd&&0===this.ao&&0!==d?90*d:this.ao};c.cG=function(){return this.b.kd&&0===this.bo&&0!==t?90*t:this.bo};c.es=function(a){this.Cw({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Yr=!0};c.gs=function(a){this.Yr&&this.Bw({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.hs=function(a){a.preventDefault&&this.b.qn&&!this.b.of&&a.preventDefault();this.b.qn=
!0;this.ks({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Yr=!1};c.Mj=function(){var a,b,c,d=Xa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Ir=d),c.gE(this,a)};g.prototype.Gp=function(){return!0};g.prototype.Ep=function(){return!0};g.prototype.Fp=function(a){return a?this.b.Kj(a,this.Lf,this.Mf,!1):!1};var w=[];g.prototype.hz=function(a){if(!a)return!1;var b=a.X(),c=b.lc(),d,e,f,g,k,m;f=0;for(g=c.length;f<g;f++){var h=c[f];h.Fa();k=0;for(m=this.touches.length;k<
m;k++)if(e=this.touches[k],d=h.C.zb(e.x,e.y,!0),e=h.C.zb(e.x,e.y,!1),h.ac(d,e)){w.push(h);break}}return w.length?(b.aa=!1,Ba(b.n,w),a.ae(),J(w),!0):!1};g.prototype.Ut=function(a){a=Math.floor(a);return a===this.Gf};g.prototype.Tt=function(a){a=Math.floor(a);return a===this.Gf};g.prototype.Iz=function(){return!0};g.prototype.$z=function(){return!0};g.prototype.Cz=function(){return!0};g.prototype.Jz=function(a){return a?this.b.Kj(a,this.Lf,this.Mf,!1):!1};g.prototype.aA=function(a){return a?this.b.Kj(a,
this.Lf,this.Mf,!1):!1};g.prototype.Dz=function(a){return a?this.b.Kj(a,this.Lf,this.Mf,!1):!1};e.k=new g;m.prototype.wi=function(a,b){var c=this.Ri;if(0>c||c>=this.touches.length)a.L(0);else{var d,e,f,g,k;ia(b)?(d=this.b.kf(0),e=d.scale,f=d.Qc,g=d.nd,k=d.u,d.scale=1,d.Qc=1,d.nd=1,d.u=0,a.L(d.zb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Qc=f,d.nd=g,d.u=k):(d=ja(b)?this.b.kf(b):this.b.Qi(b))?a.L(d.zb(this.touches[c].x,this.touches[c].y,!0)):a.L(0)}};m.prototype.xi=function(a,b){var c=this.Ri;
if(0>c||c>=this.touches.length)a.L(0);else{var d,e,f,g,k;ia(b)?(d=this.b.kf(0),e=d.scale,f=d.Qc,g=d.od,k=d.u,d.scale=1,d.Qc=1,d.od=1,d.u=0,a.L(d.zb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Qc=f,d.od=g,d.u=k):(d=ja(b)?this.b.kf(b):this.b.Qi(b))?a.L(d.zb(this.touches[c].x,this.touches[c].y,!1)):a.L(0)}};m.prototype.iB=function(a){a.L(this.pi)};e.B=new m})();function Gc(l){this.b=l}
(function(){function l(){}function h(){}function f(){}var g=Gc.prototype;g.M=function(b){this.ma=b;this.b=b.b};g.M.prototype.H=function(){};g.J=function(b){this.type=b;this.b=b.b};var m=g.J.prototype,e="",c="undefined"!==typeof window.is_scirra_arcade;c&&(e="arcade"+window.scirra_arcade_id);var b=!1;try{localStorage.getItem("test"),b=!0}catch(t){b=!1}m.H=function(){b||ga("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};l.prototype.oz=function(c){return b?null!=
localStorage.getItem(e+c):!1};l.prototype.Xt=function(){return!0};g.k=new l;h.prototype.dB=function(c,a){if(b)try{localStorage.setItem(e+c,a)}catch(f){this.b.trigger(Gc.prototype.k.Xt,this)}};h.prototype.Ft=function(d,a){if(b){var f;try{f=JSON.parse(d)}catch(g){return}if(f.c2dictionary){f=f.data;0!==a||c||localStorage.clear();for(var m in f)if(f.hasOwnProperty(m))try{localStorage.setItem(e+m,f[m])}catch(h){this.b.trigger(Gc.prototype.k.Xt,this);break}}}};g.q=new h;f.prototype.pz=function(c,a){b?c.Ma(localStorage.getItem(e+
a)||""):c.Ma("")};f.prototype.pp=function(d){if(b){var a={},f,g,m;f=0;for(g=localStorage.length;f<g;f++)m=localStorage.key(f),c?m.substr(0,e.length)===e&&(a[m.substr(e.length)]=localStorage.getItem(m)):a[m]=localStorage.getItem(m);d.Ma(JSON.stringify({c2dictionary:!0,data:a}))}else d.Ma("")};g.B=new f})();function Hc(l){this.b=l;this.b.Vc&&(l={},window.XPathResult=l,l.NUMBER_TYPE=1,l.STRING_TYPE=2,l.UNORDERED_NODE_SNAPSHOT_TYPE=6,l.ORDERED_NODE_SNAPSHOT_TYPE=7)}
(function(){function l(){}function h(){}function f(){}var g=Hc.prototype;g.M=function(e){this.ma=e;this.b=e.b};g.M.prototype.H=function(){};g.J=function(e){this.type=e;this.b=e.b};var m=g.J.prototype;m.H=function(){this.qh=null;this.dh=[];this.b.ua&&ga("[Construct 2] The XML object is not supported on this platform.")};m.Xx=function(e,c){if(this.qh){var b=this.dh.length?this.dh[this.dh.length-1]:this.qh.documentElement;try{return this.b.Vc?b.selectSingleNode(e):this.qh.evaluate(e,b,null,c,null)}catch(f){return null}}};
m.uF=function(e){var c=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE;if(this.qh){var b=this.dh.length?this.dh[this.dh.length-1]:this.qh.documentElement;try{return this.b.Vc?b.selectNodes(e):this.qh.evaluate(e,b,null,c,null)}catch(f){return null}}};m.Ou=function(e,c){this.dh.push(c);this.b.re(e.fa);e.ud();this.b.qd(e.fa);this.dh.pop()};l.prototype.up=function(e){if(this.b.ua)return!1;var c=this.b.eb().cb;e=this.uF(e);var b,f;if(e){var d=this.b.Aj();if(this.b.Vc)for(b=0,f=e.length;b<f;b++)d.index=b,this.Ou(c,
e[b]);else for(b=0,f=e.snapshotLength;b<f;b++)d.index=b,this.Ou(c,e.snapshotItem(b));this.b.yj()}return!1};g.k=new l;h.prototype.lz=function(e){if(!this.b.ua){var c,b,f=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);try{if(f)c=new Windows.Data.Xml.Dom.XmlDocument,c.loadXml(e);else if(this.b.Vc){b=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument"];for(var d=0;3>d;d++)try{if(c=new ActiveXObject(b[d]))break}catch(a){c=null}c&&(c.async="false",c.loadXML(e))}else b=
new DOMParser,c=b.parseFromString(e,"text/xml")}catch(g){c=null}c&&(this.qh=c,this.b.Vc&&!f&&this.qh.setProperty("SelectionLanguage","XPath"))}};g.q=new h;f.prototype.eB=function(e,c){if(this.b.ua)e.Ma("");else{var b;if(/firefox/i.test(navigator.userAgent))if(b=this.Xx(c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE)){var f,d,a="";f=0;for(d=b.snapshotLength;f<d;f++)a+=b.snapshotItem(f).textContent;e.Ma(a)}else e.Ma("");else(b=this.Xx(c,XPathResult.STRING_TYPE))?this.b.Vc?e.Ma(b.nodeValue||b.nodeTypedValue||
""):e.Ma(b.stringValue||""):e.Ma("")}};g.B=new f})();function Ic(l){this.b=l}
(function(){function l(c){switch(c){case 1:return"BANNER";case 2:return"MEDIUM_RECTANGLE";case 3:return"FULL_BANNER";case 4:return"LEADERBOARD";case 5:return"SKYSCRAPER"}return"SMART_BANNER"}function h(c){switch(c){case 0:return"top-left";case 1:return"top-center";case 2:return"top-right";case 3:return"left";case 4:return"center";case 5:return"right";case 6:return"bottom-left";case 8:return"bottom-right"}return"bottom-center"}function f(){}function g(){}var m=Ic.prototype;m.M=function(c){this.ma=
c;this.b=c.b};m.M.prototype.H=function(){};m.J=function(c){this.type=c;this.b=c.b};var e=!1;m.J.prototype.H=function(){if(window.admob){e=!0;this.cf=window.admob;var c=0!==this.A[0],b=0!==this.A[1];this.xB=this.A[2];this.yB=this.A[3];this.QD=this.A[4];this.RD=this.A[5];this.sF=this.A[6];this.tF=this.A[7];this.b.Wi?(this.pm=this.xB,this.un=this.yB):this.b.Vg?(this.pm=this.QD,this.un=this.RD):this.b.oe||this.b.zn?(this.pm=this.sF,this.un=this.tF):this.un=this.pm="";this.Dv=!1;this.cf.setUp(this.pm,
this.un,c,b);var f=this;this.cf.onFullScreenAdLoaded=function(){f.b.trigger(Ic.prototype.k.Mz,f)};this.cf.onFullScreenAdShown=function(){f.Dv=!0;f.b.trigger(Ic.prototype.k.Lz,f)};this.cf.onFullScreenAdClosed=function(){f.Dv=!1;f.b.trigger(Ic.prototype.k.Kz,f)};this.cf.onBannerAdPreloaded=function(){f.b.trigger(Ic.prototype.k.xz,f)}}else ga("[Construct 2] com.cranberrygame.phonegap.plugin.ad.admob plugin is required to show Admob ads with Cordova; other platforms are not supported")};f.prototype.Mz=
function(){return!0};f.prototype.Lz=function(){return!0};f.prototype.Kz=function(){return!0};f.prototype.xz=function(){return!0};m.k=new f;g.prototype.WA=function(c,b){e&&this.cf.showBannerAd(h(c),l(b))};g.prototype.iA=function(){e&&this.cf.preloadFullScreenAd()};g.prototype.XA=function(){e&&this.cf.showFullScreenAd()};g.prototype.Ny=function(){e&&this.cf.hideBannerAd()};g.prototype.hA=function(){e&&this.cf.preloadBannerAd()};m.q=new g;m.B=new function(){}})();function Jc(l){this.b=l}
(function(){function l(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function h(a){b[a.gamepad.index]=a.gamepad;e.trigger(Jc.prototype.k.Gz,c)}function f(a){e.trigger(Jc.prototype.k.Hz,c);b[a.gamepad.index]=null}function g(){}var m=Jc.prototype;m.M=function(a){this.ma=a;this.b=a.b};m.M.prototype.H=function(){};var e=null,c=null,b=Array(16),t="",d="",a=null,k={windows:{}};k.windows.firefox={};var r=[0,1,2,3,4,5,8,9,10,11],n=[0,1,[7,6],2,3,[14,15],[12,13]];k.windows.firefox.xbox360=function(a,b){return b?a>=
n.length?-1:ja(n[a])?n[a]+16:n[a]:a>=r.length?-1:r[a]};var D=[2,0,1,3,4,6,5,7,8,9],w=[0,1,2,3,[14,15],[12,13]];k.windows.firefox.logitechdualaction=function(a,b){return b?a>=w.length?-1:ja(w[a])?w[a]+16:w[a]:a>=D.length?-1:D[a]};m.J=function(a){this.type=a;e=this.b=a.b;c=this};var u=m.J.prototype;u.H=function(){this.OB=this.A[0];this.Ph=0;var b=navigator.userAgent;t="windows";/mac/i.test(b)&&(t="mac");a=k[t];d="chrome";/firefox/i.test(b)&&(d="firefox");a&&(a=a[d]);window.addEventListener("webkitgamepadconnected",
h,!1);window.addEventListener("webkitgamepaddisconnected",f,!1);window.addEventListener("MozGamepadConnected",h,!1);window.addEventListener("MozGamepadDisconnected",f,!1);window.addEventListener("gamepadconnected",h,!1);window.addEventListener("gamepaddisconnected",f,!1);this.b.nh(this);this.Zd=[]};u.ta=function(){this.Zd.length=0;var c=null,d=!1;navigator.getGamepads?c=navigator.getGamepads():navigator.webkitGetGamepads?c=navigator.webkitGetGamepads():navigator.mozGetGamepads?c=navigator.mozGetGamepads():
navigator.msGetGamepads?c=navigator.msGetGamepads():this.b.Fv&&window.cr_getGamepads?(c=window.cr_getGamepads(),d=!0):c=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||b;if(c){var e,f,g,k,m,h,n;e=0;for(f=c.length;e<f;e++){var t=c[e];if(t){if(t.yb)for(g=0;20>g;g++)t.Ci[g]=t.yb[g];else for(t.yb=Array(20),t.Ci=Array(20),g=0;20>g;g++)t.Ci[g]=0;d?g=l:a?(g="",k=t.id.toLowerCase(),-1<k.indexOf("xbox 360")?g="xbox360":-1<k.indexOf("logitech dual action")&&(g="logitechdualaction"),g=a[g]||
l):g=l;m=g;g=0;for(k=t.buttons.length;g<k;g++)n="undefined"!==typeof t.buttons[g].value?t.buttons[g].value:t.buttons[g],h=m(g,!1,n),0<=h&&20>h&&(t.yb[h]=100*n,50<=t.yb[h]&&50>t.Ci[h]&&(this.Ph=h));g=0;for(k=t.axes.length;g<k;g++)n=t.axes[g],h=m(g,!0,n),ja(h)?0<=h&&20>h&&(t.yb[h]=100*n):(t.yb[h[0]]=0,t.yb[h[1]]=0,0>=n?t.yb[h[0]]=Math.abs(100*n):t.yb[h[1]]=Math.abs(100*n));this.Zd.push(t)}}}};u.Pa=function(){return{lastButton:this.Ph}};u.Va=function(a){this.Ph=a.lastButton};g.prototype.Gz=function(){return!0};
g.prototype.Hz=function(){return!0};g.prototype.Dt=function(a,b){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var c=this.Zd[a];if(!c.yb)return!1;if(c=50<=c.yb[b])this.Ph=b;return c};g.prototype.yz=function(a,b){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var c=this.Zd[a];if(!c.yb)return!1;if(c=50<=c.yb[b]&&50>c.Ci[b])this.Ph=b;return c};g.prototype.zz=function(a,b){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var c=this.Zd[a];if(!c.yb)return!1;if(c=50>c.yb[b]&&50<=c.Ci[b])this.Ph=
b;return c};g.prototype.my=function(a,b,c,d){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.Zd.length)return!1;a=this.Zd[a];if(!a.yb)return!1;var e=a.yb[b+16],f=0,f=0===b%2?a.yb[b+16+1]:a.yb[b+16-1];Math.sqrt(e*e+f*f)<=this.OB&&(e=0);return dc(e,c,d)};g.prototype.wz=function(a){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;a=this.Zd[a];if(!a.yb)return!1;var b,c;b=0;for(c=a.yb.length;b<c;b++)if(50<=a.yb[b]&&50>a.Ci[b])return this.Ph=b,!0;return!1};m.k=new g;m.q=new function(){};m.B=new function(){}})();
function Kc(l){this.b=l}
(function(){function l(){}function h(){}var f=Kc.prototype;f.M=function(f,e){this.behavior=f;this.yc=e;this.b=f.b};f.M.prototype.H=function(){};f.J=function(f,e){this.type=f;this.behavior=f.behavior;this.j=e;this.b=f.b};var g=f.J.prototype;g.H=function(){var f=this.A[0];this.Ia=this.A[1];this.Nb=this.A[2];this.CB=0!==this.A[3];this.Js=0!==this.A[4];this.D=Math.cos(this.j.u)*f;this.F=Math.sin(this.j.u)*f;this.Xh=this.j.x;this.Yh=this.j.y;this.Rd=this.j.u;this.Gl=0;this.enabled=0!==this.A[5]};g.Pa=
function(){return{acc:this.Ia,g:this.Nb,dx:this.D,dy:this.F,lx:this.Xh,ly:this.Yh,lka:this.Rd,t:this.Gl,e:this.enabled}};g.Va=function(f){this.Ia=f.acc;this.Nb=f.g;this.D=f.dx;this.F=f.dy;this.Xh=f.lx;this.Yh=f.ly;this.Rd=f.lka;this.Gl=f.t;this.enabled=f.e};g.ta=function(){if(this.enabled){var f=this.b.le(this.j),e,c;this.j.u!==this.Rd&&(this.Js&&(e=Sa(0,0,this.D,this.F),this.D=Math.cos(this.j.u)*e,this.F=Math.sin(this.j.u)*e),this.Rd=this.j.u);0!==this.Ia&&(e=Sa(0,0,this.D,this.F),c=0===this.D&&
0===this.F?this.j.u:Ma(0,0,this.D,this.F),e+=this.Ia*f,0>e&&(e=0),this.D=Math.cos(c)*e,this.F=Math.sin(c)*e);0!==this.Nb&&(this.F+=this.Nb*f);this.Xh=this.j.x;this.Yh=this.j.y;if(0!==this.D||0!==this.F)if(this.j.x+=this.D*f,this.j.y+=this.F*f,this.Gl+=Sa(0,0,this.D*f,this.F*f),this.Js&&(this.j.u=Ma(0,0,this.D,this.F),this.j.K(),this.Rd=this.j.u),this.j.K(),this.CB&&(e=this.b.gb(this.j)))this.b.wf(this.j,e),e=Sa(0,0,this.D,this.F),c=this.b.GB(this.j,this.Xh,this.Yh),this.D=Math.cos(c)*e,this.F=Math.sin(c)*
e,this.j.x+=this.D*f,this.j.y+=this.F*f,this.j.K(),this.Js&&(this.Rd=this.j.u=c,this.j.K()),this.b.Td(this.j,this.D/e,this.F/e,Math.max(2.5*e*f,30))||this.b.xs(this.j,100)}};f.k=new function(){};l.prototype.gu=function(f){var e=Ma(0,0,this.D,this.F);this.D=Math.cos(e)*f;this.F=Math.sin(e)*f};l.prototype.Jp=function(f){this.Ia=f};l.prototype.em=function(f){this.Nb=f};l.prototype.qA=function(f){f=M(f);var e=Sa(0,0,this.D,this.F);this.D=Math.cos(f)*e;this.F=Math.sin(f)*e};l.prototype.rh=function(f){this.enabled=
1===f};f.q=new l;h.prototype.By=function(f){f.L(this.Gl)};f.B=new h})();function Lc(l){this.b=l}
(function(){function l(){}function h(){}function f(){}var g=Lc.prototype;g.M=function(e,c){this.behavior=e;this.yc=c;this.b=e.b};g.M.prototype.H=function(){};g.J=function(e,c){this.type=e;this.behavior=e.behavior;this.j=c;this.b=e.b;this.sg=this.rg=this.Qo=this.Ro=this.Ih=this.Te=this.Pe=this.lk=this.Hl=!1;this.Hr=this.Gr=this.Fr=this.Jr=-1;this.F=this.D=0};var m=g.J.prototype;m.H=function(){this.hc=this.A[0];this.Ia=this.A[1];this.pb=this.A[2];this.yq=this.A[3];this.cq=this.A[4];this.wq=1===this.A[5];
this.enabled=0!==this.A[6];this.wq&&!this.b.ua&&(jQuery(document).keydown(function(e){return function(c){e.el(c)}}(this)),jQuery(document).keyup(function(e){return function(c){e.fl(c)}}(this)))};m.Pa=function(){return{dx:this.D,dy:this.F,enabled:this.enabled,maxspeed:this.hc,acc:this.Ia,dec:this.pb,ignoreInput:this.Ih}};m.Va=function(e){this.D=e.dx;this.F=e.dy;this.enabled=e.enabled;this.hc=e.maxspeed;this.Ia=e.acc;this.pb=e.dec;this.Ih=e.ignoreInput;this.sg=this.rg=this.Qo=this.Ro=this.Te=this.Pe=
this.lk=this.Hl=!1;this.Hr=this.Gr=this.Fr=this.Jr=-1};m.el=function(e){var c=this.b.Vd;switch(e.which){case 37:e.preventDefault();this.Gr<c&&(this.Pe=!0);break;case 38:e.preventDefault();this.Jr<c&&(this.Hl=!0);break;case 39:e.preventDefault();this.Hr<c&&(this.Te=!0);break;case 40:e.preventDefault(),this.Fr<c&&(this.lk=!0)}};m.fl=function(e){var c=this.b.Vd;switch(e.which){case 37:e.preventDefault();this.Pe=!1;this.Gr=c;break;case 38:e.preventDefault();this.Hl=!1;this.Jr=c;break;case 39:e.preventDefault();
this.Te=!1;this.Hr=c;break;case 40:e.preventDefault(),this.lk=!1,this.Fr=c}};m.fh=function(){this.Te=this.Pe=this.lk=this.Hl=!1};m.ta=function(){var e=this.b.le(this.j),c=this.Pe||this.rg,b=this.Te||this.sg,f=this.Hl||this.Ro,d=this.lk||this.Qo;this.Qo=this.Ro=this.sg=this.rg=!1;if(this.enabled){var a=this.b.gb(this.j);if(a&&(this.b.wf(this.j,a),!this.b.xs(this.j)))return;this.Ih&&(d=f=b=c=!1);0===this.yq?b=c=!1:1===this.yq&&(d=f=!1);2===this.yq&&(f||d)&&(b=c=!1);c==b&&(0>this.D?(this.D+=this.pb*
e,0<this.D&&(this.D=0)):0<this.D&&(this.D-=this.pb*e,0>this.D&&(this.D=0)));f==d&&(0>this.F?(this.F+=this.pb*e,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.pb*e,0>this.F&&(this.F=0)));c&&!b&&(this.D=0<this.D?this.D-(this.Ia+this.pb)*e:this.D-this.Ia*e);b&&!c&&(this.D=0>this.D?this.D+(this.Ia+this.pb)*e:this.D+this.Ia*e);f&&!d&&(this.F=0<this.F?this.F-(this.Ia+this.pb)*e:this.F-this.Ia*e);d&&!f&&(this.F=0>this.F?this.F+(this.Ia+this.pb)*e:this.F+this.Ia*e);if(0!==this.D||0!==this.F){Math.sqrt(this.D*
this.D+this.F*this.F)>this.hc&&(a=Math.atan2(this.F,this.D),this.D=this.hc*Math.cos(a),this.F=this.hc*Math.sin(a));b=this.j.x;f=this.j.y;c=this.j.u;this.j.x+=this.D*e;this.j.K();if(a=this.b.gb(this.j))this.j.x=b,this.D=0,this.j.K(),this.b.wf(this.j,a);this.j.y+=this.F*e;this.j.K();if(a=this.b.gb(this.j))this.j.y=f,this.F=0,this.j.K(),this.b.wf(this.j,a);e=hb(this.D);a=hb(this.F);if(0!==e||0!==a)1===this.cq?this.j.u=La(90*Math.round(Ga(Math.atan2(a,e))/90)):2===this.cq?this.j.u=La(45*Math.round(Ga(Math.atan2(a,
e))/45)):3===this.cq&&(this.j.u=Math.atan2(a,e));this.j.K();this.j.u!=c&&(a=this.b.gb(this.j))&&(this.j.u=c,this.j.K(),this.b.wf(this.j,a))}}};l.prototype.Et=function(){return 0!==this.D||0!==this.F};g.k=new l;h.prototype.gm=function(){this.F=this.D=0};h.prototype.Ip=function(){this.D*=-1;this.F*=-1};h.prototype.gu=function(e){0>e&&(e=0);e>this.hc&&(e=this.hc);var c=Math.atan2(this.F,this.D);this.D=e*Math.cos(c);this.F=e*Math.sin(c)};h.prototype.eu=function(e){this.hc=e;0>this.hc&&(this.hc=0)};h.prototype.Jp=
function(e){this.Ia=e;0>this.Ia&&(this.Ia=0)};h.prototype.cu=function(e){this.pb=e;0>this.pb&&(this.pb=0)};h.prototype.Tp=function(e){switch(e){case 0:this.rg=!0;break;case 1:this.sg=!0;break;case 2:this.Ro=!0;break;case 3:this.Qo=!0}};h.prototype.rh=function(e){this.enabled=1===e};h.prototype.hu=function(e){this.D=e};h.prototype.iu=function(e){this.F=e};g.q=new h;f.prototype.nu=function(e){e.L(this.D)};f.prototype.ou=function(e){e.L(this.F)};g.B=new f})();function Mc(l){this.b=l}
(function(){function l(){}function h(){}var f=Mc.prototype;f.M=function(f,e){this.behavior=f;this.yc=e;this.b=f.b};f.M.prototype.H=function(){};f.J=function(f,e){this.type=f;this.behavior=f.behavior;this.j=e;this.b=f.b};var g=f.J.prototype;g.H=function(){var f=1===this.A[0];this.Le=this.A[1];this.Be=this.A[2];this.Sf=this.A[3];this.jk=this.A[4];this.za=f?0:3;this.Vb?this.hb.reset():this.hb=new ab;this.Zc=this.j.opacity?this.j.opacity:1;f&&(0===this.Le?(this.za=1,0===this.Be&&(this.za=2)):(this.j.opacity=
0,this.b.V=!0))};g.Pa=function(){return{fit:this.Le,wt:this.Be,fot:this.Sf,s:this.za,st:this.hb.S,mo:this.Zc}};g.Va=function(f){this.Le=f.fit;this.Be=f.wt;this.Sf=f.fot;this.za=f.s;this.hb.reset();this.hb.S=f.st;this.Zc=f.mo};g.ta=function(){this.hb.add(this.b.le(this.j));0===this.za&&(this.j.opacity=this.hb.S/this.Le*this.Zc,this.b.V=!0,this.j.opacity>=this.Zc&&(this.j.opacity=this.Zc,this.za=1,this.hb.reset(),this.b.trigger(Mc.prototype.k.xp,this.j)));1===this.za&&this.hb.S>=this.Be&&(this.za=2,
this.hb.reset(),this.b.trigger(Mc.prototype.k.Hp,this.j));2===this.za&&0!==this.Sf&&(this.j.opacity=this.Zc-this.hb.S/this.Sf*this.Zc,this.b.V=!0,0>this.j.opacity&&(this.j.opacity=0,this.za=3,this.hb.reset(),this.b.trigger(Mc.prototype.k.yp,this.j),1===this.jk&&this.b.Hd(this.j)))};g.Aq=function(){this.za=0;this.hb.reset();0===this.Le?(this.za=1,0===this.Be&&(this.za=2)):(this.j.opacity=0,this.b.V=!0)};l.prototype.yp=function(){return!0};l.prototype.xp=function(){return!0};l.prototype.Hp=function(){return!0};
f.k=new l;h.prototype.Up=function(){3===this.za&&this.Aq()};f.q=new h;f.B=new function(){}})();function Nc(l){this.b=l}
(function(){function l(){}function h(){}var f=Nc.prototype;f.M=function(f,e){this.behavior=f;this.yc=e;this.b=f.b};f.M.prototype.H=function(){};f.J=function(f,e){this.type=f;this.behavior=f.behavior;this.j=e;this.b=f.b};var g=f.J.prototype;g.H=function(){this.ug=this.Af=this.za=this.Tn=this.Zn=0};g.Pa=function(){return{ontime:this.Zn,offtime:this.Tn,stage:this.za,stagetimeleft:this.Af,timeleft:this.ug}};g.Va=function(f){this.Zn=f.ontime;this.Tn=f.offtime;this.za=f.stage;this.Af=f.stagetimeleft;this.ug=
f.timeleft};g.ta=function(){if(!(0>=this.ug)){var f=this.b.le(this.j);this.ug-=f;0>=this.ug?(this.ug=0,this.j.visible=!0,this.b.V=!0,this.b.trigger(Nc.prototype.k.Fz,this.j)):(this.Af-=f,0>=this.Af&&(0===this.za?(this.j.visible=!1,this.za=1,this.Af+=this.Tn):(this.j.visible=!0,this.za=0,this.Af+=this.Zn),this.b.V=!0))}};l.prototype.Fz=function(){return!0};f.k=new l;h.prototype.Gy=function(f,e,c){this.Zn=f;this.Tn=e;this.za=1;this.Af=e;this.ug=c;this.j.visible=!1;this.b.V=!0};h.prototype.bB=function(){this.ug=
0;this.j.visible=!0;this.b.V=!0};f.q=new h;f.B=new function(){}})();function Oc(l){this.b=l}
(function(){function l(){}function h(){}var f=Oc.prototype;f.M=function(b,c){this.behavior=b;this.yc=c;this.b=b.b};var g=f.M.prototype;g.H=function(){this.ei=[]};g.XC=function(b){var c,a,e;c=0;for(a=b.ba.length;c<a;++c)if(e=b.ba[c],e instanceof Oc.prototype.J&&e.type===this)return e;return null};f.J=function(b,c){this.type=b;this.behavior=b.behavior;this.j=c;this.b=b.b};g=f.J.prototype;g.H=function(){this.lE=this.A[0];this.wo=this.A[1];this.pq=M(this.A[2]);this.Rx=0!==this.A[3]};g.md=function(){};
g.Pa=function(){var b={r:this.wo,c:this.pq,t:[]},c,a;c=0;for(a=this.type.ei.length;c<a;c++)b.t.push(this.type.ei[c].ya);return b};g.Va=function(b){this.wo=b.r;this.pq=b.c;J(this.type.ei);var c,a,e;c=0;for(a=b.t.length;c<a;c++)(e=this.b.rk(b.t[c]))&&this.type.ei.push(e)};g.ta=function(){};var m=[],e=new ua(0,0,0,0);g.LD=function(b,c){var a=this.j.x,f=this.j.y,g=this.j.u;0>this.j.width&&(g+=Math.PI);if(Sa(a,f,b,c)>this.wo||Na(g,Ma(a,f,b,c))>this.pq/2)return!1;var h,l;e.set(a,f,b,c);e.normalize();if(0===
this.lE)for(this.Rx?this.b.jv(this.j.C,e,m):(g=this.b.Qs)&&Ca(m,g.bl.ye()),g=0,h=m.length;g<h;++g){if(l=m[g],l.U.solidEnabled&&l!==this.j&&this.b.wx(a,f,b,c,l))return J(m),!1}else{if(this.Rx)this.b.Wq(this.j.C,this.type.ei,e,m);else for(g=0,h=this.type.ei.length;g<h;++g)Ca(m,this.type.ei[g].n);g=0;for(h=m.length;g<h;++g)if(l=m[g],l!==this.j&&this.b.wx(a,f,b,c,l))return J(m),!1}J(m);return!0};var c=new da,b=new da;l.prototype.My=function(e){if(!e)return!1;var d,a,f,g,m,h,l,u,p=this.yc.X();e=e.X();
var q=p.lc(),X=e.lc();p.aa&&J(p.Ba);e.aa&&J(e.Ba);var v=this.b.Qg().Mh;d=0;for(f=q.length;d<f;++d){m=q[d];u=!1;h=this.XC(m);a=0;for(g=X.length;a<g;++a)l=X[a],m!==l&&Ta(h.LD(l.x,l.y),v)&&(u=!0,b.add(l));u&&c.add(m)}d=c.ye();a=b.ye();p.aa=!1;e.aa=!1;Ba(p.n,d);Ba(e.n,a);c.clear();b.clear();return p.sn()};f.k=new l;h.prototype.LA=function(b){this.wo=b};f.q=new h;f.B=new function(){}})();function pc(l){this.b=l}
(function(){var l=pc.prototype;l.M=function(f,g){this.behavior=f;this.yc=g;this.b=f.b};l.M.prototype.H=function(){};l.J=function(f,g){this.type=f;this.behavior=f.behavior;this.j=g;this.b=f.b};var h=l.J.prototype;h.H=function(){};h.md=function(){};h.ta=function(){};l.k=new function(){};l.q=new function(){};l.B=new function(){}})();function qc(l){this.b=l}
(function(){var l=qc.prototype;l.M=function(f,g){this.behavior=f;this.yc=g;this.b=f.b};l.M.prototype.H=function(){};l.J=function(f,g){this.type=f;this.behavior=f.behavior;this.j=g;this.b=f.b};var h=l.J.prototype;h.H=function(){};h.md=function(){};h.ta=function(){};l.k=new function(){};l.q=new function(){};l.B=new function(){}})();function Pc(l){this.b=l}
(function(){function l(){}var h=Pc.prototype;h.M=function(f,m){this.behavior=f;this.yc=m;this.b=f.b};h.M.prototype.H=function(){};h.J=function(f,m){this.type=f;this.behavior=f.behavior;this.j=m;this.b=f.b};var f=h.J.prototype;f.H=function(){this.Tb=null;this.ko=-1;this.mode=this.Rd=this.bp=this.sj=this.jg=this.jl=0;var f=this;this.Vb||(this.al=function(m){f.dl(m)});this.b.jm(this.al)};f.Pa=function(){return{uid:this.Tb?this.Tb.uid:-1,pa:this.jl,pd:this.jg,msa:this.sj,tsa:this.bp,lka:this.Rd,m:this.mode}};
f.Va=function(f){this.ko=f.uid;this.jl=f.pa;this.jg=f.pd;this.sj=f.msa;this.bp=f.tsa;this.Rd=f.lka;this.mode=f.m};f.Ce=function(){-1===this.ko?this.Tb=null:this.Tb=this.b.Eh(this.ko);this.ko=-1};f.dl=function(f){this.Tb==f&&(this.Tb=null)};f.md=function(){this.Tb=null;this.b.Vw(this.al)};f.ta=function(){};f.Mj=function(){if(this.Tb){this.Rd!==this.j.u&&(this.sj=Ia(this.sj+(this.j.u-this.Rd)));var f=this.j.x,m=this.j.y;if(3===this.mode||4===this.mode){var e=Sa(this.j.x,this.j.y,this.Tb.x,this.Tb.y);
if(e>this.jg||4===this.mode&&e<this.jg)m=Ma(this.Tb.x,this.Tb.y,this.j.x,this.j.y),f=this.Tb.x+Math.cos(m)*this.jg,m=this.Tb.y+Math.sin(m)*this.jg}else f=this.Tb.x+Math.cos(this.Tb.u+this.jl)*this.jg,m=this.Tb.y+Math.sin(this.Tb.u+this.jl)*this.jg;this.Rd=e=Ia(this.sj+(this.Tb.u-this.bp));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===f&&this.j.y===m||(this.j.x=f,this.j.y=m,this.j.K());0!==this.mode&&2!==this.mode||this.j.u===e||(this.j.u=e,this.j.K())}};h.k=new function(){};
l.prototype.fA=function(f,m){if(f){var e=f.bv(this.j);e&&(this.Tb=e,this.jl=Ma(e.x,e.y,this.j.x,this.j.y)-e.u,this.jg=Sa(e.x,e.y,this.j.x,this.j.y),this.Rd=this.sj=this.j.u,this.bp=e.u,this.mode=m)}};l.prototype.lB=function(){this.Tb=null};h.q=new l;h.B=new function(){}})();function Qc(l){this.b=l}
(function(){function l(){}function h(){}function f(){}var g=Qc.prototype;g.M=function(e,c){this.behavior=e;this.yc=c;this.b=e.b};g.M.prototype.H=function(){};g.J=function(e,c){this.type=e;this.behavior=e.behavior;this.j=c;this.b=e.b;this.xl=this.sg=this.rg=this.Ih=this.ck=this.kk=this.ej=this.fj=this.Te=this.Pe=!1;this.Jc=null;this.Mr=-1;this.Rh=this.Qh=0;this.Zm=!1;this.Og=this.Ee=0;this.Xm=!0;this.F=this.D=0};var m=g.J.prototype;m.ht=function(){this.jb=Math.cos(this.Oi);this.kb=Math.sin(this.Oi);
this.kg=Math.cos(this.Oi-Math.PI/2);this.lg=Math.sin(this.Oi-Math.PI/2);this.jb=hb(this.jb);this.kb=hb(this.kb);this.kg=hb(this.kg);this.lg=hb(this.lg);this.dn=this.Nb;0>this.Nb&&(this.jb*=-1,this.kb*=-1,this.Nb=Math.abs(this.Nb))};m.H=function(){this.hc=this.A[0];this.Ia=this.A[1];this.pb=this.A[2];this.Wg=this.A[3];this.dn=this.Nb=this.A[4];this.bi=this.A[5];this.Dq=0!==this.A[6];this.Cr=this.A[7]/1E3;this.wq=1===this.A[8];this.enabled=0!==this.A[9];this.Uj=!1;this.Vj=this.b.Cf(this.j);this.Nr=
-1;this.ni=0;this.Oi=M(90);this.ht();var e=this;this.wq&&!this.b.ua&&(jQuery(document).keydown(function(c){e.el(c)}),jQuery(document).keyup(function(c){e.fl(c)}));this.Vb||(this.al=function(c){e.dl(c)});this.b.jm(this.al);this.j.U.isPlatformBehavior=!0};m.Pa=function(){return{ii:this.Ih,lfx:this.Qh,lfy:this.Rh,lfo:this.Jc?this.Jc.uid:-1,am:this.Ee,en:this.enabled,fall:this.Og,ft:this.Xm,dx:this.D,dy:this.F,ms:this.hc,acc:this.Ia,dec:this.pb,js:this.Wg,g:this.Nb,g1:this.dn,mf:this.bi,wof:this.Uj,woj:this.Vj?
this.Vj.uid:-1,ga:this.Oi,edj:this.Dq,cdj:this.ck,dj:this.kk,sus:this.Cr}};m.Va=function(e){this.Ih=e.ii;this.Qh=e.lfx;this.Rh=e.lfy;this.Mr=e.lfo;this.Ee=e.am;this.enabled=e.en;this.Og=e.fall;this.Xm=e.ft;this.D=e.dx;this.F=e.dy;this.hc=e.ms;this.Ia=e.acc;this.pb=e.dec;this.Wg=e.js;this.Nb=e.g;this.dn=e.g1;this.bi=e.mf;this.Uj=e.wof;this.Nr=e.woj;this.Oi=e.ga;this.Dq=e.edj;this.ck=e.cdj;this.kk=e.dj;this.Cr=e.sus;this.xl=this.sg=this.rg=this.ej=this.fj=this.Te=this.Pe=!1;this.ni=0;this.ht()};m.Ce=
function(){-1===this.Mr?this.Jc=null:this.Jc=this.b.Eh(this.Mr);-1===this.Nr?this.Vj=null:this.Vj=this.b.Eh(this.Nr)};m.dl=function(e){this.Jc==e&&(this.Jc=null)};m.md=function(){this.Jc=null;this.b.Vw(this.al)};m.el=function(e){switch(e.which){case 38:e.preventDefault();this.fj=!0;break;case 37:e.preventDefault();this.Pe=!0;break;case 39:e.preventDefault(),this.Te=!0}};m.fl=function(e){switch(e.which){case 38:e.preventDefault();this.ej=this.fj=!1;break;case 37:e.preventDefault();this.Pe=!1;break;
case 39:e.preventDefault(),this.Te=!1}};m.fh=function(){this.fj=this.Te=this.Pe=!1};m.bk=function(){return 0>this.Nb?-1:1};m.Bv=function(){var e=null,c=null,b,f;b=this.j.x;f=this.j.y;this.j.x+=this.jb;this.j.y+=this.kb;this.j.K();if(this.Jc&&this.b.Nc(this.j,this.Jc))return this.j.x=b,this.j.y=f,this.j.K(),this.Jc;(e=this.b.gb(this.j))||0!==this.Og||(c=this.b.Cf(this.j,!0));this.j.x=b;this.j.y=f;this.j.K();if(e){if(this.b.Nc(this.j,e))return null;this.Zm=!1;return e}if(c&&c.length){f=e=0;for(b=c.length;e<
b;e++)c[f]=c[e],this.b.Nc(this.j,c[e])||f++;if(1<=f)return this.Zm=!0,c[0]}return null};m.ta=function(){};m.Qw=function(){var e=this.b.le(this.j),c,b,f,d,a,g,m,h,l;this.fj||this.xl||(this.ej=!1);var w=this.Pe||this.rg;f=this.Te||this.sg;var u=(d=this.fj||this.xl)&&!this.ej;this.xl=this.sg=this.rg=!1;if(this.enabled){this.Ih&&(u=d=f=w=!1);d||(this.ni=0);h=this.Jc;l=!1;this.Xm&&((this.b.gb(this.j)||this.b.Cf(this.j))&&this.b.Td(this.j,-this.jb,-this.kb,4,!0),this.Xm=!1);!h||0!==this.F||h.y===this.Rh&&
h.x===this.Qh||(c=h.x-this.Qh,b=h.y-this.Rh,this.j.x+=c,this.j.y+=b,this.j.K(),this.Qh=h.x,this.Rh=h.y,l=!0,this.b.gb(this.j)&&this.b.Td(this.j,-c,-b,2.5*Math.sqrt(c*c+b*b)));var p=this.Bv();if(b=this.b.gb(this.j))if(this.j.U.inputPredicted)this.b.Td(this.j,-this.jb,-this.kb,10,!1);else if(this.b.xs(this.j,Math.max(this.j.width,this.j.height)/2))this.b.wf(this.j,b);else return;p?(this.ck=this.kk=!1,0<this.F&&(this.Uj||(this.b.ws(this.j,-this.jb,-this.kb,p),this.Uj=!0),this.F=0),h!=p)?(this.Jc=p,this.Qh=
p.x,this.Rh=p.y,this.b.wf(this.j,p)):l&&(b=this.b.gb(this.j))&&(this.b.wf(this.j,b),0!==c&&(0<c?this.b.Td(this.j,-this.kg,-this.lg):this.b.Td(this.j,this.kg,this.lg)),this.b.Td(this.j,-this.jb,-this.kb)):d||(this.ck=!0);if(p&&u||!p&&this.Dq&&d&&this.ck&&!this.kk)h=this.j.x,l=this.j.y,this.j.x-=this.jb,this.j.y-=this.kb,this.j.K(),this.b.gb(this.j)?u=!1:(this.ni=this.Cr,this.b.trigger(Qc.prototype.k.Nt,this.j),this.Ee=2,this.F=-this.Wg,u=!0,p?this.ej=!0:this.kk=!0),this.j.x=h,this.j.y=l,this.j.K();
p||(d&&0<this.ni?(this.F=-this.Wg,this.ni-=e):(this.Jc=null,this.F+=this.Nb*e,this.F>this.bi&&(this.F=this.bi)),u&&(this.ej=!0));this.Uj=!!p;w==f&&(0>this.D?(this.D+=this.pb*e,0<this.D&&(this.D=0)):0<this.D&&(this.D-=this.pb*e,0>this.D&&(this.D=0)));w&&!f&&(this.D=0<this.D?this.D-(this.Ia+this.pb)*e:this.D-this.Ia*e);f&&!w&&(this.D=0>this.D?this.D+(this.Ia+this.pb)*e:this.D+this.Ia*e);this.D>this.hc?this.D=this.hc:this.D<-this.hc&&(this.D=-this.hc);w=!1;0!==this.D&&(h=this.j.x,l=this.j.y,c=this.D*
e*this.kg,b=this.D*e*this.lg,this.j.x+=this.kg*(1<this.D?1:-1)-this.jb,this.j.y+=this.lg*(1<this.D?1:-1)-this.kb,this.j.K(),d=!1,a=this.b.gb(this.j),this.j.x=h+c,this.j.y=l+b,this.j.K(),f=this.b.gb(this.j),!f&&p&&(f=this.b.Cf(this.j))&&(this.j.x=h,this.j.y=l,this.j.K(),this.b.Nc(this.j,f)?(f=null,d=!1):d=!0,this.j.x=h+c,this.j.y=l+b,this.j.K()),f?(c=Math.abs(this.D*e)+2,a||!this.b.Td(this.j,-this.jb,-this.kb,c,d,f))?(this.b.wf(this.j,f),c=Math.max(Math.abs(this.D*e*2.5),30),this.b.Td(this.j,this.kg*
(0>this.D?1:-1),this.lg*(0>this.D?1:-1),c,!1)?!p||d||this.Zm||(h=this.j.x,l=this.j.y,this.j.x+=this.jb,this.j.y+=this.kb,this.b.gb(this.j)?this.b.Td(this.j,-this.jb,-this.kb,3,!1)||(this.j.x=h,this.j.y=l,this.j.K()):(this.j.x=h,this.j.y=l,this.j.K())):(this.j.x=h,this.j.y=l,this.j.K()),d||(this.D=0)):!a&&!u&&Math.abs(this.F)<Math.abs(this.Wg/4)&&(this.F=0,p||(w=!0)):(h=this.Bv(),p&&!h?(b=Math.ceil(Math.abs(this.D*e))+2,h=this.j.x,l=this.j.y,this.j.x+=this.jb*b,this.j.y+=this.kb*b,this.j.K(),this.b.gb(this.j)||
this.b.Cf(this.j)?this.b.Td(this.j,-this.jb,-this.kb,b+2,!0):(this.j.x=h,this.j.y=l,this.j.K())):h&&0===this.F&&this.b.ws(this.j,-this.jb,-this.kb,h)));if(0!==this.F){h=this.j.x;l=this.j.y;this.j.x+=this.F*e*this.jb;this.j.y+=this.F*e*this.kb;c=this.j.x;f=this.j.y;this.j.K();b=this.b.gb(this.j);d=!1;if(!b&&0<this.F&&!p){if((d=0<this.Og?null:this.b.Cf(this.j,!0))&&d.length){if(this.Vj){this.j.x=h;this.j.y=l;this.j.K();m=a=0;for(g=d.length;a<g;a++)d[m]=d[a],this.b.Nc(this.j,d[a])||m++;d.length=m;this.j.x=
c;this.j.y=f;this.j.K()}1<=d.length&&(b=d[0])}d=!!b}b&&(this.b.wf(this.j,b),this.ni=0,c=d?Math.abs(this.F*e*2.5+10):Math.max(Math.abs(this.F*e*2.5+10),30),this.b.Td(this.j,this.jb*(0>this.F?1:-1),this.kb*(0>this.F?1:-1),c,d,b)?(this.Jc=b,this.Qh=b.x,this.Rh=b.y,(this.Zm=d)&&(w=!0),this.F=0):(this.j.x=h,this.j.y=l,this.j.K(),this.Uj=!0,d||(this.F=0)))}3!==this.Ee&&0<this.F&&!p&&(this.b.trigger(Qc.prototype.k.Ez,this.j),this.Ee=3);if(p||w)3===this.Ee||w||u&&0===this.F?(this.b.trigger(Qc.prototype.k.Qt,
this.j),this.Ee=0===this.D&&0===this.F?0:1):(0!==this.Ee&&0===this.D&&0===this.F&&(this.b.trigger(Qc.prototype.k.Zt,this.j),this.Ee=0),1===this.Ee||0===this.D&&0===this.F||u||(this.b.trigger(Qc.prototype.k.Qz,this.j),this.Ee=1));0<this.Og&&this.Og--;this.Vj=this.b.Cf(this.j)}};l.prototype.Et=function(){return 0!==this.D||0!==this.F};l.prototype.az=function(){if(0!==this.F)return!1;var e=null,c=null,b,f;b=this.j.x;f=this.j.y;this.j.x+=this.jb;this.j.y+=this.kb;this.j.K();(e=this.b.gb(this.j))||0!==
this.Og||(c=this.b.Cf(this.j,!0));this.j.x=b;this.j.y=f;this.j.K();if(e)return!this.b.Nc(this.j,e);if(c&&c.length){f=e=0;for(b=c.length;e<b;e++)c[f]=c[e],this.b.Nc(this.j,c[e])||f++;if(1<=f)return!0}return!1};l.prototype.Ry=function(e){var c=!1,b=this.j.x,f=this.j.y;this.j.x-=3*this.jb;this.j.y-=3*this.kb;this.j.K();if(this.b.gb(this.j))return this.j.x=b,this.j.y=f,this.j.K(),!1;0===e?(this.j.x-=2*this.kg,this.j.y-=2*this.lg):(this.j.x+=2*this.kg,this.j.y+=2*this.lg);this.j.K();c=this.b.gb(this.j);
this.j.x=b;this.j.y=f;this.j.K();return c};l.prototype.Wy=function(){return 0>this.F};l.prototype.Uy=function(){return 0<this.F};l.prototype.Nt=function(){return!0};l.prototype.Ez=function(){return!0};l.prototype.Zt=function(){return!0};l.prototype.Qz=function(){return!0};l.prototype.Qt=function(){return!0};g.k=new l;h.prototype.eu=function(e){this.hc=e;0>this.hc&&(this.hc=0)};h.prototype.Jp=function(e){this.Ia=e;0>this.Ia&&(this.Ia=0)};h.prototype.cu=function(e){this.pb=e;0>this.pb&&(this.pb=0)};
h.prototype.BA=function(e){this.Wg=e;0>this.Wg&&(this.Wg=0)};h.prototype.em=function(e){this.dn!==e&&(this.Nb=e,this.ht(),this.b.gb(this.j)&&(this.b.Td(this.j,this.jb,this.kb,10),this.j.x+=2*this.jb,this.j.y+=2*this.kb,this.j.K()),this.Jc=null)};h.prototype.EA=function(e){this.bi=e;0>this.bi&&(this.bi=0)};h.prototype.Tp=function(e){switch(e){case 0:this.rg=!0;break;case 1:this.sg=!0;break;case 2:this.xl=!0}};h.prototype.hu=function(e){this.D=e};h.prototype.iu=function(e){this.F=e};h.prototype.rh=
function(e){this.enabled!==(1===e)&&(this.enabled=1===e,this.enabled||(this.Jc=null))};h.prototype.Fy=function(){var e=this.j.x,c=this.j.y;this.j.x+=this.jb;this.j.y+=this.kb;this.j.K();var b=this.b.Cf(this.j,!1);this.j.x=e;this.j.y=c;this.j.K();b&&(this.Og=3,this.Jc=null)};g.q=new h;f.prototype.nu=function(e){e.L(this.D)};f.prototype.ou=function(e){e.L(this.F)};g.B=new f})();function Rc(l){this.b=l}
(function(){function l(){}function h(){}function f(){}var g=Rc.prototype;g.M=function(b,c){this.behavior=b;this.yc=c;this.b=b.b};g.M.prototype.H=function(){};g.J=function(b,c){this.type=b;this.behavior=b.behavior;this.j=c;this.b=b.b;this.qb=0};var m=g.J.prototype,e=2*Math.PI,c=Math.PI/2,b=3*Math.PI/2;m.H=function(){this.Ya=1===this.A[0];this.qj=this.A[1];this.tt=this.A[2];this.ig=this.A[3];this.ig+=Math.random()*this.A[4];0===this.ig?this.qb=0:(this.qb=this.A[5]/this.ig*e,this.qb+=Math.random()*this.A[6]/
this.ig*e);this.Yc=this.A[7];this.Yc+=Math.random()*this.A[8];this.ol=this.Kh=this.Ca=0;this.init()};m.Pa=function(){return{i:this.qb,a:this.Ya,mv:this.qj,w:this.tt,p:this.ig,mag:this.Yc,iv:this.Ca,iv2:this.Kh,r:this.ol,lkv:this.Ta,lkv2:this.Wc}};m.Va=function(b){this.qb=b.i;this.Ya=b.a;this.qj=b.mv;this.tt=b.w;this.ig=b.p;this.Yc=b.mag;this.Ca=b.iv;this.Kh=b.iv2||0;this.ol=b.r;this.Ta=b.lkv;this.Wc=b.lkv2||0};m.init=function(){switch(this.qj){case 0:this.Ca=this.j.x;break;case 1:this.Ca=this.j.y;
break;case 2:this.Ca=this.j.width;this.ol=this.j.height/this.j.width;break;case 3:this.Ca=this.j.width;break;case 4:this.Ca=this.j.height;break;case 5:this.Ca=this.j.u;this.Yc=M(this.Yc);break;case 6:this.Ca=this.j.opacity;break;case 7:this.Ca=0;break;case 8:this.Ca=this.j.x,this.Kh=this.j.y}this.Ta=this.Ca;this.Wc=this.Kh};m.Hf=function(f){f=f%e;switch(this.tt){case 0:return Math.sin(f);case 1:return f<=c?f/c:f<=b?1-2*(f-c)/Math.PI:(f-b)/c-1;case 2:return 2*f/e-1;case 3:return-2*f/e+1;case 4:return f<
Math.PI?-1:1}return 0};m.ta=function(){var b=this.b.le(this.j);if(this.Ya&&0!==b){0===this.ig?this.qb=0:(this.qb+=b/this.ig*e,this.qb=this.qb%e);switch(this.qj){case 0:this.j.x!==this.Ta&&(this.Ca+=this.j.x-this.Ta);this.j.x=this.Ca+this.Hf(this.qb)*this.Yc;this.Ta=this.j.x;break;case 1:this.j.y!==this.Ta&&(this.Ca+=this.j.y-this.Ta);this.j.y=this.Ca+this.Hf(this.qb)*this.Yc;this.Ta=this.j.y;break;case 2:this.j.width=this.Ca+this.Hf(this.qb)*this.Yc;this.j.height=this.j.width*this.ol;break;case 3:this.j.width=
this.Ca+this.Hf(this.qb)*this.Yc;break;case 4:this.j.height=this.Ca+this.Hf(this.qb)*this.Yc;break;case 5:this.j.u!==this.Ta&&(this.Ca=Ia(this.Ca+(this.j.u-this.Ta)));this.j.u=Ia(this.Ca+this.Hf(this.qb)*this.Yc);this.Ta=this.j.u;break;case 6:this.j.opacity=this.Ca+this.Hf(this.qb)*this.Yc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.Ta&&(this.Ca+=this.j.x-this.Ta),this.j.y!==this.Wc&&(this.Kh+=this.j.y-this.Wc),this.j.x=this.Ca+Math.cos(this.j.u)*
this.Hf(this.qb)*this.Yc,this.j.y=this.Kh+Math.sin(this.j.u)*this.Hf(this.qb)*this.Yc,this.Ta=this.j.x,this.Wc=this.j.y}this.j.K()}};m.Aw=function(b,c){switch(this.qj){case 2:this.Ca*=c.width/b.width;this.ol=c.height/c.width;break;case 3:this.Ca*=c.width/b.width;break;case 4:this.Ca*=c.height/b.height}};l.prototype.Qy=function(){return this.Ya};l.prototype.qy=function(b){return this.qj===b};g.k=new l;h.prototype.pA=function(b){this.Ya=1===b};h.prototype.JA=function(b){this.qb=b*e%e};g.q=new h;f.prototype.mB=
function(b){b.L(this.Hf(this.qb)*this.Yc)};g.B=new f})();function Sc(l){this.b=l}
(function(){function l(){}function h(){}function f(){}var g=Sc.prototype;g.M=function(e,c){this.behavior=e;this.yc=c;this.b=e.b};g.M.prototype.H=function(){};g.J=function(e,c){this.type=e;this.behavior=e.behavior;this.j=c;this.b=e.b};var m=g.J.prototype;m.H=function(){this.ic={}};m.md=function(){Wa(this.ic)};m.Pa=function(){var e={},c,b;for(c in this.ic)this.ic.hasOwnProperty(c)&&(b=this.ic[c],e[c]={c:b.current.S,t:b.total.S,d:b.duration,r:b.As});return e};m.Va=function(e){this.ic={};for(var c in e)e.hasOwnProperty(c)&&
(this.ic[c]={current:new ab,total:new ab,duration:e[c].d,As:e[c].r},this.ic[c].current.S=e[c].c,this.ic[c].total.S=e[c].t)};m.ta=function(){var e=this.b.le(this.j),c,b;for(c in this.ic)this.ic.hasOwnProperty(c)&&(b=this.ic[c],b.current.add(e),b.total.add(e))};m.Mj=function(){var e,c;for(e in this.ic)this.ic.hasOwnProperty(e)&&(c=this.ic[e],c.current.S>=c.duration&&(c.As?c.current.S-=c.duration:delete this.ic[e]))};l.prototype.bA=function(e){e=e.toLowerCase();return(e=this.ic[e])?e.current.S>=e.duration:
!1};g.k=new l;h.prototype.ju=function(e,c,b){this.ic[b.toLowerCase()]={current:new ab,total:new ab,duration:e,As:1===c}};h.prototype.cB=function(e){e=e.toLowerCase();this.ic.hasOwnProperty(e)&&delete this.ic[e]};g.q=new h;f.prototype.zt=function(e,c){var b=this.ic[c.toLowerCase()];e.L(b?b.duration:0)};g.B=new f})();function Tc(l){this.b=l}
(function(){var l=Tc.prototype;l.M=function(h,f){this.behavior=h;this.yc=f;this.b=h.b};l.M.prototype.H=function(){};l.J=function(h,f){this.type=h;this.behavior=h.behavior;this.j=f;this.b=h.b};l=l.J.prototype;l.H=function(){};l.ta=function(){this.j.Fa();var h=this.j.Ua,f=this.j.C.Db;(0>h.right||0>h.bottom||h.left>f.width||h.top>f.height)&&this.b.Hd(this.j)}})();function oc(l){this.b=l}
(function(){function l(){}var h=oc.prototype;h.M=function(f,h){this.behavior=f;this.yc=h;this.b=f.b};h.M.prototype.H=function(){};h.J=function(f,h){this.type=f;this.behavior=f.behavior;this.j=h;this.b=f.b};var f=h.J.prototype;f.H=function(){this.j.U.jumpthruEnabled=0!==this.A[0]};f.ta=function(){};h.k=new function(){};l.prototype.rh=function(f){this.j.U.jumpthruEnabled=!!f};h.q=new l})();var Uc=[],Vc=[],Wc=[],Xc=[],Yc=[],Zc=[],$c=[],ad=[],bd=[];function dd(l,h){return Math.round(1E4*l/h)}
function hd(l,h,f){switch(l){case 0:return 1*h/f+0;case 1:return 1*(h/=f)*h+0;case 2:return-1*(h/=f)*(h-2)+0;case 3:return 1>(h/=f/2)?.5*h*h+0:-.5*(--h*(h-2)-1)+0;case 4:return 1*(h/=f)*h*h+0;case 5:return 1*((h=h/f-1)*h*h+1)+0;case 6:return 1>(h/=f/2)?.5*h*h*h+0:.5*((h-=2)*h*h+2)+0;case 7:return 1*(h/=f)*h*h*h+0;case 8:return-1*((h=h/f-1)*h*h*h-1)+0;case 9:return 1>(h/=f/2)?.5*h*h*h*h+0:-.5*((h-=2)*h*h*h-2)+0;case 10:return 1*(h/=f)*h*h*h*h+0;case 11:return 1*((h=h/f-1)*h*h*h*h+1)+0;case 12:return 1>
(h/=f/2)?.5*h*h*h*h*h+0:.5*((h-=2)*h*h*h*h+2)+0;case 13:return Yc[dd(h,f)];case 14:return Zc[dd(h,f)];case 15:return $c[dd(h,f)];case 16:return l=0,0==l&&(l=1.70158),1*(h/=f)*h*((l+1)*h-l)+0;case 17:return ad[dd(h,f)];case 18:return bd[dd(h,f)];case 19:return Vc[dd(h,f)];case 20:return Wc[dd(h,f)];case 21:return Xc[dd(h,f)];case 22:return 1-Uc[dd(f-h,f)]+0;case 23:return Uc[dd(h,f)];case 24:return h<f/2?.5*(1-Uc[dd(f-2*h,f)]+0)+0:.5*Uc[dd(2*h-f,f)]+.5;case 25:return h=h/f/2,2*h*h*(3-2*h);case 26:return h=
(h/f+1)/2,2*h*h*(3-2*h)-1;case 27:return h=h/f,h*h*(3-2*h)}return 0}
for(var id=0,jd=0,kd=0,Y=0,ld=0,md=0;1E4>=md;md++){Y=md/1E4;(Y/=1)<1/2.75||(Y<2/2.75?Y-=1.5/2.75:Y<2.5/2.75?Y-=2.25/2.75:Y-=2.625/2.75);var nd,od=md/1E4;nd=(od/=1)<1/2.75?7.5625*od*od+0:od<2/2.75?1*(7.5625*(od-=1.5/2.75)*od+.75)+0:od<2.5/2.75?1*(7.5625*(od-=2.25/2.75)*od+.9375)+0:1*(7.5625*(od-=2.625/2.75)*od+.984375)+0;Uc[md]=nd;Y=md/1E4;kd=jd=0;Y/=1;0==kd&&(kd=.3);0==jd||jd<Math.abs(1)?(jd=1,ld=kd/4):ld=kd/(2*Math.PI)*Math.asin(1/jd);id=-(jd*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-ld)*Math.PI/kd))+0;
Vc[md]=id;Y=md/1E4;kd=jd=0;Y/=1;0==kd&&(kd=.3);0==jd||jd<Math.abs(1)?(jd=1,ld=kd/4):ld=kd/(2*Math.PI)*Math.asin(1/jd);id=jd*Math.pow(2,-10*Y)*Math.sin(2*(1*Y-ld)*Math.PI/kd)+1;Wc[md]=id;Y=md/1E4;kd=jd=0;Y/=.5;0==kd&&(kd=.3*1.5);0==jd||jd<Math.abs(1)?(jd=1,ld=kd/4):ld=kd/(2*Math.PI)*Math.asin(1/jd);id=1>Y?-.5*jd*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-ld)*Math.PI/kd)+0:jd*Math.pow(2,-10*--Y)*Math.sin(2*(1*Y-ld)*Math.PI/kd)*.5+1;Xc[md]=id;Y=md/1E4;Yc[md]=-(Math.sqrt(1-Y*Y)-1);Y=md/1E4;Zc[md]=Math.sqrt(1-
(Y-1)*(Y-1));Y=md/1E4;id=1>(Y/=.5)?-.5*(Math.sqrt(1-Y*Y)-1)+0:.5*(Math.sqrt(1-(Y-=2)*Y)+1)+0;$c[md]=id;Y=md/1E4;ld=0;0==ld&&(ld=1.70158);id=1*((Y=Y/1-1)*Y*((ld+1)*Y+ld)+1)+0;ad[md]=id;Y=md/1E4;ld=0;0==ld&&(ld=1.70158);1>(Y/=.5)&&(ld*=1.525);id=.5*((Y-=2)*Y*(((ld*=1.525)+1)*Y+ld)+2)+0;bd[md]=id}function pd(l,h,f,g,m,e,c){this.name=l;this.value=0;this.Jo(g);this.Ls(m);this.Bq=f;this.xd=h;this.duration=e;this.state=this.La=0;this.Wn=this.Xn=this.Un=this.Yn=!1;this.Wc=this.Ta=0;this.Ke=c}
pd.prototype={};pd.prototype.Jo=function(l){this.nb=parseFloat(l.split(",")[0]);this.me=parseFloat(l.split(",")[1]);this.Wc=this.Ta=0};pd.prototype.Ls=function(l){this.$a=parseFloat(l.split(",")[0]);this.Mc=parseFloat(l.split(",")[1]);isNaN(this.Mc)&&(this.Mc=this.$a)};
pd.prototype.Dp=function(l){if(0===this.state)return-1;1===this.state&&(this.La+=l);2===this.state&&(this.La-=l);3===this.state&&(this.state=0);return 0>this.La?(this.state=this.La=0,this.Wn=!0,0):this.La>this.duration?(this.state=0,this.La=this.duration,this.Un=!0,1):hd(this.Bq,this.La,this.duration)};function qd(l){this.b=l}
(function(){var l=qd.prototype;l.M=function(f,g){this.behavior=f;this.yc=g;this.b=f.b};l.M.prototype.H=function(){};l.J=function(f,g){this.type=f;this.behavior=f.behavior;this.j=g;this.b=f.b;this.qb=0};var h=l.J.prototype;h.H=function(){this.Ya=1===this.A[0];this.xd=this.A[1];this.oC=this.A[2];this.target=this.A[3];this.ux=this.A[4];1===this.ux&&(this.target="relative("+this.target+")");this.duration=this.A[5];this.Ke=1===this.A[6];this.j.value=0;this.ja={};this.wu(this.xd,this.oC,"current",this.target,
this.duration,this.Ke);this.Ya&&this.qx(0)};h.gi=function(f,g){void 0===g&&(g="current");var h=g.replace(/^\s\s*/,"").replace(/\s\s*$/,"");g=g.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if("current"===g)switch(f){case 0:h=this.j.x+","+this.j.y;break;case 1:h=this.j.width+","+this.j.height;break;case 2:h=this.j.width+","+this.j.height;break;case 3:h=this.j.width+","+this.j.height;break;case 4:h=Ga(this.j.u)+","+Ga(this.j.u);break;case 5:h=100*this.j.opacity+","+100*this.j.opacity;break;case 6:h=this.j.value+
","+this.j.value}if("relative"===g.substring(0,8)){var e=g.match(/\((.*?)\)/);if(e)var c=parseFloat(e[1].split(",")[0]),b=parseFloat(e[1].split(",")[1]);isNaN(c)&&(c=0);isNaN(b)&&(b=0);switch(f){case 0:h=this.j.x+c+","+(this.j.y+b);break;case 1:h=this.j.width+c+","+(this.j.height+b);break;case 2:h=this.j.width+c+","+(this.j.height+b);break;case 3:h=this.j.width+c+","+(this.j.height+b);break;case 4:h=Ga(this.j.u)+c+","+(Ga(this.j.u)+b);break;case 5:h=100*this.j.opacity+c+","+(100*this.j.opacity+b);
break;case 6:h=this.j.value+c+","+this.j.value+c}}return h};h.wu=function(f,g,h,e,c,b){h=this.gi(f,h);e=this.gi(f,e);void 0!==this.ja["default"]&&delete this.ja["default"];this.ja["default"]=new pd("default",f,g,h,e,c,b)};h.Pa=function(){};h.Va=function(){};h.YE=function(f){1<f&&(f=1);0>f&&(f=0);for(var g in this.ja){var h=this.ja[g];h.Ta=0;h.Wc=0;h.state=3;h.La=f*h.duration;var e=h.Dp(0);this.kt(h,e)}};h.qx=function(f){for(var g in this.ja){var h=this.ja[g];0===f&&(h.La=1E-6,h.Ta=0,h.Wc=0,h.Yn=!0);
h.state=1}};h.dF=function(f){for(var g in this.ja){var h=this.ja[g];1===f&&(h.La=0);2===f&&(h.La=h.duration);h.state=3;var e=h.Dp(0);this.kt(h,e)}};h.ME=function(f){for(var g in this.ja){var h=this.ja[g];1===f&&(h.La=h.duration,h.Ta=0,h.Wc=0,h.Xn=!0);h.state=2}};h.kt=function(f,g){if(0===f.xd)f.Ke?(this.j.x=f.nb+(f.$a-f.nb)*g,this.j.y=f.me+(f.Mc-f.me)*g):(this.j.x+=(f.$a-f.nb)*g-f.Ta,this.j.y+=(f.Mc-f.me)*g-f.Wc,f.Ta=(f.$a-f.nb)*g,f.Wc=(f.Mc-f.me)*g);else if(1===f.xd)f.Ke?(this.j.width=f.nb+(f.$a-
f.nb)*g,this.j.height=f.me+(f.Mc-f.me)*g):(this.j.width+=(f.$a-f.nb)*g-f.Ta,this.j.height+=(f.Mc-f.me)*g-f.Wc,f.Ta=(f.$a-f.nb)*g,f.Wc=(f.Mc-f.me)*g);else if(2===f.xd)f.Ke?this.j.width=f.nb+(f.$a-f.nb)*g:(this.j.width+=(f.$a-f.nb)*g-f.Ta,f.Ta=(f.$a-f.nb)*g);else if(3===f.xd)f.Ke?this.j.height=f.me+(f.Mc-f.me)*g:(this.j.height+=(f.Mc-f.me)*g-f.Wc,f.Wc=(f.Mc-f.me)*g);else if(4===f.xd)if(f.Ke){var h=f.nb+(f.$a-f.nb)*g;this.j.u=Ia(M(h))}else h=(f.$a-f.nb)*g-f.Ta,this.j.u=Ia(M(this.j.u+h)),f.Ta=(f.$a-f.nb)*
g;else 5===f.xd?f.Ke?this.j.opacity=(f.nb+(f.$a-f.nb)*g)/100:(this.j.opacity+=((f.$a-f.nb)*g-f.Ta)/100,f.Ta=(f.$a-f.nb)*g):6===f.xd&&(f.Ke?this.j.value=f.nb+(f.$a-f.nb)*g:(this.j.value+=(f.$a-f.nb)*g-f.Ta,f.Ta=(f.$a-f.nb)*g))};h.ta=function(){var f=this.b.le(this.j),g=this.ja["default"];0!==g.state&&(g.Yn&&(this.b.trigger(qd.prototype.k.Zz,this.j),g.Yn=!1),g.Xn&&(this.b.trigger(qd.prototype.k.Xz,this.j),g.Xn=!1),f=g.Dp(f),this.kt(g,f),this.j.K(),g.Un&&(this.b.trigger(qd.prototype.k.Mt,this.j),g.Un=
!1),g.Wn&&(this.b.trigger(qd.prototype.k.Yt,this.j),g.Wn=!1))};l.k={};h=l.k;h.Qy=function(){return 0!==this.ja["default"].state};h.uy=function(f,g){var h=this.ja["default"];return dc(h.La/h.duration,f,g)};h.Zz=function(){return void 0===this.ja["default"]?!1:this.ja["default"].Yn};h.Xz=function(){return void 0===this.ja["default"]?!1:this.ja["default"].Xn};h.Mt=function(){return void 0===this.ja["default"]?!1:this.ja["default"].Un};h.Yt=function(){return void 0===this.ja["default"]?!1:this.ja["default"].Wn};
l.q={};h=l.q;h.$A=function(f){this.qx(f)};h.gm=function(f){this.dF(f)};h.Ip=function(f){this.ME(f)};h.NF=function(f){this.YE(f)};h.xA=function(f){isNaN(f)||0>f||void 0===this.ja["default"]||(this.ja["default"].duration=f)};h.UF=function(f){void 0!==this.ja["default"]&&(this.ja["default"].Ke=1===f)};h.VF=function(f){void 0!==this.ja["default"]&&(f=this.gi(this.ja["default"].xd,f),this.ja["default"].Jo(f))};h.QA=function(f,g,h){if(void 0!==this.ja["default"]&&!isNaN(h)){var e=h+"",c=this.ja["default"];
this.ux=g;if(1===g)switch(f){case 0:e=this.j.x+h+","+c.Mc;break;case 1:e=c.$a+","+(this.j.y+h);break;case 2:e=""+Ga(this.j.u+M(h));break;case 3:e=""+100*this.j.opacity+h;break;case 4:e=this.j.width+h+","+c.Mc;break;case 5:e=c.$a+","+(this.j.height+h);break;case 6:e=h+","+h}else switch(f){case 0:e=h+","+c.Mc;break;case 1:e=c.$a+","+h;break;case 2:e=h+","+h;break;case 3:e=h+","+h;break;case 4:e=h+","+c.Mc;break;case 5:e=c.$a+","+h;break;case 6:e=h+","+h}f=this.gi(this.ja["default"].xd,"current");e=
this.gi(this.ja["default"].xd,e);c.Jo(f);c.Ls(e)}};h.WF=function(f){void 0!==this.ja["default"]&&(this.ja["default"].xd=f)};h.SF=function(f){void 0!==this.ja["default"]&&(this.ja["default"].Bq=f)};h.XF=function(f){this.j.value=f};h.IA=function(f,g,h,e,c){if(void 0===this.ja["default"])this.wu(f,g,initial,h,e,c);else{var b=this.ja["default"];b.xd=f;b.Bq=g;b.Jo(this.gi(f,"current"));b.Ls(this.gi(f,h));b.duration=e;b.Ke=1===c}};l.B={};l=l.B;l.jA=function(f){f.L(this.ja["default"].La/this.ja["default"].duration)};
l.zt=function(f){f.L(this.ja["default"].duration)};l.YF=function(f){var g=this.ja["default"],h="N/A";switch(g.xd){case 0:h=g.$a;break;case 1:h=g.Mc;break;case 2:h=g.$a;break;case 3:h=g.$a;break;case 4:h=g.$a;break;case 5:h=g.Mc;break;case 6:h=g.$a}f.L(h)};l.mB=function(f){f.L(this.j.value)}})();function rd(l){this.b=l;this.Po=this.wl=this.ki=this.Oo=0}
(function(){function l(){}var h=rd.prototype;h.M=function(f,h){this.behavior=f;this.yc=h;this.b=f.b};h.M.prototype.H=function(){};h.J=function(f,h){this.type=f;this.behavior=f.behavior;this.j=h;this.b=f.b};var f=h.J.prototype;f.H=function(){this.enabled=0!==this.A[0]};f.Pa=function(){return{smg:this.behavior.Oo,ss:this.behavior.ki,se:this.behavior.wl,smd:this.behavior.Po}};f.Va=function(f){this.behavior.Oo=f.smg;this.behavior.ki=f.ss;this.behavior.wl=f.se;this.behavior.Po=f.smd};f.ta=function(){};
f.Mj=function(){if(this.enabled){var f=this.behavior.bl.ye(),h=0,e=0,c,b,l,d=0;c=0;for(b=f.length;c<b;c++){a:{l=f[c];for(var a=void 0,k=void 0,r=void 0,a=0,k=l.ba.length;a<k;++a)if(r=l.ba[a],r.behavior instanceof rd){l=r;break a}l=null}l&&l.enabled&&(h+=f[c].x,e+=f[c].y,++d)}f=this.j.C.Db;b=this.b.Ob.S;l=c=0;b>=this.behavior.ki&&b<this.behavior.wl&&(c=this.behavior.Oo*Math.min(this.b.oh,1),0===this.behavior.Po&&(c*=1-(b-this.behavior.ki)/(this.behavior.wl-this.behavior.ki)),b=Math.random()*Math.PI*
2,l=Math.random()*c,c=Math.cos(b)*l,l*=Math.sin(b));f.Hs(h/d+c);f.Is(e/d+l)}};l.prototype.VA=function(f,h,e){this.behavior.Oo=f;this.behavior.ki=this.b.Ob.S;this.behavior.wl=this.behavior.ki+h;this.behavior.Po=e};l.prototype.rh=function(f){this.enabled=0!==f};h.q=new l})();function sd(l){this.b=l}
(function(){function l(){}function h(){}function f(){}var g=sd.prototype;g.M=function(e,c){this.behavior=e;this.yc=c;this.b=e.b};g.M.prototype.H=function(){};g.J=function(e,c){this.type=e;this.behavior=e.behavior;this.j=c;this.b=e.b};var m=g.J.prototype;m.H=function(){var e=this.A[0];this.Le=this.A[1];this.Be=this.A[2];this.Sf=this.A[3];this.jk=this.A[4];this.za=e?0:3;this.Vb?this.hb.reset():this.hb=new ab;this.Zc=this.j.opacity?this.j.opacity:1;e&&(0===this.Le?(this.za=1,0===this.Be&&(this.za=2)):
(this.j.opacity=0,this.b.V=!0))};m.Pa=function(){return{fit:this.Le,wt:this.Be,fot:this.Sf,s:this.za,st:this.hb.S,mo:this.Zc}};m.Va=function(e){this.Le=e.fit;this.Be=e.wt;this.Sf=e.fot;this.za=e.s;this.hb.reset();this.hb.S=e.st;this.Zc=e.mo};m.ta=function(){this.hb.add(this.b.le(this.j));0===this.za&&(this.j.opacity=this.hb.S/this.Le*this.Zc,this.b.V=!0,this.j.opacity>=this.Zc&&(this.j.opacity=this.Zc,this.za=1,this.hb.reset(),this.b.trigger(sd.prototype.k.xp,this.j),1===this.jk&&this.b.Hd(this.j)));
1===this.za&&this.hb.S>=this.Be&&(this.za=2,this.hb.reset(),this.b.trigger(sd.prototype.k.Hp,this.j),2===this.jk&&this.b.Hd(this.j));2===this.za&&0!==this.Sf&&(this.j.opacity=this.Zc-this.hb.S/this.Sf*this.Zc,this.b.V=!0,0>this.j.opacity&&(this.j.opacity=0,this.za=3,this.hb.reset(),this.b.trigger(sd.prototype.k.yp,this.j),3===this.jk&&this.b.Hd(this.j)))};m.Aq=function(){this.za=0;this.hb.reset();this.Zc=this.j.opacity?this.j.opacity:1;0===this.Le?(this.za=1,0===this.Be&&(this.za=2)):(this.j.opacity=
0,this.b.V=!0)};l.prototype.xp=function(){return!0};l.prototype.Hp=function(){return!0};l.prototype.yp=function(){return!0};g.k=new l;h.prototype.Up=function(){3===this.za&&this.Aq()};g.q=new h;f.prototype.pu=function(e){e.L(this.Be)};g.B=new f})();function nc(l){this.b=l}
(function(){function l(){}var h=nc.prototype;h.M=function(f,h){this.behavior=f;this.yc=h;this.b=f.b};h.M.prototype.H=function(){};h.J=function(f,h){this.type=f;this.behavior=f.behavior;this.j=h;this.b=f.b};var f=h.J.prototype;f.H=function(){this.j.U.solidEnabled=0!==this.A[0]};f.ta=function(){};h.k=new function(){};l.prototype.rh=function(f){this.j.U.solidEnabled=!!f};h.q=new l})();function ud(l){this.b=l}
(function(){var l=ud.prototype;l.M=function(h,f){this.behavior=h;this.yc=f;this.b=h.b};l.M.prototype.H=function(){};l.J=function(h,f){this.type=h;this.behavior=h.behavior;this.j=f;this.b=h.b};l=l.J.prototype;l.H=function(){this.mode=this.A[0]};l.ta=function(){var h=this.j;h.Fa();var f=h.Ua,g=h.C,l=g.Db,e=0,c=0,b=0,t=0;0===this.mode?(c=l.width,t=l.height):(e=g.Ga,c=g.Ra,b=g.Ha,t=g.Qa);f.right<e?(h.x=c-1+(h.x-f.left),h.K()):f.left>c?(h.x=e+1-(f.right-h.x),h.K()):f.bottom<b?(h.y=t-1+(h.y-f.top),h.K()):
f.top>t&&(h.y=b+1-(f.bottom-h.y),h.K())}})();
function mc(){return[yc,Ic,sc,tc,uc,vc,rc,Jc,wc,xc,zc,Ac,W,Bc,Cc,Dc,Ec,Fc,Gc,Hc,Mc,pc,Pc,qd,Sc,qc,Rc,oc,Kc,Tc,ud,Qc,Oc,nc,Nc,sd,rd,Lc,wc.prototype.k.It,Jc.prototype.k.wz,Fc.prototype.k.Gp,Q.prototype.k.vy,Q.prototype.q.Jy,Bc.prototype.k.If,tc.prototype.q.Ft,Bc.prototype.q.vA,Q.prototype.k.Hy,tc.prototype.B.Wl,tc.prototype.B.fy,Q.prototype.B.eE,Q.prototype.k.Rt,sc.prototype.q.mA,Cc.prototype.q.Pp,Q.prototype.B.DE,Q.prototype.B.HE,Q.prototype.k.bz,Ic.prototype.q.hA,Ic.prototype.q.iA,rc.prototype.k.$l,
tc.prototype.k.ey,Q.prototype.q.Zx,tc.prototype.k.ny,rc.prototype.q.NA,W.prototype.k.If,rc.prototype.q.CallFunction,sc.prototype.k.Yl,Hc.prototype.q.lz,sc.prototype.B.jz,Q.prototype.q.TA,Bc.prototype.q.Pp,Q.prototype.k.Vy,W.prototype.q.sp,Q.prototype.q.RA,Q.prototype.q.nz,rc.prototype.B.dA,rc.prototype.k.ty,Q.prototype.q.oA,Gc.prototype.q.dB,Ac.prototype.B.Oy,Q.prototype.B.wF,Ac.prototype.B.qz,Ac.prototype.B.Date,Ac.prototype.B.rz,Ac.prototype.B.oB,Ac.prototype.B.kB,Ac.prototype.B.Ay,Q.prototype.k.ky,
Gc.prototype.B.pz,Q.prototype.q.xy,Q.prototype.k.lA,Q.prototype.B.mF,Q.prototype.B.nF,Bc.prototype.q.Xj,W.prototype.q.Xj,Bc.prototype.B.wi,W.prototype.q.Lp,Pc.prototype.q.fA,Gc.prototype.k.oz,Hc.prototype.B.eB,Q.prototype.k.At,Ic.prototype.q.WA,Q.prototype.B.oF,W.prototype.q.fu,Q.prototype.B.lF,yc.prototype.q.cm,Bc.prototype.q.cm,Bc.prototype.B.xi,W.prototype.q.sA,W.prototype.q.Zp,W.prototype.q.wA,W.prototype.q.Qp,W.prototype.q.cm,Bc.prototype.q.AA,Bc.prototype.q.Lp,rc.prototype.B.xt,W.prototype.k.oy,
W.prototype.q.Sp,W.prototype.B.xi,tc.prototype.B.yy,W.prototype.q.HA,Ic.prototype.q.XA,Q.prototype.B.aE,Q.prototype.k.$y,Bc.prototype.q.fm,Bc.prototype.B.lu,Q.prototype.q.Ky,vc.prototype.q.jy,uc.prototype.q.OA,vc.prototype.q.gy,vc.prototype.q.nA,Ic.prototype.q.Ny,Bc.prototype.k.Xl,Bc.prototype.q.sp,W.prototype.k.Xl,yc.prototype.k.Xl,yc.prototype.q.sp,W.prototype.k.cz,W.prototype.q.Op,Jc.prototype.k.yz,Fc.prototype.k.Fp,wc.prototype.k.Ot,uc.prototype.q.Play,W.prototype.k.qp,Bc.prototype.q.Op,W.prototype.q.Mp,
W.prototype.q.uz,xc.prototype.k.ez,Jc.prototype.k.my,Q.prototype.q.gB,Q.prototype.k.up,vc.prototype.q.Ly,Sc.prototype.q.ju,qd.prototype.q.xA,Q.prototype.B.Iu,Sc.prototype.k.bA,qd.prototype.q.Ip,qd.prototype.k.Yt,Q.prototype.B.rF,Q.prototype.B.qF,Q.prototype.B.random,vc.prototype.B.Cy,vc.prototype.k.Ty,xc.prototype.k.Ht,Q.prototype.k.Dy,Q.prototype.B.bn,qd.prototype.q.IA,Q.prototype.q.pu,Q.prototype.B.replace,Q.prototype.B.MD,Cc.prototype.q.Xj,W.prototype.B.mu,Q.prototype.q.zA,W.prototype.q.YA,zc.prototype.q.MA,
zc.prototype.B.kA,zc.prototype.q.Zp,Q.prototype.q.CA,W.prototype.q.FA,uc.prototype.k.gz,uc.prototype.q.gA,uc.prototype.q.gm,qd.prototype.k.uy,Mc.prototype.q.Up,qd.prototype.q.$A,Qc.prototype.q.eu,Qc.prototype.q.BA,Qc.prototype.q.Jp,Qc.prototype.q.cu,Qc.prototype.q.EA,W.prototype.q.Np,Pc.prototype.q.lB,W.prototype.B.wi,W.prototype.k.yt,Q.prototype.B.$D,W.prototype.B.Wl,Q.prototype.k.jB,W.prototype.k.fz,W.prototype.k.Bz,W.prototype.k.Zy,Qc.prototype.k.Uy,W.prototype.q.rA,Qc.prototype.q.em,Kc.prototype.q.rh,
Bc.prototype.k.au,yc.prototype.B.wi,yc.prototype.B.xi,Q.prototype.q.yA,Q.prototype.k.Iy,yc.prototype.q.Xj,yc.prototype.B.hm,Bc.prototype.q.Mp,yc.prototype.q.Mp,Q.prototype.B["int"],Bc.prototype.B.mu,yc.prototype.q.Lp,yc.prototype.B.Yp,yc.prototype.q.Sp,yc.prototype.B.Wl,Bc.prototype.B.Yp,yc.prototype.k.qp,Bc.prototype.q.Np,yc.prototype.q.du,Bc.prototype.B.ku,yc.prototype.q.fm,W.prototype.q.du,W.prototype.k.eA,W.prototype.q.Rp,vc.prototype.q.wy,W.prototype.q.fB,rd.prototype.q.VA,Qc.prototype.q.hu,
Qc.prototype.B.nu,Qc.prototype.q.iu,Dc.prototype.q.fm,Dc.prototype.q.Zp,Q.prototype.k.nB,Q.prototype.B.Lg,Q.prototype.q.DA,W.prototype.q.sz,Nc.prototype.q.Gy,W.prototype.q.Kp,W.prototype.B.Yp,zc.prototype.q.Kp,qd.prototype.q.QA,Nc.prototype.q.bB,Q.prototype.q.GA,Qc.prototype.k.Et,Q.prototype.k.Ey,Q.prototype.B.bE,W.prototype.B.Opacity,W.prototype.B.cy,W.prototype.B.by,W.prototype.q.tA,W.prototype.k.ry,zc.prototype.q.PA,zc.prototype.q.Np,W.prototype.q.Yx,Q.prototype.B.max,Q.prototype.B.min,Q.prototype.B.SB,
Qc.prototype.q.rh,zc.prototype.k.rp,tc.prototype.q.Rp,Cc.prototype.q.Qp,Lc.prototype.q.Tp,Fc.prototype.k.Ep,Qc.prototype.k.Wy,wc.prototype.k.zp,Jc.prototype.k.zz,Qc.prototype.B.ou,Jc.prototype.k.Dt,wc.prototype.k.Yy,Qc.prototype.k.az,sd.prototype.q.Up,Hc.prototype.k.up,Bc.prototype.k.bu,Bc.prototype.k.qp,Qc.prototype.k.Ry,Qc.prototype.q.Tp,Qc.prototype.q.Fy,wc.prototype.k.Xy,Fc.prototype.k.hz,Fc.prototype.B.iB,vc.prototype.k.Bp,Qc.prototype.k.Nt,Qc.prototype.k.Qt,W.prototype.q.fm,W.prototype.k.Gt,
W.prototype.q.aB,Qc.prototype.k.Zt,Dc.prototype.k.Xl,Dc.prototype.B.xi,Dc.prototype.B.wi,Dc.prototype.B.hm,zc.prototype.q.UA,Kc.prototype.q.em,Kc.prototype.q.gu,Dc.prototype.q.cm,Kc.prototype.q.qA,Dc.prototype.k.If,Dc.prototype.k.au,Kc.prototype.B.By,Sc.prototype.q.cB,qd.prototype.k.Mt,W.prototype.k.rp,W.prototype.q.SA,W.prototype.k.dz,W.prototype.B.hm,Dc.prototype.q.Qp,W.prototype.q.hB,W.prototype.k.Ct,W.prototype.k.Lt,Rc.prototype.q.pA,W.prototype.B.Py,Dc.prototype.q.Kp,W.prototype.B.$x,qd.prototype.q.gm,
W.prototype.k.bu,Oc.prototype.k.My,Oc.prototype.q.LA,W.prototype.B.kz,Dc.prototype.k.yt,Dc.prototype.q.Sp,Rc.prototype.k.qy,Rc.prototype.q.JA,zc.prototype.k.If,uc.prototype.q.KA]};
