// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,ea,J,fa,ga,ia,P,ka,la,ma,na,qa,Q,ra,ta,T,va,wa,xa,ya,za,Aa,Ba,U,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,V,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,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(c,n,a,g){this.set(c,n,a,g)}function q(){this.xb=this.wb=this.zb=this.yb=this.Lb=this.Kb=this.Ta=this.Sa=0}function b(c,n,a,g){c<n?a<g?(t=c<a?c:a,u=n>g?n:g):(t=c<g?c:g,u=n>a?n:a):a<g?(t=n<a?n:a,u=c>g?c:g):(t=n<g?n:g,u=c>a?c:a)}function k(){this.items=this.Rc=null;this.Cf=0;n&&(this.Rc=new Set);this.eg=[];this.Yd=!0}function m(c){A[R++]=c}function d(){this.aa=this.zj=this.y=this.ck=0}function a(c){this.Oa=[];this.Lh=this.Nh=this.Oh=this.Mh=0;this.xh(c)}function f(c,n){this.fk=
c;this.ek=n;this.cells={}}function w(c,n){this.fk=c;this.ek=n;this.cells={}}function x(c,n,a){var g;return oa.length?(g=oa.pop(),g.Pk=c,g.x=n,g.y=a,g):new aa(c,n,a)}function g(c,n,a){this.Pk=c;this.x=n;this.y=a;this.Ya=new ca}function r(c,n,a){var g;return v.length?(g=v.pop(),g.Pk=c,g.x=n,g.y=a,g):new ea(c,n,a)}function p(c,n,a){this.Pk=c;this.x=n;this.y=a;this.Ya=[];this.Af=!0;this.fd=new ca;this.ig=!1}function h(c,n){return c.Wc-n.Wc}J=function(c){window.console&&window.console.log&&window.console.log(c)};
fa=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};ka=function(c){return 0<c&&0===(c-1&c)};la=function(c){--c;for(var n=1;32>n;n<<=1)c|=c>>n;return c+1};ma=function(c){return 0>c?-c:c};na=function(c,n){return c<n?c:n};qa=Math.PI;Q=function(c){return 0<=c?c|0:(c|0)-1};ra=function(c){var n=c|0;return n===c?n:n+1};ta=function(c,n,a,g,s,d,l,f){var b,
h,A,r;c<a?(h=c,b=a):(h=a,b=c);s<l?(r=s,A=l):(r=l,A=s);if(b<r||h>A)return!1;n<g?(h=n,b=g):(h=g,b=n);d<f?(r=d,A=f):(r=f,A=d);if(b<r||h>A)return!1;b=s-c+l-a;h=d-n+f-g;c=a-c;n=g-n;s=l-s;d=f-d;f=ma(n*s-d*c);return ma(s*h-d*b)>f?!1:ma(c*h-n*b)<=f};e.prototype.set=function(c,n,a,g){this.left=c;this.top=n;this.right=a;this.bottom=g};e.prototype.qg=function(c){this.left=c.left;this.top=c.top;this.right=c.right;this.bottom=c.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=
function(){return this.bottom-this.top};e.prototype.offset=function(c,n){this.left+=c;this.top+=n;this.right+=c;this.bottom+=n;return this};e.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)};e.prototype.Ms=function(c){return!(c.right<this.left||c.bottom<this.top||c.left>this.right||c.top>this.bottom)};e.prototype.Ns=function(c,n,a){return!(c.right+n<this.left||c.bottom+
a<this.top||c.left+n>this.right||c.top+a>this.bottom)};e.prototype.bb=function(c,n){return c>=this.left&&c<=this.right&&n>=this.top&&n<=this.bottom};e.prototype.di=function(c){return this.left===c.left&&this.top===c.top&&this.right===c.right&&this.bottom===c.bottom};T=e;q.prototype.Vf=function(c){this.Sa=c.left;this.Ta=c.top;this.Kb=c.right;this.Lb=c.top;this.yb=c.right;this.zb=c.bottom;this.wb=c.left;this.xb=c.bottom};q.prototype.ep=function(c,n){if(0===n)this.Vf(c);else{var a=Math.sin(n),g=Math.cos(n),
s=c.left*a,d=c.top*a,l=c.right*a,a=c.bottom*a,f=c.left*g,b=c.top*g,h=c.right*g,g=c.bottom*g;this.Sa=f-d;this.Ta=b+s;this.Kb=h-d;this.Lb=b+l;this.yb=h-a;this.zb=g+l;this.wb=f-a;this.xb=g+s}};q.prototype.offset=function(c,n){this.Sa+=c;this.Ta+=n;this.Kb+=c;this.Lb+=n;this.yb+=c;this.zb+=n;this.wb+=c;this.xb+=n;return this};var t=0,u=0;q.prototype.Tm=function(c){b(this.Sa,this.Kb,this.yb,this.wb);c.left=t;c.right=u;b(this.Ta,this.Lb,this.zb,this.xb);c.top=t;c.bottom=u};q.prototype.bb=function(c,n){var a=
this.Kb-this.Sa,g=this.Lb-this.Ta,s=this.yb-this.Sa,d=this.zb-this.Ta,l=c-this.Sa,f=n-this.Ta,b=a*a+g*g,h=a*s+g*d,g=a*l+g*f,A=s*s+d*d,r=s*l+d*f,p=1/(b*A-h*h),a=(A*g-h*r)*p,b=(b*r-h*g)*p;if(0<=a&&0<b&&1>a+b)return!0;a=this.wb-this.Sa;g=this.xb-this.Ta;b=a*a+g*g;h=a*s+g*d;g=a*l+g*f;p=1/(b*A-h*h);a=(A*g-h*r)*p;b=(b*r-h*g)*p;return 0<=a&&0<b&&1>a+b};q.prototype.Wd=function(c,n){if(n)switch(c){case 0:return this.Sa;case 1:return this.Kb;case 2:return this.yb;case 3:return this.wb;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.zb;case 3:return this.xb;case 4:return this.Ta;default:return this.Ta}};q.prototype.po=function(){return(this.Sa+this.Kb+this.yb+this.wb)/4};q.prototype.qo=function(){return(this.Ta+this.Lb+this.zb+this.xb)/4};q.prototype.Fn=function(c){var n=c.po(),a=c.qo();if(this.bb(n,a))return!0;n=this.po();a=this.qo();if(c.bb(n,a))return!0;var g,s,d,l,f,b,h,A;for(h=0;4>h;h++)for(A=0;4>A;A++)if(n=this.Wd(h,!0),
a=this.Wd(h,!1),g=this.Wd(h+1,!0),s=this.Wd(h+1,!1),d=c.Wd(A,!0),l=c.Wd(A,!1),f=c.Wd(A+1,!0),b=c.Wd(A+1,!1),ta(n,a,g,s,d,l,f,b))return!0;return!1};va=q;wa=function(c,n){for(var a in n)n.hasOwnProperty(a)&&(c[a]=n[a]);return c};xa=function(c,n){var a,g;n=Q(n);if(!(0>n||n>=c.length)){a=n;for(g=c.length-1;a<g;a++)c[a]=c[a+1];c.length=g}};ya=function(c,n){c.length=n.length;var a,g;a=0;for(g=n.length;a<g;a++)c[a]=n[a]};za=function(c,n){c.push.apply(c,n)};Aa=function(c,n){var a,g;a=0;for(g=c.length;a<g;++a)if(c[a]===
n)return a;return-1};Ba=function(c,n){var a=Aa(c,n);-1!==a&&xa(c,a)};U=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(U(c))};Ia=function(c,n,a,g){return Math.atan2(g-n,a-c)};Ja=function(c,n){if(c===n)return 0;var a=Math.sin(c),g=Math.cos(c),s=Math.sin(n),d=Math.cos(n),a=a*s+g*d;return 1<=a?0:-1>=a?qa:Math.acos(a)};Ka=function(c,n,a){var g=
Math.sin(c),s=Math.cos(c),d=Math.sin(n),l=Math.cos(n);return Math.acos(g*d+s*l)>a?0<s*d-g*l?Ea(c+a):Ea(c-a):Ea(n)};Pa=function(c,n){var a=Math.sin(c),g=Math.cos(c),s=Math.sin(n),d=Math.cos(n);return 0>=g*s-a*d};Qa=function(c,n,a,g,s,d){if(0===a)return d?c:n;var l=Math.sin(a);a=Math.cos(a);c-=g;n-=s;var f=c*l;c=c*a-n*l;n=n*a+f;return d?c+g:n+s};Ra=function(c,n,a,g){c=a-c;n=g-n;return Math.sqrt(c*c+n*n)};Sa=function(c,n){return!c!==!n};Ta=function(c){for(var n in c)if(c.hasOwnProperty(n))return!0;return!1};
Ua=function(c){for(var n in c)c.hasOwnProperty(n)&&delete c[n]};var l=+new Date;V=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()-l};var B=!1,c=B=!1,s=!1;"undefined"!==typeof window&&(B=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
B=!B&&/safari/i.test(navigator.userAgent),c=/(iphone|ipod|ipad)/i.test(navigator.userAgent),s=window.c2ejecta);var n=!B&&!s&&!c&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;k.prototype.contains=function(c){return this.Dd()?!1:n?this.Rc.has(c):this.items&&this.items.hasOwnProperty(c)};k.prototype.add=function(c){if(n)this.Rc.has(c)||(this.Rc.add(c),this.Yd=!1);else{var a=c.toString(),g=this.items;g?g.hasOwnProperty(a)||(g[a]=c,this.Cf++,this.Yd=!1):(this.items={},this.items[a]=
c,this.Cf=1,this.Yd=!1)}};k.prototype.remove=function(c){if(!this.Dd())if(n)this.Rc.has(c)&&(this.Rc["delete"](c),this.Yd=!1);else if(this.items){c=c.toString();var a=this.items;a.hasOwnProperty(c)&&(delete a[c],this.Cf--,this.Yd=!1)}};k.prototype.clear=function(){this.Dd()||(n?this.Rc.clear():(this.items=null,this.Cf=0),this.eg.length=0,this.Yd=!0)};k.prototype.Dd=function(){return 0===this.count()};k.prototype.count=function(){return n?this.Rc.size:this.Cf};var A=null,R=0;k.prototype.hu=function(){if(!this.Yd){if(n)this.eg.length=
this.Rc.size,A=this.eg,R=0,this.Rc.forEach(m),A=null,R=0;else{var c=this.eg;c.length=this.Cf;var a,g=0,s=this.items;if(s)for(a in s)s.hasOwnProperty(a)&&(c[g++]=s[a])}this.Yd=!0}};k.prototype.Vc=function(){this.hu();return this.eg};ca=k;new ca;Va=function(c,a){n?Wa(c,a.Rc):Xa(c,a.Vc())};Wa=function(c,n){var a,g,s,d;g=a=0;for(s=c.length;a<s;++a)d=c[a],n.has(d)||(c[g++]=d);c.length=g};Xa=function(c,n){var a,g,s,d;g=a=0;for(s=c.length;a<s;++a)d=c[a],-1===Aa(n,d)&&(c[g++]=d);c.length=g};d.prototype.add=
function(c){this.y=c-this.ck;this.zj=this.aa+this.y;this.ck=this.zj-this.aa-this.y;this.aa=this.zj};d.prototype.reset=function(){this.aa=this.zj=this.y=this.ck=0};Ya=d;Za=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.xh=function(c){this.So=c;this.Pc=c.length/2;this.Oa.length=c.length;this.Sh=this.Th=-1;this.Wm=0};a.prototype.xf=function(){return!this.So.length};a.prototype.ma=function(){for(var c=this.Oa,n=c[0],a=n,g=c[1],s=g,d,l,f=1,b=this.Pc;f<b;++f)l=2*f,d=c[l],l=
c[l+1],d<n&&(n=d),d>a&&(a=d),l<g&&(g=l),l>s&&(s=l);this.Mh=n;this.Nh=a;this.Oh=g;this.Lh=s};a.prototype.Vf=function(c,n,a){this.Oa.length=8;this.Pc=4;var g=this.Oa;g[0]=c.left-n;g[1]=c.top-a;g[2]=c.right-n;g[3]=c.top-a;g[4]=c.right-n;g[5]=c.bottom-a;g[6]=c.left-n;g[7]=c.bottom-a;this.Th=c.right-c.left;this.Sh=c.bottom-c.top;this.ma()};a.prototype.Uf=function(c,n,a,g,s){this.Oa.length=8;this.Pc=4;var d=this.Oa;d[0]=c.Sa-n;d[1]=c.Ta-a;d[2]=c.Kb-n;d[3]=c.Lb-a;d[4]=c.yb-n;d[5]=c.zb-a;d[6]=c.wb-n;d[7]=
c.xb-a;this.Th=g;this.Sh=s;this.ma()};a.prototype.dp=function(c){this.Pc=c.Pc;ya(this.Oa,c.Oa);this.Mh=c.Mh;this.Oh-c.Oh;this.Nh=c.Nh;this.Lh=c.Lh};a.prototype.hf=function(c,n,a){if(this.Th!==c||this.Sh!==n||this.Wm!==a){this.Th=c;this.Sh=n;this.Wm=a;var g,d,s,l,f,b=0,h=1,A=this.So,r=this.Oa;0!==a&&(b=Math.sin(a),h=Math.cos(a));a=0;for(s=this.Pc;a<s;a++)g=2*a,d=g+1,l=A[g]*c,f=A[d]*n,r[g]=l*h-f*b,r[d]=f*h+l*b;this.ma()}};a.prototype.bb=function(c,n){var a=this.Oa;if(c===a[0]&&n===a[1])return!0;var g,
d,s,l=this.Pc,f=this.Mh-110,b=this.Oh-101,h=this.Nh+131,A=this.Lh+120,r,p,t=0,B=0;for(g=0;g<l;g++)d=2*g,s=(g+1)%l*2,r=a[d],d=a[d+1],p=a[s],s=a[s+1],ta(f,b,c,n,r,d,p,s)&&t++,ta(h,A,c,n,r,d,p,s)&&B++;return 1===t%2||1===B%2};a.prototype.Eg=function(c,n,a){var g=c.Oa,d=this.Oa;if(this.bb(g[0]+n,g[1]+a)||c.bb(d[0]-n,d[1]-a))return!0;var s,l,f,b,h,A,r,p,t,B,R,z;s=0;for(b=this.Pc;s<b;s++)for(l=2*s,f=(s+1)%b*2,p=d[l],l=d[l+1],t=d[f],B=d[f+1],f=0,r=c.Pc;f<r;f++)if(h=2*f,A=(f+1)%r*2,R=g[h]+n,h=g[h+1]+a,z=
g[A]+n,A=g[A+1]+a,ta(p,l,t,B,R,h,z,A))return!0;return!1};$a=a;f.prototype.de=function(c,n,a){var g;g=this.cells[c];return g?(g=g[n])?g:a?(g=x(this,c,n),this.cells[c][n]=g):null:a?(g=x(this,c,n),this.cells[c]={},this.cells[c][n]=g):null};f.prototype.cc=function(c){return Q(c/this.fk)};f.prototype.ec=function(c){return Q(c/this.ek)};f.prototype.update=function(c,n,a){var g,d,s,l,f;if(n)for(g=n.left,d=n.right;g<=d;++g)for(s=n.top,l=n.bottom;s<=l;++s)if(!a||!a.bb(g,s))if(f=this.de(g,s,!1))f.remove(c),
f.Dd()&&(f.Ya.clear(),1E3>oa.length&&oa.push(f),this.cells[g][s]=null);if(a)for(g=a.left,d=a.right;g<=d;++g)for(s=a.top,l=a.bottom;s<=l;++s)n&&n.bb(g,s)||this.de(g,s,!0).Zk(c)};f.prototype.jj=function(c,n){var a,g,s,d,l,f;a=this.cc(c.left);s=this.ec(c.top);g=this.cc(c.right);for(l=this.ec(c.bottom);a<=g;++a)for(d=s;d<=l;++d)(f=this.de(a,d,!1))&&f.dump(n)};ab=f;w.prototype.de=function(c,n,a){var g;g=this.cells[c];return g?(g=g[n])?g:a?(g=r(this,c,n),this.cells[c][n]=g):null:a?(g=r(this,c,n),this.cells[c]=
{},this.cells[c][n]=g):null};w.prototype.cc=function(c){return Q(c/this.fk)};w.prototype.ec=function(c){return Q(c/this.ek)};w.prototype.update=function(c,n,a){var g,d,s,l,f;if(n)for(g=n.left,d=n.right;g<=d;++g)for(s=n.top,l=n.bottom;s<=l;++s)if(!a||!a.bb(g,s))if(f=this.de(g,s,!1))f.remove(c),f.Dd()&&(f.reset(),1E3>v.length&&v.push(f),this.cells[g][s]=null);if(a)for(g=a.left,d=a.right;g<=d;++g)for(s=a.top,l=a.bottom;s<=l;++s)n&&n.bb(g,s)||this.de(g,s,!0).Zk(c)};w.prototype.jj=function(c,n,a,g,s){var d,
l;c=this.cc(c);n=this.ec(n);a=this.cc(a);for(d=this.ec(g);c<=a;++c)for(g=n;g<=d;++g)(l=this.de(c,g,!1))&&l.dump(s)};w.prototype.$s=function(c){var n,a,g,s,d;n=c.left;g=c.top;a=c.right;for(s=c.bottom;n<=a;++n)for(c=g;c<=s;++c)if(d=this.de(n,c,!1))d.Af=!1};bb=w;var oa=[];g.prototype.Dd=function(){return this.Ya.Dd()};g.prototype.Zk=function(c){this.Ya.add(c)};g.prototype.remove=function(c){this.Ya.remove(c)};g.prototype.dump=function(c){za(c,this.Ya.Vc())};aa=g;var v=[];p.prototype.Dd=function(){if(!this.Ya.length)return!0;
if(this.Ya.length>this.fd.count())return!1;this.Ak();return!0};p.prototype.Zk=function(c){this.fd.contains(c)?(this.fd.remove(c),this.fd.Dd()&&(this.ig=!1)):this.Ya.length?(this.Ya[this.Ya.length-1].vc()>c.vc()&&(this.Af=!1),this.Ya.push(c)):(this.Ya.push(c),this.Af=!0)};p.prototype.remove=function(c){this.fd.add(c);this.ig=!0;30<=this.fd.count()&&this.Ak()};p.prototype.Ak=function(){this.ig&&(this.fd.count()===this.Ya.length?this.reset():(Va(this.Ya,this.fd),this.fd.clear(),this.ig=!1))};p.prototype.wr=
function(){this.Af||(this.Ya.sort(h),this.Af=!0)};p.prototype.reset=function(){this.Ya.length=0;this.Af=!0;this.fd.clear();this.ig=!1};p.prototype.dump=function(c){this.Ak();this.wr();this.Ya.length&&c.push(this.Ya)};ea=p;var z="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":z[c-1]};db=function(c,n,a){if(a)switch(c.lb=a.ONE,c.kb=a.ONE_MINUS_SRC_ALPHA,n){case 1:c.lb=a.ONE;
c.kb=a.ONE;break;case 3:c.lb=a.ONE;c.kb=a.ZERO;break;case 4:c.lb=a.ONE_MINUS_DST_ALPHA;c.kb=a.ONE;break;case 5:c.lb=a.DST_ALPHA;c.kb=a.ZERO;break;case 6:c.lb=a.ZERO;c.kb=a.SRC_ALPHA;break;case 7:c.lb=a.ONE_MINUS_DST_ALPHA;c.kb=a.ZERO;break;case 8:c.lb=a.ZERO;c.kb=a.ONE_MINUS_SRC_ALPHA;break;case 9:c.lb=a.DST_ALPHA;c.kb=a.ONE_MINUS_SRC_ALPHA;break;case 10:c.lb=a.ONE_MINUS_DST_ALPHA,c.kb=a.SRC_ALPHA}};eb=function(c){return Math.round(1E6*c)/1E6};fb=function(c,n){return"string"!==typeof c||"string"!==
typeof n||c.length!==n.length?!1:c===n?!0:c.toLowerCase()===n.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(e){var q=new Zb(3);e&&(q[0]=e[0],q[1]=e[1],q[2]=e[2]);return q}
function ac(e){var q=new Zb(16);e&&(q[0]=e[0],q[1]=e[1],q[2]=e[2],q[3]=e[3],q[4]=e[4],q[5]=e[5],q[6]=e[6],q[7]=e[7],q[8]=e[8],q[9]=e[9],q[10]=e[10],q[11]=e[11],q[12]=e[12],q[13]=e[13],q[14]=e[14],q[15]=e[15]);return q}function bc(e,q){q[0]=e[0];q[1]=e[1];q[2]=e[2];q[3]=e[3];q[4]=e[4];q[5]=e[5];q[6]=e[6];q[7]=e[7];q[8]=e[8];q[9]=e[9];q[10]=e[10];q[11]=e[11];q[12]=e[12];q[13]=e[13];q[14]=e[14];q[15]=e[15]}
function cc(e,q){var b=q[0],k=q[1];q=q[2];e[0]*=b;e[1]*=b;e[2]*=b;e[3]*=b;e[4]*=k;e[5]*=k;e[6]*=k;e[7]*=k;e[8]*=q;e[9]*=q;e[10]*=q;e[11]*=q}
function dc(e,q,b,k){k||(k=ac());var m,d,a,f,w,x,g,r,p=e[0],h=e[1];e=e[2];d=b[0];a=b[1];m=b[2];b=q[1];x=q[2];p===q[0]&&h===b&&e===x?(e=k,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(b=p-q[0],x=h-q[1],g=e-q[2],r=1/Math.sqrt(b*b+x*x+g*g),b*=r,x*=r,g*=r,q=a*g-m*x,m=m*b-d*g,d=d*x-a*b,(r=Math.sqrt(q*q+m*m+d*d))?(r=1/r,q*=r,m*=r,d*=r):d=m=q=0,a=x*d-g*m,f=g*q-b*d,w=b*m-x*q,(r=Math.sqrt(a*a+f*f+w*w))?(r=1/r,a*=r,f*=r,w*=r):w=f=a=0,
k[0]=q,k[1]=a,k[2]=b,k[3]=0,k[4]=m,k[5]=f,k[6]=x,k[7]=0,k[8]=d,k[9]=w,k[10]=g,k[11]=0,k[12]=-(q*p+m*h+d*e),k[13]=-(a*p+f*h+w*e),k[14]=-(b*p+x*h+g*e),k[15]=1)}
(function(){function e(d){this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Xm=$b([0,0,100]);this.Xn=$b([0,0,0]);this.xp=$b([0,1,0]);this.ym=$b([1,1,1]);this.en=!0;this.rl=ac();this.Bc=ac();this.Pn=ac();this.nk=ac();this.m=d;this.Bn()}function q(d,a,f){this.m=d;this.yh=a;this.name=f;this.Ac=d.getAttribLocation(a,"aPos");this.he=d.getAttribLocation(a,"aTex");this.Vn=d.getUniformLocation(a,"matP");this.Pi=d.getUniformLocation(a,"matMV");this.Gf=
d.getUniformLocation(a,"opacity");this.Wn=d.getUniformLocation(a,"samplerFront");this.Xg=d.getUniformLocation(a,"samplerBack");this.Ue=d.getUniformLocation(a,"destStart");this.Te=d.getUniformLocation(a,"destEnd");this.ol=d.getUniformLocation(a,"seconds");this.nl=d.getUniformLocation(a,"pixelWidth");this.ml=d.getUniformLocation(a,"pixelHeight");this.Wg=d.getUniformLocation(a,"layerScale");this.Vg=d.getUniformLocation(a,"layerAngle");this.Zg=d.getUniformLocation(a,"viewOrigin");this.Yg=d.getUniformLocation(a,
"scrollPos");this.Hs=!!(this.nl||this.ml||this.ol||this.Xg||this.Ue||this.Te||this.Wg||this.Vg||this.Zg||this.Yg);this.fo=this.ho=-999;this.Ri=1;this.ao=this.$n=0;this.co=this.Zn=this.Yn=1;this.ko=this.jo=this.mo=this.lo=this.bo=0;this.hl=[];this.eo=ac();this.Gf&&d.uniform1f(this.Gf,1);this.Wn&&d.uniform1i(this.Wn,0);this.Xg&&d.uniform1i(this.Xg,1);this.Ue&&d.uniform2f(this.Ue,0,0);this.Te&&d.uniform2f(this.Te,1,1);this.Wg&&d.uniform1f(this.Wg,1);this.Vg&&d.uniform1f(this.Vg,0);this.Zg&&d.uniform2f(this.Zg,
0,0);this.Yg&&d.uniform2f(this.Yg,0,0);this.Ie=!1}function b(d,a){this.type=d;this.q=a;this.m=a.m;this.wc=this.lc=this.Co=0;this.Y=this.Tc=null;this.fp=[]}e.prototype.Bn=function(){var d=this.m,a;this.Qn=1;this.Qe=this.Pe=null;this.Zh=1;d.clearColor(0,0,0,0);d.clear(d.COLOR_BUFFER_BIT);d.enable(d.BLEND);d.blendFunc(d.ONE,d.ONE_MINUS_SRC_ALPHA);d.disable(d.CULL_FACE);d.disable(d.DEPTH_TEST);this.Rn=d.ONE;this.On=d.ONE_MINUS_SRC_ALPHA;this.Il=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.Il);this.Ih=
Array(4);this.Ch=Array(4);for(a=0;4>a;a++)this.Ih[a]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.Ih[a]),this.Ch[a]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.Ch[a]);this.sd=0;this.Ks=d.createBuffer();d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,this.Ks);this.um=new Float32Array(16E3);this.fm=new Float32Array(16E3);this.Oo=new Float32Array(32E3);for(var f=new Uint16Array(12E3),b=a=0;12E3>a;)f[a++]=b,f[a++]=b+1,f[a++]=b+2,f[a++]=b,f[a++]=b+2,f[a++]=b+3,b+=4;d.bufferData(d.ELEMENT_ARRAY_BUFFER,f,
d.STATIC_DRAW);this.Pf=this.md=0;this.Ra=[];a=this.mk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Ra.push(a);a=this.mk({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ra.push(a);for(var k in ec)ec.hasOwnProperty(k)&&this.Ra.push(this.mk(ec[k],
"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}",k));d.activeTexture(d.TEXTURE0);d.bindTexture(d.TEXTURE_2D,null);this.rd=[];this.Yc=0;this.Ub=this.Bb=!1;this.an=this.Lg=-1;this.sg=null;this.Xr=d.createFramebuffer();this.Vo=null;this.re=$b([0,0,0]);d=d.getParameter(d.ALIASED_POINT_SIZE_RANGE);this.dt=d[0];this.sl=
d[1];2048<this.sl&&(this.sl=2048);this.jd(0)};q.prototype.nm=function(d){var a=this.eo;if(a[0]!==d[0]||a[1]!==d[1]||a[2]!==d[2]||a[3]!==d[3]||a[4]!==d[4]||a[5]!==d[5]||a[6]!==d[6]||a[7]!==d[7]||a[8]!==d[8]||a[9]!==d[9]||a[10]!==d[10]||a[11]!==d[11]||a[12]!==d[12]||a[13]!==d[13]||a[14]!==d[14]||a[15]!==d[15])bc(d,this.eo),this.m.uniformMatrix4fv(this.Pi,!1,d)};e.prototype.mk=function(d,a,f){var b=this.m,k=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(k,d.src);b.compileShader(k);if(!b.getShaderParameter(k,
b.COMPILE_STATUS))return b.deleteShader(k),null;var g=b.createShader(b.VERTEX_SHADER);b.shaderSource(g,a);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))return b.deleteShader(k),b.deleteShader(g),null;a=b.createProgram();b.attachShader(a,k);b.attachShader(a,g);b.linkProgram(a);if(!b.getProgramParameter(a,b.LINK_STATUS))return b.deleteShader(k),b.deleteShader(g),b.deleteProgram(a),null;b.useProgram(a);b.deleteShader(k);b.deleteShader(g);f=new q(b,a,f);f.wk=d.wk||0;f.xk=d.xk||0;f.$m=
!!d.$m;f.Qm=!!d.Qm;f.I=d.I||[];d=0;for(k=f.I.length;d<k;d++)f.I[d][1]=b.getUniformLocation(a,f.I[d][0]),f.hl.push(0),b.uniform1f(f.I[d][1],0);return f};e.prototype.Mk=function(d){var a,b;a=0;for(b=this.Ra.length;a<b;a++)if(this.Ra[a].name===d)return a;return-1};e.prototype.Ro=function(d,a,b){var k=this.Bc,m=this.rl,g=[0,0,0,0,0,0,0,0];g[0]=k[0]*d+k[4]*a+k[12];g[1]=k[1]*d+k[5]*a+k[13];g[2]=k[2]*d+k[6]*a+k[14];g[3]=k[3]*d+k[7]*a+k[15];g[4]=m[0]*g[0]+m[4]*g[1]+m[8]*g[2]+m[12]*g[3];g[5]=m[1]*g[0]+m[5]*
g[1]+m[9]*g[2]+m[13]*g[3];g[6]=m[2]*g[0]+m[6]*g[1]+m[10]*g[2]+m[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],b[0]=(.5*g[4]+.5)*this.width,b[1]=(.5*g[5]+.5)*this.height)};e.prototype.Tf=function(d,a,b){if(this.width!==d||this.height!==a||b){this.ae();this.width=d;this.height=a;this.m.viewport(0,0,d,a);a=d/a;var k=this.rl,m;m=1*Math.tan(45*Math.PI/360);a*=m;d=-a;b=-m;k||(k=ac());var g=a-d,r=m-b;k[0]=2/g;k[1]=0;k[2]=0;k[3]=0;k[4]=0;k[5]=2/r;k[6]=0;k[7]=0;k[8]=(a+d)/g;k[9]=
(m+b)/r;k[10]=-1001/999;k[11]=-1;k[12]=0;k[13]=0;k[14]=-2E3/999;k[15]=0;dc(this.Xm,this.Xn,this.xp,this.Bc);d=[0,0];a=[0,0];this.Ro(0,0,d);this.Ro(1,1,a);this.ym[0]=1/(a[0]-d[0]);this.ym[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ra.length;d<a;d++)b=this.Ra[d],b.Ie=!1,b.Vn&&(this.m.useProgram(b.yh),this.m.uniformMatrix4fv(b.Vn,!1,this.rl));this.m.useProgram(this.Ra[this.Lg].yh);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}};e.prototype.le=function(){dc(this.Xm,this.Xn,this.xp,this.Bc);cc(this.Bc,this.ym)};e.prototype.translate=function(d,a){if(0!==d||0!==a){this.re[0]=d;this.re[1]=a;this.re[2]=0;var b=this.Bc,k=this.re,m=k[0],g=k[1],k=k[2];b[12]=b[0]*m+b[4]*g+b[8]*k+b[12];b[13]=b[1]*m+b[5]*g+b[9]*k+b[13];b[14]=b[2]*m+b[6]*g+b[10]*k+b[14];b[15]=b[3]*m+b[7]*g+b[11]*k+b[15]}};e.prototype.scale=function(d,a){if(1!==d||1!==a)this.re[0]=d,this.re[1]=a,this.re[2]=1,cc(this.Bc,this.re)};e.prototype.Wo=
function(d){if(0!==d){var a=this.Bc,b,k=Math.sin(d);d=Math.cos(d);var m=a[0],g=a[1],r=a[2],p=a[3],h=a[4],t=a[5],u=a[6],l=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=m*d+h*k;b[1]=g*d+t*k;b[2]=r*d+u*k;b[3]=p*d+l*k;b[4]=m*-k+h*d;b[5]=g*-k+t*d;b[6]=r*-k+u*d;b[7]=p*-k+l*d}};e.prototype.te=function(){for(var d=!1,a=0;16>a;a++)if(this.Pn[a]!==this.Bc[a]){d=!0;break}d&&(d=this.Cc(),d.type=5,d.Y?bc(this.Bc,d.Y):d.Y=ac(this.Bc),bc(this.Bc,
this.Pn),this.Ub=this.Bb=!1)};b.prototype.lr=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Tc)};b.prototype.mr=function(){var d=this.m;d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,this.Tc);d.activeTexture(d.TEXTURE0)};b.prototype.ir=function(){var d=this.Co,a=this.q;a.Zh=d;a=a.sg;a.Gf&&a.Ri!==d&&(a.Ri=d,this.m.uniform1f(a.Gf,d))};b.prototype.er=function(){this.m.drawElements(this.m.TRIANGLES,this.wc,this.m.UNSIGNED_SHORT,2*this.lc)};b.prototype.hr=function(){this.m.blendFunc(this.lc,
this.wc)};b.prototype.nr=function(){var d,a,b,k=this.q.Ra,m=this.q.an;d=0;for(a=k.length;d<a;d++)b=k[d],d===m&&b.Pi?(b.nm(this.Y),b.Ie=!0):b.Ie=!1;bc(this.Y,this.q.nk)};b.prototype.fr=function(){var d=this.m,a=this.q;this.Tc?(a.Qe===this.Tc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,null),a.Qe=null,d.activeTexture(d.TEXTURE0)),d.bindFramebuffer(d.FRAMEBUFFER,a.Xr),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,this.Tc,0)):(d.framebufferTexture2D(d.FRAMEBUFFER,
d.COLOR_ATTACHMENT0,d.TEXTURE_2D,null,0),d.bindFramebuffer(d.FRAMEBUFFER,null))};b.prototype.cr=function(){var d=this.m;0===this.lc?(d.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),d.clear(d.COLOR_BUFFER_BIT)):(d.enable(d.SCISSOR_TEST),d.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),d.clearColor(0,0,0,0),d.clear(this.m.COLOR_BUFFER_BIT),d.disable(d.SCISSOR_TEST))};b.prototype.dr=function(){var d=this.m,a=this.q,b=a.Ra[1];d.useProgram(b.yh);!b.Ie&&b.Pi&&(b.nm(a.nk),b.Ie=!0);d.enableVertexAttribArray(b.Ac);
d.bindBuffer(d.ARRAY_BUFFER,a.Il);d.vertexAttribPointer(b.Ac,4,d.FLOAT,!1,0,0);d.drawArrays(d.POINTS,this.lc/4,this.wc);b=a.sg;d.useProgram(b.yh);0<=b.Ac&&(d.enableVertexAttribArray(b.Ac),d.bindBuffer(d.ARRAY_BUFFER,a.Ih[a.sd]),d.vertexAttribPointer(b.Ac,2,d.FLOAT,!1,0,0));0<=b.he&&(d.enableVertexAttribArray(b.he),d.bindBuffer(d.ARRAY_BUFFER,a.Ch[a.sd]),d.vertexAttribPointer(b.he,2,d.FLOAT,!1,0,0))};b.prototype.jr=function(){var b=this.m,a=this.q,f=a.Ra[this.lc];a.an=this.lc;a.sg=f;b.useProgram(f.yh);
!f.Ie&&f.Pi&&(f.nm(a.nk),f.Ie=!0);f.Gf&&f.Ri!==a.Zh&&(f.Ri=a.Zh,b.uniform1f(f.Gf,a.Zh));0<=f.Ac&&(b.enableVertexAttribArray(f.Ac),b.bindBuffer(b.ARRAY_BUFFER,a.Ih[a.sd]),b.vertexAttribPointer(f.Ac,2,b.FLOAT,!1,0,0));0<=f.he&&(b.enableVertexAttribArray(f.he),b.bindBuffer(b.ARRAY_BUFFER,a.Ch[a.sd]),b.vertexAttribPointer(f.he,2,b.FLOAT,!1,0,0))};b.prototype.kr=function(){var b,a,f=this.q.sg,k=this.m;b=this.Y;f.Xg&&this.q.Qe!==this.Tc&&(k.activeTexture(k.TEXTURE1),k.bindTexture(k.TEXTURE_2D,this.Tc),
this.q.Qe=this.Tc,k.activeTexture(k.TEXTURE0));var m=b[0];f.nl&&m!==f.ho&&(f.ho=m,k.uniform1f(f.nl,m));m=b[1];f.ml&&m!==f.fo&&(f.fo=m,k.uniform1f(f.ml,m));m=b[2];a=b[3];!f.Ue||m===f.$n&&a===f.ao||(f.$n=m,f.ao=a,k.uniform2f(f.Ue,m,a));m=b[4];a=b[5];!f.Te||m===f.Yn&&a===f.Zn||(f.Yn=m,f.Zn=m,k.uniform2f(f.Te,m,a));m=b[6];f.Wg&&m!==f.co&&(f.co=m,k.uniform1f(f.Wg,m));m=b[7];f.Vg&&m!==f.bo&&(f.bo=m,k.uniform1f(f.Vg,m));m=b[8];a=b[9];!f.Zg||m===f.lo&&a===f.mo||(f.lo=m,f.mo=a,k.uniform2f(f.Zg,m,a));m=b[10];
a=b[11];!f.Yg||m===f.jo&&a===f.ko||(f.jo=m,f.ko=a,k.uniform2f(f.Yg,m,a));f.ol&&k.uniform1f(f.ol,V()/1E3);if(f.I.length)for(b=0,a=f.I.length;b<a;b++)m=this.fp[b],m!==f.hl[b]&&(f.hl[b]=m,k.uniform1f(f.I[b][1],m))};e.prototype.Cc=function(){this.Yc===this.rd.length&&this.rd.push(new b(0,this));return this.rd[this.Yc++]};e.prototype.ae=function(){if(0!==this.Yc&&!this.m.isContextLost()){var b=this.m;0<this.Pf&&(b.bindBuffer(b.ARRAY_BUFFER,this.Il),b.bufferData(b.ARRAY_BUFFER,this.Oo.subarray(0,this.Pf),
b.STREAM_DRAW),a&&0<=a.Ac&&"<point>"===a.name&&b.vertexAttribPointer(a.Ac,4,b.FLOAT,!1,0,0));if(0<this.md){var a=this.sg;b.bindBuffer(b.ARRAY_BUFFER,this.Ih[this.sd]);b.bufferData(b.ARRAY_BUFFER,this.um.subarray(0,this.md),b.STREAM_DRAW);a&&0<=a.Ac&&"<point>"!==a.name&&b.vertexAttribPointer(a.Ac,2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Ch[this.sd]);b.bufferData(b.ARRAY_BUFFER,this.fm.subarray(0,this.md),b.STREAM_DRAW);a&&0<=a.he&&"<point>"!==a.name&&b.vertexAttribPointer(a.he,2,b.FLOAT,
!1,0,0)}for(var f,b=0,a=this.Yc;b<a;b++)switch(f=this.rd[b],f.type){case 1:f.er();break;case 2:f.lr();break;case 3:f.ir();break;case 4:f.hr();break;case 5:f.nr();break;case 6:f.fr();break;case 7:f.cr();break;case 8:f.dr();break;case 9:f.jr();break;case 10:f.kr();break;case 11:f.mr()}this.Pf=this.md=this.Yc=0;this.Ub=this.Bb=!1;this.sd++;4<=this.sd&&(this.sd=0)}};e.prototype.Ye=function(b){if(b!==this.Qn){var a=this.Cc();a.type=3;this.Qn=a.Co=b;this.Ub=this.Bb=!1}};e.prototype.$b=function(b){if(b!==
this.Pe){var a=this.Cc();a.type=2;this.Pe=a.Tc=b;this.Ub=this.Bb=!1}};e.prototype.me=function(b,a){if(b!==this.Rn||a!==this.On){var f=this.Cc();f.type=4;f.lc=b;f.wc=a;this.Rn=b;this.On=a;this.Ub=this.Bb=!1}};e.prototype.$o=function(){this.me(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};e.prototype.rh=function(b,a,f,k,m,g,r,p){15992<=this.md&&this.ae();var h=this.md,t=this.um,u=this.fm;if(this.Bb)this.rd[this.Yc-1].wc+=6;else{var l=this.Cc();l.type=1;l.lc=h/4*3;l.wc=6;this.Bb=!0;this.Ub=!1}t[h]=b;u[h++]=
0;t[h]=a;u[h++]=0;t[h]=f;u[h++]=1;t[h]=k;u[h++]=0;t[h]=m;u[h++]=1;t[h]=g;u[h++]=1;t[h]=r;u[h++]=0;t[h]=p;u[h++]=1;this.md=h};e.prototype.Jd=function(b,a,f,k,m,g,r,p,h){15992<=this.md&&this.ae();var t=this.md,u=this.um,l=this.fm;if(this.Bb)this.rd[this.Yc-1].wc+=6;else{var B=this.Cc();B.type=1;B.lc=t/4*3;B.wc=6;this.Bb=!0;this.Ub=!1}var B=h.left,c=h.top,s=h.right;h=h.bottom;u[t]=b;l[t++]=B;u[t]=a;l[t++]=c;u[t]=f;l[t++]=s;u[t]=k;l[t++]=c;u[t]=m;l[t++]=s;u[t]=g;l[t++]=h;u[t]=r;l[t++]=B;u[t]=p;l[t++]=
h;this.md=t};e.prototype.yt=function(b,a,f,k){7996<=this.Pf&&this.ae();var m=this.Pf,g=this.Oo;if(this.Ub)this.rd[this.Yc-1].wc++;else{var r=this.Cc();r.type=8;r.lc=m;r.wc=1;this.Ub=!0;this.Bb=!1}g[m++]=b;g[m++]=a;g[m++]=f;g[m++]=k;this.Pf=m};e.prototype.jd=function(b){if(this.Lg!==b){if(!this.Ra[b]){if(0===this.Lg)return;b=0}var a=this.Cc();a.type=9;this.Lg=a.lc=b;this.Ub=this.Bb=!1}};e.prototype.ph=function(b){b=this.Ra[b];return!(!b.Ue&&!b.Te)};e.prototype.Kl=function(b){b=this.Ra[b];return!!(b.Ue||
b.Te||b.$m)};e.prototype.Ft=function(b){b=this.Ra[b];return 0!==b.wk||0!==b.xk};e.prototype.os=function(b){return this.Ra[b].wk};e.prototype.ps=function(b){return this.Ra[b].xk};e.prototype.qs=function(b,a){return this.Ra[b].I[a][2]};e.prototype.ij=function(b){return this.Ra[b].Qm};e.prototype.Sf=function(b,a,f,k,m,g,r,p,h,t,u,l,B,c){var s=this.Ra[this.Lg],n,A;if(s.Hs||c.length){n=this.Cc();n.type=10;n.Y?bc(this.Bc,n.Y):n.Y=ac();A=n.Y;A[0]=a;A[1]=f;A[2]=k;A[3]=m;A[4]=g;A[5]=r;A[6]=p;A[7]=h;A[8]=t;
A[9]=u;A[10]=l;A[11]=B;n.Tc=s.Xg?b:null;if(c.length)for(f=n.fp,f.length=c.length,b=0,a=c.length;b<a;b++)f[b]=c[b];this.Ub=this.Bb=!1}};e.prototype.clear=function(b,a,f,k){var m=this.Cc();m.type=7;m.lc=0;m.Y||(m.Y=ac());m.Y[0]=b;m.Y[1]=a;m.Y[2]=f;m.Y[3]=k;this.Ub=this.Bb=!1};e.prototype.clearRect=function(b,a,f,k){if(!(0>f||0>k)){var m=this.Cc();m.type=7;m.lc=1;m.Y||(m.Y=ac());m.Y[0]=b;m.Y[1]=a;m.Y[2]=f;m.Y[3]=k;this.Ub=this.Bb=!1}};e.prototype.Et=function(){this.ae();this.m.flush()};var k=[],m={};
e.prototype.Uq=function(){k.length=0;m={}};e.prototype.Ef=function(b,a,f,e){a=!!a;f=!!f;var q=b.src+","+a+","+f+(a?",undefined":""),g=null;if("undefined"!==typeof b.src&&m.hasOwnProperty(q))return g=m[q],g.Rh++,g;this.ae();var r=this.m,p=ka(b.width)&&ka(b.height),g=r.createTexture();r.bindTexture(r.TEXTURE_2D,g);r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=r.RGBA,t=r.RGBA,u=r.UNSIGNED_BYTE;if(e&&!this.Me)switch(e){case 1:t=h=r.RGB;break;case 2:u=r.UNSIGNED_SHORT_4_4_4_4;break;case 3:u=
r.UNSIGNED_SHORT_5_5_5_1;break;case 4:t=h=r.RGB,u=r.UNSIGNED_SHORT_5_6_5}if(!p&&a){e=document.createElement("canvas");e.width=la(b.width);e.height=la(b.height);var l=e.getContext("2d");l.webkitImageSmoothingEnabled=f;l.mozImageSmoothingEnabled=f;l.msImageSmoothingEnabled=f;l.imageSmoothingEnabled=f;l.drawImage(b,0,0,b.width,b.height,0,0,e.width,e.height);r.texImage2D(r.TEXTURE_2D,0,h,t,u,e)}else r.texImage2D(r.TEXTURE_2D,0,h,t,u,b);a?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.REPEAT),r.texParameteri(r.TEXTURE_2D,
r.TEXTURE_WRAP_T,r.REPEAT)):(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE));f?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),p&&this.en?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR_MIPMAP_LINEAR),r.generateMipmap(r.TEXTURE_2D)):r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR)):(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,
r.NEAREST));r.bindTexture(r.TEXTURE_2D,null);this.Pe=null;g.mg=b.width;g.lg=b.height;g.Rh=1;g.Vm=q;k.push(g);return m[q]=g};e.prototype.Zd=function(b,a,f){var m;this.ae();var e=this.m;this.Me&&(m=!1);var g=e.createTexture();e.bindTexture(e.TEXTURE_2D,g);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,b,a,0,e.RGBA,m?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,
e.TEXTURE_MAG_FILTER,f?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,f?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Pe=null;g.mg=b;g.lg=a;k.push(g);return g};e.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Rh&&1<b.Rh?b.Rh--:(this.ae(),b===this.Pe&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Pe=null),b===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(k,b),"undefined"!==typeof b.Vm&&delete m[b.Vm],this.m.deleteTexture(b)))};e.prototype.hd=function(b){if(b!==this.Vo){var a=this.Cc();a.type=6;this.Vo=a.Tc=b;this.Ub=this.Bb=!1}};hb=e})();
(function(){function e(){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.xc=(this.Gg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.eb=!!c.dc;this.uf="undefined"!==typeof window.AppMobi||this.eb;this.hc=!!window.c2cocoonjs;this.Kc=!!window.c2ejecta;this.hc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Kc&&(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.da=this.eb||this.hc||this.Kc;this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Jn=/tizen/i.test(navigator.userAgent);this.yi=/android/i.test(navigator.userAgent)&&!this.Jn&&!this.Me;this.fl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Me;this.Nn=/ipad/i.test(navigator.userAgent);this.Ei=this.fl||this.Nn||this.Kc;this.Ws=this.fl&&/os\s6/i.test(navigator.userAgent);this.Fg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Me;this.Gn=/amazonwebappplatform/i.test(navigator.userAgent);this.Qs=/firefox/i.test(navigator.userAgent);this.In=/safari/i.test(navigator.userAgent)&&!this.Fg&&!this.Me;this.Ts=/windows/i.test(navigator.userAgent);this.fe="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);
this.Ln=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Vs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.wf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.dl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Kn=this.Ln||this.Vs||this.dl;this.Os=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ai=this.yi&&!this.Fg&&!this.Gg&&!this.Qs&&!this.Gn&&
!this.da;this.devicePixelRatio=1;this.cd=this.xc||this.Gg||this.uf||this.hc||this.yi||this.Ei||this.wf||this.dl||this.Os||this.Jn||this.Kc;this.cd||(this.cd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.fe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.fe=!0);this.Ps="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=
c;this.Ym=document.getElementById("c2canvasdiv");this.ba=this.q=this.m=null;this.Dk="";this.ii=!1;this.Ao=this.Bo=0;this.canvas.oncontextmenu=function(c){c.preventDefault&&c.preventDefault();return!1};this.canvas.onselectstart=function(c){c.preventDefault&&c.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.fe&&(window.ondragover=function(c){c.preventDefault();return!1},window.ondrop=function(c){c.preventDefault();return!1},require("nw.gui").App.clearCache());this.Ai&&"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.Ng=window.innerWidth;this.Mg=window.innerHeight;this.Zr=!1;this.ga=!0;this.Ig=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Fa=[];this.ll={};this.Wb=[];this.vk={};this.xd=[];this.gg=[];this.Ij=[];this.Wj=[];this.Lq=[];this.Be={};this.al=this.ee=!1;this.Ed=0;
this.cl=!1;this.Hc=[];this.Fd=this.rb=this.Sg=this.oj="";this.Ah=this.ip=!1;this.kk=this.$g=this.wd=this.De=0;this.ag=1;this.ic=new Ya;this.nd=new Ya;this.Ii=0;this.oo=!0;this.Ui=this.ki=this.fi=this.$f=this.Se=this.Ck=0;this.ye=null;this.rk=[];this.uk=[];this.ei=-1;this.pl=[[]];this.km=this.Qi=0;this.Ml(null);this.vo=this.dh=0;this.kl=!0;this.ug=0;this.Bh=[];this.Ej=this.kj=-1;this.Bf=!0;this.Oi=0;this.Hg=!1;this.Zt=0;this.gf=null;this.Fs=!1;this.il=0;this.ja=this.rf=this.Nl=!1;this.zo=new ca;this.yl=
new ca;this.zl=new ca;this.It=[];this.Sc=new $a([]);this.em=new $a([]);this.Vd=[];this.ri={};this.jf={};this.ff={};this.fg={};this.Sm={};this.Un=this.Ki=this.Vb=this.jc=this.Tn=this.Ji=this.Z=null;this.dg=this.el=!1;this.Ek=[null,null];this.Ge=0;this.zk="";this.ie={};this.tj=this.Ff=null;this.Ti=[];this.Jt()}}function k(c){c.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(c,a,n,b){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=k;g.onerror=b;g.onsuccess=function(g){g=
g.target.result;g.onerror=b;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:c,data:a}).onsuccess=n}}function d(c,a,n){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=k;b.onerror=n;b.onsuccess=function(b){b=b.target.result;b.onerror=n;var g=b.transaction(["saves"]).objectStore("saves").get(c);g.onsuccess=function(){g.result?a(g.result.data):a(null)}}}function a(){J("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function f(c){var a,n={};for(a in c)!c.hasOwnProperty(a)||c[a]instanceof ca||c[a]&&"undefined"!==typeof c[a].tv||(n[a]=c[a]);return n}b.prototype.Jt=function(){var c=this,a;a=this.wf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var n="data.js";if(this.Ln||this.wf||this.dl)n="data.json";a.open("GET",n,!0);var b=!1;if(!this.da&&"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(g){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(h){}this.wf?a.onreadystatechange=function(){4===a.readyState&&c.Mi(JSON.parse(a.responseText))}:(a.onload=function(){if(b)c.Mi(a.response);else if(c.Kc){var n=a.responseText,n=n.substr(n.indexOf("{"));c.Mi(JSON.parse(n))}else c.Mi(JSON.parse(a.responseText))},a.onerror=function(c){fa("Error requesting "+n+":");fa(c)});a.send()};b.prototype.Ls=function(){var c=
this,a,n,b,g,l,h,d,f,r;this.devicePixelRatio=(this.Ne=(!this.da||this.Kc)&&this.ju&&!this.Ai)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.hb();n=!(!this.Zr&&(!this.Yj||this.fe||this.Kn||this.wf||this.Gg||this.xc||this.Gn));0<this.nb&&this.setSize(e(),q(),!0);try{this.tr&&(this.hc||this.Kc||!this.da)&&(a={alpha:n,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(p){}if(this.m){this.da||(this.fb=document.createElement("canvas"),jQuery(this.fb).appendTo(this.canvas.parentNode),this.fb.oncontextmenu=function(){return!1},this.fb.onselectstart=function(){return!1},this.fb.width=this.Xh,this.fb.height=this.Wh,jQuery(this.fb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.Qo(),this.Hl=this.fb.getContext("2d"));this.q=new hb(this.m,this.cd);this.q.Tf(this.canvas.width,this.canvas.height);this.q.en=0!==this.or;this.ba=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();c.ht();J("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){c.q.Bn();c.q.Tf(c.q.width,c.q.height,!0);c.jc=null;c.Vb=null;c.Ek[0]=null;c.Ek[1]=null;c.it();c.ga=!0;J("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(n=this.n.length;a<n;a++)for(l=this.n[a],b=0,g=l.H.length;b<g;b++)d=l.H[b],d.gb=this.q.Mk(d.id),this.dg=this.dg||this.q.ph(d.gb);a=0;for(n=this.Wb.length;a<
n;a++){f=this.Wb[a];b=0;for(g=f.H.length;b<g;b++)d=f.H[b],d.gb=this.q.Mk(d.id);b=0;for(g=f.K.length;b<g;b++)for(r=f.K[b],l=0,h=r.H.length;l<h;l++)d=r.H[l],d.gb=this.q.Mk(d.id),this.dg=this.dg||this.q.ph(d.gb)}}else{if(0<this.nb&&this.eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ba=AppMobi.canvas.getContext("2d");try{this.ba.samplingMode=this.S?"smooth":"sharp",this.ba.globalScale=1,this.ba.HTML5CompatibilityMode=!0,this.ba.imageSmoothingEnabled=
this.S}catch(t){}0!==this.width&&0!==this.height&&(this.ba.width=this.width,this.ba.height=this.height)}this.ba||(a=this.hc?{antialias:!!this.S,alpha:n}:{alpha:n},this.ba=this.canvas.getContext("2d",a),this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S);this.Hl=this.fb=null}this.Dj=function(){c.ab(!1)};window==window.top||this.da||this.Kn||this.wf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.hc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(J("Reloading for continuous preview"),this.Sg="__c2_continuouspreview",this.Ah=!0),this.wt&&!this.cd&&(jQuery(window).focus(function(){c.setSuspended(!1)}),jQuery(window).blur(function(){c.setSuspended(!0)})));this.da||(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.nb&&this.Ne&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.tp();this.Ds();this.go();this.wa={}};
b.prototype.setSize=function(c,a,n){var b=0,g=0,l=0,h=0,h=0,d=this.Ws&&this.In&&!navigator.standalone&&!this.da&&!this.xc;d&&(a+=60);if(this.Ng!==c||this.Mg!==a||n){this.Ng=c;this.Mg=a;var f=this.nb,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Hg)&&!this.xc;if(r||0!==this.nb||n)r&&0<this.Ge&&(f=this.Ge),n=this.devicePixelRatio,4<=f?(l=this.Na/this.Ma,c/a>l?(l*=a,5===f?(h=l*n/this.Na,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),
l=this.Na*h/n,h=this.Ma*h/n,b=(c-l)/2,g=(a-h)/2,c=l,a=h):(b=(c-l)/2,c=l)):(h=c/l,5===f?(h=h*n/this.Ma,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),l=this.Na*h/n,h=this.Ma*h/n,b=(c-l)/2,g=(a-h)/2,c=l):g=(a-h)/2,a=h),r&&!this.fe&&(g=b=0)):this.fe&&this.Hg&&0===this.nn&&(b=Math.floor((c-this.Na)/2),g=Math.floor((a-this.Ma)/2),c=this.Na,a=this.Ma),2>f&&(this.kg=n),this.Ne&&this.Nn&&1<n&&(1024<=c&&(c=1023),1024<=a&&(a=1023)),this.Xh=Math.round(c),this.Wh=Math.round(a),this.width=Math.round(c*n),this.height=
Math.round(a*n),this.ga=!0,this.Dp?(this.M=this.width,this.L=this.height,this.tc=!0):this.width<this.Na&&this.height<this.Ma||1===f?(this.M=this.width,this.L=this.height,this.tc=!0):(this.M=this.Na,this.L=this.Ma,this.tc=!1,2===f?(l=this.Na/this.Ma,f=this.Ng/this.Mg,f<l?this.M=this.L*f:f>l&&(this.L=this.M/f)):3===f&&(l=this.Na/this.Ma,f=this.Ng/this.Mg,f>l?this.M=this.L*f:f<l&&(this.L=this.M/f))),this.Ym&&!this.da&&(jQuery(this.Ym).css({width:Math.round(c)+"px",height:Math.round(a)+"px","margin-left":Math.floor(b)+
"px","margin-top":Math.floor(g)+"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*n),this.canvas.height=Math.round(a*n),this.Kc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(g)+"px",this.canvas.style.width=Math.round(c)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Ne&&!this.da&&jQuery(this.canvas).css({width:Math.round(c)+"px",height:Math.round(a)+
"px"})),this.fb&&(this.fb.width=Math.round(c),this.fb.height=Math.round(a),jQuery(this.fb).css({width:Math.round(c)+"px",height:Math.round(a)+"px"})),this.q&&this.q.Tf(Math.round(c*n),Math.round(a*n)),this.eb&&this.ba&&(this.ba.width=Math.round(c),this.ba.height=Math.round(a)),this.ba&&(this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S),this.tp(),this.da||!d&&!this.fl||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};b.prototype.tp=function(){if(this.Nq&&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.ht=function(){this.q.Uq();this.el=!0;var c,a,n;c=0;for(a=this.n.length;c<a;c++)n=this.n[c],
n.Vi&&n.Vi()};b.prototype.it=function(){this.el=!1;var c,a,n;c=0;for(a=this.n.length;c<a;c++)n=this.n[c],n.Wi&&n.Wi()};b.prototype.Qo=function(){if(!this.da){var c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Hg)&&!this.xc?jQuery(this.canvas).offset():jQuery(this.canvas).position();c.position="absolute";jQuery(this.fb).css(c)}};var w=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;b.prototype.setSuspended=function(c){var a;if(c&&!this.Ig)for(J("[Construct 2] Suspending"),this.Ig=!0,-1!==this.kj&&w&&w(this.kj),-1!==this.Ej&&clearTimeout(this.Ej),c=0,a=this.Bh.length;c<a;c++)this.Bh[c](!0);else if(!c&&this.Ig){J("[Construct 2] Resuming");this.Ig=!1;this.Ii=V();this.Se=V();c=this.$g=this.ki=0;for(a=this.Bh.length;c<a;c++)this.Bh[c](!1);this.ab(!1)}};b.prototype.Jq=function(c){this.Bh.push(c)};b.prototype.Sd=function(c){return this.Ti[c]};b.prototype.Mi=
function(c){c&&c.project||fa("Project model unavailable");c=c.project;this.name=c[0];this.mn=c[1];this.nb=c[12];this.nn=c[12];this.Na=c[10];this.Ma=c[11];this.Jo=this.Na/2;this.Ko=this.Ma/2;this.da&&!this.Kc&&(4<=c[12]||0===c[12])&&(J("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.nn=this.nb=3);this.rm=c[18];this.Ug=c[19];0===this.Ug&&(this.Ff=new Image,this.Ff.src="loading-logo.png");this.dh=c[21];this.Ti=fc();this.kd=new Y(this);
var a,n,b,g,l,h,d,f,r;a=0;for(n=c[2].length;a<n;a++)d=c[2][a],b=this.Sd(d[0]),ib(d,b.prototype),r=new b(this),r.rj=d[1],r.ge=d[2],r.so=d[9],r.ka&&r.ka(),this.plugins.push(r);this.Ti=fc();a=0;for(n=c[3].length;a<n;a++){d=c[3][a];l=this.Sd(d[1]);r=null;b=0;for(g=this.plugins.length;b<g;b++)if(this.plugins[b]instanceof l){r=this.plugins[b];break}var p=new r.ib(r);p.name=d[0];p.B=d[2];p.$k=d[3].slice(0);p.lu=d[3].length;p.Oq=d[4];p.as=d[5];p.P=d[11];p.B?(p.Si=[],p.yd=this.ug++,p.qa=null):(p.Si=null,p.yd=
-1,p.qa=[]);p.gi=null;p.mf=null;p.hn=null;p.Lc=!1;p.Qb=null;d[6]?(p.Aj=d[6][0],p.Bj=d[6][1],p.Dh=d[6][2]):(p.Aj=null,p.Bj=0,p.Dh=0);p.Ob=d[7]?d[7]:null;p.index=a;p.c=[];p.ai=[];p.pe=[new jb(p)];p.vd=0;p.$c=null;p.Zq=0;p.Yf=!0;p.Kj=kb;p.gs=lb;p.ms=mb;p.ca=nb;p.qh=ob;p.Ll=qb;p.Qf=rb;p.mi=sb;p.Gk=tb;p.Jk=ub;p.qd=vb;p.sn=wb;p.ng=new ab(this.Na,this.Ma);p.Jh=!0;p.Kh=!1;p.wa={};p.toString=xb;p.Fa=[];b=0;for(g=d[8].length;b<g;b++){f=d[8][b];var t=this.Sd(f[1]),k=null;l=0;for(h=this.Fa.length;l<h;l++)if(this.Fa[l]instanceof
t){k=this.Fa[l];break}k||(k=new t(this),k.uo=[],k.Jf=new ca,k.ka&&k.ka(),this.Fa.push(k));-1===k.uo.indexOf(p)&&k.uo.push(p);l=new k.ib(k,p);l.name=f[0];l.P=f[2];l.ka();p.Fa.push(l)}p.global=d[9];p.bl=d[10];p.H=[];b=0;for(g=d[12].length;b<g;b++)p.H.push({id:d[12][b][0],name:d[12][b][1],gb:-1,Ua:!0,index:b});p.Hv=d[13];this.rm&&!p.B&&!p.bl&&r.ge||p.ka();p.name&&(this.types[p.name]=p);this.n.push(p);r.rj&&(b=new r.Ea(p),b.uid=this.dh++,b.To=this.vo++,b.Ke=0,b.zg=yb,b.toString=zb,b.ra=d[14],b.ka(),p.c.push(b),
this.ie[b.uid.toString()]=b)}a=0;for(n=c[4].length;a<n;a++)for(l=c[4][a],h=this.n[l[0]],b=1,g=l.length;b<g;b++)d=this.n[l[b]],d.qa.push(h),h.Si.push(d);a=0;for(n=c[27].length;a<n;a++){l=c[27][a];h=[];b=0;for(g=l.length;b<g;b++)h.push(this.n[l[b]]);b=0;for(g=h.length;b<g;b++)h[b].Lc=!0,h[b].Qb=h}if(0<this.ug)for(a=0,n=this.n.length;a<n;a++)if(d=this.n[a],!d.B&&d.qa.length){d.gi=Array(this.ug);d.mf=Array(this.ug);d.hn=Array(this.ug);p=[];b=k=t=f=0;for(g=d.qa.length;b<g;b++)for(r=d.qa[b],d.gi[r.yd]=
f,f+=r.lu,d.mf[r.yd]=t,t+=r.Oq,d.hn[r.yd]=k,k+=r.as,l=0,h=r.H.length;l<h;l++)p.push(wa({},r.H[l]));d.H=p.concat(d.H);b=0;for(g=d.H.length;b<g;b++)d.H[b].index=b}a=0;for(n=c[5].length;a<n;a++)d=c[5][a],b=new Ab(this,d),this.ll[b.name]=b,this.Wb.push(b);a=0;for(n=c[6].length;a<n;a++)d=c[6][a],b=new Bb(this,d),this.vk[b.name]=b,this.xd.push(b);a=0;for(n=this.xd.length;a<n;a++)this.xd[a].Da();a=0;for(n=this.xd.length;a<n;a++)this.xd[a].mm();a=0;for(n=this.Ij.length;a<n;a++)this.Ij[a].Da();this.Ij.length=
0;this.Mq=c[7];this.zk=c[8];this.gd=c[9];this.kg=1;this.tr=c[13];this.S=c[14];this.Yj=c[15];this.ju=c[17];this.Fl=c[20];this.Nq=0<this.Fl;this.wt=c[22];this.tc=this.Dp=c[23];this.or=c[24];this.Ct=c[25];this.wj=Date.now();this.Ti.length=0;this.Ls()};var x=!1;b.prototype.wm=function(c,a){c.cocoonLazyLoad=!0;c.onerror=function(a){x=c.Um=!0;console&&console.error&&console.error("Error loading image '"+c.src+"': ",a)};this.Kc?c.src=a:c.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){c.src=
a},function(b){x=c.Um=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):c.src=a);this.gg.push(c)};b.prototype.Yr=function(c){var a,b;a=0;for(b=this.gg.length;a<b;a++)if(this.gg[a].Vq===c)return this.gg[a];return null};var g=0,r=!1;b.prototype.Ds=function(){this.gf&&(g=this.gf.Wt(this.Mq))};b.prototype.Rm=function(){var c=g,a=0,b=0,l=!0,h,d,b=0;for(h=this.gg.length;b<h;b++){d=this.gg[b];var f=d.lk;if(!f||0>=f)f=5E4;c+=f;d.src&&(d.complete||d.loaded)&&
!d.Um?a+=f:l=!1}l&&this.Ct&&this.gf&&(r||(this.gf.$t(),r=!0),b=this.gf.ns(),a+=b,b<g&&(l=!1));this.Xe=0==c?0:a/c;return l};b.prototype.go=function(){if(this.ba||this.q){var c=this.ba||this.Hl;this.fb&&this.Qo();this.Xe=0;this.Sn=-1;if(this.Rm())this.Es();else{var a=Date.now()-this.wj;if(c){var b=this.width,g=this.height,l=this.devicePixelRatio;this.fb&&(b=this.Xh,g=this.Wh,l=1);if(3!==this.Ug&&(this.hc||500<=a&&this.Sn!=this.Xe)){c.clearRect(0,0,b,g);var a=b/2,g=g/2,b=0===this.Ug&&this.Ff.complete,
h=40*l,d=0,f=80*l,p;b&&(f=this.Ff.width*l,p=this.Ff.height*l,h=f/2,d=p/2,c.drawImage(this.Ff,Q(a-h),Q(g-d),f,p));1>=this.Ug?(a=Q(a-h)+.5,g=Q(g+(d+(b?12*l:0)))+.5,c.fillStyle=x?"red":"DodgerBlue",c.fillRect(a,g,Math.floor(f*this.Xe),6*l),c.strokeStyle="black",c.strokeRect(a,g,f,6*l),c.strokeStyle="white",c.strokeRect(a-1*l,g-1*l,f+2*l,8*l)):2===this.Ug&&(c.font=this.Kc?"12pt ArialMT":"12pt Arial",c.fillStyle=x?"#f00":"#999",c.Gv="middle",l=Math.round(100*this.Xe)+"%",b=c.measureText?c.measureText(l):
null,c.fillText(l,a-(b?b.width:0)/2,g))}this.Sn=this.Xe}setTimeout(function(c){return function(){c.go()}}(this),this.hc?10:100)}}};b.prototype.Es=function(){this.fb&&(this.canvas.parentNode.removeChild(this.fb),this.fb=this.Hl=null);this.wj=Date.now();this.Se=V();var c,a,b;if(this.rm)for(c=0,a=this.n.length;c<a;c++)b=this.n[c],b.B||b.bl||!b.Ca.ge||b.ka();else this.Bf=!1;c=0;for(a=this.Wb.length;c<a;c++)this.Wb[c].Wq();2<=this.nb&&(c=this.Na/this.Ma,a=this.width/this.height,this.kg=2!==this.nb&&a>
c||2===this.nb&&a<c?this.height/this.Ma:this.width/this.Na);this.mn?this.ll[this.mn].am():this.Wb[0].am();this.rm||(this.Oi=1,this.trigger(Y.prototype.j.Cm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();c=0;for(a=this.n.length;c<a;c++)b=this.n[c],b.gt&&b.gt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ab(!1);this.eb&&AppMobi.webview.execute("onGameReady();")};var p=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.ab=function(c){if(this.Z){var a=V();if(this.Fs&&this.Nl&&29>a-this.il)this.Nl=!1,this.il=a,p?this.kj=p(this.Dj,this.canvas):this.Ej=setTimeout(this.Dj,this.cd?1:16);else{this.Nl=!0;this.il=a;var b=this.nb,g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.xc;(g||this.Hg)&&0<this.Ge&&(b=this.Ge);
0<b&&(!this.Ei||window.self!==window.top)&&(b=window.innerHeight,this.Ng===window.innerWidth&&this.Mg===b||this.setSize(e(),q()));this.da||(g?(this.ii||(this.Dk=jQuery(this.canvas).css("margin")||"0",this.ii=!0),this.Fg||this.fe||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.ii?(this.Fg||this.fe||jQuery(this.canvas).css("margin",this.Dk),this.Dk=
"",this.ii=!1,0===this.nb&&this.setSize(Math.round(this.Bo/this.devicePixelRatio),Math.round(this.Ao/this.devicePixelRatio),!0)):(this.Bo=this.width,this.Ao=this.height));this.Bf&&(g=this.Rm(),this.Oi=this.Xe,g&&(this.Bf=!1,this.Xe=1,this.trigger(Y.prototype.j.Cm,null)));this.Zs();!this.ga&&!this.hc||this.el||this.Ah||c||(this.ga=!1,this.q?this.Sb():this.Ic(),this.tj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.tj[0],this.tj[1]),this.trigger(Y.prototype.j.Zp,null)),this.tj=null));
this.Av||(this.$f++,this.fi++,this.ki++);this.$g+=V()-a;this.Ig||c||(p?this.kj=p(this.Dj,this.canvas):this.Ej=setTimeout(this.Dj,this.cd?1:16))}}};b.prototype.Zs=function(){var c,a,b,g,l,h,d,f,p;c=V();1E3<=c-this.Se&&(this.Se+=1E3,1E3<=c-this.Se&&(this.Se=c),this.Ck=this.ki,this.ki=0,this.kk=this.$g,this.$g=0);this.oo&&(0!==this.Ii&&(a=c-this.Ii,0!==a||this.Ps?(this.wd=a/1E3,.5<this.wd?this.wd=0:.1<this.wd&&(this.wd=.1)):(10<=this.Iv&&(this.oo=!1),this.wd=1/60)),this.Ii=c);this.De=this.wd*this.ag;
this.ic.add(this.De);this.nd.add(this.wd);c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Hg)&&!this.xc;2<=this.nb||c&&0<this.Ge?(a=this.Na/this.Ma,b=this.width/this.height,g=this.nb,c&&0<this.Ge&&(g=this.Ge),this.kg=2!==g&&b>a||2===g&&b<a?this.height/this.Ma:this.width/this.Na,this.Z&&(this.Z.Yo(this.Z.scrollX),this.Z.Zo(this.Z.scrollY))):this.kg=this.Ne?this.devicePixelRatio:1;this.hb();this.Ed++;this.kd.Mt();this.Ed--;this.hb();
this.Ed++;b=this.zo.Vc();c=0;for(a=b.length;c<a;c++)b[c].Cv();c=0;for(a=this.n.length;c<a;c++)if(d=this.n[c],!d.B&&(d.Fa.length||d.qa.length))for(b=0,g=d.c.length;b<g;b++)for(f=d.c[b],l=0,h=f.G.length;l<h;l++)f.G[l].ab();c=0;for(a=this.n.length;c<a;c++)if(d=this.n[c],!d.B&&(d.Fa.length||d.qa.length))for(b=0,g=d.c.length;b<g;b++)for(f=d.c[b],l=0,h=f.G.length;l<h;l++)p=f.G[l],p.Bt&&p.Bt();b=this.yl.Vc();c=0;for(a=b.length;c<a;c++)b[c].ab();this.Ed--;this.Gs();for(c=0;this.ye&&10>c++;)this.bn(this.ye);
c=0;for(a=this.xd.length;c<a;c++)this.xd[c].Tk=!1;this.Z.Ee&&this.Z.Ee.Qa();this.It.length=0;this.kl=!1;this.Ed++;c=0;for(a=this.n.length;c<a;c++)if(d=this.n[c],!d.B&&(d.Fa.length||d.qa.length))for(b=0,g=d.c.length;b<g;b++)for(f=d.c[b],l=0,h=f.G.length;l<h;l++)p=f.G[l],p.gm&&p.gm();b=this.zl.Vc();c=0;for(a=b.length;c<a;c++)b[c].gm();this.Ed--};b.prototype.bn=function(c){var a=this.Z;this.Z.au();var b,g,l,d,h,f,p;if(this.q)for(b=0,g=this.n.length;b<g;b++)h=this.n[b],h.B||!h.Jj||h.global&&0!==h.c.length||
-1!==c.Dg.indexOf(h)||h.Jj();a==c&&(this.kd.Mb.length=0);c.am();b=0;for(g=this.n.length;b<g;b++)if(h=this.n[b],h.global||h.Ca.rj)for(c=0,a=h.c.length;c<a;c++)if(f=h.c[c],f.El&&f.El(),f.G)for(l=0,d=f.G.length;l<d;l++)p=f.G[l],p.El&&p.El();this.kl=this.ga=!0;this.hb()};b.prototype.hm=function(c){this.yl.add(c)};b.prototype.cu=function(c){this.zl.add(c)};b.prototype.Hk=function(c){return c&&-1!==c.bh?this.wd*c.bh:this.De};b.prototype.Ic=function(){this.Z.Ic(this.ba);this.eb&&this.ba.present()};b.prototype.Sb=
function(){this.Z.Sb(this.q);this.q.Et()};b.prototype.Hq=function(c){c&&this.rk.push(c)};b.prototype.pi=function(c){c=c.toString();return this.ie.hasOwnProperty(c)?this.ie[c]:null};var h=[];b.prototype.Rd=function(c){var a,b;a=c.type.name;var g=null;if(this.Be.hasOwnProperty(a)){if(g=this.Be[a],g.contains(c))return}else g=h.length?h.pop():new ca,this.Be[a]=g;g.add(c);this.ee=!0;if(c.Lc)for(a=0,b=c.siblings.length;a<b;a++)this.Rd(c.siblings[a]);this.al&&g.eg.push(c);this.Ed++;this.trigger(Object.getPrototypeOf(c.type.Ca).j.aq,
c);this.Ed--};b.prototype.hb=function(){if(this.ee){var c,a,b,g,l,h;this.al=!0;b=0;for(l=this.Hc.length;b<l;++b)for(c=this.Hc[b],a=c.type,a.c.push(c),g=0,h=a.qa.length;g<h;++g)a.qa[g].c.push(c),a.qa[g].Yf=!0;this.Hc.length=0;this.Qp();Ua(this.Be);this.ee=this.al=!1}};b.prototype.Qp=function(){for(var c in this.Be)this.Be.hasOwnProperty(c)&&this.Ip(this.Be[c])};b.prototype.Ip=function(c){var a=c.Vc(),b=a[0].type,g,l,d,f,p,r;Va(b.c,c);b.Yf=!0;0===b.c.length&&(b.Kh=!1);g=0;for(l=b.qa.length;g<l;++g)r=
b.qa[g],Va(r.c,c),r.Yf=!0;g=0;for(l=this.kd.Mb.length;g<l;++g)if(p=this.kd.Mb[g],p.tb.hasOwnProperty(b.index)&&Va(p.tb[b.index].Cd,c),!b.B)for(d=0,f=b.qa.length;d<f;++d)r=b.qa[d],p.tb.hasOwnProperty(r.index)&&Va(p.tb[r.index].Cd,c);if(p=a[0].d){if(p.Uc)for(d=p.c,g=0,l=d.length;g<l;++g)f=d[g],c.contains(f)&&(f.ma(),p.Yb.update(f,f.Ib,null),f.Ib.set(0,0,-1,-1));Va(p.c,c);p.wh(0)}for(g=0;g<a.length;++g)this.Hp(a[g],b);c.clear();h.push(c);this.ga=!0};b.prototype.Hp=function(c,a){var b,g,l;b=0;for(g=this.rk.length;b<
g;++b)this.rk[b](c);c.nc&&a.ng.update(c,c.nc,null);(b=c.d)&&b.Rf(c,!0);if(c.G)for(b=0,g=c.G.length;b<g;++b)l=c.G[b],l.eh&&l.eh(),l.behavior.Jf.remove(c);this.zo.remove(c);this.yl.remove(c);this.zl.remove(c);c.eh&&c.eh();this.ie.hasOwnProperty(c.uid.toString())&&delete this.ie[c.uid.toString()];this.Ui--;100>a.ai.length&&a.ai.push(c)};var t=[];b.prototype.Ae=function(c,a,b,g,l,d){var h,f,p,r;if(!c)return null;var k=this.n[c[1]],m=k.Ca.ge;if(this.Bf&&m&&!k.bl||m&&!this.q&&11===c[0][11])return null;
var B=a;m||(a=null);var e;k.ai.length?(e=k.ai.pop(),e.Qc=!0,k.Ca.Ea.call(e,k)):(e=new k.Ca.Ea(k),e.Qc=!1);e.uid=b&&!d?c[2]:this.dh++;this.ie[e.uid.toString()]=e;e.To=this.vo++;e.Ke=k.c.length;h=0;for(f=this.Hc.length;h<f;++h)this.Hc[h].type===k&&e.Ke++;e.zg=yb;e.toString=zb;p=c[3];if(e.Qc)Ua(e.wa);else{e.wa={};if("undefined"!==typeof cr_is_preview)for(e.En=[],e.En.length=p.length,h=0,f=p.length;h<f;h++)e.En[h]=p[h][1];e.La=[];e.La.length=p.length}h=0;for(f=p.length;h<f;h++)e.La[h]=p[h][0];if(m){var u=
c[0];e.x=ga(g)?u[0]:g;e.y=ga(l)?u[1]:l;e.z=u[2];e.width=u[3];e.height=u[4];e.depth=u[5];e.e=u[6];e.opacity=u[7];e.Cb=u[8];e.Db=u[9];e.ub=u[10];h=u[11];!this.q&&k.H.length&&(e.ub=h);e.pg=cb(e.ub);this.m&&db(e,e.ub,this.m);if(e.Qc){h=0;for(f=u[12].length;h<f;h++)for(p=0,r=u[12][h].length;p<r;p++)e.va[h][p]=u[12][h][p];e.za.set(0,0,0,0);e.nc.set(0,0,-1,-1);e.Ib.set(0,0,-1,-1);e.Pb.Vf(e.za);e.bk.length=0}else{e.va=u[12].slice(0);h=0;for(f=e.va.length;h<f;h++)e.va[h]=u[12][h].slice(0);e.U=[];e.Td=[];e.Td.length=
k.H.length;e.za=new T(0,0,0,0);e.nc=new T(0,0,-1,-1);e.Ib=new T(0,0,-1,-1);e.Pb=new va;e.bk=[];e.ta=Cb;e.Kq=Db;e.bb=Eb;e.ma=Fb;e.iu=Gb;e.qm=Hb;e.vc=Ib}e.Eh=!1;e.fu=0;e.eu=0;e.du=null;14===u.length&&(e.Eh=!0,e.fu=u[13][0],e.eu=u[13][1],e.du=u[13][2]);h=0;for(f=k.H.length;h<f;h++)e.Td[h]=!0;e.Pd=Jb;e.Pd();e.Cp=!!e.U.length;e.Ph=!0;e.dk=!0;k.Jh=!0;e.visible=!0;e.bh=-1;e.d=a;e.Wc=a.c.length;"undefined"===typeof e.W&&(e.W=null);this.ga=e.Zc=!0}var q;h=t.length=0;for(f=k.qa.length;h<f;h++)t.push.apply(t,
k.qa[h].Fa);t.push.apply(t,k.Fa);if(e.Qc)for(h=0,f=t.length;h<f;h++){var w=t[h];q=e.G[h];q.Qc=!0;w.behavior.Ea.call(q,w,e);u=c[4][h];p=0;for(r=u.length;p<r;p++)q.ra[p]=u[p];q.ka();w.behavior.Jf.add(e)}else for(e.G=[],h=0,f=t.length;h<f;h++)w=t[h],q=new w.behavior.Ea(w,e),q.Qc=!1,q.ra=c[4][h].slice(0),q.ka(),e.G.push(q),w.behavior.Jf.add(e);u=c[5];if(e.Qc)for(h=0,f=u.length;h<f;h++)e.ra[h]=u[h];else e.ra=u.slice(0);this.Hc.push(e);this.ee=!0;a&&(a.jg(e,!0),1!==a.Gb||1!==a.Hb)&&(k.Kh=!0);this.Ui++;
if(k.Lc){if(e.Lc=!0,e.Qc?e.siblings.length=0:e.siblings=[],!b&&!d){h=0;for(f=k.Qb.length;h<f;h++)if(k.Qb[h]!==k){if(!k.Qb[h].$c)return null;e.siblings.push(this.Ae(k.Qb[h].$c,B,!1,m?e.x:g,m?e.y:l,!0))}h=0;for(f=e.siblings.length;h<f;h++)for(e.siblings[h].siblings.push(e),p=0;p<f;p++)h!==p&&e.siblings[h].siblings.push(e.siblings[p])}}else e.Lc=!1,e.siblings=null;e.ka();h=0;for(f=e.G.length;h<f;h++)e.G[h].At&&e.G[h].At();return e};b.prototype.wg=function(c){var a,b;a=0;for(b=this.Z.K.length;a<b;a++){var g=
this.Z.K[a];if(fb(g.name,c))return g}return null};b.prototype.Ad=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.ik=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].ca().ha=!0};b.prototype.qh=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].qh()};b.prototype.Ll=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].Ll()};b.prototype.Qf=function(c){var a,b;a=0;for(b=c.length;a<b;a++)c[a].Qf()};b.prototype.zp=function(c){if(c.Jh){var a,b,g=
c.c;a=0;for(b=g.length;a<b;++a)g[a].qm();g=this.Hc;a=0;for(b=g.length;a<b;++a)g[a].type===c&&g[a].qm();c.Jh=!1}};b.prototype.es=function(c,a,b,g){var l,h,d=c?1!==c.Gb||1!==c.Hb:!1;if(a.B)for(c=0,l=a.Si.length;c<l;++c)h=a.Si[c],d||h.Kh?za(g,h.c):(this.zp(h),h.ng.jj(b,g));else d||a.Kh?za(g,a.c):(this.zp(a),a.ng.jj(b,g))};b.prototype.Zf=function(c,a,b,g){var l=c.ca(),h,d,f,p,r,k;if(l.ha)for(g||(l.ha=!1,l.c.length=0),h=0,p=c.c.length;h<p;h++){if(f=c.c[h],f.ma(),r=f.d.pa(a,b,!0),k=f.d.pa(a,b,!1),f.bb(r,
k)){if(g)return!1;l.c.push(f)}}else{h=d=0;for(p=l.c.length;h<p;h++)if(f=l.c[h],f.ma(),r=f.d.pa(a,b,!0),k=f.d.pa(a,b,!1),f.bb(r,k)){if(g)return!1;l.c[d]=l.c[h];d++}g||(l.c.length=d)}c.qd();return g?!0:l.Sk()};b.prototype.bu=function(c,a){if(!(c&&a&&c!==a&&c.Zc&&a.Zc))return!1;c.ma();a.ma();var b=c.d,g=a.d,l,h,d,f,p,r,k,e;if(b===g||b.Gb===g.Gb&&g.Hb===g.Hb&&b.scale===g.scale&&b.e===g.e&&b.mb===g.mb){if(!c.za.Ms(a.za)||!c.Pb.Fn(a.Pb)||c.Eh&&a.Eh)return!1;if(c.Eh)return this.np(c,a);if(a.Eh)return this.np(a,
c);k=c.W&&!c.W.xf();l=a.W&&!a.W.xf();if(!k&&!l)return!0;k?(c.W.hf(c.width,c.height,c.e),k=c.W):(this.Sc.Uf(c.Pb,c.x,c.y,c.width,c.height),k=this.Sc);l?(a.W.hf(a.width,a.height,a.e),e=a.W):(this.Sc.Uf(a.Pb,a.x,a.y,a.width,a.height),e=this.Sc);return k.Eg(e,a.x-c.x,a.y-c.y)}k=c.W&&!c.W.xf();l=a.W&&!a.W.xf();k?(c.W.hf(c.width,c.height,c.e),this.Sc.dp(c.W)):this.Sc.Uf(c.Pb,c.x,c.y,c.width,c.height);k=this.Sc;l?(a.W.hf(a.width,a.height,a.e),this.em.dp(a.W)):this.em.Uf(a.Pb,a.x,a.y,a.width,a.height);e=
this.em;l=0;for(h=k.Pc;l<h;l++)d=2*l,f=d+1,p=k.Oa[d],r=k.Oa[f],k.Oa[d]=b.pb(p+c.x,r+c.y,!0),k.Oa[f]=b.pb(p+c.x,r+c.y,!1);k.ma();l=0;for(h=e.Pc;l<h;l++)d=2*l,f=d+1,p=e.Oa[d],r=e.Oa[f],e.Oa[d]=g.pb(p+a.x,r+a.y,!0),e.Oa[f]=g.pb(p+a.x,r+a.y,!1);e.ma();return k.Eg(e,0,0)};var u=new va;new T(0,0,0,0);var l=[];b.prototype.np=function(c,a){var b,g,h,d,f=a.za,p=c.x,r=c.y;c.wv(f,l);var k=a.W&&!a.W.xf();b=0;for(g=l.length;b<g;++b)if(h=l[b],d=h.Dv,f.Ns(d,p,r)&&(u.Vf(d),u.offset(p,r),u.Fn(a.Pb)))if(k)if(a.W.hf(a.width,
a.height,a.e),h.Jl){if(h.Jl.Eg(a.W,a.x-(p+d.left),a.y-(r+d.top)))return l.length=0,!0}else{if(this.Sc.Uf(u,0,0,d.right-d.left,d.bottom-d.top),this.Sc.Eg(a.W,a.x,a.y))return l.length=0,!0}else if(h.Jl){if(this.Sc.Uf(a.Pb,0,0,a.width,a.height),h.Jl.Eg(this.Sc,-(p+d.left),-(r+d.top)))return l.length=0,!0}else return l.length=0,!0;l.length=0;return!1};b.prototype.up=function(c,a){if(!a)return!1;var b,g,l,h,d;b=0;for(g=c.Fa.length;b<g;b++)if(c.Fa[b].behavior instanceof a)return!0;if(!c.B)for(b=0,g=c.qa.length;b<
g;b++)for(d=c.qa[b],l=0,h=d.Fa.length;l<h;l++)if(d.Fa[l].behavior instanceof a)return!0;return!1};b.prototype.vp=function(c){return this.up(c,Yb.Pu)};b.prototype.lm=function(c){return this.up(c,Yb.Qu)};var B=-1;b.prototype.trigger=function(c,a,b){if(!this.Z)return!1;var g=this.Z.Ee;if(!g)return!1;var l=!1,h,d,f;B++;var p=g.pk;d=0;for(f=p.length;d<f;++d)h=this.rp(c,a,p[d],b),l=l||h;h=this.rp(c,a,g,b);B--;return l||h};b.prototype.rp=function(c,a,b,g){var l=!1,h,d,f,p;if(a)for(f=this.jm(c,a,a.type.name,
b,g),l=l||f,p=a.type.qa,h=0,d=p.length;h<d;++h)f=this.jm(c,a,p[h].name,b,g),l=l||f;else f=this.jm(c,a,"system",b,g),l=l||f;return l};b.prototype.jm=function(c,a,b,g,l){var h,d=!1,f=!1,f="undefined"!==typeof l,p=(f?g.kn:g.sp)[b];if(!p)return d;var r=null;g=0;for(h=p.length;g<h;++g)if(p[g].method==c){r=p[g].tg;break}if(!r)return d;c=f?r[l]:r;if(!c)return null;g=0;for(h=c.length;g<h;g++)l=c[g][0],f=c[g][1],f=this.Wr(a,b,l,f),d=d||f;return d};b.prototype.Wr=function(c,a,b,g){var l,h,d=!1;this.km++;var f=
this.ob().Rb;f&&this.qh(f.ne);var p=1<this.km;this.qh(b.ne);p&&this.Gt();var r=this.Ml(b);r.Rb=b;c&&(l=this.types[a].ca(),l.ha=!1,l.c.length=1,l.c[0]=c,this.types[a].qd());c=!0;if(b.parent){a=r.mp;for(l=b.parent;l;)a.push(l),l=l.parent;a.reverse();l=0;for(h=a.length;l<h;l++)if(!a[l].Ot()){c=!1;break}}c&&(this.fi++,b.Nc?b.Nt(g):b.Qa(),d=d||r.Re);this.Po();p&&this.zt();this.Qf(b.ne);f&&this.Qf(f.ne);this.ee&&0===this.Ed&&0===B&&!this.cl&&this.hb();this.km--;return d};b.prototype.ni=function(){var c=
this.ob();return c.Rb.jb[c.Ab]};b.prototype.Gt=function(){this.Qi++;this.Qi>=this.pl.length&&this.pl.push([])};b.prototype.zt=function(){this.Qi--};b.prototype.qn=function(){return this.pl[this.Qi]};b.prototype.Ml=function(c){this.ei++;this.ei>=this.uk.length&&this.uk.push(new Kb);var a=this.ob();a.reset(c);return a};b.prototype.Po=function(){this.ei--};b.prototype.ob=function(){return this.uk[this.ei]};b.prototype.rn=function(c,a){for(var b,g,l,h,d,f;a;){b=0;for(g=a.Dc.length;b<g;b++)if(f=a.Dc[b],
f instanceof Lb&&fb(c,f.name))return f;a=a.parent}b=0;for(g=this.xd.length;b<g;b++)for(d=this.xd[b],l=0,h=d.be.length;l<h;l++)if(f=d.be[l],f instanceof Lb&&fb(c,f.name))return f;return null};b.prototype.tn=function(c){var a,b;a=0;for(b=this.Wb.length;a<b;a++)if(this.Wb[a].P===c)return this.Wb[a];return null};b.prototype.qi=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.hs=function(c){var a,b;a=0;for(b=this.Vd.length;a<b;a++)if(this.Vd[a].P===
c)return this.Vd[a];return null};b.prototype.Gs=function(){var c=this,b=this.oj,g=this.Fd,l=this.Sg,h=!1;this.ip&&(h=!0,b="__c2_continuouspreview",this.ip=!1);if(b.length){this.hb();g=this.St();if(window.indexedDB&&!this.hc)m(b,g,function(){J("Saved state to IndexedDB storage ("+g.length+" bytes)");c.Fd=g;c.trigger(Y.prototype.j.Tj,null);c.Fd="";h&&a()},function(l){try{localStorage.setItem("__c2save_"+b,g),J("Saved state to WebStorage ("+g.length+" bytes)"),c.Fd=g,c.trigger(Y.prototype.j.Tj,null),
c.Fd="",h&&a()}catch(d){J("Failed to save game state: "+l+"; "+d)}});else try{localStorage.setItem("__c2save_"+b,g),J("Saved state to WebStorage ("+g.length+" bytes)"),c.Fd=g,this.trigger(Y.prototype.j.Tj,null),c.Fd="",h&&a()}catch(f){J("Error saving to WebStorage: "+f)}this.rb=this.Sg=this.oj=""}l.length&&(window.indexedDB&&!this.hc?d(l,function(a){a?(c.rb=a,J("Loaded state from IndexedDB storage ("+c.rb.length+" bytes)")):(c.rb=localStorage.getItem("__c2save_"+l)||"",J("Loaded state from WebStorage ("+
c.rb.length+" bytes)"));c.Ah=!1;c.rb.length||c.trigger(Y.prototype.j.Rj,null)},function(){c.rb=localStorage.getItem("__c2save_"+l)||"";J("Loaded state from WebStorage ("+c.rb.length+" bytes)");c.Ah=!1;c.rb.length||c.trigger(Y.prototype.j.Rj,null)}):(this.rb=localStorage.getItem("__c2save_"+l)||"",J("Loaded state from WebStorage ("+this.rb.length+" bytes)"),this.Ah=!1,c.rb.length||c.trigger(Y.prototype.j.Rj,null)),this.oj=this.Sg="");this.rb.length&&(this.hb(),this.Ys(this.rb),this.Fd=this.rb,this.trigger(Y.prototype.j.nq,
null),this.rb=this.Fd="")};b.prototype.St=function(){var c,a,b,g,l,h,d,p={c2save:!0,version:1,rt:{time:this.ic.aa,walltime:this.nd.aa,timescale:this.ag,tickcount:this.$f,execcount:this.fi,next_uid:this.dh,running_layout:this.Z.P,start_time_offset:Date.now()-this.wj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(a=this.n.length;c<a;c++)if(l=this.n[c],!l.B&&!this.vp(l)){h={instances:[]};Ta(l.wa)&&(h.ex=f(l.wa));b=0;for(g=l.c.length;b<g;b++)h.instances.push(this.Vl(l.c[b]));
p.types[l.P.toString()]=h}c=0;for(a=this.Wb.length;c<a;c++)b=this.Wb[c],p.layouts[b.P.toString()]=b.Zb();g=p.events.groups;c=0;for(a=this.Vd.length;c<a;c++)b=this.Vd[c],g[b.P.toString()]=this.ri[b.Ag].pf;a=p.events.cnds;for(d in this.jf)this.jf.hasOwnProperty(d)&&(c=this.jf[d],Ta(c.wa)&&(a[d]={ex:f(c.wa)}));a=p.events.acts;for(d in this.ff)this.ff.hasOwnProperty(d)&&(c=this.ff[d],Ta(c.wa)&&(a[d]={ex:c.wa}));a=p.events.vars;for(d in this.fg)this.fg.hasOwnProperty(d)&&(c=this.fg[d],c.Bi||c.parent&&
!c.Kg||(a[d]=c.data));p.system=this.kd.Zb();return JSON.stringify(p)};b.prototype.Uo=function(){var c,a,b,g,l,h;this.ie={};c=0;for(a=this.n.length;c<a;c++)if(b=this.n[c],!b.B)for(g=0,l=b.c.length;g<l;g++)h=b.c[g],this.ie[h.uid.toString()]=h};b.prototype.Ys=function(c){c=JSON.parse(c);if(c.c2save&&!(1<c.version)){var a=c.rt;this.ic.reset();this.ic.aa=a.time;this.nd.reset();this.nd.aa=a.walltime||0;this.ag=a.timescale;this.$f=a.tickcount;this.fi=a.execcount;this.wj=Date.now()-a.start_time_offset;var b=
a.running_layout;if(b!==this.Z.P)if(b=this.tn(b))this.bn(b);else return;var g,l,h,d,f,p,r;p=c.types;for(l in p)if(p.hasOwnProperty(l)&&(d=this.qi(parseInt(l,10)))&&!d.B&&!this.vp(d)){p[l].ex?d.wa=p[l].ex:Ua(d.wa);f=d.c;h=p[l].instances;b=0;for(g=na(f.length,h.length);b<g;b++)this.Li(f[b],h[b]);b=h.length;for(g=f.length;b<g;b++)this.Rd(f[b]);b=f.length;for(g=h.length;b<g;b++){f=null;if(d.Ca.ge&&(f=this.Z.oi(h[b].w.l),!f))continue;f=this.Ae(d.$c,f,!1,0,0,!0);this.Li(f,h[b])}d.Yf=!0}this.hb();this.Uo();
g=c.layouts;for(l in g)g.hasOwnProperty(l)&&(b=this.tn(parseInt(l,10)))&&b.zc(g[l]);g=c.events.groups;for(l in g)g.hasOwnProperty(l)&&(b=this.hs(parseInt(l,10)))&&this.ri[b.Ag]&&(this.ri[b.Ag].pf=g[l]);b=c.events.cnds;for(l in b)b.hasOwnProperty(l)&&this.jf.hasOwnProperty(l)&&(this.jf[l].wa=b[l].ex);b=c.events.acts;for(l in b)b.hasOwnProperty(l)&&this.ff.hasOwnProperty(l)&&(this.ff[l].wa=b[l].ex);b=c.events.vars;for(l in b)b.hasOwnProperty(l)&&this.fg.hasOwnProperty(l)&&(this.fg[l].data=b[l]);this.dh=
a.next_uid;this.kd.zc(c.system);b=0;for(g=this.n.length;b<g;b++)if(d=this.n[b],!d.B)for(l=0,c=d.c.length;l<c;l++){f=d.c[l];if(d.Lc)for(p=f.zg(),a=f.siblings.length=0,h=d.Qb.length;a<h;a++)r=d.Qb[a],d!==r&&f.siblings.push(r.c[p]);f.od&&f.od();if(f.G)for(a=0,h=f.G.length;a<h;a++)p=f.G[a],p.od&&p.od()}this.ga=!0}};b.prototype.Vl=function(c,a){var b,g,l,h,d;h=c.type;l=h.Ca;var p={};a?p.c2=!0:p.uid=c.uid;Ta(c.wa)&&(p.ex=f(c.wa));if(c.La&&c.La.length)for(p.ivs={},b=0,g=c.La.length;b<g;b++)p.ivs[c.type.$k[b].toString()]=
c.La[b];if(l.ge){l={x:c.x,y:c.y,w:c.width,h:c.height,l:c.d.P,zi:c.vc()};0!==c.e&&(l.a=c.e);1!==c.opacity&&(l.o=c.opacity);.5!==c.Cb&&(l.hX=c.Cb);.5!==c.Db&&(l.hY=c.Db);0!==c.ub&&(l.bm=c.ub);c.visible||(l.v=c.visible);c.Zc||(l.ce=c.Zc);-1!==c.bh&&(l.mts=c.bh);if(h.H.length)for(l.fx=[],b=0,g=h.H.length;b<g;b++)d=h.H[b],l.fx.push({name:d.name,active:c.Td[d.index],params:c.va[d.index]});p.w=l}if(c.G&&c.G.length)for(p.behs={},b=0,g=c.G.length;b<g;b++)h=c.G[b],h.Zb&&(p.behs[h.type.P.toString()]=h.Zb());
c.Zb&&(p.data=c.Zb());return p};b.prototype.ks=function(c,a){var b,g;b=0;for(g=c.$k.length;b<g;b++)if(c.$k[b]===a)return b;return-1};b.prototype.ds=function(c,a){var b,g;b=0;for(g=c.G.length;b<g;b++)if(c.G[b].type.P===a)return b;return-1};b.prototype.Li=function(c,a,b){var g,l,h,d,f;f=c.type;h=f.Ca;if(b){if(!a.c2)return}else c.uid=a.uid;a.ex?c.wa=a.ex:Ua(c.wa);if(l=a.ivs)for(g in l)l.hasOwnProperty(g)&&(b=this.ks(f,parseInt(g,10)),0>b||b>=c.La.length||(c.La[b]=l[g]));if(h.ge){h=a.w;c.d.P!==h.l&&(b=
c.d,c.d=this.Z.oi(h.l),c.d?(b.Rf(c,!0),c.d.jg(c,!0),c.ta(),c.d.wh(0)):(c.d=b,this.Rd(c)));c.x=h.x;c.y=h.y;c.width=h.w;c.height=h.h;c.Wc=h.zi;c.e=h.hasOwnProperty("a")?h.a:0;c.opacity=h.hasOwnProperty("o")?h.o:1;c.Cb=h.hasOwnProperty("hX")?h.hX:.5;c.Db=h.hasOwnProperty("hY")?h.hY:.5;c.visible=h.hasOwnProperty("v")?h.v:!0;c.Zc=h.hasOwnProperty("ce")?h.ce:!0;c.bh=h.hasOwnProperty("mts")?h.mts:-1;c.ub=h.hasOwnProperty("bm")?h.bm:0;c.pg=cb(c.ub);this.m&&db(c,c.ub,this.m);c.ta();if(h.hasOwnProperty("fx"))for(b=
0,l=h.fx.length;b<l;b++)d=f.Jk(h.fx[b].name),0>d||(c.Td[d]=h.fx[b].active,c.va[d]=h.fx[b].params);c.Pd()}if(f=a.behs)for(g in f)f.hasOwnProperty(g)&&(h=this.ds(c,parseInt(g,10)),0>h||c.G[h].zc(f[g]));a.data&&c.zc(a.data)};Mb=function(c){return new b(document.getElementById(c))};Nb=function(c,a){return new b({dc:!0,width:c,height:a})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var c=document.createElement("screencanvas")||document.createElement("canvas");
c.Fv=!0;document.body.appendChild(c);c=new b(c);window.c2runtime=c;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c};window.createEjectaRuntime=function(){var c=new b(document.getElementById("canvas"));window.c2runtime=c;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c}})();
window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,q){if(0!==e&&0!==q){var b=window.cr_getC2Runtime();b&&b.setSize(e,q)}};window.cr_setSuspended=function(e){var q=window.cr_getC2Runtime();q&&q.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.Ee=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.e=0;this.nf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.wp=b[3];this.gp=b[4];this.P=b[5];var d=b[6],h,f;this.K=[];this.Dg=[];h=0;for(f=d.length;h<f;h++){var k=new Ob(this,d[h]);k.xo=h;this.K.push(k)}d=b[7];this.Le=[];h=0;for(f=d.length;h<f;h++){var k=d[h],l=this.b.n[k[1]];l.$c||(l.$c=k);this.Le.push(k);-1===this.Dg.indexOf(l)&&this.Dg.push(l)}this.H=[];this.U=[];this.va=
[];h=0;for(f=b[8].length;h<f;h++)this.H.push({id:b[8][h][0],name:b[8][h][1],gb:-1,Ua:!0,index:h}),this.va.push(b[8][h][2].slice(0));this.Pd();this.sh=new T(0,0,1,1);this.Ol=new T(0,0,1,1);this.je={}}function q(a,b){return a.Wc-b.Wc}function b(a,b){this.Xa=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.Ce=!1;this.Nd=new T(0,0,0,0);this.pp=new va;this.Ja=this.ya=this.Ka=this.xa=0;this.bf=!1;this.Qd=-1;this.name=b[0];this.index=b[1];this.P=b[2];this.visible=b[3];this.Xd=b[4];this.Od=b[5];this.Gb=
b[6];this.Hb=b[7];this.opacity=b[8];this.Bk=b[9];this.Uc=b[10];this.mb=b[11];this.ub=b[12];this.sr=b[13];this.pg="source-over";this.kb=this.lb=0;this.Yb=null;this.Df=k();this.Kd=!0;this.Hi=new T(0,0,-1,-1);this.qc=new T(0,0,-1,-1);this.Uc&&(this.Yb=new bb(this.b.Na,this.b.Ma));this.ke=!1;var d=b[14],h,f;this.sf=[];h=0;for(f=d.length;h<f;h++){var e=d[h],l=this.b.n[e[1]];l.$c||(l.$c=e,l.Zq=this.index);this.sf.push(e);-1===this.Xa.Dg.indexOf(l)&&this.Xa.Dg.push(l)}this.H=[];this.U=[];this.va=[];h=0;
for(f=b[15].length;h<f;h++)this.H.push({id:b[15][h][0],name:b[15][h][1],gb:-1,Ua:!0,index:h}),this.va.push(b[15][h][2].slice(0));this.Pd();this.sh=new T(0,0,1,1);this.Ol=new T(0,0,1,1)}function k(){return f.length?f.pop():[]}function m(a){a.length=0;f.push(a)}e.prototype.Rt=function(a){var b=a.type.P.toString();this.je.hasOwnProperty(b)||(this.je[b]=[]);this.je[b].push(this.b.Vl(a))};e.prototype.xn=function(){var a=this.K[0];return!a.Od&&1===a.opacity&&!a.Bk&&a.visible};e.prototype.Pd=function(){this.U.length=
0;var a,b,d;a=0;for(b=this.H.length;a<b;a++)d=this.H[a],d.Ua&&this.U.push(d)};e.prototype.Ik=function(a){var b,d,h;b=0;for(d=this.H.length;b<d;b++)if(h=this.H[b],h.name===a)return h;return null};var d=[],a=!0;e.prototype.am=function(){this.gp&&(this.Ee=this.b.vk[this.gp],this.Ee.mm());this.b.Z=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var b,f,p,h,k,e,l;b=0;for(p=this.b.n.length;b<p;b++)if(f=this.b.n[b],!f.B)for(k=f.c,f=0,h=k.length;f<h;f++)if(e=k[f],e.d){var m=e.d.xo;m>=this.K.length&&
(m=this.K.length-1);e.d=this.K[m];-1===e.d.c.indexOf(e)&&e.d.c.push(e);e.d.bf=!0}if(!a)for(b=0,p=this.K.length;b<p;++b)this.K[b].c.sort(q);d.length=0;this.Pq();b=0;for(p=this.K.length;b<p;b++)e=this.K[b],e.Xq(),e.om();k=!1;if(!this.nf){for(l in this.je)if(this.je.hasOwnProperty(l)&&(f=this.b.qi(parseInt(l,10)))&&!f.B&&this.b.lm(f)){h=this.je[l];b=0;for(p=h.length;b<p;b++){e=null;if(f.Ca.ge&&(e=this.oi(h[b].w.l),!e))continue;e=this.b.Ae(f.$c,e,!1,0,0,!0);this.b.Li(e,h[b]);k=!0;d.push(e)}h.length=0}b=
0;for(p=this.K.length;b<p;b++)this.K[b].c.sort(q),this.K[b].bf=!0}k&&(this.b.hb(),this.b.Uo());for(b=0;b<d.length;b++)if(e=d[b],e.type.Lc)for(p=e.zg(),f=0,h=e.type.Qb.length;f<h;f++)l=e.type.Qb[f],e.type!==l&&(l.c.length>p?e.siblings.push(l.c[p]):l.$c&&(k=this.b.Ae(l.$c,e.d,!0,e.x,e.y,!0),this.b.hb(),l.Kj(),e.siblings.push(k),d.push(k)));b=0;for(p=this.Le.length;b<p;b++)this.b.Ae(this.Le[b],null,!0);this.b.ye=null;this.b.hb();if(this.b.ba&&!this.b.da)for(b=0,p=this.b.n.length;b<p;b++)l=this.b.n[b],
!l.B&&l.c.length&&l.hj&&l.hj(this.b.ba);b=0;for(p=d.length;b<p;b++)e=d[b],this.b.trigger(Object.getPrototypeOf(e.type.Ca).j.$p,e);d.length=0;this.b.trigger(Y.prototype.j.Bm,null);this.nf=!1};e.prototype.Wq=function(){var a,b,d,h,f;b=a=0;for(d=this.Le.length;a<d;a++)h=this.Le[a],f=this.b.n[h[1]],f.global?this.b.Ae(h,null,!0):(this.Le[b]=h,b++);this.Le.length=b};e.prototype.au=function(){this.b.trigger(Y.prototype.j.mq,null);this.b.kd.Mb.length=0;var b,d,f,h,e,k;if(!this.nf)for(b=0,d=this.K.length;b<
d;b++)for(this.K[b].pm(),e=this.K[b].c,f=0,h=e.length;f<h;f++)k=e[f],k.type.global||this.b.lm(k.type)&&this.Rt(k);b=0;for(d=this.K.length;b<d;b++){e=this.K[b].c;f=0;for(h=e.length;f<h;f++)k=e[f],k.type.global||this.b.Rd(k);this.b.hb();e.length=0;this.K[b].bf=!0}b=0;for(d=this.b.n.length;b<d;b++)if(e=this.b.n[b],!(e.global||e.Ca.ge||e.Ca.rj||e.B)){f=0;for(h=e.c.length;f<h;f++)this.b.Rd(e.c[f]);this.b.hb()}a=!1};new T(0,0,0,0);e.prototype.Ic=function(b){var a,d=b,h=!1,f=!this.b.tc;f&&(this.b.Ki||(this.b.Ki=
document.createElement("canvas"),a=this.b.Ki,a.width=this.b.M,a.height=this.b.L,this.b.Un=a.getContext("2d"),h=!0),a=this.b.Ki,d=this.b.Un,a.width!==this.b.M&&(a.width=this.b.M,h=!0),a.height!==this.b.L&&(a.height=this.b.L,h=!0),h&&(d.webkitImageSmoothingEnabled=this.b.S,d.mozImageSmoothingEnabled=this.b.S,d.msImageSmoothingEnabled=this.b.S,d.imageSmoothingEnabled=this.b.S));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.Yj&&!this.xn()&&d.clearRect(0,0,this.b.M,this.b.L);var e,l,
h=0;for(e=this.K.length;h<e;h++)l=this.K[h],l.visible&&0<l.opacity&&11!==l.ub&&(l.c.length||!l.Od)?l.Ic(d):l.om();f&&b.drawImage(a,0,0,this.b.width,this.b.height)};e.prototype.Sb=function(a){var b=0<this.U.length||this.b.dg||!this.b.tc;if(b){this.b.Vb||(this.b.Vb=a.Zd(this.b.M,this.b.L,this.b.S));if(this.b.Vb.mg!==this.b.M||this.b.Vb.lg!==this.b.L)a.deleteTexture(this.b.Vb),this.b.Vb=a.Zd(this.b.M,this.b.L,this.b.S);a.hd(this.b.Vb);this.b.tc||a.Tf(this.b.M,this.b.L)}else this.b.Vb&&(a.hd(null),a.deleteTexture(this.b.Vb),
this.b.Vb=null);this.b.Yj&&!this.xn()&&a.clear(0,0,0,0);var d,h,f;d=0;for(h=this.K.length;d<h;d++)f=this.K[d],f.visible&&0<f.opacity&&(f.c.length||!f.Od)?f.Sb(a):f.om();b&&(0===this.U.length||1===this.U.length&&this.b.tc?(1===this.U.length?(b=this.U[0].index,a.jd(this.U[0].gb),a.Sf(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.va[b]),a.ij(this.U[0].gb)&&(this.b.ga=!0)):a.jd(0),this.b.tc||a.Tf(this.b.width,this.b.height),a.hd(null),a.Ye(1),a.$b(this.b.Vb),a.$o(),
a.le(),a.te(),b=this.b.width/2,d=this.b.height/2,a.rh(-b,d,b,d,b,-d,-b,-d),a.$b(null)):this.Pl(a,null,null,null))};e.prototype.xg=function(){return 0<this.U.length||this.b.dg||!this.b.tc?this.b.Vb:null};e.prototype.un=function(){var a=this.K[0].uc(),b,d,h;b=1;for(d=this.K.length;b<d;b++)h=this.K[b],(0!==h.Gb||0!==h.Hb)&&h.uc()<a&&(a=h.uc());return a};e.prototype.Yo=function(a){if(!this.wp){var b=1/this.un()*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)};e.prototype.Zo=function(a){if(!this.wp){var b=1/this.un()*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)};e.prototype.Pq=function(){this.Yo(this.scrollX);this.Zo(this.scrollY)};e.prototype.Pl=function(a,b,d,h){var f=d?d.U:b?b.U:this.U,e=1,l=0,k=0,c=0,m=this.b.M,n=this.b.L;d?(e=d.d.uc(),l=d.d.Va(),k=d.d.xa,c=d.d.ya,m=d.d.Ka,n=d.d.Ja):b&&(e=b.uc(),l=b.Va(),k=b.xa,c=b.ya,m=b.Ka,n=b.Ja);var q=this.b.Ek,w,x,v,z,L=0,D=1,X,F=this.b.M,y=this.b.L,
ua=F/2,N=y/2,G=b?b.sh:this.sh,E=b?b.Ol:this.Ol,H=0,I=0,C=0,O=0,K=F,ha=F,M=y,pa=y,da=v=0,sa=d?d.d.Va():0;if(d){w=0;for(x=f.length;w<x;w++)v+=a.os(f[w].gb),da+=a.ps(f[w].gb);z=d.za;H=b.pb(z.left,z.top,!0,!0);C=b.pb(z.left,z.top,!1,!0);K=b.pb(z.right,z.bottom,!0,!0);M=b.pb(z.right,z.bottom,!1,!0);0!==sa&&(w=b.pb(z.right,z.top,!0,!0),x=b.pb(z.right,z.top,!1,!0),I=b.pb(z.left,z.bottom,!0,!0),O=b.pb(z.left,z.bottom,!1,!0),z=Math.min(H,K,w,I),K=Math.max(H,K,w,I),H=z,z=Math.min(C,M,x,O),M=Math.max(C,M,x,
O),C=z);H-=v;C-=da;K+=v;M+=da;E.left=H/F;E.top=1-C/y;E.right=K/F;E.bottom=1-M/y;I=H=Q(H);O=C=Q(C);ha=K=ra(K);pa=M=ra(M);I-=v;O-=da;ha+=v;pa+=da;0>H&&(H=0);0>C&&(C=0);K>F&&(K=F);M>y&&(M=y);0>I&&(I=0);0>O&&(O=0);ha>F&&(ha=F);pa>y&&(pa=y);G.left=H/F;G.top=1-C/y;G.right=K/F;G.bottom=1-M/y}else G.left=E.left=0,G.top=E.top=0,G.right=E.right=1,G.bottom=E.bottom=1;da=d&&((d.e||sa)&&a.ph(f[0].gb)||0!==v||0!==da||1!==d.opacity||d.type.Ca.so)||b&&!d&&1!==b.opacity;a.$o();if(da){q[L]||(q[L]=a.Zd(F,y,this.b.S));
if(q[L].mg!==F||q[L].lg!==y)a.deleteTexture(q[L]),q[L]=a.Zd(F,y,this.b.S);a.jd(0);a.hd(q[L]);X=pa-O;a.clearRect(I,y-O-X,ha-I,X);d?d.Sb(a):(a.$b(this.b.jc),a.Ye(b.opacity),a.le(),a.translate(-ua,-N),a.te(),a.Jd(H,M,K,M,K,C,H,C,G));E.left=E.top=0;E.right=E.bottom=1;d&&(z=G.top,G.top=G.bottom,G.bottom=z);L=1;D=0}a.Ye(1);v=f.length-1;var sa=a.Kl(f[v].gb)||!b&&!d&&!this.b.tc,ba=0;w=0;for(x=f.length;w<x;w++){q[L]||(q[L]=a.Zd(F,y,this.b.S));if(q[L].mg!==F||q[L].lg!==y)a.deleteTexture(q[L]),q[L]=a.Zd(F,y,
this.b.S);a.jd(f[w].gb);ba=f[w].index;a.ij(f[w].gb)&&(this.b.ga=!0);0!=w||da?(a.Sf(h,1/F,1/y,E.left,E.top,E.right,E.bottom,e,l,k,c,(k+m)/2,(c+n)/2,d?d.va[ba]:b?b.va[ba]:this.va[ba]),a.$b(null),w!==v||sa?(a.hd(q[L]),X=pa-O,z=y-O-X,a.clearRect(I,z,ha-I,X)):(d?a.me(d.lb,d.kb):b&&a.me(b.lb,b.kb),a.hd(h)),a.$b(q[D]),a.le(),a.translate(-ua,-N),a.te(),a.Jd(H,M,K,M,K,C,H,C,G),w!==v||sa||a.$b(null)):(a.hd(q[L]),X=pa-O,z=y-O-X,a.clearRect(I,z,ha-I,X),d?(a.Sf(h,1/d.width,1/d.height,E.left,E.top,E.right,E.bottom,
e,l,k,c,(k+m)/2,(c+n)/2,d.va[ba]),d.Sb(a)):(a.Sf(h,1/F,1/y,0,0,1,1,e,l,k,c,(k+m)/2,(c+n)/2,b?b.va[ba]:this.va[ba]),a.$b(b?this.b.jc:this.b.Vb),a.le(),a.translate(-ua,-N),a.te(),a.Jd(H,M,K,M,K,C,H,C,G)),E.left=E.top=0,E.right=E.bottom=1,d&&!sa&&(z=M,M=C,C=z));L=0===L?1:0;D=0===L?1:0}sa&&(a.jd(0),d?a.me(d.lb,d.kb):b?a.me(b.lb,b.kb):this.b.tc||(a.Tf(this.b.width,this.b.height),ua=this.b.width/2,N=this.b.height/2,C=H=0,K=this.b.width,M=this.b.height),a.hd(h),a.$b(q[D]),a.le(),a.translate(-ua,-N),a.te(),
d&&1===f.length&&!da?a.Jd(H,C,K,C,K,M,H,M,G):a.Jd(H,M,K,M,K,C,H,C,G),a.$b(null))};e.prototype.oi=function(a){var b,d;b=0;for(d=this.K.length;b<d;b++)if(this.K[b].P===a)return this.K[b];return null};e.prototype.Zb=function(){var a,b,d,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.e,w:this.width,h:this.height,fv:this.nf,persist:this.je,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)d=this.H[a],h.fx.push({name:d.name,active:d.Ua,params:this.va[d.index]});a=0;for(b=this.K.length;a<b;a++)d=
this.K[a],h.layers[d.P.toString()]=d.Zb();return h};e.prototype.zc=function(a){var b,d,h,f;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.je=a.persist;"undefined"!==typeof a.fv&&(this.nf=a.fv);var e=a.fx;b=0;for(d=e.length;b<d;b++)if(h=this.Ik(e[b].name))h.Ua=e[b].active,this.va[h.index]=e[b].params;this.Pd();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.oi(parseInt(f,10)))&&a.zc(b[f])};Ab=e;b.prototype.Pd=function(){this.U.length=0;var a,b,
d;a=0;for(b=this.H.length;a<b;a++)d=this.H[a],d.Ua&&this.U.push(d)};b.prototype.Ik=function(a){var b,d,h;b=0;for(d=this.H.length;b<d;b++)if(h=this.H[b],h.name===a)return h;return null};b.prototype.Xq=function(){var a,b,f,h,e,k;b=a=0;for(f=this.sf.length;a<f;a++){h=this.sf[a];e=this.b.n[h[1]];k=this.b.lm(e);e=!0;if(!k||this.Xa.nf)h=this.b.Ae(h,this,!0),d.push(h),h.type.global&&(e=!1);e&&(this.sf[b]=this.sf[a],b++)}this.sf.length=b;this.b.hb();!this.b.q&&this.H.length&&(this.ub=this.sr);this.pg=cb(this.ub);
this.b.m&&db(this,this.ub,this.b.m);this.Kd=!0};b.prototype.Rf=function(a,b){var d=Aa(this.c,a);0>d||(b&&this.Uc&&a.Ib&&a.Ib.right>=a.Ib.left&&(a.ma(),this.Yb.update(a,a.Ib,null),a.Ib.set(0,0,-1,-1)),d===this.c.length-1?this.c.pop():(xa(this.c,d),this.wh(d)),this.Kd=!0)};b.prototype.jg=function(a,b){a.Wc=this.c.length;this.c.push(a);b&&this.Uc&&a.Ib&&a.ta();this.Kd=!0};b.prototype.Dt=function(a){this.c.unshift(a);this.wh(0)};b.prototype.et=function(a,b,d){var h=a.vc();b=b.vc();xa(this.c,h);h<b&&b--;
d&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.wh(h<b?h:b)};b.prototype.wh=function(a){-1===this.Qd?this.Qd=a:a<this.Qd&&(this.Qd=a);this.Kd=this.bf=!0};b.prototype.pm=function(){if(this.bf){-1===this.Qd&&(this.Qd=0);var a,b,d;if(this.Uc)for(a=this.Qd,b=this.c.length;a<b;++a)d=this.c[a],d.Wc=a,this.Yb.$s(d.Ib);else for(a=this.Qd,b=this.c.length;a<b;++a)this.c[a].Wc=a;this.bf=!1;this.Qd=-1}};b.prototype.uc=function(a){return this.ls()*(this.b.tc||a?this.b.kg:1)};b.prototype.ls=function(){return(this.scale*
this.Xa.scale-1)*this.mb+1};b.prototype.Va=function(){return this.Ce?0:Ea(this.Xa.e+this.e)};var f=[],w=[],x=[];b.prototype.vn=function(){this.pm();this.Yb.jj(this.xa,this.ya,this.Ka,this.Ja,x);if(!x.length)return k();if(1===x.length){var a=k();ya(a,x[0]);x.length=0;return a}for(var b=!0;1<x.length;){for(var a=x,d=void 0,h=void 0,f=void 0,e=void 0,l=void 0,d=0,h=a.length;d<h-1;d+=2){var f=a[d],e=a[d+1],l=k(),B=f,c=e,q=l,n=0,A=0,R=0,oa=B.length,v=c.length,z=void 0,L=void 0;for(q.length=oa+v;n<oa&&
A<v;++R)z=B[n],L=c[A],z.Wc<L.Wc?(q[R]=z,++n):(q[R]=L,++A);for(;n<oa;++n,++R)q[R]=B[n];for(;A<v;++A,++R)q[R]=c[A];b||(m(f),m(e));w.push(l)}1===h%2&&(b?(f=k(),ya(f,a[h-1]),w.push(f)):w.push(a[h-1]));ya(a,w);w.length=0;b=!1}a=x[0];x.length=0;return a};b.prototype.Ic=function(a){this.ke=this.Bk||1!==this.opacity||0!==this.ub;var b=this.b.canvas,d=a,h=!1;this.ke&&(this.b.Ji||(this.b.Ji=document.createElement("canvas"),b=this.b.Ji,b.width=this.b.M,b.height=this.b.L,this.b.Tn=b.getContext("2d"),h=!0),b=
this.b.Ji,d=this.b.Tn,b.width!==this.b.M&&(b.width=this.b.M,h=!0),b.height!==this.b.L&&(b.height=this.b.L,h=!0),h&&(d.webkitImageSmoothingEnabled=this.b.S,d.mozImageSmoothingEnabled=this.b.S,d.msImageSmoothingEnabled=this.b.S,d.imageSmoothingEnabled=this.b.S),this.Od&&d.clearRect(0,0,this.b.M,this.b.L));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Od||(d.fillStyle="rgb("+this.Xd[0]+","+this.Xd[1]+","+this.Xd[2]+")",d.fillRect(0,0,this.b.M,this.b.L));d.save();this.Ce=!0;var h=this.pa(0,
0,!0,!0),f=this.pa(0,0,!1,!0);this.Ce=!1;this.b.gd&&(h=Math.round(h),f=Math.round(f));this.Rl(h,f,d);var e=this.uc();d.scale(e,e);d.translate(-h,-f);this.Uc?(this.qc.left=this.Yb.cc(this.xa),this.qc.top=this.Yb.ec(this.ya),this.qc.right=this.Yb.cc(this.Ka),this.qc.bottom=this.Yb.ec(this.Ja),this.Kd||!this.qc.di(this.Hi)?(m(this.Df),h=this.vn(),this.Kd=!1,this.Hi.qg(this.qc)):h=this.Df):h=this.c;for(var l,k=null,f=0,e=h.length;f<e;++f)l=h[f],l!==k&&(this.pr(l,d),k=l);this.Uc&&(this.Df=h);d.restore();
this.ke&&(a.globalCompositeOperation=this.pg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};b.prototype.pr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var d=a.za;d.right<this.xa||d.bottom<this.ya||d.left>this.Ka||d.top>this.Ja||(b.globalCompositeOperation=a.pg,a.Ic(b))}};b.prototype.om=function(){this.Ce=!0;var a=this.pa(0,0,!0,!0),b=this.pa(0,0,!1,!0);this.Ce=!1;this.b.gd&&(a=Math.round(a),b=Math.round(b));this.Rl(a,b,null)};b.prototype.Rl=function(a,b,d){var h=this.uc();this.xa=
a;this.ya=b;this.Ka=a+1/h*this.b.M;this.Ja=b+1/h*this.b.L;a=this.Va();0!==a&&(d&&(d.translate(this.b.M/2,this.b.L/2),d.rotate(-a),d.translate(this.b.M/-2,this.b.L/-2)),this.Nd.set(this.xa,this.ya,this.Ka,this.Ja),this.Nd.offset((this.xa+this.Ka)/-2,(this.ya+this.Ja)/-2),this.pp.ep(this.Nd,a),this.pp.Tm(this.Nd),this.Nd.offset((this.xa+this.Ka)/2,(this.ya+this.Ja)/2),this.xa=this.Nd.left,this.ya=this.Nd.top,this.Ka=this.Nd.right,this.Ja=this.Nd.bottom)};b.prototype.Sb=function(a){var b=0,d=0;if(this.ke=
this.Bk||1!==this.opacity||0<this.U.length||0!==this.ub){this.b.jc||(this.b.jc=a.Zd(this.b.M,this.b.L,this.b.S));if(this.b.jc.mg!==this.b.M||this.b.jc.lg!==this.b.L)a.deleteTexture(this.b.jc),this.b.jc=a.Zd(this.b.M,this.b.L,this.b.S);a.hd(this.b.jc);this.Od&&a.clear(0,0,0,0)}this.Od||a.clear(this.Xd[0]/255,this.Xd[1]/255,this.Xd[2]/255,1);this.Ce=!0;var h=this.pa(0,0,!0,!0),b=this.pa(0,0,!1,!0);this.Ce=!1;this.b.gd&&(h=Math.round(h),b=Math.round(b));this.Rl(h,b,null);h=this.uc();a.le();a.scale(h,
h);a.Wo(-this.Va());a.translate((this.xa+this.Ka)/-2,(this.ya+this.Ja)/-2);a.te();this.Uc?(this.qc.left=this.Yb.cc(this.xa),this.qc.top=this.Yb.ec(this.ya),this.qc.right=this.Yb.cc(this.Ka),this.qc.bottom=this.Yb.ec(this.Ja),this.Kd||!this.qc.di(this.Hi)?(m(this.Df),b=this.vn(),this.Kd=!1,this.Hi.qg(this.qc)):b=this.Df):b=this.c;var f,e,l=null,d=0;for(f=b.length;d<f;++d)e=b[d],e!==l&&(this.qr(b[d],a),l=e);this.Uc&&(this.Df=b);this.ke&&(b=this.U.length?this.U[0].gb:0,d=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.jd(b),a.Sf(this.Xa.xg(),1/this.b.M,1/this.b.L,0,0,1,1,h,this.Va(),this.xa,this.ya,(this.xa+this.Ka)/2,(this.ya+this.Ja)/2,this.va[d]),a.ij(b)&&(this.b.ga=!0)):a.jd(0),a.hd(this.Xa.xg()),a.Ye(this.opacity),a.$b(this.b.jc),a.me(this.lb,this.kb),a.le(),a.te(),h=this.b.M/2,b=this.b.L/2,a.rh(-h,b,h,b,h,-b,-h,-b),a.$b(null)):this.Xa.Pl(a,this,null,this.Xa.xg()))};b.prototype.qr=function(a,b){if(a.visible&&0!==a.width&&
0!==a.height){a.ma();var d=a.za;d.right<this.xa||d.bottom<this.ya||d.left>this.Ka||d.top>this.Ja||(a.Cp?this.rr(a,b):(b.jd(0),b.me(a.lb,a.kb),a.Sb(b)))}};b.prototype.rr=function(a,b){var d=a.U[0].gb,h=a.U[0].index,f=this.uc();if(1!==a.U.length||b.Kl(d)||b.Ft(d)||(a.e||a.d.Va())&&b.ph(d)||1!==a.opacity||a.type.Ca.so)this.Xa.Pl(b,this,a,this.ke?this.b.jc:this.Xa.xg()),b.le(),b.scale(f,f),b.Wo(-this.Va()),b.translate((this.xa+this.Ka)/-2,(this.ya+this.Ja)/-2),b.te();else{b.jd(d);b.me(a.lb,a.kb);b.ij(d)&&
(this.b.ga=!0);var e=0,l=0,k=0,c=0;b.ph(d)&&(d=a.za,e=this.pb(d.left,d.top,!0,!0),l=this.pb(d.left,d.top,!1,!0),k=this.pb(d.right,d.bottom,!0,!0),d=this.pb(d.right,d.bottom,!1,!0),e/=windowWidth,l=1-l/windowHeight,k/=windowWidth,c=1-d/windowHeight);b.Sf(this.ke?this.b.jc:this.Xa.xg(),1/a.width,1/a.height,e,l,k,c,f,this.Va(),this.xa,this.ya,(this.xa+this.Ka)/2,(this.ya+this.Ja)/2,a.va[h]);a.Sb(b)}};b.prototype.pa=function(a,b,d,h){var f=this.b.devicePixelRatio;this.b.Ne&&(a*=f,b*=f);var f=this.b.Jo,
e=this.b.Ko,f=(this.Xa.scrollX-f)*this.Gb+f,e=(this.Xa.scrollY-e)*this.Hb+e,l=f,k=e,c=1/this.uc(!h);h?(l-=this.b.M*c/2,k-=this.b.L*c/2):(l-=this.b.width*c/2,k-=this.b.height*c/2);l+=a*c;k+=b*c;b=this.Va();0!==b&&(l-=f,k-=e,a=Math.cos(b),b=Math.sin(b),h=l*a-k*b,k=k*a+l*b,l=h+f,k+=e);return d?l:k};b.prototype.pb=function(a,b,d,h){var f=this.b.Jo,e=this.b.Ko,l=(this.Xa.scrollX-f)*this.Gb+f,k=(this.Xa.scrollY-e)*this.Hb+e,e=l,f=k,c=this.Va();if(0!==c){a-=l;b-=k;var m=Math.cos(-c),c=Math.sin(-c),n=a*m-
b*c;b=b*m+a*c;a=n+l;b+=k}l=1/this.uc(!h);h?(e-=this.b.M*l/2,f-=this.b.L*l/2):(e-=this.b.width*l/2,f-=this.b.height*l/2);e=(a-e)/l;f=(b-f)/l;a=this.b.devicePixelRatio;this.b.Ne&&!h&&(e/=a,f/=a);return d?e:f};b.prototype.Zb=function(){var a,b,d,h={s:this.scale,a:this.e,vl:this.xa,vt:this.ya,vr:this.Ka,vb:this.Ja,v:this.visible,bc:this.Xd,t:this.Od,px:this.Gb,py:this.Hb,o:this.opacity,zr:this.mb,fx:[],instances:[]};a=0;for(b=this.H.length;a<b;a++)d=this.H[a],h.fx.push({name:d.name,active:d.Ua,params:this.va[d.index]});
return h};b.prototype.zc=function(a){var b,d;this.scale=a.s;this.e=a.a;this.xa=a.vl;this.ya=a.vt;this.Ka=a.vr;this.Ja=a.vb;this.visible=a.v;this.Xd=a.bc;this.Od=a.t;this.Gb=a.px;this.Hb=a.py;this.opacity=a.o;this.mb=a.zr;var h=a.fx;a=0;for(b=h.length;a<b;a++)if(d=this.Ik(h[a].name))d.Ua=h[a].active,this.va[d.index]=h[a].params;this.Pd();this.c.sort(q);this.bf=!0};Ob=b})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function b(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=h.length&&(h.length=a.length+1);h[a.length]||(h[a.length]=[]);f=h[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],e(a,d))return d;f.push(a);return a}
function k(a,b){this.b=a;this.sp={};this.kn={};this.Tk=!1;this.An=new ca;this.pk=[];this.Zj=[];this.name=b[0];var c=b[1];this.be=[];var d,f;d=0;for(f=c.length;d<f;d++)this.Cn(c[d],null,this.be)}function m(a){this.type=a;this.c=[];this.V=[];this.ha=!0}function d(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.ne=[];this.yn=this.Fj=this.im=this.xi=this.group=this.kp=!1;this.jb=[];this.Fc=[];this.Dc=[];this.Ag="";this.pf=this.xi=this.group=!1;this.Uh=null;c[1]&&(this.Ag=c[1][1].toLowerCase(),
this.group=!0,this.xi=!!c[1][0],this.Uh=[],this.pf=this.xi,this.b.Vd.push(this),this.b.ri[this.Ag]=this);this.Nc=c[2];this.P=c[4];this.group||(this.b.Sm[this.P.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Pb(this,d[a]);f.index=a;this.jb.push(f);this.Nm(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new Qb(this,d[a]),f.index=a,this.Fc.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Cn(c[a],this,this.Dc);this.Ci=!1;this.jb.length&&(this.Ci=null==this.jb[0].type&&
this.jb[0].cb==Y.prototype.j.zm)}function a(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Lc))for(c=0,d=a.Qb.length;c<d;c++)f=a.Qb[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function f(a,b){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.wa={};this.index=-1;this.hg=!1;this.cb=this.b.Sd(b[1]);this.trigger=0<b[3];this.jn=2===b[3];this.dd=b[4];this.tf=b[5];this.Xs=b[6];this.P=b[7];this.b.jf[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Qa=this.Ul,this.xe=null,this.mc=-1):
(this.type=this.b.n[b[0]],this.Qa=this.Xs?this.Pt:this.Tl,b[2]?(this.xe=this.type.mi(b[2]),this.mc=this.type.Gk(b[2])):(this.xe=null,this.mc=-1),this.fc.parent&&this.fc.parent.qj());this.jn&&(this.Qa=this.Qt);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var h=new Rb(this,f[c]);this.I.push(h)}this.ea.length=f.length}}function w(a,b){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.wa={};this.index=-1;this.hg=!1;this.cb=this.b.Sd(b[1]);-1===b[0]?(this.type=null,this.Qa=
this.Ul,this.xe=null,this.mc=-1):(this.type=this.b.n[b[0]],this.Qa=this.Tl,b[2]?(this.xe=this.type.mi(b[2]),this.mc=this.type.Gk(b[2])):(this.xe=null,this.mc=-1));this.P=b[3];this.b.ff[this.P.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var h=new Rb(this,f[c]);this.I.push(h)}this.ea.length=f.length}}function x(a,b){this.k=a;this.fc=a.fc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ad=null;this.oe=0;this.get=null;this.Zm=0;this.Xa=null;this.key=0;this.object=null;
this.index=0;this.Gh=this.$e=this.Gh=this.$e=this.ln=this.Fe=this.Hh=null;this.Ec=!1;var c,d,f;switch(b[0]){case 0:case 7:this.ad=new Sb(this,b[1]);this.oe=0;this.get=this.us;break;case 1:this.ad=new Sb(this,b[1]);this.oe=0;this.get=this.vs;break;case 5:this.ad=new Sb(this,b[1]);this.oe=0;this.get=this.zs;break;case 3:case 8:this.Zm=b[1];this.get=this.ss;break;case 6:this.Xa=this.b.ll[b[1]];this.get=this.As;break;case 9:this.key=b[1];this.get=this.ys;break;case 4:this.object=this.b.n[b[1]];this.get=
this.Bs;this.fc.Nm(this.object);this.k instanceof Qb?this.fc.qj():this.fc.parent&&this.fc.parent.qj();break;case 10:this.index=b[1];a.type.B?(this.get=this.ws,this.Ec=!0):this.get=this.xs;break;case 11:this.Hh=b[1];this.Fe=null;this.get=this.ts;break;case 2:case 12:this.ln=b[1];this.get=this.rs;break;case 13:for(this.get=this.Cs,this.$e=[],this.Gh=[],c=1,d=b.length;c<d;c++)f=new Rb(this.k,b[c]),this.$e.push(f),this.Gh.push(0)}}function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=
c[1];this.Mj=c[2];this.wi=c[3];this.Kg=!!c[4];this.Bi=!!c[5];this.P=c[6];this.b.fg[this.P.toString()]=this;this.data=this.wi;this.parent?(this.Ve=this.Kg||this.Bi?-1:this.b.Zt++,this.b.Lq.push(this)):(this.Ve=-1,this.b.Wj.push(this))}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Cg=null;this.Js=c[1];this.Ua=!0}function p(){this.mp=[];this.reset(null)}var h=[];k.prototype.toString=function(){return this.name};k.prototype.Cn=function(a,b,c){switch(a[0]){case 0:a=new Tb(this,
b,a);if(a.Nc)for(c.push(a),c=0,b=a.jb.length;c<b;c++)a.jb[c].trigger&&this.Dn(a,c);else a.Mn()?this.Dn(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)}};k.prototype.Da=function(){var a,b;a=0;for(b=this.be.length;a<b;a++)this.be[a].Da(a<b-1&&this.be[a+1].Ci)};k.prototype.mm=function(){this.pk.length=0;this.Zj.length=0;this.Mm(this);this.Zj.length=0};k.prototype.Mm=function(a){var b,c,d,f,h=a.pk,g=a.Zj,e=this.An.Vc();b=0;for(c=e.length;b<c;++b)d=e[b],
f=d.Cg,!d.Ua||a===f||-1<g.indexOf(f)||(g.push(f),f.Mm(a),h.push(f))};k.prototype.Qa=function(a){this.b.Ev||(this.Tk=!0,a||(this.b.cl=!0));var b,c;b=0;for(c=this.be.length;b<c;b++){var d=this.be[b];d.Qa();this.b.ik(d.la);this.b.ee&&this.b.hb()}a||(this.b.cl=!1)};k.prototype.Dn=function(a,b){a.Nc||this.b.Ij.push(a);var c,d,f=a.jb[b],h;h=f.type?f.type.name:"system";var g=(c=f.jn)?this.kn:this.sp;g[h]||(g[h]=[]);h=g[h];g=f.cb;if(c){if(f.I.length&&(f=f.I[0],1===f.type&&2===f.ad.type)){f=f.ad.value.toLowerCase();
c=0;for(d=h.length;c<d;c++)if(h[c].method==g){c=h[c].tg;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];h.push({method:g,tg:c})}}else{c=0;for(d=h.length;c<d;c++)if(h[c].method==g){h[c].tg.push([a,b]);return}gc&&g===gc.prototype.j.ef?h.unshift({method:g,tg:[[a,b]]}):h.push({method:g,tg:[[a,b]]})}};Bb=k;m.prototype.Sk=function(){return this.ha?this.type.c.length:this.c.length};m.prototype.Jc=function(){return this.ha?this.type.c:this.c};m.prototype.oh=function(a){a&&(a.b.ob().Rb.Nc?(this.ha&&
(this.c.length=0,ya(this.V,a.type.c),this.ha=!1),a=this.V.indexOf(a),-1!==a&&(this.c.push(this.V[a]),this.V.splice(a,1))):(this.ha=!1,this.c.length=1,this.c[0]=a))};jb=m;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";d.prototype.Da=function(a){var d,c=this.parent;if(this.group)for(this.Fj=!0;c;){if(!c.group){this.Fj=!1;break}c=c.parent}this.im=!this.Mn()&&(!this.parent||this.parent.group&&this.parent.Fj);this.yn=!!a;this.ne=this.la.slice(0);for(c=this.parent;c;){a=0;for(d=c.la.length;a<
d;a++)this.Iq(c.la[a]);c=c.parent}this.la=b(this.la);this.ne=b(this.ne);a=0;for(d=this.jb.length;a<d;a++)this.jb[a].Da();a=0;for(d=this.Fc.length;a<d;a++)this.Fc[a].Da();a=0;for(d=this.Dc.length;a<d;a++)this.Dc[a].Da(a<d-1&&this.Dc[a+1].Ci)};d.prototype.Ut=function(a){if(this.pf!==!!a){this.pf=!!a;var b;a=0;for(b=this.Uh.length;a<b;++a)this.Uh[a].yp();0<b&&this.b.Z.Ee&&this.b.Z.Ee.mm()}};d.prototype.Nm=function(b){a(b,this.la)};d.prototype.Iq=function(b){a(b,this.ne)};d.prototype.qj=function(){this.kp=
!0;this.parent&&this.parent.qj()};d.prototype.Mn=function(){return this.jb.length?this.jb[0].trigger:!1};d.prototype.Qa=function(){var a,b=!1,c,d=this.b,f=this.b.ob();f.Rb=this;var h=this.jb;this.Ci||(f.tk=!1);if(this.Nc){0===h.length&&(b=!0);f.Ab=0;for(a=h.length;f.Ab<a;f.Ab++)h[f.Ab].trigger||(c=h[f.Ab].Qa())&&(b=!0);(f.Re=b)&&this.Sl()}else{f.Ab=0;for(a=h.length;f.Ab<a;f.Ab++)if(c=h[f.Ab].Qa(),!c){f.Re=!1;this.im&&d.ee&&d.hb();return}f.Re=!0;this.Sl()}this.ur(f)};d.prototype.ur=function(a){a.Re&&
this.yn&&(a.tk=!0);this.im&&this.b.ee&&this.b.hb()};d.prototype.Nt=function(a){this.b.ob().Rb=this;this.jb[a].Qa()&&(this.Sl(),this.b.ob().Re=!0)};d.prototype.Sl=function(){var a=this.b.ob(),b;a.Nb=0;for(b=this.Fc.length;a.Nb<b;a.Nb++)if(this.Fc[a.Nb].Qa())return;this.Xo()};d.prototype.Lt=function(){var a=this.b.ob(),b;for(b=this.Fc.length;a.Nb<b;a.Nb++)if(this.Fc[a.Nb].Qa())return;this.Xo()};d.prototype.Xo=function(){if(this.Dc.length){var a,b,c,d,f=this.Dc.length-1;this.b.Ml(this);if(this.kp)for(a=
0,b=this.Dc.length;a<b;a++)c=this.Dc[a],(d=!this.Fj||!this.group&&a<f)&&this.b.Ll(c.la),c.Qa(),d?this.b.Qf(c.la):this.b.ik(c.la);else for(a=0,b=this.Dc.length;a<b;a++)this.Dc[a].Qa();this.b.Po()}};d.prototype.Ot=function(){var a=this.b.ob();a.Rb=this;var b=!1,c;a.Ab=0;for(c=this.jb.length;a.Ab<c;a.Ab++)if(this.jb[a.Ab].Qa())b=!0;else if(!this.Nc)return!1;return this.Nc?b:!0};d.prototype.Rs=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.jb[b].type===a.type)return!1;return!0};
Tb=d;f.prototype.Da=function(){var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.Da(),c.Ec&&(this.hg=!0)};f.prototype.Qt=function(){return!0};f.prototype.Ul=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();return Sa(this.cb.apply(this.b.kd,this.ea),this.tf)};f.prototype.Pt=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();a=this.cb.apply(this.xe?this.xe:this.type,this.ea);this.type.qd();return a};f.prototype.Tl=function(){var a,b,c,d,
f,h,g,e,k=this.type,m=k.ca(),p=this.fc.Nc&&!this.trigger;b=0;var q=k.Lc,t=k.B,r=k.yd,u=this.mc,w=-1<u,x=this.hg,G=this.I,E=this.ea,H=this.tf,I=this.cb,C;if(x)for(b=0,f=G.length;b<f;++b)h=G[b],h.Ec||(E[b]=h.get(0));else for(b=0,f=G.length;b<f;++b)E[b]=G[b].get(0);if(m.ha){m.c.length=0;m.V.length=0;C=k.c;a=0;for(d=C.length;a<d;++a){e=C[a];if(x)for(b=0,f=G.length;b<f;++b)h=G[b],h.Ec&&(E[b]=h.get(a));w?(b=0,t&&(b=e.type.mf[r]),b=I.apply(e.G[u+b],E)):b=I.apply(e,E);(g=Sa(b,H))?m.c.push(e):p&&m.V.push(e)}k.finish&&
k.finish(!0);m.ha=!1;k.qd();return m.Sk()}c=0;C=(g=p&&!this.fc.Rs(this))?m.V:m.c;var O=!1;a=0;for(d=C.length;a<d;++a){e=C[a];if(x)for(b=0,f=G.length;b<f;++b)h=G[b],h.Ec&&(E[b]=h.get(a));w?(b=0,t&&(b=e.type.mf[r]),b=I.apply(e.G[u+b],E)):b=I.apply(e,E);if(Sa(b,H))if(O=!0,g){if(m.c.push(e),q)for(b=0,f=e.siblings.length;b<f;b++)h=e.siblings[b],h.type.ca().c.push(h)}else{C[c]=e;if(q)for(b=0,f=e.siblings.length;b<f;b++)h=e.siblings[b],h.type.ca().c[c]=h;c++}else if(g){C[c]=e;if(q)for(b=0,f=e.siblings.length;b<
f;b++)h=e.siblings[b],h.type.ca().V[c]=h;c++}else if(p&&(m.V.push(e),q))for(b=0,f=e.siblings.length;b<f;b++)h=e.siblings[b],h.type.ca().V.push(h)}C.length=c;if(q)for(t=k.Qb,a=0,d=t.length;a<d;a++)e=t[a].ca(),g?e.V.length=c:e.c.length=c;c=O;if(g&&!O)for(a=0,d=m.c.length;a<d;a++){e=m.c[a];if(x)for(b=0,f=G.length;b<f;b++)h=G[b],h.Ec&&(E[b]=h.get(a));b=w?I.apply(e.G[u],E):I.apply(e,E);if(Sa(b,H)){O=!0;break}}k.finish&&k.finish(c||p);return p?O:m.Sk()};Pb=f;w.prototype.Da=function(){var a,b,c;a=0;for(b=
this.I.length;a<b;a++)c=this.I[a],c.Da(),c.Ec&&(this.hg=!0)};w.prototype.Ul=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();return this.cb.apply(this.b.kd,this.ea)};w.prototype.Tl=function(){var a=this.type.ca().Jc(),b=this.type.B,c=this.type.yd,d=this.mc,f=-1<d,h=this.hg,g=this.I,e=this.ea,k=this.cb,m,p,q,t,r,u;if(h)for(p=0,t=g.length;p<t;++p)r=g[p],r.Ec||(e[p]=r.get(0));else for(p=0,t=g.length;p<t;++p)e[p]=g[p].get(0);m=0;for(q=a.length;m<q;++m){u=a[m];if(h)for(p=0,
t=g.length;p<t;++p)r=g[p],r.Ec&&(e[p]=r.get(m));f?(p=0,b&&(p=u.type.mf[c]),k.apply(u.G[d+p],e)):k.apply(u,e)}return!1};Qb=w;var t=[],u=-1;x.prototype.Da=function(){var a,b;if(11===this.type)this.Fe=this.b.rn(this.Hh,this.fc.parent);else if(13===this.type)for(a=0,b=this.$e.length;a<b;a++)this.$e[a].Da();this.ad&&this.ad.Da()};x.prototype.ct=function(a){this.Ec||!a||a.Ca.rj||(this.Ec=!0)};x.prototype.cp=function(){this.Ec=!0};x.prototype.Pa=function(){u++;t.length===u&&t.push(new Vb);return t[u]};x.prototype.Ia=
function(){u--};x.prototype.us=function(a){this.oe=a||0;a=this.Pa();this.ad.get(a);this.Ia();return a.data};x.prototype.vs=function(a){this.oe=a||0;a=this.Pa();this.ad.get(a);this.Ia();return P(a.data)?a.data:""};x.prototype.Bs=function(){return this.object};x.prototype.ss=function(){return this.Zm};x.prototype.zs=function(a){this.oe=a||0;a=this.Pa();this.ad.get(a);this.Ia();return a.Wa()?this.b.Ad(a.data):this.b.wg(a.data)};x.prototype.As=function(){return this.Xa};x.prototype.ys=function(){return this.key};
x.prototype.xs=function(){return this.index};x.prototype.ws=function(a){a=a||0;var b=this.k.type,c=null,c=b.ca(),d=c.Jc();if(d.length)c=d[a%d.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.gi[b.yd]};x.prototype.ts=function(){return this.Fe};x.prototype.rs=function(){return this.ln};x.prototype.Cs=function(){var a,b;a=0;for(b=this.$e.length;a<b;a++)this.Gh[a]=this.$e[a].get();return this.Gh};Rb=x;g.prototype.Da=
function(){this.la=b(this.la)};g.prototype.Ze=function(a){var b=this.b.qn();this.parent&&!this.Kg&&b?(this.Ve>=b.length&&(b.length=this.Ve+1),b[this.Ve]=a):this.data=a};g.prototype.yg=function(){var a=this.b.qn();return!this.parent||this.Kg||!a||this.Bi?this.data:this.Ve>=a.length||"undefined"===typeof a[this.Ve]?this.wi:a[this.Ve]};g.prototype.Qa=function(){!this.parent||this.Kg||this.Bi||this.Ze(this.wi)};Lb=g;r.prototype.toString=function(){return"include:"+this.Cg.toString()};r.prototype.Da=function(){this.Cg=
this.b.vk[this.Js];this.sheet.An.add(this);this.la=b(this.la);for(var a=this.parent;a;)a.group&&a.Uh.push(this),a=a.parent;this.yp()};r.prototype.Qa=function(){this.parent&&this.b.qh(this.b.n);this.Cg.Tk||this.Cg.Qa(!0);this.parent&&this.b.Qf(this.b.n)};r.prototype.yp=function(){for(var a=this.parent;a;){if(a.group&&!a.pf){this.Ua=!1;return}a=a.parent}this.Ua=!0};Ub=r;p.prototype.reset=function(a){this.Rb=a;this.Nb=this.Ab=0;this.mp.length=0;this.tk=this.Re=!1};Kb=p})();
(function(){function e(b,e){this.k=b;this.b=b.b;this.type=e[0];this.get=[this.Kr,this.Gr,this.Sr,this.Vr,this.Ar,this.Tr,this.Or,this.Dr,this.Nr,this.Rr,this.Br,this.Qr,this.Er,this.Pr,this.Lr,this.Mr,this.Hr,this.Ir,this.Cr,this.Ur,this.gn,this.Jr,this.gn,this.Fr][this.type];var m=null;this.Fb=this.I=this.ea=this.cb=this.Cj=this.$a=this.first=this.value=null;this.mc=-1;this.Bd=null;this.tm=-1;this.Fe=this.Hh=null;this.th=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Sb(b,e[1]);break;case 18:this.first=new Sb(b,e[1]);this.$a=new Sb(b,e[2]);this.Cj=new Sb(b,e[3]);break;case 19:this.cb=this.b.Sd(e[1]);this.cb!==Y.prototype.Tb.random&&this.cb!==Y.prototype.Tb.Tq||this.k.cp();this.ea=[];this.I=[];3===e.length?(m=e[2],this.ea.length=m.length+1):this.ea.length=1;break;case 20:this.Fb=this.b.n[e[1]];this.mc=-1;this.cb=this.b.Sd(e[2]);this.th=e[3];Xb.Function&&this.cb===Xb.Function.prototype.Tb.su&&this.k.cp();this.Bd=e[4]?new Sb(b,e[4]):null;this.ea=[];this.I=[];
6===e.length?(m=e[5],this.ea.length=m.length+1):this.ea.length=1;break;case 21:this.Fb=this.b.n[e[1]];this.th=e[2];this.Bd=e[3]?new Sb(b,e[3]):null;this.tm=e[4];break;case 22:this.Fb=this.b.n[e[1]];this.Fb.mi(e[2]);this.mc=this.Fb.Gk(e[2]);this.cb=this.b.Sd(e[3]);this.th=e[4];this.Bd=e[5]?new Sb(b,e[5]):null;this.ea=[];this.I=[];7===e.length?(m=e[6],this.ea.length=m.length+1):this.ea.length=1;break;case 23:this.Hh=e[1],this.Fe=null}this.k.ct(this.Fb);4<=this.type&&17>=this.type&&(this.first=new Sb(b,
e[1]),this.$a=new Sb(b,e[2]));if(m){var d,a;d=0;for(a=m.length;d<a;d++)this.I.push(new Sb(b,m[d]))}}function q(b,e){this.type=b||W.df;this.data=e||0;this.Kf=null;this.type==W.df&&(this.data=Math.floor(this.data))}e.prototype.Da=function(){23===this.type&&(this.Fe=this.k.b.rn(this.Hh,this.k.fc.parent));this.first&&this.first.Da();this.$a&&this.$a.Da();this.Cj&&this.Cj.Da();this.Bd&&this.Bd.Da();if(this.I){var b,e;b=0;for(e=this.I.length;b<e;b++)this.I[b].Da()}};e.prototype.Ur=function(b){this.ea[0]=
b;b=this.k.Pa();var e,m;e=0;for(m=this.I.length;e<m;e++)this.I[e].get(b),this.ea[e+1]=b.data;this.k.Ia();this.cb.apply(this.b.kd,this.ea)};e.prototype.gn=function(b){var e=this.Fb.ca(),m=e.Jc();if(!m.length)if(e.V.length)m=e.V;else{this.th?b.kc(""):b.fa(0);return}this.ea[0]=b;b.Kf=this.Fb;b=this.k.Pa();var d,e=0;for(d=this.I.length;e<d;e++)this.I[e].get(b),this.ea[e+1]=b.data;e=this.k.oe;this.Bd&&(this.Bd.get(b),b.Wa()&&(e=b.data,m=this.Fb.c));this.k.Ia();e%=m.length;0>e&&(e+=m.length);m=m[e];-1<
this.mc?(b=0,this.Fb.B&&(b=m.type.mf[this.Fb.yd]),this.cb.apply(m.G[this.mc+b],this.ea)):this.cb.apply(m,this.ea)};e.prototype.Jr=function(b){var e=this.Fb.ca(),m=e.Jc();if(!m.length)if(e.V.length)m=e.V;else{this.th?b.kc(""):b.fa(0);return}e=this.k.oe;if(this.Bd){var d=this.k.Pa();this.Bd.get(d);if(d.Wa()){e=d.data;m=this.Fb.c;e%=m.length;0>e&&(e+=m.length);m=m[e].La[this.tm];P(m)?b.kc(m):b.u(m);this.k.Ia();return}this.k.Ia()}e%=m.length;0>e&&(e+=m.length);m=m[e];e=0;this.Fb.B&&(e=m.type.gi[this.Fb.yd]);
m=m.La[this.tm+e];P(m)?b.kc(m):b.u(m)};e.prototype.Kr=function(b){b.type=W.df;b.data=this.value};e.prototype.Gr=function(b){b.type=W.cf;b.data=this.value};e.prototype.Sr=function(b){b.type=W.String;b.data=this.value};e.prototype.Vr=function(b){this.first.get(b);b.Wa()&&(b.data=-b.data)};e.prototype.Ar=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data+=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Tr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);
b.Wa()&&e.Wa()&&(b.data-=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Or=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data*=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Dr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data/=e.data,b.Hf());this.k.Ia()};e.prototype.Nr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data%=e.data,e.yf()&&b.Hf());this.k.Ia()};e.prototype.Rr=function(b){this.first.get(b);
var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data=Math.pow(b.data,e.data),e.yf()&&b.Hf());this.k.Ia()};e.prototype.Br=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()?e.Di()?b.kc(b.data.toString()+e.data):b.data&&e.data?b.fa(1):b.fa(0):b.Di()&&(b.data=e.Di()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.k.Ia()};e.prototype.Qr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.Wa()&&e.Wa()&&(b.data||e.data?b.fa(1):b.fa(0));this.k.Ia()};
e.prototype.Cr=function(b){this.first.get(b);b.data?this.$a.get(b):this.Cj.get(b)};e.prototype.Er=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.fa(b.data===e.data?1:0);this.k.Ia()};e.prototype.Pr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.fa(b.data!==e.data?1:0);this.k.Ia()};e.prototype.Lr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.fa(b.data<e.data?1:0);this.k.Ia()};e.prototype.Mr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);
b.fa(b.data<=e.data?1:0);this.k.Ia()};e.prototype.Hr=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.fa(b.data>e.data?1:0);this.k.Ia()};e.prototype.Ir=function(b){this.first.get(b);var e=this.k.Pa();this.$a.get(e);b.fa(b.data>=e.data?1:0);this.k.Ia()};e.prototype.Fr=function(b){var e=this.Fe.yg();ia(e)?b.u(e):b.kc(e)};Sb=e;q.prototype.yf=function(){return this.type===W.cf};q.prototype.Wa=function(){return this.type===W.df||this.type===W.cf};q.prototype.Di=function(){return this.type===
W.String};q.prototype.Hf=function(){this.yf()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=W.cf)};q.prototype.fa=function(b){this.type=W.df;this.data=Math.floor(b)};q.prototype.u=function(b){this.type=W.cf;this.data=b};q.prototype.kc=function(b){this.type=W.String;this.data=b};q.prototype.Yt=function(b){ia(b)?(this.type=W.cf,this.data=b):P(b)?(this.type=W.String,this.data=b.toString()):(this.type=W.df,this.data=0)};Vb=q;W={df:0,cf:1,String:2}})();function Y(e){this.b=e;this.Mb=[]}
Y.prototype.Zb=function(){var e={},q,b,k,m,d,a,f,w;e.waits=[];var x=e.waits,g;q=0;for(b=this.Mb.length;q<b;q++){a=this.Mb[q];g={t:a.time,st:a.jp,s:a.Zl,ev:a.lf.P,sm:[],sols:{}};a.lf.Fc[a.Nb]&&(g.act=a.lf.Fc[a.Nb].P);k=0;for(m=a.la.length;k<m;k++)g.sm.push(a.la[k].P);for(d in a.tb)if(a.tb.hasOwnProperty(d)){f=this.b.n[parseInt(d,10)];w={sa:a.tb[d].nj,insts:[]};k=0;for(m=a.tb[d].Cd.length;k<m;k++)w.insts.push(a.tb[d].Cd[k].uid);g.sols[f.P.toString()]=w}x.push(g)}return e};
Y.prototype.zc=function(e){e=e.waits;var q,b,k,m,d,a,f,w,x,g,r;q=this.Mb.length=0;for(b=e.length;q<b;q++)if(a=e[q],w=this.b.Sm[a.ev.toString()]){x=-1;k=0;for(m=w.Fc.length;k<m;k++)if(w.Fc[k].P===a.act){x=k;break}if(-1!==x){f={tb:{},la:[],qk:!1};f.time=a.t;f.jp=a.st||"";f.Zl=!!a.s;f.lf=w;f.Nb=x;k=0;for(m=a.sm.length;k<m;k++)(w=this.b.qi(a.sm[k]))&&f.la.push(w);for(d in a.sols)if(a.sols.hasOwnProperty(d)&&(w=this.b.qi(parseInt(d,10)))){x=a.sols[d];g={nj:x.sa,Cd:[]};k=0;for(m=x.insts.length;k<m;k++)(r=
this.b.pi(x.insts[k]))&&g.Cd.push(r);f.tb[w.index.toString()]=g}this.Mb.push(f)}}};
(function(){function e(){}function q(){}function b(){}var k=Y.prototype;e.prototype.Bm=function(){return!0};e.prototype.mq=function(){return!0};e.prototype.Bq=function(){var a=this.b.ni().wa;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,d=this.b.$f;a.TriggerOnce_lastTick=d;return this.b.kl||b!==d-1};e.prototype.Jp=function(a,b,d){return Wb(a.yg(),b,d)};e.prototype.zm=function(){var a=this.b.ob();return a.tk?!1:!a.Re};e.prototype.Cm=function(){return!0};
e.prototype.Zp=function(){return!0};e.prototype.Tj=function(){return!0};e.prototype.nq=function(){return!0};e.prototype.Rj=function(){return!0};e.prototype.Fp=function(a,b,d){return Ja(U(a),U(d))<=U(b)};e.prototype.Mp=function(a,b){return Pa(U(a),U(b))};e.prototype.Kp=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))};k.j=new e;q.prototype.Tp=function(a){if(!this.b.Bf&&!this.b.ye){var b=this.b.Wb.indexOf(this.b.Z);if(!a||0!==b)if(a||b!==this.b.Wb.length-
1)this.b.ye=this.b.Wb[b+(a?-1:1)]}};q.prototype.zq=function(a,b){0===a.Mj?ia(b)?a.Ze(b):a.Ze(parseFloat(b)):1===a.Mj&&a.Ze(b.toString())};q.prototype.Ep=function(a,b){0===a.Mj?ia(b)?a.Ze(a.yg()+b):a.Ze(a.yg()+parseFloat(b)):1===a.Mj&&a.Ze(a.yg()+b.toString())};var m=[],d=[];q.prototype.Cq=function(a){if(!(0>a)){var b,e,k,g=this.b.ob(),q;q=m.length?m.pop():{tb:{},la:[]};q.qk=!1;q.time=this.b.ic.aa+a;q.jp="";q.Zl=!1;q.lf=g.Rb;q.Nb=g.Nb+1;a=0;for(b=this.b.n.length;a<b;a++)k=this.b.n[a],e=k.ca(),e.ha&&
-1===g.Rb.la.indexOf(k)||(q.la.push(k),k=void 0,k=d.length?d.pop():{Cd:[]},k.nj=!1,k.nj=e.ha,ya(k.Cd,e.c),q.tb[a.toString()]=k);this.Mb.push(q);return!0}};q.prototype.sq=function(){var a,b,d;a=0;for(b=this.b.Wj.length;a<b;a++)d=this.b.Wj[a],d.data=d.wi};q.prototype.tq=function(){if(!this.b.Bf&&!this.b.ye&&this.b.Z){this.b.ye=this.b.Z;var a,b,d;a=0;for(b=this.b.Vd.length;a<b;a++)d=this.b.Vd[a],d.Ut(d.xi)}};q.prototype.uq=function(a){this.b.oj=a};q.prototype.Sp=function(a){this.b.Sg=a};k.na=new q;b.prototype["int"]=
function(a,b){P(b)?(a.fa(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.fa(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.fa(Math.round(b))};b.prototype.floor=function(a,b){a.fa(Math.floor(b))};b.prototype.ceil=function(a,b){a.fa(Math.ceil(b))};
b.prototype.sin=function(a,b){a.u(Math.sin(U(b)))};b.prototype.cos=function(a,b){a.u(Math.cos(U(b)))};b.prototype.tan=function(a,b){a.u(Math.tan(U(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,
e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&b<g&&(b=g);a.u(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&b>g&&(b=g);a.u(b)};b.prototype.De=function(a){a.u(this.b.De)};b.prototype.ag=function(a){a.u(this.b.ag)};b.prototype.time=function(a){a.u(this.b.ic.aa)};b.prototype.$f=function(a){a.fa(this.b.$f)};b.prototype.Ui=function(a){a.fa(this.b.Ui)};b.prototype.Ck=
function(a){a.fa(this.b.Ck)};b.prototype.e=function(a,b,d,e,g){a.u(Ca(Ia(b,d,e,g)))};b.prototype.find=function(a,b,d){P(b)&&P(d)?a.fa(b.search(new RegExp(Za(d),"i"))):a.fa(-1)};b.prototype.left=function(a,b,d){a.kc(P(b)?b.substr(0,d):"")};b.prototype.right=function(a,b,d){a.kc(P(b)?b.substr(b.length-d):"")};b.prototype.replace=function(a,b,d,e){P(b)&&P(d)&&P(e)?a.kc(b.replace(new RegExp(Za(d),"gi"),e)):a.kc(P(b)?b:"")};b.prototype.trim=function(a,b){a.kc(P(b)?b.trim():"")};b.prototype.Tq=function(a){var b=
Q(Math.random()*(arguments.length-1));a.Yt(arguments[b+1])};b.prototype.kk=function(a){a.u(this.b.kk/1E3)};b.prototype.Oi=function(a){a.u(this.b.Oi)};k.Tb=new b;k.Mt=function(){var a,b,e,k,g,q,p=this.b.ob();a=0;for(e=this.Mb.length;a<e;a++){k=this.Mb[a];if(-1===k.time){if(!k.Zl)continue}else if(k.time>this.b.ic.aa)continue;p.Rb=k.lf;p.Nb=k.Nb;p.Ab=0;for(b in k.tb)k.tb.hasOwnProperty(b)&&(g=this.b.n[parseInt(b,10)].ca(),q=k.tb[b],g.ha=q.nj,ya(g.c,q.Cd),g=q,g.Cd.length=0,d.push(g));k.lf.Lt();this.b.ik(k.la);
k.qk=!0}b=a=0;for(e=this.Mb.length;a<e;a++)k=this.Mb[a],this.Mb[b]=k,k.qk?(Ua(k.tb),k.la.length=0,m.push(k)):b++;this.Mb.length=b}})();
(function(){ib=function(e,b){var k=e[1],m=e[3],d=e[4],a=e[5],f=e[6],w=e[7],x=e[8];b.j||(b.j={});b.na||(b.na={});b.Tb||(b.Tb={});var g=b.j,r=b.na,p=b.Tb;m&&(g.xu=function(a,b){return Wb(this.x,a,b)},g.yu=function(a,b){return Wb(this.y,a,b)},g.Fu=function(){var a=this.d;this.ma();var b=this.za;return!(b.right<a.xa||b.bottom<a.ya||b.left>a.Ka||b.top>a.Ja)},g.Gu=function(){this.ma();var a=this.za,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},g.Su=function(a,b,d){var f=this.ca(),
e=f.Jc();if(!e.length)return!1;var c=e[0],g=c,n=Ra(c.x,c.y,b,d),m,k,p;m=1;for(k=e.length;m<k;m++)if(c=e[m],p=Ra(c.x,c.y,b,d),0===a&&p<n||1===a&&p>n)n=p,g=c;f.oh(g);return!0},r.lv=function(a){this.x!==a&&(this.x=a,this.ta())},r.mv=function(a){this.y!==a&&(this.y=a,this.ta())},r.yq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ta()},r.hv=function(a,b){var d=a.ms(this);if(d){var f;d.Kk?(f=d.Kk(b,!0),d=d.Kk(b,!1)):(f=d.x,d=d.y);if(this.x!==f||this.y!==d)this.x=f,this.y=d,this.ta()}},
r.Lu=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.ta())},r.Ku=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.ta())},p.Hm=function(a){a.u(this.x)},p.Im=function(a){a.u(this.y)},p.De=function(a){a.u(this.b.Hk(this))});d&&(g.wu=function(a,b){return Wb(this.width,a,b)},g.tu=function(a,b){return Wb(this.height,a,b)},r.kv=function(a){this.width!==a&&(this.width=a,this.ta())},r.dv=function(a){this.height!==a&&(this.height=a,this.ta())},r.iv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ta()},p.qv=function(a){a.u(this.width)},p.Bu=function(a){a.u(this.height)},p.pu=function(a){this.ma();a.u(this.za.left)},p.ru=function(a){this.ma();a.u(this.za.top)},p.qu=function(a){this.ma();a.u(this.za.right)},p.ou=function(a){this.ma();a.u(this.za.bottom)});a&&(g.Fp=function(a,b){return Ja(this.e,U(b))<=U(a)},g.Mp=function(a){return Pa(this.e,U(a))},g.Kp=function(a,b){var d=Ha(a),f=Ha(b),e=Ea(this.e);return Pa(f,
d)?Pa(e,d)&&!Pa(e,f):!(!Pa(e,d)&&Pa(e,f))},r.$u=function(a){a=U(Da(a));isNaN(a)||this.e===a||(this.e=a,this.ta())},r.Wu=function(a){0===a||isNaN(a)||(this.e+=U(a),this.e=Ea(this.e),this.ta())},r.Xu=function(a){0===a||isNaN(a)||(this.e-=U(a),this.e=Ea(this.e),this.ta())},r.Yu=function(a,b){var d=Ka(this.e,U(b),U(a));isNaN(d)||this.e===d||(this.e=d,this.ta())},r.Zu=function(a,b,d){a=Ka(this.e,Math.atan2(d-this.y,b-this.x),U(a));isNaN(a)||this.e===a||(this.e=a,this.ta())},r.jv=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.e===d||(this.e=d,this.ta())},p.nu=function(a){a.u(Fa(this.e))});k||(g.uu=function(a,b,d){return Wb(this.La[a],b,d)},g.Du=function(a){return this.La[a]},g.Tu=function(a,b){var d=this.ca(),f=d.Jc();if(!f.length)return!1;var e=f[0],c=e,g=e.La[b],n,m,p;n=1;for(m=f.length;n<m;n++)if(e=f[n],p=e.La[b],0===a&&p<g||1===a&&p>g)g=p,c=e;d.oh(c);return!0},g.Ru=function(a){var b,d,f,e,c;if(this.b.ni().tf){c=this.ca();if(c.ha)for(c.ha=!1,c.c.length=0,c.V.length=0,f=this.c,b=0,d=f.length;b<
d;b++)e=f[b],e.uid===a?c.V.push(e):c.c.push(e);else{f=b=0;for(d=c.c.length;b<d;b++)e=c.c[b],c.c[f]=e,e.uid===a?c.V.push(e):f++;c.c.length=f}this.qd();return!!c.c.length}e=this.b.pi(a);if(!e)return!1;c=this.ca();if(!c.ha&&-1===c.c.indexOf(e))return!1;if(this.B)for(a=e.type.qa,b=0,d=a.length;b<d;b++){if(a[b]===this)return c.oh(e),this.qd(),!0}else if(e.type===this)return c.oh(e),this.qd(),!0;return!1},g.$p=function(){return!0},g.aq=function(){return!0},r.gv=function(a,b){var d=this.La;ia(d[a])?d[a]=
ia(b)?b:parseFloat(b):P(d[a])&&(d[a]=P(b)?b:b.toString())},r.mu=function(a,b){var d=this.La;ia(d[a])?d[a]=ia(b)?d[a]+b:d[a]+parseFloat(b):P(d[a])&&(d[a]=P(b)?d[a]+b:d[a]+b.toString())},r.nv=function(a,b){var d=this.La;ia(d[a])&&(d[a]=ia(b)?d[a]-b:d[a]-parseFloat(b))},r.av=function(a,b){this.La[a]=b?1:0},r.ov=function(a){this.La[a]=1-this.La[a]},r.Au=function(){this.b.Rd(this)},r.Rp||(r.Rp=function(a){var b,d;try{b=JSON.parse(a)}catch(f){return}this.b.Li(this,b,!0);this.od&&this.od();if(this.G)for(a=
0,b=this.G.length;a<b;++a)d=this.G[a],d.od&&d.od()}),p.zu=function(a){var b=a.Kf.c.length,d,f,e;d=0;for(f=this.b.Hc.length;d<f;d++)e=this.b.Hc[d],a.Kf.B?0<=e.type.qa.indexOf(a.Kf)&&b++:e.type===a.Kf&&b++;a.fa(b)},p.Vu=function(a){a.fa(a.Kf.ca().Jc().length)},p.pv=function(a){a.fa(this.uid)},p.Cu=function(a){a.fa(this.zg())},p.Gp||(p.Gp=function(a){a.kc(JSON.stringify(this.b.Vl(this,!0)))}));f&&(g.Hu=function(){return this.visible},r.Aq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ga=!0)},
g.vu=function(a,b){return Wb(eb(100*this.opacity),a,b)},r.xq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},p.Opacity=function(a){a.u(eb(100*this.opacity))});w&&(g.Eu=function(a){return a?this.d===a:!1},g.Uu=function(a){var b=this.ca(),d=b.Jc();if(!d.length)return!1;var f=d[0],e=f,c,g;c=1;for(g=d.length;c<g;c++)if(f=d[c],0===a){if(f.d.index>e.d.index||f.d.index===e.d.index&&f.vc()>e.vc())e=f}else if(f.d.index<e.d.index||f.d.index===e.d.index&&f.vc()<e.vc())e=
f;b.oh(e);return!0},r.Ou=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Rf(this,!1),a.jg(this,!1),this.b.ga=!0)},r.Mu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Rf(this,!1),a.Dt(this),this.b.ga=!0)},r.Nu=function(a){a&&a!=this.d&&(this.d.Rf(this,!0),this.d=a,a.jg(this,!0),this.b.ga=!0)},r.sv=function(a,b){var d=0===a;if(b){var f=b.gs(this);f&&f.uid!==this.uid&&(this.d.index!==f.d.index&&(this.d.Rf(this,!0),this.d=f.d,f.d.jg(this,!0)),this.d.et(this,f,d),this.b.ga=!0)}},
p.Ju=function(a){a.fa(this.d.xo)},p.Iu=function(a){a.kc(this.d.name)},p.rv=function(a){a.fa(this.vc())});x&&(r.bv=function(a,b){if(this.b.q){var d=this.type.Jk(b);if(!(0>d)){var f=1===a;this.Td[d]!==f&&(this.Td[d]=f,this.Pd(),this.b.ga=!0)}}},r.cv=function(a,b,d){if(this.b.q){var f=this.type.Jk(a);0>f||(a=this.type.H[f],f=this.va[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.q.qs(a.gb,b)&&(d/=100),f[b]!==d&&(f[b]=d,a.Ua&&(this.b.ga=!0))))}})};Cb=function(){this.dk=this.Ph=!0;this.type.Jh=!0;this.b.ga=
!0;var e,b,k=this.bk;e=0;for(b=k.length;e<b;++e)k[e](this);this.d.Uc&&this.ma()};Db=function(e){e&&this.bk.push(e)};Fb=function(){if(this.Ph){var e=this.za,b=this.Pb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Cb*this.width,-this.Db*this.height);this.e?(e.offset(-this.x,-this.y),b.ep(e,this.e),b.offset(this.x,this.y),b.Tm(e)):b.Vf(e);e.normalize();this.Ph=!1;this.iu()}};var e=new T(0,0,0,0);Gb=function(){if(this.d.Uc){var q=this.d.Yb,b=this.za;e.set(q.cc(b.left),q.ec(b.top),
q.cc(b.right),q.ec(b.bottom));this.Ib.di(e)||(this.Ib.right<this.Ib.left?q.update(this,null,e):q.update(this,this.Ib,e),this.Ib.qg(e),this.d.Kd=!0)}};Hb=function(){if(this.dk&&this.Zc){this.ma();var q=this.type.ng,b=this.za;e.set(q.cc(b.left),q.ec(b.top),q.cc(b.right),q.ec(b.bottom));this.nc.di(e)||(this.nc.right<this.nc.left?q.update(this,null,e):q.update(this,this.nc,e),this.nc.qg(e),this.dk=!1)}};Eb=function(e,b){return this.za.bb(e,b)&&this.Pb.bb(e,b)?this.W&&!this.W.xf()?(this.W.hf(this.width,
this.height,this.e),this.W.bb(e-this.x,b-this.y)):!0:!1};yb=function(){this.type.Kj();return this.Ke};Ib=function(){this.d.pm();return this.Wc};Jb=function(){this.U.length=0;var e,b;e=0;for(b=this.Td.length;e<b;e++)this.Td[e]&&this.U.push(this.type.H[e]);this.Cp=!!this.U.length};zb=function(){return"Inst"+this.To};lb=function(e){if(e&&e.Lc&&e.type!=this){var b,k,m;b=0;for(k=e.siblings.length;b<k;b++)if(m=e.siblings[b],m.type==this)return m}e=this.ca().Jc();return e.length?e[0]:null};mb=function(e){var b=
this.ca().Jc();return b.length?b[e.zg()%b.length]:null};kb=function(){if(this.Yf&&!this.B){var e,b;e=0;for(b=this.c.length;e<b;e++)this.c[e].Ke=e;var k=e,m=this.b.Hc;e=0;for(b=m.length;e<b;++e)m[e].type===this&&(m[e].Ke=k++);this.Yf=!1}};wb=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var b=this.b.Hc,k,m;k=0;for(m=b.length;k<m;++k)if(b[k].type===this){if(0===e)return b[k];--e}return null};nb=function(){return this.pe[this.vd]};ob=function(){this.vd++;this.vd===this.pe.length?this.pe.push(new jb(this)):
this.pe[this.vd].ha=!0};qb=function(){this.vd++;this.vd===this.pe.length&&this.pe.push(new jb(this));var e=this.pe[this.vd],b=this.pe[this.vd-1];b.ha?e.ha=!0:(e.ha=!1,ya(e.c,b.c),ya(e.V,b.V))};rb=function(){this.vd--};sb=function(e){var b,k,m,d,a,f=0;if(!this.B)for(b=0,k=this.qa.length;b<k;b++)for(a=this.qa[b],m=0,d=a.Fa.length;m<d;m++){if(e===a.Fa[m].name)return this.wa.lastBehIndex=f,a.Fa[m];f++}b=0;for(k=this.Fa.length;b<k;b++){if(e===this.Fa[b].name)return this.wa.lastBehIndex=f,this.Fa[b];f++}return null};
tb=function(e){return this.mi(e)?this.wa.lastBehIndex:-1};ub=function(e){var b,k;b=0;for(k=this.H.length;b<k;b++)if(this.H[b].name===e)return b;return-1};vb=function(){if(this.Lc&&!this.B){var e,b,k,m,d,a,f;this.Kj();a=this.ca();var w=a.ha,x=(e=this.b.ob())&&e.Rb&&e.Rb.Nc;e=0;for(b=this.Qb.length;e<b;e++)if(d=this.Qb[e],d!==this&&(d.Kj(),f=d.ca(),f.ha=w,!w)){f.c.length=a.c.length;k=0;for(m=a.c.length;k<m;k++)f.c[k]=d.sn(a.c[k].Ke);if(x)for(f.V.length=a.V.length,k=0,m=a.V.length;k<m;k++)f.V[k]=d.sn(a.V[k].Ke)}}};
xb=function(){return"Type"+this.P};Wb=function(e,b,k){if("undefined"===typeof e||"undefined"===typeof k)return!1;switch(b){case 0:return e===k;case 1:return e!==k;case 2:return e<k;case 3:return e<=k;case 4:return e>k;case 5:return e>=k;default:return!1}}})();var ec={};function hc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].gc():y.destination}function b(){return y.createGain?y.createGain():y.createGainNode()}function k(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function m(a){a.start?a.start(0):a.noteOn(0)}function d(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function f(a,
c,d,e,f,h){this.type="filter";this.Oc=[a,c,d,e,f,h];this.R=b();this.F=b();this.F.gain.value=h;this.C=b();this.C.gain.value=1-h;this.Ga=y.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:oc[a];this.Ga.frequency.value=c;this.Ga.detune&&(this.Ga.detune.value=d);this.Ga.Q.value=e;this.Ga.gain.value=f;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F)}function w(a,c,d){this.type="delay";this.Oc=[a,c,d];this.R=b();this.F=b();this.F.gain.value=d;this.C=b();this.C.gain.value=
1-d;this.ah=b();this.rc=k(a);this.rc.delayTime.value=a;this.bi=b();this.bi.gain.value=c;this.R.connect(this.ah);this.R.connect(this.C);this.ah.connect(this.F);this.ah.connect(this.rc);this.rc.connect(this.bi);this.bi.connect(this.ah)}function x(a,c,d,e){this.type="convolve";this.Oc=[c,d,e];this.R=b();this.F=b();this.F.gain.value=d;this.C=b();this.C.gain.value=1-d;this.ze=y.createConvolver();a&&(this.ze.normalize=c,this.ze.buffer=a);this.R.connect(this.ze);this.R.connect(this.C);this.ze.connect(this.F)}
function g(a,c,d,e,f){this.type="flanger";this.Oc=[a,c,d,e,f];this.R=b();this.C=b();this.C.gain.value=1-f/2;this.F=b();this.F.gain.value=f/2;this.hi=b();this.hi.gain.value=e;this.rc=k(a+c);this.rc.delayTime.value=a;this.Za=y.createOscillator();this.Za.frequency.value=d;this.Xb=b();this.Xb.gain.value=c;this.R.connect(this.rc);this.R.connect(this.C);this.rc.connect(this.F);this.rc.connect(this.hi);this.hi.connect(this.rc);this.Za.connect(this.Xb);this.Xb.connect(this.rc.delayTime);m(this.Za)}function r(a,
c,d,e,f,h){this.type="phaser";this.Oc=[a,c,d,e,f,h];this.R=b();this.C=b();this.C.gain.value=1-h/2;this.F=b();this.F.gain.value=h/2;this.Ga=y.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=d;this.Za=y.createOscillator();this.Za.frequency.value=f;this.Xb=b();this.Xb.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F);this.Za.connect(this.Xb);this.Xb.connect(this.Ga.frequency);
m(this.Za)}function p(a){this.type="gain";this.Oc=[a];this.T=b();this.T.gain.value=a}function h(a,c){this.type="tremolo";this.Oc=[a,c];this.T=b();this.T.gain.value=1-c/2;this.Za=y.createOscillator();this.Za.frequency.value=a;this.Xb=b();this.Xb.gain.value=c/2;this.Za.connect(this.Xb);this.Xb.connect(this.T.gain);m(this.Za)}function t(a,c){this.type="ringmod";this.Oc=[a,c];this.R=b();this.F=b();this.F.gain.value=c;this.C=b();this.C.gain.value=1-c;this.uh=b();this.uh.gain.value=0;this.Za=y.createOscillator();
this.Za.frequency.value=a;this.Za.connect(this.uh.gain);m(this.Za);this.R.connect(this.uh);this.R.connect(this.C);this.uh.connect(this.F)}function u(a,c,d,e,f){this.type="distortion";this.Oc=[a,c,d,e,f];this.R=b();this.gj=b();this.fj=b();this.Tt(d,Math.pow(10,e/20));this.F=b();this.F.gain.value=f;this.C=b();this.C.gain.value=1-f;this.Nj=y.createWaveShaper();this.$h=new Float32Array(65536);this.bs(a,c);this.Nj.$h=this.$h;this.R.connect(this.gj);this.R.connect(this.C);this.gj.connect(this.Nj);this.Nj.connect(this.fj);
this.fj.connect(this.F)}function l(a,b,c,d,e){this.type="compressor";this.Oc=[a,b,c,d,e];this.T=y.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=d,this.T.release.value=e}catch(f){}}function B(a,b){this.type="analyser";this.Oc=[a,b];this.T=y.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.$r=new Float32Array(this.T.frequencyBinCount);this.hp=new Uint8Array(a);this.nh=0}function c(){this.D=null;this.Ni=0;this.qe=
[];this.wl=this.Gi=this.Fi=0}function s(a,c){this.src=a;this.N=F;this.Mc=c;this.Om=!1;var d=this;this.tl=this.Gl=null;this.Of=[];this.pj=0;this.xm=this.yk=this.lp=this.cj=!1;1===F&&c&&(this.N=0,this.Gl=b());this.we=this.X=null;var e;switch(this.N){case 0:this.X=new Audio;this.X.addEventListener("canplaythrough",function(){d.xm=!0});1===F&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.lp=!0,this.X.addEventListener("canplay",function(){d.tl||(d.tl=y.createMediaElementSource(d.X),
d.tl.connect(d.Gl))}));this.X.autoplay=!1;this.X.Bv="auto";this.X.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.we=e.response;d.Yq()};e.onerror=function(){d.yk=!0};e.send();break;case 2:this.X=!0;break;case 3:this.X=!0}}function n(a,c){var d=this;this.tag=c;this.ac=this.bd=!0;this.src=a.src;this.buffer=a;this.N=F;this.Mc=a.Mc;this.playbackRate=1;this.jk=!0;this.yc=this.Ld=!1;this.Jb=0;this.Jg=this.zf=this.dd=!1;this.volume=1;this.Oe=
1===H&&!this.Mc||2===H;this.If=1;this.startTime=this.Oe?z.ic.aa:z.nd.aa;this.Ba=this.Ha=null;this.ed=!1;this.Aa=null;this.Go=this.Fo=this.Eo=this.Do=this.Io=this.Ho=0;this.i=null;var e=!1;1!==this.N||0!==this.buffer.N||this.buffer.lp||(this.N=0);switch(this.N){case 0:this.Mc?(this.i=a.X,e=!a.Om,a.Om=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.X.src,e=!0);e&&this.i.addEventListener("ended",function(){D=d.tag;d.ac=!0;z.trigger(hc.prototype.j.Qj,L)});break;case 1:this.Ha=b();this.Ha.connect(q(c));
1===this.buffer.N?a.X&&(this.i=y.createBufferSource(),this.i.buffer=a.X,this.i.connect(this.Ha)):(this.i=this.buffer.X,this.buffer.Gl.connect(this.Ha));break;case 2:this.i=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.jk=!0,d.ac=!0,D=d.tag,z.trigger(hc.prototype.j.Qj,L))});break;case 3:this.i=!0}}function A(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,d,e,f,h=y.destination;if(S.hasOwnProperty(a)&&(e=S[a],e.length))for(h=e[0].gc(),c=0,d=e.length;c<d;c++)f=
e[c],c+1===d?f.oc(y.destination):f.oc(e[c+1].gc());Ga.length=0;if(a.length)for(c=0,d=N.length;c<d;c++)e=N[c],fb(a,e.tag)&&Ga.push(e);else G&&!G.Je()&&(Ga.length=1,Ga[0]=G);c=0;for(d=Ga.length;c<d;c++)Ga[c].Ht(h);ba&&pb===a&&(ba.disconnect(),ba.connect(h))}function R(){}function oa(){}var v=hc.prototype;v.ib=function(a){this.Ca=a;this.b=a.b};v.ib.prototype.ka=function(){};var z=null,L=null,D="",X="",F=0,y=null,ua=[],N=[],G=null,E=!1,H=0,I=!1,C=1,O=0,K=0,ha=1,M=1,pa=10,da=1E4,sa=1,ba=null,pb="",La=
!1,Ma=[],S={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};f.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.F.disconnect();this.C.disconnect()};f.prototype.gc=function(){return this.R};w.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};w.prototype.remove=function(){this.R.disconnect();
this.ah.disconnect();this.rc.disconnect();this.bi.disconnect();this.F.disconnect();this.C.disconnect()};w.prototype.gc=function(){return this.R};x.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};x.prototype.remove=function(){this.R.disconnect();this.ze.disconnect();this.F.disconnect();this.C.disconnect()};x.prototype.gc=function(){return this.R};g.prototype.oc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
g.prototype.remove=function(){this.R.disconnect();this.rc.disconnect();this.Za.disconnect();this.Xb.disconnect();this.C.disconnect();this.F.disconnect();this.hi.disconnect()};g.prototype.gc=function(){return this.R};r.prototype.oc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};r.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Za.disconnect();this.Xb.disconnect();this.C.disconnect();this.F.disconnect()};r.prototype.gc=function(){return this.R};
p.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};p.prototype.remove=function(){this.T.disconnect()};p.prototype.gc=function(){return this.T};h.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};h.prototype.remove=function(){this.Za.disconnect();this.Xb.disconnect();this.T.disconnect()};h.prototype.gc=function(){return this.T};t.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};t.prototype.remove=function(){this.Za.disconnect();
this.uh.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};t.prototype.gc=function(){return this.R};u.prototype.Tt=function(a,b){.01>a&&(a=.01);this.gj.gain.value=a;this.fj.gain.value=Math.pow(1/a,.6)*b};u.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};u.prototype.bs=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.$h[32768+f]=e,this.$h[32768-
f-1]=-e};u.prototype.oc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};u.prototype.remove=function(){this.R.disconnect();this.gj.disconnect();this.Nj.disconnect();this.fj.disconnect();this.F.disconnect();this.C.disconnect()};u.prototype.gc=function(){return this.R};l.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};l.prototype.remove=function(){this.T.disconnect()};l.prototype.gc=function(){return this.T};B.prototype.ab=function(){this.T.getFloatFrequencyData(this.$r);
this.T.getByteTimeDomainData(this.hp);for(var a=this.T.fftSize,b=0,c=this.nh=0,d=0;b<a;b++)d=(this.hp[b]-128)/128,0>d&&(d=-d),this.nh<d&&(this.nh=d),c+=d*d;this.nh=e(this.nh);e(Math.sqrt(c/a))};B.prototype.oc=function(a){this.T.disconnect();this.T.connect(a)};B.prototype.remove=function(){this.T.disconnect()};B.prototype.gc=function(){return this.T};c.prototype.vh=function(a){if(this.D=a)this.Fi=this.D.x,this.Gi=this.D.y;this.qe.length=0};c.prototype.vi=function(){return!!this.D};c.prototype.ab=function(a){this.D&&
0!==a&&(this.wl=Ia(this.Fi,this.Gi,this.D.x,this.D.y),a=Ra(this.Fi,this.Gi,this.D.x,this.D.y)/a,4>this.qe.length||this.qe.shift(),this.qe.push(a),this.Fi=this.D.x,this.Gi=this.D.y)};c.prototype.wn=function(){if(!this.qe.length)return 0;var a,b,c=0;a=0;for(b=this.qe.length;a<b;a++)c+=this.qe[a];return c/this.qe.length};c.prototype.Nk=function(){return Math.cos(this.wl)*this.wn()};c.prototype.Ok=function(){return Math.sin(this.wl)*this.wn()};var lc=!1;s.prototype.Yq=function(){if(!this.X&&this.we){var a=
this;if(y.decodeAudioData)y.decodeAudioData(this.we,function(b){a.X=b;a.we=null;var c,d,e;if(ga(a.dj)||I)ga(a.Vh)||(c=a.Vh.ze,c.normalize=a.wo,c.buffer=b);else if(a.Of.length){c=0;for(d=a.Of.length;c<d;c++){b=a.Of[c];e=new n(a,b.op);e.Xl(!0);if("undefined"!==typeof b.yo&&(b.D=z.pi(b.yo),!b.D))continue;if(b.D){var f=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,K,!0),h=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,K,!1);e.Wl(f,h,Ca(b.D.e-b.D.d.Va()),b.Uk,b.xl,b.Al);e.vh(b.D)}else e.Wl(b.x,b.y,b.Dq,b.Uk,b.xl,b.Al);e.play(a.ql,a.vm,
a.pj);a.cj&&e.pause();N.push(e)}a.Of.length=0}else e=new n(a,a.dj),e.play(a.ql,a.vm,a.pj),a.cj&&e.pause(),N.push(e)},function(){a.yk=!0});else if(this.X=y.createBuffer(this.we,!1),this.we=null,ga(this.dj)||I)ga(this.Vh)||(b=this.Vh.ze,b.normalize=this.wo,b.buffer=this.X);else{var b=new n(this,this.dj);b.play(this.ql,this.vm,this.pj);this.cj&&b.pause();N.push(b)}}};s.prototype.Hn=function(){switch(this.N){case 0:var a=4<=this.X.readyState;a&&(this.xm=!0);return a||this.xm;case 1:return!!this.we||!!this.X;
case 2:return!0;case 3:return!0}return!1};s.prototype.Ss=function(){switch(this.N){case 0:return this.Hn();case 1:return!!this.X;case 2:return!0;case 3:return!0}return!1};s.prototype.Is=function(){switch(this.N){case 0:return!!this.X.error;case 1:return this.yk}return!1};n.prototype.Je=function(){var a;switch(this.N){case 0:return this.i.ended;case 1:if(1===this.buffer.N){if(!this.bd&&!this.ac&&this.i.loop||this.yc)return!1;a=this.Oe?z.ic.aa:z.nd.aa;return a-this.startTime>this.buffer.X.duration}return this.i.ended;
case 2:return this.jk;case 3:!0}return!0};n.prototype.Rq=function(){return this.bd||this.ac?!0:this.Je()};n.prototype.Xl=function(a){1===F&&(!this.ed&&a?this.Ha&&(this.Ba||(this.Ba=y.createPanner(),this.Ba.panningModel="number"===typeof this.Ba.panningModel?ha:["equalpower","HRTF","soundfield"][ha],this.Ba.distanceModel="number"===typeof this.Ba.distanceModel?M:["linear","inverse","exponential"][M],this.Ba.refDistance=pa,this.Ba.maxDistance=da,this.Ba.rolloffFactor=sa),this.Ha.disconnect(),this.Ha.connect(this.Ba),
this.Ba.connect(q(this.tag)),this.ed=!0):this.ed&&!a&&this.Ha&&(this.Ba.disconnect(),this.Ha.disconnect(),this.Ha.connect(q(this.tag)),this.ed=!1))};n.prototype.Wl=function(a,b,c,d,e,f){this.ed&&1===F&&(this.Ba.setPosition(a,b,0),this.Ba.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.Ba.coneInnerAngle=d,this.Ba.coneOuterAngle=e,this.Ba.coneOuterGain=f,this.Ho=a,this.Io=b,this.Do=c,this.Eo=d,this.Fo=e,this.Go=f)};n.prototype.vh=function(a){this.ed&&1===F&&(this.Aa||(this.Aa=new c),this.Aa.vh(a))};
n.prototype.ab=function(a){if(this.ed&&1===F&&this.Aa&&this.Aa.vi()&&this.vf()){this.Aa.ab(a);a=this.Aa.D;var b=Qa(a.x,a.y,-a.d.Va(),O,K,!0),c=Qa(a.x,a.y,-a.d.Va(),O,K,!1);this.Ba.setPosition(b,c,0);b=0;"undefined"!==typeof this.Aa.D.e&&(b=a.e-a.d.Va(),this.Ba.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.Aa.Nk(),this.Aa.Ok(),-a.d.Va(),0,0,!0);c=Qa(this.Aa.Nk(),this.Aa.Ok(),-a.d.Va(),0,0,!1);this.Ba.setVelocity(b,c,0)}};n.prototype.play=function(a,b,c){var e=this.i;this.dd=a;this.volume=b;
c=c||0;switch(this.N){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*C&&(e.volume=b*C);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(f){}if(this.Mc&&La&&!z.ja)Ma.push(this);else try{this.i.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.If=1;if(1===this.buffer.N)this.bd||(this.i=y.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Ha)),
this.i.loop=a,this.Ha.gain.value=b*C,0===c?m(this.i):d(this.i,c,this.He());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);this.Ha.gain.value=b*C;if(e.currentTime!==c)try{e.currentTime=c}catch(g){}this.Mc&&La&&!z.ja?Ma.push(this):e.play()}break;case 2:(!this.bd&&this.ac||0!==c)&&e.seekTo(c);e.play();this.jk=!1;break;case 3:z.eb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Oe?z.ic.aa:z.nd.aa)-c;this.yc=this.ac=
this.bd=!1};n.prototype.stop=function(){switch(this.N){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.N?a(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:z.eb&&AppMobi.context.stopSound(this.src)}this.ac=!0;this.yc=!1};n.prototype.pause=function(){if(!(this.bd||this.ac||this.Je()||this.yc)){switch(this.N){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.N?(this.Jb=this.Lk(),this.dd&&(this.Jb%=this.He()),a(this.i)):this.i.paused||this.i.pause();
break;case 2:this.i.pause();break;case 3:z.eb&&AppMobi.context.stopSound(this.src)}this.yc=!0}};n.prototype.Kt=function(){if(!(this.bd||this.ac||this.Je())&&this.yc){switch(this.N){case 0:this.i.play();break;case 1:1===this.buffer.N?(this.i=y.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Ha),this.i.loop=this.dd,this.Ha.gain.value=C*this.volume*this.If,this.startTime=(this.Oe?z.ic.aa:z.nd.aa)-this.Jb,d(this.i,this.Jb,this.He())):this.i.play();break;case 2:this.i.play();break;
case 3:z.eb&&AppMobi.context.resumeSound(this.src)}this.yc=!1}};n.prototype.seek=function(a){if(!(this.bd||this.ac||this.Je()))switch(this.N){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.N)this.yc?this.Jb=a:(this.pause(),this.Jb=a,this.Kt());else try{this.i.currentTime=a}catch(c){}break;case 3:z.eb&&AppMobi.context.seekSound(this.src,a)}};n.prototype.Ht=function(a){1===this.N&&(this.ed?(this.Ba.disconnect(),this.Ba.connect(a)):(this.Ha.disconnect(),this.Ha.connect(a)))};
n.prototype.He=function(){switch(this.N){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.X.duration;case 2:return this.i.getDuration();case 3:if(z.eb)return AppMobi.context.getDurationSound(this.src)}return 0};n.prototype.Lk=function(){var a=this.He(),b=0;switch(this.N){case 0:"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 1:if(1===this.buffer.N){if(this.yc)return this.Jb;b=(this.Oe?z.ic.aa:z.nd.aa)-this.startTime}else"undefined"!==
typeof this.i.currentTime&&(b=this.i.currentTime);break;case 3:z.eb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.dd&&b>a&&(b=a);return b};n.prototype.vf=function(){return!this.yc&&!this.bd&&!this.ac&&!this.Je()};n.prototype.gu=function(){var a=this.volume*C;switch(this.N){case 0:this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:this.Ha.gain.value=a*this.If}};n.prototype.ci=function(a){switch(this.N){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:this.If=a?0:
1,this.Ha.gain.value=C*this.volume*this.If}};n.prototype.Vt=function(){this.zf=!0;this.ci(this.zf||this.Jg)};n.prototype.bp=function(a){this.Jg=!!a;this.ci(this.zf||this.Jg)};n.prototype.Bp=function(){var a=this.playbackRate;this.Oe&&(a*=z.ag);switch(this.N){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.N?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};n.prototype.Xt=function(b){switch(this.N){case 0:b?
this.vf()?(this.i.pause(),this.Ld=!0):this.Ld=!1:this.Ld&&this.i.play();break;case 1:b?this.vf()?(1===this.buffer.N?(this.Jb=this.Lk(),this.dd&&(this.Jb%=this.He()),a(this.i)):this.i.pause(),this.Ld=!0):this.Ld=!1:this.Ld&&(1===this.buffer.N?(this.i=y.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Ha),this.i.loop=this.dd,this.Ha.gain.value=C*this.volume*this.If,this.startTime=(this.Oe?z.ic.aa:z.nd.aa)-this.Jb,d(this.i,this.Jb,this.He())):this.i.play());break;case 2:b?this.vf()?
(this.i.pause(),this.Ld=!0):this.Ld=!1:this.Ld&&this.i.play()}};v.Ea=function(a){this.type=a;z=this.b=a.b;L=this;this.qb=null;this.Rg=-600;!(this.b.Ei||this.b.yi&&(this.b.Fg||this.b.Ai))||this.b.Gg||this.b.da||(La=!0);y=null;"undefined"!==typeof AudioContext?(F=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(F=1,y=new webkitAudioContext);(this.b.Ei&&1===F||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),
b.buffer=a,b.connect(y.destination),m(b),lc=!0);if(La){if(!I)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.ac||c.yc||c.i.play();Ma.length=0}},!0);1!==F&&(this.b.xc&&"undefined"!==typeof window.Media?F=2:this.b.uf&&(F=3));2===F&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),X=X.replace("file://",""));if(this.b.In&&this.b.Ts&&"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.Rd(this);
else{if(this.b.eb)E=this.b.yi;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.hm(this)}};var ja=v.Ea.prototype;ja.ka=function(){this.b.gf=this;H=this.ra[0];this.Md=this.ra[1];this.xt=0!==this.ra[2];ha=this.ra[3];M=this.ra[4];this.Rg=-this.ra[5];pa=this.ra[6];da=this.ra[7];sa=this.ra[8];this.qb=new c;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===F&&(y.listener.speedOfSound=this.ra[9],y.listener.dopplerFactor=this.ra[10],y.listener.setPosition(a/
2,b/2,this.Rg),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();pb=b.toLowerCase();ba=y.createMediaStreamSource(a);ba.connect(q(pb))});this.b.Jq(function(a){L.qt(a)});var d=this;this.b.Hq(function(a){d.lt(a)})};ja.lt=function(a){var b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.Aa&&d.Aa.D===a&&(d.Aa.D=null,d.ed&&d.vf()&&d.dd&&d.stop());this.qb.D===a&&(this.qb.D=null)};ja.Zb=function(){var a={silent:I,masterVolume:C,listenerZ:this.Rg,listenerUid:this.qb.vi()?
this.qb.D.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,h,g;c=0;for(d=N.length;c<d;c++)e=N[c],!e.vf()||3===this.Md||e.Mc&&1===this.Md||!e.Mc&&2===this.Md||(f=e.Lk(),e.dd&&(f%=e.He()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Mc,playbackTime:f,volume:e.volume,looping:e.dd,muted:e.zf,playbackRate:e.playbackRate,paused:e.yc,resume_position:e.Jb},e.ed&&(f.pan={},g=f.pan,e.Aa&&e.Aa.vi()?g.objUid=e.Aa.D.uid:(g.x=e.Ho,g.y=e.Io,g.a=e.Do),g.ia=e.Eo,g.oa=e.Fo,g.og=e.Go),b.push(f));b=a.effects;for(h in S)if(S.hasOwnProperty(h)){e=
[];c=0;for(d=S[h].length;c<d;c++)e.push({type:S[h][c].type,params:S[h][c].Oc});b[h]=e}return a};var Na=[];ja.zc=function(a){var b=a.silent;C=a.masterVolume;this.Rg=a.listenerZ;this.qb.vh(null);var d=a.listenerUid;-1!==d&&(this.qb.Ni=d,Na.push(this.qb));var d=a.playing,e,n,m,k,q,s,R,z,D,v,y;if(3!==this.Md)for(e=0,n=N.length;e<n;e++)D=N[e],D.Mc&&1===this.Md||(D.Mc||2!==this.Md)&&D.stop();for(q in S)if(S.hasOwnProperty(q))for(e=0,n=S[q].length;e<n;e++)S[q][e].remove();Ua(S);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(s=
a.effects[q],e=0,n=s.length;e<n;e++)switch(m=s[e].type,v=s[e].params,m){case "filter":A(q,new f(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":A(q,new w(v[0],v[1],v[2]));break;case "convolve":m=v[2];D=this.li(m,!1);D.X?m=new x(D.X,v[0],v[1],m):(m=new x(null,v[0],v[1],m),D.wo=v[0],D.Vh=m);A(q,m);break;case "flanger":A(q,new g(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":A(q,new r(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":A(q,new p(v[0]));break;case "tremolo":A(q,new h(v[0],v[1]));break;
case "ringmod":A(q,new t(v[0],v[1]));break;case "distortion":A(q,new u(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":A(q,new l(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":A(q,new B(v[0],v[1]))}e=0;for(n=d.length;e<n;e++)3===this.Md||(a=d[e],m=a.buffersrc,k=a.is_music,q=a.tag,s=a.playbackTime,R=a.looping,z=a.volume,y=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,k&&1===this.Md)||!k&&2===this.Md||((D=this.pn(m,q,k,R,z))?(D.Jb=a.resume_position,D.Xl(!!v),D.play(R,z,s),D.Bp(),D.gu(),D.ci(D.zf||
D.Jg),a.paused&&D.pause(),a.muted&&D.Vt(),D.ci(D.zf||D.Jg),v&&(-1!==y?(D.Aa=D.Aa||new c,D.Aa.Ni=y,Na.push(D.Aa)):D.Wl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(D=this.li(m,k),D.pj=s,D.cj=a.paused,v&&(-1!==y?D.Of.push({yo:y,Uk:v.ia,xl:v.oa,Al:v.og,op:q}):D.Of.push({x:v.x,y:v.y,Dq:v.a,Uk:v.ia,xl:v.oa,Al:v.og,op:q}))));if(b&&!I){e=0;for(n=N.length;e<n;e++)N[e].bp(!0);I=!0}else if(!b&&I){e=0;for(n=N.length;e<n;e++)N[e].bp(!1);I=!1}};ja.od=function(){var a,b,c,d;a=0;for(b=Na.length;a<b;a++)c=Na[a],d=this.b.pi(c.Ni),
c.vh(d),c.Ni=-1,d&&(O=d.x,K=d.y);Na.length=0};ja.qt=function(a){if(!this.xt){!a&&y&&y.resume&&y.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].Xt(a);a&&y&&y.suspend&&y.suspend()}};ja.ab=function(){var a=this.b.De,b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.ab(a),0===d.N||3===d.N||d.bd||d.ac||!d.Je()||(d.ac=!0,D=d.tag,z.trigger(hc.prototype.j.Qj,L)),0!==H&&d.Bp();var e,f;for(e in S)if(S.hasOwnProperty(e))for(d=S[e],b=0,c=d.length;b<c;b++)f=d[b],f.ab&&f.ab();1===F&&this.qb.vi()&&(this.qb.ab(a),O=this.qb.D.x,
K=this.qb.D.y,y.listener.setPosition(this.qb.D.x,this.qb.D.y,this.Rg),y.listener.setVelocity(this.qb.Nk(),this.qb.Ok(),0))};var Oa=[];ja.Wt=function(a){var b,c,d,e,f,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&E||!f&&!E)Oa.push({filename:e,size:d,D:null}),h+=d;return h};ja.$t=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],d=this.b.zk+c.filename,c.D=this.li(d,!1)};ja.ns=function(){var a=0,b,c,d;b=0;for(c=Oa.length;b<c;++b)d=Oa[b],
d.D.Ss()||d.D.Is()||this.b.da||this.b.Ai?a+=d.size:d.D.Hn()&&(a+=Math.floor(d.size/2));return a};ja.li=function(a,b){var c,d,e,f=null;c=0;for(d=ua.length;c<d;c++)if(e=ua[c],e.src===a){f=e;break}f||(f=new s(a,b),ua.push(f));return f};ja.pn=function(a,b,c,d,e){var f,h,g;f=0;for(h=N.length;f<h;f++)if(g=N[f],g.src===a&&(g.Rq()||c))return g.tag=b,g;a=this.li(a,c);if(!a.X)return"<preload>"!==b&&(a.dj=b,a.ql=d,a.vm=e),null;g=new n(a,b);N.push(g);return g};var Ga=[];R.prototype.Qj=function(a){return fb(D,
a)};v.j=new R;oa.prototype.Play=function(a,b,c,d){!I&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),G=this.pn(this.b.zk+a[0]+(E?".ogg":".m4a"),d,a[1],0!==b,c))&&(G.Xl(!1),G.play(0!==b,c))};v.na=new oa;v.Tb=new function(){}})();function ic(e){this.b=e}
(function(){function e(){}var q=ic.prototype;q.ib=function(b){this.Ca=b;this.b=b.b};q.ib.prototype.ka=function(){};q.Ea=function(b){this.type=b;this.b=b.b;this.gl=Array(256);this.Lj=Array(256);this.se=0};var b=q.Ea.prototype;b.ka=function(){var b=this;this.b.da||(jQuery(document).keydown(function(d){b.mt(d)}),jQuery(document).keyup(function(d){b.nt(d)}))};var k=[32,33,34,35,36,37,38,39,40,44];b.mt=function(b){var d=!1;window!=window.top&&-1<k.indexOf(b.which)&&(b.preventDefault(),d=!0,b.stopPropagation());
if(this.gl[b.which])this.Lj[b.which]&&!d&&b.preventDefault();else{this.gl[b.which]=!0;this.se=b.which;this.b.ja=!0;this.b.trigger(ic.prototype.j.Xp,this);var a=this.b.trigger(ic.prototype.j.iq,this),e=this.b.trigger(ic.prototype.j.jq,this);this.b.ja=!1;if(a||e)this.Lj[b.which]=!0,d||b.preventDefault()}};b.nt=function(b){this.gl[b.which]=!1;this.se=b.which;this.b.ja=!0;this.b.trigger(ic.prototype.j.Yp,this);var d=this.b.trigger(ic.prototype.j.lq,this),a=this.b.trigger(ic.prototype.j.kq,this);this.b.ja=
!1;if(d||a||this.Lj[b.which])this.Lj[b.which]=!0,b.preventDefault()};b.Zb=function(){return{triggerKey:this.se}};b.zc=function(b){this.se=b.triggerKey};e.prototype.iq=function(b){return b===this.se};e.prototype.Xp=function(){return!0};e.prototype.Yp=function(){return!0};e.prototype.lq=function(b){return b===this.se};e.prototype.jq=function(b){return b===this.se};e.prototype.kq=function(b){return b===this.se};q.j=new e;q.na=new function(){};q.Tb=new function(){}})();function jc(e){this.b=e}
(function(){function e(){}function q(){}var b=jc.prototype;b.ib=function(b){this.Ca=b;this.b=b.b};b.ib.prototype.ka=function(){};b.Ea=function(b){this.type=b;this.b=b.b;this.Qh=Array(4);this.qp=this.Gj=this.bg=this.Hd=this.Gd=0;this.Rk=!1};var k=b.Ea.prototype;k.ka=function(){var b=this;if(!this.b.da){jQuery(document).mousemove(function(a){b.gh(a)});jQuery(document).mousedown(function(a){b.fh(a)});jQuery(document).mouseup(function(a){b.hh(a)});jQuery(document).dblclick(function(a){b.jt(a)});var a=
function(a){b.ut(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var m={left:0,top:0};k.gh=function(b){var a=this.b.da?m:jQuery(this.b.canvas).offset();this.Gd=b.pageX-a.left;this.Hd=b.pageY-a.top};k.ro=function(){return 0<this.b.nb?!0:0<=this.Gd&&0<=this.Hd&&this.Gd<this.b.width&&this.Hd<this.b.height};k.fh=function(b){this.ro()&&(this.b.rf&&!this.b.cd&&b.preventDefault(),this.Qh[b.which]=!0,this.b.ja=!0,this.b.trigger(jc.prototype.j.Wp,this),this.bg=
b.which-1,this.Gj=0,this.b.trigger(jc.prototype.j.Am,this),this.b.trigger(jc.prototype.j.Sj,this),this.b.ja=!1)};k.hh=function(b){this.Qh[b.which]&&(this.b.rf&&!this.b.cd&&b.preventDefault(),this.b.rf=!0,this.Qh[b.which]=!1,this.b.ja=!0,this.bg=b.which-1,this.b.trigger(jc.prototype.j.oq,this),this.b.ja=!1)};k.jt=function(b){this.ro()&&(b.preventDefault(),this.b.ja=!0,this.bg=b.which-1,this.Gj=1,this.b.trigger(jc.prototype.j.Am,this),this.b.trigger(jc.prototype.j.Sj,this),this.b.ja=!1)};k.ut=function(b){this.qp=
0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:0)?0:1;this.Rk=!1;this.b.ja=!0;this.b.trigger(jc.prototype.j.rq,this);this.b.ja=!1;this.Rk&&gb(b)&&b.preventDefault()};e.prototype.Am=function(b,a){return b===this.bg&&a===this.Gj};e.prototype.Wp=function(){return!0};e.prototype.Lp=function(b){return this.Qh[b+1]};e.prototype.oq=function(b){return b===this.bg};e.prototype.Np=function(b){var a=this.b.ni();return Sa(this.b.Zf(b,this.Gd,this.Hd,a.tf),a.tf)};e.prototype.Sj=function(b,a,e){return b!==this.bg||
a!==this.Gj?!1:this.b.Zf(e,this.Gd,this.Hd,!1)};e.prototype.rq=function(b){this.Rk=!0;return b===this.qp};b.j=new e;b.na=new function(){};q.prototype.Hm=function(b,a){var e,k,m,g,q;ga(a)?(e=this.b.Ad(0),k=e.scale,m=e.mb,g=e.Gb,q=e.e,e.scale=1,e.mb=1,e.Gb=1,e.e=0,b.u(e.pa(this.Gd,this.Hd,!0)),e.scale=k,e.mb=m,e.Gb=g,e.e=q):(e=ia(a)?this.b.Ad(a):this.b.wg(a))?b.u(e.pa(this.Gd,this.Hd,!0)):b.u(0)};q.prototype.Im=function(b,a){var e,k,m,g,q;ga(a)?(e=this.b.Ad(0),k=e.scale,m=e.mb,g=e.Hb,q=e.e,e.scale=
1,e.mb=1,e.Hb=1,e.e=0,b.u(e.pa(this.Gd,this.Hd,!1)),e.scale=k,e.mb=m,e.Hb=g,e.e=q):(e=ia(a)?this.b.Ad(a):this.b.wg(a))?b.u(e.pa(this.Gd,this.Hd,!1)):b.u(0)};b.Tb=new q})();function kc(e){this.b=e}
(function(){function e(b){this.k=b;this.Ua=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Ud=this.qf=this.size=this.si=0}var q=kc.prototype;q.ib=function(b){this.Ca=b;this.b=b.b};var b=q.ib.prototype;b.ka=function(){this.B||(this.J=new Image,this.J.lk=this.Bj,this.O=null,this.b.wm(this.J,this.Aj))};b.Vi=function(){this.B||(this.O=null)};b.Wi=function(){this.B||!this.c.length||this.O||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Dh))};b.Tg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Ef(this.J,
!0,this.b.S,this.Dh))};b.Jj=function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};b.hj=function(b){b.drawImage(this.J,0,0)};e.prototype.init=function(){var b=this.k;this.x=b.x-b.Oj/2+Math.random()*b.Oj;this.y=b.y-b.Pj/2+Math.random()*b.Pj;this.speed=b.Yk-b.uj/2+Math.random()*b.uj;this.e=b.e-b.vj/2+Math.random()*b.vj;this.opacity=b.Wk;this.size=b.Xk-b.sj/2+Math.random()*b.sj;this.si=b.Qk-b.ti/2+Math.random()*b.ti;this.Ud=this.qf=0};e.prototype.ab=function(b){var d=
this.k;this.x+=Math.cos(this.e)*this.speed*b;this.y+=Math.sin(this.e)*this.speed*b;this.y+=this.qf*b;this.speed+=d.Vj*b;this.size+=this.si*b;this.qf+=d.Fk*b;this.Ud+=b;1>this.size?this.Ua=!1:(0!==d.Og&&(this.e+=Math.random()*d.Og*b-d.Og*b/2),0!==d.Qg&&(this.speed+=Math.random()*d.Qg*b-d.Qg*b/2),0!==d.Pg&&(this.opacity+=Math.random()*d.Pg*b-d.Pg*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=d.kf&&this.Ud>=d.timeout&&(this.Ua=!1),2===d.kf&&0>=this.speed&&(this.Ua=!1))};e.prototype.Ic=
function(b){var d=this.k.opacity*this.opacity;if(0!==d){0===this.k.kf&&(d*=1-this.Ud/this.k.timeout);b.globalAlpha=d;var d=this.x-this.size/2,a=this.y-this.size/2;this.k.b.gd&&(d=d+.5|0,a=a+.5|0);b.drawImage(this.k.type.J,d,a,this.size,this.size)}};e.prototype.Sb=function(b){var d=this.k.opacity*this.opacity;0===this.k.kf&&(d*=1-this.Ud/this.k.timeout);var a=this.size,e=a*this.k.Lo,k=this.x-a/2,q=this.y-a/2;this.k.b.gd&&(k=k+.5|0,q=q+.5|0);1>e||0===d||(e<b.dt||e>b.sl?(b.Ye(d),b.rh(k,q,k+a,q,k+a,q+
a,k,q+a)):b.yt(this.x,this.y,e,d))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.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,k=[];b.ka=function(){var b=this.ra;this.lj=b[0];this.vj=U(b[1]);this.Wf=b[2];this.$l=!0;this.Yk=b[3];this.Xk=b[4];this.Wk=b[5]/100;this.Qk=b[6];this.Oj=b[7];this.Pj=b[8];this.uj=b[9];
this.sj=b[10];this.ti=b[11];this.Vj=b[12];this.Fk=b[13];this.Og=b[14];this.Qg=b[15];this.Pg=b[16];this.kf=b[17];this.timeout=b[18];this.We=0;this.Lo=1;this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;this.Kq(function(b){b.za.set(b.$i,b.bj,b.aj,b.Zi);b.Pb.Vf(b.za);b.Ph=!1;b.qm()});this.Qc||(this.sb=[]);this.b.hm(this);this.type.Tg();if(1===this.Wf)for(b=0;b<this.lj;b++)this.Xj().opacity=0;this.ji=!0};b.Zb=function(){var b={r:this.lj,sc:this.vj,st:this.Wf,s:this.$l,isp:this.Yk,isz:this.Xk,
io:this.Wk,gr:this.Qk,xr:this.Oj,yr:this.Pj,spr:this.uj,szr:this.sj,grnd:this.ti,acc:this.Vj,g:this.Fk,lar:this.Og,lsr:this.Qg,lor:this.Pg,dm:this.kf,to:this.timeout,pcc:this.We,ft:this.ji,p:[]},d,a,e,k=b.p;d=0;for(a=this.sb.length;d<a;d++)e=this.sb[d],k.push([e.x,e.y,e.speed,e.e,e.opacity,e.si,e.size,e.qf,e.Ud]);return b};b.zc=function(b){this.lj=b.r;this.vj=b.sc;this.Wf=b.st;this.$l=b.s;this.Yk=b.isp;this.Xk=b.isz;this.Wk=b.io;this.Qk=b.gr;this.Oj=b.xr;this.Pj=b.yr;this.uj=b.spr;this.sj=b.szr;this.ti=
b.grnd;this.Vj=b.acc;this.Fk=b.g;this.Og=b.lar;this.Qg=b.lsr;this.Pg=b.lor;this.kf=b.dm;this.timeout=b.to;this.We=b.pcc;this.ji=b.ft;k.push.apply(k,this.sb);this.sb.length=0;var d,a,e,q=b.p;b=0;for(d=q.length;b<d;b++)a=this.Xj(),e=q[b],a.x=e[0],a.y=e[1],a.speed=e[2],a.e=e[3],a.opacity=e[4],a.si=e[5],a.size=e[6],a.qf=e[7],a.Ud=e[8]};b.eh=function(){k.push.apply(k,this.sb);this.sb.length=0};b.Xj=function(){var b;k.length?(b=k.pop(),b.k=this):b=new e(this);this.sb.push(b);b.Ua=!0;return b};b.ab=function(){var b=
this.b.Hk(this),d,a,e,q;if(0===this.Wf&&this.$l)for(this.We+=b*this.lj,a=Q(this.We),this.We-=a,d=0;d<a;d++)e=this.Xj(),e.init();this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;q=d=0;for(a=this.sb.length;d<a;d++)e=this.sb[d],this.sb[q]=e,this.b.ga=!0,1===this.Wf&&this.ji&&e.init(),e.ab(b),e.Ua?(e.left()<this.$i&&(this.$i=e.left()),e.right()>this.aj&&(this.aj=e.right()),e.top()<this.bj&&(this.bj=e.top()),e.bottom()>this.Zi&&(this.Zi=e.bottom()),q++):k.push(e);this.sb.length=q;this.ta();
this.ji=!1;1===this.Wf&&0===this.sb.length&&this.b.Rd(this)};b.Ic=function(b){var d,a,e,k=this.d;d=0;for(a=this.sb.length;d<a;d++)e=this.sb[d],e.right()>=k.xa&&e.bottom()>=k.ya&&e.left()<=k.Ka&&e.top()<=k.Ja&&e.Ic(b)};b.Sb=function(b){this.Lo=this.d.uc();b.$b(this.type.O);var d,a,e,k=this.d;d=0;for(a=this.sb.length;d<a;d++)e=this.sb[d],e.right()>=k.xa&&e.bottom()>=k.ya&&e.left()<=k.Ka&&e.top()<=k.Ja&&e.Sb(b)};q.j=new function(){};q.na=new function(){};q.Tb=new function(){}})();
function gc(e){this.b=e}
(function(){function e(){if(0===this.ok.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Xf?b.drawImage(this.J,this.Lf,this.Mf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.J,0,0,this.width,this.height);this.ok=a.toDataURL("image/png")}return this.ok}function q(){}function b(){}var k=gc.prototype;k.ib=function(a){this.Ca=a;this.b=a.b};var m=k.ib.prototype;m.ka=function(){if(!this.B){var a,b,d,f,g,k,c,m,n;this.Gc=
[];this.Bg=!1;a=0;for(b=this.Ob.length;a<b;a++){g=this.Ob[a];c={};c.name=g[0];c.speed=g[1];c.loop=g[2];c.Ql=g[3];c.mj=g[4];c.Mo=g[5];c.P=g[6];c.frames=[];d=0;for(f=g[7].length;d<f;d++)k=g[7][d],m={},m.Aj=k[0],m.Bj=k[1],m.Lf=k[2],m.Mf=k[3],m.width=k[4],m.height=k[5],m.duration=k[6],m.Cb=k[7],m.Db=k[8],m.Vk=k[9],m.ej=k[10],m.No=k[11],m.Xf=0!==m.width,m.ok="",m.xv=e,n={left:0,top:0,right:1,bottom:1},m.Yl=n,m.O=null,(n=this.b.Yr(k[0]))?m.J=n:(m.J=new Image,m.J.Vq=k[0],m.J.lk=k[1],m.J.Qq=null,this.b.wm(m.J,
k[0])),c.frames.push(m),this.Gc.push(m);this.Ob[a]=c}}};m.Ap=function(){var a,b,d;a=0;for(b=this.c.length;a<b;a++)d=this.c[a],d.Yh=d.pc.O};m.Vi=function(){if(!this.B){var a,b,d;a=0;for(b=this.Gc.length;a<b;++a)d=this.Gc[a],d.J.Qq=null,d.O=null;this.Bg=!1;this.Ap()}};m.Wi=function(){if(!this.B&&this.c.length){var a,b,d;a=0;for(b=this.Gc.length;a<b;++a)d=this.Gc[a],d.O=this.b.q.Ef(d.J,!1,this.b.S,d.No);this.Ap()}};m.Tg=function(){if(!this.B&&!this.Bg&&this.b.q){var a,b,d;a=0;for(b=this.Gc.length;a<
b;++a)d=this.Gc[a],d.O=this.b.q.Ef(d.J,!1,this.b.S,d.No);this.Bg=!0}};m.Jj=function(){if(!this.B&&!this.c.length&&this.Bg){var a,b,d;a=0;for(b=this.Gc.length;a<b;++a)d=this.Gc[a],this.b.q.deleteTexture(d.O),d.O=null;this.Bg=!1}};var d=[];m.hj=function(a){var b,e,f;b=d.length=0;for(e=this.Gc.length;b<e;++b)f=this.Gc[b].J,-1===d.indexOf(f)&&(a.drawImage(f,0,0),d.push(f))};k.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Ob[0].frames[0].ej;this.Qc?this.W.xh(a):this.W=new $a(a)};var a=k.Ea.prototype;
a.ka=function(){this.visible=0===this.ra[0];this.Zc=0!==this.ra[3];1===this.type.Ob.length&&1===this.type.Ob[0].frames.length||0===this.type.Ob[0].speed||this.b.hm(this);this.ua=this.on(this.ra[1])||this.type.Ob[0];this.A=this.ra[2];0>this.A&&(this.A=0);this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1);var a=this.ua.frames[this.A];this.W.xh(a.ej);this.Cb=a.Cb;this.Db=a.Db;this.rg=this.ua.speed;this.Qc?this.Xc.reset():this.Xc=new Ya;this.zd=this.Xc.aa;this.ve=!0;this.pd=0;this.ue=!0;
this.hk=this.Pm="";this.Sq=0;this.gk=-1;this.type.Tg();var b,d,e,f,g,c,k,a=0;for(b=this.type.Ob.length;a<b;a++)for(f=this.type.Ob[a],d=0,e=f.frames.length;d<e;d++)g=f.frames[d],0===g.width&&(g.width=g.J.width,g.height=g.J.height),g.Xf&&(k=g.J,c=g.Yl,c.left=g.Lf/k.width,c.top=g.Mf/k.height,c.right=(g.Lf+g.width)/k.width,c.bottom=(g.Mf+g.height)/k.height,0===g.Lf&&0===g.Mf&&g.width===k.width&&g.height===k.height&&(g.Xf=!1));this.pc=this.ua.frames[this.A];this.Yh=this.pc.O};a.Zb=function(){var a={a:this.ua.P,
f:this.A,cas:this.rg,fs:this.zd,ar:this.pd,at:this.Xc.aa};this.ve||(a.ap=this.ve);this.ue||(a.af=this.ue);return a};a.zc=function(a){var b=this.cs(a.a);b&&(this.ua=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1);this.rg=a.cas;this.zd=a.fs;this.pd=a.ar;this.Xc.reset();this.Xc.aa=a.at;this.ve=a.hasOwnProperty("ap")?a.ap:!0;this.ue=a.hasOwnProperty("af")?a.af:!0;this.pc=this.ua.frames[this.A];this.Yh=this.pc.O;this.W.xh(this.pc.ej);this.Cb=this.pc.Cb;
this.Db=this.pc.Db};a.$j=function(a){this.A=a?0:this.ua.frames.length-1;this.ve=!1;this.Pm=this.ua.name;this.b.trigger(gc.prototype.j.Vp,this);this.b.trigger(gc.prototype.j.Up,this);this.pd=0};a.zv=function(){return this.Xc.aa};a.ab=function(){this.Xc.add(this.b.Hk(this));this.hk.length&&this.$q();0<=this.gk&&this.br();var a=this.Xc.aa,b=this.ua,d=b.frames[this.A],e=d.duration/this.rg;this.ve&&a>=this.zd+e&&(this.ue?this.A++:this.A--,this.zd+=e,this.A>=b.frames.length&&(b.Mo?(this.ue=!1,this.A=b.frames.length-
2):b.loop?this.A=b.mj:(this.pd++,this.pd>=b.Ql?this.$j(!1):this.A=b.mj)),0>this.A&&(b.Mo?(this.A=1,this.ue=!0,b.loop||(this.pd++,this.pd>=b.Ql&&this.$j(!0))):b.loop?this.A=b.mj:(this.pd++,this.pd>=b.Ql?this.$j(!0):this.A=b.mj)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.zd+b.frames[this.A].duration/this.rg&&(this.zd=a),a=b.frames[this.A],this.ef(d,a),this.b.ga=!0)};a.on=function(a){var b,d,e;b=0;for(d=this.type.Ob.length;b<d;b++)if(e=this.type.Ob[b],fb(e.name,a))return e;
return null};a.cs=function(a){var b,d,e;b=0;for(d=this.type.Ob.length;b<d;b++)if(e=this.type.Ob[b],e.P===a)return e;return null};a.$q=function(){var a=this.ua.frames[this.A],b=this.on(this.hk);this.hk="";!b||fb(b.name,this.ua.name)&&this.ve||(this.ua=b,this.rg=b.speed,0>this.A&&(this.A=0),this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1),1===this.Sq&&(this.A=0),this.ve=!0,this.zd=this.Xc.aa,this.ue=!0,this.ef(a,this.ua.frames[this.A]),this.b.ga=!0)};a.br=function(){var a=this.ua.frames[this.A],
b=this.A;this.A=Q(this.gk);0>this.A&&(this.A=0);this.A>=this.ua.frames.length&&(this.A=this.ua.frames.length-1);b!==this.A&&(this.ef(a,this.ua.frames[this.A]),this.zd=this.Xc.aa,this.b.ga=!0);this.gk=-1};a.ef=function(a,b){var d=a.width,e=a.height,f=b.width,g=b.height;d!=f&&(this.width*=f/d);e!=g&&(this.height*=g/e);this.Cb=b.Cb;this.Db=b.Db;this.W.xh(b.ej);this.ta();this.pc=b;this.Yh=b.O;d=0;for(e=this.G.length;d<e;d++)f=this.G[d],f.pt&&f.pt(a,b);this.b.trigger(gc.prototype.j.ef,this)};a.Ic=function(a){a.globalAlpha=
this.opacity;var b=this.pc,d=b.Xf,e=b.J,f=this.x,g=this.y,c=this.width,k=this.height;if(0===this.e&&0<=c&&0<=k)f-=this.Cb*c,g-=this.Db*k,this.b.gd&&(f=Math.round(f),g=Math.round(g)),d?a.drawImage(e,b.Lf,b.Mf,b.width,b.height,f,g,c,k):a.drawImage(e,f,g,c,k);else{this.b.gd&&(f=Math.round(f),g=Math.round(g));a.save();var n=0<c?1:-1,m=0<k?1:-1;a.translate(f,g);1===n&&1===m||a.scale(n,m);a.rotate(this.e*n*m);f=0-this.Cb*ma(c);g=0-this.Db*ma(k);d?a.drawImage(e,b.Lf,b.Mf,b.width,b.height,f,g,ma(c),ma(k)):
a.drawImage(e,f,g,ma(c),ma(k));a.restore()}};a.Sb=function(a){a.$b(this.Yh);a.Ye(this.opacity);var b=this.pc,d=this.Pb;if(this.b.gd){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Xf?a.Jd(d.Sa+e,d.Ta+f,d.Kb+e,d.Lb+f,d.yb+e,d.zb+f,d.wb+e,d.xb+f,b.Yl):a.rh(d.Sa+e,d.Ta+f,d.Kb+e,d.Lb+f,d.yb+e,d.zb+f,d.wb+e,d.xb+f)}else b.Xf?a.Jd(d.Sa,d.Ta,d.Kb,d.Lb,d.yb,d.zb,d.wb,d.xb,b.Yl):a.rh(d.Sa,d.Ta,d.Kb,d.Lb,d.yb,d.zb,d.wb,d.xb)};a.js=function(a){var b=this.pc,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.pc,e=d.Vk,f;f=P(a)?this.js(a):a-1;f=Q(f);if(0>f||f>=e.length)return b?this.x:this.y;var g=(e[f][1]-d.Cb)*this.width,e=e[f][2],e=(e-d.Db)*this.height,d=Math.cos(this.e);f=Math.sin(this.e);var c=g*d-e*f,e=e*d+g*f,g=c+this.x,e=e+this.y;return b?g:e};var f=null,w=new ca,x=!1,g=[],r=new T(0,0,0,0);m.finish=function(a){if(x){if(a){var b=this.b.ob().Rb.Nc;a=f.ca();var d=w.Vc(),e,g;if(a.ha){a.ha=!1;a.c.length=d.length;e=0;for(g=d.length;e<g;e++)a.c[e]=
d[e];if(b)for(e=a.V.length=0,g=f.c.length;e<g;e++)d=f.c[e],w.contains(d)||a.V.push(d)}else if(b)for(b=a.c.length,a.c.length=b+d.length,e=0,g=d.length;e<g;e++)a.c[b+e]=d[e],Ba(a.V,d[e]);else ya(a.c,d);f.qd()}w.clear();x=!1}};q.prototype.Op=function(a){if(a){var b=!1,d,e,k,m=this.b.ni(),c=m.type,m=m.tf;d=a.ca();e=this.b.ob().Rb.Nc;var q;d.ha?(this.ma(),r.qg(this.za),r.offset(0,0),this.b.es(this.d,a,r,g),q=g):q=e?d.V:d.c;f=a;x=c!==a&&!m;d=0;for(e=q.length;d<e;d++)if(k=q[d],this.b.bu(this,k)){b=!0;if(m)break;
c!==a&&w.add(k)}g.length=0;a=b}else a=!1;return a};q.prototype.Up=function(a){return fb(this.Pm,a)};q.prototype.Vp=function(){return!0};q.prototype.ef=function(){return!0};k.j=new q;b.prototype.vq=function(a){this.Zc!==(0!==a)&&((this.Zc=0!==a)?this.ta():(this.nc.right>=this.nc.left&&this.type.ng.update(this,this.nc,null),this.nc.set(0,0,-1,-1)))};k.na=new b;k.Tb=new function(){}})();function mc(e){this.b=e}
(function(){var e=mc.prototype;e.ib=function(b){this.Ca=b;this.b=b.b};var q=e.ib.prototype;q.ka=function(){this.B||(this.J=new Image,this.J.lk=this.Bj,this.b.wm(this.J,this.Aj),this.O=this.pattern=null)};q.Vi=function(){this.B||(this.O=null)};q.Wi=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Dh));var b,e;b=0;for(e=this.c.length;b<e;b++)this.c[b].O=this.O}};q.Tg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Dh))};q.Jj=
function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};q.hj=function(b){b.drawImage(this.J,0,0)};e.Ea=function(b){this.type=b;this.b=b.b};q=e.Ea.prototype;q.ka=function(){this.visible=0===this.ra[0];this.sh=new T(0,0,0,0);this.zn=!1;this.J=this.type.J;this.b.q?(this.type.Tg(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.ba.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};q.od=function(){this.zn=!1;this.J=this.type.J};q.eh=
function(){this.b.q&&this.zn&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};q.Ic=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var e=this.x,m=this.y;this.b.gd&&(e=Math.round(e),m=Math.round(m));var d=-(this.Cb*this.width),a=-(this.Db*this.height),f=d%this.J.width,q=a%this.J.height;0>f&&(f+=this.J.width);0>q&&(q+=this.J.height);b.translate(e,m);b.rotate(this.e);b.translate(f,q);b.fillRect(d-f,a-q,this.width,this.height);b.restore()};q.Sb=function(b){b.$b(this.O);
b.Ye(this.opacity);var e=this.sh;e.right=this.width/this.J.width;e.bottom=this.height/this.J.height;var m=this.Pb;if(this.b.gd){var d=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;b.Jd(m.Sa+d,m.Ta+a,m.Kb+d,m.Lb+a,m.yb+d,m.zb+a,m.wb+d,m.xb+a,e)}else b.Jd(m.Sa,m.Ta,m.Kb,m.Lb,m.yb,m.zb,m.wb,m.xb,e)};e.j=new function(){};e.na=new function(){};e.Tb=new function(){}})();function Z(e){this.b=e}
(function(){function e(a){x=a.x;g=a.y;r=a.z}function q(a){p=a.x;h=a.y;t=a.z}function b(a,b,c,d){var e;e=u.length?u.pop():new k;e.init(a,b,c,d);return e}function k(){this.zh=this.id=this.y=this.x=this.yj=this.xj=this.jl=this.time=this.cm=0;this.Fh=this.Hj=!1}function m(){}function d(){}var a=Z.prototype;a.ib=function(a){this.Ca=a;this.b=a.b};a.ib.prototype.ka=function(){};a.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.ul=!1};var f=a.Ea.prototype,w={left:0,top:0};f.vg=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 x=0,g=0,r=0,p=0,h=0,t=0,u=[];k.prototype.init=function(a,b,c,d){var e=V();this.cm=this.jl=this.time=e;this.xj=a;this.yj=b;this.x=a;this.y=b;this.id=c;this.zh=d;this.Fh=this.Hj=!1};k.prototype.update=function(a,b,c){this.jl=this.time;this.time=a;this.x=b;this.y=c;!this.Fh&&15<=Ra(this.xj,this.yj,this.x,this.y)&&(this.Fh=!0)};k.prototype.bt=function(a,b){!this.Hj&&500<=V()-this.cm&&!this.Fh&&15>Ra(this.xj,this.yj,
this.x,this.y)&&(this.Hj=!0,a.ld=this.zh,a.cg=this.id,a.of=b,a.b.trigger(Z.prototype.j.gq,a),a.td=this.x,a.ud=this.y,a.b.trigger(Z.prototype.j.hq,a),a.of=0)};var l=-1E3,B=-1E3,c=-1E4;k.prototype.no=function(a,b){if(!this.Hj){var d=V();333>=d-this.cm&&!this.Fh&&15>Ra(this.xj,this.yj,this.x,this.y)&&(a.ld=this.zh,a.cg=this.id,a.of=b,666>=d-c&&25>Ra(l,B,this.x,this.y)?(a.b.trigger(Z.prototype.j.bq,a),a.td=this.x,a.ud=this.y,a.b.trigger(Z.prototype.j.cq,a),B=l=-1E3,c=-1E4):(a.b.trigger(Z.prototype.j.pq,
a),a.td=this.x,a.ud=this.y,a.b.trigger(Z.prototype.j.qq,a),l=this.x,B=this.y,c=d),a.of=0)}};f.ka=function(){this.Us=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.of=this.cg=this.ld=this.ud=this.td=this.Lm=this.Km=this.Jm=this.Gq=this.Fq=this.Eq=this.mh=this.lh=this.kh=0;this.ku=0!==this.ra[0];var a=0<this.b.nb?document:this.b.canvas,b=document;this.b.eb?b=a=window.Canvas:this.b.hc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.jh(a)},
!1),a.addEventListener("pointermove",function(a){c.ih(a)},!1),b.addEventListener("pointerup",function(a){c.Id(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Id(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.jh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.ih(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Id(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Id(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.Yi(a)},
!1),a.addEventListener("touchmove",function(a){c.Xi(a)},!1),b.addEventListener("touchend",function(a){c.Nf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Nf(a,!0)},!1));if(this.Us){var d=function(a){a=a.reading;c.Jm=a.accelerationX;c.Km=a.accelerationY;c.Lm=a.accelerationZ},f=function(a){a=a.reading;c.kh=a.yawDegrees;c.lh=a.pitchDegrees;c.mh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.kh=a.alpha||
0;c.lh=a.beta||0;c.mh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Eq=a.accelerationIncludingGravity.x||0,c.Fq=a.accelerationIncludingGravity.y||0,c.Gq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Jm=a.acceleration.x||0,c.Km=a.acceleration.y||0,c.Lm=a.acceleration.z||0)},!1);this.ku&&!this.b.da&&(jQuery(document).mousemove(function(a){c.gh(a)}),jQuery(document).mousedown(function(a){c.fh(a)}),jQuery(document).mouseup(function(a){c.hh(a)}));
this.b.uf&&!this.b.eb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.xc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(q,null,{frequency:40});this.b.cu(this)};f.ih=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.vg(a.pointerId),c=V();if(0<=b){var d=this.b.da?w:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};f.jh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.da?w:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;V();this.ld=this.touches.length;this.cg=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.ld));this.b.ja=!0;this.b.trigger(Z.prototype.j.Em,this);this.b.trigger(Z.prototype.j.Gm,this);this.td=d;this.ud=c;this.b.trigger(Z.prototype.j.Fm,this);this.b.ja=
!1}};f.Id=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.vg(a.pointerId);this.ld=0<=c?this.touches[c].zh:-1;this.cg=0<=c?this.touches[c].id:-1;this.b.ja=!0;this.b.trigger(Z.prototype.j.Dm,this);this.b.trigger(Z.prototype.j.Uj,this);0<=c&&(b||this.touches[c].no(this,c),100>u.length&&u.push(this.touches[c]),this.touches.splice(c,1));this.b.ja=!1}};f.Xi=function(a){a.preventDefault&&a.preventDefault();var b=V(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.vg(e.identifier),0<=f){var g=this.b.da?w:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};f.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.b.da?w:jQuery(this.b.canvas).offset();V();this.b.ja=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.vg(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;
this.ld=this.touches.length;this.cg=f.identifier;this.touches.push(b(g,h,f.identifier,this.ld));this.b.trigger(Z.prototype.j.Em,this);this.b.trigger(Z.prototype.j.Gm,this);this.td=g;this.ud=h;this.b.trigger(Z.prototype.j.Fm,this)}this.b.ja=!1};f.Nf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ja=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.vg(e.identifier),0<=e&&(this.ld=this.touches[e].zh,this.cg=this.touches[e].id,this.b.trigger(Z.prototype.j.Dm,
this),this.b.trigger(Z.prototype.j.Uj,this),b||this.touches[e].no(this,e),100>u.length&&u.push(this.touches[e]),this.touches.splice(e,1));this.b.ja=!1};f.uv=function(){return this.b.uf&&0===this.kh&&0!==r?90*r:this.b.xc&&0===this.kh&&0!==t?90*t:this.kh};f.vv=function(){return this.b.uf&&0===this.lh&&0!==g?-90*g:this.b.xc&&0===this.lh&&0!==h?90*h:this.lh};f.yv=function(){return this.b.uf&&0===this.mh&&0!==x?90*x:this.b.xc&&0===this.mh&&0!==p?90*p:this.mh};f.fh=function(a){a.preventDefault&&this.b.rf&&
!this.b.cd&&a.preventDefault();this.Yi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ul=!0};f.gh=function(a){this.ul&&this.Xi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};f.hh=function(a){a.preventDefault&&this.b.rf&&!this.b.cd&&a.preventDefault();this.b.rf=!0;this.Nf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ul=!1};f.gm=function(){var a,b,c,d=V();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.jl=d),c.bt(this,
a)};m.prototype.Gm=function(){return!0};m.prototype.Uj=function(){return!0};m.prototype.Fm=function(a){return a?this.b.Zf(a,this.td,this.ud,!1):!1};var s=[];m.prototype.Pp=function(a){if(!a)return!1;var b=a.ca(),c=b.Jc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.ma();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.pa(e.x,e.y,!0),e=l.d.pa(e.x,e.y,!1),l.bb(d,e)){s.push(l);break}}return s.length?(b.ha=!1,ya(b.c,s),a.qd(),s.length=0,!0):!1};m.prototype.Em=function(a){a=Math.floor(a);
return a===this.ld};m.prototype.Dm=function(a){a=Math.floor(a);return a===this.ld};m.prototype.gq=function(){return!0};m.prototype.pq=function(){return!0};m.prototype.bq=function(){return!0};m.prototype.hq=function(a){return a?this.b.Zf(a,this.td,this.ud,!1):!1};m.prototype.qq=function(a){return a?this.b.Zf(a,this.td,this.ud,!1):!1};m.prototype.cq=function(a){return a?this.b.Zf(a,this.td,this.ud,!1):!1};a.j=new m;d.prototype.Hm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.Ad(0),e=d.scale,f=d.mb,g=d.Gb,h=d.e,d.scale=1,d.mb=1,d.Gb=1,d.e=0,a.u(d.pa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.mb=f,d.Gb=g,d.e=h):(d=ia(b)?this.b.Ad(b):this.b.wg(b))?a.u(d.pa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};d.prototype.Im=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ga(b)?(d=this.b.Ad(0),e=d.scale,f=d.mb,g=d.Hb,h=d.e,d.scale=1,d.mb=1,d.Hb=1,d.e=0,a.u(d.pa(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.mb=f,d.Hb=g,d.e=h):(d=ia(b)?this.b.Ad(b):this.b.wg(b))?a.u(d.pa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};a.Tb=new d})();
function nc(e){this.b=e;var q=this;this.b.da||(jQuery(document).mousemove(function(b){q.gh(b)}),jQuery(document).mousedown(function(b){q.fh(b)}),jQuery(document).mouseup(function(b){q.hh(b)}));e=0<this.b.nb?document:this.b.canvas;this.b.eb?e=window.Canvas:this.b.hc&&(e=window);window.navigator.pointerEnabled?(e.addEventListener("pointerdown",function(b){q.jh(b)},!1),e.addEventListener("pointermove",function(b){q.ih(b)},!1),e.addEventListener("pointerup",function(b){q.Id(b)},!1),e.addEventListener("pointercancel",
function(b){q.Id(b)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(b){q.jh(b)},!1),e.addEventListener("MSPointerMove",function(b){q.ih(b)},!1),e.addEventListener("MSPointerUp",function(b){q.Id(b)},!1),e.addEventListener("MSPointerCancel",function(b){q.Id(b)},!1)):(e.addEventListener("touchstart",function(b){q.Yi(b)},!1),e.addEventListener("touchmove",function(b){q.Xi(b)},!1),e.addEventListener("touchend",function(b){q.Nf(b)},!1),e.addEventListener("touchcancel",
function(b){q.Nf(b)},!1))}
(function(){function e(a){var b,d;b=0;for(d=a.G.length;b<d;b++)if(a.G[b]instanceof k.Ea)return a.G[b];return null}function q(){}function b(){}var k=nc.prototype,m={left:0,top:0};k.fh=function(a){1===a.which&&this.Bl("leftmouse",a.pageX,a.pageY)};k.gh=function(a){1===a.which&&this.Cl("leftmouse",a.pageX,a.pageY)};k.hh=function(a){1===a.which&&this.Dl("leftmouse")};k.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,d,e,g;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],
g=e.identifier,this.Bl(g?g.toString():"<none>",e.pageX,e.pageY)};k.Xi=function(a){a.preventDefault&&a.preventDefault();var b,d,e,g;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],g=e.identifier,this.Cl(g?g.toString():"<none>",e.pageX,e.pageY)};k.Nf=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,d,e;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],e=e.identifier,this.Dl(e?e.toString():"<none>")};k.jh=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))};k.ih=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Cl(a.pointerId.toString(),a.pageX,a.pageY))};k.Id=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Dl(a.pointerId.toString()))};k.Bl=function(a,b,d){var k=this.b.da?m:jQuery(this.b.canvas).offset();
b-=k.left;d-=k.top;var g,q,p,h,k=this.Jf.Vc(),t,u,l,B=null;t=0;for(u=k.length;t<u;t++)if(l=k[t],g=e(l),g.enabled&&!g.$d&&(g=l.d.pa(b,d,!0),q=l.d.pa(b,d,!1),l.ma(),l.bb(g,q)))B?l.d.index>B.d.index?(B=l,p=g,h=q):l.d.index===B.d.index&&l.vc()>B.vc()&&(B=l,p=g,h=q):(B=l,p=g,h=q);B&&e(B).kt(a,p,h)};k.Cl=function(a,b,d){var k=this.b.da?m:jQuery(this.b.canvas).offset();b-=k.left;d-=k.top;var g,q=this.Jf.Vc(),p,h,t;p=0;for(h=q.length;p<h;p++)g=q[p],t=e(g),!t.enabled||!t.$d||t.$d&&t.sk!==a||(k=g.d.pa(b,d,
!0),g=g.d.pa(b,d,!1),t.ot(k,g))};k.Dl=function(a){var b=this.Jf.Vc(),d,k,g;d=0;for(k=b.length;d<k;d++)g=b[d],g=e(g),g.$d&&g.sk===a&&g.tt()};k.ib=function(a){this.behavior=a;this.b=a.b};k.ib.prototype.ka=function(){};k.Ea=function(a,b){this.type=a;this.behavior=a.behavior;this.Eb=b;this.b=a.b};var d=k.Ea.prototype;d.ka=function(){this.$d=!1;this.dn=this.cn=0;this.sk="<none>";this.ak=this.ra[0];this.enabled=0!==this.ra[1]};d.Zb=function(){return{enabled:this.enabled}};d.zc=function(a){this.enabled=
a.enabled;this.$d=!1};d.kt=function(a,b,d){this.cn=b-this.Eb.x;this.dn=d-this.Eb.y;this.$d=!0;this.sk=a;this.b.ja=!0;this.b.trigger(nc.prototype.j.dq,this.Eb);this.b.ja=!1};d.ot=function(a,b){var d=a-this.cn,e=b-this.dn;if(0===this.ak){if(this.Eb.x!==d||this.Eb.y!==e)this.Eb.x=d,this.Eb.y=e,this.Eb.ta()}else 1===this.ak?this.Eb.x!==d&&(this.Eb.x=d,this.Eb.ta()):2===this.ak&&this.Eb.y!==e&&(this.Eb.y=e,this.Eb.ta())};d.tt=function(){this.$d=!1;this.b.ja=!0;this.b.trigger(nc.prototype.j.fq,this.Eb);
this.b.ja=!1};d.ab=function(){};q.prototype.dq=function(){return!0};q.prototype.fq=function(){return!0};k.j=new q;b.prototype.wq=function(a){this.enabled=0!==a;this.enabled||(this.$d=!1)};k.na=new b;k.Tb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,mc,Z,nc,jc.prototype.j.Np,gc.prototype.na.xq,jc.prototype.j.Sj,Z.prototype.j.Pp,Y.prototype.na.zq,jc.prototype.j.Lp,Y.prototype.j.Jp,Y.prototype.na.uq,Y.prototype.na.Tp,hc.prototype.na.Play,Z.prototype.j.Uj,Y.prototype.na.Cq,Y.prototype.j.Bm,Y.prototype.j.Bq,gc.prototype.na.Aq,gc.prototype.j.Op,gc.prototype.na.yq,Y.prototype.na.Ep,nc.prototype.na.wq,gc.prototype.na.vq,Y.prototype.j.zm,Y.prototype.na.sq,Y.prototype.na.tq,Y.prototype.na.Sp]};
