﻿// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,ea,ga,ha,ia,ka,ma,na,oa,pa,qa,ra,sa,ta,ua,wa,xa,ya,za,z,Ba,Ea,Fa,Ga,Ha,B,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Ra,Sa,Ta,Va,Wa,Xa,Ya,Za,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,b,f,d){this.set(a,b,f,d)}function e(){this.gc=this.fc=this.ic=this.hc=this.Ac=this.zc=this.$b=this.Zb=0}function c(a,b,f,d){a<b?f<d?(I=a<f?a:f,S=b>d?b:d):(I=a<d?a:d,S=b>f?b:f):f<d?(I=b<f?b:f,S=a>d?a:d):(I=b<d?b:d,S=a>f?a:f)}function l(){this.items=this.Vb=null;this.xh=0;N&&(this.Vb=new Set);this.Ig=[];this.Ae=!0}function q(a){G[C++]=a}function p(){this.O=this.Dg=this.y=this.Gk=0}function m(a){this.wg=[];this.Jn=this.Ln=this.Mn=this.Kn=0;this.ai(a)}function b(a,b){this.Mk=
a;this.Lk=b;this.cells={}}function d(a,b){this.Mk=a;this.Lk=b;this.cells={}}function h(a,b,f){var d;return u.length?(d=u.pop(),d.ql=a,d.x=b,d.y=f,d):new aa(a,b,f)}function a(a,b,f){this.ql=a;this.x=b;this.y=f;this.pb=new ba}function f(a,b,f){var d;return x.length?(d=x.pop(),d.ql=a,d.x=b,d.y=f,d):new da(a,b,f)}function t(a,b,f){this.ql=a;this.x=b;this.y=f;this.pb=[];this.ag=!0;this.Ed=new ba;this.Mg=!1}function k(a,b){return a.md-b.md}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};ha=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};ka=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,b){return a<b?a:b};qa=Math.PI;ra=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var b=a|0;return b===a?b:b+1};ta=function(a,b,f,d,h,r,k,c){var n,
t,m,e;a<f?(t=a,n=f):(t=f,n=a);h<k?(e=h,m=k):(e=k,m=h);if(n<e||t>m)return!1;b<d?(t=b,n=d):(t=d,n=b);r<c?(e=r,m=c):(e=c,m=r);if(n<e||t>m)return!1;n=h-a+k-f;t=r-b+c-d;a=f-a;b=d-b;h=k-h;r=c-r;c=oa(b*h-r*a);return oa(h*t-r*n)>c?!1:oa(a*t-b*n)<=c};g.prototype.set=function(a,b,f,d){this.left=a;this.top=b;this.right=f;this.bottom=d};g.prototype.Sg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};g.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};g.prototype.Oc=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};g.prototype.Wg=function(a){return this.left===a.left&&this.top===a.top&&this.right===
a.right&&this.bottom===a.bottom};ua=g;e.prototype.Zj=function(a){this.Zb=a.left;this.$b=a.top;this.zc=a.right;this.Ac=a.top;this.hc=a.right;this.ic=a.bottom;this.fc=a.left;this.gc=a.bottom};e.prototype.lq=function(a,b){if(0===b)this.Zj(a);else{var f=Math.sin(b),d=Math.cos(b),h=a.left*f,r=a.top*f,k=a.right*f,f=a.bottom*f,c=a.left*d,n=a.top*d,t=a.right*d,d=a.bottom*d;this.Zb=c-r;this.$b=n+h;this.zc=t-r;this.Ac=n+k;this.hc=t-f;this.ic=d+k;this.fc=c-f;this.gc=d+h}};e.prototype.offset=function(a,b){this.Zb+=
a;this.$b+=b;this.zc+=a;this.Ac+=b;this.hc+=a;this.ic+=b;this.fc+=a;this.gc+=b;return this};var I=0,S=0;e.prototype.On=function(a){c(this.Zb,this.zc,this.hc,this.fc);a.left=I;a.right=S;c(this.$b,this.Ac,this.ic,this.gc);a.top=I;a.bottom=S};e.prototype.Oc=function(a,b){var f=this.Zb,d=this.$b,h=this.zc-f,r=this.Ac-d,k=this.hc-f,c=this.ic-d,n=a-f,t=b-d,m=h*h+r*r,e=h*k+r*c,r=h*n+r*t,g=k*k+c*c,v=k*n+c*t,y=1/(m*g-e*e),h=(g*r-e*v)*y,m=(m*v-e*r)*y;if(0<=h&&0<m&&1>h+m)return!0;h=this.fc-f;r=this.gc-d;m=h*
h+r*r;e=h*k+r*c;r=h*n+r*t;y=1/(m*g-e*e);h=(g*r-e*v)*y;m=(m*v-e*r)*y;return 0<=h&&0<m&&1>h+m};wa=e;xa=function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f]);return a};ya=function(a,b){var f,d;b=ra(b);if(!(0>b||b>=a.length)){f=b;for(d=a.length-1;f<d;f++)a[f]=a[f+1];za(a,d)}};za=function(a,b){a.length=b};z=function(a){za(a,0)};Ba=function(a,b){z(a);var f,d;f=0;for(d=b.length;f<d;++f)a[f]=b[f]};Ea=function(a,b){a.push.apply(a,b)};Fa=function(a,b){var f,d;f=0;for(d=a.length;f<d;++f)if(a[f]===b)return f;
return-1};Ga=function(a,b){var f=Fa(a,b);-1!==f&&ya(a,f)};Ha=function(a,b,f){return a<b?b:a>f?f:a};B=function(a){return a/(180/qa)};Ia=function(a){return 180/qa*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};La=function(a){return Ja(Ia(a))};Ma=function(a){return Ka(B(a))};Na=function(a,b,f,d){return Math.atan2(d-b,f-a)};Oa=function(a,b){if(a===b)return 0;var f=Math.sin(a),d=Math.cos(a),h=Math.sin(b),r=Math.cos(b),f=f*h+d*r;return 1<=f?0:-1>=f?qa:Math.acos(f)};
Pa=function(a,b,f){var d=Math.sin(a),h=Math.cos(a),r=Math.sin(b),k=Math.cos(b);return Math.acos(d*r+h*k)>f?0<h*r-d*k?Ka(a+f):Ka(a-f):Ka(b)};Ra=function(a,b){var f=Math.sin(a),d=Math.cos(a),h=Math.sin(b),r=Math.cos(b);return 0>=d*h-f*r};Sa=function(a,b,f,d,h,r){if(0===f)return r?a:b;var k=Math.sin(f);f=Math.cos(f);a-=d;b-=h;var c=a*k;a=a*f-b*k;b=b*f+c;return r?a+d:b+h};Ta=function(a,b,f,d){a=f-a;b=d-b;return Math.sqrt(a*a+b*b)};Va=function(a,b){return!a!==!b};Wa=function(a,b,f){return a+(b-a)*f};Xa=
function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Ya=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var y=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-y};var n=!1,v=n=!1,V=!1;"undefined"!==typeof window&&
(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),V=window.c2ejecta);var N=!n&&!V&&!v&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;l.prototype.contains=function(a){return this.Wd()?!1:N?this.Vb.has(a):this.items&&this.items.hasOwnProperty(a)};l.prototype.add=function(a){if(N)this.Vb.has(a)||(this.Vb.add(a),this.Ae=!1);else{var b=a.toString(),f=this.items;
f?f.hasOwnProperty(b)||(f[b]=a,this.xh++,this.Ae=!1):(this.items={},this.items[b]=a,this.xh=1,this.Ae=!1)}};l.prototype.remove=function(a){if(!this.Wd())if(N)this.Vb.has(a)&&(this.Vb["delete"](a),this.Ae=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.xh--,this.Ae=!1)}};l.prototype.clear=function(){this.Wd()||(N?this.Vb.clear():(this.items=null,this.xh=0),z(this.Ig),this.Ae=!0)};l.prototype.Wd=function(){return 0===this.count()};l.prototype.count=function(){return N?
this.Vb.size:this.xh};var G=null,C=0;l.prototype.Xv=function(){if(!this.Ae){if(N)z(this.Ig),G=this.Ig,C=0,this.Vb.forEach(q),G=null,C=0;else{var a=this.Ig;z(a);var b,f=0,d=this.items;if(d)for(b in d)d.hasOwnProperty(b)&&(a[f++]=d[b])}this.Ae=!0}};l.prototype.Xe=function(){this.Xv();return this.Ig};ba=l;new ba;bb=function(a,b){N?cb(a,b.Vb):db(a,b.Xe())};cb=function(a,b){var f,d,h,r;d=f=0;for(h=a.length;f<h;++f)r=a[f],b.has(r)||(a[d++]=r);za(a,d)};db=function(a,b){var f,d,h,r;d=f=0;for(h=a.length;f<
h;++f)r=a[f],-1===Fa(b,r)&&(a[d++]=r);za(a,d)};p.prototype.add=function(a){this.y=a-this.Gk;this.Dg=this.O+this.y;this.Gk=this.Dg-this.O-this.y;this.O=this.Dg};p.prototype.reset=function(){this.O=this.Dg=this.y=this.Gk=0};eb=p;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};m.prototype.ai=function(a){this.Tp=a;this.Pj=a.length/2;this.wg.length=a.length;this.Hk=this.Ik=-1;this.Rn=0};m.prototype.Fu=function(){return!this.Tp.length};m.prototype.mb=function(){for(var a=this.wg,b=a[0],
f=b,d=a[1],h=d,r,k,c=1,n=this.Pj;c<n;++c)k=2*c,r=a[k],k=a[k+1],r<b&&(b=r),r>f&&(f=r),k<d&&(d=k),k>h&&(h=k);this.Kn=b;this.Ln=f;this.Mn=d;this.Jn=h};m.prototype.Zj=function(a,b,f){this.wg.length=8;this.Pj=4;var d=this.wg;d[0]=a.left-b;d[1]=a.top-f;d[2]=a.right-b;d[3]=a.top-f;d[4]=a.right-b;d[5]=a.bottom-f;d[6]=a.left-b;d[7]=a.bottom-f;this.Ik=a.right-a.left;this.Hk=a.bottom-a.top;this.mb()};m.prototype.ss=function(a,b,f){if(this.Ik!==a||this.Hk!==b||this.Rn!==f){this.Ik=a;this.Hk=b;this.Rn=f;var d,
h,r,k,c,n=0,t=1,m=this.Tp,e=this.wg;0!==f&&(n=Math.sin(f),t=Math.cos(f));f=0;for(r=this.Pj;f<r;f++)d=2*f,h=d+1,k=m[d]*a,c=m[h]*b,e[d]=k*t-c*n,e[h]=c*t+k*n;this.mb()}};m.prototype.Oc=function(a,b){var f=this.wg;if(a===f[0]&&b===f[1])return!0;var d,h,r,k=this.Pj,c=this.Kn-110,n=this.Mn-101,t=this.Ln+131,m=this.Jn+120,e,g,v=0,y=0;for(d=0;d<k;d++)h=2*d,r=(d+1)%k*2,e=f[h],h=f[h+1],g=f[r],r=f[r+1],ta(c,n,a,b,e,h,g,r)&&v++,ta(t,m,a,b,e,h,g,r)&&y++;return 1===v%2||1===y%2};gb=m;b.prototype.Ge=function(a,
b,f){var d;d=this.cells[a];return d?(d=d[b])?d:f?(d=h(this,a,b),this.cells[a][b]=d):null:f?(d=h(this,a,b),this.cells[a]={},this.cells[a][b]=d):null};b.prototype.Ob=function(a){return ra(a/this.Mk)};b.prototype.Pb=function(a){return ra(a/this.Lk)};b.prototype.update=function(a,b,f){var d,h,r,k,c;if(b)for(d=b.left,h=b.right;d<=h;++d)for(r=b.top,k=b.bottom;r<=k;++r)if(!f||!f.Oc(d,r))if(c=this.Ge(d,r,!1))c.remove(a),c.Wd()&&(c.pb.clear(),1E3>u.length&&u.push(c),this.cells[d][r]=null);if(f)for(d=f.left,
h=f.right;d<=h;++d)for(r=f.top,k=f.bottom;r<=k;++r)b&&b.Oc(d,r)||this.Ge(d,r,!0).zl(a)};b.prototype.Vp=function(a,b){var f,d,h,r,k,c;f=this.Ob(a.left);h=this.Pb(a.top);d=this.Ob(a.right);for(k=this.Pb(a.bottom);f<=d;++f)for(r=h;r<=k;++r)(c=this.Ge(f,r,!1))&&c.dump(b)};hb=b;d.prototype.Ge=function(a,b,d){var h;h=this.cells[a];return h?(h=h[b])?h:d?(h=f(this,a,b),this.cells[a][b]=h):null:d?(h=f(this,a,b),this.cells[a]={},this.cells[a][b]=h):null};d.prototype.Ob=function(a){return ra(a/this.Mk)};d.prototype.Pb=
function(a){return ra(a/this.Lk)};d.prototype.update=function(a,b,f){var d,h,r,k,c;if(b)for(d=b.left,h=b.right;d<=h;++d)for(r=b.top,k=b.bottom;r<=k;++r)if(!f||!f.Oc(d,r))if(c=this.Ge(d,r,!1))c.remove(a),c.Wd()&&(c.reset(),1E3>x.length&&x.push(c),this.cells[d][r]=null);if(f)for(d=f.left,h=f.right;d<=h;++d)for(r=f.top,k=f.bottom;r<=k;++r)b&&b.Oc(d,r)||this.Ge(d,r,!0).zl(a)};d.prototype.Vp=function(a,b,f,d,h){var r,k;a=this.Ob(a);b=this.Pb(b);f=this.Ob(f);for(r=this.Pb(d);a<=f;++a)for(d=b;d<=r;++d)(k=
this.Ge(a,d,!1))&&k.dump(h)};d.prototype.Lu=function(a){var b,f,d,h,r;b=a.left;d=a.top;f=a.right;for(h=a.bottom;b<=f;++b)for(a=d;a<=h;++a)if(r=this.Ge(b,a,!1))r.ag=!1};ib=d;var u=[];a.prototype.Wd=function(){return this.pb.Wd()};a.prototype.zl=function(a){this.pb.add(a)};a.prototype.remove=function(a){this.pb.remove(a)};a.prototype.dump=function(a){Ea(a,this.pb.Xe())};aa=a;var x=[];t.prototype.Wd=function(){if(!this.pb.length)return!0;if(this.pb.length>this.Ed.count())return!1;this.cl();return!0};
t.prototype.zl=function(a){this.Ed.contains(a)?(this.Ed.remove(a),this.Ed.Wd()&&(this.Mg=!1)):this.pb.length?(this.pb[this.pb.length-1].xd()>a.xd()&&(this.ag=!1),this.pb.push(a)):(this.pb.push(a),this.ag=!0)};t.prototype.remove=function(a){this.Ed.add(a);this.Mg=!0;30<=this.Ed.count()&&this.cl()};t.prototype.cl=function(){this.Mg&&(this.Ed.count()===this.pb.length?this.reset():(bb(this.pb,this.Ed),this.Ed.clear(),this.Mg=!1))};t.prototype.ct=function(){this.ag||(this.pb.sort(k),this.ag=!0)};t.prototype.reset=
function(){z(this.pb);this.ag=!0;this.Ed.clear();this.Mg=!1};t.prototype.dump=function(a){this.cl();this.ct();this.pb.length&&a.push(this.pb)};da=t;var H="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":H[a-1]};kb=function(a,b,f){if(f)switch(a.Hb=f.ONE,a.Eb=f.ONE_MINUS_SRC_ALPHA,b){case 1:a.Hb=f.ONE;a.Eb=f.ONE;break;case 3:a.Hb=f.ONE;a.Eb=f.ZERO;break;case 4:a.Hb=f.ONE_MINUS_DST_ALPHA;
a.Eb=f.ONE;break;case 5:a.Hb=f.DST_ALPHA;a.Eb=f.ZERO;break;case 6:a.Hb=f.ZERO;a.Eb=f.SRC_ALPHA;break;case 7:a.Hb=f.ONE_MINUS_DST_ALPHA;a.Eb=f.ZERO;break;case 8:a.Hb=f.ZERO;a.Eb=f.ONE_MINUS_SRC_ALPHA;break;case 9:a.Hb=f.DST_ALPHA;a.Eb=f.ONE_MINUS_SRC_ALPHA;break;case 10:a.Hb=f.ONE_MINUS_DST_ALPHA,a.Eb=f.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};nb=function(a){a=
a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var kc="undefined"!==typeof Float32Array?Float32Array:Array;function lc(g){var e=new kc(3);g&&(e[0]=g[0],e[1]=g[1],e[2]=g[2]);return e}function mc(g){var e=new kc(16);g&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[4]=g[4],e[5]=g[5],e[6]=g[6],e[7]=g[7],e[8]=g[8],e[9]=g[9],e[10]=g[10],e[11]=g[11],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]);return e}
function nc(g,e){e[0]=g[0];e[1]=g[1];e[2]=g[2];e[3]=g[3];e[4]=g[4];e[5]=g[5];e[6]=g[6];e[7]=g[7];e[8]=g[8];e[9]=g[9];e[10]=g[10];e[11]=g[11];e[12]=g[12];e[13]=g[13];e[14]=g[14];e[15]=g[15]}function oc(g,e){var c=e[0],l=e[1];e=e[2];g[0]*=c;g[1]*=c;g[2]*=c;g[3]*=c;g[4]*=l;g[5]*=l;g[6]*=l;g[7]*=l;g[8]*=e;g[9]*=e;g[10]*=e;g[11]*=e}
function pc(g,e,c,l){l||(l=mc());var q,p,m,b,d,h,a,f,t=g[0],k=g[1];g=g[2];p=c[0];m=c[1];q=c[2];c=e[1];h=e[2];t===e[0]&&k===c&&g===h?(g=l,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(c=t-e[0],h=k-e[1],a=g-e[2],f=1/Math.sqrt(c*c+h*h+a*a),c*=f,h*=f,a*=f,e=m*a-q*h,q=q*c-p*a,p=p*h-m*c,(f=Math.sqrt(e*e+q*q+p*p))?(f=1/f,e*=f,q*=f,p*=f):p=q=e=0,m=h*p-a*q,b=a*e-c*p,d=c*q-h*e,(f=Math.sqrt(m*m+b*b+d*d))?(f=1/f,m*=f,b*=f,d*=f):d=b=m=0,
l[0]=e,l[1]=m,l[2]=c,l[3]=0,l[4]=q,l[5]=b,l[6]=h,l[7]=0,l[8]=p,l[9]=d,l[10]=a,l[11]=0,l[12]=-(e*t+q*k+p*g),l[13]=-(m*t+b*k+d*g),l[14]=-(c*t+h*k+a*g),l[15]=1)}
(function(){function g(b,d,h){this.Xd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.wa=!!h;this.cj=this.oh=!1;this.Sk=0;this.vk=1;this.en=1E3;this.dw=(this.en-this.vk)/32768;this.Jk=lc([0,0,100]);this.To=lc([0,0,0]);this.Hq=lc([0,1,0]);this.oi=lc([1,1,1]);this.co=!0;this.wj=mc();this.Jc=mc();this.Ol=mc();this.Rk=mc();this.B=b;this.version=0===this.B.getParameter(this.B.VERSION).indexOf("WebGL 2")?2:1;this.zo()}function e(b,d,h){this.B=b;this.bi=
d;this.name=h;this.Rc=b.getAttribLocation(d,"aPos");this.Qe=b.getAttribLocation(d,"aTex");this.Ro=b.getUniformLocation(d,"matP");this.sj=b.getUniformLocation(d,"matMV");this.ig=b.getUniformLocation(d,"opacity");this.Ul=b.getUniformLocation(d,"colorFill");this.So=b.getUniformLocation(d,"samplerFront");this.Fh=b.getUniformLocation(d,"samplerBack");this.wf=b.getUniformLocation(d,"destStart");this.vf=b.getUniformLocation(d,"destEnd");this.Hh=b.getUniformLocation(d,"seconds");this.Wl=b.getUniformLocation(d,
"pixelWidth");this.Vl=b.getUniformLocation(d,"pixelHeight");this.Eh=b.getUniformLocation(d,"layerScale");this.Dh=b.getUniformLocation(d,"layerAngle");this.Ih=b.getUniformLocation(d,"viewOrigin");this.Gh=b.getUniformLocation(d,"scrollPos");this.ru=!!(this.Wl||this.Vl||this.Hh||this.Fh||this.wf||this.vf||this.Eh||this.Dh||this.Ih||this.Gh);this.bp=this.cp=-999;this.vj=1;this.Xo=this.Wo=0;this.Zo=this.Vo=this.Uo=1;this.fp=this.ep=this.dp=this.hp=this.gp=this.Yo=0;this.Nl=[];this.$o=mc();this.ig&&b.uniform1f(this.ig,
1);this.Ul&&b.uniform4f(this.Ul,1,1,1,1);this.So&&b.uniform1i(this.So,0);this.Fh&&b.uniform1i(this.Fh,1);this.wf&&b.uniform2f(this.wf,0,0);this.vf&&b.uniform2f(this.vf,1,1);this.Eh&&b.uniform1f(this.Eh,1);this.Dh&&b.uniform1f(this.Dh,0);this.Ih&&b.uniform2f(this.Ih,0,0);this.Gh&&b.uniform2f(this.Gh,0,0);this.Hh&&b.uniform1f(this.Hh,0);this.nf=!1}function c(b,d){return b[0]===d[0]&&b[1]===d[1]&&b[2]===d[2]&&b[3]===d[3]&&b[4]===d[4]&&b[5]===d[5]&&b[6]===d[6]&&b[7]===d[7]&&b[8]===d[8]&&b[9]===d[9]&&
b[10]===d[10]&&b[11]===d[11]&&b[12]===d[12]&&b[13]===d[13]&&b[14]===d[14]&&b[15]===d[15]}function l(b,d){this.type=b;this.q=d;this.B=d.B;this.yd=this.Nb=this.Fp=0;this.R=this.Xc=null;this.mq=[]}var q=mc();g.prototype.zo=function(){var b=this.B,d;this.Lo=1;this.sf=this.Me=null;this.Di=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.wa?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.Mo=b.ONE;this.Ko=b.ONE_MINUS_SRC_ALPHA;this.tk=new Float32Array(8E3*(this.wa?3:2));this.fk=new Float32Array(16E3);this.Pp=new Float32Array(32E3);this.nm=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.nm);b.bufferData(b.ARRAY_BUFFER,this.Pp.byteLength,b.DYNAMIC_DRAW);this.mi=Array(4);this.hi=Array(4);for(d=0;4>d;d++)this.mi[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.mi[d]),b.bufferData(b.ARRAY_BUFFER,this.tk.byteLength,b.DYNAMIC_DRAW),this.hi[d]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.hi[d]),b.bufferData(b.ARRAY_BUFFER,this.fk.byteLength,b.DYNAMIC_DRAW);this.Nd=0;this.uu=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.uu);for(var h=new Uint16Array(12E3),a=d=0;12E3>d;)h[d++]=a,h[d++]=a+1,h[d++]=a+2,h[d++]=a,h[d++]=a+2,h[d++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,h,b.STATIC_DRAW);this.om=this.Eg=this.pe=0;this.Ra=[];d=this.wa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";h=this.Tg({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}"},d,"<default>");this.Ra.push(h);h=this.Tg({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(h);h=this.Tg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.Ra.push(h);h=this.Tg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.Ra.push(h);for(var f in qc)qc.hasOwnProperty(f)&&this.Ra.push(this.Tg(qc[f],d,f));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.ye=[];this.Md=0;this.Gb=!1;this.Yn=this.yh=-1;this.Of=null;this.bl=b.createFramebuffer();this.Hi=this.Qj=null;this.In=!1;this.wa&&(this.Hi=b.createRenderbuffer());this.We=lc([0,0,0]);this.ip=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.ip&&(this.ip=2048);this.Yb(0)};e.prototype.Xm=function(b){c(this.$o,b)||(nc(b,this.$o),this.B.uniformMatrix4fv(this.sj,
!1,b))};g.prototype.Tg=function(b,d,h){var a=this.B,f=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(f,b.src);a.compileShader(f);if(!a.getShaderParameter(f,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(f),a.deleteShader(f),Error("error compiling fragment shader: "+b);var c=a.createShader(a.VERTEX_SHADER);a.shaderSource(c,d);a.compileShader(c);if(!a.getShaderParameter(c,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(c),a.deleteShader(f),a.deleteShader(c),Error("error compiling vertex shader: "+b);d=
a.createProgram();a.attachShader(d,f);a.attachShader(d,c);a.linkProgram(d);if(!a.getProgramParameter(d,a.LINK_STATUS))throw b=a.getProgramInfoLog(d),a.deleteShader(f),a.deleteShader(c),a.deleteProgram(d),Error("error linking shader program: "+b);a.useProgram(d);a.deleteShader(f);a.deleteShader(c);f=new e(a,d,h);f.$k=b.$k||0;f.al=b.al||0;f.Xn=!!b.Xn;f.hd=!!b.hd;f.En=!!b.En;f.S=b.S||[];b=0;for(c=f.S.length;b<c;b++)f.S[b][1]=a.getUniformLocation(d,f.S[b][0]),f.Nl.push(0),a.uniform1f(f.S[b][1],0);return f};
g.prototype.ol=function(b){var d,h;d=0;for(h=this.Ra.length;d<h;d++)if(this.Ra[d].name===b)return d;return-1};g.prototype.Sp=function(b,d,h){var a=this.Jc,f=this.wj,c=[0,0,0,0,0,0,0,0];c[0]=a[0]*b+a[4]*d+a[12];c[1]=a[1]*b+a[5]*d+a[13];c[2]=a[2]*b+a[6]*d+a[14];c[3]=a[3]*b+a[7]*d+a[15];c[4]=f[0]*c[0]+f[4]*c[1]+f[8]*c[2]+f[12]*c[3];c[5]=f[1]*c[0]+f[5]*c[1]+f[9]*c[2]+f[13]*c[3];c[6]=f[2]*c[0]+f[6]*c[1]+f[10]*c[2]+f[14]*c[3];c[7]=-c[2];0!==c[7]&&(c[7]=1/c[7],c[4]*=c[7],c[5]*=c[7],c[6]*=c[7],h[0]=(.5*c[4]+
.5)*this.width,h[1]=(.5*c[5]+.5)*this.height)};g.prototype.Cf=function(b,d,h){if(this.width!==b||this.height!==d||h){this.Ee();h=this.B;this.width=b;this.height=d;h.viewport(0,0,b,d);pc(this.Jk,this.To,this.Hq,this.Jc);if(this.wa){var a=-b/2;b=b/2;var f=d/2;d=-d/2;var c=this.vk,k=this.en,m=this.wj;m||(m=mc());var e=b-a,g=d-f,n=k-c;m[0]=2/e;m[1]=0;m[2]=0;m[3]=0;m[4]=0;m[5]=2/g;m[6]=0;m[7]=0;m[8]=0;m[9]=0;m[10]=-2/n;m[11]=0;m[12]=-(a+b)/e;m[13]=-(d+f)/g;m[14]=-(k+c)/n;m[15]=1;this.oi[0]=1;this.oi[1]=
1}else d=b/d,a=this.vk,b=this.en,m=this.wj,k=a*Math.tan(45*Math.PI/360),d*=k,f=-d,c=-k,m||(m=mc()),e=d-f,g=k-c,n=b-a,m[0]=2*a/e,m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[5]=2*a/g,m[6]=0,m[7]=0,m[8]=(d+f)/e,m[9]=(k+c)/g,m[10]=-(b+a)/n,m[11]=-1,m[12]=0,m[13]=0,m[14]=-(b*a*2)/n,m[15]=0,a=[0,0],b=[0,0],this.Sp(0,0,a),this.Sp(1,1,b),this.oi[0]=1/(b[0]-a[0]),this.oi[1]=-1/(b[1]-a[1]);a=0;for(b=this.Ra.length;a<b;a++)f=this.Ra[a],f.nf=!1,f.Ro&&(h.useProgram(f.bi),h.uniformMatrix4fv(f.Ro,!1,this.wj));h.useProgram(this.Ra[this.yh].bi);
h.bindTexture(h.TEXTURE_2D,null);h.activeTexture(h.TEXTURE1);h.bindTexture(h.TEXTURE_2D,null);h.activeTexture(h.TEXTURE0);this.sf=this.Me=null;this.Hi&&(h.bindFramebuffer(h.FRAMEBUFFER,this.bl),h.bindRenderbuffer(h.RENDERBUFFER,this.Hi),h.renderbufferStorage(h.RENDERBUFFER,h.DEPTH_COMPONENT16,this.width,this.height),this.In||(h.framebufferRenderbuffer(h.FRAMEBUFFER,h.DEPTH_ATTACHMENT,h.RENDERBUFFER,this.Hi),this.In=!0),h.bindRenderbuffer(h.RENDERBUFFER,null),h.bindFramebuffer(h.FRAMEBUFFER,null),
this.Qj=null)}};g.prototype.Tc=function(){pc(this.Jk,this.To,this.Hq,this.Jc);oc(this.Jc,this.oi)};g.prototype.translate=function(b,d){if(0!==b||0!==d){this.We[0]=b;this.We[1]=d;this.We[2]=0;var h=this.Jc,a=this.We,f=a[0],c=a[1],a=a[2];h[12]=h[0]*f+h[4]*c+h[8]*a+h[12];h[13]=h[1]*f+h[5]*c+h[9]*a+h[13];h[14]=h[2]*f+h[6]*c+h[10]*a+h[14];h[15]=h[3]*f+h[7]*c+h[11]*a+h[15]}};g.prototype.scale=function(b,d){if(1!==b||1!==d)this.We[0]=b,this.We[1]=d,this.We[2]=1,oc(this.Jc,this.We)};g.prototype.Sj=function(b){if(0!==
b){var d=this.Jc,h,a=Math.sin(b);b=Math.cos(b);var f=d[0],c=d[1],k=d[2],m=d[3],e=d[4],g=d[5],n=d[6],v=d[7];h?d!==h&&(h[8]=d[8],h[9]=d[9],h[10]=d[10],h[11]=d[11],h[12]=d[12],h[13]=d[13],h[14]=d[14],h[15]=d[15]):h=d;h[0]=f*b+e*a;h[1]=c*b+g*a;h[2]=k*b+n*a;h[3]=m*b+v*a;h[4]=f*-a+e*b;h[5]=c*-a+g*b;h[6]=k*-a+n*b;h[7]=m*-a+v*b}};g.prototype.Lc=function(){if(!c(this.Ol,this.Jc)){var b=this.vc();b.type=5;b.R?nc(this.Jc,b.R):b.R=mc(this.Jc);nc(this.Jc,this.Ol);this.Gb=!1}};g.prototype.Wj=function(b){this.wa&&
(32760<b&&(b=32760),this.Sk=this.Jk[2]-this.vk-b*this.dw)};l.prototype.Ms=function(){var b=this.B,d=this.q;0!==this.Nb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,d.bl),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),d.cj=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),d.cj=!1)};l.prototype.Qs=function(){this.B.bindTexture(this.B.TEXTURE_2D,
this.Xc)};l.prototype.Rs=function(){var b=this.B;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Xc);b.activeTexture(b.TEXTURE0)};l.prototype.Ns=function(){var b=this.Fp,d=this.q;d.Di=b;d=d.Of;d.ig&&d.vj!==b&&(d.vj=b,this.B.uniform1f(d.ig,b))};l.prototype.Hs=function(){this.B.drawElements(this.B.TRIANGLES,this.yd,this.B.UNSIGNED_SHORT,this.Nb)};l.prototype.Js=function(){this.B.blendFunc(this.Nb,this.yd)};l.prototype.Ss=function(){var b,d,h,a=this.q.Ra,f=this.q.Yn;b=0;for(d=a.length;b<
d;b++)h=a[b],b===f&&h.sj?(h.Xm(this.R),h.nf=!0):h.nf=!1;nc(this.R,this.q.Rk)};l.prototype.Is=function(){var b=this.B,d=this.q;this.Xc?(d.sf===this.Xc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),d.sf=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,d.bl),d.cj||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Xc,0)):(d.wa||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};
l.prototype.Es=function(){var b=this.B,d=this.Nb;0===d?(b.clearColor(this.R[0],this.R[1],this.R[2],this.R[3]),b.clear(b.COLOR_BUFFER_BIT)):1===d?(b.enable(b.SCISSOR_TEST),b.scissor(this.R[0],this.R[1],this.R[2],this.R[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};l.prototype.Ls=function(){var b=this.B;0!==this.Nb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};l.prototype.Gs=function(){var b=this.B,d=this.q;d.wa&&b.disable(b.DEPTH_TEST);
var h=d.Ra[1];b.useProgram(h.bi);!h.nf&&h.sj&&(h.Xm(d.Rk),h.nf=!0);b.enableVertexAttribArray(h.Rc);b.bindBuffer(b.ARRAY_BUFFER,d.nm);b.vertexAttribPointer(h.Rc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Nb/4,this.yd);h=d.Of;b.useProgram(h.bi);0<=h.Rc&&(b.enableVertexAttribArray(h.Rc),b.bindBuffer(b.ARRAY_BUFFER,d.mi[d.Nd]),b.vertexAttribPointer(h.Rc,d.wa?3:2,b.FLOAT,!1,0,0));0<=h.Qe&&(b.enableVertexAttribArray(h.Qe),b.bindBuffer(b.ARRAY_BUFFER,d.hi[d.Nd]),b.vertexAttribPointer(h.Qe,2,b.FLOAT,!1,
0,0));d.wa&&b.enable(b.DEPTH_TEST)};l.prototype.Os=function(){var b=this.B,d=this.q,h=d.Ra[this.Nb];d.Yn=this.Nb;d.Of=h;b.useProgram(h.bi);!h.nf&&h.sj&&(h.Xm(d.Rk),h.nf=!0);h.ig&&h.vj!==d.Di&&(h.vj=d.Di,b.uniform1f(h.ig,d.Di));0<=h.Rc&&(b.enableVertexAttribArray(h.Rc),b.bindBuffer(b.ARRAY_BUFFER,d.mi[d.Nd]),b.vertexAttribPointer(h.Rc,d.wa?3:2,b.FLOAT,!1,0,0));0<=h.Qe&&(b.enableVertexAttribArray(h.Qe),b.bindBuffer(b.ARRAY_BUFFER,d.hi[d.Nd]),b.vertexAttribPointer(h.Qe,2,b.FLOAT,!1,0,0))};l.prototype.Ks=
function(){var b=this.R;this.B.uniform4f(this.q.Of.Ul,b[0],b[1],b[2],b[3])};l.prototype.Ps=function(){var b,d,h=this.q.Of,a=this.B;b=this.R;h.Fh&&this.q.sf!==this.Xc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.Xc),this.q.sf=this.Xc,a.activeTexture(a.TEXTURE0));var f=b[0];h.Wl&&f!==h.cp&&(h.cp=f,a.uniform1f(h.Wl,f));f=b[1];h.Vl&&f!==h.bp&&(h.bp=f,a.uniform1f(h.Vl,f));f=b[2];d=b[3];!h.wf||f===h.Wo&&d===h.Xo||(h.Wo=f,h.Xo=d,a.uniform2f(h.wf,f,d));f=b[4];d=b[5];!h.vf||f===h.Uo&&d===
h.Vo||(h.Uo=f,h.Vo=d,a.uniform2f(h.vf,f,d));f=b[6];h.Eh&&f!==h.Zo&&(h.Zo=f,a.uniform1f(h.Eh,f));f=b[7];h.Dh&&f!==h.Yo&&(h.Yo=f,a.uniform1f(h.Dh,f));f=b[8];d=b[9];!h.Ih||f===h.gp&&d===h.hp||(h.gp=f,h.hp=d,a.uniform2f(h.Ih,f,d));f=b[10];d=b[11];!h.Gh||f===h.dp&&d===h.ep||(h.dp=f,h.ep=d,a.uniform2f(h.Gh,f,d));f=b[12];h.Hh&&f!==h.fp&&(h.fp=f,a.uniform1f(h.Hh,f));if(h.S.length)for(b=0,d=h.S.length;b<d;b++)f=this.mq[b],f!==h.Nl[b]&&(h.Nl[b]=f,a.uniform1f(h.S[b][1],f))};g.prototype.vc=function(){this.Md===
this.ye.length&&this.ye.push(new l(0,this));return this.ye[this.Md++]};g.prototype.Ee=function(){if(0!==this.Md&&!this.B.isContextLost()){var b=this.B;0<this.om&&(b.bindBuffer(b.ARRAY_BUFFER,this.nm),b.bufferSubData(b.ARRAY_BUFFER,0,this.Pp.subarray(0,this.om)),d&&0<=d.Rc&&"<point>"===d.name&&b.vertexAttribPointer(d.Rc,4,b.FLOAT,!1,0,0));if(0<this.pe){var d=this.Of;b.bindBuffer(b.ARRAY_BUFFER,this.mi[this.Nd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.tk.subarray(0,this.pe));d&&0<=d.Rc&&"<point>"!==d.name&&
b.vertexAttribPointer(d.Rc,this.wa?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.hi[this.Nd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.fk.subarray(0,this.Eg));d&&0<=d.Qe&&"<point>"!==d.name&&b.vertexAttribPointer(d.Qe,2,b.FLOAT,!1,0,0)}for(var h,b=0,d=this.Md;b<d;b++)switch(h=this.ye[b],h.type){case 1:h.Hs();break;case 2:h.Qs();break;case 3:h.Ns();break;case 4:h.Js();break;case 5:h.Ss();break;case 6:h.Is();break;case 7:h.Es();break;case 8:h.Gs();break;case 9:h.Os();break;case 10:h.Ps();break;
case 11:h.Rs();break;case 12:h.Ks();break;case 13:h.Ls();break;case 14:h.Ms()}this.om=this.Eg=this.pe=this.Md=0;this.cj=this.Gb=!1;this.Nd++;4<=this.Nd&&(this.Nd=0)}};g.prototype.Bf=function(b){if(b!==this.Lo&&!this.oh){var d=this.vc();d.type=3;this.Lo=d.Fp=b;this.Gb=!1}};g.prototype.xc=function(b){if(b!==this.Me){var d=this.vc();d.type=2;this.Me=d.Xc=b;this.Gb=!1}};g.prototype.Ue=function(b,d){if((b!==this.Mo||d!==this.Ko)&&!this.oh){var h=this.vc();h.type=4;h.Nb=b;h.yd=d;this.Mo=b;this.Ko=d;this.Gb=
!1}};g.prototype.bq=function(){this.Ue(this.B.ONE,this.B.ONE_MINUS_SRC_ALPHA)};g.prototype.Vh=function(b,d,h,a,f,c,k,m){15992<=this.pe&&this.Ee();var e=this.pe,g=this.Eg,n=this.tk,v=this.fk,l=this.Sk;if(this.Gb)this.ye[this.Md-1].yd+=6;else{var q=this.vc();q.type=1;q.Nb=this.wa?e:e/2*3;q.yd=6;this.Gb=!0}this.wa?(n[e++]=b,n[e++]=d,n[e++]=l,n[e++]=h,n[e++]=a,n[e++]=l,n[e++]=f,n[e++]=c,n[e++]=l,n[e++]=k,n[e++]=m,n[e++]=l):(n[e++]=b,n[e++]=d,n[e++]=h,n[e++]=a,n[e++]=f,n[e++]=c,n[e++]=k,n[e++]=m);v[g++]=
0;v[g++]=0;v[g++]=1;v[g++]=0;v[g++]=1;v[g++]=1;v[g++]=0;v[g++]=1;this.pe=e;this.Eg=g};g.prototype.Fd=function(b,d,h,a,f,c,k,m,e){15992<=this.pe&&this.Ee();var g=this.pe,n=this.Eg,v=this.tk,l=this.fk,q=this.Sk;if(this.Gb)this.ye[this.Md-1].yd+=6;else{var p=this.vc();p.type=1;p.Nb=this.wa?g:g/2*3;p.yd=6;this.Gb=!0}var p=e.left,C=e.top,u=e.right;e=e.bottom;this.wa?(v[g++]=b,v[g++]=d,v[g++]=q,v[g++]=h,v[g++]=a,v[g++]=q,v[g++]=f,v[g++]=c,v[g++]=q,v[g++]=k,v[g++]=m,v[g++]=q):(v[g++]=b,v[g++]=d,v[g++]=h,
v[g++]=a,v[g++]=f,v[g++]=c,v[g++]=k,v[g++]=m);l[n++]=p;l[n++]=C;l[n++]=u;l[n++]=C;l[n++]=u;l[n++]=e;l[n++]=p;l[n++]=e;this.pe=g;this.Eg=n};g.prototype.Yb=function(b){if(this.yh!==b){if(!this.Ra[b]){if(0===this.yh)return;b=0}var d=this.vc();d.type=9;this.yh=d.Nb=b;this.Gb=!1}};g.prototype.Sh=function(b){b=this.Ra[b];return!(!b.wf&&!b.vf)};g.prototype.rm=function(b){b=this.Ra[b];return!!(b.wf||b.vf||b.Xn)};g.prototype.qm=function(b){return this.Ra[b].hd};g.prototype.kv=function(b){b=this.Ra[b];return 0!==
b.$k||0!==b.al};g.prototype.$t=function(b){return this.Ra[b].$k};g.prototype.au=function(b){return this.Ra[b].al};g.prototype.bu=function(b,d){return this.Ra[b].S[d][2]};g.prototype.Oj=function(b){return this.Ra[b].En};g.prototype.Ag=function(b,d,h,a,f,c,k,m,e,g,n,v,l,q,p){var C=this.Ra[this.yh],u,x;if(C.ru||p.length){u=this.vc();u.type=10;u.R?nc(this.Jc,u.R):u.R=mc();x=u.R;x[0]=d;x[1]=h;x[2]=a;x[3]=f;x[4]=c;x[5]=k;x[6]=m;x[7]=e;x[8]=g;x[9]=n;x[10]=v;x[11]=l;x[12]=q;C.Fh?u.Xc=b:u.Xc=null;if(p.length)for(h=
u.mq,h.length=p.length,b=0,d=p.length;b<d;b++)h[b]=p[b];this.Gb=!1}};g.prototype.clear=function(b,d,h,a){var f=this.vc();f.type=7;f.Nb=0;f.R||(f.R=mc());f.R[0]=b;f.R[1]=d;f.R[2]=h;f.R[3]=a;this.Gb=!1};g.prototype.clearRect=function(b,d,h,a){if(!(0>h||0>a)){var f=this.vc();f.type=7;f.Nb=1;f.R||(f.R=mc());f.R[0]=b;f.R[1]=d;f.R[2]=h;f.R[3]=a;this.Gb=!1}};g.prototype.fq=function(b){if(this.wa&&(b=!!b,this.oh!==b)){var d=this.vc();d.type=14;d.Nb=b?1:0;this.Gb=!1;this.oh=b;this.Qj=null;this.oh?this.Yb(2):
this.Yb(0)}};g.prototype.dq=function(b){if(this.wa){var d=this.vc();d.type=13;d.Nb=b?1:0;this.Gb=!1}};g.prototype.no=function(){nc(this.Ol,q);this.Tc();this.Lc();var b=this.width/2,d=this.height/2;this.Vh(-b,d,b,d,b,-d,-b,-d);nc(q,this.Jc);this.Lc()};g.prototype.cq=function(b,d,h){this.Yb(3);var a=this.vc();a.type=12;a.R||(a.R=mc());a.R[0]=b;a.R[1]=d;a.R[2]=h;a.R[3]=1;this.Gb=!1};g.prototype.Kv=function(){this.Yb(0)};g.prototype.tv=function(){this.Yb(2)};g.prototype.jv=function(){this.Ee();this.B.flush()};
var p=[],m={};g.prototype.ws=function(){z(p);m={}};g.prototype.qj=function(b,d,h,a){d=!!d;h=!!h;var f=b.src+","+d+","+h+(d?",undefined":""),c=null;if("undefined"!==typeof b.src&&m.hasOwnProperty(f))return c=m[f],c.wi++,c;this.Ee();var k=this.B,e=ma(b.width)&&ma(b.height),c=k.createTexture();k.bindTexture(k.TEXTURE_2D,c);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=k.RGBA,y=k.RGBA,n=k.UNSIGNED_BYTE;if(a&&!this.Xd)switch(a){case 1:y=g=k.RGB;break;case 2:n=k.UNSIGNED_SHORT_4_4_4_4;break;
case 3:n=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:y=g=k.RGB,n=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!e&&d){a=document.createElement("canvas");a.width=na(b.width);a.height=na(b.height);var v=a.getContext("2d");"undefined"!==typeof v.imageSmoothingEnabled?v.imageSmoothingEnabled=h:(v.webkitImageSmoothingEnabled=h,v.mozImageSmoothingEnabled=h,v.msImageSmoothingEnabled=h);v.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);k.texImage2D(k.TEXTURE_2D,0,g,y,n,a)}else k.texImage2D(k.TEXTURE_2D,0,
g,y,n,b);d?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));h?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),(e||2<=this.version)&&this.co?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,
k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.Me=null;c.cf=b.width;c.bf=b.height;c.wi=1;c.Qn=f;p.push(c);return m[f]=c};g.prototype.Cc=function(b,d,h,a){this.Ee();var f=this.B;this.Xd&&(a=!1);var c=f.createTexture();f.bindTexture(f.TEXTURE_2D,c);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,d,0,f.RGBA,a?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,
f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,h?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,h?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Me=null;c.cf=b;c.bf=d;p.push(c);return c};g.prototype.bw=function(b,d,c){this.Ee();var a=this.B;this.Xd&&(c=!1);a.bindTexture(a.TEXTURE_2D,d);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,
c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}a.bindTexture(a.TEXTURE_2D,null);this.Me=null};g.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.wi&&1<b.wi?b.wi--:(this.Ee(),b===this.Me&&(this.B.bindTexture(this.B.TEXTURE_2D,null),this.Me=null),b===this.sf&&(this.B.activeTexture(this.B.TEXTURE1),this.B.bindTexture(this.B.TEXTURE_2D,null),this.B.activeTexture(this.B.TEXTURE0),this.sf=null),Ga(p,b),"undefined"!==
typeof b.Qn&&delete m[b.Qn],this.B.deleteTexture(b)))};g.prototype.Uc=function(b){if(b!==this.Qj){var d=this.vc();d.type=6;this.Qj=d.Xc=b;this.Gb=!1}};qb=g})();
(function(){function g(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.oc=(this.dj=/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.ub=!!a.dc;this.Eo="undefined"!==typeof window.AppMobi||
this.ub;this.Hc=!!window.c2cocoonjs;this.Qc=!!window.c2ejecta;this.Hc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Qc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Xa=this.ub||this.Hc||this.Qc;this.qh=
/edge\//i.test(navigator.userAgent);this.Xd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.qh;this.Go=/tizen/i.test(navigator.userAgent);this.nh=/android/i.test(navigator.userAgent)&&!this.Go&&!this.Xd&&!this.qh;this.Jo=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Xd&&!this.qh;this.Gu=/ipad/i.test(navigator.userAgent);this.dg=this.Jo||this.Gu||this.Qc;this.Cl=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Xd&&!this.qh;this.Do=/amazonwebappplatform/i.test(navigator.userAgent);this.yu=/firefox/i.test(navigator.userAgent);this.Bu=/safari/i.test(navigator.userAgent)&&!this.Cl&&!this.Xd&&!this.qh;this.Cu=/windows/i.test(navigator.userAgent);this.Fl="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ho=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Eu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.sh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Kl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.gj=!!window.cr_windows10;this.Jl=this.Ho||this.Eu||this.Kl||this.gj;this.xu=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.bj=this.nh&&!this.Cl&&!this.dj&&!this.yu&&!this.Do&&!this.Xa;this.devicePixelRatio=
1;this.Ke=this.oc||this.dj||this.Eo||this.Hc||this.nh||this.dg||this.sh||this.Kl||this.xu||this.Go||this.Qc;this.Ke||(this.Ke=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.fj=!!(this.dg&&this.oc&&window.webkit);"undefined"===typeof cr_is_preview||this.Fl||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Fl=!0);this.canvas=a;this.Sn=document.getElementById("c2canvasdiv");
this.q=this.B=null;this.pl="(unavailable)";this.wa=!1;this.jf=0;this.Ca=null;this.Si=!1;this.xp=this.yp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.ub&&(window.c2runtime=this);this.Fl&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.bj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.H=this.width;this.G=this.height;this.Bi=this.width;this.Vg=this.height;this.gg=window.innerWidth;this.fg=window.innerHeight;this.ga=!0;this.rh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.A=[];this.Ma=[];this.Rl={};this.ed=[];this.Zk={};
this.Sd=[];this.Kg=[];this.mk=[];this.ks=[];this.ls=[];this.ff={};this.El=this.Ie=!1;this.Yd=0;this.Dl=this.Hl=!1;this.rd=[];this.ph=!1;this.oj=this.Fm="";this.gb=null;this.$d="";this.fi=this.pq=!1;this.Ri=[];this.hf=this.Rd=0;this.mp=30;this.Qk=this.Jh=0;this.Fg=1;this.wb=new eb;this.qe=new eb;this.yj=this.Vi=this.Li=this.ne=this.uf=this.dl=this.jj=0;this.Pg=null;this.Ii=[];this.Yk=[];this.Ki=-1;this.Xl=[[]];this.Sm=this.tj=0;this.um(null);this.Zg=this.sp=this.Mh=0;this.gi=[];this.Pm=this.wm=-1;
this.wh=!0;this.Ch=0;this.ej=!1;this.Mv=0;this.Mf=null;this.Zd=this.uo=!1;this.wp=new ba;this.dm=new ba;this.em=new ba;this.Xp=[];new gb([]);new gb([]);this.Lf=[];this.jh={};this.Be={};this.we={};this.Jg={};this.Nn={};this.Qo=this.nj=this.Ya=this.fb=this.Po=this.mj=this.na=null;this.Hg=this.Ll=!1;this.el=[null,null];this.Tf=0;this.Qi="";this.de={};this.ci=this.Oe=null;this.rq="";this.xj=[];this.sv()}}function e(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function c(){try{return!!window.indexedDB}catch(a){return!1}}
function l(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(a,b,f,d){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=l;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=f}}catch(h){d(h)}}function p(a,b,f){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=l;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;var c=d.transaction(["saves"]).objectStore("saves").get(a);
c.onsuccess=function(){c.result?b(c.result.data):b(null)}}}catch(c){f(c)}}function m(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var b,f={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ba||a[b]&&"undefined"!==typeof a[b].Fx||"spriteCreatedDestroyCallback"!==b&&(f[b]=a[b]);return f}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;g.prototype.sv=function(){var a=this;if(this.fj)this.Lt(function(b){a.Bh(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.sh?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var f="data.js";if(this.Ho||this.sh||this.Kl||this.gj)f="data.json";b.open("GET",f,!0);var d=!1;if(!this.Xa&&"response"in b&&"responseType"in b)try{b.responseType="json",d="json"===b.responseType}catch(c){d=
!1}if(!d&&"responseType"in b)try{b.responseType="text"}catch(h){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.sh?b.onreadystatechange=function(){4===b.readyState&&a.Bh(JSON.parse(b.responseText))}:(b.onload=function(){if(d)a.Bh(b.response);else if(a.Qc){var f=b.responseText,f=f.substr(f.indexOf("{"));a.Bh(JSON.parse(f))}else a.Bh(JSON.parse(b.responseText))},b.onerror=function(a){ga("Error requesting "+f+":");ga(a)});b.send()}};g.prototype.vu=
function(){var a=this,b,f,d,c,h,k,n,m,e;this.Xf=(!this.Xa||this.Qc||this.oc)&&this.Zv&&!this.bj;0===this.Qb&&this.dg&&(this.Xf=!1);this.devicePixelRatio=this.Xf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Bb();0<this.Qb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Pu();ea("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.zo();a.q.Cf(a.q.width,a.q.height,!0);a.fb=null;a.Ya=null;a.el[0]=null;a.el[1]=null;a.Qu();a.ga=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.$s&&(this.Hc||this.Qc||!this.Xa)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.nh||(this.B=this.canvas.getContext("webgl2",b)),this.B||(this.B=this.canvas.getContext("webgl",
b)||this.canvas.getContext("experimental-webgl",b)))}catch(g){}if(this.B){if(b=this.B.getExtension("WEBGL_debug_renderer_info"))this.pl=this.B.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.B.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.wa&&(this.pl+=" [front-to-back enabled]");this.Xa||(this.yb=document.createElement("canvas"),jQuery(this.yb).appendTo(this.canvas.parentNode),this.yb.oncontextmenu=function(){return!1},this.yb.onselectstart=function(){return!1},this.yb.width=Math.round(this.Bi*
this.devicePixelRatio),this.yb.height=Math.round(this.Vg*this.devicePixelRatio),jQuery(this.yb).css({width:this.Bi+"px",height:this.Vg+"px"}),this.Rp(),this.mm=this.yb.getContext("2d"));this.q=new qb(this.B,this.Ke,this.wa);this.q.Cf(this.canvas.width,this.canvas.height);this.q.co=0!==this.Ts;this.Ca=null;b=0;for(f=this.A.length;b<f;b++)for(h=this.A[b],d=0,c=h.K.length;d<c;d++)n=h.K[d],n.$a=this.q.ol(n.id),n.hd=this.q.qm(n.$a),this.Hg=this.Hg||this.q.Sh(n.$a);b=0;for(f=this.ed.length;b<f;b++){m=this.ed[b];
d=0;for(c=m.K.length;d<c;d++)n=m.K[d],n.$a=this.q.ol(n.id),n.hd=this.q.qm(n.$a);m.ld();d=0;for(c=m.N.length;d<c;d++){e=m.N[d];h=0;for(k=e.K.length;h<k;h++)n=e.K[h],n.$a=this.q.ol(n.id),n.hd=this.q.qm(n.$a),this.Hg=this.Hg||this.q.Sh(n.$a);e.ld()}}}else{if(0<this.Qb&&this.ub){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ca=AppMobi.canvas.getContext("2d");try{this.Ca.samplingMode=this.Ga?"smooth":"sharp",this.Ca.globalScale=1,this.Ca.HTML5CompatibilityMode=
!0,this.Ca.imageSmoothingEnabled=this.Ga}catch(v){}0!==this.width&&0!==this.height&&(this.Ca.width=this.width,this.Ca.height=this.height)}this.Ca||(this.Hc?(b={antialias:!!this.Ga,alpha:!0},this.Ca=this.canvas.getContext("2d",b)):(b={alpha:!0},this.Ca=this.canvas.getContext("2d",b)),this.Vj(this.Ca,this.Ga));this.mm=this.yb=null}this.zq=function(b){a.lb(!1,b)};window==window.top||this.Xa||this.Jl||this.sh||(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")&&(ea("Reloading for continuous preview"),this.oj="__c2_continuouspreview",this.fi=!0),this.Zu&&!this.Ke&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.Xa||
(b=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Qb&&this.Xf&&1<this.devicePixelRatio&&this.setSize(this.ib,this.hb,
!0);this.Eq();this.ou();this.go();this.Da={}};g.prototype.setSize=function(a,b,f){var d=0,c=0,h=0,k=0,k=0;if(this.gg!==a||this.fg!==b||f){this.gg=a;this.fg=b;var n=this.Qb;if((h=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.ej)&&!this.oc)||0!==this.Qb||f)h&&(n=this.Tf),f=this.devicePixelRatio,4<=n?(5===n&&1!==f&&(a+=1,b+=1),h=this.ib/this.hb,a/b>h?(h*=b,5===n?(k=h*f/this.ib,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),h=this.ib*k/
f,k=this.hb*k/f,d=(a-h)/2,c=(b-k)/2,a=h,b=k):(d=(a-h)/2,a=h)):(k=a/h,5===n?(k=k*f/this.hb,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),h=this.ib*k/f,k=this.hb*k/f,d=(a-h)/2,c=(b-k)/2,a=h):c=(b-k)/2,b=k)):h&&0===n&&(d=Math.floor((a-this.ib)/2),c=Math.floor((b-this.hb)/2),a=this.ib,b=this.hb),2>n&&(this.Og=f),this.Bi=Math.round(a),this.Vg=Math.round(b),this.width=Math.round(a*f),this.height=Math.round(b*f),this.ga=!0,this.Nq?(this.H=this.width,this.G=this.height,this.Ec=!0):this.width<this.ib&&this.height<
this.hb||1===n?(this.H=this.width,this.G=this.height,this.Ec=!0):(this.H=this.ib,this.G=this.hb,this.Ec=!1,2===n?(h=this.ib/this.hb,n=this.gg/this.fg,n<h?this.H=this.G*n:n>h&&(this.G=this.H/n)):3===n&&(h=this.ib/this.hb,n=this.gg/this.fg,n>h?this.H=this.G*n:n<h&&(this.G=this.H/n))),this.Sn&&!this.Xa&&(jQuery(this.Sn).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+
"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*f),this.canvas.height=Math.round(b*f),this.Qc?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Xf&&!this.Xa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.yb&&(this.yb.width=Math.round(a*f),this.yb.height=Math.round(b*f),this.yb.style.width=this.Bi+
"px",this.yb.style.height=this.Vg+"px"),this.q&&this.q.Cf(Math.round(a*f),Math.round(b*f)),this.ub&&this.Ca&&(this.Ca.width=Math.round(a),this.Ca.height=Math.round(b)),this.Ca&&this.Vj(this.Ca,this.Ga),this.Eq(),this.Jo&&!this.oc&&window.scrollTo(0,0)}};g.prototype.Eq=function(){if(this.ns&&0!==this.lm){var a="portrait";2===this.lm&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?
screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};g.prototype.Pu=function(){this.q.ws();this.Ll=!0;var a,b,f;a=0;for(b=this.A.length;a<b;a++)f=this.A[a],f.Aj&&f.Aj()};g.prototype.Qu=function(){this.Ll=!1;var a,b,f;a=0;for(b=this.A.length;a<b;a++)f=this.A[a],f.im&&f.im()};g.prototype.Rp=function(){if(!this.Xa){var a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ej)&&!this.oc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.yb).css(a)}};var h=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;g.prototype.setSuspended=function(a){var b;if(a&&!this.rh)for(ea("[Construct 2] Suspending"),this.rh=!0,-1!==this.wm&&h&&h(this.wm),-1!==
this.Pm&&clearTimeout(this.Pm),a=0,b=this.gi.length;a<b;a++)this.gi[a](!0);else if(!a&&this.rh){ea("[Construct 2] Resuming");this.rh=!1;this.jj=Za();this.uf=Za();a=this.Jh=this.Vi=0;for(b=this.gi.length;a<b;a++)this.gi[a](!1);this.lb(!1)}};g.prototype.Bn=function(a){this.gi.push(a)};g.prototype.ue=function(a){return this.xj[a]};g.prototype.Bh=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.lo=a[1];this.Qb=a[12];this.ib=a[10];this.hb=a[11];this.Mp=this.ib/
2;this.Np=this.hb/2;this.Xa&&!this.Qc&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Qb=3);this.$m=a[18];this.Pe=a[19];if(0===this.Pe){var b=new Image;b.crossOrigin="anonymous";this.gq(b,"loading-logo.png");this.Oe={uj:b}}else if(4===this.Pe){b=new Image;b.src="";var f=new Image;f.src="";var d=new Image;d.src="";var c=new Image;c.src="";var h=new Image;h.src="";var k=new Image;k.src="";var n=new Image;
n.src="";var m=new Image;m.src="";var e=new Image;e.src="";var g=new Image;g.src="";var v=new Image;v.src="";var t=new Image;t.src="";this.Oe={uj:[b,f,d,c],dv:[h,k,n,m],cw:[e,g,v,t]}}this.Mh=a[21];this.xj=rc();this.Hd=new K(this);b=0;for(f=a[2].length;b<f;b++)n=a[2][b],d=this.ue(n[0]),rb(n,d.prototype),m=new d(this),m.$j=n[1],m.Le=n[2],m.Lx=n[5],m.np=n[9],m.fa&&m.fa(),this.plugins.push(m);this.xj=rc();b=0;for(f=a[3].length;b<f;b++){n=a[3][b];h=this.ue(n[1]);m=null;d=0;for(c=this.plugins.length;d<
c;d++)if(this.plugins[d]instanceof h){m=this.plugins[d];break}e=new m.Ka(m);e.name=n[0];e.L=n[2];e.Al=n[3].slice(0);e.aw=n[3].length;e.os=n[4];e.Pt=n[5];e.X=n[11];e.L?(e.lp=[],e.Td=this.Zg++,e.Ea=null):(e.lp=null,e.Td=-1,e.Ea=[]);e.Oi=null;e.Rf=null;e.eo=null;e.Ic=!1;e.kc=null;n[6]?(e.Mm=n[6][0],e.Nm=n[6][1],e.Om=n[6][2]):(e.Mm=null,e.Nm=0,e.Om=0);n[7]?e.ec=n[7]:e.ec=null;e.index=b;e.e=[];e.Fi=[];e.me=[new sb(e)];e.sd=0;e.td=null;e.As=0;e.Cg=!0;e.nk=tb;e.ro=ub;e.Yt=vb;e.qa=wb;e.Uh=xb;e.tm=yb;e.vg=
zb;e.Xi=Ab;e.gl=Bb;e.il=Cb;e.xe=Db;e.kl=Eb;e.Un=new hb(this.ib,this.hb);e.Fn=!0;e.Gn=!1;e.Da={};e.toString=Fb;e.Ma=[];d=0;for(c=n[8].length;d<c;d++){g=n[8][d];v=this.ue(g[1]);t=null;h=0;for(k=this.Ma.length;h<k;h++)if(this.Ma[h]instanceof v){t=this.Ma[h];break}t||(t=new v(this),t.pp=[],t.am=new ba,t.fa&&t.fa(),this.Ma.push(t));-1===t.pp.indexOf(e)&&t.pp.push(e);h=new t.Ka(t,e);h.name=g[0];h.X=g[2];h.fa();e.Ma.push(h)}e.global=n[9];e.Gl=n[10];e.K=[];d=0;for(c=n[12].length;d<c;d++)e.K.push({id:n[12][d][0],
name:n[12][d][1],$a:-1,hd:!1,La:!0,index:d});e.Zx=n[13];this.$m&&!e.L&&!e.Gl&&m.Le||e.fa();e.name&&(this.types[e.name]=e);this.A.push(e);m.$j&&(d=new m.ua(e),d.uid=this.Mh++,d.Up=this.sp++,d.pf=0,d.hh=Kb,d.toString=Lb,d.D=n[14],d.fa(),e.e.push(d),this.de[d.uid.toString()]=d)}b=0;for(f=a[4].length;b<f;b++)for(h=a[4][b],k=this.A[h[0]],d=1,c=h.length;d<c;d++)n=this.A[h[d]],n.Ea.push(k),k.lp.push(n);b=0;for(f=a[28].length;b<f;b++){h=a[28][b];k=[];d=0;for(c=h.length;d<c;d++)k.push(this.A[h[d]]);d=0;for(c=
k.length;d<c;d++)k[d].Ic=!0,k[d].kc=k}if(0<this.Zg)for(b=0,f=this.A.length;b<f;b++)if(n=this.A[b],!n.L&&n.Ea.length){n.Oi=Array(this.Zg);n.Rf=Array(this.Zg);n.eo=Array(this.Zg);e=[];d=t=v=g=0;for(c=n.Ea.length;d<c;d++)for(m=n.Ea[d],n.Oi[m.Td]=g,g+=m.aw,n.Rf[m.Td]=v,v+=m.os,n.eo[m.Td]=t,t+=m.Pt,h=0,k=m.K.length;h<k;h++)e.push(xa({},m.K[h]));n.K=e.concat(n.K);d=0;for(c=n.K.length;d<c;d++)n.K[d].index=d}b=0;for(f=a[5].length;b<f;b++)n=a[5][b],d=new Mb(this,n),this.Rl[d.name]=d,this.ed.push(d);b=0;for(f=
a[6].length;b<f;b++)n=a[6][b],d=new Nb(this,n),this.Zk[d.name]=d,this.Sd.push(d);b=0;for(f=this.Sd.length;b<f;b++)this.Sd[b].Ua();b=0;for(f=this.Sd.length;b<f;b++)this.Sd[b].Wm();b=0;for(f=this.mk.length;b<f;b++)this.mk[b].Ua();z(this.mk);this.ms=a[7];this.Qi=a[8];this.gd=a[9];this.Og=1;this.$s=a[13];this.Ga=a[14];this.Tn=a[15];this.Zv=a[17];this.lm=a[20];this.ns=0<this.lm;this.Zu=a[22];this.Ec=this.Nq=a[23];this.Ts=a[24];this.gv=a[25];this.wa=a[27]&&!this.Xd;this.ak=Date.now();z(this.xj);this.vu()};
var a=!1,f=0,t=[];g.prototype.nv=function(a,b){function d(){f--;h.jp()}var h=this;a.addEventListener("load",d);a.addEventListener("error",d);t.push([a,b]);this.jp()};g.prototype.jp=function(){for(var a;t.length&&100>f;)f++,a=t.shift(),this.gq(a[0],a[1])};g.prototype.Mq=function(b,f){b.cocoonLazyLoad=!0;b.onerror=function(f){a=b.Pn=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",f)};this.Qc?b.src=f:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(f,function(a){b.src=
a},function(d){a=b.Pn=!0;console&&console.error&&console.error("Error extracting image '"+f+"' from expansion file: ",d)}):(b.crossOrigin="anonymous",this.nv(b,f)));this.Kg.push(b)};g.prototype.Nt=function(a){var b,f;b=0;for(f=this.Kg.length;b<f;b++)if(this.Kg[b].xs===a)return this.Kg[b];return null};var k=0,I=!1;g.prototype.ou=function(){this.Mf&&(k=this.Mf.Hv(this.ms))};g.prototype.Hn=function(){var a=k,b=0,f=0,d=!0,h,c,f=0;for(h=this.Kg.length;f<h;f++){c=this.Kg[f];var n=c.Wn;if(!n||0>=n)n=5E4;
a+=n;c.src&&(c.complete||c.loaded)&&!c.Pn?b+=n:d=!1}d&&this.gv&&this.Mf&&(I||(this.Mf.Nv(),I=!0),f=this.Mf.Zt(),b+=f,f<k&&(d=!1));this.T=0==a?1:b/a;return d};var S=!1;g.prototype.go=function(){if(this.Ca||this.q){var b=this.Ca||this.mm;this.yb&&this.Rp();var f=window.innerWidth,c=window.innerHeight;this.gg===f&&this.fg===c||this.setSize(f,c);this.T=0;this.Oo=-1;var h=this;if(this.Hn()&&(4!==this.Pe||S))this.pu();else{c=Date.now()-this.ak;if(b){var k=this.width,n=this.height,f=this.devicePixelRatio;
if(3>this.Pe&&(this.Hc||500<=c&&this.Oo!=this.T)){b.clearRect(0,0,k,n);var c=k/2,n=n/2,k=0===this.Pe&&this.Oe.uj.complete,e=40*f,m=0,g=80*f,v;if(k){var t=this.Oe.uj,g=t.width*f;v=t.height*f;e=g/2;m=v/2;b.drawImage(t,ra(c-e),ra(n-m),g,v)}1>=this.Pe?(c=ra(c-e)+.5,n=ra(n+(m+(k?12*f:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(c,n,Math.floor(g*this.T),6*f),b.strokeStyle="black",b.strokeRect(c,n,g,6*f),b.strokeStyle="white",b.strokeRect(c-1*f,n-1*f,g+2*f,8*f)):2===this.Pe&&(b.font=this.Qc?"12pt ArialMT":
"12pt Arial",b.fillStyle=a?"#f00":"#999",b.Yx="middle",f=Math.round(100*this.T)+"%",k=b.measureText?b.measureText(f):null,b.fillText(f,c-(k?k.width:0)/2,n));this.Oo=this.T}else if(4===this.Pe){this.Ys(b);d?d(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.Hc?10:100)}}};var y=-1,n="undefined"===typeof cr_is_preview?200:0,v=!0,V=!1,N=0,G=0,C="undefined"===typeof cr_is_preview?3E3:0,u=null,x=null,H=0;g.prototype.Ys=function(b){if(!S){for(var f=Math.ceil(this.width),
d=Math.ceil(this.height),c=this.Oe.uj,h=this.Oe.dv,k=this.Oe.cw,m=0;4>m;++m)if(!c[m].complete||!h[m].complete||!k[m].complete)return;0===H&&(y=Date.now());var m=Date.now(),g=!1,t=b,l,q;v||V?(b.clearRect(0,0,f,d),u&&u.width===f&&u.height===d||(u=document.createElement("canvas"),u.width=f,u.height=d,x=u.getContext("2d")),t=x,g=!0,v&&1===H&&(y=Date.now())):b.globalAlpha=1;t.fillStyle="#333333";t.fillRect(0,0,f,d);256<this.Vg?(l=Ha(.22*d,105,.6*f),q=.25*l,t.drawImage(e(h,l),.5*f-l/2,.2*d-q/2,l,q),q=l=
Math.min(.395*d,.95*f),t.drawImage(e(c,l),.5*f-l/2,.485*d-q/2,l,q),l=Ha(.22*d,105,.6*f),q=.25*l,t.drawImage(e(k,l),.5*f-l/2,.868*d-q/2,l,q),t.fillStyle="#3C3C3C",l=f,q=Math.max(.005*d,2),t.fillRect(0,.8*d-q/2,l,q),t.fillStyle=a?"red":"#E0FF65",l=f*this.T,t.fillRect(.5*f-l/2,.8*d-q/2,l,q)):(q=l=.55*d,t.drawImage(e(c,l),.5*f-l/2,.45*d-q/2,l,q),t.fillStyle="#3C3C3C",l=f,q=Math.max(.005*d,2),t.fillRect(0,.85*d-q/2,l,q),t.fillStyle=a?"red":"#E0FF65",l=f*this.T,t.fillRect(.5*f-l/2,.85*d-q/2,l,q));g&&(v?
b.globalAlpha=0===H?0:Math.min((m-y)/300,1):V&&(b.globalAlpha=Math.max(1-(m-G)/300,0)),b.drawImage(u,0,0,f,d));v&&300<=m-y&&2<=H&&(v=!1,N=m);!v&&m-N>=C&&!V&&1<=this.T&&(V=!0,G=m);if(V&&m-G>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.T&&500>Date.now()-y)S=!0,V=v=!1,this.Oe=x=u=null;++H}};g.prototype.pu=function(){this.yb&&(this.canvas.parentNode.removeChild(this.yb),this.yb=this.mm=null);this.ak=Date.now();this.uf=Za();var a,b,f;if(this.$m)for(a=0,b=this.A.length;a<b;a++)f=this.A[a],f.L||f.Gl||
!f.Ha.Le||f.fa();else this.wh=!1;a=0;for(b=this.ed.length;a<b;a++)this.ed[a].ys();2<=this.Qb&&(a=this.ib/this.hb,b=this.width/this.height,this.Og=2!==this.Qb&&b>a||2===this.Qb&&b<a?this.height/this.hb:this.width/this.ib);this.lo?this.Rl[this.lo].Km():this.ed[0].Km();this.$m||(this.Ch=1,this.trigger(K.prototype.g.ln,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.A.length;a<b;a++)f=this.A[a],f.zp&&
f.zp();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.lb(!1);this.ub&&AppMobi.webview.execute("onGameReady();")};g.prototype.lb=function(a,b,f){if(this.na){var c=Za();if(f||!this.rh||a){a||(d?this.wm=d(this.zq):this.Pm=setTimeout(this.zq,this.Ke?1:16));b=b||c;var h=this.Qb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.oc)||this.ej)&&0<this.Tf&&(h=this.Tf);if(0<h){var h=
window.innerWidth,k=window.innerHeight;this.gg===h&&this.fg===k||this.setSize(h,k)}this.Xa||(f?this.Si||(this.Si=!0):this.Si?(this.Si=!1,0===this.Qb&&this.setSize(Math.round(this.yp/this.devicePixelRatio),Math.round(this.xp/this.devicePixelRatio),!0)):(this.yp=this.width,this.xp=this.height));this.wh&&(f=this.Hn(),this.Ch=this.T,f&&(this.wh=!1,this.T=1,this.trigger(K.prototype.g.ln,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ku(b);!this.ga&&!this.Hc||this.Ll||this.fi||a||(this.ga=!1,
this.q?this.mc():this.ud(),this.ci&&(this.canvas&&this.canvas.toDataURL&&(this.rq=this.canvas.toDataURL(this.ci[0],this.ci[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.rq),this.trigger(K.prototype.g.lr,null)),this.ci=null));this.Kx||(this.ne++,this.Li++,this.Vi++);this.Jh+=Za()-c}}};g.prototype.Ku=function(a){var b,f,d,c,h,k,n,e;1E3<=a-this.uf&&(this.uf+=1E3,1E3<=a-this.uf&&(this.uf=a),this.dl=this.Vi,this.Vi=0,this.Qk=this.Jh,this.Jh=0);b=0;0!==this.jj&&(b=a-this.jj,0>b&&(b=0),this.hf=b/=
1E3,.5<this.hf?this.hf=0:this.hf>1/this.mp&&(this.hf=1/this.mp));this.jj=a;this.Rd=this.hf*this.Fg;this.wb.add(this.Rd);this.qe.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ej)&&!this.oc;2<=this.Qb||a&&0<this.Tf?(b=this.ib/this.hb,f=this.width/this.height,d=this.Qb,a&&0<this.Tf&&(d=this.Tf),this.Og=2!==d&&f>b||2===d&&f<b?this.height/this.hb:this.width/this.ib,this.na&&(this.na.$p(this.na.scrollX),this.na.aq(this.na.scrollY))):
this.Og=this.Xf?this.devicePixelRatio:1;this.Bb();this.Yd++;this.Hd.xv();this.Yd--;this.Bb();this.Yd++;f=this.wp.Xe();a=0;for(b=f.length;a<b;a++)f[a].Tx();a=0;for(b=this.A.length;a<b;a++)if(k=this.A[a],!k.L&&(k.Ma.length||k.Ea.length))for(f=0,d=k.e.length;f<d;f++)for(n=k.e[f],c=0,h=n.P.length;c<h;c++)n.P[c].lb();a=0;for(b=this.A.length;a<b;a++)if(k=this.A[a],!k.L&&(k.Ma.length||k.Ea.length))for(f=0,d=k.e.length;f<d;f++)for(n=k.e[f],c=0,h=n.P.length;c<h;c++)e=n.P[c],e.cv&&e.cv();f=this.dm.Xe();a=0;
for(b=f.length;a<b;a++)f[a].lb();this.Yd--;this.qu();for(a=0;this.Pg&&10>a++;)this.ao(this.Pg);a=0;for(b=this.Sd.length;a<b;a++)this.Sd[a].sl=!1;this.na.lf&&this.na.lf.kb();z(this.Xp);this.Yd++;a=0;for(b=this.A.length;a<b;a++)if(k=this.A[a],!k.L&&(k.Ma.length||k.Ea.length))for(f=0,d=k.e.length;f<d;f++)for(n=k.e[f],c=0,h=n.P.length;c<h;c++)e=n.P[c],e.ik&&e.ik();f=this.em.Xe();a=0;for(b=f.length;a<b;a++)f[a].ik();this.Yd--};g.prototype.ao=function(a){var b=this.na;this.na.Ov();var f,d,c;if(this.q)for(f=
0,d=this.A.length;f<d;f++)c=this.A[f],c.L||!c.Vm||c.global&&0!==c.e.length||-1!==a.mh.indexOf(c)||c.Vm();b==a&&z(this.Hd.ac);z(this.Xp);this.Yp(!0);a.Km();this.Yp(!1);this.ga=!0;this.Bb()};g.prototype.Yp=function(a){var b,f,d,c,h,k,n,e,m;b=0;for(f=this.Ma.length;b<f;b++)d=this.Ma[b],a?d.Nh&&d.Nh():d.Oh&&d.Oh();b=0;for(f=this.A.length;b<f;b++)if(d=this.A[b],d.global||d.Ha.$j)for(c=0,h=d.e.length;c<h;c++)if(k=d.e[c],a?k.Nh&&k.Nh():k.Oh&&k.Oh(),k.P)for(n=0,e=k.P.length;n<e;n++)m=k.P[n],a?m.Nh&&m.Nh():
m.Oh&&m.Oh()};g.prototype.jk=function(a){this.dm.add(a)};g.prototype.Rv=function(a){this.em.add(a)};g.prototype.bh=function(a){return a&&-1!==a.Lh?this.hf*a.Lh:this.Rd};g.prototype.ud=function(){this.na.ud(this.Ca);this.ub&&this.Ca.present()};g.prototype.mc=function(){this.wa&&(this.jf=1,this.na.gf(this.q));this.na.mc(this.q);this.q.jv()};g.prototype.zn=function(a){a&&this.Ii.push(a)};g.prototype.rv=function(a){Ga(this.Ii,a)};g.prototype.eh=function(a){a=a.toString();return this.de.hasOwnProperty(a)?
this.de[a]:null};var M=[];g.prototype.te=function(a){var b,f;b=a.type.name;var d=null;if(this.ff.hasOwnProperty(b)){if(d=this.ff[b],d.contains(a))return}else d=M.length?M.pop():new ba,this.ff[b]=d;d.add(a);this.Ie=!0;if(a.Ic)for(b=0,f=a.siblings.length;b<f;b++)this.te(a.siblings[b]);this.El&&d.Ig.push(a);this.Dl||(this.Yd++,this.trigger(Object.getPrototypeOf(a.type.Ha).g.mr,a),this.Yd--)};g.prototype.Bb=function(){if(this.Ie){var a,b,f,d,c,h;this.El=!0;f=0;for(c=this.rd.length;f<c;++f)for(a=this.rd[f],
b=a.type,b.e.push(a),d=0,h=b.Ea.length;d<h;++d)b.Ea[d].e.push(a),b.Ea[d].Cg=!0;z(this.rd);this.gr();Ya(this.ff);this.Ie=this.El=!1}};g.prototype.gr=function(){for(var a in this.ff)this.ff.hasOwnProperty(a)&&this.Tq(this.ff[a])};g.prototype.Tq=function(a){var b=a.Xe(),f=b[0].type,d,c,h,k,n,e;bb(f.e,a);f.Cg=!0;0===f.e.length&&(f.Gn=!1);d=0;for(c=f.Ea.length;d<c;++d)e=f.Ea[d],bb(e.e,a),e.Cg=!0;d=0;for(c=this.Hd.ac.length;d<c;++d)if(n=this.Hd.ac[d],n.Mb.hasOwnProperty(f.index)&&bb(n.Mb[f.index].Vd,a),
!f.L)for(h=0,k=f.Ea.length;h<k;++h)e=f.Ea[h],n.Mb.hasOwnProperty(e.index)&&bb(n.Mb[e.index].Vd,a);if(n=b[0].n){if(n.Mc)for(h=n.e,d=0,c=h.length;d<c;++d)k=h[d],a.contains(k)&&(k.mb(),n.Ab.update(k,k.Tb,null),k.Tb.set(0,0,-1,-1));bb(n.e,a);n.$h(0)}for(d=0;d<b.length;++d)this.Sq(b[d],f);a.clear();M.push(a);this.ga=!0};g.prototype.Sq=function(a,b){var f,d,c;f=0;for(d=this.Ii.length;f<d;++f)this.Ii[f](a);a.Ce&&b.Un.update(a,a.Ce,null);(f=a.n)&&f.xg(a,!0);if(a.P)for(f=0,d=a.P.length;f<d;++f)c=a.P[f],c.qg&&
c.qg(),c.behavior.am.remove(a);this.wp.remove(a);this.dm.remove(a);this.em.remove(a);a.qg&&a.qg();this.de.hasOwnProperty(a.uid.toString())&&delete this.de[a.uid.toString()];this.yj--;100>b.Fi.length&&b.Fi.push(a)};var Q=[];g.prototype.ef=function(a,b,f,d,c,h){var k,n,e,m;if(!a)return null;var g=this.A[a[1]],v=g.Ha.Le;if(this.wh&&v&&!g.Gl||v&&!this.q&&11===a[0][11])return null;var t=b;v||(b=null);var l;g.Fi.length?(l=g.Fi.pop(),l.wc=!0,g.Ha.ua.call(l,g)):(l=new g.Ha.ua(g),l.wc=!1);!f||h||this.de.hasOwnProperty(a[2].toString())?
l.uid=this.Mh++:l.uid=a[2];this.de[l.uid.toString()]=l;l.Up=this.sp++;l.pf=g.e.length;k=0;for(n=this.rd.length;k<n;++k)this.rd[k].type===g&&l.pf++;l.hh=Kb;l.toString=Lb;e=a[3];if(l.wc)Ya(l.Da);else{l.Da={};if("undefined"!==typeof cr_is_preview)for(l.Co=[],l.Co.length=e.length,k=0,n=e.length;k<n;k++)l.Co[k]=e[k][1];l.cb=[];l.cb.length=e.length}k=0;for(n=e.length;k<n;k++)l.cb[k]=e[k][0];if(v){var q=a[0];l.x=ha(d)?q[0]:d;l.y=ha(c)?q[1]:c;l.z=q[2];l.width=q[3];l.height=q[4];l.depth=q[5];l.j=q[6];l.opacity=
q[7];l.Rb=q[8];l.Sb=q[9];l.Cb=q[10];k=q[11];!this.q&&g.K.length&&(l.Cb=k);l.Rg=jb(l.Cb);this.B&&kb(l,l.Cb,this.B);if(l.wc){k=0;for(n=q[12].length;k<n;k++)for(e=0,m=q[12][k].length;e<m;e++)l.Oa[k][e]=q[12][k][e];l.rb.set(0,0,0,0);l.Ce.set(0,0,-1,-1);l.Tb.set(0,0,-1,-1);l.ze.Zj(l.rb);z(l.Fk)}else{l.Oa=q[12].slice(0);k=0;for(n=l.Oa.length;k<n;k++)l.Oa[k]=q[12][k].slice(0);l.ja=[];l.ve=[];l.ve.length=g.K.length;l.rb=new ua(0,0,0,0);l.Ce=new ua(0,0,-1,-1);l.Tb=new ua(0,0,-1,-1);l.ze=new wa;l.Fk=[];l.Ia=
Ob;l.Ex=Pb;l.Oc=Qb;l.mb=Rb;l.Yv=Sb;l.$x=Tb;l.xd=Ub}l.Aq=!1;l.Uv=0;l.Tv=0;l.Sv=null;14===q.length&&(l.Aq=!0,l.Uv=q[13][0],l.Tv=q[13][1],l.Sv=q[13][2]);k=0;for(n=g.K.length;k<n;k++)l.ve[k]=!0;l.ke=!0;l.ld=Vb;l.ld();l.Kq=!!l.ja.length;l.Ek=!0;l.Kk=!0;g.Fn=!0;l.visible=!0;l.Lh=-1;l.n=b;l.md=b.e.length;l.jf=0;"undefined"===typeof l.qd&&(l.qd=null);this.ga=l.Qg=!0}var y;z(Q);k=0;for(n=g.Ea.length;k<n;k++)Q.push.apply(Q,g.Ea[k].Ma);Q.push.apply(Q,g.Ma);if(l.wc)for(k=0,n=Q.length;k<n;k++){var I=Q[k];y=l.P[k];
y.wc=!0;I.behavior.ua.call(y,I,l);q=a[4][k];e=0;for(m=q.length;e<m;e++)y.D[e]=q[e];y.fa();I.behavior.am.add(l)}else for(l.P=[],k=0,n=Q.length;k<n;k++)I=Q[k],y=new I.behavior.ua(I,l),y.wc=!1,y.D=a[4][k].slice(0),y.fa(),l.P.push(y),I.behavior.am.add(l);q=a[5];if(l.wc)for(k=0,n=q.length;k<n;k++)l.D[k]=q[k];else l.D=q.slice(0);this.rd.push(l);this.Ie=!0;b&&(b.Ng(l,!0),1!==b.ee||1!==b.fe)&&(g.Gn=!0);this.yj++;if(g.Ic){if(l.Ic=!0,l.wc?z(l.siblings):l.siblings=[],!f&&!h){k=0;for(n=g.kc.length;k<n;k++)if(g.kc[k]!==
g){if(!g.kc[k].td)return null;l.siblings.push(this.ef(g.kc[k].td,t,!1,v?l.x:d,v?l.y:c,!0))}k=0;for(n=l.siblings.length;k<n;k++)for(l.siblings[k].siblings.push(l),e=0;e<n;e++)k!==e&&l.siblings[k].siblings.push(l.siblings[e])}}else l.Ic=!1,l.siblings=null;l.fa();k=0;for(n=l.P.length;k<n;k++)l.P[k].bv&&l.P[k].bv();return l};g.prototype.ll=function(a){var b,f;b=0;for(f=this.na.N.length;b<f;b++){var d=this.na.N[b];if(mb(d.name,a))return d}return null};g.prototype.dh=function(a){a=ra(a);0>a&&(a=0);a>=this.na.N.length&&
(a=this.na.N.length-1);return this.na.N[a]};g.prototype.Ok=function(a){var b,f;b=0;for(f=a.length;b<f;b++)a[b].qa().Aa=!0};g.prototype.Uh=function(a){var b,f;b=0;for(f=a.length;b<f;b++)a[b].Uh()};g.prototype.tm=function(a){var b,f;b=0;for(f=a.length;b<f;b++)a[b].tm()};g.prototype.vg=function(a){var b,f;b=0;for(f=a.length;b<f;b++)a[b].vg()};g.prototype.ek=function(a,b,f){var d=a.qa(),c,k,h,n,e=this.Jb().lc.fd,m,g,l;if(d.Aa)for(d.Aa=!1,z(d.e),c=0,n=a.e.length;c<n;c++)h=a.e[c],h.mb(),m=h.n.Ib(b,f,!0),
g=h.n.Ib(b,f,!1),h.Oc(m,g)?d.e.push(h):e&&d.Y.push(h);else{k=0;l=e?d.Y:d.e;c=0;for(n=l.length;c<n;c++)h=l[c],h.mb(),m=h.n.Ib(b,f,!0),g=h.n.Ib(b,f,!1),h.Oc(m,g)&&(e?d.e.push(h):(d.e[k]=d.e[c],k++));l.length=k}a.xe();return d.rl()};new wa;new ua(0,0,0,0);g.prototype.Fq=function(a,b){if(!b)return!1;var f,d,c,k,h;f=0;for(d=a.Ma.length;f<d;f++)if(a.Ma[f].behavior instanceof b)return!0;if(!a.L)for(f=0,d=a.Ea.length;f<d;f++)for(h=a.Ea[f],c=0,k=h.Ma.length;c<k;c++)if(h.Ma[c].behavior instanceof b)return!0;
return!1};g.prototype.Tm=function(a){return this.Fq(a,jc.Iw)};g.prototype.Um=function(a){return this.Fq(a,jc.Kw)};var ja=-1;g.prototype.trigger=function(a,b,f){if(!this.na)return!1;var d=this.na.lf;if(!d)return!1;var c=!1,k,h,n;ja++;var e=d.Uk;h=0;for(n=e.length;h<n;++h)k=this.Cq(a,b,e[h],f),c=c||k;k=this.Cq(a,b,d,f);ja--;return c||k};g.prototype.Cq=function(a,b,f,d){var c=!1,k,h,n,e;if(b)for(n=this.Rm(a,b,b.type.name,f,d),c=c||n,e=b.type.Ea,k=0,h=e.length;k<h;++k)n=this.Rm(a,b,e[k].name,f,d),c=c||
n;else n=this.Rm(a,b,"system",f,d),c=c||n;return c};g.prototype.Rm=function(a,b,f,d,c){var k,h=!1,n=!1,n="undefined"!==typeof c,e=(n?d.ho:d.Dq)[f];if(!e)return h;var m=null;d=0;for(k=e.length;d<k;++d)if(e[d].method==a){m=e[d].Xg;break}if(!m)return h;var g;n?g=m[c]:g=m;if(!g)return null;d=0;for(k=g.length;d<k;d++)a=g[d][0],c=g[d][1],n=this.Kt(b,f,a,c),h=h||n;return h};g.prototype.Kt=function(a,b,f,d){var c,k,h=!1;this.Sm++;var n=this.Jb().lc;n&&this.Uh(n.Ve);var e=1<this.Sm;this.Uh(f.Ve);e&&this.lv();
var m=this.um(f);m.lc=f;a&&(c=this.types[b].qa(),c.Aa=!1,z(c.e),c.e[0]=a,this.types[b].xe());a=!0;if(f.parent){b=m.vq;for(c=f.parent;c;)b.push(c),c=c.parent;b.reverse();c=0;for(k=b.length;c<k;c++)if(!b[c].zv()){a=!1;break}}a&&(this.Li++,f.fd?f.yv(d):f.kb(),h=h||m.tf);this.Qp();e&&this.av();this.vg(f.Ve);n&&this.vg(n.Ve);this.Ie&&0===this.Yd&&0===ja&&!this.Hl&&this.Bb();this.Sm--;return h};g.prototype.Tt=function(){var a=this.Jb();return a.lc.Db[a.jc]};g.prototype.lv=function(){this.tj++;this.tj>=
this.Xl.length&&this.Xl.push([])};g.prototype.av=function(){this.tj--};g.prototype.po=function(){return this.Xl[this.tj]};g.prototype.um=function(a){this.Ki++;this.Ki>=this.Yk.length&&this.Yk.push(new Wb);var b=this.Jb();b.reset(a);return b};g.prototype.Qp=function(){this.Ki--};g.prototype.Jb=function(){return this.Yk[this.Ki]};g.prototype.qo=function(a,b){for(var f,d,c,k,h,n;b;){f=0;for(d=b.Wc.length;f<d;f++)if(n=b.Wc[f],n instanceof Xb&&mb(a,n.name))return n;b=b.parent}f=0;for(d=this.Sd.length;f<
d;f++)for(h=this.Sd[f],c=0,k=h.Fe.length;c<k;c++)if(n=h.Fe[c],n instanceof Xb&&mb(a,n.name))return n;return null};g.prototype.so=function(a){var b,f;b=0;for(f=this.ed.length;b<f;b++)if(this.ed[b].X===a)return this.ed[b];return null};g.prototype.Zi=function(a){var b,f;b=0;for(f=this.A.length;b<f;b++)if(this.A[b].X===a)return this.A[b];return null};g.prototype.Ut=function(a){var b,f;b=0;for(f=this.Lf.length;b<f;b++)if(this.Lf[b].X===a)return this.Lf[b];return null};g.prototype.Cs=function(a,b){this.ci=
[a,b];this.ga=!0};g.prototype.qu=function(){var a=this,b=this.Fm,f=this.$d,d=this.oj,k=!1;this.pq&&(k=!0,b="__c2_continuouspreview",this.pq=!1);if(b.length){this.Bb();f=this.Dv();if(c()&&!this.Hc)q(b,f,function(){ea("Saved state to IndexedDB storage ("+f.length+" bytes)");a.$d=f;a.trigger(K.prototype.g.wk,null);a.$d="";k&&m()},function(d){try{localStorage.setItem("__c2save_"+b,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),a.$d=f,a.trigger(K.prototype.g.wk,null),a.$d="",k&&m()}catch(c){ea("Failed to save game state: "+
d+"; "+c),a.trigger(K.prototype.g.qn,null)}});else try{localStorage.setItem("__c2save_"+b,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),a.$d=f,this.trigger(K.prototype.g.wk,null),a.$d="",k&&m()}catch(h){ea("Error saving to WebStorage: "+h),a.trigger(K.prototype.g.qn,null)}this.oj=this.Fm="";this.gb=null}if(d.length){if(c()&&!this.Hc)p(d,function(b){b?(a.gb=b,ea("Loaded state from IndexedDB storage ("+a.gb.length+" bytes)")):(a.gb=localStorage.getItem("__c2save_"+d)||"",ea("Loaded state from WebStorage ("+
a.gb.length+" bytes)"));a.fi=!1;a.gb||(a.gb=null,a.trigger(K.prototype.g.si,null))},function(){a.gb=localStorage.getItem("__c2save_"+d)||"";ea("Loaded state from WebStorage ("+a.gb.length+" bytes)");a.fi=!1;a.gb||(a.gb=null,a.trigger(K.prototype.g.si,null))});else{try{this.gb=localStorage.getItem("__c2save_"+d)||"",ea("Loaded state from WebStorage ("+this.gb.length+" bytes)")}catch(n){this.gb=null}this.fi=!1;a.gb||(a.gb=null,a.trigger(K.prototype.g.si,null))}this.Fm=this.oj=""}null!==this.gb&&(this.Bb(),
this.Ju(this.gb)?(this.$d=this.gb,this.trigger(K.prototype.g.ur,null),this.$d=""):a.trigger(K.prototype.g.si,null),this.gb=null)};g.prototype.Dv=function(){var a,f,d,c,k,h,n,e={c2save:!0,version:1,rt:{time:this.wb.O,walltime:this.qe.O,timescale:this.Fg,tickcount:this.ne,execcount:this.Li,next_uid:this.Mh,running_layout:this.na.X,start_time_offset:Date.now()-this.ak},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(f=this.A.length;a<f;a++)if(k=this.A[a],!k.L&&!this.Tm(k)){h=
{instances:[]};Xa(k.Da)&&(h.ex=b(k.Da));d=0;for(c=k.e.length;d<c;d++)h.instances.push(this.Em(k.e[d]));e.types[k.X.toString()]=h}a=0;for(f=this.ed.length;a<f;a++)d=this.ed[a],e.layouts[d.X.toString()]=d.Lb();c=e.events.groups;a=0;for(f=this.Lf.length;a<f;a++)d=this.Lf[a],c[d.X.toString()]=this.jh[d.ih].Vf;f=e.events.cnds;for(n in this.Be)this.Be.hasOwnProperty(n)&&(a=this.Be[n],Xa(a.Da)&&(f[n]={ex:b(a.Da)}));f=e.events.acts;for(n in this.we)this.we.hasOwnProperty(n)&&(a=this.we[n],Xa(a.Da)&&(f[n]=
{ex:b(a.Da)}));f=e.events.vars;for(n in this.Jg)this.Jg.hasOwnProperty(n)&&(a=this.Jg[n],a.hj||a.parent&&!a.vh||(f[n]=a.data));e.system=this.Hd.Lb();return JSON.stringify(e)};g.prototype.Wp=function(){var a,b,f,d,c,k;this.de={};a=0;for(b=this.A.length;a<b;a++)if(f=this.A[a],!f.L)for(d=0,c=f.e.length;d<c;d++)k=f.e[d],this.de[k.uid.toString()]=k};g.prototype.Ju=function(a){var b;try{b=JSON.parse(a)}catch(f){return!1}if(!b.c2save||1<b.version)return!1;this.ph=!0;a=b.rt;this.wb.reset();this.wb.O=a.time;
this.qe.reset();this.qe.O=a.walltime||0;this.Fg=a.timescale;this.ne=a.tickcount;this.Li=a.execcount;this.ak=Date.now()-a.start_time_offset;var d=a.running_layout;if(d!==this.na.X)if(d=this.so(d))this.ao(d);else return;var c,k,h,n,e,m,g;m=b.types;for(k in m)if(m.hasOwnProperty(k)&&(n=this.Zi(parseInt(k,10)))&&!n.L&&!this.Tm(n)){m[k].ex?n.Da=m[k].ex:Ya(n.Da);e=n.e;h=m[k].instances;d=0;for(c=pa(e.length,h.length);d<c;d++)this.pj(e[d],h[d]);d=h.length;for(c=e.length;d<c;d++)this.te(e[d]);d=e.length;for(c=
h.length;d<c;d++){e=null;if(n.Ha.Le&&(e=this.na.Yi(h[d].w.l),!e))continue;e=this.ef(n.td,e,!1,0,0,!0);this.pj(e,h[d])}n.Cg=!0}this.Bb();this.Wp();c=b.layouts;for(k in c)c.hasOwnProperty(k)&&(d=this.so(parseInt(k,10)))&&d.rc(c[k]);c=b.events.groups;for(k in c)c.hasOwnProperty(k)&&(d=this.Ut(parseInt(k,10)))&&this.jh[d.ih]&&this.jh[d.ih].Fv(c[k]);d=b.events.cnds;for(k in this.Be)this.Be.hasOwnProperty(k)&&(d.hasOwnProperty(k)?this.Be[k].Da=d[k].ex:this.Be[k].Da={});d=b.events.acts;for(k in this.we)this.we.hasOwnProperty(k)&&
(d.hasOwnProperty(k)?this.we[k].Da=d[k].ex:this.we[k].Da={});d=b.events.vars;for(k in d)d.hasOwnProperty(k)&&this.Jg.hasOwnProperty(k)&&(this.Jg[k].data=d[k]);this.Mh=a.next_uid;this.ph=!1;d=0;for(c=this.Ri.length;d<c;++d)e=this.Ri[d],this.trigger(Object.getPrototypeOf(e.type.Ha).g.hn,e);z(this.Ri);this.Hd.rc(b.system);d=0;for(c=this.A.length;d<c;d++)if(n=this.A[d],!n.L&&!this.Tm(n))for(b=0,k=n.e.length;b<k;b++){e=n.e[b];if(n.Ic)for(m=e.hh(),z(e.siblings),a=0,h=n.kc.length;a<h;a++)g=n.kc[a],n!==g&&
e.siblings.push(g.e[m]);e.nd&&e.nd();if(e.P)for(a=0,h=e.P.length;a<h;a++)m=e.P[a],m.nd&&m.nd()}return this.ga=!0};g.prototype.Em=function(a,f){var d,c,k,h,n;h=a.type;k=h.Ha;var e={};f?e.c2=!0:e.uid=a.uid;Xa(a.Da)&&(e.ex=b(a.Da));if(a.cb&&a.cb.length)for(e.ivs={},d=0,c=a.cb.length;d<c;d++)e.ivs[a.type.Al[d].toString()]=a.cb[d];if(k.Le){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.n.X,zi:a.xd()};0!==a.j&&(k.a=a.j);1!==a.opacity&&(k.o=a.opacity);.5!==a.Rb&&(k.hX=a.Rb);.5!==a.Sb&&(k.hY=a.Sb);0!==a.Cb&&(k.bm=
a.Cb);a.visible||(k.v=a.visible);a.Qg||(k.ce=a.Qg);-1!==a.Lh&&(k.mts=a.Lh);if(h.K.length)for(k.fx=[],d=0,c=h.K.length;d<c;d++)n=h.K[d],k.fx.push({name:n.name,active:a.ve[n.index],params:a.Oa[n.index]});e.w=k}if(a.P&&a.P.length)for(e.behs={},d=0,c=a.P.length;d<c;d++)h=a.P[d],h.Lb&&(e.behs[h.type.X.toString()]=h.Lb());a.Lb&&(e.data=a.Lb());return e};g.prototype.Wt=function(a,b){var f,d;f=0;for(d=a.Al.length;f<d;f++)if(a.Al[f]===b)return f;return-1};g.prototype.St=function(a,b){var f,d;f=0;for(d=a.P.length;f<
d;f++)if(a.P[f].type.X===b)return f;return-1};g.prototype.pj=function(a,b,f){var d,k,c,h,n;n=a.type;var e=n.Ha;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.Da=b.ex:Ya(a.Da);if(k=b.ivs)for(d in k)k.hasOwnProperty(d)&&(c=this.Wt(n,parseInt(d,10)),0>c||c>=a.cb.length||(h=k[d],null===h&&(h=NaN),a.cb[c]=h));if(e.Le){c=b.w;a.n.X!==c.l&&(k=a.n,a.n=this.na.Yi(c.l),a.n?(k.xg(a,!0),a.n.Ng(a,!0),a.Ia(),a.n.$h(0)):(a.n=k,f||this.te(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.md=c.zi;a.j=c.hasOwnProperty("a")?
c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Rb=c.hasOwnProperty("hX")?c.hX:.5;a.Sb=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Qg=c.hasOwnProperty("ce")?c.ce:!0;a.Lh=c.hasOwnProperty("mts")?c.mts:-1;a.Cb=c.hasOwnProperty("bm")?c.bm:0;a.Rg=jb(a.Cb);this.B&&kb(a,a.Cb,this.B);a.Ia();if(c.hasOwnProperty("fx"))for(f=0,k=c.fx.length;f<k;f++)h=n.il(c.fx[f].name),0>h||(a.ve[h]=c.fx[f].active,a.Oa[h]=c.fx[f].params);a.ld()}if(n=b.behs)for(d in n)n.hasOwnProperty(d)&&(f=this.St(a,
parseInt(d,10)),0>f||a.P[f].rc(n[d]));b.data&&a.rc(b.data)};g.prototype.io=function(a,b,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,f)},f)};g.prototype.Lt=function(a,b){this.io("data.js",function(f){var d=new FileReader;d.onload=function(b){a(b.target.result)};d.onerror=b;d.readAsText(f)},b)};var fa=[],U=0;g.prototype.Zl=function(){if(fa.length&&!(8<=U)){U++;var a=fa.shift();this.Fs(a.filename,a.Qv,a.dt)}};g.prototype.jo=function(a,b,f){var d=
this;fa.push({filename:a,Qv:function(a){U--;d.Zl();b(a)},dt:function(a){U--;d.Zl();f(a)}});this.Zl()};g.prototype.Fs=function(a,b,f){this.io(a,function(a){var f=new FileReader;f.onload=function(a){b(a.target.result)};f.readAsArrayBuffer(a)},f)};g.prototype.Mt=function(a,b,f){var d="",c=a.toLowerCase(),k=c.substr(c.length-4),c=c.substr(c.length-5);".mp4"===k?d="video/mp4":".webm"===c?d="video/webm":".m4a"===k?d="audio/mp4":".mp3"===k&&(d="audio/mpeg");this.jo(a,function(a){a=URL.createObjectURL(new Blob([a],
{type:d}));b(a)},f)};g.prototype.wu=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};g.prototype.gq=function(a,b){this.fj&&!this.wu(b)?this.Mt(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};g.prototype.Vj=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Yb=function(a){return new g(document.getElementById(a))};
Zb=function(a,b){return new g({dc:!0,width:a,height:b})};window.cr_createRuntime=Yb;window.cr_createDCRuntime=Zb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Dk=!0;document.body.appendChild(a);a=new g(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a};window.createEjectaRuntime=function(){var a=new g(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,e){var c=window.cr_getC2Runtime();c&&c.Cs(g,e)};
window.cr_sizeCanvas=function(g,e){if(0!==g&&0!==e){var c=window.cr_getC2Runtime();c&&c.setSize(g,e)}};window.cr_setSuspended=function(g){var e=window.cr_getC2Runtime();e&&e.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.lf=null;this.scrollX=this.b.ib/2;this.scrollY=this.b.hb/2;this.scale=1;this.j=0;this.Sf=!0;this.name=b[0];this.Xu=b[1];this.Wu=b[2];this.width=b[1];this.height=b[2];this.Gq=b[3];this.nq=b[4];this.X=b[5];var d=b[6],c,h;this.N=[];this.mh=[];c=0;for(h=d.length;c<h;c++){var e=new $b(this,d[c]);e.up=c;this.N.push(e)}d=b[7];this.Je=[];c=0;for(h=d.length;c<h;c++){var e=d[c],m=this.b.A[e[1]];m.td||(m.td=e);this.Je.push(e);-1===this.mh.indexOf(m)&&this.mh.push(m)}this.K=
[];this.ja=[];this.ke=!0;this.Oa=[];c=0;for(h=b[8].length;c<h;c++)this.K.push({id:b[8][c][0],name:b[8][c][1],$a:-1,hd:!1,La:!0,index:c}),this.Oa.push(b[8][c][2].slice(0));this.ld();this.Te=new ua(0,0,1,1);this.xm=new ua(0,0,1,1);this.Se={}}function e(a,b){return a.md-b.md}function c(a,b){this.ob=a;this.b=a.b;this.e=[];this.scale=1;this.j=0;this.Qd=!1;this.oe=new ua(0,0,0,0);this.Bq=new wa;this.ra=this.ma=this.ta=this.la=0;this.Gf=!1;this.re=-1;this.Pk=0;this.name=b[0];this.index=b[1];this.X=b[2];
this.visible=b[3];this.ad=b[4];this.kd=b[5];this.ee=b[6];this.fe=b[7];this.opacity=b[8];this.Ui=b[9];this.Mc=b[10];this.se=b[11];this.Cb=b[12];this.Zs=b[13];this.Rg="source-over";this.Eb=this.Hb=0;this.Ab=null;this.ae=l();this.jd=!0;this.hg=new ua(0,0,-1,-1);this.sb=new ua(0,0,-1,-1);this.Mc&&(this.Ab=new ib(this.b.ib,this.b.hb));this.Gd=!1;var d=b[14],c,h;this.tq=[];this.Gc=[];this.Ug=[];c=0;for(h=d.length;c<h;c++){var e=d[c],m=this.b.A[e[1]];m.td||(m.td=e,m.As=this.index);this.Gc.push(e);-1===this.ob.mh.indexOf(m)&&
this.ob.mh.push(m)}Ba(this.tq,this.Gc);this.K=[];this.ja=[];this.ke=!0;this.Oa=[];c=0;for(h=b[15].length;c<h;c++)this.K.push({id:b[15][c][0],name:b[15][c][1],$a:-1,hd:!1,La:!0,index:c}),this.Oa.push(b[15][c][2].slice(0));this.ld();this.Te=new ua(0,0,1,1);this.xm=new ua(0,0,1,1)}function l(){return b.length?b.pop():[]}function q(a){z(a);b.push(a)}g.prototype.Cv=function(a){var b=a.type.X.toString();this.Se.hasOwnProperty(b)||(this.Se[b]=[]);this.Se[b].push(this.b.Em(a))};g.prototype.vo=function(){var a=
this.N[0];return!a.kd&&1===a.opacity&&!a.Ui&&a.visible};g.prototype.ld=function(){z(this.ja);this.ke=!0;var a,b,d;a=0;for(b=this.K.length;a<b;a++)d=this.K[a],d.La&&(this.ja.push(d),d.hd||(this.ke=!1))};g.prototype.hl=function(a){var b,d,c;b=0;for(d=this.K.length;b<d;b++)if(c=this.K[b],c.name===a)return c;return null};var p=[],m=!0;g.prototype.Km=function(){this.nq&&(this.lf=this.b.Zk[this.nq],this.lf.Wm());this.b.na=this;this.width=this.Xu;this.height=this.Wu;this.scrollX=this.b.ib/2;this.scrollY=
this.b.hb/2;var a,b,d,c,h,g,l;a=0;for(d=this.b.A.length;a<d;a++)if(b=this.b.A[a],!b.L)for(h=b.e,b=0,c=h.length;b<c;b++)if(g=h[b],g.n){var n=g.n.up;n>=this.N.length&&(n=this.N.length-1);g.n=this.N[n];-1===g.n.e.indexOf(g)&&g.n.e.push(g);g.n.Gf=!0}if(!m)for(a=0,d=this.N.length;a<d;++a)this.N[a].e.sort(e);z(p);this.qs();a=0;for(d=this.N.length;a<d;a++)g=this.N[a],g.zs(),g.pk();h=!1;if(!this.Sf){for(l in this.Se)if(this.Se.hasOwnProperty(l)&&(b=this.b.Zi(parseInt(l,10)))&&!b.L&&this.b.Um(b)){c=this.Se[l];
a=0;for(d=c.length;a<d;a++){g=null;if(b.Ha.Le&&(g=this.Yi(c[a].w.l),!g))continue;g=this.b.ef(b.td,g,!1,0,0,!0);this.b.pj(g,c[a]);h=!0;p.push(g)}z(c)}a=0;for(d=this.N.length;a<d;a++)this.N[a].e.sort(e),this.N[a].Gf=!0}h&&(this.b.Bb(),this.b.Wp());for(a=0;a<p.length;a++)if(g=p[a],g.type.Ic)for(d=g.hh(),b=0,c=g.type.kc.length;b<c;b++)l=g.type.kc[b],g.type!==l&&(l.e.length>d?g.siblings.push(l.e[d]):l.td&&(h=this.b.ef(l.td,g.n,!0,g.x,g.y,!0),this.b.Bb(),l.nk(),g.siblings.push(h),p.push(h)));a=0;for(d=
this.Je.length;a<d;a++)g=this.Je[a],b=this.b.A[g[1]],b.Ic||this.b.ef(this.Je[a],null,!0);this.b.Pg=null;this.b.Bb();if(this.b.Ca&&!this.b.Xa)for(a=0,d=this.b.A.length;a<d;a++)l=this.b.A[a],!l.L&&l.e.length&&l.pm&&l.pm(this.b.Ca);if(this.b.ph)Ba(this.b.Ri,p);else for(a=0,d=p.length;a<d;a++)g=p[a],this.b.trigger(Object.getPrototypeOf(g.type.Ha).g.hn,g);z(p);this.b.ph||this.b.trigger(K.prototype.g.kn,null);this.Sf=!1};g.prototype.ys=function(){var a,b,d,c,h;b=a=0;for(d=this.Je.length;a<d;a++)c=this.Je[a],
h=this.b.A[c[1]],h.global?h.Ic||this.b.ef(c,null,!0):(this.Je[b]=c,b++);za(this.Je,b)};g.prototype.Ov=function(){this.b.ph||this.b.trigger(K.prototype.g.tr,null);this.b.Dl=!0;z(this.b.Hd.ac);var a,b,d,c,h,e;if(!this.Sf)for(a=0,b=this.N.length;a<b;a++)for(this.N[a].Zm(),h=this.N[a].e,d=0,c=h.length;d<c;d++)e=h[d],e.type.global||this.b.Um(e.type)&&this.Cv(e);a=0;for(b=this.N.length;a<b;a++){h=this.N[a].e;d=0;for(c=h.length;d<c;d++)e=h[d],e.type.global||this.b.te(e);this.b.Bb();z(h);this.N[a].Gf=!0}a=
0;for(b=this.b.A.length;a<b;a++)if(h=this.b.A[a],!(h.global||h.Ha.Le||h.Ha.$j||h.L)){d=0;for(c=h.e.length;d<c;d++)this.b.te(h.e[d]);this.b.Bb()}m=!1;this.b.Dl=!1};new ua(0,0,0,0);g.prototype.ud=function(a){var b,d=a,c=!1,h=!this.b.Ec;h&&(this.b.nj||(this.b.nj=document.createElement("canvas"),b=this.b.nj,b.width=this.b.H,b.height=this.b.G,this.b.Qo=b.getContext("2d"),c=!0),b=this.b.nj,d=this.b.Qo,b.width!==this.b.H&&(b.width=this.b.H,c=!0),b.height!==this.b.G&&(b.height=this.b.G,c=!0),c&&this.b.Vj(d,
this.b.Ga));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.Tn&&!this.vo()&&d.clearRect(0,0,this.b.H,this.b.G);var e,m,c=0;for(e=this.N.length;c<e;c++)m=this.N[c],m.visible&&0<m.opacity&&11!==m.Cb&&(m.e.length||!m.kd)?m.ud(d):m.pk();h&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.gf=function(a){a.fq(!0);this.b.Ya||(this.b.Ya=a.Cc(this.b.H,this.b.G,this.b.Ga));if(this.b.Ya.cf!==this.b.H||this.b.Ya.bf!==this.b.G)a.deleteTexture(this.b.Ya),this.b.Ya=a.Cc(this.b.H,this.b.G,
this.b.Ga);a.Uc(this.b.Ya);this.b.Ec||a.Cf(this.b.H,this.b.G);var b,d;for(b=this.N.length-1;0<=b;--b)d=this.N[b],d.visible&&1===d.opacity&&d.ke&&0===d.Cb&&(d.e.length||!d.kd)?d.gf(a):d.pk();a.fq(!1)};g.prototype.mc=function(a){var b=0<this.ja.length||this.b.Hg||!this.b.Ec||this.b.wa;if(b){this.b.Ya||(this.b.Ya=a.Cc(this.b.H,this.b.G,this.b.Ga));if(this.b.Ya.cf!==this.b.H||this.b.Ya.bf!==this.b.G)a.deleteTexture(this.b.Ya),this.b.Ya=a.Cc(this.b.H,this.b.G,this.b.Ga);a.Uc(this.b.Ya);this.b.Ec||a.Cf(this.b.H,
this.b.G)}else this.b.Ya&&(a.Uc(null),a.deleteTexture(this.b.Ya),this.b.Ya=null);this.b.Tn&&!this.vo()&&a.clear(0,0,0,0);var d,c,h;d=0;for(c=this.N.length;d<c;d++)h=this.N[d],h.visible&&0<h.opacity&&(h.e.length||!h.kd)?h.mc(a):h.pk();b&&(0===this.ja.length||1===this.ja.length&&this.b.Ec?(1===this.ja.length?(b=this.ja[0].index,a.Yb(this.ja[0].$a),a.Ag(null,1/this.b.H,1/this.b.G,0,0,1,1,this.scale,this.j,0,0,this.b.H/2,this.b.G/2,this.b.wb.O,this.Oa[b]),a.Oj(this.ja[0].$a)&&(this.b.ga=!0)):a.Yb(0),
this.b.Ec||a.Cf(this.b.width,this.b.height),a.Uc(null),a.dq(!1),a.Bf(1),a.xc(this.b.Ya),a.bq(),a.Tc(),a.Lc(),b=this.b.width/2,d=this.b.height/2,a.Vh(-b,d,b,d,b,-d,-b,-d),a.xc(null),a.dq(!0)):this.ym(a,null,null,null))};g.prototype.fh=function(){return 0<this.ja.length||this.b.Hg||!this.b.Ec||this.b.wa?this.b.Ya:null};g.prototype.to=function(){var a=this.N[0].nc(),b,d,c;b=1;for(d=this.N.length;b<d;b++)c=this.N[b],(0!==c.ee||0!==c.fe)&&c.nc()<a&&(a=c.nc());return a};g.prototype.$p=function(a){if(!this.Gq){var b=
1/this.to()*this.b.H/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ga=!0)};g.prototype.aq=function(a){if(!this.Gq){var b=1/this.to()*this.b.G/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ga=!0)};g.prototype.qs=function(){this.$p(this.scrollX);this.aq(this.scrollY)};g.prototype.ym=function(a,b,d,c){var h=d?d.ja:b?b.ja:this.ja,e=1,m=0,n=0,g=0,l=this.b.H,q=this.b.G;d?(e=d.n.nc(),m=d.n.bb(),n=d.n.la,g=d.n.ma,l=d.n.ta,
q=d.n.ra):b&&(e=b.nc(),m=b.bb(),n=b.la,g=b.ma,l=b.ta,q=b.ra);var p=this.b.el,C,u,x,H,M=0,Q=1,ja,fa,U=this.b.H,r=this.b.G,L=U/2,Aa=r/2,J=b?b.Te:this.Te,E=b?b.xm:this.xm,D=0,w=0,F=0,A=0,O=U,la=U,P=r,ca=r,W=x=0;H=d?d.n.bb():0;if(d){C=0;for(u=h.length;C<u;C++)x+=a.$t(h[C].$a),W+=a.au(h[C].$a);A=d.rb;D=b.eb(A.left,A.top,!0);F=b.eb(A.left,A.top,!1);O=b.eb(A.right,A.bottom,!0);P=b.eb(A.right,A.bottom,!1);0!==H&&(C=b.eb(A.right,A.top,!0),u=b.eb(A.right,A.top,!1),w=b.eb(A.left,A.bottom,!0),A=b.eb(A.left,A.bottom,
!1),H=Math.min(D,O,C,w),O=Math.max(D,O,C,w),D=H,H=Math.min(F,P,u,A),P=Math.max(F,P,u,A),F=H);D-=x;F-=W;O+=x;P+=W;E.left=D/U;E.top=1-F/r;E.right=O/U;E.bottom=1-P/r;w=D=ra(D);A=F=ra(F);la=O=sa(O);ca=P=sa(P);w-=x;A-=W;la+=x;ca+=W;0>D&&(D=0);0>F&&(F=0);O>U&&(O=U);P>r&&(P=r);0>w&&(w=0);0>A&&(A=0);la>U&&(la=U);ca>r&&(ca=r);J.left=D/U;J.top=1-F/r;J.right=O/U;J.bottom=1-P/r}else J.left=E.left=0,J.top=E.top=0,J.right=E.right=1,J.bottom=E.bottom=1;W=d&&(a.Sh(h[0].$a)||0!==x||0!==W||1!==d.opacity||d.type.Ha.np)||
b&&!d&&1!==b.opacity;a.bq();if(W){p[M]||(p[M]=a.Cc(U,r,this.b.Ga));if(p[M].cf!==U||p[M].bf!==r)a.deleteTexture(p[M]),p[M]=a.Cc(U,r,this.b.Ga);a.Yb(0);a.Uc(p[M]);fa=ca-A;a.clearRect(w,r-A-fa,la-w,fa);d?d.mc(a):(a.xc(this.b.fb),a.Bf(b.opacity),a.Tc(),a.translate(-L,-Aa),a.Lc(),a.Fd(D,P,O,P,O,F,D,F,J));E.left=E.top=0;E.right=E.bottom=1;d&&(H=J.top,J.top=J.bottom,J.bottom=H);M=1;Q=0}a.Bf(1);x=h.length-1;var Ca=a.rm(h[x].$a)||!b&&!d&&!this.b.Ec;C=H=0;for(u=h.length;C<u;C++){p[M]||(p[M]=a.Cc(U,r,this.b.Ga));
if(p[M].cf!==U||p[M].bf!==r)a.deleteTexture(p[M]),p[M]=a.Cc(U,r,this.b.Ga);a.Yb(h[C].$a);H=h[C].index;a.Oj(h[C].$a)&&(this.b.ga=!0);0!=C||W?(a.Ag(c,1/U,1/r,E.left,E.top,E.right,E.bottom,e,m,n,g,(n+l)/2,(g+q)/2,this.b.wb.O,d?d.Oa[H]:b?b.Oa[H]:this.Oa[H]),a.xc(null),C!==x||Ca?(a.Uc(p[M]),fa=ca-A,ja=r-A-fa,a.clearRect(w,ja,la-w,fa)):(d?a.Ue(d.Hb,d.Eb):b&&a.Ue(b.Hb,b.Eb),a.Uc(c)),a.xc(p[Q]),a.Tc(),a.translate(-L,-Aa),a.Lc(),a.Fd(D,P,O,P,O,F,D,F,J),C!==x||Ca||a.xc(null)):(a.Uc(p[M]),fa=ca-A,ja=r-A-fa,
a.clearRect(w,ja,la-w,fa),d?(d.Na&&d.Na.W?(ja=d.Na.W,Q=1/ja.width,ja=1/ja.height):(Q=1/d.width,ja=1/d.height),a.Ag(c,Q,ja,E.left,E.top,E.right,E.bottom,e,m,n,g,(n+l)/2,(g+q)/2,this.b.wb.O,d.Oa[H]),d.mc(a)):(a.Ag(c,1/U,1/r,0,0,1,1,e,m,n,g,(n+l)/2,(g+q)/2,this.b.wb.O,b?b.Oa[H]:this.Oa[H]),a.xc(b?this.b.fb:this.b.Ya),a.Tc(),a.translate(-L,-Aa),a.Lc(),a.Fd(D,P,O,P,O,F,D,F,J)),E.left=E.top=0,E.right=E.bottom=1,d&&!Ca&&(H=P,P=F,F=H));M=0===M?1:0;Q=0===M?1:0}Ca&&(a.Yb(0),d?a.Ue(d.Hb,d.Eb):b?a.Ue(b.Hb,b.Eb):
this.b.Ec||(a.Cf(this.b.width,this.b.height),L=this.b.width/2,Aa=this.b.height/2,F=D=0,O=this.b.width,P=this.b.height),a.Uc(c),a.xc(p[Q]),a.Tc(),a.translate(-L,-Aa),a.Lc(),d&&1===h.length&&!W?a.Fd(D,F,O,F,O,P,D,P,J):a.Fd(D,P,O,P,O,F,D,F,J),a.xc(null))};g.prototype.Yi=function(a){var b,d;b=0;for(d=this.N.length;b<d;b++)if(this.N[b].X===a)return this.N[b];return null};g.prototype.Lb=function(){var a,b,d,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.Sf,persist:this.Se,
fx:[],layers:{}};a=0;for(b=this.K.length;a<b;a++)d=this.K[a],c.fx.push({name:d.name,active:d.La,params:this.Oa[d.index]});a=0;for(b=this.N.length;a<b;a++)d=this.N[a],c.layers[d.X.toString()]=d.Lb();return c};g.prototype.rc=function(a){var b,d,c,h;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.Se=a.persist;"undefined"!==typeof a.fv&&(this.Sf=a.fv);var e=a.fx;b=0;for(d=e.length;b<d;b++)if(c=this.hl(e[b].name))c.La=e[b].active,this.Oa[c.index]=e[b].params;
this.ld();b=a.layers;for(h in b)b.hasOwnProperty(h)&&(a=this.Yi(parseInt(h,10)))&&a.rc(b[h])};Mb=g;c.prototype.ld=function(){z(this.ja);this.ke=!0;var a,b,d;a=0;for(b=this.K.length;a<b;a++)d=this.K[a],d.La&&(this.ja.push(d),d.hd||(this.ke=!1))};c.prototype.hl=function(a){var b,d,c;b=0;for(d=this.K.length;b<d;b++)if(c=this.K[b],c.name===a)return c;return null};c.prototype.zs=function(){var a,b,d,c,h,e;b=a=0;for(d=this.Gc.length;a<d;a++){c=this.Gc[a];h=this.b.A[c[1]];e=this.b.Um(h);h=!0;if(!e||this.ob.Sf){c=
this.b.ef(c,this,!0);if(!c)continue;p.push(c);c.type.global&&(h=!1,this.Ug.push(c.uid))}h&&(this.Gc[b]=this.Gc[a],b++)}this.Gc.length=b;this.b.Bb();!this.b.q&&this.K.length&&(this.Cb=this.Zs);this.Rg=jb(this.Cb);this.b.B&&kb(this,this.Cb,this.b.B);this.jd=!0};c.prototype.xg=function(a,b){var d=Fa(this.e,a);0>d||(b&&this.Mc&&a.Tb&&a.Tb.right>=a.Tb.left&&(a.mb(),this.Ab.update(a,a.Tb,null),a.Tb.set(0,0,-1,-1)),d===this.e.length-1?this.e.pop():(ya(this.e,d),this.$h(d)),this.jd=!0)};c.prototype.Ng=function(a,
b){a.md=this.e.length;this.e.push(a);b&&this.Mc&&a.Tb&&a.Ia();this.jd=!0};c.prototype.hv=function(a){this.e.unshift(a);this.$h(0)};c.prototype.Ou=function(a,b,d){var c=a.xd();b=b.xd();ya(this.e,c);c<b&&b--;d&&b++;b===this.e.length?this.e.push(a):this.e.splice(b,0,a);this.$h(c<b?c:b)};c.prototype.$h=function(a){-1===this.re?this.re=a:a<this.re&&(this.re=a);this.jd=this.Gf=!0};c.prototype.Zm=function(){if(this.Gf){-1===this.re&&(this.re=0);var a,b,d;if(this.Mc)for(a=this.re,b=this.e.length;a<b;++a)d=
this.e[a],d.md=a,this.Ab.Lu(d.Tb);else for(a=this.re,b=this.e.length;a<b;++a)this.e[a].md=a;this.Gf=!1;this.re=-1}};c.prototype.nc=function(a){return this.Xt()*(this.b.Ec||a?this.b.Og:1)};c.prototype.Xt=function(){return(this.scale*this.ob.scale-1)*this.se+1};c.prototype.bb=function(){return this.Qd?0:Ka(this.ob.j+this.j)};var b=[],d=[],h=[];c.prototype.nl=function(){this.Zm();this.Ab.Vp(this.la,this.ma,this.ta,this.ra,h);if(!h.length)return l();if(1===h.length){var a=l();Ba(a,h[0]);z(h);return a}for(var b=
!0;1<h.length;){for(var a=h,c=void 0,k=void 0,e=void 0,m=void 0,g=void 0,c=0,k=a.length;c<k-1;c+=2){var e=a[c],m=a[c+1],g=l(),n=e,v=m,p=g,N=0,G=0,C=0,u=n.length,x=v.length,H=void 0,M=void 0;for(p.length=u+x;N<u&&G<x;++C)H=n[N],M=v[G],H.md<M.md?(p[C]=H,++N):(p[C]=M,++G);for(;N<u;++N,++C)p[C]=n[N];for(;G<x;++G,++C)p[C]=v[G];b||(q(e),q(m));d.push(g)}1===k%2&&(b?(e=l(),Ba(e,a[k-1]),d.push(e)):d.push(a[k-1]));Ba(a,d);z(d);b=!1}a=h[0];z(h);return a};c.prototype.ud=function(a){this.Gd=this.Ui||1!==this.opacity||
0!==this.Cb;var b=this.b.canvas,d=a,c=!1;this.Gd&&(this.b.mj||(this.b.mj=document.createElement("canvas"),b=this.b.mj,b.width=this.b.H,b.height=this.b.G,this.b.Po=b.getContext("2d"),c=!0),b=this.b.mj,d=this.b.Po,b.width!==this.b.H&&(b.width=this.b.H,c=!0),b.height!==this.b.G&&(b.height=this.b.G,c=!0),c&&this.b.Vj(d,this.b.Ga),this.kd&&d.clearRect(0,0,this.b.H,this.b.G));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.kd||(d.fillStyle="rgb("+this.ad[0]+","+this.ad[1]+","+this.ad[2]+")",
d.fillRect(0,0,this.b.H,this.b.G));d.save();this.Qd=!0;var c=this.Ib(0,0,!0,!0),h=this.Ib(0,0,!1,!0);this.Qd=!1;this.b.gd&&(c=Math.round(c),h=Math.round(h));this.Rj(c,h,d);var e=this.nc();d.scale(e,e);d.translate(-c,-h);this.Mc?(this.sb.left=this.Ab.Ob(this.la),this.sb.top=this.Ab.Pb(this.ma),this.sb.right=this.Ab.Ob(this.ta),this.sb.bottom=this.Ab.Pb(this.ra),this.jd||!this.sb.Wg(this.hg)?(q(this.ae),c=this.nl(),this.jd=!1,this.hg.Sg(this.sb)):c=this.ae):c=this.e;for(var m,n=null,h=0,e=c.length;h<
e;++h)m=c[h],m!==n&&(this.Us(m,d),n=m);this.Mc&&(this.ae=c);d.restore();this.Gd&&(a.globalCompositeOperation=this.Rg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};c.prototype.Us=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.mb();var d=a.rb;d.right<this.la||d.bottom<this.ma||d.left>this.ta||d.top>this.ra||(b.globalCompositeOperation=a.Rg,a.ud(b))}};c.prototype.pk=function(){this.Qd=!0;var a=this.Ib(0,0,!0,!0),b=this.Ib(0,0,!1,!0);this.Qd=!1;this.b.gd&&(a=Math.round(a),b=Math.round(b));
this.Rj(a,b,null)};c.prototype.Rj=function(a,b,d){var c=this.nc();this.la=a;this.ma=b;this.ta=a+1/c*this.b.H;this.ra=b+1/c*this.b.G;this.la>this.ta&&(a=this.la,this.la=this.ta,this.ta=a);this.ma>this.ra&&(a=this.ma,this.ma=this.ra,this.ra=a);a=this.bb();0!==a&&(d&&(d.translate(this.b.H/2,this.b.G/2),d.rotate(-a),d.translate(this.b.H/-2,this.b.G/-2)),this.oe.set(this.la,this.ma,this.ta,this.ra),this.oe.offset((this.la+this.ta)/-2,(this.ma+this.ra)/-2),this.Bq.lq(this.oe,a),this.Bq.On(this.oe),this.oe.offset((this.la+
this.ta)/2,(this.ma+this.ra)/2),this.la=this.oe.left,this.ma=this.oe.top,this.ta=this.oe.right,this.ra=this.oe.bottom)};c.prototype.gf=function(a){if(this.Gd=this.Ui){this.b.fb||(this.b.fb=a.Cc(this.b.H,this.b.G,this.b.Ga));if(this.b.fb.cf!==this.b.H||this.b.fb.bf!==this.b.G)a.deleteTexture(this.b.fb),this.b.fb=a.Cc(this.b.H,this.b.G,this.b.Ga);a.Uc(this.b.fb)}this.Qd=!0;var b=this.Ib(0,0,!0,!0),d=this.Ib(0,0,!1,!0);this.Qd=!1;this.b.gd&&(b=Math.round(b),d=Math.round(d));this.Rj(b,d,null);b=this.nc();
a.Tc();a.scale(b,b);a.Sj(-this.bb());a.translate((this.la+this.ta)/-2,(this.ma+this.ra)/-2);a.Lc();this.Mc?(this.sb.left=this.Ab.Ob(this.la),this.sb.top=this.Ab.Pb(this.ma),this.sb.right=this.Ab.Ob(this.ta),this.sb.bottom=this.Ab.Pb(this.ra),this.jd||!this.sb.Wg(this.hg)?(q(this.ae),b=this.nl(),this.jd=!1,this.hg.Sg(this.sb)):b=this.ae):b=this.e;for(var c,h=null,d=b.length-1;0<=d;--d)c=b[d],c!==h&&(this.Ws(b[d],a),h=c);this.Mc&&(this.ae=b);this.kd||(this.Pk=this.b.jf++,a.Wj(this.Pk),a.cq(1,1,1),a.no(),
a.tv())};c.prototype.mc=function(a){var b=0,d=0;if(this.Gd=this.Ui||1!==this.opacity||0<this.ja.length||0!==this.Cb){this.b.fb||(this.b.fb=a.Cc(this.b.H,this.b.G,this.b.Ga));if(this.b.fb.cf!==this.b.H||this.b.fb.bf!==this.b.G)a.deleteTexture(this.b.fb),this.b.fb=a.Cc(this.b.H,this.b.G,this.b.Ga);a.Uc(this.b.fb);this.kd&&a.clear(0,0,0,0)}this.kd||(this.b.wa?(a.Wj(this.Pk),a.cq(this.ad[0]/255,this.ad[1]/255,this.ad[2]/255),a.no(),a.Kv()):a.clear(this.ad[0]/255,this.ad[1]/255,this.ad[2]/255,1));this.Qd=
!0;var c=this.Ib(0,0,!0,!0),b=this.Ib(0,0,!1,!0);this.Qd=!1;this.b.gd&&(c=Math.round(c),b=Math.round(b));this.Rj(c,b,null);c=this.nc();a.Tc();a.scale(c,c);a.Sj(-this.bb());a.translate((this.la+this.ta)/-2,(this.ma+this.ra)/-2);a.Lc();this.Mc?(this.sb.left=this.Ab.Ob(this.la),this.sb.top=this.Ab.Pb(this.ma),this.sb.right=this.Ab.Ob(this.ta),this.sb.bottom=this.Ab.Pb(this.ra),this.jd||!this.sb.Wg(this.hg)?(q(this.ae),b=this.nl(),this.jd=!1,this.hg.Sg(this.sb)):b=this.ae):b=this.e;var h,e,m=null,d=0;
for(h=b.length;d<h;++d)e=b[d],e!==m&&(this.Vs(b[d],a),m=e);this.Mc&&(this.ae=b);this.Gd&&(b=this.ja.length?this.ja[0].$a:0,d=this.ja.length?this.ja[0].index:0,0===this.ja.length||1===this.ja.length&&!a.rm(b)&&1===this.opacity?(1===this.ja.length?(a.Yb(b),a.Ag(this.ob.fh(),1/this.b.H,1/this.b.G,0,0,1,1,c,this.bb(),this.la,this.ma,(this.la+this.ta)/2,(this.ma+this.ra)/2,this.b.wb.O,this.Oa[d]),a.Oj(b)&&(this.b.ga=!0)):a.Yb(0),a.Uc(this.ob.fh()),a.Bf(this.opacity),a.xc(this.b.fb),a.Ue(this.Hb,this.Eb),
a.Tc(),a.Lc(),c=this.b.H/2,b=this.b.G/2,a.Vh(-c,b,c,b,c,-b,-c,-b),a.xc(null)):this.ob.ym(a,this,null,this.ob.fh()))};c.prototype.Vs=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.mb();var d=a.rb;d.right<this.la||d.bottom<this.ma||d.left>this.ta||d.top>this.ra||(b.Wj(a.jf),a.Kq?this.Xs(a,b):(b.Yb(0),b.Ue(a.Hb,a.Eb),a.mc(b)))}};c.prototype.Ws=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.mb();var d=a.rb;d.right<this.la||d.bottom<this.ma||d.left>this.ta||d.top>this.ra||(a.jf=this.b.jf++,
0===a.Cb&&1===a.opacity&&a.ke&&a.gf&&(b.Wj(a.jf),a.gf(b)))}};c.prototype.Xs=function(a,b){var d=a.ja[0].$a,c=a.ja[0].index,h=this.nc();if(1!==a.ja.length||b.rm(d)||b.kv(d)||(a.j||a.n.bb())&&b.Sh(d)||1!==a.opacity||a.type.Ha.np)this.ob.ym(b,this,a,this.Gd?this.b.fb:this.ob.fh()),b.Tc(),b.scale(h,h),b.Sj(-this.bb()),b.translate((this.la+this.ta)/-2,(this.ma+this.ra)/-2),b.Lc();else{b.Yb(d);b.Ue(a.Hb,a.Eb);b.Oj(d)&&(this.b.ga=!0);var e=0,m=0,n=0,g=0;b.Sh(d)&&(g=a.rb,e=this.eb(g.left,g.top,!0),m=this.eb(g.left,
g.top,!1),n=this.eb(g.right,g.bottom,!0),g=this.eb(g.right,g.bottom,!1),e=e/windowWidth,m=1-m/windowHeight,n=n/windowWidth,g=1-g/windowHeight);var l;a.Na&&a.Na.W?(l=a.Na.W,d=1/l.width,l=1/l.height):(d=1/a.width,l=1/a.height);b.Ag(this.Gd?this.b.fb:this.ob.fh(),d,l,e,m,n,g,h,this.bb(),this.la,this.ma,(this.la+this.ta)/2,(this.ma+this.ra)/2,this.b.wb.O,a.Oa[c]);a.mc(b)}};c.prototype.Ib=function(a,b,d,c){var h=this.b.devicePixelRatio;this.b.Xf&&(a*=h,b*=h);var h=this.b.Mp,e=this.b.Np,h=(this.ob.scrollX-
h)*this.ee+h,e=(this.ob.scrollY-e)*this.fe+e,m=h,n=e,g=1/this.nc(!c);c?(m-=this.b.H*g/2,n-=this.b.G*g/2):(m-=this.b.width*g/2,n-=this.b.height*g/2);m+=a*g;n+=b*g;b=this.bb();0!==b&&(m-=h,n-=e,a=Math.cos(b),b=Math.sin(b),c=m*a-n*b,n=n*a+m*b,m=c+h,n+=e);return d?m:n};c.prototype.eb=function(a,b,d){var c=this.b.Mp,h=this.b.Np,c=(this.ob.scrollX-c)*this.ee+c,e=(this.ob.scrollY-h)*this.fe+h,h=c,m=e,n=this.bb();if(0!==n){a-=c;b-=e;var g=Math.cos(-n),n=Math.sin(-n),l=a*g-b*n;b=b*g+a*n;a=l+c;b+=e}c=1/this.nc(!1);
h-=this.b.H*c/2;m-=this.b.G*c/2;h=(a-h)/c;return d?h:(b-m)/c};c.prototype.Lb=function(){var a,b,d,c={s:this.scale,a:this.j,vl:this.la,vt:this.ma,vr:this.ta,vb:this.ra,v:this.visible,bc:this.ad,t:this.kd,px:this.ee,py:this.fe,o:this.opacity,zr:this.se,fx:[],cg:this.Ug,instances:[]};a=0;for(b=this.K.length;a<b;a++)d=this.K[a],c.fx.push({name:d.name,active:d.La,params:this.Oa[d.index]});return c};c.prototype.rc=function(a){var b,d,c;this.scale=a.s;this.j=a.a;this.la=a.vl;this.ma=a.vt;this.ta=a.vr;this.ra=
a.vb;this.visible=a.v;this.ad=a.bc;this.kd=a.t;this.ee=a.px;this.fe=a.py;this.opacity=a.o;this.se=a.zr;this.Ug=a.cg||[];Ba(this.Gc,this.tq);var h=new ba;b=0;for(c=this.Ug.length;b<c;++b)h.add(this.Ug[b]);d=b=0;for(c=this.Gc.length;b<c;++b)h.contains(this.Gc[b][2])||(this.Gc[d]=this.Gc[b],++d);za(this.Gc,d);d=a.fx;b=0;for(c=d.length;b<c;b++)if(a=this.hl(d[b].name))a.La=d[b].active,this.Oa[a.index]=d[b].params;this.ld();this.e.sort(e);this.Gf=!0};$b=c})();
(function(){function g(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function e(a,b){return a.index-b.index}function c(a){var b,d,c,h;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(e);a.length>=I.length&&(I.length=a.length+1);I[a.length]||(I[a.length]=[]);h=I[a.length];b=0;for(d=h.length;b<d;b++)if(c=h[b],g(a,c))return c;h.push(a);return a}
function l(a,b){this.b=a;this.Dq={};this.ho={};this.sl=!1;this.yo=new ba;this.Uk=[];this.Bk=[];this.name=b[0];var d=b[1];this.Fe=[];var c,h;c=0;for(h=d.length;c<h;c++)this.Ao(d[c],null,this.Fe)}function q(a){this.type=a;this.e=[];this.Y=[];this.Aa=!0}function p(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.Ve=[];this.wo=this.kk=this.Qm=this.yl=this.group=this.sq=!1;this.Db=[];this.Zc=[];this.Wc=[];this.ih="";this.Vf=this.yl=this.group=!1;this.yi=null;d[1]&&(this.ih=d[1][1].toLowerCase(),
this.group=!0,this.yl=!!d[1][0],this.yi=[],this.Vf=this.yl,this.b.Lf.push(this),this.b.jh[this.ih]=this);this.fd=d[2];this.X=d[4];this.group||(this.b.Nn[this.X.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var h=new ac(this,c[a]);h.index=a;this.Db.push(h);this.An(h.type)}c=d[6];a=0;for(b=c.length;a<b;a++)h=new bc(this,c[a]),h.index=a,this.Zc.push(h);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Ao(d[a],this,this.Wc);this.ij=!1;this.Db.length&&(this.ij=null==this.Db[0].type&&
this.Db[0].tb==K.prototype.g.gn)}function m(a,b){var d,c,h;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ic))for(d=0,c=a.kc.length;d<c;d++)h=a.kc[d],a!==h&&-1===b.indexOf(h)&&b.push(h)}function b(a,b){this.Bc=a;this.sheet=a.sheet;this.b=a.b;this.S=[];this.Qa=[];this.Da={};this.index=-1;this.Lg=!1;this.tb=this.b.ue(b[1]);this.trigger=0<b[3];this.fo=2===b[3];this.Ad=b[4];this.Bl=b[5];this.Hu=b[6];this.X=b[7];this.b.Be[this.X.toString()]=this;-1===b[0]?(this.type=null,this.kb=this.Dm,this.$e=null,this.bd=-1):
(this.type=this.b.A[b[0]],this.kb=this.Hu?this.Av:this.Cm,b[2]?(this.$e=this.type.Xi(b[2]),this.bd=this.type.gl(b[2])):(this.$e=null,this.bd=-1),this.Bc.parent&&this.Bc.parent.Xj());this.fo&&(this.kb=this.Bv);if(10===b.length){var d,c,h=b[9];d=0;for(c=h.length;d<c;d++){var f=new cc(this,h[d]);this.S.push(f)}this.Qa.length=h.length}}function d(a,b){this.Bc=a;this.sheet=a.sheet;this.b=a.b;this.S=[];this.Qa=[];this.Da={};this.index=-1;this.Lg=!1;this.tb=this.b.ue(b[1]);-1===b[0]?(this.type=null,this.kb=
this.Dm,this.$e=null,this.bd=-1):(this.type=this.b.A[b[0]],this.kb=this.Cm,b[2]?(this.$e=this.type.Xi(b[2]),this.bd=this.type.gl(b[2])):(this.$e=null,this.bd=-1));this.X=b[3];this.b.we[this.X.toString()]=this;if(6===b.length){var d,c,h=b[5];d=0;for(c=h.length;d<c;d++){var f=new cc(this,h[d]);this.S.push(f)}this.Qa.length=h.length}}function h(){y++;S.length===y&&S.push(new dc);return S[y]}function a(a,b){this.Sc=a;this.Bc=a.Bc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.vd=null;this.le=0;this.get=
null;this.Vn=0;this.ob=null;this.key=0;this.object=null;this.index=0;this.ki=this.Ef=this.ki=this.Ef=this.ko=this.mf=this.li=null;this.Yc=!1;var d,c,h;switch(b[0]){case 0:case 7:this.vd=new ec(this,b[1]);this.le=0;this.get=this.fu;break;case 1:this.vd=new ec(this,b[1]);this.le=0;this.get=this.gu;break;case 5:this.vd=new ec(this,b[1]);this.le=0;this.get=this.ku;break;case 3:case 8:this.Vn=b[1];this.get=this.du;break;case 6:this.ob=this.b.Rl[b[1]];this.get=this.lu;break;case 9:this.key=b[1];this.get=
this.ju;break;case 4:this.object=this.b.A[b[1]];this.get=this.mu;this.Bc.An(this.object);this.Sc instanceof bc?this.Bc.Xj():this.Bc.parent&&this.Bc.parent.Xj();break;case 10:this.index=b[1];a.type&&a.type.L?(this.get=this.hu,this.Yc=!0):this.get=this.iu;break;case 11:this.li=b[1];this.mf=null;this.get=this.eu;break;case 2:case 12:this.ko=b[1];this.get=this.cu;break;case 13:for(this.get=this.nu,this.Ef=[],this.ki=[],d=1,c=b.length;d<c;d++)h=new cc(this.Sc,b[d]),this.Ef.push(h),this.ki.push(0)}}function f(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.name=d[1];this.sk=d[2];this.xl=d[3];this.vh=!!d[4];this.hj=!!d[5];this.X=d[6];this.b.Jg[this.X.toString()]=this;this.data=this.xl;this.parent?(this.xf=this.vh||this.hj?-1:this.b.Mv++,this.b.ls.push(this)):(this.xf=-1,this.b.ks.push(this))}function t(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.lh=null;this.tu=d[1];this.La=!0}function k(){this.vq=[];this.reset(null)}var I=[];l.prototype.toString=function(){return this.name};
l.prototype.Ao=function(a,b,d){switch(a[0]){case 0:a=new fc(this,b,a);if(a.fd)for(d.push(a),d=0,b=a.Db.length;d<b;d++)a.Db[d].trigger&&this.Bo(a,d);else a.Io()?this.Bo(a,0):d.push(a);break;case 1:a=new Xb(this,b,a);d.push(a);break;case 2:a=new gc(this,b,a),d.push(a)}};l.prototype.Ua=function(){var a,b;a=0;for(b=this.Fe.length;a<b;a++)this.Fe[a].Ua(a<b-1&&this.Fe[a+1].ij)};l.prototype.Wm=function(){z(this.Uk);z(this.Bk);this.yn(this);z(this.Bk)};l.prototype.yn=function(a){var b,d,c,h,f=a.Uk,e=a.Bk,
k=this.yo.Xe();b=0;for(d=k.length;b<d;++b)c=k[b],h=c.lh,!c.La||a===h||-1<e.indexOf(h)||(e.push(h),h.yn(a),f.push(h))};l.prototype.kb=function(a){this.b.Wx||(this.sl=!0,a||(this.b.Hl=!0));var b,d;b=0;for(d=this.Fe.length;b<d;b++){var c=this.Fe[b];c.kb();this.b.Ok(c.Ba);this.b.Ie&&this.b.Bb()}a||(this.b.Hl=!1)};l.prototype.Bo=function(a,b){a.fd||this.b.mk.push(a);var d,c,h=a.Db[b],f;h.type?f=h.type.name:f="system";var e=(d=h.fo)?this.ho:this.Dq;e[f]||(e[f]=[]);f=e[f];e=h.tb;if(d){if(h.S.length&&(h=
h.S[0],1===h.type&&2===h.vd.type)){h=h.vd.value.toLowerCase();d=0;for(c=f.length;d<c;d++)if(f[d].method==e){d=f[d].Xg;d[h]?d[h].push([a,b]):d[h]=[[a,b]];return}d={};d[h]=[[a,b]];f.push({method:e,Xg:d})}}else{d=0;for(c=f.length;d<c;d++)if(f[d].method==e){f[d].Xg.push([a,b]);return}sc&&e===sc.prototype.g.Jf?f.unshift({method:e,Xg:[[a,b]]}):f.push({method:e,Xg:[[a,b]]})}};Nb=l;q.prototype.rl=function(){return this.Aa?this.type.e.length:this.e.length};q.prototype.cd=function(){return this.Aa?this.type.e:
this.e};q.prototype.Qh=function(a){a&&(a.b.Jb().lc.fd?(this.Aa&&(z(this.e),Ba(this.Y,a.type.e),this.Aa=!1),a=this.Y.indexOf(a),-1!==a&&(this.e.push(this.Y[a]),this.Y.splice(a,1))):(this.Aa=!1,z(this.e),this.e[0]=a))};sb=q;window._c2hh_="01C5C0EE1A9BF0A1A0FFE8B1B00CBCF7767AE4E3";p.prototype.Ua=function(a){var b,d=this.parent;if(this.group)for(this.kk=!0;d;){if(!d.group){this.kk=!1;break}d=d.parent}this.Qm=!this.Io()&&(!this.parent||this.parent.group&&this.parent.kk);this.wo=!!a;this.Ve=this.Ba.slice(0);
for(d=this.parent;d;){a=0;for(b=d.Ba.length;a<b;a++)this.js(d.Ba[a]);d=d.parent}this.Ba=c(this.Ba);this.Ve=c(this.Ve);a=0;for(b=this.Db.length;a<b;a++)this.Db[a].Ua();a=0;for(b=this.Zc.length;a<b;a++)this.Zc[a].Ua();a=0;for(b=this.Wc.length;a<b;a++)this.Wc[a].Ua(a<b-1&&this.Wc[a+1].ij)};p.prototype.Fv=function(a){if(this.Vf!==!!a){this.Vf=!!a;var b;a=0;for(b=this.yi.length;a<b;++a)this.yi[a].Iq();0<b&&this.b.na.lf&&this.b.na.lf.Wm()}};p.prototype.An=function(a){m(a,this.Ba)};p.prototype.js=function(a){m(a,
this.Ve)};p.prototype.Xj=function(){this.sq=!0;this.parent&&this.parent.Xj()};p.prototype.Io=function(){return this.Db.length?this.Db[0].trigger:!1};p.prototype.kb=function(){var a,b,d=!1,c=this.b,h=this.b.Jb();h.lc=this;var f=this.Db;this.ij||(h.Xk=!1);if(this.fd){0===f.length&&(d=!0);h.jc=0;for(a=f.length;h.jc<a;h.jc++)b=f[h.jc],b.trigger||(b=b.kb())&&(d=!0);(h.tf=d)&&this.Bm()}else{h.jc=0;for(a=f.length;h.jc<a;h.jc++)if(b=f[h.jc].kb(),!b){h.tf=!1;this.Qm&&c.Ie&&c.Bb();return}h.tf=!0;this.Bm()}this.bt(h)};
p.prototype.bt=function(a){a.tf&&this.wo&&(a.Xk=!0);this.Qm&&this.b.Ie&&this.b.Bb()};p.prototype.yv=function(a){this.b.Jb().lc=this;this.Db[a].kb()&&(this.Bm(),this.b.Jb().tf=!0)};p.prototype.Bm=function(){var a=this.b.Jb(),b;a.cc=0;for(b=this.Zc.length;a.cc<b;a.cc++)if(this.Zc[a.cc].kb())return;this.Zp()};p.prototype.vv=function(){var a=this.b.Jb(),b;for(b=this.Zc.length;a.cc<b;a.cc++)if(this.Zc[a.cc].kb())return;this.Zp()};p.prototype.Zp=function(){if(this.Wc.length){var a,b,d,c,h=this.Wc.length-
1;this.b.um(this);if(this.sq)for(a=0,b=this.Wc.length;a<b;a++)d=this.Wc[a],(c=!this.kk||!this.group&&a<h)&&this.b.tm(d.Ba),d.kb(),c?this.b.vg(d.Ba):this.b.Ok(d.Ba);else for(a=0,b=this.Wc.length;a<b;a++)this.Wc[a].kb();this.b.Qp()}};p.prototype.zv=function(){var a=this.b.Jb();a.lc=this;var b=!1,d;a.jc=0;for(d=this.Db.length;a.jc<d;a.jc++)if(this.Db[a.jc].kb())b=!0;else if(!this.fd)return!1;return this.fd?b:!0};p.prototype.zu=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Db[b].type===
a.type)return!1;return!0};fc=p;b.prototype.Ua=function(){var a,b,d;a=0;for(b=this.S.length;a<b;a++)d=this.S[a],d.Ua(),d.Yc&&(this.Lg=!0)};b.prototype.Bv=function(){return!0};b.prototype.Dm=function(){var a,b;a=0;for(b=this.S.length;a<b;a++)this.Qa[a]=this.S[a].get();return Va(this.tb.apply(this.b.Hd,this.Qa),this.Bl)};b.prototype.Av=function(){var a,b;a=0;for(b=this.S.length;a<b;a++)this.Qa[a]=this.S[a].get();a=this.tb.apply(this.$e?this.$e:this.type,this.Qa);this.type.xe();return a};b.prototype.Cm=
function(){var a,b,d,c,h,f,e,k,m=this.type,g=m.qa(),l=this.Bc.fd&&!this.trigger;b=0;var q=m.Ic,y=m.L,p=m.Td,t=this.bd,I=-1<t,S=this.Lg,J=this.S,E=this.Qa,D=this.Bl,w=this.tb,F;if(S)for(b=0,h=J.length;b<h;++b)f=J[b],f.Yc||(E[b]=f.get(0));else for(b=0,h=J.length;b<h;++b)E[b]=J[b].get(0);if(g.Aa){z(g.e);z(g.Y);F=m.e;a=0;for(c=F.length;a<c;++a){k=F[a];if(S)for(b=0,h=J.length;b<h;++b)f=J[b],f.Yc&&(E[b]=f.get(a));I?(b=0,y&&(b=k.type.Rf[p]),b=w.apply(k.P[t+b],E)):b=w.apply(k,E);(e=Va(b,D))?g.e.push(k):l&&
g.Y.push(k)}m.finish&&m.finish(!0);g.Aa=!1;m.xe();return g.rl()}d=0;F=(e=l&&!this.Bc.zu(this))?g.Y:g.e;var A=!1;a=0;for(c=F.length;a<c;++a){k=F[a];if(S)for(b=0,h=J.length;b<h;++b)f=J[b],f.Yc&&(E[b]=f.get(a));I?(b=0,y&&(b=k.type.Rf[p]),b=w.apply(k.P[t+b],E)):b=w.apply(k,E);if(Va(b,D))if(A=!0,e){if(g.e.push(k),q)for(b=0,h=k.siblings.length;b<h;b++)f=k.siblings[b],f.type.qa().e.push(f)}else{F[d]=k;if(q)for(b=0,h=k.siblings.length;b<h;b++)f=k.siblings[b],f.type.qa().e[d]=f;d++}else if(e){F[d]=k;if(q)for(b=
0,h=k.siblings.length;b<h;b++)f=k.siblings[b],f.type.qa().Y[d]=f;d++}else if(l&&(g.Y.push(k),q))for(b=0,h=k.siblings.length;b<h;b++)f=k.siblings[b],f.type.qa().Y.push(f)}za(F,d);if(q)for(y=m.kc,a=0,c=y.length;a<c;a++)k=y[a].qa(),e?za(k.Y,d):za(k.e,d);d=A;if(e&&!A)for(a=0,c=g.e.length;a<c;a++){k=g.e[a];if(S)for(b=0,h=J.length;b<h;b++)f=J[b],f.Yc&&(E[b]=f.get(a));b=I?w.apply(k.P[t],E):w.apply(k,E);if(Va(b,D)){A=!0;break}}m.finish&&m.finish(d||l);return l?A:g.rl()};ac=b;d.prototype.Ua=function(){var a,
b,d;a=0;for(b=this.S.length;a<b;a++)d=this.S[a],d.Ua(),d.Yc&&(this.Lg=!0)};d.prototype.Dm=function(){var a=this.b,b,d,c=this.S,h=this.Qa;b=0;for(d=c.length;b<d;++b)h[b]=c[b].get();return this.tb.apply(a.Hd,h)};d.prototype.Cm=function(){var a=this.type,b=this.bd,d=a.Td,c=this.Lg,h=this.S,f=this.Qa,e=this.tb,k=a.qa().cd(),a=a.L,m=-1<b,g,l,q,y,p,t;if(c)for(l=0,y=h.length;l<y;++l)p=h[l],p.Yc||(f[l]=p.get(0));else for(l=0,y=h.length;l<y;++l)f[l]=h[l].get(0);g=0;for(q=k.length;g<q;++g){t=k[g];if(c)for(l=
0,y=h.length;l<y;++l)p=h[l],p.Yc&&(f[l]=p.get(g));m?(l=0,a&&(l=t.type.Rf[d]),e.apply(t.P[b+l],f)):e.apply(t,f)}return!1};bc=d;var S=[],y=-1;a.prototype.Ua=function(){var a,b;if(11===this.type)this.mf=this.b.qo(this.li,this.Bc.parent);else if(13===this.type)for(a=0,b=this.Ef.length;a<b;a++)this.Ef[a].Ua();this.vd&&this.vd.Ua()};a.prototype.Nu=function(a){this.Yc||!a||a.Ha.$j||(this.Yc=!0)};a.prototype.jq=function(){this.Yc=!0};a.prototype.fu=function(a){this.le=a||0;a=h();this.vd.get(a);y--;return a.data};
a.prototype.gu=function(a){this.le=a||0;a=h();this.vd.get(a);y--;return ka(a.data)?a.data:""};a.prototype.mu=function(){return this.object};a.prototype.du=function(){return this.Vn};a.prototype.ku=function(a){this.le=a||0;a=h();this.vd.get(a);y--;return a.nb()?this.b.dh(a.data):this.b.ll(a.data)};a.prototype.lu=function(){return this.ob};a.prototype.ju=function(){return this.key};a.prototype.iu=function(){return this.index};a.prototype.hu=function(a){a=a||0;var b=this.Sc.type,d=null,d=b.qa(),c=d.cd();
if(c.length)d=c[a%c.length].type;else if(d.Y.length)d=d.Y[a%d.Y.length].type;else if(b.e.length)d=b.e[a%b.e.length].type;else return 0;return this.index+d.Oi[b.Td]};a.prototype.eu=function(){return this.mf};a.prototype.cu=function(){return this.ko};a.prototype.nu=function(){var a,b;a=0;for(b=this.Ef.length;a<b;a++)this.ki[a]=this.Ef[a].get();return this.ki};cc=a;f.prototype.Ua=function(){this.Ba=c(this.Ba)};f.prototype.Df=function(a){var b=this.b.po();this.parent&&!this.vh&&b?(this.xf>=b.length&&
(b.length=this.xf+1),b[this.xf]=a):this.data=a};f.prototype.gh=function(){var a=this.b.po();return!this.parent||this.vh||!a||this.hj?this.data:this.xf>=a.length||"undefined"===typeof a[this.xf]?this.xl:a[this.xf]};f.prototype.kb=function(){!this.parent||this.vh||this.hj||this.Df(this.xl)};Xb=f;t.prototype.toString=function(){return"include:"+this.lh.toString()};t.prototype.Ua=function(){this.lh=this.b.Zk[this.tu];this.sheet.yo.add(this);this.Ba=c(this.Ba);for(var a=this.parent;a;)a.group&&a.yi.push(this),
a=a.parent;this.Iq()};t.prototype.kb=function(){this.parent&&this.b.Uh(this.b.A);this.lh.sl||this.lh.kb(!0);this.parent&&this.b.vg(this.b.A)};t.prototype.Iq=function(){for(var a=this.parent;a;){if(a.group&&!a.Vf){this.La=!1;return}a=a.parent}this.La=!0};gc=t;k.prototype.reset=function(a){this.lc=a;this.cc=this.jc=0;z(this.vq);this.Xk=this.tf=!1};Wb=k})();
(function(){function g(c,b){this.Sc=c;this.b=c.b;this.type=b[0];this.get=[this.xt,this.pt,this.Gt,this.Jt,this.et,this.Ht,this.Bt,this.mt,this.At,this.Ft,this.ft,this.Et,this.nt,this.Ct,this.yt,this.zt,this.qt,this.tt,this.lt,this.It,this.Dt,this.ut,this.kt,this.ot][this.type];var d=null;this.be=this.S=this.Qa=this.tb=this.hk=this.second=this.first=this.value=null;this.bd=-1;this.dd=null;this.Lq=-1;this.mf=this.li=null;this.yg=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new ec(c,b[1]);break;case 18:this.first=new ec(c,b[1]);this.second=new ec(c,b[2]);this.hk=new ec(c,b[3]);break;case 19:this.tb=this.b.ue(b[1]);this.tb!==K.prototype.Pa.random&&this.tb!==K.prototype.Pa.vs||this.Sc.jq();this.Qa=[];this.S=[];3===b.length?(d=b[2],this.Qa.length=d.length+1):this.Qa.length=1;break;case 20:this.be=this.b.A[b[1]];this.bd=-1;this.tb=this.b.ue(b[2]);this.yg=b[3];tc&&this.tb===tc.prototype.Pa.Rq&&this.Sc.jq();b[4]?this.dd=new ec(c,b[4]):this.dd=null;this.Qa=[];this.S=[];6===
b.length?(d=b[5],this.Qa.length=d.length+1):this.Qa.length=1;break;case 21:this.be=this.b.A[b[1]];this.yg=b[2];b[3]?this.dd=new ec(c,b[3]):this.dd=null;this.Lq=b[4];break;case 22:this.be=this.b.A[b[1]];this.be.Xi(b[2]);this.bd=this.be.gl(b[2]);this.tb=this.b.ue(b[3]);this.yg=b[4];b[5]?this.dd=new ec(c,b[5]):this.dd=null;this.Qa=[];this.S=[];7===b.length?(d=b[6],this.Qa.length=d.length+1):this.Qa.length=1;break;case 23:this.li=b[1],this.mf=null}this.Sc.Nu(this.be);4<=this.type&&17>=this.type&&(this.first=
new ec(c,b[1]),this.second=new ec(c,b[2]));if(d){var h,a;h=0;for(a=d.length;h<a;h++)this.S.push(new ec(c,d[h]))}}function e(){++p;q.length===p&&q.push(new dc);return q[p]}function c(c,b,d){var h,a;h=0;for(a=c.length;h<a;++h)c[h].get(d),b[h+1]=d.data}function l(c,b){this.type=c||hc.If;this.data=b||0;this.Af=null;this.type==hc.If&&(this.data=Math.floor(this.data))}g.prototype.Ua=function(){23===this.type&&(this.mf=this.Sc.b.qo(this.li,this.Sc.Bc.parent));this.first&&this.first.Ua();this.second&&this.second.Ua();
this.hk&&this.hk.Ua();this.dd&&this.dd.Ua();if(this.S){var c,b;c=0;for(b=this.S.length;c<b;c++)this.S[c].Ua()}};var q=[],p=-1;g.prototype.It=function(m){var b=this.S,d=this.Qa;d[0]=m;m=e();c(b,d,m);--p;this.tb.apply(this.b.Hd,d)};g.prototype.Dt=function(m){var b=this.be,d=this.Qa,h=this.S,a=this.dd,f=this.tb,g=this.Sc.le,k=b.qa(),l=k.cd();if(!l.length)if(k.Y.length)l=k.Y;else{this.yg?m.Wb(""):m.xa(0);return}d[0]=m;m.Af=b;m=e();c(h,d,m);a&&(a.get(m),m.nb()&&(g=m.data,l=b.e));--p;b=l.length;if(g>=b||
g<=-b)g%=b;0>g&&(g+=b);f.apply(l[g],d)};g.prototype.kt=function(m){var b=this.be,d=this.Qa,h=this.S,a=this.dd,f=this.bd,g=this.tb,k=this.Sc.le,l=b.qa(),q=l.cd();if(!q.length)if(l.Y.length)q=l.Y;else{this.yg?m.Wb(""):m.xa(0);return}d[0]=m;m.Af=b;m=e();c(h,d,m);a&&(a.get(m),m.nb()&&(k=m.data,q=b.e));--p;h=q.length;if(k>=h||k<=-h)k%=h;0>k&&(k+=h);k=q[k];q=0;b.L&&(q=k.type.Rf[b.Td]);g.apply(k.P[f+q],d)};g.prototype.ut=function(c){var b=this.dd,d=this.be,h=this.Lq,a=this.Sc.le,f=d.qa(),g=f.cd();if(!g.length)if(f.Y.length)g=
f.Y;else{this.yg?c.Wb(""):c.xa(0);return}if(b){f=e();b.get(f);if(f.nb()){a=f.data;g=d.e;0!==g.length&&(a%=g.length,0>a&&(a+=g.length));a=d.kl(a);d=a.cb[h];ka(d)?c.Wb(d):c.C(d);--p;return}--p}b=g.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=g[a];g=0;d.L&&(g=a.type.Oi[d.Td]);d=a.cb[h+g];ka(d)?c.Wb(d):c.C(d)};g.prototype.xt=function(c){c.type=hc.If;c.data=this.value};g.prototype.pt=function(c){c.type=hc.Hf;c.data=this.value};g.prototype.Gt=function(c){c.type=hc.String;c.data=this.value};g.prototype.Jt=function(c){this.first.get(c);
c.nb()&&(c.data=-c.data)};g.prototype.et=function(c){this.first.get(c);var b=e();this.second.get(b);c.nb()&&b.nb()&&(c.data+=b.data,b.Zf()&&c.jg());--p};g.prototype.Ht=function(c){this.first.get(c);var b=e();this.second.get(b);c.nb()&&b.nb()&&(c.data-=b.data,b.Zf()&&c.jg());--p};g.prototype.Bt=function(c){this.first.get(c);var b=e();this.second.get(b);c.nb()&&b.nb()&&(c.data*=b.data,b.Zf()&&c.jg());--p};g.prototype.mt=function(c){this.first.get(c);var b=e();this.second.get(b);c.nb()&&b.nb()&&(c.data/=
b.data,c.jg());--p};g.prototype.At=function(c){this.first.get(c);var b=e();this.second.get(b);c.nb()&&b.nb()&&(c.data%=b.data,b.Zf()&&c.jg());--p};g.prototype.Ft=function(c){this.first.get(c);var b=e();this.second.get(b);c.nb()&&b.nb()&&(c.data=Math.pow(c.data,b.data),b.Zf()&&c.jg());--p};g.prototype.ft=function(c){this.first.get(c);var b=e();this.second.get(b);b.bg()||c.bg()?this.ht(c,b):this.gt(c,b);--p};g.prototype.ht=function(c,b){c.bg()&&b.bg()?this.jt(c,b):this.it(c,b)};g.prototype.jt=function(c,
b){c.data+=b.data};g.prototype.it=function(c,b){c.bg()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Wb(c.data.toString()+b.data)};g.prototype.gt=function(c,b){c.xa(c.data&&b.data?1:0)};g.prototype.Et=function(c){this.first.get(c);var b=e();this.second.get(b);c.nb()&&b.nb()&&(c.data||b.data?c.xa(1):c.xa(0));--p};g.prototype.lt=function(c){this.first.get(c);c.data?this.second.get(c):this.hk.get(c)};g.prototype.nt=function(c){this.first.get(c);var b=e();this.second.get(b);c.xa(c.data===b.data?
1:0);--p};g.prototype.Ct=function(c){this.first.get(c);var b=e();this.second.get(b);c.xa(c.data!==b.data?1:0);--p};g.prototype.yt=function(c){this.first.get(c);var b=e();this.second.get(b);c.xa(c.data<b.data?1:0);--p};g.prototype.zt=function(c){this.first.get(c);var b=e();this.second.get(b);c.xa(c.data<=b.data?1:0);--p};g.prototype.qt=function(c){this.first.get(c);var b=e();this.second.get(b);c.xa(c.data>b.data?1:0);--p};g.prototype.tt=function(c){this.first.get(c);var b=e();this.second.get(b);c.xa(c.data>=
b.data?1:0);--p};g.prototype.ot=function(c){var b=this.mf.gh();ia(b)?c.C(b):c.Wb(b)};ec=g;l.prototype.Zf=function(){return this.type===hc.Hf};l.prototype.nb=function(){return this.type===hc.If||this.type===hc.Hf};l.prototype.bg=function(){return this.type===hc.String};l.prototype.jg=function(){this.Zf()||(this.bg()&&(this.data=parseFloat(this.data)),this.type=hc.Hf)};l.prototype.xa=function(c){this.type=hc.If;this.data=Math.floor(c)};l.prototype.C=function(c){this.type=hc.Hf;this.data=c};l.prototype.Wb=
function(c){this.type=hc.String;this.data=c};l.prototype.kq=function(c){ia(c)?(this.type=hc.Hf,this.data=c):ka(c)?(this.type=hc.String,this.data=c.toString()):(this.type=hc.If,this.data=0)};dc=l;hc={If:0,Hf:1,String:2}})();function K(g){this.b=g;this.ac=[]}
K.prototype.Lb=function(){var g={},e,c,l,q,p,m,b,d;g.waits=[];var h=g.waits,a;e=0;for(c=this.ac.length;e<c;e++){m=this.ac[e];a={t:m.time,st:m.qq,s:m.Jm,ev:m.Pf.X,sm:[],sols:{}};m.Pf.Zc[m.cc]&&(a.act=m.Pf.Zc[m.cc].X);l=0;for(q=m.Ba.length;l<q;l++)a.sm.push(m.Ba[l].X);for(p in m.Mb)if(m.Mb.hasOwnProperty(p)){b=this.b.A[parseInt(p,10)];d={sa:m.Mb[p].Tj,insts:[]};l=0;for(q=m.Mb[p].Vd.length;l<q;l++)d.insts.push(m.Mb[p].Vd[l].uid);a.sols[b.X.toString()]=d}h.push(a)}return g};
K.prototype.rc=function(g){g=g.waits;var e,c,l,q,p,m,b,d,h,a,f;z(this.ac);e=0;for(c=g.length;e<c;e++)if(m=g[e],d=this.b.Nn[m.ev.toString()]){h=-1;l=0;for(q=d.Zc.length;l<q;l++)if(d.Zc[l].X===m.act){h=l;break}if(-1!==h){b={Mb:{},Ba:[],Vk:!1};b.time=m.t;b.qq=m.st||"";b.Jm=!!m.s;b.Pf=d;b.cc=h;l=0;for(q=m.sm.length;l<q;l++)(d=this.b.Zi(m.sm[l]))&&b.Ba.push(d);for(p in m.sols)if(m.sols.hasOwnProperty(p)&&(d=this.b.Zi(parseInt(p,10)))){h=m.sols[p];a={Tj:h.sa,Vd:[]};l=0;for(q=h.insts.length;l<q;l++)(f=this.b.eh(h.insts[l]))&&
a.Vd.push(f);b.Mb[d.index.toString()]=a}this.ac.push(b)}}};
(function(){function g(){}function e(){}function c(){}var l=K.prototype;g.prototype.Yq=function(){return!0};g.prototype.kn=function(){return!0};g.prototype.tr=function(){return!0};g.prototype.Vq=function(c,b,d){return ic(c.gh(),b,d)};g.prototype.fr=function(c){return(c=this.b.jh[c.toLowerCase()])&&c.Vf};g.prototype.gn=function(){var c=this.b.Jb();return c.Xk?!1:!c.tf};g.prototype.ln=function(){return!0};g.prototype.lr=function(){return!0};g.prototype.wk=function(){return!0};g.prototype.qn=function(){return!0};
g.prototype.ur=function(){return!0};g.prototype.si=function(){return!0};g.prototype.Pq=function(c,b,d){return Oa(B(c),B(d))<=B(b)};g.prototype.er=function(c,b){return Ra(B(c),B(b))};g.prototype.dr=function(c,b,d){c=Ma(c);b=Ma(b);d=Ma(d);return Ra(d,b)?Ra(c,b)&&!Ra(c,d):!(!Ra(c,b)&&Ra(c,d))};l.g=new g;e.prototype.$q=function(c){this.b.wh||this.b.Pg||(this.b.Pg=c)};e.prototype.Tr=function(c,b){0===c.sk?ia(b)?c.Df(b):c.Df(parseFloat(b)):1===c.sk&&c.Df(b.toString())};e.prototype.Oq=function(c,b){0===
c.sk?ia(b)?c.Df(c.gh()+b):c.Df(c.gh()+parseFloat(b)):1===c.sk&&c.Df(c.gh()+b.toString())};var q=[],p=[];e.prototype.Zr=function(c){if(!(0>c)){var b,d,h,a=this.b.Jb(),f;q.length?f=q.pop():f={Mb:{},Ba:[]};f.Vk=!1;f.time=this.b.wb.O+c;f.qq="";f.Jm=!1;f.Pf=a.lc;f.cc=a.cc+1;c=0;for(b=this.b.A.length;c<b;c++)h=this.b.A[c],d=h.qa(),d.Aa&&-1===a.lc.Ba.indexOf(h)||(f.Ba.push(h),h=void 0,p.length?h=p.pop():h={Vd:[]},h.Tj=!1,h.Tj=d.Aa,Ba(h.Vd,d.e),f.Mb[c.toString()]=h);this.ac.push(f);return!0}};l.U=new e;c.prototype["int"]=
function(c,b){ka(b)?(c.xa(parseInt(b,10)),isNaN(c.data)&&(c.data=0)):c.xa(b)};c.prototype["float"]=function(c,b){ka(b)?(c.C(parseFloat(b)),isNaN(c.data)&&(c.data=0)):c.C(b)};c.prototype.random=function(c,b,d){void 0===d?c.C(Math.random()*b):c.C(Math.random()*(d-b)+b)};c.prototype.sqrt=function(c,b){c.C(Math.sqrt(b))};c.prototype.abs=function(c,b){c.C(Math.abs(b))};c.prototype.round=function(c,b){c.xa(Math.round(b))};c.prototype.floor=function(c,b){c.xa(Math.floor(b))};c.prototype.ceil=function(c,
b){c.xa(Math.ceil(b))};c.prototype.sin=function(c,b){c.C(Math.sin(B(b)))};c.prototype.cos=function(c,b){c.C(Math.cos(B(b)))};c.prototype.tan=function(c,b){c.C(Math.tan(B(b)))};c.prototype.asin=function(c,b){c.C(Ia(Math.asin(b)))};c.prototype.acos=function(c,b){c.C(Ia(Math.acos(b)))};c.prototype.atan=function(c,b){c.C(Ia(Math.atan(b)))};c.prototype.exp=function(c,b){c.C(Math.exp(b))};c.prototype.log10=function(c,b){c.C(Math.log(b)/Math.LN10)};c.prototype.max=function(c){var b=arguments[1];"number"!==
typeof b&&(b=0);var d,h,a;d=2;for(h=arguments.length;d<h;d++)a=arguments[d],"number"===typeof a&&b<a&&(b=a);c.C(b)};c.prototype.min=function(c){var b=arguments[1];"number"!==typeof b&&(b=0);var d,h,a;d=2;for(h=arguments.length;d<h;d++)a=arguments[d],"number"===typeof a&&b>a&&(b=a);c.C(b)};c.prototype.Rd=function(c){c.C(this.b.Rd)};c.prototype.Fg=function(c){c.C(this.b.Fg)};c.prototype.time=function(c){c.C(this.b.wb.O)};c.prototype.ne=function(c){c.xa(this.b.ne)};c.prototype.yj=function(c){c.xa(this.b.yj)};
c.prototype.dl=function(c){c.xa(this.b.dl)};c.prototype.j=function(c,b,d,h,a){c.C(Ia(Na(b,d,h,a)))};c.prototype.Iu=function(c,b,d,h){c.C(Wa(b,d,h))};c.prototype.left=function(c,b,d){c.Wb(ka(b)?b.substr(0,d):"")};c.prototype.right=function(c,b,d){c.Wb(ka(b)?b.substr(b.length-d):"")};c.prototype.replace=function(c,b,d,h){ka(b)&&ka(d)&&ka(h)?c.Wb(b.replace(new RegExp(fb(d),"gi"),h)):c.Wb(ka(b)?b:"")};c.prototype.trim=function(c,b){c.Wb(ka(b)?b.trim():"")};c.prototype.vs=function(c){var b=ra(Math.random()*
(arguments.length-1));c.kq(arguments[b+1])};c.prototype.Qk=function(c){c.C(this.b.Qk/1E3)};c.prototype.Ch=function(c){c.C(this.b.Ch)};l.Pa=new c;l.xv=function(){var c,b,d,h,a,f,e=this.b.Jb();c=0;for(d=this.ac.length;c<d;c++){h=this.ac[c];if(-1===h.time){if(!h.Jm)continue}else if(h.time>this.b.wb.O)continue;e.lc=h.Pf;e.cc=h.cc;e.jc=0;for(b in h.Mb)h.Mb.hasOwnProperty(b)&&(a=this.b.A[parseInt(b,10)].qa(),f=h.Mb[b],a.Aa=f.Tj,Ba(a.e,f.Vd),a=f,z(a.Vd),p.push(a));h.Pf.vv();this.b.Ok(h.Ba);h.Vk=!0}b=c=0;
for(d=this.ac.length;c<d;c++)h=this.ac[c],this.ac[b]=h,h.Vk?(Ya(h.Mb),z(h.Ba),q.push(h)):b++;za(this.ac,b)}})();
(function(){rb=function(e,c){var g=e[1],q=e[3],p=e[4],m=e[5],b=e[6],d=e[7],h=e[8];c.g||(c.g={});c.U||(c.U={});c.Pa||(c.Pa={});var a=c.g,f=c.U,t=c.Pa;q&&(a.pw=function(a,b){return ic(this.x,a,b)},a.qw=function(a,b){return ic(this.y,a,b)},a.xw=function(){var a=this.n;this.mb();var b=this.rb;return!(b.right<a.la||b.bottom<a.ma||b.left>a.ta||b.top>a.ra)},a.yw=function(){this.mb();var a=this.rb,b=this.b.na;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Mw=function(a,b,d){var c=this.qa(),
h=c.cd();if(!h.length)return!1;var f=h[0],e=f,g=Ta(f.x,f.y,b,d),l,m,q;l=1;for(m=h.length;l<m;l++)if(f=h[l],q=Ta(f.x,f.y,b,d),0===a&&q<g||1===a&&q>g)g=q,e=f;c.Qh(e);return!0},f.ux=function(a){this.x!==a&&(this.x=a,this.Ia())},f.vx=function(a){this.y!==a&&(this.y=a,this.Ia())},f.kx=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ia()},f.lx=function(a,b){var d=a.Yt(this);if(d){var c;d.jl?(c=d.jl(b,!0),d=d.jl(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.Ia()}},
f.Ew=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Ia())},f.Dw=function(a,b){0!==b&&(this.x+=Math.cos(B(a))*b,this.y+=Math.sin(B(a))*b,this.Ia())},t.cs=function(a){a.C(this.x)},t.ds=function(a){a.C(this.y)},t.Rd=function(a){a.C(this.b.bh(this))});p&&(a.ow=function(a,b){return ic(this.width,a,b)},a.kw=function(a,b){return ic(this.height,a,b)},f.un=function(a){this.width!==a&&(this.width=a,this.Ia())},f.gx=function(a){this.height!==a&&(this.height=a,this.Ia())},f.mx=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ia()},t.$r=function(a){a.C(this.width)},t.sw=function(a){a.C(this.height)},t.hw=function(a){this.mb();a.C(this.rb.left)},t.jw=function(a){this.mb();a.C(this.rb.top)},t.iw=function(a){this.mb();a.C(this.rb.right)},t.gw=function(a){this.mb();a.C(this.rb.bottom)});m&&(a.Pq=function(a,b){return Oa(this.j,B(b))<=B(a)},a.er=function(a){return Ra(this.j,B(a))},a.dr=function(a,b){var d=Ma(a),c=Ma(b),h=Ka(this.j);return Ra(c,
d)?Ra(h,d)&&!Ra(h,c):!(!Ra(h,d)&&Ra(h,c))},f.Xw=function(a){a=B(Ja(a));isNaN(a)||this.j===a||(this.j=a,this.Ia())},f.Tw=function(a){0===a||isNaN(a)||(this.j+=B(a),this.j=Ka(this.j),this.Ia())},f.Uw=function(a){0===a||isNaN(a)||(this.j-=B(a),this.j=Ka(this.j),this.Ia())},f.Vw=function(a,b){var d=Pa(this.j,B(b),B(a));isNaN(d)||this.j===d||(this.j=d,this.Ia())},f.Ww=function(a,b,d){a=Pa(this.j,Math.atan2(d-this.y,b-this.x),B(a));isNaN(a)||this.j===a||(this.j=a,this.Ia())},f.ox=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.j===d||(this.j=d,this.Ia())},t.fw=function(a){a.C(La(this.j))});g||(a.Uq=function(a,b,d){return ic(this.cb[a],b,d)},a.vw=function(a){return this.cb[a]},a.Nw=function(a,b){var d=this.qa(),c=d.cd();if(!c.length)return!1;var h=c[0],f=h,e=h.cb[b],g,l,m;g=1;for(l=c.length;g<l;g++)if(h=c[g],m=h.cb[b],0===a&&m<e||1===a&&m>e)e=m,f=h;d.Qh(f);return!0},a.Lw=function(a){var b,d,c,h,f;if(this.b.Tt().Bl){f=this.qa();if(f.Aa)for(f.Aa=!1,z(f.e),z(f.Y),c=this.e,b=0,d=c.length;b<d;b++)h=
c[b],h.uid===a?f.Y.push(h):f.e.push(h);else{c=b=0;for(d=f.e.length;b<d;b++)h=f.e[b],f.e[c]=h,h.uid===a?f.Y.push(h):c++;za(f.e,c)}this.xe();return!!f.e.length}h=this.b.eh(a);if(!h)return!1;f=this.qa();if(!f.Aa&&-1===f.e.indexOf(h))return!1;if(this.L)for(a=h.type.Ea,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.Qh(h),this.xe(),!0}else if(h.type===this)return f.Qh(h),this.xe(),!0;return!1},a.hn=function(){return!0},a.mr=function(){return!0},f.ix=function(a,b){var d=this.cb;ia(d[a])?d[a]=ia(b)?b:parseFloat(b):
ka(d[a])&&(d[a]=ka(b)?b:b.toString())},f.ew=function(a,b){var d=this.cb;ia(d[a])?d[a]=ia(b)?d[a]+b:d[a]+parseFloat(b):ka(d[a])&&(d[a]=ka(b)?d[a]+b:d[a]+b.toString())},f.xx=function(a,b){var d=this.cb;ia(d[a])&&(d[a]=ia(b)?d[a]-b:d[a]-parseFloat(b))},f.Yw=function(a,b){this.cb[a]=b?1:0},f.zx=function(a){this.cb[a]=1-this.cb[a]},f.Wq=function(){this.b.te(this)},f.ir||(f.ir=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.pj(this,b,!0);this.nd&&this.nd();if(this.P)for(a=0,b=this.P.length;a<
b;++a)d=this.P[a],d.nd&&d.nd()}),t.rw=function(a){var b=a.Af.e.length,d,c,h;d=0;for(c=this.b.rd.length;d<c;d++)h=this.b.rd[d],a.Af.L?0<=h.type.Ea.indexOf(a.Af)&&b++:h.type===a.Af&&b++;a.xa(b)},t.Pw=function(a){a.xa(a.Af.qa().cd().length)},t.Bx=function(a){a.xa(this.uid)},t.uw=function(a){a.xa(this.hh())},t.Qq||(t.Qq=function(a){a.Wb(JSON.stringify(this.b.Em(this,!0)))}));b&&(a.Aw=function(){return this.visible},f.tx=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ga=!0)},a.lw=function(a,
b){return ic(lb(100*this.opacity),a,b)},f.Rr=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},t.Opacity=function(a){a.C(lb(100*this.opacity))});d&&(a.ww=function(a){return a?this.n===a:!1},a.Ow=function(a){var b=this.qa(),d=b.cd();if(!d.length)return!1;var c=d[0],h=c,f,e;f=1;for(e=d.length;f<e;f++)if(c=d[f],0===a){if(c.n.index>h.n.index||c.n.index===h.n.index&&c.xd()>h.xd())h=c}else if(c.n.index<h.n.index||c.n.index===h.n.index&&c.xd()<h.xd())h=c;b.Qh(h);return!0},
f.Hw=function(){var a=this.n,b=a.e;b.length&&b[b.length-1]===this||(a.xg(this,!1),a.Ng(this,!1),this.b.ga=!0)},f.Fw=function(){var a=this.n,b=a.e;b.length&&b[0]===this||(a.xg(this,!1),a.hv(this),this.b.ga=!0)},f.Gw=function(a){a&&a!=this.n&&(this.n.xg(this,!0),this.n=a,a.Ng(this,!0),this.b.ga=!0)},f.Dx=function(a,b){var d=0===a;if(b){var c=b.ro(this);c&&c.uid!==this.uid&&(this.n.index!==c.n.index&&(this.n.xg(this,!0),this.n=c.n,c.n.Ng(this,!0)),this.n.Ou(this,c,d),this.b.ga=!0)}},t.Cw=function(a){a.xa(this.n.up)},
t.Bw=function(a){a.Wb(this.n.name)},t.Cx=function(a){a.xa(this.xd())});h&&(f.bx=function(a,b){if(this.b.q){var d=this.type.il(b);if(!(0>d)){var c=1===a;this.ve[d]!==c&&(this.ve[d]=c,this.ld(),this.b.ga=!0)}}},f.cx=function(a,b,d){if(this.b.q){var c=this.type.il(a);0>c||(a=this.type.K[c],c=this.Oa[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.q.bu(a.$a,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.La&&(this.b.ga=!0))))}})};Ob=function(){this.Kk=this.Ek=!0;this.type.Fn=!0;this.b.ga=!0;var e,c,g=this.Fk;e=0;for(c=
g.length;e<c;++e)g[e](this);this.n.Mc&&this.mb()};Pb=function(e){e&&this.Fk.push(e)};Rb=function(){if(this.Ek){var e=this.rb,c=this.ze;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Rb*this.width,-this.Sb*this.height);this.j?(e.offset(-this.x,-this.y),c.lq(e,this.j),c.offset(this.x,this.y),c.On(e)):c.Zj(e);e.normalize();this.Ek=!1;this.Yv()}};var g=new ua(0,0,0,0);Sb=function(){if(this.n.Mc){var e=this.n.Ab,c=this.rb;g.set(e.Ob(c.left),e.Pb(c.top),e.Ob(c.right),e.Pb(c.bottom));
this.Tb.Wg(g)||(this.Tb.right<this.Tb.left?e.update(this,null,g):e.update(this,this.Tb,g),this.Tb.Sg(g),this.n.jd=!0)}};Tb=function(){if(this.Kk&&this.Qg){this.mb();var e=this.type.Un,c=this.rb;g.set(e.Ob(c.left),e.Pb(c.top),e.Ob(c.right),e.Pb(c.bottom));this.Ce.Wg(g)||(this.Ce.right<this.Ce.left?e.update(this,null,g):e.update(this,this.Ce,g),this.Ce.Sg(g),this.Kk=!1)}};Qb=function(e,c){return this.rb.Oc(e,c)&&this.ze.Oc(e,c)?this.Aq?this.Xx(e,c):this.qd&&!this.qd.Fu()?(this.qd.ss(this.width,this.height,
this.j),this.qd.Oc(e-this.x,c-this.y)):!0:!1};Kb=function(){this.type.nk();return this.pf};Ub=function(){this.n.Zm();return this.md};Vb=function(){z(this.ja);var e,c,g,q=!0;e=0;for(c=this.ve.length;e<c;e++)this.ve[e]&&(g=this.type.K[e],this.ja.push(g),g.hd||(q=!1));this.Kq=!!this.ja.length;this.ke=q};Lb=function(){return"Inst"+this.Up};ub=function(e){if(e&&e.Ic&&e.type!=this){var c,g,q;c=0;for(g=e.siblings.length;c<g;c++)if(q=e.siblings[c],q.type==this)return q}e=this.qa().cd();return e.length?e[0]:
null};vb=function(e){var c=this.qa().cd();return c.length?c[e.hh()%c.length]:null};tb=function(){if(this.Cg&&!this.L){var e,c;e=0;for(c=this.e.length;e<c;e++)this.e[e].pf=e;var g=e,q=this.b.rd;e=0;for(c=q.length;e<c;++e)q[e].type===this&&(q[e].pf=g++);this.Cg=!1}};Eb=function(e){if(e<this.e.length)return this.e[e];e-=this.e.length;var c=this.b.rd,g,q;g=0;for(q=c.length;g<q;++g)if(c[g].type===this){if(0===e)return c[g];--e}return null};wb=function(){return this.me[this.sd]};xb=function(){this.sd++;
this.sd===this.me.length?this.me.push(new sb(this)):(this.me[this.sd].Aa=!0,z(this.me[this.sd].Y))};yb=function(){this.sd++;this.sd===this.me.length&&this.me.push(new sb(this));var e=this.me[this.sd],c=this.me[this.sd-1];c.Aa?e.Aa=!0:(e.Aa=!1,Ba(e.e,c.e));z(e.Y)};zb=function(){this.sd--};Ab=function(e){var c,g,q,p,m,b=0;if(!this.L)for(c=0,g=this.Ea.length;c<g;c++)for(m=this.Ea[c],q=0,p=m.Ma.length;q<p;q++){if(e===m.Ma[q].name)return this.Da.lastBehIndex=b,m.Ma[q];b++}c=0;for(g=this.Ma.length;c<g;c++){if(e===
this.Ma[c].name)return this.Da.lastBehIndex=b,this.Ma[c];b++}return null};Bb=function(e){return this.Xi(e)?this.Da.lastBehIndex:-1};Cb=function(e){var c,g;c=0;for(g=this.K.length;c<g;c++)if(this.K[c].name===e)return c;return-1};Db=function(){if(this.Ic&&!this.L){var e,c,g,q,p,m,b;this.nk();m=this.qa();var d=m.Aa,h=(e=this.b.Jb())&&e.lc&&e.lc.fd;e=0;for(c=this.kc.length;e<c;e++)if(p=this.kc[e],p!==this&&(p.nk(),b=p.qa(),b.Aa=d,!d)){z(b.e);g=0;for(q=m.e.length;g<q;++g)b.e[g]=p.kl(m.e[g].pf);if(h)for(z(b.Y),
g=0,q=m.Y.length;g<q;++g)b.Y[g]=p.kl(m.Y[g].pf)}}};Fb=function(){return"Type"+this.X};ic=function(e,c,g){if("undefined"===typeof e||"undefined"===typeof g)return!1;switch(c){case 0:return e===g;case 1:return e!==g;case 2:return e<g;case 3:return e<=g;case 4:return e>g;case 5:return e>=g;default:return!1}}})();var qc={};function uc(g){this.b=g}
(function(){function g(a){-1===ob.indexOf(a)&&ob.push(a)}function e(a){var b=a.k,d;try{d=b.play()}catch(c){g(a);return}d?d.catch(function(){g(a)}):Kc&&!L.Zd&&g(a)}function c(){var a,b,d,c;Lc||Gb||!w||(l(),"running"===w.state&&(Lc=!0));var h=ob.slice(0);z(ob);if(!ca)for(a=0,b=h.length;a<b;++a)d=h[a],d.Xb||d.pc||(c=d.k.play())&&c.catch(function(){g(d)})}function l(){"suspended"===w.state&&w.resume&&w.resume();if(w.createBuffer){var a=w.createBuffer(1,220,22050),b=w.createBufferSource();b.buffer=a;b.connect(w.destination);
d(b)}}function q(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return Y.hasOwnProperty(a)&&Y[a].length?Y[a][0].Fc():w.destination}function m(){return w.createGain?w.createGain():w.createGainNode()}function b(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function d(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function h(a,b,d,c){a.start?a.start(c||0,b):a.noteGrainOn(c||0,b,d-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function f(a,
b,d,c,h,f){this.type="filter";this.zb=[a,b,d,c,h,f];this.aa=m();this.J=m();this.J.gain.value=f;this.I=m();this.I.gain.value=1-f;this.Va=w.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?a:Yc[a];this.Va.frequency.value=b;this.Va.detune&&(this.Va.detune.value=d);this.Va.Q.value=c;this.Va.gain.value=h;this.aa.connect(this.Va);this.aa.connect(this.I);this.Va.connect(this.J)}function t(a,d,c){this.type="delay";this.zb=[a,d,c];this.aa=m();this.J=m();this.J.gain.value=c;this.I=m();this.I.gain.value=
1-c;this.Kh=m();this.Pc=b(a);this.Pc.delayTime.value=a;this.Gi=m();this.Gi.gain.value=d;this.aa.connect(this.Kh);this.aa.connect(this.I);this.Kh.connect(this.J);this.Kh.connect(this.Pc);this.Pc.connect(this.Gi);this.Gi.connect(this.Kh)}function k(a,b,d,c){this.type="convolve";this.zb=[b,d,c];this.aa=m();this.J=m();this.J.gain.value=d;this.I=m();this.I.gain.value=1-d;this.df=w.createConvolver();a&&(this.df.normalize=b,this.df.buffer=a);this.aa.connect(this.df);this.aa.connect(this.I);this.df.connect(this.J)}
function I(a,c,h,f,e){this.type="flanger";this.zb=[a,c,h,f,e];this.aa=m();this.I=m();this.I.gain.value=1-e/2;this.J=m();this.J.gain.value=e/2;this.Pi=m();this.Pi.gain.value=f;this.Pc=b(a+c);this.Pc.delayTime.value=a;this.qb=w.createOscillator();this.qb.frequency.value=h;this.uc=m();this.uc.gain.value=c;this.aa.connect(this.Pc);this.aa.connect(this.I);this.Pc.connect(this.J);this.Pc.connect(this.Pi);this.Pi.connect(this.Pc);this.qb.connect(this.uc);this.uc.connect(this.Pc.delayTime);d(this.qb)}function S(a,
b,c,h,f,e){this.type="phaser";this.zb=[a,b,c,h,f,e];this.aa=m();this.I=m();this.I.gain.value=1-e/2;this.J=m();this.J.gain.value=e/2;this.Va=w.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?7:"allpass";this.Va.frequency.value=a;this.Va.detune&&(this.Va.detune.value=b);this.Va.Q.value=c;this.qb=w.createOscillator();this.qb.frequency.value=f;this.uc=m();this.uc.gain.value=h;this.aa.connect(this.Va);this.aa.connect(this.I);this.Va.connect(this.J);this.qb.connect(this.uc);this.uc.connect(this.Va.frequency);
d(this.qb)}function y(a){this.type="gain";this.zb=[a];this.ea=m();this.ea.gain.value=a}function n(a,b){this.type="tremolo";this.zb=[a,b];this.ea=m();this.ea.gain.value=1-b/2;this.qb=w.createOscillator();this.qb.frequency.value=a;this.uc=m();this.uc.gain.value=b/2;this.qb.connect(this.uc);this.uc.connect(this.ea.gain);d(this.qb)}function v(a,b){this.type="ringmod";this.zb=[a,b];this.aa=m();this.J=m();this.J.gain.value=b;this.I=m();this.I.gain.value=1-b;this.Yh=m();this.Yh.gain.value=0;this.qb=w.createOscillator();
this.qb.frequency.value=a;this.qb.connect(this.Yh.gain);d(this.qb);this.aa.connect(this.Yh);this.aa.connect(this.I);this.Yh.connect(this.J)}function V(a,b,d,c,h){this.type="distortion";this.zb=[a,b,d,c,h];this.aa=m();this.Nj=m();this.Mj=m();this.Ev(d,Math.pow(10,c/20));this.J=m();this.J.gain.value=h;this.I=m();this.I.gain.value=1-h;this.uk=w.createWaveShaper();this.Ei=new Float32Array(65536);this.Qt(a,b);this.uk.Ei=this.Ei;this.aa.connect(this.Nj);this.aa.connect(this.I);this.Nj.connect(this.uk);
this.uk.connect(this.Mj);this.Mj.connect(this.J)}function N(a,b,d,c,h){this.type="compressor";this.zb=[a,b,d,c,h];this.ea=w.createDynamicsCompressor();try{this.ea.threshold.value=a,this.ea.knee.value=b,this.ea.ratio.value=d,this.ea.attack.value=c,this.ea.release.value=h}catch(f){}}function G(a,b){this.type="analyser";this.zb=[a,b];this.ea=w.createAnalyser();this.ea.fftSize=a;this.ea.smoothingTimeConstant=b;this.Ot=new Float32Array(this.ea.frequencyBinCount);this.oq=new Uint8Array(a);this.Ph=0}function C(){this.ka=
null;this.rj=0}function u(a,b){this.src=a;this.V=D;this.zd=b;this.vi=!1;var d=this;this.kg=this.sg=null;this.tg=[];this.Uj=0;this.bn=this.Ni=this.uq=this.Ij=!1;1===D&&b&&!pb&&(this.V=0,this.sg=m());this.Ld=this.ca=null;var c;switch(this.V){case 0:this.ca=new Audio;this.ca.crossOrigin="anonymous";this.ca.addEventListener("canplaythrough",function(){d.bn=!0});1===D&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.uq=!0,this.ca.addEventListener("canplay",function(){!d.kg&&d.ca&&
(d.kg=w.createMediaElementSource(d.ca),d.kg.connect(d.sg))}));this.ca.autoplay=!1;this.ca.Sx="auto";this.ca.src=a;break;case 1:L.fj?L.jo(a,function(a){d.Ld=a;d.Zn()},function(){d.Ni=!0}):(c=new XMLHttpRequest,c.open("GET",a,!0),c.responseType="arraybuffer",c.onload=function(){d.Ld=c.response;d.Zn()},c.onerror=function(){d.Ni=!0},c.send());break;case 2:this.ca=!0;break;case 3:this.ca=!0}}function x(a,b){var d=this;this.tag=b;this.Xb=this.wd=!0;this.src=a.src;this.buffer=a;this.V=D;this.zd=a.zd;this.playbackRate=
1;this.Wf=!0;this.pc=this.Kc=!1;this.Ub=0;this.uh=this.$f=this.Ad=!1;this.volume=1;this.km=function(a){if(!d.pc&&!d.Kc){var b=this;b||(b=a.target);b===d.ti&&(d.Wf=!0,d.Xb=!0,J=d.tag,L.trigger(uc.prototype.g.qi,Aa))}};this.ti=null;this.Yf=1===P&&!this.zd||2===P;this.lg=1;this.startTime=this.Yf?L.wb.O:L.qe.O;this.Za=this.ab=null;this.Cd=!1;this.xb=null;this.Jp=this.Ip=this.Hp=this.Gp=this.Lp=this.Kp=0;this.k=null;var c=!1;1!==this.V||0!==this.buffer.V||this.buffer.uq||(this.V=0);switch(this.V){case 0:this.zd?
(this.k=a.ca,c=!a.vi,a.vi=!0):(this.k=new Audio,this.k.crossOrigin="anonymous",this.k.autoplay=!1,this.k.src=a.ca.src,c=!0);c&&this.k.addEventListener("ended",function(){J=d.tag;d.Xb=!0;L.trigger(uc.prototype.g.qi,Aa)});break;case 1:this.ab=m();this.ab.connect(p(b));1===this.buffer.V?a.ca&&(this.k=w.createBufferSource(),this.k.buffer=a.ca,this.k.connect(this.ab)):(this.k=this.buffer.ca,this.buffer.sg.connect(this.ab),this.buffer.vi||(this.buffer.vi=!0,this.buffer.ca.addEventListener("ended",function(){J=
d.tag;d.Xb=!0;L.trigger(uc.prototype.g.qi,Aa)})));break;case 2:this.k=new window.Media(E+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Wf=!0,d.Xb=!0,J=d.tag,L.trigger(uc.prototype.g.qi,Aa))});break;case 3:this.k=!0}}function H(a,b){var d=a.rf()?1:0,c=b.rf()?1:0;return d===c?0:d<c?1:-1}function M(a,b){z(Da);if(a.length){var d,c,h;d=0;for(c=A.length;d<c;d++)h=A[d],mb(a,h.tag)&&Da.push(h);b&&Da.sort(H)}else O&&!O.of()&&(z(Da),Da[0]=O)}function Q(a,b){Y.hasOwnProperty(a)?Y[a].push(b):
Y[a]=[b];var d,c,h,f,e=w.destination;if(Y.hasOwnProperty(a)&&(h=Y[a],h.length))for(e=h[0].Fc(),d=0,c=h.length;d<c;d++)f=h[d],d+1===c?f.Nc(w.destination):f.Nc(h[d+1].Fc());M(a);d=0;for(c=Da.length;d<c;d++)Da[d].ov(e);Qa&&Hb===a&&(Qa.disconnect(),Qa.connect(e))}function ja(){}function fa(){}function U(){}var r=uc.prototype;r.Ka=function(a){this.Ha=a;this.b=a.b};r.Ka.prototype.fa=function(){};var L=null,Aa=null,J="",E="",D=0,w=null,F=[],A=[],O=null,la=!1,P=0,ca=!1,W=1,Ca=0,Ua=0,Gb=!1,Ib=1,Jb=1,Mc=10,
Nc=1E4,Oc=1,Qa=null,Hb="",Kc=!1,ob=[],pb=!1,Lc=!1;document.addEventListener("pointerup",c,!0);document.addEventListener("touchend",c,!0);document.addEventListener("click",c,!0);document.addEventListener("keydown",c,!0);document.addEventListener("gamepadconnected",c,!0);var Y={},Yc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.Nc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};f.prototype.remove=function(){this.aa.disconnect();
this.Va.disconnect();this.J.disconnect();this.I.disconnect()};f.prototype.Fc=function(){return this.aa};t.prototype.Nc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};t.prototype.remove=function(){this.aa.disconnect();this.Kh.disconnect();this.Pc.disconnect();this.Gi.disconnect();this.J.disconnect();this.I.disconnect()};t.prototype.Fc=function(){return this.aa};k.prototype.Nc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};
k.prototype.remove=function(){this.aa.disconnect();this.df.disconnect();this.J.disconnect();this.I.disconnect()};k.prototype.Fc=function(){return this.aa};I.prototype.Nc=function(a){this.I.disconnect();this.I.connect(a);this.J.disconnect();this.J.connect(a)};I.prototype.remove=function(){this.aa.disconnect();this.Pc.disconnect();this.qb.disconnect();this.uc.disconnect();this.I.disconnect();this.J.disconnect();this.Pi.disconnect()};I.prototype.Fc=function(){return this.aa};S.prototype.Nc=function(a){this.I.disconnect();
this.I.connect(a);this.J.disconnect();this.J.connect(a)};S.prototype.remove=function(){this.aa.disconnect();this.Va.disconnect();this.qb.disconnect();this.uc.disconnect();this.I.disconnect();this.J.disconnect()};S.prototype.Fc=function(){return this.aa};y.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};y.prototype.remove=function(){this.ea.disconnect()};y.prototype.Fc=function(){return this.ea};n.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};n.prototype.remove=
function(){this.qb.disconnect();this.uc.disconnect();this.ea.disconnect()};n.prototype.Fc=function(){return this.ea};v.prototype.Nc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};v.prototype.remove=function(){this.qb.disconnect();this.Yh.disconnect();this.aa.disconnect();this.J.disconnect();this.I.disconnect()};v.prototype.Fc=function(){return this.aa};V.prototype.Ev=function(a,b){.01>a&&(a=.01);this.Nj.gain.value=a;this.Mj.gain.value=Math.pow(1/a,.6)*b};
V.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};V.prototype.Qt=function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),h=0,f=0;32768>f;++f)h=f/32768,h=this.shape(h,d,c),this.Ei[32768+f]=h,this.Ei[32768-f-1]=-h};V.prototype.Nc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};V.prototype.remove=function(){this.aa.disconnect();this.Nj.disconnect();this.uk.disconnect();this.Mj.disconnect();
this.J.disconnect();this.I.disconnect()};V.prototype.Fc=function(){return this.aa};N.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};N.prototype.remove=function(){this.ea.disconnect()};N.prototype.Fc=function(){return this.ea};G.prototype.lb=function(){this.ea.getFloatFrequencyData(this.Ot);this.ea.getByteTimeDomainData(this.oq);for(var a=this.ea.fftSize,b=0,d=this.Ph=0,c=0;b<a;b++)c=(this.oq[b]-128)/128,0>c&&(c=-c),this.Ph<c&&(this.Ph=c),d+=c*c;this.Ph=q(this.Ph);q(Math.sqrt(d/
a))};G.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};G.prototype.remove=function(){this.ea.disconnect()};G.prototype.Fc=function(){return this.ea};C.prototype.Zh=function(a){this.ka=a};C.prototype.aj=function(){return!!this.ka};C.prototype.lb=function(){};u.prototype.pv=function(){var a,b,d,c;d=a=0;for(b=A.length;a<b;++a)c=A[a],A[d]=c,c.buffer===this?c.stop():++d;A.length=d;this.kg&&(this.kg.disconnect(),this.kg=null);this.sg&&(this.sg.disconnect(),this.sg=null);this.Ld=this.ca=
null};u.prototype.Zn=function(){if(!this.ca&&this.Ld){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Ld,function(b){a.ca=b;a.Ld=null;var d,c,h;if(ha(a.Kj)||ca)ha(a.Ai)||(d=a.Ai.df,d.normalize=a.tp,d.buffer=b);else if(a.tg.length){d=0;for(c=a.tg.length;d<c;d++){b=a.tg[d];h=new x(a,b.yq);h.Hm(!0);if("undefined"!==typeof b.vp&&(b.ka=L.eh(b.vp),!b.ka))continue;if(b.ka){var f=Sa(b.ka.x,b.ka.y,-b.ka.n.bb(),Ca,Ua,!0),e=Sa(b.ka.x,b.ka.y,-b.ka.n.bb(),Ca,Ua,!1);h.Gm(f,e,Ia(b.ka.j-b.ka.n.bb()),b.tl,
b.cm,b.fm);h.Zh(b.ka)}else h.Gm(b.x,b.y,b.Kf,b.tl,b.cm,b.fm);h.play(a.Yl,a.an,a.Uj);a.Ij&&h.pause();A.push(h)}z(a.tg)}else h=new x(a,a.Kj||""),h.play(a.Yl,a.an,a.Uj),a.Ij&&h.pause(),A.push(h)},function(){a.Ni=!0});else if(this.ca=w.createBuffer(this.Ld,!1),this.Ld=null,ha(this.Kj)||ca)ha(this.Ai)||(b=this.Ai.df,b.normalize=this.tp,b.buffer=this.ca);else{var b=new x(this,this.Kj);b.play(this.Yl,this.an,this.Uj);this.Ij&&b.pause();A.push(b)}}};u.prototype.Fo=function(){switch(this.V){case 0:var a=4<=
this.ca.readyState;a&&(this.bn=!0);return a||this.bn;case 1:return!!this.Ld||!!this.ca;case 2:return!0;case 3:return!0}return!1};u.prototype.Au=function(){switch(this.V){case 0:return this.Fo();case 1:return!!this.ca;case 2:return!0;case 3:return!0}return!1};u.prototype.su=function(){switch(this.V){case 0:return!!this.ca.error;case 1:return this.Ni}return!1};x.prototype.of=function(){switch(this.V){case 0:return this.k.ended;case 1:return 1===this.buffer.V?!this.wd&&!this.Xb&&this.k.loop||this.pc?
!1:this.Wf:this.k.ended;case 2:return this.Wf;case 3:!0}return!0};x.prototype.ts=function(){return this.wd||this.Xb?!0:this.of()};x.prototype.Hm=function(a){1===D&&(!this.Cd&&a?this.ab&&(this.Za||(this.Za=w.createPanner(),this.Za.panningModel="number"===typeof this.Za.panningModel?Ib:["equalpower","HRTF","soundfield"][Ib],this.Za.distanceModel="number"===typeof this.Za.distanceModel?Jb:["linear","inverse","exponential"][Jb],this.Za.refDistance=Mc,this.Za.maxDistance=Nc,this.Za.rolloffFactor=Oc),this.ab.disconnect(),
this.ab.connect(this.Za),this.Za.connect(p(this.tag)),this.Cd=!0):this.Cd&&!a&&this.ab&&(this.Za.disconnect(),this.ab.disconnect(),this.ab.connect(p(this.tag)),this.Cd=!1))};x.prototype.Gm=function(a,b,d,c,h,f){this.Cd&&1===D&&(this.Za.setPosition(a,b,0),this.Za.setOrientation(Math.cos(B(d)),Math.sin(B(d)),0),this.Za.coneInnerAngle=c,this.Za.coneOuterAngle=h,this.Za.coneOuterGain=f,this.Kp=a,this.Lp=b,this.Gp=d,this.Hp=c,this.Ip=h,this.Jp=f)};x.prototype.Zh=function(a){this.Cd&&1===D&&(this.xb||(this.xb=
new C),this.xb.Zh(a))};x.prototype.lb=function(a){if(this.Cd&&1===D&&this.xb&&this.xb.aj()&&this.rf()){this.xb.lb(a);a=this.xb.ka;var b=Sa(a.x,a.y,-a.n.bb(),Ca,Ua,!0),d=Sa(a.x,a.y,-a.n.bb(),Ca,Ua,!1);this.Za.setPosition(b,d,0);b=0;"undefined"!==typeof this.xb.ka.j&&(b=a.j-a.n.bb(),this.Za.setOrientation(Math.cos(b),Math.sin(b),0))}};x.prototype.play=function(a,b,c,f){var g=this.k;this.Ad=a;this.volume=b;c=c||0;f=f||0;switch(this.V){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==b*W&&(g.volume=
b*W);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==c)try{g.currentTime=c}catch(k){}e(this);break;case 1:this.muted=!1;this.lg=1;if(1===this.buffer.V)this.ab.gain.value=b*W,this.wd||(this.k=w.createBufferSource(),this.k.buffer=this.buffer.ca,this.k.connect(this.ab)),this.k.onended=this.km,this.ti=this.k,this.k.loop=a,this.Wf=!1,0===c?d(this.k,f):h(this.k,c,this.He(),f);else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=b*W;if(g.currentTime!==c)try{g.currentTime=
c}catch(l){}e(this)}break;case 2:(!this.wd&&this.Xb||0!==c)&&g.seekTo(c);g.play();this.Wf=!1;break;case 3:L.ub?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Yf?L.wb.O:L.qe.O)-c;this.pc=this.Xb=this.wd=!1};x.prototype.stop=function(){switch(this.V){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.V?a(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:L.ub&&AppMobi.context.stopSound(this.src)}this.Xb=
!0;this.pc=!1};x.prototype.pause=function(){if(!(this.wd||this.Xb||this.of()||this.pc)){switch(this.V){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.V?(this.Ub=this.ml(!0),this.Ad&&(this.Ub=this.Ub%this.He()),this.pc=!0,a(this.k)):this.k.paused||this.k.pause();break;case 2:this.k.pause();break;case 3:L.ub&&AppMobi.context.stopSound(this.src)}this.pc=!0}};x.prototype.uv=function(){if(!(this.wd||this.Xb||this.of())&&this.pc){switch(this.V){case 0:e(this);break;case 1:1===this.buffer.V?
(this.k=w.createBufferSource(),this.k.buffer=this.buffer.ca,this.k.connect(this.ab),this.k.onended=this.km,this.ti=this.k,this.k.loop=this.Ad,this.ab.gain.value=W*this.volume*this.lg,this.ok(),this.startTime=(this.Yf?L.wb.O:L.qe.O)-this.Ub/(this.playbackRate||.001),h(this.k,this.Ub,this.He())):e(this);break;case 2:this.k.play();break;case 3:L.ub&&AppMobi.context.resumeSound(this.src)}this.pc=!1}};x.prototype.seek=function(a){if(!(this.wd||this.Xb||this.of()))switch(this.V){case 0:try{this.k.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.V)this.pc?this.Ub=a:(this.pause(),this.Ub=a,this.uv());else try{this.k.currentTime=a}catch(d){}break;case 3:L.ub&&AppMobi.context.seekSound(this.src,a)}};x.prototype.ov=function(a){1===this.V&&(this.Cd?(this.Za.disconnect(),this.Za.connect(a)):(this.ab.disconnect(),this.ab.connect(a)))};x.prototype.He=function(){var a=0;switch(this.V){case 0:"undefined"!==typeof this.k.duration&&(a=this.k.duration);break;case 1:a=this.buffer.ca.duration;break;case 2:a=this.k.getDuration();
break;case 3:L.ub&&(a=AppMobi.context.getDurationSound(this.src))}return a};x.prototype.ml=function(a){var b=this.He(),d=0;switch(this.V){case 0:"undefined"!==typeof this.k.currentTime&&(d=this.k.currentTime);break;case 1:if(1===this.buffer.V){if(this.pc)return this.Ub;d=(this.Yf?L.wb.O:L.qe.O)-this.startTime}else"undefined"!==typeof this.k.currentTime&&(d=this.k.currentTime);break;case 3:L.ub&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.Ad&&d>b&&(d=b);return d};
x.prototype.rf=function(){return!this.pc&&!this.wd&&!this.Xb&&!this.of()};x.prototype.Lv=function(){return!this.wd&&!this.Xb&&!this.of()};x.prototype.Wv=function(){var a=this.volume*W;isFinite(a)||(a=0);switch(this.V){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.V?this.ab.gain.value=a*this.lg:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};x.prototype.Ji=function(a){switch(this.V){case 0:this.k.muted!==!!a&&
(this.k.muted=!!a);break;case 1:1===this.buffer.V?(this.lg=a?0:1,this.ab.gain.value=W*this.volume*this.lg):this.k.muted!==!!a&&(this.k.muted=!!a)}};x.prototype.Gv=function(){this.$f=!0;this.Ji(this.$f||this.uh)};x.prototype.iq=function(a){this.uh=!!a;this.Ji(this.$f||this.uh)};x.prototype.ok=function(){var a=this.playbackRate;this.Yf&&(a*=L.Fg);switch(this.V){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.V?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=
a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};x.prototype.Jv=function(b){switch(this.V){case 0:b?this.rf()?(this.Kc=!0,this.k.pause()):this.Kc=!1:this.Kc&&(this.k.play(),this.Kc=!1);break;case 1:b?this.rf()?(this.Kc=!0,1===this.buffer.V?(this.Ub=this.ml(!0),this.Ad&&(this.Ub=this.Ub%this.He()),a(this.k)):this.k.pause()):this.Kc=!1:this.Kc&&(1===this.buffer.V?(this.k=w.createBufferSource(),this.k.buffer=this.buffer.ca,this.k.connect(this.ab),this.k.onended=this.km,this.ti=this.k,this.k.loop=
this.Ad,this.ab.gain.value=W*this.volume*this.lg,this.ok(),this.startTime=(this.Yf?L.wb.O:L.qe.O)-this.Ub/(this.playbackRate||.001),h(this.k,this.Ub,this.He())):this.k.play(),this.Kc=!1);break;case 2:b?this.rf()?(this.k.pause(),this.Kc=!0):this.Kc=!1:this.Kc&&(this.Kc=!1,this.k.play())}};r.ua=function(a){this.type=a;L=this.b=a.b;Aa=this;this.qc=null;this.Ah=-600;this.b.fj&&(pb=!0);!(this.b.dg||this.b.nh&&(this.b.Cl||this.b.bj))||this.b.dj||this.b.Xa||this.b.Do||pb||(Kc=!0);w=null;"undefined"!==typeof AudioContext?
(D=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,w=new webkitAudioContext);this.b.dg&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==D&&(this.b.oc&&"undefined"!==typeof window.Media?D=2:this.b.Eo&&(D=3));2===D&&(E=location.href,a=E.lastIndexOf("/"),-1<a&&(E=E.substr(0,a+1)),E=E.replace("file://",""));if(this.b.Bu&&this.b.Cu&&"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.te(this);else{if(this.b.ub)la=this.b.nh;else try{la=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.gj}catch(b){la=!1}this.b.jk(this)}};var va=r.ua.prototype;va.fa=function(){this.b.Mf=this;P=this.D[0];this.je=this.D[1];this.$u=0!==this.D[2];this.rp=0;Ib=this.D[3];Jb=this.D[4];this.Ah=-this.D[5];Mc=this.D[6];Nc=this.D[7];Oc=this.D[8];this.qc=new C;var a=this.b.H||this.b.width,b=this.b.G||this.b.height;1===D&&(w.listener.setPosition(a/2,b/2,this.Ah),w.listener.setOrientation(0,
0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Qa&&Qa.disconnect();Hb=b.toLowerCase();Qa=w.createMediaStreamSource(a);Qa.connect(p(Hb))});this.b.Bn(function(a){Aa.Vu(a)});var d=this;this.b.zn(function(a){d.hm(a)})};va.hm=function(a){var b,d,c;b=0;for(d=A.length;b<d;b++)c=A[b],c.xb&&c.xb.ka===a&&(c.xb.ka=null,c.Cd&&c.rf()&&c.Ad&&c.stop());this.qc.ka===a&&(this.qc.ka=null)};va.Lb=function(){var a={silent:ca,masterVolume:W,listenerZ:this.Ah,listenerUid:this.qc.aj()?this.qc.ka.uid:-1,playing:[],
effects:{}},b=a.playing,d,c,h,f,e,g;d=0;for(c=A.length;d<c;d++)h=A[d],!h.Lv()||3===this.je||h.zd&&1===this.je||!h.zd&&2===this.je||(f=h.ml(),h.Ad&&(f=f%h.He()),f={tag:h.tag,buffersrc:h.buffer.src,is_music:h.zd,playbackTime:f,volume:h.volume,looping:h.Ad,muted:h.$f,playbackRate:h.playbackRate,paused:h.pc,resume_position:h.Ub},h.Cd&&(f.pan={},g=f.pan,h.xb&&h.xb.aj()?g.objUid=h.xb.ka.uid:(g.x=h.Kp,g.y=h.Lp,g.a=h.Gp),g.ia=h.Hp,g.oa=h.Ip,g.og=h.Jp),b.push(f));b=a.effects;for(e in Y)if(Y.hasOwnProperty(e)){h=
[];d=0;for(c=Y[e].length;d<c;d++)h.push({type:Y[e][d].type,params:Y[e][d].zb});b[e]=h}return a};var $a=[];va.rc=function(a){var b=a.silent;W=a.masterVolume;this.Ah=a.listenerZ;this.qc.Zh(null);var d=a.listenerUid;-1!==d&&(this.qc.rj=d,$a.push(this.qc));var d=a.playing,c,h,e,g,l,m,q,p,r,u,w;if(3!==this.je)for(c=0,h=A.length;c<h;c++)r=A[c],r.zd&&1===this.je||(r.zd||2!==this.je)&&r.stop();for(l in Y)if(Y.hasOwnProperty(l))for(c=0,h=Y[l].length;c<h;c++)Y[l][c].remove();Ya(Y);for(l in a.effects)if(a.effects.hasOwnProperty(l))for(m=
a.effects[l],c=0,h=m.length;c<h;c++)switch(e=m[c].type,u=m[c].params,e){case "filter":Q(l,new f(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":Q(l,new t(u[0],u[1],u[2]));break;case "convolve":e=u[2];r=this.Wi(e,!1);r.ca?e=new k(r.ca,u[0],u[1],e):(e=new k(null,u[0],u[1],e),r.tp=u[0],r.Ai=e);Q(l,e);break;case "flanger":Q(l,new I(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":Q(l,new S(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":Q(l,new y(u[0]));break;case "tremolo":Q(l,new n(u[0],u[1]));break;
case "ringmod":Q(l,new v(u[0],u[1]));break;case "distortion":Q(l,new V(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":Q(l,new N(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":Q(l,new G(u[0],u[1]))}c=0;for(h=d.length;c<h;c++)3===this.je||(a=d[c],e=a.buffersrc,g=a.is_music,l=a.tag,m=a.playbackTime,q=a.looping,p=a.volume,w=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,g&&1===this.je)||!g&&2===this.je||((r=this.fl(e,l,g,q,p))?(r.Ub=a.resume_position,r.Hm(!!u),r.play(q,p,m),r.ok(),r.Wv(),r.Ji(r.$f||
r.uh),a.paused&&r.pause(),a.muted&&r.Gv(),r.Ji(r.$f||r.uh),u&&(-1!==w?(r.xb=r.xb||new C,r.xb.rj=w,$a.push(r.xb)):r.Gm(u.x,u.y,u.a,u.ia,u.oa,u.og))):(r=this.Wi(e,g),r.Uj=m,r.Ij=a.paused,u&&(-1!==w?r.tg.push({vp:w,tl:u.ia,cm:u.oa,fm:u.og,yq:l}):r.tg.push({x:u.x,y:u.y,Kf:u.a,tl:u.ia,cm:u.oa,fm:u.og,yq:l}))));if(b&&!ca){c=0;for(h=A.length;c<h;c++)A[c].iq(!0);ca=!0}else if(!b&&ca){c=0;for(h=A.length;c<h;c++)A[c].iq(!1);ca=!1}};va.nd=function(){var a,b,d,c;a=0;for(b=$a.length;a<b;a++)d=$a[a],c=this.b.eh(d.rj),
d.Zh(c),d.rj=-1,c&&(Ca=c.x,Ua=c.y);z($a)};va.Vu=function(a){if(!this.$u){!a&&w&&w.resume&&(w.resume(),Gb=!1);var b,d;b=0;for(d=A.length;b<d;b++)A[b].Jv(a);a&&w&&w.suspend&&(w.suspend(),Gb=!0)}};va.lb=function(){var a=this.b.Rd,b,d,c;b=0;for(d=A.length;b<d;b++)c=A[b],c.lb(a),0!==P&&c.ok();var h,f;for(h in Y)if(Y.hasOwnProperty(h))for(c=Y[h],b=0,d=c.length;b<d;b++)f=c[b],f.lb&&f.lb();1===D&&this.qc.aj()&&(this.qc.lb(a),Ca=this.qc.ka.x,Ua=this.qc.ka.y,w.listener.setPosition(this.qc.ka.x,this.qc.ka.y,
this.Ah))};var ab=[];va.Hv=function(a){var b,d,c,h,f,e=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],h=c[0],c=2*c[1],(f=4<h.length&&".ogg"===h.substr(h.length-4))&&la||!f&&!la)ab.push({filename:h,size:c,ka:null}),e+=c;return e};va.Nv=function(){var a,b,d,c;a=0;for(b=ab.length;a<b;++a)d=ab[a],c=this.b.Qi+d.filename,d.ka=this.Wi(c,!1)};va.Zt=function(){var a=0,b,d,c;b=0;for(d=ab.length;b<d;++b)c=ab[b],c.ka.Au()||c.ka.su()||this.b.Xa||this.b.bj?a+=c.size:c.ka.Fo()&&(a+=Math.floor(c.size/2));return a};va.qv=
function(){var a,b,d,c;d=a=0;for(b=F.length;a<b;++a)c=F[a],F[d]=c,c.zd?c.pv():++d;F.length=d};va.Wi=function(a,b){var d,c,h,f=null;d=0;for(c=F.length;d<c;d++)if(h=F[d],h.src===a){f=h;break}f||(pb&&b&&this.qv(),f=new u(a,b),F.push(f));return f};va.fl=function(a,b,d,c,h){var f,e,g;f=0;for(e=A.length;f<e;f++)if(g=A[f],g.src===a&&(g.ts()||d))return g.tag=b,g;a=this.Wi(a,d);if(!a.ca)return"<preload>"!==b&&(a.Kj=b,a.Yl=c,a.an=h),null;g=new x(a,b);A.push(g);return g};var Da=[];ja.prototype.qi=function(a){return mb(J,
a)};r.g=new ja;fa.prototype.Play=function(a,b,d,c){!ca&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1<d&&(d=1),O=this.fl(this.b.Qi+a[0]+(la?".ogg":".m4a"),c,a[1],0!==b,d))&&(O.Hm(!1),O.play(0!==b,d,0,this.rp),this.rp=0)};fa.prototype.Mr=function(a){if(!ca){var b=a[1];a=this.b.Qi+a[0]+(la?".ogg":".m4a");3===D?this.b.ub?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==D&&this.fl(a,"<preload>",b,!1)}};fa.prototype.Wr=function(a){M(a);var b;a=0;for(b=Da.length;a<b;a++)Da[a].stop()};
r.U=new fa;U.prototype.Xq=function(a,b){M(b,!0);Da.length?a.C(Da[0].He()):a.C(0)};r.Pa=new U})();function R(g){this.b=g}
(function(){function g(){p&&m&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(d){b.Uu(d)})}function e(){}function c(){}var l=R.prototype;l.Ka=function(b){this.Ha=b;this.b=b.b};var q=l.Ka.prototype;q.fa=function(){};var p=!1,m=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var b=document.createElement("script");b.onload=function(){p=!0;g()};b.src="offlineClient.js";document.head.appendChild(b)}});var b=null;
q.zp=function(){m=!0;g()};l.ua=function(b){this.type=b;this.b=b.b};q=l.ua.prototype;q.fa=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(R.prototype.g.Dr,d)});b=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(R.prototype.g.Ar,d)}),window.addEventListener("offline",function(){d.b.trigger(R.prototype.g.xr,d)}));this.b.ub||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(R.prototype.g.zk,
d)}),document.addEventListener("backbutton",function(){d.b.trigger(R.prototype.g.pi,d)}),document.addEventListener("menubutton",function(){d.b.trigger(R.prototype.g.mn,d)}),document.addEventListener("searchbutton",function(){d.b.trigger(R.prototype.g.Gr,d)}),document.addEventListener("tizenhwkey",function(b){var a;switch(b.keyName){case "back":a=d.b.trigger(R.prototype.g.pi,d);!a&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(a=d.b.trigger(R.prototype.g.mn,
d))||b.preventDefault()}}));this.b.gj&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){d.b.trigger(R.prototype.g.pi,d)&&(b.handled=!0)}):this.b.Jl&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!d.b.trigger(R.prototype.g.pi,d)});this.b.Bn(function(b){b?d.b.trigger(R.prototype.g.Br,d):d.b.trigger(R.prototype.g.Cr,d)});this.Ml="undefined"!==typeof window.is_scirra_arcade};q.Uu=function(b){b=b.data.type;
"downloading-update"===b?this.b.trigger(R.prototype.g.Jr,this):"update-ready"===b||"update-pending"===b?this.b.trigger(R.prototype.g.zk,this):"offline-ready"===b&&this.b.trigger(R.prototype.g.yr,this)};e.prototype.Ar=function(){return!0};e.prototype.xr=function(){return!0};e.prototype.zk=function(){return!0};e.prototype.Cr=function(){return!0};e.prototype.Br=function(){return!0};e.prototype.Dr=function(){return!0};e.prototype.pi=function(){return!0};e.prototype.mn=function(){return!0};e.prototype.Gr=
function(){return!0};e.prototype.Jr=function(){return!0};e.prototype.zk=function(){return!0};e.prototype.yr=function(){return!0};l.g=new e;c.prototype.br=function(b,c){this.b.Hc?CocoonJS.App.openURL(b):this.b.Qc?ejecta.openURL(b):this.b.Jl?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(b)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(b,{openExternal:!0}):this.b.oc?window.open(b,"_system"):this.Ml||this.b.Xa||(2!==c||this.Ml?1!==c||this.Ml?window.location=b:window.parent.location=
b:window.top.location=b)};c.prototype.Zq=function(b){try{eval&&eval(b)}catch(c){console&&console.error&&console.error("Error executing Javascript: ",c)}};l.U=new c;l.Pa=new function(){}})();function tc(g){this.b=g}
(function(){function g(){this.name="";this.Xh=0;this.zb=[]}function e(){b++;b===m.length&&m.push(new g);return m[b]}function c(){}function l(){}function q(){}var p=tc.prototype;p.Ka=function(b){this.Ha=b;this.b=b.b};p.Ka.prototype.fa=function(){};p.ua=function(b){this.type=b;this.b=b.b};var m=[],b=-1;p.ua.prototype.fa=function(){var d=this;window.c2_callFunction=function(c,a){var f,g,k,l=e();l.name=c.toLowerCase();l.Xh=0;if(a)for(l.zb.length=a.length,f=0,g=a.length;f<g;++f)k=a[f],l.zb[f]="number"===
typeof k||"string"===typeof k?k:"boolean"===typeof k?k?1:0:0;else z(l.zb);d.b.trigger(tc.prototype.g.ri,d,l.name);b--;return l.Xh}};c.prototype.ri=function(d){var c=0>b?null:m[b];return c?mb(d,c.name):!1};p.g=new c;l.prototype.CallFunction=function(d,c){var a=e();a.name=d.toLowerCase();a.Xh=0;Ba(a.zb,c);this.b.trigger(tc.prototype.g.ri,this,a.name);b--};p.U=new l;q.prototype.Rq=function(d,c){var a=e();a.name=c.toLowerCase();a.Xh=0;z(a.zb);var f,g;f=2;for(g=arguments.length;f<g;f++)a.zb.push(arguments[f]);
this.b.trigger(tc.prototype.g.ri,this,a.name);b--;d.kq(a.Xh)};p.Pa=new q})();function sc(g){this.b=g}
(function(){function g(){if(0===this.Tk.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Bg?a.drawImage(this.W,this.ng,this.pg,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.W,0,0,this.width,this.height);this.Tk=b.toDataURL("image/png")}return this.Tk}function e(){}function c(){}var l=sc.prototype;l.Ka=function(b){this.Ha=b;this.b=b.b};var q=l.Ka.prototype;q.fa=function(){if(!this.L){var b,a,d,c,e,l,m,q,n;this.$c=
[];this.kh=!1;b=0;for(a=this.ec.length;b<a;b++){e=this.ec[b];m={};m.name=e[0];m.speed=e[1];m.loop=e[2];m.zm=e[3];m.Am=e[4];m.ie=e[5];m.X=e[6];m.frames=[];d=0;for(c=e[7].length;d<c;d++)l=e[7][d],q={},q.Mm=l[0],q.Nm=l[1],q.ng=l[2],q.pg=l[3],q.width=l[4],q.height=l[5],q.duration=l[6],q.Rb=l[7],q.Sb=l[8],q.ul=l[9],q.Lj=l[10],q.Op=l[11],q.Bg=0!==q.width,q.Tk="",q.Jx=g,n={left:0,top:0,right:1,bottom:1},q.Im=n,q.ya=null,(n=this.b.Nt(l[0]))?q.W=n:(q.W=new Image,q.W.xs=l[0],q.W.Wn=l[1],q.W.rs=null,this.b.Mq(q.W,
l[0])),m.frames.push(q),this.$c.push(q);this.ec[b]=m}}};q.Jq=function(){var b,a,d;b=0;for(a=this.e.length;b<a;b++)d=this.e[b],d.Ci=d.Na.ya};q.Aj=function(){if(!this.L){var b,a,d;b=0;for(a=this.$c.length;b<a;++b)d=this.$c[b],d.W.rs=null,d.ya=null;this.kh=!1;this.Jq()}};q.im=function(){if(!this.L&&this.e.length){var b,a,d;b=0;for(a=this.$c.length;b<a;++b)d=this.$c[b],d.ya=this.b.q.qj(d.W,!1,this.b.Ga,d.Op);this.Jq()}};q.Tl=function(){if(!this.L&&!this.kh&&this.b.q){var b,a,d;b=0;for(a=this.$c.length;b<
a;++b)d=this.$c[b],d.ya=this.b.q.qj(d.W,!1,this.b.Ga,d.Op);this.kh=!0}};q.Vm=function(){if(!this.L&&!this.e.length&&this.kh){var b,a,d;b=0;for(a=this.$c.length;b<a;++b)d=this.$c[b],this.b.q.deleteTexture(d.ya),d.ya=null;this.kh=!1}};var p=[];q.pm=function(b){var a,d,c;z(p);a=0;for(d=this.$c.length;a<d;++a)c=this.$c[a].W,-1===p.indexOf(c)&&(b.drawImage(c,0,0),p.push(c))};l.ua=function(b){this.type=b;this.b=b.b;b=this.type.ec[0].frames[0].Lj;this.wc?this.qd.ai(b):this.qd=new gb(b)};var m=l.ua.prototype;
m.fa=function(){this.visible=0===this.D[0];this.wl=this.Il=!1;this.Qg=0!==this.D[3];this.za=this.oo(this.D[1])||this.type.ec[0];this.F=this.D[2];0>this.F&&(this.F=0);this.F>=this.za.frames.length&&(this.F=this.za.frames.length-1);var b=this.za.frames[this.F];this.qd.ai(b.Lj);this.Rb=b.Rb;this.Sb=b.Sb;this.Nf=this.za.speed;this.De=this.za.Am;1===this.type.ec.length&&1===this.type.ec[0].frames.length||0===this.Nf||(this.b.jk(this),this.Il=!0);this.wc?this.od.reset():this.od=new eb;this.Ud=this.od.O;
this.Ze=!0;this.Kd=0;this.Ye=!0;this.Nk=this.Dn="";this.us=0;this.xi=-1;this.type.Tl();var a,d,c,e,g,l,q,b=0;for(a=this.type.ec.length;b<a;b++)for(e=this.type.ec[b],d=0,c=e.frames.length;d<c;d++)g=e.frames[d],0===g.width&&(g.width=g.W.width,g.height=g.W.height),g.Bg&&(q=g.W,l=g.Im,l.left=g.ng/q.width,l.top=g.pg/q.height,l.right=(g.ng+g.width)/q.width,l.bottom=(g.pg+g.height)/q.height,0===g.ng&&0===g.pg&&g.width===q.width&&g.height===q.height&&(g.Bg=!1));this.Na=this.za.frames[this.F];this.Ci=this.Na.ya};
m.Lb=function(){var b={a:this.za.X,f:this.F,cas:this.Nf,fs:this.Ud,ar:this.Kd,at:this.od.O,rt:this.De};this.Ze||(b.ap=this.Ze);this.Ye||(b.af=this.Ye);return b};m.rc=function(b){var a=this.Rt(b.a);a&&(this.za=a);this.F=b.f;0>this.F&&(this.F=0);this.F>=this.za.frames.length&&(this.F=this.za.frames.length-1);this.Nf=b.cas;this.Ud=b.fs;this.Kd=b.ar;this.od.reset();this.od.O=b.at;this.Ze=b.hasOwnProperty("ap")?b.ap:!0;this.Ye=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.De=b.rt:this.De=
this.za.Am;this.Na=this.za.frames[this.F];this.Ci=this.Na.ya;this.qd.ai(this.Na.Lj);this.Rb=this.Na.Rb;this.Sb=this.Na.Sb};m.Ck=function(b){this.F=b?0:this.za.frames.length-1;this.Ze=!1;this.Dn=this.za.name;this.wl=!0;this.b.trigger(sc.prototype.g.kr,this);this.b.trigger(sc.prototype.g.jr,this);this.wl=!1;this.Kd=0};m.Dk=function(){return this.od.O};m.lb=function(){this.od.add(this.b.bh(this));this.Nk.length&&this.Ds();0<=this.xi&&this.$n();var b=this.od.O,a=this.za,d=a.frames[this.F],c=d.duration/
this.Nf;this.Ze&&b>=this.Ud+c&&(this.Ye?this.F++:this.F--,this.Ud+=c,this.F>=a.frames.length&&(a.ie?(this.Ye=!1,this.F=a.frames.length-2):a.loop?this.F=this.De:(this.Kd++,this.Kd>=a.zm?this.Ck(!1):this.F=this.De)),0>this.F&&(a.ie?(this.F=1,this.Ye=!0,a.loop||(this.Kd++,this.Kd>=a.zm&&this.Ck(!0))):a.loop?this.F=this.De:(this.Kd++,this.Kd>=a.zm?this.Ck(!0):this.F=this.De)),0>this.F?this.F=0:this.F>=a.frames.length&&(this.F=a.frames.length-1),b>this.Ud+a.frames[this.F].duration/this.Nf&&(this.Ud=b),
b=a.frames[this.F],this.Jf(d,b),this.b.ga=!0)};m.oo=function(b){var a,d,c;a=0;for(d=this.type.ec.length;a<d;a++)if(c=this.type.ec[a],mb(c.name,b))return c;return null};m.Rt=function(b){var a,d,c;a=0;for(d=this.type.ec.length;a<d;a++)if(c=this.type.ec[a],c.X===b)return c;return null};m.Ds=function(){var b=this.za.frames[this.F],a=this.oo(this.Nk);this.Nk="";!a||mb(a.name,this.za.name)&&this.Ze||(this.za=a,this.Nf=a.speed,this.De=a.Am,0>this.F&&(this.F=0),this.F>=this.za.frames.length&&(this.F=this.za.frames.length-
1),1===this.us&&(this.F=0),this.Ze=!0,this.Ud=this.od.O,this.Ye=!0,this.Jf(b,this.za.frames[this.F]),this.b.ga=!0)};m.$n=function(){var b=this.za.frames[this.F],a=this.F;this.F=ra(this.xi);0>this.F&&(this.F=0);this.F>=this.za.frames.length&&(this.F=this.za.frames.length-1);a!==this.F&&(this.Jf(b,this.za.frames[this.F]),this.Ud=this.od.O,this.b.ga=!0);this.xi=-1};m.Jf=function(b,a){var d=b.width,c=b.height,e=a.width,g=a.height;d!=e&&(this.width*=e/d);c!=g&&(this.height*=g/c);this.Rb=a.Rb;this.Sb=a.Sb;
this.qd.ai(a.Lj);this.Ia();this.Na=a;this.Ci=a.ya;d=0;for(c=this.P.length;d<c;d++)e=this.P[d],e.Cp&&e.Cp(b,a);this.b.trigger(sc.prototype.g.Jf,this)};m.ud=function(b){b.globalAlpha=this.opacity;var a=this.Na,d=a.Bg,c=a.W,e=this.x,g=this.y,l=this.width,q=this.height;if(0===this.j&&0<=l&&0<=q)e-=this.Rb*l,g-=this.Sb*q,this.b.gd&&(e=Math.round(e),g=Math.round(g)),d?b.drawImage(c,a.ng,a.pg,a.width,a.height,e,g,l,q):b.drawImage(c,e,g,l,q);else{this.b.gd&&(e=Math.round(e),g=Math.round(g));b.save();var m=
0<l?1:-1,p=0<q?1:-1;b.translate(e,g);1===m&&1===p||b.scale(m,p);b.rotate(this.j*m*p);e=0-this.Rb*oa(l);g=0-this.Sb*oa(q);d?b.drawImage(c,a.ng,a.pg,a.width,a.height,e,g,oa(l),oa(q)):b.drawImage(c,e,g,oa(l),oa(q));b.restore()}};m.gf=function(b){this.mc(b)};m.mc=function(b){b.xc(this.Ci);b.Bf(this.opacity);var a=this.Na,d=this.ze;if(this.b.gd){var c=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;a.Bg?b.Fd(d.Zb+c,d.$b+e,d.zc+c,d.Ac+e,d.hc+c,d.ic+e,d.fc+c,d.gc+e,a.Im):b.Vh(d.Zb+c,d.$b+e,d.zc+c,
d.Ac+e,d.hc+c,d.ic+e,d.fc+c,d.gc+e)}else a.Bg?b.Fd(d.Zb,d.$b,d.zc,d.Ac,d.hc,d.ic,d.fc,d.gc,a.Im):b.Vh(d.Zb,d.$b,d.zc,d.Ac,d.hc,d.ic,d.fc,d.gc)};m.Vt=function(b){var a=this.Na,d,c;d=0;for(c=a.ul.length;d<c;d++)if(mb(b,a.ul[d][0]))return d;return-1};m.jl=function(b,a){var d=this.Na,c=d.ul,e;ka(b)?e=this.Vt(b):e=b-1;e=ra(e);if(0>e||e>=c.length)return a?this.x:this.y;var g=(c[e][1]-d.Rb)*this.width,c=c[e][2],c=(c-d.Sb)*this.height,d=Math.cos(this.j);e=Math.sin(this.j);var l=g*d-c*e,c=c*d+g*e,g=l+this.x,
c=c+this.y;return a?g:c};var b=new ba,d=!1;new ua(0,0,0,0);q.finish=function(c){if(d){if(c){var a=this.b.Jb().lc.fd;c=null.qa();var f=b.Xe(),e,g;if(c.Aa){c.Aa=!1;z(c.e);e=0;for(g=f.length;e<g;++e)c.e[e]=f[e];if(a)for(z(c.Y),e=0,g=null.e.length;e<g;++e)f=null.e[e],b.contains(f)||c.Y.push(f)}else if(a)for(a=c.e.length,e=0,g=f.length;e<g;++e)c.e[a+e]=f[e],Ga(c.Y,f[e]);else Ba(c.e,f);null.xe()}b.clear();d=!1}};e.prototype.jr=function(b){return mb(this.Dn,b)};e.prototype.kr=function(){return!0};e.prototype.Jf=
function(){return!0};l.g=new e;c.prototype.Qr=function(b){this.xi=b;this.Il||(this.b.jk(this),this.Il=!0);this.wl||this.$n()};l.U=new c;l.Pa=new function(){}})();function vc(g){this.b=g}
(function(){function g(){return b.length?b.pop():{}}function e(d){var c,a;c=0;for(a=d.length;c<a;c++)b.push(d[c]);z(d)}function c(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function l(){}var q=vc.prototype;q.fa=function(){q.U.un=function(b){this.width!==b&&(this.width=b,this.Ff=!0,this.Ia())}};q.Ka=function(b){this.Ha=b;this.b=b.b};var p=q.Ka.prototype;p.fa=function(){};p.Aj=function(){if(!this.L){var b,c,a;b=0;for(c=this.e.length;b<c;b++)a=this.e[b],a.Bd=null,a.zf=
null,a.sc=null}};q.ua=function(b){this.type=b;this.b=b.b;this.wc?z(this.Ne):this.Ne=[];this.Ff=!0};p=q.ua.prototype;p.fa=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.$i=this.D[4];this.rk=this.D[5];this.dn=0===this.D[7];this.Ql=this.lj=this.width;this.kj=this.height;this.Sl=this.D[8];this.Ti=this.Qf="";this.wq=this.xq=this.Th=0;this.Yu();this.sc=this.zf=this.Bd=null;this.qp=!1;this.zh=this.b.ne;this.wc?this.Te.set(0,0,1,1):this.Te=new ua(0,
0,1,1);this.b.q&&this.b.jk(this)};p.Yu=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.Th=parseInt(b[c].substr(0,b[c].length-2));this.vm=Math.ceil(this.Th/72*96)+4;0<c&&(this.Ti=b[c-1]);this.Qf=b[c+1];for(c+=2;c<b.length;c++)this.Qf+=" "+b[c];break}};p.Lb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.$i,va:this.rk,wr:this.dn,lho:this.Sl,fn:this.Qf,fs:this.Ti,ps:this.Th,pxh:this.vm,tw:this.xq,th:this.wq,lrt:this.zh}};p.rc=
function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.$i=b.ha;this.rk=b.va;this.dn=b.wr;this.Sl=b.lho;this.Qf=b.fn;this.Ti=b.fs;this.Th=b.ps;this.vm=b.pxh;this.xq=b.tw;this.wq=b.th;this.zh=b.lrt;this.Ff=!0;this.Ql=this.lj=this.width;this.kj=this.height};p.lb=function(){if(this.b.q&&this.sc&&300<=this.b.ne-this.zh){var b=this.n;this.mb();var c=this.rb;if(c.right<b.la||c.bottom<b.ma||c.left>b.ta||c.top>b.ra)this.b.q.deleteTexture(this.sc),this.Bd=this.zf=this.sc=null}};p.qg=function(){this.Bd=
this.zf=null;this.b.q&&this.sc&&this.b.q.deleteTexture(this.sc);this.sc=null};p.Dk=function(){this.font=this.Ti+" "+this.Th.toString()+"pt "+this.Qf;this.Ff=!0;this.b.ga=!0};p.ud=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.n.nc()),b.save(),b.scale(a,a));if(this.Ff||this.width!==this.Ql)this.type.Ha.as(this.text,this.Ne,b,this.width,this.dn),this.Ff=!1,this.Ql=this.width;this.mb();var a=c?0:this.ze.Zb,f=c?0:this.ze.$b;
this.b.gd&&(a=a+.5|0,f=f+.5|0);0===this.j||c||(b.save(),b.translate(a,f),b.rotate(this.j),f=a=0);var e=f+this.height,g=this.vm,g=g+this.Sl,l,q;1===this.rk?f+=Math.max(this.height/2-this.Ne.length*g/2,0):2===this.rk&&(f+=Math.max(this.height-this.Ne.length*g-2,0));for(q=0;q<this.Ne.length&&!(l=a,1===this.$i?l=a+(this.width-this.Ne[q].width)/2:2===this.$i&&(l=a+(this.width-this.Ne[q].width)),b.fillText(this.Ne[q].text,l,f),f+=g,f>=e-g);q++);(0!==this.j||c)&&b.restore();this.zh=this.b.ne};p.mc=function(b){if(!(1>
this.width||1>this.height)){var c=this.Ff||this.qp;this.qp=!1;var a=this.n.nc(),f=this.n.bb(),e=this.Te,g=a*this.width,l=a*this.height,q=Math.ceil(g),m=Math.ceil(l),n=Math.abs(q),p=Math.abs(m),V=this.b.H/2,N=this.b.G/2;this.zf||(this.Bd=document.createElement("canvas"),this.Bd.width=n,this.Bd.height=p,this.lj=n,this.kj=p,c=!0,this.zf=this.Bd.getContext("2d"));if(n!==this.lj||p!==this.kj)this.Bd.width=n,this.Bd.height=p,this.sc&&(b.deleteTexture(this.sc),this.sc=null),c=!0;c&&(this.zf.clearRect(0,
0,n,p),this.ud(this.zf,!0),this.sc||(this.sc=b.Cc(n,p,this.b.Ga,this.b.Ke)),b.bw(this.Bd,this.sc,this.b.Ke));this.lj=n;this.kj=p;b.xc(this.sc);b.Bf(this.opacity);b.Tc();b.translate(-V,-N);b.Lc();var G=this.ze,c=this.n.eb(G.Zb,G.$b,!0),n=this.n.eb(G.Zb,G.$b,!1),p=this.n.eb(G.zc,G.Ac,!0),V=this.n.eb(G.zc,G.Ac,!1),N=this.n.eb(G.hc,G.ic,!0),C=this.n.eb(G.hc,G.ic,!1),u=this.n.eb(G.fc,G.gc,!0),G=this.n.eb(G.fc,G.gc,!1);if(this.b.gd||0===this.j&&0===f)var x=(c+.5|0)-c,H=(n+.5|0)-n,c=c+x,n=n+H,p=p+x,V=V+
H,N=N+x,C=C+H,u=u+x,G=G+H;0===this.j&&0===f?(p=c+q,V=n,N=p,C=n+m,u=c,G=C,e.right=1,e.bottom=1):(e.right=g/q,e.bottom=l/m);b.Fd(c,n,p,V,N,C,u,G,e);b.Tc();b.scale(a,a);b.Sj(-this.n.bb());b.translate((this.n.la+this.n.ta)/-2,(this.n.ma+this.n.ra)/-2);b.Lc();this.zh=this.b.ne}};var m=[];q.Xr=function(b){z(m);for(var c="",a,f=0;f<b.length;)if(a=b.charAt(f),"\n"===a)c.length&&(m.push(c),c=""),m.push("\n"),++f;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(f),f++;while(f<b.length&&(" "===b.charAt(f)||
"\t"===b.charAt(f)));m.push(c);c=""}else f<b.length&&(c+=a,f++);c.length&&m.push(c)};var b=[];q.as=function(b,c,a,f,l){if(b&&b.length)if(2>=f)e(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var k=a.measureText(b).width;if(k<=f){e(c);c.push(g());c[0].text=b;c[0].width=k;return}}this.bs(b,c,a,f,l)}else e(c)};q.bs=function(d,h,a,f,e){e&&(this.Xr(d),d=m);var l="",q,p,y,n=0;for(y=0;y<d.length;y++)"\n"===d[y]?(n>=h.length&&h.push(g()),l=c(l),p=h[n],p.text=l,p.width=a.measureText(l).width,n++,l=""):(q=
l,l+=d[y],p=a.measureText(l).width,p>=f&&(n>=h.length&&h.push(g()),q=c(q),p=h[n],p.text=q,p.width=a.measureText(q).width,n++,l=d[y],e||" "!==l||(l="")));l.length&&(n>=h.length&&h.push(g()),l=c(l),p=h[n],p.text=l,p.width=a.measureText(l).width,n++);for(y=n;y<h.length;y++)b.push(h[y]);h.length=n};q.g=new function(){};l.prototype.Sr=function(b){ia(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Ff=!0,this.b.ga=!0)};q.U=new l;q.Pa=new function(){}})();
function wc(g){this.b=g}
(function(){var g=wc.prototype;g.Ka=function(c){this.Ha=c;this.b=c.b};var e=g.Ka.prototype;e.fa=function(){this.L||(this.W=new Image,this.W.Wn=this.Nm,this.b.Mq(this.W,this.Mm),this.ya=this.pattern=null)};e.Aj=function(){this.L||(this.ya=null)};e.im=function(){if(!this.L&&this.e.length){this.ya||(this.ya=this.b.q.qj(this.W,!0,this.b.Ga,this.Om));var c,e;c=0;for(e=this.e.length;c<e;c++)this.e[c].ya=this.ya}};e.Tl=function(){this.L||this.ya||!this.b.q||(this.ya=this.b.q.qj(this.W,!0,this.b.Ga,this.Om))};
e.Vm=function(){this.L||this.e.length||!this.ya||(this.b.q.deleteTexture(this.ya),this.ya=null)};e.pm=function(c){c.drawImage(this.W,0,0)};g.ua=function(c){this.type=c;this.b=c.b};e=g.ua.prototype;e.fa=function(){this.visible=0===this.D[0];this.Te=new ua(0,0,0,0);this.xo=!1;this.W=this.type.W;this.b.q?(this.type.Tl(),this.ya=this.type.ya):(this.type.pattern||(this.type.pattern=this.b.Ca.createPattern(this.type.W,"repeat")),this.pattern=this.type.pattern)};e.nd=function(){this.xo=!1;this.W=this.type.W};
e.qg=function(){this.b.q&&this.xo&&this.ya&&(this.b.q.deleteTexture(this.ya),this.ya=null)};e.ud=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var e=this.x,g=this.y;this.b.gd&&(e=Math.round(e),g=Math.round(g));var p=-(this.Rb*this.width),m=-(this.Sb*this.height),b=p%this.W.width,d=m%this.W.height;0>b&&(b+=this.W.width);0>d&&(d+=this.W.height);c.translate(e,g);c.rotate(this.j);c.translate(b,d);c.fillRect(p-b,m-d,this.width,this.height);c.restore()};e.gf=function(c){this.mc(c)};
e.mc=function(c){c.xc(this.ya);c.Bf(this.opacity);var e=this.Te;e.right=this.width/this.W.width;e.bottom=this.height/this.W.height;var g=this.ze;if(this.b.gd){var p=Math.round(this.x)-this.x,m=Math.round(this.y)-this.y;c.Fd(g.Zb+p,g.$b+m,g.zc+p,g.Ac+m,g.hc+p,g.ic+m,g.fc+p,g.gc+m,e)}else c.Fd(g.Zb,g.$b,g.zc,g.Ac,g.hc,g.ic,g.fc,g.gc,e)};g.g=new function(){};g.U=new function(){};g.Pa=new function(){}})();function xc(g){this.b=g}
(function(){function g(b){h=b.x;a=b.y;f=b.z}function e(a,b,d,h){var f;f=t.length?t.pop():new c;f.init(a,b,d,h);return f}function c(){this.ei=this.id=this.y=this.x=this.ck=this.bk=this.Pl=this.time=this.Lm=0;this.ji=this.lk=!1}function l(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function q(){}function p(){}var m=xc.prototype;m.Ka=function(a){this.Ha=a;this.b=a.b};m.Ka.prototype.fa=
function(){};m.ua=function(a){this.type=a;this.b=a.b;this.touches=[];this.$l=!1};var b=m.ua.prototype,d={left:0,top:0};b.$g=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 h=0,a=0,f=0,t=[];c.prototype.init=function(a,b,c,d){var h=Za();this.Lm=this.Pl=this.time=h;this.bk=a;this.ck=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.ei=d;this.ji=this.lk=!1};c.prototype.update=function(a,b,c,d,h,f){this.Pl=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=h;this.pressure=f;!this.ji&&15<=Ta(this.bk,this.ck,this.x,this.y)&&(this.ji=!0)};c.prototype.Mu=function(a,b){!this.lk&&500<=Za()-this.Lm&&!this.ji&&15>Ta(this.bk,this.ck,this.x,this.y)&&(this.lk=!0,a.Id=this.ei,a.Gg=this.id,a.Uf=b,a.b.trigger(xc.prototype.g.rr,a),a.Od=this.x,a.Pd=this.y,a.b.trigger(xc.prototype.g.sr,a),a.Uf=0)};var k=-1E3,I=-1E3,S=-1E4;c.prototype.kp=function(a,b){if(!this.lk){var c=Za();333>=c-this.Lm&&!this.ji&&15>Ta(this.bk,this.ck,
this.x,this.y)&&(a.Id=this.ei,a.Gg=this.id,a.Uf=b,666>=c-S&&25>Ta(k,I,this.x,this.y)?(a.b.trigger(xc.prototype.g.nr,a),a.Od=this.x,a.Pd=this.y,a.b.trigger(xc.prototype.g.or,a),I=k=-1E3,S=-1E4):(a.b.trigger(xc.prototype.g.Ir,a),a.Od=this.x,a.Pd=this.y,a.b.trigger(xc.prototype.g.rn,a),k=this.x,I=this.y,S=c),a.Uf=0)}};b.fa=function(){this.Du=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Uf=this.Gg=this.Id=this.Pd=this.Od=this.xn=this.wn=this.vn=this.hs=this.gs=this.es=this.Gj=
this.Fj=this.Ej=0;this.$v=0!==this.D[0];var a=0<this.b.Qb?document:this.b.canvas,b=document;this.b.ub?b=a=window.Canvas:this.b.Hc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Bp(a)},!1),a.addEventListener("pointermove",function(a){c.Ap(a)},!1),b.addEventListener("pointerup",function(a){c.Bj(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Bj(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.Bp(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Ap(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Bj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Bj(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.Ep(a)},!1),a.addEventListener("touchmove",function(a){c.Dp(a)},!1),b.addEventListener("touchend",function(a){c.jm(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.jm(a,!0)},!1));if(this.Du){var d=function(a){a=a.reading;c.vn=a.accelerationX;c.wn=a.accelerationY;
c.xn=a.accelerationZ},h=function(a){a=a.reading;c.Ej=a.yawDegrees;c.Fj=a.pitchDegrees;c.Gj=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",d));var e=Windows.Devices.Sensors.Inclinometer.getDefault();e&&(e.reportInterval=Math.max(e.minimumReportInterval,16),e.addEventListener("readingchanged",h));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(f&&f.removeEventListener("readingchanged",d),e&&e.removeEventListener("readingchanged",h)):(f&&f.addEventListener("readingchanged",d),e&&e.addEventListener("readingchanged",h))},!1)}else window.addEventListener("deviceorientation",function(a){c.Ej=a.alpha||0;c.Fj=a.beta||0;c.Gj=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.es=a.accelerationIncludingGravity.x||0,c.gs=a.accelerationIncludingGravity.y||0,c.hs=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.vn=a.acceleration.x||0,c.wn=a.acceleration.y||0,c.xn=a.acceleration.z||0)},!1);this.$v&&!this.b.Xa&&(jQuery(document).mousemove(function(a){c.Su(a)}),jQuery(document).mousedown(function(a){c.Ru(a)}),jQuery(document).mouseup(function(a){c.Tu(a)}));!this.b.dg&&this.b.oc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.Rv(this)};b.Ap=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.$g(a.pointerId),c=Za();if(0<=b){var h=this.b.Xa?d:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-h.left,a.pageY-h.top,a.width||0,a.height||0,a.pressure||0)}}};b.Bp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Xa?d:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();this.Id=this.touches.length;
this.Gg=a.pointerId;this.touches.push(e(c,b,a.pointerId,this.Id));this.b.Zd=!0;this.b.trigger(xc.prototype.g.pn,this);this.b.trigger(xc.prototype.g.tn,this);this.Od=c;this.Pd=b;this.b.trigger(xc.prototype.g.yk,this);this.b.Zd=!1}};b.Bj=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.$g(a.pointerId);this.Id=0<=c?this.touches[c].ei:-1;this.Gg=0<=c?this.touches[c].id:-1;this.b.Zd=!0;this.b.trigger(xc.prototype.g.nn,
this);this.b.trigger(xc.prototype.g.sn,this);0<=c&&(b||this.touches[c].kp(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.Zd=!1}};b.Dp=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,h,f,e;c=0;for(h=a.changedTouches.length;c<h;c++)if(f=a.changedTouches[c],e=this.$g(f.identifier),0<=e){var g=this.b.Xa?d:jQuery(this.b.canvas).offset();e=this.touches[e];2>b-e.time||e.update(b,f.pageX-g.left,f.pageY-g.top,2*(f.Ux||f.by||f.Nx||f.Qx||0),2*(f.Vx||f.cy||f.Ox||
f.Rx||0),f.Ix||f.ay||f.Mx||f.Px||0)}};b.Ep=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Xa?d:jQuery(this.b.canvas).offset();Za();this.b.Zd=!0;var c,f,h,g;c=0;for(f=a.changedTouches.length;c<f;c++)if(h=a.changedTouches[c],g=this.$g(h.identifier),-1===g){g=h.pageX-b.left;var l=h.pageY-b.top;this.Id=this.touches.length;this.Gg=h.identifier;this.touches.push(e(g,l,h.identifier,this.Id));this.b.trigger(xc.prototype.g.pn,this);this.b.trigger(xc.prototype.g.tn,this);this.Od=g;this.Pd=
l;this.b.trigger(xc.prototype.g.yk,this)}this.b.Zd=!1};b.jm=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Zd=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.$g(f.identifier),0<=f&&(this.Id=this.touches[f].ei,this.Gg=this.touches[f].id,this.b.trigger(xc.prototype.g.nn,this),this.b.trigger(xc.prototype.g.sn,this),b||this.touches[f].kp(this,f),100>t.length&&t.push(this.touches[f]),this.touches.splice(f,1));this.b.Zd=!1};b.Dk=function(){return this.b.oc&&
0===this.Ej&&0!==f?90*f:this.Ej};b.Gx=function(){return this.b.oc&&0===this.Fj&&0!==a?90*a:this.Fj};b.Hx=function(){return this.b.oc&&0===this.Gj&&0!==h?90*h:this.Gj};b.Ru=function(a){l(a)||(this.Ep({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.$l=!0)};b.Su=function(a){this.$l&&!l(a)&&this.Dp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Tu=function(a){a.preventDefault&&this.b.uo&&!this.b.Ke&&a.preventDefault();this.b.uo=!0;l(a)||(this.jm({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.$l=!1)};b.ik=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Pl=d),c.Mu(this,a)};q.prototype.tn=function(){return!0};q.prototype.sn=function(){return!0};q.prototype.yk=function(a){return a?this.b.ek(a,this.Od,this.Pd):!1};q.prototype.pn=function(a){a=Math.floor(a);return a===this.Id};q.prototype.nn=function(a){a=Math.floor(a);return a===this.Id};q.prototype.rr=function(){return!0};q.prototype.Ir=function(){return!0};
q.prototype.nr=function(){return!0};q.prototype.sr=function(a){return a?this.b.ek(a,this.Od,this.Pd):!1};q.prototype.rn=function(a){return a?this.b.ek(a,this.Od,this.Pd):!1};q.prototype.or=function(a){return a?this.b.ek(a,this.Od,this.Pd):!1};m.g=new q;m.U=new function(){};p.prototype.cs=function(a,b){var c=this.Uf;if(0>c||c>=this.touches.length)a.C(0);else{var d,f,h,e,g;ha(b)?(d=this.b.dh(0),f=d.scale,h=d.se,e=d.ee,g=d.j,d.scale=1,d.se=1,d.ee=1,d.j=0,a.C(d.Ib(this.touches[c].x,this.touches[c].y,
!0)),d.scale=f,d.se=h,d.ee=e,d.j=g):(d=ia(b)?this.b.dh(b):this.b.ll(b))?a.C(d.Ib(this.touches[c].x,this.touches[c].y,!0)):a.C(0)}};p.prototype.ds=function(a,b){var c=this.Uf;if(0>c||c>=this.touches.length)a.C(0);else{var d,f,h,e,g;ha(b)?(d=this.b.dh(0),f=d.scale,h=d.se,e=d.fe,g=d.j,d.scale=1,d.se=1,d.fe=1,d.j=0,a.C(d.Ib(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.se=h,d.fe=e,d.j=g):(d=ia(b)?this.b.dh(b):this.b.ll(b))?a.C(d.Ib(this.touches[c].x,this.touches[c].y,!1)):a.C(0)}};m.Pa=new p})();
function yc(g){this.b=g}
(function(){function g(){}function e(){}var c=yc.prototype;c.Ka=function(c){this.behavior=c;this.b=c.b};c.Ka.prototype.fa=function(){};c.ua=function(c,e){this.type=c;this.behavior=c.behavior;this.d=e;this.b=c.b};var l=c.ua.prototype;l.fa=function(){this.Ak=1===this.D[0];this.hq=!1;this.Yg=this.D[1];this.ni=this.D[2];this.Mi=this.D[3];this.Bs=this.D[4];this.yc=this.Ak?0:3;this.wc?this.Vc.reset():this.Vc=new eb;this.Re=this.d.opacity?this.d.opacity:1;this.Ak&&(0===this.Yg?(this.yc=1,0===this.ni&&(this.yc=
2)):(this.d.opacity=0,this.b.ga=!0))};l.Lb=function(){return{fit:this.Yg,wt:this.ni,fot:this.Mi,s:this.yc,st:this.Vc.O,mo:this.Re}};l.rc=function(c){this.Yg=c.fit;this.ni=c.wt;this.Mi=c.fot;this.yc=c.s;this.Vc.reset();this.Vc.O=c.st;this.Re=c.mo};l.lb=function(){this.Vc.add(this.b.bh(this.d));0===this.yc&&(this.d.opacity=this.Vc.O/this.Yg*this.Re,this.b.ga=!0,this.d.opacity>=this.Re&&(this.d.opacity=this.Re,this.yc=1,this.Vc.reset(),this.b.trigger(yc.prototype.g.jn,this.d)));1===this.yc&&this.Vc.O>=
this.ni&&(this.yc=2,this.Vc.reset(),this.b.trigger(yc.prototype.g.Kr,this.d));2===this.yc&&0!==this.Mi&&(this.d.opacity=this.Re-this.Vc.O/this.Mi*this.Re,this.b.ga=!0,0>this.d.opacity&&(this.d.opacity=0,this.yc=3,this.Vc.reset(),this.b.trigger(yc.prototype.g.qr,this.d),1===this.Bs&&this.b.te(this.d)))};l.bo=function(){this.yc=0;this.Vc.reset();0===this.Yg?(this.yc=1,0===this.ni&&(this.yc=2)):(this.d.opacity=0,this.b.ga=!0)};g.prototype.qr=function(){return!0};g.prototype.jn=function(){return!0};g.prototype.Kr=
function(){return!0};c.g=new g;e.prototype.Vr=function(){this.Ak||this.hq||(this.Re=this.d.opacity?this.d.opacity:1,this.hq=!0);3===this.yc&&this.bo()};e.prototype.Nr=function(){this.bo()};c.U=new e;c.Pa=new function(){}})();function zc(g){this.b=g}
(function(){function g(){}var e=zc.prototype;e.Ka=function(c){this.behavior=c;this.b=c.b};e.Ka.prototype.fa=function(){};e.ua=function(c,e){this.type=c;this.behavior=c.behavior;this.d=e;this.b=c.b};var c=e.ua.prototype;c.fa=function(){this.jb=null;this.Jj=-1;this.mode=this.eg=this.gk=this.mg=this.he=this.Rh=0;var c=this;this.wc||(this.op=function(e){c.hm(e)});this.b.zn(this.op)};c.Lb=function(){return{uid:this.jb?this.jb.uid:-1,pa:this.Rh,pd:this.he,msa:this.mg,tsa:this.gk,lka:this.eg,m:this.mode}};
c.rc=function(c){this.Jj=c.uid;this.Rh=c.pa;this.he=c.pd;this.mg=c.msa;this.gk=c.tsa;this.eg=c.lka;this.mode=c.m};c.nd=function(){-1===this.Jj?this.jb=null:this.jb=this.b.eh(this.Jj);this.Jj=-1};c.hm=function(c){this.jb==c&&(this.jb=null)};c.qg=function(){this.jb=null;this.b.rv(this.op)};c.lb=function(){};c.ik=function(){if(this.jb){this.eg!==this.d.j&&(this.mg=Ka(this.mg+(this.d.j-this.eg)));var c=this.d.x,e=this.d.y;if(3===this.mode||4===this.mode){var g=Ta(this.d.x,this.d.y,this.jb.x,this.jb.y);
if(g>this.he||4===this.mode&&g<this.he)e=Na(this.jb.x,this.jb.y,this.d.x,this.d.y),c=this.jb.x+Math.cos(e)*this.he,e=this.jb.y+Math.sin(e)*this.he}else c=this.jb.x+Math.cos(this.jb.j+this.Rh)*this.he,e=this.jb.y+Math.sin(this.jb.j+this.Rh)*this.he;this.eg=g=Ka(this.mg+(this.jb.j-this.gk));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===c&&this.d.y===e||(this.d.x=c,this.d.y=e,this.d.Ia());0!==this.mode&&2!==this.mode||this.d.j===g||(this.d.j=g,this.d.Ia())}};e.g=new function(){};
g.prototype.Lr=function(c,e){if(c){var g=c.ro(this.d);g&&(this.jb=g,this.Rh=Na(g.x,g.y,this.d.x,this.d.y)-g.j,this.he=Ta(g.x,g.y,this.d.x,this.d.y),this.eg=this.mg=this.d.j,this.gk=g.j,this.mode=e)}};e.U=new g;e.Pa=new function(){}})();function Ac(g){this.b=g}
(function(){function g(){}function e(){}function c(){}var l=Ac.prototype;l.Ka=function(b){this.behavior=b;this.b=b.b};l.Ka.prototype.fa=function(){};l.ua=function(b,c){this.type=b;this.behavior=b.behavior;this.d=c;this.b=b.b;this.Ta=0};var q=l.ua.prototype,p=2*Math.PI,m=Math.PI/2,b=3*Math.PI/2;q.fa=function(){this.La=1===this.D[0];this.yf=this.D[1];this.cn=this.D[2];this.ge=this.D[3];this.ge+=Math.random()*this.D[4];0===this.ge?this.Ta=0:(this.Ta=this.D[5]/this.ge*p,this.Ta+=Math.random()*this.D[6]/
this.ge*p);this.Kb=this.D[7];this.Kb+=Math.random()*this.D[8];this.Wh=this.qf=this.Z=0;5===this.yf&&(this.Kb=B(this.Kb));this.init()};q.Lb=function(){return{i:this.Ta,a:this.La,mv:this.yf,w:this.cn,p:this.ge,mag:this.Kb,iv:this.Z,iv2:this.qf,r:this.Wh,lkv:this.M,lkv2:this.Fa}};q.rc=function(b){this.Ta=b.i;this.La=b.a;this.yf=b.mv;this.cn=b.w;this.ge=b.p;this.Kb=b.mag;this.Z=b.iv;this.qf=b.iv2||0;this.Wh=b.r;this.M=b.lkv;this.Fa=b.lkv2||0};q.init=function(){switch(this.yf){case 0:this.Z=this.d.x;break;
case 1:this.Z=this.d.y;break;case 2:this.Z=this.d.width;this.Wh=this.d.height/this.d.width;break;case 3:this.Z=this.d.width;break;case 4:this.Z=this.d.height;break;case 5:this.Z=this.d.j;break;case 6:this.Z=this.d.opacity;break;case 7:this.Z=0;break;case 8:this.Z=this.d.x,this.qf=this.d.y}this.M=this.Z;this.Fa=this.qf};q.Jd=function(c){c=c%p;switch(this.cn){case 0:return Math.sin(c);case 1:return c<=m?c/m:c<=b?1-2*(c-m)/Math.PI:(c-b)/m-1;case 2:return 2*c/p-1;case 3:return-2*c/p+1;case 4:return c<
Math.PI?-1:1}return 0};q.lb=function(){var b=this.b.bh(this.d);this.La&&0!==b&&(0===this.ge?this.Ta=0:(this.Ta+=b/this.ge*p,this.Ta=this.Ta%p),this.Vv())};q.Vv=function(){switch(this.yf){case 0:this.d.x!==this.M&&(this.Z+=this.d.x-this.M);this.d.x=this.Z+this.Jd(this.Ta)*this.Kb;this.M=this.d.x;break;case 1:this.d.y!==this.M&&(this.Z+=this.d.y-this.M);this.d.y=this.Z+this.Jd(this.Ta)*this.Kb;this.M=this.d.y;break;case 2:this.d.width=this.Z+this.Jd(this.Ta)*this.Kb;this.d.height=this.d.width*this.Wh;
break;case 3:this.d.width=this.Z+this.Jd(this.Ta)*this.Kb;break;case 4:this.d.height=this.Z+this.Jd(this.Ta)*this.Kb;break;case 5:this.d.j!==this.M&&(this.Z=Ka(this.Z+(this.d.j-this.M)));this.d.j=Ka(this.Z+this.Jd(this.Ta)*this.Kb);this.M=this.d.j;break;case 6:this.d.opacity=this.Z+this.Jd(this.Ta)*this.Kb/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.M&&(this.Z+=this.d.x-this.M),this.d.y!==this.Fa&&(this.qf+=this.d.y-this.Fa),this.d.x=this.Z+
Math.cos(this.d.j)*this.Jd(this.Ta)*this.Kb,this.d.y=this.qf+Math.sin(this.d.j)*this.Jd(this.Ta)*this.Kb,this.M=this.d.x,this.Fa=this.d.y}this.d.Ia()};q.Cp=function(b,c){switch(this.yf){case 2:this.Z*=c.width/b.width;this.Wh=c.height/c.width;break;case 3:this.Z*=c.width/b.width;break;case 4:this.Z*=c.height/b.height}};g.prototype.cr=function(){return this.La};l.g=new g;e.prototype.Pr=function(b){this.La=1===b};l.U=new e;c.prototype.Yr=function(b){b.C(this.Jd(this.Ta)*this.Kb)};l.Pa=new c})();
var Bc=[],Cc=[],Dc=[],Ec=[],Fc=[],Gc=[],Hc=[],Ic=[],Jc=[],Pc=[];function Qc(g){return result=(g/=1)<1/2.75?7.5625*g*g+0:g<2/2.75?1*(7.5625*(g-=1.5/2.75)*g+.75)+0:g<2.5/2.75?1*(7.5625*(g-=2.25/2.75)*g+.9375)+0:1*(7.5625*(g-=2.625/2.75)*g+.984375)+0}function Rc(g,e){return Math.round(g/e*1E4)}
function Sc(g,e,c,l,q){var p=0;switch(g){case 0:p=1*e/c+0;break;case 1:p=1*(e/=c)*e+0;break;case 2:p=-1*(e/=c)*(e-2)+0;break;case 3:p=1>(e/=c/2)?.5*e*e+0:-.5*(--e*(e-2)-1)+0;break;case 4:p=1*(e/=c)*e*e+0;break;case 5:p=1*((e=e/c-1)*e*e+1)+0;break;case 6:p=1>(e/=c/2)?.5*e*e*e+0:.5*((e-=2)*e*e+2)+0;break;case 7:p=1*(e/=c)*e*e*e+0;break;case 8:p=-1*((e=e/c-1)*e*e*e-1)+0;break;case 9:p=1>(e/=c/2)?.5*e*e*e*e+0:-.5*((e-=2)*e*e*e-2)+0;break;case 10:p=1*(e/=c)*e*e*e*e+0;break;case 11:p=1*((e=e/c-1)*e*e*e*
e+1)+0;break;case 12:p=1>(e/=c/2)?.5*e*e*e*e*e+0:.5*((e-=2)*e*e*e*e+2)+0;break;case 13:q.tc?p=Fc[Rc(e,c)]:p=-(Math.sqrt(1-e*e)-1);break;case 14:q.tc?p=Gc[Rc(e,c)]:p=Math.sqrt(1-(e-1)*(e-1));break;case 15:p=q.tc?Hc[Rc(e,c)]:1>(e/=c/2)?-.5*(Math.sqrt(1-e*e)-1)+0:.5*(Math.sqrt(1-(e-=2)*e)+1)+0;break;case 16:q.tc?p=Ic[Rc(e,c)]:(q=q.Vb,p=1*(e/=c)*e*((q+1)*e-q)+0);break;case 17:q.tc?p=Jc[Rc(e,c)]:(q=q.Vb,p=1*((e=e/c-1)*e*((q+1)*e+q)+1)+0);break;case 18:q.tc?p=Pc[Rc(e,c)]:(q=q.Vb,p=1>(e/=c/2)?.5*e*e*(((q*=
1.525)+1)*e-q)+0:.5*((e-=2)*e*(((q*=1.525)+1)*e+q)+2)+0);break;case 19:q.tc?p=Cc[Rc(e,c)]:(p=q.Kf,g=q.Hj,e/=c,0==g&&(g=.3*c),0==p||p<Math.abs(1)?(p=1,q=g/4):q=g/(2*Math.PI)*Math.asin(1/p),p=-(p*Math.pow(2,10*--e)*Math.sin(2*(e*c-q)*Math.PI/g))+0);break;case 20:q.tc?p=Dc[Rc(e,c)]:(p=q.Kf,g=q.Hj,e/=c,0==g&&(g=.3*c),0==p||p<Math.abs(1)?(p=1,q=g/4):q=g/(2*Math.PI)*Math.asin(1/p),p=p*Math.pow(2,-10*e)*Math.sin(2*(e*c-q)*Math.PI/g)+1);break;case 21:q.tc?p=Ec[Rc(e,c)]:(p=q.Kf,g=q.Hj,e/=c/2,0==g&&(g=.3*c*
1.5),0==p||p<Math.abs(1)?(p=1,q=g/4):q=g/(2*Math.PI)*Math.asin(1/p),p=1>e?-.5*p*Math.pow(2,10*--e)*Math.sin(2*(e*c-q)*Math.PI/g)+0:p*Math.pow(2,-10*--e)*Math.sin(2*(e*c-q)*Math.PI/g)*.5+1);break;case 22:p=q.tc?1-Bc[Rc(c-e,c)]+0:1-Qc(c-e/c)+0;break;case 23:p=q.tc?Bc[Rc(e,c)]:Qc(e/c);break;case 24:p=q.tc?e<c/2?.5*(1-Bc[Rc(c-2*e,c)]+0)+0:.5*Bc[Rc(2*e-c,c)]+.5:e<c/2?.5*(1-Qc(c-2*e)+0)+0:.5*Qc((2*e-c)/c)+.5;break;case 25:e=e/c/2;p=2*e*e*(3-2*e);break;case 26:e=(e/c+1)/2;p=2*e*e*(3-2*e)-1;break;case 27:e=
e/c,p=e*e*(3-2*e)}return l?1-p:p}
for(var Tc=0,Uc=0,Vc=0,T=0,X=0,Z=0;1E4>=Z;Z++)T=Z/1E4,Tc=(T/=1)<1/2.75?7.5625*T*T+0:T<2/2.75?1*(7.5625*(T-=1.5/2.75)*T+.75)+0:T<2.5/2.75?1*(7.5625*(T-=2.25/2.75)*T+.9375)+0:1*(7.5625*(T-=2.625/2.75)*T+.984375)+0,Bc[Z]=Tc,T=Z/1E4,Vc=Uc=0,T/=1,0==Vc&&(Vc=.3),0==Uc||Uc<Math.abs(1)?(Uc=1,X=Vc/4):X=Vc/(2*Math.PI)*Math.asin(1/Uc),Tc=-(Uc*Math.pow(2,10*--T)*Math.sin(2*(1*T-X)*Math.PI/Vc))+0,Cc[Z]=Tc,T=Z/1E4,Vc=Uc=0,T/=1,0==Vc&&(Vc=.3),0==Uc||Uc<Math.abs(1)?(Uc=1,X=Vc/4):X=Vc/(2*Math.PI)*Math.asin(1/Uc),
Tc=Uc*Math.pow(2,-10*T)*Math.sin(2*(1*T-X)*Math.PI/Vc)+1,Dc[Z]=Tc,T=Z/1E4,Vc=Uc=0,T/=.5,0==Vc&&(Vc=.3*1.5),0==Uc||Uc<Math.abs(1)?(Uc=1,X=Vc/4):X=Vc/(2*Math.PI)*Math.asin(1/Uc),Tc=1>T?-.5*Uc*Math.pow(2,10*--T)*Math.sin(2*(1*T-X)*Math.PI/Vc)+0:Uc*Math.pow(2,-10*--T)*Math.sin(2*(1*T-X)*Math.PI/Vc)*.5+1,Ec[Z]=Tc,T=Z/1E4,Fc[Z]=-(Math.sqrt(1-T*T)-1),T=Z/1E4,Gc[Z]=Math.sqrt(1-(T-1)*(T-1)),T=Z/1E4,Tc=1>(T/=.5)?-.5*(Math.sqrt(1-T*T)-1)+0:.5*(Math.sqrt(1-(T-=2)*T)+1)+0,Hc[Z]=Tc,T=Z/1E4,X=0,0==X&&(X=1.70158),
Tc=1*(T/=1)*T*((X+1)*T-X)+0,Ic[Z]=Tc,T=Z/1E4,X=0,0==X&&(X=1.70158),Tc=1*((T=T/1-1)*T*((X+1)*T+X)+1)+0,Jc[Z]=Tc,T=Z/1E4,X=0,0==X&&(X=1.70158),Tc=1>(T/=.5)?.5*T*T*(((X*=1.525)+1)*T-X)+0:.5*((T-=2)*T*(((X*=1.525)+1)*T+X)+2)+0,Pc[Z]=Tc;
function Wc(g,e,c,l,q,p,m){this.name=g;this.value=0;this.zg(l);this.Yj(q);this.kf=c;this.Ja=e;this.duration=p;this.state=this.T=0;this.Cj=this.Dj=this.zj=this.rg=!1;this.Fa=this.M=0;this.Fb=m;this.ie=1;this.ah=!1;this.Dc=[];this.No=1;for(g=0;28>g;g++)this.Dc[g]={},this.Dc[g].Kf=0,this.Dc[g].Hj=0,this.Dc[g].Dg=0,this.Dc[g].Vb=0,this.Dc[g].tc=!0}Wc.prototype={};Wc.prototype.zg=function(g){this.da=parseFloat(g.split(",")[0]);this.Wa=parseFloat(g.split(",")[1]);this.Fa=this.M=0};
Wc.prototype.Yj=function(g){this.ba=parseFloat(g.split(",")[0]);this.Sa=parseFloat(g.split(",")[1]);isNaN(this.Sa)&&(this.Sa=this.ba)};
Wc.prototype.xk=function(g){if(0===this.state)return-1;1===this.state&&(this.T+=g);2===this.state&&(this.T-=g);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.T+=g*this.ie;5===this.state&&(this.T+=g*this.ie);return 0>this.T?(this.T=0,4===this.state?this.ie=1:6===this.state?(this.ie=1,this.ah=!1):this.state=0,this.Cj=!0,0):this.T>this.duration?(this.T=this.duration,4===this.state?this.ie=-1:6===this.state?(this.ie=-1,this.ah=!0):5===this.state?this.T=0:this.state=0,this.zj=!0,
1):this.ah?Sc(this.kf,this.duration-this.T,this.duration,this.ah,this.Dc[this.kf]):Sc(this.kf,this.T,this.duration,this.ah,this.Dc[this.kf])};function Xc(g){this.b=g}
(function(){var g=Xc.prototype;g.Ka=function(c){this.behavior=c;this.b=c.b};g.Ka.prototype.fa=function(){};g.ua=function(c,e){this.type=c;this.behavior=c.behavior;this.d=e;this.b=c.b;this.Ta=0};var e=g.ua.prototype;e.fa=function(){this.ug=this.D[0];this.La=1==this.ug||2==this.ug||3==this.ug||4==this.ug;this.Ja=this.D[1];this.Wk=this.D[2];this.target=this.D[3];this.dk=this.D[4];this.qk=!1;1===this.dk&&(this.target="relative("+this.target+")");this.duration=this.D[5];this.Fb=1===this.D[6];this.value=
0;this.u={};this.Cn(this.Ja,this.Wk,"current",this.target,this.duration,this.Fb);1===this.D[0]&&this.di(0);2===this.D[0]&&this.di(2);3===this.D[0]&&this.di(3);4===this.D[0]&&this.di(4)};e.Dd=function(c,e){void 0===e&&(e="current");var g=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var p=this.value;if("current"===e)switch(c){case 0:g=this.d.x+","+this.d.y;break;case 1:g=this.d.width+","+this.d.height;break;case 2:g=this.d.width+","+this.d.height;break;case 3:g=
this.d.width+","+this.d.height;break;case 4:g=Ia(this.d.j)+","+Ia(this.d.j);break;case 5:g=100*this.d.opacity+","+100*this.d.opacity;break;case 6:g=p+","+p;break;case 7:g=this.d.x+","+this.d.y;break;case 8:g=this.d.x+","+this.d.y;break;case 9:g=void 0!==this.d.Na?this.d.width/this.d.Na.width+","+this.d.height/this.d.Na.height:"1,1"}if("relative"===e.substring(0,8)){var m=e.match(/\((.*?)\)/);if(m)var b=parseFloat(m[1].split(",")[0]),d=parseFloat(m[1].split(",")[1]);isNaN(b)&&(b=0);isNaN(d)&&(d=0);
switch(c){case 0:g=this.d.x+b+","+(this.d.y+d);break;case 1:g=this.d.width+b+","+(this.d.height+d);break;case 2:g=this.d.width+b+","+(this.d.height+d);break;case 3:g=this.d.width+b+","+(this.d.height+d);break;case 4:g=Ia(this.d.j)+b+","+(Ia(this.d.j)+d);break;case 5:g=100*this.d.opacity+b+","+(100*this.d.opacity+d);break;case 6:g=p+b+","+p+b;break;case 7:g=this.d.x+b+","+this.d.y;break;case 8:g=this.d.x+","+(this.d.y+b);break;case 9:g=b+","+d}}return g};e.Cn=function(c,e,g,p,m,b){g=this.Dd(c,g);p=
this.Dd(c,p);void 0!==this.u["default"]&&delete this.u["default"];this.u["default"]=new Wc("default",c,e,g,p,m,b);this.u["default"].Rd=0};e.Lb=function(){JSON.stringify(this.u["default"]);return{playmode:this.ug,active:this.La,tweened:this.Ja,easing:this.Wk,target:this.target,targetmode:this.dk,useCurrent:this.qk,duration:this.duration,enforce:this.Fb,value:this.value,tweenlist:JSON.stringify(this.u["default"])}};Wc.hr=function(c,e,g,p,m,b,d,h){e=new Wc(e,g,p,m,b,d,h);for(var a in c)e[a]=c[a];return e};
e.rc=function(c){var e=JSON.parse(c.tweenlist),e=Wc.hr(e,e.name,e.Ja,e.kf,e.da+","+e.Wa,e.ba+","+e.Sa,e.duration,e.Fb);this.u["default"]=e;this.ug=c.playmode;this.La=c.active;this.yf=c.tweened;this.Wk=c.easing;this.target=c.target;this.dk=c.targetmode;this.qk=c.useCurrent;this.duration=c.duration;this.Fb=c.enforce;this.value=c.value};e.Iv=function(c){1<c&&(c=1);0>c&&(c=0);for(var e in this.u){var g=this.u[e];g.M=0;g.Fa=0;g.state=3;g.T=c*g.duration;var p=g.xk(0);this.Ym(g,p)}};e.di=function(c){for(var e in this.u){var g=
this.u[e];if(this.qk){var p=this.Dd(g.Ja,"current"),m=this.Dd(g.Ja,this.target);g.zg(p);g.Yj(m)}0===c&&(g.T=1E-6,g.M=0,g.Fa=0,g.rg=!0,g.state=1);1===c&&(g.state=g.No);if(2===c||4===c)g.T=1E-6,g.M=0,g.Fa=0,g.rg=!0,2==c&&(g.state=4),4==c&&(g.state=6);3===c&&(g.T=1E-6,g.M=0,g.Fa=0,g.rg=!0,g.state=5)}};e.Pv=function(c){for(var e in this.u){var g=this.u[e];3!=g.state&&0!=g.state&&(g.No=g.state);1===c&&(g.T=0);2===c&&(g.T=g.duration);g.state=3;var p=g.xk(0);this.Ym(g,p)}};e.wv=function(c){for(var e in this.u){var g=
this.u[e];1===c&&(g.T=g.duration,g.M=0,g.Fa=0,g.Dj=!0);g.state=2}};e.Ym=function(c,e){if(0===c.Ja)c.Fb?(this.d.x=c.da+(c.ba-c.da)*e,this.d.y=c.Wa+(c.Sa-c.Wa)*e):(this.d.x+=(c.ba-c.da)*e-c.M,this.d.y+=(c.Sa-c.Wa)*e-c.Fa,c.M=(c.ba-c.da)*e,c.Fa=(c.Sa-c.Wa)*e);else if(1===c.Ja)c.Fb?(this.d.width=c.da+(c.ba-c.da)*e,this.d.height=c.Wa+(c.Sa-c.Wa)*e):(this.d.width+=(c.ba-c.da)*e-c.M,this.d.height+=(c.Sa-c.Wa)*e-c.Fa,c.M=(c.ba-c.da)*e,c.Fa=(c.Sa-c.Wa)*e);else if(2===c.Ja)c.Fb?this.d.width=c.da+(c.ba-c.da)*
e:(this.d.width+=(c.ba-c.da)*e-c.M,c.M=(c.ba-c.da)*e);else if(3===c.Ja)c.Fb?this.d.height=c.Wa+(c.Sa-c.Wa)*e:(this.d.height+=(c.Sa-c.Wa)*e-c.Fa,c.Fa=(c.Sa-c.Wa)*e);else if(4===c.Ja)if(c.Fb){var g=c.da+(c.ba-c.da)*e;this.d.j=Ka(B(g))}else g=(c.ba-c.da)*e-c.M,this.d.j=Ka(this.d.j+B(g)),c.M=(c.ba-c.da)*e;else if(5===c.Ja)c.Fb?this.d.opacity=(c.da+(c.ba-c.da)*e)/100:(this.d.opacity+=((c.ba-c.da)*e-c.M)/100,c.M=(c.ba-c.da)*e);else if(6===c.Ja)c.Fb?this.value=c.da+(c.ba-c.da)*e:(this.value+=(c.ba-c.da)*
e-c.M,c.M=(c.ba-c.da)*e);else if(7===c.Ja)c.Fb?this.d.x=c.da+(c.ba-c.da)*e:(this.d.x+=(c.ba-c.da)*e-c.M,c.M=(c.ba-c.da)*e);else if(8===c.Ja)c.Fb?this.d.y=c.Wa+(c.Sa-c.Wa)*e:(this.d.y+=(c.Sa-c.Wa)*e-c.Fa,c.Fa=(c.Sa-c.Wa)*e);else if(9===c.Ja){var g=c.da+(c.ba-c.da)*e,p=c.Wa+(c.Sa-c.Wa)*e;0>this.d.width&&(g=c.da+(c.ba+c.da)*-e);0>this.d.height&&(p=c.Wa+(c.Sa+c.Wa)*-e);c.Fb?(this.d.width=this.d.Na.width*g,this.d.height=this.d.Na.height*p):(0>this.d.width?(this.d.width=this.d.width/(-1+c.M)*g,c.M=g+1):
(this.d.width=this.d.width/(1+c.M)*g,c.M=g-1),0>this.d.height?(this.d.height=this.d.height/(-1+c.Fa)*p,c.Fa=p+1):(this.d.height=this.d.height/(1+c.Fa)*p,c.Fa=p-1))}this.d.Ia()};e.lb=function(){var c=this.b.bh(this.d),e=this.u["default"];0!==e.state&&(e.rg&&(this.b.trigger(Xc.prototype.g.Hr,this.d),e.rg=!1),e.Dj&&(this.b.trigger(Xc.prototype.g.Fr,this.d),e.Dj=!1),this.La=1==e.state||2==e.state||4==e.state||5==e.state||6==e.state,c=e.xk(c),this.Ym(e,c),e.zj&&(this.b.trigger(Xc.prototype.g.pr,this.d),
e.zj=!1),e.Cj&&(this.b.trigger(Xc.prototype.g.Er,this.d),e.Cj=!1))};g.g={};e=g.g;e.cr=function(){return 0!==this.u["default"].state};e.zw=function(){return 2==this.u["default"].state};e.mw=function(c,e){var g=this.u["default"];return ic(g.T/g.duration,c,e)};e.Jw=function(c,e){var g=this.u["default"];this.ii=ic(g.T/g.duration,c,e);if(g=this.gm!=this.ii&&this.ii)this.gm=this.ii;return g};e.Hr=function(){return void 0===this.u["default"]?!1:this.u["default"].rg};e.Fr=function(){return void 0===this.u["default"]?
!1:this.u["default"].Dj};e.pr=function(){return void 0===this.u["default"]?!1:this.u["default"].zj};e.Er=function(){return void 0===this.u["default"]?!1:this.u["default"].Cj};g.U={};e=g.U;e.Ur=function(c,e){this.gm=this.ii=!1;this.qk=1==e;this.di(c)};e.Wr=function(c){this.Pv(c)};e.Or=function(c){this.gm=this.ii=!1;this.wv(c)};e.Rw=function(c){this.Iv(c)};e.Zw=function(c){isNaN(c)||0>c||void 0===this.u["default"]||(this.u["default"].duration=c)};e.dx=function(c){void 0!==this.u["default"]&&(this.u["default"].Fb=
1===c)};e.hx=function(c){void 0!==this.u["default"]&&(c=this.Dd(this.u["default"].Ja,c),this.u["default"].zg(c))};e.nx=function(c,e,g){if(void 0!==this.u["default"]&&!isNaN(g)){var p=this.u["default"],m=g+"";this.dk=e;var b="",d="";if(1===e){this.target="relative("+m+")";switch(c){case 0:b=this.d.x+g;d=p.Sa;break;case 1:b=p.ba;d=this.d.y+g;break;case 2:d=b=""+Ia(this.d.j+B(g));break;case 3:d=b=""+100*this.d.opacity+g;break;case 4:b=this.d.width+g;d=p.Sa;break;case 5:b=p.ba;d=this.d.height+g;break;
case 6:d=b=g}m=b+","+d}else{switch(c){case 0:b=g;d=p.Sa;break;case 1:b=p.ba;d=g;break;case 2:d=b=g;break;case 3:d=b=g;break;case 4:b=g;d=p.Sa;break;case 5:b=p.ba;d=g;break;case 6:d=b=g}this.target=m=b+","+d}c=this.Dd(this.u["default"].Ja,"current");m=this.Dd(this.u["default"].Ja,m);p.zg(c);p.Yj(m)}};e.qx=function(c){void 0!==this.u["default"]&&(this.u["default"].Ja=c)};e.$w=function(c){void 0!==this.u["default"]&&(this.u["default"].kf=c)};e.ax=function(c,e,g,p,m){void 0!==this.u["default"]&&(this.u["default"].Dc[c].tc=
!1,this.u["default"].Dc[c].Kf=e,this.u["default"].Dc[c].Hj=g,this.u["default"].Dc[c].Dg=p,this.u["default"].Dc[c].Vb=m)};e.Sw=function(){void 0!==this.u["default"]&&(this.u["default"].tc=!0)};e.rx=function(c){var e=this.u["default"];this.value=c;6===e.Ja&&e.zg(this.Dd(e.Ja,"current"))};e.jx=function(c,e,g,p,m){if(void 0===this.u["default"])this.Cn(c,e,initial,g,p,m);else{var b=this.u["default"];b.Ja=c;b.kf=e;b.zg(this.Dd(c,"current"));b.Yj(this.Dd(c,g));b.duration=p;b.Fb=1===m}};g.Pa={};g=g.Pa;g.wx=
function(c){var e="N/A";switch(this.u["default"].state){case 0:e="paused";break;case 1:e="playing";break;case 2:e="reversing";break;case 3:e="seeking"}c.Wb(e)};g.Qw=function(c){c.C(this.u["default"].T/this.u["default"].duration)};g.Xq=function(c){c.C(this.u["default"].duration)};g.yx=function(c){var e=this.u["default"],g="N/A";switch(e.Ja){case 0:g=e.ba;break;case 1:g=e.Sa;break;case 2:g=e.ba;break;case 3:g=e.ba;break;case 4:g=e.ba;break;case 5:g=e.Sa;break;case 6:g=e.ba}c.C(g)};g.Yr=function(c){c.C(this.value)};
g.Ax=function(c,e,g,p,m){p=1<p?1:p;m=Sc(m,0>p?0:p,1,!1,!1);c.C(e+m*(g-e))}})();
function rc(){return[uc,R,tc,wc,vc,sc,xc,Xc,zc,yc,Ac,K.prototype.g.Yq,sc.prototype.U.Rr,K.prototype.Pa.Iu,sc.prototype.Pa.Opacity,K.prototype.Pa.Ch,K.prototype.g.kn,uc.prototype.U.Mr,K.prototype.U.Zr,K.prototype.U.$q,R.prototype.U.Zq,zc.prototype.U.Lr,uc.prototype.U.Play,Xc.prototype.U.Ur,Xc.prototype.U.Or,yc.prototype.U.Vr,tc.prototype.U.CallFunction,tc.prototype.g.ri,K.prototype.g.Vq,vc.prototype.U.Sr,sc.prototype.g.Uq,sc.prototype.U.Qr,K.prototype.U.Tr,xc.prototype.g.yk,K.prototype.g.gn,K.prototype.U.Oq,
K.prototype.g.fr,yc.prototype.g.jn,Ac.prototype.U.Pr,yc.prototype.U.Nr,wc.prototype.U.un,wc.prototype.Pa.$r,K.prototype.Pa.Rd,xc.prototype.g.rn,sc.prototype.U.Wq,R.prototype.U.br]};
