// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,fa,ga,ha,A,ia,ja,la,ma,na,pa,qa,ra,ua,va,wa,xa,ya,za,T,Aa,Ba,Da,Ea,Fa,W,Ga,Ha,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={},gc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,e,b,h){this.set(a,e,b,h)}function q(){this.Ra=this.Qa=this.Ta=this.Sa=this.Wa=this.Va=this.Da=this.Ca=0}function k(a,e,b,h){a<e?b<h?(m=a<b?a:b,S=e>h?e:h):(m=a<h?a:h,S=e>b?e:b):b<h?(m=e<b?e:b,S=a>h?a:h):(m=e<h?e:h,S=a>b?a:b)}function g(){this.items=this.Qd=null;this.ei=0;y&&(this.Qd=new Set);this.jh=[];this.Ke=!0}function u(a){K[E++]=a}function t(){this.K=this.il=this.y=this.Nl=0}function p(a){this.nb=[];this.sj=this.uj=this.vj=this.tj=0;this.Mi(a)}function a(a,e){this.Rl=
a;this.Ql=e;this.cells={}}function c(a,e){this.Rl=a;this.Ql=e;this.cells={}}function f(a,e,b){var h;return R.length?(h=R.pop(),h.Am=a,h.x=e,h.y=b,h):new ba(a,e,b)}function e(a,e,b){this.Am=a;this.x=e;this.y=b;this.wb=new ca}function b(a,e,b){var h;return C.length?(h=C.pop(),h.Am=a,h.x=e,h.y=b,h):new da(a,e,b)}function l(a,e,b){this.Am=a;this.x=e;this.y=b;this.wb=[];this.Gg=!0;this.Od=new ca;this.rh=!1}function n(a,e){return a.Cd-e.Cd}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};A=function(a){return"string"===typeof a};ia=function(a){return 0<a&&0===(a-1&a)};ja=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};la=function(a){return 0>a?-a:a};ma=function(a,e){return a>e?a:e};na=function(a,e){return a<e?a:e};pa=Math.PI;qa=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var e=
a|0;return e===a?e:e+1};ua=function(a,e,b,h,c,l,n,x){var v,f,r,m;a<b?(f=a,v=b):(f=b,v=a);c<n?(m=c,r=n):(m=n,r=c);if(v<m||f>r)return!1;e<h?(f=e,v=h):(f=h,v=e);l<x?(m=l,r=x):(m=x,r=l);if(v<m||f>r)return!1;v=c-a+n-b;f=l-e+x-h;a=b-a;e=h-e;c=n-c;l=x-l;x=la(e*c-l*a);return la(c*f-l*v)>x?!1:la(a*f-e*v)<=x};d.prototype.set=function(a,e,b,h){this.left=a;this.top=e;this.right=b;this.bottom=h};d.prototype.yh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};d.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)};d.prototype.Hv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.Iv=
function(a,e,b){return!(a.right+e<this.left||a.bottom+b<this.top||a.left+e>this.right||a.top+b>this.bottom)};d.prototype.Wb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};d.prototype.Dh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=d;q.prototype.Li=function(a){this.Ca=a.left;this.Da=a.top;this.Va=a.right;this.Wa=a.top;this.Sa=a.right;this.Ta=a.bottom;this.Qa=a.left;this.Ra=a.bottom};q.prototype.pr=function(a,
e){if(0===e)this.Li(a);else{var b=Math.sin(e),h=Math.cos(e),c=a.left*b,l=a.top*b,n=a.right*b,b=a.bottom*b,x=a.left*h,v=a.top*h,f=a.right*h,h=a.bottom*h;this.Ca=x-l;this.Da=v+c;this.Va=f-l;this.Wa=v+n;this.Sa=f-b;this.Ta=h+n;this.Qa=x-b;this.Ra=h+c}};q.prototype.offset=function(a,e){this.Ca+=a;this.Da+=e;this.Va+=a;this.Wa+=e;this.Sa+=a;this.Ta+=e;this.Qa+=a;this.Ra+=e;return this};var m=0,S=0;q.prototype.Qo=function(a){k(this.Ca,this.Va,this.Sa,this.Qa);a.left=m;a.right=S;k(this.Da,this.Wa,this.Ta,
this.Ra);a.top=m;a.bottom=S};q.prototype.Wb=function(a,e){var b=this.Ca,h=this.Da,c=this.Va-b,l=this.Wa-h,n=this.Sa-b,x=this.Ta-h,v=a-b,f=e-h,r=c*c+l*l,m=c*n+l*x,l=c*v+l*f,d=n*n+x*x,p=n*v+x*f,u=1/(r*d-m*m),c=(d*l-m*p)*u,r=(r*p-m*l)*u;if(0<=c&&0<r&&1>c+r)return!0;c=this.Qa-b;l=this.Ra-h;r=c*c+l*l;m=c*n+l*x;l=c*v+l*f;u=1/(r*d-m*m);c=(d*l-m*p)*u;r=(r*p-m*l)*u;return 0<=c&&0<r&&1>c+r};q.prototype.Ie=function(a,e){if(e)switch(a){case 0:return this.Ca;case 1:return this.Va;case 2:return this.Sa;case 3:return this.Qa;
case 4:return this.Ca;default:return this.Ca}else switch(a){case 0:return this.Da;case 1:return this.Wa;case 2:return this.Ta;case 3:return this.Ra;case 4:return this.Da;default:return this.Da}};q.prototype.sq=function(){return(this.Ca+this.Va+this.Sa+this.Qa)/4};q.prototype.tq=function(){return(this.Da+this.Wa+this.Ta+this.Ra)/4};q.prototype.Ip=function(a){var e=a.sq(),b=a.tq();if(this.Wb(e,b))return!0;e=this.sq();b=this.tq();if(a.Wb(e,b))return!0;var h,c,l,n,x,v,f,r;for(f=0;4>f;f++)for(r=0;4>r;r++)if(e=
this.Ie(f,!0),b=this.Ie(f,!1),h=this.Ie(f+1,!0),c=this.Ie(f+1,!1),l=a.Ie(r,!0),n=a.Ie(r,!1),x=a.Ie(r+1,!0),v=a.Ie(r+1,!1),ua(e,b,h,c,l,n,x,v))return!0;return!1};wa=q;xa=function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b]);return a};ya=function(a,e){var b,h;e=qa(e);if(!(0>e||e>=a.length)){b=e;for(h=a.length-1;b<h;b++)a[b]=a[b+1];za(a,h)}};za=function(a,e){a.length=e};T=function(a){za(a,0)};Aa=function(a,e){T(a);var b,h;b=0;for(h=e.length;b<h;++b)a[b]=e[b]};Ba=function(a,e){a.push.apply(a,
e)};Da=function(a,e){var b,h;b=0;for(h=a.length;b<h;++b)if(a[b]===e)return b;return-1};Ea=function(a,e){var b=Da(a,e);-1!==b&&ya(a,b)};Fa=function(a,e,b){return a<e?e:a>b?b:a};W=function(a){return a/(180/pa)};Ga=function(a){return 180/pa*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};La=function(a){return Ha(Ga(a))};Ma=function(a){return Ka(W(a))};Na=function(a,e,b,h){return Math.atan2(h-e,b-a)};Oa=function(a,e){if(a===e)return 0;var b=Math.sin(a),
h=Math.cos(a),c=Math.sin(e),l=Math.cos(e),b=b*c+h*l;return 1<=b?0:-1>=b?pa:Math.acos(b)};Pa=function(a,e,b){var h=Math.sin(a),c=Math.cos(a),l=Math.sin(e),n=Math.cos(e);return Math.acos(h*l+c*n)>b?0<c*l-h*n?Ka(a+b):Ka(a-b):Ka(e)};Qa=function(a,e){var b=Math.sin(a),h=Math.cos(a),c=Math.sin(e),l=Math.cos(e);return 0>=h*c-b*l};Ra=function(a,e,b,h,c,l){if(0===b)return l?a:e;var n=Math.sin(b);b=Math.cos(b);a-=h;e-=c;var x=a*n;a=a*b-e*n;e=e*b+x;return l?a+h:e+c};Sa=function(a,e,b,h){a=b-a;e=h-e;return Math.sqrt(a*
a+e*e)};Ta=function(a,e){return!a!==!e};Za=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};$a=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var z=+new Date;ab=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()-z};var h=
!1,r=h=!1,Q=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),Q=window.c2ejecta);var y=!h&&!Q&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;g.prototype.contains=function(a){return this.je()?!1:y?this.Qd.has(a):this.items&&this.items.hasOwnProperty(a)};g.prototype.add=function(a){if(y)this.Qd.has(a)||(this.Qd.add(a),this.Ke=
!1);else{var e=a.toString(),b=this.items;b?b.hasOwnProperty(e)||(b[e]=a,this.ei++,this.Ke=!1):(this.items={},this.items[e]=a,this.ei=1,this.Ke=!1)}};g.prototype.remove=function(a){if(!this.je())if(y)this.Qd.has(a)&&(this.Qd["delete"](a),this.Ke=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.ei--,this.Ke=!1)}};g.prototype.clear=function(){this.je()||(y?this.Qd.clear():(this.items=null,this.ei=0),T(this.jh),this.Ke=!0)};g.prototype.je=function(){return 0===
this.count()};g.prototype.count=function(){return y?this.Qd.size:this.ei};var K=null,E=0;g.prototype.mx=function(){if(!this.Ke){if(y)T(this.jh),K=this.jh,E=0,this.Qd.forEach(u),K=null,E=0;else{var a=this.jh;T(a);var e,b=0,h=this.items;if(h)for(e in h)h.hasOwnProperty(e)&&(a[b++]=h[e])}this.Ke=!0}};g.prototype.Ae=function(){this.mx();return this.jh};ca=g;new ca;bb=function(a,e){y?cb(a,e.Qd):db(a,e.Ae())};cb=function(a,e){var b,h,c,l;h=b=0;for(c=a.length;b<c;++b)l=a[b],e.has(l)||(a[h++]=l);za(a,h)};
db=function(a,e){var b,h,c,l;h=b=0;for(c=a.length;b<c;++b)l=a[b],-1===Da(e,l)&&(a[h++]=l);za(a,h)};t.prototype.add=function(a){this.y=a-this.Nl;this.il=this.K+this.y;this.Nl=this.il-this.K-this.y;this.K=this.il};t.prototype.reset=function(){this.K=this.il=this.y=this.Nl=0};eb=t;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};p.prototype.Mi=function(a){this.Xq=a;this.wd=a.length/2;this.nb.length=a.length;this.xj=this.yj=-1;this.To=0};p.prototype.Dg=function(){return!this.Xq.length};
p.prototype.ua=function(){for(var a=this.nb,e=a[0],b=e,h=a[1],c=h,l,n,x=1,v=this.wd;x<v;++x)n=2*x,l=a[n],n=a[n+1],l<e&&(e=l),l>b&&(b=l),n<h&&(h=n),n>c&&(c=n);this.tj=e;this.uj=b;this.vj=h;this.sj=c};p.prototype.Li=function(a,e,b){this.nb.length=8;this.wd=4;var h=this.nb;h[0]=a.left-e;h[1]=a.top-b;h[2]=a.right-e;h[3]=a.top-b;h[4]=a.right-e;h[5]=a.bottom-b;h[6]=a.left-e;h[7]=a.bottom-b;this.yj=a.right-a.left;this.xj=a.bottom-a.top;this.ua()};p.prototype.eh=function(a,e,b,h,c){this.nb.length=8;this.wd=
4;var l=this.nb;l[0]=a.Ca-e;l[1]=a.Da-b;l[2]=a.Va-e;l[3]=a.Wa-b;l[4]=a.Sa-e;l[5]=a.Ta-b;l[6]=a.Qa-e;l[7]=a.Ra-b;this.yj=h;this.xj=c;this.ua()};p.prototype.or=function(a){this.wd=a.wd;Aa(this.nb,a.nb);this.tj=a.tj;this.vj-a.vj;this.uj=a.uj;this.sj=a.sj};p.prototype.pg=function(a,e,b){if(this.yj!==a||this.xj!==e||this.To!==b){this.yj=a;this.xj=e;this.To=b;var h,c,l,n,x,v=0,f=1,r=this.Xq,m=this.nb;0!==b&&(v=Math.sin(b),f=Math.cos(b));b=0;for(l=this.wd;b<l;b++)h=2*b,c=h+1,n=r[h]*a,x=r[c]*e,m[h]=n*f-x*
v,m[c]=x*f+n*v;this.ua()}};p.prototype.Wb=function(a,e){var b=this.nb;if(a===b[0]&&e===b[1])return!0;var h,c,l,n=this.wd,x=this.tj-110,v=this.vj-101,f=this.uj+131,r=this.sj+120,m,d,p=0,u=0;for(h=0;h<n;h++)c=2*h,l=(h+1)%n*2,m=b[c],c=b[c+1],d=b[l],l=b[l+1],ua(x,v,a,e,m,c,d,l)&&p++,ua(f,r,a,e,m,c,d,l)&&u++;return 1===p%2||1===u%2};p.prototype.Sh=function(a,e,b){var h=a.nb,c=this.nb;if(this.Wb(h[0]+e,h[1]+b)||a.Wb(c[0]-e,c[1]-b))return!0;var l,n,x,v,f,r,m,d,p,u,Q,g;l=0;for(v=this.wd;l<v;l++)for(n=2*l,
x=(l+1)%v*2,d=c[n],n=c[n+1],p=c[x],u=c[x+1],x=0,m=a.wd;x<m;x++)if(f=2*x,r=(x+1)%m*2,Q=h[f]+e,f=h[f+1]+b,g=h[r]+e,r=h[r+1]+b,ua(d,n,p,u,Q,f,g,r))return!0;return!1};gb=p;a.prototype.Ve=function(a,e,b){var h;h=this.cells[a];return h?(h=h[e])?h:b?(h=f(this,a,e),this.cells[a][e]=h):null:b?(h=f(this,a,e),this.cells[a]={},this.cells[a][e]=h):null};a.prototype.$b=function(a){return qa(a/this.Rl)};a.prototype.ac=function(a){return qa(a/this.Ql)};a.prototype.update=function(a,e,b){var h,c,l,n,x;if(e)for(h=
e.left,c=e.right;h<=c;++h)for(l=e.top,n=e.bottom;l<=n;++l)if(!b||!b.Wb(h,l))if(x=this.Ve(h,l,!1))x.remove(a),x.je()&&(x.wb.clear(),1E3>R.length&&R.push(x),this.cells[h][l]=null);if(b)for(h=b.left,c=b.right;h<=c;++h)for(l=b.top,n=b.bottom;l<=n;++l)e&&e.Wb(h,l)||this.Ve(h,l,!0).Lm(a)};a.prototype.Vk=function(a,e){var b,h,c,l,n,x;b=this.$b(a.left);c=this.ac(a.top);h=this.$b(a.right);for(n=this.ac(a.bottom);b<=h;++b)for(l=c;l<=n;++l)(x=this.Ve(b,l,!1))&&x.dump(e)};hb=a;c.prototype.Ve=function(a,e,h){var c;
c=this.cells[a];return c?(c=c[e])?c:h?(c=b(this,a,e),this.cells[a][e]=c):null:h?(c=b(this,a,e),this.cells[a]={},this.cells[a][e]=c):null};c.prototype.$b=function(a){return qa(a/this.Rl)};c.prototype.ac=function(a){return qa(a/this.Ql)};c.prototype.update=function(a,e,b){var h,c,l,n,x;if(e)for(h=e.left,c=e.right;h<=c;++h)for(l=e.top,n=e.bottom;l<=n;++l)if(!b||!b.Wb(h,l))if(x=this.Ve(h,l,!1))x.remove(a),x.je()&&(x.reset(),1E3>C.length&&C.push(x),this.cells[h][l]=null);if(b)for(h=b.left,c=b.right;h<=
c;++h)for(l=b.top,n=b.bottom;l<=n;++l)e&&e.Wb(h,l)||this.Ve(h,l,!0).Lm(a)};c.prototype.Vk=function(a,e,b,h,c){var l,n;a=this.$b(a);e=this.ac(e);b=this.$b(b);for(l=this.ac(h);a<=b;++a)for(h=e;h<=l;++h)(n=this.Ve(a,h,!1))&&n.dump(c)};c.prototype.Yv=function(a){var e,b,h,c,l;e=a.left;h=a.top;b=a.right;for(c=a.bottom;e<=b;++e)for(a=h;a<=c;++a)if(l=this.Ve(e,a,!1))l.Gg=!1};ib=c;var R=[];e.prototype.je=function(){return this.wb.je()};e.prototype.Lm=function(a){this.wb.add(a)};e.prototype.remove=function(a){this.wb.remove(a)};
e.prototype.dump=function(a){Ba(a,this.wb.Ae())};ba=e;var C=[];l.prototype.je=function(){if(!this.wb.length)return!0;if(this.wb.length>this.Od.count())return!1;this.km();return!0};l.prototype.Lm=function(a){this.Od.contains(a)?(this.Od.remove(a),this.Od.je()&&(this.rh=!1)):this.wb.length?(this.wb[this.wb.length-1].Jd()>a.Jd()&&(this.Gg=!1),this.wb.push(a)):(this.wb.push(a),this.Gg=!0)};l.prototype.remove=function(a){this.Od.add(a);this.rh=!0;30<=this.Od.count()&&this.km()};l.prototype.km=function(){this.rh&&
(this.Od.count()===this.wb.length?this.reset():(bb(this.wb,this.Od),this.Od.clear(),this.rh=!1))};l.prototype.lu=function(){this.Gg||(this.wb.sort(n),this.Gg=!0)};l.prototype.reset=function(){T(this.wb);this.Gg=!0;this.Od.clear();this.rh=!1};l.prototype.dump=function(a){this.km();this.lu();this.wb.length&&a.push(this.wb)};da=l;var F="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":
F[a-1]};kb=function(a,e,b){if(b)switch(a.Ub=b.ONE,a.Nb=b.ONE_MINUS_SRC_ALPHA,e){case 1:a.Ub=b.ONE;a.Nb=b.ONE;break;case 3:a.Ub=b.ONE;a.Nb=b.ZERO;break;case 4:a.Ub=b.ONE_MINUS_DST_ALPHA;a.Nb=b.ONE;break;case 5:a.Ub=b.DST_ALPHA;a.Nb=b.ZERO;break;case 6:a.Ub=b.ZERO;a.Nb=b.SRC_ALPHA;break;case 7:a.Ub=b.ONE_MINUS_DST_ALPHA;a.Nb=b.ZERO;break;case 8:a.Ub=b.ZERO;a.Nb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.Ub=b.DST_ALPHA;a.Nb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.Ub=b.ONE_MINUS_DST_ALPHA,a.Nb=b.SRC_ALPHA}};
lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var hc="undefined"!==typeof Float32Array?Float32Array:Array;function ic(d){var q=new hc(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}
function jc(d){var q=new hc(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q}function kc(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}
function lc(d,q){var k=q[0],g=q[1];q=q[2];d[0]*=k;d[1]*=k;d[2]*=k;d[3]*=k;d[4]*=g;d[5]*=g;d[6]*=g;d[7]*=g;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q}
function mc(d,q,k,g){g||(g=jc());var u,t,p,a,c,f,e,b,l=d[0],n=d[1];d=d[2];t=k[0];p=k[1];u=k[2];k=q[1];f=q[2];l===q[0]&&n===k&&d===f?(d=g,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(k=l-q[0],f=n-q[1],e=d-q[2],b=1/Math.sqrt(k*k+f*f+e*e),k*=b,f*=b,e*=b,q=p*e-u*f,u=u*k-t*e,t=t*f-p*k,(b=Math.sqrt(q*q+u*u+t*t))?(b=1/b,q*=b,u*=b,t*=b):t=u=q=0,p=f*t-e*u,a=e*q-k*t,c=k*u-f*q,(b=Math.sqrt(p*p+a*a+c*c))?(b=1/b,p*=b,a*=b,c*=b):c=a=p=0,
g[0]=q,g[1]=p,g[2]=k,g[3]=0,g[4]=u,g[5]=a,g[6]=f,g[7]=0,g[8]=t,g[9]=c,g[10]=e,g[11]=0,g[12]=-(q*l+u*n+t*d),g[13]=-(p*l+a*n+c*d),g[14]=-(k*l+f*n+e*d),g[15]=1)}
(function(){function d(a,c,f){this.ke=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Fa=!!f;this.kk=this.Uh=!1;this.Zl=0;this.zl=1;this.to=1E3;this.ux=(this.to-this.zl)/32768;this.Ol=ic([0,0,100]);this.bq=ic([0,0,0]);this.Nr=ic([0,1,0]);this.ij=ic([1,1,1]);this.ep=!0;this.Ek=jc();this.Hc=jc();this.Xm=jc();this.Yl=jc();this.F=a;this.version=0===this.F.getParameter(this.F.VERSION).indexOf("WebGL 2")?2:1;this.Ep()}function q(a,c,f){this.F=a;this.Ni=
c;this.name=f;this.Sc=a.getAttribLocation(c,"aPos");this.cf=a.getAttribLocation(c,"aTex");this.$p=a.getUniformLocation(c,"matP");this.zk=a.getUniformLocation(c,"matMV");this.Sg=a.getUniformLocation(c,"opacity");this.cn=a.getUniformLocation(c,"colorFill");this.aq=a.getUniformLocation(c,"samplerFront");this.mi=a.getUniformLocation(c,"samplerBack");this.Uf=a.getUniformLocation(c,"destStart");this.Tf=a.getUniformLocation(c,"destEnd");this.oi=a.getUniformLocation(c,"seconds");this.gn=a.getUniformLocation(c,
"pixelWidth");this.dn=a.getUniformLocation(c,"pixelHeight");this.li=a.getUniformLocation(c,"layerScale");this.ki=a.getUniformLocation(c,"layerAngle");this.pi=a.getUniformLocation(c,"viewOrigin");this.ni=a.getUniformLocation(c,"scrollPos");this.Bv=!!(this.gn||this.dn||this.oi||this.mi||this.Uf||this.Tf||this.li||this.ki||this.pi||this.ni);this.kq=this.lq=-999;this.Dk=1;this.gq=this.fq=0;this.iq=this.dq=this.cq=1;this.oq=this.nq=this.mq=this.qq=this.pq=this.hq=0;this.Wm=[];this.jq=jc();this.Sg&&a.uniform1f(this.Sg,
1);this.cn&&a.uniform4f(this.cn,1,1,1,1);this.aq&&a.uniform1i(this.aq,0);this.mi&&a.uniform1i(this.mi,1);this.Uf&&a.uniform2f(this.Uf,0,0);this.Tf&&a.uniform2f(this.Tf,1,1);this.li&&a.uniform1f(this.li,1);this.ki&&a.uniform1f(this.ki,0);this.pi&&a.uniform2f(this.pi,0,0);this.ni&&a.uniform2f(this.ni,0,0);this.oi&&a.uniform1f(this.oi,0);this.Ff=!1}function k(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function g(a,c){this.type=a;this.q=c;this.F=c.F;this.Kd=this.Zb=this.Iq=0;this.Y=this.dd=null;this.qr=[]}var u=jc();d.prototype.Ep=function(){var a=this.F,c;this.Up=1;this.Of=this.Ze=null;this.Hj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Fa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Vp=a.ONE;this.Tp=a.ONE_MINUS_SRC_ALPHA;this.wl=new Float32Array(8E3*(this.Fa?3:2));this.jl=new Float32Array(16E3);this.Tq=new Float32Array(32E3);this.zn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.zn);a.bufferData(a.ARRAY_BUFFER,this.Tq.byteLength,a.DYNAMIC_DRAW);this.bj=Array(4);this.Ti=Array(4);for(c=0;4>c;c++)this.bj[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.bj[c]),a.bufferData(a.ARRAY_BUFFER,this.wl.byteLength,a.DYNAMIC_DRAW),this.Ti[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Ti[c]),a.bufferData(a.ARRAY_BUFFER,this.jl.byteLength,a.DYNAMIC_DRAW);this.ae=0;this.Fv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Fv);for(var f=new Uint16Array(12E3),e=c=0;12E3>c;)f[c++]=e,f[c++]=e+1,f[c++]=e+2,f[c++]=e,f[c++]=e+2,f[c++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,f,a.STATIC_DRAW);this.An=this.hh=this.Be=0;this.Pa=[];c=this.Fa?"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}";f=this.zh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},c,"<default>");this.Pa.push(f);f=this.zh({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.Pa.push(f);f=this.zh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Pa.push(f);f=this.zh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Pa.push(f);for(var b in nc)nc.hasOwnProperty(b)&&this.Pa.push(this.zh(nc[b],c,b));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Je=[];this.Zd=0;this.Pb=!1;this.Zo=this.gi=-1;this.tg=null;this.hm=a.createFramebuffer();this.Lj=this.Wk=null;this.No=!1;this.Fa&&(this.Lj=a.createRenderbuffer());this.pf=ic([0,0,0]);this.rq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.rq&&(this.rq=2048);this.jc(0)};q.prototype.oo=function(a){k(this.jq,a)||(kc(a,this.jq),this.F.uniformMatrix4fv(this.zk,
!1,a))};d.prototype.zh=function(a,c,f){var e=this.F,b=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(b,a.src);e.compileShader(b);if(!e.getShaderParameter(b,e.COMPILE_STATUS))return e.deleteShader(b),null;var l=e.createShader(e.VERTEX_SHADER);e.shaderSource(l,c);e.compileShader(l);if(!e.getShaderParameter(l,e.COMPILE_STATUS))return e.deleteShader(b),e.deleteShader(l),null;c=e.createProgram();e.attachShader(c,b);e.attachShader(c,l);e.linkProgram(c);if(!e.getProgramParameter(c,e.LINK_STATUS))return e.deleteShader(b),
e.deleteShader(l),e.deleteProgram(c),null;e.useProgram(c);e.deleteShader(b);e.deleteShader(l);f=new q(e,c,f);f.Qj=a.Qj||0;f.Rj=a.Rj||0;f.Xl=!!a.Xl;f.Xc=!!a.Xc;f.Il=!!a.Il;f.X=a.X||[];a=0;for(b=f.X.length;a<b;a++)f.X[a][1]=e.getUniformLocation(c,f.X[a][0]),f.Wm.push(0),e.uniform1f(f.X[a][1],0);return f};d.prototype.ym=function(a){var c,f;c=0;for(f=this.Pa.length;c<f;c++)if(this.Pa[c].name===a)return c;return-1};d.prototype.Wq=function(a,c,f){var e=this.Hc,b=this.Ek,l=[0,0,0,0,0,0,0,0];l[0]=e[0]*a+
e[4]*c+e[12];l[1]=e[1]*a+e[5]*c+e[13];l[2]=e[2]*a+e[6]*c+e[14];l[3]=e[3]*a+e[7]*c+e[15];l[4]=b[0]*l[0]+b[4]*l[1]+b[8]*l[2]+b[12]*l[3];l[5]=b[1]*l[0]+b[5]*l[1]+b[9]*l[2]+b[13]*l[3];l[6]=b[2]*l[0]+b[6]*l[1]+b[10]*l[2]+b[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],f[0]=(.5*l[4]+.5)*this.width,f[1]=(.5*l[5]+.5)*this.height)};d.prototype.ag=function(a,c,f){if(this.width!==a||this.height!==c||f){this.Te();f=this.F;this.width=a;this.height=c;f.viewport(0,0,a,c);mc(this.Ol,
this.bq,this.Nr,this.Hc);if(this.Fa){var e=-a/2;a=a/2;var b=c/2;c=-c/2;var l=this.zl,n=this.to,m=this.Ek;m||(m=jc());var d=a-e,p=c-b,h=n-l;m[0]=2/d;m[1]=0;m[2]=0;m[3]=0;m[4]=0;m[5]=2/p;m[6]=0;m[7]=0;m[8]=0;m[9]=0;m[10]=-2/h;m[11]=0;m[12]=-(e+a)/d;m[13]=-(c+b)/p;m[14]=-(n+l)/h;m[15]=1;this.ij[0]=1;this.ij[1]=1}else c=a/c,e=this.zl,a=this.to,m=this.Ek,n=e*Math.tan(45*Math.PI/360),c*=n,b=-c,l=-n,m||(m=jc()),d=c-b,p=n-l,h=a-e,m[0]=2*e/d,m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[5]=2*e/p,m[6]=0,m[7]=0,m[8]=(c+b)/
d,m[9]=(n+l)/p,m[10]=-(a+e)/h,m[11]=-1,m[12]=0,m[13]=0,m[14]=-(a*e*2)/h,m[15]=0,e=[0,0],a=[0,0],this.Wq(0,0,e),this.Wq(1,1,a),this.ij[0]=1/(a[0]-e[0]),this.ij[1]=-1/(a[1]-e[1]);e=0;for(a=this.Pa.length;e<a;e++)b=this.Pa[e],b.Ff=!1,b.$p&&(f.useProgram(b.Ni),f.uniformMatrix4fv(b.$p,!1,this.Ek));f.useProgram(this.Pa[this.gi].Ni);f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE1);f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE0);this.Of=this.Ze=null;this.Lj&&(f.bindFramebuffer(f.FRAMEBUFFER,
this.hm),f.bindRenderbuffer(f.RENDERBUFFER,this.Lj),f.renderbufferStorage(f.RENDERBUFFER,f.DEPTH_COMPONENT16,this.width,this.height),this.No||(f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.Lj),this.No=!0),f.bindRenderbuffer(f.RENDERBUFFER,null),f.bindFramebuffer(f.FRAMEBUFFER,null),this.Wk=null)}};d.prototype.$c=function(){mc(this.Ol,this.bq,this.Nr,this.Hc);lc(this.Hc,this.ij)};d.prototype.translate=function(a,c){if(0!==a||0!==c){this.pf[0]=a;this.pf[1]=c;this.pf[2]=
0;var f=this.Hc,e=this.pf,b=e[0],l=e[1],e=e[2];f[12]=f[0]*b+f[4]*l+f[8]*e+f[12];f[13]=f[1]*b+f[5]*l+f[9]*e+f[13];f[14]=f[2]*b+f[6]*l+f[10]*e+f[14];f[15]=f[3]*b+f[7]*l+f[11]*e+f[15]}};d.prototype.scale=function(a,c){if(1!==a||1!==c)this.pf[0]=a,this.pf[1]=c,this.pf[2]=1,lc(this.Hc,this.pf)};d.prototype.Yk=function(a){if(0!==a){var c=this.Hc,f,e=Math.sin(a);a=Math.cos(a);var b=c[0],l=c[1],n=c[2],m=c[3],d=c[4],p=c[5],h=c[6],r=c[7];f?c!==f&&(f[8]=c[8],f[9]=c[9],f[10]=c[10],f[11]=c[11],f[12]=c[12],f[13]=
c[13],f[14]=c[14],f[15]=c[15]):f=c;f[0]=b*a+d*e;f[1]=l*a+p*e;f[2]=n*a+h*e;f[3]=m*a+r*e;f[4]=b*-e+d*a;f[5]=l*-e+p*a;f[6]=n*-e+h*a;f[7]=m*-e+r*a}};d.prototype.Kc=function(){if(!k(this.Xm,this.Hc)){var a=this.uc();a.type=5;a.Y?kc(this.Hc,a.Y):a.Y=jc(this.Hc);kc(this.Hc,this.Xm);this.Pb=!1}};d.prototype.bl=function(a){this.Fa&&(32760<a&&(a=32760),this.Zl=this.Ol[2]-this.zl-a*this.ux)};g.prototype.Wt=function(){var a=this.F,c=this.q;0!==this.Zb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,c.hm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.kk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.kk=!1)};g.prototype.$t=function(){this.F.bindTexture(this.F.TEXTURE_2D,this.dd)};g.prototype.au=function(){var a=this.F;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.dd);a.activeTexture(a.TEXTURE0)};g.prototype.Xt=function(){var a=this.Iq,
c=this.q;c.Hj=a;c=c.tg;c.Sg&&c.Dk!==a&&(c.Dk=a,this.F.uniform1f(c.Sg,a))};g.prototype.Rt=function(){this.F.drawElements(this.F.TRIANGLES,this.Kd,this.F.UNSIGNED_SHORT,this.Zb)};g.prototype.Tt=function(){this.F.blendFunc(this.Zb,this.Kd)};g.prototype.bu=function(){var a,c,f,e=this.q.Pa,b=this.q.Zo;a=0;for(c=e.length;a<c;a++)f=e[a],a===b&&f.zk?(f.oo(this.Y),f.Ff=!0):f.Ff=!1;kc(this.Y,this.q.Yl)};g.prototype.St=function(){var a=this.F,c=this.q;this.dd?(c.Of===this.dd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),c.Of=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.hm),c.kk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.dd,0)):(c.Fa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};g.prototype.Ot=function(){var a=this.F,c=this.Zb;0===c?(a.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.Y[0],this.Y[1],this.Y[2],
this.Y[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};g.prototype.Vt=function(){var a=this.F;0!==this.Zb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};g.prototype.Qt=function(){var a=this.F,c=this.q;c.Fa&&a.disable(a.DEPTH_TEST);var f=c.Pa[1];a.useProgram(f.Ni);!f.Ff&&f.zk&&(f.oo(c.Yl),f.Ff=!0);a.enableVertexAttribArray(f.Sc);a.bindBuffer(a.ARRAY_BUFFER,c.zn);a.vertexAttribPointer(f.Sc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Zb/
4,this.Kd);f=c.tg;a.useProgram(f.Ni);0<=f.Sc&&(a.enableVertexAttribArray(f.Sc),a.bindBuffer(a.ARRAY_BUFFER,c.bj[c.ae]),a.vertexAttribPointer(f.Sc,c.Fa?3:2,a.FLOAT,!1,0,0));0<=f.cf&&(a.enableVertexAttribArray(f.cf),a.bindBuffer(a.ARRAY_BUFFER,c.Ti[c.ae]),a.vertexAttribPointer(f.cf,2,a.FLOAT,!1,0,0));c.Fa&&a.enable(a.DEPTH_TEST)};g.prototype.Yt=function(){var a=this.F,c=this.q,f=c.Pa[this.Zb];c.Zo=this.Zb;c.tg=f;a.useProgram(f.Ni);!f.Ff&&f.zk&&(f.oo(c.Yl),f.Ff=!0);f.Sg&&f.Dk!==c.Hj&&(f.Dk=c.Hj,a.uniform1f(f.Sg,
c.Hj));0<=f.Sc&&(a.enableVertexAttribArray(f.Sc),a.bindBuffer(a.ARRAY_BUFFER,c.bj[c.ae]),a.vertexAttribPointer(f.Sc,c.Fa?3:2,a.FLOAT,!1,0,0));0<=f.cf&&(a.enableVertexAttribArray(f.cf),a.bindBuffer(a.ARRAY_BUFFER,c.Ti[c.ae]),a.vertexAttribPointer(f.cf,2,a.FLOAT,!1,0,0))};g.prototype.Ut=function(){var a=this.Y;this.F.uniform4f(this.q.tg.cn,a[0],a[1],a[2],a[3])};g.prototype.Zt=function(){var a,c,f=this.q.tg,e=this.F;a=this.Y;f.mi&&this.q.Of!==this.dd&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,
this.dd),this.q.Of=this.dd,e.activeTexture(e.TEXTURE0));var b=a[0];f.gn&&b!==f.lq&&(f.lq=b,e.uniform1f(f.gn,b));b=a[1];f.dn&&b!==f.kq&&(f.kq=b,e.uniform1f(f.dn,b));b=a[2];c=a[3];!f.Uf||b===f.fq&&c===f.gq||(f.fq=b,f.gq=c,e.uniform2f(f.Uf,b,c));b=a[4];c=a[5];!f.Tf||b===f.cq&&c===f.dq||(f.cq=b,f.dq=c,e.uniform2f(f.Tf,b,c));b=a[6];f.li&&b!==f.iq&&(f.iq=b,e.uniform1f(f.li,b));b=a[7];f.ki&&b!==f.hq&&(f.hq=b,e.uniform1f(f.ki,b));b=a[8];c=a[9];!f.pi||b===f.pq&&c===f.qq||(f.pq=b,f.qq=c,e.uniform2f(f.pi,b,
c));b=a[10];c=a[11];!f.ni||b===f.mq&&c===f.nq||(f.mq=b,f.nq=c,e.uniform2f(f.ni,b,c));b=a[12];f.oi&&b!==f.oq&&(f.oq=b,e.uniform1f(f.oi,b));if(f.X.length)for(a=0,c=f.X.length;a<c;a++)b=this.qr[a],b!==f.Wm[a]&&(f.Wm[a]=b,e.uniform1f(f.X[a][1],b))};d.prototype.uc=function(){this.Zd===this.Je.length&&this.Je.push(new g(0,this));return this.Je[this.Zd++]};d.prototype.Te=function(){if(0!==this.Zd&&!this.F.isContextLost()){var a=this.F;0<this.An&&(a.bindBuffer(a.ARRAY_BUFFER,this.zn),a.bufferSubData(a.ARRAY_BUFFER,
0,this.Tq.subarray(0,this.An)),c&&0<=c.Sc&&"<point>"===c.name&&a.vertexAttribPointer(c.Sc,4,a.FLOAT,!1,0,0));if(0<this.Be){var c=this.tg;a.bindBuffer(a.ARRAY_BUFFER,this.bj[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.wl.subarray(0,this.Be));c&&0<=c.Sc&&"<point>"!==c.name&&a.vertexAttribPointer(c.Sc,this.Fa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ti[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.jl.subarray(0,this.hh));c&&0<=c.cf&&"<point>"!==c.name&&a.vertexAttribPointer(c.cf,2,
a.FLOAT,!1,0,0)}for(var f,a=0,c=this.Zd;a<c;a++)switch(f=this.Je[a],f.type){case 1:f.Rt();break;case 2:f.$t();break;case 3:f.Xt();break;case 4:f.Tt();break;case 5:f.bu();break;case 6:f.St();break;case 7:f.Ot();break;case 8:f.Qt();break;case 9:f.Yt();break;case 10:f.Zt();break;case 11:f.au();break;case 12:f.Ut();break;case 13:f.Vt();break;case 14:f.Wt()}this.An=this.hh=this.Be=this.Zd=0;this.kk=this.Pb=!1;this.ae++;4<=this.ae&&(this.ae=0)}};d.prototype.re=function(a){if(a!==this.Up&&!this.Uh){var c=
this.uc();c.type=3;this.Up=c.Iq=a;this.Pb=!1}};d.prototype.Tb=function(a){if(a!==this.Ze){var c=this.uc();c.type=2;this.Ze=c.dd=a;this.Pb=!1}};d.prototype.kf=function(a,c){if((a!==this.Vp||c!==this.Tp)&&!this.Uh){var f=this.uc();f.type=4;f.Zb=a;f.Kd=c;this.Vp=a;this.Tp=c;this.Pb=!1}};d.prototype.hr=function(){this.kf(this.F.ONE,this.F.ONE_MINUS_SRC_ALPHA)};d.prototype.Fi=function(a,c,f,e,b,l,n,m){15992<=this.Be&&this.Te();var d=this.Be,p=this.hh,h=this.wl,r=this.jl,u=this.Zl;if(this.Pb)this.Je[this.Zd-
1].Kd+=6;else{var g=this.uc();g.type=1;g.Zb=this.Fa?d:d/2*3;g.Kd=6;this.Pb=!0}this.Fa?(h[d++]=a,h[d++]=c,h[d++]=u,h[d++]=f,h[d++]=e,h[d++]=u,h[d++]=b,h[d++]=l,h[d++]=u,h[d++]=n,h[d++]=m,h[d++]=u):(h[d++]=a,h[d++]=c,h[d++]=f,h[d++]=e,h[d++]=b,h[d++]=l,h[d++]=n,h[d++]=m);r[p++]=0;r[p++]=0;r[p++]=1;r[p++]=0;r[p++]=1;r[p++]=1;r[p++]=0;r[p++]=1;this.Be=d;this.hh=p};d.prototype.Ic=function(a,c,f,e,b,l,n,m,d){15992<=this.Be&&this.Te();var p=this.Be,h=this.hh,r=this.wl,u=this.jl,g=this.Zl;if(this.Pb)this.Je[this.Zd-
1].Kd+=6;else{var t=this.uc();t.type=1;t.Zb=this.Fa?p:p/2*3;t.Kd=6;this.Pb=!0}var t=d.left,q=d.top,k=d.right;d=d.bottom;this.Fa?(r[p++]=a,r[p++]=c,r[p++]=g,r[p++]=f,r[p++]=e,r[p++]=g,r[p++]=b,r[p++]=l,r[p++]=g,r[p++]=n,r[p++]=m,r[p++]=g):(r[p++]=a,r[p++]=c,r[p++]=f,r[p++]=e,r[p++]=b,r[p++]=l,r[p++]=n,r[p++]=m);u[h++]=t;u[h++]=q;u[h++]=k;u[h++]=q;u[h++]=k;u[h++]=d;u[h++]=t;u[h++]=d;this.Be=p;this.hh=h};d.prototype.jc=function(a){if(this.gi!==a){if(!this.Pa[a]){if(0===this.gi)return;a=0}var c=this.uc();
c.type=9;this.gi=c.Zb=a;this.Pb=!1}};d.prototype.Bi=function(a){a=this.Pa[a];return!(!a.Uf&&!a.Tf)};d.prototype.Dn=function(a){a=this.Pa[a];return!!(a.Uf||a.Tf||a.Xl)};d.prototype.Cn=function(a){return this.Pa[a].Xc};d.prototype.zw=function(a){a=this.Pa[a];return 0!==a.Qj||0!==a.Rj};d.prototype.iv=function(a){return this.Pa[a].Qj};d.prototype.jv=function(a){return this.Pa[a].Rj};d.prototype.kv=function(a,c){return this.Pa[a].X[c][2]};d.prototype.Tk=function(a){return this.Pa[a].Il};d.prototype.dh=
function(a,c,f,e,b,l,n,m,d,p,h,r,u,g,t){var q=this.Pa[this.gi],k,C;if(q.Bv||t.length){k=this.uc();k.type=10;k.Y?kc(this.Hc,k.Y):k.Y=jc();C=k.Y;C[0]=c;C[1]=f;C[2]=e;C[3]=b;C[4]=l;C[5]=n;C[6]=m;C[7]=d;C[8]=p;C[9]=h;C[10]=r;C[11]=u;C[12]=g;q.mi?k.dd=a:k.dd=null;if(t.length)for(f=k.qr,f.length=t.length,a=0,c=t.length;a<c;a++)f[a]=t[a];this.Pb=!1}};d.prototype.clear=function(a,c,f,e){var b=this.uc();b.type=7;b.Zb=0;b.Y||(b.Y=jc());b.Y[0]=a;b.Y[1]=c;b.Y[2]=f;b.Y[3]=e;this.Pb=!1};d.prototype.clearRect=function(a,
c,f,e){if(!(0>f||0>e)){var b=this.uc();b.type=7;b.Zb=1;b.Y||(b.Y=jc());b.Y[0]=a;b.Y[1]=c;b.Y[2]=f;b.Y[3]=e;this.Pb=!1}};d.prototype.kr=function(a){if(this.Fa&&(a=!!a,this.Uh!==a)){var c=this.uc();c.type=14;c.Zb=a?1:0;this.Pb=!1;this.Uh=a;this.Wk=null;this.Uh?this.jc(2):this.jc(0)}};d.prototype.jr=function(a){if(this.Fa){var c=this.uc();c.type=13;c.Zb=a?1:0;this.Pb=!1}};d.prototype.np=function(){kc(this.Xm,u);this.$c();this.Kc();var a=this.width/2,c=this.height/2;this.Fi(-a,c,a,c,a,-c,-a,-c);kc(u,
this.Hc);this.Kc()};d.prototype.ir=function(a,c,f){this.jc(3);var e=this.uc();e.type=12;e.Y||(e.Y=jc());e.Y[0]=a;e.Y[1]=c;e.Y[2]=f;e.Y[3]=1;this.Pb=!1};d.prototype.Ww=function(){this.jc(0)};d.prototype.Hw=function(){this.jc(2)};d.prototype.yw=function(){this.Te();this.F.flush()};var t=[],p={};d.prototype.Et=function(){T(t);p={}};d.prototype.Gc=function(a,c,f,e,b){c=!!c;f=!!f;var l=a.src+","+c+","+f+(c?","+b:""),n=null;if("undefined"!==typeof a.src&&p.hasOwnProperty(l))return n=p[l],n.wj++,n;this.Te();
var m=this.F,d=ia(a.width)&&ia(a.height),n=m.createTexture();m.bindTexture(m.TEXTURE_2D,n);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var u=m.RGBA,h=m.RGBA,r=m.UNSIGNED_BYTE;if(e&&!this.ke)switch(e){case 1:h=u=m.RGB;break;case 2:r=m.UNSIGNED_SHORT_4_4_4_4;break;case 3:r=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=u=m.RGB,r=m.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!d&&c){e=document.createElement("canvas");e.width=ja(a.width);e.height=ja(a.height);var g=e.getContext("2d");"undefined"!==typeof g.imageSmoothingEnabled?
g.imageSmoothingEnabled=f:(g.webkitImageSmoothingEnabled=f,g.mozImageSmoothingEnabled=f,g.msImageSmoothingEnabled=f);g.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);m.texImage2D(m.TEXTURE_2D,0,u,h,r,e)}else m.texImage2D(m.TEXTURE_2D,0,u,h,r,a);c?"repeat-x"===b?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE)):("repeat-y"===b?m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,
m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));f?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),(d||2<=this.version)&&this.ep?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,
m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.Ze=null;n.nd=a.width;n.md=a.height;n.wj=1;n.So=l;t.push(n);return p[l]=n};d.prototype.Cc=function(a,c,f,e){this.Te();var b=this.F;this.ke&&(e=!1);var l=b.createTexture();b.bindTexture(b.TEXTURE_2D,l);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,a,c,0,b.RGBA,e?b.UNSIGNED_SHORT_4_4_4_4:b.UNSIGNED_BYTE,null);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,
b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,f?b.LINEAR:b.NEAREST);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,f?b.LINEAR:b.NEAREST);b.bindTexture(b.TEXTURE_2D,null);this.Ze=null;l.nd=a;l.md=c;t.push(l);return l};d.prototype.rx=function(a,c,f){this.Te();var e=this.F;this.ke&&(f=!1);e.bindTexture(e.TEXTURE_2D,c);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,f?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(b){console&&
console.error&&console.error("Error updating WebGL texture: ",b)}e.bindTexture(e.TEXTURE_2D,null);this.Ze=null};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.wj&&1<a.wj?a.wj--:(this.Te(),a===this.Ze&&(this.F.bindTexture(this.F.TEXTURE_2D,null),this.Ze=null),a===this.Of&&(this.F.activeTexture(this.F.TEXTURE1),this.F.bindTexture(this.F.TEXTURE_2D,null),this.F.activeTexture(this.F.TEXTURE0),this.Of=null),Ea(t,a),"undefined"!==typeof a.So&&delete p[a.So],this.F.deleteTexture(a)))};
d.prototype.ad=function(a){if(a!==this.Wk){var c=this.uc();c.type=6;this.Wk=c.dd=a;this.Pb=!1}};pb=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.ie=(this.lk=/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.ec=!!a.dc;this.Kp="undefined"!==typeof window.AppMobi||
this.ec;this.qd=!!window.c2cocoonjs;this.rd=!!window.c2ejecta;this.qd&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.rd&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.tb=this.ec||this.qd||this.rd;this.Wh=
/edge\//i.test(navigator.userAgent);this.ke=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Wh;this.Np=/tizen/i.test(navigator.userAgent);this.ik=/android/i.test(navigator.userAgent)&&!this.Np&&!this.ke&&!this.Wh;this.Rp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ke&&!this.Wh;this.Tv=/ipad/i.test(navigator.userAgent);this.di=this.Rp||this.Tv||this.rd;this.Th=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.ke&&!this.Wh;this.Jp=/amazonwebappplatform/i.test(navigator.userAgent);this.Lv=/firefox/i.test(navigator.userAgent);this.Pv=/safari/i.test(navigator.userAgent)&&!this.Th&&!this.ke&&!this.Wh;this.Rv=/windows/i.test(navigator.userAgent);this.Kf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Pp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Sv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ai=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Tm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Op=!!window.cr_windows10;this.Qv=this.Pp||this.Sv||this.Tm||this.Op;this.Kv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.jk=this.ik&&!this.Th&&!this.lk&&!this.Lv&&!this.Jp&&!this.tb;this.devicePixelRatio=
1;this.Xe=this.ie||this.lk||this.Kp||this.qd||this.ik||this.di||this.ai||this.Tm||this.Kv||this.Np||this.rd;this.Xe||(this.Xe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.$h=!!(this.di&&this.ie&&window.webkit);this.Em=null;this.Dv="";this.$h&&(this.Em=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Kf||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Kf=!0);this.canvas=a;this.Uo=document.getElementById("c2canvasdiv");this.q=this.F=null;this.zm="(unavailable)";this.Fa=!1;this.yf=0;this.Ia=null;this.mm="";this.Xj=!1;this.Gq=this.Hq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.ec&&(window.c2runtime=this);this.Kf&&(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.jk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.Fj=this.width;this.Bh=this.height;this.Og=window.innerWidth;this.Ng=window.innerHeight;this.da=!0;this.Zh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Ma=[];this.Qg=
{};this.td=[];this.gm={};this.ee=[];this.mh=[];this.ql=[];this.ot=[];this.pt=[];this.Sp=this.yr=null;this.vf={};this.Pm=this.We=!1;this.sd=0;this.Om=this.Rm=!1;this.od=[];this.Vh=!1;this.vk=this.Rn="";this.kb=null;this.le="";this.Ri=this.ur=!1;this.Wj=[];this.xf=this.wf=0;this.uq=30;this.Vl=this.qi=0;this.fg=1;this.Fb=new eb;this.Ce=new eb;this.Jk=this.bk=this.Bf=this.Vd=this.Qf=this.lm=this.ok=0;this.tf=null;this.Mj=[];this.fm=[];this.Pj=-1;this.hn=[[]];this.io=this.Ak=0;this.Uk(null);this.kn=[];
this.Ck=-1;this.Hh=this.Aq=this.ti=0;this.Si=[];this.co=this.Gn=-1;this.Ig=!0;this.yk=0;this.Xh=!1;this.$w=0;this.mg=null;this.pc=this.zp=!1;this.Eq=new ca;this.qn=new ca;this.Fq=new ca;this.Gi=[];this.yd=new gb([]);this.bo=new gb([]);this.lg=[];this.gk={};this.Oe={};this.He={};this.kh={};this.Oo={};this.Yp=this.uk=this.$a=this.jb=this.Xp=this.tk=this.Aa=null;this.ih=this.Um=!1;this.nm=[null,null];this.Cf=0;this.im="";this.pe={};this.Qi=this.$e=null;this.xr="";this.Ik=[];this.Gw()}}function q(a,e){return 128>=
e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function k(){try{return!!window.indexedDB}catch(a){return!1}}function g(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(a,e,b,h){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=g;c.onerror=h;c.onsuccess=function(c){c=c.target.result;c.onerror=h;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=b}}catch(l){h(l)}}function t(a,e,b){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=
g;h.onerror=b;h.onsuccess=function(h){h=h.target.result;h.onerror=b;var c=h.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?e(c.result.data):e(null)}}}catch(c){b(c)}}function p(){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 a(a){var e,b={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ca||a[e]&&"undefined"!==
typeof a[e].vy||"spriteCreatedDestroyCallback"!==e&&(b[e]=a[e]);return b}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Gw=function(){var a=this;if(this.$h)this.Em?this.Em.startServer({port:0,localhost_only:!0},function(e){a.Dv=e;a.kp(function(e){a.Rg(JSON.parse(e))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)}):
this.kp(function(e){a.Rg(JSON.parse(e))},function(){alert("Error fetching data.js")});else{var e;this.ai?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var b="data.js";if(this.Pp||this.ai||this.Tm||this.Op)b="data.json";e.open("GET",b,!0);var h=!1;if(!this.tb&&"response"in e&&"responseType"in e)try{e.responseType="json",h="json"===e.responseType}catch(c){h=!1}if(!h&&"responseType"in e)try{e.responseType="text"}catch(l){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.ai?
e.onreadystatechange=function(){4===e.readyState&&a.Rg(JSON.parse(e.responseText))}:(e.onload=function(){if(h)a.Rg(e.response);else if(a.rd){var b=e.responseText,b=b.substr(b.indexOf("{"));a.Rg(JSON.parse(b))}else a.Rg(JSON.parse(e.responseText))},e.onerror=function(a){fa("Error requesting "+b+":");fa(a)});e.send()}};d.prototype.Gv=function(){var a=this,e,b,h,c,l,n,f,r,m;this.Lf=(!this.tb||this.rd||this.ie)&&this.ox&&!this.jk;0===this.cc&&this.di&&(this.Lf=!1);this.devicePixelRatio=this.Lf?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Lb();0<this.cc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.ju&&(this.qd||this.rd||!this.tb)&&(e={alpha:!0,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.F=this.canvas.getContext("webgl2",e)||this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",e))}catch(d){}if(this.F){if(e=this.F.getExtension("WEBGL_debug_renderer_info"))this.zm=this.F.getParameter(e.UNMASKED_RENDERER_WEBGL)+
" ["+this.F.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.Fa&&(this.zm+=" [front-to-back enabled]");this.tb||(this.Ib=document.createElement("canvas"),jQuery(this.Ib).appendTo(this.canvas.parentNode),this.Ib.oncontextmenu=function(){return!1},this.Ib.onselectstart=function(){return!1},this.Ib.width=Math.round(this.Fj*this.devicePixelRatio),this.Ib.height=Math.round(this.Bh*this.devicePixelRatio),jQuery(this.Ib).css({width:this.Fj+"px",height:this.Bh+"px"}),this.Uq(),this.yn=this.Ib.getContext("2d"));
this.q=new pb(this.F,this.Xe,this.Fa);this.q.ag(this.canvas.width,this.canvas.height);this.q.ep=0!==this.cu;this.Ia=null;this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.bw();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Ep();a.q.ag(a.q.width,a.q.height,!0);a.jb=null;a.$a=null;a.nm[0]=null;a.nm[1]=null;a.dw();a.da=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},
!1);e=0;for(b=this.B.length;e<b;e++)for(l=this.B[e],h=0,c=l.U.length;h<c;h++)f=l.U[h],f.cb=this.q.ym(f.id),f.Xc=this.q.Cn(f.cb),this.ih=this.ih||this.q.Bi(f.cb);e=0;for(b=this.td.length;e<b;e++){r=this.td[e];h=0;for(c=r.U.length;h<c;h++)f=r.U[h],f.cb=this.q.ym(f.id),f.Xc=this.q.Cn(f.cb);r.Bd();h=0;for(c=r.W.length;h<c;h++){m=r.W[h];l=0;for(n=m.U.length;l<n;l++)f=m.U[l],f.cb=this.q.ym(f.id),f.Xc=this.q.Cn(f.cb),this.ih=this.ih||this.q.Bi(f.cb);m.Bd()}}}else{if(0<this.cc&&this.ec){this.canvas=null;
document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ia=AppMobi.canvas.getContext("2d");try{this.Ia.samplingMode=this.wa?"smooth":"sharp",this.Ia.globalScale=1,this.Ia.HTML5CompatibilityMode=!0,this.Ia.imageSmoothingEnabled=this.wa}catch(p){}0!==this.width&&0!==this.height&&(this.Ia.width=this.width,this.Ia.height=this.height)}this.Ia||(this.qd?(e={antialias:!!this.wa,alpha:!0},this.Ia=this.canvas.getContext("2d",e)):(e={alpha:!0},this.Ia=this.canvas.getContext("2d",
e)),this.al(this.Ia,this.wa));this.yn=this.Ib=null}this.Fr=function(e){a.La(!1,e)};window==window.top||this.tb||this.Qv||this.ai||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.qd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.vk="__c2_continuouspreview",
this.Ri=!0),this.pw&&!this.Xe&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.gf()});this.tb||(e=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",
e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.cc&&this.Lf&&1<this.devicePixelRatio&&this.setSize(this.mb,this.lb,!0);this.Lr();this.yv();this.go();this.V={}};d.prototype.setSize=function(a,e,b){var h=0,c=0,l=0,n=0,n=0;if(this.Og!==a||this.Ng!==e||b){this.Og=a;this.Ng=e;var f=this.cc,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.Xh)&&!this.ie;if(r||0!==this.cc||b)r&&0<this.Cf&&(f=this.Cf),b=this.devicePixelRatio,4<=f?(l=this.mb/this.lb,a/e>l?(l*=e,5===f?(n=l*b/this.mb,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),l=this.mb*n/b,n=this.lb*n/b,h=(a-l)/2,c=(e-n)/2,a=l,e=n):(h=(a-l)/2,a=l)):(n=a/l,5===f?(n=n*b/this.lb,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),l=this.mb*n/b,n=this.lb*n/b,h=(a-l)/2,c=(e-n)/2,a=l):c=(e-n)/2,e=n),r&&!this.Kf&&(c=h=0)):this.Kf&&this.Xh&&0===this.op&&(h=Math.floor((a-this.mb)/
2),c=Math.floor((e-this.lb)/2),a=this.mb,e=this.lb),2>f&&(this.uh=b),this.Fj=Math.round(a),this.Bh=Math.round(e),this.width=Math.round(a*b),this.height=Math.round(e*b),this.da=!0,this.Wr?(this.N=this.width,this.M=this.height,this.Dc=!0):this.width<this.mb&&this.height<this.lb||1===f?(this.N=this.width,this.M=this.height,this.Dc=!0):(this.N=this.mb,this.M=this.lb,this.Dc=!1,2===f?(l=this.mb/this.lb,f=this.Og/this.Ng,f<l?this.N=this.M*f:f>l&&(this.M=this.N/f)):3===f&&(l=this.mb/this.lb,f=this.Og/this.Ng,
f>l?this.N=this.M*f:f<l&&(this.M=this.N/f))),this.Uo&&!this.tb&&(jQuery(this.Uo).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(h)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(e*b),this.rd?(this.canvas.style.left=Math.floor(h)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.Lf&&!this.tb&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.Ib&&(this.Ib.width=Math.round(a*b),this.Ib.height=Math.round(e*b),this.Ib.style.width=this.Fj+"px",this.Ib.style.height=this.Bh+"px"),this.q&&this.q.ag(Math.round(a*b),Math.round(e*b)),this.ec&&this.Ia&&(this.Ia.width=Math.round(a),this.Ia.height=Math.round(e)),this.Ia&&this.al(this.Ia,this.wa),this.Lr(),this.Rp&&!this.ie&&
window.scrollTo(0,0)}};d.prototype.Lr=function(){if(this.tt&&0!==this.wn){var a="portrait";2===this.wn&&(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(e){console&&console.warn&&console.warn("Failed to lock orientation: ",
e)}}};d.prototype.bw=function(){this.q.Et();this.Um=!0;var a,e,b;a=0;for(e=this.B.length;a<e;a++)b=this.B[a],b.Yg&&b.Yg()};d.prototype.dw=function(){this.Um=!1;var a,e,b;a=0;for(e=this.B.length;a<e;a++)b=this.B[a],b.xi&&b.xi()};d.prototype.Uq=function(){if(!this.tb){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Xh)&&!this.ie?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Ib).css(a)}};
var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var e;if(a&&!this.Zh)for(ea("[Construct 2] Suspending"),this.Zh=!0,-1!==this.Gn&&f&&f(this.Gn),-1!==this.co&&clearTimeout(this.co),a=0,e=this.Si.length;a<e;a++)this.Si[a](!0);else if(!a&&this.Zh){ea("[Construct 2] Resuming");this.Zh=!1;this.ok=ab();this.Qf=ab();a=this.qi=this.bk=0;for(e=this.Si.length;a<
e;a++)this.Si[a](!1);this.La(!1)}};d.prototype.nt=function(a){this.Si.push(a)};d.prototype.Fe=function(a){return this.Ik[a]};d.prototype.Rg=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.mp=a[1];this.cc=a[12];this.op=a[12];this.mb=a[10];this.lb=a[11];this.Pq=this.mb/2;this.Qq=this.lb/2;this.tb&&!this.rd&&(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.op=
this.cc=3);this.qo=a[18];this.bf=a[19];if(0===this.bf){var e=new Image;e.crossOrigin="anonymous";this.lr(e,"loading-logo.png");this.$e={Bk:e}}else if(4===this.bf){e=new Image;e.src="data:image/png;base64,[encoded data, 72588 characters]";
var b=new Image;b.src="data:image/png;base64,[encoded data, 64500 characters]";
var h=new Image;h.src="data:image/png;base64,[encoded data, 26348 characters]";
var c=new Image;c.src="data:image/png;base64,[encoded data, 11240 characters]";
var l=new Image;l.src="data:image/png;base64,[encoded data, 9880 characters]";
var n=new Image;n.src="data:image/png;base64,[encoded data, 8536 characters]";
var f=new Image;f.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABmFBMVEUzMzOIjoM0NDSHjoKFjIFyeG89Pj1gZF5dYVs2NjY4ODhQU0+Ah3yBiH1XWlU5OjmEin86Ozp+hHpwdWx8gnh3fHNSVFCFjIB8gndNUEx6gHaEi4BcYFpFRkRkaGFjZ2Btcmpxd25qb2dTVlF5f3VVWFNISkc1NTVJS0hpbmZ9hHlAQkBUVlJAQT9na2Q8PDtGSEVQUk5xdm1KTElMTktMTkpobWU/QD51enFmamOCiX54fnRZXFdDREJ2fHI8PTxERUNWWVRrcGiAhntcX1leYls7PDpSVVE9Pjx/hntYXFZaXViDin5laWI7PDtvdGtPUU1obGRCREFCQ0FhZV9uc2tLTUqDin9PUk5eYlxscWk1NjVaXlhHSUZiZl9yeG50eXBlamJISUZXWlRRVE96gHVKTEg4ODdpbWZvdGx0enBERkN4fXN7gXdwdW0+Pz5bXllPUk1scGhrcGd9g3lISkZYW1UzNDNYW1ZjZ2E/QT+GjYJUVlFgZF03Nzc5OTlnbGRjaGBERUKIj4JGR0U3ODd2e3JjaGE5GY8RAAAGGUlEQVR4Xu2XVZMrNxCFdQbMzIzLzMzMzJeZmcIMfzvWaMjrWxunspO6qdV52G5199qaT9K0TL5gcXFxcXFxcXFxcXFxcXElc+6qsZDL+clVkh1dVeNmwMYB/CfiADgADoAD4AAE3ywhznJr8VZrzGmOD+Reytvf96jDTl9MT5V9euGgTytwNZbkvtGdZnWY9TUR0t9V7Gth456DsFzIDBND2a7x0Iszt/B5AN0OuS301LGkRNp9jaZ8v6+fXKKaAeFoFYrabujhlhdgkjuV8TcQ/WpqBRjQykI4Yc7sGBQlVCAO7DoLADBLR7Y+lhXz17SvHaVDEYjaPgcgFgBEAIFe5d9FfDBWZh6NlwzgOzGy9ottcmIecW09G0U8jw0H9ydCOL6rRBLoVXM+6DPuxLcuxdmElOtZsvVGIbWoAIYKSC3snLRXBvseNCwPB7MHEsICA1CC+PW+ILQvBkKPawFkMO4OEmf/bYhJGiqaSloguS4ZgDTHtrQ/ijbmPRRhZzN9dIgxG3Xy+hxuQfKwJLkHWbET8D5jyzMEj4sB8GBRrfKH0MWOxrMxLCjOfYhJlWFIrAUgtjZrH+f9sWLdONZP3SjOyCUDiGoHdzoAnxKLYFfPT6FAbT9C6uOIKRl3mV/AOjU2SWzSysdxygBglKi6gz5BdU8QoHyEBG5q2Z5aABjXZuSMIEPNGNxa1ovkZQNoMXWkKDUxjBm7bAag2/hamholaZ9Qpy9ssFgOJb18B20MQNyvRrYksV1PN6BcMTcgBfXQ21oAg/rAhwRj+FINDMDbfNkAjKYzCdBpP0GeGLoNBzWH+Epd9R4bImzx2MMKXjTp1U4JrxQAh1pkDTLRdYrHFbOIYp1tsBtYoS0DYrf28sgR6wAIAeVRNmBuNNfZbBvxhBpnelUgUexRP4NNhi0gGOUPMKgAaNUCBVw3sm8wpYRO6wRA5nHEPnWd8Q0gayEAMo4YIVuAvkGN07+CNO1hSfrQC8jQkMz6YS88DkNtWK4GkMJbIzuE95VQFI31AhhhpRNoIOy7XhArARRxj5B2/GqumEFAPb60ww3hIW1/zyvuD1JcaRqzqFZHNQAPqhRiPbVeAC+xRk1QwgzbThlLAfTBRwGI5opJpNWJ2ul59woUBqU2iLD6ohp3m/WqGoAXGXN2QAFwUi+AMANACsp7ySXBZimAEbp8rwAnMXQDHsU2YZz+GaL+In0j5nGP3ZogkypVA1hF0/lsFB31AritnpYkPM2ElCETSwGsYrASEjFJDHUgqlhhDEGSZ114DzLbBlRHWL0IwB+1V9dDOOoFEMIgi3owQHdoh6UAgmzwnK6vriHtSjOHGGkLsM2REP1bSLH4EtB5AYBNlM5nT7FdJ4CgPriJMxIU4y5LAXRot5ioUeA61u4ly3g8gzNt1ssxHOgHx34BgH52JzKrCfFH+uDPWgB7phlFVG8fkt+HOWIBAH25hQb2JNMS3HrBASIC84JiKIP7zM9iblc/227EjS3QfR6AkMJPRB9sKaEIFrTIkrcWwJzup4wbwxRmRzBoBYB0j75s8Wl1i47NqLFeEUljCg36L7G2+dRxswZORqpb6xne3XMAyENgQqscZb+aliGpX+p6iloAOp6fsaHvnlkk4BGsAJCIX6cb0pUDPqrzDCO9Rg+7/6Zo2t6LQFjz88CZseoRzMcoDtd6GuXzAMhroDRMnd9kNPyudrX0ur9SX34vhWsBtGL7g0DIXgG4b5zFOJAnVgCYLEKaejIiwdhu10aB+Eg4KkIy3WOzQKPRHFEmBgEZ2JDDUQmBZVIDgHQEgFS4OA/cCrKIcw6AxyPC07JeC8BpFyGtbgCSuYGUgBlLANg+uWUJkMJ3TfFsyQsgtDlsigl9I0GTv0VMSobTABL2afWRRxzmbLc9AiAQ3jFCA9teMTCVcZGjd9VtUnhXImSmKyJJkTtV3eUNHlBjTRcQpqdrjpd/5Z/1nKUV5wVZ58rSJ/KvlMdrqwD8LyR4xOkrDWAARXKlATxF75UGsIiIcGUBZCccUxBbyJUF4APgTRJrNDwskC9dto8Lsb9vyVxcXFxcXFxcXFxcXFxcfwEXKq8s5phFegAAAABJRU5ErkJggg==";
var r=new Image;r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAACEFBMVEUzMzN9g3g0NDR7gXdzeG9CQ0E1NTWBh3w6OzpvdGx9g3k6OjlkaGFLTUqEi394fXRvdGt1enE2NjZ3fXM9Pj1iZl+AhntVWFNjZ2BWWVQ4OTh1e3FwdWxpbmZAQT83Nzc4ODdrcGhuc2tMTkpKTElNT0tRVE9aXVdPUU1PUk42NzZ6gHZLTUk7PDs5OjldYFp0eXB+hHlYW1Z0enBeYlx+hHp5f3WAh3w2NjVtcmpqb2dMTktISkd/hntHSUY4ODhmamNdYVtnbGRBQkA3ODdyd25yeG88PTs7OzpQUk5ERkNZXFdhZV5eYVuCiX03NzY1NjVOUU2Din5ERUM/QD9uc2pma2N+hXpUV1JFR0Q0NTRDREKIj4OCiH1XWlVGSEVfY1w9Pjw+Pz0/QD6Ein92fHI7PDpdYVp8gniFjIA8PTyAhnxgY11gZF5FRkRQU05YXFZna2NCREFSVVFAQkB/hXpXW1Vrb2dJSkc9PTxlamKFi4BISUZZXVeHjoJzeW9gZF1TVlFfYlxna2RVV1JcX1lbX1lNUEyDiX5tcmlzeXB8gndRVFBOUExpbWZSVFBNT0xhZF5laWJ4fXNwdW1RU09bXllDRUJqbmZfY12Ei4BUVlJbXlhKTEhTVVFcYFpeYltxdm1xd25obGU1NTSFjIFKS0iBiHxscWl9hHlscGhpbWVaXVhvc2ttcWk0NDPL7ZluAAAChElEQVR4Xu3SU6+kWRxG8fWibNvHtm3bdtu27bFtfsXJ6a5UMkklXdU5yZlMat09++Kf38Xmf1mmTJnmnwOAuN3FvpT1fhyw5OVdygBETYlekvStAEUfCKYDBXD+KTAWVQOxduDDMu13WcCx1dLCNpifFrZXRCBoXi4fyk4AggGnKqCmxOwFaDyaImBJ7td1TleK4KlubA1GfHXkdAOx658DnwzCbctAONb8AGTTewN2DOXZrYs+B/TVfhEadUkJgK9RqWszLWBxAfhXUgV8CYxpsyneUgBizx/orhTAqYYocOQsCqcXiEkgRwDluVVAPXGYow0AHyUARYBY089cJaA7pE4V4AV4pcejAeClCSwGxNk+VQiFAMccAKKxFzkfMNgA0ORge5bkDwy3ETZugidKWoC5KO5PAbB/Bl+7afETyWNQD/VP5N1+/Bh5HKhQvZ5HTqJaTAL4SgO/fwOP89MD3DKjrwKg9xBMFuK4S34AvwHM9xSvs74B5Na/mTpUp5MAzmigScvhkbr0AO0z5F4A4KIENF+S1ISaR1VWuFxFvNeAE2XEs2UnAZTOAMLVazOkDNgEsOUQnFADBIaADscNoH7YDBSVWwGUcUCJURGfN78HcCUAxwFMJ4DSO7aW1AHyBgtr0hi4LXaU96t1QJ6xAnjx0APwyF+M6Po2DqDi4CQ0FXrZUXl+EPMOJgC+FkLuGiWwbhRIHfBTpTDSvQGIudXan39ZBwj/age8WjuAcs0p1DbsQMQAwAtp1ll2HFDIxtqOpt/igJqpP5e3/ioGoKcqDYCXOivxukSSFv73e4HyLVeFqbQAe16Whf0EdI5rDaTc33ore9wBzTj/0TJlyvQPsTd0lRaZaakAAAAASUVORK5CYII=";
var m=new Image;m.src="data:image/png;base64,[encoded data, 9588 characters]";
var d=new Image;d.src="data:image/png;base64,[encoded data, 10044 characters]";
var p=new Image;p.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABnlBMVEUzMzOIjoM0NDSHjoJyeG+FjIE2NjZISkeAhntNUEw4ODhVWFN1enFXWlWFjIA9Pj06Ozp4fnRxd26Ah3x6gHZtcmqEin98gnh5f3U8PTxobGWBiH1+hHo1NTVBQkBWWVQ9PjyEi4BMTkp9hHlna2Q5OjlDREJRVFBgZF6Din5laWJGSEU/QD5UVlJ7gXdscWlcX1lFRkRAQT9aXlhvdGtjZ2BCQ0FmamOCiX5wdm03Nzc7PDtHSEZJS0hTVlFpbmZYW1ZERkNuc2tdYVs3ODdCREF2fHJbXlliZl9QUk41NjVeYltZXFc/QD9YW1VQU09tcmlhZV9scGhKTEl3fHNeYlxERUNwdWw7PDpcYFpLTUpqb2d/hntpbWY+Pz5nbGR2e3JMTktWWlR9g3l0eXA8PDt8gndPUk44ODeDin9obGRaXViBiHxrcGhTVVFPUk1OUE1KTEhvdGx4fXNZXFZlamJyeG5RVE90enCGjYJkaGFgZF1rcGczNDNISkZISUZAQj9gY11fY11kaGBLTkpERUJVV1NGR0VUVlFwdW0dCiH/AAAHg0lEQVR4Xu3WVZPkOBYF4HOMycxYyMzMDM3MzMwwM8v4r3fKkpyZ1d3R2Rsxuw/j71HlSstH90rC/57H4/F4PB6Px+PxeDwe26/h98wmV/B71kaO4HftQ3UP/z8ej2cs3A1lKWxBagv3Yy4c3oB0JjwAqSv8ArDDi5AC4RNQguEo6gQGryWM9LnR+qHgcsL4+XgMUjgcAIB7h9OYOjVrrDhjc4htrxk3cMg6MT1rTPTY+JrrIyeNRMcJCzWrf54wZvv8ZUh2+O/AvYOTvw6ewaG5pWXDuFINwHGMeieEFvIWpBIfACX6IWW5A+ka+4Ag45C6+SmgpkM9hprwIwoJN5bbvXRE1jU4yD+J4zCLSzrJZ85YS9sMySQADCYpbI3hKKtPp8P3ElJ0lkL2bxA6OKKNmHQYMeCD/MGiiAP3uQshTHZAGHM+app9EDbJLCQf24A8eRHCSVIVUZBbqLlE/cZiPra6P8OreTg+U3+8mJ+3p3X+fCSA9rdMnjrx0nbGdk2zsOR/AWCHeuHMfKBSvcNkHo3mQny0vnox6p8lq3CMFul7shkb6N4i36oA1t9x1n8sak+avPvLOK+On49ODQ6xVSQ66X71e5pJTS4UDQB+Zt1viXAKjgojFoC4+mqrNcJhCKe5DteYrgqoJcs0Dg0yImNfyPB2YwCZyEQAApm8L5f7ASOv4AjE+QyNlpmVpfWWn7oAYD7JhPgVbZ30ywCGVDxt5F95QTzwMMdl0d0swdGppwz+EY40nwDYMCk7/w2neQmOFb4GgJ/kv+MWC2bGEi8tchSuESYg2aLP5ooMQlqir9wQAHN7kMjWAQhnOQKpn6ZKyB2YglTgsIgkZ0GapM8SAbAHUppMqQf8bHVmsNfKiuzlngPZ6VqvGEvI6KLcWuVZOCbE0i0wCcdjtk3IvWOVSQ2uPvZBeWr2Ox0ypEHSrvIPjQG0QanNWCv5xqAUuYB6VzgNpcLIHhDVaUOxfAyKAGY2IAXJl5AsXRb1GldkOv1RZmW27Th0wLRc9W3cYQsAlDOMOhnNsEusembvOcV+vc0CakYYQqOJ+g4ZZrghgBkNCnkeXzHk7tFqlWy4ipwCnjCOmnM0RAAdUM7Q3IPi46JM5bXo5asaznJTtHyf3AsfOdMyOIYdHhcrn1L5j4uZX0Gn+VQTBbOLhj3gpzLqJbkI11yn1RBACS5y4OsB+FGnQt2CK9CpAWv8C2pGGdGcAHqg2PTB1S6LroWte05L9AEjotMNlXWWC2J3APr5HgD2eUqdfgnRabvArFPOlinOQ6Wqs/3cqAbFIqOo12QA2pR/MPgrX2MAl9n+ZUS7qLHIgWYCQM5ZmAJfAWN8A2DOjFjq2DoHYInnDpvW2chCqu5iumkBuBPZAILccerLQIOFEMnetWAMjntk4McD2Cz0UmoM4ATjOCJJG3UyPN9UAD3sAbRiUXPCiAJtvOCmfBNAmuedMLqBgN5bhnCTl4EurjlhZJ3fGccRle3ZDGk+vggA+f8mgH2dpenqrUXbtkuNAXR/GcDTxm2yl6NNBWAzDtgsiApfASZ5G4IV0TthRdrFY2nAz9OQ1jkJ7HNJ9EwXEGcFX9L6P0foqwAIkPd+NIBtRoLa1/cAP4dwRIltqGOy0lQA2gxjmBTxbtIQZSBN8AH8nHQee9pq4TOXIK0yBcTFRfo41xHT2/F10ThzGoAIV38wgFiE/m9tgqPM4Ii7XEHNdfJhUwHgGbvRLi8z9/XOeaagVNmBgrweTdOPFOch/ZJk/rq87OQZxy778A1Rnf90miYIV0tX7PsBPGcc3wpgQ+cYXJUuC9hhGjVLHEJzATzntfMcVhvC826eghJlSSvK681lFlp4Fq4CBw8YVhtCtKPxmB5YvgFXjt3OwTwB1xr/8f0ARngSiqZOAeUjD+ovBccAm2YMLoM9TQYQ00uX+EEV1rPHtOFK8V/qwlWeSXZzH64HXE4wD8cTVrMRC3XmyUpd2H4Ax3R9ClJnhmPfD+A441DGeSSAQbZbENSFPsdpKLeoDzQZALaYMwNq2Jd6VIarh3FehnCNCY7CFfiUjdx0++29e3RoagEmNAi7cmVu8M1D+cwwJ5rYAzbpltWgTr5oeEE5xQ4V531RDYvkIIRKkZNoNoB9urPHJDmMGpt0Dz4/Gy77MMhxSHHKbiiHdDHY1crEKgA8HDflHAIppmznbwn68k0EgDRbgxagLaR5NsVqwwvQleHaAADtVpaGJnuG7+YB7AV7eXev6QBGySCkBXIJNeVeXoFkZVhAnXHyGKRL5HUcmqLaQ/tLpC/xessk+2RuFz+SpcS/s2R8AM0EEAiRrblcL5kOpPmu8QUYLZGpC4kieXoOQjVCPX7hboa8YqHpALQLRgySNmHMo86p0BkoPaE21KmETkMZCw2r4i6pMOdWQiZJ33I/FK3bMEnz42AZQijU4ixmKA3AHctDKR+P6+TM6UUgGLp25AXYGMnpZObkK7hadu6QnBm2IW2HqlC6QmtwDYf68ZvT5qOBo0P5fBk/worG8G1Wy0UcsdESw5c8Ho/H4/F4PB6Px+PxeDwej8fzH+ab6YZ24mCxAAAAAElFTkSuQmCC";
var u=new Image;u.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAABblBMVEUzMzM2NjY4ODheYlxAQkA/QD58gng0NDQ5Ojl6gHaCiX59hHlMTktZXFc9Pj15f3VkaGFdYVuEi39WWVQ8PTxgZF5FRkRtcmo1NTVlaWJscWl4fnSBiH1xdm5iZmBqb2c9Pjx2fHJcYFpYW1Y6Ozp9g3lHSEZcX1mAhnt+hXo3NzdSVFCHjoJGSEVAQT9CQ0FERUNZXFZobWVERkOAh3xUVlI8PDt1enF3fHNiZl9DREJ2e3I3ODdRVE+FjIE4ODdOUU2Din9KTElVWFNJS0hxdm1MTkpna2RbX1lQUk5XWlV7gXd8gndrcGhuc2tfY11tcml0eXBNUEyDin5yeG9ISkc1NjVmamOEi4BKTEhvdGx6gHVLTUp0enBwdWxNT0x4fXR4fXNVV1M+Pz5aXVhbXlhPUk5vdGs7PDs/QD9pbmZTVVGIj4NXWlRgZF1pbWY5OTlhZV9TVlFlamJzeXB/hntscWg0NDNeYluBiHw6JP9nAAAC8ElEQVR4Xu3R1YpsORhA4bVdyt3dXdvd3e2467jL2w+himloai7m6nCgvos/yWYTFoSv3tTUlFzky/pxhy+rGOQrZ0YM4NsCQEY7cAF80wEGMZTHwKz4gZkthNk7Sz8PA6xclOZmxBqA3stA4gkrb9ZzHviQKiUUibF2Rre8JiDlX+s7u0D4zN3XPUq0GDs6upOB4zKQcwCabbR0QG0qgOKlsgd839wGnq8DSKVK0Zyxu5B/FV4O587A54X+q3hLw5dI3ajsv25JWiTOSGc4YwZDR3WiF3FV3i0VwGldb8uDRCy3YmqRCJBWIGjNdyFwgpHUoJLxAEvPWKwBOxkvrD1aA9h+ChBKE7yaBT755VHAnAH4HBJQVQF51UTgRQHgNEDhuQG0/UGczTaw+Z0TKDaXYXMJDkMVBeINyARgXj3WkDck+F1FdmQd4EwhqLaGwFYEwZUdBbwD8MX4V7KNIK3+BHBzSe4DQqSAMwfwdtUA2NDgdsMkFVY9GMkiNCIELUIu1k+BvQKNGEtdvC4EAsPzgBsILTAyCnCNd8Lgh/jHj6ujADXJ2NVnxpHOOQC3H8EWn08P5BJYWngJMG3jUCF8QSwArD8h/ph3CpbKiOT82ZGRCIX+K8Bn/dJxu+1xwJAx/1uEyq8TArb2Gl5QXJU8wFw5NYBS8TgLLNtyLYrmCercu91RKGQQzOjDgOyGef8EyE0JQFrDs4nQ358QkHXEb2Dxt+sBQN6rA2mfByG10AcS4m7hfQ/g8A/UpAQYQ+1hQMsB4B4/AbkDgLTC2QmAaXcmBOBxGIClI3T9aaBshxBc/ksgbz+DbgPKwzK4PVvQj8vU7855GFBPBgzK848W+bOXhe1aGC6rWWTdFyV4HWNSQD59PyFRBoxEC6GtS4Aq5ntRvjtfdThcQDRU1asLEvQUWHgD0PsLIJy4SqYWXzip114Cu55aNdUBZk/+LtX2DdiMAAQthKdu/q/bOmNrTCZFJx+NZSaYmpqamvoHZD1hKSAldSkAAAAASUVORK5CYII=";
this.$e={Bk:[e,b,h,c],vw:[l,n,f,r],tx:[m,d,p,u]}}this.ti=a[21];this.Ik=oc();this.Td=new X(this);e=0;for(b=a[2].length;e<b;e++)f=a[2][e],h=this.Fe(f[0]),qb(f,h.prototype),r=new h(this),r.gl=f[1],r.Ye=f[2],r.zy=f[5],r.wq=f[9],r.O&&r.O(),this.plugins.push(r);this.Ik=oc();e=0;for(b=a[3].length;e<b;e++){f=a[3][e];l=this.Fe(f[1]);r=null;h=0;for(c=this.plugins.length;h<c;h++)if(this.plugins[h]instanceof l){r=this.plugins[h];break}m=new r.ja(r);m.name=f[0];m.I=f[2];m.Mm=f[3].slice(0);m.qx=f[3].length;m.ut=
f[4];m.Tu=f[5];m.ea=f[11];m.I?(m.Ug=[],m.fe=this.Hh++,m.Ja=null):(m.Ug=null,m.fe=-1,m.Ja=[]);m.Uj=null;m.xg=null;m.fp=null;m.fc=!1;m.lc=null;f[6]?(m.Ui=f[6][0],m.kl=f[6][1],m.of=f[6][2]):(m.Ui=null,m.kl=0,m.of=0);f[7]?m.kc=f[7]:m.kc=null;m.index=e;m.j=[];m.Jj=[];m.ve=[new rb(m)];m.Gd=0;m.Oc=null;m.Kt=0;m.gh=!0;m.rl=sb;m.Zu=tb;m.gv=ub;m.ba=vb;m.Di=wb;m.Ei=xb;m.jf=yb;m.dk=zb;m.pm=Ab;m.tm=Bb;m.jd=Db;m.um=Eb;m.Cj=new hb(this.mb,this.lb);m.qj=!0;m.rj=!1;m.V={};m.toString=Fb;m.Ma=[];h=0;for(c=f[8].length;h<
c;h++){d=f[8][h];p=this.Fe(d[1]);u=null;l=0;for(n=this.Ma.length;l<n;l++)if(this.Ma[l]instanceof p){u=this.Ma[l];break}u||(u=new p(this),u.Hk=[],u.Gk=new ca,u.O&&u.O(),this.Ma.push(u),pc&&u instanceof pc&&(this.yr=u),gc.Vv&&u instanceof gc.Vv&&(this.Sp=u));-1===u.Hk.indexOf(m)&&u.Hk.push(m);l=new u.ja(u,m);l.name=d[0];l.ea=d[2];l.O();m.Ma.push(l)}m.global=f[9];m.Qm=f[10];m.U=[];h=0;for(c=f[12].length;h<c;h++)m.U.push({id:f[12][h][0],name:f[12][h][1],cb:-1,Xc:!1,Ac:!0,index:h});m.Fy=f[13];this.qo&&
!m.I&&!m.Qm&&r.Ye||m.O();m.name&&(this.types[m.name]=m);this.B.push(m);r.gl&&(h=new r.Z(m),h.uid=this.ti++,h.Yq=this.Aq++,h.Hf=0,h.Mh=Gb,h.toString=Hb,h.u=f[14],h.O(),m.j.push(h),this.pe[h.uid.toString()]=h)}e=0;for(b=a[4].length;e<b;e++)for(l=a[4][e],n=this.B[l[0]],h=1,c=l.length;h<c;h++)f=this.B[l[h]],f.Ja.push(n),n.Ug.push(f);e=0;for(b=a[28].length;e<b;e++){l=a[28][e];n=[];h=0;for(c=l.length;h<c;h++)n.push(this.B[l[h]]);h=0;for(c=n.length;h<c;h++)n[h].fc=!0,n[h].lc=n}if(0<this.Hh)for(e=0,b=this.B.length;e<
b;e++)if(f=this.B[e],!f.I&&f.Ja.length){f.Uj=Array(this.Hh);f.xg=Array(this.Hh);f.fp=Array(this.Hh);m=[];h=u=p=d=0;for(c=f.Ja.length;h<c;h++)for(r=f.Ja[h],f.Uj[r.fe]=d,d+=r.qx,f.xg[r.fe]=p,p+=r.ut,f.fp[r.fe]=u,u+=r.Tu,l=0,n=r.U.length;l<n;l++)m.push(xa({},r.U[l]));f.U=m.concat(f.U);h=0;for(c=f.U.length;h<c;h++)f.U[h].index=h}e=0;for(b=a[5].length;e<b;e++)f=a[5][e],h=new Ib(this,f),this.Qg[h.name]=h,this.td.push(h);e=0;for(b=a[6].length;e<b;e++)f=a[6][e],h=new Jb(this,f),this.gm[h.name]=h,this.ee.push(h);
e=0;for(b=this.ee.length;e<b;e++)this.ee[e].Ua();e=0;for(b=this.ee.length;e<b;e++)this.ee[e].no();e=0;for(b=this.ql.length;e<b;e++)this.ql[e].Ua();T(this.ql);this.qt=a[7];this.im=a[8];this.gc=a[9];this.uh=1;this.ju=a[13];this.wa=a[14];this.Wo=a[15];this.ox=a[17];this.wn=a[20];this.tt=0<this.wn;this.pw=a[22];this.Dc=this.Wr=a[23];this.cu=a[24];this.ww=a[25];this.Fa=a[27]&&!this.ke;this.hl=Date.now();T(this.Ik);this.Gv()};var e=!1;d.prototype.xl=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){e=
a.Ro=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.rd?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(e){a.src=e},function(h){e=a.Ro=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",this.lr(a,b)));this.mh.push(a)};d.prototype.Ru=function(a){var e,b;e=0;for(b=this.mh.length;e<b;e++)if(this.mh[e].Ft===a)return this.mh[e];return null};var b=0,l=!1;d.prototype.yv=
function(){this.mg&&(b=this.mg.Uw(this.qt))};d.prototype.Mo=function(){var a=b,e=0,h=0,c=!0,f,n,h=0;for(f=this.mh.length;h<f;h++){n=this.mh[h];var r=n.Wl;if(!r||0>=r)r=5E4;a+=r;n.src&&(n.complete||n.loaded)&&!n.Ro?e+=r:c=!1}c&&this.ww&&this.mg&&(l||(this.mg.ax(),l=!0),h=this.mg.hv(),e+=h,h<b&&(c=!1));this.vd=0==a?1:e/a;return c};var n=!1;d.prototype.go=function(){if(this.Ia||this.q){var a=this.Ia||this.yn;this.Ib&&this.Uq();var b=window.innerWidth,h=window.innerHeight;this.Og===b&&this.Ng===h||this.setSize(b,
h);this.vd=0;this.Wp=-1;var l=this;if(this.Mo()&&(4!==this.bf||n))this.zv();else{h=Date.now()-this.hl;if(a){var f=this.width,r=this.height,b=this.devicePixelRatio;if(3>this.bf&&(this.qd||500<=h&&this.Wp!=this.vd)){a.clearRect(0,0,f,r);var h=f/2,r=r/2,f=0===this.bf&&this.$e.Bk.complete,m=40*b,d=0,p=80*b,u;if(f){var g=this.$e.Bk,p=g.width*b;u=g.height*b;m=p/2;d=u/2;a.drawImage(g,qa(h-m),qa(r-d),p,u)}1>=this.bf?(h=qa(h-m)+.5,r=qa(r+(d+(f?12*b:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(h,r,Math.floor(p*
this.vd),6*b),a.strokeStyle="black",a.strokeRect(h,r,p,6*b),a.strokeStyle="white",a.strokeRect(h-1*b,r-1*b,p+2*b,8*b)):2===this.bf&&(a.font=this.rd?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.Ey="middle",b=Math.round(100*this.vd)+"%",f=a.measureText?a.measureText(b):null,a.fillText(b,h-(f?f.width:0)/2,r));this.Wp=this.vd}else if(4===this.bf){this.hu(a);c?c(function(){l.go()}):setTimeout(function(){l.go()},16);return}}setTimeout(function(){l.go()},this.qd?10:100)}}};var m=-1,S="undefined"===
typeof cr_is_preview?200:0,z=!0,h=!1,r=0,Q=0,y="undefined"===typeof cr_is_preview?3E3:0,K=null,E=null,R=0;d.prototype.hu=function(a){if(!n){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),l=this.$e.Bk,f=this.$e.vw,d=this.$e.tx,p=0;4>p;++p)if(!l[p].complete||!f[p].complete||!d[p].complete)return;0===R&&(m=Date.now());var p=Date.now(),u=!1,g=a,t,k;z||h?(a.clearRect(0,0,b,c),K&&K.width===b&&K.height===c||(K=document.createElement("canvas"),K.width=b,K.height=c,E=K.getContext("2d")),g=E,u=!0,
z&&1===R&&(m=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,b,c);256<this.Bh?(t=Fa(.22*c,105,.6*b),k=.25*t,g.drawImage(q(f,t),.5*b-t/2,.2*c-k/2,t,k),k=t=Math.min(.395*c,.95*b),g.drawImage(q(l,t),.5*b-t/2,.485*c-k/2,t,k),t=Fa(.22*c,105,.6*b),k=.25*t,g.drawImage(q(d,t),.5*b-t/2,.868*c-k/2,t,k),g.fillStyle="#3C3C3C",t=b,k=Math.max(.005*c,2),g.fillRect(0,.8*c-k/2,t,k),g.fillStyle=e?"red":"#E0FF65",t=b*this.vd,g.fillRect(.5*b-t/2,.8*c-k/2,t,k)):(k=t=.55*c,g.drawImage(q(l,t),.5*b-t/2,
.45*c-k/2,t,k),g.fillStyle="#3C3C3C",t=b,k=Math.max(.005*c,2),g.fillRect(0,.85*c-k/2,t,k),g.fillStyle=e?"red":"#E0FF65",t=b*this.vd,g.fillRect(.5*b-t/2,.85*c-k/2,t,k));u&&(z?a.globalAlpha=0===R?0:Math.min((p-m)/300,1):h&&(a.globalAlpha=Math.max(1-(p-Q)/300,0)),a.drawImage(K,0,0,b,c));z&&300<=p-m&&2<=R&&(z=!1,r=p);!z&&p-r>=y&&!h&&1<=this.vd&&(h=!0,Q=p);if(h&&p-Q>=300+S||"undefined"!==typeof cr_is_preview&&1<=this.vd&&500>Date.now()-m)n=!0,h=z=!1,this.$e=E=K=null;++R}};d.prototype.zv=function(){this.Ib&&
(this.canvas.parentNode.removeChild(this.Ib),this.Ib=this.yn=null);this.hl=Date.now();this.Qf=ab();var a,e,b;if(this.qo)for(a=0,e=this.B.length;a<e;a++)b=this.B[a],b.I||b.Qm||!b.za.Ye||b.O();else this.Ig=!1;a=0;for(e=this.td.length;a<e;a++)this.td[a].Gt();2<=this.cc&&(a=this.mb/this.lb,e=this.width/this.height,this.uh=2!==this.cc&&e>a||2===this.cc&&e<a?this.height/this.lb:this.width/this.mb);this.mp?this.Qg[this.mp].ao():this.td[0].ao();this.qo||(this.yk=1,this.trigger(X.prototype.m.Co,null),window.C2_RegisterSW&&
window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(e=this.B.length;a<e;a++)b=this.B[a],b.aw&&b.aw();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.La(!1);this.ec&&AppMobi.webview.execute("onGameReady();")};d.prototype.La=function(a,e,b){if(this.Aa){var h=ab();if(b||!this.Zh||a){a||(c?this.Gn=c(this.Fr):this.co=setTimeout(this.Fr,this.Xe?1:16));e=e||h;var l=this.cc;((b=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.ie)||this.Xh)&&0<this.Cf&&(l=this.Cf);if(0<l){var l=window.innerWidth,f=window.innerHeight;this.Og===l&&this.Ng===f||this.setSize(l,f)}this.tb||(b?(this.Xj||(this.mm=jQuery(this.canvas).css("margin")||"0",this.Xj=!0),this.Th||this.Kf||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/
2)+"px"})):this.Xj?(this.Th||this.Kf||jQuery(this.canvas).css("margin",this.mm),this.mm="",this.Xj=!1,0===this.cc&&this.setSize(Math.round(this.Hq/this.devicePixelRatio),Math.round(this.Gq/this.devicePixelRatio),!0)):(this.Hq=this.width,this.Gq=this.height));this.Ig&&(b=this.Mo(),this.yk=this.vd,b&&(this.Ig=!1,this.vd=1,this.trigger(X.prototype.m.Co,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Xv(e);!this.da&&!this.qd||this.Um||this.Ri||a||(this.da=!1,this.q?this.Ob():this.Qc(),this.Qi&&
(this.canvas&&this.canvas.toDataURL&&(this.xr=this.canvas.toDataURL(this.Qi[0],this.Qi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.xr),this.trigger(X.prototype.m.Cs,null)),this.Qi=null));this.yy||(this.Vd++,this.Bf++,this.bk++);this.qi+=ab()-h}}};d.prototype.Xv=function(a){var e,b,h,c,l,f,n,r;1E3<=a-this.Qf&&(this.Qf+=1E3,1E3<=a-this.Qf&&(this.Qf=a),this.lm=this.bk,this.bk=0,this.Vl=this.qi,this.qi=0);e=0;0!==this.ok&&(e=a-this.ok,0>e&&(e=0),this.xf=e/=1E3,.5<this.xf?this.xf=0:this.xf>1/this.uq&&
(this.xf=1/this.uq));this.ok=a;this.wf=this.xf*this.fg;this.Fb.add(this.wf);this.Ce.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Xh)&&!this.ie;2<=this.cc||a&&0<this.Cf?(e=this.mb/this.lb,b=this.width/this.height,h=this.cc,a&&0<this.Cf&&(h=this.Cf),this.uh=2!==h&&b>e||2===h&&b<e?this.height/this.lb:this.width/this.mb,this.Aa&&(this.Aa.Sn(this.Aa.scrollX),this.Aa.Tn(this.Aa.scrollY))):this.uh=this.Lf?this.devicePixelRatio:1;
this.Lb();this.sd++;this.Td.Kw();this.sd--;this.Lb();this.sd++;b=this.Eq.Ae();a=0;for(e=b.length;a<e;a++)b[a].By();a=0;for(e=this.B.length;a<e;a++)if(f=this.B[a],!f.I&&(f.Ma.length||f.Ja.length))for(b=0,h=f.j.length;b<h;b++)for(n=f.j[b],c=0,l=n.P.length;c<l;c++)n.P[c].La();a=0;for(e=this.B.length;a<e;a++)if(f=this.B[a],!f.I&&(f.Ma.length||f.Ja.length))for(b=0,h=f.j.length;b<h;b++)for(n=f.j[b],c=0,l=n.P.length;c<l;c++)r=n.P[c],r.Vq&&r.Vq();b=this.qn.Ae();a=0;for(e=b.length;a<e;a++)b[a].La();this.sd--;
this.Av();for(a=0;this.tf&&10>a++;)this.dp(this.tf);a=0;for(e=this.ee.length;a<e;a++)this.ee[a].Dm=!1;this.Aa.zf&&this.Aa.zf.bb();T(this.Gi);this.sd++;a=0;for(e=this.B.length;a<e;a++)if(f=this.B[a],!f.I&&(f.Ma.length||f.Ja.length))for(b=0,h=f.j.length;b<h;b++)for(n=f.j[b],c=0,l=n.P.length;c<l;c++)r=n.P[c],r.Vi&&r.Vi();b=this.Fq.Ae();a=0;for(e=b.length;a<e;a++)b[a].Vi();this.sd--};d.prototype.gf=function(){var a,e,b,h,c,l,f,n,r;a=0;for(e=this.B.length;a<e;a++)if(f=this.B[a],!f.I)for(b=0,h=f.j.length;b<
h;b++)if(n=f.j[b],n.gf&&n.gf(),n.P)for(c=0,l=n.P.length;c<l;c++)r=n.P[c],r.gf&&r.gf()};d.prototype.dp=function(a){var e=this.Aa;this.Aa.bx();var b,h,c;if(this.q)for(b=0,h=this.B.length;b<h;b++)c=this.B[b],c.I||!c.Yi||c.global&&0!==c.j.length||-1!==a.Rh.indexOf(c)||c.Yi();e==a&&T(this.Td.yc);T(this.Gi);this.dr(!0);a.ao();this.dr(!1);this.da=!0;this.Lb()};d.prototype.dr=function(a){var e,b,h,c,l,f,n,r,m;e=0;for(b=this.Ma.length;e<b;e++)h=this.Ma[e],a?h.vi&&h.vi():h.wi&&h.wi();e=0;for(b=this.B.length;e<
b;e++)if(h=this.B[e],h.global||h.za.gl)for(c=0,l=h.j.length;c<l;c++)if(f=h.j[c],a?f.vi&&f.vi():f.wi&&f.wi(),f.P)for(n=0,r=f.P.length;n<r;n++)m=f.P[n],a?m.vi&&m.vi():m.wi&&m.wi()};d.prototype.ml=function(a){this.qn.add(a)};d.prototype.Df=function(a){return a&&-1!==a.si?this.xf*a.si:this.wf};d.prototype.Qc=function(){this.Aa.Qc(this.Ia);this.ec&&this.Ia.present()};d.prototype.Ob=function(){this.Fa&&(this.yf=1,this.Aa.Se(this.q));this.Aa.Ob(this.q);this.q.yw()};d.prototype.Gl=function(a){a&&this.Mj.push(a)};
d.prototype.Fw=function(a){Ea(this.Mj,a)};d.prototype.Ag=function(a){a=a.toString();return this.pe.hasOwnProperty(a)?this.pe[a]:null};var C=[];d.prototype.Ee=function(a){var e,b;e=a.type.name;var h=null;if(this.vf.hasOwnProperty(e)){if(h=this.vf[e],h.contains(a))return}else h=C.length?C.pop():new ca,this.vf[e]=h;h.add(a);this.We=!0;if(a.fc)for(e=0,b=a.siblings.length;e<b;e++)this.Ee(a.siblings[e]);this.Pm&&h.jh.push(a);this.Om||(this.sd++,this.trigger(Object.getPrototypeOf(a.type.za).m.Es,a),this.sd--)};
d.prototype.Lb=function(){if(this.We){var a,e,b,h,c,l;this.Pm=!0;b=0;for(c=this.od.length;b<c;++b)for(a=this.od[b],e=a.type,e.j.push(a),h=0,l=e.Ja.length;h<l;++h)e.Ja[h].j.push(a),e.Ja[h].gh=!0;T(this.od);this.xs();$a(this.vf);this.We=this.Pm=!1}};d.prototype.xs=function(){for(var a in this.vf)this.vf.hasOwnProperty(a)&&this.bs(this.vf[a])};d.prototype.bs=function(a){var e=a.Ae(),b=e[0].type,h,c,l,f,n,r;bb(b.j,a);b.gh=!0;0===b.j.length&&(b.rj=!1);h=0;for(c=b.Ja.length;h<c;++h)r=b.Ja[h],bb(r.j,a),
r.gh=!0;h=0;for(c=this.Td.yc.length;h<c;++h)if(n=this.Td.yc[h],n.wc.hasOwnProperty(b.index)&&bb(n.wc[b.index].Jf,a),!b.I)for(l=0,f=b.Ja.length;l<f;++l)r=b.Ja[l],n.wc.hasOwnProperty(r.index)&&bb(n.wc[r.index].Jf,a);if(n=e[0].k){if(n.Lc)for(l=n.j,h=0,c=l.length;h<c;++h)f=l[h],a.contains(f)&&(f.ua(),n.Jb.update(f,f.hc,null),f.hc.set(0,0,-1,-1));bb(n.j,a);n.Ki(0)}for(h=0;h<e.length;++h)this.as(e[h],b);a.clear();C.push(a);this.da=!0};d.prototype.as=function(a,e){var b,h,c;b=0;for(h=this.Mj.length;b<h;++b)this.Mj[b](a);
a.Pe&&e.Cj.update(a,a.Pe,null);(b=a.k)&&b.ah(a,!0);if(a.P)for(b=0,h=a.P.length;b<h;++b)c=a.P[b],c.ff&&c.ff(),c.behavior.Gk.remove(a);this.Eq.remove(a);this.qn.remove(a);this.Fq.remove(a);a.ff&&a.ff();this.pe.hasOwnProperty(a.uid.toString())&&delete this.pe[a.uid.toString()];this.Jk--;100>e.Jj.length&&e.Jj.push(a)};d.prototype.Yo=function(a,e,b,h){if(a.I){var c=qa(Math.random()*a.Ug.length);return this.Yo(a.Ug[c],e,b,h)}return a.Oc?this.Qe(a.Oc,e,!1,b,h,!1):null};var F=[];d.prototype.Qe=function(a,
e,b,h,c,l){var f,n,r,m;if(!a)return null;var d=this.B[a[1]],p=d.za.Ye;if(this.Ig&&p&&!d.Qm||p&&!this.q&&11===a[0][11])return null;var u=e;p||(e=null);var g;d.Jj.length?(g=d.Jj.pop(),g.Yb=!0,d.za.Z.call(g,d)):(g=new d.za.Z(d),g.Yb=!1);!b||l||this.pe.hasOwnProperty(a[2].toString())?g.uid=this.ti++:g.uid=a[2];this.pe[g.uid.toString()]=g;g.Yq=this.Aq++;g.Hf=d.j.length;f=0;for(n=this.od.length;f<n;++f)this.od[f].type===d&&g.Hf++;g.Mh=Gb;g.toString=Hb;r=a[3];if(g.Yb)$a(g.V);else{g.V={};if("undefined"!==
typeof cr_is_preview)for(g.Hp=[],g.Hp.length=r.length,f=0,n=r.length;f<n;f++)g.Hp[f]=r[f][1];g.ib=[];g.ib.length=r.length}f=0;for(n=r.length;f<n;f++)g.ib[f]=r[f][0];if(p){var t=a[0];g.x=ga(h)?t[0]:h;g.y=ga(c)?t[1]:c;g.z=t[2];g.width=t[3];g.height=t[4];g.depth=t[5];g.p=t[6];g.opacity=t[7];g.Qb=t[8];g.Rb=t[9];g.Mb=t[10];f=t[11];!this.q&&d.U.length&&(g.Mb=f);g.xh=jb(g.Mb);this.F&&kb(g,g.Mb,this.F);if(g.Yb){f=0;for(n=t[12].length;f<n;f++)for(r=0,m=t[12][f].length;r<m;r++)g.Na[f][r]=t[12][f][r];g.Ha.set(0,
0,0,0);g.Pe.set(0,0,-1,-1);g.hc.set(0,0,-1,-1);g.Ab.Li(g.Ha);T(g.Ll)}else{g.Na=t[12].slice(0);f=0;for(n=g.Na.length;f<n;f++)g.Na[f]=t[12][f].slice(0);g.la=[];g.Ge=[];g.Ge.length=d.U.length;g.Ha=new va(0,0,0,0);g.Pe=new va(0,0,-1,-1);g.hc=new va(0,0,-1,-1);g.Ab=new wa;g.Ll=[];g.G=Kb;g.uy=Lb;g.Wb=Mb;g.ua=Nb;g.nx=Ob;g.Sr=Pb;g.Jd=Qb}g.Xi=!1;g.jx=0;g.ix=0;g.hx=null;14===t.length&&(g.Xi=!0,g.jx=t[13][0],g.ix=t[13][1],g.hx=t[13][2]);f=0;for(n=d.U.length;f<n;f++)g.Ge[f]=!0;g.te=!0;g.Bd=Rb;g.Bd();g.Tr=!!g.la.length;
g.Kl=!0;g.Pl=!0;d.qj=!0;g.visible=!0;g.si=-1;g.k=e;g.Cd=e.j.length;g.yf=0;"undefined"===typeof g.pa&&(g.pa=null);this.da=g.$d=!0}var k;T(F);f=0;for(n=d.Ja.length;f<n;f++)F.push.apply(F,d.Ja[f].Ma);F.push.apply(F,d.Ma);if(g.Yb)for(f=0,n=F.length;f<n;f++){var Q=F[f];k=g.P[f];k.Yb=!0;Q.behavior.Z.call(k,Q,g);t=a[4][f];r=0;for(m=t.length;r<m;r++)k.u[r]=t[r];k.O();Q.behavior.Gk.add(g)}else for(g.P=[],f=0,n=F.length;f<n;f++)Q=F[f],k=new Q.behavior.Z(Q,g),k.Yb=!1,k.u=a[4][f].slice(0),k.O(),g.P.push(k),Q.behavior.Gk.add(g);
t=a[5];if(g.Yb)for(f=0,n=t.length;f<n;f++)g.u[f]=t[f];else g.u=t.slice(0);this.od.push(g);this.We=!0;e&&(e.sh(g,!0),1!==e.Vc||1!==e.Wc)&&(d.rj=!0);this.Jk++;if(d.fc){if(g.fc=!0,g.Yb?T(g.siblings):g.siblings=[],!b&&!l){f=0;for(n=d.lc.length;f<n;f++)if(d.lc[f]!==d){if(!d.lc[f].Oc)return null;g.siblings.push(this.Qe(d.lc[f].Oc,u,!1,p?g.x:h,p?g.y:c,!0))}f=0;for(n=g.siblings.length;f<n;f++)for(g.siblings[f].siblings.push(g),r=0;r<n;r++)f!==r&&g.siblings[f].siblings.push(g.siblings[r])}}else g.fc=!1,g.siblings=
null;g.O();f=0;for(n=g.P.length;f<n;f++)g.P[f].uw&&g.P[f].uw();return g};d.prototype.vm=function(a){var e,b;e=0;for(b=this.Aa.W.length;e<b;e++){var h=this.Aa.W[e];if(mb(h.name,a))return h}return null};d.prototype.Jh=function(a){a=qa(a);0>a&&(a=0);a>=this.Aa.W.length&&(a=this.Aa.W.length-1);return this.Aa.W[a]};d.prototype.Tl=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].ba().na=!0};d.prototype.Di=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Di()};d.prototype.Ei=function(a){var e,b;e=
0;for(b=a.length;e<b;e++)a[e].Ei()};d.prototype.jf=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].jf()};d.prototype.Pr=function(a){if(a.qj){var e,b,h=a.j;e=0;for(b=h.length;e<b;++e)h[e].Sr();h=this.od;e=0;for(b=h.length;e<b;++e)h[e].type===a&&h[e].Sr();a.qj=!1}};d.prototype.rp=function(a,e,b,h){var c,f,l=a?1!==a.Vc||1!==a.Wc:!1;if(e.I)for(a=0,c=e.Ug.length;a<c;++a)f=e.Ug[a],l||f.rj?Ba(h,f.j):(this.Pr(f),f.Cj.Vk(b,h));else l||e.rj?Ba(h,e.j):(this.Pr(e),e.Cj.Vk(b,h))};d.prototype.xp=function(a,
e,b,h){var c,f;c=0;for(f=e.length;c<f;++c)this.rp(a,e[c],b,h)};d.prototype.lv=function(a,e,b){var h=this.yr;h&&this.xp(a,h.Hk,e,b)};d.prototype.cv=function(a,e,b){var h=this.Sp;h&&this.xp(a,h.Hk,e,b)};d.prototype.gx=function(a,e,b){var h=a.ba(),c,f,l,n,r=this.sb().Db.Tc,m,d,g;if(h.na)for(h.na=!1,T(h.j),c=0,n=a.j.length;c<n;c++)l=a.j[c],l.ua(),m=l.k.Vb(e,b,!0),d=l.k.Vb(e,b,!1),l.Wb(m,d)?h.j.push(l):r&&h.aa.push(l);else{f=0;g=r?h.aa:h.j;c=0;for(n=g.length;c<n;c++)l=g[c],l.ua(),m=l.k.Vb(e,b,!0),d=l.k.Vb(e,
b,!1),l.Wb(m,d)&&(r?h.j.push(l):(h.j[f]=h.j[c],f++));g.length=f}a.jd();return h.Cm()};d.prototype.xc=function(a,e){if(!(a&&e&&a!==e&&a.$d&&e.$d))return!1;a.ua();e.ua();var b=a.k,h=e.k,c,f,l,n,r,m,d,g;if(b===h||b.Vc===h.Vc&&h.Wc===h.Wc&&b.scale===h.scale&&b.p===h.p&&b.Dd===h.Dd){if(!a.Ha.Hv(e.Ha)||!a.Ab.Ip(e.Ab)||a.Xi&&e.Xi)return!1;if(a.Xi)return this.Dr(a,e);if(e.Xi)return this.Dr(e,a);d=a.pa&&!a.pa.Dg();c=e.pa&&!e.pa.Dg();if(!d&&!c)return!0;d?(a.pa.pg(a.width,a.height,a.p),d=a.pa):(this.yd.eh(a.Ab,
a.x,a.y,a.width,a.height),d=this.yd);c?(e.pa.pg(e.width,e.height,e.p),g=e.pa):(this.yd.eh(e.Ab,e.x,e.y,e.width,e.height),g=this.yd);return d.Sh(g,e.x-a.x,e.y-a.y)}d=a.pa&&!a.pa.Dg();c=e.pa&&!e.pa.Dg();d?(a.pa.pg(a.width,a.height,a.p),this.yd.or(a.pa)):this.yd.eh(a.Ab,a.x,a.y,a.width,a.height);d=this.yd;c?(e.pa.pg(e.width,e.height,e.p),this.bo.or(e.pa)):this.bo.eh(e.Ab,e.x,e.y,e.width,e.height);g=this.bo;c=0;for(f=d.wd;c<f;c++)l=2*c,n=l+1,r=d.nb[l],m=d.nb[n],d.nb[l]=b.Ka(r+a.x,m+a.y,!0),d.nb[n]=b.Ka(r+
a.x,m+a.y,!1);d.ua();c=0;for(f=g.wd;c<f;c++)l=2*c,n=l+1,r=g.nb[l],m=g.nb[n],g.nb[l]=h.Ka(r+e.x,m+e.y,!0),g.nb[n]=h.Ka(r+e.x,m+e.y,!1);g.ua();return d.Sh(g,0,0)};var B=new wa;new va(0,0,0,0);var N=[];d.prototype.Dr=function(a,e){var b,h,c,f,l=e.Ha,n=a.x,r=a.y;a.wy(l,N);var m=e.pa&&!e.pa.Dg();b=0;for(h=N.length;b<h;++b)if(c=N[b],f=c.Cy,l.Iv(f,n,r)&&(B.Li(f),B.offset(n,r),B.Ip(e.Ab)))if(m)if(e.pa.pg(e.width,e.height,e.p),c.Bn){if(c.Bn.Sh(e.pa,e.x-(n+f.left),e.y-(r+f.top)))return T(N),!0}else{if(this.yd.eh(B,
0,0,f.right-f.left,f.bottom-f.top),this.yd.Sh(e.pa,e.x,e.y))return T(N),!0}else if(c.Bn){if(this.yd.eh(e.Ab,0,0,e.width,e.height),c.Bn.Sh(this.yd,-(n+f.left),-(r+f.top)))return T(N),!0}else return T(N),!0;T(N);return!1};d.prototype.jo=function(a,e){if(!e)return!1;var b,h,c,f,l;b=0;for(h=a.Ma.length;b<h;b++)if(a.Ma[b].behavior instanceof e)return!0;if(!a.I)for(b=0,h=a.Ja.length;b<h;b++)for(l=a.Ja[b],c=0,f=l.Ma.length;c<f;c++)if(l.Ma[c].behavior instanceof e)return!0;return!1};d.prototype.ko=function(a){return this.jo(a,
gc.Tx)};d.prototype.lo=function(a){return this.jo(a,gc.Ux)};var G=[];d.prototype.Kb=function(a){var e,b,h;a.ua();this.lv(a.k,a.Ha,G);e=0;for(b=G.length;e<b;++e)if(h=G[e],h.V.solidEnabled&&this.xc(a,h))return T(G),h;T(G);return null};var P=[];d.prototype.nf=function(a,e){var b=null;e&&(b=P,T(b));a.ua();this.cv(a.k,a.Ha,G);var h,c,f;h=0;for(c=G.length;h<c;++h)if(f=G[h],f.V.jumpthruEnabled&&this.xc(a,f))if(e)b.push(f);else return T(G),f;T(G);return b};d.prototype.Yc=function(a,e,b,h,c,f){h=h||50;var l=
a.x,n=a.y,r,m=null,d=null;for(r=0;r<h;r++)if(a.x=l+e*r,a.y=n+b*r,a.G(),!this.xc(a,m)&&((m=this.Kb(a))&&(d=m),!m&&(c&&(f?m=this.xc(a,f)?f:null:m=this.nf(a),m&&(d=m)),!m)))return d&&this.En(a,e,b,d),!0;a.x=l;a.y=n;a.G();return!1};d.prototype.En=function(a,e,b,h){var c=2,f,l=!1;f=!1;for(var n=a.x,r=a.y;16>=c;)f=1/c,c*=2,a.x+=e*f*(l?1:-1),a.y+=b*f*(l?1:-1),a.G(),this.xc(a,h)?f=l=!0:(f=l=!1,n=a.x,r=a.y);f&&(a.x=n,a.y=r,a.G())};d.prototype.Zq=function(a,e){var b=ga(e)?100:e,h=0,c=a.x,f=a.y,l=0,n=0,r=0,
m=this.Kb(a);if(!m)return!0;for(;h<=b;){switch(l){case 0:n=0;r=-1;h++;break;case 1:n=1;r=-1;break;case 2:n=1;r=0;break;case 3:r=n=1;break;case 4:n=0;r=1;break;case 5:n=-1;r=1;break;case 6:n=-1;r=0;break;case 7:r=n=-1}l=(l+1)%8;a.x=qa(c+n*h);a.y=qa(f+r*h);a.G();if(!this.xc(a,m)&&(m=this.Kb(a),!m))return!0}a.x=c;a.y=f;a.G();return!1};d.prototype.$g=function(a,e){a.$d&&e.$d&&this.Gi.push([a,e])};d.prototype.Ct=function(a,e){var b,h,c;b=0;for(h=this.Gi.length;b<h;b++)if(c=this.Gi[b],c[0]==a&&c[1]==e||
c[0]==e&&c[1]==a)return!0;return!1};d.prototype.At=function(a,e,b){var h=a.x,c=a.y,f=ma(10,Sa(e,b,h,c)),l=Na(e,b,h,c),n=this.Kb(a);if(!n)return Ka(l+pa);var r=n,m,d,g,p,u=W(5);for(m=1;36>m;m++)if(d=l-m*u,a.x=e+Math.cos(d)*f,a.y=b+Math.sin(d)*f,a.G(),!this.xc(a,r)&&(r=this.Kb(a),!r)){g=d;break}36===m&&(g=Ka(l+pa));r=n;for(m=1;36>m;m++)if(d=l+m*u,a.x=e+Math.cos(d)*f,a.y=b+Math.sin(d)*f,a.G(),!this.xc(a,r)&&(r=this.Kb(a),!r)){p=d;break}36===m&&(p=Ka(l+pa));a.x=h;a.y=c;a.G();if(p===g)return p;a=Oa(p,
g)/2;a=Qa(p,g)?Ka(g+a+pa):Ka(p+a);g=Math.cos(l);l=Math.sin(l);p=Math.cos(a);a=Math.sin(a);e=g*p+l*a;return Na(0,0,g-2*e*p,l-2*e*a)};var H=-1;d.prototype.trigger=function(a,e,b){if(!this.Aa)return!1;var h=this.Aa.zf;if(!h)return!1;var c=!1,f,l,n;H++;var r=h.cm;l=0;for(n=r.length;l<n;++l)f=this.Jr(a,e,r[l],b),c=c||f;f=this.Jr(a,e,h,b);H--;return c||f};d.prototype.Jr=function(a,e,b,h){var c=!1,f,l,n,r;if(e)for(n=this.ho(a,e,e.type.name,b,h),c=c||n,r=e.type.Ja,f=0,l=r.length;f<l;++f)n=this.ho(a,e,r[f].name,
b,h),c=c||n;else n=this.ho(a,e,"system",b,h),c=c||n;return c};d.prototype.ho=function(a,e,b,h,c){var f,l=!1,n=!1,n="undefined"!==typeof c,r=(n?h.hp:h.Kr)[b];if(!r)return l;var m=null;h=0;for(f=r.length;h<f;++h)if(r[h].method==a){m=r[h].Fh;break}if(!m)return l;var d;n?d=m[c]:d=m;if(!d)return null;h=0;for(f=d.length;h<f;h++)a=d[h][0],c=d[h][1],n=this.Pu(e,b,a,c),l=l||n;return l};d.prototype.Pu=function(a,e,b,h){var c,f,l=!1;this.io++;var n=this.sb().Db;n&&this.Di(n.lf);var r=1<this.io;this.Di(b.lf);
r&&this.Aw();var m=this.Uk(b);m.Db=b;a&&(c=this.types[e].ba(),c.na=!1,T(c.j),c.j[0]=a,this.types[e].jd());a=!0;if(b.parent){e=m.Cr;for(c=b.parent;c;)e.push(c),c=c.parent;e.reverse();c=0;for(f=e.length;c<f;c++)if(!e[c].Mw()){a=!1;break}}a&&(this.Bf++,b.Tc?b.Lw(h):b.bb(),l=l||m.Pf);this.Pk();r&&this.rw();this.jf(b.lf);n&&this.jf(n.lf);this.We&&0===this.sd&&0===H&&!this.Rm&&this.Lb();this.io--;return l};d.prototype.sp=function(){var a=this.sb();return a.Db.fb[a.eb]};d.prototype.Xu=function(){var a=this.sb();
return a.Db.Mc[a.zc]};d.prototype.Aw=function(){this.Ak++;this.Ak>=this.hn.length&&this.hn.push([])};d.prototype.rw=function(){this.Ak--};d.prototype.tp=function(){return this.hn[this.Ak]};d.prototype.Uk=function(a){this.Pj++;this.Pj>=this.fm.length&&this.fm.push(new Sb);var e=this.sb();e.reset(a);return e};d.prototype.Pk=function(){this.Pj--};d.prototype.sb=function(){return this.fm[this.Pj]};d.prototype.Bw=function(){this.Ck++;this.Ck>=this.kn.length&&this.kn.push(aa({name:void 0,index:0,yb:!1}));
var a=this.Yu();a.name=void 0;a.index=0;a.yb=!1;return a};d.prototype.sw=function(){this.Ck--};d.prototype.Yu=function(){return this.kn[this.Ck]};d.prototype.up=function(a,e){for(var b,h,c,f,l,n;e;){b=0;for(h=e.cd.length;b<h;b++)if(n=e.cd[b],n instanceof Tb&&mb(a,n.name))return n;e=e.parent}b=0;for(h=this.ee.length;b<h;b++)for(l=this.ee[b],c=0,f=l.Ue.length;c<f;c++)if(n=l.Ue[c],n instanceof Tb&&mb(a,n.name))return n;return null};d.prototype.vp=function(a){var e,b;e=0;for(b=this.td.length;e<b;e++)if(this.td[e].ea===
a)return this.td[e];return null};d.prototype.fk=function(a){var e,b;e=0;for(b=this.B.length;e<b;e++)if(this.B[e].ea===a)return this.B[e];return null};d.prototype.$u=function(a){var e,b;e=0;for(b=this.lg.length;e<b;e++)if(this.lg[e].ea===a)return this.lg[e];return null};d.prototype.Mt=function(a,e){this.Qi=[a,e];this.da=!0};d.prototype.Av=function(){var a=this,e=this.Rn,b=this.le,h=this.vk,c=!1;this.ur&&(c=!0,e="__c2_continuouspreview",this.ur=!1);if(e.length){this.Lb();b=this.Qw();if(k()&&!this.qd)u(e,
b,function(){ea("Saved state to IndexedDB storage ("+b.length+" bytes)");a.le=b;a.trigger(X.prototype.m.Cl,null);a.le="";c&&p()},function(h){try{localStorage.setItem("__c2save_"+e,b),ea("Saved state to WebStorage ("+b.length+" bytes)"),a.le=b,a.trigger(X.prototype.m.Cl,null),a.le="",c&&p()}catch(f){ea("Failed to save game state: "+h+"; "+f),a.trigger(X.prototype.m.Fo,null)}});else try{localStorage.setItem("__c2save_"+e,b),ea("Saved state to WebStorage ("+b.length+" bytes)"),a.le=b,this.trigger(X.prototype.m.Cl,
null),a.le="",c&&p()}catch(f){ea("Error saving to WebStorage: "+f),a.trigger(X.prototype.m.Fo,null)}this.vk=this.Rn="";this.kb=null}if(h.length){if(k()&&!this.qd)t(h,function(e){e?(a.kb=e,ea("Loaded state from IndexedDB storage ("+a.kb.length+" bytes)")):(a.kb=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+a.kb.length+" bytes)"));a.Ri=!1;a.kb||(a.kb=null,a.trigger(X.prototype.m.mj,null))},function(){a.kb=localStorage.getItem("__c2save_"+h)||"";ea("Loaded state from WebStorage ("+
a.kb.length+" bytes)");a.Ri=!1;a.kb||(a.kb=null,a.trigger(X.prototype.m.mj,null))});else{try{this.kb=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+this.kb.length+" bytes)")}catch(l){this.kb=null}this.Ri=!1;a.kb||(a.kb=null,a.trigger(X.prototype.m.mj,null))}this.Rn=this.vk=""}null!==this.kb&&(this.Lb(),this.Wv(this.kb)?(this.le=this.kb,this.trigger(X.prototype.m.Ms,null),this.le=""):a.trigger(X.prototype.m.mj,null),this.kb=null)};d.prototype.Qw=function(){var e,b,h,c,
f,l,n,r={c2save:!0,version:1,rt:{time:this.Fb.K,walltime:this.Ce.K,timescale:this.fg,tickcount:this.Vd,execcount:this.Bf,next_uid:this.ti,running_layout:this.Aa.ea,start_time_offset:Date.now()-this.hl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(b=this.B.length;e<b;e++)if(f=this.B[e],!f.I&&!this.ko(f)){l={instances:[]};Za(f.V)&&(l.ex=a(f.V));h=0;for(c=f.j.length;h<c;h++)l.instances.push(this.Qn(f.j[h]));r.types[f.ea.toString()]=l}e=0;for(b=this.td.length;e<b;e++)h=this.td[e],
r.layouts[h.ea.toString()]=h.ob();c=r.events.groups;e=0;for(b=this.lg.length;e<b;e++)h=this.lg[e],c[h.ea.toString()]=this.gk[h.Oh].Nh;b=r.events.cnds;for(n in this.Oe)this.Oe.hasOwnProperty(n)&&(e=this.Oe[n],Za(e.V)&&(b[n]={ex:a(e.V)}));b=r.events.acts;for(n in this.He)this.He.hasOwnProperty(n)&&(e=this.He[n],Za(e.V)&&(b[n]={ex:a(e.V)}));b=r.events.vars;for(n in this.kh)this.kh.hasOwnProperty(n)&&(e=this.kh[n],e.mk||e.parent&&!e.ci||(b[n]=e.data));r.system=this.Td.ob();return JSON.stringify(r)};d.prototype.br=
function(){var a,e,b,h,c,f;this.pe={};a=0;for(e=this.B.length;a<e;a++)if(b=this.B[a],!b.I)for(h=0,c=b.j.length;h<c;h++)f=b.j[h],this.pe[f.uid.toString()]=f};d.prototype.Wv=function(a){var e;try{e=JSON.parse(a)}catch(b){return!1}if(!e.c2save||1<e.version)return!1;this.Vh=!0;a=e.rt;this.Fb.reset();this.Fb.K=a.time;this.Ce.reset();this.Ce.K=a.walltime||0;this.fg=a.timescale;this.Vd=a.tickcount;this.Bf=a.execcount;this.hl=Date.now()-a.start_time_offset;var h=a.running_layout;if(h!==this.Aa.ea)if(h=this.vp(h))this.dp(h);
else return;var c,f,l,n,r,m,d;m=e.types;for(f in m)if(m.hasOwnProperty(f)&&(n=this.fk(parseInt(f,10)))&&!n.I&&!this.ko(n)){m[f].ex?n.V=m[f].ex:$a(n.V);r=n.j;l=m[f].instances;h=0;for(c=na(r.length,l.length);h<c;h++)this.wk(r[h],l[h]);h=l.length;for(c=r.length;h<c;h++)this.Ee(r[h]);h=r.length;for(c=l.length;h<c;h++){r=null;if(n.za.Ye&&(r=this.Aa.ek(l[h].w.l),!r))continue;r=this.Qe(n.Oc,r,!1,0,0,!0);this.wk(r,l[h])}n.gh=!0}this.Lb();this.br();c=e.layouts;for(f in c)c.hasOwnProperty(f)&&(h=this.vp(parseInt(f,
10)))&&h.Gb(c[f]);c=e.events.groups;for(f in c)c.hasOwnProperty(f)&&(h=this.$u(parseInt(f,10)))&&this.gk[h.Oh]&&this.gk[h.Oh].Sw(c[f]);h=e.events.cnds;for(f in this.Oe)this.Oe.hasOwnProperty(f)&&(h.hasOwnProperty(f)?this.Oe[f].V=h[f].ex:this.Oe[f].V={});h=e.events.acts;for(f in this.He)this.He.hasOwnProperty(f)&&(h.hasOwnProperty(f)?this.He[f].V=h[f].ex:this.He[f].V={});h=e.events.vars;for(f in h)h.hasOwnProperty(f)&&this.kh.hasOwnProperty(f)&&(this.kh[f].data=h[f]);this.ti=a.next_uid;this.Vh=!1;
h=0;for(c=this.Wj.length;h<c;++h)r=this.Wj[h],this.trigger(Object.getPrototypeOf(r.type.za).m.kj,r);T(this.Wj);this.Td.Gb(e.system);h=0;for(c=this.B.length;h<c;h++)if(n=this.B[h],!n.I&&!this.ko(n))for(e=0,f=n.j.length;e<f;e++){r=n.j[e];if(n.fc)for(m=r.Mh(),T(r.siblings),a=0,l=n.lc.length;a<l;a++)d=n.lc[a],n!==d&&r.siblings.push(d.j[m]);r.Ed&&r.Ed();if(r.P)for(a=0,l=r.P.length;a<l;a++)m=r.P[a],m.Ed&&m.Ed()}return this.da=!0};d.prototype.Qn=function(e,b){var h,c,f,l,n;l=e.type;f=l.za;var r={};b?r.c2=
!0:r.uid=e.uid;Za(e.V)&&(r.ex=a(e.V));if(e.ib&&e.ib.length)for(r.ivs={},h=0,c=e.ib.length;h<c;h++)r.ivs[e.type.Mm[h].toString()]=e.ib[h];if(f.Ye){f={x:e.x,y:e.y,w:e.width,h:e.height,l:e.k.ea,zi:e.Jd()};0!==e.p&&(f.a=e.p);1!==e.opacity&&(f.o=e.opacity);.5!==e.Qb&&(f.hX=e.Qb);.5!==e.Rb&&(f.hY=e.Rb);0!==e.Mb&&(f.bm=e.Mb);e.visible||(f.v=e.visible);e.$d||(f.ce=e.$d);-1!==e.si&&(f.mts=e.si);if(l.U.length)for(f.fx=[],h=0,c=l.U.length;h<c;h++)n=l.U[h],f.fx.push({name:n.name,active:e.Ge[n.index],params:e.Na[n.index]});
r.w=f}if(e.P&&e.P.length)for(r.behs={},h=0,c=e.P.length;h<c;h++)l=e.P[h],l.ob&&(r.behs[l.type.ea.toString()]=l.ob());e.ob&&(r.data=e.ob());return r};d.prototype.bv=function(a,e){var b,h;b=0;for(h=a.Mm.length;b<h;b++)if(a.Mm[b]===e)return b;return-1};d.prototype.Wu=function(a,e){var b,h;b=0;for(h=a.P.length;b<h;b++)if(a.P[b].type.ea===e)return b;return-1};d.prototype.wk=function(a,e,b){var h,c,f,l,n;n=a.type;l=n.za;if(b){if(!e.c2)return}else a.uid=e.uid;e.ex?a.V=e.ex:$a(a.V);if(c=e.ivs)for(h in c)c.hasOwnProperty(h)&&
(f=this.bv(n,parseInt(h,10)),0>f||f>=a.ib.length||(a.ib[f]=c[h]));if(l.Ye){f=e.w;a.k.ea!==f.l&&(c=a.k,a.k=this.Aa.ek(f.l),a.k?(c.ah(a,!0),a.k.sh(a,!0),a.G(),a.k.Ki(0)):(a.k=c,b||this.Ee(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Cd=f.zi;a.p=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Qb=f.hasOwnProperty("hX")?f.hX:.5;a.Rb=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.$d=f.hasOwnProperty("ce")?f.ce:!0;a.si=f.hasOwnProperty("mts")?f.mts:-1;a.Mb=
f.hasOwnProperty("bm")?f.bm:0;a.xh=jb(a.Mb);this.F&&kb(a,a.Mb,this.F);a.G();if(f.hasOwnProperty("fx"))for(b=0,c=f.fx.length;b<c;b++)l=n.tm(f.fx[b].name),0>l||(a.Ge[l]=f.fx[b].active,a.Na[l]=f.fx[b].params);a.Bd()}if(n=e.behs)for(h in n)n.hasOwnProperty(h)&&(b=this.Wu(a,parseInt(h,10)),0>b||a.P[b].Gb(n[h]));e.data&&a.Gb(e.data)};d.prototype.ip=function(a,e,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,b)},b)};d.prototype.kp=function(a,e){this.ip("data.js",
function(b){var h=new FileReader;h.onload=function(e){a(e.target.result)};h.onerror=e;h.readAsText(b)},e)};var w=[],D=0;d.prototype.ln=function(){if(w.length&&!(8<=D)){D++;var a=w.shift();this.Pt(a.filename,a.cx,a.mu)}};d.prototype.jp=function(a,e,b){var h=this;w.push({filename:a,cx:function(a){D--;h.ln();e(a)},mu:function(a){D--;h.ln();b(a)}});this.ln()};d.prototype.Pt=function(a,e,b){this.ip(a,function(a){var b=new FileReader;b.onload=function(a){e(a.target.result)};b.readAsArrayBuffer(a)},b)};
d.prototype.Qu=function(a,e,b){this.jp(a,function(a){a=URL.createObjectURL(new Blob([a]));e(a)},b)};d.prototype.Jv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.lr=function(a,e){this.$h&&!this.Jv(e)?this.Qu(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};d.prototype.al=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=
e,a.msImageSmoothingEnabled=e)};Ub=function(a){return new d(document.getElementById(a))};Vb=function(a,e){return new d({dc:!0,width:a,height:e})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.vh=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,q){var k=window.cr_getC2Runtime();k&&k.Mt(d,q)};
window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var k=window.cr_getC2Runtime();k&&k.setSize(d,q)}};window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.zf=null;this.scrollX=this.b.mb/2;this.scrollY=this.b.lb/2;this.scale=1;this.p=0;this.yg=!0;this.name=b[0];this.mw=b[1];this.lw=b[2];this.width=b[1];this.height=b[2];this.Mr=b[3];this.rr=b[4];this.ea=b[5];var c=b[6],f,m;this.W=[];this.Rh=[];f=0;for(m=c.length;f<m;f++){var d=new Wb(this,c[f]);d.Cq=f;this.W.push(d)}c=b[7];this.If=[];f=0;for(m=c.length;f<m;f++){var d=c[f],g=this.b.B[d[1]];g.Oc||(g.Oc=d);this.If.push(d);-1===this.Rh.indexOf(g)&&this.Rh.push(g)}this.U=
[];this.la=[];this.te=!0;this.Na=[];f=0;for(m=b[8].length;f<m;f++)this.U.push({id:b[8][f][0],name:b[8][f][1],cb:-1,Xc:!1,Ac:!0,index:f}),this.Na.push(b[8][f][2].slice(0));this.Bd();this.Zc=new va(0,0,1,1);this.Hn=new va(0,0,1,1);this.hf={}}function q(a,b){return a.Cd-b.Cd}function k(a,b){this.Za=a;this.b=a.b;this.j=[];this.scale=1;this.p=0;this.be=!1;this.xe=new va(0,0,0,0);this.Gr=new wa;this.xa=this.ta=this.ya=this.ra=0;this.hg=!1;this.De=-1;this.Ul=0;this.name=b[0];this.index=b[1];this.ea=b[2];
this.visible=b[3];this.kd=b[4];this.Ad=b[5];this.Vc=b[6];this.Wc=b[7];this.opacity=b[8];this.ak=b[9];this.Lc=b[10];this.Dd=b[11];this.Mb=b[12];this.iu=b[13];this.xh="source-over";this.Nb=this.Ub=0;this.Jb=null;this.me=g();this.xd=!0;this.Pg=new va(0,0,-1,-1);this.Cb=new va(0,0,-1,-1);this.Lc&&(this.Jb=new ib(this.b.mb,this.b.lb));this.Pd=!1;var c=b[14],f,m;this.Ar=[];this.Fc=[];this.Ah=[];f=0;for(m=c.length;f<m;f++){var d=c[f],p=this.b.B[d[1]];p.Oc||(p.Oc=d,p.Kt=this.index);this.Fc.push(d);-1===this.Za.Rh.indexOf(p)&&
this.Za.Rh.push(p)}Aa(this.Ar,this.Fc);this.U=[];this.la=[];this.te=!0;this.Na=[];f=0;for(m=b[15].length;f<m;f++)this.U.push({id:b[15][f][0],name:b[15][f][1],cb:-1,Xc:!1,Ac:!0,index:f}),this.Na.push(b[15][f][2].slice(0));this.Bd();this.Zc=new va(0,0,1,1);this.Hn=new va(0,0,1,1)}function g(){return a.length?a.pop():[]}function u(e){T(e);a.push(e)}d.prototype.Pw=function(a){var b=a.type.ea.toString();this.hf.hasOwnProperty(b)||(this.hf[b]=[]);this.hf[b].push(this.b.Qn(a))};d.prototype.Ap=function(){var a=
this.W[0];return!a.Ad&&1===a.opacity&&!a.ak&&a.visible};d.prototype.Bd=function(){T(this.la);this.te=!0;var a,b,c;a=0;for(b=this.U.length;a<b;a++)c=this.U[a],c.Ac&&(this.la.push(c),c.Xc||(this.te=!1))};d.prototype.rm=function(a){var b,c,f;b=0;for(c=this.U.length;b<c;b++)if(f=this.U[b],f.name===a)return f;return null};var t=[],p=!0;d.prototype.ao=function(){this.rr&&(this.zf=this.b.gm[this.rr],this.zf.no());this.b.Aa=this;this.width=this.mw;this.height=this.lw;this.scrollX=this.b.mb/2;this.scrollY=
this.b.lb/2;var a,b,c,f,m,d,g;a=0;for(c=this.b.B.length;a<c;a++)if(b=this.b.B[a],!b.I)for(m=b.j,b=0,f=m.length;b<f;b++)if(d=m[b],d.k){var h=d.k.Cq;h>=this.W.length&&(h=this.W.length-1);d.k=this.W[h];-1===d.k.j.indexOf(d)&&d.k.j.push(d);d.k.hg=!0}if(!p)for(a=0,c=this.W.length;a<c;++a)this.W[a].j.sort(q);T(t);this.yt();a=0;for(c=this.W.length;a<c;a++)d=this.W[a],d.Ht(),d.tl();m=!1;if(!this.yg){for(g in this.hf)if(this.hf.hasOwnProperty(g)&&(b=this.b.fk(parseInt(g,10)))&&!b.I&&this.b.lo(b)){f=this.hf[g];
a=0;for(c=f.length;a<c;a++){d=null;if(b.za.Ye&&(d=this.ek(f[a].w.l),!d))continue;d=this.b.Qe(b.Oc,d,!1,0,0,!0);this.b.wk(d,f[a]);m=!0;t.push(d)}T(f)}a=0;for(c=this.W.length;a<c;a++)this.W[a].j.sort(q),this.W[a].hg=!0}m&&(this.b.Lb(),this.b.br());for(a=0;a<t.length;a++)if(d=t[a],d.type.fc)for(c=d.Mh(),b=0,f=d.type.lc.length;b<f;b++)g=d.type.lc[b],d.type!==g&&(g.j.length>c?d.siblings.push(g.j[c]):g.Oc&&(m=this.b.Qe(g.Oc,d.k,!0,d.x,d.y,!0),this.b.Lb(),g.rl(),d.siblings.push(m),t.push(m)));a=0;for(c=
this.If.length;a<c;a++)this.b.Qe(this.If[a],null,!0);this.b.tf=null;this.b.Lb();if(this.b.Ia&&!this.b.tb)for(a=0,c=this.b.B.length;a<c;a++)g=this.b.B[a],!g.I&&g.j.length&&g.Sk&&g.Sk(this.b.Ia);if(this.b.Vh)Aa(this.b.Wj,t);else for(a=0,c=t.length;a<c;a++)d=t[a],this.b.trigger(Object.getPrototypeOf(d.type.za).m.kj,d);T(t);this.b.Vh||this.b.trigger(X.prototype.m.Bo,null);this.yg=!1};d.prototype.Gt=function(){var a,b,c,f,m;b=a=0;for(c=this.If.length;a<c;a++)f=this.If[a],m=this.b.B[f[1]],m.global?m.fc||
this.b.Qe(f,null,!0):(this.If[b]=f,b++);za(this.If,b)};d.prototype.bx=function(){this.b.Vh||this.b.trigger(X.prototype.m.Ls,null);this.b.Om=!0;T(this.b.Td.yc);var a,b,c,f,m,d;if(!this.yg)for(a=0,b=this.W.length;a<b;a++)for(this.W[a].po(),m=this.W[a].j,c=0,f=m.length;c<f;c++)d=m[c],d.type.global||this.b.lo(d.type)&&this.Pw(d);a=0;for(b=this.W.length;a<b;a++){m=this.W[a].j;c=0;for(f=m.length;c<f;c++)d=m[c],d.type.global||this.b.Ee(d);this.b.Lb();T(m);this.W[a].hg=!0}a=0;for(b=this.b.B.length;a<b;a++)if(m=
this.b.B[a],!(m.global||m.za.Ye||m.za.gl||m.I)){c=0;for(f=m.j.length;c<f;c++)this.b.Ee(m.j[c]);this.b.Lb()}p=!1;this.b.Om=!1};new va(0,0,0,0);d.prototype.Qc=function(a){var b,c=a,f=!1,m=!this.b.Dc;m&&(this.b.uk||(this.b.uk=document.createElement("canvas"),b=this.b.uk,b.width=this.b.N,b.height=this.b.M,this.b.Yp=b.getContext("2d"),f=!0),b=this.b.uk,c=this.b.Yp,b.width!==this.b.N&&(b.width=this.b.N,f=!0),b.height!==this.b.M&&(b.height=this.b.M,f=!0),f&&this.b.al(c,this.b.wa));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.b.Wo&&!this.Ap()&&c.clearRect(0,0,this.b.N,this.b.M);var d,g,f=0;for(d=this.W.length;f<d;f++)g=this.W[f],g.visible&&0<g.opacity&&11!==g.Mb&&(g.j.length||!g.Ad)?g.Qc(c):g.tl();m&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.Se=function(a){a.kr(!0);this.b.$a||(this.b.$a=a.Cc(this.b.N,this.b.M,this.b.wa));if(this.b.$a.nd!==this.b.N||this.b.$a.md!==this.b.M)a.deleteTexture(this.b.$a),this.b.$a=a.Cc(this.b.N,this.b.M,this.b.wa);a.ad(this.b.$a);this.b.Dc||a.ag(this.b.N,
this.b.M);var b,c;for(b=this.W.length-1;0<=b;--b)c=this.W[b],c.visible&&1===c.opacity&&c.te&&0===c.Mb&&(c.j.length||!c.Ad)?c.Se(a):c.tl();a.kr(!1)};d.prototype.Ob=function(a){var b=0<this.la.length||this.b.ih||!this.b.Dc||this.b.Fa;if(b){this.b.$a||(this.b.$a=a.Cc(this.b.N,this.b.M,this.b.wa));if(this.b.$a.nd!==this.b.N||this.b.$a.md!==this.b.M)a.deleteTexture(this.b.$a),this.b.$a=a.Cc(this.b.N,this.b.M,this.b.wa);a.ad(this.b.$a);this.b.Dc||a.ag(this.b.N,this.b.M)}else this.b.$a&&(a.ad(null),a.deleteTexture(this.b.$a),
this.b.$a=null);this.b.Wo&&!this.Ap()&&a.clear(0,0,0,0);var c,f,m;c=0;for(f=this.W.length;c<f;c++)m=this.W[c],m.visible&&0<m.opacity&&(m.j.length||!m.Ad)?m.Ob(a):m.tl();b&&(0===this.la.length||1===this.la.length&&this.b.Dc?(1===this.la.length?(b=this.la[0].index,a.jc(this.la[0].cb),a.dh(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.p,0,0,this.b.N/2,this.b.M/2,this.b.Fb.K,this.Na[b]),a.Tk(this.la[0].cb)&&(this.b.da=!0)):a.jc(0),this.b.Dc||a.ag(this.b.width,this.b.height),a.ad(null),a.jr(!1),a.re(1),
a.Tb(this.b.$a),a.hr(),a.$c(),a.Kc(),b=this.b.width/2,c=this.b.height/2,a.Fi(-b,c,b,c,b,-c,-b,-c),a.Tb(null),a.jr(!0)):this.Jn(a,null,null,null))};d.prototype.Kh=function(){return 0<this.la.length||this.b.ih||!this.b.Dc||this.b.Fa?this.b.$a:null};d.prototype.wp=function(){var a=this.W[0].oc(),b,c,f;b=1;for(c=this.W.length;b<c;b++)f=this.W[b],(0!==f.Vc||0!==f.Wc)&&f.oc()<a&&(a=f.oc());return a};d.prototype.Sn=function(a){if(!this.Mr){var b=1/this.wp()*this.b.N/2;a>this.width-b&&(a=this.width-b);a<
b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.da=!0)};d.prototype.Tn=function(a){if(!this.Mr){var b=1/this.wp()*this.b.M/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.da=!0)};d.prototype.yt=function(){this.Sn(this.scrollX);this.Tn(this.scrollY)};d.prototype.Jn=function(a,b,c,f){var m=c?c.la:b?b.la:this.la,d=1,g=0,h=0,r=0,p=this.b.N,u=this.b.M;c?(d=c.k.oc(),g=c.k.hb(),h=c.k.ra,r=c.k.ta,p=c.k.ya,u=c.k.xa):b&&(d=b.oc(),g=b.hb(),h=b.ra,r=b.ta,p=b.ya,u=b.xa);
var t=this.b.nm,k,q,C,F,B=0,N=1,G,P,H=this.b.N,w=this.b.M,D=H/2,x=w/2,v=b?b.Zc:this.Zc,I=b?b.Hn:this.Hn,L=0,O=0,J=0,M=0,U=H,sa=H,V=w,ta=w,ka=C=0;F=c?c.k.hb():0;if(c){k=0;for(q=m.length;k<q;k++)C+=a.iv(m[k].cb),ka+=a.jv(m[k].cb);M=c.Ha;L=b.Ka(M.left,M.top,!0,!0);J=b.Ka(M.left,M.top,!1,!0);U=b.Ka(M.right,M.bottom,!0,!0);V=b.Ka(M.right,M.bottom,!1,!0);0!==F&&(k=b.Ka(M.right,M.top,!0,!0),q=b.Ka(M.right,M.top,!1,!0),O=b.Ka(M.left,M.bottom,!0,!0),M=b.Ka(M.left,M.bottom,!1,!0),F=Math.min(L,U,k,O),U=Math.max(L,
U,k,O),L=F,F=Math.min(J,V,q,M),V=Math.max(J,V,q,M),J=F);L-=C;J-=ka;U+=C;V+=ka;I.left=L/H;I.top=1-J/w;I.right=U/H;I.bottom=1-V/w;O=L=qa(L);M=J=qa(J);sa=U=ra(U);ta=V=ra(V);O-=C;M-=ka;sa+=C;ta+=ka;0>L&&(L=0);0>J&&(J=0);U>H&&(U=H);V>w&&(V=w);0>O&&(O=0);0>M&&(M=0);sa>H&&(sa=H);ta>w&&(ta=w);v.left=L/H;v.top=1-J/w;v.right=U/H;v.bottom=1-V/w}else v.left=I.left=0,v.top=I.top=0,v.right=I.right=1,v.bottom=I.bottom=1;ka=c&&(a.Bi(m[0].cb)||0!==C||0!==ka||1!==c.opacity||c.type.za.wq)||b&&!c&&1!==b.opacity;a.hr();
if(ka){t[B]||(t[B]=a.Cc(H,w,this.b.wa));if(t[B].nd!==H||t[B].md!==w)a.deleteTexture(t[B]),t[B]=a.Cc(H,w,this.b.wa);a.jc(0);a.ad(t[B]);P=ta-M;a.clearRect(O,w-M-P,sa-O,P);c?c.Ob(a):(a.Tb(this.b.jb),a.re(b.opacity),a.$c(),a.translate(-D,-x),a.Kc(),a.Ic(L,V,U,V,U,J,L,J,v));I.left=I.top=0;I.right=I.bottom=1;c&&(F=v.top,v.top=v.bottom,v.bottom=F);B=1;N=0}a.re(1);C=m.length-1;var Ia=a.Dn(m[C].cb)||!b&&!c&&!this.b.Dc;k=F=0;for(q=m.length;k<q;k++){t[B]||(t[B]=a.Cc(H,w,this.b.wa));if(t[B].nd!==H||t[B].md!==
w)a.deleteTexture(t[B]),t[B]=a.Cc(H,w,this.b.wa);a.jc(m[k].cb);F=m[k].index;a.Tk(m[k].cb)&&(this.b.da=!0);0!=k||ka?(a.dh(f,1/H,1/w,I.left,I.top,I.right,I.bottom,d,g,h,r,(h+p)/2,(r+u)/2,this.b.Fb.K,c?c.Na[F]:b?b.Na[F]:this.Na[F]),a.Tb(null),k!==C||Ia?(a.ad(t[B]),P=ta-M,G=w-M-P,a.clearRect(O,G,sa-O,P)):(c?a.kf(c.Ub,c.Nb):b&&a.kf(b.Ub,b.Nb),a.ad(f)),a.Tb(t[N]),a.$c(),a.translate(-D,-x),a.Kc(),a.Ic(L,V,U,V,U,J,L,J,v),k!==C||Ia||a.Tb(null)):(a.ad(t[B]),P=ta-M,G=w-M-P,a.clearRect(O,G,sa-O,P),c?(c.Bb&&c.Bb.C?
(G=c.Bb.C,N=1/G.width,G=1/G.height):(N=1/c.width,G=1/c.height),a.dh(f,N,G,I.left,I.top,I.right,I.bottom,d,g,h,r,(h+p)/2,(r+u)/2,this.b.Fb.K,c.Na[F]),c.Ob(a)):(a.dh(f,1/H,1/w,0,0,1,1,d,g,h,r,(h+p)/2,(r+u)/2,this.b.Fb.K,b?b.Na[F]:this.Na[F]),a.Tb(b?this.b.jb:this.b.$a),a.$c(),a.translate(-D,-x),a.Kc(),a.Ic(L,V,U,V,U,J,L,J,v)),I.left=I.top=0,I.right=I.bottom=1,c&&!Ia&&(F=V,V=J,J=F));B=0===B?1:0;N=0===B?1:0}Ia&&(a.jc(0),c?a.kf(c.Ub,c.Nb):b?a.kf(b.Ub,b.Nb):this.b.Dc||(a.ag(this.b.width,this.b.height),
D=this.b.width/2,x=this.b.height/2,J=L=0,U=this.b.width,V=this.b.height),a.ad(f),a.Tb(t[N]),a.$c(),a.translate(-D,-x),a.Kc(),c&&1===m.length&&!ka?a.Ic(L,J,U,J,U,V,L,V,v):a.Ic(L,V,U,V,U,J,L,J,v),a.Tb(null))};d.prototype.ek=function(a){var b,c;b=0;for(c=this.W.length;b<c;b++)if(this.W[b].ea===a)return this.W[b];return null};d.prototype.ob=function(){var a,b,c,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.p,w:this.width,h:this.height,fv:this.yg,persist:this.hf,fx:[],layers:{}};a=0;for(b=this.U.length;a<
b;a++)c=this.U[a],f.fx.push({name:c.name,active:c.Ac,params:this.Na[c.index]});a=0;for(b=this.W.length;a<b;a++)c=this.W[a],f.layers[c.ea.toString()]=c.ob();return f};d.prototype.Gb=function(a){var b,c,f,m;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.p=a.a;this.width=a.w;this.height=a.h;this.hf=a.persist;"undefined"!==typeof a.fv&&(this.yg=a.fv);var d=a.fx;b=0;for(c=d.length;b<c;b++)if(f=this.rm(d[b].name))f.Ac=d[b].active,this.Na[f.index]=d[b].params;this.Bd();b=a.layers;for(m in b)b.hasOwnProperty(m)&&
(a=this.ek(parseInt(m,10)))&&a.Gb(b[m])};Ib=d;k.prototype.Bd=function(){T(this.la);this.te=!0;var a,b,c;a=0;for(b=this.U.length;a<b;a++)c=this.U[a],c.Ac&&(this.la.push(c),c.Xc||(this.te=!1))};k.prototype.rm=function(a){var b,c,f;b=0;for(c=this.U.length;b<c;b++)if(f=this.U[b],f.name===a)return f;return null};k.prototype.Ht=function(){var a,b,c,f,m,d;b=a=0;for(c=this.Fc.length;a<c;a++){f=this.Fc[a];m=this.b.B[f[1]];d=this.b.lo(m);m=!0;if(!d||this.Za.yg){f=this.b.Qe(f,this,!0);if(!f)continue;t.push(f);
f.type.global&&(m=!1,this.Ah.push(f.uid))}m&&(this.Fc[b]=this.Fc[a],b++)}this.Fc.length=b;this.b.Lb();!this.b.q&&this.U.length&&(this.Mb=this.iu);this.xh=jb(this.Mb);this.b.F&&kb(this,this.Mb,this.b.F);this.xd=!0};k.prototype.ah=function(a,b){var c=Da(this.j,a);0>c||(b&&this.Lc&&a.hc&&a.hc.right>=a.hc.left&&(a.ua(),this.Jb.update(a,a.hc,null),a.hc.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(ya(this.j,c),this.Ki(c)),this.xd=!0)};k.prototype.sh=function(a,b){a.Cd=this.j.length;this.j.push(a);
b&&this.Lc&&a.hc&&a.G();this.xd=!0};k.prototype.xw=function(a){this.j.unshift(a);this.Ki(0)};k.prototype.$v=function(a,b,c){var f=a.Jd();b=b.Jd();ya(this.j,f);f<b&&b--;c&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.Ki(f<b?f:b)};k.prototype.Ki=function(a){-1===this.De?this.De=a:a<this.De&&(this.De=a);this.xd=this.hg=!0};k.prototype.po=function(){if(this.hg){-1===this.De&&(this.De=0);var a,b,c;if(this.Lc)for(a=this.De,b=this.j.length;a<b;++a)c=this.j[a],c.Cd=a,this.Jb.Yv(c.hc);else for(a=
this.De,b=this.j.length;a<b;++a)this.j[a].Cd=a;this.hg=!1;this.De=-1}};k.prototype.oc=function(a){return this.dv()*(this.b.Dc||a?this.b.uh:1)};k.prototype.dv=function(){return(this.scale*this.Za.scale-1)*this.Dd+1};k.prototype.hb=function(){return this.be?0:Ka(this.Za.p+this.p)};var a=[],c=[],f=[];k.prototype.xm=function(){this.po();this.Jb.Vk(this.ra,this.ta,this.ya,this.xa,f);if(!f.length)return g();if(1===f.length){var a=g();Aa(a,f[0]);T(f);return a}for(var b=!0;1<f.length;){for(var a=f,l=void 0,
n=void 0,m=void 0,d=void 0,p=void 0,l=0,n=a.length;l<n-1;l+=2){var m=a[l],d=a[l+1],p=g(),h=m,r=d,t=p,k=0,q=0,E=0,R=h.length,C=r.length,F=void 0,B=void 0;for(t.length=R+C;k<R&&q<C;++E)F=h[k],B=r[q],F.Cd<B.Cd?(t[E]=F,++k):(t[E]=B,++q);for(;k<R;++k,++E)t[E]=h[k];for(;q<C;++q,++E)t[E]=r[q];b||(u(m),u(d));c.push(p)}1===n%2&&(b?(m=g(),Aa(m,a[n-1]),c.push(m)):c.push(a[n-1]));Aa(a,c);T(c);b=!1}a=f[0];T(f);return a};k.prototype.Qc=function(a){this.Pd=this.ak||1!==this.opacity||0!==this.Mb;var b=this.b.canvas,
c=a,f=!1;this.Pd&&(this.b.tk||(this.b.tk=document.createElement("canvas"),b=this.b.tk,b.width=this.b.N,b.height=this.b.M,this.b.Xp=b.getContext("2d"),f=!0),b=this.b.tk,c=this.b.Xp,b.width!==this.b.N&&(b.width=this.b.N,f=!0),b.height!==this.b.M&&(b.height=this.b.M,f=!0),f&&this.b.al(c,this.b.wa),this.Ad&&c.clearRect(0,0,this.b.N,this.b.M));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Ad||(c.fillStyle="rgb("+this.kd[0]+","+this.kd[1]+","+this.kd[2]+")",c.fillRect(0,0,this.b.N,this.b.M));
c.save();this.be=!0;var f=this.Vb(0,0,!0,!0),m=this.Vb(0,0,!1,!0);this.be=!1;this.b.gc&&(f=Math.round(f),m=Math.round(m));this.Xk(f,m,c);var d=this.oc();c.scale(d,d);c.translate(-f,-m);this.Lc?(this.Cb.left=this.Jb.$b(this.ra),this.Cb.top=this.Jb.ac(this.ta),this.Cb.right=this.Jb.$b(this.ya),this.Cb.bottom=this.Jb.ac(this.xa),this.xd||!this.Cb.Dh(this.Pg)?(u(this.me),f=this.xm(),this.xd=!1,this.Pg.yh(this.Cb)):f=this.me):f=this.j;for(var g,h=null,m=0,d=f.length;m<d;++m)g=f[m],g!==h&&(this.du(g,c),
h=g);this.Lc&&(this.me=f);c.restore();this.Pd&&(a.globalCompositeOperation=this.xh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};k.prototype.du=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var c=a.Ha;c.right<this.ra||c.bottom<this.ta||c.left>this.ya||c.top>this.xa||(b.globalCompositeOperation=a.xh,a.Qc(b))}};k.prototype.tl=function(){this.be=!0;var a=this.Vb(0,0,!0,!0),b=this.Vb(0,0,!1,!0);this.be=!1;this.b.gc&&(a=Math.round(a),b=Math.round(b));this.Xk(a,b,null)};k.prototype.Xk=
function(a,b,c){var f=this.oc();this.ra=a;this.ta=b;this.ya=a+1/f*this.b.N;this.xa=b+1/f*this.b.M;this.ra>this.ya&&(a=this.ra,this.ra=this.ya,this.ya=a);this.ta>this.xa&&(a=this.ta,this.ta=this.xa,this.xa=a);a=this.hb();0!==a&&(c&&(c.translate(this.b.N/2,this.b.M/2),c.rotate(-a),c.translate(this.b.N/-2,this.b.M/-2)),this.xe.set(this.ra,this.ta,this.ya,this.xa),this.xe.offset((this.ra+this.ya)/-2,(this.ta+this.xa)/-2),this.Gr.pr(this.xe,a),this.Gr.Qo(this.xe),this.xe.offset((this.ra+this.ya)/2,(this.ta+
this.xa)/2),this.ra=this.xe.left,this.ta=this.xe.top,this.ya=this.xe.right,this.xa=this.xe.bottom)};k.prototype.Se=function(a){if(this.Pd=this.ak){this.b.jb||(this.b.jb=a.Cc(this.b.N,this.b.M,this.b.wa));if(this.b.jb.nd!==this.b.N||this.b.jb.md!==this.b.M)a.deleteTexture(this.b.jb),this.b.jb=a.Cc(this.b.N,this.b.M,this.b.wa);a.ad(this.b.jb)}this.be=!0;var b=this.Vb(0,0,!0,!0),c=this.Vb(0,0,!1,!0);this.be=!1;this.b.gc&&(b=Math.round(b),c=Math.round(c));this.Xk(b,c,null);b=this.oc();a.$c();a.scale(b,
b);a.Yk(-this.hb());a.translate((this.ra+this.ya)/-2,(this.ta+this.xa)/-2);a.Kc();this.Lc?(this.Cb.left=this.Jb.$b(this.ra),this.Cb.top=this.Jb.ac(this.ta),this.Cb.right=this.Jb.$b(this.ya),this.Cb.bottom=this.Jb.ac(this.xa),this.xd||!this.Cb.Dh(this.Pg)?(u(this.me),b=this.xm(),this.xd=!1,this.Pg.yh(this.Cb)):b=this.me):b=this.j;for(var f,m=null,c=b.length-1;0<=c;--c)f=b[c],f!==m&&(this.fu(b[c],a),m=f);this.Lc&&(this.me=b);this.Ad||(this.Ul=this.b.yf++,a.bl(this.Ul),a.ir(1,1,1),a.np(),a.Hw())};k.prototype.Ob=
function(a){var b=0,c=0;if(this.Pd=this.ak||1!==this.opacity||0<this.la.length||0!==this.Mb){this.b.jb||(this.b.jb=a.Cc(this.b.N,this.b.M,this.b.wa));if(this.b.jb.nd!==this.b.N||this.b.jb.md!==this.b.M)a.deleteTexture(this.b.jb),this.b.jb=a.Cc(this.b.N,this.b.M,this.b.wa);a.ad(this.b.jb);this.Ad&&a.clear(0,0,0,0)}this.Ad||(this.b.Fa?(a.bl(this.Ul),a.ir(this.kd[0]/255,this.kd[1]/255,this.kd[2]/255),a.np(),a.Ww()):a.clear(this.kd[0]/255,this.kd[1]/255,this.kd[2]/255,1));this.be=!0;var f=this.Vb(0,0,
!0,!0),b=this.Vb(0,0,!1,!0);this.be=!1;this.b.gc&&(f=Math.round(f),b=Math.round(b));this.Xk(f,b,null);f=this.oc();a.$c();a.scale(f,f);a.Yk(-this.hb());a.translate((this.ra+this.ya)/-2,(this.ta+this.xa)/-2);a.Kc();this.Lc?(this.Cb.left=this.Jb.$b(this.ra),this.Cb.top=this.Jb.ac(this.ta),this.Cb.right=this.Jb.$b(this.ya),this.Cb.bottom=this.Jb.ac(this.xa),this.xd||!this.Cb.Dh(this.Pg)?(u(this.me),b=this.xm(),this.xd=!1,this.Pg.yh(this.Cb)):b=this.me):b=this.j;var m,d,g=null,c=0;for(m=b.length;c<m;++c)d=
b[c],d!==g&&(this.eu(b[c],a),g=d);this.Lc&&(this.me=b);this.Pd&&(b=this.la.length?this.la[0].cb:0,c=this.la.length?this.la[0].index:0,0===this.la.length||1===this.la.length&&!a.Dn(b)&&1===this.opacity?(1===this.la.length?(a.jc(b),a.dh(this.Za.Kh(),1/this.b.N,1/this.b.M,0,0,1,1,f,this.hb(),this.ra,this.ta,(this.ra+this.ya)/2,(this.ta+this.xa)/2,this.b.Fb.K,this.Na[c]),a.Tk(b)&&(this.b.da=!0)):a.jc(0),a.ad(this.Za.Kh()),a.re(this.opacity),a.Tb(this.b.jb),a.kf(this.Ub,this.Nb),a.$c(),a.Kc(),f=this.b.N/
2,b=this.b.M/2,a.Fi(-f,b,f,b,f,-b,-f,-b),a.Tb(null)):this.Za.Jn(a,this,null,this.Za.Kh()))};k.prototype.eu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var c=a.Ha;c.right<this.ra||c.bottom<this.ta||c.left>this.ya||c.top>this.xa||(b.bl(a.yf),a.Tr?this.gu(a,b):(b.jc(0),b.kf(a.Ub,a.Nb),a.Ob(b)))}};k.prototype.fu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var c=a.Ha;c.right<this.ra||c.bottom<this.ta||c.left>this.ya||c.top>this.xa||(a.yf=this.b.yf++,0===a.Mb&&1===a.opacity&&
a.te&&a.Se&&(b.bl(a.yf),a.Se(b)))}};k.prototype.gu=function(a,b){var c=a.la[0].cb,f=a.la[0].index,m=this.oc();if(1!==a.la.length||b.Dn(c)||b.zw(c)||(a.p||a.k.hb())&&b.Bi(c)||1!==a.opacity||a.type.za.wq)this.Za.Jn(b,this,a,this.Pd?this.b.jb:this.Za.Kh()),b.$c(),b.scale(m,m),b.Yk(-this.hb()),b.translate((this.ra+this.ya)/-2,(this.ta+this.xa)/-2),b.Kc();else{b.jc(c);b.kf(a.Ub,a.Nb);b.Tk(c)&&(this.b.da=!0);var d=0,g=0,h=0,r=0;b.Bi(c)&&(r=a.Ha,d=this.Ka(r.left,r.top,!0,!0),g=this.Ka(r.left,r.top,!1,!0),
h=this.Ka(r.right,r.bottom,!0,!0),r=this.Ka(r.right,r.bottom,!1,!0),d=d/windowWidth,g=1-g/windowHeight,h=h/windowWidth,r=1-r/windowHeight);var p;a.Bb&&a.Bb.C?(p=a.Bb.C,c=1/p.width,p=1/p.height):(c=1/a.width,p=1/a.height);b.dh(this.Pd?this.b.jb:this.Za.Kh(),c,p,d,g,h,r,m,this.hb(),this.ra,this.ta,(this.ra+this.ya)/2,(this.ta+this.xa)/2,this.b.Fb.K,a.Na[f]);a.Ob(b)}};k.prototype.Vb=function(a,b,c,f){var m=this.b.devicePixelRatio;this.b.Lf&&(a*=m,b*=m);var m=this.b.Pq,d=this.b.Qq,m=(this.Za.scrollX-
m)*this.Vc+m,d=(this.Za.scrollY-d)*this.Wc+d,g=m,h=d,r=1/this.oc(!f);f?(g-=this.b.N*r/2,h-=this.b.M*r/2):(g-=this.b.width*r/2,h-=this.b.height*r/2);g+=a*r;h+=b*r;b=this.hb();0!==b&&(g-=m,h-=d,a=Math.cos(b),b=Math.sin(b),f=g*a-h*b,h=h*a+g*b,g=f+m,h+=d);return c?g:h};k.prototype.Ka=function(a,b,c,f){var d=this.b.Pq,g=this.b.Qq,p=(this.Za.scrollX-d)*this.Vc+d,h=(this.Za.scrollY-g)*this.Wc+g,g=p,d=h,r=this.hb();if(0!==r){a-=p;b-=h;var u=Math.cos(-r),r=Math.sin(-r),t=a*u-b*r;b=b*u+a*r;a=t+p;b+=h}p=1/this.oc(!f);
f?(g-=this.b.N*p/2,d-=this.b.M*p/2):(g-=this.b.width*p/2,d-=this.b.height*p/2);g=(a-g)/p;d=(b-d)/p;a=this.b.devicePixelRatio;this.b.Lf&&!f&&(g/=a,d/=a);return c?g:d};k.prototype.ob=function(){var a,b,c,f={s:this.scale,a:this.p,vl:this.ra,vt:this.ta,vr:this.ya,vb:this.xa,v:this.visible,bc:this.kd,t:this.Ad,px:this.Vc,py:this.Wc,o:this.opacity,zr:this.Dd,fx:[],cg:this.Ah,instances:[]};a=0;for(b=this.U.length;a<b;a++)c=this.U[a],f.fx.push({name:c.name,active:c.Ac,params:this.Na[c.index]});return f};
k.prototype.Gb=function(a){var b,c,f;this.scale=a.s;this.p=a.a;this.ra=a.vl;this.ta=a.vt;this.ya=a.vr;this.xa=a.vb;this.visible=a.v;this.kd=a.bc;this.Ad=a.t;this.Vc=a.px;this.Wc=a.py;this.opacity=a.o;this.Dd=a.zr;this.Ah=a.cg||[];Aa(this.Fc,this.Ar);var d=new ca;b=0;for(f=this.Ah.length;b<f;++b)d.add(this.Ah[b]);c=b=0;for(f=this.Fc.length;b<f;++b)d.contains(this.Fc[b][2])||(this.Fc[c]=this.Fc[b],++c);za(this.Fc,c);c=a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.rm(c[b].name))a.Ac=c[b].active,this.Na[a.index]=
c[b].params;this.Bd();this.j.sort(q);this.hg=!0};Wb=k})();
(function(){function d(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function k(a){var b,c,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=m.length&&(m.length=a.length+1);m[a.length]||(m[a.length]=[]);f=m[a.length];b=0;for(c=f.length;b<c;b++)if(e=f[b],d(a,e))return e;f.push(a);return a}
function g(a,b){this.b=a;this.Kr={};this.hp={};this.Dm=!1;this.Dp=new ca;this.cm=[];this.Hl=[];this.name=b[0];var c=b[1];this.Ue=[];var e,f;e=0;for(f=c.length;e<f;e++)this.Fp(c[e],null,this.Ue)}function u(a){this.type=a;this.j=[];this.aa=[];this.na=!0}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.lf=[];this.Bp=this.nl=this.fo=this.Km=this.group=this.$n=!1;this.fb=[];this.Mc=[];this.cd=[];this.Oh="";this.Nh=this.Km=this.group=!1;this.Dj=null;c[1]&&(this.Oh=c[1][1].toLowerCase(),
this.group=!0,this.Km=!!c[1][0],this.Dj=[],this.Nh=this.Km,this.b.lg.push(this),this.b.gk[this.Oh]=this);this.Tc=c[2];this.ea=c[4];this.group||(this.b.Oo[this.ea.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var f=new Xb(this,e[a]);f.index=a;this.fb.push(f);this.Ko(f.type)}e=c[6];a=0;for(b=e.length;a<b;a++)f=new Yb(this,e[a]),f.index=a,this.Mc.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Fp(c[a],this,this.cd);this.nk=!1;this.fb.length&&(this.nk=null==this.fb[0].type&&
this.fb[0].Eb==X.prototype.m.uo)}function p(a,b){var c,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.fc))for(c=0,e=a.lc.length;c<e;c++)f=a.lc[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.Bc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Oa=[];this.V={};this.index=-1;this.qh=!1;this.Eb=this.b.Fe(b[1]);this.trigger=0<b[3];this.gp=2===b[3];this.Ld=b[4];this.Nm=b[5];this.Uv=b[6];this.ea=b[7];this.b.Oe[this.ea.toString()]=this;-1===b[0]?(this.type=null,this.bb=this.Pn,this.sf=null,this.ld=-1):
(this.type=this.b.B[b[0]],this.bb=this.Uv?this.Nw:this.On,b[2]?(this.sf=this.type.dk(b[2]),this.ld=this.type.pm(b[2])):(this.sf=null,this.ld=-1),this.Bc.parent&&this.Bc.parent.cl());this.gp&&(this.bb=this.Ow);if(10===b.length){var c,e,f=b[9];c=0;for(e=f.length;c<e;c++){var d=new Zb(this,f[c]);this.X.push(d)}this.Oa.length=f.length}}function c(a,b){this.Bc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Oa=[];this.V={};this.index=-1;this.qh=!1;this.Eb=this.b.Fe(b[1]);-1===b[0]?(this.type=null,this.bb=
this.Pn,this.sf=null,this.ld=-1):(this.type=this.b.B[b[0]],this.bb=this.On,b[2]?(this.sf=this.type.dk(b[2]),this.ld=this.type.pm(b[2])):(this.sf=null,this.ld=-1));this.ea=b[3];this.b.He[this.ea.toString()]=this;if(6===b.length){var c,e,f=b[5];c=0;for(e=f.length;c<e;c++){var d=new Zb(this,f[c]);this.X.push(d)}this.Oa.length=f.length}}function f(){z++;S.length===z&&S.push(new $b);return S[z]}function e(a,b){this.Uc=a;this.Bc=a.Bc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Hd=null;this.ue=0;this.get=
null;this.Xo=0;this.Za=null;this.key=0;this.object=null;this.index=0;this.$i=this.dg=this.$i=this.dg=this.lp=this.Af=this.aj=null;this.ed=!1;var c,e,f;switch(b[0]){case 0:case 7:this.Hd=new ac(this,b[1]);this.ue=0;this.get=this.pv;break;case 1:this.Hd=new ac(this,b[1]);this.ue=0;this.get=this.qv;break;case 5:this.Hd=new ac(this,b[1]);this.ue=0;this.get=this.uv;break;case 3:case 8:this.Xo=b[1];this.get=this.nv;break;case 6:this.Za=this.b.Qg[b[1]];this.get=this.vv;break;case 9:this.key=b[1];this.get=
this.tv;break;case 4:this.object=this.b.B[b[1]];this.get=this.wv;this.Bc.Ko(this.object);this.Uc instanceof Yb?this.Bc.cl():this.Bc.parent&&this.Bc.parent.cl();break;case 10:this.index=b[1];a.type&&a.type.I?(this.get=this.rv,this.ed=!0):this.get=this.sv;break;case 11:this.aj=b[1];this.Af=null;this.get=this.ov;break;case 2:case 12:this.lp=b[1];this.get=this.mv;break;case 13:for(this.get=this.xv,this.dg=[],this.$i=[],c=1,e=b.length;c<e;c++)f=new Zb(this.Uc,b[c]),this.dg.push(f),this.$i.push(0)}}function b(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.name=c[1];this.ul=c[2];this.Jm=c[3];this.ci=!!c[4];this.mk=!!c[5];this.ea=c[6];this.b.kh[this.ea.toString()]=this;this.data=this.Jm;this.parent?(this.Vf=this.ci||this.mk?-1:this.b.$w++,this.b.pt.push(this)):(this.Vf=-1,this.b.ot.push(this))}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.Qh=null;this.Ev=c[1];this.Ac=!0}function n(){this.Cr=[];this.reset(null)}var m=[];g.prototype.toString=function(){return this.name};
g.prototype.Fp=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.Tc)for(c.push(a),c=0,b=a.fb.length;c<b;c++)a.fb[c].trigger&&this.Gp(a,c);else a.Qp()?this.Gp(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};g.prototype.Ua=function(){var a,b;a=0;for(b=this.Ue.length;a<b;a++)this.Ue[a].Ua(a<b-1&&this.Ue[a+1].nk)};g.prototype.no=function(){T(this.cm);T(this.Hl);this.Jo(this);T(this.Hl)};g.prototype.Jo=function(a){var b,c,e,f,d=a.cm,n=a.Hl,
m=this.Dp.Ae();b=0;for(c=m.length;b<c;++b)e=m[b],f=e.Qh,!e.Ac||a===f||-1<n.indexOf(f)||(n.push(f),f.Jo(a),d.push(f))};g.prototype.bb=function(a){this.b.Dy||(this.Dm=!0,a||(this.b.Rm=!0));var b,c;b=0;for(c=this.Ue.length;b<c;b++){var e=this.Ue[b];e.bb();this.b.Tl(e.Ba);this.b.We&&this.b.Lb()}a||(this.b.Rm=!1)};g.prototype.Gp=function(a,b){a.Tc||this.b.ql.push(a);var c,e,f=a.fb[b],d;f.type?d=f.type.name:d="system";var n=(c=f.gp)?this.hp:this.Kr;n[d]||(n[d]=[]);d=n[d];n=f.Eb;if(c){if(f.X.length&&(f=
f.X[0],1===f.type&&2===f.Hd.type)){f=f.Hd.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==n){c=d[c].Fh;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];d.push({method:n,Fh:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==n){d[c].Fh.push([a,b]);return}Z&&n===Z.prototype.m.kg?d.unshift({method:n,Fh:[[a,b]]}):d.push({method:n,Fh:[[a,b]]})}};Jb=g;u.prototype.Cm=function(){return this.na?this.type.j.length:this.j.length};u.prototype.nc=function(){return this.na?this.type.j:
this.j};u.prototype.Ai=function(a){a&&(a.b.sb().Db.Tc?(this.na&&(T(this.j),Aa(this.aa,a.type.j),this.na=!1),a=this.aa.indexOf(a),-1!==a&&(this.j.push(this.aa[a]),this.aa.splice(a,1))):(this.na=!1,T(this.j),this.j[0]=a))};rb=u;window._c2hh_="";t.prototype.Ua=function(a){var b,c=this.parent;if(this.group)for(this.nl=!0;c;){if(!c.group){this.nl=!1;break}c=c.parent}this.fo=!this.Qp()&&(!this.parent||this.parent.group&&this.parent.nl);this.Bp=!!a;this.lf=this.Ba.slice(0);for(c=this.parent;c;){a=0;for(b=
c.Ba.length;a<b;a++)this.mt(c.Ba[a]);c=c.parent}this.Ba=k(this.Ba);this.lf=k(this.lf);a=0;for(b=this.fb.length;a<b;a++)this.fb[a].Ua();a=0;for(b=this.Mc.length;a<b;a++)this.Mc[a].Ua();a=0;for(b=this.cd.length;a<b;a++)this.cd[a].Ua(a<b-1&&this.cd[a+1].nk)};t.prototype.Sw=function(a){if(this.Nh!==!!a){this.Nh=!!a;var b;a=0;for(b=this.Dj.length;a<b;++a)this.Dj[a].Or();0<b&&this.b.Aa.zf&&this.b.Aa.zf.no()}};t.prototype.Ko=function(a){p(a,this.Ba)};t.prototype.mt=function(a){p(a,this.lf)};t.prototype.cl=
function(){this.$n=!0;this.parent&&this.parent.cl()};t.prototype.Qp=function(){return this.fb.length?this.fb[0].trigger:!1};t.prototype.bb=function(){var a,b,c=!1,e=this.b,f=this.b.sb();f.Db=this;var d=this.fb;this.nk||(f.dm=!1);if(this.Tc){0===d.length&&(c=!0);f.eb=0;for(a=d.length;f.eb<a;f.eb++)b=d[f.eb],b.trigger||(b=b.bb())&&(c=!0);(f.Pf=c)&&this.Zk()}else{f.eb=0;for(a=d.length;f.eb<a;f.eb++)if(b=d[f.eb].bb(),!b){f.Pf=!1;this.fo&&e.We&&e.Lb();return}f.Pf=!0;this.Zk()}this.ku(f)};t.prototype.ku=
function(a){a.Pf&&this.Bp&&(a.dm=!0);this.fo&&this.b.We&&this.b.Lb()};t.prototype.Lw=function(a){this.b.sb().Db=this;this.fb[a].bb()&&(this.Zk(),this.b.sb().Pf=!0)};t.prototype.Zk=function(){var a=this.b.sb(),b;a.zc=0;for(b=this.Mc.length;a.zc<b;a.zc++)if(this.Mc[a.zc].bb())return;this.er()};t.prototype.Jw=function(){var a=this.b.sb(),b;for(b=this.Mc.length;a.zc<b;a.zc++)if(this.Mc[a.zc].bb())return;this.er()};t.prototype.er=function(){if(this.cd.length){var a,b,c,e,f=this.cd.length-1;this.b.Uk(this);
if(this.$n)for(a=0,b=this.cd.length;a<b;a++)c=this.cd[a],(e=!this.nl||!this.group&&a<f)&&this.b.Ei(c.Ba),c.bb(),e?this.b.jf(c.Ba):this.b.Tl(c.Ba);else for(a=0,b=this.cd.length;a<b;a++)this.cd[a].bb();this.b.Pk()}};t.prototype.Mw=function(){var a=this.b.sb();a.Db=this;var b=!1,c;a.eb=0;for(c=this.fb.length;a.eb<c;a.eb++)if(this.fb[a.eb].bb())b=!0;else if(!this.Tc)return!1;return this.Tc?b:!0};t.prototype.Mn=function(){this.b.Bf++;var a=this.b.sb().eb,b=this.b.Uk(this);if(!this.Tc)for(b.eb=a+1,a=this.fb.length;b.eb<
a;b.eb++)if(!this.fb[b.eb].bb()){this.b.Pk();return}this.Zk();this.b.Pk()};t.prototype.Mv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.fb[b].type===a.type)return!1;return!0};bc=t;a.prototype.Ua=function(){var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Ua(),c.ed&&(this.qh=!0)};a.prototype.Ow=function(){return!0};a.prototype.Pn=function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Oa[a]=this.X[a].get();return Ta(this.Eb.apply(this.b.Td,this.Oa),this.Nm)};a.prototype.Nw=
function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Oa[a]=this.X[a].get();a=this.Eb.apply(this.sf?this.sf:this.type,this.Oa);this.type.jd();return a};a.prototype.On=function(){var a,b,c,e,f,d,n,m,l=this.type,g=l.ba(),p=this.Bc.Tc&&!this.trigger;b=0;var u=l.fc,t=l.I,k=l.fe,q=this.ld,S=-1<q,z=this.qh,v=this.X,I=this.Oa,L=this.Nm,O=this.Eb,J;if(z)for(b=0,f=v.length;b<f;++b)d=v[b],d.ed||(I[b]=d.get(0));else for(b=0,f=v.length;b<f;++b)I[b]=v[b].get(0);if(g.na){T(g.j);T(g.aa);J=l.j;a=0;for(e=J.length;a<
e;++a){m=J[a];if(z)for(b=0,f=v.length;b<f;++b)d=v[b],d.ed&&(I[b]=d.get(a));S?(b=0,t&&(b=m.type.xg[k]),b=O.apply(m.P[q+b],I)):b=O.apply(m,I);(n=Ta(b,L))?g.j.push(m):p&&g.aa.push(m)}l.finish&&l.finish(!0);g.na=!1;l.jd();return g.Cm()}c=0;J=(n=p&&!this.Bc.Mv(this))?g.aa:g.j;var M=!1;a=0;for(e=J.length;a<e;++a){m=J[a];if(z)for(b=0,f=v.length;b<f;++b)d=v[b],d.ed&&(I[b]=d.get(a));S?(b=0,t&&(b=m.type.xg[k]),b=O.apply(m.P[q+b],I)):b=O.apply(m,I);if(Ta(b,L))if(M=!0,n){if(g.j.push(m),u)for(b=0,f=m.siblings.length;b<
f;b++)d=m.siblings[b],d.type.ba().j.push(d)}else{J[c]=m;if(u)for(b=0,f=m.siblings.length;b<f;b++)d=m.siblings[b],d.type.ba().j[c]=d;c++}else if(n){J[c]=m;if(u)for(b=0,f=m.siblings.length;b<f;b++)d=m.siblings[b],d.type.ba().aa[c]=d;c++}else if(p&&(g.aa.push(m),u))for(b=0,f=m.siblings.length;b<f;b++)d=m.siblings[b],d.type.ba().aa.push(d)}za(J,c);if(u)for(t=l.lc,a=0,e=t.length;a<e;a++)m=t[a].ba(),n?za(m.aa,c):za(m.j,c);c=M;if(n&&!M)for(a=0,e=g.j.length;a<e;a++){m=g.j[a];if(z)for(b=0,f=v.length;b<f;b++)d=
v[b],d.ed&&(I[b]=d.get(a));b=S?O.apply(m.P[q],I):O.apply(m,I);if(Ta(b,L)){M=!0;break}}l.finish&&l.finish(c||p);return p?M:g.Cm()};Xb=a;c.prototype.Ua=function(){var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Ua(),c.ed&&(this.qh=!0)};c.prototype.Pn=function(){var a=this.b,b,c,e=this.X,f=this.Oa;b=0;for(c=e.length;b<c;++b)f[b]=e[b].get();return this.Eb.apply(a.Td,f)};c.prototype.On=function(){var a=this.type,b=this.ld,c=a.fe,e=this.qh,f=this.X,d=this.Oa,n=this.Eb,m=a.ba().nc(),a=a.I,l=-1<b,
g,p,u,t,k,q;if(e)for(p=0,t=f.length;p<t;++p)k=f[p],k.ed||(d[p]=k.get(0));else for(p=0,t=f.length;p<t;++p)d[p]=f[p].get(0);g=0;for(u=m.length;g<u;++g){q=m[g];if(e)for(p=0,t=f.length;p<t;++p)k=f[p],k.ed&&(d[p]=k.get(g));l?(p=0,a&&(p=q.type.xg[c]),n.apply(q.P[b+p],d)):n.apply(q,d)}return!1};Yb=c;var S=[],z=-1;e.prototype.Ua=function(){var a,b;if(11===this.type)this.Af=this.b.up(this.aj,this.Bc.parent);else if(13===this.type)for(a=0,b=this.dg.length;a<b;a++)this.dg[a].Ua();this.Hd&&this.Hd.Ua()};e.prototype.Zv=
function(a){this.ed||!a||a.za.gl||(this.ed=!0)};e.prototype.nr=function(){this.ed=!0};e.prototype.pv=function(a){this.ue=a||0;a=f();this.Hd.get(a);z--;return a.data};e.prototype.qv=function(a){this.ue=a||0;a=f();this.Hd.get(a);z--;return A(a.data)?a.data:""};e.prototype.wv=function(){return this.object};e.prototype.nv=function(){return this.Xo};e.prototype.uv=function(a){this.ue=a||0;a=f();this.Hd.get(a);z--;return a.ub()?this.b.Jh(a.data):this.b.vm(a.data)};e.prototype.vv=function(){return this.Za};
e.prototype.tv=function(){return this.key};e.prototype.sv=function(){return this.index};e.prototype.rv=function(a){a=a||0;var b=this.Uc.type,c=null,c=b.ba(),e=c.nc();if(e.length)c=e[a%e.length].type;else if(c.aa.length)c=c.aa[a%c.aa.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.Uj[b.fe]};e.prototype.ov=function(){return this.Af};e.prototype.mv=function(){return this.lp};e.prototype.xv=function(){var a,b;a=0;for(b=this.dg.length;a<b;a++)this.$i[a]=this.dg[a].get();
return this.$i};Zb=e;b.prototype.Ua=function(){this.Ba=k(this.Ba)};b.prototype.bg=function(a){var b=this.b.tp();this.parent&&!this.ci&&b?(this.Vf>=b.length&&(b.length=this.Vf+1),b[this.Vf]=a):this.data=a};b.prototype.Lh=function(){var a=this.b.tp();return!this.parent||this.ci||!a||this.mk?this.data:this.Vf>=a.length||"undefined"===typeof a[this.Vf]?this.Jm:a[this.Vf]};b.prototype.bb=function(){!this.parent||this.ci||this.mk||this.bg(this.Jm)};Tb=b;l.prototype.toString=function(){return"include:"+
this.Qh.toString()};l.prototype.Ua=function(){this.Qh=this.b.gm[this.Ev];this.sheet.Dp.add(this);this.Ba=k(this.Ba);for(var a=this.parent;a;)a.group&&a.Dj.push(this),a=a.parent;this.Or()};l.prototype.bb=function(){this.parent&&this.b.Di(this.b.B);this.Qh.Dm||this.Qh.bb(!0);this.parent&&this.b.jf(this.b.B)};l.prototype.Or=function(){for(var a=this.parent;a;){if(a.group&&!a.Nh){this.Ac=!1;return}a=a.parent}this.Ac=!0};cc=l;n.prototype.reset=function(a){this.Db=a;this.zc=this.eb=0;T(this.Cr);this.dm=
this.Pf=!1};n.prototype.Ov=function(){return this.Db.$n?!0:this.eb<this.Db.fb.length-1?!!this.Db.Ba.length:!1};Sb=n})();
(function(){function d(d,a){this.Uc=d;this.b=d.b;this.type=a[0];this.get=[this.Cu,this.yu,this.Lu,this.Ou,this.nu,this.Mu,this.Gu,this.vu,this.Fu,this.Ku,this.ou,this.Ju,this.wu,this.Hu,this.Du,this.Eu,this.zu,this.Au,this.uu,this.Nu,this.Iu,this.Bu,this.tu,this.xu][this.type];var c=null;this.oe=this.X=this.Oa=this.Eb=this.ll=this.second=this.first=this.value=null;this.ld=-1;this.pd=null;this.Ur=-1;this.Af=this.aj=null;this.bh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(d,a[1]);break;case 18:this.first=new ac(d,a[1]);this.second=new ac(d,a[2]);this.ll=new ac(d,a[3]);break;case 19:this.Eb=this.b.Fe(a[1]);this.Eb!==X.prototype.Xa.random&&this.Eb!==X.prototype.Xa.Dt||this.Uc.nr();this.Oa=[];this.X=[];3===a.length?(c=a[2],this.Oa.length=c.length+1):this.Oa.length=1;break;case 20:this.oe=this.b.B[a[1]];this.ld=-1;this.Eb=this.b.Fe(a[2]);this.bh=a[3];fc.Function&&this.Eb===fc.Function.prototype.Xa.Ax&&this.Uc.nr();a[4]?this.pd=new ac(d,a[4]):this.pd=null;this.Oa=
[];this.X=[];6===a.length?(c=a[5],this.Oa.length=c.length+1):this.Oa.length=1;break;case 21:this.oe=this.b.B[a[1]];this.bh=a[2];a[3]?this.pd=new ac(d,a[3]):this.pd=null;this.Ur=a[4];break;case 22:this.oe=this.b.B[a[1]];this.oe.dk(a[2]);this.ld=this.oe.pm(a[2]);this.Eb=this.b.Fe(a[3]);this.bh=a[4];a[5]?this.pd=new ac(d,a[5]):this.pd=null;this.Oa=[];this.X=[];7===a.length?(c=a[6],this.Oa.length=c.length+1):this.Oa.length=1;break;case 23:this.aj=a[1],this.Af=null}this.Uc.Zv(this.oe);4<=this.type&&17>=
this.type&&(this.first=new ac(d,a[1]),this.second=new ac(d,a[2]));if(c){var f,e;f=0;for(e=c.length;f<e;f++)this.X.push(new ac(d,c[f]))}}function q(){++t;u.length===t&&u.push(new $b);return u[t]}function k(d,a,c){var f,e;f=0;for(e=d.length;f<e;++f)d[f].get(c),a[f+1]=c.data}function g(d,a){this.type=d||dc.jg;this.data=a||0;this.Yf=null;this.type==dc.jg&&(this.data=Math.floor(this.data))}d.prototype.Ua=function(){23===this.type&&(this.Af=this.Uc.b.up(this.aj,this.Uc.Bc.parent));this.first&&this.first.Ua();
this.second&&this.second.Ua();this.ll&&this.ll.Ua();this.pd&&this.pd.Ua();if(this.X){var d,a;d=0;for(a=this.X.length;d<a;d++)this.X[d].Ua()}};var u=[],t=-1;d.prototype.Nu=function(d){var a=this.X,c=this.Oa;c[0]=d;d=q();k(a,c,d);--t;this.Eb.apply(this.b.Td,c)};d.prototype.Iu=function(d){var a=this.oe,c=this.Oa,f=this.X,e=this.pd,b=this.Eb,l=this.Uc.ue,n=a.ba(),m=n.nc();if(!m.length)if(n.aa.length)m=n.aa;else{this.bh?d.vc(""):d.Ga(0);return}c[0]=d;d.Yf=a;d=q();k(f,c,d);e&&(e.get(d),d.ub()&&(l=d.data,
m=a.j));--t;a=m.length;if(l>=a||l<=-a)l%=a;0>l&&(l+=a);b.apply(m[l],c)};d.prototype.tu=function(d){var a=this.oe,c=this.Oa,f=this.X,e=this.pd,b=this.ld,l=this.Eb,n=this.Uc.ue,m=a.ba(),g=m.nc();if(!g.length)if(m.aa.length)g=m.aa;else{this.bh?d.vc(""):d.Ga(0);return}c[0]=d;d.Yf=a;d=q();k(f,c,d);e&&(e.get(d),d.ub()&&(n=d.data,g=a.j));--t;f=g.length;if(n>=f||n<=-f)n%=f;0>n&&(n+=f);n=g[n];g=0;a.I&&(g=n.type.xg[a.fe]);l.apply(n.P[b+g],c)};d.prototype.Bu=function(d){var a=this.pd,c=this.oe,f=this.Ur,e=this.Uc.ue,
b=c.ba(),l=b.nc();if(!l.length)if(b.aa.length)l=b.aa;else{this.bh?d.vc(""):d.Ga(0);return}if(a){b=q();a.get(b);if(b.ub()){e=b.data;l=c.j;0!==l.length&&(e%=l.length,0>e&&(e+=l.length));e=c.um(e);c=e.ib[f];A(c)?d.vc(c):d.R(c);--t;return}--t}a=l.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=l[e];l=0;c.I&&(l=e.type.Uj[c.fe]);c=e.ib[f+l];A(c)?d.vc(c):d.R(c)};d.prototype.Cu=function(d){d.type=dc.jg;d.data=this.value};d.prototype.yu=function(d){d.type=dc.ig;d.data=this.value};d.prototype.Lu=function(d){d.type=
dc.String;d.data=this.value};d.prototype.Ou=function(d){this.first.get(d);d.ub()&&(d.data=-d.data)};d.prototype.nu=function(d){this.first.get(d);var a=q();this.second.get(a);d.ub()&&a.ub()&&(d.data+=a.data,a.Eg()&&d.Tg());--t};d.prototype.Mu=function(d){this.first.get(d);var a=q();this.second.get(a);d.ub()&&a.ub()&&(d.data-=a.data,a.Eg()&&d.Tg());--t};d.prototype.Gu=function(d){this.first.get(d);var a=q();this.second.get(a);d.ub()&&a.ub()&&(d.data*=a.data,a.Eg()&&d.Tg());--t};d.prototype.vu=function(d){this.first.get(d);
var a=q();this.second.get(a);d.ub()&&a.ub()&&(d.data/=a.data,d.Tg());--t};d.prototype.Fu=function(d){this.first.get(d);var a=q();this.second.get(a);d.ub()&&a.ub()&&(d.data%=a.data,a.Eg()&&d.Tg());--t};d.prototype.Ku=function(d){this.first.get(d);var a=q();this.second.get(a);d.ub()&&a.ub()&&(d.data=Math.pow(d.data,a.data),a.Eg()&&d.Tg());--t};d.prototype.ou=function(d){this.first.get(d);var a=q();this.second.get(a);a.Hg()||d.Hg()?this.qu(d,a):this.pu(d,a);--t};d.prototype.qu=function(d,a){d.Hg()&&
a.Hg()?this.su(d,a):this.ru(d,a)};d.prototype.su=function(d,a){d.data+=a.data};d.prototype.ru=function(d,a){d.Hg()?d.data+=(Math.round(1E10*a.data)/1E10).toString():d.vc(d.data.toString()+a.data)};d.prototype.pu=function(d,a){d.Ga(d.data&&a.data?1:0)};d.prototype.Ju=function(d){this.first.get(d);var a=q();this.second.get(a);d.ub()&&a.ub()&&(d.data||a.data?d.Ga(1):d.Ga(0));--t};d.prototype.uu=function(d){this.first.get(d);d.data?this.second.get(d):this.ll.get(d)};d.prototype.wu=function(d){this.first.get(d);
var a=q();this.second.get(a);d.Ga(d.data===a.data?1:0);--t};d.prototype.Hu=function(d){this.first.get(d);var a=q();this.second.get(a);d.Ga(d.data!==a.data?1:0);--t};d.prototype.Du=function(d){this.first.get(d);var a=q();this.second.get(a);d.Ga(d.data<a.data?1:0);--t};d.prototype.Eu=function(d){this.first.get(d);var a=q();this.second.get(a);d.Ga(d.data<=a.data?1:0);--t};d.prototype.zu=function(d){this.first.get(d);var a=q();this.second.get(a);d.Ga(d.data>a.data?1:0);--t};d.prototype.Au=function(d){this.first.get(d);
var a=q();this.second.get(a);d.Ga(d.data>=a.data?1:0);--t};d.prototype.xu=function(d){var a=this.Af.Lh();ha(a)?d.R(a):d.vc(a)};ac=d;g.prototype.Eg=function(){return this.type===dc.ig};g.prototype.ub=function(){return this.type===dc.jg||this.type===dc.ig};g.prototype.Hg=function(){return this.type===dc.String};g.prototype.Tg=function(){this.Eg()||(this.Hg()&&(this.data=parseFloat(this.data)),this.type=dc.ig)};g.prototype.Ga=function(d){this.type=dc.jg;this.data=Math.floor(d)};g.prototype.R=function(d){this.type=
dc.ig;this.data=d};g.prototype.vc=function(d){this.type=dc.String;this.data=d};g.prototype.Xw=function(d){ha(d)?(this.type=dc.ig,this.data=d):A(d)?(this.type=dc.String,this.data=d.toString()):(this.type=dc.jg,this.data=0)};$b=g;dc={jg:0,ig:1,String:2}})();function X(d){this.b=d;this.yc=[]}
X.prototype.ob=function(){var d={},q,k,g,u,t,p,a,c;d.waits=[];var f=d.waits,e;q=0;for(k=this.yc.length;q<k;q++){p=this.yc[q];e={t:p.time,st:p.Zw,s:p.tr,ev:p.Eh.ea,sm:[],sols:{}};p.Eh.Mc[p.zc]&&(e.act=p.Eh.Mc[p.zc].ea);g=0;for(u=p.Ba.length;g<u;g++)e.sm.push(p.Ba[g].ea);for(t in p.wc)if(p.wc.hasOwnProperty(t)){a=this.b.B[parseInt(t,10)];c={sa:p.wc[t].fr,insts:[]};g=0;for(u=p.wc[t].Jf.length;g<u;g++)c.insts.push(p.wc[t].Jf[g].uid);e.sols[a.ea.toString()]=c}f.push(e)}return d};
X.prototype.Gb=function(d){d=d.waits;var q,k,g,u,t,p,a,c,f,e,b;T(this.yc);q=0;for(k=d.length;q<k;q++)if(p=d[q],c=this.b.Oo[p.ev.toString()]){f=-1;g=0;for(u=c.Mc.length;g<u;g++)if(c.Mc[g].ea===p.act){f=g;break}if(-1!==f){a={wc:{},Ba:[],bp:!1};a.time=p.t;a.Zw=p.st||"";a.tr=!!p.s;a.Eh=c;a.zc=f;g=0;for(u=p.sm.length;g<u;g++)(c=this.b.fk(p.sm[g]))&&a.Ba.push(c);for(t in p.sols)if(p.sols.hasOwnProperty(t)&&(c=this.b.fk(parseInt(t,10)))){f=p.sols[t];e={fr:f.sa,Jf:[]};g=0;for(u=f.insts.length;g<u;g++)(b=
this.b.Ag(f.insts[g]))&&e.Jf.push(b);a.wc[c.index.toString()]=e}this.yc.push(a)}}};
(function(){function d(){}function q(){}function k(){}var g=X.prototype;d.prototype.gs=function(){return!0};d.prototype.Bo=function(){return!0};d.prototype.Ls=function(){return!0};var u=[],t=-1;d.prototype.ks=function(a){var f=a.ba();t++;u.length===t&&u.push([]);var e=u[t];Aa(e,f.nc());var b=this.b.sb(),d=b.Db,n=b.Ov(),b=this.b.Bw(),m,g,p,h,r,k,q=a.fc;if(n)for(n=0,m=e.length;n<m&&!b.yb;n++){this.b.Ei(d.Ba);h=e[n];f=a.ba();f.na=!1;T(f.j);f.j[0]=h;if(q)for(g=0,p=h.siblings.length;g<p;g++)r=h.siblings[g],
k=r.type.ba(),k.na=!1,T(k.j),k.j[0]=r;b.index=n;d.Mn();this.b.jf(d.Ba)}else for(f.na=!1,T(f.j),n=0,m=e.length;n<m&&!b.yb;n++){h=e[n];f.j[0]=h;if(q)for(g=0,p=h.siblings.length;g<p;g++)r=h.siblings[g],k=r.type.ba(),k.na=!1,T(k.j),k.j[0]=r;b.index=n;d.Mn()}T(e);this.b.sw();t--;return!1};d.prototype.ds=function(a,f,e){return ec(a.Lh(),f,e)};d.prototype.uo=function(){var a=this.b.sb();return a.dm?!1:!a.Pf};d.prototype.Co=function(){return!0};d.prototype.Cs=function(){return!0};d.prototype.Cl=function(){return!0};
d.prototype.Fo=function(){return!0};d.prototype.Ms=function(){return!0};d.prototype.mj=function(){return!0};d.prototype.Zr=function(a,f,e){return Oa(W(a),W(e))<=W(f)};d.prototype.us=function(a,f){return Qa(W(a),W(f))};d.prototype.rs=function(a,f,e){a=Ma(a);f=Ma(f);e=Ma(e);return Qa(e,f)?Qa(a,f)&&!Qa(a,e):!(!Qa(a,f)&&Qa(a,e))};g.m=new d;q.prototype.ls=function(a){this.b.Ig||this.b.tf||(this.b.tf=a)};q.prototype.Ys=function(a,f){0===a.ul?ha(f)?a.bg(f):a.bg(parseFloat(f)):1===a.ul&&a.bg(f.toString())};
q.prototype.Yr=function(a,f){0===a.ul?ha(f)?a.bg(a.Lh()+f):a.bg(a.Lh()+parseFloat(f)):1===a.ul&&a.bg(a.Lh()+f.toString())};var p=[],a=[];q.prototype.ns=function(a){if(!this.b.Ig&&!this.b.tf)for(var f in this.b.Qg)if(this.b.Qg.hasOwnProperty(f)&&mb(f,a)){this.b.tf=this.b.Qg[f];break}};g.L=new q;k.prototype["int"]=function(a,f){A(f)?(a.Ga(parseInt(f,10)),isNaN(a.data)&&(a.data=0)):a.Ga(f)};k.prototype["float"]=function(a,f){A(f)?(a.R(parseFloat(f)),isNaN(a.data)&&(a.data=0)):a.R(f)};k.prototype.random=
function(a,f,e){void 0===e?a.R(Math.random()*f):a.R(Math.random()*(e-f)+f)};k.prototype.sqrt=function(a,f){a.R(Math.sqrt(f))};k.prototype.abs=function(a,f){a.R(Math.abs(f))};k.prototype.round=function(a,f){a.Ga(Math.round(f))};k.prototype.floor=function(a,f){a.Ga(Math.floor(f))};k.prototype.ceil=function(a,f){a.Ga(Math.ceil(f))};k.prototype.sin=function(a,f){a.R(Math.sin(W(f)))};k.prototype.cos=function(a,f){a.R(Math.cos(W(f)))};k.prototype.tan=function(a,f){a.R(Math.tan(W(f)))};k.prototype.asin=
function(a,f){a.R(Ga(Math.asin(f)))};k.prototype.acos=function(a,f){a.R(Ga(Math.acos(f)))};k.prototype.atan=function(a,f){a.R(Ga(Math.atan(f)))};k.prototype.exp=function(a,f){a.R(Math.exp(f))};k.prototype.log10=function(a,f){a.R(Math.log(f)/Math.LN10)};k.prototype.max=function(a){var f=arguments[1];"number"!==typeof f&&(f=0);var e,b,d;e=2;for(b=arguments.length;e<b;e++)d=arguments[e],"number"===typeof d&&f<d&&(f=d);a.R(f)};k.prototype.min=function(a){var f=arguments[1];"number"!==typeof f&&(f=0);
var e,b,d;e=2;for(b=arguments.length;e<b;e++)d=arguments[e],"number"===typeof d&&f>d&&(f=d);a.R(f)};k.prototype.wf=function(a){a.R(this.b.wf)};k.prototype.fg=function(a){a.R(this.b.fg)};k.prototype.time=function(a){a.R(this.b.Fb.K)};k.prototype.Vd=function(a){a.Ga(this.b.Vd)};k.prototype.Jk=function(a){a.Ga(this.b.Jk)};k.prototype.lm=function(a){a.Ga(this.b.lm)};k.prototype.p=function(a,f,e,b,d){a.R(Ga(Na(f,e,b,d)))};k.prototype.left=function(a,f,e){a.vc(A(f)?f.substr(0,e):"")};k.prototype.right=
function(a,f,e){a.vc(A(f)?f.substr(f.length-e):"")};k.prototype.replace=function(a,f,e,b){A(f)&&A(e)&&A(b)?a.vc(f.replace(new RegExp(fb(e),"gi"),b)):a.vc(A(f)?f:"")};k.prototype.trim=function(a,f){a.vc(A(f)?f.trim():"")};k.prototype.Dt=function(a){var f=qa(Math.random()*(arguments.length-1));a.Xw(arguments[f+1])};k.prototype.Vl=function(a){a.R(this.b.Vl/1E3)};k.prototype.yk=function(a){a.R(this.b.yk)};g.Xa=new k;g.Kw=function(){var c,f,e,b,d,n,m=this.b.sb();c=0;for(e=this.yc.length;c<e;c++){b=this.yc[c];
if(-1===b.time){if(!b.tr)continue}else if(b.time>this.b.Fb.K)continue;m.Db=b.Eh;m.zc=b.zc;m.eb=0;for(f in b.wc)b.wc.hasOwnProperty(f)&&(d=this.b.B[parseInt(f,10)].ba(),n=b.wc[f],d.na=n.fr,Aa(d.j,n.Jf),d=n,T(d.Jf),a.push(d));b.Eh.Jw();this.b.Tl(b.Ba);b.bp=!0}f=c=0;for(e=this.yc.length;c<e;c++)b=this.yc[c],this.yc[f]=b,b.bp?($a(b.wc),T(b.Ba),p.push(b)):f++;za(this.yc,f)}})();
(function(){qb=function(d,k){var g=d[1],u=d[3],t=d[4],p=d[5],a=d[6],c=d[7],f=d[8];k.m||(k.m={});k.L||(k.L={});k.Xa||(k.Xa={});var e=k.m,b=k.L,l=k.Xa;u&&(e.Ex=function(a,b){return ec(this.x,a,b)},e.Fx=function(a,b){return ec(this.y,a,b)},e.Jx=function(){var a=this.k;this.ua();var b=this.Ha;return!(b.right<a.ra||b.bottom<a.ta||b.left>a.ya||b.top>a.xa)},e.Kx=function(){this.ua();var a=this.Ha,b=this.b.Aa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.Wx=function(a,b,c){var e=this.ba(),
f=e.nc();if(!f.length)return!1;var d=f[0],g=d,l=Sa(d.x,d.y,b,c),u,t,p;u=1;for(t=f.length;u<t;u++)if(d=f[u],p=Sa(d.x,d.y,b,c),0===a&&p<l||1===a&&p>l)l=p,g=d;e.Ai(g);return!0},b.ny=function(a){this.x!==a&&(this.x=a,this.G())},b.oy=function(a){this.y!==a&&(this.y=a,this.G())},b.Ws=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.G()},b.jy=function(a,b){var c=a.gv(this);if(c){var e;c.Ih?(e=c.Ih(b,!0),c=c.Ih(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.G()}},b.Px=
function(a){0!==a&&(this.x+=Math.cos(this.p)*a,this.y+=Math.sin(this.p)*a,this.G())},b.Ox=function(a,b){0!==b&&(this.x+=Math.cos(W(a))*b,this.y+=Math.sin(W(a))*b,this.G())},l.jt=function(a){a.R(this.x)},l.kt=function(a){a.R(this.y)},l.wf=function(a){a.R(this.b.Df(this))});t&&(e.Dx=function(a,b){return ec(this.width,a,b)},e.Bx=function(a,b){return ec(this.height,a,b)},b.Ho=function(a){this.width!==a&&(this.width=a,this.G())},b.hy=function(a){this.height!==a&&(this.height=a,this.G())},b.Xs=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.G()},l.it=function(a){a.R(this.width)},l.os=function(a){a.R(this.height)},l.xx=function(a){this.ua();a.R(this.Ha.left)},l.zx=function(a){this.ua();a.R(this.Ha.top)},l.yx=function(a){this.ua();a.R(this.Ha.right)},l.wx=function(a){this.ua();a.R(this.Ha.bottom)});p&&(e.Zr=function(a,b){return Oa(this.p,W(b))<=W(a)},e.us=function(a){return Qa(this.p,W(a))},e.rs=function(a,b){var c=Ma(a),e=Ma(b),f=Ka(this.p);return Qa(e,c)?Qa(f,c)&&
!Qa(f,e):!(!Qa(f,c)&&Qa(f,e))},b.ey=function(a){a=W(Ha(a));isNaN(a)||this.p===a||(this.p=a,this.G())},b.$x=function(a){0===a||isNaN(a)||(this.p+=W(a),this.p=Ka(this.p),this.G())},b.ay=function(a){0===a||isNaN(a)||(this.p-=W(a),this.p=Ka(this.p),this.G())},b.by=function(a,b){var c=Pa(this.p,W(b),W(a));isNaN(c)||this.p===c||(this.p=c,this.G())},b.cy=function(a,b,c){a=Pa(this.p,Math.atan2(c-this.y,b-this.x),W(a));isNaN(a)||this.p===a||(this.p=a,this.G())},b.ky=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.p===c||(this.p=c,this.G())},l.vx=function(a){a.R(La(this.p))});g||(e.cs=function(a,b,c){return ec(this.ib[a],b,c)},e.ts=function(a){return this.ib[a]},e.Xx=function(a,b){var c=this.ba(),e=c.nc();if(!e.length)return!1;var f=e[0],d=f,g=f.ib[b],l,u,t;l=1;for(u=e.length;l<u;l++)if(f=e[l],t=f.ib[b],0===a&&t<g||1===a&&t>g)g=t,d=f;c.Ai(d);return!0},e.Vx=function(a){var b,c,e,f,d;if(this.b.sp().Nm){d=this.ba();if(d.na)for(d.na=!1,T(d.j),T(d.aa),e=this.j,b=0,c=e.length;b<c;b++)f=e[b],
f.uid===a?d.aa.push(f):d.j.push(f);else{e=b=0;for(c=d.j.length;b<c;b++)f=d.j[b],d.j[e]=f,f.uid===a?d.aa.push(f):e++;za(d.j,e)}this.jd();return!!d.j.length}f=this.b.Ag(a);if(!f)return!1;d=this.ba();if(!d.na&&-1===d.j.indexOf(f))return!1;if(this.I)for(a=f.type.Ja,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.Ai(f),this.jd(),!0}else if(f.type===this)return d.Ai(f),this.jd(),!0;return!1},e.kj=function(){return!0},e.Es=function(){return!0},b.Ts=function(a,b){var c=this.ib;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
A(c[a])&&(c[a]=A(b)?b:b.toString())},b.Xr=function(a,b){var c=this.ib;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):A(c[a])&&(c[a]=A(b)?c[a]+b:c[a]+b.toString())},b.gt=function(a,b){var c=this.ib;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},b.fy=function(a,b){this.ib[a]=b?1:0},b.ht=function(a){this.ib[a]=1-this.ib[a]},b.es=function(){this.b.Ee(this)},b.ys||(b.ys=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.wk(this,b,!0);this.Ed&&this.Ed();if(this.P)for(a=0,b=this.P.length;a<
b;++a)c=this.P[a],c.Ed&&c.Ed()}),l.Gx=function(a){var b=a.Yf.j.length,c,e,f;c=0;for(e=this.b.od.length;c<e;c++)f=this.b.od[c],a.Yf.I?0<=f.type.Ja.indexOf(a.Yf)&&b++:f.type===a.Yf&&b++;a.Ga(b)},l.Zx=function(a){a.Ga(a.Yf.ba().nc().length)},l.qy=function(a){a.Ga(this.uid)},l.Hx=function(a){a.Ga(this.Mh())},l.$r||(l.$r=function(a){a.vc(JSON.stringify(this.b.Qn(this,!0)))}));a&&(e.Lx=function(){return this.visible},b.my=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.da=!0)},e.Cx=function(a,
b){return ec(lb(100*this.opacity),a,b)},b.iy=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.da=!0)},l.Opacity=function(a){a.R(lb(100*this.opacity))});c&&(e.Ix=function(a){return a?this.k===a:!1},e.Yx=function(a){var b=this.ba(),c=b.nc();if(!c.length)return!1;var e=c[0],f=e,d,g;d=1;for(g=c.length;d<g;d++)if(e=c[d],0===a){if(e.k.index>f.k.index||e.k.index===f.k.index&&e.Jd()>f.Jd())f=e}else if(e.k.index<f.k.index||e.k.index===f.k.index&&e.Jd()<f.Jd())f=e;b.Ai(f);return!0},
b.Sx=function(){var a=this.k,b=a.j;b.length&&b[b.length-1]===this||(a.ah(this,!1),a.sh(this,!1),this.b.da=!0)},b.Qx=function(){var a=this.k,b=a.j;b.length&&b[0]===this||(a.ah(this,!1),a.xw(this),this.b.da=!0)},b.Rx=function(a){a&&a!=this.k&&(this.k.ah(this,!0),this.k=a,a.sh(this,!0),this.b.da=!0)},b.ty=function(a,b){var c=0===a;if(b){var e=b.Zu(this);e&&e.uid!==this.uid&&(this.k.index!==e.k.index&&(this.k.ah(this,!0),this.k=e.k,e.k.sh(this,!0)),this.k.$v(this,e,c),this.b.da=!0)}},l.Nx=function(a){a.Ga(this.k.Cq)},
l.Mx=function(a){a.vc(this.k.name)},l.ry=function(a){a.Ga(this.Jd())});f&&(b.gy=function(a,b){if(this.b.q){var c=this.type.tm(b);if(!(0>c)){var e=1===a;this.Ge[c]!==e&&(this.Ge[c]=e,this.Bd(),this.b.da=!0)}}},b.Ss=function(a,b,c){if(this.b.q){var e=this.type.tm(a);0>e||(a=this.type.U[e],e=this.Na[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.q.kv(a.cb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Ac&&(this.b.da=!0))))}})};Kb=function(){this.Pl=this.Kl=!0;this.type.qj=!0;this.b.da=!0;var d,k,g=this.Ll;d=0;for(k=
g.length;d<k;++d)g[d](this);this.k.Lc&&this.ua()};Lb=function(d){d&&this.Ll.push(d)};Nb=function(){if(this.Kl){var d=this.Ha,k=this.Ab;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Qb*this.width,-this.Rb*this.height);this.p?(d.offset(-this.x,-this.y),k.pr(d,this.p),k.offset(this.x,this.y),k.Qo(d)):k.Li(d);d.normalize();this.Kl=!1;this.nx()}};var d=new va(0,0,0,0);Ob=function(){if(this.k.Lc){var q=this.k.Jb,k=this.Ha;d.set(q.$b(k.left),q.ac(k.top),q.$b(k.right),q.ac(k.bottom));
this.hc.Dh(d)||(this.hc.right<this.hc.left?q.update(this,null,d):q.update(this,this.hc,d),this.hc.yh(d),this.k.xd=!0)}};Pb=function(){if(this.Pl&&this.$d){this.ua();var q=this.type.Cj,k=this.Ha;d.set(q.$b(k.left),q.ac(k.top),q.$b(k.right),q.ac(k.bottom));this.Pe.Dh(d)||(this.Pe.right<this.Pe.left?q.update(this,null,d):q.update(this,this.Pe,d),this.Pe.yh(d),this.Pl=!1)}};Mb=function(d,k){return this.Ha.Wb(d,k)&&this.Ab.Wb(d,k)?this.pa&&!this.pa.Dg()?(this.pa.pg(this.width,this.height,this.p),this.pa.Wb(d-
this.x,k-this.y)):!0:!1};Gb=function(){this.type.rl();return this.Hf};Qb=function(){this.k.po();return this.Cd};Rb=function(){T(this.la);var d,k,g,u=!0;d=0;for(k=this.Ge.length;d<k;d++)this.Ge[d]&&(g=this.type.U[d],this.la.push(g),g.Xc||(u=!1));this.Tr=!!this.la.length;this.te=u};Hb=function(){return"Inst"+this.Yq};tb=function(d){if(d&&d.fc&&d.type!=this){var k,g,u;k=0;for(g=d.siblings.length;k<g;k++)if(u=d.siblings[k],u.type==this)return u}d=this.ba().nc();return d.length?d[0]:null};ub=function(d){var k=
this.ba().nc();return k.length?k[d.Mh()%k.length]:null};sb=function(){if(this.gh&&!this.I){var d,k;d=0;for(k=this.j.length;d<k;d++)this.j[d].Hf=d;var g=d,u=this.b.od;d=0;for(k=u.length;d<k;++d)u[d].type===this&&(u[d].Hf=g++);this.gh=!1}};Eb=function(d){if(d<this.j.length)return this.j[d];d-=this.j.length;var k=this.b.od,g,u;g=0;for(u=k.length;g<u;++g)if(k[g].type===this){if(0===d)return k[g];--d}return null};vb=function(){return this.ve[this.Gd]};wb=function(){this.Gd++;this.Gd===this.ve.length?this.ve.push(new rb(this)):
(this.ve[this.Gd].na=!0,T(this.ve[this.Gd].aa))};xb=function(){this.Gd++;this.Gd===this.ve.length&&this.ve.push(new rb(this));var d=this.ve[this.Gd],k=this.ve[this.Gd-1];k.na?(d.na=!0,T(d.aa)):(d.na=!1,Aa(d.j,k.j),Aa(d.aa,k.aa))};yb=function(){this.Gd--};zb=function(d){var k,g,u,t,p,a=0;if(!this.I)for(k=0,g=this.Ja.length;k<g;k++)for(p=this.Ja[k],u=0,t=p.Ma.length;u<t;u++){if(d===p.Ma[u].name)return this.V.lastBehIndex=a,p.Ma[u];a++}k=0;for(g=this.Ma.length;k<g;k++){if(d===this.Ma[k].name)return this.V.lastBehIndex=
a,this.Ma[k];a++}return null};Ab=function(d){return this.dk(d)?this.V.lastBehIndex:-1};Bb=function(d){var k,g;k=0;for(g=this.U.length;k<g;k++)if(this.U[k].name===d)return k;return-1};Db=function(){if(this.fc&&!this.I){var d,k,g,u,t,p,a;this.rl();p=this.ba();var c=p.na,f=(d=this.b.sb())&&d.Db&&d.Db.Tc;d=0;for(k=this.lc.length;d<k;d++)if(t=this.lc[d],t!==this&&(t.rl(),a=t.ba(),a.na=c,!c)){T(a.j);g=0;for(u=p.j.length;g<u;++g)a.j[g]=t.um(p.j[g].Hf);if(f)for(T(a.aa),g=0,u=p.aa.length;g<u;++g)a.aa[g]=t.um(p.aa[g].Hf)}}};
Fb=function(){return"Type"+this.ea};ec=function(d,k,g){if("undefined"===typeof d||"undefined"===typeof g)return!1;switch(k){case 0:return d===g;case 1:return d!==g;case 2:return d<g;case 3:return d<=g;case 4:return d>g;case 5:return d>=g;default:return!1}}})();
var nc={brightness:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float brightness;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= front.a;\nfront.rgb += (brightness - 1.0);\nfront.rgb *= a;\ngl_FragColor = front;\n}",Qj:0,Rj:0,Xl:!1,Xc:!0,Il:!1,X:[["brightness",0,1]]}};function qc(d){this.b=d}
(function(){function d(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return Y.hasOwnProperty(a)&&Y[a].length?Y[a][0].Ec():w.destination}function k(){return w.createGain?w.createGain():w.createGainNode()}function g(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function u(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function t(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||0,b,c-b)}function p(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function a(a,b,c,e,f,d){this.type="filter";this.ud=[a,b,c,e,f,d];this.fa=k();this.T=k();this.T.gain.value=d;this.S=k();this.S.gain.value=1-d;this.Ya=w.createBiquadFilter();this.Ya.type="number"===typeof this.Ya.type?a:Fc[a];this.Ya.frequency.value=b;this.Ya.detune&&(this.Ya.detune.value=c);this.Ya.Q.value=e;this.Ya.gain.value=f;this.fa.connect(this.Ya);this.fa.connect(this.S);this.Ya.connect(this.T)}function c(a,b,c){this.type="delay";this.ud=[a,b,c];this.fa=k();this.T=k();this.T.gain.value=c;this.S=
k();this.S.gain.value=1-c;this.ri=k();this.Pc=g(a);this.Pc.delayTime.value=a;this.Kj=k();this.Kj.gain.value=b;this.fa.connect(this.ri);this.fa.connect(this.S);this.ri.connect(this.T);this.ri.connect(this.Pc);this.Pc.connect(this.Kj);this.Kj.connect(this.ri)}function f(a,b,c,e){this.type="convolve";this.ud=[b,c,e];this.fa=k();this.T=k();this.T.gain.value=c;this.S=k();this.S.gain.value=1-c;this.uf=w.createConvolver();a&&(this.uf.normalize=b,this.uf.buffer=a);this.fa.connect(this.uf);this.fa.connect(this.S);
this.uf.connect(this.T)}function e(a,b,c,e,f){this.type="flanger";this.ud=[a,b,c,e,f];this.fa=k();this.S=k();this.S.gain.value=1-f/2;this.T=k();this.T.gain.value=f/2;this.Vj=k();this.Vj.gain.value=e;this.Pc=g(a+b);this.Pc.delayTime.value=a;this.xb=w.createOscillator();this.xb.frequency.value=c;this.tc=k();this.tc.gain.value=b;this.fa.connect(this.Pc);this.fa.connect(this.S);this.Pc.connect(this.T);this.Pc.connect(this.Vj);this.Vj.connect(this.Pc);this.xb.connect(this.tc);this.tc.connect(this.Pc.delayTime);
u(this.xb)}function b(a,b,c,e,f,d){this.type="phaser";this.ud=[a,b,c,e,f,d];this.fa=k();this.S=k();this.S.gain.value=1-d/2;this.T=k();this.T.gain.value=d/2;this.Ya=w.createBiquadFilter();this.Ya.type="number"===typeof this.Ya.type?7:"allpass";this.Ya.frequency.value=a;this.Ya.detune&&(this.Ya.detune.value=b);this.Ya.Q.value=c;this.xb=w.createOscillator();this.xb.frequency.value=f;this.tc=k();this.tc.gain.value=e;this.fa.connect(this.Ya);this.fa.connect(this.S);this.Ya.connect(this.T);this.xb.connect(this.tc);
this.tc.connect(this.Ya.frequency);u(this.xb)}function l(a){this.type="gain";this.ud=[a];this.ka=k();this.ka.gain.value=a}function n(a,b){this.type="tremolo";this.ud=[a,b];this.ka=k();this.ka.gain.value=1-b/2;this.xb=w.createOscillator();this.xb.frequency.value=a;this.tc=k();this.tc.gain.value=b/2;this.xb.connect(this.tc);this.tc.connect(this.ka.gain);u(this.xb)}function m(a,b){this.type="ringmod";this.ud=[a,b];this.fa=k();this.T=k();this.T.gain.value=b;this.S=k();this.S.gain.value=1-b;this.Ii=k();
this.Ii.gain.value=0;this.xb=w.createOscillator();this.xb.frequency.value=a;this.xb.connect(this.Ii.gain);u(this.xb);this.fa.connect(this.Ii);this.fa.connect(this.S);this.Ii.connect(this.T)}function S(a,b,c,e,f){this.type="distortion";this.ud=[a,b,c,e,f];this.fa=k();this.Rk=k();this.Qk=k();this.Rw(c,Math.pow(10,e/20));this.T=k();this.T.gain.value=f;this.S=k();this.S.gain.value=1-f;this.yl=w.createWaveShaper();this.Ij=new Float32Array(65536);this.Uu(a,b);this.yl.Ij=this.Ij;this.fa.connect(this.Rk);
this.fa.connect(this.S);this.Rk.connect(this.yl);this.yl.connect(this.Qk);this.Qk.connect(this.T)}function z(a,b,c,e,f){this.type="compressor";this.ud=[a,b,c,e,f];this.ka=w.createDynamicsCompressor();try{this.ka.threshold.value=a,this.ka.knee.value=b,this.ka.ratio.value=c,this.ka.attack.value=e,this.ka.release.value=f}catch(d){}}function h(a,b){this.type="analyser";this.ud=[a,b];this.ka=w.createAnalyser();this.ka.fftSize=a;this.ka.smoothingTimeConstant=b;this.Su=new Float32Array(this.ka.frequencyBinCount);
this.sr=new Uint8Array(a);this.yi=0}function r(){this.qa=null;this.xk=0}function Q(a,b){this.src=a;this.ca=H;this.Rc=b;this.pj=!1;var c=this;this.nn=this.xn=null;this.Zg=[];this.$k=0;this.so=this.Tj=this.Br=this.Mk=!1;1===H&&b&&!Va&&(this.ca=0,this.xn=k());this.Yd=this.ma=null;var e;switch(this.ca){case 0:this.ma=new Audio;this.ma.crossOrigin="anonymous";this.ma.addEventListener("canplaythrough",function(){c.so=!0});1===H&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Br=!0,
this.ma.addEventListener("canplay",function(){c.nn||(c.nn=w.createMediaElementSource(c.ma),c.nn.connect(c.xn))}));this.ma.autoplay=!1;this.ma.Ay="auto";this.ma.src=a;break;case 1:B.$h?B.jp(a,function(a){c.Yd=a;c.$o()},function(){c.Tj=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.Yd=e.response;c.$o()},e.onerror=function(){c.Tj=!0},e.send());break;case 2:this.ma=!0;break;case 3:this.ma=!0}}function y(a,b){var c=this;this.tag=b;this.yb=this.Id=!0;this.src=
a.src;this.buffer=a;this.ca=H;this.Rc=a.Rc;this.playbackRate=1;this.Bg=!0;this.qc=this.Jc=!1;this.ic=0;this.bi=this.Fg=this.Ld=!1;this.volume=1;this.vn=function(a){if(!c.qc&&!c.Jc){var b=this;b||(b=a.target);b===c.oj&&(c.Bg=!0,c.yb=!0,G=c.tag,B.trigger(qc.prototype.m.lj,N))}};this.oj=null;this.Cg=1===L&&!this.Rc||2===L;this.Vg=1;this.startTime=this.Cg?B.Fb.K:B.Ce.K;this.ab=this.gb=null;this.Nd=!1;this.Hb=null;this.Mq=this.Lq=this.Kq=this.Jq=this.Oq=this.Nq=0;this.n=null;var e=!1;1!==this.ca||0!==
this.buffer.ca||this.buffer.Br||(this.ca=0);switch(this.ca){case 0:this.Rc?(this.n=a.ma,e=!a.pj,a.pj=!0):(this.n=new Audio,this.n.crossOrigin="anonymous",this.n.autoplay=!1,this.n.src=a.ma.src,e=!0);e&&this.n.addEventListener("ended",function(){G=c.tag;c.yb=!0;B.trigger(qc.prototype.m.lj,N)});break;case 1:this.gb=k();this.gb.connect(q(b));1===this.buffer.ca?a.ma&&(this.n=w.createBufferSource(),this.n.buffer=a.ma,this.n.connect(this.gb)):(this.n=this.buffer.ma,this.buffer.xn.connect(this.gb),this.buffer.pj||
(this.buffer.pj=!0,this.buffer.ma.addEventListener("ended",function(){G=c.tag;c.yb=!0;B.trigger(qc.prototype.m.lj,N)})));break;case 2:this.n=new window.Media(P+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Bg=!0,c.yb=!0,G=c.tag,B.trigger(qc.prototype.m.lj,N))});break;case 3:this.n=!0}}function K(a){T(Ca);if(a.length){var b,c,e;b=0;for(c=x.length;b<c;b++)e=x[b],mb(a,e.tag)&&Ca.push(e)}else v&&!v.Gf()&&(T(Ca),Ca[0]=v)}function E(a,b){Y.hasOwnProperty(a)?Y[a].push(b):Y[a]=[b];var c,
e,f,d,h=w.destination;if(Y.hasOwnProperty(a)&&(f=Y[a],f.length))for(h=f[0].Ec(),c=0,e=f.length;c<e;c++)d=f[c],c+1===e?d.Nc(w.destination):d.Nc(f[c+1].Ec());K(a);c=0;for(e=Ca.length;c<e;c++)Ca[c].Cw(h);Ja&&Cb===a&&(Ja.disconnect(),Ja.connect(h))}function R(){}function C(){}var F=qc.prototype;F.ja=function(a){this.za=a;this.b=a.b};F.ja.prototype.O=function(){};var B=null,N=null,G="",P="",H=0,w=null,D=[],x=[],v=null,I=!1,L=0,O=!1,J=1,M=0,U=0,sa=!1,V=1,ta=1,ka=10,Ia=1E4,zc=1,Ja=null,Cb="",Ua=!1,Wa=[],
Va=!1,Y={},Fc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.Nc=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};a.prototype.remove=function(){this.fa.disconnect();this.Ya.disconnect();this.T.disconnect();this.S.disconnect()};a.prototype.Ec=function(){return this.fa};c.prototype.Nc=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};c.prototype.remove=function(){this.fa.disconnect();
this.ri.disconnect();this.Pc.disconnect();this.Kj.disconnect();this.T.disconnect();this.S.disconnect()};c.prototype.Ec=function(){return this.fa};f.prototype.Nc=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};f.prototype.remove=function(){this.fa.disconnect();this.uf.disconnect();this.T.disconnect();this.S.disconnect()};f.prototype.Ec=function(){return this.fa};e.prototype.Nc=function(a){this.S.disconnect();this.S.connect(a);this.T.disconnect();this.T.connect(a)};
e.prototype.remove=function(){this.fa.disconnect();this.Pc.disconnect();this.xb.disconnect();this.tc.disconnect();this.S.disconnect();this.T.disconnect();this.Vj.disconnect()};e.prototype.Ec=function(){return this.fa};b.prototype.Nc=function(a){this.S.disconnect();this.S.connect(a);this.T.disconnect();this.T.connect(a)};b.prototype.remove=function(){this.fa.disconnect();this.Ya.disconnect();this.xb.disconnect();this.tc.disconnect();this.S.disconnect();this.T.disconnect()};b.prototype.Ec=function(){return this.fa};
l.prototype.Nc=function(a){this.ka.disconnect();this.ka.connect(a)};l.prototype.remove=function(){this.ka.disconnect()};l.prototype.Ec=function(){return this.ka};n.prototype.Nc=function(a){this.ka.disconnect();this.ka.connect(a)};n.prototype.remove=function(){this.xb.disconnect();this.tc.disconnect();this.ka.disconnect()};n.prototype.Ec=function(){return this.ka};m.prototype.Nc=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};m.prototype.remove=function(){this.xb.disconnect();
this.Ii.disconnect();this.fa.disconnect();this.T.disconnect();this.S.disconnect()};m.prototype.Ec=function(){return this.fa};S.prototype.Rw=function(a,b){.01>a&&(a=.01);this.Rk.gain.value=a;this.Qk.gain.value=Math.pow(1/a,.6)*b};S.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};S.prototype.Uu=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),f=0,d=0;32768>d;++d)f=d/32768,f=this.shape(f,c,e),this.Ij[32768+d]=f,this.Ij[32768-
d-1]=-f};S.prototype.Nc=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};S.prototype.remove=function(){this.fa.disconnect();this.Rk.disconnect();this.yl.disconnect();this.Qk.disconnect();this.T.disconnect();this.S.disconnect()};S.prototype.Ec=function(){return this.fa};z.prototype.Nc=function(a){this.ka.disconnect();this.ka.connect(a)};z.prototype.remove=function(){this.ka.disconnect()};z.prototype.Ec=function(){return this.ka};h.prototype.La=function(){this.ka.getFloatFrequencyData(this.Su);
this.ka.getByteTimeDomainData(this.sr);for(var a=this.ka.fftSize,b=0,c=this.yi=0,e=0;b<a;b++)e=(this.sr[b]-128)/128,0>e&&(e=-e),this.yi<e&&(this.yi=e),c+=e*e;this.yi=d(this.yi);d(Math.sqrt(c/a))};h.prototype.Nc=function(a){this.ka.disconnect();this.ka.connect(a)};h.prototype.remove=function(){this.ka.disconnect()};h.prototype.Ec=function(){return this.ka};r.prototype.Ji=function(a){this.qa=a};r.prototype.hk=function(){return!!this.qa};r.prototype.La=function(){};var nb=!1;Q.prototype.Dw=function(){var a,
b,c,e;c=a=0;for(b=x.length;a<b;++a)e=x[a],x[c]=e,e.buffer===this?e.stop():++c;x.length=c;this.Yd=this.ma=null};Q.prototype.$o=function(){if(!this.ma&&this.Yd){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Yd,function(b){a.ma=b;a.Yd=null;var c,e,f;if(ga(a.Nk)||O)ga(a.Ej)||(c=a.Ej.uf,c.normalize=a.Bq,c.buffer=b);else if(a.Zg.length){c=0;for(e=a.Zg.length;c<e;c++){b=a.Zg[c];f=new y(a,b.Er);f.Wn(!0);if("undefined"!==typeof b.Dq&&(b.qa=B.Ag(b.Dq),!b.qa))continue;if(b.qa){var d=Ra(b.qa.x,b.qa.y,
-b.qa.k.hb(),M,U,!0),h=Ra(b.qa.x,b.qa.y,-b.qa.k.hb(),M,U,!1);f.Vn(d,h,Ga(b.qa.p-b.qa.k.hb()),b.Fm,b.pn,b.rn);f.Ji(b.qa)}else f.Vn(b.x,b.y,b.lt,b.Fm,b.pn,b.rn);f.play(a.jn,a.ro,a.$k);a.Mk&&f.pause();x.push(f)}T(a.Zg)}else f=new y(a,a.Nk||""),f.play(a.jn,a.ro,a.$k),a.Mk&&f.pause(),x.push(f)},function(){a.Tj=!0});else if(this.ma=w.createBuffer(this.Yd,!1),this.Yd=null,ga(this.Nk)||O)ga(this.Ej)||(b=this.Ej.uf,b.normalize=this.Bq,b.buffer=this.ma);else{var b=new y(this,this.Nk);b.play(this.jn,this.ro,
this.$k);this.Mk&&b.pause();x.push(b)}}};Q.prototype.Lp=function(){switch(this.ca){case 0:var a=4<=this.ma.readyState;a&&(this.so=!0);return a||this.so;case 1:return!!this.Yd||!!this.ma;case 2:return!0;case 3:return!0}return!1};Q.prototype.Nv=function(){switch(this.ca){case 0:return this.Lp();case 1:return!!this.ma;case 2:return!0;case 3:return!0}return!1};Q.prototype.Cv=function(){switch(this.ca){case 0:return!!this.ma.error;case 1:return this.Tj}return!1};y.prototype.Gf=function(){switch(this.ca){case 0:return this.n.ended;
case 1:return 1===this.buffer.ca?!this.Id&&!this.yb&&this.n.loop||this.qc?!1:this.Bg:this.n.ended;case 2:return this.Bg;case 3:!0}return!0};y.prototype.Bt=function(){return this.Id||this.yb?!0:this.Gf()};y.prototype.Wn=function(a){1===H&&(!this.Nd&&a?this.gb&&(this.ab||(this.ab=w.createPanner(),this.ab.panningModel="number"===typeof this.ab.panningModel?V:["equalpower","HRTF","soundfield"][V],this.ab.distanceModel="number"===typeof this.ab.distanceModel?ta:["linear","inverse","exponential"][ta],this.ab.refDistance=
ka,this.ab.maxDistance=Ia,this.ab.rolloffFactor=zc),this.gb.disconnect(),this.gb.connect(this.ab),this.ab.connect(q(this.tag)),this.Nd=!0):this.Nd&&!a&&this.gb&&(this.ab.disconnect(),this.gb.disconnect(),this.gb.connect(q(this.tag)),this.Nd=!1))};y.prototype.Vn=function(a,b,c,e,f,d){this.Nd&&1===H&&(this.ab.setPosition(a,b,0),this.ab.setOrientation(Math.cos(W(c)),Math.sin(W(c)),0),this.ab.coneInnerAngle=e,this.ab.coneOuterAngle=f,this.ab.coneOuterGain=d,this.Nq=a,this.Oq=b,this.Jq=c,this.Kq=e,this.Lq=
f,this.Mq=d)};y.prototype.Ji=function(a){this.Nd&&1===H&&(this.Hb||(this.Hb=new r),this.Hb.Ji(a))};y.prototype.La=function(a){if(this.Nd&&1===H&&this.Hb&&this.Hb.hk()&&this.Yh()){this.Hb.La(a);a=this.Hb.qa;var b=Ra(a.x,a.y,-a.k.hb(),M,U,!0),c=Ra(a.x,a.y,-a.k.hb(),M,U,!1);this.ab.setPosition(b,c,0);b=0;"undefined"!==typeof this.Hb.qa.p&&(b=a.p-a.k.hb(),this.ab.setOrientation(Math.cos(b),Math.sin(b),0))}};y.prototype.play=function(a,b,c,e){var f=this.n;this.Ld=a;this.volume=b;c=c||0;e=e||0;switch(this.ca){case 0:1!==
f.playbackRate&&(f.playbackRate=1);f.volume!==b*J&&(f.volume=b*J);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==c)try{f.currentTime=c}catch(d){}if(this.Rc&&Ua&&!B.pc)Wa.push(this);else try{this.n.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.Vg=1;if(1===this.buffer.ca)this.gb.gain.value=b*J,this.Id||(this.n=w.createBufferSource(),this.n.buffer=this.buffer.ma,this.n.connect(this.gb)),
this.n.onended=this.vn,this.oj=this.n,this.n.loop=a,this.Bg=!1,0===c?u(this.n,e):t(this.n,c,this.Ef(),e);else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*J;if(f.currentTime!==c)try{f.currentTime=c}catch(g){}this.Rc&&Ua&&!B.pc?Wa.push(this):f.play()}break;case 2:(!this.Id&&this.yb||0!==c)&&f.seekTo(c);f.play();this.Bg=!1;break;case 3:B.ec?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Cg?B.Fb.K:B.Ce.K)-
c;this.qc=this.yb=this.Id=!1};y.prototype.stop=function(){switch(this.ca){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.ca?p(this.n):this.n.paused||this.n.pause();break;case 2:this.n.stop();break;case 3:B.ec&&AppMobi.context.stopSound(this.src)}this.yb=!0;this.qc=!1};y.prototype.pause=function(){if(!(this.Id||this.yb||this.Gf()||this.qc)){switch(this.ca){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.ca?(this.ic=this.wm(!0),this.Ld&&(this.ic=this.ic%this.Ef()),
this.qc=!0,p(this.n)):this.n.paused||this.n.pause();break;case 2:this.n.pause();break;case 3:B.ec&&AppMobi.context.stopSound(this.src)}this.qc=!0}};y.prototype.Iw=function(){if(!(this.Id||this.yb||this.Gf())&&this.qc){switch(this.ca){case 0:this.n.play();break;case 1:1===this.buffer.ca?(this.n=w.createBufferSource(),this.n.buffer=this.buffer.ma,this.n.connect(this.gb),this.n.onended=this.vn,this.oj=this.n,this.n.loop=this.Ld,this.gb.gain.value=J*this.volume*this.Vg,this.sl(),this.startTime=(this.Cg?
B.Fb.K:B.Ce.K)-this.ic/(this.playbackRate||.001),t(this.n,this.ic,this.Ef())):this.n.play();break;case 2:this.n.play();break;case 3:B.ec&&AppMobi.context.resumeSound(this.src)}this.qc=!1}};y.prototype.seek=function(a){if(!(this.Id||this.yb||this.Gf()))switch(this.ca){case 0:try{this.n.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ca)this.qc?this.ic=a:(this.pause(),this.ic=a,this.Iw());else try{this.n.currentTime=a}catch(c){}break;case 3:B.ec&&AppMobi.context.seekSound(this.src,a)}};y.prototype.Cw=
function(a){1===this.ca&&(this.Nd?(this.ab.disconnect(),this.ab.connect(a)):(this.gb.disconnect(),this.gb.connect(a)))};y.prototype.Ef=function(){var a=0;switch(this.ca){case 0:"undefined"!==typeof this.n.duration&&(a=this.n.duration);break;case 1:a=this.buffer.ma.duration;break;case 2:a=this.n.getDuration();break;case 3:B.ec&&(a=AppMobi.context.getDurationSound(this.src))}return a};y.prototype.wm=function(a){var b=this.Ef(),c=0;switch(this.ca){case 0:"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);
break;case 1:if(1===this.buffer.ca){if(this.qc)return this.ic;c=(this.Cg?B.Fb.K:B.Ce.K)-this.startTime}else"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 3:B.ec&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Ld&&c>b&&(c=b);return c};y.prototype.Yh=function(){return!this.qc&&!this.Id&&!this.yb&&!this.Gf()};y.prototype.Yw=function(){return!this.Id&&!this.yb&&!this.Gf()};y.prototype.kx=function(){var a=this.volume*J;isFinite(a)||(a=0);
switch(this.ca){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.ca?this.gb.gain.value=a*this.Vg:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};y.prototype.Nj=function(a){switch(this.ca){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.ca?(this.Vg=a?0:1,this.gb.gain.value=J*this.volume*this.Vg):this.n.muted!==!!a&&(this.n.muted=!!a)}};y.prototype.Tw=function(){this.Fg=!0;this.Nj(this.Fg||
this.bi)};y.prototype.mr=function(a){this.bi=!!a;this.Nj(this.Fg||this.bi)};y.prototype.sl=function(){var a=this.playbackRate;this.Cg&&(a*=B.fg);switch(this.ca){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.ca?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};y.prototype.Vw=function(a){switch(this.ca){case 0:a?this.Yh()?(this.Jc=!0,this.n.pause()):this.Jc=!1:this.Jc&&(this.n.play(),this.Jc=!1);break;
case 1:a?this.Yh()?(this.Jc=!0,1===this.buffer.ca?(this.ic=this.wm(!0),this.Ld&&(this.ic=this.ic%this.Ef()),p(this.n)):this.n.pause()):this.Jc=!1:this.Jc&&(1===this.buffer.ca?(this.n=w.createBufferSource(),this.n.buffer=this.buffer.ma,this.n.connect(this.gb),this.n.onended=this.vn,this.oj=this.n,this.n.loop=this.Ld,this.gb.gain.value=J*this.volume*this.Vg,this.sl(),this.startTime=(this.Cg?B.Fb.K:B.Ce.K)-this.ic/(this.playbackRate||.001),t(this.n,this.ic,this.Ef())):this.n.play(),this.Jc=!1);break;
case 2:a?this.Yh()?(this.n.pause(),this.Jc=!0):this.Jc=!1:this.Jc&&(this.Jc=!1,this.n.play())}};F.Z=function(a){function b(){if(!sa&&w.createBuffer){var a=w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);u(c)}}this.type=a;B=this.b=a.b;N=this;this.rc=null;this.ji=-600;this.b.$h&&(Va=!0);!(this.b.di||this.b.ik&&(this.b.Th||this.b.jk))||this.b.lk||this.b.tb||this.b.Jp||Va||(Ua=!0);w=null;"undefined"!==typeof AudioContext?(H=1,w=new AudioContext):"undefined"!==
typeof webkitAudioContext&&(H=1,w=new webkitAudioContext);this.b.di&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));Ua?document.addEventListener("touchend",function(){!nb&&w&&(b(),nb=!0);var a,c,e;if(Ua){if(!O)for(a=0,c=Wa.length;a<c;++a)e=Wa[a],e.yb||e.qc||e.n.play();T(Wa)}},!0):Va&&document.addEventListener("touchend",function(){!nb&&w&&(b(),nb=!0)},!0);1!==H&&(this.b.ie&&"undefined"!==typeof window.Media?
H=2:this.b.Kp&&(H=3));2===H&&(P=location.href,a=P.lastIndexOf("/"),-1<a&&(P=P.substr(0,a+1)),P=P.replace("file://",""));if(this.b.Pv&&this.b.Rv&&"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.Ee(this);else{if(this.b.ec)I=this.b.ik;else try{I=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){I=!1}this.b.ml(this)}};var oa=F.Z.prototype;oa.O=function(){this.b.mg=this;L=this.u[0];
this.qe=this.u[1];this.qw=0!==this.u[2];this.zq=0;V=this.u[3];ta=this.u[4];this.ji=-this.u[5];ka=this.u[6];Ia=this.u[7];zc=this.u[8];this.rc=new r;var a=this.b.N||this.b.width,b=this.b.M||this.b.height;1===H&&(w.listener.setPosition(a/2,b/2,this.ji),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ja&&Ja.disconnect();Cb=b.toLowerCase();Ja=w.createMediaStreamSource(a);Ja.connect(q(Cb))});this.b.nt(function(a){N.jw(a)});var c=this;this.b.Gl(function(a){c.sn(a)})};oa.sn=
function(a){var b,c,e;b=0;for(c=x.length;b<c;b++)e=x[b],e.Hb&&e.Hb.qa===a&&(e.Hb.qa=null,e.Nd&&e.Yh()&&e.Ld&&e.stop());this.rc.qa===a&&(this.rc.qa=null)};oa.ob=function(){var a={silent:O,masterVolume:J,listenerZ:this.ji,listenerUid:this.rc.hk()?this.rc.qa.uid:-1,playing:[],effects:{}},b=a.playing,c,e,f,d,h,g;c=0;for(e=x.length;c<e;c++)f=x[c],!f.Yw()||3===this.qe||f.Rc&&1===this.qe||!f.Rc&&2===this.qe||(d=f.wm(),f.Ld&&(d=d%f.Ef()),d={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Rc,playbackTime:d,volume:f.volume,
looping:f.Ld,muted:f.Fg,playbackRate:f.playbackRate,paused:f.qc,resume_position:f.ic},f.Nd&&(d.pan={},g=d.pan,f.Hb&&f.Hb.hk()?g.objUid=f.Hb.qa.uid:(g.x=f.Nq,g.y=f.Oq,g.a=f.Jq),g.ia=f.Kq,g.oa=f.Lq,g.og=f.Mq),b.push(d));b=a.effects;for(h in Y)if(Y.hasOwnProperty(h)){f=[];c=0;for(e=Y[h].length;c<e;c++)f.push({type:Y[h][c].type,params:Y[h][c].ud});b[h]=f}return a};var Xa=[];oa.Gb=function(d){var g=d.silent;J=d.masterVolume;this.ji=d.listenerZ;this.rc.Ji(null);var u=d.listenerUid;-1!==u&&(this.rc.xk=u,
Xa.push(this.rc));var u=d.playing,t,p,k,q,y,Q,K,C,w,v,B;if(3!==this.qe)for(t=0,p=x.length;t<p;t++)w=x[t],w.Rc&&1===this.qe||(w.Rc||2!==this.qe)&&w.stop();for(y in Y)if(Y.hasOwnProperty(y))for(t=0,p=Y[y].length;t<p;t++)Y[y][t].remove();$a(Y);for(y in d.effects)if(d.effects.hasOwnProperty(y))for(Q=d.effects[y],t=0,p=Q.length;t<p;t++)switch(k=Q[t].type,v=Q[t].params,k){case "filter":E(y,new a(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":E(y,new c(v[0],v[1],v[2]));break;case "convolve":k=v[2];w=
this.ck(k,!1);w.ma?k=new f(w.ma,v[0],v[1],k):(k=new f(null,v[0],v[1],k),w.Bq=v[0],w.Ej=k);E(y,k);break;case "flanger":E(y,new e(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":E(y,new b(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":E(y,new l(v[0]));break;case "tremolo":E(y,new n(v[0],v[1]));break;case "ringmod":E(y,new m(v[0],v[1]));break;case "distortion":E(y,new S(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":E(y,new z(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":E(y,new h(v[0],v[1]))}t=
0;for(p=u.length;t<p;t++)3===this.qe||(d=u[t],k=d.buffersrc,q=d.is_music,y=d.tag,Q=d.playbackTime,K=d.looping,C=d.volume,B=(v=d.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,q&&1===this.qe)||!q&&2===this.qe||((w=this.qp(k,y,q,K,C))?(w.ic=d.resume_position,w.Wn(!!v),w.play(K,C,Q),w.sl(),w.kx(),w.Nj(w.Fg||w.bi),d.paused&&w.pause(),d.muted&&w.Tw(),w.Nj(w.Fg||w.bi),v&&(-1!==B?(w.Hb=w.Hb||new r,w.Hb.xk=B,Xa.push(w.Hb)):w.Vn(v.x,v.y,v.a,v.ia,v.oa,v.og))):(w=this.ck(k,q),w.$k=Q,w.Mk=d.paused,v&&(-1!==B?w.Zg.push({Dq:B,
Fm:v.ia,pn:v.oa,rn:v.og,Er:y}):w.Zg.push({x:v.x,y:v.y,lt:v.a,Fm:v.ia,pn:v.oa,rn:v.og,Er:y}))));if(g&&!O){t=0;for(p=x.length;t<p;t++)x[t].mr(!0);O=!0}else if(!g&&O){t=0;for(p=x.length;t<p;t++)x[t].mr(!1);O=!1}};oa.Ed=function(){var a,b,c,e;a=0;for(b=Xa.length;a<b;a++)c=Xa[a],e=this.b.Ag(c.xk),c.Ji(e),c.xk=-1,e&&(M=e.x,U=e.y);T(Xa)};oa.jw=function(a){if(!this.qw){!a&&w&&w.resume&&(w.resume(),sa=!1);var b,c;b=0;for(c=x.length;b<c;b++)x[b].Vw(a);a&&w&&w.suspend&&(w.suspend(),sa=!0)}};oa.La=function(){var a=
this.b.wf,b,c,e;b=0;for(c=x.length;b<c;b++)e=x[b],e.La(a),0!==L&&e.sl();var f,d;for(f in Y)if(Y.hasOwnProperty(f))for(e=Y[f],b=0,c=e.length;b<c;b++)d=e[b],d.La&&d.La();1===H&&this.rc.hk()&&(this.rc.La(a),M=this.rc.qa.x,U=this.rc.qa.y,w.listener.setPosition(this.rc.qa.x,this.rc.qa.y,this.ji))};var Ya=[];oa.Uw=function(a){var b,c,e,f,d,h=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],f=e[0],e=2*e[1],(d=4<f.length&&".ogg"===f.substr(f.length-4))&&I||!d&&!I)Ya.push({filename:f,size:e,qa:null}),h+=e;return h};
oa.ax=function(){var a,b,c,e;a=0;for(b=Ya.length;a<b;++a)c=Ya[a],e=this.b.im+c.filename,c.qa=this.ck(e,!1)};oa.hv=function(){var a=0,b,c,e;b=0;for(c=Ya.length;b<c;++b)e=Ya[b],e.qa.Nv()||e.qa.Cv()||this.b.tb||this.b.jk?a+=e.size:e.qa.Lp()&&(a+=Math.floor(e.size/2));return a};oa.Ew=function(){var a,b,c,e;c=a=0;for(b=D.length;a<b;++a)e=D[a],D[c]=e,e.Rc?e.Dw():++c;D.length=c};oa.ck=function(a,b){var c,e,f,d=null;c=0;for(e=D.length;c<e;c++)if(f=D[c],f.src===a){d=f;break}d||(Va&&b&&this.Ew(),d=new Q(a,
b),D.push(d));return d};oa.qp=function(a,b,c,e,f){var d,h,g;d=0;for(h=x.length;d<h;d++)if(g=x[d],g.src===a&&(g.Bt()||c))return g.tag=b,g;a=this.ck(a,c);if(!a.ma)return"<preload>"!==b&&(a.Nk=b,a.jn=e,a.ro=f),null;g=new y(a,b);x.push(g);return g};var Ca=[];R.prototype.lj=function(a){return mb(G,a)};F.m=new R;C.prototype.Play=function(a,b,c,e){!O&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),v=this.qp(this.b.im+a[0]+(I?".ogg":".m4a"),e,a[1],0!==b,c))&&(v.Wn(!1),v.play(0!==b,c,0,this.zq),
this.zq=0)};C.prototype.dt=function(a){K(a);var b;a=0;for(b=Ca.length;a<b;a++)Ca[a].stop()};F.L=new C;F.Xa=new function(){}})();function rc(d){this.b=d}
(function(){function d(){}var q=rc.prototype;q.ja=function(d){this.za=d;this.b=d.b};q.ja.prototype.O=function(){};q.Z=function(d){this.type=d;this.b=d.b;this.Lg=Array(256);this.Zi=Array(256);this.ye=0};var k=q.Z.prototype;k.O=function(){var d=this;this.b.tb||(jQuery(document).keydown(function(g){d.tn(g)}),jQuery(document).keyup(function(g){d.un(g)}))};var g=[32,33,34,35,36,37,38,39,40,44];k.tn=function(d){var t=!1;window!=window.top&&-1<g.indexOf(d.which)&&(d.preventDefault(),t=!0,d.stopPropagation());
if(this.Lg[d.which])this.Zi[d.which]&&!t&&d.preventDefault();else{this.Lg[d.which]=!0;this.ye=d.which;this.b.pc=!0;this.b.trigger(rc.prototype.m.Bs,this);var p=this.b.trigger(rc.prototype.m.yo,this),a=this.b.trigger(rc.prototype.m.Ks,this);this.b.pc=!1;if(p||a)this.Zi[d.which]=!0,t||d.preventDefault()}};k.un=function(d){this.Lg[d.which]=!1;this.ye=d.which;this.b.pc=!0;this.b.trigger(rc.prototype.m.wo,this);var g=this.b.trigger(rc.prototype.m.Al,this),p=this.b.trigger(rc.prototype.m.zo,this);this.b.pc=
!1;if(g||p||this.Zi[d.which])this.Zi[d.which]=!0,d.preventDefault()};k.gf=function(){var d;for(d=0;256>d;++d)if(this.Lg[d]){this.Lg[d]=!1;this.ye=d;this.b.trigger(rc.prototype.m.wo,this);var g=this.b.trigger(rc.prototype.m.Al,this),p=this.b.trigger(rc.prototype.m.zo,this);if(g||p)this.Zi[d]=!0}};k.ob=function(){return{triggerKey:this.ye}};k.Gb=function(d){this.ye=d.triggerKey};d.prototype.vs=function(d){return this.Lg[d]};d.prototype.yo=function(d){return d===this.ye};d.prototype.Bs=function(){return!0};
d.prototype.wo=function(){return!0};d.prototype.Al=function(d){return d===this.ye};d.prototype.Ks=function(d){return d===this.ye};d.prototype.zo=function(d){return d===this.ye};q.m=new d;q.L=new function(){};q.Xa=new function(){}})();function sc(d){this.b=d}
(function(){function d(){}function q(){}var k=sc.prototype;k.ja=function(d){this.za=d;this.b=d.b};k.ja.prototype.O=function(){};k.Z=function(d){this.type=d;this.b=d.b;this.ng=Array(4);this.Ir=this.pl=this.gg=this.ef=this.df=0;this.Bm=!1};var g=k.Z.prototype;g.O=function(){var d=this;if(!this.b.tb){jQuery(document).mousemove(function(a){d.gw(a)});jQuery(document).mousedown(function(a){d.fw(a)});jQuery(document).mouseup(function(a){d.hw(a)});jQuery(document).dblclick(function(a){d.ew(a)});var g=function(a){d.kw(a)};
document.addEventListener("mousewheel",g,!1);document.addEventListener("DOMMouseScroll",g,!1)}};var u={left:0,top:0};g.gw=function(d){var g=this.b.tb?u:jQuery(this.b.canvas).offset();this.df=d.pageX-g.left;this.ef=d.pageY-g.top};g.vq=function(){return 0<this.b.cc?!0:0<=this.df&&0<=this.ef&&this.df<this.b.width&&this.ef<this.b.height};g.fw=function(d){this.vq()&&(this.ng[d.which]=!0,this.b.pc=!0,this.b.trigger(sc.prototype.m.As,this),this.gg=d.which-1,this.pl=0,this.b.trigger(sc.prototype.m.xo,this),
this.b.trigger(sc.prototype.m.Bl,this),this.b.pc=!1)};g.hw=function(d){this.ng[d.which]&&(this.b.zp&&!this.b.Xe&&d.preventDefault(),this.b.zp=!0,this.ng[d.which]=!1,this.b.pc=!0,this.gg=d.which-1,this.b.trigger(sc.prototype.m.Eo,this),this.b.pc=!1)};g.ew=function(d){this.vq()&&(d.preventDefault(),this.b.pc=!0,this.gg=d.which-1,this.pl=1,this.b.trigger(sc.prototype.m.xo,this),this.b.trigger(sc.prototype.m.Bl,this),this.b.pc=!1)};g.kw=function(d){this.Ir=0>(d.wheelDelta?d.wheelDelta:d.detail?-d.detail:
0)?0:1;this.Bm=!1;this.b.pc=!0;this.b.trigger(sc.prototype.m.Ps,this);this.b.pc=!1;this.Bm&&ob(d)&&d.preventDefault()};g.gf=function(){var d,g;d=0;for(g=this.ng.length;d<g;++d)this.ng[d]&&(this.ng[d]=!1,this.gg=d-1,this.b.trigger(sc.prototype.m.Eo,this))};d.prototype.xo=function(d,g){return d===this.gg&&g===this.pl};d.prototype.As=function(){return!0};d.prototype.Eo=function(d){return d===this.gg};d.prototype.Bl=function(d,g,a){return d!==this.gg||g!==this.pl?!1:this.b.gx(a,this.df,this.ef)};d.prototype.Ps=
function(d){this.Bm=!0;return d===this.Ir};k.m=new d;k.L=new function(){};q.prototype.jt=function(d,g){var a,c,f,e,b;ga(g)?(a=this.b.Jh(0),c=a.scale,f=a.Dd,e=a.Vc,b=a.p,a.scale=1,a.Dd=1,a.Vc=1,a.p=0,d.R(a.Vb(this.df,this.ef,!0)),a.scale=c,a.Dd=f,a.Vc=e,a.p=b):(a=ha(g)?this.b.Jh(g):this.b.vm(g))?d.R(a.Vb(this.df,this.ef,!0)):d.R(0)};q.prototype.kt=function(d,g){var a,c,f,e,b;ga(g)?(a=this.b.Jh(0),c=a.scale,f=a.Dd,e=a.Wc,b=a.p,a.scale=1,a.Dd=1,a.Wc=1,a.p=0,d.R(a.Vb(this.df,this.ef,!1)),a.scale=c,a.Dd=
f,a.Wc=e,a.p=b):(a=ha(g)?this.b.Jh(g):this.b.vm(g))?d.R(a.Vb(this.df,this.ef,!1)):d.R(0)};k.Xa=new q})();function tc(d){this.b=d}
(function(){function d(d,u,t,k,a,c,f,e,b,l){d.save();d.fillStyle=u;u=a%t;var n=c%k;0>u&&(u+=t);0>n&&(n+=k);d.translate(u+b,n+l);d.fillRect(a-u-b,c-n-l,f,e);d.restore()}var q=tc.prototype;q.ja=function(d){this.za=d;this.b=d.b};var k=q.ja.prototype;k.O=function(){this.I||(this.C=new Image,this.C.Wl=this.kl,this.b.xl(this.C,this.Ui),this.ej=this.hj=this.gj=this.fj=this.ph=this.D=this.Po=this.Hr=this.cr=this.Zp=this.jm=null)};k.Yg=function(){this.I||(this.ej=this.hj=this.gj=this.fj=this.ph=this.D=null)};
k.xi=function(){this.I||!this.j.length||this.D||(this.D=this.b.q.Gc(this.C,!0,this.b.wa,this.of))};k.Yi=function(){this.I||this.j.length||!this.b.q||(this.b.q.deleteTexture(this.D),this.b.q.deleteTexture(this.ph),this.b.q.deleteTexture(this.fj),this.b.q.deleteTexture(this.gj),this.b.q.deleteTexture(this.hj),this.b.q.deleteTexture(this.ej),this.ej=this.hj=this.gj=this.fj=this.ph=this.D=null)};k.Rd=function(d,u,k,p){var a=document.createElement("canvas");k=k-d;p=p-u;a.width=k;a.height=p;a.getContext("2d").drawImage(this.C,
d,u,k,p,0,0,k,p);return a};k.It=function(d,u,k,p){var a=this.C.width,c=this.C.height,f=a-u,e=c-p;if(this.b.q){if(!this.ph){var b=this.b.q,l=this.b.wa,n=this.of;f>d&&e>k&&(this.ph=b.Gc(this.Rd(d,k,f,e),!0,l,n));0<d&&e>k&&(this.fj=b.Gc(this.Rd(0,k,d,e),!0,l,n,"repeat-y"));0<u&&e>k&&(this.gj=b.Gc(this.Rd(f,k,a,e),!0,l,n,"repeat-y"));0<k&&f>d&&(this.hj=b.Gc(this.Rd(d,0,f,k),!0,l,n,"repeat-x"));0<p&&f>d&&(this.ej=b.Gc(this.Rd(d,e,f,c),!0,l,n,"repeat-x"))}}else this.jm||(b=this.b.Ia,f>d&&e>k&&(this.jm=
b.createPattern(this.Rd(d,k,f,e),"repeat")),0<d&&e>k&&(this.Zp=b.createPattern(this.Rd(0,k,d,e),"repeat")),0<u&&e>k&&(this.cr=b.createPattern(this.Rd(f,k,a,e),"repeat")),0<k&&f>d&&(this.Hr=b.createPattern(this.Rd(d,0,f,k),"repeat")),0<p&&f>d&&(this.Po=b.createPattern(this.Rd(d,e,f,c),"repeat")))};q.Z=function(d){this.type=d;this.b=d.b};k=q.Z.prototype;k.O=function(){this.Ym=this.u[0];this.Nn=this.u[1];this.eo=this.u[2];this.Ml=this.u[3];this.Oj=this.u[4];this.fill=this.u[5];this.visible=0===this.u[6];
this.gr=0!==this.u[8];this.Yb?this.Zc.set(0,0,0,0):this.Zc=new va(0,0,0,0);this.b.q&&!this.type.D&&(this.type.D=this.b.q.Gc(this.type.C,!1,this.b.wa,this.type.of));this.type.It(this.Ym,this.Nn,this.eo,this.Ml)};k.Qc=function(g){var u=this.type.C,k=this.Ym,p=this.Nn,a=this.eo,c=this.Ml,f=u.width,e=u.height,b=f-p,l=e-c;g.globalAlpha=this.opacity;g.save();var n=this.x,m=this.y,q=this.width,z=this.height;this.b.gc&&(n=Math.round(n),m=Math.round(m));var h=-(this.Qb*this.width),r=-(this.Rb*this.height),
Q=h%f,y=r%e;0>Q&&(Q+=f);0>y&&(y+=e);g.translate(n+Q,m+y);f=h-Q;r-=y;y=this.gr?1:0;0<k&&0<a&&g.drawImage(u,0,0,k+y,a+y,f,r,k+y,a+y);0<p&&0<a&&g.drawImage(u,b-y,0,p+y,a+y,f+q-p-y,r,p+y,a+y);0<p&&0<c&&g.drawImage(u,b-y,l-y,p+y,c+y,f+q-p-y,r+z-c-y,p+y,c+y);0<k&&0<c&&g.drawImage(u,0,l-y,k+y,c+y,f,r+z-c-y,k+y,c+y);0===this.Oj?(y=2===this.fill?0:y,0<k&&l>a&&d(g,this.type.Zp,k,l-a,f,r+a,k+y,z-a-c,0,0),0<p&&l>a&&d(g,this.type.cr,p,l-a,f+q-p-y,r+a,p+y,z-a-c,y,0),0<a&&b>k&&d(g,this.type.Hr,b-k,a,f+k,r,q-k-p,
a+y,0,0),0<c&&b>k&&d(g,this.type.Po,b-k,c,f+k,r+z-c-y,q-k-p,c+y,0,y)):1===this.Oj&&(0<k&&l>a&&0<z-a-c&&g.drawImage(u,0,a,k,l-a,f,r+a,k,z-a-c),0<p&&l>a&&0<z-a-c&&g.drawImage(u,b,a,p,l-a,f+q-p,r+a,p,z-a-c),0<a&&b>k&&0<q-k-p&&g.drawImage(u,k,0,b-k,a,f+k,r,q-k-p,a),0<c&&b>k&&0<q-k-p&&g.drawImage(u,k,l,b-k,c,f+k,r+z-c,q-k-p,c));l>a&&b>k&&(0===this.fill?d(g,this.type.jm,b-k,l-a,f+k,r+a,q-k-p,z-a-c,0,0):1===this.fill&&0<q-k-p&&0<z-a-c&&g.drawImage(u,k,a,b-k,l-a,f+k,r+a,q-k-p,z-a-c));g.restore()};k.de=function(d,
k,t,p,a,c,f,e,b,l){d.Tb(k);var n=this.Zc;n.left=t/k.nd;n.top=p/k.md;n.right=(t+a)/k.nd;n.bottom=(p+c)/k.md;d.Ic(f,e,f+b,e,f+b,e+l,f,e+l,n)};k.Wi=function(d,k,t,p,a,c,f,e){d.Tb(k);var b=this.Zc;b.left=-f/k.nd;b.top=-e/k.md;b.right=(a-f)/k.nd;b.bottom=(c-e)/k.md;d.Ic(t,p,t+a,p,t+a,p+c,t,p+c,b)};k.Se=function(d){this.Ob(d)};k.Ob=function(d){var k=this.Ym,t=this.Nn,p=this.eo,a=this.Ml,c=this.type.C.width-t,f=this.type.C.height-a;d.re(this.opacity);var e=this.Ab,b=e.Ca,e=e.Da,l=this.width,n=this.height;
this.b.gc&&(b=Math.round(b),e=Math.round(e));var m=this.gr?1:0;0<k&&0<p&&this.de(d,this.type.D,0,0,k+m,p+m,b,e,k+m,p+m);0<t&&0<p&&this.de(d,this.type.D,c-m,0,t+m,p+m,b+l-t-m,e,t+m,p+m);0<t&&0<a&&this.de(d,this.type.D,c-m,f-m,t+m,a+m,b+l-t-m,e+n-a-m,t+m,a+m);0<k&&0<a&&this.de(d,this.type.D,0,f-m,k+m,a+m,b,e+n-a-m,k+m,a+m);0===this.Oj?(m=2===this.fill?0:m,0<k&&f>p&&this.Wi(d,this.type.fj,b,e+p,k+m,n-p-a,0,0),0<t&&f>p&&this.Wi(d,this.type.gj,b+l-t-m,e+p,t+m,n-p-a,m,0),0<p&&c>k&&this.Wi(d,this.type.hj,
b+k,e,l-k-t,p+m,0,0),0<a&&c>k&&this.Wi(d,this.type.ej,b+k,e+n-a-m,l-k-t,a+m,0,m)):1===this.Oj&&(0<k&&f>p&&this.de(d,this.type.D,0,p,k,f-p,b,e+p,k,n-p-a),0<t&&f>p&&this.de(d,this.type.D,c,p,t,f-p,b+l-t,e+p,t,n-p-a),0<p&&c>k&&this.de(d,this.type.D,k,0,c-k,p,b+k,e,l-k-t,p),0<a&&c>k&&this.de(d,this.type.D,k,f,c-k,a,b+k,e+n-a,l-k-t,a));f>p&&c>k&&(0===this.fill?this.Wi(d,this.type.ph,b+k,e+p,l-k-t,n-p-a,0,0):1===this.fill&&this.de(d,this.type.D,k,p,c-k,f-p,b+k,e+p,l-k-t,n-p-a))};q.m=new function(){};q.L=
new function(){};q.Xa=new function(){}})();function Z(d){this.b=d}
(function(){function d(){if(0===this.$l.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.fh?b.drawImage(this.C,this.Wg,this.Xg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.C,0,0,this.width,this.height);this.$l=a.toDataURL("image/png")}return this.$l}function q(){}function k(a){a[0]=0;a[1]=0;a[2]=0;l.push(a)}function g(a,b){return a<b?""+a+","+b:""+b+","+a}function u(a,b,c,e){b=b.uid;c=c.uid;var f=g(b,c);if(a.hasOwnProperty(f))a[f][2]=
e;else{var d=l.length?l.pop():[0,0,0];d[0]=b;d[1]=c;d[2]=e;a[f]=d}}function t(a,b,c){b=g(b.uid,c.uid);a.hasOwnProperty(b)&&(k(a[b]),delete a[b])}function p(a,b,c){b=g(b.uid,c.uid);if(a.hasOwnProperty(b))return n=a[b][2],!0;n=-2;return!1}function a(){}var c=Z.prototype;c.ja=function(a){this.za=a;this.b=a.b};var f=c.ja.prototype;f.O=function(){if(!this.I){var a,b,c,e,f,g,l,m,k;this.gd=[];this.Ph=!1;a=0;for(b=this.kc.length;a<b;a++){f=this.kc[a];l={};l.name=f[0];l.speed=f[1];l.loop=f[2];l.Kn=f[3];l.Ln=
f[4];l.Rq=f[5];l.ea=f[6];l.frames=[];c=0;for(e=f[7].length;c<e;c++)g=f[7][c],m={},m.Ui=g[0],m.kl=g[1],m.Wg=g[2],m.Xg=g[3],m.width=g[4],m.height=g[5],m.duration=g[6],m.Qb=g[7],m.Rb=g[8],m.Hm=g[9],m.Ok=g[10],m.Sq=g[11],m.fh=0!==m.width,m.$l="",m.xy=d,k={left:0,top:0,right:1,bottom:1},m.Zn=k,m.D=null,(k=this.b.Ru(g[0]))?m.C=k:(m.C=new Image,m.C.Ft=g[0],m.C.Wl=g[1],m.C.zt=null,this.b.xl(m.C,g[0])),l.frames.push(m),this.gd.push(m);this.kc[a]=l}}};f.Qr=function(){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=
this.j[a],c.Gj=c.Bb.D};f.Yg=function(){if(!this.I){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],c.C.zt=null,c.D=null;this.Ph=!1;this.Qr()}};f.xi=function(){if(!this.I&&this.j.length){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],c.D=this.b.q.Gc(c.C,!1,this.b.wa,c.Sq);this.Qr()}};f.bn=function(){if(!this.I&&!this.Ph&&this.b.q){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],c.D=this.b.q.Gc(c.C,!1,this.b.wa,c.Sq);this.Ph=!0}};f.Yi=function(){if(!this.I&&!this.j.length&&
this.Ph){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],this.b.q.deleteTexture(c.D),c.D=null;this.Ph=!1}};var e=[];f.Sk=function(a){var b,c,f;T(e);b=0;for(c=this.gd.length;b<c;++b)f=this.gd[b].C,-1===e.indexOf(f)&&(a.drawImage(f,0,0),e.push(f))};c.Z=function(a){this.type=a;this.b=a.b;a=this.type.kc[0].frames[0].Ok;this.Yb?this.pa.Mi(a):this.pa=new gb(a)};var b=c.Z.prototype;b.O=function(){this.visible=0===this.u[0];this.Im=this.Sm=!1;this.$d=0!==this.u[3];this.Ea=this.pp(this.u[1])||this.type.kc[0];
this.J=this.u[2];0>this.J&&(this.J=0);this.J>=this.Ea.frames.length&&(this.J=this.Ea.frames.length-1);var a=this.Ea.frames[this.J];this.pa.Mi(a.Ok);this.Qb=a.Qb;this.Rb=a.Rb;this.sg=this.Ea.speed;this.Re=this.Ea.Ln;1===this.type.kc.length&&1===this.type.kc[0].frames.length||0===this.sg||(this.b.ml(this),this.Sm=!0);this.Yb?this.Fd.reset():this.Fd=new eb;this.ge=this.Fd.K;this.rf=!0;this.Xd=0;this.qf=!0;this.qg=this.Lo="";this.Vo=0;this.Sl=-1;this.type.bn();var b,c,e,f,d,g,l,a=0;for(b=this.type.kc.length;a<
b;a++)for(f=this.type.kc[a],c=0,e=f.frames.length;c<e;c++)d=f.frames[c],0===d.width&&(d.width=d.C.width,d.height=d.C.height),d.fh&&(l=d.C,g=d.Zn,g.left=d.Wg/l.width,g.top=d.Xg/l.height,g.right=(d.Wg+d.width)/l.width,g.bottom=(d.Xg+d.height)/l.height,0===d.Wg&&0===d.Xg&&d.width===l.width&&d.height===l.height&&(d.fh=!1));this.Bb=this.Ea.frames[this.J];this.Gj=this.Bb.D};b.ob=function(){var a={a:this.Ea.ea,f:this.J,cas:this.sg,fs:this.ge,ar:this.Xd,at:this.Fd.K,rt:this.Re};this.rf||(a.ap=this.rf);this.qf||
(a.af=this.qf);return a};b.Gb=function(a){var b=this.Vu(a.a);b&&(this.Ea=b);this.J=a.f;0>this.J&&(this.J=0);this.J>=this.Ea.frames.length&&(this.J=this.Ea.frames.length-1);this.sg=a.cas;this.ge=a.fs;this.Xd=a.ar;this.Fd.reset();this.Fd.K=a.at;this.rf=a.hasOwnProperty("ap")?a.ap:!0;this.qf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Re=a.rt:this.Re=this.Ea.Ln;this.Bb=this.Ea.frames[this.J];this.Gj=this.Bb.D;this.pa.Mi(this.Bb.Ok);this.Qb=this.Bb.Qb;this.Rb=this.Bb.Rb};b.Jl=function(a){this.J=
a?0:this.Ea.frames.length-1;this.rf=!1;this.Lo=this.Ea.name;this.Im=!0;this.b.trigger(Z.prototype.m.zs,this);this.b.trigger(Z.prototype.m.vo,this);this.Im=!1;this.Xd=0};b.vh=function(){return this.Fd.K};b.La=function(){this.Fd.add(this.b.Df(this));this.qg.length&&this.cp();0<=this.Sl&&this.Nt();var a=this.Fd.K,b=this.Ea,c=b.frames[this.J],e=c.duration/this.sg;this.rf&&a>=this.ge+e&&(this.qf?this.J++:this.J--,this.ge+=e,this.J>=b.frames.length&&(b.Rq?(this.qf=!1,this.J=b.frames.length-2):b.loop?this.J=
this.Re:(this.Xd++,this.Xd>=b.Kn?this.Jl(!1):this.J=this.Re)),0>this.J&&(b.Rq?(this.J=1,this.qf=!0,b.loop||(this.Xd++,this.Xd>=b.Kn&&this.Jl(!0))):b.loop?this.J=this.Re:(this.Xd++,this.Xd>=b.Kn?this.Jl(!0):this.J=this.Re)),0>this.J?this.J=0:this.J>=b.frames.length&&(this.J=b.frames.length-1),a>this.ge+b.frames[this.J].duration/this.sg&&(this.ge=a),a=b.frames[this.J],this.kg(c,a),this.b.da=!0)};b.pp=function(a){var b,c,e;b=0;for(c=this.type.kc.length;b<c;b++)if(e=this.type.kc[b],mb(e.name,a))return e;
return null};b.Vu=function(a){var b,c,e;b=0;for(c=this.type.kc.length;b<c;b++)if(e=this.type.kc[b],e.ea===a)return e;return null};b.cp=function(){var a=this.Ea.frames[this.J],b=this.pp(this.qg);this.qg="";!b||mb(b.name,this.Ea.name)&&this.rf||(this.Ea=b,this.sg=b.speed,this.Re=b.Ln,0>this.J&&(this.J=0),this.J>=this.Ea.frames.length&&(this.J=this.Ea.frames.length-1),1===this.Vo&&(this.J=0),this.rf=!0,this.ge=this.Fd.K,this.qf=!0,this.kg(a,this.Ea.frames[this.J]),this.b.da=!0)};b.Nt=function(){var a=
this.Ea.frames[this.J],b=this.J;this.J=qa(this.Sl);0>this.J&&(this.J=0);this.J>=this.Ea.frames.length&&(this.J=this.Ea.frames.length-1);b!==this.J&&(this.kg(a,this.Ea.frames[this.J]),this.ge=this.Fd.K,this.b.da=!0);this.Sl=-1};b.kg=function(a,b){var c=a.width,e=a.height,f=b.width,d=b.height;c!=f&&(this.width*=f/c);e!=d&&(this.height*=d/e);this.Qb=b.Qb;this.Rb=b.Rb;this.pa.Mi(b.Ok);this.G();this.Bb=b;this.Gj=b.D;c=0;for(e=this.P.length;c<e;c++)f=this.P[c],f.iw&&f.iw(a,b);this.b.trigger(Z.prototype.m.kg,
this)};b.Qc=function(a){a.globalAlpha=this.opacity;var b=this.Bb,c=b.fh,e=b.C,f=this.x,d=this.y,g=this.width,l=this.height;if(0===this.p&&0<=g&&0<=l)f-=this.Qb*g,d-=this.Rb*l,this.b.gc&&(f=Math.round(f),d=Math.round(d)),c?a.drawImage(e,b.Wg,b.Xg,b.width,b.height,f,d,g,l):a.drawImage(e,f,d,g,l);else{this.b.gc&&(f=Math.round(f),d=Math.round(d));a.save();var m=0<g?1:-1,k=0<l?1:-1;a.translate(f,d);1===m&&1===k||a.scale(m,k);a.rotate(this.p*m*k);f=0-this.Qb*la(g);d=0-this.Rb*la(l);c?a.drawImage(e,b.Wg,
b.Xg,b.width,b.height,f,d,la(g),la(l)):a.drawImage(e,f,d,la(g),la(l));a.restore()}};b.Se=function(a){this.Ob(a)};b.Ob=function(a){a.Tb(this.Gj);a.re(this.opacity);var b=this.Bb,c=this.Ab;if(this.b.gc){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.fh?a.Ic(c.Ca+e,c.Da+f,c.Va+e,c.Wa+f,c.Sa+e,c.Ta+f,c.Qa+e,c.Ra+f,b.Zn):a.Fi(c.Ca+e,c.Da+f,c.Va+e,c.Wa+f,c.Sa+e,c.Ta+f,c.Qa+e,c.Ra+f)}else b.fh?a.Ic(c.Ca,c.Da,c.Va,c.Wa,c.Sa,c.Ta,c.Qa,c.Ra,b.Zn):a.Fi(c.Ca,c.Da,c.Va,c.Wa,c.Sa,c.Ta,c.Qa,c.Ra)};
b.av=function(a){var b=this.Bb,c,e;c=0;for(e=b.Hm.length;c<e;c++)if(mb(a,b.Hm[c][0]))return c;return-1};b.Ih=function(a,b){var c=this.Bb,e=c.Hm,f;A(a)?f=this.av(a):f=a-1;f=qa(f);if(0>f||f>=e.length)return b?this.x:this.y;var d=(e[f][1]-c.Qb)*this.width,e=e[f][2],e=(e-c.Rb)*this.height,c=Math.cos(this.p);f=Math.sin(this.p);var g=d*c-e*f,e=e*c+d*f,d=g+this.x,e=e+this.y;return b?d:e};var l=[],n=-2,m=[];q.prototype.Ds=function(a){if(!a)return!1;var b=this.b,c=b.sp(),e=c.type,f=null;c.V.collmemory?f=c.V.collmemory:
(f={},c.V.collmemory=f);c.V.spriteCreatedDestroyCallback||(c.V.spriteCreatedDestroyCallback=!0,b.Gl(function(a){var b=c.V.collmemory;a=a.uid;var e,f;for(e in b)b.hasOwnProperty(e)&&(f=b[e],f[0]===a||f[1]===a)&&(k(b[e]),delete b[e])}));var d=e.ba(),g=a.ba(),d=d.nc(),l,q,z,S,G,P,H,w=this.b.Vd,D=w-1,x=b.sb().Db;for(q=0;q<d.length;q++){z=d[q];g.na?(z.ua(),this.b.rp(z.k,a,z.Ha,m),l=m):l=g.nc();for(S=0;S<l.length;S++)G=l[S],b.xc(z,G)||b.Ct(z,G)?(P=p(f,z,G),P=!P||n<D,u(f,z,G,w),P&&(b.Ei(x.Ba),P=e.ba(),H=
a.ba(),P.na=!1,H.na=!1,e===a?(P.j.length=2,P.j[0]=z,P.j[1]=G,e.jd()):(P.j.length=1,H.j.length=1,P.j[0]=z,H.j[0]=G,e.jd(),a.jd()),x.Mn(),b.jf(x.Ba))):t(f,z,G);T(m)}return!1};var S=new ca,z=!1;new va(0,0,0,0);f.finish=function(a){if(z){if(a){var b=this.b.sb().Db.Tc;a=null.ba();var c=S.Ae(),e,f;if(a.na){a.na=!1;T(a.j);e=0;for(f=c.length;e<f;++e)a.j[e]=c[e];if(b)for(T(a.aa),e=0,f=null.j.length;e<f;++e)c=null.j[e],S.contains(c)||a.aa.push(c)}else if(b)for(b=a.j.length,e=0,f=c.length;e<f;++e)a.j[b+e]=c[e],
Ea(a.aa,c[e]);else Aa(a.j,c);null.jd()}S.clear();z=!1}};q.prototype.qs=function(a){return this.qg.length?mb(this.qg,a):mb(this.Ea.name,a)};q.prototype.vo=function(a){return mb(this.Lo,a)};q.prototype.zs=function(){return!0};q.prototype.kg=function(){return!0};c.m=new q;a.prototype.$s=function(a,b,c){if(a&&b&&(b=this.b.Yo(a,b,this.Ih(c,!0),this.Ih(c,!1)))){"undefined"!==typeof b.p&&(b.p=this.p,b.G());this.b.sd++;var e,f,d;this.b.trigger(Object.getPrototypeOf(a.za).m.kj,b);if(b.fc)for(e=0,f=b.siblings.length;e<
f;e++)d=b.siblings[e],this.b.trigger(Object.getPrototypeOf(d.type.za).m.kj,d);this.b.sd--;e=this.b.Xu();c=!1;if(ga(e.V.Spawn_LastExec)||e.V.Spawn_LastExec<this.b.Bf)c=!0,e.V.Spawn_LastExec=this.b.Bf;if(a!=this.type&&(a=a.ba(),a.na=!1,c?(T(a.j),a.j[0]=b):a.j.push(b),b.fc))for(e=0,f=b.siblings.length;e<f;e++)d=b.siblings[e],a=d.type.ba(),a.na=!1,c?(T(a.j),a.j[0]=d):a.j.push(d)}};a.prototype.Rs=function(a,b){this.qg=a;this.Vo=b;this.Sm||(this.b.ml(this),this.Sm=!0);this.Im||this.cp()};a.prototype.Vs=
function(a){a=la(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.G())};c.L=new a;c.Xa=new function(){}})();function uc(d){this.b=d}
(function(){function d(a,c){return a.length?a.pop():new c}function q(a,c,e){if(e){var f;e=0;for(f=c.length;e<f;e++)a.length<t&&a.push(c[e]);T(c)}else for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(a.length<t&&a.push(c[f]),delete c[f])}function k(a,c,e){var f=a.Xb;e=e.replace(/\s\s*$/,"");c>=f.length&&f.push(d(p,Object));c=f[c];c.text=e;c.width=a.mn(e);a.we=ma(a.we,c.width)}var g=uc.prototype;g.O=function(){};g.ja=function(a){this.za=a;this.b=a.b};var u=g.ja.prototype;u.O=function(){this.I||
(this.C=new Image,this.b.xl(this.C,this.Ui),this.D=null)};u.Yg=function(){this.I||(this.D=null)};u.xi=function(){if(!this.I&&this.j.length){this.D||(this.D=this.b.q.Gc(this.C,!1,this.b.wa,this.of));var a,c;a=0;for(c=this.j.length;a<c;a++)this.j[a].D=this.D}};u.Yi=function(){this.I||this.j.length||!this.D||(this.b.q.deleteTexture(this.D),this.D=null)};u.Sk=function(a){a.drawImage(this.C,0,0)};g.Z=function(a){this.type=a;this.b=a.b};u=g.Z.prototype;u.ff=function(){q(p,this.Xb,!0);q(a,this.Aj,!1);q(c,
this.Bj,!1);$a(this.Ne)};u.O=function(){this.C=this.type.C;this.zj=this.u[0];this.Le=this.u[1];this.characterSet=this.u[2];this.text=this.u[3];this.Me=this.u[4];this.visible=0===this.u[5];this.he=this.u[6]/2;this.ze=this.u[7]/2;this.jj=0===this.u[9];this.rg=this.u[10];this.lineHeight=this.u[11];this.Ud=this.we=0;this.Yb?(T(this.Xb),$a(this.Aj),$a(this.Bj),$a(this.Ne)):(this.Xb=[],this.Aj={},this.Bj={},this.Ne={});this.zd=!0;this.Sf=this.width;this.b.q&&(this.type.D||(this.type.D=this.b.q.Gc(this.type.C,
!1,this.b.wa,this.type.of)),this.D=this.type.D);this.bt()};u.ob=function(){var a={t:this.text,csc:this.Me,csp:this.rg,lh:this.lineHeight,tw:this.we,th:this.Ud,lrt:this.Rf,ha:this.he,va:this.ze,cw:{}},c;for(c in this.Ne)a.cw[c]=this.Ne[c];return a};u.Gb=function(a){this.text=a.t;this.Me=a.csc;this.rg=a.csp;this.lineHeight=a.lh;this.we=a.tw;this.Ud=a.th;this.Rf=a.lrt;a.hasOwnProperty("ha")&&(this.he=a.ha);a.hasOwnProperty("va")&&(this.ze=a.va);for(var c in a.cw)this.Ne[c]=a.cw[c];this.zd=!0;this.Sf=
this.width};var t=1E3,p=[],a=[],c=[];u.bt=function(){for(var b=this.C,e=b.width,f=b.height,b=this.zj,g=this.Le,k=b/e,p=g/f,h=this.characterSet,e=Math.floor(e/b),f=Math.floor(f/g),u=0;u<h.length&&!(u>=e*f);u++){var t=u%e,q=Math.floor(u/e),K=h.charAt(u);if(this.b.q){var E=this.Bj,R=t*k,C=q*p,t=(t+1)*k,q=(q+1)*p;void 0===E[K]&&(E[K]=d(c,va));E[K].left=R;E[K].top=C;E[K].right=t;E[K].bottom=q}else E=this.Aj,t=t*b,q=q*g,R=b,C=g,void 0===E[K]&&(E[K]=d(a,Object)),E[K].x=t,E[K].y=q,E[K].Vr=R,E[K].yp=C}};var f=
[];g.Dl=function(a){T(f);for(var c="",e,d=0;d<a.length;)if(e=a.charAt(d),"\n"===e)c.length&&(f.push(c),c=""),f.push("\n"),++d;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));f.push(c);c=""}else d<a.length&&(c+=e,d++);c.length&&f.push(c)};g.El=function(a){var c=a.text,e=a.Xb;if(c&&c.length){var f=a.width;if(2>=f)q(p,e,!0);else{var g=a.Me,k=a.rg;if(c.length*(a.zj*g+k)-k<=f&&-1===c.indexOf("\n")&&(k=a.mn(c),k<=f)){q(p,e,!0);e.push(d(p,
Object));e[0].text=c;e[0].width=k;a.we=k;a.Ud=a.Le*g+a.lineHeight;return}this.Fl(a);a.Ud=e.length*(a.Le*g+a.lineHeight)}}else q(p,e,!0)};g.Fl=function(a){var c=a.jj,e=a.text,d=a.Xb,g=a.width;c&&(this.Dl(e),e=f);var u="",h,r,q,y=0,K=!1;for(q=0;q<e.length;q++)"\n"===e[q]?(!0===K?K=!1:(k(a,y,u),y++),u=""):(K=!1,h=u,u+=e[q],r=a.mn(u.replace(/\s\s*$/,"")),r>g&&(""===h?(k(a,y,u),u="",K=!0):(k(a,y,h),u=e[q]),y++,c||" "!==u||(u="")));u.replace(/\s\s*$/,"").length&&(k(a,y,u),y++);for(q=y;q<d.length;q++)p.length<
t&&p.push(d[q]);d.length=y};u.mn=function(a){for(var c=this.rg,e=a.length,f=0,d=0;d<e;d++)f+=this.qm(a.charAt(d))*this.Me+c;return f-(0<f?c:0)};u.qm=function(a){var c=this.Ne;return void 0!==c[a]?c[a]:this.zj};u.$q=function(){if(this.zd||this.width!==this.Sf)this.Ud=this.we=0,this.type.za.El(this),this.zd=!1,this.Sf=this.width};u.Qc=function(a){var c=this.C;if(""!==this.text&&null!=c&&(this.$q(),!(this.height<this.Le*this.Me+this.lineHeight))){a.globalAlpha=this.opacity;var c=this.x,e=this.y;this.b.gc&&
(c=Math.round(c),e=Math.round(e));var f=this.k.ra,d=this.k.ta,g=this.k.ya,h=this.k.xa;a.save();a.translate(c,e);a.rotate(this.p);for(var k=this.p,u=this.he,p=this.Me,t=this.Le*p,q=this.lineHeight,R=this.rg,C=this.Xb,F,B=-(this.Qb*this.width),N=-(this.Rb*this.height),N=N+this.ze*ma(0,this.height-this.Ud),G,P,H,w=0;w<C.length;w++){var D=C[w].text;F=u*ma(0,this.width-C[w].width);G=B+F;N+=q;if(0===k&&e+N+t<d)N+=t;else{for(var x=0;x<D.length;x++){P=D.charAt(x);F=this.qm(P);var v=this.Aj[P];if(0===k&&c+
G+F*p+R<f)G+=F*p+R;else{if(G+F*p>this.width+1E-5)break;void 0!==v&&(P=G,H=N,0===k&&1===p&&(P=Math.round(P),H=Math.round(H)),a.drawImage(this.C,v.x,v.y,v.Vr,v.yp,P,H,v.Vr*p,v.yp*p));G+=F*p+R;if(0===k&&c+G>g)break}}N+=t;if(0===k&&(N+t+q>this.height||e+N>h))break}}a.restore()}};var e=new wa;u.Ob=function(a){a.Tb(this.D);a.re(this.opacity);if(this.text&&(this.$q(),!(this.height<this.Le*this.Me+this.lineHeight))){this.ua();var c=this.Ab,f=0,d=0;this.b.gc&&(f=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var g=this.k.ra,k=this.k.ta,h=this.k.ya,u=this.k.xa,p=this.p,t=this.he,q=this.ze,E=this.Me,R=this.Le*E,C=this.lineHeight,F=this.rg,B=this.Xb,N=this.Ud,G,P,H;0!==p&&(P=Math.cos(p),H=Math.sin(p));for(var f=c.Ca+f,c=c.Da+d,w,q=q*ma(0,this.height-N),D,x,N=0;N<B.length;N++)if(d=B[N].text,w=G=t*ma(0,this.width-B[N].width),q+=C,0===p&&c+q+R<k)q+=R;else{for(var v=0;v<d.length;v++){var I=d.charAt(v);G=this.qm(I);I=this.Bj[I];if(0===p&&f+w+G*E+F<g)w+=G*E+F;else{if(w+G*E>this.width+1E-5)break;if(void 0!==
I){var L=this.zj*E,O=this.Le*E;D=w;x=q;0===p&&1===E&&(D=Math.round(D),x=Math.round(x));e.Ca=D;e.Da=x;e.Va=D+L;e.Wa=x;e.Qa=D;e.Ra=x+O;e.Sa=D+L;e.Ta=x+O;0!==p&&(D=e,x=P,L=H,O=void 0,O=D.Ca*x-D.Da*L,D.Da=D.Da*x+D.Ca*L,D.Ca=O,O=D.Va*x-D.Wa*L,D.Wa=D.Wa*x+D.Va*L,D.Va=O,O=D.Qa*x-D.Ra*L,D.Ra=D.Ra*x+D.Qa*L,D.Qa=O,O=D.Sa*x-D.Ta*L,D.Ta=D.Ta*x+D.Sa*L,D.Sa=O);e.offset(f,c);a.Ic(e.Ca,e.Da,e.Va,e.Wa,e.Sa,e.Ta,e.Qa,e.Ra,I)}w+=G*E+F;if(0===p&&f+w>h)break}}q+=R;if(0===p&&(q+R+C>this.height||c+q>u))break}}};g.m=new function(){};
u.vh=function(a,c){var e=parseInt(c,10);this.Ne[a]!==e&&(this.Ne[a]=e,this.zd=!0,this.b.da=!0)};g.L=new function(){};g.Xa=new function(){}})();function vc(d){this.b=d}
(function(){function d(){return p.length?p.pop():{}}function q(a){var c,f;c=0;for(f=a.length;c<f;c++)p.push(a[c]);T(a)}function k(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}var g=vc.prototype;g.O=function(){g.L.Ho=function(a){this.width!==a&&(this.width=a,this.zd=!0,this.G())}};g.ja=function(a){this.za=a;this.b=a.b};var u=g.ja.prototype;u.O=function(){};u.Yg=function(){if(!this.I){var a,c,f;a=0;for(c=this.j.length;a<c;a++)f=this.j[a],f.Md=null,f.Xf=null,f.sc=null}};
g.Z=function(a){this.type=a;this.b=a.b;this.Yb?T(this.Xb):this.Xb=[];this.zd=!0};u=g.Z.prototype;u.O=function(){this.text=this.u[0];this.visible=0===this.u[1];this.font=this.u[2];this.color=this.u[3];this.he=this.u[4];this.ze=this.u[5];this.jj=0===this.u[7];this.Sf=this.qk=this.width;this.pk=this.height;this.Zm=this.u[8];this.$j=this.vg="";this.Ud=this.we=this.Ci=0;this.ow();this.sc=this.Xf=this.Md=null;this.yq=!1;this.Rf=this.b.Vd;this.Yb?this.Zc.set(0,0,1,1):this.Zc=new va(0,0,1,1);this.b.q&&this.b.ml(this)};
u.ow=function(){var a=this.font.split(" "),c;for(c=0;c<a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.Ci=parseInt(a[c].substr(0,a[c].length-2));this.Fn=Math.ceil(this.Ci/72*96)+4;0<c&&(this.$j=a[c-1]);this.vg=a[c+1];for(c+=2;c<a.length;c++)this.vg+=" "+a[c];break}};u.ob=function(){return{t:this.text,f:this.font,c:this.color,ha:this.he,va:this.ze,wr:this.jj,lho:this.Zm,fn:this.vg,fs:this.$j,ps:this.Ci,pxh:this.Fn,tw:this.we,th:this.Ud,lrt:this.Rf}};u.Gb=function(a){this.text=a.t;this.font=
a.f;this.color=a.c;this.he=a.ha;this.ze=a.va;this.jj=a.wr;this.Zm=a.lho;this.vg=a.fn;this.$j=a.fs;this.Ci=a.ps;this.Fn=a.pxh;this.we=a.tw;this.Ud=a.th;this.Rf=a.lrt;this.zd=!0;this.Sf=this.qk=this.width;this.pk=this.height};u.La=function(){if(this.b.q&&this.sc&&300<=this.b.Vd-this.Rf){var a=this.k;this.ua();var c=this.Ha;if(c.right<a.ra||c.bottom<a.ta||c.left>a.ya||c.top>a.xa)this.b.q.deleteTexture(this.sc),this.Md=this.Xf=this.sc=null}};u.ff=function(){this.Md=this.Xf=null;this.b.q&&this.sc&&this.b.q.deleteTexture(this.sc);
this.sc=null};u.vh=function(){this.font=this.$j+" "+this.Ci.toString()+"pt "+this.vg;this.zd=!0;this.b.da=!0};u.Qc=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var f=1;c&&(f=Math.abs(this.k.oc()),a.save(),a.scale(f,f));if(this.zd||this.width!==this.Sf)this.type.za.El(this.text,this.Xb,a,this.width,this.jj),this.zd=!1,this.Sf=this.width;this.ua();var f=c?0:this.Ab.Ca,e=c?0:this.Ab.Da;this.b.gc&&(f=f+.5|0,e=e+.5|0);0===this.p||c||(a.save(),
a.translate(f,e),a.rotate(this.p),e=f=0);var b=e+this.height,d=this.Fn,d=d+this.Zm,g,m;1===this.ze?e+=Math.max(this.height/2-this.Xb.length*d/2,0):2===this.ze&&(e+=Math.max(this.height-this.Xb.length*d-2,0));for(m=0;m<this.Xb.length&&!(g=f,1===this.he?g=f+(this.width-this.Xb[m].width)/2:2===this.he&&(g=f+(this.width-this.Xb[m].width)),a.fillText(this.Xb[m].text,g,e),e+=d,e>=b-d);m++);(0!==this.p||c)&&a.restore();this.Rf=this.b.Vd};u.Ob=function(a){if(!(1>this.width||1>this.height)){var c=this.zd||
this.yq;this.yq=!1;var f=this.k.oc(),e=this.k.hb(),b=this.Zc,d=f*this.width,g=f*this.height,m=Math.ceil(d),k=Math.ceil(g),u=Math.abs(m),h=Math.abs(k),p=this.b.N/2,t=this.b.M/2;this.Xf||(this.Md=document.createElement("canvas"),this.Md.width=u,this.Md.height=h,this.qk=u,this.pk=h,c=!0,this.Xf=this.Md.getContext("2d"));if(u!==this.qk||h!==this.pk)this.Md.width=u,this.Md.height=h,this.sc&&(a.deleteTexture(this.sc),this.sc=null),c=!0;c&&(this.Xf.clearRect(0,0,u,h),this.Qc(this.Xf,!0),this.sc||(this.sc=
a.Cc(u,h,this.b.wa,this.b.Xe)),a.rx(this.Md,this.sc,this.b.Xe));this.qk=u;this.pk=h;a.Tb(this.sc);a.re(this.opacity);a.$c();a.translate(-p,-t);a.Kc();var q=this.Ab,c=this.k.Ka(q.Ca,q.Da,!0,!0),u=this.k.Ka(q.Ca,q.Da,!1,!0),h=this.k.Ka(q.Va,q.Wa,!0,!0),p=this.k.Ka(q.Va,q.Wa,!1,!0),t=this.k.Ka(q.Sa,q.Ta,!0,!0),K=this.k.Ka(q.Sa,q.Ta,!1,!0),E=this.k.Ka(q.Qa,q.Ra,!0,!0),q=this.k.Ka(q.Qa,q.Ra,!1,!0);if(this.b.gc||0===this.p&&0===e)var R=(c+.5|0)-c,C=(u+.5|0)-u,c=c+R,u=u+C,h=h+R,p=p+C,t=t+R,K=K+C,E=E+R,q=
q+C;0===this.p&&0===e?(h=c+m,p=u,t=h,K=u+k,E=c,q=K,b.right=1,b.bottom=1):(b.right=d/m,b.bottom=g/k);a.Ic(c,u,h,p,t,K,E,q,b);a.$c();a.scale(f,f);a.Yk(-this.k.hb());a.translate((this.k.ra+this.k.ya)/-2,(this.k.ta+this.k.xa)/-2);a.Kc();this.Rf=this.b.Vd}};var t=[];g.Dl=function(a){T(t);for(var c="",f,e=0;e<a.length;)if(f=a.charAt(e),"\n"===f)c.length&&(t.push(c),c=""),t.push("\n"),++e;else if(" "===f||"\t"===f||"-"===f){do c+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));
t.push(c);c=""}else e<a.length&&(c+=f,e++);c.length&&t.push(c)};var p=[];g.El=function(a,c,f,e,b){if(a&&a.length)if(2>=e)q(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=f.measureText(a).width;if(g<=e){q(c);c.push(d());c[0].text=a;c[0].width=g;return}}this.Fl(a,c,f,e,b)}else q(c)};g.Fl=function(a,c,f,e,b){b&&(this.Dl(a),a=t);var g="",u,m,q,z=0;for(q=0;q<a.length;q++)"\n"===a[q]?(z>=c.length&&c.push(d()),g=k(g),m=c[z],m.text=g,m.width=f.measureText(g).width,z++,g=""):(u=g,g+=a[q],m=f.measureText(g).width,
m>=e&&(z>=c.length&&c.push(d()),u=k(u),m=c[z],m.text=u,m.width=f.measureText(u).width,z++,g=a[q],b||" "!==g||(g="")));g.length&&(z>=c.length&&c.push(d()),g=k(g),m=c[z],m.text=g,m.width=f.measureText(g).width,z++);for(q=z;q<c.length;q++)p.push(c[q]);c.length=z};g.m=new function(){};g.L=new function(){};g.Xa=new function(){}})();function wc(d){this.b=d}
(function(){var d=wc.prototype;d.ja=function(d){this.za=d;this.b=d.b};var q=d.ja.prototype;q.O=function(){this.I||(this.C=new Image,this.C.Wl=this.kl,this.b.xl(this.C,this.Ui),this.D=this.pattern=null)};q.Yg=function(){this.I||(this.D=null)};q.xi=function(){if(!this.I&&this.j.length){this.D||(this.D=this.b.q.Gc(this.C,!0,this.b.wa,this.of));var d,g;d=0;for(g=this.j.length;d<g;d++)this.j[d].D=this.D}};q.bn=function(){this.I||this.D||!this.b.q||(this.D=this.b.q.Gc(this.C,!0,this.b.wa,this.of))};q.Yi=
function(){this.I||this.j.length||!this.D||(this.b.q.deleteTexture(this.D),this.D=null)};q.Sk=function(d){d.drawImage(this.C,0,0)};d.Z=function(d){this.type=d;this.b=d.b};q=d.Z.prototype;q.O=function(){this.visible=0===this.u[0];this.Zc=new va(0,0,0,0);this.Cp=!1;this.C=this.type.C;this.b.q?(this.type.bn(),this.D=this.type.D):(this.type.pattern||(this.type.pattern=this.b.Ia.createPattern(this.type.C,"repeat")),this.pattern=this.type.pattern)};q.Ed=function(){this.Cp=!1;this.C=this.type.C};q.ff=function(){this.b.q&&
this.Cp&&this.D&&(this.b.q.deleteTexture(this.D),this.D=null)};q.Qc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,u=this.y;this.b.gc&&(g=Math.round(g),u=Math.round(u));var t=-(this.Qb*this.width),p=-(this.Rb*this.height),a=t%this.C.width,c=p%this.C.height;0>a&&(a+=this.C.width);0>c&&(c+=this.C.height);d.translate(g,u);d.rotate(this.p);d.translate(a,c);d.fillRect(t-a,p-c,this.width,this.height);d.restore()};q.Se=function(d){this.Ob(d)};q.Ob=function(d){d.Tb(this.D);
d.re(this.opacity);var g=this.Zc;g.right=this.width/this.C.width;g.bottom=this.height/this.C.height;var u=this.Ab;if(this.b.gc){var t=Math.round(this.x)-this.x,p=Math.round(this.y)-this.y;d.Ic(u.Ca+t,u.Da+p,u.Va+t,u.Wa+p,u.Sa+t,u.Ta+p,u.Qa+t,u.Ra+p,g)}else d.Ic(u.Ca,u.Da,u.Va,u.Wa,u.Sa,u.Ta,u.Qa,u.Ra,g)};d.m=new function(){};d.L=new function(){};d.Xa=new function(){}})();function xc(d){this.b=d}
(function(){function d(){}var q=xc.prototype;q.ja=function(d){this.behavior=d;this.b=d.b};q.ja.prototype.O=function(){};q.Z=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b};var k=q.Z.prototype;k.O=function(){var d=this.u[0];this.fd=this.u[1];this.mc=this.u[2];this.xt=0!==this.u[3];this.Un=0!==this.u[4];this.A=Math.cos(this.i.p)*d;this.H=Math.sin(this.i.p)*d;this.rk=this.i.x;this.sk=this.i.y;this.Mg=this.i.p;this.ol=0;this.enabled=0!==this.u[5]};k.ob=function(){return{acc:this.fd,
g:this.mc,dx:this.A,dy:this.H,lx:this.rk,ly:this.sk,lka:this.Mg,t:this.ol,e:this.enabled}};k.Gb=function(d){this.fd=d.acc;this.mc=d.g;this.A=d.dx;this.H=d.dy;this.rk=d.lx;this.sk=d.ly;this.Mg=d.lka;this.ol=d.t;this.enabled=d.e};k.La=function(){if(this.enabled){var d=this.b.Df(this.i),k,t;this.i.p!==this.Mg&&(this.Un&&(k=Sa(0,0,this.A,this.H),this.A=Math.cos(this.i.p)*k,this.H=Math.sin(this.i.p)*k),this.Mg=this.i.p);0!==this.fd&&(k=Sa(0,0,this.A,this.H),t=0===this.A&&0===this.H?this.i.p:Na(0,0,this.A,
this.H),k+=this.fd*d,0>k&&(k=0),this.A=Math.cos(t)*k,this.H=Math.sin(t)*k);0!==this.mc&&(this.H+=this.mc*d);this.rk=this.i.x;this.sk=this.i.y;if(0!==this.A||0!==this.H)if(this.i.x+=this.A*d,this.i.y+=this.H*d,this.ol+=Sa(0,0,this.A*d,this.H*d),this.Un&&(this.i.p=Na(0,0,this.A,this.H),this.i.G(),this.Mg=this.i.p),this.i.G(),this.xt&&(k=this.b.Kb(this.i)))this.b.$g(this.i,k),k=Sa(0,0,this.A,this.H),t=this.b.At(this.i,this.rk,this.sk),this.A=Math.cos(t)*k,this.H=Math.sin(t)*k,this.i.x+=this.A*d,this.i.y+=
this.H*d,this.i.G(),this.Un&&(this.Mg=this.i.p=t,this.i.G()),this.b.Yc(this.i,this.A/k,this.H/k,Math.max(2.5*k*d,30))||this.b.Zq(this.i,100)}};q.m=new function(){};d.prototype.Qs=function(d){d=W(d);var k=Sa(0,0,this.A,this.H);this.A=Math.cos(d)*k;this.H=Math.sin(d)*k};d.prototype.nj=function(d){this.enabled=1===d};q.L=new d;q.Xa=new function(){}})();function yc(d){this.b=d}
(function(){function d(){}var q=yc.prototype;q.ja=function(d){this.behavior=d;this.b=d.b};q.ja.prototype.O=function(){};q.Z=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b};var k=q.Z.prototype;k.O=function(){this.Io=1===this.u[0];this.Gh=this.u[1];this.cj=this.u[2];this.Sj=this.u[3];this.Lt=this.u[4];this.pb=this.Io?0:3;this.Yb?this.bd.reset():this.bd=new eb;this.Wf=this.i.opacity?this.i.opacity:1;this.Io&&(0===this.Gh?(this.pb=1,0===this.cj&&(this.pb=2)):(this.i.opacity=0,
this.b.da=!0))};k.ob=function(){return{fit:this.Gh,wt:this.cj,fot:this.Sj,s:this.pb,st:this.bd.K,mo:this.Wf}};k.Gb=function(d){this.Gh=d.fit;this.cj=d.wt;this.Sj=d.fot;this.pb=d.s;this.bd.reset();this.bd.K=d.st;this.Wf=d.mo};k.La=function(){this.bd.add(this.b.Df(this.i));0===this.pb&&(this.i.opacity=this.bd.K/this.Gh*this.Wf,this.b.da=!0,this.i.opacity>=this.Wf&&(this.i.opacity=this.Wf,this.pb=1,this.bd.reset(),this.b.trigger(yc.prototype.m.Fs,this.i)));1===this.pb&&this.bd.K>=this.cj&&(this.pb=2,
this.bd.reset(),this.b.trigger(yc.prototype.m.Os,this.i));2===this.pb&&0!==this.Sj&&(this.i.opacity=this.Wf-this.bd.K/this.Sj*this.Wf,this.b.da=!0,0>this.i.opacity&&(this.i.opacity=0,this.pb=3,this.bd.reset(),this.b.trigger(yc.prototype.m.Gs,this.i),1===this.Lt&&this.b.Ee(this.i)))};k.vh=function(){this.pb=0;this.bd.reset();0===this.Gh?(this.pb=1,0===this.cj&&(this.pb=2)):(this.i.opacity=0,this.b.da=!0)};d.prototype.Gs=function(){return!0};d.prototype.Fs=function(){return!0};d.prototype.Os=function(){return!0};
q.m=new d;q.L=new function(){};q.Xa=new function(){}})();function Ac(d){this.b=d}
(function(){function d(){}function q(){}var k=Ac.prototype;k.ja=function(d){this.behavior=d;this.b=d.b};k.ja.prototype.O=function(){};k.Z=function(d,g){this.type=d;this.behavior=d.behavior;this.i=g;this.b=d.b};var g=k.Z.prototype;g.O=function(){this.Wd=this.Sd=this.pb=this.Kk=this.Lk=0};g.ob=function(){return{ontime:this.Lk,offtime:this.Kk,stage:this.pb,stagetimeleft:this.Sd,timeleft:this.Wd}};g.Gb=function(d){this.Lk=d.ontime;this.Kk=d.offtime;this.pb=d.stage;this.Sd=d.stagetimeleft;this.Wd=d.timeleft;
null===this.Wd&&(this.Wd=Infinity)};g.La=function(){if(!(0>=this.Wd)){var d=this.b.Df(this.i);this.Wd-=d;0>=this.Wd?(this.Wd=0,this.i.visible=!0,this.b.da=!0,this.b.trigger(Ac.prototype.m.Is,this.i)):(this.Sd-=d,0>=this.Sd&&(0===this.pb?(this.i.visible=!1,this.pb=1,this.Sd+=this.Kk):(this.i.visible=!0,this.pb=0,this.Sd+=this.Lk),this.b.da=!0))}};d.prototype.Is=function(){return!0};k.m=new d;q.prototype.hs=function(d,g,k){this.Lk=d;this.Kk=g;this.pb=1;this.Sd=g;this.Wd=k;this.i.visible=!1;this.b.da=
!0};k.L=new q;k.Xa=new function(){}})();function Bc(d){this.b=d}
(function(){function d(){}function q(){}var k=Bc.prototype;k.ja=function(d){this.behavior=d;this.b=d.b};k.ja.prototype.O=function(){};k.Z=function(d,g){this.type=d;this.behavior=d.behavior;this.i=g;this.b=d.b;this.Pi=this.fl=this.el=this.Gm=this.wh=this.Ch=this.Jg=this.Kg=this.Hi=this.hi=!1;this.Sb=null;this.$m=-1;this.Nf=this.Mf=0;this.Zj=!1;this.wg=this.hd=0;this.Yj=!0;this.H=this.A=0};var g=k.Z.prototype;g.Rr=function(){this.qb=Math.cos(this.zg);this.rb=Math.sin(this.zg);this.Zf=Math.cos(this.zg-
Math.PI/2);this.$f=Math.sin(this.zg-Math.PI/2);this.qb=lb(this.qb);this.rb=lb(this.rb);this.Zf=lb(this.Zf);this.$f=lb(this.$f);this.om=this.mc;0>this.mc&&(this.qb*=-1,this.rb*=-1,this.mc=Math.abs(this.mc))};g.O=function(){this.ne=this.u[0];this.fd=this.u[1];this.ug=this.u[2];this.fi=this.u[3];this.om=this.mc=this.u[4];this.Fk=this.u[5];this.em=0!==this.u[6];this.Vm=this.u[7]/1E3;this.Jt=1===this.u[8];this.enabled=0!==this.u[9];this.nh=!1;this.oh=this.b.nf(this.i);this.an=-1;this.eg=0;this.zg=W(90);
this.Rr();var d=this;this.Jt&&!this.b.tb&&(jQuery(document).keydown(function(g){d.tn(g)}),jQuery(document).keyup(function(g){d.un(g)}));this.Yb||(this.xq=function(g){d.sn(g)});this.b.Gl(this.xq);this.i.V.isPlatformBehavior=!0};g.ob=function(){return{ii:this.Gm,lfx:this.Mf,lfy:this.Nf,lfo:this.Sb?this.Sb.uid:-1,am:this.hd,en:this.enabled,fall:this.wg,ft:this.Yj,dx:this.A,dy:this.H,ms:this.ne,acc:this.fd,dec:this.ug,js:this.fi,g:this.mc,g1:this.om,mf:this.Fk,wof:this.nh,woj:this.oh?this.oh.uid:-1,ga:this.zg,
edj:this.em,cdj:this.wh,dj:this.Ch,sus:this.Vm}};g.Gb=function(d){this.Gm=d.ii;this.Mf=d.lfx;this.Nf=d.lfy;this.$m=d.lfo;this.hd=d.am;this.enabled=d.en;this.wg=d.fall;this.Yj=d.ft;this.A=d.dx;this.H=d.dy;this.ne=d.ms;this.fd=d.acc;this.ug=d.dec;this.fi=d.js;this.mc=d.g;this.om=d.g1;this.Fk=d.mf;this.nh=d.wof;this.an=d.woj;this.zg=d.ga;this.em=d.edj;this.wh=d.cdj;this.Ch=d.dj;this.Vm=d.sus;this.Pi=this.fl=this.el=this.Jg=this.Kg=this.Hi=this.hi=!1;this.eg=0;this.Rr()};g.Ed=function(){-1===this.$m?
this.Sb=null:this.Sb=this.b.Ag(this.$m);-1===this.an?this.oh=null:this.oh=this.b.Ag(this.an)};g.sn=function(d){this.Sb==d&&(this.Sb=null)};g.ff=function(){this.Sb=null;this.b.Fw(this.xq)};g.tn=function(d){switch(d.which){case 38:d.preventDefault();this.Kg=!0;break;case 37:d.preventDefault();this.hi=!0;break;case 39:d.preventDefault(),this.Hi=!0}};g.un=function(d){switch(d.which){case 38:d.preventDefault();this.Jg=this.Kg=!1;break;case 37:d.preventDefault();this.hi=!1;break;case 39:d.preventDefault(),
this.Hi=!1}};g.gf=function(){this.Kg=this.Hi=this.hi=!1};g.vh=function(){return 0>this.mc?-1:1};g.Mp=function(){var d=null,g=null,k,a;k=this.i.x;a=this.i.y;this.i.x+=this.qb;this.i.y+=this.rb;this.i.G();if(this.Sb&&this.b.xc(this.i,this.Sb)&&(!this.b.jo(this.Sb.type,pc)||this.Sb.V.solidEnabled))return this.i.x=k,this.i.y=a,this.i.G(),this.Sb;(d=this.b.Kb(this.i))||0!==this.wg||(g=this.b.nf(this.i,!0));this.i.x=k;this.i.y=a;this.i.G();if(d){if(this.b.xc(this.i,d))return null;this.Zj=!1;return d}if(g&&
g.length){a=d=0;for(k=g.length;d<k;d++)g[a]=g[d],this.b.xc(this.i,g[d])||a++;if(1<=a)return this.Zj=!0,g[0]}return null};g.La=function(){};g.Vq=function(){var d=this.b.Df(this.i),g,k,a,c,f,e,b,l,n;this.Kg||this.Pi||(this.Jg=!1);var m=this.hi||this.el;a=this.Hi||this.fl;var q=(c=this.Kg||this.Pi)&&!this.Jg;this.Pi=this.fl=this.el=!1;if(this.enabled){this.Gm&&(q=c=a=m=!1);c||(this.eg=0);l=this.Sb;n=!1;this.Yj&&((this.b.Kb(this.i)||this.b.nf(this.i))&&this.b.Yc(this.i,-this.qb,-this.rb,4,!0),this.Yj=
!1);!l||0!==this.H||l.y===this.Nf&&l.x===this.Mf||(g=l.x-this.Mf,k=l.y-this.Nf,this.i.x+=g,this.i.y+=k,this.i.G(),this.Mf=l.x,this.Nf=l.y,n=!0,this.b.Kb(this.i)&&this.b.Yc(this.i,-g,-k,2.5*Math.sqrt(g*g+k*k)));var z=this.Mp();if(k=this.b.Kb(this.i))if(this.i.V.inputPredicted)this.b.Yc(this.i,-this.qb,-this.rb,10,!1);else if(this.b.Zq(this.i,Math.max(this.i.width,this.i.height)/2))this.b.$g(this.i,k);else return;z?(this.wh=this.Ch=!1,0<this.H&&(this.nh||(this.b.En(this.i,-this.qb,-this.rb,z),this.nh=
!0),this.H=0),l!=z)?(this.Sb=z,this.Mf=z.x,this.Nf=z.y,this.b.$g(this.i,z)):n&&(k=this.b.Kb(this.i))&&(this.b.$g(this.i,k),0!==g&&(0<g?this.b.Yc(this.i,-this.Zf,-this.$f):this.b.Yc(this.i,this.Zf,this.$f)),this.b.Yc(this.i,-this.qb,-this.rb)):c||(this.wh=!0);if(z&&q||!z&&this.em&&c&&this.wh&&!this.Ch)l=this.i.x,n=this.i.y,this.i.x-=this.qb,this.i.y-=this.rb,this.i.G(),this.b.Kb(this.i)?q=!1:(this.eg=this.Vm,this.b.trigger(Bc.prototype.m.Js,this.i),this.hd=2,this.H=-this.fi,q=!0,z?this.Jg=!0:this.Ch=
!0),this.i.x=l,this.i.y=n,this.i.G();z||(c&&0<this.eg?(this.H=-this.fi,this.eg-=d):(this.Sb=null,this.H+=this.mc*d,this.H>this.Fk&&(this.H=this.Fk)),q&&(this.Jg=!0));this.nh=!!z;m==a&&(0>this.A?(this.A+=this.ug*d,0<this.A&&(this.A=0)):0<this.A&&(this.A-=this.ug*d,0>this.A&&(this.A=0)));m&&!a&&(this.A=0<this.A?this.A-(this.fd+this.ug)*d:this.A-this.fd*d);a&&!m&&(this.A=0>this.A?this.A+(this.fd+this.ug)*d:this.A+this.fd*d);this.A>this.ne?this.A=this.ne:this.A<-this.ne&&(this.A=-this.ne);m=!1;0!==this.A&&
(l=this.i.x,n=this.i.y,g=this.A*d*this.Zf,k=this.A*d*this.$f,this.i.x+=this.Zf*(1<this.A?1:-1)-this.qb,this.i.y+=this.$f*(1<this.A?1:-1)-this.rb,this.i.G(),c=!1,f=this.b.Kb(this.i),this.i.x=l+g,this.i.y=n+k,this.i.G(),a=this.b.Kb(this.i),!a&&z&&(a=this.b.nf(this.i))&&(this.i.x=l,this.i.y=n,this.i.G(),this.b.xc(this.i,a)?(a=null,c=!1):c=!0,this.i.x=l+g,this.i.y=n+k,this.i.G()),a?(g=Math.abs(this.A*d)+2,f||!this.b.Yc(this.i,-this.qb,-this.rb,g,c,a))?(this.b.$g(this.i,a),g=Math.max(Math.abs(this.A*d*
2.5),30),this.b.Yc(this.i,this.Zf*(0>this.A?1:-1),this.$f*(0>this.A?1:-1),g,!1)?!z||c||this.Zj||(l=this.i.x,n=this.i.y,this.i.x+=this.qb,this.i.y+=this.rb,this.b.Kb(this.i)?this.b.Yc(this.i,-this.qb,-this.rb,3,!1)||(this.i.x=l,this.i.y=n,this.i.G()):(this.i.x=l,this.i.y=n,this.i.G())):(this.i.x=l,this.i.y=n,this.i.G()),c||(this.A=0)):!f&&!q&&Math.abs(this.H)<Math.abs(this.fi/4)&&(this.H=0,z||(m=!0)):(l=this.Mp(),z&&!l?(k=Math.ceil(Math.abs(this.A*d))+2,l=this.i.x,n=this.i.y,this.i.x+=this.qb*k,this.i.y+=
this.rb*k,this.i.G(),this.b.Kb(this.i)||this.b.nf(this.i)?this.b.Yc(this.i,-this.qb,-this.rb,k+2,!0):(this.i.x=l,this.i.y=n,this.i.G())):l&&0===this.H&&this.b.En(this.i,-this.qb,-this.rb,l)));if(0!==this.H){l=this.i.x;n=this.i.y;this.i.x+=this.H*d*this.qb;this.i.y+=this.H*d*this.rb;g=this.i.x;a=this.i.y;this.i.G();k=this.b.Kb(this.i);c=!1;if(!k&&0<this.H&&!z){if((c=0<this.wg?null:this.b.nf(this.i,!0))&&c.length){if(this.oh){this.i.x=l;this.i.y=n;this.i.G();b=f=0;for(e=c.length;f<e;f++)c[b]=c[f],this.b.xc(this.i,
c[f])||b++;c.length=b;this.i.x=g;this.i.y=a;this.i.G()}1<=c.length&&(k=c[0])}c=!!k}k&&(this.b.$g(this.i,k),this.eg=0,g=c?Math.abs(this.H*d*2.5+10):Math.max(Math.abs(this.H*d*2.5+10),30),this.b.Yc(this.i,this.qb*(0>this.H?1:-1),this.rb*(0>this.H?1:-1),g,c,k)?(this.Sb=k,this.Mf=k.x,this.Nf=k.y,(this.Zj=c)&&(m=!0),this.H=0):(this.i.x=l,this.i.y=n,this.i.G(),this.nh=!0,c||(this.H=0)))}3!==this.hd&&0<this.H&&!z&&(this.b.trigger(Bc.prototype.m.Hs,this.i),this.hd=3);if(z||m)3===this.hd||m||q&&0===this.H?
(this.b.trigger(Bc.prototype.m.Ao,this.i),this.hd=0===this.A&&0===this.H?0:1):(0!==this.hd&&0===this.A&&0===this.H&&(this.b.trigger(Bc.prototype.m.Go,this.i),this.hd=0),1===this.hd||0===this.A&&0===this.H||q||(this.b.trigger(Bc.prototype.m.Do,this.i),this.hd=1));0<this.wg&&this.wg--;this.oh=this.b.nf(this.i)}};d.prototype.ws=function(){return 0!==this.A||0!==this.H};d.prototype.Js=function(){return!0};d.prototype.Hs=function(){return!0};d.prototype.Go=function(){return!0};d.prototype.Do=function(){return!0};
d.prototype.Ao=function(){return!0};k.m=new d;q.prototype.Us=function(d){this.ne=d;0>this.ne&&(this.ne=0)};q.prototype.Zs=function(d){switch(d){case 0:this.el=!0;break;case 1:this.fl=!0;break;case 2:this.Pi=!0}};q.prototype.nj=function(d){this.enabled!==(1===d)&&(this.enabled=1===d,this.enabled||(this.Sb=null))};k.L=new q;k.Xa=new function(){}})();function Cc(d){this.b=d}
(function(){function d(){}function q(){}var k=Cc.prototype;k.ja=function(d){this.behavior=d;this.b=d.b};k.ja.prototype.O=function(){};k.Z=function(d,g){this.type=d;this.behavior=d.behavior;this.i=g;this.b=d.b};var g=k.Z.prototype;g.O=function(){this.zb={}};g.ff=function(){$a(this.zb)};g.ob=function(){var d={},g,k;for(g in this.zb)this.zb.hasOwnProperty(g)&&(k=this.zb[g],d[g]={c:k.current.K,t:k.total.K,d:k.duration,r:k.In});return d};g.Gb=function(d){this.zb={};for(var g in d)d.hasOwnProperty(g)&&
(this.zb[g]={current:new eb,total:new eb,duration:d[g].d,In:d[g].r},this.zb[g].current.K=d[g].c,this.zb[g].total.K=d[g].t)};g.La=function(){var d=this.b.Df(this.i),g,k;for(g in this.zb)this.zb.hasOwnProperty(g)&&(k=this.zb[g],k.current.add(d),k.total.add(d))};g.Vi=function(){var d,g;for(d in this.zb)this.zb.hasOwnProperty(d)&&(g=this.zb[d],g.current.K>=g.duration&&(g.In?g.current.K-=g.duration:delete this.zb[d]))};d.prototype.Ns=function(d){d=d.toLowerCase();return(d=this.zb[d])?d.current.K>=d.duration:
!1};k.m=new d;q.prototype.ct=function(d,g,k){this.zb[k.toLowerCase()]={current:new eb,total:new eb,duration:d,In:1===g}};q.prototype.et=function(d){d=d.toLowerCase();this.zb.hasOwnProperty(d)&&delete this.zb[d]};k.L=new q;k.Xa=new function(){}})();function Dc(d){this.b=d}
(function(){var d=Dc.prototype;d.ja=function(d){this.behavior=d;this.b=d.b};d.ja.prototype.O=function(){};d.Z=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b;this.mode=0};d=d.Z.prototype;d.O=function(){this.mode=this.u[0]};d.La=function(){};d.Vi=function(){this.i.ua();var d=this.i.Ha,k=this.i.k.Za,g=!1;0===this.mode?(0>this.i.x&&(this.i.x=0,g=!0),0>this.i.y&&(this.i.y=0,g=!0),this.i.x>k.width&&(this.i.x=k.width,g=!0),this.i.y>k.height&&(this.i.y=k.height,g=!0)):(0>d.left&&(this.i.x-=
d.left,g=!0),0>d.top&&(this.i.y-=d.top,g=!0),d.right>k.width&&(this.i.x-=d.right-k.width,g=!0),d.bottom>k.height&&(this.i.y-=d.bottom-k.height,g=!0));g&&this.i.G()}})();function Ec(d){this.b=d;this.Yn=this.dl=this.Oi=this.Xn=0}
(function(){function d(){}var q=Ec.prototype;q.ja=function(d){this.behavior=d;this.b=d.b};q.ja.prototype.O=function(){};q.Z=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b};var k=q.Z.prototype;k.O=function(){this.enabled=0!==this.u[0]};k.ob=function(){return{smg:this.behavior.Xn,ss:this.behavior.Oi,se:this.behavior.dl,smd:this.behavior.Yn}};k.Gb=function(d){this.behavior.Xn=d.smg;this.behavior.Oi=d.ss;this.behavior.dl=d.se;this.behavior.Yn=d.smd};k.La=function(){};k.Vi=function(){if(this.enabled){var d=
this.behavior.Gk.Ae(),k=0,q=0,p,a,c,f=0;p=0;for(a=d.length;p<a;p++){a:{c=d[p];for(var e=void 0,b=void 0,l=void 0,e=0,b=c.P.length;e<b;++e)if(l=c.P[e],l.behavior instanceof Ec){c=l;break a}c=null}c&&c.enabled&&(k+=d[p].x,q+=d[p].y,++f)}d=this.i.k.Za;a=this.b.Fb.K;c=p=0;a>=this.behavior.Oi&&a<this.behavior.dl&&(p=this.behavior.Xn*Math.min(this.b.fg,1),0===this.behavior.Yn&&(p*=1-(a-this.behavior.Oi)/(this.behavior.dl-this.behavior.Oi)),a=Math.random()*Math.PI*2,c=Math.random()*p,p=Math.cos(a)*c,c*=
Math.sin(a));d.Sn(k/f+p);d.Tn(q/f+c)}};d.prototype.nj=function(d){this.enabled=0!==d};q.L=new d})();function pc(d){this.b=d}(function(){function d(){}var q=pc.prototype;q.ja=function(d){this.behavior=d;this.b=d.b};q.ja.prototype.O=function(){};q.Z=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b};var k=q.Z.prototype;k.O=function(){this.i.V.solidEnabled=0!==this.u[0]};k.La=function(){};q.m=new function(){};d.prototype.nj=function(d){this.i.V.solidEnabled=!!d};q.L=new d})();
function oc(){return[tc,qc,rc,sc,wc,Z,vc,uc,pc,Bc,Ec,Ac,Cc,Dc,xc,yc,rc.prototype.m.vs,Z.prototype.L.Vs,Bc.prototype.m.Do,Z.prototype.L.Rs,Z.prototype.m.vo,Bc.prototype.L.Us,Bc.prototype.m.Go,rc.prototype.m.yo,qc.prototype.L.Play,Bc.prototype.m.Ao,Bc.prototype.m.ws,X.prototype.m.ks,wc.prototype.L.Ho,X.prototype.m.gs,Z.prototype.L.gt,X.prototype.L.Yr,Z.prototype.m.Ds,Ac.prototype.L.hs,Z.prototype.m.qs,Z.prototype.L.$s,Z.prototype.L.es,Z.prototype.L.Xr,Z.prototype.L.Xs,Z.prototype.Xa.it,Z.prototype.Xa.os,
Z.prototype.m.cs,Z.prototype.L.Ts,Bc.prototype.L.Zs,X.prototype.m.ds,X.prototype.L.Ys,Z.prototype.L.Ws,Cc.prototype.m.Ns,Z.prototype.L.ht,Cc.prototype.L.ct,Z.prototype.m.ts,Z.prototype.L.Ss,X.prototype.m.uo,Cc.prototype.L.et,X.prototype.L.ls,X.prototype.m.Bo,rc.prototype.m.Al,X.prototype.L.ns,sc.prototype.m.Bl,qc.prototype.L.dt,xc.prototype.L.Qs,xc.prototype.L.nj]};
