Skip to content
Permalink
ec434ebc40
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
382 lines (382 sloc) 184 KB
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,w,da,ea,fa,L,ga,ha,ia,ja,la,na,O,oa,pa,Q,qa,sa,ta,ua,U,va,ya,za,Aa,Ba,V,Da,Ea,W,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb={},Ub={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,e,g,f){this.set(a,e,g,f)}function p(){this.sb=this.rb=this.wb=this.ub=this.Eb=this.Db=this.bb=this.ab=0}function n(a,e,g,f){a<e?g<f?(B=a<g?a:g,A=e>f?e:f):(B=a<f?a:f,A=e>g?e:g):g<f?(B=e<g?e:g,A=a>f?a:f):(B=e<f?e:f,A=a>g?a:g)}function h(){this.items=this.vd=null;this.dh=0;T&&(this.vd=new Set);this.ng=[];this.fe=!0}function k(a){R[P++]=a}function t(){this.ca=this.Hj=this.y=this.hk=0}function b(a){this.Qa=[];this.di=this.fi=this.gi=this.ei=0;this.Mh(a)}function a(a,e){this.lk=
a;this.kk=e;this.cells={}}function d(a,e){this.lk=a;this.kk=e;this.cells={}}function m(a,e,g){var f;return F.length?(f=F.pop(),f.Rk=a,f.x=e,f.y=g,f):new aa(a,e,g)}function e(a,e,g){this.Rk=a;this.x=e;this.y=g;this.hb=new ba}function f(a,e,g){var f;return C.length?(f=C.pop(),f.Rk=a,f.x=e,f.y=g,f):new ca(a,e,g)}function r(a,e,g){this.Rk=a;this.x=e;this.y=g;this.hb=[];this.Rf=!0;this.rd=new ba;this.tg=!1}function l(a,e){return a.fd-e.fd}w=function(a){window.console&&window.console.log&&window.console.log(a)};
da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};L=function(a){return"string"===typeof a};ga=function(a){return 0<a&&0===(a-1&a)};ha=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};ia=function(a){return 0>a?-a:a};ja=function(a,e){return a>e?a:e};la=function(a,e){return a<e?a:e};na=Math.PI;O=function(a){return 0<=a?a|0:(a|0)-1};oa=function(a){var e=a|0;return e===a?e:e+1};
pa=function(a,e,g,f,d,l,x,v){var y,m,q,b;a<g?(m=a,y=g):(m=g,y=a);d<x?(b=d,q=x):(b=x,q=d);if(y<b||m>q)return!1;e<f?(m=e,y=f):(m=f,y=e);l<v?(b=l,q=v):(b=v,q=l);if(y<b||m>q)return!1;y=d-a+x-g;m=l-e+v-f;a=g-a;e=f-e;d=x-d;l=v-l;v=ia(e*d-l*a);return ia(d*m-l*y)>v?!1:ia(a*m-e*y)<=v};c.prototype.set=function(a,e,g,f){this.left=a;this.top=e;this.right=g;this.bottom=f};c.prototype.Ag=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right-
this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};c.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)};c.prototype.Ln=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.Mn=function(a,e,g){return!(a.right+
e<this.left||a.bottom+g<this.top||a.left+e>this.right||a.top+g>this.bottom)};c.prototype.xb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};c.prototype.Hg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};Q=c;p.prototype.gg=function(a){this.ab=a.left;this.bb=a.top;this.Db=a.right;this.Eb=a.top;this.ub=a.right;this.wb=a.bottom;this.rb=a.left;this.sb=a.bottom};p.prototype.np=function(a,e){if(0===e)this.gg(a);else{var g=
Math.sin(e),f=Math.cos(e),d=a.left*g,l=a.top*g,x=a.right*g,g=a.bottom*g,v=a.left*f,y=a.top*f,m=a.right*f,f=a.bottom*f;this.ab=v-l;this.bb=y+d;this.Db=m-l;this.Eb=y+x;this.ub=m-g;this.wb=f+x;this.rb=v-g;this.sb=f+d}};p.prototype.offset=function(a,e){this.ab+=a;this.bb+=e;this.Db+=a;this.Eb+=e;this.ub+=a;this.wb+=e;this.rb+=a;this.sb+=e;return this};var B=0,A=0;p.prototype.Wm=function(a){n(this.ab,this.Db,this.ub,this.rb);a.left=B;a.right=A;n(this.bb,this.Eb,this.wb,this.sb);a.top=B;a.bottom=A};p.prototype.xb=
function(a,e){var g=this.ab,f=this.bb,d=this.Db-g,l=this.Eb-f,x=this.ub-g,v=this.wb-f,y=a-g,m=e-f,q=d*d+l*l,b=d*x+l*v,l=d*y+l*m,r=x*x+v*v,c=x*y+v*m,k=1/(q*r-b*b),d=(r*l-b*c)*k,q=(q*c-b*l)*k;if(0<=d&&0<q&&1>d+q)return!0;d=this.rb-g;l=this.sb-f;q=d*d+l*l;b=d*x+l*v;l=d*y+l*m;k=1/(q*r-b*b);d=(r*l-b*c)*k;q=(q*c-b*l)*k;return 0<=d&&0<q&&1>d+q};p.prototype.vc=function(a,e){if(e)switch(a){case 0:return this.ab;case 1:return this.Db;case 2:return this.ub;case 3:return this.rb;case 4:return this.ab;default:return this.ab}else switch(a){case 0:return this.bb;
case 1:return this.Eb;case 2:return this.wb;case 3:return this.sb;case 4:return this.bb;default:return this.bb}};p.prototype.Do=function(){return(this.ab+this.Db+this.ub+this.rb)/4};p.prototype.Eo=function(){return(this.bb+this.Eb+this.wb+this.sb)/4};p.prototype.Xg=function(a,e,g,f){if(this.xb(a,e)||this.xb(g,f))return!0;var d,l,x,v,y;for(y=0;4>y;y++)if(d=this.vc(y,!0),l=this.vc(y,!1),x=this.vc(y+1,!0),v=this.vc(y+1,!1),pa(a,e,g,f,d,l,x,v))return!0;return!1};p.prototype.Kn=function(a){var e=a.Do(),
g=a.Eo();if(this.xb(e,g))return!0;e=this.Do();g=this.Eo();if(a.xb(e,g))return!0;var f,d,l,x,v,y,m,q;for(m=0;4>m;m++)for(q=0;4>q;q++)if(e=this.vc(m,!0),g=this.vc(m,!1),f=this.vc(m+1,!0),d=this.vc(m+1,!1),l=a.vc(q,!0),x=a.vc(q,!1),v=a.vc(q+1,!0),y=a.vc(q+1,!1),pa(e,g,f,d,l,x,v,y))return!0;return!1};qa=p;sa=function(a,e){for(var g in e)e.hasOwnProperty(g)&&(a[g]=e[g]);return a};ta=function(a,e){var g,f;e=O(e);if(!(0>e||e>=a.length)){g=e;for(f=a.length-1;g<f;g++)a[g]=a[g+1];ua(a,f)}};ua=function(a,e){a.length=
e};U=function(a){ua(a,0)};va=function(a,e){U(a);var g,f;g=0;for(f=e.length;g<f;++g)a[g]=e[g]};ya=function(a,e){a.push.apply(a,e)};za=function(a,e){var g,f;g=0;for(f=a.length;g<f;++g)if(a[g]===e)return g;return-1};Aa=function(a,e){var g=za(a,e);-1!==g&&ta(a,g)};Ba=function(a,e,g){return a<e?e:a>g?g:a};V=function(a){return a/(180/na)};Da=function(a){return 180/na*a};Ea=function(a){a%=360;0>a&&(a+=360);return a};W=function(a){a%=2*na;0>a&&(a+=2*na);return a};Fa=function(a){return Ea(Da(a))};Ga=function(a){return W(V(a))};
Ha=function(a,e,g,f){return Math.atan2(f-e,g-a)};Ia=function(a,e){if(a===e)return 0;var g=Math.sin(a),f=Math.cos(a),d=Math.sin(e),l=Math.cos(e),g=g*d+f*l;return 1<=g?0:-1>=g?na:Math.acos(g)};Ja=function(a,e,g){var f=Math.sin(a),d=Math.cos(a),l=Math.sin(e),x=Math.cos(e);return Math.acos(f*l+d*x)>g?0<d*l-f*x?W(a+g):W(a-g):W(e)};Ka=function(a,e){var g=Math.sin(a),f=Math.cos(a),d=Math.sin(e),l=Math.cos(e);return 0>=f*d-g*l};La=function(a,e,g,f){a=g-a;e=f-e;return Math.sqrt(a*a+e*e)};Ma=function(a,e){return!a!==
!e};Na=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};Oa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var z=+new Date;Pa=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 g=!1,q=g=!1,u=!1;"undefined"!==typeof window&&
(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),g=!g&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var T=!g&&!u&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;h.prototype.contains=function(a){return this.Id()?!1:T?this.vd.has(a):this.items&&this.items.hasOwnProperty(a)};h.prototype.add=function(a){if(T)this.vd.has(a)||(this.vd.add(a),this.fe=!1);else{var e=a.toString(),g=this.items;
g?g.hasOwnProperty(e)||(g[e]=a,this.dh++,this.fe=!1):(this.items={},this.items[e]=a,this.dh=1,this.fe=!1)}};h.prototype.remove=function(a){if(!this.Id())if(T)this.vd.has(a)&&(this.vd["delete"](a),this.fe=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.dh--,this.fe=!1)}};h.prototype.clear=function(){this.Id()||(T?this.vd.clear():(this.items=null,this.dh=0),U(this.ng),this.fe=!0)};h.prototype.Id=function(){return 0===this.count()};h.prototype.count=function(){return T?
this.vd.size:this.dh};var R=null,P=0;h.prototype.su=function(){if(!this.fe){if(T)U(this.ng),R=this.ng,P=0,this.vd.forEach(k),R=null,P=0;else{var a=this.ng;U(a);var e,g=0,f=this.items;if(f)for(e in f)f.hasOwnProperty(e)&&(a[g++]=f[e])}this.fe=!0}};h.prototype.Jc=function(){this.su();return this.ng};ba=h;new ba;Qa=function(a,e){T?Ra(a,e.vd):Sa(a,e.Jc())};Ra=function(a,e){var g,f,d,l;f=g=0;for(d=a.length;g<d;++g)l=a[g],e.has(l)||(a[f++]=l);ua(a,f)};Sa=function(a,e){var g,f,d,l;f=g=0;for(d=a.length;g<
d;++g)l=a[g],-1===za(e,l)&&(a[f++]=l);ua(a,f)};t.prototype.add=function(a){this.y=a-this.hk;this.Hj=this.ca+this.y;this.hk=this.Hj-this.ca-this.y;this.ca=this.Hj};t.prototype.reset=function(){this.ca=this.Hj=this.y=this.hk=0};Ta=t;Ua=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Mh=function(a){this.Yo=a;this.Dc=a.length/2;this.Qa.length=a.length;this.ji=this.ki=-1;this.Zm=0};b.prototype.ef=function(){return!this.Yo.length};b.prototype.ta=function(){for(var a=this.Qa,
e=a[0],g=e,f=a[1],d=f,l,x,v=1,m=this.Dc;v<m;++v)x=2*v,l=a[x],x=a[x+1],l<e&&(e=l),l>g&&(g=l),x<f&&(f=x),x>d&&(d=x);this.ei=e;this.fi=g;this.gi=f;this.di=d};b.prototype.gg=function(a,e,g){this.Qa.length=8;this.Dc=4;var f=this.Qa;f[0]=a.left-e;f[1]=a.top-g;f[2]=a.right-e;f[3]=a.top-g;f[4]=a.right-e;f[5]=a.bottom-g;f[6]=a.left-e;f[7]=a.bottom-g;this.ki=a.right-a.left;this.ji=a.bottom-a.top;this.ta()};b.prototype.fg=function(a,e,g,f,d){this.Qa.length=8;this.Dc=4;var l=this.Qa;l[0]=a.ab-e;l[1]=a.bb-g;l[2]=
a.Db-e;l[3]=a.Eb-g;l[4]=a.ub-e;l[5]=a.wb-g;l[6]=a.rb-e;l[7]=a.sb-g;this.ki=f;this.ji=d;this.ta()};b.prototype.mp=function(a){this.Dc=a.Dc;va(this.Qa,a.Qa);this.ei=a.ei;this.gi-a.gi;this.fi=a.fi;this.di=a.di};b.prototype.Me=function(a,e,g){if(this.ki!==a||this.ji!==e||this.Zm!==g){this.ki=a;this.ji=e;this.Zm=g;var f,d,l,x,v,m=0,q=1,b=this.Yo,r=this.Qa;0!==g&&(m=Math.sin(g),q=Math.cos(g));g=0;for(l=this.Dc;g<l;g++)f=2*g,d=f+1,x=b[f]*a,v=b[d]*e,r[f]=x*q-v*m,r[d]=v*q+x*m;this.ta()}};b.prototype.xb=function(a,
e){var g=this.Qa;if(a===g[0]&&e===g[1])return!0;var f,d,l,x=this.Dc,v=this.ei-110,m=this.gi-101,q=this.fi+131,b=this.di+120,r,c,k=0,h=0;for(f=0;f<x;f++)d=2*f,l=(f+1)%x*2,r=g[d],d=g[d+1],c=g[l],l=g[l+1],pa(v,m,a,e,r,d,c,l)&&k++,pa(q,b,a,e,r,d,c,l)&&h++;return 1===k%2||1===h%2};b.prototype.Wg=function(a,e,g){var f=a.Qa,d=this.Qa;if(this.xb(f[0]+e,f[1]+g)||a.xb(d[0]-e,d[1]-g))return!0;var l,x,v,m,q,b,r,c,k,h,B,u;l=0;for(m=this.Dc;l<m;l++)for(x=2*l,v=(l+1)%m*2,c=d[x],x=d[x+1],k=d[v],h=d[v+1],v=0,r=a.Dc;v<
r;v++)if(q=2*v,b=(v+1)%r*2,B=f[q]+e,q=f[q+1]+g,u=f[b]+e,b=f[b+1]+g,pa(c,x,k,h,B,q,u,b))return!0;return!1};b.prototype.Xg=function(a,e,g,f,d,l){var x=this.Qa;if(this.xb(g-a,f-e))return!0;var v,m,q,b,r,c;v=0;for(m=this.Dc;v<m;v++)if(q=2*v,b=(v+1)%m*2,r=x[q]+a,q=x[q+1]+e,c=x[b]+a,b=x[b+1]+e,pa(g,f,d,l,r,q,c,b))return!0;return!1};Va=b;a.prototype.oe=function(a,e,g){var f;f=this.cells[a];return f?(f=f[e])?f:g?(f=m(this,a,e),this.cells[a][e]=f):null:g?(f=m(this,a,e),this.cells[a]={},this.cells[a][e]=f):
null};a.prototype.Kb=function(a){return O(a/this.lk)};a.prototype.Lb=function(a){return O(a/this.kk)};a.prototype.update=function(a,e,g){var f,d,l,x,v;if(e)for(f=e.left,d=e.right;f<=d;++f)for(l=e.top,x=e.bottom;l<=x;++l)if(!g||!g.xb(f,l))if(v=this.oe(f,l,!1))v.remove(a),v.Id()&&(v.hb.clear(),1E3>F.length&&F.push(v),this.cells[f][l]=null);if(g)for(f=g.left,d=g.right;f<=d;++f)for(l=g.top,x=g.bottom;l<=x;++l)e&&e.xb(f,l)||this.oe(f,l,!0).Wk(a)};a.prototype.tj=function(a,e){var g,f,d,l,x,v;g=this.Kb(a.left);
d=this.Lb(a.top);f=this.Kb(a.right);for(x=this.Lb(a.bottom);g<=f;++g)for(l=d;l<=x;++l)(v=this.oe(g,l,!1))&&v.dump(e)};Wa=a;d.prototype.oe=function(a,e,g){var d;d=this.cells[a];return d?(d=d[e])?d:g?(d=f(this,a,e),this.cells[a][e]=d):null:g?(d=f(this,a,e),this.cells[a]={},this.cells[a][e]=d):null};d.prototype.Kb=function(a){return O(a/this.lk)};d.prototype.Lb=function(a){return O(a/this.kk)};d.prototype.update=function(a,e,g){var f,d,l,x,v;if(e)for(f=e.left,d=e.right;f<=d;++f)for(l=e.top,x=e.bottom;l<=
x;++l)if(!g||!g.xb(f,l))if(v=this.oe(f,l,!1))v.remove(a),v.Id()&&(v.reset(),1E3>C.length&&C.push(v),this.cells[f][l]=null);if(g)for(f=g.left,d=g.right;f<=d;++f)for(l=g.top,x=g.bottom;l<=x;++l)e&&e.xb(f,l)||this.oe(f,l,!0).Wk(a)};d.prototype.tj=function(a,e,g,f,d){var l,x;a=this.Kb(a);e=this.Lb(e);g=this.Kb(g);for(l=this.Lb(f);a<=g;++a)for(f=e;f<=l;++f)(x=this.oe(a,f,!1))&&x.dump(d)};d.prototype.Jt=function(a){var e,g,f,d,l;e=a.left;f=a.top;g=a.right;for(d=a.bottom;e<=g;++e)for(a=f;a<=d;++a)if(l=this.oe(e,
a,!1))l.Rf=!1};Xa=d;var F=[];e.prototype.Id=function(){return this.hb.Id()};e.prototype.Wk=function(a){this.hb.add(a)};e.prototype.remove=function(a){this.hb.remove(a)};e.prototype.dump=function(a){ya(a,this.hb.Jc())};aa=e;var C=[];r.prototype.Id=function(){if(!this.hb.length)return!0;if(this.hb.length>this.rd.count())return!1;this.Fk();return!0};r.prototype.Wk=function(a){this.rd.contains(a)?(this.rd.remove(a),this.rd.Id()&&(this.tg=!1)):this.hb.length?(this.hb[this.hb.length-1].md()>a.md()&&(this.Rf=
!1),this.hb.push(a)):(this.hb.push(a),this.Rf=!0)};r.prototype.remove=function(a){this.rd.add(a);this.tg=!0;30<=this.rd.count()&&this.Fk()};r.prototype.Fk=function(){this.tg&&(this.rd.count()===this.hb.length?this.reset():(Qa(this.hb,this.rd),this.rd.clear(),this.tg=!1))};r.prototype.Tr=function(){this.Rf||(this.hb.sort(l),this.Rf=!0)};r.prototype.reset=function(){U(this.hb);this.Rf=!0;this.rd.clear();this.tg=!1};r.prototype.dump=function(a){this.Fk();this.Tr();this.hb.length&&a.push(this.hb)};ca=
r;var H="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":H[a-1]};$a=function(a,e,g){if(g)switch(a.Cb=g.ONE,a.zb=g.ONE_MINUS_SRC_ALPHA,e){case 1:a.Cb=g.ONE;a.zb=g.ONE;break;case 3:a.Cb=g.ONE;a.zb=g.ZERO;break;case 4:a.Cb=g.ONE_MINUS_DST_ALPHA;a.zb=g.ONE;break;case 5:a.Cb=g.DST_ALPHA;a.zb=g.ZERO;break;case 6:a.Cb=g.ZERO;a.zb=g.SRC_ALPHA;break;case 7:a.Cb=g.ONE_MINUS_DST_ALPHA;
a.zb=g.ZERO;break;case 8:a.Cb=g.ZERO;a.zb=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.Cb=g.DST_ALPHA;a.zb=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.Cb=g.ONE_MINUS_DST_ALPHA,a.zb=g.SRC_ALPHA}};ab=function(a){return Math.round(1E6*a)/1E6};bb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};cb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||bb(a.tagName,"canvas")?!0:!1}})();
var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(c){var p=new Vb(3);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2]);return p}function Xb(c){var p=new Vb(16);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2],p[3]=c[3],p[4]=c[4],p[5]=c[5],p[6]=c[6],p[7]=c[7],p[8]=c[8],p[9]=c[9],p[10]=c[10],p[11]=c[11],p[12]=c[12],p[13]=c[13],p[14]=c[14],p[15]=c[15]);return p}
function Yb(c,p){p[0]=c[0];p[1]=c[1];p[2]=c[2];p[3]=c[3];p[4]=c[4];p[5]=c[5];p[6]=c[6];p[7]=c[7];p[8]=c[8];p[9]=c[9];p[10]=c[10];p[11]=c[11];p[12]=c[12];p[13]=c[13];p[14]=c[14];p[15]=c[15]}function Zb(c,p){var n=p[0],h=p[1];p=p[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=h;c[5]*=h;c[6]*=h;c[7]*=h;c[8]*=p;c[9]*=p;c[10]*=p;c[11]*=p}
function $b(c,p,n,h){h||(h=Xb());var k,t,b,a,d,m,e,f,r=c[0],l=c[1];c=c[2];t=n[0];b=n[1];k=n[2];n=p[1];m=p[2];r===p[0]&&l===n&&c===m?(c=h,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(n=r-p[0],m=l-p[1],e=c-p[2],f=1/Math.sqrt(n*n+m*m+e*e),n*=f,m*=f,e*=f,p=b*e-k*m,k=k*n-t*e,t=t*m-b*n,(f=Math.sqrt(p*p+k*k+t*t))?(f=1/f,p*=f,k*=f,t*=f):t=k=p=0,b=m*t-e*k,a=e*p-n*t,d=n*k-m*p,(f=Math.sqrt(b*b+a*a+d*d))?(f=1/f,b*=f,a*=f,d*=f):d=a=b=0,
h[0]=p,h[1]=b,h[2]=n,h[3]=0,h[4]=k,h[5]=a,h[6]=m,h[7]=0,h[8]=t,h[9]=d,h[10]=e,h[11]=0,h[12]=-(p*r+k*l+t*c),h[13]=-(b*r+a*l+d*c),h[14]=-(n*r+m*l+e*c),h[15]=1)}
(function(){function c(a,d,m){this.qe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ua=!!m;this.Ni=this.Yg=!1;this.sk=0;this.Uj=1;this.Am=1E3;this.yu=(this.Am-this.Uj)/32768;this.ik=Wb([0,0,100]);this.no=Wb([0,0,0]);this.Hp=Wb([0,1,0]);this.Zh=Wb([1,1,1]);this.kn=!0;this.hj=Xb();this.qc=Xb();this.jl=Xb();this.rk=Xb();this.H=a;this.Gn()}function p(a,d,m){this.H=a;this.Nh=d;this.name=m;this.Ac=a.getAttribLocation(d,"aPos");this.ye=a.getAttribLocation(d,
"aTex");this.lo=a.getUniformLocation(d,"matP");this.cj=a.getUniformLocation(d,"matMV");this.Yf=a.getUniformLocation(d,"opacity");this.ul=a.getUniformLocation(d,"colorFill");this.mo=a.getUniformLocation(d,"samplerFront");this.nh=a.getUniformLocation(d,"samplerBack");this.nf=a.getUniformLocation(d,"destStart");this.lf=a.getUniformLocation(d,"destEnd");this.ph=a.getUniformLocation(d,"seconds");this.xl=a.getUniformLocation(d,"pixelWidth");this.wl=a.getUniformLocation(d,"pixelHeight");this.mh=a.getUniformLocation(d,
"layerScale");this.lh=a.getUniformLocation(d,"layerAngle");this.qh=a.getUniformLocation(d,"viewOrigin");this.oh=a.getUniformLocation(d,"scrollPos");this.qt=!!(this.xl||this.wl||this.ph||this.nh||this.nf||this.lf||this.mh||this.lh||this.qh||this.oh);this.vo=this.wo=-999;this.gj=1;this.ro=this.qo=0;this.to=this.po=this.oo=1;this.zo=this.yo=this.xo=this.Bo=this.Ao=this.so=0;this.il=[];this.uo=Xb();this.Yf&&a.uniform1f(this.Yf,1);this.ul&&a.uniform4f(this.ul,1,1,1,1);this.mo&&a.uniform1i(this.mo,0);this.nh&&
a.uniform1i(this.nh,1);this.nf&&a.uniform2f(this.nf,0,0);this.lf&&a.uniform2f(this.lf,1,1);this.mh&&a.uniform1f(this.mh,1);this.lh&&a.uniform1f(this.lh,0);this.qh&&a.uniform2f(this.qh,0,0);this.oh&&a.uniform2f(this.oh,0,0);this.ph&&a.uniform1f(this.ph,0);this.Xe=!1}function n(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]&&a[9]===d[9]&&a[10]===d[10]&&a[11]===d[11]&&a[12]===d[12]&&a[13]===d[13]&&a[14]===d[14]&&a[15]===
d[15]}function h(a,d){this.type=a;this.G=d;this.H=d.H;this.nd=this.Ib=this.Po=0;this.S=this.Hc=null;this.op=[]}var k=Xb();c.prototype.Gn=function(){var a=this.H,d;this.ao=1;this.hf=this.ue=null;this.qi=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.ua?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.co=a.ONE;this.Zn=a.ONE_MINUS_SRC_ALPHA;
this.Sj=new Float32Array(8E3*(this.ua?3:2));this.Ij=new Float32Array(16E3);this.Uo=new Float32Array(32E3);this.El=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.El);a.bufferData(a.ARRAY_BUFFER,this.Uo.byteLength,a.DYNAMIC_DRAW);this.Yh=Array(4);this.Sh=Array(4);for(d=0;4>d;d++)this.Yh[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Yh[d]),a.bufferData(a.ARRAY_BUFFER,this.Sj.byteLength,a.DYNAMIC_DRAW),this.Sh[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Sh[d]),a.bufferData(a.ARRAY_BUFFER,
this.Ij.byteLength,a.DYNAMIC_DRAW);this.Ad=0;this.xt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.xt);for(var m=new Uint16Array(12E3),e=d=0;12E3>d;)m[d++]=e,m[d++]=e+1,m[d++]=e+2,m[d++]=e,m[d++]=e+2,m[d++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,m,a.STATIC_DRAW);this.Fl=this.jg=this.Xd=0;this.Ma=[];d=this.ua?"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}";m=this.Bg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},d,"<default>");this.Ma.push(m);m=this.Bg({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.Ma.push(m);m=this.Bg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.Ma.push(m);m=this.Bg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.Ma.push(m);for(var f in ac)ac.hasOwnProperty(f)&&this.Ma.push(this.Bg(ac[f],d,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ee=[];this.zd=0;this.Ab=!1;this.gn=this.gh=-1;this.Hf=null;this.Ek=a.createFramebuffer();this.si=this.uj=null;this.Um=!1;this.ua&&(this.si=a.createRenderbuffer());this.Ge=Wb([0,0,0]);this.Co=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Co&&(this.Co=2048);this.Wb(0)};p.prototype.vm=function(a){n(this.uo,a)||(Yb(a,this.uo),this.H.uniformMatrix4fv(this.cj,
!1,a))};c.prototype.Bg=function(a,d,m){var e=this.H,f=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(f,a.src);e.compileShader(f);if(!e.getShaderParameter(f,e.COMPILE_STATUS))return e.deleteShader(f),null;var b=e.createShader(e.VERTEX_SHADER);e.shaderSource(b,d);e.compileShader(b);if(!e.getShaderParameter(b,e.COMPILE_STATUS))return e.deleteShader(f),e.deleteShader(b),null;d=e.createProgram();e.attachShader(d,f);e.attachShader(d,b);e.linkProgram(d);if(!e.getProgramParameter(d,e.LINK_STATUS))return e.deleteShader(f),
e.deleteShader(b),e.deleteProgram(d),null;e.useProgram(d);e.deleteShader(f);e.deleteShader(b);m=new p(e,d,m);m.Ck=a.Ck||0;m.Dk=a.Dk||0;m.dn=!!a.dn;m.Zc=!!a.Zc;m.Sm=!!a.Sm;m.T=a.T||[];a=0;for(f=m.T.length;a<f;a++)m.T[a][1]=e.getUniformLocation(d,m.T[a][0]),m.il.push(0),e.uniform1f(m.T[a][1],0);return m};c.prototype.Ok=function(a){var d,m;d=0;for(m=this.Ma.length;d<m;d++)if(this.Ma[d].name===a)return d;return-1};c.prototype.Xo=function(a,d,m){var e=this.qc,f=this.hj,b=[0,0,0,0,0,0,0,0];b[0]=e[0]*a+
e[4]*d+e[12];b[1]=e[1]*a+e[5]*d+e[13];b[2]=e[2]*a+e[6]*d+e[14];b[3]=e[3]*a+e[7]*d+e[15];b[4]=f[0]*b[0]+f[4]*b[1]+f[8]*b[2]+f[12]*b[3];b[5]=f[1]*b[0]+f[5]*b[1]+f[9]*b[2]+f[13]*b[3];b[6]=f[2]*b[0]+f[6]*b[1]+f[10]*b[2]+f[14]*b[3];b[7]=-b[2];0!==b[7]&&(b[7]=1/b[7],b[4]*=b[7],b[5]*=b[7],b[6]*=b[7],m[0]=(.5*b[4]+.5)*this.width,m[1]=(.5*b[5]+.5)*this.height)};c.prototype.xf=function(a,d,b){if(this.width!==a||this.height!==d||b){this.le();b=this.H;this.width=a;this.height=d;b.viewport(0,0,a,d);$b(this.ik,
this.no,this.Hp,this.qc);if(this.ua){var e=-a/2;a=a/2;var f=d/2;d=-d/2;var c=this.Uj,l=this.Am,k=this.hj;k||(k=Xb());var h=a-e,n=d-f,g=l-c;k[0]=2/h;k[1]=0;k[2]=0;k[3]=0;k[4]=0;k[5]=2/n;k[6]=0;k[7]=0;k[8]=0;k[9]=0;k[10]=-2/g;k[11]=0;k[12]=-(e+a)/h;k[13]=-(d+f)/n;k[14]=-(l+c)/g;k[15]=1;this.Zh[0]=1;this.Zh[1]=1}else d=a/d,e=this.Uj,a=this.Am,k=this.hj,l=e*Math.tan(45*Math.PI/360),d*=l,f=-d,c=-l,k||(k=Xb()),h=d-f,n=l-c,g=a-e,k[0]=2*e/h,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=2*e/n,k[6]=0,k[7]=0,k[8]=(d+f)/
h,k[9]=(l+c)/n,k[10]=-(a+e)/g,k[11]=-1,k[12]=0,k[13]=0,k[14]=-(a*e*2)/g,k[15]=0,e=[0,0],a=[0,0],this.Xo(0,0,e),this.Xo(1,1,a),this.Zh[0]=1/(a[0]-e[0]),this.Zh[1]=-1/(a[1]-e[1]);e=0;for(a=this.Ma.length;e<a;e++)f=this.Ma[e],f.Xe=!1,f.lo&&(b.useProgram(f.Nh),b.uniformMatrix4fv(f.lo,!1,this.hj));b.useProgram(this.Ma[this.gh].Nh);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.hf=this.ue=null;this.si&&(b.bindFramebuffer(b.FRAMEBUFFER,
this.Ek),b.bindRenderbuffer(b.RENDERBUFFER,this.si),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Um||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.si),this.Um=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.uj=null)}};c.prototype.Ec=function(){$b(this.ik,this.no,this.Hp,this.qc);Zb(this.qc,this.Zh)};c.prototype.translate=function(a,d){if(0!==a||0!==d){this.Ge[0]=a;this.Ge[1]=d;this.Ge[2]=
0;var b=this.qc,e=this.Ge,f=e[0],c=e[1],e=e[2];b[12]=b[0]*f+b[4]*c+b[8]*e+b[12];b[13]=b[1]*f+b[5]*c+b[9]*e+b[13];b[14]=b[2]*f+b[6]*c+b[10]*e+b[14];b[15]=b[3]*f+b[7]*c+b[11]*e+b[15]}};c.prototype.scale=function(a,d){if(1!==a||1!==d)this.Ge[0]=a,this.Ge[1]=d,this.Ge[2]=1,Zb(this.qc,this.Ge)};c.prototype.wj=function(a){if(0!==a){var d=this.qc,b,e=Math.sin(a);a=Math.cos(a);var f=d[0],c=d[1],l=d[2],k=d[3],h=d[4],n=d[5],g=d[6],q=d[7];b?d!==b&&(b[8]=d[8],b[9]=d[9],b[10]=d[10],b[11]=d[11],b[12]=d[12],b[13]=
d[13],b[14]=d[14],b[15]=d[15]):b=d;b[0]=f*a+h*e;b[1]=c*a+n*e;b[2]=l*a+g*e;b[3]=k*a+q*e;b[4]=f*-e+h*a;b[5]=c*-e+n*a;b[6]=l*-e+g*a;b[7]=k*-e+q*a}};c.prototype.sc=function(){if(!n(this.jl,this.qc)){var a=this.hc();a.type=5;a.S?Yb(this.qc,a.S):a.S=Xb(this.qc);Yb(this.qc,this.jl);this.Ab=!1}};c.prototype.zj=function(a){this.ua&&(32760<a&&(a=32760),this.sk=this.ik[2]-this.Uj-a*this.yu)};h.prototype.Dr=function(){var a=this.H,d=this.G;0!==this.Ib?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,d.Ek),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),d.Ni=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),d.Ni=!1)};h.prototype.Hr=function(){this.H.bindTexture(this.H.TEXTURE_2D,this.Hc)};h.prototype.Ir=function(){var a=this.H;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Hc);a.activeTexture(a.TEXTURE0)};h.prototype.Er=function(){var a=this.Po,
d=this.G;d.qi=a;d=d.Hf;d.Yf&&d.gj!==a&&(d.gj=a,this.H.uniform1f(d.Yf,a))};h.prototype.xr=function(){this.H.drawElements(this.H.TRIANGLES,this.nd,this.H.UNSIGNED_SHORT,this.Ib)};h.prototype.Ar=function(){this.H.blendFunc(this.Ib,this.nd)};h.prototype.Jr=function(){var a,d,b,e=this.G.Ma,f=this.G.gn;a=0;for(d=e.length;a<d;a++)b=e[a],a===f&&b.cj?(b.vm(this.S),b.Xe=!0):b.Xe=!1;Yb(this.S,this.G.rk)};h.prototype.yr=function(){var a=this.H,d=this.G;this.Hc?(d.hf===this.Hc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),d.hf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,d.Ek),d.Ni||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Hc,0)):(d.ua||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};h.prototype.tr=function(){var a=this.H,d=this.Ib;0===d?(a.clearColor(this.S[0],this.S[1],this.S[2],this.S[3]),a.clear(a.COLOR_BUFFER_BIT)):1===d?(a.enable(a.SCISSOR_TEST),a.scissor(this.S[0],this.S[1],this.S[2],
this.S[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};h.prototype.Cr=function(){var a=this.H;0!==this.Ib?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};h.prototype.ur=function(){var a=this.H,d=this.G;d.ua&&a.disable(a.DEPTH_TEST);var b=d.Ma[1];a.useProgram(b.Nh);!b.Xe&&b.cj&&(b.vm(d.rk),b.Xe=!0);a.enableVertexAttribArray(b.Ac);a.bindBuffer(a.ARRAY_BUFFER,d.El);a.vertexAttribPointer(b.Ac,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Ib/
4,this.nd);b=d.Hf;a.useProgram(b.Nh);0<=b.Ac&&(a.enableVertexAttribArray(b.Ac),a.bindBuffer(a.ARRAY_BUFFER,d.Yh[d.Ad]),a.vertexAttribPointer(b.Ac,d.ua?3:2,a.FLOAT,!1,0,0));0<=b.ye&&(a.enableVertexAttribArray(b.ye),a.bindBuffer(a.ARRAY_BUFFER,d.Sh[d.Ad]),a.vertexAttribPointer(b.ye,2,a.FLOAT,!1,0,0));d.ua&&a.enable(a.DEPTH_TEST)};h.prototype.Fr=function(){var a=this.H,d=this.G,b=d.Ma[this.Ib];d.gn=this.Ib;d.Hf=b;a.useProgram(b.Nh);!b.Xe&&b.cj&&(b.vm(d.rk),b.Xe=!0);b.Yf&&b.gj!==d.qi&&(b.gj=d.qi,a.uniform1f(b.Yf,
d.qi));0<=b.Ac&&(a.enableVertexAttribArray(b.Ac),a.bindBuffer(a.ARRAY_BUFFER,d.Yh[d.Ad]),a.vertexAttribPointer(b.Ac,d.ua?3:2,a.FLOAT,!1,0,0));0<=b.ye&&(a.enableVertexAttribArray(b.ye),a.bindBuffer(a.ARRAY_BUFFER,d.Sh[d.Ad]),a.vertexAttribPointer(b.ye,2,a.FLOAT,!1,0,0))};h.prototype.Br=function(){var a=this.S;this.H.uniform4f(this.G.Hf.ul,a[0],a[1],a[2],a[3])};h.prototype.Gr=function(){var a,d,b=this.G.Hf,e=this.H;a=this.S;b.nh&&this.G.hf!==this.Hc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,
this.Hc),this.G.hf=this.Hc,e.activeTexture(e.TEXTURE0));var f=a[0];b.xl&&f!==b.wo&&(b.wo=f,e.uniform1f(b.xl,f));f=a[1];b.wl&&f!==b.vo&&(b.vo=f,e.uniform1f(b.wl,f));f=a[2];d=a[3];!b.nf||f===b.qo&&d===b.ro||(b.qo=f,b.ro=d,e.uniform2f(b.nf,f,d));f=a[4];d=a[5];!b.lf||f===b.oo&&d===b.po||(b.oo=f,b.po=d,e.uniform2f(b.lf,f,d));f=a[6];b.mh&&f!==b.to&&(b.to=f,e.uniform1f(b.mh,f));f=a[7];b.lh&&f!==b.so&&(b.so=f,e.uniform1f(b.lh,f));f=a[8];d=a[9];!b.qh||f===b.Ao&&d===b.Bo||(b.Ao=f,b.Bo=d,e.uniform2f(b.qh,f,
d));f=a[10];d=a[11];!b.oh||f===b.xo&&d===b.yo||(b.xo=f,b.yo=d,e.uniform2f(b.oh,f,d));f=a[12];b.ph&&f!==b.zo&&(b.zo=f,e.uniform1f(b.ph,f));if(b.T.length)for(a=0,d=b.T.length;a<d;a++)f=this.op[a],f!==b.il[a]&&(b.il[a]=f,e.uniform1f(b.T[a][1],f))};c.prototype.hc=function(){this.zd===this.ee.length&&this.ee.push(new h(0,this));return this.ee[this.zd++]};c.prototype.le=function(){if(0!==this.zd&&!this.H.isContextLost()){var a=this.H;0<this.Fl&&(a.bindBuffer(a.ARRAY_BUFFER,this.El),a.bufferSubData(a.ARRAY_BUFFER,
0,this.Uo.subarray(0,this.Fl)),b&&0<=b.Ac&&"<point>"===b.name&&a.vertexAttribPointer(b.Ac,4,a.FLOAT,!1,0,0));if(0<this.Xd){var b=this.Hf;a.bindBuffer(a.ARRAY_BUFFER,this.Yh[this.Ad]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Sj.subarray(0,this.Xd));b&&0<=b.Ac&&"<point>"!==b.name&&a.vertexAttribPointer(b.Ac,this.ua?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Sh[this.Ad]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ij.subarray(0,this.jg));b&&0<=b.ye&&"<point>"!==b.name&&a.vertexAttribPointer(b.ye,2,
a.FLOAT,!1,0,0)}for(var c,a=0,b=this.zd;a<b;a++)switch(c=this.ee[a],c.type){case 1:c.xr();break;case 2:c.Hr();break;case 3:c.Er();break;case 4:c.Ar();break;case 5:c.Jr();break;case 6:c.yr();break;case 7:c.tr();break;case 8:c.ur();break;case 9:c.Fr();break;case 10:c.Gr();break;case 11:c.Ir();break;case 12:c.Br();break;case 13:c.Cr();break;case 14:c.Dr()}this.Fl=this.jg=this.Xd=this.zd=0;this.Ni=this.Ab=!1;this.Ad++;4<=this.Ad&&(this.Ad=0)}};c.prototype.wf=function(a){if(a!==this.ao&&!this.Yg){var b=
this.hc();b.type=3;this.ao=b.Po=a;this.Ab=!1}};c.prototype.jc=function(a){if(a!==this.ue){var b=this.hc();b.type=2;this.ue=b.Hc=a;this.Ab=!1}};c.prototype.Ee=function(a,b){if((a!==this.co||b!==this.Zn)&&!this.Yg){var c=this.hc();c.type=4;c.Ib=a;c.nd=b;this.co=a;this.Zn=b;this.Ab=!1}};c.prototype.fp=function(){this.Ee(this.H.ONE,this.H.ONE_MINUS_SRC_ALPHA)};c.prototype.Ih=function(a,b,c,e,f,r,l,k){15992<=this.Xd&&this.le();var h=this.Xd,n=this.jg,g=this.Sj,q=this.Ij,u=this.sk;if(this.Ab)this.ee[this.zd-
1].nd+=6;else{var p=this.hc();p.type=1;p.Ib=this.ua?h:h/2*3;p.nd=6;this.Ab=!0}this.ua?(g[h++]=a,g[h++]=b,g[h++]=u,g[h++]=c,g[h++]=e,g[h++]=u,g[h++]=f,g[h++]=r,g[h++]=u,g[h++]=l,g[h++]=k,g[h++]=u):(g[h++]=a,g[h++]=b,g[h++]=c,g[h++]=e,g[h++]=f,g[h++]=r,g[h++]=l,g[h++]=k);q[n++]=0;q[n++]=0;q[n++]=1;q[n++]=0;q[n++]=1;q[n++]=1;q[n++]=0;q[n++]=1;this.Xd=h;this.jg=n};c.prototype.sd=function(a,b,c,e,f,r,l,k,h){15992<=this.Xd&&this.le();var n=this.Xd,g=this.jg,q=this.Sj,u=this.Ij,p=this.sk;if(this.Ab)this.ee[this.zd-
1].nd+=6;else{var t=this.hc();t.type=1;t.Ib=this.ua?n:n/2*3;t.nd=6;this.Ab=!0}var t=h.left,P=h.top,F=h.right;h=h.bottom;this.ua?(q[n++]=a,q[n++]=b,q[n++]=p,q[n++]=c,q[n++]=e,q[n++]=p,q[n++]=f,q[n++]=r,q[n++]=p,q[n++]=l,q[n++]=k,q[n++]=p):(q[n++]=a,q[n++]=b,q[n++]=c,q[n++]=e,q[n++]=f,q[n++]=r,q[n++]=l,q[n++]=k);u[g++]=t;u[g++]=P;u[g++]=F;u[g++]=P;u[g++]=F;u[g++]=h;u[g++]=t;u[g++]=h;this.Xd=n;this.jg=g};c.prototype.Wb=function(a){if(this.gh!==a){if(!this.Ma[a]){if(0===this.gh)return;a=0}var b=this.hc();
b.type=9;this.gh=b.Ib=a;this.Ab=!1}};c.prototype.Fh=function(a){a=this.Ma[a];return!(!a.nf&&!a.lf)};c.prototype.Il=function(a){a=this.Ma[a];return!!(a.nf||a.lf||a.dn)};c.prototype.Hl=function(a){return this.Ma[a].Zc};c.prototype.Yt=function(a){a=this.Ma[a];return 0!==a.Ck||0!==a.Dk};c.prototype.Xs=function(a){return this.Ma[a].Ck};c.prototype.Ys=function(a){return this.Ma[a].Dk};c.prototype.Zs=function(a,b){return this.Ma[a].T[b][2]};c.prototype.qj=function(a){return this.Ma[a].Sm};c.prototype.eg=
function(a,b,c,e,f,r,l,k,h,n,g,q,u,p,t){var P=this.Ma[this.gh],F,C;if(P.qt||t.length){F=this.hc();F.type=10;F.S?Yb(this.qc,F.S):F.S=Xb();C=F.S;C[0]=b;C[1]=c;C[2]=e;C[3]=f;C[4]=r;C[5]=l;C[6]=k;C[7]=h;C[8]=n;C[9]=g;C[10]=q;C[11]=u;C[12]=p;P.nh?F.Hc=a:F.Hc=null;if(t.length)for(c=F.op,c.length=t.length,a=0,b=t.length;a<b;a++)c[a]=t[a];this.Ab=!1}};c.prototype.clear=function(a,b,c,e){var f=this.hc();f.type=7;f.Ib=0;f.S||(f.S=Xb());f.S[0]=a;f.S[1]=b;f.S[2]=c;f.S[3]=e;this.Ab=!1};c.prototype.clearRect=function(a,
b,c,e){if(!(0>c||0>e)){var f=this.hc();f.type=7;f.Ib=1;f.S||(f.S=Xb());f.S[0]=a;f.S[1]=b;f.S[2]=c;f.S[3]=e;this.Ab=!1}};c.prototype.ip=function(a){if(this.ua&&(a=!!a,this.Yg!==a)){var b=this.hc();b.type=14;b.Ib=a?1:0;this.Ab=!1;this.Yg=a;this.uj=null;this.Yg?this.Wb(2):this.Wb(0)}};c.prototype.hp=function(a){if(this.ua){var b=this.hc();b.type=13;b.Ib=a?1:0;this.Ab=!1}};c.prototype.sn=function(){Yb(this.jl,k);this.Ec();this.sc();var a=this.width/2,b=this.height/2;this.Ih(-a,b,a,b,a,-b,-a,-b);Yb(k,
this.qc);this.sc()};c.prototype.gp=function(a,b,c){this.Wb(3);var e=this.hc();e.type=12;e.S||(e.S=Xb());e.S[0]=a;e.S[1]=b;e.S[2]=c;e.S[3]=1;this.Ab=!1};c.prototype.lu=function(){this.Wb(0)};c.prototype.bu=function(){this.Wb(2)};c.prototype.Xt=function(){this.le();this.H.flush()};var t=[],b={};c.prototype.mr=function(){U(t);b={}};c.prototype.aj=function(a,d,c,e){d=!!d;c=!!c;var f=a.src+","+d+","+c+(d?",undefined":""),r=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return r=b[f],r.hi++,r;
this.le();var l=this.H,k=ga(a.width)&&ga(a.height),r=l.createTexture();l.bindTexture(l.TEXTURE_2D,r);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=l.RGBA,n=l.RGBA,g=l.UNSIGNED_BYTE;if(e&&!this.qe)switch(e){case 1:n=h=l.RGB;break;case 2:g=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:g=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=h=l.RGB,g=l.UNSIGNED_SHORT_5_6_5}if(!k&&d){e=document.createElement("canvas");e.width=ha(a.width);e.height=ha(a.height);var q=e.getContext("2d");q.webkitImageSmoothingEnabled=
c;q.mozImageSmoothingEnabled=c;q.msImageSmoothingEnabled=c;q.imageSmoothingEnabled=c;q.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);l.texImage2D(l.TEXTURE_2D,0,h,n,g,e)}else l.texImage2D(l.TEXTURE_2D,0,h,n,g,a);d?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,
l.LINEAR),k&&this.kn?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.ue=null;r.Le=a.width;r.Ke=a.height;r.hi=1;r.Ym=f;t.push(r);return b[f]=r};c.prototype.nc=function(a,b,c,e){this.le();var f=this.H;this.qe&&(e=!1);var r=
f.createTexture();f.bindTexture(f.TEXTURE_2D,r);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,e?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.ue=null;r.Le=a;r.Ke=b;t.push(r);return r};c.prototype.wu=
function(a,b,c){this.le();var e=this.H;this.qe&&(c=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}e.bindTexture(e.TEXTURE_2D,null);this.ue=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.hi&&1<a.hi?a.hi--:(this.le(),a===this.ue&&(this.H.bindTexture(this.H.TEXTURE_2D,
null),this.ue=null),a===this.hf&&(this.H.activeTexture(this.H.TEXTURE1),this.H.bindTexture(this.H.TEXTURE_2D,null),this.H.activeTexture(this.H.TEXTURE0),this.hf=null),Aa(t,a),"undefined"!==typeof a.Ym&&delete b[a.Ym],this.H.deleteTexture(a)))};c.prototype.Fc=function(a){if(a!==this.uj){var b=this.hc();b.type=6;this.uj=b.Hc=a;this.Ab=!1}};db=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.Hd=(this.Oi=/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.bf=!!a.dc;this.zt="undefined"!==typeof window.AppMobi||
this.bf;this.Sc=!!window.c2cocoonjs;this.Tc=!!window.c2ejecta;this.Sc&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.Tc&&(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.Oa=this.bf||this.Sc||this.Tc;this.Pi=
/edge\//i.test(navigator.userAgent);this.qe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Pi;this.Rn=/tizen/i.test(navigator.userAgent);this.On=/android/i.test(navigator.userAgent)&&!this.Rn&&!this.qe&&!this.Pi;this.Wn=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.qe&&!this.Pi;this.Et=/ipad/i.test(navigator.userAgent);this.gl=this.Wn||this.Et||this.Tc;this.Yk=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.qe&&!this.Pi;this.Nn=/amazonwebappplatform/i.test(navigator.userAgent);this.Bt=/firefox/i.test(navigator.userAgent);this.re="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Un=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Dt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Pf=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.el=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Tn=!!window.cr_windows10;this.Sn=this.Un||this.Dt||this.el||this.Tn;this.At=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Pn=this.On&&!this.Yk&&!this.Oi&&!this.Bt&&!this.Nn&&!this.Oa;this.devicePixelRatio=1;this.cf=this.Hd||this.Oi||this.zt||this.Sc||this.On||this.gl||this.Pf||this.el||this.At||this.Rn||this.Tc;this.cf||
(this.cf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.dl=!!(this.gl&&this.Hd&&window.indexedDB);this.En=null;this.ut="";this.dl&&(this.En=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.re||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.re=!0);this.canvas=a;this.li=document.getElementById("c2canvasdiv");
this.G=this.H=null;this.Qk="(unavailable)";this.ua=!1;this.Qe=0;this.ka=null;this.Hk="";this.yi=!1;this.Mo=this.No=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.bf&&(window.c2runtime=this);this.re&&(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.Pn&&"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.oi=this.width;this.Dg=this.height;this.ih=window.innerWidth;this.hh=window.innerHeight;this.Hs=!1;this.ma=!0;this.ah=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.F=[];this.Ga=[];this.pl={};this.Vc=[];this.Bk={};this.Cd=[];this.pg=[];this.Nj=[];this.$j=[];this.cr=[];this.Xn=this.em=null;
this.Oe={};this.$k=this.pe=!1;this.Uc=0;this.Zk=this.bl=!1;this.Pc=[];this.Zg=!1;this.Jd=this.Bb=this.Zi=this.Vl="";this.Rh=this.qp=!1;this.xi=[];this.ke=this.If=0;this.Fo=30;this.qk=this.rh=0;this.lg=1;this.Tb=new Ta;this.Tj=new Ta;this.kj=this.Ei=this.Ue=this.Ic=this.kf=this.Gk=this.Si=0;this.Ne=null;this.ti=[];this.Ak=[];this.vi=-1;this.yl=[[]];this.om=this.ej=0;this.sj(null);this.Jg=this.Io=this.yh=0;this.Gj=[];this.lm=this.Ml=-1;this.Tf=!0;this.bj=0;this.$g=!1;this.nu=0;this.wg=null;this.Of=
!1;this.Ko=new ba;this.zl=new ba;this.Lo=new ba;this.Kh=[];this.cd=new Va([]);this.gm=new Va([]);this.de=[];this.Ii={};this.he={};this.be={};this.og={};this.Vm={};this.ko=this.Yi=this.Pa=this.Wa=this.jo=this.Xi=this.ja=null;this.mg=this.fl=!1;this.Ik=[null,null];this.Ve=0;this.Md={};this.Qh=this.we=null;this.sp="";this.jj=[];this.au()}}function p(a,e){return 128>=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function h(a){a.target.result.createObjectStore("saves",
{keyPath:"slot"})}function k(a,e,g,f){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=h;b.onerror=f;b.onsuccess=function(b){b=b.target.result;b.onerror=f;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=g}}catch(l){f(l)}}function t(a,e,g){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=h;f.onerror=g;f.onsuccess=function(f){f=f.target.result;f.onerror=g;var b=f.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?
e(b.result.data):e(null)}}}catch(b){g(b)}}function b(){w("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,g={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ba||a[e]&&"undefined"!==typeof a[e].xv||"spriteCreatedDestroyCallback"!==e&&(g[e]=a[e]);return g}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.au=function(){var a=this;if(this.dl)this.En.startServer({port:0,localhost_only:!0},function(e){a.ut=e;a.Ds(function(e){a.kh(JSON.parse(e))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)});else{var e;this.Pf?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var g="data.js";if(this.Un||this.Pf||this.el||this.Tn)g="data.json";e.open("GET",g,!0);var f=!1;if(!this.Oa&&
"response"in e&&"responseType"in e)try{e.responseType="json",f="json"===e.responseType}catch(b){f=!1}if(!f&&"responseType"in e)try{e.responseType="text"}catch(l){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(d){}this.Pf?e.onreadystatechange=function(){4===e.readyState&&a.kh(JSON.parse(e.responseText))}:(e.onload=function(){if(f)a.kh(e.response);else if(a.Tc){var g=e.responseText,g=g.substr(g.indexOf("{"));a.kh(JSON.parse(g))}else a.kh(JSON.parse(e.responseText))},
e.onerror=function(a){da("Error requesting "+g+":");da(a)});e.send()}};c.prototype.yt=function(){var a=this,e,g,f,b,l,d,c,q,r;this.df=(!this.Oa||this.Tc||this.Hd)&&this.uu&&!this.Pn;0===this.$b&&this.gl&&(this.df=!1);this.devicePixelRatio=this.df?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ob();g=!(!this.Hs&&(!this.ak||this.re||this.Sn||this.Pf||this.Oi||this.Hd||this.Nn));0<this.$b&&this.setSize(window.innerWidth,window.innerHeight,
!0);try{this.Rr&&(this.Sc||this.Tc||!this.Oa)&&(e={alpha:g,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.H=this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",e))}catch(k){}if(this.H){if(e=this.H.getExtension("WEBGL_debug_renderer_info"))this.Qk=this.H.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.H.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.ua&&(this.Qk+=" [front-to-back enabled]");this.Oa||(this.lb=document.createElement("canvas"),jQuery(this.lb).appendTo(this.canvas.parentNode),
this.lb.oncontextmenu=function(){return!1},this.lb.onselectstart=function(){return!1},this.lb.width=Math.round(this.oi*this.devicePixelRatio),this.lb.height=Math.round(this.Dg*this.devicePixelRatio),jQuery(this.lb).css({width:this.oi+"px",height:this.Dg+"px"}),this.Vo(),this.Dl=this.lb.getContext("2d"));this.G=new db(this.H,this.cf,this.ua);this.G.xf(this.canvas.width,this.canvas.height);this.G.kn=0!==this.Kr;this.ka=null;this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();
a.Ot();w("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.G.Gn();a.G.xf(a.G.width,a.G.height,!0);a.Wa=null;a.Pa=null;a.Ik[0]=null;a.Ik[1]=null;a.Pt();a.ma=!0;w("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);e=0;for(g=this.F.length;e<g;e++)for(l=this.F[e],f=0,b=l.Q.length;f<b;f++)c=l.Q[f],c.Ta=this.G.Ok(c.id),c.Zc=this.G.Hl(c.Ta),this.mg=this.mg||this.G.Fh(c.Ta);e=0;for(g=this.Vc.length;e<g;e++){q=
this.Vc[e];f=0;for(b=q.Q.length;f<b;f++)c=q.Q[f],c.Ta=this.G.Ok(c.id),c.Zc=this.G.Hl(c.Ta);q.ed();f=0;for(b=q.R.length;f<b;f++){r=q.R[f];l=0;for(d=r.Q.length;l<d;l++)c=r.Q[l],c.Ta=this.G.Ok(c.id),c.Zc=this.G.Hl(c.Ta),this.mg=this.mg||this.G.Fh(c.Ta);r.ed()}}}else{if(0<this.$b&&this.bf){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ka=AppMobi.canvas.getContext("2d");try{this.ka.samplingMode=this.V?"smooth":"sharp",this.ka.globalScale=
1,this.ka.HTML5CompatibilityMode=!0,this.ka.imageSmoothingEnabled=this.V}catch(h){}0!==this.width&&0!==this.height&&(this.ka.width=this.width,this.ka.height=this.height)}this.ka||(this.Sc?(e={antialias:!!this.V,alpha:g},this.ka=this.canvas.getContext("2d",e)):(e={alpha:g},this.ka=this.canvas.getContext("2d",e)),this.ka.webkitImageSmoothingEnabled=this.V,this.ka.mozImageSmoothingEnabled=this.V,this.ka.msImageSmoothingEnabled=this.V,this.ka.imageSmoothingEnabled=this.V);this.Dl=this.lb=null}this.Ap=
function(e){a.nb(!1,e)};window==window.top||this.Oa||this.Sn||this.Pf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Sc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(w("Reloading for continuous preview"),this.Zi="__c2_continuouspreview",this.Rh=!0),this.Rt&&!this.cf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),
jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Ae()});this.Oa||(e=function(a){if(cb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",
e));0===this.$b&&this.df&&1<this.devicePixelRatio&&this.setSize(this.Za,this.Ya,!0);this.Ep();this.nt();this.go();this.J={}};c.prototype.setSize=function(a,e,g){var f=0,b=0,l=0,d=0,d=0;if(this.ih!==a||this.hh!==e||g){this.ih=a;this.hh=e;var c=this.$b,q=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.$g)&&!this.Hd;if(q||0!==this.$b||g)q&&0<this.Ve&&(c=this.Ve),g=this.devicePixelRatio,4<=c?(l=this.Za/this.Ya,a/e>l?(l*=e,5===c?(d=l*g/this.Za,
1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),l=this.Za*d/g,d=this.Ya*d/g,f=(a-l)/2,b=(e-d)/2,a=l,e=d):(f=(a-l)/2,a=l)):(d=a/l,5===c?(d=d*g/this.Ya,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),l=this.Za*d/g,d=this.Ya*d/g,f=(a-l)/2,b=(e-d)/2,a=l):b=(e-d)/2,e=d),q&&!this.re&&(b=f=0)):this.re&&this.$g&&0===this.tn&&(f=Math.floor((a-this.Za)/2),b=Math.floor((e-this.Ya)/2),a=this.Za,e=this.Ya),2>c&&(this.vg=g),this.oi=Math.round(a),this.Dg=Math.round(e),this.width=Math.round(a*g),this.height=Math.round(e*
g),this.ma=!0,this.Rp?(this.N=this.width,this.M=this.height,this.oc=!0):this.width<this.Za&&this.height<this.Ya||1===c?(this.N=this.width,this.M=this.height,this.oc=!0):(this.N=this.Za,this.M=this.Ya,this.oc=!1,2===c?(l=this.Za/this.Ya,c=this.ih/this.hh,c<l?this.N=this.M*c:c>l&&(this.M=this.N/c)):3===c&&(l=this.Za/this.Ya,c=this.ih/this.hh,c>l?this.N=this.M*c:c<l&&(this.M=this.N/c))),this.li&&!this.Oa&&(jQuery(this.li).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(f)+
"px","margin-top":Math.floor(b)+"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*g),this.canvas.height=Math.round(e*g),this.Tc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.df&&!this.Oa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=
Math.round(e)+"px")),this.lb&&(this.lb.width=Math.round(a*g),this.lb.height=Math.round(e*g),this.lb.style.width=this.oi+"px",this.lb.style.height=this.Dg+"px"),this.G&&this.G.xf(Math.round(a*g),Math.round(e*g)),this.bf&&this.ka&&(this.ka.width=Math.round(a),this.ka.height=Math.round(e)),this.ka&&(this.ka.webkitImageSmoothingEnabled=this.V,this.ka.mozImageSmoothingEnabled=this.V,this.ka.msImageSmoothingEnabled=this.V,this.ka.imageSmoothingEnabled=this.V),this.Ep(),this.Wn&&!this.Hd&&window.scrollTo(0,
0)}};c.prototype.Ep=function(){if(this.er&&0!==this.Cl){var a="portrait";2===this.Cl&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};c.prototype.Ot=function(){this.G.mr();
this.fl=!0;var a,e,g;a=0;for(e=this.F.length;a<e;a++)g=this.F[a],g.lj&&g.lj()};c.prototype.Pt=function(){this.fl=!1;var a,e,g;a=0;for(e=this.F.length;a<e;a++)g=this.F[a],g.Bl&&g.Bl()};c.prototype.Vo=function(){if(!this.Oa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.$g)&&!this.Hd?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.lb).css(a)}};var m=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var e;if(a&&!this.ah)for(w("[Construct 2] Suspending"),this.ah=!0,-1!==this.Ml&&m&&m(this.Ml),-1!==this.lm&&clearTimeout(this.lm),a=0,e=this.Gj.length;a<e;a++)this.Gj[a](!0);else if(!a&&this.ah){w("[Construct 2] Resuming");this.ah=!1;this.Si=Pa();this.kf=Pa();a=this.rh=this.Ei=0;for(e=this.Gj.length;a<e;a++)this.Gj[a](!1);this.nb(!1)}};c.prototype.$d=function(a){return this.jj[a]};
c.prototype.kh=function(a){a&&a.project||da("Project model unavailable");a=a.project;this.name=a[0];this.rn=a[1];this.$b=a[12];this.tn=a[12];this.Za=a[10];this.Ya=a[11];this.Qo=this.Za/2;this.Ro=this.Ya/2;this.Oa&&!this.Tc&&(4<=a[12]||0===a[12])&&(w("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.tn=this.$b=3);this.xm=a[18];this.xe=a[19];if(0===this.xe){var e=new Image;e.crossOrigin="anonymous";this.kp(e,"loading-logo.png");
this.we={fj:e}}else if(4===this.xe){e=new Image;e.src="";var g=new Image;g.src="";var f=new Image;f.src="";var b=new Image;b.src="";var l=new Image;l.src="";var d=new Image;d.src="";var c=new Image;c.src="";var q=new Image;q.src="";var r=new Image;r.src="";var k=new Image;k.src="";var h=new Image;h.src="";var n=new Image;n.src="";this.we={fj:[e,g,f,b],Ut:[l,d,c,q],xu:[r,k,h,n]}}this.yh=a[21];this.jj=bc();this.wd=new X(this);e=0;for(g=a[2].length;e<g;e++)c=a[2][e],f=this.$d(c[0]),eb(c,f.prototype),
q=new f(this),q.Ej=c[1],q.te=c[2],q.Go=c[9],q.P&&q.P(),this.plugins.push(q);this.jj=bc();e=0;for(g=a[3].length;e<g;e++){c=a[3][e];l=this.$d(c[1]);q=null;f=0;for(b=this.plugins.length;f<b;f++)if(this.plugins[f]instanceof l){q=this.plugins[f];break}r=new q.ia(q);r.name=c[0];r.O=c[2];r.Xk=c[3].slice(0);r.vu=c[3].length;r.fr=c[4];r.Is=c[5];r.X=c[11];r.O?(r.qf=[],r.Dd=this.Jg++,r.Ba=null):(r.qf=null,r.Dd=-1,r.Ba=[]);r.wi=null;r.Lf=null;r.ln=null;r.ec=!1;r.Zb=null;c[6]?(r.hm=c[6][0],r.im=c[6][1],r.jm=c[6][2]):
(r.hm=null,r.im=0,r.jm=0);c[7]?r.Nb=c[7]:r.Nb=null;r.index=e;r.k=[];r.ri=[];r.Ud=[new fb(r)];r.kd=0;r.yc=null;r.qr=0;r.ig=!0;r.Oj=gb;r.Os=hb;r.Ws=ib;r.aa=jb;r.Hh=kb;r.rj=lb;r.tf=mb;r.Gi=nb;r.Jk=ob;r.Lk=pb;r.jd=qb;r.Mk=rb;r.yg=new Wa(this.Za,this.Ya);r.bi=!0;r.ci=!1;r.J={};r.toString=sb;r.Ga=[];f=0;for(b=c[8].length;f<b;f++){k=c[8][f];h=this.$d(k[1]);n=null;l=0;for(d=this.Ga.length;l<d;l++)if(this.Ga[l]instanceof h){n=this.Ga[l];break}n||(n=new h(this),n.ij=[],n.wh=new ba,n.P&&n.P(),this.Ga.push(n),
cc&&n instanceof cc&&(this.em=n),dc&&n instanceof dc&&(this.Xn=n));-1===n.ij.indexOf(r)&&n.ij.push(r);l=new n.ia(n,r);l.name=k[0];l.X=k[2];l.P();r.Ga.push(l)}r.global=c[9];r.al=c[10];r.Q=[];f=0;for(b=c[12].length;f<b;f++)r.Q.push({id:c[12][f][0],name:c[12][f][1],Ta:-1,Zc:!1,pb:!0,index:f});r.Gv=c[13];this.xm&&!r.O&&!r.al&&q.te||r.P();r.name&&(this.types[r.name]=r);this.F.push(r);q.Ej&&(f=new q.Y(r),f.uid=this.yh++,f.Zo=this.Io++,f.Ye=0,f.Qg=tb,f.toString=ub,f.D=c[14],f.P(),r.k.push(f),this.Md[f.uid.toString()]=
f)}e=0;for(g=a[4].length;e<g;e++)for(l=a[4][e],d=this.F[l[0]],f=1,b=l.length;f<b;f++)c=this.F[l[f]],c.Ba.push(d),d.qf.push(c);e=0;for(g=a[28].length;e<g;e++){l=a[28][e];d=[];f=0;for(b=l.length;f<b;f++)d.push(this.F[l[f]]);f=0;for(b=d.length;f<b;f++)d[f].ec=!0,d[f].Zb=d}if(0<this.Jg)for(e=0,g=this.F.length;e<g;e++)if(c=this.F[e],!c.O&&c.Ba.length){c.wi=Array(this.Jg);c.Lf=Array(this.Jg);c.ln=Array(this.Jg);r=[];f=n=h=k=0;for(b=c.Ba.length;f<b;f++)for(q=c.Ba[f],c.wi[q.Dd]=k,k+=q.vu,c.Lf[q.Dd]=h,h+=
q.fr,c.ln[q.Dd]=n,n+=q.Is,l=0,d=q.Q.length;l<d;l++)r.push(sa({},q.Q[l]));c.Q=r.concat(c.Q);f=0;for(b=c.Q.length;f<b;f++)c.Q[f].index=f}e=0;for(g=a[5].length;e<g;e++)c=a[5][e],f=new vb(this,c),this.pl[f.name]=f,this.Vc.push(f);e=0;for(g=a[6].length;e<g;e++)c=a[6][e],f=new wb(this,c),this.Bk[f.name]=f,this.Cd.push(f);e=0;for(g=this.Cd.length;e<g;e++)this.Cd[e].Na();e=0;for(g=this.Cd.length;e<g;e++)this.Cd[e].tm();e=0;for(g=this.Nj.length;e<g;e++)this.Nj[e].Na();U(this.Nj);this.dr=a[7];this.Yc=a[9];
this.vg=1;this.Rr=a[13];this.V=a[14];this.ak=a[15];this.uu=a[17];this.Cl=a[20];this.er=0<this.Cl;this.Rt=a[22];this.oc=this.Rp=a[23];this.Kr=a[24];this.Vt=a[25];this.ua=a[27]&&!this.qe;this.Fj=Date.now();U(this.jj);this.yt()};var e=!1;c.prototype.Qp=function(a,g){a.cocoonLazyLoad=!0;a.onerror=function(g){e=a.Xm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",g)};this.Tc?a.src=g:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(e){a.src=e},function(f){e=
a.Xm=!0;console&&console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.kp(a,g)));this.pg.push(a)};c.prototype.Gs=function(a){var e,g;e=0;for(g=this.pg.length;e<g;e++)if(this.pg[e].nr===a)return this.pg[e];return null};var f=0,r=!1;c.prototype.nt=function(){this.wg&&(f=this.wg.Dv(this.dr))};c.prototype.Tm=function(){var a=f,e=0,g=0,b=!0,l,d,g=0;for(l=this.pg.length;g<l;g++){d=this.pg[g];var c=d.bn;if(!c||0>=c)c=5E4;a+=c;d.src&&(d.complete||
d.loaded)&&!d.Xm?e+=c:b=!1}b&&this.Vt&&this.wg&&(r||(this.wg.Ev(),r=!0),g=this.wg.zv(),e+=g,g<f&&(b=!1));this.$c=0==a?1:e/a;return b};var l=!1;c.prototype.go=function(){if(this.ka||this.G){var a=this.ka||this.Dl;this.lb&&this.Vo();this.$c=0;this.io=-1;var g=this;if(this.Tm()&&(4!==this.xe||l))this.ot();else{var f=Date.now()-this.Fj;if(a){var b=this.width,c=this.height,q=this.devicePixelRatio;if(3>this.xe&&(this.Sc||500<=f&&this.io!=this.$c)){a.clearRect(0,0,b,c);var f=b/2,c=c/2,b=0===this.xe&&this.we.fj.complete,
r=40*q,k=0,h=80*q,n;if(b){var u=this.we.fj,h=u.width*q;n=u.height*q;r=h/2;k=n/2;a.drawImage(u,O(f-r),O(c-k),h,n)}1>=this.xe?(f=O(f-r)+.5,c=O(c+(k+(b?12*q:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(f,c,Math.floor(h*this.$c),6*q),a.strokeStyle="black",a.strokeRect(f,c,h,6*q),a.strokeStyle="white",a.strokeRect(f-1*q,c-1*q,h+2*q,8*q)):2===this.xe&&(a.font=this.Tc?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.Fv="middle",q=Math.round(100*this.$c)+"%",b=a.measureText?a.measureText(q):
null,a.fillText(q,f-(b?b.width:0)/2,c));this.io=this.$c}else if(4===this.xe){this.Pr(a);d?d(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.Sc?10:100)}}};var B=-1,A="undefined"===typeof cr_is_preview?200:0,z=!0,g=!1,q=0,u=0,T="undefined"===typeof cr_is_preview?3E3:0,R=null,P=null,F=0;c.prototype.Pr=function(a){if(!l){for(var f=Math.ceil(this.width),b=Math.ceil(this.height),d=this.we.fj,c=this.we.Ut,r=this.we.xu,k=0;4>k;++k)if(!d[k].complete||!c[k].complete||
!r[k].complete)return;0===F&&(B=Date.now());var k=Date.now(),h=!1,n=a,m,t;z||g?(a.clearRect(0,0,f,b),R&&R.width===f&&R.height===b||(R=document.createElement("canvas"),R.width=f,R.height=b,P=R.getContext("2d")),n=P,h=!0,z&&1===F&&(B=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,f,b);256<this.Dg?(m=Ba(.22*b,105,.6*f),t=.25*m,n.drawImage(p(c,m),.5*f-m/2,.2*b-t/2,m,t),t=m=Math.min(.395*b,.95*f),n.drawImage(p(d,m),.5*f-m/2,.485*b-t/2,m,t),m=Ba(.22*b,105,.6*f),t=.25*m,n.drawImage(p(r,
m),.5*f-m/2,.868*b-t/2,m,t),n.fillStyle="#3C3C3C",m=f,t=Math.max(.005*b,2),n.fillRect(0,.8*b-t/2,m,t),n.fillStyle=e?"red":"#E0FF65",m=f*this.$c,n.fillRect(.5*f-m/2,.8*b-t/2,m,t)):(t=m=.55*b,n.drawImage(p(d,m),.5*f-m/2,.45*b-t/2,m,t),n.fillStyle="#3C3C3C",m=f,t=Math.max(.005*b,2),n.fillRect(0,.85*b-t/2,m,t),n.fillStyle=e?"red":"#E0FF65",m=f*this.$c,n.fillRect(.5*f-m/2,.85*b-t/2,m,t));h&&(z?a.globalAlpha=0===F?0:Math.min((k-B)/300,1):g&&(a.globalAlpha=Math.max(1-(k-u)/300,0)),a.drawImage(R,0,0,f,b));
z&&300<=k-B&&2<=F&&(z=!1,q=k);!z&&k-q>=T&&!g&&1<=this.$c&&(g=!0,u=k);if(g&&k-u>=300+A||"undefined"!==typeof cr_is_preview&&1<=this.$c&&500>Date.now()-B)l=!0,g=z=!1,this.we=P=R=null;++F}};c.prototype.ot=function(){this.lb&&(this.canvas.parentNode.removeChild(this.lb),this.lb=this.Dl=null);this.Fj=Date.now();this.kf=Pa();var a,e,g;if(this.xm)for(a=0,e=this.F.length;a<e;a++)g=this.F[a],g.O||g.al||!g.Ca.te||g.P();else this.Tf=!1;a=0;for(e=this.Vc.length;a<e;a++)this.Vc[a].or();2<=this.$b&&(a=this.Za/
this.Ya,e=this.width/this.height,this.vg=2!==this.$b&&e>a||2===this.$b&&e<a?this.height/this.Ya:this.width/this.Za);this.rn?this.pl[this.rn].fm():this.Vc[0].fm();this.xm||(this.bj=1,this.trigger(X.prototype.B.Jm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(e=this.F.length;a<e;a++)g=this.F[a],g.Nt&&g.Nt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.nb(!1);this.bf&&AppMobi.webview.execute("onGameReady();")};
c.prototype.nb=function(a,e,g){if(this.ja){var f=Pa();if(g||!this.ah||a){a||(d?this.Ml=d(this.Ap):this.lm=setTimeout(this.Ap,this.cf?1:16));e=e||f;var b=this.$b;((g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Hd)||this.$g)&&0<this.Ve&&(b=this.Ve);if(0<b){var b=window.innerWidth,l=window.innerHeight;this.ih===b&&this.hh===l||this.setSize(b,l)}this.Oa||(g?(this.yi||(this.Hk=jQuery(this.canvas).css("margin")||"0",this.yi=!0),this.Yk||
this.re||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.yi?(this.Yk||this.re||jQuery(this.canvas).css("margin",this.Hk),this.Hk="",this.yi=!1,0===this.$b&&this.setSize(Math.round(this.No/this.devicePixelRatio),Math.round(this.Mo/this.devicePixelRatio),!0)):(this.No=this.width,this.Mo=this.height));this.Tf&&(g=this.Tm(),this.bj=this.$c,g&&(this.Tf=
!1,this.$c=1,this.trigger(X.prototype.B.Jm,null)));this.It(e);!this.ma&&!this.Sc||this.fl||this.Rh||a||(this.ma=!1,this.G?this.Pb():this.Qc(),this.Qh&&(this.canvas&&this.canvas.toDataURL&&(this.sp=this.canvas.toDataURL(this.Qh[0],this.Qh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.sp),this.trigger(X.prototype.B.rq,null)),this.Qh=null));this.Av||(this.Ic++,this.Ue++,this.Ei++);this.rh+=Pa()-f}}};c.prototype.It=function(a){var e,g,f,b,l,d,c,q;1E3<=a-this.kf&&(this.kf+=1E3,1E3<=a-this.kf&&(this.kf=
a),this.Gk=this.Ei,this.Ei=0,this.qk=this.rh,this.rh=0);0!==this.Si&&(e=a-this.Si,0>e&&(e=0),this.ke=e/1E3,.5<this.ke?this.ke=0:this.ke>1/this.Fo&&(this.ke=1/this.Fo));this.Si=a;this.If=this.ke*this.lg;this.Tb.add(this.If);this.Tj.add(this.ke);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.$g)&&!this.Hd;2<=this.$b||a&&0<this.Ve?(e=this.Za/this.Ya,g=this.width/this.height,f=this.$b,a&&0<this.Ve&&(f=this.Ve),this.vg=2!==f&&g>e||2===
f&&g<e?this.height/this.Ya:this.width/this.Za,this.ja&&(this.ja.Wl(this.ja.scrollX),this.ja.Xl(this.ja.scrollY))):this.vg=this.df?this.devicePixelRatio:1;this.ob();this.Uc++;this.wd.eu();this.Uc--;this.ob();this.Uc++;g=this.Ko.Jc();a=0;for(e=g.length;a<e;a++)g[a].Bv();a=0;for(e=this.F.length;a<e;a++)if(d=this.F[a],!d.O&&(d.Ga.length||d.Ba.length))for(g=0,f=d.k.length;g<f;g++)for(c=d.k[g],b=0,l=c.L.length;b<l;b++)c.L[b].nb();a=0;for(e=this.F.length;a<e;a++)if(d=this.F[a],!d.O&&(d.Ga.length||d.Ba.length))for(g=
0,f=d.k.length;g<f;g++)for(c=d.k[g],b=0,l=c.L.length;b<l;b++)q=c.L[b],q.Wo&&q.Wo();g=this.zl.Jc();a=0;for(e=g.length;a<e;a++)g[a].nb();this.Uc--;this.pt();for(a=0;this.Ne&&10>a++;)this.jn(this.Ne);a=0;for(e=this.Cd.length;a<e;a++)this.Cd[a].Tk=!1;this.ja.Se&&this.ja.Se.Ra();U(this.Kh);this.Uc++;a=0;for(e=this.F.length;a<e;a++)if(d=this.F[a],!d.O&&(d.Ga.length||d.Ba.length))for(g=0,f=d.k.length;g<f;g++)for(c=d.k[g],b=0,l=c.L.length;b<l;b++)q=c.L[b],q.Th&&q.Th();g=this.Lo.Jc();a=0;for(e=g.length;a<
e;a++)g[a].Th();this.Uc--};c.prototype.Ae=function(){var a,e,g,f,b,d,l,c,q;a=0;for(e=this.F.length;a<e;a++)if(l=this.F[a],!l.O)for(g=0,f=l.k.length;g<f;g++)if(c=l.k[g],c.Ae&&c.Ae(),c.L)for(b=0,d=c.L.length;b<d;b++)q=c.L[b],q.Ae&&q.Ae()};c.prototype.jn=function(a){var e=this.ja;this.ja.ou();var g,f,b;if(this.G)for(g=0,f=this.F.length;g<f;g++)b=this.F[g],b.O||!b.rm||b.global&&0!==b.k.length||-1!==a.Vg.indexOf(b)||b.rm();e==a&&U(this.wd.Yb);U(this.Kh);this.dp(!0);a.fm();this.dp(!1);this.ma=!0;this.ob()};
c.prototype.dp=function(a){var e,g,f,b,d,l,c,q,r;e=0;for(g=this.Ga.length;e<g;e++)f=this.Ga[e],a?f.zh&&f.zh():f.Ch&&f.Ch();e=0;for(g=this.F.length;e<g;e++)if(f=this.F[e],f.global||f.Ca.Ej)for(b=0,d=f.k.length;b<d;b++)if(l=f.k[b],a?l.zh&&l.zh():l.Ch&&l.Ch(),l.L)for(c=0,q=l.L.length;c<q;c++)r=l.L[c],a?r.zh&&r.zh():r.Ch&&r.Ch()};c.prototype.Kj=function(a){this.zl.add(a)};c.prototype.We=function(a){return a&&-1!==a.xh?this.ke*a.xh:this.If};c.prototype.Qc=function(){this.ja.Qc(this.ka);this.bf&&this.ka.present()};
c.prototype.Pb=function(){this.ua&&(this.Qe=1,this.ja.Pe(this.G));this.ja.Pb(this.G);this.G.Xt()};c.prototype.Zj=function(a){a&&this.ti.push(a)};c.prototype.cp=function(a){Aa(this.ti,a)};c.prototype.Mg=function(a){a=a.toString();return this.Md.hasOwnProperty(a)?this.Md[a]:null};var C=[];c.prototype.Df=function(a){var e,g;e=a.type.name;var f=null;if(this.Oe.hasOwnProperty(e)){if(f=this.Oe[e],f.contains(a))return}else f=C.length?C.pop():new ba,this.Oe[e]=f;f.add(a);this.pe=!0;if(a.ec)for(e=0,g=a.siblings.length;e<
g;e++)this.Df(a.siblings[e]);this.$k&&f.ng.push(a);this.Zk||(this.Uc++,this.trigger(Object.getPrototypeOf(a.type.Ca).B.uq,a),this.Uc--)};c.prototype.ob=function(){if(this.pe){var a,e,g,f,b,l;this.$k=!0;g=0;for(b=this.Pc.length;g<b;++g)for(a=this.Pc[g],e=a.type,e.k.push(a),f=0,l=e.Ba.length;f<l;++f)e.Ba[f].k.push(a),e.Ba[f].ig=!0;U(this.Pc);this.mq();Oa(this.Oe);this.pe=this.$k=!1}};c.prototype.mq=function(){for(var a in this.Oe)this.Oe.hasOwnProperty(a)&&this.Xp(this.Oe[a])};c.prototype.Xp=function(a){var e=
a.Jc(),g=e[0].type,f,b,l,d,c,q;Qa(g.k,a);g.ig=!0;0===g.k.length&&(g.ci=!1);f=0;for(b=g.Ba.length;f<b;++f)q=g.Ba[f],Qa(q.k,a),q.ig=!0;f=0;for(b=this.wd.Yb.length;f<b;++f)if(c=this.wd.Yb[f],c.Hb.hasOwnProperty(g.index)&&Qa(c.Hb[g.index].Gd,a),!g.O)for(l=0,d=g.Ba.length;l<d;++l)q=g.Ba[l],c.Hb.hasOwnProperty(q.index)&&Qa(c.Hb[q.index].Gd,a);if(c=e[0].u){if(c.tc)for(l=c.k,f=0,b=l.length;f<b;++f)d=l[f],a.contains(d)&&(d.ta(),c.mb.update(d,d.Vb,null),d.Vb.set(0,0,-1,-1));Qa(c.k,a);c.Lh(0)}for(f=0;f<e.length;++f)this.Wp(e[f],
g);a.clear();C.push(a);this.ma=!0};c.prototype.Wp=function(a,e){var g,f,b;g=0;for(f=this.ti.length;g<f;++g)this.ti[g](a);a.wc&&e.yg.update(a,a.wc,null);(g=a.u)&&g.bg(a,!0);if(a.L)for(g=0,f=a.L.length;g<f;++g)b=a.L[g],b.qd&&b.qd(),b.behavior.wh.remove(a);this.Ko.remove(a);this.zl.remove(a);this.Lo.remove(a);a.qd&&a.qd();this.Md.hasOwnProperty(a.uid.toString())&&delete this.Md[a.uid.toString()];this.kj--;100>e.ri.length&&e.ri.push(a)};c.prototype.cn=function(a,e,g,f){if(a.O){var b=O(Math.random()*a.qf.length);
return this.cn(a.qf[b],e,g,f)}return a.yc?this.ie(a.yc,e,!1,g,f,!1):null};var H=[];c.prototype.ie=function(a,e,g,f,b,l){var d,c,q,r;if(!a)return null;var k=this.F[a[1]],h=k.Ca.te;if(this.Tf&&h&&!k.al||h&&!this.G&&11===a[0][11])return null;var n=e;h||(e=null);var m;k.ri.length?(m=k.ri.pop(),m.ic=!0,k.Ca.Y.call(m,k)):(m=new k.Ca.Y(k),m.ic=!1);!g||l||this.Md.hasOwnProperty(a[2].toString())?m.uid=this.yh++:m.uid=a[2];this.Md[m.uid.toString()]=m;m.Zo=this.Io++;m.Ye=k.k.length;d=0;for(c=this.Pc.length;d<
c;++d)this.Pc[d].type===k&&m.Ye++;m.Qg=tb;m.toString=ub;q=a[3];if(m.ic)Oa(m.J);else{m.J={};if("undefined"!==typeof cr_is_preview)for(m.Jn=[],m.Jn.length=q.length,d=0,c=q.length;d<c;d++)m.Jn[d]=q[d][1];m.Va=[];m.Va.length=q.length}d=0;for(c=q.length;d<c;d++)m.Va[d]=q[d][0];if(h){var u=a[0];m.x=ea(f)?u[0]:f;m.y=ea(b)?u[1]:b;m.z=u[2];m.width=u[3];m.height=u[4];m.depth=u[5];m.n=u[6];m.opacity=u[7];m.Rb=u[8];m.Sb=u[9];m.qb=u[10];d=u[11];!this.G&&k.Q.length&&(m.qb=d);m.zg=Ya(m.qb);this.H&&$a(m,m.qb,this.H);
if(m.ic){d=0;for(c=u[12].length;d<c;d++)for(q=0,r=u[12][d].length;q<r;q++)m.Ja[d][q]=u[12][d][q];m.za.set(0,0,0,0);m.wc.set(0,0,-1,-1);m.Vb.set(0,0,-1,-1);m.tb.gg(m.za);U(m.gk)}else{m.Ja=u[12].slice(0);d=0;for(c=m.Ja.length;d<c;d++)m.Ja[d]=u[12][d].slice(0);m.da=[];m.ae=[];m.ae.length=k.Q.length;m.za=new Q(0,0,0,0);m.wc=new Q(0,0,-1,-1);m.Vb=new Q(0,0,-1,-1);m.tb=new qa;m.gk=[];m.C=xb;m.wv=yb;m.xb=zb;m.ta=Ab;m.tu=Bb;m.Mp=Cb;m.md=Db}m.kg=!1;m.ru=0;m.qu=0;m.pu=null;14===u.length&&(m.kg=!0,m.ru=u[13][0],
m.qu=u[13][1],m.pu=u[13][2]);d=0;for(c=k.Q.length;d<c;d++)m.ae[d]=!0;m.Qd=!0;m.ed=Eb;m.ed();m.Op=!!m.da.length;m.fk=!0;m.jk=!0;k.bi=!0;m.visible=!0;m.xh=-1;m.u=e;m.fd=e.k.length;m.Qe=0;"undefined"===typeof m.Z&&(m.Z=null);this.ma=m.mc=!0}var p;U(H);d=0;for(c=k.Ba.length;d<c;d++)H.push.apply(H,k.Ba[d].Ga);H.push.apply(H,k.Ga);if(m.ic)for(d=0,c=H.length;d<c;d++){var t=H[d];p=m.L[d];p.ic=!0;t.behavior.Y.call(p,t,m);u=a[4][d];q=0;for(r=u.length;q<r;q++)p.D[q]=u[q];p.P();t.behavior.wh.add(m)}else for(m.L=
[],d=0,c=H.length;d<c;d++)t=H[d],p=new t.behavior.Y(t,m),p.ic=!1,p.D=a[4][d].slice(0),p.P(),m.L.push(p),t.behavior.wh.add(m);u=a[5];if(m.ic)for(d=0,c=u.length;d<c;d++)m.D[d]=u[d];else m.D=u.slice(0);this.Pc.push(m);this.pe=!0;e&&(e.ug(m,!0),1!==e.Nd||1!==e.Od)&&(k.ci=!0);this.kj++;if(k.ec){if(m.ec=!0,m.ic?U(m.siblings):m.siblings=[],!g&&!l){d=0;for(c=k.Zb.length;d<c;d++)if(k.Zb[d]!==k){if(!k.Zb[d].yc)return null;m.siblings.push(this.ie(k.Zb[d].yc,n,!1,h?m.x:f,h?m.y:b,!0))}d=0;for(c=m.siblings.length;d<
c;d++)for(m.siblings[d].siblings.push(m),q=0;q<c;q++)d!==q&&m.siblings[d].siblings.push(m.siblings[q])}}else m.ec=!1,m.siblings=null;m.P();d=0;for(c=m.L.length;d<c;d++)m.L[d].Tt&&m.L[d].Tt();return m};c.prototype.Ts=function(a){var e,g;e=0;for(g=this.ja.R.length;e<g;e++){var f=this.ja.R[e];if(bb(f.name,a))return f}return null};c.prototype.Us=function(a){a=O(a);0>a&&(a=0);a>=this.ja.R.length&&(a=this.ja.R.length-1);return this.ja.R[a]};c.prototype.nk=function(a){var e,g;e=0;for(g=a.length;e<g;e++)a[e].aa().ea=
!0};c.prototype.Hh=function(a){var e,g;e=0;for(g=a.length;e<g;e++)a[e].Hh()};c.prototype.rj=function(a){var e,g;e=0;for(g=a.length;e<g;e++)a[e].rj()};c.prototype.tf=function(a){var e,g;e=0;for(g=a.length;e<g;e++)a[e].tf()};c.prototype.Jp=function(a){if(a.bi){var e,g,f=a.k;e=0;for(g=f.length;e<g;++e)f[e].Mp();f=this.Pc;e=0;for(g=f.length;e<g;++e)f[e].type===a&&f[e].Mp();a.bi=!1}};c.prototype.vn=function(a,e,g,f){var b,d,l=a?1!==a.Nd||1!==a.Od:!1;if(e.O)for(a=0,b=e.qf.length;a<b;++a)d=e.qf[a],l||d.ci?
ya(f,d.k):(this.Jp(d),d.yg.tj(g,f));else l||e.ci?ya(f,e.k):(this.Jp(e),e.yg.tj(g,f))};c.prototype.Pk=function(a,e,g,f){var b,d;b=0;for(d=e.length;b<d;++b)this.vn(a,e[b],g,f)};c.prototype.An=function(a,e,g){var f=this.em;f&&this.Pk(a,f.ij,e,g)};c.prototype.Ss=function(a,e,g){var f=this.Xn;f&&this.Pk(a,f.ij,e,g)};c.prototype.Jb=function(a,e){if(!(a&&e&&a!==e&&a.mc&&e.mc))return!1;a.ta();e.ta();var g=a.u,f=e.u,b,d,l,c,q,r,m,k;if(g===f||g.Nd===f.Nd&&f.Od===f.Od&&g.scale===f.scale&&g.n===f.n&&g.$h===f.$h){if(!a.za.Ln(e.za)||
!a.tb.Kn(e.tb)||a.kg&&e.kg)return!1;if(a.kg)return this.xp(a,e);if(e.kg)return this.xp(e,a);m=a.Z&&!a.Z.ef();b=e.Z&&!e.Z.ef();if(!m&&!b)return!0;m?(a.Z.Me(a.width,a.height,a.n),m=a.Z):(this.cd.fg(a.tb,a.x,a.y,a.width,a.height),m=this.cd);b?(e.Z.Me(e.width,e.height,e.n),k=e.Z):(this.cd.fg(e.tb,e.x,e.y,e.width,e.height),k=this.cd);return m.Wg(k,e.x-a.x,e.y-a.y)}m=a.Z&&!a.Z.ef();b=e.Z&&!e.Z.ef();m?(a.Z.Me(a.width,a.height,a.n),this.cd.mp(a.Z)):this.cd.fg(a.tb,a.x,a.y,a.width,a.height);m=this.cd;b?(e.Z.Me(e.width,
e.height,e.n),this.gm.mp(e.Z)):this.gm.fg(e.tb,e.x,e.y,e.width,e.height);k=this.gm;b=0;for(d=m.Dc;b<d;b++)l=2*b,c=l+1,q=m.Qa[l],r=m.Qa[c],m.Qa[l]=g.na(q+a.x,r+a.y,!0),m.Qa[c]=g.na(q+a.x,r+a.y,!1);m.ta();b=0;for(d=k.Dc;b<d;b++)l=2*b,c=l+1,q=k.Qa[l],r=k.Qa[c],k.Qa[l]=f.na(q+e.x,r+e.y,!0),k.Qa[c]=f.na(q+e.x,r+e.y,!1);k.ta();return m.Wg(k,0,0)};var K=new qa,ra=new Q(0,0,0,0),I=[];c.prototype.xp=function(a,e){var g,f,b,d,l=e.za,c=a.x,q=a.y;a.Ls(l,I);var r=e.Z&&!e.Z.ef();g=0;for(f=I.length;g<f;++g)if(b=
I[g],d=b.$t,l.Mn(d,c,q)&&(K.gg(d),K.offset(c,q),K.Kn(e.tb)))if(r)if(e.Z.Me(e.width,e.height,e.n),b.Eh){if(b.Eh.Wg(e.Z,e.x-(c+d.left),e.y-(q+d.top)))return U(I),!0}else{if(this.cd.fg(K,0,0,d.right-d.left,d.bottom-d.top),this.cd.Wg(e.Z,e.x,e.y))return U(I),!0}else if(b.Eh){if(this.cd.fg(e.tb,0,0,e.width,e.height),b.Eh.Wg(this.cd,-(c+d.left),-(q+d.top)))return U(I),!0}else return U(I),!0;U(I);return!1};c.prototype.wp=function(a,e,g,f,b){if(!b||!b.mc)return!1;b.ta();ra.set(la(a,g),la(e,f),ja(a,g),ja(e,
f));if(!b.za.Ln(ra))return!1;if(b.kg){b.Ls(ra,I);var d,l,c,q=b.x,r=b.y;b=0;for(d=I.length;b<d;++b)if(l=I[b],c=l.$t,ra.Mn(c,q,r)&&(K.gg(c),K.offset(q,r),K.Xg(a,e,g,f)))if(l.Eh){if(l.Eh.Xg(q+c.left,r+c.top,a,e,g,f))return U(I),!0}else return U(I),!0;U(I);return!1}if(!b.tb.Xg(a,e,g,f))return!1;if(!b.Z||b.Z.ef())return!0;b.Z.Me(b.width,b.height,b.n);return b.Z.Xg(b.x,b.y,a,e,g,f)};c.prototype.Fp=function(a,e){if(!e)return!1;var g,f,b,d,l;g=0;for(f=a.Ga.length;g<f;g++)if(a.Ga[g].behavior instanceof e)return!0;
if(!a.O)for(g=0,f=a.Ba.length;g<f;g++)for(l=a.Ba[g],b=0,d=l.Ga.length;b<d;b++)if(l.Ga[b].behavior instanceof e)return!0;return!1};c.prototype.pm=function(a){return this.Fp(a,Ub.Xu)};c.prototype.qm=function(a){return this.Fp(a,Ub.Yu)};var D=[];c.prototype.Da=function(a){var e,g,f;a.ta();this.An(a.u,a.za,D);e=0;for(g=D.length;e<g;++e)if(f=D[e],f.J.solidEnabled&&this.Jb(a,f))return U(D),f;U(D);return null};var M=[];c.prototype.xd=function(a,e){var g=null;e&&(g=M,U(g));a.ta();this.Ss(a.u,a.za,D);var f,
b,d;f=0;for(b=D.length;f<b;++f)if(d=D[f],d.J.jumpthruEnabled&&this.Jb(a,d))if(e)g.push(d);else return U(D),d;U(D);return g};c.prototype.rc=function(a,e,g,f,b,d){f=f||50;var l=a.x,c=a.y,q,r=null,m=null;for(q=0;q<f;q++)if(a.x=l+e*q,a.y=c+g*q,a.C(),!this.Jb(a,r)&&((r=this.Da(a))&&(m=r),!r&&(b&&(d?r=this.Jb(a,d)?d:null:r=this.xd(a),r&&(m=r)),!r)))return m&&this.Jl(a,e,g,m),!0;a.x=l;a.y=c;a.C();return!1};c.prototype.Jl=function(a,e,g,f){var b=2,d,l=!1;d=!1;for(var c=a.x,q=a.y;16>=b;)d=1/b,b*=2,a.x+=e*
d*(l?1:-1),a.y+=g*d*(l?1:-1),a.C(),this.Jb(a,f)?d=l=!0:(d=l=!1,c=a.x,q=a.y);d&&(a.x=c,a.y=q,a.C())};c.prototype.Kl=function(a,e){var g=ea(e)?100:e,f=0,b=a.x,d=a.y,l=0,c=0,q=0,r=this.Da(a);if(!r)return!0;for(;f<=g;){switch(l){case 0:c=0;q=-1;f++;break;case 1:c=1;q=-1;break;case 2:c=1;q=0;break;case 3:q=c=1;break;case 4:c=0;q=1;break;case 5:c=-1;q=1;break;case 6:c=-1;q=0;break;case 7:q=c=-1}l=(l+1)%8;a.x=O(b+c*f);a.y=O(d+q*f);a.C();if(!this.Jb(a,r)&&(r=this.Da(a),!r))return!0}a.x=b;a.y=d;a.C();return!1};
c.prototype.td=function(a,e){a.mc&&e.mc&&this.Kh.push([a,e])};c.prototype.kr=function(a,e){var g,f,b;g=0;for(f=this.Kh.length;g<f;g++)if(b=this.Kh[g],b[0]==a&&b[1]==e||b[0]==e&&b[1]==a)return!0;return!1};c.prototype.jr=function(a,e,g){var f=a.x,b=a.y,d=ja(10,La(e,g,f,b)),l=Ha(e,g,f,b),c=this.Da(a);if(!c)return W(l+na);var q=c,r,m,k,h,n=V(5);for(r=1;36>r;r++)if(m=l-r*n,a.x=e+Math.cos(m)*d,a.y=g+Math.sin(m)*d,a.C(),!this.Jb(a,q)&&(q=this.Da(a),!q)){k=m;break}36===r&&(k=W(l+na));q=c;for(r=1;36>r;r++)if(m=
l+r*n,a.x=e+Math.cos(m)*d,a.y=g+Math.sin(m)*d,a.C(),!this.Jb(a,q)&&(q=this.Da(a),!q)){h=m;break}36===r&&(h=W(l+na));a.x=f;a.y=b;a.C();if(h===k)return h;a=Ia(h,k)/2;a=Ka(h,k)?W(k+a+na):W(h+a);k=Math.cos(l);l=Math.sin(l);h=Math.cos(a);a=Math.sin(a);e=k*h+l*a;return Ha(0,0,k-2*e*h,l-2*e*a)};var ka=-1;c.prototype.trigger=function(a,e,g){if(!this.ja)return!1;var f=this.ja.Se;if(!f)return!1;var b=!1,d,l,c;ka++;var q=f.uk;l=0;for(c=q.length;l<c;++l)d=this.Cp(a,e,q[l],g),b=b||d;d=this.Cp(a,e,f,g);ka--;return b||
d};c.prototype.Cp=function(a,e,g,f){var b=!1,d,l,c,q;if(e)for(c=this.nm(a,e,e.type.name,g,f),b=b||c,q=e.type.Ba,d=0,l=q.length;d<l;++d)c=this.nm(a,e,q[d].name,g,f),b=b||c;else c=this.nm(a,e,"system",g,f),b=b||c;return b};c.prototype.nm=function(a,e,g,f,b){var d,l=!1,c=!1,c="undefined"!==typeof b,q=(c?f.nn:f.Dp)[g];if(!q)return l;var r=null;f=0;for(d=q.length;f<d;++f)if(q[f].method==a){r=q[f].Ig;break}if(!r)return l;var m;c?m=r[b]:m=r;if(!m)return null;f=0;for(d=m.length;f<d;f++)a=m[f][0],b=m[f][1],
c=this.Bs(e,g,a,b),l=l||c;return l};c.prototype.Bs=function(a,e,g,f){var b,d,l=!1;this.om++;var c=this.kb().Ob;c&&this.Hh(c.Fe);var q=1<this.om;this.Hh(g.Fe);q&&this.Zt();var r=this.sj(g);r.Ob=g;a&&(b=this.types[e].aa(),b.ea=!1,U(b.k),b.k[0]=a,this.types[e].jd());a=!0;if(g.parent){e=r.vp;for(b=g.parent;b;)e.push(b),b=b.parent;e.reverse();b=0;for(d=e.length;b<d;b++)if(!e[b].gu()){a=!1;break}}a&&(this.Ue++,g.Xc?g.fu(f):g.Ra(),l=l||r.jf);this.pj();q&&this.St();this.tf(g.Fe);c&&this.tf(c.Fe);this.pe&&
0===this.Uc&&0===ka&&!this.bl&&this.ob();this.om--;return l};c.prototype.Kg=function(){var a=this.kb();return a.Ob.eb[a.cb]};c.prototype.Ns=function(){return this.Kg().type};c.prototype.Ms=function(){var a=this.kb();return a.Ob.uc[a.Mb]};c.prototype.Zt=function(){this.ej++;this.ej>=this.yl.length&&this.yl.push([])};c.prototype.St=function(){this.ej--};c.prototype.wn=function(){return this.yl[this.ej]};c.prototype.sj=function(a){this.vi++;this.vi>=this.Ak.length&&this.Ak.push(new Fb);var e=this.kb();
e.reset(a);return e};c.prototype.pj=function(){this.vi--};c.prototype.kb=function(){return this.Ak[this.vi]};c.prototype.xn=function(a,e){for(var g,f,b,d,l,c;e;){g=0;for(f=e.Gc.length;g<f;g++)if(c=e.Gc[g],c instanceof Gb&&bb(a,c.name))return c;e=e.parent}g=0;for(f=this.Cd.length;g<f;g++)for(l=this.Cd[g],b=0,d=l.me.length;b<d;b++)if(c=l.me[b],c instanceof Gb&&bb(a,c.name))return c;return null};c.prototype.yn=function(a){var e,g;e=0;for(g=this.Vc.length;e<g;e++)if(this.Vc[e].X===a)return this.Vc[e];
return null};c.prototype.Ng=function(a){var e,g;e=0;for(g=this.F.length;e<g;e++)if(this.F[e].X===a)return this.F[e];return null};c.prototype.Ps=function(a){var e,g;e=0;for(g=this.de.length;e<g;e++)if(this.de[e].X===a)return this.de[e];return null};c.prototype.rr=function(a,e){this.Qh=[a,e];this.ma=!0};c.prototype.pt=function(){var a=this,e=this.Vl,g=this.Jd,f=this.Zi,d=!1;this.qp&&(d=!0,e="__c2_continuouspreview",this.qp=!1);if(e.length){this.ob();g=this.ku();if(n()&&!this.Sc)k(e,g,function(){w("Saved state to IndexedDB storage ("+
g.length+" bytes)");a.Jd=g;a.trigger(X.prototype.B.Wj,null);a.Jd="";d&&b()},function(f){try{localStorage.setItem("__c2save_"+e,g),w("Saved state to WebStorage ("+g.length+" bytes)"),a.Jd=g,a.trigger(X.prototype.B.Wj,null),a.Jd="",d&&b()}catch(l){w("Failed to save game state: "+f+"; "+l)}});else try{localStorage.setItem("__c2save_"+e,g),w("Saved state to WebStorage ("+g.length+" bytes)"),a.Jd=g,this.trigger(X.prototype.B.Wj,null),a.Jd="",d&&b()}catch(l){w("Error saving to WebStorage: "+l)}this.Bb=
this.Zi=this.Vl=""}if(f.length){if(n()&&!this.Sc)t(f,function(e){e?(a.Bb=e,w("Loaded state from IndexedDB storage ("+a.Bb.length+" bytes)")):(a.Bb=localStorage.getItem("__c2save_"+f)||"",w("Loaded state from WebStorage ("+a.Bb.length+" bytes)"));a.Rh=!1;a.Bb.length||a.trigger(X.prototype.B.Vj,null)},function(){a.Bb=localStorage.getItem("__c2save_"+f)||"";w("Loaded state from WebStorage ("+a.Bb.length+" bytes)");a.Rh=!1;a.Bb.length||a.trigger(X.prototype.B.Vj,null)});else{try{this.Bb=localStorage.getItem("__c2save_"+
f)||"",w("Loaded state from WebStorage ("+this.Bb.length+" bytes)")}catch(c){this.Bb=""}this.Rh=!1;a.Bb.length||a.trigger(X.prototype.B.Vj,null)}this.Vl=this.Zi=""}this.Bb.length&&(this.ob(),this.Ht(this.Bb),this.Jd=this.Bb,this.trigger(X.prototype.B.zq,null),this.Bb=this.Jd="")};c.prototype.ku=function(){var e,g,f,b,d,l,c,q={c2save:!0,version:1,rt:{time:this.Tb.ca,walltime:this.Tj.ca,timescale:this.lg,tickcount:this.Ic,execcount:this.Ue,next_uid:this.yh,running_layout:this.ja.X,start_time_offset:Date.now()-
this.Fj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(g=this.F.length;e<g;e++)if(d=this.F[e],!d.O&&!this.pm(d)){l={instances:[]};Na(d.J)&&(l.ex=a(d.J));f=0;for(b=d.k.length;f<b;f++)l.instances.push(this.Ul(d.k[f]));q.types[d.X.toString()]=l}e=0;for(g=this.Vc.length;e<g;e++)f=this.Vc[e],q.layouts[f.X.toString()]=f.Sa();b=q.events.groups;e=0;for(g=this.de.length;e<g;e++)f=this.de[e],b[f.X.toString()]=this.Ii[f.Sg].Rg;g=q.events.cnds;for(c in this.he)this.he.hasOwnProperty(c)&&
(e=this.he[c],Na(e.J)&&(g[c]={ex:a(e.J)}));g=q.events.acts;for(c in this.be)this.be.hasOwnProperty(c)&&(e=this.be[c],Na(e.J)&&(g[c]={ex:a(e.J)}));g=q.events.vars;for(c in this.og)this.og.hasOwnProperty(c)&&(e=this.og[c],e.Qi||e.parent&&!e.bh||(g[c]=e.data));q.system=this.wd.Sa();return JSON.stringify(q)};c.prototype.$o=function(){var a,e,g,f,b,d;this.Md={};a=0;for(e=this.F.length;a<e;a++)if(g=this.F[a],!g.O)for(f=0,b=g.k.length;f<b;f++)d=g.k[f],this.Md[d.uid.toString()]=d};c.prototype.Ht=function(a){a=
JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Zg=!0;var e=a.rt;this.Tb.reset();this.Tb.ca=e.time;this.Tj.reset();this.Tj.ca=e.walltime||0;this.lg=e.timescale;this.Ic=e.tickcount;this.Ue=e.execcount;this.Fj=Date.now()-e.start_time_offset;var g=e.running_layout;if(g!==this.ja.X)if(g=this.yn(g))this.jn(g);else return;var f,b,d,l,c,q,r;q=a.types;for(b in q)if(q.hasOwnProperty(b)&&(l=this.Ng(parseInt(b,10)))&&!l.O&&!this.pm(l)){q[b].ex?l.J=q[b].ex:Oa(l.J);c=l.k;d=q[b].instances;g=0;for(f=la(c.length,
d.length);g<f;g++)this.$i(c[g],d[g]);g=d.length;for(f=c.length;g<f;g++)this.Df(c[g]);g=c.length;for(f=d.length;g<f;g++){c=null;if(l.Ca.te&&(c=this.ja.Hi(d[g].w.l),!c))continue;c=this.ie(l.yc,c,!1,0,0,!0);this.$i(c,d[g])}l.ig=!0}this.ob();this.$o();f=a.layouts;for(b in f)f.hasOwnProperty(b)&&(g=this.yn(parseInt(b,10)))&&g.gb(f[b]);f=a.events.groups;for(b in f)f.hasOwnProperty(b)&&(g=this.Ps(parseInt(b,10)))&&this.Ii[g.Sg]&&this.Ii[g.Sg].jp(f[b]);g=a.events.cnds;for(b in this.he)this.he.hasOwnProperty(b)&&
(g.hasOwnProperty(b)?this.he[b].J=g[b].ex:this.he[b].J={});g=a.events.acts;for(b in this.be)this.be.hasOwnProperty(b)&&(g.hasOwnProperty(b)?this.be[b].J=g[b].ex:this.be[b].J={});g=a.events.vars;for(b in g)g.hasOwnProperty(b)&&this.og.hasOwnProperty(b)&&(this.og[b].data=g[b]);this.yh=e.next_uid;this.Zg=!1;g=0;for(f=this.xi.length;g<f;++g)c=this.xi[g],this.trigger(Object.getPrototypeOf(c.type.Ca).B.ai,c);U(this.xi);this.wd.gb(a.system);g=0;for(f=this.F.length;g<f;g++)if(l=this.F[g],!l.O&&!this.pm(l))for(b=
0,a=l.k.length;b<a;b++){c=l.k[b];if(l.ec)for(q=c.Qg(),U(c.siblings),e=0,d=l.Zb.length;e<d;e++)r=l.Zb[e],l!==r&&c.siblings.push(r.k[q]);c.gd&&c.gd();if(c.L)for(e=0,d=c.L.length;e<d;e++)q=c.L[e],q.gd&&q.gd()}this.ma=!0}};c.prototype.Ul=function(e,g){var f,b,d,l,c;l=e.type;d=l.Ca;var q={};g?q.c2=!0:q.uid=e.uid;Na(e.J)&&(q.ex=a(e.J));if(e.Va&&e.Va.length)for(q.ivs={},f=0,b=e.Va.length;f<b;f++)q.ivs[e.type.Xk[f].toString()]=e.Va[f];if(d.te){d={x:e.x,y:e.y,w:e.width,h:e.height,l:e.u.X,zi:e.md()};0!==e.n&&
(d.a=e.n);1!==e.opacity&&(d.o=e.opacity);.5!==e.Rb&&(d.hX=e.Rb);.5!==e.Sb&&(d.hY=e.Sb);0!==e.qb&&(d.bm=e.qb);e.visible||(d.v=e.visible);e.mc||(d.ce=e.mc);-1!==e.xh&&(d.mts=e.xh);if(l.Q.length)for(d.fx=[],f=0,b=l.Q.length;f<b;f++)c=l.Q[f],d.fx.push({name:c.name,active:e.ae[c.index],params:e.Ja[c.index]});q.w=d}if(e.L&&e.L.length)for(q.behs={},f=0,b=e.L.length;f<b;f++)l=e.L[f],l.Sa&&(q.behs[l.type.X.toString()]=l.Sa());e.Sa&&(q.data=e.Sa());return q};c.prototype.Rs=function(a,e){var g,f;g=0;for(f=a.Xk.length;g<
f;g++)if(a.Xk[g]===e)return g;return-1};c.prototype.Ks=function(a,e){var g,f;g=0;for(f=a.L.length;g<f;g++)if(a.L[g].type.X===e)return g;return-1};c.prototype.$i=function(a,e,g){var f,b,d,l,c;c=a.type;l=c.Ca;if(g){if(!e.c2)return}else a.uid=e.uid;e.ex?a.J=e.ex:Oa(a.J);if(b=e.ivs)for(f in b)b.hasOwnProperty(f)&&(d=this.Rs(c,parseInt(f,10)),0>d||d>=a.Va.length||(a.Va[d]=b[f]));if(l.te){d=e.w;a.u.X!==d.l&&(b=a.u,a.u=this.ja.Hi(d.l),a.u?(b.bg(a,!0),a.u.ug(a,!0),a.C(),a.u.Lh(0)):(a.u=b,g||this.Df(a)));
a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.fd=d.zi;a.n=d.hasOwnProperty("a")?d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Rb=d.hasOwnProperty("hX")?d.hX:.5;a.Sb=d.hasOwnProperty("hY")?d.hY:.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.mc=d.hasOwnProperty("ce")?d.ce:!0;a.xh=d.hasOwnProperty("mts")?d.mts:-1;a.qb=d.hasOwnProperty("bm")?d.bm:0;a.zg=Ya(a.qb);this.H&&$a(a,a.qb,this.H);a.C();if(d.hasOwnProperty("fx"))for(g=0,b=d.fx.length;g<b;g++)l=c.Lk(d.fx[g].name),0>l||(a.ae[l]=d.fx[g].active,a.Ja[l]=
d.fx[g].params);a.ed()}if(c=e.behs)for(f in c)c.hasOwnProperty(f)&&(g=this.Ks(a,parseInt(f,10)),0>g||a.L[g].gb(c[f]));e.data&&a.gb(e.data)};c.prototype.pn=function(a,e,g){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,g)},g)};c.prototype.Ds=function(a,e){this.pn("data.js",function(g){var f=new FileReader;f.onload=function(e){a(e.target.result)};f.onerror=e;f.readAsText(g)},e)};c.prototype.Cs=function(a,e,g){this.pn(a,function(a){var g=new FileReader;
g.onload=function(a){e(a.target.result)};g.readAsArrayBuffer(a)},g)};c.prototype.Es=function(a,e,g){this.Cs(a,function(a){a=URL.createObjectURL(new Blob([a]));e(a)},g)};c.prototype.kp=function(a,e){this.dl?this.Es(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};Hb=function(a){return new c(document.getElementById(a))};Ib=function(a,e){return new c({dc:!0,width:a,height:e})};window.cr_createRuntime=Hb;window.cr_createDCRuntime=Ib;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ek=!0;document.body.appendChild(a);a=new c(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 c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,p){var n=window.cr_getC2Runtime();n&&n.rr(c,p)};window.cr_sizeCanvas=function(c,p){if(0!==c&&0!==p){var n=window.cr_getC2Runtime();n&&n.setSize(c,p)}};window.cr_setSuspended=function(c){var p=window.cr_getC2Runtime();p&&p.setSuspended(c)};
(function(){function c(a,f){this.b=a;this.Se=null;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;this.scale=1;this.n=0;this.Mf=!0;this.name=f[0];this.width=f[1];this.height=f[2];this.Gp=f[3];this.pp=f[4];this.X=f[5];var b=f[6],d,c;this.R=[];this.Vg=[];d=0;for(c=b.length;d<c;d++){var m=new Jb(this,b[d]);m.Jo=d;this.R.push(m)}b=f[7];this.$e=[];d=0;for(c=b.length;d<c;d++){var m=b[d],k=this.b.F[m[1]];k.yc||(k.yc=m);this.$e.push(m);-1===this.Vg.indexOf(k)&&this.Vg.push(k)}this.Q=[];this.da=[];this.Qd=
!0;this.Ja=[];d=0;for(c=f[8].length;d<c;d++)this.Q.push({id:f[8][d][0],name:f[8][d][1],Ta:-1,Zc:!1,pb:!0,index:d}),this.Ja.push(f[8][d][2].slice(0));this.ed();this.De=new Q(0,0,1,1);this.Ol=new Q(0,0,1,1);this.Be={}}function p(a,f){return a.fd-f.fd}function n(a,f){this.Xa=a;this.b=a.b;this.k=[];this.scale=1;this.n=0;this.Bd=!1;this.Vd=new Q(0,0,0,0);this.Bp=new qa;this.Ea=this.xa=this.Fa=this.wa=0;this.Cf=!1;this.Zd=-1;this.ok=0;this.name=f[0];this.index=f[1];this.X=f[2];this.visible=f[3];this.Nc=
f[4];this.dd=f[5];this.Nd=f[6];this.Od=f[7];this.opacity=f[8];this.Di=f[9];this.tc=f[10];this.$h=f[11];this.qb=f[12];this.Qr=f[13];this.zg="source-over";this.zb=this.Cb=0;this.mb=null;this.Kd=h();this.ad=!0;this.Xf=new Q(0,0,-1,-1);this.ib=new Q(0,0,-1,-1);this.tc&&(this.mb=new Xa(this.b.Za,this.b.Ya));this.ud=!1;var b=f[14],d,c;this.up=[];this.pc=[];this.Cg=[];d=0;for(c=b.length;d<c;d++){var m=b[d],k=this.b.F[m[1]];k.yc||(k.yc=m,k.qr=this.index);this.pc.push(m);-1===this.Xa.Vg.indexOf(k)&&this.Xa.Vg.push(k)}va(this.up,
this.pc);this.Q=[];this.da=[];this.Qd=!0;this.Ja=[];d=0;for(c=f[15].length;d<c;d++)this.Q.push({id:f[15][d][0],name:f[15][d][1],Ta:-1,Zc:!1,pb:!0,index:d}),this.Ja.push(f[15][d][2].slice(0));this.ed();this.De=new Q(0,0,1,1);this.Ol=new Q(0,0,1,1)}function h(){return a.length?a.pop():[]}function k(e){U(e);a.push(e)}c.prototype.ju=function(a){var f=a.type.X.toString();this.Be.hasOwnProperty(f)||(this.Be[f]=[]);this.Be[f].push(this.b.Ul(a))};c.prototype.Bn=function(){var a=this.R[0];return!a.dd&&1===
a.opacity&&!a.Di&&a.visible};c.prototype.ed=function(){U(this.da);this.Qd=!0;var a,f,b;a=0;for(f=this.Q.length;a<f;a++)b=this.Q[a],b.pb&&(this.da.push(b),b.Zc||(this.Qd=!1))};c.prototype.Kk=function(a){var f,b,d;f=0;for(b=this.Q.length;f<b;f++)if(d=this.Q[f],d.name===a)return d;return null};var t=[],b=!0;c.prototype.fm=function(){this.pp&&(this.Se=this.b.Bk[this.pp],this.Se.tm());this.b.ja=this;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;var a,f,d,c,m,k,h;a=0;for(d=this.b.F.length;a<d;a++)if(f=
this.b.F[a],!f.O)for(m=f.k,f=0,c=m.length;f<c;f++)if(k=m[f],k.u){var g=k.u.Jo;g>=this.R.length&&(g=this.R.length-1);k.u=this.R[g];-1===k.u.k.indexOf(k)&&k.u.k.push(k);k.u.Cf=!0}if(!b)for(a=0,d=this.R.length;a<d;++a)this.R[a].k.sort(p);U(t);this.hr();a=0;for(d=this.R.length;a<d;a++)k=this.R[a],k.pr(),k.Pj();m=!1;if(!this.Mf){for(h in this.Be)if(this.Be.hasOwnProperty(h)&&(f=this.b.Ng(parseInt(h,10)))&&!f.O&&this.b.qm(f)){c=this.Be[h];a=0;for(d=c.length;a<d;a++){k=null;if(f.Ca.te&&(k=this.Hi(c[a].w.l),
!k))continue;k=this.b.ie(f.yc,k,!1,0,0,!0);this.b.$i(k,c[a]);m=!0;t.push(k)}U(c)}a=0;for(d=this.R.length;a<d;a++)this.R[a].k.sort(p),this.R[a].Cf=!0}m&&(this.b.ob(),this.b.$o());for(a=0;a<t.length;a++)if(k=t[a],k.type.ec)for(d=k.Qg(),f=0,c=k.type.Zb.length;f<c;f++)h=k.type.Zb[f],k.type!==h&&(h.k.length>d?k.siblings.push(h.k[d]):h.yc&&(m=this.b.ie(h.yc,k.u,!0,k.x,k.y,!0),this.b.ob(),h.Oj(),k.siblings.push(m),t.push(m)));a=0;for(d=this.$e.length;a<d;a++)this.b.ie(this.$e[a],null,!0);this.b.Ne=null;
this.b.ob();if(this.b.ka&&!this.b.Oa)for(a=0,d=this.b.F.length;a<d;a++)h=this.b.F[a],!h.O&&h.k.length&&h.Gl&&h.Gl(this.b.ka);if(this.b.Zg)va(this.b.xi,t);else for(a=0,d=t.length;a<d;a++)k=t[a],this.b.trigger(Object.getPrototypeOf(k.type.Ca).B.ai,k);U(t);this.b.Zg||this.b.trigger(X.prototype.B.Im,null);this.Mf=!1};c.prototype.or=function(){var a,f,b,d,c;f=a=0;for(b=this.$e.length;a<b;a++)d=this.$e[a],c=this.b.F[d[1]],c.global?c.ec||this.b.ie(d,null,!0):(this.$e[f]=d,f++);ua(this.$e,f)};c.prototype.ou=
function(){this.b.Zg||this.b.trigger(X.prototype.B.yq,null);this.b.Zk=!0;U(this.b.wd.Yb);var a,f,d,c,k,m;if(!this.Mf)for(a=0,f=this.R.length;a<f;a++)for(this.R[a].wm(),k=this.R[a].k,d=0,c=k.length;d<c;d++)m=k[d],m.type.global||this.b.qm(m.type)&&this.ju(m);a=0;for(f=this.R.length;a<f;a++){k=this.R[a].k;d=0;for(c=k.length;d<c;d++)m=k[d],m.type.global||this.b.Df(m);this.b.ob();U(k);this.R[a].Cf=!0}a=0;for(f=this.b.F.length;a<f;a++)if(k=this.b.F[a],!(k.global||k.Ca.te||k.Ca.Ej||k.O)){d=0;for(c=k.k.length;d<
c;d++)this.b.Df(k.k[d]);this.b.ob()}b=!1;this.b.Zk=!1};new Q(0,0,0,0);c.prototype.Qc=function(a){var f,b=a,d=!1,c=!this.b.oc;c&&(this.b.Yi||(this.b.Yi=document.createElement("canvas"),f=this.b.Yi,f.width=this.b.N,f.height=this.b.M,this.b.ko=f.getContext("2d"),d=!0),f=this.b.Yi,b=this.b.ko,f.width!==this.b.N&&(f.width=this.b.N,d=!0),f.height!==this.b.M&&(f.height=this.b.M,d=!0),d&&(b.webkitImageSmoothingEnabled=this.b.V,b.mozImageSmoothingEnabled=this.b.V,b.msImageSmoothingEnabled=this.b.V,b.imageSmoothingEnabled=
this.b.V));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.ak&&!this.Bn()&&b.clearRect(0,0,this.b.N,this.b.M);var k,m,d=0;for(k=this.R.length;d<k;d++)m=this.R[d],m.visible&&0<m.opacity&&11!==m.qb&&(m.k.length||!m.dd)?m.Qc(b):m.Pj();c&&a.drawImage(f,0,0,this.b.width,this.b.height)};c.prototype.Pe=function(a){a.ip(!0);this.b.Pa||(this.b.Pa=a.nc(this.b.N,this.b.M,this.b.V));if(this.b.Pa.Le!==this.b.N||this.b.Pa.Ke!==this.b.M)a.deleteTexture(this.b.Pa),this.b.Pa=a.nc(this.b.N,this.b.M,
this.b.V);a.Fc(this.b.Pa);this.b.oc||a.xf(this.b.N,this.b.M);var f,b;for(f=this.R.length-1;0<=f;--f)b=this.R[f],b.visible&&1===b.opacity&&b.Qd&&0===b.qb&&(b.k.length||!b.dd)?b.Pe(a):b.Pj();a.ip(!1)};c.prototype.Pb=function(a){var f=0<this.da.length||this.b.mg||!this.b.oc||this.b.ua;if(f){this.b.Pa||(this.b.Pa=a.nc(this.b.N,this.b.M,this.b.V));if(this.b.Pa.Le!==this.b.N||this.b.Pa.Ke!==this.b.M)a.deleteTexture(this.b.Pa),this.b.Pa=a.nc(this.b.N,this.b.M,this.b.V);a.Fc(this.b.Pa);this.b.oc||a.xf(this.b.N,
this.b.M)}else this.b.Pa&&(a.Fc(null),a.deleteTexture(this.b.Pa),this.b.Pa=null);this.b.ak&&!this.Bn()&&a.clear(0,0,0,0);var b,d,c;b=0;for(d=this.R.length;b<d;b++)c=this.R[b],c.visible&&0<c.opacity&&(c.k.length||!c.dd)?c.Pb(a):c.Pj();f&&(0===this.da.length||1===this.da.length&&this.b.oc?(1===this.da.length?(f=this.da[0].index,a.Wb(this.da[0].Ta),a.eg(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.n,0,0,this.b.N/2,this.b.M/2,this.b.Tb.ca,this.Ja[f]),a.qj(this.da[0].Ta)&&(this.b.ma=!0)):a.Wb(0),
this.b.oc||a.xf(this.b.width,this.b.height),a.Fc(null),a.hp(!1),a.wf(1),a.jc(this.b.Pa),a.fp(),a.Ec(),a.sc(),f=this.b.width/2,b=this.b.height/2,a.Ih(-f,b,f,b,f,-b,-f,-b),a.jc(null),a.hp(!0)):this.Pl(a,null,null,null))};c.prototype.Og=function(){return 0<this.da.length||this.b.mg||!this.b.oc||this.b.ua?this.b.Pa:null};c.prototype.zn=function(){var a=this.R[0].cc(),f,b,d;f=1;for(b=this.R.length;f<b;f++)d=this.R[f],(0!==d.Nd||0!==d.Od)&&d.cc()<a&&(a=d.cc());return a};c.prototype.Wl=function(a){if(!this.Gp){var f=
1/this.zn()*this.b.N/2;a>this.width-f&&(a=this.width-f);a<f&&(a=f)}this.scrollX!==a&&(this.scrollX=a,this.b.ma=!0)};c.prototype.Xl=function(a){if(!this.Gp){var f=1/this.zn()*this.b.M/2;a>this.height-f&&(a=this.height-f);a<f&&(a=f)}this.scrollY!==a&&(this.scrollY=a,this.b.ma=!0)};c.prototype.hr=function(){this.Wl(this.scrollX);this.Xl(this.scrollY)};c.prototype.Pl=function(a,f,b,d){var c=b?b.da:f?f.da:this.da,k=1,m=0,g=0,q=0,h=this.b.N,n=this.b.M;b?(k=b.u.cc(),m=b.u.ac(),g=b.u.wa,q=b.u.xa,h=b.u.Fa,
n=b.u.Ea):f&&(k=f.cc(),m=f.ac(),g=f.wa,q=f.xa,h=f.Fa,n=f.Ea);var p=this.b.Ik,t,F,C,H,K=0,ra=1,I,D=this.b.N,M=this.b.M,ka=D/2,x=M/2,v=f?f.De:this.De,y=f?f.Ol:this.Ol,G=0,Z=0,J=0,E=0,N=D,wa=D,S=M,xa=M,ma=C=0;H=b?b.u.ac():0;if(b){t=0;for(F=c.length;t<F;t++)C+=a.Xs(c[t].Ta),ma+=a.Ys(c[t].Ta);E=b.za;G=f.na(E.left,E.top,!0,!0);J=f.na(E.left,E.top,!1,!0);N=f.na(E.right,E.bottom,!0,!0);S=f.na(E.right,E.bottom,!1,!0);0!==H&&(t=f.na(E.right,E.top,!0,!0),F=f.na(E.right,E.top,!1,!0),Z=f.na(E.left,E.bottom,!0,
!0),E=f.na(E.left,E.bottom,!1,!0),H=Math.min(G,N,t,Z),N=Math.max(G,N,t,Z),G=H,H=Math.min(J,S,F,E),S=Math.max(J,S,F,E),J=H);G-=C;J-=ma;N+=C;S+=ma;y.left=G/D;y.top=1-J/M;y.right=N/D;y.bottom=1-S/M;Z=G=O(G);E=J=O(J);wa=N=oa(N);xa=S=oa(S);Z-=C;E-=ma;wa+=C;xa+=ma;0>G&&(G=0);0>J&&(J=0);N>D&&(N=D);S>M&&(S=M);0>Z&&(Z=0);0>E&&(E=0);wa>D&&(wa=D);xa>M&&(xa=M);v.left=G/D;v.top=1-J/M;v.right=N/D;v.bottom=1-S/M}else v.left=y.left=0,v.top=y.top=0,v.right=y.right=1,v.bottom=y.bottom=1;ma=b&&(a.Fh(c[0].Ta)||0!==C||
0!==ma||1!==b.opacity||b.type.Ca.Go)||f&&!b&&1!==f.opacity;a.fp();if(ma){p[K]||(p[K]=a.nc(D,M,this.b.V));if(p[K].Le!==D||p[K].Ke!==M)a.deleteTexture(p[K]),p[K]=a.nc(D,M,this.b.V);a.Wb(0);a.Fc(p[K]);I=xa-E;a.clearRect(Z,M-E-I,wa-Z,I);b?b.Pb(a):(a.jc(this.b.Wa),a.wf(f.opacity),a.Ec(),a.translate(-ka,-x),a.sc(),a.sd(G,S,N,S,N,J,G,J,v));y.left=y.top=0;y.right=y.bottom=1;b&&(H=v.top,v.top=v.bottom,v.bottom=H);K=1;ra=0}a.wf(1);C=c.length-1;var Za=a.Il(c[C].Ta)||!f&&!b&&!this.b.oc,Ca=0;t=0;for(F=c.length;t<
F;t++){p[K]||(p[K]=a.nc(D,M,this.b.V));if(p[K].Le!==D||p[K].Ke!==M)a.deleteTexture(p[K]),p[K]=a.nc(D,M,this.b.V);a.Wb(c[t].Ta);Ca=c[t].index;a.qj(c[t].Ta)&&(this.b.ma=!0);0!=t||ma?(a.eg(d,1/D,1/M,y.left,y.top,y.right,y.bottom,k,m,g,q,(g+h)/2,(q+n)/2,this.b.Tb.ca,b?b.Ja[Ca]:f?f.Ja[Ca]:this.Ja[Ca]),a.jc(null),t!==C||Za?(a.Fc(p[K]),I=xa-E,H=M-E-I,a.clearRect(Z,H,wa-Z,I)):(b?a.Ee(b.Cb,b.zb):f&&a.Ee(f.Cb,f.zb),a.Fc(d)),a.jc(p[ra]),a.Ec(),a.translate(-ka,-x),a.sc(),a.sd(G,S,N,S,N,J,G,J,v),t!==C||Za||a.jc(null)):
(a.Fc(p[K]),I=xa-E,H=M-E-I,a.clearRect(Z,H,wa-Z,I),b?(a.eg(d,1/b.width,1/b.height,y.left,y.top,y.right,y.bottom,k,m,g,q,(g+h)/2,(q+n)/2,this.b.Tb.ca,b.Ja[Ca]),b.Pb(a)):(a.eg(d,1/D,1/M,0,0,1,1,k,m,g,q,(g+h)/2,(q+n)/2,this.b.Tb.ca,f?f.Ja[Ca]:this.Ja[Ca]),a.jc(f?this.b.Wa:this.b.Pa),a.Ec(),a.translate(-ka,-x),a.sc(),a.sd(G,S,N,S,N,J,G,J,v)),y.left=y.top=0,y.right=y.bottom=1,b&&!Za&&(H=S,S=J,J=H));K=0===K?1:0;ra=0===K?1:0}Za&&(a.Wb(0),b?a.Ee(b.Cb,b.zb):f?a.Ee(f.Cb,f.zb):this.b.oc||(a.xf(this.b.width,
this.b.height),ka=this.b.width/2,x=this.b.height/2,J=G=0,N=this.b.width,S=this.b.height),a.Fc(d),a.jc(p[ra]),a.Ec(),a.translate(-ka,-x),a.sc(),b&&1===c.length&&!ma?a.sd(G,J,N,J,N,S,G,S,v):a.sd(G,S,N,S,N,J,G,J,v),a.jc(null))};c.prototype.Hi=function(a){var b,d;b=0;for(d=this.R.length;b<d;b++)if(this.R[b].X===a)return this.R[b];return null};c.prototype.Sa=function(){var a,b,d,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.Mf,persist:this.Be,fx:[],layers:{}};
a=0;for(b=this.Q.length;a<b;a++)d=this.Q[a],c.fx.push({name:d.name,active:d.pb,params:this.Ja[d.index]});a=0;for(b=this.R.length;a<b;a++)d=this.R[a],c.layers[d.X.toString()]=d.Sa();return c};c.prototype.gb=function(a){var b,d,c,k;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.Be=a.persist;"undefined"!==typeof a.fv&&(this.Mf=a.fv);var m=a.fx;b=0;for(d=m.length;b<d;b++)if(c=this.Kk(m[b].name))c.pb=m[b].active,this.Ja[c.index]=m[b].params;this.ed();
b=a.layers;for(k in b)b.hasOwnProperty(k)&&(a=this.Hi(parseInt(k,10)))&&a.gb(b[k])};vb=c;n.prototype.ed=function(){U(this.da);this.Qd=!0;var a,b,d;a=0;for(b=this.Q.length;a<b;a++)d=this.Q[a],d.pb&&(this.da.push(d),d.Zc||(this.Qd=!1))};n.prototype.Kk=function(a){var b,d,c;b=0;for(d=this.Q.length;b<d;b++)if(c=this.Q[b],c.name===a)return c;return null};n.prototype.pr=function(){var a,b,d,c,k,m;b=a=0;for(d=this.pc.length;a<d;a++){c=this.pc[a];k=this.b.F[c[1]];m=this.b.qm(k);k=!0;if(!m||this.Xa.Mf){c=
this.b.ie(c,this,!0);if(!c)continue;t.push(c);c.type.global&&(k=!1,this.Cg.push(c.uid))}k&&(this.pc[b]=this.pc[a],b++)}this.pc.length=b;this.b.ob();!this.b.G&&this.Q.length&&(this.qb=this.Qr);this.zg=Ya(this.qb);this.b.H&&$a(this,this.qb,this.b.H);this.ad=!0};n.prototype.bg=function(a,b){var d=za(this.k,a);0>d||(b&&this.tc&&a.Vb&&a.Vb.right>=a.Vb.left&&(a.ta(),this.mb.update(a,a.Vb,null),a.Vb.set(0,0,-1,-1)),d===this.k.length-1?this.k.pop():(ta(this.k,d),this.Lh(d)),this.ad=!0)};n.prototype.ug=function(a,
b){a.fd=this.k.length;this.k.push(a);b&&this.tc&&a.Vb&&a.C();this.ad=!0};n.prototype.Wt=function(a){this.k.unshift(a);this.Lh(0)};n.prototype.Lt=function(a,b,d){var c=a.md();b=b.md();ta(this.k,c);c<b&&b--;d&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.Lh(c<b?c:b)};n.prototype.Lh=function(a){-1===this.Zd?this.Zd=a:a<this.Zd&&(this.Zd=a);this.ad=this.Cf=!0};n.prototype.wm=function(){if(this.Cf){-1===this.Zd&&(this.Zd=0);var a,b,d;if(this.tc)for(a=this.Zd,b=this.k.length;a<b;++a)d=
this.k[a],d.fd=a,this.mb.Jt(d.Vb);else for(a=this.Zd,b=this.k.length;a<b;++a)this.k[a].fd=a;this.Cf=!1;this.Zd=-1}};n.prototype.cc=function(a){return this.Vs()*(this.b.oc||a?this.b.vg:1)};n.prototype.Vs=function(){return(this.scale*this.Xa.scale-1)*this.$h+1};n.prototype.ac=function(){return this.Bd?0:W(this.Xa.n+this.n)};var a=[],d=[],m=[];n.prototype.Nk=function(){this.wm();this.mb.tj(this.wa,this.xa,this.Fa,this.Ea,m);if(!m.length)return h();if(1===m.length){var a=h();va(a,m[0]);U(m);return a}for(var b=
!0;1<m.length;){for(var a=m,c=void 0,l=void 0,n=void 0,p=void 0,t=void 0,c=0,l=a.length;c<l-1;c+=2){var n=a[c],p=a[c+1],t=h(),g=n,q=p,u=t,T=0,R=0,P=0,F=g.length,C=q.length,H=void 0,K=void 0;for(u.length=F+C;T<F&&R<C;++P)H=g[T],K=q[R],H.fd<K.fd?(u[P]=H,++T):(u[P]=K,++R);for(;T<F;++T,++P)u[P]=g[T];for(;R<C;++R,++P)u[P]=q[R];b||(k(n),k(p));d.push(t)}1===l%2&&(b?(n=h(),va(n,a[l-1]),d.push(n)):d.push(a[l-1]));va(a,d);U(d);b=!1}a=m[0];U(m);return a};n.prototype.Qc=function(a){this.ud=this.Di||1!==this.opacity||
0!==this.qb;var b=this.b.canvas,d=a,c=!1;this.ud&&(this.b.Xi||(this.b.Xi=document.createElement("canvas"),b=this.b.Xi,b.width=this.b.N,b.height=this.b.M,this.b.jo=b.getContext("2d"),c=!0),b=this.b.Xi,d=this.b.jo,b.width!==this.b.N&&(b.width=this.b.N,c=!0),b.height!==this.b.M&&(b.height=this.b.M,c=!0),c&&(d.webkitImageSmoothingEnabled=this.b.V,d.mozImageSmoothingEnabled=this.b.V,d.msImageSmoothingEnabled=this.b.V,d.imageSmoothingEnabled=this.b.V),this.dd&&d.clearRect(0,0,this.b.N,this.b.M));d.globalAlpha=
1;d.globalCompositeOperation="source-over";this.dd||(d.fillStyle="rgb("+this.Nc[0]+","+this.Nc[1]+","+this.Nc[2]+")",d.fillRect(0,0,this.b.N,this.b.M));d.save();this.Bd=!0;var c=this.ge(!0),m=this.ge(!1);this.Bd=!1;this.b.Yc&&(c=Math.round(c),m=Math.round(m));this.vj(c,m,d);var h=this.cc();d.scale(h,h);d.translate(-c,-m);this.tc?(this.ib.left=this.mb.Kb(this.wa),this.ib.top=this.mb.Lb(this.xa),this.ib.right=this.mb.Kb(this.Fa),this.ib.bottom=this.mb.Lb(this.Ea),this.ad||!this.ib.Hg(this.Xf)?(k(this.Kd),
c=this.Nk(),this.ad=!1,this.Xf.Ag(this.ib)):c=this.Kd):c=this.k;for(var n,g=null,m=0,h=c.length;m<h;++m)n=c[m],n!==g&&(this.Lr(n,d),g=n);this.tc&&(this.Kd=c);d.restore();this.ud&&(a.globalCompositeOperation=this.zg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.Lr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var d=a.za;d.right<this.wa||d.bottom<this.xa||d.left>this.Fa||d.top>this.Ea||(b.globalCompositeOperation=a.zg,a.Qc(b))}};n.prototype.Pj=function(){this.Bd=!0;var a=
this.ge(!0),b=this.ge(!1);this.Bd=!1;this.b.Yc&&(a=Math.round(a),b=Math.round(b));this.vj(a,b,null)};n.prototype.vj=function(a,b,d){var c=this.cc();this.wa=a;this.xa=b;this.Fa=a+1/c*this.b.N;this.Ea=b+1/c*this.b.M;a=this.ac();0!==a&&(d&&(d.translate(this.b.N/2,this.b.M/2),d.rotate(-a),d.translate(this.b.N/-2,this.b.M/-2)),this.Vd.set(this.wa,this.xa,this.Fa,this.Ea),this.Vd.offset((this.wa+this.Fa)/-2,(this.xa+this.Ea)/-2),this.Bp.np(this.Vd,a),this.Bp.Wm(this.Vd),this.Vd.offset((this.wa+this.Fa)/
2,(this.xa+this.Ea)/2),this.wa=this.Vd.left,this.xa=this.Vd.top,this.Fa=this.Vd.right,this.Ea=this.Vd.bottom)};n.prototype.Pe=function(a){if(this.ud=this.Di){this.b.Wa||(this.b.Wa=a.nc(this.b.N,this.b.M,this.b.V));if(this.b.Wa.Le!==this.b.N||this.b.Wa.Ke!==this.b.M)a.deleteTexture(this.b.Wa),this.b.Wa=a.nc(this.b.N,this.b.M,this.b.V);a.Fc(this.b.Wa)}this.Bd=!0;var b=this.ge(!0),d=this.ge(!1);this.Bd=!1;this.b.Yc&&(b=Math.round(b),d=Math.round(d));this.vj(b,d,null);b=this.cc();a.Ec();a.scale(b,b);
a.wj(-this.ac());a.translate((this.wa+this.Fa)/-2,(this.xa+this.Ea)/-2);a.sc();this.tc?(this.ib.left=this.mb.Kb(this.wa),this.ib.top=this.mb.Lb(this.xa),this.ib.right=this.mb.Kb(this.Fa),this.ib.bottom=this.mb.Lb(this.Ea),this.ad||!this.ib.Hg(this.Xf)?(k(this.Kd),b=this.Nk(),this.ad=!1,this.Xf.Ag(this.ib)):b=this.Kd):b=this.k;for(var c,m=null,d=b.length-1;0<=d;--d)c=b[d],c!==m&&(this.Nr(b[d],a),m=c);this.tc&&(this.Kd=b);this.dd||(this.ok=this.b.Qe++,a.zj(this.ok),a.gp(1,1,1),a.sn(),a.bu())};n.prototype.Pb=
function(a){var b=0,d=0;if(this.ud=this.Di||1!==this.opacity||0<this.da.length||0!==this.qb){this.b.Wa||(this.b.Wa=a.nc(this.b.N,this.b.M,this.b.V));if(this.b.Wa.Le!==this.b.N||this.b.Wa.Ke!==this.b.M)a.deleteTexture(this.b.Wa),this.b.Wa=a.nc(this.b.N,this.b.M,this.b.V);a.Fc(this.b.Wa);this.dd&&a.clear(0,0,0,0)}this.dd||(this.b.ua?(a.zj(this.ok),a.gp(this.Nc[0]/255,this.Nc[1]/255,this.Nc[2]/255),a.sn(),a.lu()):a.clear(this.Nc[0]/255,this.Nc[1]/255,this.Nc[2]/255,1));this.Bd=!0;var c=this.ge(!0),b=
this.ge(!1);this.Bd=!1;this.b.Yc&&(c=Math.round(c),b=Math.round(b));this.vj(c,b,null);c=this.cc();a.Ec();a.scale(c,c);a.wj(-this.ac());a.translate((this.wa+this.Fa)/-2,(this.xa+this.Ea)/-2);a.sc();this.tc?(this.ib.left=this.mb.Kb(this.wa),this.ib.top=this.mb.Lb(this.xa),this.ib.right=this.mb.Kb(this.Fa),this.ib.bottom=this.mb.Lb(this.Ea),this.ad||!this.ib.Hg(this.Xf)?(k(this.Kd),b=this.Nk(),this.ad=!1,this.Xf.Ag(this.ib)):b=this.Kd):b=this.k;var m,h,n=null,d=0;for(m=b.length;d<m;++d)h=b[d],h!==n&&
(this.Mr(b[d],a),n=h);this.tc&&(this.Kd=b);this.ud&&(b=this.da.length?this.da[0].Ta:0,d=this.da.length?this.da[0].index:0,0===this.da.length||1===this.da.length&&!a.Il(b)&&1===this.opacity?(1===this.da.length?(a.Wb(b),a.eg(this.Xa.Og(),1/this.b.N,1/this.b.M,0,0,1,1,c,this.ac(),this.wa,this.xa,(this.wa+this.Fa)/2,(this.xa+this.Ea)/2,this.b.Tb.ca,this.Ja[d]),a.qj(b)&&(this.b.ma=!0)):a.Wb(0),a.Fc(this.Xa.Og()),a.wf(this.opacity),a.jc(this.b.Wa),a.Ee(this.Cb,this.zb),a.Ec(),a.sc(),c=this.b.N/2,b=this.b.M/
2,a.Ih(-c,b,c,b,c,-b,-c,-b),a.jc(null)):this.Xa.Pl(a,this,null,this.Xa.Og()))};n.prototype.Mr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var d=a.za;d.right<this.wa||d.bottom<this.xa||d.left>this.Fa||d.top>this.Ea||(b.zj(a.Qe),a.Op?this.Or(a,b):(b.Wb(0),b.Ee(a.Cb,a.zb),a.Pb(b)))}};n.prototype.Nr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var d=a.za;d.right<this.wa||d.bottom<this.xa||d.left>this.Fa||d.top>this.Ea||(a.Qe=this.b.Qe++,0===a.qb&&1===a.opacity&&a.Qd&&
a.Pe&&(b.zj(a.Qe),a.Pe(b)))}};n.prototype.Or=function(a,b){var d=a.da[0].Ta,c=a.da[0].index,m=this.cc();if(1!==a.da.length||b.Il(d)||b.Yt(d)||(a.n||a.u.ac())&&b.Fh(d)||1!==a.opacity||a.type.Ca.Go)this.Xa.Pl(b,this,a,this.ud?this.b.Wa:this.Xa.Og()),b.Ec(),b.scale(m,m),b.wj(-this.ac()),b.translate((this.wa+this.Fa)/-2,(this.xa+this.Ea)/-2),b.sc();else{b.Wb(d);b.Ee(a.Cb,a.zb);b.qj(d)&&(this.b.ma=!0);var k=0,h=0,g=0,q=0;b.Fh(d)&&(d=a.za,k=this.na(d.left,d.top,!0,!0),h=this.na(d.left,d.top,!1,!0),g=this.na(d.right,
d.bottom,!0,!0),d=this.na(d.right,d.bottom,!1,!0),k=k/windowWidth,h=1-h/windowHeight,g=g/windowWidth,q=1-d/windowHeight);b.eg(this.ud?this.b.Wa:this.Xa.Og(),1/a.width,1/a.height,k,h,g,q,m,this.ac(),this.wa,this.xa,(this.wa+this.Fa)/2,(this.xa+this.Ea)/2,this.b.Tb.ca,a.Ja[c]);a.Pb(b)}};n.prototype.ge=function(a){var b=0,d=0,c=this.b.devicePixelRatio;this.b.df&&(b*=c,d*=c);var c=this.b.Qo,m=this.b.Ro,c=(this.Xa.scrollX-c)*this.Nd+c,m=(this.Xa.scrollY-m)*this.Od+m,k,h,g=1/this.cc(!1);k=c-this.b.N*g/
2;h=m-this.b.M*g/2;k+=b*g;h+=d*g;d=this.ac();0!==d&&(k-=c,h-=m,b=Math.cos(d),d=Math.sin(d),g=k*b-h*d,h=h*b+k*d,k=g+c,h+=m);return a?k:h};n.prototype.na=function(a,b,d,c){var k=this.b.Qo,m=this.b.Ro,h=(this.Xa.scrollX-k)*this.Nd+k,g=(this.Xa.scrollY-m)*this.Od+m,m=h,k=g,q=this.ac();if(0!==q){a-=h;b-=g;var n=Math.cos(-q),q=Math.sin(-q),p=a*n-b*q;b=b*n+a*q;a=p+h;b+=g}h=1/this.cc(!c);c?(m-=this.b.N*h/2,k-=this.b.M*h/2):(m-=this.b.width*h/2,k-=this.b.height*h/2);m=(a-m)/h;k=(b-k)/h;a=this.b.devicePixelRatio;
this.b.df&&!c&&(m/=a,k/=a);return d?m:k};n.prototype.Sa=function(){var a,b,d,c={s:this.scale,a:this.n,vl:this.wa,vt:this.xa,vr:this.Fa,vb:this.Ea,v:this.visible,bc:this.Nc,t:this.dd,px:this.Nd,py:this.Od,o:this.opacity,zr:this.$h,fx:[],cg:this.Cg,instances:[]};a=0;for(b=this.Q.length;a<b;a++)d=this.Q[a],c.fx.push({name:d.name,active:d.pb,params:this.Ja[d.index]});return c};n.prototype.gb=function(a){var b,d,c;this.scale=a.s;this.n=a.a;this.wa=a.vl;this.xa=a.vt;this.Fa=a.vr;this.Ea=a.vb;this.visible=
a.v;this.Nc=a.bc;this.dd=a.t;this.Nd=a.px;this.Od=a.py;this.opacity=a.o;this.$h=a.zr;this.Cg=a.cg||[];va(this.pc,this.up);var k=new ba;b=0;for(c=this.Cg.length;b<c;++b)k.add(this.Cg[b]);d=b=0;for(c=this.pc.length;b<c;++b)k.contains(this.pc[b][2])||(this.pc[d]=this.pc[b],++d);ua(this.pc,d);d=a.fx;b=0;for(c=d.length;b<c;b++)if(a=this.Kk(d[b].name))a.pb=d[b].active,this.Ja[a.index]=d[b].params;this.ed();this.k.sort(p);this.Cf=!0};Jb=n})();
(function(){function c(a,b){var d,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(d=0;d<e;d++)if(a[d]!==b[d])return!1;return!0}}function p(a,b){return a.index-b.index}function n(a){var b,d,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(p);a.length>=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);f=B[a.length];b=0;for(d=f.length;b<d;b++)if(e=f[b],c(a,e))return e;f.push(a);return a}
function h(a,b){this.b=a;this.Dp={};this.nn={};this.Tk=!1;this.Fn=new ba;this.uk=[];this.bk=[];this.name=b[0];var d=b[1];this.me=[];var e,f;e=0;for(f=d.length;e<f;e++)this.Hn(d[e],null,this.me)}function k(a){this.type=a;this.k=[];this.U=[];this.ea=!0}function t(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ra=[];this.Fe=[];this.Cn=this.Lj=this.mm=this.Li=this.group=this.tp=!1;this.eb=[];this.uc=[];this.Gc=[];this.Sg="";this.Rg=this.Li=this.group=!1;this.ni=null;d[1]&&(this.Sg=d[1][1].toLowerCase(),
this.group=!0,this.Li=!!d[1][0],this.ni=[],this.Rg=this.Li,this.b.de.push(this),this.b.Ii[this.Sg]=this);this.Xc=d[2];this.X=d[4];this.group||(this.b.Vm[this.X.toString()]=this);var e=d[5];a=0;for(b=e.length;a<b;a++){var f=new Kb(this,e[a]);f.index=a;this.eb.push(f);this.Qm(f.type)}e=d[6];a=0;for(b=e.length;a<b;a++)f=new Lb(this,e[a]),f.index=a,this.uc.push(f);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Hn(d[a],this,this.Gc);this.Ri=!1;this.eb.length&&(this.Ri=null==this.eb[0].type&&
this.eb[0].jb==X.prototype.B.Cm)}function b(a,b){var d,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.ec))for(d=0,e=a.Zb.length;d<e;d++)f=a.Zb[d],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.lc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.La=[];this.J={};this.index=-1;this.sg=!1;this.jb=this.b.$d(b[1]);this.trigger=0<b[3];this.mn=2===b[3];this.Mi=b[5];this.Ft=b[6];this.X=b[7];this.b.he[this.X.toString()]=this;-1===b[0]?(this.type=null,this.Ra=this.Tl,this.Je=null,this.Oc=-1):(this.type=this.b.F[b[0]],
this.Ra=this.Ft?this.hu:this.Sl,b[2]?(this.Je=this.type.Gi(b[2]),this.Oc=this.type.Jk(b[2])):(this.Je=null,this.Oc=-1),this.lc.parent&&this.lc.parent.Aj());this.mn&&(this.Ra=this.iu);if(10===b.length){var d,e,f=b[9];d=0;for(e=f.length;d<e;d++){var c=new Mb(this,f[d]);this.T.push(c)}this.La.length=f.length}}function d(a,b){this.lc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.La=[];this.J={};this.index=-1;this.sg=!1;this.jb=this.b.$d(b[1]);-1===b[0]?(this.type=null,this.Ra=this.Tl,this.Je=null,this.Oc=
-1):(this.type=this.b.F[b[0]],this.Ra=this.Sl,b[2]?(this.Je=this.type.Gi(b[2]),this.Oc=this.type.Jk(b[2])):(this.Je=null,this.Oc=-1));this.X=b[3];this.b.be[this.X.toString()]=this;if(6===b.length){var d,e,f=b[5];d=0;for(e=f.length;d<e;d++){var c=new Mb(this,f[d]);this.T.push(c)}this.La.length=f.length}}function m(){z++;A.length===z&&A.push(new Nb);return A[z]}function e(a,b){this.Cc=a;this.lc=a.lc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ld=null;this.Td=0;this.get=null;this.an=0;this.Xa=
null;this.key=0;this.object=null;this.index=0;this.Wh=this.zf=this.Wh=this.zf=this.qn=this.Te=this.Xh=null;this.Kc=!1;var d,e,f;switch(b[0]){case 0:case 7:this.ld=new Ob(this,b[1]);this.Td=0;this.get=this.dt;break;case 1:this.ld=new Ob(this,b[1]);this.Td=0;this.get=this.et;break;case 5:this.ld=new Ob(this,b[1]);this.Td=0;this.get=this.jt;break;case 3:case 8:this.an=b[1];this.get=this.bt;break;case 6:this.Xa=this.b.pl[b[1]];this.get=this.kt;break;case 9:this.key=b[1];this.get=this.it;break;case 4:this.object=
this.b.F[b[1]];this.get=this.lt;this.lc.Qm(this.object);this.Cc instanceof Lb?this.lc.Aj():this.lc.parent&&this.lc.parent.Aj();break;case 10:this.index=b[1];a.type.O?(this.get=this.gt,this.Kc=!0):this.get=this.ht;break;case 11:this.Xh=b[1];this.Te=null;this.get=this.ct;break;case 2:case 12:this.qn=b[1];this.get=this.$s;break;case 13:for(this.get=this.mt,this.zf=[],this.Wh=[],d=1,e=b.length;d<e;d++)f=new Mb(this.Cc,b[d]),this.zf.push(f),this.Wh.push(0)}}function f(a,b,d){this.sheet=a;this.parent=b;
this.b=a.b;this.ra=[];this.name=d[1];this.Rj=d[2];this.Ki=d[3];this.bh=!!d[4];this.Qi=!!d[5];this.X=d[6];this.b.og[this.X.toString()]=this;this.data=this.Ki;this.parent?(this.of=this.bh||this.Qi?-1:this.b.nu++,this.b.cr.push(this)):(this.of=-1,this.b.$j.push(this))}function r(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ra=[];this.Ug=null;this.wt=d[1];this.pb=!0}function l(){this.vp=[];this.reset(null)}var B=[];h.prototype.toString=function(){return this.name};h.prototype.Hn=function(a,b,d){switch(a[0]){case 0:a=
new Pb(this,b,a);if(a.Xc)for(d.push(a),d=0,b=a.eb.length;d<b;d++)a.eb[d].trigger&&this.In(a,d);else a.Vn()?this.In(a,0):d.push(a);break;case 1:a=new Gb(this,b,a);d.push(a);break;case 2:a=new Qb(this,b,a),d.push(a)}};h.prototype.Na=function(){var a,b;a=0;for(b=this.me.length;a<b;a++)this.me[a].Na(a<b-1&&this.me[a+1].Ri)};h.prototype.tm=function(){U(this.uk);U(this.bk);this.Pm(this);U(this.bk)};h.prototype.Pm=function(a){var b,d,e,f,c=a.uk,l=a.bk,k=this.Fn.Jc();b=0;for(d=k.length;b<d;++b)e=k[b],f=e.Ug,
!e.pb||a===f||-1<l.indexOf(f)||(l.push(f),f.Pm(a),c.push(f))};h.prototype.Ra=function(a){this.b.Cv||(this.Tk=!0,a||(this.b.bl=!0));var b,d;b=0;for(d=this.me.length;b<d;b++){var e=this.me[b];e.Ra();this.b.nk(e.ra);this.b.pe&&this.b.ob()}a||(this.b.bl=!1)};h.prototype.In=function(a,b){a.Xc||this.b.Nj.push(a);var d,e,f=a.eb[b],c;f.type?c=f.type.name:c="system";var l=(d=f.mn)?this.nn:this.Dp;l[c]||(l[c]=[]);c=l[c];l=f.jb;if(d){if(f.T.length&&(f=f.T[0],1===f.type&&2===f.ld.type)){f=f.ld.value.toLowerCase();
d=0;for(e=c.length;d<e;d++)if(c[d].method==l){d=c[d].Ig;d[f]?d[f].push([a,b]):d[f]=[[a,b]];return}d={};d[f]=[[a,b]];c.push({method:l,Ig:d})}}else{d=0;for(e=c.length;d<e;d++)if(c[d].method==l){c[d].Ig.push([a,b]);return}Y&&l===Y.prototype.B.Gf?c.unshift({method:l,Ig:[[a,b]]}):c.push({method:l,Ig:[[a,b]]})}};wb=h;k.prototype.Sk=function(){return this.ea?this.type.k.length:this.k.length};k.prototype.Qb=function(){return this.ea?this.type.k:this.k};k.prototype.Dh=function(a){a&&(a.b.kb().Ob.Xc?(this.ea&&
(U(this.k),va(this.U,a.type.k),this.ea=!1),a=this.U.indexOf(a),-1!==a&&(this.k.push(this.U[a]),this.U.splice(a,1))):(this.ea=!1,U(this.k),this.k[0]=a))};fb=k;window._c2hh_="CDBC7FB1261439E62B470B5C6EFCF9F1C7C6C111";t.prototype.Na=function(a){var b,d=this.parent;if(this.group)for(this.Lj=!0;d;){if(!d.group){this.Lj=!1;break}d=d.parent}this.mm=!this.Vn()&&(!this.parent||this.parent.group&&this.parent.Lj);this.Cn=!!a;this.Fe=this.ra.slice(0);for(d=this.parent;d;){a=0;for(b=d.ra.length;a<b;a++)this.br(d.ra[a]);
d=d.parent}this.ra=n(this.ra);this.Fe=n(this.Fe);a=0;for(b=this.eb.length;a<b;a++)this.eb[a].Na();a=0;for(b=this.uc.length;a<b;a++)this.uc[a].Na();a=0;for(b=this.Gc.length;a<b;a++)this.Gc[a].Na(a<b-1&&this.Gc[a+1].Ri)};t.prototype.jp=function(a){if(this.Rg!==!!a){this.Rg=!!a;var b;a=0;for(b=this.ni.length;a<b;++a)this.ni[a].Ip();0<b&&this.b.ja.Se&&this.b.ja.Se.tm()}};t.prototype.Qm=function(a){b(a,this.ra)};t.prototype.br=function(a){b(a,this.Fe)};t.prototype.Aj=function(){this.tp=!0;this.parent&&
this.parent.Aj()};t.prototype.Vn=function(){return this.eb.length?this.eb[0].trigger:!1};t.prototype.Ra=function(){var a,b,d=!1,e=this.b,f=this.b.kb();f.Ob=this;var c=this.eb;this.Ri||(f.yk=!1);if(this.Xc){0===c.length&&(d=!0);f.cb=0;for(a=c.length;f.cb<a;f.cb++)b=c[f.cb],b.trigger||(b=b.Ra())&&(d=!0);(f.jf=d)&&this.xj()}else{f.cb=0;for(a=c.length;f.cb<a;f.cb++)if(b=c[f.cb].Ra(),!b){f.jf=!1;this.mm&&e.pe&&e.ob();return}f.jf=!0;this.xj()}this.Sr(f)};t.prototype.Sr=function(a){a.jf&&this.Cn&&(a.yk=
!0);this.mm&&this.b.pe&&this.b.ob()};t.prototype.fu=function(a){this.b.kb().Ob=this;this.eb[a].Ra()&&(this.xj(),this.b.kb().jf=!0)};t.prototype.xj=function(){var a=this.b.kb(),b;a.Mb=0;for(b=this.uc.length;a.Mb<b;a.Mb++)if(this.uc[a.Mb].Ra())return;this.ep()};t.prototype.cu=function(){var a=this.b.kb(),b;for(b=this.uc.length;a.Mb<b;a.Mb++)if(this.uc[a.Mb].Ra())return;this.ep()};t.prototype.ep=function(){if(this.Gc.length){var a,b,d,e,f=this.Gc.length-1;this.b.sj(this);if(this.tp)for(a=0,b=this.Gc.length;a<
b;a++)d=this.Gc[a],(e=!this.Lj||!this.group&&a<f)&&this.b.rj(d.ra),d.Ra(),e?this.b.tf(d.ra):this.b.nk(d.ra);else for(a=0,b=this.Gc.length;a<b;a++)this.Gc[a].Ra();this.b.pj()}};t.prototype.gu=function(){var a=this.b.kb();a.Ob=this;var b=!1,d;a.cb=0;for(d=this.eb.length;a.cb<d;a.cb++)if(this.eb[a.cb].Ra())b=!0;else if(!this.Xc)return!1;return this.Xc?b:!0};t.prototype.du=function(){this.b.Ue++;var a=this.b.kb().cb,b=this.b.sj(this);if(!this.Xc)for(b.cb=a+1,a=this.eb.length;b.cb<a;b.cb++)if(!this.eb[b.cb].Ra()){this.b.pj();
return}this.xj();this.b.pj()};t.prototype.Ct=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.eb[b].type===a.type)return!1;return!0};Pb=t;a.prototype.Na=function(){var a,b,d;a=0;for(b=this.T.length;a<b;a++)d=this.T[a],d.Na(),d.Kc&&(this.sg=!0)};a.prototype.iu=function(){return!0};a.prototype.Tl=function(){var a,b;a=0;for(b=this.T.length;a<b;a++)this.La[a]=this.T[a].get();return Ma(this.jb.apply(this.b.wd,this.La),this.Mi)};a.prototype.hu=function(){var a,b;a=0;for(b=this.T.length;a<
b;a++)this.La[a]=this.T[a].get();a=this.jb.apply(this.Je?this.Je:this.type,this.La);this.type.jd();return a};a.prototype.Sl=function(){var a,b,d,e,f,c,l,k,m=this.type,h=m.aa(),n=this.lc.Xc&&!this.trigger;b=0;var p=m.ec,r=m.O,t=m.Dd,B=this.Oc,A=-1<B,z=this.sg,y=this.T,G=this.La,Z=this.Mi,J=this.jb,E;if(z)for(b=0,f=y.length;b<f;++b)c=y[b],c.Kc||(G[b]=c.get(0));else for(b=0,f=y.length;b<f;++b)G[b]=y[b].get(0);if(h.ea){U(h.k);U(h.U);E=m.k;a=0;for(e=E.length;a<e;++a){k=E[a];if(z)for(b=0,f=y.length;b<f;++b)c=
y[b],c.Kc&&(G[b]=c.get(a));A?(b=0,r&&(b=k.type.Lf[t]),b=J.apply(k.L[B+b],G)):b=J.apply(k,G);(l=Ma(b,Z))?h.k.push(k):n&&h.U.push(k)}m.finish&&m.finish(!0);h.ea=!1;m.jd();return h.Sk()}d=0;E=(l=n&&!this.lc.Ct(this))?h.U:h.k;var N=!1;a=0;for(e=E.length;a<e;++a){k=E[a];if(z)for(b=0,f=y.length;b<f;++b)c=y[b],c.Kc&&(G[b]=c.get(a));A?(b=0,r&&(b=k.type.Lf[t]),b=J.apply(k.L[B+b],G)):b=J.apply(k,G);if(Ma(b,Z))if(N=!0,l){if(h.k.push(k),p)for(b=0,f=k.siblings.length;b<f;b++)c=k.siblings[b],c.type.aa().k.push(c)}else{E[d]=
k;if(p)for(b=0,f=k.siblings.length;b<f;b++)c=k.siblings[b],c.type.aa().k[d]=c;d++}else if(l){E[d]=k;if(p)for(b=0,f=k.siblings.length;b<f;b++)c=k.siblings[b],c.type.aa().U[d]=c;d++}else if(n&&(h.U.push(k),p))for(b=0,f=k.siblings.length;b<f;b++)c=k.siblings[b],c.type.aa().U.push(c)}ua(E,d);if(p)for(r=m.Zb,a=0,e=r.length;a<e;a++)k=r[a].aa(),l?ua(k.U,d):ua(k.k,d);d=N;if(l&&!N)for(a=0,e=h.k.length;a<e;a++){k=h.k[a];if(z)for(b=0,f=y.length;b<f;b++)c=y[b],c.Kc&&(G[b]=c.get(a));b=A?J.apply(k.L[B],G):J.apply(k,
G);if(Ma(b,Z)){N=!0;break}}m.finish&&m.finish(d||n);return n?N:h.Sk()};Kb=a;d.prototype.Na=function(){var a,b,d;a=0;for(b=this.T.length;a<b;a++)d=this.T[a],d.Na(),d.Kc&&(this.sg=!0)};d.prototype.Tl=function(){var a=this.b,b,d,e=this.T,f=this.La;b=0;for(d=e.length;b<d;++b)f[b]=e[b].get();return this.jb.apply(a.wd,f)};d.prototype.Sl=function(){var a=this.type,b=this.Oc,d=a.Dd,e=this.sg,f=this.T,c=this.La,l=this.jb,k=a.aa().Qb(),a=a.O,m=-1<b,h,n,p,r,t,B;if(e)for(n=0,r=f.length;n<r;++n)t=f[n],t.Kc||(c[n]=
t.get(0));else for(n=0,r=f.length;n<r;++n)c[n]=f[n].get(0);h=0;for(p=k.length;h<p;++h){B=k[h];if(e)for(n=0,r=f.length;n<r;++n)t=f[n],t.Kc&&(c[n]=t.get(h));m?(n=0,a&&(n=B.type.Lf[d]),l.apply(B.L[b+n],c)):l.apply(B,c)}return!1};Lb=d;var A=[],z=-1;e.prototype.Na=function(){var a,b;if(11===this.type)this.Te=this.b.xn(this.Xh,this.lc.parent);else if(13===this.type)for(a=0,b=this.zf.length;a<b;a++)this.zf[a].Na();this.ld&&this.ld.Na()};e.prototype.Kt=function(a){this.Kc||!a||a.Ca.Ej||(this.Kc=!0)};e.prototype.lp=
function(){this.Kc=!0};e.prototype.dt=function(a){this.Td=a||0;a=m();this.ld.get(a);z--;return a.data};e.prototype.et=function(a){this.Td=a||0;a=m();this.ld.get(a);z--;return L(a.data)?a.data:""};e.prototype.lt=function(){return this.object};e.prototype.bt=function(){return this.an};e.prototype.jt=function(a){this.Td=a||0;a=m();this.ld.get(a);z--;return a.fb()?this.b.Us(a.data):this.b.Ts(a.data)};e.prototype.kt=function(){return this.Xa};e.prototype.it=function(){return this.key};e.prototype.ht=function(){return this.index};
e.prototype.gt=function(a){a=a||0;var b=this.Cc.type,d=null,d=b.aa(),e=d.Qb();if(e.length)d=e[a%e.length].type;else if(d.U.length)d=d.U[a%d.U.length].type;else if(b.k.length)d=b.k[a%b.k.length].type;else return 0;return this.index+d.wi[b.Dd]};e.prototype.ct=function(){return this.Te};e.prototype.$s=function(){return this.qn};e.prototype.mt=function(){var a,b;a=0;for(b=this.zf.length;a<b;a++)this.Wh[a]=this.zf[a].get();return this.Wh};Mb=e;f.prototype.Na=function(){this.ra=n(this.ra)};f.prototype.yf=
function(a){var b=this.b.wn();this.parent&&!this.bh&&b?(this.of>=b.length&&(b.length=this.of+1),b[this.of]=a):this.data=a};f.prototype.Pg=function(){var a=this.b.wn();return!this.parent||this.bh||!a||this.Qi?this.data:this.of>=a.length||"undefined"===typeof a[this.of]?this.Ki:a[this.of]};f.prototype.Ra=function(){!this.parent||this.bh||this.Qi||this.yf(this.Ki)};Gb=f;r.prototype.toString=function(){return"include:"+this.Ug.toString()};r.prototype.Na=function(){this.Ug=this.b.Bk[this.wt];this.sheet.Fn.add(this);
this.ra=n(this.ra);for(var a=this.parent;a;)a.group&&a.ni.push(this),a=a.parent;this.Ip()};r.prototype.Ra=function(){this.parent&&this.b.Hh(this.b.F);this.Ug.Tk||this.Ug.Ra(!0);this.parent&&this.b.tf(this.b.F)};r.prototype.Ip=function(){for(var a=this.parent;a;){if(a.group&&!a.Rg){this.pb=!1;return}a=a.parent}this.pb=!0};Qb=r;l.prototype.reset=function(a){this.Ob=a;this.Mb=this.cb=0;U(this.vp);this.yk=this.jf=!1};Fb=l})();
(function(){function c(b,a){this.Cc=b;this.b=b.b;this.type=a[0];this.get=[this.ls,this.es,this.xs,this.As,this.Ur,this.ys,this.rs,this.bs,this.qs,this.ws,this.Vr,this.vs,this.cs,this.ts,this.ns,this.os,this.gs,this.hs,this.as,this.zs,this.us,this.ks,this.$r,this.ds][this.type];var d=null;this.Ld=this.T=this.La=this.jb=this.Jj=this.second=this.first=this.value=null;this.Oc=-1;this.Rc=null;this.Pp=-1;this.Te=this.Xh=null;this.dg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Ob(b,a[1]);break;case 18:this.first=new Ob(b,a[1]);this.second=new Ob(b,a[2]);this.Jj=new Ob(b,a[3]);break;case 19:this.jb=this.b.$d(a[1]);this.jb!==X.prototype.Ka.random&&this.jb!==X.prototype.Ka.lr||this.Cc.lp();this.La=[];this.T=[];3===a.length?(d=a[2],this.La.length=d.length+1):this.La.length=1;break;case 20:this.Ld=this.b.F[a[1]];this.Oc=-1;this.jb=this.b.$d(a[2]);this.dg=a[3];Tb.Function&&this.jb===Tb.Function.prototype.Ka.Eu&&this.Cc.lp();a[4]?this.Rc=new Ob(b,a[4]):this.Rc=null;this.La=
[];this.T=[];6===a.length?(d=a[5],this.La.length=d.length+1):this.La.length=1;break;case 21:this.Ld=this.b.F[a[1]];this.dg=a[2];a[3]?this.Rc=new Ob(b,a[3]):this.Rc=null;this.Pp=a[4];break;case 22:this.Ld=this.b.F[a[1]];this.Ld.Gi(a[2]);this.Oc=this.Ld.Jk(a[2]);this.jb=this.b.$d(a[3]);this.dg=a[4];a[5]?this.Rc=new Ob(b,a[5]):this.Rc=null;this.La=[];this.T=[];7===a.length?(d=a[6],this.La.length=d.length+1):this.La.length=1;break;case 23:this.Xh=a[1],this.Te=null}this.Cc.Kt(this.Ld);4<=this.type&&17>=
this.type&&(this.first=new Ob(b,a[1]),this.second=new Ob(b,a[2]));if(d){var c,e;c=0;for(e=d.length;c<e;c++)this.T.push(new Ob(b,d[c]))}}function p(){++t;k.length===t&&k.push(new Nb);return k[t]}function n(b,a,d){var c,e;c=0;for(e=b.length;c<e;++c)b[c].get(d),a[c+1]=d.data}function h(b,a){this.type=b||Rb.Ff;this.data=a||0;this.sf=null;this.type==Rb.Ff&&(this.data=Math.floor(this.data))}c.prototype.Na=function(){23===this.type&&(this.Te=this.Cc.b.xn(this.Xh,this.Cc.lc.parent));this.first&&this.first.Na();
this.second&&this.second.Na();this.Jj&&this.Jj.Na();this.Rc&&this.Rc.Na();if(this.T){var b,a;b=0;for(a=this.T.length;b<a;b++)this.T[b].Na()}};var k=[],t=-1;c.prototype.zs=function(b){var a=this.T,d=this.La;d[0]=b;b=p();n(a,d,b);--t;this.jb.apply(this.b.wd,d)};c.prototype.us=function(b){var a=this.Ld,d=this.La,c=this.T,e=this.Rc,f=this.jb,k=this.Cc.Td,l=a.aa(),h=l.Qb();if(!h.length)if(l.U.length)h=l.U;else{this.dg?b.kc(""):b.qa(0);return}d[0]=b;b.sf=a;b=p();n(c,d,b);e&&(e.get(b),b.fb()&&(k=b.data,
h=a.k));--t;a=h.length;if(k>=a||k<=-a)k%=a;0>k&&(k+=a);f.apply(h[k],d)};c.prototype.$r=function(b){var a=this.Ld,d=this.La,c=this.T,e=this.Rc,f=this.Oc,k=this.jb,l=this.Cc.Td,h=a.aa(),A=h.Qb();if(!A.length)if(h.U.length)A=h.U;else{this.dg?b.kc(""):b.qa(0);return}d[0]=b;b.sf=a;b=p();n(c,d,b);e&&(e.get(b),b.fb()&&(l=b.data,A=a.k));--t;c=A.length;if(l>=c||l<=-c)l%=c;0>l&&(l+=c);l=A[l];A=0;a.O&&(A=l.type.Lf[a.Dd]);k.apply(l.L[f+A],d)};c.prototype.ks=function(b){var a=this.Rc,d=this.Ld,c=this.Pp,e=this.Cc.Td,
f=d.aa(),k=f.Qb();if(!k.length)if(f.U.length)k=f.U;else{this.dg?b.kc(""):b.qa(0);return}if(a){f=p();a.get(f);if(f.fb()){e=f.data;k=d.k;0!==k.length&&(e%=k.length,0>e&&(e+=k.length));e=d.Mk(e);d=e.Va[c];L(d)?b.kc(d):b.W(d);--t;return}--t}a=k.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=k[e];k=0;d.O&&(k=e.type.wi[d.Dd]);d=e.Va[c+k];L(d)?b.kc(d):b.W(d)};c.prototype.ls=function(b){b.type=Rb.Ff;b.data=this.value};c.prototype.es=function(b){b.type=Rb.Ef;b.data=this.value};c.prototype.xs=function(b){b.type=
Rb.String;b.data=this.value};c.prototype.As=function(b){this.first.get(b);b.fb()&&(b.data=-b.data)};c.prototype.Ur=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data+=a.data,a.Qf()&&b.Zf());--t};c.prototype.ys=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data-=a.data,a.Qf()&&b.Zf());--t};c.prototype.rs=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data*=a.data,a.Qf()&&b.Zf());--t};c.prototype.bs=function(b){this.first.get(b);
var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data/=a.data,b.Zf());--t};c.prototype.qs=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data%=a.data,a.Qf()&&b.Zf());--t};c.prototype.ws=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data=Math.pow(b.data,a.data),a.Qf()&&b.Zf());--t};c.prototype.Vr=function(b){this.first.get(b);var a=p();this.second.get(a);a.Sf()||b.Sf()?this.Xr(b,a):this.Wr(b,a);--t};c.prototype.Xr=function(b,a){b.Sf()&&
a.Sf()?this.Zr(b,a):this.Yr(b,a)};c.prototype.Zr=function(b,a){b.data+=a.data};c.prototype.Yr=function(b,a){b.Sf()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.kc(b.data.toString()+a.data)};c.prototype.Wr=function(b,a){b.qa(b.data&&a.data?1:0)};c.prototype.vs=function(b){this.first.get(b);var a=p();this.second.get(a);b.fb()&&a.fb()&&(b.data||a.data?b.qa(1):b.qa(0));--t};c.prototype.as=function(b){this.first.get(b);b.data?this.second.get(b):this.Jj.get(b)};c.prototype.cs=function(b){this.first.get(b);
var a=p();this.second.get(a);b.qa(b.data===a.data?1:0);--t};c.prototype.ts=function(b){this.first.get(b);var a=p();this.second.get(a);b.qa(b.data!==a.data?1:0);--t};c.prototype.ns=function(b){this.first.get(b);var a=p();this.second.get(a);b.qa(b.data<a.data?1:0);--t};c.prototype.os=function(b){this.first.get(b);var a=p();this.second.get(a);b.qa(b.data<=a.data?1:0);--t};c.prototype.gs=function(b){this.first.get(b);var a=p();this.second.get(a);b.qa(b.data>a.data?1:0);--t};c.prototype.hs=function(b){this.first.get(b);
var a=p();this.second.get(a);b.qa(b.data>=a.data?1:0);--t};c.prototype.ds=function(b){var a=this.Te.Pg();fa(a)?b.W(a):b.kc(a)};Ob=c;h.prototype.Qf=function(){return this.type===Rb.Ef};h.prototype.fb=function(){return this.type===Rb.Ff||this.type===Rb.Ef};h.prototype.Sf=function(){return this.type===Rb.String};h.prototype.Zf=function(){this.Qf()||(this.Sf()&&(this.data=parseFloat(this.data)),this.type=Rb.Ef)};h.prototype.qa=function(b){this.type=Rb.Ff;this.data=Math.floor(b)};h.prototype.W=function(b){this.type=
Rb.Ef;this.data=b};h.prototype.kc=function(b){this.type=Rb.String;this.data=b};h.prototype.mu=function(b){fa(b)?(this.type=Rb.Ef,this.data=b):L(b)?(this.type=Rb.String,this.data=b.toString()):(this.type=Rb.Ff,this.data=0)};Nb=h;Rb={Ff:0,Ef:1,String:2}})();function X(c){this.b=c;this.Yb=[]}
X.prototype.Sa=function(){var c={},p,n,h,k,t,b,a,d;c.waits=[];var m=c.waits,e;p=0;for(n=this.Yb.length;p<n;p++){b=this.Yb[p];e={t:b.time,st:b.rp,s:b.dm,ev:b.Jf.X,sm:[],sols:{}};b.Jf.uc[b.Mb]&&(e.act=b.Jf.uc[b.Mb].X);h=0;for(k=b.ra.length;h<k;h++)e.sm.push(b.ra[h].X);for(t in b.Hb)if(b.Hb.hasOwnProperty(t)){a=this.b.F[parseInt(t,10)];d={sa:b.Hb[t].yj,insts:[]};h=0;for(k=b.Hb[t].Gd.length;h<k;h++)d.insts.push(b.Hb[t].Gd[h].uid);e.sols[a.X.toString()]=d}m.push(e)}return c};
X.prototype.gb=function(c){c=c.waits;var p,n,h,k,t,b,a,d,m,e,f;U(this.Yb);p=0;for(n=c.length;p<n;p++)if(b=c[p],d=this.b.Vm[b.ev.toString()]){m=-1;h=0;for(k=d.uc.length;h<k;h++)if(d.uc[h].X===b.act){m=h;break}if(-1!==m){a={Hb:{},ra:[],wk:!1};a.time=b.t;a.rp=b.st||"";a.dm=!!b.s;a.Jf=d;a.Mb=m;h=0;for(k=b.sm.length;h<k;h++)(d=this.b.Ng(b.sm[h]))&&a.ra.push(d);for(t in b.sols)if(b.sols.hasOwnProperty(t)&&(d=this.b.Ng(parseInt(t,10)))){m=b.sols[t];e={yj:m.sa,Gd:[]};h=0;for(k=m.insts.length;h<k;h++)(f=this.b.Mg(m.insts[h]))&&
e.Gd.push(f);a.Hb[d.index.toString()]=e}this.Yb.push(a)}}};
(function(){function c(){}function p(){}function n(){}var h=X.prototype;c.prototype.bq=function(){return!0};c.prototype.Im=function(){return!0};c.prototype.yq=function(){return!0};c.prototype.aq=function(b){var a=this.b.Kg(),d=a.J.Every_lastTime||0,c=this.b.Tb.ca;"undefined"===typeof a.J.Every_seconds&&(a.J.Every_seconds=b);var e=a.J.Every_seconds;if(c>=d+e)return a.J.Every_lastTime=d+e,c>=a.J.Every_lastTime+.04&&(a.J.Every_lastTime=c),a.J.Every_seconds=b,!0;c<d-.1&&(a.J.Every_lastTime=c);return!1};
c.prototype.Zp=function(b,a,d){return Sb(b.Pg(),a,d)};c.prototype.Cm=function(){var b=this.b.kb();return b.yk?!1:!b.jf};c.prototype.Jm=function(){return!0};c.prototype.rq=function(){return!0};c.prototype.Wj=function(){return!0};c.prototype.zq=function(){return!0};c.prototype.Vj=function(){return!0};c.prototype.Bm=function(b,a,d){return Ia(V(b),V(d))<=V(a)};c.prototype.jq=function(b,a){return Ka(V(b),V(a))};c.prototype.hq=function(b,a,d){b=Ga(b);a=Ga(a);d=Ga(d);return Ka(d,a)?Ka(b,a)&&!Ka(b,d):!(!Ka(b,
a)&&Ka(b,d))};h.B=new c;p.prototype.dq=function(b){this.b.Tf||this.b.Ne||(this.b.Ne=b)};p.prototype.Qq=function(b,a){0===b.Rj?fa(a)?b.yf(a):b.yf(parseFloat(a)):1===b.Rj&&b.yf(a.toString())};p.prototype.Up=function(b,a){0===b.Rj?fa(a)?b.yf(b.Pg()+a):b.yf(b.Pg()+parseFloat(a)):1===b.Rj&&b.yf(b.Pg()+a.toString())};var k=[],t=[];p.prototype.Vq=function(b){if(!(0>b)){var a,d,c,e=this.b.kb(),f;k.length?f=k.pop():f={Hb:{},ra:[]};f.wk=!1;f.time=this.b.Tb.ca+b;f.rp="";f.dm=!1;f.Jf=e.Ob;f.Mb=e.Mb+1;b=0;for(a=
this.b.F.length;b<a;b++)c=this.b.F[b],d=c.aa(),d.ea&&-1===e.Ob.ra.indexOf(c)||(f.ra.push(c),c=void 0,t.length?c=t.pop():c={Gd:[]},c.yj=!1,c.yj=d.ea,va(c.Gd,d.k),f.Hb[b.toString()]=c);this.Yb.push(f);return!0}};p.prototype.Cq=function(){var b,a,d;b=0;for(a=this.b.$j.length;b<a;b++)d=this.b.$j[b],d.data=d.Ki};p.prototype.Dq=function(){if(!this.b.Tf&&!this.b.Ne&&this.b.ja){this.b.Ne=this.b.ja;var b,a,d;b=0;for(a=this.b.de.length;b<a;b++)d=this.b.de[b],d.jp(d.Li)}};h.I=new p;n.prototype["int"]=function(b,
a){L(a)?(b.qa(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.qa(a)};n.prototype["float"]=function(b,a){L(a)?(b.W(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.W(a)};n.prototype.random=function(b,a,d){void 0===d?b.W(Math.random()*a):b.W(Math.random()*(d-a)+a)};n.prototype.sqrt=function(b,a){b.W(Math.sqrt(a))};n.prototype.abs=function(b,a){b.W(Math.abs(a))};n.prototype.round=function(b,a){b.qa(Math.round(a))};n.prototype.floor=function(b,a){b.qa(Math.floor(a))};n.prototype.ceil=function(b,a){b.qa(Math.ceil(a))};
n.prototype.sin=function(b,a){b.W(Math.sin(V(a)))};n.prototype.cos=function(b,a){b.W(Math.cos(V(a)))};n.prototype.tan=function(b,a){b.W(Math.tan(V(a)))};n.prototype.asin=function(b,a){b.W(Da(Math.asin(a)))};n.prototype.acos=function(b,a){b.W(Da(Math.acos(a)))};n.prototype.atan=function(b,a){b.W(Da(Math.atan(a)))};n.prototype.exp=function(b,a){b.W(Math.exp(a))};n.prototype.log10=function(b,a){b.W(Math.log(a)/Math.LN10)};n.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,
c,e;d=2;for(c=arguments.length;d<c;d++)e=arguments[d],"number"===typeof e&&a<e&&(a=e);b.W(a)};n.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,c,e;d=2;for(c=arguments.length;d<c;d++)e=arguments[d],"number"===typeof e&&a>e&&(a=e);b.W(a)};n.prototype.If=function(b){b.W(this.b.If)};n.prototype.lg=function(b){b.W(this.b.lg)};n.prototype.time=function(b){b.W(this.b.Tb.ca)};n.prototype.Ic=function(b){b.qa(this.b.Ic)};n.prototype.kj=function(b){b.qa(this.b.kj)};n.prototype.Gk=
function(b){b.qa(this.b.Gk)};n.prototype.n=function(b,a,d,c,e){b.W(Da(Ha(a,d,c,e)))};n.prototype.Gt=function(b){b.qa(this.b.ja.height)};n.prototype.left=function(b,a,d){b.kc(L(a)?a.substr(0,d):"")};n.prototype.right=function(b,a,d){b.kc(L(a)?a.substr(a.length-d):"")};n.prototype.replace=function(b,a,d,c){L(a)&&L(d)&&L(c)?b.kc(a.replace(new RegExp(Ua(d),"gi"),c)):b.kc(L(a)?a:"")};n.prototype.trim=function(b,a){b.kc(L(a)?a.trim():"")};n.prototype.lr=function(b){var a=O(Math.random()*(arguments.length-
1));b.mu(arguments[a+1])};n.prototype.qk=function(b){b.W(this.b.qk/1E3)};n.prototype.bj=function(b){b.W(this.b.bj)};h.Ka=new n;h.eu=function(){var b,a,d,c,e,f,h=this.b.kb();b=0;for(d=this.Yb.length;b<d;b++){c=this.Yb[b];if(-1===c.time){if(!c.dm)continue}else if(c.time>this.b.Tb.ca)continue;h.Ob=c.Jf;h.Mb=c.Mb;h.cb=0;for(a in c.Hb)c.Hb.hasOwnProperty(a)&&(e=this.b.F[parseInt(a,10)].aa(),f=c.Hb[a],e.ea=f.yj,va(e.k,f.Gd),e=f,U(e.Gd),t.push(e));c.Jf.cu();this.b.nk(c.ra);c.wk=!0}a=b=0;for(d=this.Yb.length;b<
d;b++)c=this.Yb[b],this.Yb[a]=c,c.wk?(Oa(c.Hb),U(c.ra),k.push(c)):a++;ua(this.Yb,a)}})();
(function(){eb=function(c,n){var h=c[1],k=c[3],t=c[4],b=c[5],a=c[6],d=c[7],m=c[8];n.B||(n.B={});n.I||(n.I={});n.Ka||(n.Ka={});var e=n.B,f=n.I,r=n.Ka;k&&(e.Iu=function(a,b){return Sb(this.x,a,b)},e.$p=function(a,b){return Sb(this.y,a,b)},e.Nu=function(){var a=this.u;this.ta();var b=this.za;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Fa||b.top>a.Ea)},e.Ou=function(){this.ta();var a=this.za,b=this.b.ja;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.$u=function(a,b,d){var e=this.aa(),
c=e.Qb();if(!c.length)return!1;var f=c[0],k=f,m=La(f.x,f.y,b,d),h,n,p;h=1;for(n=c.length;h<n;h++)if(f=c[h],p=La(f.x,f.y,b,d),0===a&&p<m||1===a&&p>m)m=p,k=f;e.Dh(k);return!0},f.qv=function(a){this.x!==a&&(this.x=a,this.C())},f.rv=function(a){this.y!==a&&(this.y=a,this.C())},f.Lq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.C()},f.Mq=function(a,b){var d=a.Ws(this);if(d){var e;d.Lg?(e=d.Lg(b,!0),d=d.Lg(b,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.C()}},f.Tu=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.C())},f.Su=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.C())},r.Zq=function(a){a.W(this.x)},r.$q=function(a){a.W(this.y)},r.If=function(a){a.W(this.b.We(this))});t&&(e.Hu=function(a,b){return Sb(this.width,a,b)},e.Fu=function(a,b){return Sb(this.height,a,b)},f.Om=function(a){this.width!==a&&(this.width=a,this.C())},f.Hq=function(a){this.height!==a&&(this.height=a,this.C())},f.pv=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.C()},r.Wq=function(a){a.W(this.width)},r.gq=function(a){a.W(this.height)},r.Bu=function(a){this.ta();a.W(this.za.left)},r.Du=function(a){this.ta();a.W(this.za.top)},r.Cu=function(a){this.ta();a.W(this.za.right)},r.Au=function(a){this.ta();a.W(this.za.bottom)});b&&(e.Bm=function(a,b){return Ia(this.n,V(b))<=V(a)},e.jq=function(a){return Ka(this.n,V(a))},e.hq=function(a,b){var d=Ga(a),e=Ga(b),c=W(this.n);return Ka(e,d)?Ka(c,d)&&!Ka(c,
e):!(!Ka(c,d)&&Ka(c,e))},f.kv=function(a){a=V(Ea(a));isNaN(a)||this.n===a||(this.n=a,this.C())},f.dv=function(a){0===a||isNaN(a)||(this.n+=V(a),this.n=W(this.n),this.C())},f.gv=function(a){0===a||isNaN(a)||(this.n-=V(a),this.n=W(this.n),this.C())},f.hv=function(a,b){var d=Ja(this.n,V(b),V(a));isNaN(d)||this.n===d||(this.n=d,this.C())},f.jv=function(a,b,d){a=Ja(this.n,Math.atan2(d-this.y,b-this.x),V(a));isNaN(a)||this.n===a||(this.n=a,this.C())},f.Pq=function(a,b){var d=Math.atan2(b-this.y,a-this.x);
isNaN(d)||this.n===d||(this.n=d,this.C())},r.zu=function(a){a.W(Fa(this.n))});h||(e.Yp=function(a,b,d){return Sb(this.Va[a],b,d)},e.iq=function(a){return this.Va[a]},e.av=function(a,b){var d=this.aa(),e=d.Qb();if(!e.length)return!1;var c=e[0],f=c,k=c.Va[b],m,h,n;m=1;for(h=e.length;m<h;m++)if(c=e[m],n=c.Va[b],0===a&&n<k||1===a&&n>k)k=n,f=c;d.Dh(f);return!0},e.Zu=function(a){var b,d,e,c,f;if(this.b.Kg().Mi){f=this.aa();if(f.ea)for(f.ea=!1,U(f.k),U(f.U),e=this.k,b=0,d=e.length;b<d;b++)c=e[b],c.uid===
a?f.U.push(c):f.k.push(c);else{e=b=0;for(d=f.k.length;b<d;b++)c=f.k[b],f.k[e]=c,c.uid===a?f.U.push(c):e++;ua(f.k,e)}this.jd();return!!f.k.length}c=this.b.Mg(a);if(!c)return!1;f=this.aa();if(!f.ea&&-1===f.k.indexOf(c))return!1;if(this.O)for(a=c.type.Ba,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.Dh(c),this.jd(),!0}else if(c.type===this)return f.Dh(c),this.jd(),!0;return!1},e.ai=function(){return!0},e.uq=function(){return!0},f.Iq=function(a,b){var d=this.Va;fa(d[a])?d[a]=fa(b)?b:parseFloat(b):L(d[a])&&
(d[a]=L(b)?b:b.toString())},f.Sp=function(a,b){var d=this.Va;fa(d[a])?d[a]=fa(b)?d[a]+b:d[a]+parseFloat(b):L(d[a])&&(d[a]=L(b)?d[a]+b:d[a]+b.toString())},f.Sq=function(a,b){var d=this.Va;fa(d[a])&&(d[a]=fa(b)?d[a]-b:d[a]-parseFloat(b))},f.Fq=function(a,b){this.Va[a]=b?1:0},f.sv=function(a){this.Va[a]=1-this.Va[a]},f.Ku=function(){this.b.Df(this)},f.nq||(f.nq=function(a){var b,d;try{b=JSON.parse(a)}catch(e){return}this.b.$i(this,b,!0);this.gd&&this.gd();if(this.L)for(a=0,b=this.L.length;a<b;++a)d=
this.L[a],d.gd&&d.gd()}),r.Ju=function(a){var b=a.sf.k.length,d,e,c;d=0;for(e=this.b.Pc.length;d<e;d++)c=this.b.Pc[d],a.sf.O?0<=c.type.Ba.indexOf(a.sf)&&b++:c.type===a.sf&&b++;a.qa(b)},r.cv=function(a){a.qa(a.sf.aa().Qb().length)},r.tv=function(a){a.qa(this.uid)},r.Lu=function(a){a.qa(this.Qg())},r.Vp||(r.Vp=function(a){a.kc(JSON.stringify(this.b.Ul(this,!0)))}));a&&(e.Pu=function(){return this.visible},f.Nm=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ma=!0)},e.Gu=function(a,b){return Sb(ab(100*
this.opacity),a,b)},f.ov=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ma=!0)},r.Opacity=function(a){a.W(ab(100*this.opacity))});d&&(e.Mu=function(a){return a?this.u===a:!1},e.bv=function(a){var b=this.aa(),d=b.Qb();if(!d.length)return!1;var e=d[0],c=e,f,k;f=1;for(k=d.length;f<k;f++)if(e=d[f],0===a){if(e.u.index>c.u.index||e.u.index===c.u.index&&e.md()>c.md())c=e}else if(e.u.index<c.u.index||e.u.index===c.u.index&&e.md()<c.md())c=e;b.Dh(c);return!0},f.Wu=function(){var a=
this.u,b=a.k;b.length&&b[b.length-1]===this||(a.bg(this,!1),a.ug(this,!1),this.b.ma=!0)},f.Uu=function(){var a=this.u,b=a.k;b.length&&b[0]===this||(a.bg(this,!1),a.Wt(this),this.b.ma=!0)},f.Vu=function(a){a&&a!=this.u&&(this.u.bg(this,!0),this.u=a,a.ug(this,!0),this.b.ma=!0)},f.vv=function(a,b){var d=0===a;if(b){var e=b.Os(this);e&&e.uid!==this.uid&&(this.u.index!==e.u.index&&(this.u.bg(this,!0),this.u=e.u,e.u.ug(this,!0)),this.u.Lt(this,e,d),this.b.ma=!0)}},r.Ru=function(a){a.qa(this.u.Jo)},r.Qu=
function(a){a.kc(this.u.name)},r.uv=function(a){a.qa(this.md())});m&&(f.lv=function(a,b){if(this.b.G){var d=this.type.Lk(b);if(!(0>d)){var e=1===a;this.ae[d]!==e&&(this.ae[d]=e,this.ed(),this.b.ma=!0)}}},f.nv=function(a,b,d){if(this.b.G){var e=this.type.Lk(a);0>e||(a=this.type.Q[e],e=this.Ja[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.G.Zs(a.Ta,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.pb&&(this.b.ma=!0))))}})};xb=function(){this.jk=this.fk=!0;this.type.bi=!0;this.b.ma=!0;var c,n,h=this.gk;c=0;for(n=
h.length;c<n;++c)h[c](this);this.u.tc&&this.ta()};yb=function(c){c&&this.gk.push(c)};Ab=function(){if(this.fk){var c=this.za,n=this.tb;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.Rb*this.width,-this.Sb*this.height);this.n?(c.offset(-this.x,-this.y),n.np(c,this.n),n.offset(this.x,this.y),n.Wm(c)):n.gg(c);c.normalize();this.fk=!1;this.tu()}};var c=new Q(0,0,0,0);Bb=function(){if(this.u.tc){var p=this.u.mb,n=this.za;c.set(p.Kb(n.left),p.Lb(n.top),p.Kb(n.right),p.Lb(n.bottom));
this.Vb.Hg(c)||(this.Vb.right<this.Vb.left?p.update(this,null,c):p.update(this,this.Vb,c),this.Vb.Ag(c),this.u.ad=!0)}};Cb=function(){if(this.jk&&this.mc){this.ta();var p=this.type.yg,n=this.za;c.set(p.Kb(n.left),p.Lb(n.top),p.Kb(n.right),p.Lb(n.bottom));this.wc.Hg(c)||(this.wc.right<this.wc.left?p.update(this,null,c):p.update(this,this.wc,c),this.wc.Ag(c),this.jk=!1)}};zb=function(c,n){return this.za.xb(c,n)&&this.tb.xb(c,n)?this.Z&&!this.Z.ef()?(this.Z.Me(this.width,this.height,this.n),this.Z.xb(c-
this.x,n-this.y)):!0:!1};tb=function(){this.type.Oj();return this.Ye};Db=function(){this.u.wm();return this.fd};Eb=function(){U(this.da);var c,n,h,k=!0;c=0;for(n=this.ae.length;c<n;c++)this.ae[c]&&(h=this.type.Q[c],this.da.push(h),h.Zc||(k=!1));this.Op=!!this.da.length;this.Qd=k};ub=function(){return"Inst"+this.Zo};hb=function(c){if(c&&c.ec&&c.type!=this){var n,h,k;n=0;for(h=c.siblings.length;n<h;n++)if(k=c.siblings[n],k.type==this)return k}c=this.aa().Qb();return c.length?c[0]:null};ib=function(c){var n=
this.aa().Qb();return n.length?n[c.Qg()%n.length]:null};gb=function(){if(this.ig&&!this.O){var c,n;c=0;for(n=this.k.length;c<n;c++)this.k[c].Ye=c;var h=c,k=this.b.Pc;c=0;for(n=k.length;c<n;++c)k[c].type===this&&(k[c].Ye=h++);this.ig=!1}};rb=function(c){if(c<this.k.length)return this.k[c];c-=this.k.length;var n=this.b.Pc,h,k;h=0;for(k=n.length;h<k;++h)if(n[h].type===this){if(0===c)return n[h];--c}return null};jb=function(){return this.Ud[this.kd]};kb=function(){this.kd++;this.kd===this.Ud.length?this.Ud.push(new fb(this)):
(this.Ud[this.kd].ea=!0,U(this.Ud[this.kd].U))};lb=function(){this.kd++;this.kd===this.Ud.length&&this.Ud.push(new fb(this));var c=this.Ud[this.kd],n=this.Ud[this.kd-1];n.ea?(c.ea=!0,U(c.U)):(c.ea=!1,va(c.k,n.k),va(c.U,n.U))};mb=function(){this.kd--};nb=function(c){var n,h,k,t,b,a=0;if(!this.O)for(n=0,h=this.Ba.length;n<h;n++)for(b=this.Ba[n],k=0,t=b.Ga.length;k<t;k++){if(c===b.Ga[k].name)return this.J.lastBehIndex=a,b.Ga[k];a++}n=0;for(h=this.Ga.length;n<h;n++){if(c===this.Ga[n].name)return this.J.lastBehIndex=
a,this.Ga[n];a++}return null};ob=function(c){return this.Gi(c)?this.J.lastBehIndex:-1};pb=function(c){var n,h;n=0;for(h=this.Q.length;n<h;n++)if(this.Q[n].name===c)return n;return-1};qb=function(){if(this.ec&&!this.O){var c,n,h,k,t,b,a;this.Oj();b=this.aa();var d=b.ea,m=(c=this.b.kb())&&c.Ob&&c.Ob.Xc;c=0;for(n=this.Zb.length;c<n;c++)if(t=this.Zb[c],t!==this&&(t.Oj(),a=t.aa(),a.ea=d,!d)){U(a.k);h=0;for(k=b.k.length;h<k;++h)a.k[h]=t.Mk(b.k[h].Ye);if(m)for(U(a.U),h=0,k=b.U.length;h<k;++h)a.U[h]=t.Mk(b.U[h].Ye)}}};
sb=function(){return"Type"+this.X};Sb=function(c,n,h){if("undefined"===typeof c||"undefined"===typeof h)return!1;switch(n){case 0:return c===h;case 1:return c!==h;case 2:return c<h;case 3:return c<=h;case 4:return c>h;case 5:return c>=h;default:return!1}}})();var ac={};function ec(c){this.b=c}
(function(){function c(){}var p=ec.prototype;p.ia=function(c){this.Ca=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c){this.type=c;this.b=c.b;this.Wf=Array(256);this.Vh=Array(256);this.Wd=0};var n=p.Y.prototype;n.P=function(){var c=this;this.b.Oa||(jQuery(document).keydown(function(h){c.Ah(h)}),jQuery(document).keyup(function(h){c.Bh(h)}))};var h=[32,33,34,35,36,37,38,39,40,44];n.Ah=function(c){var n=!1;window!=window.top&&-1<h.indexOf(c.which)&&(c.preventDefault(),n=!0,c.stopPropagation());
if(this.Wf[c.which])this.Vh[c.which]&&!n&&c.preventDefault();else{this.Wf[c.which]=!0;this.Wd=c.which;this.b.Of=!0;this.b.trigger(ec.prototype.B.qq,this);var b=this.b.trigger(ec.prototype.B.Em,this),a=this.b.trigger(ec.prototype.B.xq,this);this.b.Of=!1;if(b||a)this.Vh[c.which]=!0,n||c.preventDefault()}};n.Bh=function(c){this.Wf[c.which]=!1;this.Wd=c.which;this.b.Of=!0;this.b.trigger(ec.prototype.B.Dm,this);var h=this.b.trigger(ec.prototype.B.Gm,this),b=this.b.trigger(ec.prototype.B.Fm,this);this.b.Of=
!1;if(h||b||this.Vh[c.which])this.Vh[c.which]=!0,c.preventDefault()};n.Ae=function(){var c;for(c=0;256>c;++c)if(this.Wf[c]){this.Wf[c]=!1;this.Wd=c;this.b.trigger(ec.prototype.B.Dm,this);var h=this.b.trigger(ec.prototype.B.Gm,this),b=this.b.trigger(ec.prototype.B.Fm,this);if(h||b)this.Vh[c]=!0}};n.Sa=function(){return{triggerKey:this.Wd}};n.gb=function(c){this.Wd=c.triggerKey};c.prototype.kq=function(c){return this.Wf[c]};c.prototype.Em=function(c){return c===this.Wd};c.prototype.qq=function(){return!0};
c.prototype.Dm=function(){return!0};c.prototype.Gm=function(c){return c===this.Wd};c.prototype.xq=function(c){return c===this.Wd};c.prototype.Fm=function(c){return c===this.Wd};p.B=new c;p.I=new function(){};p.Ka=new function(){}})();function Y(c){this.b=c}
(function(){function c(){if(0===this.tk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.hg?b.drawImage(this.fa,this.$f,this.ag,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.fa,0,0,this.width,this.height);this.tk=a.toDataURL("image/png")}return this.tk}function p(){}function n(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function h(a,b){return a<b?""+a+","+b:""+b+","+a}function k(a,b,d,e){b=b.uid;d=d.uid;var c=h(b,d);if(a.hasOwnProperty(c))a[c][2]=
e;else{var f=r.length?r.pop():[0,0,0];f[0]=b;f[1]=d;f[2]=e;a[c]=f}}function t(a,b,d){b=h(b.uid,d.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function b(a,b,d){b=h(b.uid,d.uid);if(a.hasOwnProperty(b))return l=a[b][2],!0;l=-2;return!1}function a(){}var d=Y.prototype;d.ia=function(a){this.Ca=a;this.b=a.b};var m=d.ia.prototype;m.P=function(){if(!this.O){var a,b,d,e,f,k,m,h,l;this.Lc=[];this.Tg=!1;a=0;for(b=this.Nb.length;a<b;a++){f=this.Nb[a];m={};m.name=f[0];m.speed=f[1];m.loop=f[2];m.Ql=f[3];m.Rl=
f[4];m.So=f[5];m.X=f[6];m.frames=[];d=0;for(e=f[7].length;d<e;d++)k=f[7][d],h={},h.hm=k[0],h.im=k[1],h.$f=k[2],h.ag=k[3],h.width=k[4],h.height=k[5],h.duration=k[6],h.Rb=k[7],h.Sb=k[8],h.Uk=k[9],h.oj=k[10],h.To=k[11],h.hg=0!==h.width,h.tk="",h.yv=c,l={left:0,top:0,right:1,bottom:1},h.cm=l,h.ya=null,(l=this.b.Gs(k[0]))?h.fa=l:(h.fa=new Image,h.fa.nr=k[0],h.fa.bn=k[1],h.fa.ir=null,this.b.Qp(h.fa,k[0])),m.frames.push(h),this.Lc.push(h);this.Nb[a]=m}}};m.Kp=function(){var a,b,d;a=0;for(b=this.k.length;a<
b;a++)d=this.k[a],d.pi=d.xc.ya};m.lj=function(){if(!this.O){var a,b,d;a=0;for(b=this.Lc.length;a<b;++a)d=this.Lc[a],d.fa.ir=null,d.ya=null;this.Tg=!1;this.Kp()}};m.Bl=function(){if(!this.O&&this.k.length){var a,b,d;a=0;for(b=this.Lc.length;a<b;++a)d=this.Lc[a],d.ya=this.b.G.aj(d.fa,!1,this.b.V,d.To);this.Kp()}};m.tl=function(){if(!this.O&&!this.Tg&&this.b.G){var a,b,d;a=0;for(b=this.Lc.length;a<b;++a)d=this.Lc[a],d.ya=this.b.G.aj(d.fa,!1,this.b.V,d.To);this.Tg=!0}};m.rm=function(){if(!this.O&&!this.k.length&&
this.Tg){var a,b,d;a=0;for(b=this.Lc.length;a<b;++a)d=this.Lc[a],this.b.G.deleteTexture(d.ya),d.ya=null;this.Tg=!1}};var e=[];m.Gl=function(a){var b,d,c;U(e);b=0;for(d=this.Lc.length;b<d;++b)c=this.Lc[b].fa,-1===e.indexOf(c)&&(a.drawImage(c,0,0),e.push(c))};d.Y=function(a){this.type=a;this.b=a.b;a=this.type.Nb[0].frames[0].oj;this.ic?this.Z.Mh(a):this.Z=new Va(a)};var f=d.Y.prototype;f.P=function(){this.visible=0===this.D[0];this.Vk=this.cl=!1;this.mc=0!==this.D[3];1===this.type.Nb.length&&1===this.type.Nb[0].frames.length||
0===this.type.Nb[0].speed||(this.b.Kj(this),this.cl=!0);this.Aa=this.un(this.D[1])||this.type.Nb[0];this.K=this.D[2];0>this.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);var a=this.Aa.frames[this.K];this.Z.Mh(a.oj);this.Rb=a.Rb;this.Sb=a.Sb;this.Eg=this.Aa.speed;this.je=this.Aa.Rl;this.ic?this.hd.reset():this.hd=new Ta;this.Ed=this.hd.ca;this.Ie=!0;this.yd=0;this.He=!0;this.mi=this.Rm="";this.$m=0;this.mk=-1;this.type.tl();var b,d,c,e,f,k,h,a=0;for(b=this.type.Nb.length;a<
b;a++)for(e=this.type.Nb[a],d=0,c=e.frames.length;d<c;d++)f=e.frames[d],0===f.width&&(f.width=f.fa.width,f.height=f.fa.height),f.hg&&(h=f.fa,k=f.cm,k.left=f.$f/h.width,k.top=f.ag/h.height,k.right=(f.$f+f.width)/h.width,k.bottom=(f.ag+f.height)/h.height,0===f.$f&&0===f.ag&&f.width===h.width&&f.height===h.height&&(f.hg=!1));this.xc=this.Aa.frames[this.K];this.pi=this.xc.ya};f.Sa=function(){var a={a:this.Aa.X,f:this.K,cas:this.Eg,fs:this.Ed,ar:this.yd,at:this.hd.ca,rt:this.je};this.Ie||(a.ap=this.Ie);
this.He||(a.af=this.He);return a};f.gb=function(a){var b=this.Js(a.a);b&&(this.Aa=b);this.K=a.f;0>this.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);this.Eg=a.cas;this.Ed=a.fs;this.yd=a.ar;this.hd.reset();this.hd.ca=a.at;this.Ie=a.hasOwnProperty("ap")?a.ap:!0;this.He=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.je=a.rt:this.je=this.Aa.Rl;this.xc=this.Aa.frames[this.K];this.pi=this.xc.ya;this.Z.Mh(this.xc.oj);this.Rb=this.xc.Rb;this.Sb=this.xc.Sb};f.dk=
function(a){this.K=a?0:this.Aa.frames.length-1;this.Ie=!1;this.Rm=this.Aa.name;this.Vk=!0;this.b.trigger(Y.prototype.B.pq,this);this.b.trigger(Y.prototype.B.oq,this);this.Vk=!1;this.yd=0};f.ek=function(){return this.hd.ca};f.nb=function(){this.hd.add(this.b.We(this));this.mi.length&&this.hn();0<=this.mk&&this.sr();var a=this.hd.ca,b=this.Aa,d=b.frames[this.K],c=d.duration/this.Eg;this.Ie&&a>=this.Ed+c&&(this.He?this.K++:this.K--,this.Ed+=c,this.K>=b.frames.length&&(b.So?(this.He=!1,this.K=b.frames.length-
2):b.loop?this.K=this.je:(this.yd++,this.yd>=b.Ql?this.dk(!1):this.K=this.je)),0>this.K&&(b.So?(this.K=1,this.He=!0,b.loop||(this.yd++,this.yd>=b.Ql&&this.dk(!0))):b.loop?this.K=this.je:(this.yd++,this.yd>=b.Ql?this.dk(!0):this.K=this.je)),0>this.K?this.K=0:this.K>=b.frames.length&&(this.K=b.frames.length-1),a>this.Ed+b.frames[this.K].duration/this.Eg&&(this.Ed=a),a=b.frames[this.K],this.Gf(d,a),this.b.ma=!0)};f.un=function(a){var b,d,c;b=0;for(d=this.type.Nb.length;b<d;b++)if(c=this.type.Nb[b],bb(c.name,
a))return c;return null};f.Js=function(a){var b,d,c;b=0;for(d=this.type.Nb.length;b<d;b++)if(c=this.type.Nb[b],c.X===a)return c;return null};f.hn=function(){var a=this.Aa.frames[this.K],b=this.un(this.mi);this.mi="";!b||bb(b.name,this.Aa.name)&&this.Ie||(this.Aa=b,this.Eg=b.speed,this.je=b.Rl,0>this.K&&(this.K=0),this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1),1===this.$m&&(this.K=0),this.Ie=!0,this.Ed=this.hd.ca,this.He=!0,this.Gf(a,this.Aa.frames[this.K]),this.b.ma=!0)};f.sr=function(){var a=
this.Aa.frames[this.K],b=this.K;this.K=O(this.mk);0>this.K&&(this.K=0);this.K>=this.Aa.frames.length&&(this.K=this.Aa.frames.length-1);b!==this.K&&(this.Gf(a,this.Aa.frames[this.K]),this.Ed=this.hd.ca,this.b.ma=!0);this.mk=-1};f.Gf=function(a,b){var d=a.width,c=a.height,e=b.width,f=b.height;d!=e&&(this.width*=e/d);c!=f&&(this.height*=f/c);this.Rb=b.Rb;this.Sb=b.Sb;this.Z.Mh(b.oj);this.C();this.xc=b;this.pi=b.ya;d=0;for(c=this.L.length;d<c;d++)e=this.L[d],e.Oo&&e.Oo(a,b);this.b.trigger(Y.prototype.B.Gf,
this)};f.Qc=function(a){a.globalAlpha=this.opacity;var b=this.xc,d=b.hg,c=b.fa,e=this.x,f=this.y,k=this.width,h=this.height;if(0===this.n&&0<=k&&0<=h)e-=this.Rb*k,f-=this.Sb*h,this.b.Yc&&(e=Math.round(e),f=Math.round(f)),d?a.drawImage(c,b.$f,b.ag,b.width,b.height,e,f,k,h):a.drawImage(c,e,f,k,h);else{this.b.Yc&&(e=Math.round(e),f=Math.round(f));a.save();var m=0<k?1:-1,l=0<h?1:-1;a.translate(e,f);1===m&&1===l||a.scale(m,l);a.rotate(this.n*m*l);e=0-this.Rb*ia(k);f=0-this.Sb*ia(h);d?a.drawImage(c,b.$f,
b.ag,b.width,b.height,e,f,ia(k),ia(h)):a.drawImage(c,e,f,ia(k),ia(h));a.restore()}};f.Pe=function(a){this.Pb(a)};f.Pb=function(a){a.jc(this.pi);a.wf(this.opacity);var b=this.xc,d=this.tb;if(this.b.Yc){var c=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.hg?a.sd(d.ab+c,d.bb+e,d.Db+c,d.Eb+e,d.ub+c,d.wb+e,d.rb+c,d.sb+e,b.cm):a.Ih(d.ab+c,d.bb+e,d.Db+c,d.Eb+e,d.ub+c,d.wb+e,d.rb+c,d.sb+e)}else b.hg?a.sd(d.ab,d.bb,d.Db,d.Eb,d.ub,d.wb,d.rb,d.sb,b.cm):a.Ih(d.ab,d.bb,d.Db,d.Eb,d.ub,d.wb,d.rb,d.sb)};
f.Qs=function(a){var b=this.xc,d,c;d=0;for(c=b.Uk.length;d<c;d++)if(bb(a,b.Uk[d][0]))return d;return-1};f.Lg=function(a,b){var d=this.xc,c=d.Uk,e;L(a)?e=this.Qs(a):e=a-1;e=O(e);if(0>e||e>=c.length)return b?this.x:this.y;var f=(c[e][1]-d.Rb)*this.width,c=c[e][2],c=(c-d.Sb)*this.height,d=Math.cos(this.n);e=Math.sin(this.n);var k=f*d-c*e,c=c*d+f*e,f=k+this.x,c=c+this.y;return b?f:c};var r=[],l=-2,B=[];p.prototype.tq=function(a){if(!a)return!1;var d=this.b,c=d.Kg(),e=c.type,f=null;c.J.collmemory?f=c.J.collmemory:
(f={},c.J.collmemory=f);c.J.spriteCreatedDestroyCallback||(c.J.spriteCreatedDestroyCallback=!0,d.Zj(function(a){var b=c.J.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(n(b[d]),delete b[d])}));var h=e.aa(),m=a.aa(),h=h.Qb(),r,p,A,z,I,D,M,ka=this.b.Ic,x=ka-1,v=d.kb().Ob;for(p=0;p<h.length;p++){A=h[p];m.ea?(A.ta(),this.b.vn(A.u,a,A.za,B),r=B):r=m.Qb();for(z=0;z<r.length;z++)I=r[z],d.Jb(A,I)||d.kr(A,I)?(D=b(f,A,I),D=!D||l<x,k(f,A,I,ka),D&&(d.rj(v.ra),D=e.aa(),
M=a.aa(),D.ea=!1,M.ea=!1,e===a?(D.k.length=2,D.k[0]=A,D.k[1]=I,e.jd()):(D.k.length=1,M.k.length=1,D.k[0]=A,M.k[0]=I,e.jd(),a.jd()),v.du(),d.tf(v.ra))):t(f,A,I);U(B)}return!1};var A=new ba,z=!1;new Q(0,0,0,0);m.finish=function(a){if(z){if(a){var b=this.b.kb().Ob.Xc;a=null.aa();var d=A.Jc(),c,e;if(a.ea){a.ea=!1;U(a.k);c=0;for(e=d.length;c<e;++c)a.k[c]=d[c];if(b)for(U(a.U),c=0,e=null.k.length;c<e;++c)d=null.k[c],A.contains(d)||a.U.push(d)}else if(b)for(b=a.k.length,c=0,e=d.length;c<e;++c)a.k[b+c]=d[c],
Aa(a.U,d[c]);else va(a.k,d);null.jd()}A.clear();z=!1}};p.prototype.oq=function(a){return bb(this.Rm,a)};p.prototype.pq=function(){return!0};p.prototype.Gf=function(){return!0};d.B=new p;a.prototype.Rq=function(a,b,d){if(a&&b&&(b=this.b.cn(a,b,this.Lg(d,!0),this.Lg(d,!1)))){"undefined"!==typeof b.n&&(b.n=this.n,b.C());this.b.Uc++;var c,e,f;this.b.trigger(Object.getPrototypeOf(a.Ca).B.ai,b);if(b.ec)for(c=0,e=b.siblings.length;c<e;c++)f=b.siblings[c],this.b.trigger(Object.getPrototypeOf(f.type.Ca).B.ai,
f);this.b.Uc--;c=this.b.Ms();d=!1;if(ea(c.J.Spawn_LastExec)||c.J.Spawn_LastExec<this.b.Ue)d=!0,c.J.Spawn_LastExec=this.b.Ue;if(a!=this.type&&(a=a.aa(),a.ea=!1,d?(U(a.k),a.k[0]=b):a.k.push(b),b.ec))for(c=0,e=b.siblings.length;c<e;c++)f=b.siblings[c],a=f.type.aa(),a.ea=!1,d?(U(a.k),a.k[0]=f):a.k.push(f)}};a.prototype.Eq=function(a,b){this.mi=a;this.$m=b;this.cl||(this.b.Kj(this),this.cl=!0);this.Vk||this.hn()};a.prototype.Kq=function(a){a=ia(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.C())};
a.prototype.Gq=function(a){this.mc!==(0!==a)&&((this.mc=0!==a)?this.C():(this.wc.right>=this.wc.left&&this.type.yg.update(this,this.wc,null),this.wc.set(0,0,-1,-1)))};d.I=new a;d.Ka=new function(){}})();function fc(c){this.b=c}
(function(){function c(){return a.length?a.pop():{}}function p(b){var c,e;c=0;for(e=b.length;c<e;c++)a.push(b[c]);U(b)}function n(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function h(){}var k=fc.prototype;k.P=function(){k.I.Om=function(a){this.width!==a&&(this.width=a,this.Bf=!0,this.C())}};k.ia=function(a){this.Ca=a;this.b=a.b};var t=k.ia.prototype;t.P=function(){};t.lj=function(){if(!this.O){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=this.k[a],c.od=null,c.rf=null,
c.gc=null}};k.Y=function(a){this.type=a;this.b=a.b;this.ic?U(this.ve):this.ve=[];this.Bf=!0};t=k.Y.prototype;t.P=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.Ji=this.D[4];this.Qj=this.D[5];this.zm=0===this.D[7];this.ol=this.Ui=this.width;this.Ti=this.height;this.ql=this.D[8];this.Ci=this.Kf="";this.yp=this.zp=this.Gh=0;this.Qt();this.gc=this.rf=this.od=null;this.Ho=!1;this.jh=this.b.Ic;this.ic?this.De.set(0,0,1,1):this.De=new Q(0,0,1,1);this.b.G&&
this.b.Kj(this)};t.Qt=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Gh=parseInt(a[b].substr(0,a[b].length-2));this.Ll=Math.ceil(this.Gh/72*96)+4;0<b&&(this.Ci=a[b-1]);this.Kf=a[b+1];for(b+=2;b<a.length;b++)this.Kf+=" "+a[b];break}};t.Sa=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ji,va:this.Qj,wr:this.zm,lho:this.ql,fn:this.Kf,fs:this.Ci,ps:this.Gh,pxh:this.Ll,tw:this.zp,th:this.yp,lrt:this.jh}};t.gb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.Ji=a.ha;this.Qj=a.va;this.zm=a.wr;this.ql=a.lho;this.Kf=a.fn;this.Ci=a.fs;this.Gh=a.ps;this.Ll=a.pxh;this.zp=a.tw;this.yp=a.th;this.jh=a.lrt;this.Bf=!0;this.ol=this.Ui=this.width;this.Ti=this.height};t.nb=function(){if(this.b.G&&this.gc&&300<=this.b.Ic-this.jh){var a=this.u;this.ta();var b=this.za;if(b.right<a.wa||b.bottom<a.xa||b.left>a.Fa||b.top>a.Ea)this.b.G.deleteTexture(this.gc),this.od=this.rf=this.gc=null}};t.qd=function(){this.od=this.rf=null;this.b.G&&
this.gc&&this.b.G.deleteTexture(this.gc);this.gc=null};t.ek=function(){this.font=this.Ci+" "+this.Gh.toString()+"pt "+this.Kf;this.Bf=!0;this.b.ma=!0};t.Qc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.u.cc(),a.save(),a.scale(c,c));if(this.Bf||this.width!==this.ol)this.type.Ca.Xq(this.text,this.ve,a,this.width,this.zm),this.Bf=!1,this.ol=this.width;this.ta();var c=b?0:this.tb.ab,f=b?0:this.tb.bb;this.b.Yc&&(c=c+.5|0,f=
f+.5|0);0===this.n||b||(a.save(),a.translate(c,f),a.rotate(this.n),f=c=0);var k=f+this.height,h=this.Ll,h=h+this.ql,n,t;1===this.Qj?f+=Math.max(this.height/2-this.ve.length*h/2,0):2===this.Qj&&(f+=Math.max(this.height-this.ve.length*h-2,0));for(t=0;t<this.ve.length&&!(n=c,1===this.Ji?n=c+(this.width-this.ve[t].width)/2:2===this.Ji&&(n=c+(this.width-this.ve[t].width)),a.fillText(this.ve[t].text,n,f),f+=h,f>=k-h);t++);(0!==this.n||b)&&a.restore();this.jh=this.b.Ic};t.Pb=function(a){if(!(1>this.width||
1>this.height)){var b=this.Bf||this.Ho;this.Ho=!1;var c=this.u.cc(),f=this.u.ac(),k=this.De,h=c*this.width,n=c*this.height,t=Math.ceil(h),p=Math.ceil(n),g=this.b.N/2,q=this.b.M/2;this.rf||(this.od=document.createElement("canvas"),this.od.width=t,this.od.height=p,this.Ui=t,this.Ti=p,b=!0,this.rf=this.od.getContext("2d"));if(t!==this.Ui||p!==this.Ti)this.od.width=t,this.od.height=p,this.gc&&(a.deleteTexture(this.gc),this.gc=null),b=!0;b&&(this.rf.clearRect(0,0,t,p),this.Qc(this.rf,!0),this.gc||(this.gc=
a.nc(t,p,this.b.V,this.b.cf)),a.wu(this.od,this.gc,this.b.cf));this.Ui=t;this.Ti=p;a.jc(this.gc);a.wf(this.opacity);a.Ec();a.translate(-g,-q);a.sc();var u=this.tb,b=this.u.na(u.ab,u.bb,!0,!0),g=this.u.na(u.ab,u.bb,!1,!0),q=this.u.na(u.Db,u.Eb,!0,!0),T=this.u.na(u.Db,u.Eb,!1,!0),R=this.u.na(u.ub,u.wb,!0,!0),P=this.u.na(u.ub,u.wb,!1,!0),F=this.u.na(u.rb,u.sb,!0,!0),u=this.u.na(u.rb,u.sb,!1,!0);if(this.b.Yc||0===this.n&&0===f)var C=(b+.5|0)-b,H=(g+.5|0)-g,b=b+C,g=g+H,q=q+C,T=T+H,R=R+C,P=P+H,F=F+C,u=
u+H;0===this.n&&0===f?(q=b+t,T=g,R=q,P=g+p,F=b,u=P,k.right=1,k.bottom=1):(k.right=h/t,k.bottom=n/p);a.sd(b,g,q,T,R,P,F,u,k);a.Ec();a.scale(c,c);a.wj(-this.u.ac());a.translate((this.u.wa+this.u.Fa)/-2,(this.u.xa+this.u.Ea)/-2);a.sc();this.jh=this.b.Ic}};var b=[];k.Tq=function(a){U(b);for(var c="",e,f=0;f<a.length;)if(e=a.charAt(f),"\n"===e)c.length&&(b.push(c),c=""),b.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||"\t"===a.charAt(f)));
b.push(c);c=""}else f<a.length&&(c+=e,f++);c.length&&b.push(c)};var a=[];k.Xq=function(a,b,e,f,k){if(a&&a.length)if(2>=f)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=e.measureText(a).width;if(h<=f){p(b);b.push(c());b[0].text=a;b[0].width=h;return}}this.Yq(a,b,e,f,k)}else p(b)};k.Yq=function(d,k,e,f,h){h&&(this.Tq(d),d=b);var l="",t,p,z,g=0;for(z=0;z<d.length;z++)"\n"===d[z]?(g>=k.length&&k.push(c()),l=n(l),p=k[g],p.text=l,p.width=e.measureText(l).width,g++,l=""):(t=l,l+=d[z],p=e.measureText(l).width,
p>=f&&(g>=k.length&&k.push(c()),t=n(t),p=k[g],p.text=t,p.width=e.measureText(t).width,g++,l=d[z],h||" "!==l||(l="")));l.length&&(g>=k.length&&k.push(c()),l=n(l),p=k[g],p.text=l,p.width=e.measureText(l).width,g++);for(z=g;z<k.length;z++)a.push(k[z]);k.length=g};k.B=new function(){};h.prototype.Oq=function(a){fa(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Bf=!0,this.b.ma=!0)};k.I=new h;k.Ka=new function(){}})();function gc(c){this.b=c}
(function(){var c=gc.prototype;c.ia=function(c){this.Ca=c;this.b=c.b};var p=c.ia.prototype;p.P=function(){this.O||(this.fa=new Image,this.fa.bn=this.im,this.b.Qp(this.fa,this.hm),this.ya=this.pattern=null)};p.lj=function(){this.O||(this.ya=null)};p.Bl=function(){if(!this.O&&this.k.length){this.ya||(this.ya=this.b.G.aj(this.fa,!0,this.b.V,this.jm));var c,h;c=0;for(h=this.k.length;c<h;c++)this.k[c].ya=this.ya}};p.tl=function(){this.O||this.ya||!this.b.G||(this.ya=this.b.G.aj(this.fa,!0,this.b.V,this.jm))};
p.rm=function(){this.O||this.k.length||!this.ya||(this.b.G.deleteTexture(this.ya),this.ya=null)};p.Gl=function(c){c.drawImage(this.fa,0,0)};c.Y=function(c){this.type=c;this.b=c.b};p=c.Y.prototype;p.P=function(){this.visible=0===this.D[0];this.De=new Q(0,0,0,0);this.Dn=!1;this.fa=this.type.fa;this.b.G?(this.type.tl(),this.ya=this.type.ya):(this.type.pattern||(this.type.pattern=this.b.ka.createPattern(this.type.fa,"repeat")),this.pattern=this.type.pattern)};p.gd=function(){this.Dn=!1;this.fa=this.type.fa};
p.qd=function(){this.b.G&&this.Dn&&this.ya&&(this.b.G.deleteTexture(this.ya),this.ya=null)};p.Qc=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var h=this.x,k=this.y;this.b.Yc&&(h=Math.round(h),k=Math.round(k));var t=-(this.Rb*this.width),b=-(this.Sb*this.height),a=t%this.fa.width,d=b%this.fa.height;0>a&&(a+=this.fa.width);0>d&&(d+=this.fa.height);c.translate(h,k);c.rotate(this.n);c.translate(a,d);c.fillRect(t-a,b-d,this.width,this.height);c.restore()};p.Pe=function(c){this.Pb(c)};
p.Pb=function(c){c.jc(this.ya);c.wf(this.opacity);var h=this.De;h.right=this.width/this.fa.width;h.bottom=this.height/this.fa.height;var k=this.tb;if(this.b.Yc){var t=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.sd(k.ab+t,k.bb+b,k.Db+t,k.Eb+b,k.ub+t,k.wb+b,k.rb+t,k.sb+b,h)}else c.sd(k.ab,k.bb,k.Db,k.Eb,k.ub,k.wb,k.rb,k.sb,h)};c.B=new function(){};c.I=new function(){};c.Ka=new function(){}})();function hc(c){this.b=c}
(function(){function c(){}function p(){}var n=hc.prototype;n.ia=function(c){this.Ca=c;this.b=c.b};n.ia.prototype.P=function(){};n.Y=function(c){this.type=c;this.b=c.b};var h=n.Y.prototype;h.P=function(){this.b.Oa?w("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.oa=document.createElement("progress"),this.value=this.D[0],this.max=this.D[1],0<this.max&&0<=this.value&&(this.oa.max=this.max,this.oa.value=this.value),this.oa.id=this.D[4],this.oa.title=
this.D[2],jQuery(this.oa).appendTo(this.b.li?this.b.li:"body"),this.Re=!1,0===this.D[3]&&(jQuery(this.oa).hide(),this.visible=!1,this.Re=!0),this.oa.onclick=function(c){return function(h){h.stopPropagation();c.b.Of=!0;c.b.trigger(hc.prototype.B.sq,c);c.b.Of=!1}}(this),this.oa.addEventListener("touchstart",function(c){c.stopPropagation()},!1),this.oa.addEventListener("touchmove",function(c){c.stopPropagation()},!1),this.oa.addEventListener("touchend",function(c){c.stopPropagation()},!1),jQuery(this.oa).mousedown(function(c){c.stopPropagation()}),
jQuery(this.oa).mouseup(function(c){c.stopPropagation()}),this.fo=this.ho=this.Yn=this.bo=this.eo=this.$n=0,this.Lp(!0),this.b.Kj(this))};h.Sa=function(){return{v:this.oa.value,m:this.oa.max}};h.gb=function(c){this.oa.value=c.v;this.oa.max=c.m};h.qd=function(){this.b.Oa||(jQuery(this.oa).remove(),this.oa=null)};h.nb=function(){this.Lp()};h.Lp=function(c){if(!this.b.Oa){var h=this.u.na(this.x,this.y,!0),b=this.u.na(this.x,this.y,!1),a=this.u.na(this.x+this.width,this.y+this.height,!0),d=this.u.na(this.x+
this.width,this.y+this.height,!1),m=this.b.width/this.b.devicePixelRatio,e=this.b.height/this.b.devicePixelRatio;!this.visible||!this.u.visible||0>=a||0>=d||h>=m||b>=e?(this.Re||jQuery(this.oa).hide(),this.Re=!0):(1>h&&(h=1),1>b&&(b=1),a>=m&&(a=m-1),d>=e&&(d=e-1),m=window.innerWidth,e=window.innerHeight,c||this.$n!==h||this.eo!==b||this.bo!==a||this.Yn!==d||this.ho!==m||this.fo!==e?(this.$n=h,this.eo=b,this.bo=a,this.Yn=d,this.ho=m,this.fo=e,this.Re&&(jQuery(this.oa).show(),this.Re=!1),c=Math.round(h)+
jQuery(this.b.canvas).offset().left,m=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.oa).css("position","absolute"),jQuery(this.oa).offset({left:c,top:m}),jQuery(this.oa).width(Math.round(a-h)),jQuery(this.oa).height(Math.round(d-b))):this.Re&&(jQuery(this.oa).show(),this.Re=!1))}};h.Qc=function(){};h.Pb=function(){};c.prototype.sq=function(){return!0};n.B=new c;p.prototype.Nm=function(c){this.b.Oa||(this.visible=0!==c)};p.prototype.Nq=function(c){this.b.Oa||(this.value=c,this.oa.max=
this.max,this.oa.value=this.value)};n.I=new p;n.Ka=new function(){}})();function ic(c){this.b=c}
(function(){function c(){}var p=ic.prototype;p.ia=function(c){this.behavior=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=p.Y.prototype;n.P=function(){var c=this.D[0];this.la=this.D[1];this.Fb=this.D[2];this.gr=0!==this.D[3];this.Yl=0!==this.D[4];this.q=Math.cos(this.j.n)*c;this.A=Math.sin(this.j.n)*c;this.Vi=this.j.x;this.Wi=this.j.y;this.zc=this.j.n;this.Mj=0;this.enabled=0!==this.D[5]};n.Sa=function(){return{acc:this.la,
g:this.Fb,dx:this.q,dy:this.A,lx:this.Vi,ly:this.Wi,lka:this.zc,t:this.Mj,e:this.enabled}};n.gb=function(c){this.la=c.acc;this.Fb=c.g;this.q=c.dx;this.A=c.dy;this.Vi=c.lx;this.Wi=c.ly;this.zc=c.lka;this.Mj=c.t;this.enabled=c.e};n.nb=function(){if(this.enabled){var c=this.b.We(this.j),k,n;this.j.n!==this.zc&&(this.Yl&&(k=La(0,0,this.q,this.A),this.q=Math.cos(this.j.n)*k,this.A=Math.sin(this.j.n)*k),this.zc=this.j.n);0!==this.la&&(k=La(0,0,this.q,this.A),n=0===this.q&&0===this.A?this.j.n:Ha(0,0,this.q,
this.A),k+=this.la*c,0>k&&(k=0),this.q=Math.cos(n)*k,this.A=Math.sin(n)*k);0!==this.Fb&&(this.A+=this.Fb*c);this.Vi=this.j.x;this.Wi=this.j.y;if(0!==this.q||0!==this.A)if(this.j.x+=this.q*c,this.j.y+=this.A*c,this.Mj+=La(0,0,this.q*c,this.A*c),this.Yl&&(this.j.n=Ha(0,0,this.q,this.A),this.j.C(),this.zc=this.j.n),this.j.C(),this.gr&&(k=this.b.Da(this.j)))this.b.td(this.j,k),k=La(0,0,this.q,this.A),n=this.b.jr(this.j,this.Vi,this.Wi),this.q=Math.cos(n)*k,this.A=Math.sin(n)*k,this.j.x+=this.q*c,this.j.y+=
this.A*c,this.j.C(),this.Yl&&(this.zc=this.j.n=n,this.j.C()),this.b.rc(this.j,this.q/k,this.A/k,Math.max(2.5*k*c,30))||this.b.Kl(this.j,100)}};p.B=new function(){};c.prototype.Xj=function(c){this.la=c};c.prototype.Km=function(c){this.Fb=c};p.I=new c;p.Ka=new function(){}})();function jc(c){this.b=c}
(function(){function c(){}var p=jc.prototype;p.ia=function(c){this.behavior=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b;this.Sd=this.Rd=this.Cj=this.Dj=this.Fd=this.bd=this.Wc=this.Gg=this.Uh=!1;this.ml=this.ll=this.kl=this.nl=-1;this.A=this.q=0};var n=p.Y.prototype;n.P=function(){this.Bc=this.D[0];this.la=this.D[1];this.yb=this.D[2];this.xk=this.D[3];this.ck=this.D[4];this.vk=1===this.D[5];this.enabled=0!==this.D[6];this.vk&&
!this.b.Oa&&(jQuery(document).keydown(function(c){return function(k){c.Ah(k)}}(this)),jQuery(document).keyup(function(c){return function(k){c.Bh(k)}}(this)))};n.Sa=function(){return{dx:this.q,dy:this.A,enabled:this.enabled,maxspeed:this.Bc,acc:this.la,dec:this.yb,ignoreInput:this.Fd}};n.gb=function(c){this.q=c.dx;this.A=c.dy;this.enabled=c.enabled;this.Bc=c.maxspeed;this.la=c.acc;this.yb=c.dec;this.Fd=c.ignoreInput;this.Sd=this.Rd=this.Cj=this.Dj=this.bd=this.Wc=this.Gg=this.Uh=!1;this.ml=this.ll=
this.kl=this.nl=-1};n.Ah=function(c){var k=this.b.Ic;switch(c.which){case 37:c.preventDefault();this.ll<k&&(this.Wc=!0);break;case 38:c.preventDefault();this.nl<k&&(this.Uh=!0);break;case 39:c.preventDefault();this.ml<k&&(this.bd=!0);break;case 40:c.preventDefault(),this.kl<k&&(this.Gg=!0)}};n.Bh=function(c){var k=this.b.Ic;switch(c.which){case 37:c.preventDefault();this.Wc=!1;this.ll=k;break;case 38:c.preventDefault();this.Uh=!1;this.nl=k;break;case 39:c.preventDefault();this.bd=!1;this.ml=k;break;
case 40:c.preventDefault(),this.Gg=!1,this.kl=k}};n.Ae=function(){this.bd=this.Wc=this.Gg=this.Uh=!1};n.nb=function(){var c=this.b.We(this.j),k=this.Wc||this.Rd,n=this.bd||this.Sd,b=this.Uh||this.Dj,a=this.Gg||this.Cj;this.Cj=this.Dj=this.Sd=this.Rd=!1;if(this.enabled){var d=this.b.Da(this.j);if(d&&(this.b.td(this.j,d),!this.b.Kl(this.j)))return;this.Fd&&(a=b=n=k=!1);0===this.xk?n=k=!1:1===this.xk&&(a=b=!1);2===this.xk&&(b||a)&&(n=k=!1);k==n&&(0>this.q?(this.q+=this.yb*c,0<this.q&&(this.q=0)):0<this.q&&
(this.q-=this.yb*c,0>this.q&&(this.q=0)));b==a&&(0>this.A?(this.A+=this.yb*c,0<this.A&&(this.A=0)):0<this.A&&(this.A-=this.yb*c,0>this.A&&(this.A=0)));k&&!n&&(this.q=0<this.q?this.q-(this.la+this.yb)*c:this.q-this.la*c);n&&!k&&(this.q=0>this.q?this.q+(this.la+this.yb)*c:this.q+this.la*c);b&&!a&&(this.A=0<this.A?this.A-(this.la+this.yb)*c:this.A-this.la*c);a&&!b&&(this.A=0>this.A?this.A+(this.la+this.yb)*c:this.A+this.la*c);if(0!==this.q||0!==this.A){Math.sqrt(this.q*this.q+this.A*this.A)>this.Bc&&
(d=Math.atan2(this.A,this.q),this.q=this.Bc*Math.cos(d),this.A=this.Bc*Math.sin(d));n=this.j.x;b=this.j.y;k=this.j.n;this.j.x+=this.q*c;this.j.C();if(d=this.b.Da(this.j))this.j.x=n,this.q=0,this.j.C(),this.b.td(this.j,d);this.j.y+=this.A*c;this.j.C();if(d=this.b.Da(this.j))this.j.y=b,this.A=0,this.j.C(),this.b.td(this.j,d);c=ab(this.q);d=ab(this.A);if(0!==c||0!==d)1===this.ck?this.j.n=Ga(90*Math.round(Da(Math.atan2(d,c))/90)):2===this.ck?this.j.n=Ga(45*Math.round(Da(Math.atan2(d,c))/45)):3===this.ck&&
(this.j.n=Math.atan2(d,c));this.j.C();this.j.n!=k&&(d=this.b.Da(this.j))&&(this.j.n=k,this.j.C(),this.b.td(this.j,d))}}};p.B=new function(){};c.prototype.Lm=function(c){this.Fd=c};c.prototype.Xj=function(c){this.la=c;0>this.la&&(this.la=0)};c.prototype.Yj=function(c){switch(c){case 0:this.Rd=!0;break;case 1:this.Sd=!0;break;case 2:this.Dj=!0;break;case 3:this.Cj=!0}};c.prototype.Mm=function(c){this.A=c};p.I=new c;p.Ka=new function(){}})();function kc(c){this.b=c}
(function(){function c(){}function p(){}var n=kc.prototype;n.ia=function(a){this.behavior=a;this.b=a.b};var h=n.ia.prototype;h.P=function(){this.ze=[]};h.Fs=function(a){var b,c,f;b=0;for(c=a.L.length;b<c;++b)if(f=a.L[b],f instanceof kc.prototype.Y&&f.type===this)return f;return null};n.Y=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};h=n.Y.prototype;h.P=function(){this.Mt=this.D[0];this.Nl=this.D[1];this.pk=V(this.D[2]);this.Np=0!==this.D[3]};h.qd=function(){};h.Sa=function(){var a=
{r:this.Nl,c:this.pk,t:[]},b,c;b=0;for(c=this.type.ze.length;b<c;b++)a.t.push(this.type.ze[b].X);return a};h.gb=function(a){this.Nl=a.r;this.pk=a.c;U(this.type.ze);var b,c,f;b=0;for(c=a.t.length;b<c;b++)(f=this.b.Ng(a.t[b]))&&this.type.ze.push(f)};h.nb=function(){};var k=[],t=new Q(0,0,0,0);h.tt=function(a,b){var c=this.j.x,f=this.j.y,h=this.j.n;0>this.j.width&&(h+=Math.PI);if(La(c,f,a,b)>this.Nl||Ia(h,Ha(c,f,a,b))>this.pk/2)return!1;var l,n;t.set(c,f,a,b);t.normalize();if(0===this.Mt)for(this.Np?
this.b.An(this.j.u,t,k):(h=this.b.em)&&ya(k,h.wh.Jc()),h=0,l=k.length;h<l;++h){if(n=k[h],n.J.solidEnabled&&n!==this.j&&this.b.wp(c,f,a,b,n))return U(k),!1}else{if(this.Np)this.b.Pk(this.j.u,this.type.ze,t,k);else for(h=0,l=this.type.ze.length;h<l;++h)ya(k,this.type.ze[h].k);h=0;for(l=k.length;h<l;++h)if(n=k[h],n!==this.j&&this.b.wp(c,f,a,b,n))return U(k),!1}U(k);return!0};var b=new ba,a=new ba;c.prototype.fq=function(c){if(!c)return!1;var k,e,f,h,l,n,p,t,g=this.b.Ns().aa();c=c.aa();var q=g.Qb(),u=
c.Qb();g.ea&&U(g.U);c.ea&&U(c.U);var T=this.b.Kg().Mi;k=0;for(f=q.length;k<f;++k){l=q[k];t=!1;n=this.Fs(l);e=0;for(h=u.length;e<h;++e)p=u[e],l!==p&&Ma(n.tt(p.x,p.y),T)&&(t=!0,a.add(p));t&&b.add(l)}k=b.Jc();e=a.Jc();g.ea=!1;c.ea=!1;va(g.k,k);va(c.k,e);b.clear();a.clear();return g.Sk()};n.B=new c;p.prototype.Tp=function(a){var b=this.type.ze;if(-1===b.indexOf(a)){var c,f,k;c=0;for(f=b.length;c<f;c++)if(k=b[c],k.O&&-1!==k.qf.indexOf(a))return;b.push(a)}};n.I=new p;n.Ka=new function(){}})();
function lc(c){this.b=c}
(function(){function c(){}var p=lc.prototype;p.ia=function(c){this.behavior=c;this.b=c.b};p.ia.prototype.P=function(){};p.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=p.Y.prototype;n.P=function(){this.$a=null;this.nj=-1;this.mode=this.zc=this.km=this.vh=this.Ce=this.mj=0;var c=this;this.ic||(this.uh=function(k){c.Al(k)});this.b.Zj(this.uh)};n.Sa=function(){return{uid:this.$a?this.$a.uid:-1,pa:this.mj,pd:this.Ce,msa:this.vh,tsa:this.km,lka:this.zc,m:this.mode}};n.gb=
function(c){this.nj=c.uid;this.mj=c.pa;this.Ce=c.pd;this.vh=c.msa;this.km=c.tsa;this.zc=c.lka;this.mode=c.m};n.gd=function(){-1===this.nj?this.$a=null:this.$a=this.b.Mg(this.nj);this.nj=-1};n.Al=function(c){this.$a==c&&(this.$a=null)};n.qd=function(){this.$a=null;this.b.cp(this.uh)};n.nb=function(){};n.Th=function(){if(this.$a){this.zc!==this.j.n&&(this.vh=W(this.vh+(this.j.n-this.zc)));var c=this.j.x,k=this.j.y;if(3===this.mode||4===this.mode){var n=La(this.j.x,this.j.y,this.$a.x,this.$a.y);if(n>
this.Ce||4===this.mode&&n<this.Ce)k=Ha(this.$a.x,this.$a.y,this.j.x,this.j.y),c=this.$a.x+Math.cos(k)*this.Ce,k=this.$a.y+Math.sin(k)*this.Ce}else c=this.$a.x+Math.cos(this.$a.n+this.mj)*this.Ce,k=this.$a.y+Math.sin(this.$a.n+this.mj)*this.Ce;this.zc=n=W(this.vh+(this.$a.n-this.km));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===c&&this.j.y===k||(this.j.x=c,this.j.y=k,this.j.C());0!==this.mode&&2!==this.mode||this.j.n===n||(this.j.n=n,this.j.C())}};p.B=new function(){};c.prototype.Uq=
function(){this.$a=null};p.I=new c;p.Ka=new function(){}})();function mc(c){this.b=c}
(function(){function c(){}function p(){}var n=mc.prototype;n.ia=function(c){this.behavior=c;this.b=c.b};n.ia.prototype.P=function(){};n.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b;this.Ph=this.Sd=this.Rd=this.Fd=this.xg=this.Fg=this.Uf=this.Vf=this.bd=this.Wc=!1;this.Gb=null;this.rl=-1;this.gf=this.ff=0;this.Bi=!1;this.ne=this.Mc=0;this.Ai=!0;this.A=this.q=0};var h=n.Y.prototype;h.um=function(){this.Ha=Math.cos(this.Nf);this.Ia=Math.sin(this.Nf);this.uf=Math.cos(this.Nf-
Math.PI/2);this.vf=Math.sin(this.Nf-Math.PI/2);this.Ha=ab(this.Ha);this.Ia=ab(this.Ia);this.uf=ab(this.uf);this.vf=ab(this.vf);this.Fi=this.Fb;0>this.Fb&&(this.Ha*=-1,this.Ia*=-1,this.Fb=Math.abs(this.Fb))};h.P=function(){this.Bc=this.D[0];this.la=this.D[1];this.yb=this.D[2];this.eh=this.D[3];this.Fi=this.Fb=this.D[4];this.pf=this.D[5];this.zk=0!==this.D[6];this.hl=this.D[7]/1E3;this.vk=1===this.D[8];this.enabled=0!==this.D[9];this.qg=!1;this.rg=this.b.xd(this.j);this.sl=-1;this.Af=0;this.Nf=V(90);
this.um();var c=this;this.vk&&!this.b.Oa&&(jQuery(document).keydown(function(h){c.Ah(h)}),jQuery(document).keyup(function(h){c.Bh(h)}));this.ic||(this.uh=function(h){c.Al(h)});this.b.Zj(this.uh);this.j.J.isPlatformBehavior=!0};h.Sa=function(){return{ii:this.Fd,lfx:this.ff,lfy:this.gf,lfo:this.Gb?this.Gb.uid:-1,am:this.Mc,en:this.enabled,fall:this.ne,ft:this.Ai,dx:this.q,dy:this.A,ms:this.Bc,acc:this.la,dec:this.yb,js:this.eh,g:this.Fb,g1:this.Fi,mf:this.pf,wof:this.qg,woj:this.rg?this.rg.uid:-1,ga:this.Nf,
edj:this.zk,cdj:this.xg,dj:this.Fg,sus:this.hl}};h.gb=function(c){this.Fd=c.ii;this.ff=c.lfx;this.gf=c.lfy;this.rl=c.lfo;this.Mc=c.am;this.enabled=c.en;this.ne=c.fall;this.Ai=c.ft;this.q=c.dx;this.A=c.dy;this.Bc=c.ms;this.la=c.acc;this.yb=c.dec;this.eh=c.js;this.Fb=c.g;this.Fi=c.g1;this.pf=c.mf;this.qg=c.wof;this.sl=c.woj;this.Nf=c.ga;this.zk=c.edj;this.xg=c.cdj;this.Fg=c.dj;this.hl=c.sus;this.Ph=this.Sd=this.Rd=this.Uf=this.Vf=this.bd=this.Wc=!1;this.Af=0;this.um()};h.gd=function(){-1===this.rl?
this.Gb=null:this.Gb=this.b.Mg(this.rl);-1===this.sl?this.rg=null:this.rg=this.b.Mg(this.sl)};h.Al=function(c){this.Gb==c&&(this.Gb=null)};h.qd=function(){this.Gb=null;this.b.cp(this.uh)};h.Ah=function(c){switch(c.which){case 38:c.preventDefault();this.Vf=!0;break;case 37:c.preventDefault();this.Wc=!0;break;case 39:c.preventDefault(),this.bd=!0}};h.Bh=function(c){switch(c.which){case 38:c.preventDefault();this.Uf=this.Vf=!1;break;case 37:c.preventDefault();this.Wc=!1;break;case 39:c.preventDefault(),
this.bd=!1}};h.Ae=function(){this.Vf=this.bd=this.Wc=!1};h.ek=function(){return 0>this.Fb?-1:1};h.Qn=function(){var c=null,h=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Ha;this.j.y+=this.Ia;this.j.C();if(this.Gb&&this.b.Jb(this.j,this.Gb))return this.j.x=b,this.j.y=a,this.j.C(),this.Gb;(c=this.b.Da(this.j))||0!==this.ne||(h=this.b.xd(this.j,!0));this.j.x=b;this.j.y=a;this.j.C();if(c){if(this.b.Jb(this.j,c))return null;this.Bi=!1;return c}if(h&&h.length){a=c=0;for(b=h.length;c<b;c++)h[a]=h[c],this.b.Jb(this.j,
h[c])||a++;if(1<=a)return this.Bi=!0,h[0]}return null};h.nb=function(){};h.Wo=function(){var c=this.b.We(this.j),h,b,a,d,n,e,f,p,l;this.Vf||this.Ph||(this.Uf=!1);var B=this.Wc||this.Rd;a=this.bd||this.Sd;var A=(d=this.Vf||this.Ph)&&!this.Uf;this.Ph=this.Sd=this.Rd=!1;if(this.enabled){this.Fd&&(A=d=a=B=!1);d||(this.Af=0);p=this.Gb;l=!1;this.Ai&&((this.b.Da(this.j)||this.b.xd(this.j))&&this.b.rc(this.j,-this.Ha,-this.Ia,4,!0),this.Ai=!1);!p||0!==this.A||p.y===this.gf&&p.x===this.ff||(h=p.x-this.ff,
b=p.y-this.gf,this.j.x+=h,this.j.y+=b,this.j.C(),this.ff=p.x,this.gf=p.y,l=!0,this.b.Da(this.j)&&this.b.rc(this.j,-h,-b,2.5*Math.sqrt(h*h+b*b)));var z=this.Qn();if(b=this.b.Da(this.j))if(this.j.J.inputPredicted)this.b.rc(this.j,-this.Ha,-this.Ia,10,!1);else if(this.b.Kl(this.j,Math.max(this.j.width,this.j.height)/2))this.b.td(this.j,b);else return;z?(this.xg=this.Fg=!1,0<this.A&&(this.qg||(this.b.Jl(this.j,-this.Ha,-this.Ia,z),this.qg=!0),this.A=0),p!=z)?(this.Gb=z,this.ff=z.x,this.gf=z.y,this.b.td(this.j,
z)):l&&(b=this.b.Da(this.j))&&(this.b.td(this.j,b),0!==h&&(0<h?this.b.rc(this.j,-this.uf,-this.vf):this.b.rc(this.j,this.uf,this.vf)),this.b.rc(this.j,-this.Ha,-this.Ia)):d||(this.xg=!0);if(z&&A||!z&&this.zk&&d&&this.xg&&!this.Fg)p=this.j.x,l=this.j.y,this.j.x-=this.Ha,this.j.y-=this.Ia,this.j.C(),this.b.Da(this.j)?A=!1:(this.Af=this.hl,this.b.trigger(mc.prototype.B.wq,this.j),this.Mc=2,this.A=-this.eh,A=!0,z?this.Uf=!0:this.Fg=!0),this.j.x=p,this.j.y=l,this.j.C();z||(d&&0<this.Af?(this.A=-this.eh,
this.Af-=c):(this.Gb=null,this.A+=this.Fb*c,this.A>this.pf&&(this.A=this.pf)),A&&(this.Uf=!0));this.qg=!!z;B==a&&(0>this.q?(this.q+=this.yb*c,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.yb*c,0>this.q&&(this.q=0)));B&&!a&&(this.q=0<this.q?this.q-(this.la+this.yb)*c:this.q-this.la*c);a&&!B&&(this.q=0>this.q?this.q+(this.la+this.yb)*c:this.q+this.la*c);this.q>this.Bc?this.q=this.Bc:this.q<-this.Bc&&(this.q=-this.Bc);B=!1;0!==this.q&&(p=this.j.x,l=this.j.y,h=this.q*c*this.uf,b=this.q*c*this.vf,this.j.x+=
this.uf*(1<this.q?1:-1)-this.Ha,this.j.y+=this.vf*(1<this.q?1:-1)-this.Ia,this.j.C(),d=!1,n=this.b.Da(this.j),this.j.x=p+h,this.j.y=l+b,this.j.C(),a=this.b.Da(this.j),!a&&z&&(a=this.b.xd(this.j))&&(this.j.x=p,this.j.y=l,this.j.C(),this.b.Jb(this.j,a)?(a=null,d=!1):d=!0,this.j.x=p+h,this.j.y=l+b,this.j.C()),a?(h=Math.abs(this.q*c)+2,n||!this.b.rc(this.j,-this.Ha,-this.Ia,h,d,a))?(this.b.td(this.j,a),h=Math.max(Math.abs(this.q*c*2.5),30),this.b.rc(this.j,this.uf*(0>this.q?1:-1),this.vf*(0>this.q?1:
-1),h,!1)?!z||d||this.Bi||(p=this.j.x,l=this.j.y,this.j.x+=this.Ha,this.j.y+=this.Ia,this.b.Da(this.j)?this.b.rc(this.j,-this.Ha,-this.Ia,3,!1)||(this.j.x=p,this.j.y=l,this.j.C()):(this.j.x=p,this.j.y=l,this.j.C())):(this.j.x=p,this.j.y=l,this.j.C()),d||(this.q=0)):!n&&!A&&Math.abs(this.A)<Math.abs(this.eh/4)&&(this.A=0,z||(B=!0)):(p=this.Qn(),z&&!p?(b=Math.ceil(Math.abs(this.q*c))+2,p=this.j.x,l=this.j.y,this.j.x+=this.Ha*b,this.j.y+=this.Ia*b,this.j.C(),this.b.Da(this.j)||this.b.xd(this.j)?this.b.rc(this.j,
-this.Ha,-this.Ia,b+2,!0):(this.j.x=p,this.j.y=l,this.j.C())):p&&0===this.A&&this.b.Jl(this.j,-this.Ha,-this.Ia,p)));if(0!==this.A){p=this.j.x;l=this.j.y;this.j.x+=this.A*c*this.Ha;this.j.y+=this.A*c*this.Ia;h=this.j.x;a=this.j.y;this.j.C();b=this.b.Da(this.j);d=!1;if(!b&&0<this.A&&!z){if((d=0<this.ne?null:this.b.xd(this.j,!0))&&d.length){if(this.rg){this.j.x=p;this.j.y=l;this.j.C();f=n=0;for(e=d.length;n<e;n++)d[f]=d[n],this.b.Jb(this.j,d[n])||f++;d.length=f;this.j.x=h;this.j.y=a;this.j.C()}1<=d.length&&
(b=d[0])}d=!!b}b&&(this.b.td(this.j,b),this.Af=0,h=d?Math.abs(this.A*c*2.5+10):Math.max(Math.abs(this.A*c*2.5+10),30),this.b.rc(this.j,this.Ha*(0>this.A?1:-1),this.Ia*(0>this.A?1:-1),h,d,b)?(this.Gb=b,this.ff=b.x,this.gf=b.y,(this.Bi=d)&&(B=!0),this.A=0):(this.j.x=p,this.j.y=l,this.j.C(),this.qg=!0,d||(this.A=0)))}3!==this.Mc&&0<this.A&&!z&&(this.b.trigger(mc.prototype.B.vq,this.j),this.Mc=3);if(z||B)3===this.Mc||B||A&&0===this.A?(this.b.trigger(mc.prototype.B.Hm,this.j),this.Mc=0===this.q&&0===this.A?
0:1):(0!==this.Mc&&0===this.q&&0===this.A&&(this.b.trigger(mc.prototype.B.Bq,this.j),this.Mc=0),1===this.Mc||0===this.q&&0===this.A||A||(this.b.trigger(mc.prototype.B.Aq,this.j),this.Mc=1));0<this.ne&&this.ne--;this.rg=this.b.xd(this.j)}};c.prototype.lq=function(){if(0!==this.A)return!1;var c=null,h=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Ha;this.j.y+=this.Ia;this.j.C();(c=this.b.Da(this.j))||0!==this.ne||(h=this.b.xd(this.j,!0));this.j.x=b;this.j.y=a;this.j.C();if(c)return!this.b.Jb(this.j,
c);if(h&&h.length){a=c=0;for(b=h.length;c<b;c++)h[a]=h[c],this.b.Jb(this.j,h[c])||a++;if(1<=a)return!0}return!1};c.prototype.wq=function(){return!0};c.prototype.vq=function(){return!0};c.prototype.Bq=function(){return!0};c.prototype.Aq=function(){return!0};c.prototype.Hm=function(){return!0};n.B=new c;p.prototype.Lm=function(c){this.Fd=c};p.prototype.Xj=function(c){this.la=c;0>this.la&&(this.la=0)};p.prototype.Km=function(c){this.Fi!==c&&(this.Fb=c,this.um(),this.b.Da(this.j)&&(this.b.rc(this.j,this.Ha,
this.Ia,10),this.j.x+=2*this.Ha,this.j.y+=2*this.Ia,this.j.C()),this.Gb=null)};p.prototype.Jq=function(c){this.pf=c;0>this.pf&&(this.pf=0)};p.prototype.Yj=function(c){switch(c){case 0:this.Rd=!0;break;case 1:this.Sd=!0;break;case 2:this.Ph=!0}};p.prototype.Mm=function(c){this.A=c};p.prototype.cq=function(){var c=this.j.x,h=this.j.y;this.j.x+=this.Ha;this.j.y+=this.Ia;this.j.C();var b=this.b.xd(this.j,!1);this.j.x=c;this.j.y=h;this.j.C();b&&(this.ne=3,this.Gb=null)};n.I=new p;n.Ka=new function(){}})();
function nc(c){this.b=c}
(function(){var c=nc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,b){this.type=c;this.behavior=c.behavior;this.j=b;this.b=c.b;this.Ua=0};var p=c.Y.prototype,n=2*Math.PI,h=Math.PI/2,k=3*Math.PI/2;p.P=function(){this.pb=1===this.D[0];this.sh=this.D[1];this.ym=this.D[2];this.Pd=this.D[3];this.Pd+=Math.random()*this.D[4];0===this.Pd?this.Ua=0:(this.Ua=this.D[5]/this.Pd*n,this.Ua+=Math.random()*this.D[6]/this.Pd*n);this.Ub=this.D[7];this.Ub+=Math.random()*
this.D[8];this.Jh=this.Ze=this.ba=0;this.init()};p.Sa=function(){return{i:this.Ua,a:this.pb,mv:this.sh,w:this.ym,p:this.Pd,mag:this.Ub,iv:this.ba,iv2:this.Ze,r:this.Jh,lkv:this.fc,lkv2:this.fh}};p.gb=function(c){this.Ua=c.i;this.pb=c.a;this.sh=c.mv;this.ym=c.w;this.Pd=c.p;this.Ub=c.mag;this.ba=c.iv;this.Ze=c.iv2||0;this.Jh=c.r;this.fc=c.lkv;this.fh=c.lkv2||0};p.init=function(){switch(this.sh){case 0:this.ba=this.j.x;break;case 1:this.ba=this.j.y;break;case 2:this.ba=this.j.width;this.Jh=this.j.height/
this.j.width;break;case 3:this.ba=this.j.width;break;case 4:this.ba=this.j.height;break;case 5:this.ba=this.j.n;this.Ub=V(this.Ub);break;case 6:this.ba=this.j.opacity;break;case 7:this.ba=0;break;case 8:this.ba=this.j.x,this.Ze=this.j.y}this.fc=this.ba;this.fh=this.Ze};p.Yd=function(c){c=c%n;switch(this.ym){case 0:return Math.sin(c);case 1:return c<=h?c/h:c<=k?1-2*(c-h)/Math.PI:(c-k)/h-1;case 2:return 2*c/n-1;case 3:return-2*c/n+1;case 4:return c<Math.PI?-1:1}return 0};p.nb=function(){var c=this.b.We(this.j);
if(this.pb&&0!==c){0===this.Pd?this.Ua=0:(this.Ua+=c/this.Pd*n,this.Ua=this.Ua%n);switch(this.sh){case 0:this.j.x!==this.fc&&(this.ba+=this.j.x-this.fc);this.j.x=this.ba+this.Yd(this.Ua)*this.Ub;this.fc=this.j.x;break;case 1:this.j.y!==this.fc&&(this.ba+=this.j.y-this.fc);this.j.y=this.ba+this.Yd(this.Ua)*this.Ub;this.fc=this.j.y;break;case 2:this.j.width=this.ba+this.Yd(this.Ua)*this.Ub;this.j.height=this.j.width*this.Jh;break;case 3:this.j.width=this.ba+this.Yd(this.Ua)*this.Ub;break;case 4:this.j.height=
this.ba+this.Yd(this.Ua)*this.Ub;break;case 5:this.j.n!==this.fc&&(this.ba=W(this.ba+(this.j.n-this.fc)));this.j.n=W(this.ba+this.Yd(this.Ua)*this.Ub);this.fc=this.j.n;break;case 6:this.j.opacity=this.ba+this.Yd(this.Ua)*this.Ub/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.fc&&(this.ba+=this.j.x-this.fc),this.j.y!==this.fh&&(this.Ze+=this.j.y-this.fh),this.j.x=this.ba+Math.cos(this.j.n)*this.Yd(this.Ua)*this.Ub,this.j.y=this.Ze+Math.sin(this.j.n)*
this.Yd(this.Ua)*this.Ub,this.fc=this.j.x,this.fh=this.j.y}this.j.C()}};p.Oo=function(c,b){switch(this.sh){case 2:this.ba*=b.width/c.width;this.Jh=b.height/b.width;break;case 3:this.ba*=b.width/c.width;break;case 4:this.ba*=b.height/c.height}};c.B=new function(){};c.I=new function(){};c.Ka=new function(){}})();function oc(c){this.b=c}
(function(){var c=oc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=c.Y.prototype;p.P=function(){this.Xb={}};p.qd=function(){Oa(this.Xb)};p.Sa=function(){var c={},h,k;for(h in this.Xb)this.Xb.hasOwnProperty(h)&&(k=this.Xb[h],c[h]={c:k.current.ca,t:k.total.ca,d:k.duration,r:k.bp});return c};p.gb=function(c){this.Xb={};for(var h in c)c.hasOwnProperty(h)&&(this.Xb[h]={current:new Ta,
total:new Ta,duration:c[h].d,bp:c[h].r},this.Xb[h].current.ca=c[h].c,this.Xb[h].total.ca=c[h].t)};p.nb=function(){var c=this.b.We(this.j),h,k;for(h in this.Xb)this.Xb.hasOwnProperty(h)&&(k=this.Xb[h],k.current.add(c),k.total.add(c))};p.Th=function(){var c,h;for(c in this.Xb)this.Xb.hasOwnProperty(c)&&(h=this.Xb[c],h.current.ca>=h.duration&&(h.bp?h.current.ca-=h.duration:delete this.Xb[c]))};c.B=new function(){};c.I=new function(){};c.Ka=new function(){}})();function dc(c){this.b=c}
(function(){var c=dc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=c.Y.prototype;p.P=function(){this.j.J.jumpthruEnabled=0!==this.D[0]};p.nb=function(){};c.B=new function(){};c.I=new function(){}})();function pc(c){this.b=c;this.$l=this.Bj=this.Oh=this.Zl=0}
(function(){var c=pc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=c.Y.prototype;p.P=function(){this.enabled=0!==this.D[0]};p.Sa=function(){return{smg:this.behavior.Zl,ss:this.behavior.Oh,se:this.behavior.Bj,smd:this.behavior.$l}};p.gb=function(c){this.behavior.Zl=c.smg;this.behavior.Oh=c.ss;this.behavior.Bj=c.se;this.behavior.$l=c.smd};p.nb=function(){};p.Th=function(){if(this.enabled){var c=
this.behavior.wh.Jc(),h=0,k=0,p,b,a,d=0;p=0;for(b=c.length;p<b;p++){a:{a=c[p];for(var m=void 0,e=void 0,f=void 0,m=0,e=a.L.length;m<e;++m)if(f=a.L[m],f.behavior instanceof pc){a=f;break a}a=null}a&&a.enabled&&(h+=c[p].x,k+=c[p].y,++d)}c=this.j.u.Xa;b=this.b.Tb.ca;a=p=0;b>=this.behavior.Oh&&b<this.behavior.Bj&&(p=this.behavior.Zl*Math.min(this.b.lg,1),0===this.behavior.$l&&(p*=1-(b-this.behavior.Oh)/(this.behavior.Bj-this.behavior.Oh)),b=Math.random()*Math.PI*2,a=Math.random()*p,p=Math.cos(b)*a,a*=
Math.sin(b));c.Wl(h/d+p);c.Xl(k/d+a)}};c.I=new function(){}})();function cc(c){this.b=c}(function(){var c=cc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.Y=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var p=c.Y.prototype;p.P=function(){this.j.J.solidEnabled=0!==this.D[0]};p.nb=function(){};c.B=new function(){};c.I=new function(){}})();
function bc(){return[hc,ec,fc,gc,Y,mc,pc,lc,cc,nc,dc,oc,jc,kc,ic,ec.prototype.B.Em,Y.prototype.B.Yp,Y.prototype.I.Fq,lc.prototype.I.Uq,mc.prototype.I.Mm,X.prototype.I.Up,X.prototype.B.Zp,Y.prototype.I.Eq,Y.prototype.I.Iq,X.prototype.B.Cm,Y.prototype.I.Sq,mc.prototype.B.lq,X.prototype.I.Qq,ec.prototype.B.kq,mc.prototype.I.Yj,mc.prototype.I.cq,Y.prototype.I.Kq,Y.prototype.B.$p,X.prototype.Ka.Gt,X.prototype.I.Dq,mc.prototype.B.Hm,X.prototype.I.Vq,X.prototype.B.bq,fc.prototype.I.Oq,hc.prototype.I.Nq,
Y.prototype.I.Mq,Y.prototype.I.Hq,Y.prototype.Ka.gq,Y.prototype.I.Om,Y.prototype.Ka.Wq,Y.prototype.B.tq,Y.prototype.B.iq,mc.prototype.I.Xj,mc.prototype.I.Km,mc.prototype.I.Jq,Y.prototype.Ka.$q,X.prototype.B.aq,Y.prototype.I.Sp,X.prototype.B.Im,Y.prototype.B.Bm,jc.prototype.I.Yj,Y.prototype.I.Gq,mc.prototype.I.Lm,Y.prototype.I.Lq,Y.prototype.Ka.Zq,kc.prototype.B.fq,Y.prototype.I.Rq,Y.prototype.I.Pq,kc.prototype.I.Tp,fc.prototype.I.Nm,X.prototype.I.dq,X.prototype.I.Cq]};