// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,M,ea,ga,ia,P,la,ma,na,oa,qa,Q,ra,ta,R,va,wa,xa,ya,za,Aa,Ba,T,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,U,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,V,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(c,p,a,f){this.set(c,p,a,f)}function q(){this.wb=this.ub=this.yb=this.xb=this.Lb=this.Kb=this.Ta=this.Sa=0}function b(c,p,a,f){c<p?a<f?(w=c<a?c:a,t=p>f?p:f):(w=c<f?c:f,t=p>a?p:a):a<f?(w=p<a?p:a,t=c>f?c:f):(w=p<f?p:f,t=c>a?c:a)}function m(){this.items=this.Qc=null;this.Af=0;p&&(this.Qc=new Set);this.cg=[];this.Vd=!0}function h(c){z[F++]=c}function a(){this.ba=this.Bj=this.y=this.ek=0}function e(c){this.Oa=[];this.Kh=this.Mh=this.Nh=this.Lh=0;this.uh(c)}function k(c,p){this.hk=
c;this.gk=p;this.cells={}}function u(c,p){this.hk=c;this.gk=p;this.cells={}}function v(c,p,a){var f;return X.length?(f=X.pop(),f.Pk=c,f.x=p,f.y=a,f):new aa(c,p,a)}function l(c,p,a){this.Pk=c;this.x=p;this.y=a;this.Ya=new ca}function f(c,p,a){var f;return y.length?(f=y.pop(),f.Pk=c,f.x=p,f.y=a,f):new da(c,p,a)}function s(c,p,a){this.Pk=c;this.x=p;this.y=a;this.Ya=[];this.yf=!0;this.dd=new ca;this.gg=!1}function g(c,p){return c.Vc-p.Vc}M=function(c){window.console&&window.console.log&&window.console.log(c)};
ea=function(c){window.console&&window.console.error&&window.console.error(c)};ga=function(c){return"undefined"===typeof c};ia=function(c){return"number"===typeof c};P=function(c){return"string"===typeof c};la=function(c){return 0<c&&0===(c-1&c)};ma=function(c){--c;for(var p=1;32>p;p<<=1)c|=c>>p;return c+1};na=function(c){return 0>c?-c:c};oa=function(c,p){return c<p?c:p};qa=Math.PI;Q=function(c){return 0<=c?c|0:(c|0)-1};ra=function(c){var p=c|0;return p===c?p:p+1};ta=function(c,p,a,f,l,e,b,n){var A,
g,k,z;c<a?(g=c,A=a):(g=a,A=c);l<b?(z=l,k=b):(z=b,k=l);if(A<z||g>k)return!1;p<f?(g=p,A=f):(g=f,A=p);e<n?(z=e,k=n):(z=n,k=e);if(A<z||g>k)return!1;A=l-c+b-a;g=e-p+n-f;c=a-c;p=f-p;l=b-l;e=n-e;n=na(p*l-e*c);return na(l*g-e*A)>n?!1:na(c*g-p*A)<=n};d.prototype.set=function(c,p,a,f){this.left=c;this.top=p;this.right=a;this.bottom=f};d.prototype.mg=function(c){this.left=c.left;this.top=c.top;this.right=c.right;this.bottom=c.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height=
function(){return this.bottom-this.top};d.prototype.offset=function(c,p){this.left+=c;this.top+=p;this.right+=c;this.bottom+=p;return this};d.prototype.normalize=function(){var c=0;this.left>this.right&&(c=this.left,this.left=this.right,this.right=c);this.top>this.bottom&&(c=this.top,this.top=this.bottom,this.bottom=c)};d.prototype.Os=function(c){return!(c.right<this.left||c.bottom<this.top||c.left>this.right||c.top>this.bottom)};d.prototype.Ps=function(c,p,a){return!(c.right+p<this.left||c.bottom+
a<this.top||c.left+p>this.right||c.top+a>this.bottom)};d.prototype.bb=function(c,p){return c>=this.left&&c<=this.right&&p>=this.top&&p<=this.bottom};d.prototype.di=function(c){return this.left===c.left&&this.top===c.top&&this.right===c.right&&this.bottom===c.bottom};R=d;q.prototype.Tf=function(c){this.Sa=c.left;this.Ta=c.top;this.Kb=c.right;this.Lb=c.top;this.xb=c.right;this.yb=c.bottom;this.ub=c.left;this.wb=c.bottom};q.prototype.cp=function(c,p){if(0===p)this.Tf(c);else{var a=Math.sin(p),f=Math.cos(p),
l=c.left*a,e=c.top*a,b=c.right*a,a=c.bottom*a,A=c.left*f,n=c.top*f,g=c.right*f,f=c.bottom*f;this.Sa=A-e;this.Ta=n+l;this.Kb=g-e;this.Lb=n+b;this.xb=g-a;this.yb=f+b;this.ub=A-a;this.wb=f+l}};q.prototype.offset=function(c,p){this.Sa+=c;this.Ta+=p;this.Kb+=c;this.Lb+=p;this.xb+=c;this.yb+=p;this.ub+=c;this.wb+=p;return this};var w=0,t=0;q.prototype.Pm=function(c){b(this.Sa,this.Kb,this.xb,this.ub);c.left=w;c.right=t;b(this.Ta,this.Lb,this.yb,this.wb);c.top=w;c.bottom=t};q.prototype.bb=function(c,p){var a=
this.Kb-this.Sa,f=this.Lb-this.Ta,l=this.xb-this.Sa,e=this.yb-this.Ta,b=c-this.Sa,A=p-this.Ta,n=a*a+f*f,g=a*l+f*e,f=a*b+f*A,k=l*l+e*e,z=l*b+e*A,F=1/(n*k-g*g),a=(k*f-g*z)*F,n=(n*z-g*f)*F;if(0<=a&&0<n&&1>a+n)return!0;a=this.ub-this.Sa;f=this.wb-this.Ta;n=a*a+f*f;g=a*l+f*e;f=a*b+f*A;F=1/(n*k-g*g);a=(k*f-g*z)*F;n=(n*z-g*f)*F;return 0<=a&&0<n&&1>a+n};q.prototype.Td=function(c,p){if(p)switch(c){case 0:return this.Sa;case 1:return this.Kb;case 2:return this.xb;case 3:return this.ub;case 4:return this.Sa;
default:return this.Sa}else switch(c){case 0:return this.Ta;case 1:return this.Lb;case 2:return this.yb;case 3:return this.wb;case 4:return this.Ta;default:return this.Ta}};q.prototype.mo=function(){return(this.Sa+this.Kb+this.xb+this.ub)/4};q.prototype.no=function(){return(this.Ta+this.Lb+this.yb+this.wb)/4};q.prototype.Cn=function(c){var p=c.mo(),a=c.no();if(this.bb(p,a))return!0;p=this.mo();a=this.no();if(c.bb(p,a))return!0;var f,l,e,n,b,A,g,k;for(g=0;4>g;g++)for(k=0;4>k;k++)if(p=this.Td(g,!0),
a=this.Td(g,!1),f=this.Td(g+1,!0),l=this.Td(g+1,!1),e=c.Td(k,!0),n=c.Td(k,!1),b=c.Td(k+1,!0),A=c.Td(k+1,!1),ta(p,a,f,l,e,n,b,A))return!0;return!1};va=q;wa=function(c,p){for(var a in p)p.hasOwnProperty(a)&&(c[a]=p[a]);return c};xa=function(c,p){var a,f;p=Q(p);if(!(0>p||p>=c.length)){a=p;for(f=c.length-1;a<f;a++)c[a]=c[a+1];c.length=f}};ya=function(c,p){c.length=p.length;var a,f;a=0;for(f=p.length;a<f;a++)c[a]=p[a]};za=function(c,p){c.push.apply(c,p)};Aa=function(c,p){var a,f;a=0;for(f=c.length;a<f;++a)if(c[a]===
p)return a;return-1};Ba=function(c,p){var a=Aa(c,p);-1!==a&&xa(c,a)};T=function(c){return c/(180/qa)};Ca=function(c){return 180/qa*c};Da=function(c){c%=360;0>c&&(c+=360);return c};Ea=function(c){c%=2*qa;0>c&&(c+=2*qa);return c};Fa=function(c){return Da(Ca(c))};Ha=function(c){return Ea(T(c))};Ia=function(c,p,a,f){return Math.atan2(f-p,a-c)};Ja=function(c,p){if(c===p)return 0;var a=Math.sin(c),f=Math.cos(c),l=Math.sin(p),e=Math.cos(p),a=a*l+f*e;return 1<=a?0:-1>=a?qa:Math.acos(a)};Ka=function(c,p,a){var f=
Math.sin(c),l=Math.cos(c),e=Math.sin(p),n=Math.cos(p);return Math.acos(f*e+l*n)>a?0<l*e-f*n?Ea(c+a):Ea(c-a):Ea(p)};Pa=function(c,p){var a=Math.sin(c),f=Math.cos(c),l=Math.sin(p),e=Math.cos(p);return 0>=f*l-a*e};Qa=function(c,p,a,f,l,e){if(0===a)return e?c:p;var n=Math.sin(a);a=Math.cos(a);c-=f;p-=l;var g=c*n;c=c*a-p*n;p=p*a+g;return e?c+f:p+l};Ra=function(c,p,a,f){c=a-c;p=f-p;return Math.sqrt(c*c+p*p)};Sa=function(c,p){return!c!==!p};Ta=function(c){for(var p in c)if(c.hasOwnProperty(p))return!0;return!1};
Ua=function(c){for(var p in c)c.hasOwnProperty(p)&&delete c[p]};var n=+new Date;U=function(){if("undefined"!==typeof window.performance){var c=window.performance;if("undefined"!==typeof c.now)return c.now();if("undefined"!==typeof c.webkitNow)return c.webkitNow();if("undefined"!==typeof c.mozNow)return c.mozNow();if("undefined"!==typeof c.msNow)return c.msNow()}return Date.now()-n};var E=!1,c=E=!1,A=!1;"undefined"!==typeof window&&(E=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
E=!E&&/safari/i.test(navigator.userAgent),c=/(iphone|ipod|ipad)/i.test(navigator.userAgent),A=window.c2ejecta);var p=!E&&!A&&!c&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(c){return this.Ad()?!1:p?this.Qc.has(c):this.items&&this.items.hasOwnProperty(c)};m.prototype.add=function(c){if(p)this.Qc.has(c)||(this.Qc.add(c),this.Vd=!1);else{var a=c.toString(),f=this.items;f?f.hasOwnProperty(a)||(f[a]=c,this.Af++,this.Vd=!1):(this.items={},this.items[a]=
c,this.Af=1,this.Vd=!1)}};m.prototype.remove=function(c){if(!this.Ad())if(p)this.Qc.has(c)&&(this.Qc["delete"](c),this.Vd=!1);else if(this.items){c=c.toString();var a=this.items;a.hasOwnProperty(c)&&(delete a[c],this.Af--,this.Vd=!1)}};m.prototype.clear=function(){this.Ad()||(p?this.Qc.clear():(this.items=null,this.Af=0),this.cg.length=0,this.Vd=!0)};m.prototype.Ad=function(){return 0===this.count()};m.prototype.count=function(){return p?this.Qc.size:this.Af};var z=null,F=0;m.prototype.ku=function(){if(!this.Vd){if(p)this.cg.length=
this.Qc.size,z=this.cg,F=0,this.Qc.forEach(h),z=null,F=0;else{var c=this.cg;c.length=this.Af;var a,f=0,l=this.items;if(l)for(a in l)l.hasOwnProperty(a)&&(c[f++]=l[a])}this.Vd=!0}};m.prototype.Uc=function(){this.ku();return this.cg};ca=m;new ca;Va=function(c,a){p?Wa(c,a.Qc):Xa(c,a.Uc())};Wa=function(c,p){var a,f,l,e;f=a=0;for(l=c.length;a<l;++a)e=c[a],p.has(e)||(c[f++]=e);c.length=f};Xa=function(c,p){var a,f,l,e;f=a=0;for(l=c.length;a<l;++a)e=c[a],-1===Aa(p,e)&&(c[f++]=e);c.length=f};a.prototype.add=
function(c){this.y=c-this.ek;this.Bj=this.ba+this.y;this.ek=this.Bj-this.ba-this.y;this.ba=this.Bj};a.prototype.reset=function(){this.ba=this.Bj=this.y=this.ek=0};Ya=a;Za=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};e.prototype.uh=function(c){this.Po=c;this.Oc=c.length/2;this.Oa.length=c.length;this.Rh=this.Sh=-1;this.Sm=0};e.prototype.vf=function(){return!this.Po.length};e.prototype.la=function(){for(var c=this.Oa,p=c[0],a=p,f=c[1],l=f,e,n,g=1,b=this.Oc;g<b;++g)n=2*g,e=c[n],n=
c[n+1],e<p&&(p=e),e>a&&(a=e),n<f&&(f=n),n>l&&(l=n);this.Lh=p;this.Mh=a;this.Nh=f;this.Kh=l};e.prototype.Tf=function(c,p,a){this.Oa.length=8;this.Oc=4;var f=this.Oa;f[0]=c.left-p;f[1]=c.top-a;f[2]=c.right-p;f[3]=c.top-a;f[4]=c.right-p;f[5]=c.bottom-a;f[6]=c.left-p;f[7]=c.bottom-a;this.Sh=c.right-c.left;this.Rh=c.bottom-c.top;this.la()};e.prototype.Sf=function(c,p,a,f,l){this.Oa.length=8;this.Oc=4;var e=this.Oa;e[0]=c.Sa-p;e[1]=c.Ta-a;e[2]=c.Kb-p;e[3]=c.Lb-a;e[4]=c.xb-p;e[5]=c.yb-a;e[6]=c.ub-p;e[7]=
c.wb-a;this.Sh=f;this.Rh=l;this.la()};e.prototype.bp=function(c){this.Oc=c.Oc;ya(this.Oa,c.Oa);this.Lh=c.Lh;this.Nh-c.Nh;this.Mh=c.Mh;this.Kh=c.Kh};e.prototype.gf=function(c,p,a){if(this.Sh!==c||this.Rh!==p||this.Sm!==a){this.Sh=c;this.Rh=p;this.Sm=a;var f,l,e,n,g,b=0,A=1,k=this.Po,z=this.Oa;0!==a&&(b=Math.sin(a),A=Math.cos(a));a=0;for(e=this.Oc;a<e;a++)f=2*a,l=f+1,n=k[f]*c,g=k[l]*p,z[f]=n*A-g*b,z[l]=g*A+n*b;this.la()}};e.prototype.bb=function(c,p){var a=this.Oa;if(c===a[0]&&p===a[1])return!0;var f,
l,e,n=this.Oc,g=this.Lh-110,b=this.Nh-101,A=this.Mh+131,k=this.Kh+120,z,F,s=0,w=0;for(f=0;f<n;f++)l=2*f,e=(f+1)%n*2,z=a[l],l=a[l+1],F=a[e],e=a[e+1],ta(g,b,c,p,z,l,F,e)&&s++,ta(A,k,c,p,z,l,F,e)&&w++;return 1===s%2||1===w%2};e.prototype.Bg=function(c,p,a){var f=c.Oa,l=this.Oa;if(this.bb(f[0]+p,f[1]+a)||c.bb(l[0]-p,l[1]-a))return!0;var e,n,g,b,A,k,z,F,s,w,E,x;e=0;for(b=this.Oc;e<b;e++)for(n=2*e,g=(e+1)%b*2,F=l[n],n=l[n+1],s=l[g],w=l[g+1],g=0,z=c.Oc;g<z;g++)if(A=2*g,k=(g+1)%z*2,E=f[A]+p,A=f[A+1]+a,x=
f[k]+p,k=f[k+1]+a,ta(F,n,s,w,E,A,x,k))return!0;return!1};$a=e;k.prototype.ae=function(c,p,a){var f;f=this.cells[c];return f?(f=f[p])?f:a?(f=v(this,c,p),this.cells[c][p]=f):null:a?(f=v(this,c,p),this.cells[c]={},this.cells[c][p]=f):null};k.prototype.$b=function(c){return Q(c/this.hk)};k.prototype.ac=function(c){return Q(c/this.gk)};k.prototype.update=function(c,p,a){var f,l,e,n,g;if(p)for(f=p.left,l=p.right;f<=l;++f)for(e=p.top,n=p.bottom;e<=n;++e)if(!a||!a.bb(f,e))if(g=this.ae(f,e,!1))g.remove(c),
g.Ad()&&(g.Ya.clear(),1E3>X.length&&X.push(g),this.cells[f][e]=null);if(a)for(f=a.left,l=a.right;f<=l;++f)for(e=a.top,n=a.bottom;e<=n;++e)p&&p.bb(f,e)||this.ae(f,e,!0).Zk(c)};k.prototype.lj=function(c,p){var a,f,e,l,n,g;a=this.$b(c.left);e=this.ac(c.top);f=this.$b(c.right);for(n=this.ac(c.bottom);a<=f;++a)for(l=e;l<=n;++l)(g=this.ae(a,l,!1))&&g.dump(p)};ab=k;u.prototype.ae=function(c,p,a){var e;e=this.cells[c];return e?(e=e[p])?e:a?(e=f(this,c,p),this.cells[c][p]=e):null:a?(e=f(this,c,p),this.cells[c]=
{},this.cells[c][p]=e):null};u.prototype.$b=function(c){return Q(c/this.hk)};u.prototype.ac=function(c){return Q(c/this.gk)};u.prototype.update=function(c,p,a){var f,e,l,n,g;if(p)for(f=p.left,e=p.right;f<=e;++f)for(l=p.top,n=p.bottom;l<=n;++l)if(!a||!a.bb(f,l))if(g=this.ae(f,l,!1))g.remove(c),g.Ad()&&(g.reset(),1E3>y.length&&y.push(g),this.cells[f][l]=null);if(a)for(f=a.left,e=a.right;f<=e;++f)for(l=a.top,n=a.bottom;l<=n;++l)p&&p.bb(f,l)||this.ae(f,l,!0).Zk(c)};u.prototype.lj=function(c,p,a,f,e){var l,
n;c=this.$b(c);p=this.ac(p);a=this.$b(a);for(l=this.ac(f);c<=a;++c)for(f=p;f<=l;++f)(n=this.ae(c,f,!1))&&n.dump(e)};u.prototype.ct=function(c){var p,a,f,e,l;p=c.left;f=c.top;a=c.right;for(e=c.bottom;p<=a;++p)for(c=f;c<=e;++c)if(l=this.ae(p,c,!1))l.yf=!1};bb=u;var X=[];l.prototype.Ad=function(){return this.Ya.Ad()};l.prototype.Zk=function(c){this.Ya.add(c)};l.prototype.remove=function(c){this.Ya.remove(c)};l.prototype.dump=function(c){za(c,this.Ya.Uc())};aa=l;var y=[];s.prototype.Ad=function(){if(!this.Ya.length)return!0;
if(this.Ya.length>this.dd.count())return!1;this.Ak();return!0};s.prototype.Zk=function(c){this.dd.contains(c)?(this.dd.remove(c),this.dd.Ad()&&(this.gg=!1)):this.Ya.length?(this.Ya[this.Ya.length-1].tc()>c.tc()&&(this.yf=!1),this.Ya.push(c)):(this.Ya.push(c),this.yf=!0)};s.prototype.remove=function(c){this.dd.add(c);this.gg=!0;30<=this.dd.count()&&this.Ak()};s.prototype.Ak=function(){this.gg&&(this.dd.count()===this.Ya.length?this.reset():(Va(this.Ya,this.dd),this.dd.clear(),this.gg=!1))};s.prototype.Br=
function(){this.yf||(this.Ya.sort(g),this.yf=!0)};s.prototype.reset=function(){this.Ya.length=0;this.yf=!0;this.dd.clear();this.gg=!1};s.prototype.dump=function(c){this.Ak();this.Br();this.Ya.length&&c.push(this.Ya)};da=s;var x="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(c){return 0>=c||11<=c?"source-over":x[c-1]};db=function(c,p,a){if(a)switch(c.mb=a.ONE,c.lb=a.ONE_MINUS_SRC_ALPHA,p){case 1:c.mb=a.ONE;
c.lb=a.ONE;break;case 3:c.mb=a.ONE;c.lb=a.ZERO;break;case 4:c.mb=a.ONE_MINUS_DST_ALPHA;c.lb=a.ONE;break;case 5:c.mb=a.DST_ALPHA;c.lb=a.ZERO;break;case 6:c.mb=a.ZERO;c.lb=a.SRC_ALPHA;break;case 7:c.mb=a.ONE_MINUS_DST_ALPHA;c.lb=a.ZERO;break;case 8:c.mb=a.ZERO;c.lb=a.ONE_MINUS_SRC_ALPHA;break;case 9:c.mb=a.DST_ALPHA;c.lb=a.ONE_MINUS_SRC_ALPHA;break;case 10:c.mb=a.ONE_MINUS_DST_ALPHA,c.lb=a.SRC_ALPHA}};eb=function(c){return Math.round(1E6*c)/1E6};fb=function(c,a){return"string"!==typeof c||"string"!==
typeof a||c.length!==a.length?!1:c===a?!0:c.toLowerCase()===a.toLowerCase()};gb=function(c){c=c.target;return!c||c===document||c===window||document&&document.body&&c===document.body||fb(c.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(d){var q=new Zb(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}
function ac(d){var q=new Zb(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q}function bc(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}
function cc(d,q){var b=q[0],m=q[1];q=q[2];d[0]*=b;d[1]*=b;d[2]*=b;d[3]*=b;d[4]*=m;d[5]*=m;d[6]*=m;d[7]*=m;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q}
function dc(d,q,b,m){m||(m=ac());var h,a,e,k,u,v,l,f,s=d[0],g=d[1];d=d[2];a=b[0];e=b[1];h=b[2];b=q[1];v=q[2];s===q[0]&&g===b&&d===v?(d=m,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(b=s-q[0],v=g-q[1],l=d-q[2],f=1/Math.sqrt(b*b+v*v+l*l),b*=f,v*=f,l*=f,q=e*l-h*v,h=h*b-a*l,a=a*v-e*b,(f=Math.sqrt(q*q+h*h+a*a))?(f=1/f,q*=f,h*=f,a*=f):a=h=q=0,e=v*a-l*h,k=l*q-b*a,u=b*h-v*q,(f=Math.sqrt(e*e+k*k+u*u))?(f=1/f,e*=f,k*=f,u*=f):u=k=e=0,
m[0]=q,m[1]=e,m[2]=b,m[3]=0,m[4]=h,m[5]=k,m[6]=v,m[7]=0,m[8]=a,m[9]=u,m[10]=l,m[11]=0,m[12]=-(q*s+h*g+a*d),m[13]=-(e*s+k*g+u*d),m[14]=-(b*s+v*g+l*d),m[15]=1)}
(function(){function d(a){this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Tm=$b([0,0,100]);this.Un=$b([0,0,0]);this.vp=$b([0,1,0]);this.xm=$b([1,1,1]);this.an=!0;this.rl=ac();this.Ac=ac();this.Mn=ac();this.qk=ac();this.m=a;this.yn()}function q(a,e,b){this.m=a;this.vh=e;this.name=b;this.zc=a.getAttribLocation(e,"aPos");this.fe=a.getAttribLocation(e,"aTex");this.Sn=a.getUniformLocation(e,"matP");this.Ri=a.getUniformLocation(e,"matMV");this.Ef=
a.getUniformLocation(e,"opacity");this.Tn=a.getUniformLocation(e,"samplerFront");this.Ug=a.getUniformLocation(e,"samplerBack");this.Ue=a.getUniformLocation(e,"destStart");this.Te=a.getUniformLocation(e,"destEnd");this.ol=a.getUniformLocation(e,"seconds");this.nl=a.getUniformLocation(e,"pixelWidth");this.ml=a.getUniformLocation(e,"pixelHeight");this.Tg=a.getUniformLocation(e,"layerScale");this.Sg=a.getUniformLocation(e,"layerAngle");this.Wg=a.getUniformLocation(e,"viewOrigin");this.Vg=a.getUniformLocation(e,
"scrollPos");this.Js=!!(this.nl||this.ml||this.ol||this.Ug||this.Ue||this.Te||this.Tg||this.Sg||this.Wg||this.Vg);this.bo=this.co=-999;this.Ti=1;this.Yn=this.Xn=0;this.$n=this.Wn=this.Vn=1;this.fo=this.eo=this.jo=this.ho=this.Zn=0;this.hl=[];this.ao=ac();this.Ef&&a.uniform1f(this.Ef,1);this.Tn&&a.uniform1i(this.Tn,0);this.Ug&&a.uniform1i(this.Ug,1);this.Ue&&a.uniform2f(this.Ue,0,0);this.Te&&a.uniform2f(this.Te,1,1);this.Tg&&a.uniform1f(this.Tg,1);this.Sg&&a.uniform1f(this.Sg,0);this.Wg&&a.uniform2f(this.Wg,
0,0);this.Vg&&a.uniform2f(this.Vg,0,0);this.He=!1}function b(a,e){this.type=a;this.q=e;this.m=e.m;this.uc=this.ic=this.zo=0;this.Y=this.Sc=null;this.dp=[]}d.prototype.yn=function(){var a=this.m,e;this.Nn=1;this.Qe=this.Pe=null;this.Zh=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.On=a.ONE;this.Ln=a.ONE_MINUS_SRC_ALPHA;this.Il=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Il);this.Fh=
Array(4);this.zh=Array(4);for(e=0;4>e;e++)this.Fh[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Fh[e]),this.zh[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.zh[e]);this.qd=0;this.Ms=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ms);this.tm=new Float32Array(16E3);this.em=new Float32Array(16E3);this.Lo=new Float32Array(32E3);for(var b=new Uint16Array(12E3),h=e=0;12E3>e;)b[e++]=h,b[e++]=h+1,b[e++]=h+2,b[e++]=h,b[e++]=h+2,b[e++]=h+3,h+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,
a.STATIC_DRAW);this.Nf=this.kd=0;this.Ra=[];e=this.ok({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Ra.push(e);e=this.ok({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ra.push(e);for(var m in ec)ec.hasOwnProperty(m)&&this.Ra.push(this.ok(ec[m],
"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}",m));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.pd=[];this.Xc=0;this.Qb=this.Bb=!1;this.Wm=this.Ig=-1;this.pg=null;this.Zr=a.createFramebuffer();this.So=null;this.pe=$b([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.gt=a[0];this.sl=
a[1];2048<this.sl&&(this.sl=2048);this.gd(0)};q.prototype.mm=function(a){var e=this.ao;if(e[0]!==a[0]||e[1]!==a[1]||e[2]!==a[2]||e[3]!==a[3]||e[4]!==a[4]||e[5]!==a[5]||e[6]!==a[6]||e[7]!==a[7]||e[8]!==a[8]||e[9]!==a[9]||e[10]!==a[10]||e[11]!==a[11]||e[12]!==a[12]||e[13]!==a[13]||e[14]!==a[14]||e[15]!==a[15])bc(a,this.ao),this.m.uniformMatrix4fv(this.Ri,!1,a)};d.prototype.ok=function(a,e,b){var h=this.m,m=h.createShader(h.FRAGMENT_SHADER);h.shaderSource(m,a.src);h.compileShader(m);if(!h.getShaderParameter(m,
h.COMPILE_STATUS))return h.deleteShader(m),null;var l=h.createShader(h.VERTEX_SHADER);h.shaderSource(l,e);h.compileShader(l);if(!h.getShaderParameter(l,h.COMPILE_STATUS))return h.deleteShader(m),h.deleteShader(l),null;e=h.createProgram();h.attachShader(e,m);h.attachShader(e,l);h.linkProgram(e);if(!h.getProgramParameter(e,h.LINK_STATUS))return h.deleteShader(m),h.deleteShader(l),h.deleteProgram(e),null;h.useProgram(e);h.deleteShader(m);h.deleteShader(l);b=new q(h,e,b);b.gi=a.gi||0;b.hi=a.hi||0;b.pk=
!!a.pk;b.ak=!!a.ak;b.I=a.I||[];a=0;for(m=b.I.length;a<m;a++)b.I[a][1]=h.getUniformLocation(e,b.I[a][0]),b.hl.push(0),h.uniform1f(b.I[a][1],0);return b};d.prototype.Mk=function(a){var e,b;e=0;for(b=this.Ra.length;e<b;e++)if(this.Ra[e].name===a)return e;return-1};d.prototype.Oo=function(a,e,b){var h=this.Ac,m=this.rl,l=[0,0,0,0,0,0,0,0];l[0]=h[0]*a+h[4]*e+h[12];l[1]=h[1]*a+h[5]*e+h[13];l[2]=h[2]*a+h[6]*e+h[14];l[3]=h[3]*a+h[7]*e+h[15];l[4]=m[0]*l[0]+m[4]*l[1]+m[8]*l[2]+m[12]*l[3];l[5]=m[1]*l[0]+m[5]*
l[1]+m[9]*l[2]+m[13]*l[3];l[6]=m[2]*l[0]+m[6]*l[1]+m[10]*l[2]+m[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],b[0]=(.5*l[4]+.5)*this.width,b[1]=(.5*l[5]+.5)*this.height)};d.prototype.Rf=function(a,e,b){if(this.width!==a||this.height!==e||b){this.Zd();this.width=a;this.height=e;this.m.viewport(0,0,a,e);e=a/e;var h=this.rl,m;m=1*Math.tan(45*Math.PI/360);e*=m;a=-e;b=-m;h||(h=ac());var l=e-a,f=m-b;h[0]=2/l;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/f;h[6]=0;h[7]=0;h[8]=(e+a)/l;h[9]=
(m+b)/f;h[10]=-1001/999;h[11]=-1;h[12]=0;h[13]=0;h[14]=-2E3/999;h[15]=0;dc(this.Tm,this.Un,this.vp,this.Ac);a=[0,0];e=[0,0];this.Oo(0,0,a);this.Oo(1,1,e);this.xm[0]=1/(e[0]-a[0]);this.xm[1]=-1/(e[1]-a[1]);a=0;for(e=this.Ra.length;a<e;a++)b=this.Ra[a],b.He=!1,b.Sn&&(this.m.useProgram(b.vh),this.m.uniformMatrix4fv(b.Sn,!1,this.rl));this.m.useProgram(this.Ra[this.Ig].vh);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.Qe=this.Pe=null}};d.prototype.je=function(){dc(this.Tm,this.Un,this.vp,this.Ac);cc(this.Ac,this.xm)};d.prototype.translate=function(a,e){if(0!==a||0!==e){this.pe[0]=a;this.pe[1]=e;this.pe[2]=0;var b=this.Ac,h=this.pe,m=h[0],l=h[1],h=h[2];b[12]=b[0]*m+b[4]*l+b[8]*h+b[12];b[13]=b[1]*m+b[5]*l+b[9]*h+b[13];b[14]=b[2]*m+b[6]*l+b[10]*h+b[14];b[15]=b[3]*m+b[7]*l+b[11]*h+b[15]}};d.prototype.scale=function(a,e){if(1!==a||1!==e)this.pe[0]=a,this.pe[1]=e,this.pe[2]=1,cc(this.Ac,this.pe)};d.prototype.To=
function(a){if(0!==a){var e=this.Ac,b,h=Math.sin(a);a=Math.cos(a);var m=e[0],l=e[1],f=e[2],s=e[3],g=e[4],w=e[5],t=e[6],n=e[7];b?e!==b&&(b[8]=e[8],b[9]=e[9],b[10]=e[10],b[11]=e[11],b[12]=e[12],b[13]=e[13],b[14]=e[14],b[15]=e[15]):b=e;b[0]=m*a+g*h;b[1]=l*a+w*h;b[2]=f*a+t*h;b[3]=s*a+n*h;b[4]=m*-h+g*a;b[5]=l*-h+w*a;b[6]=f*-h+t*a;b[7]=s*-h+n*a}};d.prototype.re=function(){for(var a=!1,b=0;16>b;b++)if(this.Mn[b]!==this.Ac[b]){a=!0;break}a&&(a=this.Bc(),a.type=5,a.Y?bc(this.Ac,a.Y):a.Y=ac(this.Ac),bc(this.Ac,
this.Mn),this.Qb=this.Bb=!1)};b.prototype.nr=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Sc)};b.prototype.or=function(){var a=this.m;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Sc);a.activeTexture(a.TEXTURE0)};b.prototype.kr=function(){var a=this.zo,b=this.q;b.Zh=a;b=b.pg;b.Ef&&b.Ti!==a&&(b.Ti=a,this.m.uniform1f(b.Ef,a))};b.prototype.hr=function(){this.m.drawElements(this.m.TRIANGLES,this.uc,this.m.UNSIGNED_SHORT,2*this.ic)};b.prototype.jr=function(){this.m.blendFunc(this.ic,
this.uc)};b.prototype.pr=function(){var a,b,k,h=this.q.Ra,m=this.q.Wm;a=0;for(b=h.length;a<b;a++)k=h[a],a===m&&k.Ri?(k.mm(this.Y),k.He=!0):k.He=!1;bc(this.Y,this.q.qk)};b.prototype.ir=function(){var a=this.m,b=this.q;this.Sc?(b.Qe===this.Sc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Qe=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Zr),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Sc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};b.prototype.er=function(){var a=this.m;0===this.ic?(a.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clearColor(0,0,0,0),a.clear(this.m.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};b.prototype.fr=function(){var a=this.m,b=this.q,k=b.Ra[1];a.useProgram(k.vh);!k.He&&k.Ri&&(k.mm(b.qk),k.He=!0);a.enableVertexAttribArray(k.zc);
a.bindBuffer(a.ARRAY_BUFFER,b.Il);a.vertexAttribPointer(k.zc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.ic/4,this.uc);k=b.pg;a.useProgram(k.vh);0<=k.zc&&(a.enableVertexAttribArray(k.zc),a.bindBuffer(a.ARRAY_BUFFER,b.Fh[b.qd]),a.vertexAttribPointer(k.zc,2,a.FLOAT,!1,0,0));0<=k.fe&&(a.enableVertexAttribArray(k.fe),a.bindBuffer(a.ARRAY_BUFFER,b.zh[b.qd]),a.vertexAttribPointer(k.fe,2,a.FLOAT,!1,0,0))};b.prototype.lr=function(){var a=this.m,b=this.q,k=b.Ra[this.ic];b.Wm=this.ic;b.pg=k;a.useProgram(k.vh);
!k.He&&k.Ri&&(k.mm(b.qk),k.He=!0);k.Ef&&k.Ti!==b.Zh&&(k.Ti=b.Zh,a.uniform1f(k.Ef,b.Zh));0<=k.zc&&(a.enableVertexAttribArray(k.zc),a.bindBuffer(a.ARRAY_BUFFER,b.Fh[b.qd]),a.vertexAttribPointer(k.zc,2,a.FLOAT,!1,0,0));0<=k.fe&&(a.enableVertexAttribArray(k.fe),a.bindBuffer(a.ARRAY_BUFFER,b.zh[b.qd]),a.vertexAttribPointer(k.fe,2,a.FLOAT,!1,0,0))};b.prototype.mr=function(){var a,b,k=this.q.pg,h=this.m;a=this.Y;k.Ug&&this.q.Qe!==this.Sc&&(h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,this.Sc),
this.q.Qe=this.Sc,h.activeTexture(h.TEXTURE0));var m=a[0];k.nl&&m!==k.co&&(k.co=m,h.uniform1f(k.nl,m));m=a[1];k.ml&&m!==k.bo&&(k.bo=m,h.uniform1f(k.ml,m));m=a[2];b=a[3];!k.Ue||m===k.Xn&&b===k.Yn||(k.Xn=m,k.Yn=b,h.uniform2f(k.Ue,m,b));m=a[4];b=a[5];!k.Te||m===k.Vn&&b===k.Wn||(k.Vn=m,k.Wn=m,h.uniform2f(k.Te,m,b));m=a[6];k.Tg&&m!==k.$n&&(k.$n=m,h.uniform1f(k.Tg,m));m=a[7];k.Sg&&m!==k.Zn&&(k.Zn=m,h.uniform1f(k.Sg,m));m=a[8];b=a[9];!k.Wg||m===k.ho&&b===k.jo||(k.ho=m,k.jo=b,h.uniform2f(k.Wg,m,b));m=a[10];
b=a[11];!k.Vg||m===k.eo&&b===k.fo||(k.eo=m,k.fo=b,h.uniform2f(k.Vg,m,b));k.ol&&h.uniform1f(k.ol,U()/1E3);if(k.I.length)for(a=0,b=k.I.length;a<b;a++)m=this.dp[a],m!==k.hl[a]&&(k.hl[a]=m,h.uniform1f(k.I[a][1],m))};d.prototype.Bc=function(){this.Xc===this.pd.length&&this.pd.push(new b(0,this));return this.pd[this.Xc++]};d.prototype.Zd=function(){if(0!==this.Xc&&!this.m.isContextLost()){var a=this.m;0<this.Nf&&(a.bindBuffer(a.ARRAY_BUFFER,this.Il),a.bufferData(a.ARRAY_BUFFER,this.Lo.subarray(0,this.Nf),
a.STREAM_DRAW),b&&0<=b.zc&&"<point>"===b.name&&a.vertexAttribPointer(b.zc,4,a.FLOAT,!1,0,0));if(0<this.kd){var b=this.pg;a.bindBuffer(a.ARRAY_BUFFER,this.Fh[this.qd]);a.bufferData(a.ARRAY_BUFFER,this.tm.subarray(0,this.kd),a.STREAM_DRAW);b&&0<=b.zc&&"<point>"!==b.name&&a.vertexAttribPointer(b.zc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.zh[this.qd]);a.bufferData(a.ARRAY_BUFFER,this.em.subarray(0,this.kd),a.STREAM_DRAW);b&&0<=b.fe&&"<point>"!==b.name&&a.vertexAttribPointer(b.fe,2,a.FLOAT,
!1,0,0)}for(var k,a=0,b=this.Xc;a<b;a++)switch(k=this.pd[a],k.type){case 1:k.hr();break;case 2:k.nr();break;case 3:k.kr();break;case 4:k.jr();break;case 5:k.pr();break;case 6:k.ir();break;case 7:k.er();break;case 8:k.fr();break;case 9:k.lr();break;case 10:k.mr();break;case 11:k.or()}this.Nf=this.kd=this.Xc=0;this.Qb=this.Bb=!1;this.qd++;4<=this.qd&&(this.qd=0)}};d.prototype.Ye=function(a){if(a!==this.Nn){var b=this.Bc();b.type=3;this.Nn=b.zo=a;this.Qb=this.Bb=!1}};d.prototype.Wb=function(a){if(a!==
this.Pe){var b=this.Bc();b.type=2;this.Pe=b.Sc=a;this.Qb=this.Bb=!1}};d.prototype.ke=function(a,b){if(a!==this.On||b!==this.Ln){var k=this.Bc();k.type=4;k.ic=a;k.uc=b;this.On=a;this.Ln=b;this.Qb=this.Bb=!1}};d.prototype.Yo=function(){this.ke(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};d.prototype.oh=function(a,b,k,h,m,l,f,s){15992<=this.kd&&this.Zd();var g=this.kd,w=this.tm,t=this.em;if(this.Bb)this.pd[this.Xc-1].uc+=6;else{var n=this.Bc();n.type=1;n.ic=g/4*3;n.uc=6;this.Bb=!0;this.Qb=!1}w[g]=a;t[g++]=
0;w[g]=b;t[g++]=0;w[g]=k;t[g++]=1;w[g]=h;t[g++]=0;w[g]=m;t[g++]=1;w[g]=l;t[g++]=1;w[g]=f;t[g++]=0;w[g]=s;t[g++]=1;this.kd=g};d.prototype.Gd=function(a,b,k,h,m,l,f,s,g){15992<=this.kd&&this.Zd();var w=this.kd,t=this.tm,n=this.em;if(this.Bb)this.pd[this.Xc-1].uc+=6;else{var E=this.Bc();E.type=1;E.ic=w/4*3;E.uc=6;this.Bb=!0;this.Qb=!1}var E=g.left,c=g.top,A=g.right;g=g.bottom;t[w]=a;n[w++]=E;t[w]=b;n[w++]=c;t[w]=k;n[w++]=A;t[w]=h;n[w++]=c;t[w]=m;n[w++]=A;t[w]=l;n[w++]=g;t[w]=f;n[w++]=E;t[w]=s;n[w++]=
g;this.kd=w};d.prototype.At=function(a,b,k,h){7996<=this.Nf&&this.Zd();var m=this.Nf,l=this.Lo;if(this.Qb)this.pd[this.Xc-1].uc++;else{var f=this.Bc();f.type=8;f.ic=m;f.uc=1;this.Qb=!0;this.Bb=!1}l[m++]=a;l[m++]=b;l[m++]=k;l[m++]=h;this.Nf=m};d.prototype.gd=function(a){if(this.Ig!==a){if(!this.Ra[a]){if(0===this.Ig)return;a=0}var b=this.Bc();b.type=9;this.Ig=b.ic=a;this.Qb=this.Bb=!1}};d.prototype.mh=function(a){a=this.Ra[a];return!(!a.Ue&&!a.Te)};d.prototype.Kl=function(a){a=this.Ra[a];return!!(a.Ue||
a.Te||a.pk)};d.prototype.Ht=function(a){a=this.Ra[a];return 0!==a.gi||0!==a.hi};d.prototype.qs=function(a){return this.Ra[a].gi};d.prototype.rs=function(a){return this.Ra[a].hi};d.prototype.ss=function(a,b){return this.Ra[a].I[b][2]};d.prototype.kj=function(a){return this.Ra[a].ak};d.prototype.Qf=function(a,b,k,h,m,l,f,s,g,w,t,n,E,c){var A=this.Ra[this.Ig],p,z;if(A.Js||c.length){p=this.Bc();p.type=10;p.Y?bc(this.Ac,p.Y):p.Y=ac();z=p.Y;z[0]=b;z[1]=k;z[2]=h;z[3]=m;z[4]=l;z[5]=f;z[6]=s;z[7]=g;z[8]=w;
z[9]=t;z[10]=n;z[11]=E;p.Sc=A.Ug?a:null;if(c.length)for(k=p.dp,k.length=c.length,a=0,b=c.length;a<b;a++)k[a]=c[a];this.Qb=this.Bb=!1}};d.prototype.clear=function(a,b,k,h){var m=this.Bc();m.type=7;m.ic=0;m.Y||(m.Y=ac());m.Y[0]=a;m.Y[1]=b;m.Y[2]=k;m.Y[3]=h;this.Qb=this.Bb=!1};d.prototype.clearRect=function(a,b,k,h){if(!(0>k||0>h)){var m=this.Bc();m.type=7;m.ic=1;m.Y||(m.Y=ac());m.Y[0]=a;m.Y[1]=b;m.Y[2]=k;m.Y[3]=h;this.Qb=this.Bb=!1}};d.prototype.Gt=function(){this.Zd();this.m.flush()};var m=[],h={};
d.prototype.Wq=function(){m.length=0;h={}};d.prototype.Cf=function(a,b,k,d){b=!!b;k=!!k;var q=a.src+","+b+","+k+(b?",undefined":""),l=null;if("undefined"!==typeof a.src&&h.hasOwnProperty(q))return l=h[q],l.Qh++,l;this.Zd();var f=this.m,s=la(a.width)&&la(a.height),l=f.createTexture();f.bindTexture(f.TEXTURE_2D,l);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=f.RGBA,w=f.RGBA,t=f.UNSIGNED_BYTE;if(d&&!this.Me)switch(d){case 1:w=g=f.RGB;break;case 2:t=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:t=
f.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=g=f.RGB,t=f.UNSIGNED_SHORT_5_6_5}if(!s&&b){d=document.createElement("canvas");d.width=ma(a.width);d.height=ma(a.height);var n=d.getContext("2d");n.webkitImageSmoothingEnabled=k;n.mozImageSmoothingEnabled=k;n.msImageSmoothingEnabled=k;n.imageSmoothingEnabled=k;n.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);f.texImage2D(f.TEXTURE_2D,0,g,w,t,d)}else f.texImage2D(f.TEXTURE_2D,0,g,w,t,a);b?(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));k?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),s&&this.an?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,
f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.Pe=null;l.kg=a.width;l.jg=a.height;l.Qh=1;l.Rm=q;m.push(l);return h[q]=l};d.prototype.Xd=function(a,b,k){var h;this.Zd();var d=this.m;this.Me&&(h=!1);var l=d.createTexture();d.bindTexture(d.TEXTURE_2D,l);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,b,0,d.RGBA,h?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,
d.TEXTURE_MAG_FILTER,k?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,k?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Pe=null;l.kg=a;l.jg=b;m.push(l);return l};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Qh&&1<a.Qh?a.Qh--:(this.Zd(),a===this.Pe&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Pe=null),a===this.Qe&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Qe=
null),Ba(m,a),"undefined"!==typeof a.Rm&&delete h[a.Rm],this.m.deleteTexture(a)))};d.prototype.fd=function(a){if(a!==this.So){var b=this.Bc();b.type=6;this.So=b.Sc=a;this.Qb=this.Bb=!1}};hb=d})();
(function(){function d(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function q(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(c){if(c&&(c.getContext||c.dc)&&!c.c2runtime){c.c2runtime=this;var a=this;this.vc=(this.Dg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.fb=!!c.dc;this.sf="undefined"!==typeof window.AppMobi||this.fb;this.fc=!!window.c2cocoonjs;this.Jc=!!window.c2ejecta;this.fc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Jc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.ca=this.fb||this.fc||this.Jc;this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Gn=/tizen/i.test(navigator.userAgent);this.Bi=/android/i.test(navigator.userAgent)&&!this.Gn&&!this.Me;this.fl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Me;this.Kn=/ipad/i.test(navigator.userAgent);this.Gi=this.fl||this.Kn||this.Jc;this.Ys=this.fl&&/os\s6/i.test(navigator.userAgent);this.Cg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Me;this.Dn=/amazonwebappplatform/i.test(navigator.userAgent);this.Ss=/firefox/i.test(navigator.userAgent);this.Fn=/safari/i.test(navigator.userAgent)&&!this.Cg&&!this.Me;this.Vs=/windows/i.test(navigator.userAgent);this.de="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);
this.In=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Xs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.uf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.dl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Hn=this.In||this.Xs||this.dl;this.Qs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ci=this.Bi&&!this.Cg&&!this.Dg&&!this.Ss&&!this.Dn&&
!this.ca;this.devicePixelRatio=1;this.ad=this.vc||this.Dg||this.sf||this.fc||this.Bi||this.Gi||this.uf||this.dl||this.Qs||this.Gn||this.Jc;this.ad||(this.ad=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.de||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.de=!0);this.Rs="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=
c;this.Um=document.getElementById("c2canvasdiv");this.aa=this.q=this.m=null;this.Dk="";this.ki=!1;this.xo=this.yo=0;this.canvas.oncontextmenu=function(c){c.preventDefault&&c.preventDefault();return!1};this.canvas.onselectstart=function(c){c.preventDefault&&c.preventDefault();return!1};this.fb&&(window.c2runtime=this);this.de&&(window.ondragover=function(c){c.preventDefault();return!1},window.ondrop=function(c){c.preventDefault();return!1},require("nw.gui").App.clearCache());this.Ci&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=c.width;this.height=c.height;this.M=this.width;this.L=this.height;this.Xh=this.width;this.Wh=this.height;this.Kg=window.innerWidth;this.Jg=window.innerHeight;this.as=!1;this.ga=!0;this.Fg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Fa=[];this.ll={};this.Sb=[];this.xk={};this.vd=[];this.eg=[];this.Kj=[];this.Xj=[];this.Nq=[];this.Ae={};this.al=this.be=!1;this.Bd=0;
this.cl=!1;this.Gc=[];this.Cd=this.rb=this.Pg=this.pj="";this.xh=this.hp=!1;this.mk=this.Xg=this.ud=this.Ce=0;this.Zf=1;this.xc=new Ya;this.ld=new Ya;this.Ki=0;this.lo=!0;this.Wi=this.mi=this.fi=this.Yf=this.Se=this.Ck=0;this.we=null;this.tk=[];this.wk=[];this.ei=-1;this.pl=[[]];this.jm=this.Si=0;this.Ml(null);this.ro=this.$g=0;this.kl=!0;this.sg=0;this.yh=[];this.Gj=this.mj=-1;this.zf=!0;this.Qi=0;this.Eg=!1;this.bu=0;this.ff=null;this.Hs=!1;this.il=0;this.ha=this.pf=this.Nl=!1;this.wo=new ca;this.yl=
new ca;this.zl=new ca;this.Kt=[];this.Rc=new $a([]);this.cm=new $a([]);this.Sd=[];this.ti={};this.hf={};this.ef={};this.dg={};this.Om={};this.Rn=this.Mi=this.Rb=this.gc=this.Qn=this.Li=this.Z=null;this.bg=this.el=!1;this.Ek=[null,null];this.Fe=0;this.zk="";this.ge={};this.vj=this.Df=null;this.Vi=[];this.Lt()}}function m(c){c.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(c,a,p,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=m;f.onerror=b;f.onsuccess=function(f){f=
f.target.result;f.onerror=b;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:c,data:a}).onsuccess=p}}function a(c,a,p){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=p;b.onsuccess=function(b){b=b.target.result;b.onerror=p;var f=b.transaction(["saves"]).objectStore("saves").get(c);f.onsuccess=function(){f.result?a(f.result.data):a(null)}}}function e(){M("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function k(c){var a,p={};for(a in c)!c.hasOwnProperty(a)||c[a]instanceof ca||c[a]&&"undefined"!==typeof c[a].rv||(p[a]=c[a]);return p}b.prototype.Lt=function(){var c=this,a;a=this.uf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var p="data.js";if(this.In||this.uf||this.dl)p="data.json";a.open("GET",p,!0);var b=!1;if(!this.ca&&"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(f){b=!1}if(!b&&
"responseType"in a)try{a.responseType="text"}catch(l){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.uf?a.onreadystatechange=function(){4===a.readyState&&c.Oi(JSON.parse(a.responseText))}:(a.onload=function(){if(b)c.Oi(a.response);else if(c.Jc){var p=a.responseText,p=p.substr(p.indexOf("{"));c.Oi(JSON.parse(p))}else c.Oi(JSON.parse(a.responseText))},a.onerror=function(c){ea("Error requesting "+p+":");ea(c)});a.send()};b.prototype.Ns=function(){var c=
this,a,p,b,f,l,n,g,e,k;this.devicePixelRatio=(this.Ne=(!this.ca||this.Jc)&&this.mu&&!this.Ci)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ib();p=!(!this.as&&(!this.Zj||this.de||this.Hn||this.uf||this.Dg||this.vc||this.Dn));0<this.ob&&this.setSize(d(),q(),!0);try{this.wr&&(this.fc||this.Jc||!this.ca)&&(a={alpha:p,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(h){}if(this.m){this.ca||(this.gb=document.createElement("canvas"),jQuery(this.gb).appendTo(this.canvas.parentNode),this.gb.oncontextmenu=function(){return!1},this.gb.onselectstart=function(){return!1},this.gb.width=this.Xh,this.gb.height=this.Wh,jQuery(this.gb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.No(),this.Hl=this.gb.getContext("2d"));this.q=new hb(this.m,this.ad);this.q.Rf(this.canvas.width,this.canvas.height);this.q.an=0!==this.qr;this.aa=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();c.jt();M("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){c.q.yn();c.q.Rf(c.q.width,c.q.height,!0);c.gc=null;c.Rb=null;c.Ek[0]=null;c.Ek[1]=null;c.kt();c.ga=!0;M("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(p=this.n.length;a<p;a++)for(l=this.n[a],b=0,f=l.H.length;b<f;b++)g=l.H[b],g.hb=this.q.Mk(g.id),this.bg=this.bg||this.q.mh(g.hb);a=0;for(p=this.Sb.length;a<
p;a++){e=this.Sb[a];b=0;for(f=e.H.length;b<f;b++)g=e.H[b],g.hb=this.q.Mk(g.id);b=0;for(f=e.K.length;b<f;b++)for(k=e.K[b],l=0,n=k.H.length;l<n;l++)g=k.H[l],g.hb=this.q.Mk(g.id),this.bg=this.bg||this.q.mh(g.hb)}}else{if(0<this.ob&&this.fb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.S?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=
this.S}catch(m){}0!==this.width&&0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(a=this.fc?{antialias:!!this.S,alpha:p}:{alpha:p},this.aa=this.canvas.getContext("2d",a),this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S);this.Hl=this.gb=null}this.Fj=function(){c.ab(!1)};window==window.top||this.ca||this.Hn||this.uf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.fc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(M("Reloading for continuous preview"),this.Pg="__c2_continuouspreview",this.xh=!0),this.yt&&!this.ad&&(jQuery(window).focus(function(){c.setSuspended(!1)}),jQuery(window).blur(function(){c.setSuspended(!0)})));this.ca||(a=function(c){if(gb(c)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.ob&&this.Ne&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.rp();this.Fs();this.go();this.ua={}};
b.prototype.setSize=function(c,a,p){var b=0,f=0,l=0,n=0,n=0,g=this.Ys&&this.Fn&&!navigator.standalone&&!this.ca&&!this.vc;g&&(a+=60);if(this.Kg!==c||this.Jg!==a||p){this.Kg=c;this.Jg=a;var e=this.ob,k=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Eg)&&!this.vc;if(k||0!==this.ob||p)k&&0<this.Fe&&(e=this.Fe),p=this.devicePixelRatio,4<=e?(l=this.Na/this.Ma,c/a>l?(l*=a,5===e?(n=l*p/this.Na,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),
l=this.Na*n/p,n=this.Ma*n/p,b=(c-l)/2,f=(a-n)/2,c=l,a=n):(b=(c-l)/2,c=l)):(n=c/l,5===e?(n=n*p/this.Ma,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),l=this.Na*n/p,n=this.Ma*n/p,b=(c-l)/2,f=(a-n)/2,c=l):f=(a-n)/2,a=n),k&&!this.de&&(f=b=0)):this.de&&this.Eg&&0===this.jn&&(b=Math.floor((c-this.Na)/2),f=Math.floor((a-this.Ma)/2),c=this.Na,a=this.Ma),2>e&&(this.ig=p),this.Ne&&this.Kn&&1<p&&(1024<=c&&(c=1023),1024<=a&&(a=1023)),this.Xh=Math.round(c),this.Wh=Math.round(a),this.width=Math.round(c*p),this.height=
Math.round(a*p),this.ga=!0,this.Cp?(this.M=this.width,this.L=this.height,this.qc=!0):this.width<this.Na&&this.height<this.Ma||1===e?(this.M=this.width,this.L=this.height,this.qc=!0):(this.M=this.Na,this.L=this.Ma,this.qc=!1,2===e?(l=this.Na/this.Ma,e=this.Kg/this.Jg,e<l?this.M=this.L*e:e>l&&(this.L=this.M/e)):3===e&&(l=this.Na/this.Ma,e=this.Kg/this.Jg,e>l?this.M=this.L*e:e<l&&(this.L=this.M/e))),this.Um&&!this.ca&&(jQuery(this.Um).css({width:Math.round(c)+"px",height:Math.round(a)+"px","margin-left":Math.floor(b)+
"px","margin-top":Math.floor(f)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(c)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(c*p),this.canvas.height=Math.round(a*p),this.Jc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(c)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Ne&&!this.ca&&jQuery(this.canvas).css({width:Math.round(c)+"px",height:Math.round(a)+
"px"})),this.gb&&(this.gb.width=Math.round(c),this.gb.height=Math.round(a),jQuery(this.gb).css({width:Math.round(c)+"px",height:Math.round(a)+"px"})),this.q&&this.q.Rf(Math.round(c*p),Math.round(a*p)),this.fb&&this.aa&&(this.aa.width=Math.round(c),this.aa.height=Math.round(a)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S),this.rp(),this.ca||!g&&!this.fl||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};b.prototype.rp=function(){if(this.Pq&&0!==this.Fl){var c="portrait";2===this.Fl&&(c="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(c):screen.lockOrientation?screen.lockOrientation(c):screen.webkitLockOrientation?screen.webkitLockOrientation(c):screen.mozLockOrientation?screen.mozLockOrientation(c):screen.msLockOrientation&&screen.msLockOrientation(c)}};b.prototype.jt=function(){this.q.Wq();this.el=!0;var c,a,p;c=0;for(a=this.n.length;c<a;c++)p=this.n[c],
p.Xi&&p.Xi()};b.prototype.kt=function(){this.el=!1;var c,a,p;c=0;for(a=this.n.length;c<a;c++)p=this.n[c],p.Yi&&p.Yi()};b.prototype.No=function(){if(!this.ca){var c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Eg)&&!this.vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();c.position="absolute";jQuery(this.gb).css(c)}};var u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;b.prototype.setSuspended=function(c){var a;if(c&&!this.Fg)for(M("[Construct 2] Suspending"),this.Fg=!0,-1!==this.mj&&u&&u(this.mj),-1!==this.Gj&&clearTimeout(this.Gj),c=0,a=this.yh.length;c<a;c++)this.yh[c](!0);else if(!c&&this.Fg){M("[Construct 2] Resuming");this.Fg=!1;this.Ki=U();this.Se=U();c=this.Xg=this.mi=0;for(a=this.yh.length;c<a;c++)this.yh[c](!1);this.ab(!1)}};b.prototype.Lq=function(c){this.yh.push(c)};b.prototype.Pd=function(c){return this.Vi[c]};b.prototype.Oi=
function(c){c&&c.project||ea("Project model unavailable");c=c.project;this.name=c[0];this.hn=c[1];this.ob=c[12];this.jn=c[12];this.Na=c[10];this.Ma=c[11];this.Go=this.Na/2;this.Ho=this.Ma/2;this.ca&&!this.Jc&&(4<=c[12]||0===c[12])&&(M("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.jn=this.ob=3);this.qm=c[18];this.Rg=c[19];0===this.Rg&&(this.Df=new Image,this.Df.src="loading-logo.png");this.$g=c[21];this.Vi=fc();this.hd=new Y(this);
var a,p,b,f,l,n,g,e,k;a=0;for(p=c[2].length;a<p;a++)g=c[2][a],b=this.Pd(g[0]),ib(g,b.prototype),k=new b(this),k.tj=g[1],k.ee=g[2],k.po=g[9],k.ja&&k.ja(),this.plugins.push(k);this.Vi=fc();a=0;for(p=c[3].length;a<p;a++){g=c[3][a];l=this.Pd(g[1]);k=null;b=0;for(f=this.plugins.length;b<f;b++)if(this.plugins[b]instanceof l){k=this.plugins[b];break}var h=new k.jb(k);h.name=g[0];h.B=g[2];h.$k=g[3].slice(0);h.ou=g[3].length;h.Qq=g[4];h.cs=g[5];h.P=g[11];h.B?(h.Ui=[],h.wd=this.sg++,h.na=null):(h.Ui=null,h.wd=
-1,h.na=[]);h.ii=null;h.kf=null;h.cn=null;h.Kc=!1;h.Ob=null;g[6]?(h.Cj=g[6][0],h.Dj=g[6][1],h.Ah=g[6][2]):(h.Cj=null,h.Dj=0,h.Ah=0);h.Mb=g[7]?g[7]:null;h.index=a;h.c=[];h.ai=[];h.ne=[new jb(h)];h.td=0;h.Yc=null;h.br=0;h.Wf=!0;h.Mj=kb;h.js=lb;h.os=mb;h.fa=nb;h.nh=ob;h.Ll=qb;h.Of=rb;h.oi=sb;h.Gk=tb;h.Jk=ub;h.od=vb;h.on=wb;h.Th=new ab(this.Na,this.Ma);h.Ih=!0;h.Jh=!1;h.ua={};h.toString=xb;h.Fa=[];b=0;for(f=g[8].length;b<f;b++){e=g[8][b];var m=this.Pd(e[1]),s=null;l=0;for(n=this.Fa.length;l<n;l++)if(this.Fa[l]instanceof
m){s=this.Fa[l];break}s||(s=new m(this),s.qo=[],s.Hf=new ca,s.ja&&s.ja(),this.Fa.push(s));-1===s.qo.indexOf(h)&&s.qo.push(h);l=new s.jb(s,h);l.name=e[0];l.P=e[2];l.ja();h.Fa.push(l)}h.global=g[9];h.bl=g[10];h.H=[];b=0;for(f=g[12].length;b<f;b++)h.H.push({id:g[12][b][0],name:g[12][b][1],hb:-1,Ua:!0,index:b});h.Fv=g[13];this.qm&&!h.B&&!h.bl&&k.ee||h.ja();h.name&&(this.types[h.name]=h);this.n.push(h);k.tj&&(b=new k.Ea(h),b.uid=this.$g++,b.Qo=this.ro++,b.Je=0,b.wg=yb,b.toString=zb,b.pa=g[14],b.ja(),h.c.push(b),
this.ge[b.uid.toString()]=b)}a=0;for(p=c[4].length;a<p;a++)for(l=c[4][a],n=this.n[l[0]],b=1,f=l.length;b<f;b++)g=this.n[l[b]],g.na.push(n),n.Ui.push(g);a=0;for(p=c[27].length;a<p;a++){l=c[27][a];n=[];b=0;for(f=l.length;b<f;b++)n.push(this.n[l[b]]);b=0;for(f=n.length;b<f;b++)n[b].Kc=!0,n[b].Ob=n}if(0<this.sg)for(a=0,p=this.n.length;a<p;a++)if(g=this.n[a],!g.B&&g.na.length){g.ii=Array(this.sg);g.kf=Array(this.sg);g.cn=Array(this.sg);h=[];b=s=m=e=0;for(f=g.na.length;b<f;b++)for(k=g.na[b],g.ii[k.wd]=
e,e+=k.ou,g.kf[k.wd]=m,m+=k.Qq,g.cn[k.wd]=s,s+=k.cs,l=0,n=k.H.length;l<n;l++)h.push(wa({},k.H[l]));g.H=h.concat(g.H);b=0;for(f=g.H.length;b<f;b++)g.H[b].index=b}a=0;for(p=c[5].length;a<p;a++)g=c[5][a],b=new Ab(this,g),this.ll[b.name]=b,this.Sb.push(b);a=0;for(p=c[6].length;a<p;a++)g=c[6][a],b=new Bb(this,g),this.xk[b.name]=b,this.vd.push(b);a=0;for(p=this.vd.length;a<p;a++)this.vd[a].Ca();a=0;for(p=this.vd.length;a<p;a++)this.vd[a].lm();a=0;for(p=this.Kj.length;a<p;a++)this.Kj[a].Ca();this.Kj.length=
0;this.Oq=c[7];this.zk=c[8];this.ed=c[9];this.ig=1;this.wr=c[13];this.S=c[14];this.Zj=c[15];this.mu=c[17];this.Fl=c[20];this.Pq=0<this.Fl;this.yt=c[22];this.qc=this.Cp=c[23];this.qr=c[24];this.Et=c[25];this.yj=Date.now();this.Vi.length=0;this.Ns()};var v=!1;b.prototype.vm=function(c,a){c.cocoonLazyLoad=!0;c.onerror=function(a){v=c.Qm=!0;console&&console.error&&console.error("Error loading image '"+c.src+"': ",a)};this.Jc?c.src=a:c.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){c.src=
a},function(p){v=c.Qm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",p)}):c.src=a);this.eg.push(c)};b.prototype.$r=function(c){var a,p;a=0;for(p=this.eg.length;a<p;a++)if(this.eg[a].Xq===c)return this.eg[a];return null};var l=0,f=!1;b.prototype.Fs=function(){this.ff&&(l=this.ff.Yt(this.Oq))};b.prototype.Nm=function(){var c=l,a=0,p=0,b=!0,g,n,p=0;for(g=this.eg.length;p<g;p++){n=this.eg[p];var e=n.nk;if(!e||0>=e)e=5E4;c+=e;n.src&&(n.complete||n.loaded)&&
!n.Qm?a+=e:b=!1}b&&this.Et&&this.ff&&(f||(this.ff.cu(),f=!0),p=this.ff.ps(),a+=p,p<l&&(b=!1));this.Xe=0==c?0:a/c;return b};b.prototype.go=function(){if(this.aa||this.q){var c=this.aa||this.Hl;this.gb&&this.No();this.Xe=0;this.Pn=-1;if(this.Nm())this.Gs();else{var a=Date.now()-this.yj;if(c){var b=this.width,f=this.height,l=this.devicePixelRatio;this.gb&&(b=this.Xh,f=this.Wh,l=1);if(3!==this.Rg&&(this.fc||500<=a&&this.Pn!=this.Xe)){c.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Rg&&this.Df.complete,
g=40*l,n=0,e=80*l,k;b&&(e=this.Df.width*l,k=this.Df.height*l,g=e/2,n=k/2,c.drawImage(this.Df,Q(a-g),Q(f-n),e,k));1>=this.Rg?(a=Q(a-g)+.5,f=Q(f+(n+(b?12*l:0)))+.5,c.fillStyle=v?"red":"DodgerBlue",c.fillRect(a,f,Math.floor(e*this.Xe),6*l),c.strokeStyle="black",c.strokeRect(a,f,e,6*l),c.strokeStyle="white",c.strokeRect(a-1*l,f-1*l,e+2*l,8*l)):2===this.Rg&&(c.font=this.Jc?"12pt ArialMT":"12pt Arial",c.fillStyle=v?"#f00":"#999",c.Ev="middle",l=Math.round(100*this.Xe)+"%",b=c.measureText?c.measureText(l):
null,c.fillText(l,a-(b?b.width:0)/2,f))}this.Pn=this.Xe}setTimeout(function(c){return function(){c.go()}}(this),this.fc?10:100)}}};b.prototype.Gs=function(){this.gb&&(this.canvas.parentNode.removeChild(this.gb),this.gb=this.Hl=null);this.yj=Date.now();this.Se=U();var c,a,b;if(this.qm)for(c=0,a=this.n.length;c<a;c++)b=this.n[c],b.B||b.bl||!b.Ba.ee||b.ja();else this.zf=!1;c=0;for(a=this.Sb.length;c<a;c++)this.Sb[c].Yq();2<=this.ob&&(c=this.Na/this.Ma,a=this.width/this.height,this.ig=2!==this.ob&&a>
c||2===this.ob&&a<c?this.height/this.Ma:this.width/this.Na);this.hn?this.ll[this.hn].$l():this.Sb[0].$l();this.qm||(this.Qi=1,this.trigger(Y.prototype.i.Bm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();c=0;for(a=this.n.length;c<a;c++)b=this.n[c],b.it&&b.it();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ab(!1);this.fb&&AppMobi.webview.execute("onGameReady();")};var s=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.ab=function(c){if(this.Z){var a=U();if(this.Hs&&this.Nl&&29>a-this.il)this.Nl=!1,this.il=a,s?this.mj=s(this.Fj,this.canvas):this.Gj=setTimeout(this.Fj,this.ad?1:16);else{this.Nl=!0;this.il=a;var b=this.ob,f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.vc;(f||this.Eg)&&0<this.Fe&&(b=this.Fe);
0<b&&(!this.Gi||window.self!==window.top)&&(b=window.innerHeight,this.Kg===window.innerWidth&&this.Jg===b||this.setSize(d(),q()));this.ca||(f?(this.ki||(this.Dk=jQuery(this.canvas).css("margin")||"0",this.ki=!0),this.Cg||this.de||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.ki?(this.Cg||this.de||jQuery(this.canvas).css("margin",this.Dk),this.Dk=
"",this.ki=!1,0===this.ob&&this.setSize(Math.round(this.yo/this.devicePixelRatio),Math.round(this.xo/this.devicePixelRatio),!0)):(this.yo=this.width,this.xo=this.height));this.zf&&(f=this.Nm(),this.Qi=this.Xe,f&&(this.zf=!1,this.Xe=1,this.trigger(Y.prototype.i.Bm,null)));this.bt();!this.ga&&!this.fc||this.el||this.xh||c||(this.ga=!1,this.q?this.Pb():this.Hc(),this.vj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.vj[0],this.vj[1]),this.trigger(Y.prototype.i.bq,null)),this.vj=null));
this.yv||(this.Yf++,this.fi++,this.mi++);this.Xg+=U()-a;this.Fg||c||(s?this.mj=s(this.Fj,this.canvas):this.Gj=setTimeout(this.Fj,this.ad?1:16))}}};b.prototype.bt=function(){var c,a,b,f,l,g,n,e,k;c=U();1E3<=c-this.Se&&(this.Se+=1E3,1E3<=c-this.Se&&(this.Se=c),this.Ck=this.mi,this.mi=0,this.mk=this.Xg,this.Xg=0);this.lo&&(0!==this.Ki&&(a=c-this.Ki,0!==a||this.Rs?(this.ud=a/1E3,.5<this.ud?this.ud=0:.1<this.ud&&(this.ud=.1)):(10<=this.Gv&&(this.lo=!1),this.ud=1/60)),this.Ki=c);this.Ce=this.ud*this.Zf;
this.xc.add(this.Ce);this.ld.add(this.ud);c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Eg)&&!this.vc;2<=this.ob||c&&0<this.Fe?(a=this.Na/this.Ma,b=this.width/this.height,f=this.ob,c&&0<this.Fe&&(f=this.Fe),this.ig=2!==f&&b>a||2===f&&b<a?this.height/this.Ma:this.width/this.Na,this.Z&&(this.Z.Wo(this.Z.scrollX),this.Z.Xo(this.Z.scrollY))):this.ig=this.Ne?this.devicePixelRatio:1;this.ib();this.Bd++;this.hd.Ot();this.Bd--;this.ib();
this.Bd++;b=this.wo.Uc();c=0;for(a=b.length;c<a;c++)b[c].Av();c=0;for(a=this.n.length;c<a;c++)if(n=this.n[c],!n.B&&(n.Fa.length||n.na.length))for(b=0,f=n.c.length;b<f;b++)for(e=n.c[b],l=0,g=e.G.length;l<g;l++)e.G[l].ab();c=0;for(a=this.n.length;c<a;c++)if(n=this.n[c],!n.B&&(n.Fa.length||n.na.length))for(b=0,f=n.c.length;b<f;b++)for(e=n.c[b],l=0,g=e.G.length;l<g;l++)k=e.G[l],k.Dt&&k.Dt();b=this.yl.Uc();c=0;for(a=b.length;c<a;c++)b[c].ab();this.Bd--;this.Is();for(c=0;this.we&&10>c++;)this.Ym(this.we);
c=0;for(a=this.vd.length;c<a;c++)this.vd[c].Tk=!1;this.Z.De&&this.Z.De.Qa();this.Kt.length=0;this.kl=!1;this.Bd++;c=0;for(a=this.n.length;c<a;c++)if(n=this.n[c],!n.B&&(n.Fa.length||n.na.length))for(b=0,f=n.c.length;b<f;b++)for(e=n.c[b],l=0,g=e.G.length;l<g;l++)k=e.G[l],k.fm&&k.fm();b=this.zl.Uc();c=0;for(a=b.length;c<a;c++)b[c].fm();this.Bd--};b.prototype.Ym=function(c){var a=this.Z;this.Z.du();var b,f,l,n,g,e,k;if(this.q)for(b=0,f=this.n.length;b<f;b++)g=this.n[b],g.B||!g.Lj||g.global&&0!==g.c.length||
-1!==c.Ag.indexOf(g)||g.Lj();a==c&&(this.hd.Zb.length=0);c.$l();b=0;for(f=this.n.length;b<f;b++)if(g=this.n[b],g.global||g.Ba.tj)for(c=0,a=g.c.length;c<a;c++)if(e=g.c[c],e.El&&e.El(),e.G)for(l=0,n=e.G.length;l<n;l++)k=e.G[l],k.El&&k.El();this.kl=this.ga=!0;this.ib()};b.prototype.gm=function(c){this.yl.add(c)};b.prototype.fu=function(c){this.zl.add(c)};b.prototype.Hk=function(c){return c&&-1!==c.Zg?this.ud*c.Zg:this.Ce};b.prototype.Hc=function(){this.Z.Hc(this.aa);this.fb&&this.aa.present()};b.prototype.Pb=
function(){this.Z.Pb(this.q);this.q.Gt()};b.prototype.Jq=function(c){c&&this.tk.push(c)};b.prototype.ri=function(c){c=c.toString();return this.ge.hasOwnProperty(c)?this.ge[c]:null};var g=[];b.prototype.Od=function(c){var a,b;a=c.type.name;var f=null;if(this.Ae.hasOwnProperty(a)){if(f=this.Ae[a],f.contains(c))return}else f=g.length?g.pop():new ca,this.Ae[a]=f;f.add(c);this.be=!0;if(c.Kc)for(a=0,b=c.siblings.length;a<b;a++)this.Od(c.siblings[a]);this.al&&f.cg.push(c);this.Bd++;this.trigger(Object.getPrototypeOf(c.type.Ba).i.dq,
c);this.Bd--};b.prototype.ib=function(){if(this.be){var c,a,b,f,l,g;this.al=!0;b=0;for(l=this.Gc.length;b<l;++b)for(c=this.Gc[b],a=c.type,a.c.push(c),f=0,g=a.na.length;f<g;++f)a.na[f].c.push(c),a.na[f].Wf=!0;this.Gc.length=0;this.Tp();Ua(this.Ae);this.be=this.al=!1}};b.prototype.Tp=function(){for(var c in this.Ae)this.Ae.hasOwnProperty(c)&&this.Gp(this.Ae[c])};b.prototype.Gp=function(c){var a=c.Uc(),b=a[0].type,f,l,n,e,k,h;Va(b.c,c);b.Wf=!0;0===b.c.length&&(b.Jh=!1);f=0;for(l=b.na.length;f<l;++f)h=
b.na[f],Va(h.c,c),h.Wf=!0;f=0;for(l=this.hd.Zb.length;f<l;++f)if(k=this.hd.Zb[f],k.Xb.hasOwnProperty(b.index)&&Va(k.Xb[b.index].Le,c),!b.B)for(n=0,e=b.na.length;n<e;++n)h=b.na[n],k.Xb.hasOwnProperty(h.index)&&Va(k.Xb[h.index].Le,c);if(k=a[0].d){if(k.Tc)for(n=k.c,f=0,l=n.length;f<l;++f)e=n[f],c.contains(e)&&(e.la(),k.Ub.update(e,e.Ib,null),e.Ib.set(0,0,-1,-1));Va(k.c,c);k.th(0)}for(f=0;f<a.length;++f)this.Fp(a[f],b);c.clear();g.push(c);this.ga=!0};b.prototype.Fp=function(c,a){var b,f,l;b=0;for(f=this.tk.length;b<
f;++b)this.tk[b](c);c.Wd&&a.Th.update(c,c.Wd,null);(b=c.d)&&b.Pf(c,!0);if(c.G)for(b=0,f=c.G.length;b<f;++b)l=c.G[b],l.ah&&l.ah(),l.behavior.Hf.remove(c);this.wo.remove(c);this.yl.remove(c);this.zl.remove(c);c.ah&&c.ah();this.ge.hasOwnProperty(c.uid.toString())&&delete this.ge[c.uid.toString()];this.Wi--;100>a.ai.length&&a.ai.push(c)};var w=[];b.prototype.ze=function(c,a,b,f,l,n){var g,e,k,h;if(!c)return null;var m=this.n[c[1]],s=m.Ba.ee;if(this.zf&&s&&!m.bl||s&&!this.q&&11===c[0][11])return null;
var E=a;s||(a=null);var d;m.ai.length?(d=m.ai.pop(),d.Pc=!0,m.Ba.Ea.call(d,m)):(d=new m.Ba.Ea(m),d.Pc=!1);d.uid=b&&!n?c[2]:this.$g++;this.ge[d.uid.toString()]=d;d.Qo=this.ro++;d.Je=m.c.length;g=0;for(e=this.Gc.length;g<e;++g)this.Gc[g].type===m&&d.Je++;d.wg=yb;d.toString=zb;k=c[3];if(d.Pc)Ua(d.ua);else{d.ua={};if("undefined"!==typeof cr_is_preview)for(d.Bn=[],d.Bn.length=k.length,g=0,e=k.length;g<e;g++)d.Bn[g]=k[g][1];d.La=[];d.La.length=k.length}g=0;for(e=k.length;g<e;g++)d.La[g]=k[g][0];if(s){var t=
c[0];d.x=ga(f)?t[0]:f;d.y=ga(l)?t[1]:l;d.z=t[2];d.width=t[3];d.height=t[4];d.depth=t[5];d.e=t[6];d.opacity=t[7];d.Cb=t[8];d.Db=t[9];d.tb=t[10];g=t[11];!this.q&&m.H.length&&(d.tb=g);d.lg=cb(d.tb);this.m&&db(d,d.tb,this.m);if(d.Pc){g=0;for(e=t[12].length;g<e;g++)for(k=0,h=t[12][g].length;k<h;k++)d.ta[g][k]=t[12][g][k];d.ya.set(0,0,0,0);d.Wd.set(0,0,-1,-1);d.Ib.set(0,0,-1,-1);d.Nb.Tf(d.ya);d.dk.length=0}else{d.ta=t[12].slice(0);g=0;for(e=d.ta.length;g<e;g++)d.ta[g]=t[12][g].slice(0);d.U=[];d.Qd=[];d.Qd.length=
m.H.length;d.ya=new R(0,0,0,0);d.Wd=new R(0,0,-1,-1);d.Ib=new R(0,0,-1,-1);d.Nb=new va;d.dk=[];d.va=Cb;d.Mq=Db;d.bb=Eb;d.la=Fb;d.lu=Gb;d.pm=Hb;d.tc=Ib}d.Bh=!1;d.iu=0;d.hu=0;d.gu=null;14===t.length&&(d.Bh=!0,d.iu=t[13][0],d.hu=t[13][1],d.gu=t[13][2]);g=0;for(e=m.H.length;g<e;g++)d.Qd[g]=!0;d.Md=Jb;d.Md();d.Ap=!!d.U.length;d.Oh=!0;d.fk=!0;m.Ih=!0;d.visible=!0;d.Zg=-1;d.d=a;d.Vc=a.c.length;"undefined"===typeof d.W&&(d.W=null);this.ga=d.xe=!0}var q;g=w.length=0;for(e=m.na.length;g<e;g++)w.push.apply(w,
m.na[g].Fa);w.push.apply(w,m.Fa);if(d.Pc)for(g=0,e=w.length;g<e;g++){var u=w[g];q=d.G[g];q.Pc=!0;u.behavior.Ea.call(q,u,d);t=c[4][g];k=0;for(h=t.length;k<h;k++)q.pa[k]=t[k];q.ja();u.behavior.Hf.add(d)}else for(d.G=[],g=0,e=w.length;g<e;g++)u=w[g],q=new u.behavior.Ea(u,d),q.Pc=!1,q.pa=c[4][g].slice(0),q.ja(),d.G.push(q),u.behavior.Hf.add(d);t=c[5];if(d.Pc)for(g=0,e=t.length;g<e;g++)d.pa[g]=t[g];else d.pa=t.slice(0);this.Gc.push(d);this.be=!0;a&&(a.hg(d,!0),1!==a.Gb||1!==a.Hb)&&(m.Jh=!0);this.Wi++;
if(m.Kc){if(d.Kc=!0,d.Pc?d.siblings.length=0:d.siblings=[],!b&&!n){g=0;for(e=m.Ob.length;g<e;g++)if(m.Ob[g]!==m){if(!m.Ob[g].Yc)return null;d.siblings.push(this.ze(m.Ob[g].Yc,E,!1,s?d.x:f,s?d.y:l,!0))}g=0;for(e=d.siblings.length;g<e;g++)for(d.siblings[g].siblings.push(d),k=0;k<e;k++)g!==k&&d.siblings[g].siblings.push(d.siblings[k])}}else d.Kc=!1,d.siblings=null;d.ja();g=0;for(e=d.G.length;g<e;g++)d.G[g].Ct&&d.G[g].Ct();return d};b.prototype.ug=function(c){var a,b;a=0;for(b=this.Z.K.length;a<b;a++){var f=
this.Z.K[a];if(fb(f.name,c))return f}return null};b.prototype.yd=function(c){c=Q(c);0>c&&(c=0);c>=this.Z.K.length&&(c=this.Z.K.length-1);return this.Z.K[c]};b.prototype.kk=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].fa().ka=!0};b.prototype.nh=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].nh()};b.prototype.Ll=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].Ll()};b.prototype.Of=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].Of()};b.prototype.xp=function(c){if(c.Ih){var a,b,f=
c.c;a=0;for(b=f.length;a<b;++a)f[a].pm();f=this.Gc;a=0;for(b=f.length;a<b;++a)f[a].type===c&&f[a].pm();c.Ih=!1}};b.prototype.hs=function(c,a,b,f){var g,l,n=c?1!==c.Gb||1!==c.Hb:!1;if(a.B)for(c=0,g=a.Ui.length;c<g;++c)l=a.Ui[c],n||l.Jh?za(f,l.c):(this.xp(l),l.Th.lj(b,f));else n||a.Jh?za(f,a.c):(this.xp(a),a.Th.lj(b,f))};b.prototype.Xf=function(c,a,b,f){var g=c.fa(),l,n,e,k,h,d;if(g.ka)for(f||(g.ka=!1,g.c.length=0),l=0,k=c.c.length;l<k;l++){if(e=c.c[l],e.la(),h=e.d.ma(a,b,!0),d=e.d.ma(a,b,!1),e.bb(h,
d)){if(f)return!1;g.c.push(e)}}else{l=n=0;for(k=g.c.length;l<k;l++)if(e=g.c[l],e.la(),h=e.d.ma(a,b,!0),d=e.d.ma(a,b,!1),e.bb(h,d)){if(f)return!1;g.c[n]=g.c[l];n++}f||(g.c.length=n)}c.od();return f?!0:g.Sk()};b.prototype.eu=function(c,a){if(!(c&&a&&c!==a&&c.xe&&a.xe))return!1;c.la();a.la();var b=c.d,f=a.d,g,l,n,e,k,h,d,m;if(b===f||b.Gb===f.Gb&&f.Hb===f.Hb&&b.scale===f.scale&&b.e===f.e&&b.nb===f.nb){if(!c.ya.Os(a.ya)||!c.Nb.Cn(a.Nb)||c.Bh&&a.Bh)return!1;if(c.Bh)return this.lp(c,a);if(a.Bh)return this.lp(a,
c);d=c.W&&!c.W.vf();g=a.W&&!a.W.vf();if(!d&&!g)return!0;d?(c.W.gf(c.width,c.height,c.e),d=c.W):(this.Rc.Sf(c.Nb,c.x,c.y,c.width,c.height),d=this.Rc);g?(a.W.gf(a.width,a.height,a.e),m=a.W):(this.Rc.Sf(a.Nb,a.x,a.y,a.width,a.height),m=this.Rc);return d.Bg(m,a.x-c.x,a.y-c.y)}d=c.W&&!c.W.vf();g=a.W&&!a.W.vf();d?(c.W.gf(c.width,c.height,c.e),this.Rc.bp(c.W)):this.Rc.Sf(c.Nb,c.x,c.y,c.width,c.height);d=this.Rc;g?(a.W.gf(a.width,a.height,a.e),this.cm.bp(a.W)):this.cm.Sf(a.Nb,a.x,a.y,a.width,a.height);m=
this.cm;g=0;for(l=d.Oc;g<l;g++)n=2*g,e=n+1,k=d.Oa[n],h=d.Oa[e],d.Oa[n]=b.pb(k+c.x,h+c.y,!0),d.Oa[e]=b.pb(k+c.x,h+c.y,!1);d.la();g=0;for(l=m.Oc;g<l;g++)n=2*g,e=n+1,k=m.Oa[n],h=m.Oa[e],m.Oa[n]=f.pb(k+a.x,h+a.y,!0),m.Oa[e]=f.pb(k+a.x,h+a.y,!1);m.la();return d.Bg(m,0,0)};var t=new va;new R(0,0,0,0);var n=[];b.prototype.lp=function(c,a){var b,f,g,l,e=a.ya,k=c.x,h=c.y;c.uv(e,n);var d=a.W&&!a.W.vf();b=0;for(f=n.length;b<f;++b)if(g=n[b],l=g.Bv,e.Ps(l,k,h)&&(t.Tf(l),t.offset(k,h),t.Cn(a.Nb)))if(d)if(a.W.gf(a.width,
a.height,a.e),g.Jl){if(g.Jl.Bg(a.W,a.x-(k+l.left),a.y-(h+l.top)))return n.length=0,!0}else{if(this.Rc.Sf(t,0,0,l.right-l.left,l.bottom-l.top),this.Rc.Bg(a.W,a.x,a.y))return n.length=0,!0}else if(g.Jl){if(this.Rc.Sf(a.Nb,0,0,a.width,a.height),g.Jl.Bg(this.Rc,-(k+l.left),-(h+l.top)))return n.length=0,!0}else return n.length=0,!0;n.length=0;return!1};b.prototype.sp=function(c,a){if(!a)return!1;var b,f,g,l,n;b=0;for(f=c.Fa.length;b<f;b++)if(c.Fa[b].behavior instanceof a)return!0;if(!c.B)for(b=0,f=c.na.length;b<
f;b++)for(n=c.na[b],g=0,l=n.Fa.length;g<l;g++)if(n.Fa[g].behavior instanceof a)return!0;return!1};b.prototype.tp=function(c){return this.sp(c,Yb.Pu)};b.prototype.km=function(c){return this.sp(c,Yb.Qu)};var E=-1;b.prototype.trigger=function(c,a,b){if(!this.Z)return!1;var f=this.Z.De;if(!f)return!1;var g=!1,l,n,e;E++;var k=f.sk;n=0;for(e=k.length;n<e;++n)l=this.pp(c,a,k[n],b),g=g||l;l=this.pp(c,a,f,b);E--;return g||l};b.prototype.pp=function(c,a,b,f){var g=!1,l,n,e,k;if(a)for(e=this.im(c,a,a.type.name,
b,f),g=g||e,k=a.type.na,l=0,n=k.length;l<n;++l)e=this.im(c,a,k[l].name,b,f),g=g||e;else e=this.im(c,a,"system",b,f),g=g||e;return g};b.prototype.im=function(c,a,b,f,g){var l,n=!1,e=!1,e="undefined"!==typeof g,k=(e?f.en:f.qp)[b];if(!k)return n;var h=null;f=0;for(l=k.length;f<l;++f)if(k[f].method==c){h=k[f].rg;break}if(!h)return n;c=e?h[g]:h;if(!c)return null;f=0;for(l=c.length;f<l;f++)g=c[f][0],e=c[f][1],e=this.Yr(a,b,g,e),n=n||e;return n};b.prototype.Yr=function(c,a,b,f){var g,l,n=!1;this.jm++;var e=
this.Ab().oc;e&&this.nh(e.le);var k=1<this.jm;this.nh(b.le);k&&this.It();var h=this.Ml(b);h.oc=b;c&&(g=this.types[a].fa(),g.ka=!1,g.c.length=1,g.c[0]=c,this.types[a].od());c=!0;if(b.parent){a=h.kp;for(g=b.parent;g;)a.push(g),g=g.parent;a.reverse();g=0;for(l=a.length;g<l;g++)if(!a[g].Qt()){c=!1;break}}c&&(this.fi++,b.Mc?b.Pt(f):b.Qa(),n=n||h.Re);this.Mo();k&&this.Bt();this.Of(b.le);e&&this.Of(e.le);this.be&&0===this.Bd&&0===E&&!this.cl&&this.ib();this.jm--;return n};b.prototype.pi=function(){var c=
this.Ab();return c.oc.kb[c.zb]};b.prototype.It=function(){this.Si++;this.Si>=this.pl.length&&this.pl.push([])};b.prototype.Bt=function(){this.Si--};b.prototype.mn=function(){return this.pl[this.Si]};b.prototype.Ml=function(c){this.ei++;this.ei>=this.wk.length&&this.wk.push(new Kb);var a=this.Ab();a.reset(c);return a};b.prototype.Mo=function(){this.ei--};b.prototype.Ab=function(){return this.wk[this.ei]};b.prototype.nn=function(c,a){for(var b,f,g,l,n,e;a;){b=0;for(f=a.Cc.length;b<f;b++)if(e=a.Cc[b],
e instanceof Lb&&fb(c,e.name))return e;a=a.parent}b=0;for(f=this.vd.length;b<f;b++)for(n=this.vd[b],g=0,l=n.$d.length;g<l;g++)if(e=n.$d[g],e instanceof Lb&&fb(c,e.name))return e;return null};b.prototype.pn=function(c){var a,b;a=0;for(b=this.Sb.length;a<b;a++)if(this.Sb[a].P===c)return this.Sb[a];return null};b.prototype.si=function(c){var a,b;a=0;for(b=this.n.length;a<b;a++)if(this.n[a].P===c)return this.n[a];return null};b.prototype.ks=function(c){var a,b;a=0;for(b=this.Sd.length;a<b;a++)if(this.Sd[a].P===
c)return this.Sd[a];return null};b.prototype.Is=function(){var c=this,b=this.pj,f=this.Cd,g=this.Pg,l=!1;this.hp&&(l=!0,b="__c2_continuouspreview",this.hp=!1);if(b.length){this.ib();f=this.Ut();if(window.indexedDB&&!this.fc)h(b,f,function(){M("Saved state to IndexedDB storage ("+f.length+" bytes)");c.Cd=f;c.trigger(Y.prototype.i.Uj,null);c.Cd="";l&&e()},function(a){try{localStorage.setItem("__c2save_"+b,f),M("Saved state to WebStorage ("+f.length+" bytes)"),c.Cd=f,c.trigger(Y.prototype.i.Uj,null),
c.Cd="",l&&e()}catch(g){M("Failed to save game state: "+a+"; "+g)}});else try{localStorage.setItem("__c2save_"+b,f),M("Saved state to WebStorage ("+f.length+" bytes)"),c.Cd=f,this.trigger(Y.prototype.i.Uj,null),c.Cd="",l&&e()}catch(n){M("Error saving to WebStorage: "+n)}this.rb=this.Pg=this.pj=""}g.length&&(window.indexedDB&&!this.fc?a(g,function(a){a?(c.rb=a,M("Loaded state from IndexedDB storage ("+c.rb.length+" bytes)")):(c.rb=localStorage.getItem("__c2save_"+g)||"",M("Loaded state from WebStorage ("+
c.rb.length+" bytes)"));c.xh=!1;c.rb.length||c.trigger(Y.prototype.i.Sj,null)},function(){c.rb=localStorage.getItem("__c2save_"+g)||"";M("Loaded state from WebStorage ("+c.rb.length+" bytes)");c.xh=!1;c.rb.length||c.trigger(Y.prototype.i.Sj,null)}):(this.rb=localStorage.getItem("__c2save_"+g)||"",M("Loaded state from WebStorage ("+this.rb.length+" bytes)"),this.xh=!1,c.rb.length||c.trigger(Y.prototype.i.Sj,null)),this.pj=this.Pg="");this.rb.length&&(this.ib(),this.$s(this.rb),this.Cd=this.rb,this.trigger(Y.prototype.i.qq,
null),this.rb=this.Cd="")};b.prototype.Ut=function(){var c,a,b,f,g,l,n,e={c2save:!0,version:1,rt:{time:this.xc.ba,walltime:this.ld.ba,timescale:this.Zf,tickcount:this.Yf,execcount:this.fi,next_uid:this.$g,running_layout:this.Z.P,start_time_offset:Date.now()-this.yj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(a=this.n.length;c<a;c++)if(g=this.n[c],!g.B&&!this.tp(g)){l={instances:[]};Ta(g.ua)&&(l.ex=k(g.ua));b=0;for(f=g.c.length;b<f;b++)l.instances.push(this.Vl(g.c[b]));
e.types[g.P.toString()]=l}c=0;for(a=this.Sb.length;c<a;c++)b=this.Sb[c],e.layouts[b.P.toString()]=b.Vb();f=e.events.groups;c=0;for(a=this.Sd.length;c<a;c++)b=this.Sd[c],f[b.P.toString()]=this.ti[b.xg].nf;a=e.events.cnds;for(n in this.hf)this.hf.hasOwnProperty(n)&&(c=this.hf[n],Ta(c.ua)&&(a[n]={ex:k(c.ua)}));a=e.events.acts;for(n in this.ef)this.ef.hasOwnProperty(n)&&(c=this.ef[n],Ta(c.ua)&&(a[n]={ex:c.ua}));a=e.events.vars;for(n in this.dg)this.dg.hasOwnProperty(n)&&(c=this.dg[n],c.Di||c.parent&&
!c.Hg||(a[n]=c.data));e.system=this.hd.Vb();return JSON.stringify(e)};b.prototype.Ro=function(){var c,a,b,f,g,l;this.ge={};c=0;for(a=this.n.length;c<a;c++)if(b=this.n[c],!b.B)for(f=0,g=b.c.length;f<g;f++)l=b.c[f],this.ge[l.uid.toString()]=l};b.prototype.$s=function(c){c=JSON.parse(c);if(c.c2save&&!(1<c.version)){var a=c.rt;this.xc.reset();this.xc.ba=a.time;this.ld.reset();this.ld.ba=a.walltime||0;this.Zf=a.timescale;this.Yf=a.tickcount;this.fi=a.execcount;this.yj=Date.now()-a.start_time_offset;var b=
a.running_layout;if(b!==this.Z.P)if(b=this.pn(b))this.Ym(b);else return;var f,g,l,n,e,k,h;k=c.types;for(g in k)if(k.hasOwnProperty(g)&&(n=this.si(parseInt(g,10)))&&!n.B&&!this.tp(n)){k[g].ex?n.ua=k[g].ex:Ua(n.ua);e=n.c;l=k[g].instances;b=0;for(f=oa(e.length,l.length);b<f;b++)this.Ni(e[b],l[b]);b=l.length;for(f=e.length;b<f;b++)this.Od(e[b]);b=e.length;for(f=l.length;b<f;b++){e=null;if(n.Ba.ee&&(e=this.Z.qi(l[b].w.l),!e))continue;e=this.ze(n.Yc,e,!1,0,0,!0);this.Ni(e,l[b])}n.Wf=!0}this.ib();this.Ro();
f=c.layouts;for(g in f)f.hasOwnProperty(g)&&(b=this.pn(parseInt(g,10)))&&b.yc(f[g]);f=c.events.groups;for(g in f)f.hasOwnProperty(g)&&(b=this.ks(parseInt(g,10)))&&this.ti[b.xg]&&(this.ti[b.xg].nf=f[g]);b=c.events.cnds;for(g in b)b.hasOwnProperty(g)&&this.hf.hasOwnProperty(g)&&(this.hf[g].ua=b[g].ex);b=c.events.acts;for(g in b)b.hasOwnProperty(g)&&this.ef.hasOwnProperty(g)&&(this.ef[g].ua=b[g].ex);b=c.events.vars;for(g in b)b.hasOwnProperty(g)&&this.dg.hasOwnProperty(g)&&(this.dg[g].data=b[g]);this.$g=
a.next_uid;this.hd.yc(c.system);b=0;for(f=this.n.length;b<f;b++)if(n=this.n[b],!n.B)for(g=0,c=n.c.length;g<c;g++){e=n.c[g];if(n.Kc)for(k=e.wg(),a=e.siblings.length=0,l=n.Ob.length;a<l;a++)h=n.Ob[a],n!==h&&e.siblings.push(h.c[k]);e.md&&e.md();if(e.G)for(a=0,l=e.G.length;a<l;a++)k=e.G[a],k.md&&k.md()}this.ga=!0}};b.prototype.Vl=function(a,b){var f,g,l,n,e;n=a.type;l=n.Ba;var h={};b?h.c2=!0:h.uid=a.uid;Ta(a.ua)&&(h.ex=k(a.ua));if(a.La&&a.La.length)for(h.ivs={},f=0,g=a.La.length;f<g;f++)h.ivs[a.type.$k[f].toString()]=
a.La[f];if(l.ee){l={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.P,zi:a.tc()};0!==a.e&&(l.a=a.e);1!==a.opacity&&(l.o=a.opacity);.5!==a.Cb&&(l.hX=a.Cb);.5!==a.Db&&(l.hY=a.Db);0!==a.tb&&(l.bm=a.tb);a.visible||(l.v=a.visible);a.xe||(l.ce=a.xe);-1!==a.Zg&&(l.mts=a.Zg);if(n.H.length)for(l.fx=[],f=0,g=n.H.length;f<g;f++)e=n.H[f],l.fx.push({name:e.name,active:a.Qd[e.index],params:a.ta[e.index]});h.w=l}if(a.G&&a.G.length)for(h.behs={},f=0,g=a.G.length;f<g;f++)n=a.G[f],n.Vb&&(h.behs[n.type.P.toString()]=n.Vb());
a.Vb&&(h.data=a.Vb());return h};b.prototype.ms=function(a,b){var f,g;f=0;for(g=a.$k.length;f<g;f++)if(a.$k[f]===b)return f;return-1};b.prototype.gs=function(a,b){var f,g;f=0;for(g=a.G.length;f<g;f++)if(a.G[f].type.P===b)return f;return-1};b.prototype.Ni=function(a,b,f){var g,l,n,e,k;k=a.type;n=k.Ba;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ua=b.ex:Ua(a.ua);if(l=b.ivs)for(g in l)l.hasOwnProperty(g)&&(f=this.ms(k,parseInt(g,10)),0>f||f>=a.La.length||(a.La[f]=l[g]));if(n.ee){n=b.w;a.d.P!==n.l&&(f=
a.d,a.d=this.Z.qi(n.l),a.d?(f.Pf(a,!0),a.d.hg(a,!0),a.va(),a.d.th(0)):(a.d=f,this.Od(a)));a.x=n.x;a.y=n.y;a.width=n.w;a.height=n.h;a.Vc=n.zi;a.e=n.hasOwnProperty("a")?n.a:0;a.opacity=n.hasOwnProperty("o")?n.o:1;a.Cb=n.hasOwnProperty("hX")?n.hX:.5;a.Db=n.hasOwnProperty("hY")?n.hY:.5;a.visible=n.hasOwnProperty("v")?n.v:!0;a.xe=n.hasOwnProperty("ce")?n.ce:!0;a.Zg=n.hasOwnProperty("mts")?n.mts:-1;a.tb=n.hasOwnProperty("bm")?n.bm:0;a.lg=cb(a.tb);this.m&&db(a,a.tb,this.m);a.va();if(n.hasOwnProperty("fx"))for(f=
0,l=n.fx.length;f<l;f++)e=k.Jk(n.fx[f].name),0>e||(a.Qd[e]=n.fx[f].active,a.ta[e]=n.fx[f].params);a.Md()}if(k=b.behs)for(g in k)k.hasOwnProperty(g)&&(n=this.gs(a,parseInt(g,10)),0>n||a.G[n].yc(k[g]));b.data&&a.yc(b.data)};Mb=function(a){return new b(document.getElementById(a))};Nb=function(a,f){return new b({dc:!0,width:a,height:f})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");
a.Dv=!0;document.body.appendChild(a);a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var b=window.cr_getC2Runtime();b&&b.setSize(d,q)}};window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.De=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.e=0;this.lf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.up=b[3];this.ep=b[4];this.P=b[5];var e=b[6],g,k;this.K=[];this.Ag=[];g=0;for(k=e.length;g<k;g++){var h=new Ob(this,e[g]);h.uo=g;this.K.push(h)}e=b[7];this.Ke=[];g=0;for(k=e.length;g<k;g++){var h=e[g],n=this.b.n[h[1]];n.Yc||(n.Yc=h);this.Ke.push(h);-1===this.Ag.indexOf(n)&&this.Ag.push(n)}this.H=[];this.U=[];this.ta=
[];g=0;for(k=b[8].length;g<k;g++)this.H.push({id:b[8][g][0],name:b[8][g][1],hb:-1,Ua:!0,index:g}),this.ta.push(b[8][g][2].slice(0));this.Md();this.ph=new R(0,0,1,1);this.Ol=new R(0,0,1,1);this.he={}}function q(a,b){return a.Vc-b.Vc}function b(a,b){this.Xa=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.Be=!1;this.Kd=new R(0,0,0,0);this.np=new va;this.Ja=this.xa=this.Ka=this.wa=0;this.$e=!1;this.Nd=-1;this.name=b[0];this.index=b[1];this.P=b[2];this.visible=b[3];this.Ud=b[4];this.Ld=b[5];this.Gb=
b[6];this.Hb=b[7];this.opacity=b[8];this.Bk=b[9];this.Tc=b[10];this.nb=b[11];this.tb=b[12];this.ur=b[13];this.lg="source-over";this.lb=this.mb=0;this.Ub=null;this.Bf=m();this.Hd=!0;this.Ji=new R(0,0,-1,-1);this.nc=new R(0,0,-1,-1);this.Tc&&(this.Ub=new bb(this.b.Na,this.b.Ma));this.ie=!1;var e=b[14],g,k;this.qf=[];g=0;for(k=e.length;g<k;g++){var h=e[g],n=this.b.n[h[1]];n.Yc||(n.Yc=h,n.br=this.index);this.qf.push(h);-1===this.Xa.Ag.indexOf(n)&&this.Xa.Ag.push(n)}this.H=[];this.U=[];this.ta=[];g=0;
for(k=b[15].length;g<k;g++)this.H.push({id:b[15][g][0],name:b[15][g][1],hb:-1,Ua:!0,index:g}),this.ta.push(b[15][g][2].slice(0));this.Md();this.ph=new R(0,0,1,1);this.Ol=new R(0,0,1,1)}function m(){return k.length?k.pop():[]}function h(a){a.length=0;k.push(a)}d.prototype.Tt=function(a){var b=a.type.P.toString();this.he.hasOwnProperty(b)||(this.he[b]=[]);this.he[b].push(this.b.Vl(a))};d.prototype.un=function(){var a=this.K[0];return!a.Ld&&1===a.opacity&&!a.Bk&&a.visible};d.prototype.Md=function(){this.U.length=
0;var a,b,e;a=0;for(b=this.H.length;a<b;a++)e=this.H[a],e.Ua&&this.U.push(e)};d.prototype.Ik=function(a){var b,e,g;b=0;for(e=this.H.length;b<e;b++)if(g=this.H[b],g.name===a)return g;return null};var a=[],e=!0;d.prototype.$l=function(){this.ep&&(this.De=this.b.xk[this.ep],this.De.lm());this.b.Z=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var b,f,k,g,h,d,n;b=0;for(k=this.b.n.length;b<k;b++)if(f=this.b.n[b],!f.B)for(h=f.c,f=0,g=h.length;f<g;f++)if(d=h[f],d.d){var m=d.d.uo;m>=this.K.length&&
(m=this.K.length-1);d.d=this.K[m];-1===d.d.c.indexOf(d)&&d.d.c.push(d);d.d.$e=!0}if(!e)for(b=0,k=this.K.length;b<k;++b)this.K[b].c.sort(q);a.length=0;this.Rq();b=0;for(k=this.K.length;b<k;b++)d=this.K[b],d.Zq(),d.nm();h=!1;if(!this.lf){for(n in this.he)if(this.he.hasOwnProperty(n)&&(f=this.b.si(parseInt(n,10)))&&!f.B&&this.b.km(f)){g=this.he[n];b=0;for(k=g.length;b<k;b++){d=null;if(f.Ba.ee&&(d=this.qi(g[b].w.l),!d))continue;d=this.b.ze(f.Yc,d,!1,0,0,!0);this.b.Ni(d,g[b]);h=!0;a.push(d)}g.length=0}b=
0;for(k=this.K.length;b<k;b++)this.K[b].c.sort(q),this.K[b].$e=!0}h&&(this.b.ib(),this.b.Ro());for(b=0;b<a.length;b++)if(d=a[b],d.type.Kc)for(k=d.wg(),f=0,g=d.type.Ob.length;f<g;f++)n=d.type.Ob[f],d.type!==n&&(n.c.length>k?d.siblings.push(n.c[k]):n.Yc&&(h=this.b.ze(n.Yc,d.d,!0,d.x,d.y,!0),this.b.ib(),n.Mj(),d.siblings.push(h),a.push(h)));b=0;for(k=this.Ke.length;b<k;b++)this.b.ze(this.Ke[b],null,!0);this.b.we=null;this.b.ib();if(this.b.aa&&!this.b.ca)for(b=0,k=this.b.n.length;b<k;b++)n=this.b.n[b],
!n.B&&n.c.length&&n.jj&&n.jj(this.b.aa);b=0;for(k=a.length;b<k;b++)d=a[b],this.b.trigger(Object.getPrototypeOf(d.type.Ba).i.cq,d);a.length=0;this.b.trigger(Y.prototype.i.Am,null);this.lf=!1};d.prototype.Yq=function(){var a,b,e,g,k;b=a=0;for(e=this.Ke.length;a<e;a++)g=this.Ke[a],k=this.b.n[g[1]],k.global?this.b.ze(g,null,!0):(this.Ke[b]=g,b++);this.Ke.length=b};d.prototype.du=function(){this.b.trigger(Y.prototype.i.pq,null);this.b.hd.Zb.length=0;var a,b,k,g,h,d;if(!this.lf)for(a=0,b=this.K.length;a<
b;a++)for(this.K[a].om(),h=this.K[a].c,k=0,g=h.length;k<g;k++)d=h[k],d.type.global||this.b.km(d.type)&&this.Tt(d);a=0;for(b=this.K.length;a<b;a++){h=this.K[a].c;k=0;for(g=h.length;k<g;k++)d=h[k],d.type.global||this.b.Od(d);this.b.ib();h.length=0;this.K[a].$e=!0}a=0;for(b=this.b.n.length;a<b;a++)if(h=this.b.n[a],!(h.global||h.Ba.ee||h.Ba.tj||h.B)){k=0;for(g=h.c.length;k<g;k++)this.b.Od(h.c[k]);this.b.ib()}e=!1};new R(0,0,0,0);d.prototype.Hc=function(a){var b,e=a,g=!1,k=!this.b.qc;k&&(this.b.Mi||(this.b.Mi=
document.createElement("canvas"),b=this.b.Mi,b.width=this.b.M,b.height=this.b.L,this.b.Rn=b.getContext("2d"),g=!0),b=this.b.Mi,e=this.b.Rn,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&(e.webkitImageSmoothingEnabled=this.b.S,e.mozImageSmoothingEnabled=this.b.S,e.msImageSmoothingEnabled=this.b.S,e.imageSmoothingEnabled=this.b.S));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.b.Zj&&!this.un()&&e.clearRect(0,0,this.b.M,this.b.L);var h,n,
g=0;for(h=this.K.length;g<h;g++)n=this.K[g],n.visible&&0<n.opacity&&11!==n.tb&&(n.c.length||!n.Ld)?n.Hc(e):n.nm();k&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.Pb=function(a){var b=0<this.U.length||this.b.bg||!this.b.qc;if(b){this.b.Rb||(this.b.Rb=a.Xd(this.b.M,this.b.L,this.b.S));if(this.b.Rb.kg!==this.b.M||this.b.Rb.jg!==this.b.L)a.deleteTexture(this.b.Rb),this.b.Rb=a.Xd(this.b.M,this.b.L,this.b.S);a.fd(this.b.Rb);this.b.qc||a.Rf(this.b.M,this.b.L)}else this.b.Rb&&(a.fd(null),a.deleteTexture(this.b.Rb),
this.b.Rb=null);this.b.Zj&&!this.un()&&a.clear(0,0,0,0);var e,g,k;e=0;for(g=this.K.length;e<g;e++)k=this.K[e],k.visible&&0<k.opacity&&(k.c.length||!k.Ld)?k.Pb(a):k.nm();b&&(0===this.U.length||1===this.U.length&&this.b.qc?(1===this.U.length?(b=this.U[0].index,a.gd(this.U[0].hb),a.Qf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.e,0,0,this.b.M/2,this.b.L/2,this.ta[b]),a.kj(this.U[0].hb)&&(this.b.ga=!0)):a.gd(0),this.b.qc||a.Rf(this.b.width,this.b.height),a.fd(null),a.Ye(1),a.Wb(this.b.Rb),a.Yo(),
a.je(),a.re(),b=this.b.width/2,e=this.b.height/2,a.oh(-b,e,b,e,b,-e,-b,-e),a.Wb(null)):this.Pl(a,null,null,null))};d.prototype.vg=function(){return 0<this.U.length||this.b.bg||!this.b.qc?this.b.Rb:null};d.prototype.qn=function(){var a=this.K[0].rc(),b,e,g;b=1;for(e=this.K.length;b<e;b++)g=this.K[b],(0!==g.Gb||0!==g.Hb)&&g.rc()<a&&(a=g.rc());return a};d.prototype.Wo=function(a){if(!this.up){var b=1/this.qn()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ga=
!0)};d.prototype.Xo=function(a){if(!this.up){var b=1/this.qn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ga=!0)};d.prototype.Rq=function(){this.Wo(this.scrollX);this.Xo(this.scrollY)};d.prototype.Pl=function(a,b,e,g){var k=e?e.U:b?b.U:this.U,h=1,n=0,d=0,c=0,m=this.b.M,p=this.b.L;e?(h=e.d.rc(),n=e.d.Va(),d=e.d.wa,c=e.d.xa,m=e.d.Ka,p=e.d.Ja):b&&(h=b.rc(),n=b.Va(),d=b.wa,c=b.xa,m=b.Ka,p=b.Ja);var q=this.b.Ek,u,v,y,x,K=0,ha=1,W,D=this.b.M,r=this.b.L,
ua=D/2,N=r/2,G=b?b.ph:this.ph,C=b?b.Ol:this.Ol,H=0,I=0,B=0,O=0,J=D,ja=D,L=r,pa=r,fa=y=0,sa=e?e.d.Va():0;if(e){u=0;for(v=k.length;u<v;u++)y+=a.qs(k[u].hb),fa+=a.rs(k[u].hb);x=e.ya;H=b.pb(x.left,x.top,!0,!0);B=b.pb(x.left,x.top,!1,!0);J=b.pb(x.right,x.bottom,!0,!0);L=b.pb(x.right,x.bottom,!1,!0);0!==sa&&(u=b.pb(x.right,x.top,!0,!0),v=b.pb(x.right,x.top,!1,!0),I=b.pb(x.left,x.bottom,!0,!0),O=b.pb(x.left,x.bottom,!1,!0),x=Math.min(H,J,u,I),J=Math.max(H,J,u,I),H=x,x=Math.min(B,L,v,O),L=Math.max(B,L,v,
O),B=x);H-=y;B-=fa;J+=y;L+=fa;C.left=H/D;C.top=1-B/r;C.right=J/D;C.bottom=1-L/r;I=H=Q(H);O=B=Q(B);ja=J=ra(J);pa=L=ra(L);I-=y;O-=fa;ja+=y;pa+=fa;0>H&&(H=0);0>B&&(B=0);J>D&&(J=D);L>r&&(L=r);0>I&&(I=0);0>O&&(O=0);ja>D&&(ja=D);pa>r&&(pa=r);G.left=H/D;G.top=1-B/r;G.right=J/D;G.bottom=1-L/r}else G.left=C.left=0,G.top=C.top=0,G.right=C.right=1,G.bottom=C.bottom=1;fa=e&&((e.e||sa)&&a.mh(k[0].hb)||0!==y||0!==fa||1!==e.opacity||e.type.Ba.po)||b&&!e&&1!==b.opacity;a.Yo();if(fa){q[K]||(q[K]=a.Xd(D,r,this.b.S));
if(q[K].kg!==D||q[K].jg!==r)a.deleteTexture(q[K]),q[K]=a.Xd(D,r,this.b.S);a.gd(0);a.fd(q[K]);W=pa-O;a.clearRect(I,r-O-W,ja-I,W);e?e.Pb(a):(a.Wb(this.b.gc),a.Ye(b.opacity),a.je(),a.translate(-ua,-N),a.re(),a.Gd(H,L,J,L,J,B,H,B,G));C.left=C.top=0;C.right=C.bottom=1;e&&(x=G.top,G.top=G.bottom,G.bottom=x);K=1;ha=0}a.Ye(1);y=k.length-1;var sa=a.Kl(k[y].hb)||!b&&!e&&!this.b.qc,ba=0;u=0;for(v=k.length;u<v;u++){q[K]||(q[K]=a.Xd(D,r,this.b.S));if(q[K].kg!==D||q[K].jg!==r)a.deleteTexture(q[K]),q[K]=a.Xd(D,
r,this.b.S);a.gd(k[u].hb);ba=k[u].index;a.kj(k[u].hb)&&(this.b.ga=!0);0!=u||fa?(a.Qf(g,1/D,1/r,C.left,C.top,C.right,C.bottom,h,n,d,c,(d+m)/2,(c+p)/2,e?e.ta[ba]:b?b.ta[ba]:this.ta[ba]),a.Wb(null),u!==y||sa?(a.fd(q[K]),W=pa-O,x=r-O-W,a.clearRect(I,x,ja-I,W)):(e?a.ke(e.mb,e.lb):b&&a.ke(b.mb,b.lb),a.fd(g)),a.Wb(q[ha]),a.je(),a.translate(-ua,-N),a.re(),a.Gd(H,L,J,L,J,B,H,B,G),u!==y||sa||a.Wb(null)):(a.fd(q[K]),W=pa-O,x=r-O-W,a.clearRect(I,x,ja-I,W),e?(a.Qf(g,1/e.width,1/e.height,C.left,C.top,C.right,C.bottom,
h,n,d,c,(d+m)/2,(c+p)/2,e.ta[ba]),e.Pb(a)):(a.Qf(g,1/D,1/r,0,0,1,1,h,n,d,c,(d+m)/2,(c+p)/2,b?b.ta[ba]:this.ta[ba]),a.Wb(b?this.b.gc:this.b.Rb),a.je(),a.translate(-ua,-N),a.re(),a.Gd(H,L,J,L,J,B,H,B,G)),C.left=C.top=0,C.right=C.bottom=1,e&&!sa&&(x=L,L=B,B=x));K=0===K?1:0;ha=0===K?1:0}sa&&(a.gd(0),e?a.ke(e.mb,e.lb):b?a.ke(b.mb,b.lb):this.b.qc||(a.Rf(this.b.width,this.b.height),ua=this.b.width/2,N=this.b.height/2,B=H=0,J=this.b.width,L=this.b.height),a.fd(g),a.Wb(q[ha]),a.je(),a.translate(-ua,-N),a.re(),
e&&1===k.length&&!fa?a.Gd(H,B,J,B,J,L,H,L,G):a.Gd(H,L,J,L,J,B,H,B,G),a.Wb(null))};d.prototype.qi=function(a){var b,e;b=0;for(e=this.K.length;b<e;b++)if(this.K[b].P===a)return this.K[b];return null};d.prototype.Vb=function(){var a,b,e,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.e,w:this.width,h:this.height,fv:this.lf,persist:this.he,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)e=this.H[a],g.fx.push({name:e.name,active:e.Ua,params:this.ta[e.index]});a=0;for(b=this.K.length;a<b;a++)e=
this.K[a],g.layers[e.P.toString()]=e.Vb();return g};d.prototype.yc=function(a){var b,e,g,k;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.e=a.a;this.width=a.w;this.height=a.h;this.he=a.persist;"undefined"!==typeof a.fv&&(this.lf=a.fv);var h=a.fx;b=0;for(e=h.length;b<e;b++)if(g=this.Ik(h[b].name))g.Ua=h[b].active,this.ta[g.index]=h[b].params;this.Md();b=a.layers;for(k in b)b.hasOwnProperty(k)&&(a=this.qi(parseInt(k,10)))&&a.yc(b[k])};Ab=d;b.prototype.Md=function(){this.U.length=0;var a,b,
e;a=0;for(b=this.H.length;a<b;a++)e=this.H[a],e.Ua&&this.U.push(e)};b.prototype.Ik=function(a){var b,e,g;b=0;for(e=this.H.length;b<e;b++)if(g=this.H[b],g.name===a)return g;return null};b.prototype.Zq=function(){var b,f,e,g,k,h;f=b=0;for(e=this.qf.length;b<e;b++){g=this.qf[b];k=this.b.n[g[1]];h=this.b.km(k);k=!0;if(!h||this.Xa.lf)g=this.b.ze(g,this,!0),a.push(g),g.type.global&&(k=!1);k&&(this.qf[f]=this.qf[b],f++)}this.qf.length=f;this.b.ib();!this.b.q&&this.H.length&&(this.tb=this.ur);this.lg=cb(this.tb);
this.b.m&&db(this,this.tb,this.b.m);this.Hd=!0};b.prototype.Pf=function(a,b){var e=Aa(this.c,a);0>e||(b&&this.Tc&&a.Ib&&a.Ib.right>=a.Ib.left&&(a.la(),this.Ub.update(a,a.Ib,null),a.Ib.set(0,0,-1,-1)),e===this.c.length-1?this.c.pop():(xa(this.c,e),this.th(e)),this.Hd=!0)};b.prototype.hg=function(a,b){a.Vc=this.c.length;this.c.push(a);b&&this.Tc&&a.Ib&&a.va();this.Hd=!0};b.prototype.Ft=function(a){this.c.unshift(a);this.th(0)};b.prototype.ht=function(a,b,e){var g=a.tc();b=b.tc();xa(this.c,g);g<b&&b--;
e&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.th(g<b?g:b)};b.prototype.th=function(a){-1===this.Nd?this.Nd=a:a<this.Nd&&(this.Nd=a);this.Hd=this.$e=!0};b.prototype.om=function(){if(this.$e){-1===this.Nd&&(this.Nd=0);var a,b,e;if(this.Tc)for(a=this.Nd,b=this.c.length;a<b;++a)e=this.c[a],e.Vc=a,this.Ub.ct(e.Ib);else for(a=this.Nd,b=this.c.length;a<b;++a)this.c[a].Vc=a;this.$e=!1;this.Nd=-1}};b.prototype.rc=function(a){return this.ns()*(this.b.qc||a?this.b.ig:1)};b.prototype.ns=function(){return(this.scale*
this.Xa.scale-1)*this.nb+1};b.prototype.Va=function(){return this.Be?0:Ea(this.Xa.e+this.e)};var k=[],u=[],v=[];b.prototype.rn=function(){this.om();this.Ub.lj(this.wa,this.xa,this.Ka,this.Ja,v);if(!v.length)return m();if(1===v.length){var a=m();ya(a,v[0]);v.length=0;return a}for(var b=!0;1<v.length;){for(var a=v,e=void 0,g=void 0,k=void 0,d=void 0,n=void 0,e=0,g=a.length;e<g-1;e+=2){var k=a[e],d=a[e+1],n=m(),E=k,c=d,q=n,p=0,z=0,F=0,X=E.length,y=c.length,x=void 0,K=void 0;for(q.length=X+y;p<X&&z<y;++F)x=
E[p],K=c[z],x.Vc<K.Vc?(q[F]=x,++p):(q[F]=K,++z);for(;p<X;++p,++F)q[F]=E[p];for(;z<y;++z,++F)q[F]=c[z];b||(h(k),h(d));u.push(n)}1===g%2&&(b?(k=m(),ya(k,a[g-1]),u.push(k)):u.push(a[g-1]));ya(a,u);u.length=0;b=!1}a=v[0];v.length=0;return a};b.prototype.Hc=function(a){this.ie=this.Bk||1!==this.opacity||0!==this.tb;var b=this.b.canvas,e=a,g=!1;this.ie&&(this.b.Li||(this.b.Li=document.createElement("canvas"),b=this.b.Li,b.width=this.b.M,b.height=this.b.L,this.b.Qn=b.getContext("2d"),g=!0),b=this.b.Li,e=
this.b.Qn,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&(e.webkitImageSmoothingEnabled=this.b.S,e.mozImageSmoothingEnabled=this.b.S,e.msImageSmoothingEnabled=this.b.S,e.imageSmoothingEnabled=this.b.S),this.Ld&&e.clearRect(0,0,this.b.M,this.b.L));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.Ld||(e.fillStyle="rgb("+this.Ud[0]+","+this.Ud[1]+","+this.Ud[2]+")",e.fillRect(0,0,this.b.M,this.b.L));e.save();this.Be=!0;var g=this.ma(0,0,!0,!0),
k=this.ma(0,0,!1,!0);this.Be=!1;this.b.ed&&(g=Math.round(g),k=Math.round(k));this.Rl(g,k,e);var d=this.rc();e.scale(d,d);e.translate(-g,-k);this.Tc?(this.nc.left=this.Ub.$b(this.wa),this.nc.top=this.Ub.ac(this.xa),this.nc.right=this.Ub.$b(this.Ka),this.nc.bottom=this.Ub.ac(this.Ja),this.Hd||!this.nc.di(this.Ji)?(h(this.Bf),g=this.rn(),this.Hd=!1,this.Ji.mg(this.nc)):g=this.Bf):g=this.c;for(var n,m=null,k=0,d=g.length;k<d;++k)n=g[k],n!==m&&(this.rr(n,e),m=n);this.Tc&&(this.Bf=g);e.restore();this.ie&&
(a.globalCompositeOperation=this.lg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.rr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.la();var e=a.ya;e.right<this.wa||e.bottom<this.xa||e.left>this.Ka||e.top>this.Ja||(b.globalCompositeOperation=a.lg,a.Hc(b))}};b.prototype.nm=function(){this.Be=!0;var a=this.ma(0,0,!0,!0),b=this.ma(0,0,!1,!0);this.Be=!1;this.b.ed&&(a=Math.round(a),b=Math.round(b));this.Rl(a,b,null)};b.prototype.Rl=function(a,b,e){var g=this.rc();this.wa=a;this.xa=
b;this.Ka=a+1/g*this.b.M;this.Ja=b+1/g*this.b.L;a=this.Va();0!==a&&(e&&(e.translate(this.b.M/2,this.b.L/2),e.rotate(-a),e.translate(this.b.M/-2,this.b.L/-2)),this.Kd.set(this.wa,this.xa,this.Ka,this.Ja),this.Kd.offset((this.wa+this.Ka)/-2,(this.xa+this.Ja)/-2),this.np.cp(this.Kd,a),this.np.Pm(this.Kd),this.Kd.offset((this.wa+this.Ka)/2,(this.xa+this.Ja)/2),this.wa=this.Kd.left,this.xa=this.Kd.top,this.Ka=this.Kd.right,this.Ja=this.Kd.bottom)};b.prototype.Pb=function(a){var b=0,e=0;if(this.ie=this.Bk||
1!==this.opacity||0<this.U.length||0!==this.tb){this.b.gc||(this.b.gc=a.Xd(this.b.M,this.b.L,this.b.S));if(this.b.gc.kg!==this.b.M||this.b.gc.jg!==this.b.L)a.deleteTexture(this.b.gc),this.b.gc=a.Xd(this.b.M,this.b.L,this.b.S);a.fd(this.b.gc);this.Ld&&a.clear(0,0,0,0)}this.Ld||a.clear(this.Ud[0]/255,this.Ud[1]/255,this.Ud[2]/255,1);this.Be=!0;var g=this.ma(0,0,!0,!0),b=this.ma(0,0,!1,!0);this.Be=!1;this.b.ed&&(g=Math.round(g),b=Math.round(b));this.Rl(g,b,null);g=this.rc();a.je();a.scale(g,g);a.To(-this.Va());
a.translate((this.wa+this.Ka)/-2,(this.xa+this.Ja)/-2);a.re();this.Tc?(this.nc.left=this.Ub.$b(this.wa),this.nc.top=this.Ub.ac(this.xa),this.nc.right=this.Ub.$b(this.Ka),this.nc.bottom=this.Ub.ac(this.Ja),this.Hd||!this.nc.di(this.Ji)?(h(this.Bf),b=this.rn(),this.Hd=!1,this.Ji.mg(this.nc)):b=this.Bf):b=this.c;var k,d,n=null,e=0;for(k=b.length;e<k;++e)d=b[e],d!==n&&(this.sr(b[e],a),n=d);this.Tc&&(this.Bf=b);this.ie&&(b=this.U.length?this.U[0].hb:0,e=this.U.length?this.U[0].index:0,0===this.U.length||
1===this.U.length&&!a.Kl(b)&&1===this.opacity?(1===this.U.length?(a.gd(b),a.Qf(this.Xa.vg(),1/this.b.M,1/this.b.L,0,0,1,1,g,this.Va(),this.wa,this.xa,(this.wa+this.Ka)/2,(this.xa+this.Ja)/2,this.ta[e]),a.kj(b)&&(this.b.ga=!0)):a.gd(0),a.fd(this.Xa.vg()),a.Ye(this.opacity),a.Wb(this.b.gc),a.ke(this.mb,this.lb),a.je(),a.re(),g=this.b.M/2,b=this.b.L/2,a.oh(-g,b,g,b,g,-b,-g,-b),a.Wb(null)):this.Xa.Pl(a,this,null,this.Xa.vg()))};b.prototype.sr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.la();
var e=a.ya;e.right<this.wa||e.bottom<this.xa||e.left>this.Ka||e.top>this.Ja||(a.Ap?this.tr(a,b):(b.gd(0),b.ke(a.mb,a.lb),a.Pb(b)))}};b.prototype.tr=function(a,b){var e=a.U[0].hb,g=a.U[0].index,k=this.rc();if(1!==a.U.length||b.Kl(e)||b.Ht(e)||(a.e||a.d.Va())&&b.mh(e)||1!==a.opacity||a.type.Ba.po)this.Xa.Pl(b,this,a,this.ie?this.b.gc:this.Xa.vg()),b.je(),b.scale(k,k),b.To(-this.Va()),b.translate((this.wa+this.Ka)/-2,(this.xa+this.Ja)/-2),b.re();else{b.gd(e);b.ke(a.mb,a.lb);b.kj(e)&&(this.b.ga=!0);var h=
0,n=0,d=0,c=0;b.mh(e)&&(e=a.ya,h=this.pb(e.left,e.top,!0,!0),n=this.pb(e.left,e.top,!1,!0),d=this.pb(e.right,e.bottom,!0,!0),e=this.pb(e.right,e.bottom,!1,!0),h/=windowWidth,n=1-n/windowHeight,d/=windowWidth,c=1-e/windowHeight);b.Qf(this.ie?this.b.gc:this.Xa.vg(),1/a.width,1/a.height,h,n,d,c,k,this.Va(),this.wa,this.xa,(this.wa+this.Ka)/2,(this.xa+this.Ja)/2,a.ta[g]);a.Pb(b)}};b.prototype.ma=function(a,b,e,g){var k=this.b.devicePixelRatio;this.b.Ne&&(a*=k,b*=k);var k=this.b.Go,h=this.b.Ho,k=(this.Xa.scrollX-
k)*this.Gb+k,h=(this.Xa.scrollY-h)*this.Hb+h,n=k,d=h,c=1/this.rc(!g);g?(n-=this.b.M*c/2,d-=this.b.L*c/2):(n-=this.b.width*c/2,d-=this.b.height*c/2);n+=a*c;d+=b*c;b=this.Va();0!==b&&(n-=k,d-=h,a=Math.cos(b),b=Math.sin(b),g=n*a-d*b,d=d*a+n*b,n=g+k,d+=h);return e?n:d};b.prototype.pb=function(a,b,e,g){var k=this.b.Go,h=this.b.Ho,n=(this.Xa.scrollX-k)*this.Gb+k,d=(this.Xa.scrollY-h)*this.Hb+h,h=n,k=d,c=this.Va();if(0!==c){a-=n;b-=d;var m=Math.cos(-c),c=Math.sin(-c),p=a*m-b*c;b=b*m+a*c;a=p+n;b+=d}n=1/this.rc(!g);
g?(h-=this.b.M*n/2,k-=this.b.L*n/2):(h-=this.b.width*n/2,k-=this.b.height*n/2);h=(a-h)/n;k=(b-k)/n;a=this.b.devicePixelRatio;this.b.Ne&&!g&&(h/=a,k/=a);return e?h:k};b.prototype.Vb=function(){var a,b,e,g={s:this.scale,a:this.e,vl:this.wa,vt:this.xa,vr:this.Ka,vb:this.Ja,v:this.visible,bc:this.Ud,t:this.Ld,px:this.Gb,py:this.Hb,o:this.opacity,zr:this.nb,fx:[],instances:[]};a=0;for(b=this.H.length;a<b;a++)e=this.H[a],g.fx.push({name:e.name,active:e.Ua,params:this.ta[e.index]});return g};b.prototype.yc=
function(a){var b,e;this.scale=a.s;this.e=a.a;this.wa=a.vl;this.xa=a.vt;this.Ka=a.vr;this.Ja=a.vb;this.visible=a.v;this.Ud=a.bc;this.Ld=a.t;this.Gb=a.px;this.Hb=a.py;this.opacity=a.o;this.nb=a.zr;var g=a.fx;a=0;for(b=g.length;a<b;a++)if(e=this.Ik(g[a].name))e.Ua=g[a].active,this.ta[e.index]=g[a].params;this.Md();this.c.sort(q);this.$e=!0};Ob=b})();
(function(){function d(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function b(a){var b,c,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=g.length&&(g.length=a.length+1);g[a.length]||(g[a.length]=[]);f=g[a.length];b=0;for(c=f.length;b<c;b++)if(e=f[b],d(a,e))return e;f.push(a);return a}
function m(a,b){this.b=a;this.qp={};this.en={};this.Tk=!1;this.xn=new ca;this.sk=[];this.$j=[];this.name=b[0];var c=b[1];this.$d=[];var e,g;e=0;for(g=c.length;e<g;e++)this.zn(c[e],null,this.$d)}function h(a){this.type=a;this.c=[];this.V=[];this.ka=!0}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.le=[];this.vn=this.Hj=this.hm=this.Ai=this.group=this.ip=!1;this.kb=[];this.Ec=[];this.Cc=[];this.xg="";this.nf=this.Ai=this.group=!1;this.Uh=null;c[1]&&(this.xg=c[1][1].toLowerCase(),
this.group=!0,this.Ai=!!c[1][0],this.Uh=[],this.nf=this.Ai,this.b.Sd.push(this),this.b.ti[this.xg]=this);this.Mc=c[2];this.P=c[4];this.group||(this.b.Om[this.P.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var g=new Pb(this,e[a]);g.index=a;this.kb.push(g);this.Km(g.type)}e=c[6];a=0;for(b=e.length;a<b;a++)g=new Qb(this,e[a]),g.index=a,this.Ec.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.zn(c[a],this,this.Cc);this.Ei=!1;this.kb.length&&(this.Ei=null==this.kb[0].type&&
this.kb[0].eb==Y.prototype.i.Jp)}function e(a,b){var c,e,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Kc))for(c=0,e=a.Ob.length;c<e;c++)g=a.Ob[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function k(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.da=[];this.ua={};this.index=-1;this.fg=!1;this.eb=this.b.Pd(b[1]);this.trigger=0<b[3];this.dn=2===b[3];this.bd=b[4];this.rf=b[5];this.Zs=b[6];this.P=b[7];this.b.hf[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Qa=this.Ul,this.ve=null,this.kc=-1):
(this.type=this.b.n[b[0]],this.Qa=this.Zs?this.Rt:this.Tl,b[2]?(this.ve=this.type.oi(b[2]),this.kc=this.type.Gk(b[2])):(this.ve=null,this.kc=-1),this.cc.parent&&this.cc.parent.rj());this.dn&&(this.Qa=this.St);if(10===b.length){var c,e,g=b[9];c=0;for(e=g.length;c<e;c++){var f=new Rb(this,g[c]);this.I.push(f)}this.da.length=g.length}}function u(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.da=[];this.ua={};this.index=-1;this.fg=!1;this.eb=this.b.Pd(b[1]);-1===b[0]?(this.type=null,this.Qa=
this.Ul,this.ve=null,this.kc=-1):(this.type=this.b.n[b[0]],this.Qa=this.Tl,b[2]?(this.ve=this.type.oi(b[2]),this.kc=this.type.Gk(b[2])):(this.ve=null,this.kc=-1));this.P=b[3];this.b.ef[this.P.toString()]=this;if(6===b.length){var c,e,g=b[5];c=0;for(e=g.length;c<e;c++){var f=new Rb(this,g[c]);this.I.push(f)}this.da.length=g.length}}function v(a,b){this.k=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Zc=null;this.me=0;this.get=null;this.Vm=0;this.Xa=null;this.key=0;this.object=null;
this.index=0;this.Dh=this.Ze=this.Dh=this.Ze=this.gn=this.Ee=this.Eh=null;this.Dc=!1;var c,e,g;switch(b[0]){case 0:case 7:this.Zc=new Sb(this,b[1]);this.me=0;this.get=this.ws;break;case 1:this.Zc=new Sb(this,b[1]);this.me=0;this.get=this.xs;break;case 5:this.Zc=new Sb(this,b[1]);this.me=0;this.get=this.Bs;break;case 3:case 8:this.Vm=b[1];this.get=this.us;break;case 6:this.Xa=this.b.ll[b[1]];this.get=this.Cs;break;case 9:this.key=b[1];this.get=this.As;break;case 4:this.object=this.b.n[b[1]];this.get=
this.Ds;this.cc.Km(this.object);this.k instanceof Qb?this.cc.rj():this.cc.parent&&this.cc.parent.rj();break;case 10:this.index=b[1];a.type.B?(this.get=this.ys,this.Dc=!0):this.get=this.zs;break;case 11:this.Eh=b[1];this.Ee=null;this.get=this.vs;break;case 2:case 12:this.gn=b[1];this.get=this.ts;break;case 13:for(this.get=this.Es,this.Ze=[],this.Dh=[],c=1,e=b.length;c<e;c++)g=new Rb(this.k,b[c]),this.Ze.push(g),this.Dh.push(0)}}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.name=
c[1];this.Bp=c[2];this.yi=c[3];this.Hg=!!c[4];this.Di=!!c[5];this.P=c[6];this.b.dg[this.P.toString()]=this;this.data=this.yi;this.parent?(this.Ve=this.Hg||this.Di?-1:this.b.bu++,this.b.Nq.push(this)):(this.Ve=-1,this.b.Xj.push(this))}function f(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.zg=null;this.Ls=c[1];this.Ua=!0}function s(){this.kp=[];this.reset(null)}var g=[];m.prototype.toString=function(){return this.name};m.prototype.zn=function(a,b,c){switch(a[0]){case 0:a=new Tb(this,
b,a);if(a.Mc)for(c.push(a),c=0,b=a.kb.length;c<b;c++)a.kb[c].trigger&&this.An(a,c);else a.Jn()?this.An(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Ub(this,b,a),c.push(a)}};m.prototype.Ca=function(){var a,b;a=0;for(b=this.$d.length;a<b;a++)this.$d[a].Ca(a<b-1&&this.$d[a+1].Ei)};m.prototype.lm=function(){this.sk.length=0;this.$j.length=0;this.Jm(this);this.$j.length=0};m.prototype.Jm=function(a){var b,c,e,g,f=a.sk,k=a.$j,h=this.xn.Uc();b=0;for(c=h.length;b<c;++b)e=h[b],
g=e.zg,!e.Ua||a===g||-1<k.indexOf(g)||(k.push(g),g.Jm(a),f.push(g))};m.prototype.Qa=function(a){this.b.Cv||(this.Tk=!0,a||(this.b.cl=!0));var b,c;b=0;for(c=this.$d.length;b<c;b++){var e=this.$d[b];e.Qa();this.b.kk(e.Da);this.b.be&&this.b.ib()}a||(this.b.cl=!1)};m.prototype.An=function(a,b){a.Mc||this.b.Kj.push(a);var c,e,g=a.kb[b],f;f=g.type?g.type.name:"system";var k=(c=g.dn)?this.en:this.qp;k[f]||(k[f]=[]);f=k[f];k=g.eb;if(c){if(g.I.length&&(g=g.I[0],1===g.type&&2===g.Zc.type)){g=g.Zc.value.toLowerCase();
c=0;for(e=f.length;c<e;c++)if(f[c].method==k){c=f[c].rg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:k,rg:c})}}else{c=0;for(e=f.length;c<e;c++)if(f[c].method==k){f[c].rg.push([a,b]);return}gc&&k===gc.prototype.i.df?f.unshift({method:k,rg:[[a,b]]}):f.push({method:k,rg:[[a,b]]})}};Bb=m;h.prototype.Sk=function(){return this.ka?this.type.c.length:this.c.length};h.prototype.Ic=function(){return this.ka?this.type.c:this.c};h.prototype.lh=function(a){a&&(a.b.Ab().oc.Mc?(this.ka&&
(this.c.length=0,ya(this.V,a.type.c),this.ka=!1),a=this.V.indexOf(a),-1!==a&&(this.c.push(this.V[a]),this.V.splice(a,1))):(this.ka=!1,this.c.length=1,this.c[0]=a))};jb=h;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";a.prototype.Ca=function(a){var e,c=this.parent;if(this.group)for(this.Hj=!0;c;){if(!c.group){this.Hj=!1;break}c=c.parent}this.hm=!this.Jn()&&(!this.parent||this.parent.group&&this.parent.Hj);this.vn=!!a;this.le=this.Da.slice(0);for(c=this.parent;c;){a=0;for(e=c.Da.length;a<
e;a++)this.Kq(c.Da[a]);c=c.parent}this.Da=b(this.Da);this.le=b(this.le);a=0;for(e=this.kb.length;a<e;a++)this.kb[a].Ca();a=0;for(e=this.Ec.length;a<e;a++)this.Ec[a].Ca();a=0;for(e=this.Cc.length;a<e;a++)this.Cc[a].Ca(a<e-1&&this.Cc[a+1].Ei)};a.prototype.Wt=function(a){if(this.nf!==!!a){this.nf=!!a;var b;a=0;for(b=this.Uh.length;a<b;++a)this.Uh[a].wp();0<b&&this.b.Z.De&&this.b.Z.De.lm()}};a.prototype.Km=function(a){e(a,this.Da)};a.prototype.Kq=function(a){e(a,this.le)};a.prototype.rj=function(){this.ip=
!0;this.parent&&this.parent.rj()};a.prototype.Jn=function(){return this.kb.length?this.kb[0].trigger:!1};a.prototype.Qa=function(){var a,b=!1,c,e=this.b,g=this.b.Ab();g.oc=this;var f=this.kb;this.Ei||(g.vk=!1);if(this.Mc){0===f.length&&(b=!0);g.zb=0;for(a=f.length;g.zb<a;g.zb++)f[g.zb].trigger||(c=f[g.zb].Qa())&&(b=!0);(g.Re=b)&&this.Sl()}else{g.zb=0;for(a=f.length;g.zb<a;g.zb++)if(c=f[g.zb].Qa(),!c){g.Re=!1;this.hm&&e.be&&e.ib();return}g.Re=!0;this.Sl()}this.Ar(g)};a.prototype.Ar=function(a){a.Re&&
this.vn&&(a.vk=!0);this.hm&&this.b.be&&this.b.ib()};a.prototype.Pt=function(a){this.b.Ab().oc=this;this.kb[a].Qa()&&(this.Sl(),this.b.Ab().Re=!0)};a.prototype.Sl=function(){var a=this.b.Ab(),b;a.jc=0;for(b=this.Ec.length;a.jc<b;a.jc++)if(this.Ec[a.jc].Qa())return;this.Uo()};a.prototype.Nt=function(){var a=this.b.Ab(),b;for(b=this.Ec.length;a.jc<b;a.jc++)if(this.Ec[a.jc].Qa())return;this.Uo()};a.prototype.Uo=function(){if(this.Cc.length){var a,b,c,g,e=this.Cc.length-1;this.b.Ml(this);if(this.ip)for(a=
0,b=this.Cc.length;a<b;a++)c=this.Cc[a],(g=!this.Hj||!this.group&&a<e)&&this.b.Ll(c.Da),c.Qa(),g?this.b.Of(c.Da):this.b.kk(c.Da);else for(a=0,b=this.Cc.length;a<b;a++)this.Cc[a].Qa();this.b.Mo()}};a.prototype.Qt=function(){var a=this.b.Ab();a.oc=this;var b=!1,c;a.zb=0;for(c=this.kb.length;a.zb<c;a.zb++)if(this.kb[a.zb].Qa())b=!0;else if(!this.Mc)return!1;return this.Mc?b:!0};a.prototype.Ts=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.kb[b].type===a.type)return!1;return!0};
Tb=a;k.prototype.Ca=function(){var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Ca(),c.Dc&&(this.fg=!0)};k.prototype.St=function(){return!0};k.prototype.Ul=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.da[a]=this.I[a].get();return Sa(this.eb.apply(this.b.hd,this.da),this.rf)};k.prototype.Rt=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.da[a]=this.I[a].get();a=this.eb.apply(this.ve?this.ve:this.type,this.da);this.type.od();return a};k.prototype.Tl=function(){var a,b,c,g,
e,f,k,h,d=this.type,m=d.fa(),l=this.cc.Mc&&!this.trigger;b=0;var q=d.Kc,w=d.B,t=d.wd,s=this.kc,u=-1<s,v=this.fg,G=this.I,C=this.da,H=this.rf,I=this.eb,B;if(v)for(b=0,e=G.length;b<e;++b)f=G[b],f.Dc||(C[b]=f.get(0));else for(b=0,e=G.length;b<e;++b)C[b]=G[b].get(0);if(m.ka){m.c.length=0;m.V.length=0;B=d.c;a=0;for(g=B.length;a<g;++a){h=B[a];if(v)for(b=0,e=G.length;b<e;++b)f=G[b],f.Dc&&(C[b]=f.get(a));u?(b=0,w&&(b=h.type.kf[t]),b=I.apply(h.G[s+b],C)):b=I.apply(h,C);(k=Sa(b,H))?m.c.push(h):l&&m.V.push(h)}d.finish&&
d.finish(!0);m.ka=!1;d.od();return m.Sk()}c=0;B=(k=l&&!this.cc.Ts(this))?m.V:m.c;var O=!1;a=0;for(g=B.length;a<g;++a){h=B[a];if(v)for(b=0,e=G.length;b<e;++b)f=G[b],f.Dc&&(C[b]=f.get(a));u?(b=0,w&&(b=h.type.kf[t]),b=I.apply(h.G[s+b],C)):b=I.apply(h,C);if(Sa(b,H))if(O=!0,k){if(m.c.push(h),q)for(b=0,e=h.siblings.length;b<e;b++)f=h.siblings[b],f.type.fa().c.push(f)}else{B[c]=h;if(q)for(b=0,e=h.siblings.length;b<e;b++)f=h.siblings[b],f.type.fa().c[c]=f;c++}else if(k){B[c]=h;if(q)for(b=0,e=h.siblings.length;b<
e;b++)f=h.siblings[b],f.type.fa().V[c]=f;c++}else if(l&&(m.V.push(h),q))for(b=0,e=h.siblings.length;b<e;b++)f=h.siblings[b],f.type.fa().V.push(f)}B.length=c;if(q)for(w=d.Ob,a=0,g=w.length;a<g;a++)h=w[a].fa(),k?h.V.length=c:h.c.length=c;c=O;if(k&&!O)for(a=0,g=m.c.length;a<g;a++){h=m.c[a];if(v)for(b=0,e=G.length;b<e;b++)f=G[b],f.Dc&&(C[b]=f.get(a));b=u?I.apply(h.G[s],C):I.apply(h,C);if(Sa(b,H)){O=!0;break}}d.finish&&d.finish(c||l);return l?O:m.Sk()};Pb=k;u.prototype.Ca=function(){var a,b,c;a=0;for(b=
this.I.length;a<b;a++)c=this.I[a],c.Ca(),c.Dc&&(this.fg=!0)};u.prototype.Ul=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.da[a]=this.I[a].get();return this.eb.apply(this.b.hd,this.da)};u.prototype.Tl=function(){var a=this.type.fa().Ic(),b=this.type.B,c=this.type.wd,e=this.kc,g=-1<e,f=this.fg,k=this.I,h=this.da,d=this.eb,m,l,q,w,t,s;if(f)for(l=0,w=k.length;l<w;++l)t=k[l],t.Dc||(h[l]=t.get(0));else for(l=0,w=k.length;l<w;++l)h[l]=k[l].get(0);m=0;for(q=a.length;m<q;++m){s=a[m];if(f)for(l=0,
w=k.length;l<w;++l)t=k[l],t.Dc&&(h[l]=t.get(m));g?(l=0,b&&(l=s.type.kf[c]),d.apply(s.G[e+l],h)):d.apply(s,h)}return!1};Qb=u;var w=[],t=-1;v.prototype.Ca=function(){var a,b;if(11===this.type)this.Ee=this.b.nn(this.Eh,this.cc.parent);else if(13===this.type)for(a=0,b=this.Ze.length;a<b;a++)this.Ze[a].Ca();this.Zc&&this.Zc.Ca()};v.prototype.et=function(a){this.Dc||!a||a.Ba.tj||(this.Dc=!0)};v.prototype.$o=function(){this.Dc=!0};v.prototype.Pa=function(){t++;w.length===t&&w.push(new Vb);return w[t]};v.prototype.Ia=
function(){t--};v.prototype.ws=function(a){this.me=a||0;a=this.Pa();this.Zc.get(a);this.Ia();return a.data};v.prototype.xs=function(a){this.me=a||0;a=this.Pa();this.Zc.get(a);this.Ia();return P(a.data)?a.data:""};v.prototype.Ds=function(){return this.object};v.prototype.us=function(){return this.Vm};v.prototype.Bs=function(a){this.me=a||0;a=this.Pa();this.Zc.get(a);this.Ia();return a.Wa()?this.b.yd(a.data):this.b.ug(a.data)};v.prototype.Cs=function(){return this.Xa};v.prototype.As=function(){return this.key};
v.prototype.zs=function(){return this.index};v.prototype.ys=function(a){a=a||0;var b=this.k.type,c=null,c=b.fa(),e=c.Ic();if(e.length)c=e[a%e.length].type;else if(c.V.length)c=c.V[a%c.V.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.ii[b.wd]};v.prototype.vs=function(){return this.Ee};v.prototype.ts=function(){return this.gn};v.prototype.Es=function(){var a,b;a=0;for(b=this.Ze.length;a<b;a++)this.Dh[a]=this.Ze[a].get();return this.Dh};Rb=v;l.prototype.Ca=
function(){this.Da=b(this.Da)};l.prototype.sj=function(a){var b=this.b.mn();this.parent&&!this.Hg&&b?(this.Ve>=b.length&&(b.length=this.Ve+1),b[this.Ve]=a):this.data=a};l.prototype.tn=function(){var a=this.b.mn();return!this.parent||this.Hg||!a||this.Di?this.data:this.Ve>=a.length||"undefined"===typeof a[this.Ve]?this.yi:a[this.Ve]};l.prototype.Qa=function(){!this.parent||this.Hg||this.Di||this.sj(this.yi)};Lb=l;f.prototype.toString=function(){return"include:"+this.zg.toString()};f.prototype.Ca=function(){this.zg=
this.b.xk[this.Ls];this.sheet.xn.add(this);this.Da=b(this.Da);for(var a=this.parent;a;)a.group&&a.Uh.push(this),a=a.parent;this.wp()};f.prototype.Qa=function(){this.parent&&this.b.nh(this.b.n);this.zg.Tk||this.zg.Qa(!0);this.parent&&this.b.Of(this.b.n)};f.prototype.wp=function(){for(var a=this.parent;a;){if(a.group&&!a.nf){this.Ua=!1;return}a=a.parent}this.Ua=!0};Ub=f;s.prototype.reset=function(a){this.oc=a;this.jc=this.zb=0;this.kp.length=0;this.vk=this.Re=!1};Kb=s})();
(function(){function d(b,d){this.k=b;this.b=b.b;this.type=d[0];this.get=[this.Mr,this.Ir,this.Ur,this.Xr,this.Cr,this.Vr,this.Qr,this.Fr,this.Pr,this.Tr,this.Dr,this.Sr,this.Gr,this.Rr,this.Nr,this.Or,this.Jr,this.Kr,this.Er,this.Wr,this.bn,this.Lr,this.bn,this.Hr][this.type];var h=null;this.Fb=this.I=this.da=this.eb=this.Ej=this.$a=this.first=this.value=null;this.kc=-1;this.zd=null;this.rm=-1;this.Ee=this.Eh=null;this.qh=!1;switch(this.type){case 0:case 1:case 2:this.value=d[1];break;case 3:this.first=
new Sb(b,d[1]);break;case 18:this.first=new Sb(b,d[1]);this.$a=new Sb(b,d[2]);this.Ej=new Sb(b,d[3]);break;case 19:this.eb=this.b.Pd(d[1]);this.eb!==Y.prototype.cb.random&&this.eb!==Y.prototype.cb.Vq||this.k.$o();this.da=[];this.I=[];3===d.length?(h=d[2],this.da.length=h.length+1):this.da.length=1;break;case 20:this.Fb=this.b.n[d[1]];this.kc=-1;this.eb=this.b.Pd(d[2]);this.qh=d[3];Xb.Function&&this.eb===Xb.Function.prototype.cb.vu&&this.k.$o();this.zd=d[4]?new Sb(b,d[4]):null;this.da=[];this.I=[];
6===d.length?(h=d[5],this.da.length=h.length+1):this.da.length=1;break;case 21:this.Fb=this.b.n[d[1]];this.qh=d[2];this.zd=d[3]?new Sb(b,d[3]):null;this.rm=d[4];break;case 22:this.Fb=this.b.n[d[1]];this.Fb.oi(d[2]);this.kc=this.Fb.Gk(d[2]);this.eb=this.b.Pd(d[3]);this.qh=d[4];this.zd=d[5]?new Sb(b,d[5]):null;this.da=[];this.I=[];7===d.length?(h=d[6],this.da.length=h.length+1):this.da.length=1;break;case 23:this.Eh=d[1],this.Ee=null}this.k.et(this.Fb);4<=this.type&&17>=this.type&&(this.first=new Sb(b,
d[1]),this.$a=new Sb(b,d[2]));if(h){var a,e;a=0;for(e=h.length;a<e;a++)this.I.push(new Sb(b,h[a]))}}function q(b,d){this.type=b||V.cf;this.data=d||0;this.If=null;this.type==V.cf&&(this.data=Math.floor(this.data))}d.prototype.Ca=function(){23===this.type&&(this.Ee=this.k.b.nn(this.Eh,this.k.cc.parent));this.first&&this.first.Ca();this.$a&&this.$a.Ca();this.Ej&&this.Ej.Ca();this.zd&&this.zd.Ca();if(this.I){var b,d;b=0;for(d=this.I.length;b<d;b++)this.I[b].Ca()}};d.prototype.Wr=function(b){this.da[0]=
b;b=this.k.Pa();var d,h;d=0;for(h=this.I.length;d<h;d++)this.I[d].get(b),this.da[d+1]=b.data;this.k.Ia();this.eb.apply(this.b.hd,this.da)};d.prototype.bn=function(b){var d=this.Fb.fa(),h=d.Ic();if(!h.length)if(d.V.length)h=d.V;else{this.qh?b.hc(""):b.ea(0);return}this.da[0]=b;b.If=this.Fb;b=this.k.Pa();var a,d=0;for(a=this.I.length;d<a;d++)this.I[d].get(b),this.da[d+1]=b.data;d=this.k.me;this.zd&&(this.zd.get(b),b.Wa()&&(d=b.data,h=this.Fb.c));this.k.Ia();d%=h.length;0>d&&(d+=h.length);h=h[d];-1<
this.kc?(b=0,this.Fb.B&&(b=h.type.kf[this.Fb.wd]),this.eb.apply(h.G[this.kc+b],this.da)):this.eb.apply(h,this.da)};d.prototype.Lr=function(b){var d=this.Fb.fa(),h=d.Ic();if(!h.length)if(d.V.length)h=d.V;else{this.qh?b.hc(""):b.ea(0);return}d=this.k.me;if(this.zd){var a=this.k.Pa();this.zd.get(a);if(a.Wa()){d=a.data;h=this.Fb.c;d%=h.length;0>d&&(d+=h.length);h=h[d].La[this.rm];P(h)?b.hc(h):b.u(h);this.k.Ia();return}this.k.Ia()}d%=h.length;0>d&&(d+=h.length);h=h[d];d=0;this.Fb.B&&(d=h.type.ii[this.Fb.wd]);
h=h.La[this.rm+d];P(h)?b.hc(h):b.u(h)};d.prototype.Mr=function(b){b.type=V.cf;b.data=this.value};d.prototype.Ir=function(b){b.type=V.bf;b.data=this.value};d.prototype.Ur=function(b){b.type=V.String;b.data=this.value};d.prototype.Xr=function(b){this.first.get(b);b.Wa()&&(b.data=-b.data)};d.prototype.Cr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.Wa()&&d.Wa()&&(b.data+=d.data,d.wf()&&b.Ff());this.k.Ia()};d.prototype.Vr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);
b.Wa()&&d.Wa()&&(b.data-=d.data,d.wf()&&b.Ff());this.k.Ia()};d.prototype.Qr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.Wa()&&d.Wa()&&(b.data*=d.data,d.wf()&&b.Ff());this.k.Ia()};d.prototype.Fr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.Wa()&&d.Wa()&&(b.data/=d.data,b.Ff());this.k.Ia()};d.prototype.Pr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.Wa()&&d.Wa()&&(b.data%=d.data,d.wf()&&b.Ff());this.k.Ia()};d.prototype.Tr=function(b){this.first.get(b);
var d=this.k.Pa();this.$a.get(d);b.Wa()&&d.Wa()&&(b.data=Math.pow(b.data,d.data),d.wf()&&b.Ff());this.k.Ia()};d.prototype.Dr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.Wa()?d.Fi()?b.hc(b.data.toString()+d.data):b.data&&d.data?b.ea(1):b.ea(0):b.Fi()&&(b.data=d.Fi()?b.data+d.data:b.data+(Math.round(1E10*d.data)/1E10).toString());this.k.Ia()};d.prototype.Sr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.Wa()&&d.Wa()&&(b.data||d.data?b.ea(1):b.ea(0));this.k.Ia()};
d.prototype.Er=function(b){this.first.get(b);b.data?this.$a.get(b):this.Ej.get(b)};d.prototype.Gr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.ea(b.data===d.data?1:0);this.k.Ia()};d.prototype.Rr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.ea(b.data!==d.data?1:0);this.k.Ia()};d.prototype.Nr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.ea(b.data<d.data?1:0);this.k.Ia()};d.prototype.Or=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);
b.ea(b.data<=d.data?1:0);this.k.Ia()};d.prototype.Jr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.ea(b.data>d.data?1:0);this.k.Ia()};d.prototype.Kr=function(b){this.first.get(b);var d=this.k.Pa();this.$a.get(d);b.ea(b.data>=d.data?1:0);this.k.Ia()};d.prototype.Hr=function(b){var d=this.Ee.tn();ia(d)?b.u(d):b.hc(d)};Sb=d;q.prototype.wf=function(){return this.type===V.bf};q.prototype.Wa=function(){return this.type===V.cf||this.type===V.bf};q.prototype.Fi=function(){return this.type===
V.String};q.prototype.Ff=function(){this.wf()||(this.Fi()&&(this.data=parseFloat(this.data)),this.type=V.bf)};q.prototype.ea=function(b){this.type=V.cf;this.data=Math.floor(b)};q.prototype.u=function(b){this.type=V.bf;this.data=b};q.prototype.hc=function(b){this.type=V.String;this.data=b};q.prototype.$t=function(b){ia(b)?(this.type=V.bf,this.data=b):P(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.cf,this.data=0)};Vb=q;V={cf:0,bf:1,String:2}})();function Y(d){this.b=d;this.Zb=[]}
Y.prototype.Vb=function(){var d={},q,b,m,h,a,e,k,u;d.waits=[];var v=d.waits,l;q=0;for(b=this.Zb.length;q<b;q++){e=this.Zb[q];l={t:e.time,st:e.au,s:e.gp,ev:e.qg.P,sm:[],sols:{}};e.qg.Ec[e.jc]&&(l.act=e.qg.Ec[e.jc].P);m=0;for(h=e.Da.length;m<h;m++)l.sm.push(e.Da[m].P);for(a in e.Xb)if(e.Xb.hasOwnProperty(a)){k=this.b.n[parseInt(a,10)];u={sa:e.Xb[a].Vo,insts:[]};m=0;for(h=e.Xb[a].Le.length;m<h;m++)u.insts.push(e.Xb[a].Le[m].uid);l.sols[k.P.toString()]=u}v.push(l)}return d};
Y.prototype.yc=function(d){d=d.waits;var q,b,m,h,a,e,k,u,v,l,f;q=this.Zb.length=0;for(b=d.length;q<b;q++)if(e=d[q],u=this.b.Om[e.ev.toString()]){v=-1;m=0;for(h=u.Ec.length;m<h;m++)if(u.Ec[m].P===e.act){v=m;break}if(-1!==v){k={Xb:{},Da:[],Xm:!1};k.time=e.t;k.au=e.st||"";k.gp=!!e.s;k.qg=u;k.jc=v;m=0;for(h=e.sm.length;m<h;m++)(u=this.b.si(e.sm[m]))&&k.Da.push(u);for(a in e.sols)if(e.sols.hasOwnProperty(a)&&(u=this.b.si(parseInt(a,10)))){v=e.sols[a];l={Vo:v.sa,Le:[]};m=0;for(h=v.insts.length;m<h;m++)(f=
this.b.ri(v.insts[m]))&&l.Le.push(f);k.Xb[u.index.toString()]=l}this.Zb.push(k)}}};
(function(){function d(){}function q(){}function b(){}var m=Y.prototype;d.prototype.Kp=function(){return!0};d.prototype.Am=function(){return!0};d.prototype.pq=function(){return!0};d.prototype.Eq=function(){var a=this.b.pi().ua;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,d=this.b.Yf;a.TriggerOnce_lastTick=d;return this.b.kl||b!==d-1};d.prototype.Ip=function(a,b,d){return Wb(a.tn(),b,d)};d.prototype.Jp=function(){var a=this.b.Ab();return a.vk?
!1:!a.Re};d.prototype.Bm=function(){return!0};d.prototype.bq=function(){return!0};d.prototype.Uj=function(){return!0};d.prototype.qq=function(){return!0};d.prototype.Sj=function(){return!0};d.prototype.Dp=function(a,b,d){return Ja(T(a),T(d))<=T(b)};d.prototype.Np=function(a,b){return Pa(T(a),T(b))};d.prototype.Lp=function(a,b,d){a=Ha(a);b=Ha(b);d=Ha(d);return Pa(d,b)?Pa(a,b)&&!Pa(a,d):!(!Pa(a,b)&&Pa(a,d))};m.i=new d;q.prototype.Xp=function(a){if(!this.b.zf&&!this.b.we){var b=this.b.Sb.indexOf(this.b.Z);
if(!a||0!==b)if(a||b!==this.b.Sb.length-1)this.b.we=this.b.Sb[b+(a?-1:1)]}};q.prototype.Cq=function(a,b){0===a.Bp?ia(b)?a.sj(b):a.sj(parseFloat(b)):1===a.Bp&&a.sj(b.toString())};var h=[],a=[];q.prototype.vq=function(){var a,b,d;a=0;for(b=this.b.Xj.length;a<b;a++)d=this.b.Xj[a],d.data=d.yi};q.prototype.wq=function(){if(!this.b.zf&&!this.b.we&&this.b.Z){this.b.we=this.b.Z;var a,b,d;a=0;for(b=this.b.Sd.length;a<b;a++)d=this.b.Sd[a],d.Wt(d.Ai)}};q.prototype.xq=function(a){this.b.pj=a};q.prototype.Vp=
function(a){this.b.Pg=a};m.qa=new q;b.prototype["int"]=function(a,b){P(b)?(a.ea(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ea(b)};b.prototype["float"]=function(a,b){P(b)?(a.u(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.u(b)};b.prototype.random=function(a,b,d){void 0===d?a.u(Math.random()*b):a.u(Math.random()*(d-b)+b)};b.prototype.sqrt=function(a,b){a.u(Math.sqrt(b))};b.prototype.abs=function(a,b){a.u(Math.abs(b))};b.prototype.round=function(a,b){a.ea(Math.round(b))};b.prototype.floor=function(a,
b){a.ea(Math.floor(b))};b.prototype.ceil=function(a,b){a.ea(Math.ceil(b))};b.prototype.sin=function(a,b){a.u(Math.sin(T(b)))};b.prototype.cos=function(a,b){a.u(Math.cos(T(b)))};b.prototype.tan=function(a,b){a.u(Math.tan(T(b)))};b.prototype.asin=function(a,b){a.u(Ca(Math.asin(b)))};b.prototype.acos=function(a,b){a.u(Ca(Math.acos(b)))};b.prototype.atan=function(a,b){a.u(Ca(Math.atan(b)))};b.prototype.exp=function(a,b){a.u(Math.exp(b))};b.prototype.log10=function(a,b){a.u(Math.log(b)/Math.LN10)};b.prototype.max=
function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,h,l;d=2;for(h=arguments.length;d<h;d++)l=arguments[d],"number"===typeof l&&b<l&&(b=l);a.u(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,h,l;d=2;for(h=arguments.length;d<h;d++)l=arguments[d],"number"===typeof l&&b>l&&(b=l);a.u(b)};b.prototype.Ce=function(a){a.u(this.b.Ce)};b.prototype.Zf=function(a){a.u(this.b.Zf)};b.prototype.time=function(a){a.u(this.b.xc.ba)};b.prototype.Yf=function(a){a.ea(this.b.Yf)};
b.prototype.Wi=function(a){a.ea(this.b.Wi)};b.prototype.Ck=function(a){a.ea(this.b.Ck)};b.prototype.e=function(a,b,d,h,l){a.u(Ca(Ia(b,d,h,l)))};b.prototype.find=function(a,b,d){P(b)&&P(d)?a.ea(b.search(new RegExp(Za(d),"i"))):a.ea(-1)};b.prototype.left=function(a,b,d){a.hc(P(b)?b.substr(0,d):"")};b.prototype.right=function(a,b,d){a.hc(P(b)?b.substr(b.length-d):"")};b.prototype.replace=function(a,b,d,h){P(b)&&P(d)&&P(h)?a.hc(b.replace(new RegExp(Za(d),"gi"),h)):a.hc(P(b)?b:"")};b.prototype.trim=function(a,
b){a.hc(P(b)?b.trim():"")};b.prototype.Vq=function(a){var b=Q(Math.random()*(arguments.length-1));a.$t(arguments[b+1])};b.prototype.mk=function(a){a.u(this.b.mk/1E3)};b.prototype.Qi=function(a){a.u(this.b.Qi)};m.cb=new b;m.Ot=function(){var b,d,m,q,l,f,s=this.b.Ab();b=0;for(m=this.Zb.length;b<m;b++){q=this.Zb[b];if(-1===q.time){if(!q.gp)continue}else if(q.time>this.b.xc.ba)continue;s.oc=q.qg;s.jc=q.jc;s.zb=0;for(d in q.Xb)q.Xb.hasOwnProperty(d)&&(l=this.b.n[parseInt(d,10)].fa(),f=q.Xb[d],l.ka=f.Vo,
ya(l.c,f.Le),l=f,l.Le.length=0,a.push(l));q.qg.Nt();this.b.kk(q.Da);q.Xm=!0}d=b=0;for(m=this.Zb.length;b<m;b++)q=this.Zb[b],this.Zb[d]=q,q.Xm?(Ua(q.Xb),q.Da.length=0,h.push(q)):d++;this.Zb.length=d}})();
(function(){ib=function(d,b){var m=d[1],h=d[3],a=d[4],e=d[5],k=d[6],u=d[7],v=d[8];b.i||(b.i={});b.qa||(b.qa={});b.cb||(b.cb={});var l=b.i,f=b.qa,s=b.cb;h&&(l.zu=function(a,b){return Wb(this.x,a,b)},l.Au=function(a,b){return Wb(this.y,a,b)},l.Hu=function(){var a=this.d;this.la();var b=this.ya;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ka||b.top>a.Ja)},l.Iu=function(){this.la();var a=this.ya,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},l.Su=function(a,b,e){var f=this.fa(),
d=f.Ic();if(!d.length)return!1;var c=d[0],h=c,k=Ra(c.x,c.y,b,e),l,m,q;l=1;for(m=d.length;l<m;l++)if(c=d[l],q=Ra(c.x,c.y,b,e),0===a&&q<k||1===a&&q>k)k=q,h=c;f.lh(h);return!0},f.jv=function(a){this.x!==a&&(this.x=a,this.va())},f.kv=function(a){this.y!==a&&(this.y=a,this.va())},f.Bq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.va()},f.dv=function(a,b){var e=a.os(this);if(e){var f;e.Kk?(f=e.Kk(b,!0),e=e.Kk(b,!1)):(f=e.x,e=e.y);if(this.x!==f||this.y!==e)this.x=f,this.y=e,this.va()}},
f.Mu=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.va())},f.Lu=function(a,b){0!==b&&(this.x+=Math.cos(T(a))*b,this.y+=Math.sin(T(a))*b,this.va())},s.Gh=function(a){a.u(this.x)},s.Hh=function(a){a.u(this.y)},s.Ce=function(a){a.u(this.b.Hk(this))});a&&(l.yu=function(a,b){return Wb(this.width,a,b)},l.wu=function(a,b){return Wb(this.height,a,b)},f.iv=function(a){this.width!==a&&(this.width=a,this.va())},f.cv=function(a){this.height!==a&&(this.height=a,this.va())},f.gv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.va()},s.ov=function(a){a.u(this.width)},s.Du=function(a){a.u(this.height)},s.su=function(a){this.la();a.u(this.ya.left)},s.uu=function(a){this.la();a.u(this.ya.top)},s.tu=function(a){this.la();a.u(this.ya.right)},s.ru=function(a){this.la();a.u(this.ya.bottom)});e&&(l.Dp=function(a,b){return Ja(this.e,T(b))<=T(a)},l.Np=function(a){return Pa(this.e,T(a))},l.Lp=function(a,b){var e=Ha(a),f=Ha(b),d=Ea(this.e);return Pa(f,
e)?Pa(d,e)&&!Pa(d,f):!(!Pa(d,e)&&Pa(d,f))},f.$u=function(a){a=T(Da(a));isNaN(a)||this.e===a||(this.e=a,this.va())},f.Wu=function(a){0===a||isNaN(a)||(this.e+=T(a),this.e=Ea(this.e),this.va())},f.Xu=function(a){0===a||isNaN(a)||(this.e-=T(a),this.e=Ea(this.e),this.va())},f.Yu=function(a,b){var e=Ka(this.e,T(b),T(a));isNaN(e)||this.e===e||(this.e=e,this.va())},f.Zu=function(a,b,e){a=Ka(this.e,Math.atan2(e-this.y,b-this.x),T(a));isNaN(a)||this.e===a||(this.e=a,this.va())},f.hv=function(a,b){var e=Math.atan2(b-
this.y,a-this.x);isNaN(e)||this.e===e||(this.e=e,this.va())},s.qu=function(a){a.u(Fa(this.e))});m||(l.Hp=function(a,b,e){return Wb(this.La[a],b,e)},l.Fu=function(a){return this.La[a]},l.Tu=function(a,b){var e=this.fa(),f=e.Ic();if(!f.length)return!1;var d=f[0],c=d,h=d.La[b],k,l,m;k=1;for(l=f.length;k<l;k++)if(d=f[k],m=d.La[b],0===a&&m<h||1===a&&m>h)h=m,c=d;e.lh(c);return!0},l.Ru=function(a){var b,e,f,d,c;if(this.b.pi().rf){c=this.fa();if(c.ka)for(c.ka=!1,c.c.length=0,c.V.length=0,f=this.c,b=0,e=f.length;b<
e;b++)d=f[b],d.uid===a?c.V.push(d):c.c.push(d);else{f=b=0;for(e=c.c.length;b<e;b++)d=c.c[b],c.c[f]=d,d.uid===a?c.V.push(d):f++;c.c.length=f}this.od();return!!c.c.length}d=this.b.ri(a);if(!d)return!1;c=this.fa();if(!c.ka&&-1===c.c.indexOf(d))return!1;if(this.B)for(a=d.type.na,b=0,e=a.length;b<e;b++){if(a[b]===this)return c.lh(d),this.od(),!0}else if(d.type===this)return c.lh(d),this.od(),!0;return!1},l.cq=function(){return!0},l.dq=function(){return!0},f.zq=function(a,b){var e=this.La;ia(e[a])?e[a]=
ia(b)?b:parseFloat(b):P(e[a])&&(e[a]=P(b)?b:b.toString())},f.pu=function(a,b){var e=this.La;ia(e[a])?e[a]=ia(b)?e[a]+b:e[a]+parseFloat(b):P(e[a])&&(e[a]=P(b)?e[a]+b:e[a]+b.toString())},f.lv=function(a,b){var e=this.La;ia(e[a])&&(e[a]=ia(b)?e[a]-b:e[a]-parseFloat(b))},f.av=function(a,b){this.La[a]=b?1:0},f.mv=function(a){this.La[a]=1-this.La[a]},f.Cu=function(){this.b.Od(this)},f.Up||(f.Up=function(a){var b,e;try{b=JSON.parse(a)}catch(f){return}this.b.Ni(this,b,!0);this.md&&this.md();if(this.G)for(a=
0,b=this.G.length;a<b;++a)e=this.G[a],e.md&&e.md()}),s.Bu=function(a){var b=a.If.c.length,e,f,d;e=0;for(f=this.b.Gc.length;e<f;e++)d=this.b.Gc[e],a.If.B?0<=d.type.na.indexOf(a.If)&&b++:d.type===a.If&&b++;a.ea(b)},s.Vu=function(a){a.ea(a.If.fa().Ic().length)},s.nv=function(a){a.ea(this.uid)},s.Eu=function(a){a.ea(this.wg())},s.Ep||(s.Ep=function(a){a.hc(JSON.stringify(this.b.Vl(this,!0)))}));k&&(l.Sp=function(){return this.visible},f.Dq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ga=!0)},
l.xu=function(a,b){return Wb(eb(100*this.opacity),a,b)},f.Aq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},s.Opacity=function(a){a.u(eb(100*this.opacity))});u&&(l.Gu=function(a){return a?this.d===a:!1},l.Uu=function(a){var b=this.fa(),e=b.Ic();if(!e.length)return!1;var f=e[0],d=f,c,h;c=1;for(h=e.length;c<h;c++)if(f=e[c],0===a){if(f.d.index>d.d.index||f.d.index===d.d.index&&f.tc()>d.tc())d=f}else if(f.d.index<d.d.index||f.d.index===d.d.index&&f.tc()<d.tc())d=
f;b.lh(d);return!0},f.Wp=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Pf(this,!1),a.hg(this,!1),this.b.ga=!0)},f.Nu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Pf(this,!1),a.Ft(this),this.b.ga=!0)},f.Ou=function(a){a&&a!=this.d&&(this.d.Pf(this,!0),this.d=a,a.hg(this,!0),this.b.ga=!0)},f.qv=function(a,b){var e=0===a;if(b){var f=b.js(this);f&&f.uid!==this.uid&&(this.d.index!==f.d.index&&(this.d.Pf(this,!0),this.d=f.d,f.d.hg(this,!0)),this.d.ht(this,f,e),this.b.ga=!0)}},
s.Ku=function(a){a.ea(this.d.uo)},s.Ju=function(a){a.hc(this.d.name)},s.pv=function(a){a.ea(this.tc())});v&&(f.bv=function(a,b){if(this.b.q){var e=this.type.Jk(b);if(!(0>e)){var f=1===a;this.Qd[e]!==f&&(this.Qd[e]=f,this.Md(),this.b.ga=!0)}}},f.yq=function(a,b,e){if(this.b.q){var f=this.type.Jk(a);0>f||(a=this.type.H[f],f=this.ta[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.q.ss(a.hb,b)&&(e/=100),f[b]!==e&&(f[b]=e,a.Ua&&(this.b.ga=!0))))}})};Cb=function(){this.fk=this.Oh=!0;this.type.Ih=!0;this.b.ga=
!0;var d,b,m=this.dk;d=0;for(b=m.length;d<b;++d)m[d](this);this.d.Tc&&this.la()};Db=function(d){d&&this.dk.push(d)};Fb=function(){if(this.Oh){var d=this.ya,b=this.Nb;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Cb*this.width,-this.Db*this.height);this.e?(d.offset(-this.x,-this.y),b.cp(d,this.e),b.offset(this.x,this.y),b.Pm(d)):b.Tf(d);d.normalize();this.Oh=!1;this.lu()}};var d=new R(0,0,0,0);Gb=function(){if(this.d.Tc){var q=this.d.Ub,b=this.ya;d.set(q.$b(b.left),q.ac(b.top),
q.$b(b.right),q.ac(b.bottom));this.Ib.di(d)||(this.Ib.right<this.Ib.left?q.update(this,null,d):q.update(this,this.Ib,d),this.Ib.mg(d),this.d.Hd=!0)}};Hb=function(){if(this.fk&&this.xe){this.la();var q=this.type.Th,b=this.ya;d.set(q.$b(b.left),q.ac(b.top),q.$b(b.right),q.ac(b.bottom));this.Wd.di(d)||(this.Wd.right<this.Wd.left?q.update(this,null,d):q.update(this,this.Wd,d),this.Wd.mg(d),this.fk=!1)}};Eb=function(d,b){return this.ya.bb(d,b)&&this.Nb.bb(d,b)?this.W&&!this.W.vf()?(this.W.gf(this.width,
this.height,this.e),this.W.bb(d-this.x,b-this.y)):!0:!1};yb=function(){this.type.Mj();return this.Je};Ib=function(){this.d.om();return this.Vc};Jb=function(){this.U.length=0;var d,b;d=0;for(b=this.Qd.length;d<b;d++)this.Qd[d]&&this.U.push(this.type.H[d]);this.Ap=!!this.U.length};zb=function(){return"Inst"+this.Qo};lb=function(d){if(d&&d.Kc&&d.type!=this){var b,m,h;b=0;for(m=d.siblings.length;b<m;b++)if(h=d.siblings[b],h.type==this)return h}d=this.fa().Ic();return d.length?d[0]:null};mb=function(d){var b=
this.fa().Ic();return b.length?b[d.wg()%b.length]:null};kb=function(){if(this.Wf&&!this.B){var d,b;d=0;for(b=this.c.length;d<b;d++)this.c[d].Je=d;var m=d,h=this.b.Gc;d=0;for(b=h.length;d<b;++d)h[d].type===this&&(h[d].Je=m++);this.Wf=!1}};wb=function(d){if(d<this.c.length)return this.c[d];d-=this.c.length;var b=this.b.Gc,m,h;m=0;for(h=b.length;m<h;++m)if(b[m].type===this){if(0===d)return b[m];--d}return null};nb=function(){return this.ne[this.td]};ob=function(){this.td++;this.td===this.ne.length?this.ne.push(new jb(this)):
this.ne[this.td].ka=!0};qb=function(){this.td++;this.td===this.ne.length&&this.ne.push(new jb(this));var d=this.ne[this.td],b=this.ne[this.td-1];b.ka?d.ka=!0:(d.ka=!1,ya(d.c,b.c),ya(d.V,b.V))};rb=function(){this.td--};sb=function(d){var b,m,h,a,e,k=0;if(!this.B)for(b=0,m=this.na.length;b<m;b++)for(e=this.na[b],h=0,a=e.Fa.length;h<a;h++){if(d===e.Fa[h].name)return this.ua.lastBehIndex=k,e.Fa[h];k++}b=0;for(m=this.Fa.length;b<m;b++){if(d===this.Fa[b].name)return this.ua.lastBehIndex=k,this.Fa[b];k++}return null};
tb=function(d){return this.oi(d)?this.ua.lastBehIndex:-1};ub=function(d){var b,m;b=0;for(m=this.H.length;b<m;b++)if(this.H[b].name===d)return b;return-1};vb=function(){if(this.Kc&&!this.B){var d,b,m,h,a,e,k;this.Mj();e=this.fa();var u=e.ka,v=(d=this.b.Ab())&&d.oc&&d.oc.Mc;d=0;for(b=this.Ob.length;d<b;d++)if(a=this.Ob[d],a!==this&&(a.Mj(),k=a.fa(),k.ka=u,!u)){k.c.length=e.c.length;m=0;for(h=e.c.length;m<h;m++)k.c[m]=a.on(e.c[m].Je);if(v)for(k.V.length=e.V.length,m=0,h=e.V.length;m<h;m++)k.V[m]=a.on(e.V[m].Je)}}};
xb=function(){return"Type"+this.P};Wb=function(d,b,m){if("undefined"===typeof d||"undefined"===typeof m)return!1;switch(b){case 0:return d===m;case 1:return d!==m;case 2:return d<m;case 3:return d<=m;case 4:return d>m;case 5:return d>=m;default:return!1}}})();
var ec={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(vec3(red, green, blue) * a, a);\n}",gi:0,hi:0,pk:!1,ak:!1,I:[["red",0,1],["green",0,1],["blue",0,1]]}};function hc(d){this.b=d}
(function(){function d(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].ec():r.destination}function b(){return r.createGain?r.createGain():r.createGainNode()}function m(a){return r.createDelay?r.createDelay(a):r.createDelayNode(a)}function h(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function e(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function k(a,
c,e,d,f,g){this.type="filter";this.Nc=[a,c,e,d,f,g];this.R=b();this.F=b();this.F.gain.value=g;this.C=b();this.C.gain.value=1-g;this.Ga=r.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:oc[a];this.Ga.frequency.value=c;this.Ga.detune&&(this.Ga.detune.value=e);this.Ga.Q.value=d;this.Ga.gain.value=f;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F)}function u(a,c,e){this.type="delay";this.Nc=[a,c,e];this.R=b();this.F=b();this.F.gain.value=e;this.C=b();this.C.gain.value=
1-e;this.Yg=b();this.pc=m(a);this.pc.delayTime.value=a;this.bi=b();this.bi.gain.value=c;this.R.connect(this.Yg);this.R.connect(this.C);this.Yg.connect(this.F);this.Yg.connect(this.pc);this.pc.connect(this.bi);this.bi.connect(this.Yg)}function v(a,c,e,d){this.type="convolve";this.Nc=[c,e,d];this.R=b();this.F=b();this.F.gain.value=e;this.C=b();this.C.gain.value=1-e;this.ye=r.createConvolver();a&&(this.ye.normalize=c,this.ye.buffer=a);this.R.connect(this.ye);this.R.connect(this.C);this.ye.connect(this.F)}
function l(a,c,e,d,f){this.type="flanger";this.Nc=[a,c,e,d,f];this.R=b();this.C=b();this.C.gain.value=1-f/2;this.F=b();this.F.gain.value=f/2;this.ji=b();this.ji.gain.value=d;this.pc=m(a+c);this.pc.delayTime.value=a;this.Za=r.createOscillator();this.Za.frequency.value=e;this.Tb=b();this.Tb.gain.value=c;this.R.connect(this.pc);this.R.connect(this.C);this.pc.connect(this.F);this.pc.connect(this.ji);this.ji.connect(this.pc);this.Za.connect(this.Tb);this.Tb.connect(this.pc.delayTime);h(this.Za)}function f(a,
c,e,d,f,g){this.type="phaser";this.Nc=[a,c,e,d,f,g];this.R=b();this.C=b();this.C.gain.value=1-g/2;this.F=b();this.F.gain.value=g/2;this.Ga=r.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=a;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=e;this.Za=r.createOscillator();this.Za.frequency.value=f;this.Tb=b();this.Tb.gain.value=d;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F);this.Za.connect(this.Tb);this.Tb.connect(this.Ga.frequency);
h(this.Za)}function s(a){this.type="gain";this.Nc=[a];this.T=b();this.T.gain.value=a}function g(a,c){this.type="tremolo";this.Nc=[a,c];this.T=b();this.T.gain.value=1-c/2;this.Za=r.createOscillator();this.Za.frequency.value=a;this.Tb=b();this.Tb.gain.value=c/2;this.Za.connect(this.Tb);this.Tb.connect(this.T.gain);h(this.Za)}function w(a,c){this.type="ringmod";this.Nc=[a,c];this.R=b();this.F=b();this.F.gain.value=c;this.C=b();this.C.gain.value=1-c;this.rh=b();this.rh.gain.value=0;this.Za=r.createOscillator();
this.Za.frequency.value=a;this.Za.connect(this.rh.gain);h(this.Za);this.R.connect(this.rh);this.R.connect(this.C);this.rh.connect(this.F)}function t(a,c,e,d,f){this.type="distortion";this.Nc=[a,c,e,d,f];this.R=b();this.ij=b();this.hj=b();this.Vt(e,Math.pow(10,d/20));this.F=b();this.F.gain.value=f;this.C=b();this.C.gain.value=1-f;this.Oj=r.createWaveShaper();this.$h=new Float32Array(65536);this.ds(a,c);this.Oj.$h=this.$h;this.R.connect(this.ij);this.R.connect(this.C);this.ij.connect(this.Oj);this.Oj.connect(this.hj);
this.hj.connect(this.F)}function n(a,b,c,e,d){this.type="compressor";this.Nc=[a,b,c,e,d];this.T=r.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=e,this.T.release.value=d}catch(f){}}function E(a,b){this.type="analyser";this.Nc=[a,b];this.T=r.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.bs=new Float32Array(this.T.frequencyBinCount);this.fp=new Uint8Array(a);this.kh=0}function c(){this.D=null;this.Pi=0;this.oe=
[];this.wl=this.Ii=this.Hi=0}function A(a,c){this.src=a;this.N=D;this.Lc=c;this.Lm=!1;var e=this;this.tl=this.Gl=null;this.Mf=[];this.qj=0;this.wm=this.yk=this.jp=this.ej=!1;1===D&&c&&(this.N=0,this.Gl=b());this.ue=this.X=null;var d;switch(this.N){case 0:this.X=new Audio;this.X.addEventListener("canplaythrough",function(){e.wm=!0});1===D&&r.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.jp=!0,this.X.addEventListener("canplay",function(){e.tl||(e.tl=r.createMediaElementSource(e.X),
e.tl.connect(e.Gl))}));this.X.autoplay=!1;this.X.zv="auto";this.X.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){e.ue=d.response;e.$q()};d.onerror=function(){e.yk=!0};d.send();break;case 2:this.X=!0;break;case 3:this.X=!0}}function p(a,c){var e=this;this.tag=c;this.Yb=this.$c=!0;this.src=a.src;this.buffer=a;this.N=D;this.Lc=a.Lc;this.playbackRate=1;this.lk=!0;this.wc=this.Id=!1;this.Jb=0;this.Gg=this.xf=this.bd=!1;this.volume=1;this.Oe=
1===H&&!this.Lc||2===H;this.Gf=1;this.startTime=this.Oe?x.xc.ba:x.ld.ba;this.Aa=this.Ha=null;this.cd=!1;this.za=null;this.Do=this.Co=this.Bo=this.Ao=this.Fo=this.Eo=0;this.j=null;var d=!1;1!==this.N||0!==this.buffer.N||this.buffer.jp||(this.N=0);switch(this.N){case 0:this.Lc?(this.j=a.X,d=!a.Lm,a.Lm=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.X.src,d=!0);d&&this.j.addEventListener("ended",function(){ha=e.tag;e.Yb=!0;x.trigger(hc.prototype.i.Rj,K)});break;case 1:this.Ha=b();this.Ha.connect(q(c));
1===this.buffer.N?a.X&&(this.j=r.createBufferSource(),this.j.buffer=a.X,this.j.connect(this.Ha)):(this.j=this.buffer.X,this.buffer.Gl.connect(this.Ha));break;case 2:this.j=new window.Media(W+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.lk=!0,e.Yb=!0,ha=e.tag,x.trigger(hc.prototype.i.Rj,K))});break;case 3:this.j=!0}}function z(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,e,d,f,g=r.destination;if(S.hasOwnProperty(a)&&(d=S[a],d.length))for(g=d[0].ec(),c=0,e=d.length;c<e;c++)f=
d[c],c+1===e?f.lc(r.destination):f.lc(d[c+1].ec());Ga.length=0;if(a.length)for(c=0,e=N.length;c<e;c++)d=N[c],fb(a,d.tag)&&Ga.push(d);else G&&!G.Ie()&&(Ga.length=1,Ga[0]=G);c=0;for(e=Ga.length;c<e;c++)Ga[c].Jt(g);ba&&pb===a&&(ba.disconnect(),ba.connect(g))}function F(){}function X(){}var y=hc.prototype;y.jb=function(a){this.Ba=a;this.b=a.b};y.jb.prototype.ja=function(){};var x=null,K=null,ha="",W="",D=0,r=null,ua=[],N=[],G=null,C=!1,H=0,I=!1,B=1,O=0,J=0,ja=1,L=1,pa=10,fa=1E4,sa=1,ba=null,pb="",La=
!1,Ma=[],S={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");k.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};k.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.F.disconnect();this.C.disconnect()};k.prototype.ec=function(){return this.R};u.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};u.prototype.remove=function(){this.R.disconnect();
this.Yg.disconnect();this.pc.disconnect();this.bi.disconnect();this.F.disconnect();this.C.disconnect()};u.prototype.ec=function(){return this.R};v.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};v.prototype.remove=function(){this.R.disconnect();this.ye.disconnect();this.F.disconnect();this.C.disconnect()};v.prototype.ec=function(){return this.R};l.prototype.lc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
l.prototype.remove=function(){this.R.disconnect();this.pc.disconnect();this.Za.disconnect();this.Tb.disconnect();this.C.disconnect();this.F.disconnect();this.ji.disconnect()};l.prototype.ec=function(){return this.R};f.prototype.lc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};f.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Za.disconnect();this.Tb.disconnect();this.C.disconnect();this.F.disconnect()};f.prototype.ec=function(){return this.R};
s.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};s.prototype.remove=function(){this.T.disconnect()};s.prototype.ec=function(){return this.T};g.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};g.prototype.remove=function(){this.Za.disconnect();this.Tb.disconnect();this.T.disconnect()};g.prototype.ec=function(){return this.T};w.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};w.prototype.remove=function(){this.Za.disconnect();
this.rh.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};w.prototype.ec=function(){return this.R};t.prototype.Vt=function(a,b){.01>a&&(a=.01);this.ij.gain.value=a;this.hj.gain.value=Math.pow(1/a,.6)*b};t.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};t.prototype.ds=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.$h[32768+f]=d,this.$h[32768-
f-1]=-d};t.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};t.prototype.remove=function(){this.R.disconnect();this.ij.disconnect();this.Oj.disconnect();this.hj.disconnect();this.F.disconnect();this.C.disconnect()};t.prototype.ec=function(){return this.R};n.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};n.prototype.remove=function(){this.T.disconnect()};n.prototype.ec=function(){return this.T};E.prototype.ab=function(){this.T.getFloatFrequencyData(this.bs);
this.T.getByteTimeDomainData(this.fp);for(var a=this.T.fftSize,b=0,c=this.kh=0,e=0;b<a;b++)e=(this.fp[b]-128)/128,0>e&&(e=-e),this.kh<e&&(this.kh=e),c+=e*e;this.kh=d(this.kh);d(Math.sqrt(c/a))};E.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};E.prototype.remove=function(){this.T.disconnect()};E.prototype.ec=function(){return this.T};c.prototype.sh=function(a){if(this.D=a)this.Hi=this.D.x,this.Ii=this.D.y;this.oe.length=0};c.prototype.xi=function(){return!!this.D};c.prototype.ab=function(a){this.D&&
0!==a&&(this.wl=Ia(this.Hi,this.Ii,this.D.x,this.D.y),a=Ra(this.Hi,this.Ii,this.D.x,this.D.y)/a,4>this.oe.length||this.oe.shift(),this.oe.push(a),this.Hi=this.D.x,this.Ii=this.D.y)};c.prototype.sn=function(){if(!this.oe.length)return 0;var a,b,c=0;a=0;for(b=this.oe.length;a<b;a++)c+=this.oe[a];return c/this.oe.length};c.prototype.Nk=function(){return Math.cos(this.wl)*this.sn()};c.prototype.Ok=function(){return Math.sin(this.wl)*this.sn()};var lc=!1;A.prototype.$q=function(){if(!this.X&&this.ue){var a=
this;if(r.decodeAudioData)r.decodeAudioData(this.ue,function(b){a.X=b;a.ue=null;var c,e,d;if(ga(a.fj)||I)ga(a.Vh)||(c=a.Vh.ye,c.normalize=a.so,c.buffer=b);else if(a.Mf.length){c=0;for(e=a.Mf.length;c<e;c++){b=a.Mf[c];d=new p(a,b.mp);d.Xl(!0);if("undefined"!==typeof b.vo&&(b.D=x.ri(b.vo),!b.D))continue;if(b.D){var f=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,J,!0),g=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,J,!1);d.Wl(f,g,Ca(b.D.e-b.D.d.Va()),b.Uk,b.xl,b.Al);d.sh(b.D)}else d.Wl(b.x,b.y,b.Fq,b.Uk,b.xl,b.Al);d.play(a.ql,a.um,
a.qj);a.ej&&d.pause();N.push(d)}a.Mf.length=0}else d=new p(a,a.fj),d.play(a.ql,a.um,a.qj),a.ej&&d.pause(),N.push(d)},function(){a.yk=!0});else if(this.X=r.createBuffer(this.ue,!1),this.ue=null,ga(this.fj)||I)ga(this.Vh)||(b=this.Vh.ye,b.normalize=this.so,b.buffer=this.X);else{var b=new p(this,this.fj);b.play(this.ql,this.um,this.qj);this.ej&&b.pause();N.push(b)}}};A.prototype.En=function(){switch(this.N){case 0:var a=4<=this.X.readyState;a&&(this.wm=!0);return a||this.wm;case 1:return!!this.ue||!!this.X;
case 2:return!0;case 3:return!0}return!1};A.prototype.Us=function(){switch(this.N){case 0:return this.En();case 1:return!!this.X;case 2:return!0;case 3:return!0}return!1};A.prototype.Ks=function(){switch(this.N){case 0:return!!this.X.error;case 1:return this.yk}return!1};p.prototype.Ie=function(){var a;switch(this.N){case 0:return this.j.ended;case 1:if(1===this.buffer.N){if(!this.$c&&!this.Yb&&this.j.loop||this.wc)return!1;a=this.Oe?x.xc.ba:x.ld.ba;return a-this.startTime>this.buffer.X.duration}return this.j.ended;
case 2:return this.lk;case 3:!0}return!0};p.prototype.Tq=function(){return this.$c||this.Yb?!0:this.Ie()};p.prototype.Xl=function(a){1===D&&(!this.cd&&a?this.Ha&&(this.Aa||(this.Aa=r.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?ja:["equalpower","HRTF","soundfield"][ja],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?L:["linear","inverse","exponential"][L],this.Aa.refDistance=pa,this.Aa.maxDistance=fa,this.Aa.rolloffFactor=sa),this.Ha.disconnect(),this.Ha.connect(this.Aa),
this.Aa.connect(q(this.tag)),this.cd=!0):this.cd&&!a&&this.Ha&&(this.Aa.disconnect(),this.Ha.disconnect(),this.Ha.connect(q(this.tag)),this.cd=!1))};p.prototype.Wl=function(a,b,c,e,d,f){this.cd&&1===D&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(T(c)),Math.sin(T(c)),0),this.Aa.coneInnerAngle=e,this.Aa.coneOuterAngle=d,this.Aa.coneOuterGain=f,this.Eo=a,this.Fo=b,this.Ao=c,this.Bo=e,this.Co=d,this.Do=f)};p.prototype.sh=function(a){this.cd&&1===D&&(this.za||(this.za=new c),this.za.sh(a))};
p.prototype.ab=function(a){if(this.cd&&1===D&&this.za&&this.za.xi()&&this.tf()){this.za.ab(a);a=this.za.D;var b=Qa(a.x,a.y,-a.d.Va(),O,J,!0),c=Qa(a.x,a.y,-a.d.Va(),O,J,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.za.D.e&&(b=a.e-a.d.Va(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.za.Nk(),this.za.Ok(),-a.d.Va(),0,0,!0);c=Qa(this.za.Nk(),this.za.Ok(),-a.d.Va(),0,0,!1);this.Aa.setVelocity(b,c,0)}};p.prototype.play=function(b,c,e){var d=this.j;this.bd=b;this.volume=c;
e=e||0;switch(this.N){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*B&&(d.volume=c*B);d.loop!==b&&(d.loop=b);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(f){}if(this.Lc&&La&&!x.ha)Ma.push(this);else try{this.j.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Gf=1;if(1===this.buffer.N)this.$c||(this.j=r.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha)),
this.j.loop=b,this.Ha.gain.value=c*B,0===e?h(this.j):a(this.j,e,this.Ge());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==b&&(d.loop=b);this.Ha.gain.value=c*B;if(d.currentTime!==e)try{d.currentTime=e}catch(k){}this.Lc&&La&&!x.ha?Ma.push(this):d.play()}break;case 2:(!this.$c&&this.Yb||0!==e)&&d.seekTo(e);d.play();this.lk=!1;break;case 3:x.fb?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Oe?x.xc.ba:x.ld.ba)-e;this.wc=this.Yb=
this.$c=!1};p.prototype.stop=function(){switch(this.N){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.N?e(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:x.fb&&AppMobi.context.stopSound(this.src)}this.Yb=!0;this.wc=!1};p.prototype.pause=function(){if(!(this.$c||this.Yb||this.Ie()||this.wc)){switch(this.N){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.N?(this.Jb=this.Lk(),this.bd&&(this.Jb%=this.Ge()),e(this.j)):this.j.paused||this.j.pause();
break;case 2:this.j.pause();break;case 3:x.fb&&AppMobi.context.stopSound(this.src)}this.wc=!0}};p.prototype.Mt=function(){if(!(this.$c||this.Yb||this.Ie())&&this.wc){switch(this.N){case 0:this.j.play();break;case 1:1===this.buffer.N?(this.j=r.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha),this.j.loop=this.bd,this.Ha.gain.value=B*this.volume*this.Gf,this.startTime=(this.Oe?x.xc.ba:x.ld.ba)-this.Jb,a(this.j,this.Jb,this.Ge())):this.j.play();break;case 2:this.j.play();break;
case 3:x.fb&&AppMobi.context.resumeSound(this.src)}this.wc=!1}};p.prototype.seek=function(a){if(!(this.$c||this.Yb||this.Ie()))switch(this.N){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.N)this.wc?this.Jb=a:(this.pause(),this.Jb=a,this.Mt());else try{this.j.currentTime=a}catch(c){}break;case 3:x.fb&&AppMobi.context.seekSound(this.src,a)}};p.prototype.Jt=function(a){1===this.N&&(this.cd?(this.Aa.disconnect(),this.Aa.connect(a)):(this.Ha.disconnect(),this.Ha.connect(a)))};
p.prototype.Ge=function(){switch(this.N){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.X.duration;case 2:return this.j.getDuration();case 3:if(x.fb)return AppMobi.context.getDurationSound(this.src)}return 0};p.prototype.Lk=function(){var a=this.Ge(),b=0;switch(this.N){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.N){if(this.wc)return this.Jb;b=(this.Oe?x.xc.ba:x.ld.ba)-this.startTime}else"undefined"!==
typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:x.fb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.bd&&b>a&&(b=a);return b};p.prototype.tf=function(){return!this.wc&&!this.$c&&!this.Yb&&!this.Ie()};p.prototype.ju=function(){var a=this.volume*B;switch(this.N){case 0:this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:this.Ha.gain.value=a*this.Gf}};p.prototype.ci=function(a){switch(this.N){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:this.Gf=a?0:
1,this.Ha.gain.value=B*this.volume*this.Gf}};p.prototype.Xt=function(){this.xf=!0;this.ci(this.xf||this.Gg)};p.prototype.Zo=function(a){this.Gg=!!a;this.ci(this.xf||this.Gg)};p.prototype.zp=function(){var a=this.playbackRate;this.Oe&&(a*=x.Zf);switch(this.N){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.N?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};p.prototype.Zt=function(b){switch(this.N){case 0:b?
this.tf()?(this.j.pause(),this.Id=!0):this.Id=!1:this.Id&&this.j.play();break;case 1:b?this.tf()?(1===this.buffer.N?(this.Jb=this.Lk(),this.bd&&(this.Jb%=this.Ge()),e(this.j)):this.j.pause(),this.Id=!0):this.Id=!1:this.Id&&(1===this.buffer.N?(this.j=r.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha),this.j.loop=this.bd,this.Ha.gain.value=B*this.volume*this.Gf,this.startTime=(this.Oe?x.xc.ba:x.ld.ba)-this.Jb,a(this.j,this.Jb,this.Ge())):this.j.play());break;case 2:b?this.tf()?
(this.j.pause(),this.Id=!0):this.Id=!1:this.Id&&this.j.play()}};y.Ea=function(a){this.type=a;x=this.b=a.b;K=this;this.qb=null;this.Og=-600;!(this.b.Gi||this.b.Bi&&(this.b.Cg||this.b.Ci))||this.b.Dg||this.b.ca||(La=!0);r=null;"undefined"!==typeof AudioContext?(D=1,r=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,r=new webkitAudioContext);(this.b.Gi&&1===D||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&r&&(a=r.createBuffer(1,1,22050),b=r.createBufferSource(),
b.buffer=a,b.connect(r.destination),h(b),lc=!0);if(La){if(!I)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.Yb||c.wc||c.j.play();Ma.length=0}},!0);1!==D&&(this.b.vc&&"undefined"!==typeof window.Media?D=2:this.b.sf&&(D=3));2===D&&(W=location.href,a=W.lastIndexOf("/"),-1<a&&(W=W.substr(0,a+1)),W=W.replace("file://",""));if(this.b.Fn&&this.b.Vs&&"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.Od(this);
else{if(this.b.fb)C=this.b.Bi;else try{C=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){C=!1}this.b.gm(this)}};var ka=y.Ea.prototype;ka.ja=function(){this.b.ff=this;H=this.pa[0];this.Jd=this.pa[1];this.zt=0!==this.pa[2];ja=this.pa[3];L=this.pa[4];this.Og=-this.pa[5];pa=this.pa[6];fa=this.pa[7];sa=this.pa[8];this.qb=new c;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===D&&(r.listener.speedOfSound=this.pa[9],r.listener.dopplerFactor=this.pa[10],r.listener.setPosition(a/
2,b/2,this.Og),r.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();pb=b.toLowerCase();ba=r.createMediaStreamSource(a);ba.connect(q(pb))});this.b.Lq(function(a){K.ut(a)});var e=this;this.b.Jq(function(a){e.nt(a)})};ka.nt=function(a){var b,c,e;b=0;for(c=N.length;b<c;b++)e=N[b],e.za&&e.za.D===a&&(e.za.D=null,e.cd&&e.tf()&&e.bd&&e.stop());this.qb.D===a&&(this.qb.D=null)};ka.Vb=function(){var a={silent:I,masterVolume:B,listenerZ:this.Og,listenerUid:this.qb.xi()?
this.qb.D.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,f,g,h;c=0;for(e=N.length;c<e;c++)d=N[c],!d.tf()||3===this.Jd||d.Lc&&1===this.Jd||!d.Lc&&2===this.Jd||(f=d.Lk(),d.bd&&(f%=d.Ge()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Lc,playbackTime:f,volume:d.volume,looping:d.bd,muted:d.xf,playbackRate:d.playbackRate,paused:d.wc,resume_position:d.Jb},d.cd&&(f.pan={},h=f.pan,d.za&&d.za.xi()?h.objUid=d.za.D.uid:(h.x=d.Eo,h.y=d.Fo,h.a=d.Ao),h.ia=d.Bo,h.oa=d.Co,h.og=d.Do),b.push(f));b=a.effects;for(g in S)if(S.hasOwnProperty(g)){d=
[];c=0;for(e=S[g].length;c<e;c++)d.push({type:S[g][c].type,params:S[g][c].Nc});b[g]=d}return a};var Na=[];ka.yc=function(a){var b=a.silent;B=a.masterVolume;this.Og=a.listenerZ;this.qb.sh(null);var e=a.listenerUid;-1!==e&&(this.qb.Pi=e,Na.push(this.qb));var e=a.playing,d,h,p,m,q,F,x,ha,y,r,X;if(3!==this.Jd)for(d=0,h=N.length;d<h;d++)y=N[d],y.Lc&&1===this.Jd||(y.Lc||2!==this.Jd)&&y.stop();for(q in S)if(S.hasOwnProperty(q))for(d=0,h=S[q].length;d<h;d++)S[q][d].remove();Ua(S);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(F=
a.effects[q],d=0,h=F.length;d<h;d++)switch(p=F[d].type,r=F[d].params,p){case "filter":z(q,new k(r[0],r[1],r[2],r[3],r[4],r[5]));break;case "delay":z(q,new u(r[0],r[1],r[2]));break;case "convolve":p=r[2];y=this.ni(p,!1);y.X?p=new v(y.X,r[0],r[1],p):(p=new v(null,r[0],r[1],p),y.so=r[0],y.Vh=p);z(q,p);break;case "flanger":z(q,new l(r[0],r[1],r[2],r[3],r[4]));break;case "phaser":z(q,new f(r[0],r[1],r[2],r[3],r[4],r[5]));break;case "gain":z(q,new s(r[0]));break;case "tremolo":z(q,new g(r[0],r[1]));break;
case "ringmod":z(q,new w(r[0],r[1]));break;case "distortion":z(q,new t(r[0],r[1],r[2],r[3],r[4]));break;case "compressor":z(q,new n(r[0],r[1],r[2],r[3],r[4]));break;case "analyser":z(q,new E(r[0],r[1]))}d=0;for(h=e.length;d<h;d++)3===this.Jd||(a=e[d],p=a.buffersrc,m=a.is_music,q=a.tag,F=a.playbackTime,x=a.looping,ha=a.volume,X=(r=a.pan)&&r.hasOwnProperty("objUid")?r.objUid:-1,m&&1===this.Jd)||!m&&2===this.Jd||((y=this.ln(p,q,m,x,ha))?(y.Jb=a.resume_position,y.Xl(!!r),y.play(x,ha,F),y.zp(),y.ju(),
y.ci(y.xf||y.Gg),a.paused&&y.pause(),a.muted&&y.Xt(),y.ci(y.xf||y.Gg),r&&(-1!==X?(y.za=y.za||new c,y.za.Pi=X,Na.push(y.za)):y.Wl(r.x,r.y,r.a,r.ia,r.oa,r.og))):(y=this.ni(p,m),y.qj=F,y.ej=a.paused,r&&(-1!==X?y.Mf.push({vo:X,Uk:r.ia,xl:r.oa,Al:r.og,mp:q}):y.Mf.push({x:r.x,y:r.y,Fq:r.a,Uk:r.ia,xl:r.oa,Al:r.og,mp:q}))));if(b&&!I){d=0;for(h=N.length;d<h;d++)N[d].Zo(!0);I=!0}else if(!b&&I){d=0;for(h=N.length;d<h;d++)N[d].Zo(!1);I=!1}};ka.md=function(){var a,b,c,e;a=0;for(b=Na.length;a<b;a++)c=Na[a],e=this.b.ri(c.Pi),
c.sh(e),c.Pi=-1,e&&(O=e.x,J=e.y);Na.length=0};ka.ut=function(a){if(!this.zt){!a&&r&&r.resume&&r.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].Zt(a);a&&r&&r.suspend&&r.suspend()}};ka.ab=function(){var a=this.b.Ce,b,c,e;b=0;for(c=N.length;b<c;b++)e=N[b],e.ab(a),0===e.N||3===e.N||e.$c||e.Yb||!e.Ie()||(e.Yb=!0,ha=e.tag,x.trigger(hc.prototype.i.Rj,K)),0!==H&&e.zp();var d,f;for(d in S)if(S.hasOwnProperty(d))for(e=S[d],b=0,c=e.length;b<c;b++)f=e[b],f.ab&&f.ab();1===D&&this.qb.xi()&&(this.qb.ab(a),O=this.qb.D.x,
J=this.qb.D.y,r.listener.setPosition(this.qb.D.x,this.qb.D.y,this.Og),r.listener.setVelocity(this.qb.Nk(),this.qb.Ok(),0))};var Oa=[];ka.Yt=function(a){var b,c,e,d,f,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&C||!f&&!C)Oa.push({filename:d,size:e,D:null}),g+=e;return g};ka.cu=function(){var a,b,c,e;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],e=this.b.zk+c.filename,c.D=this.ni(e,!1)};ka.ps=function(){var a=0,b,c,e;b=0;for(c=Oa.length;b<c;++b)e=Oa[b],
e.D.Us()||e.D.Ks()||this.b.ca||this.b.Ci?a+=e.size:e.D.En()&&(a+=Math.floor(e.size/2));return a};ka.ni=function(a,b){var c,e,d,f=null;c=0;for(e=ua.length;c<e;c++)if(d=ua[c],d.src===a){f=d;break}f||(f=new A(a,b),ua.push(f));return f};ka.ln=function(a,b,c,e,d){var f,g,h;f=0;for(g=N.length;f<g;f++)if(h=N[f],h.src===a&&(h.Tq()||c))return h.tag=b,h;a=this.ni(a,c);if(!a.X)return"<preload>"!==b&&(a.fj=b,a.ql=e,a.um=d),null;h=new p(a,b);N.push(h);return h};var Ga=[];F.prototype.Rj=function(a){return fb(ha,
a)};y.i=new F;X.prototype.Play=function(a,b,c,e){!I&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),G=this.ln(this.b.zk+a[0]+(C?".ogg":".m4a"),e,a[1],0!==b,c))&&(G.Xl(!1),G.play(0!==b,c))};y.qa=new X;y.cb=new function(){}})();function ic(d){this.b=d}
(function(){function d(){}var q=ic.prototype;q.jb=function(b){this.Ba=b;this.b=b.b};q.jb.prototype.ja=function(){};q.Ea=function(b){this.type=b;this.b=b.b;this.gl=Array(256);this.Nj=Array(256);this.qe=0};var b=q.Ea.prototype;b.ja=function(){var b=this;this.b.ca||(jQuery(document).keydown(function(a){b.ot(a)}),jQuery(document).keyup(function(a){b.pt(a)}))};var m=[32,33,34,35,36,37,38,39,40,44];b.ot=function(b){var a=!1;window!=window.top&&-1<m.indexOf(b.which)&&(b.preventDefault(),a=!0,b.stopPropagation());
if(this.gl[b.which])this.Nj[b.which]&&!a&&b.preventDefault();else{this.gl[b.which]=!0;this.qe=b.which;this.b.ha=!0;this.b.trigger(ic.prototype.i.$p,this);var e=this.b.trigger(ic.prototype.i.lq,this),d=this.b.trigger(ic.prototype.i.mq,this);this.b.ha=!1;if(e||d)this.Nj[b.which]=!0,a||b.preventDefault()}};b.pt=function(b){this.gl[b.which]=!1;this.qe=b.which;this.b.ha=!0;this.b.trigger(ic.prototype.i.aq,this);var a=this.b.trigger(ic.prototype.i.oq,this),e=this.b.trigger(ic.prototype.i.nq,this);this.b.ha=
!1;if(a||e||this.Nj[b.which])this.Nj[b.which]=!0,b.preventDefault()};b.Vb=function(){return{triggerKey:this.qe}};b.yc=function(b){this.qe=b.triggerKey};d.prototype.lq=function(b){return b===this.qe};d.prototype.$p=function(){return!0};d.prototype.aq=function(){return!0};d.prototype.oq=function(b){return b===this.qe};d.prototype.mq=function(b){return b===this.qe};d.prototype.nq=function(b){return b===this.qe};q.i=new d;q.qa=new function(){};q.cb=new function(){}})();function jc(d){this.b=d}
(function(){function d(){}function q(){}var b=jc.prototype;b.jb=function(a){this.Ba=a;this.b=a.b};b.jb.prototype.ja=function(){};b.Ea=function(a){this.type=a;this.b=a.b;this.Ph=Array(4);this.op=this.Ij=this.$f=this.Ed=this.Dd=0;this.Rk=!1};var m=b.Ea.prototype;m.ja=function(){var a=this;if(!this.b.ca){jQuery(document).mousemove(function(b){a.dh(b)});jQuery(document).mousedown(function(b){a.bh(b)});jQuery(document).mouseup(function(b){a.eh(b)});jQuery(document).dblclick(function(b){a.lt(b)});var b=
function(b){a.xt(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var h={left:0,top:0};m.dh=function(a){var b=this.b.ca?h:jQuery(this.b.canvas).offset();this.Dd=a.pageX-b.left;this.Ed=a.pageY-b.top};m.oo=function(){return 0<this.b.ob?!0:0<=this.Dd&&0<=this.Ed&&this.Dd<this.b.width&&this.Ed<this.b.height};m.bh=function(a){this.oo()&&(this.b.pf&&!this.b.ad&&a.preventDefault(),this.Ph[a.which]=!0,this.b.ha=!0,this.b.trigger(jc.prototype.i.ym,this),this.$f=
a.which-1,this.Ij=0,this.b.trigger(jc.prototype.i.zm,this),this.b.trigger(jc.prototype.i.Tj,this),this.b.ha=!1)};m.eh=function(a){this.Ph[a.which]&&(this.b.pf&&!this.b.ad&&a.preventDefault(),this.b.pf=!0,this.Ph[a.which]=!1,this.b.ha=!0,this.$f=a.which-1,this.b.trigger(jc.prototype.i.rq,this),this.b.ha=!1)};m.lt=function(a){this.oo()&&(a.preventDefault(),this.b.ha=!0,this.$f=a.which-1,this.Ij=1,this.b.trigger(jc.prototype.i.zm,this),this.b.trigger(jc.prototype.i.Tj,this),this.b.ha=!1)};m.xt=function(a){this.op=
0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Rk=!1;this.b.ha=!0;this.b.trigger(jc.prototype.i.uq,this);this.b.ha=!1;this.Rk&&gb(a)&&a.preventDefault()};d.prototype.zm=function(a,b){return a===this.$f&&b===this.Ij};d.prototype.ym=function(){return!0};d.prototype.Mp=function(a){return this.Ph[a+1]};d.prototype.rq=function(a){return a===this.$f};d.prototype.Pp=function(a){var b=this.b.pi();return Sa(this.b.Xf(a,this.Dd,this.Ed,b.rf),b.rf)};d.prototype.Tj=function(a,b,d){return a!==this.$f||
b!==this.Ij?!1:this.b.Xf(d,this.Dd,this.Ed,!1)};d.prototype.uq=function(a){this.Rk=!0;return a===this.op};b.i=new d;b.qa=new function(){};q.prototype.Gh=function(a,b){var d,h,m,l,f;ga(b)?(d=this.b.yd(0),h=d.scale,m=d.nb,l=d.Gb,f=d.e,d.scale=1,d.nb=1,d.Gb=1,d.e=0,a.u(d.ma(this.Dd,this.Ed,!0)),d.scale=h,d.nb=m,d.Gb=l,d.e=f):(d=ia(b)?this.b.yd(b):this.b.ug(b))?a.u(d.ma(this.Dd,this.Ed,!0)):a.u(0)};q.prototype.Hh=function(a,b){var d,h,m,l,f;ga(b)?(d=this.b.yd(0),h=d.scale,m=d.nb,l=d.Hb,f=d.e,d.scale=
1,d.nb=1,d.Hb=1,d.e=0,a.u(d.ma(this.Dd,this.Ed,!1)),d.scale=h,d.nb=m,d.Hb=l,d.e=f):(d=ia(b)?this.b.yd(b):this.b.ug(b))?a.u(d.ma(this.Dd,this.Ed,!1)):a.u(0)};b.cb=new q})();function kc(d){this.b=d}
(function(){function d(b){this.k=b;this.Ua=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Rd=this.of=this.size=this.vi=0}var q=kc.prototype;q.jb=function(b){this.Ba=b;this.b=b.b};var b=q.jb.prototype;b.ja=function(){this.B||(this.J=new Image,this.J.nk=this.Dj,this.O=null,this.b.vm(this.J,this.Cj))};b.Xi=function(){this.B||(this.O=null)};b.Yi=function(){this.B||!this.c.length||this.O||(this.O=this.b.q.Cf(this.J,!0,this.b.S,this.Ah))};b.Qg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Cf(this.J,
!0,this.b.S,this.Ah))};b.Lj=function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};b.jj=function(b){b.drawImage(this.J,0,0)};d.prototype.init=function(){var b=this.k;this.x=b.x-b.Pj/2+Math.random()*b.Pj;this.y=b.y-b.Qj/2+Math.random()*b.Qj;this.speed=b.Yk-b.wj/2+Math.random()*b.wj;this.e=b.e-b.xj/2+Math.random()*b.xj;this.opacity=b.Wk;this.size=b.Xk-b.uj/2+Math.random()*b.uj;this.vi=b.Qk-b.wi/2+Math.random()*b.wi;this.Rd=this.of=0};d.prototype.ab=function(b){var a=
this.k;this.x+=Math.cos(this.e)*this.speed*b;this.y+=Math.sin(this.e)*this.speed*b;this.y+=this.of*b;this.speed+=a.Wj*b;this.size+=this.vi*b;this.of+=a.Fk*b;this.Rd+=b;1>this.size?this.Ua=!1:(0!==a.Lg&&(this.e+=Math.random()*a.Lg*b-a.Lg*b/2),0!==a.Ng&&(this.speed+=Math.random()*a.Ng*b-a.Ng*b/2),0!==a.Mg&&(this.opacity+=Math.random()*a.Mg*b-a.Mg*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.jf&&this.Rd>=a.timeout&&(this.Ua=!1),2===a.jf&&0>=this.speed&&(this.Ua=!1))};d.prototype.Hc=
function(b){var a=this.k.opacity*this.opacity;if(0!==a){0===this.k.jf&&(a*=1-this.Rd/this.k.timeout);b.globalAlpha=a;var a=this.x-this.size/2,d=this.y-this.size/2;this.k.b.ed&&(a=a+.5|0,d=d+.5|0);b.drawImage(this.k.type.J,a,d,this.size,this.size)}};d.prototype.Pb=function(b){var a=this.k.opacity*this.opacity;0===this.k.jf&&(a*=1-this.Rd/this.k.timeout);var d=this.size,k=d*this.k.Io,m=this.x-d/2,q=this.y-d/2;this.k.b.ed&&(m=m+.5|0,q=q+.5|0);1>k||0===a||(k<b.gt||k>b.sl?(b.Ye(a),b.oh(m,q,m+d,q,m+d,q+
d,m,q+d)):b.At(this.x,this.y,k,a))};d.prototype.left=function(){return this.x-this.size/2};d.prototype.right=function(){return this.x+this.size/2};d.prototype.top=function(){return this.y-this.size/2};d.prototype.bottom=function(){return this.y+this.size/2};q.Ea=function(b){this.type=b;this.b=b.b};var b=q.Ea.prototype,m=[];b.ja=function(){var b=this.pa;this.nj=b[0];this.xj=T(b[1]);this.Uf=b[2];this.Zl=!0;this.Yk=b[3];this.Xk=b[4];this.Wk=b[5]/100;this.Qk=b[6];this.Pj=b[7];this.Qj=b[8];this.wj=b[9];
this.uj=b[10];this.wi=b[11];this.Wj=b[12];this.Fk=b[13];this.Lg=b[14];this.Ng=b[15];this.Mg=b[16];this.jf=b[17];this.timeout=b[18];this.We=0;this.Io=1;this.bj=this.x;this.dj=this.y;this.cj=this.x;this.aj=this.y;this.Mq(function(a){a.ya.set(a.bj,a.dj,a.cj,a.aj);a.Nb.Tf(a.ya);a.Oh=!1;a.pm()});this.Pc||(this.sb=[]);this.b.gm(this);this.type.Qg();if(1===this.Uf)for(b=0;b<this.nj;b++)this.Yj().opacity=0;this.li=!0};b.Vb=function(){var b={r:this.nj,sc:this.xj,st:this.Uf,s:this.Zl,isp:this.Yk,isz:this.Xk,
io:this.Wk,gr:this.Qk,xr:this.Pj,yr:this.Qj,spr:this.wj,szr:this.uj,grnd:this.wi,acc:this.Wj,g:this.Fk,lar:this.Lg,lsr:this.Ng,lor:this.Mg,dm:this.jf,to:this.timeout,pcc:this.We,ft:this.li,p:[]},a,d,k,m=b.p;a=0;for(d=this.sb.length;a<d;a++)k=this.sb[a],m.push([k.x,k.y,k.speed,k.e,k.opacity,k.vi,k.size,k.of,k.Rd]);return b};b.yc=function(b){this.nj=b.r;this.xj=b.sc;this.Uf=b.st;this.Zl=b.s;this.Yk=b.isp;this.Xk=b.isz;this.Wk=b.io;this.Qk=b.gr;this.Pj=b.xr;this.Qj=b.yr;this.wj=b.spr;this.uj=b.szr;this.wi=
b.grnd;this.Wj=b.acc;this.Fk=b.g;this.Lg=b.lar;this.Ng=b.lsr;this.Mg=b.lor;this.jf=b.dm;this.timeout=b.to;this.We=b.pcc;this.li=b.ft;m.push.apply(m,this.sb);this.sb.length=0;var a,d,k,q=b.p;b=0;for(a=q.length;b<a;b++)d=this.Yj(),k=q[b],d.x=k[0],d.y=k[1],d.speed=k[2],d.e=k[3],d.opacity=k[4],d.vi=k[5],d.size=k[6],d.of=k[7],d.Rd=k[8]};b.ah=function(){m.push.apply(m,this.sb);this.sb.length=0};b.Yj=function(){var b;m.length?(b=m.pop(),b.k=this):b=new d(this);this.sb.push(b);b.Ua=!0;return b};b.ab=function(){var b=
this.b.Hk(this),a,d,k,q;if(0===this.Uf&&this.Zl)for(this.We+=b*this.nj,d=Q(this.We),this.We-=d,a=0;a<d;a++)k=this.Yj(),k.init();this.bj=this.x;this.dj=this.y;this.cj=this.x;this.aj=this.y;q=a=0;for(d=this.sb.length;a<d;a++)k=this.sb[a],this.sb[q]=k,this.b.ga=!0,1===this.Uf&&this.li&&k.init(),k.ab(b),k.Ua?(k.left()<this.bj&&(this.bj=k.left()),k.right()>this.cj&&(this.cj=k.right()),k.top()<this.dj&&(this.dj=k.top()),k.bottom()>this.aj&&(this.aj=k.bottom()),q++):m.push(k);this.sb.length=q;this.va();
this.li=!1;1===this.Uf&&0===this.sb.length&&this.b.Od(this)};b.Hc=function(b){var a,d,k,m=this.d;a=0;for(d=this.sb.length;a<d;a++)k=this.sb[a],k.right()>=m.wa&&k.bottom()>=m.xa&&k.left()<=m.Ka&&k.top()<=m.Ja&&k.Hc(b)};b.Pb=function(b){this.Io=this.d.rc();b.Wb(this.type.O);var a,d,k,m=this.d;a=0;for(d=this.sb.length;a<d;a++)k=this.sb[a],k.right()>=m.wa&&k.bottom()>=m.xa&&k.left()<=m.Ka&&k.top()<=m.Ja&&k.Pb(b)};q.i=new function(){};q.qa=new function(){};q.cb=new function(){}})();
function gc(d){this.b=d}
(function(){function d(){if(0===this.rk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Vf?b.drawImage(this.J,this.Jf,this.Kf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.J,0,0,this.width,this.height);this.rk=a.toDataURL("image/png")}return this.rk}function q(){}var b=gc.prototype;b.jb=function(a){this.Ba=a;this.b=a.b};var m=b.jb.prototype;m.ja=function(){if(!this.B){var a,b,e,k,h,l,m,c,q;this.Fc=[];this.yg=
!1;a=0;for(b=this.Mb.length;a<b;a++){h=this.Mb[a];m={};m.name=h[0];m.speed=h[1];m.loop=h[2];m.Ql=h[3];m.oj=h[4];m.Jo=h[5];m.P=h[6];m.frames=[];e=0;for(k=h[7].length;e<k;e++)l=h[7][e],c={},c.Cj=l[0],c.Dj=l[1],c.Jf=l[2],c.Kf=l[3],c.width=l[4],c.height=l[5],c.duration=l[6],c.Cb=l[7],c.Db=l[8],c.Vk=l[9],c.gj=l[10],c.Ko=l[11],c.Vf=0!==c.width,c.rk="",c.vv=d,q={left:0,top:0,right:1,bottom:1},c.Yl=q,c.O=null,(q=this.b.$r(l[0]))?c.J=q:(c.J=new Image,c.J.Xq=l[0],c.J.nk=l[1],c.J.Sq=null,this.b.vm(c.J,l[0])),
m.frames.push(c),this.Fc.push(c);this.Mb[a]=m}}};m.yp=function(){var a,b,d;a=0;for(b=this.c.length;a<b;a++)d=this.c[a],d.Yh=d.mc.O};m.Xi=function(){if(!this.B){var a,b,d;a=0;for(b=this.Fc.length;a<b;++a)d=this.Fc[a],d.J.Sq=null,d.O=null;this.yg=!1;this.yp()}};m.Yi=function(){if(!this.B&&this.c.length){var a,b,d;a=0;for(b=this.Fc.length;a<b;++a)d=this.Fc[a],d.O=this.b.q.Cf(d.J,!1,this.b.S,d.Ko);this.yp()}};m.Qg=function(){if(!this.B&&!this.yg&&this.b.q){var a,b,d;a=0;for(b=this.Fc.length;a<b;++a)d=
this.Fc[a],d.O=this.b.q.Cf(d.J,!1,this.b.S,d.Ko);this.yg=!0}};m.Lj=function(){if(!this.B&&!this.c.length&&this.yg){var a,b,d;a=0;for(b=this.Fc.length;a<b;++a)d=this.Fc[a],this.b.q.deleteTexture(d.O),d.O=null;this.yg=!1}};var h=[];m.jj=function(a){var b,d,e;b=h.length=0;for(d=this.Fc.length;b<d;++b)e=this.Fc[b].J,-1===h.indexOf(e)&&(a.drawImage(e,0,0),h.push(e))};b.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Mb[0].frames[0].gj;this.Pc?this.W.uh(a):this.W=new $a(a)};var a=b.Ea.prototype;a.ja=
function(){this.visible=0===this.pa[0];this.xe=0!==this.pa[3];1===this.type.Mb.length&&1===this.type.Mb[0].frames.length||0===this.type.Mb[0].speed||this.b.gm(this);this.ra=this.kn(this.pa[1])||this.type.Mb[0];this.A=this.pa[2];0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);var a=this.ra.frames[this.A];this.W.uh(a.gj);this.Cb=a.Cb;this.Db=a.Db;this.ng=this.ra.speed;this.Pc?this.Wc.reset():this.Wc=new Ya;this.xd=this.Wc.ba;this.te=!0;this.nd=0;this.se=!0;this.jk=
this.Mm="";this.Uq=0;this.ik=-1;this.type.Qg();var b,d,e,k,h,l,c,a=0;for(b=this.type.Mb.length;a<b;a++)for(k=this.type.Mb[a],d=0,e=k.frames.length;d<e;d++)h=k.frames[d],0===h.width&&(h.width=h.J.width,h.height=h.J.height),h.Vf&&(c=h.J,l=h.Yl,l.left=h.Jf/c.width,l.top=h.Kf/c.height,l.right=(h.Jf+h.width)/c.width,l.bottom=(h.Kf+h.height)/c.height,0===h.Jf&&0===h.Kf&&h.width===c.width&&h.height===c.height&&(h.Vf=!1));this.mc=this.ra.frames[this.A];this.Yh=this.mc.O};a.Vb=function(){var a={a:this.ra.P,
f:this.A,cas:this.ng,fs:this.xd,ar:this.nd,at:this.Wc.ba};this.te||(a.ap=this.te);this.se||(a.af=this.se);return a};a.yc=function(a){var b=this.es(a.a);b&&(this.ra=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);this.ng=a.cas;this.xd=a.fs;this.nd=a.ar;this.Wc.reset();this.Wc.ba=a.at;this.te=a.hasOwnProperty("ap")?a.ap:!0;this.se=a.hasOwnProperty("af")?a.af:!0;this.mc=this.ra.frames[this.A];this.Yh=this.mc.O;this.W.uh(this.mc.gj);this.Cb=this.mc.Cb;
this.Db=this.mc.Db};a.bk=function(a){this.A=a?0:this.ra.frames.length-1;this.te=!1;this.Mm=this.ra.name;this.b.trigger(gc.prototype.i.Zp,this);this.b.trigger(gc.prototype.i.Yp,this);this.nd=0};a.xv=function(){return this.Wc.ba};a.ab=function(){this.Wc.add(this.b.Hk(this));this.jk.length&&this.cr();0<=this.ik&&this.dr();var a=this.Wc.ba,b=this.ra,d=b.frames[this.A],e=d.duration/this.ng;this.te&&a>=this.xd+e&&(this.se?this.A++:this.A--,this.xd+=e,this.A>=b.frames.length&&(b.Jo?(this.se=!1,this.A=b.frames.length-
2):b.loop?this.A=b.oj:(this.nd++,this.nd>=b.Ql?this.bk(!1):this.A=b.oj)),0>this.A&&(b.Jo?(this.A=1,this.se=!0,b.loop||(this.nd++,this.nd>=b.Ql&&this.bk(!0))):b.loop?this.A=b.oj:(this.nd++,this.nd>=b.Ql?this.bk(!0):this.A=b.oj)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.xd+b.frames[this.A].duration/this.ng&&(this.xd=a),a=b.frames[this.A],this.df(d,a),this.b.ga=!0)};a.kn=function(a){var b,d,e;b=0;for(d=this.type.Mb.length;b<d;b++)if(e=this.type.Mb[b],fb(e.name,a))return e;
return null};a.es=function(a){var b,d,e;b=0;for(d=this.type.Mb.length;b<d;b++)if(e=this.type.Mb[b],e.P===a)return e;return null};a.cr=function(){var a=this.ra.frames[this.A],b=this.kn(this.jk);this.jk="";!b||fb(b.name,this.ra.name)&&this.te||(this.ra=b,this.ng=b.speed,0>this.A&&(this.A=0),this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1),1===this.Uq&&(this.A=0),this.te=!0,this.xd=this.Wc.ba,this.se=!0,this.df(a,this.ra.frames[this.A]),this.b.ga=!0)};a.dr=function(){var a=this.ra.frames[this.A],
b=this.A;this.A=Q(this.ik);0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);b!==this.A&&(this.df(a,this.ra.frames[this.A]),this.xd=this.Wc.ba,this.b.ga=!0);this.ik=-1};a.df=function(a,b){var d=a.width,e=a.height,k=b.width,h=b.height;d!=k&&(this.width*=k/d);e!=h&&(this.height*=h/e);this.Cb=b.Cb;this.Db=b.Db;this.W.uh(b.gj);this.va();this.mc=b;this.Yh=b.O;d=0;for(e=this.G.length;d<e;d++)k=this.G[d],k.tt&&k.tt(a,b);this.b.trigger(gc.prototype.i.df,this)};a.Hc=function(a){a.globalAlpha=
this.opacity;var b=this.mc,d=b.Vf,e=b.J,k=this.x,h=this.y,l=this.width,c=this.height;if(0===this.e&&0<=l&&0<=c)k-=this.Cb*l,h-=this.Db*c,this.b.ed&&(k=Math.round(k),h=Math.round(h)),d?a.drawImage(e,b.Jf,b.Kf,b.width,b.height,k,h,l,c):a.drawImage(e,k,h,l,c);else{this.b.ed&&(k=Math.round(k),h=Math.round(h));a.save();var m=0<l?1:-1,p=0<c?1:-1;a.translate(k,h);1===m&&1===p||a.scale(m,p);a.rotate(this.e*m*p);k=0-this.Cb*na(l);h=0-this.Db*na(c);d?a.drawImage(e,b.Jf,b.Kf,b.width,b.height,k,h,na(l),na(c)):
a.drawImage(e,k,h,na(l),na(c));a.restore()}};a.Pb=function(a){a.Wb(this.Yh);a.Ye(this.opacity);var b=this.mc,d=this.Nb;if(this.b.ed){var e=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;b.Vf?a.Gd(d.Sa+e,d.Ta+k,d.Kb+e,d.Lb+k,d.xb+e,d.yb+k,d.ub+e,d.wb+k,b.Yl):a.oh(d.Sa+e,d.Ta+k,d.Kb+e,d.Lb+k,d.xb+e,d.yb+k,d.ub+e,d.wb+k)}else b.Vf?a.Gd(d.Sa,d.Ta,d.Kb,d.Lb,d.xb,d.yb,d.ub,d.wb,b.Yl):a.oh(d.Sa,d.Ta,d.Kb,d.Lb,d.xb,d.yb,d.ub,d.wb)};a.ls=function(a){var b=this.mc,d,e;d=0;for(e=b.Vk.length;d<e;d++)if(fb(a,
b.Vk[d][0]))return d;return-1};a.Kk=function(a,b){var d=this.mc,e=d.Vk,k;k=P(a)?this.ls(a):a-1;k=Q(k);if(0>k||k>=e.length)return b?this.x:this.y;var h=(e[k][1]-d.Cb)*this.width,e=e[k][2],e=(e-d.Db)*this.height,d=Math.cos(this.e);k=Math.sin(this.e);var l=h*d-e*k,e=e*d+h*k,h=l+this.x,e=e+this.y;return b?h:e};var e=null,k=new ca,u=!1,v=[],l=new R(0,0,0,0);m.finish=function(a){if(u){if(a){var b=this.b.Ab().oc.Mc;a=e.fa();var d=k.Uc(),h,l;if(a.ka){a.ka=!1;a.c.length=d.length;h=0;for(l=d.length;h<l;h++)a.c[h]=
d[h];if(b)for(h=a.V.length=0,l=e.c.length;h<l;h++)d=e.c[h],k.contains(d)||a.V.push(d)}else if(b)for(b=a.c.length,a.c.length=b+d.length,h=0,l=d.length;h<l;h++)a.c[b+h]=d[h],Ba(a.V,d[h]);else ya(a.c,d);e.od()}k.clear();u=!1}};q.prototype.Qp=function(a){if(a){var b=!1,d,h,m,n=this.b.pi(),q=n.type,n=n.rf;d=a.fa();h=this.b.Ab().oc.Mc;var c;d.ka?(this.la(),l.mg(this.ya),l.offset(0,0),this.b.hs(this.d,a,l,v),c=v):c=h?d.V:d.c;e=a;u=q!==a&&!n;d=0;for(h=c.length;d<h;d++)if(m=c[d],this.b.eu(this,m)){b=!0;if(n)break;
q!==a&&k.add(m)}v.length=0;a=b}else a=!1;return a};q.prototype.Yp=function(a){return fb(this.Mm,a)};q.prototype.Zp=function(){return!0};q.prototype.df=function(){return!0};b.i=new q;b.qa=new function(){};b.cb=new function(){}})();function mc(d){this.b=d}
(function(){var d=mc.prototype;d.jb=function(b){this.Ba=b;this.b=b.b};var q=d.jb.prototype;q.ja=function(){this.B||(this.J=new Image,this.J.nk=this.Dj,this.b.vm(this.J,this.Cj),this.O=this.pattern=null)};q.Xi=function(){this.B||(this.O=null)};q.Yi=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.q.Cf(this.J,!0,this.b.S,this.Ah));var b,d;b=0;for(d=this.c.length;b<d;b++)this.c[b].O=this.O}};q.Qg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Cf(this.J,!0,this.b.S,this.Ah))};q.Lj=
function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};q.jj=function(b){b.drawImage(this.J,0,0)};d.Ea=function(b){this.type=b;this.b=b.b};q=d.Ea.prototype;q.ja=function(){this.visible=0===this.pa[0];this.ph=new R(0,0,0,0);this.wn=!1;this.J=this.type.J;this.b.q?(this.type.Qg(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.aa.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};q.md=function(){this.wn=!1;this.J=this.type.J};q.ah=
function(){this.b.q&&this.wn&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};q.Hc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var d=this.x,h=this.y;this.b.ed&&(d=Math.round(d),h=Math.round(h));var a=-(this.Cb*this.width),e=-(this.Db*this.height),k=a%this.J.width,q=e%this.J.height;0>k&&(k+=this.J.width);0>q&&(q+=this.J.height);b.translate(d,h);b.rotate(this.e);b.translate(k,q);b.fillRect(a-k,e-q,this.width,this.height);b.restore()};q.Pb=function(b){b.Wb(this.O);
b.Ye(this.opacity);var d=this.ph;d.right=this.width/this.J.width;d.bottom=this.height/this.J.height;var h=this.Nb;if(this.b.ed){var a=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Gd(h.Sa+a,h.Ta+e,h.Kb+a,h.Lb+e,h.xb+a,h.yb+e,h.ub+a,h.wb+e,d)}else b.Gd(h.Sa,h.Ta,h.Kb,h.Lb,h.xb,h.yb,h.ub,h.wb,d)};d.i=new function(){};d.qa=new function(){};d.cb=new function(){}})();function Z(d){this.b=d}
(function(){function d(a){v=a.x;l=a.y;f=a.z}function q(a){s=a.x;g=a.y;w=a.z}function b(a,b,c,d){var e;e=t.length?t.pop():new m;e.init(a,b,c,d);return e}function m(){this.wh=this.id=this.y=this.x=this.Aj=this.zj=this.jl=this.time=this.am=0;this.Ch=this.Jj=!1}function h(){}function a(){}var e=Z.prototype;e.jb=function(a){this.Ba=a;this.b=a.b};e.jb.prototype.ja=function(){};e.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.ul=!1};var k=e.Ea.prototype,u={left:0,top:0};k.tg=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 v=0,l=0,f=0,s=0,g=0,w=0,t=[];m.prototype.init=function(a,b,c,d){var e=U();this.am=this.jl=this.time=e;this.zj=a;this.Aj=b;this.x=a;this.y=b;this.id=c;this.wh=d;this.Ch=this.Jj=!1};m.prototype.update=function(a,b,c){this.jl=this.time;this.time=a;this.x=b;this.y=c;!this.Ch&&15<=Ra(this.zj,this.Aj,this.x,this.y)&&(this.Ch=!0)};m.prototype.dt=function(a,b){!this.Jj&&500<=U()-this.am&&!this.Ch&&15>Ra(this.zj,this.Aj,
this.x,this.y)&&(this.Jj=!0,a.jd=this.wh,a.ag=this.id,a.mf=b,a.b.trigger(Z.prototype.i.jq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(Z.prototype.i.kq,a),a.mf=0)};var n=-1E3,E=-1E3,c=-1E4;m.prototype.ko=function(a,b){if(!this.Jj){var d=U();333>=d-this.am&&!this.Ch&&15>Ra(this.zj,this.Aj,this.x,this.y)&&(a.jd=this.wh,a.ag=this.id,a.mf=b,666>=d-c&&25>Ra(n,E,this.x,this.y)?(a.b.trigger(Z.prototype.i.fq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(Z.prototype.i.gq,a),E=n=-1E3,c=-1E4):(a.b.trigger(Z.prototype.i.sq,
a),a.rd=this.x,a.sd=this.y,a.b.trigger(Z.prototype.i.tq,a),n=this.x,E=this.y,c=d),a.mf=0)}};k.ja=function(){this.Ws=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.mf=this.ag=this.jd=this.sd=this.rd=this.Im=this.Hm=this.Gm=this.Iq=this.Hq=this.Gq=this.jh=this.ih=this.hh=0;this.nu=0!==this.pa[0];var a=0<this.b.ob?document:this.b.canvas,b=document;this.b.fb?b=a=window.Canvas:this.b.fc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.gh(a)},
!1),a.addEventListener("pointermove",function(a){c.fh(a)},!1),b.addEventListener("pointerup",function(a){c.Fd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Fd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.gh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.fh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Fd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Fd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.$i(a)},
!1),a.addEventListener("touchmove",function(a){c.Zi(a)},!1),b.addEventListener("touchend",function(a){c.Lf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Lf(a,!0)},!1));if(this.Ws){var e=function(a){a=a.reading;c.Gm=a.accelerationX;c.Hm=a.accelerationY;c.Im=a.accelerationZ},f=function(a){a=a.reading;c.hh=a.yawDegrees;c.ih=a.pitchDegrees;c.jh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.hh=a.alpha||
0;c.ih=a.beta||0;c.jh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Gq=a.accelerationIncludingGravity.x||0,c.Hq=a.accelerationIncludingGravity.y||0,c.Iq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Gm=a.acceleration.x||0,c.Hm=a.acceleration.y||0,c.Im=a.acceleration.z||0)},!1);this.nu&&!this.b.ca&&(jQuery(document).mousemove(function(a){c.dh(a)}),jQuery(document).mousedown(function(a){c.bh(a)}),jQuery(document).mouseup(function(a){c.eh(a)}));
this.b.sf&&!this.b.fb&&AppMobi.accelerometer.watchAcceleration(d,{frequency:40,adjustForRotation:!0});this.b.vc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(q,null,{frequency:40});this.b.fu(this)};k.fh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.tg(a.pointerId),c=U();if(0<=b){var d=this.b.ca?u:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};k.gh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.ca?u:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;U();this.jd=this.touches.length;this.ag=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.jd));this.b.ha=!0;this.b.trigger(Z.prototype.i.Dm,this);this.b.trigger(Z.prototype.i.Fm,this);this.rd=d;this.sd=c;this.b.trigger(Z.prototype.i.Vj,this);this.b.ha=
!1}};k.Fd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.tg(a.pointerId);this.jd=0<=c?this.touches[c].wh:-1;this.ag=0<=c?this.touches[c].id:-1;this.b.ha=!0;this.b.trigger(Z.prototype.i.Cm,this);this.b.trigger(Z.prototype.i.Em,this);0<=c&&(b||this.touches[c].ko(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.ha=!1}};k.Zi=function(a){a.preventDefault&&a.preventDefault();var b=U(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.tg(e.identifier),0<=f){var g=this.b.ca?u:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};k.$i=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.ca?u:jQuery(this.b.canvas).offset();U();this.b.ha=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.tg(f.identifier),-1===g){g=f.pageX-c.left;var k=f.pageY-c.top;
this.jd=this.touches.length;this.ag=f.identifier;this.touches.push(b(g,k,f.identifier,this.jd));this.b.trigger(Z.prototype.i.Dm,this);this.b.trigger(Z.prototype.i.Fm,this);this.rd=g;this.sd=k;this.b.trigger(Z.prototype.i.Vj,this)}this.b.ha=!1};k.Lf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ha=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.tg(e.identifier),0<=e&&(this.jd=this.touches[e].wh,this.ag=this.touches[e].id,this.b.trigger(Z.prototype.i.Cm,
this),this.b.trigger(Z.prototype.i.Em,this),b||this.touches[e].ko(this,e),100>t.length&&t.push(this.touches[e]),this.touches.splice(e,1));this.b.ha=!1};k.sv=function(){return this.b.sf&&0===this.hh&&0!==f?90*f:this.b.vc&&0===this.hh&&0!==w?90*w:this.hh};k.tv=function(){return this.b.sf&&0===this.ih&&0!==l?-90*l:this.b.vc&&0===this.ih&&0!==g?90*g:this.ih};k.wv=function(){return this.b.sf&&0===this.jh&&0!==v?90*v:this.b.vc&&0===this.jh&&0!==s?90*s:this.jh};k.bh=function(a){a.preventDefault&&this.b.pf&&
!this.b.ad&&a.preventDefault();this.$i({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ul=!0};k.dh=function(a){this.ul&&this.Zi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};k.eh=function(a){a.preventDefault&&this.b.pf&&!this.b.ad&&a.preventDefault();this.b.pf=!0;this.Lf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ul=!1};k.fm=function(){var a,b,c,d=U();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.jl=d),c.dt(this,
a)};h.prototype.Fm=function(){return!0};h.prototype.Em=function(){return!0};h.prototype.Vj=function(a){return a?this.b.Xf(a,this.rd,this.sd,!1):!1};var A=[];h.prototype.Rp=function(a){if(!a)return!1;var b=a.fa(),c=b.Ic(),d,e,f,g,k,h;f=0;for(g=c.length;f<g;f++){var l=c[f];l.la();k=0;for(h=this.touches.length;k<h;k++)if(e=this.touches[k],d=l.d.ma(e.x,e.y,!0),e=l.d.ma(e.x,e.y,!1),l.bb(d,e)){A.push(l);break}}return A.length?(b.ka=!1,ya(b.c,A),a.od(),A.length=0,!0):!1};h.prototype.Dm=function(a){a=Math.floor(a);
return a===this.jd};h.prototype.Cm=function(a){a=Math.floor(a);return a===this.jd};h.prototype.jq=function(){return!0};h.prototype.sq=function(){return!0};h.prototype.fq=function(){return!0};h.prototype.kq=function(a){return a?this.b.Xf(a,this.rd,this.sd,!1):!1};h.prototype.tq=function(a){return a?this.b.Xf(a,this.rd,this.sd,!1):!1};h.prototype.gq=function(a){return a?this.b.Xf(a,this.rd,this.sd,!1):!1};e.i=new h;a.prototype.Gh=function(a,b){var c=this.mf;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,k;ga(b)?(d=this.b.yd(0),e=d.scale,f=d.nb,g=d.Gb,k=d.e,d.scale=1,d.nb=1,d.Gb=1,d.e=0,a.u(d.ma(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.nb=f,d.Gb=g,d.e=k):(d=ia(b)?this.b.yd(b):this.b.ug(b))?a.u(d.ma(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};a.prototype.Hh=function(a,b){var c=this.mf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,k;ga(b)?(d=this.b.yd(0),e=d.scale,f=d.nb,g=d.Hb,k=d.e,d.scale=1,d.nb=1,d.Hb=1,d.e=0,a.u(d.ma(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.nb=f,d.Hb=g,d.e=k):(d=ia(b)?this.b.yd(b):this.b.ug(b))?a.u(d.ma(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};e.cb=new a})();
function nc(d){this.b=d;var q=this;this.b.ca||(jQuery(document).mousemove(function(b){q.dh(b)}),jQuery(document).mousedown(function(b){q.bh(b)}),jQuery(document).mouseup(function(b){q.eh(b)}));d=0<this.b.ob?document:this.b.canvas;this.b.fb?d=window.Canvas:this.b.fc&&(d=window);window.navigator.pointerEnabled?(d.addEventListener("pointerdown",function(b){q.gh(b)},!1),d.addEventListener("pointermove",function(b){q.fh(b)},!1),d.addEventListener("pointerup",function(b){q.Fd(b)},!1),d.addEventListener("pointercancel",
function(b){q.Fd(b)},!1)):window.navigator.msPointerEnabled?(d.addEventListener("MSPointerDown",function(b){q.gh(b)},!1),d.addEventListener("MSPointerMove",function(b){q.fh(b)},!1),d.addEventListener("MSPointerUp",function(b){q.Fd(b)},!1),d.addEventListener("MSPointerCancel",function(b){q.Fd(b)},!1)):(d.addEventListener("touchstart",function(b){q.$i(b)},!1),d.addEventListener("touchmove",function(b){q.Zi(b)},!1),d.addEventListener("touchend",function(b){q.Lf(b)},!1),d.addEventListener("touchcancel",
function(b){q.Lf(b)},!1))}
(function(){function d(a){var d,k;d=0;for(k=a.G.length;d<k;d++)if(a.G[d]instanceof b.Ea)return a.G[d];return null}function q(){}var b=nc.prototype,m={left:0,top:0};b.bh=function(a){1===a.which&&this.Bl("leftmouse",a.pageX,a.pageY)};b.dh=function(a){1===a.which&&this.Cl("leftmouse",a.pageX,a.pageY)};b.eh=function(a){1===a.which&&this.Dl("leftmouse")};b.$i=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,d,h,m;b=0;for(d=a.changedTouches.length;b<d;b++)h=a.changedTouches[b],m=h.identifier,
this.Bl(m?m.toString():"<none>",h.pageX,h.pageY)};b.Zi=function(a){a.preventDefault&&a.preventDefault();var b,d,h,m;b=0;for(d=a.changedTouches.length;b<d;b++)h=a.changedTouches[b],m=h.identifier,this.Cl(m?m.toString():"<none>",h.pageX,h.pageY)};b.Lf=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,d,h;b=0;for(d=a.changedTouches.length;b<d;b++)h=a.changedTouches[b],h=h.identifier,this.Dl(h?h.toString():"<none>")};b.gh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&
(a.preventDefault&&gb(a)&&a.preventDefault(),this.Bl(a.pointerId.toString(),a.pageX,a.pageY))};b.fh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Cl(a.pointerId.toString(),a.pageX,a.pageY))};b.Fd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Dl(a.pointerId.toString()))};b.Bl=function(a,b,k){var h=this.b.ca?m:jQuery(this.b.canvas).offset();b-=h.left;
k-=h.top;var q,l,f,s,h=this.Hf.Uc(),g,w,t,n=null;g=0;for(w=h.length;g<w;g++)if(t=h[g],q=d(t),q.enabled&&!q.Yd&&(q=t.d.ma(b,k,!0),l=t.d.ma(b,k,!1),t.la(),t.bb(q,l)))n?t.d.index>n.d.index?(n=t,f=q,s=l):t.d.index===n.d.index&&t.tc()>n.tc()&&(n=t,f=q,s=l):(n=t,f=q,s=l);n&&d(n).mt(a,f,s)};b.Cl=function(a,b,k){var h=this.b.ca?m:jQuery(this.b.canvas).offset();b-=h.left;k-=h.top;var q,l=this.Hf.Uc(),f,s,g;f=0;for(s=l.length;f<s;f++)q=l[f],g=d(q),!g.enabled||!g.Yd||g.Yd&&g.uk!==a||(h=q.d.ma(b,k,!0),q=q.d.ma(b,
k,!1),g.qt(h,q))};b.Dl=function(a){var b=this.Hf.Uc(),k,h,m;k=0;for(h=b.length;k<h;k++)m=b[k],m=d(m),m.Yd&&m.uk===a&&m.wt()};b.jb=function(a){this.behavior=a;this.b=a.b};b.jb.prototype.ja=function(){};b.Ea=function(a,b){this.type=a;this.behavior=a.behavior;this.Eb=b;this.b=a.b};var h=b.Ea.prototype;h.ja=function(){this.Yd=!1;this.$m=this.Zm=0;this.uk="<none>";this.ck=this.pa[0];this.enabled=0!==this.pa[1]};h.Vb=function(){return{enabled:this.enabled}};h.yc=function(a){this.enabled=a.enabled;this.Yd=
!1};h.mt=function(a,b,d){this.Zm=b-this.Eb.x;this.$m=d-this.Eb.y;this.Yd=!0;this.uk=a;this.b.ha=!0;this.b.trigger(nc.prototype.i.hq,this.Eb);this.b.ha=!1};h.qt=function(a,b){var d=a-this.Zm,h=b-this.$m;if(0===this.ck){if(this.Eb.x!==d||this.Eb.y!==h)this.Eb.x=d,this.Eb.y=h,this.Eb.va()}else 1===this.ck?this.Eb.x!==d&&(this.Eb.x=d,this.Eb.va()):2===this.ck&&this.Eb.y!==h&&(this.Eb.y=h,this.Eb.va())};h.wt=function(){this.Yd=!1;this.b.ha=!0;this.b.trigger(nc.prototype.i.iq,this.Eb);this.b.ha=!1};h.ab=
function(){};q.prototype.Op=function(){return this.Yd};q.prototype.hq=function(){return!0};q.prototype.iq=function(){return!0};b.i=new q;b.qa=new function(){};b.cb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,mc,Z,nc,jc.prototype.i.Pp,gc.prototype.qa.Aq,jc.prototype.i.Tj,Z.prototype.i.Rp,Y.prototype.qa.Cq,jc.prototype.i.Mp,Y.prototype.i.Ip,Y.prototype.qa.xq,Y.prototype.qa.Xp,Y.prototype.i.Am,gc.prototype.qa.Dq,jc.prototype.i.ym,gc.prototype.i.Sp,Z.prototype.i.Vj,gc.prototype.qa.Bq,hc.prototype.qa.Play,gc.prototype.qa.Wp,Y.prototype.i.Eq,Y.prototype.i.Kp,jc.prototype.cb.Gh,jc.prototype.cb.Hh,gc.prototype.i.Hp,gc.prototype.i.Qp,gc.prototype.qa.yq,gc.prototype.qa.zq,nc.prototype.i.Op,
Z.prototype.cb.Gh,Z.prototype.cb.Hh,Y.prototype.qa.vq,Y.prototype.qa.wq,Y.prototype.qa.Vp]};
