diff --git a/Balloon.capx b/Balloon.capx index cddd678..e721843 100644 Binary files a/Balloon.capx and b/Balloon.capx differ diff --git a/c2runtime.js b/c2runtime.js index ad721bb..f57ed43 100644 --- a/c2runtime.js +++ b/c2runtime.js @@ -1,382 +1,444 @@ // 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){af?e:f):(B=ag?e:g):gf?a:f):(B=eg?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 0e;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 aq)return!1;eq)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.rightthis.right||a.top>this.bottom)};c.prototype.Mn=function(a,e,g){return!(a.right+ -ethis.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&&0d+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&&0d+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;gg?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=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;gg&&(g=l),xd&&(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;gF.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,"");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}","");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,"");this.Ma.push(m);m=this.Bg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, -d,"");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"===b.name&&a.vertexAttribPointer(b.Ac,4,a.FLOAT,!1,0,0));if(0"!==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&&""!==b.name&&a.vertexAttribPointer(b.ye,2, -a.FLOAT,!1,0,0)}for(var c,a=0,b=this.zd;ac||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=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():-1l?(l*=e,5===c?(d=l*g/this.Za, -1d&&(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,1d&&(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.widthl&&(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=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,gthis.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=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;aa||2===this.$b&&ee&&(e=0),this.ke=e/1E3,.51/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&&0e||2=== -f&&ga++;)this.jn(this.Ne);a=0;for(e=this.Cd.length;ae.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;da&&(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=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;gr;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=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;gd||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;gl||(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=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;ad?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;athis.width-f&&(a=this.width-f);athis.height-f&&(a=this.height-f);aG&&(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;bd||(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);cthis.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||0this.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.rightthis.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;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);f=B[a.length];b=0;for(d=f.length;b=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=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.dataa.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=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;cb)){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;be&&(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;bthis.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.righta.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;hm)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;mk)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;ba?a=0:1c.u.index||e.u.index===c.u.index&&e.md()>c.md())c=e}else if(e.u.indexd)){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;ch;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&&-1c;++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 athis.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;dthis.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;bthis.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;de||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=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;ca.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=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=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=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;za&&(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;ca&&(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=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.llthis.q?(this.q+=this.yb*c,0this.q&&(this.q=0)));b==a&&(0>this.A?(this.A+=this.yb*c,0this.A&&(this.A=0)));k&&!n&&(this.q=0this.q?this.q+(this.la+this.yb)*c:this.q+this.la*c);b&&!a&&(this.A=0this.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;bthis.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 -this.Ce||4===this.mode&&nthis.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;cthis.pf&&(this.A=this.pf)),A&&(this.Uf=!0));this.qg=!!z;B==a&&(0>this.q?(this.q+=this.yb*c,0this.q&&(this.q=0)));B&&!a&&(this.q=0this.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*(1this.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)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&&0this.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 cthis.j.opacity?this.j.opacity=0:1=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=this.behavior.Oh&&be?d:e):(I=ah?d:h):he?a:e):(I=dh?a:h)}function m(){this.items=this.ee=null;this.fi=0;C&&(this.ee=new Set);this.kh=[];this.Ue=!0}function k(a){G[P++]=a}function q(){this.T=this.pl=this.y=this.Sl=0}function b(a){this.ib=[];this.Cj=this.Ej=this.Fj=this.Dj=0;this.cj(a)}function a(a,d){this.Wl= +a;this.Vl=d;this.cells={}}function f(a,d){this.Wl=a;this.Vl=d;this.cells={}}function p(a,d,h){var e;return N.length?(e=N.pop(),e.Im=a,e.x=d,e.y=h,e):new aa(a,d,h)}function d(a,d,h){this.Im=a;this.x=d;this.y=h;this.Ab=new ba}function e(a,d,h){var e;return F.length?(e=F.pop(),e.Im=a,e.x=d,e.y=h,e):new ca(a,d,h)}function v(a,d,h){this.Im=a;this.x=d;this.y=h;this.Ab=[];this.Mg=!0;this.$d=new ba;this.qh=!1}function g(a,d){return a.Nd-d.Nd}y=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};Q=function(a){return"string"===typeof a};ha=function(a){return 0d;d<<=1)a=a|a>>d;return a+1};ja=function(a){return 0>a?-a:a};ma=function(a,d){return a>d?a:d};na=function(a,d){return ar)return!1;dr)return!1;D=f-a+w-h;p=g-d+u-e;a=h-a;d=e-d;f=w-f;g=u-g;u=ja(d*f-g*a);return ja(f*p-g*D)>u?!1:ja(a*p-d*D)<=u};c.prototype.set=function(a,d,h,e){this.left=a;this.top=d;this.right=h;this.bottom=e};c.prototype.xh=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,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;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.Np=function(a){return!(a.rightthis.right||a.top>this.bottom)};c.prototype.Op=function(a,d,h){return!(a.right+ +dthis.right||a.top+h>this.bottom)};c.prototype.Pb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};c.prototype.Eh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=c;l.prototype.dh=function(a){this.ub=a.left;this.wb=a.top;this.Wb=a.right;this.Xb=a.top;this.Nb=a.right;this.Ob=a.bottom;this.Kb=a.left;this.Lb=a.bottom};l.prototype.rr=function(a,d){if(0===d)this.dh(a);else{var h= +Math.sin(d),e=Math.cos(d),f=a.left*h,g=a.top*h,w=a.right*h,h=a.bottom*h,u=a.left*e,D=a.top*e,p=a.right*e,e=a.bottom*e;this.ub=u-g;this.wb=D+f;this.Wb=p-g;this.Xb=D+w;this.Nb=p-h;this.Ob=e+w;this.Kb=u-h;this.Lb=e+f}};l.prototype.offset=function(a,d){this.ub+=a;this.wb+=d;this.Wb+=a;this.Xb+=d;this.Nb+=a;this.Ob+=d;this.Kb+=a;this.Lb+=d;return this};var I=0,E=0;l.prototype.Xo=function(a){n(this.ub,this.Wb,this.Nb,this.Kb);a.left=I;a.right=E;n(this.wb,this.Xb,this.Ob,this.Lb);a.top=I;a.bottom=E};l.prototype.Pb= +function(a,d){var h=this.ub,e=this.wb,f=this.Wb-h,g=this.Xb-e,w=this.Nb-h,u=this.Ob-e,D=a-h,p=d-e,r=f*f+g*g,b=f*w+g*u,g=f*D+g*p,v=w*w+u*u,c=w*D+u*p,k=1/(r*v-b*b),f=(v*g-b*c)*k,r=(r*c-b*g)*k;if(0<=f&&0f+r)return!0;f=this.Kb-h;g=this.Lb-e;r=f*f+g*g;b=f*w+g*u;g=f*D+g*p;k=1/(r*v-b*b);f=(v*g-b*c)*k;r=(r*c-b*g)*k;return 0<=f&&0f+r};l.prototype.Uc=function(a,d){if(d)switch(a){case 0:return this.ub;case 1:return this.Wb;case 2:return this.Nb;case 3:return this.Kb;case 4:return this.ub;default:return this.ub}else switch(a){case 0:return this.wb; +case 1:return this.Xb;case 2:return this.Ob;case 3:return this.Lb;case 4:return this.wb;default:return this.wb}};l.prototype.xq=function(){return(this.ub+this.Wb+this.Nb+this.Kb)/4};l.prototype.yq=function(){return(this.wb+this.Xb+this.Ob+this.Lb)/4};l.prototype.Th=function(a,d,h,e){if(this.Pb(a,d)||this.Pb(h,e))return!0;var f,g,w,u,p;for(p=0;4>p;p++)if(f=this.Uc(p,!0),g=this.Uc(p,!1),w=this.Uc(p+1,!0),u=this.Uc(p+1,!1),sa(a,d,h,e,f,g,w,u))return!0;return!1};l.prototype.Mp=function(a){var d=a.xq(), +h=a.yq();if(this.Pb(d,h))return!0;d=this.xq();h=this.yq();if(a.Pb(d,h))return!0;var e,f,g,w,u,p,r,b;for(r=0;4>r;r++)for(b=0;4>b;b++)if(d=this.Uc(r,!0),h=this.Uc(r,!1),e=this.Uc(r+1,!0),f=this.Uc(r+1,!1),g=a.Uc(b,!0),w=a.Uc(b,!1),u=a.Uc(b+1,!0),p=a.Uc(b+1,!1),sa(d,h,e,f,g,w,u,p))return!0;return!1};ua=l;wa=function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h]);return a};xa=function(a,d){var h,e;d=R(d);if(!(0>d||d>=a.length)){h=d;for(e=a.length-1;hh?h:a};X=function(a){return a/(180/oa)};Ea=function(a){return 180/oa*a};Fa=function(a){a%=360;0>a&&(a+=360);return a};Ga=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ha=function(a){return Fa(Ea(a))};Ka=function(a){return Ga(X(a))}; +La=function(a,d,h,e){return Math.atan2(e-d,h-a)};Ma=function(a,d){if(a===d)return 0;var h=Math.sin(a),e=Math.cos(a),f=Math.sin(d),g=Math.cos(d),h=h*f+e*g;return 1<=h?0:-1>=h?oa:Math.acos(h)};Na=function(a,d,h){var e=Math.sin(a),f=Math.cos(a),g=Math.sin(d),w=Math.cos(d);return Math.acos(e*g+f*w)>h?0=e*f-h*g};Qa=function(a,d,h,e,f,g){if(0===h)return g?a:d;var w=Math.sin(h);h=Math.cos(h); +a-=e;d-=f;var u=a*w;a=a*h-d*w;d=d*h+u;return g?a+e:d+f};Ra=function(a,d,h,e){a=h-a;d=e-d;return Math.sqrt(a*a+d*d)};Wa=function(a,d){return!a!==!d};Xa=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Ya=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var A=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!== +typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-A};var h=!1,r=h=!1,x=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta);var C=!h&&!x&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.re()?!1:C?this.ee.has(a):this.items&& +this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(C)this.ee.has(a)||(this.ee.add(a),this.Ue=!1);else{var d=a.toString(),h=this.items;h?h.hasOwnProperty(d)||(h[d]=a,this.fi++,this.Ue=!1):(this.items={},this.items[d]=a,this.fi=1,this.Ue=!1)}};m.prototype.remove=function(a){if(!this.re())if(C)this.ee.has(a)&&(this.ee["delete"](a),this.Ue=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.fi--,this.Ue=!1)}};m.prototype.clear=function(){this.re()|| +(C?this.ee.clear():(this.items=null,this.fi=0),T(this.kh),this.Ue=!0)};m.prototype.re=function(){return 0===this.count()};m.prototype.count=function(){return C?this.ee.size:this.fi};var G=null,P=0;m.prototype.$w=function(){if(!this.Ue){if(C)T(this.kh),G=this.kh,P=0,this.ee.forEach(k),G=null,P=0;else{var a=this.kh;T(a);var d,h=0,e=this.items;if(e)for(d in e)e.hasOwnProperty(d)&&(a[h++]=e[d])}this.Ue=!0}};m.prototype.nd=function(){this.$w();return this.kh};ba=m;new ba;$a=function(a,d){C?ab(a,d.ee): +bb(a,d.nd())};ab=function(a,d){var h,e,f,g;e=h=0;for(f=a.length;hh&&(h=g),wf&&(f=w);this.Dj=d;this.Ej=h;this.Fj=e;this.Cj=f};b.prototype.dh=function(a,d,h){this.ib.length=8;this.gd=4;var e=this.ib;e[0]=a.left-d;e[1]=a.top-h;e[2]=a.right-d;e[3]=a.top-h;e[4]=a.right-d;e[5]=a.bottom-h;e[6]=a.left-d;e[7]=a.bottom-h; +this.Ij=a.right-a.left;this.Hj=a.bottom-a.top;this.Ha()};b.prototype.bh=function(a,d,h,e,f){this.ib.length=8;this.gd=4;var g=this.ib;g[0]=a.ub-d;g[1]=a.wb-h;g[2]=a.Wb-d;g[3]=a.Xb-h;g[4]=a.Nb-d;g[5]=a.Ob-h;g[6]=a.Kb-d;g[7]=a.Lb-h;this.Ij=e;this.Hj=f;this.Ha()};b.prototype.qr=function(a){this.gd=a.gd;za(this.ib,a.ib);this.Dj=a.Dj;this.Fj-a.Fj;this.Ej=a.Ej;this.Cj=a.Cj};b.prototype.Ef=function(a,d,h){if(this.Ij!==a||this.Hj!==d||this.$o!==h){this.Ij=a;this.Hj=d;this.$o=h;var e,f,g,w,u,p=0,r=1,b=this.br, +v=this.ib;0!==h&&(p=Math.sin(h),r=Math.cos(h));h=0;for(g=this.gd;hN.length&&N.push(u),this.cells[e][g]=null);if(h)for(e= +h.left,f=h.right;e<=f;++e)for(g=h.top,w=h.bottom;g<=w;++g)d&&d.Pb(e,g)||this.ef(e,g,!0).Om(a)};a.prototype.bl=function(a,d){var h,e,f,g,w,u;h=this.fc(a.left);f=this.gc(a.top);e=this.fc(a.right);for(w=this.gc(a.bottom);h<=e;++h)for(g=f;g<=w;++g)(u=this.ef(h,g,!1))&&u.dump(d)};fb=a;f.prototype.ef=function(a,d,h){var f;f=this.cells[a];return f?(f=f[d])?f:h?(f=e(this,a,d),this.cells[a][d]=f):null:h?(f=e(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};f.prototype.fc=function(a){return R(a/this.Wl)}; +f.prototype.gc=function(a){return R(a/this.Vl)};f.prototype.update=function(a,d,h){var e,f,g,w,u;if(d)for(e=d.left,f=d.right;e<=f;++e)for(g=d.top,w=d.bottom;g<=w;++g)if(!h||!h.Pb(e,g))if(u=this.ef(e,g,!1))u.remove(a),u.re()&&(u.reset(),1E3>F.length&&F.push(u),this.cells[e][g]=null);if(h)for(e=h.left,f=h.right;e<=f;++e)for(g=h.top,w=h.bottom;g<=w;++g)d&&d.Pb(e,g)||this.ef(e,g,!0).Om(a)};f.prototype.bl=function(a,d,h,e,f){var g,w;a=this.fc(a);d=this.gc(d);h=this.fc(h);for(g=this.gc(e);a<=h;++a)for(e= +d;e<=g;++e)(w=this.ef(a,e,!1))&&w.dump(f)};f.prototype.bw=function(a){var d,h,e,f,g;d=a.left;e=a.top;h=a.right;for(f=a.bottom;d<=h;++d)for(a=e;a<=f;++a)if(g=this.ef(d,a,!1))g.Mg=!1};gb=f;var N=[];d.prototype.re=function(){return this.Ab.re()};d.prototype.Om=function(a){this.Ab.add(a)};d.prototype.remove=function(a){this.Ab.remove(a)};d.prototype.dump=function(a){Aa(a,this.Ab.nd())};aa=d;var F=[];v.prototype.re=function(){if(!this.Ab.length)return!0;if(this.Ab.length>this.$d.count())return!1;this.tm(); +return!0};v.prototype.Om=function(a){this.$d.contains(a)?(this.$d.remove(a),this.$d.re()&&(this.qh=!1)):this.Ab.length?(this.Ab[this.Ab.length-1].Td()>a.Td()&&(this.Mg=!1),this.Ab.push(a)):(this.Ab.push(a),this.Mg=!0)};v.prototype.remove=function(a){this.$d.add(a);this.qh=!0;30<=this.$d.count()&&this.tm()};v.prototype.tm=function(){this.qh&&(this.$d.count()===this.Ab.length?this.reset():($a(this.Ab,this.$d),this.$d.clear(),this.qh=!1))};v.prototype.nu=function(){this.Mg||(this.Ab.sort(g),this.Mg= +!0)};v.prototype.reset=function(){T(this.Ab);this.Mg=!0;this.$d.clear();this.qh=!1};v.prototype.dump=function(a){this.tm();this.nu();this.Ab.length&&a.push(this.Ab)};ca=v;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":z[a-1]};ib=function(a,d,h){if(h)switch(a.Vb=h.ONE,a.Rb=h.ONE_MINUS_SRC_ALPHA,d){case 1:a.Vb=h.ONE;a.Rb=h.ONE;break;case 3:a.Vb=h.ONE;a.Rb=h.ZERO;break; +case 4:a.Vb=h.ONE_MINUS_DST_ALPHA;a.Rb=h.ONE;break;case 5:a.Vb=h.DST_ALPHA;a.Rb=h.ZERO;break;case 6:a.Vb=h.ZERO;a.Rb=h.SRC_ALPHA;break;case 7:a.Vb=h.ONE_MINUS_DST_ALPHA;a.Rb=h.ZERO;break;case 8:a.Vb=h.ZERO;a.Rb=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.Vb=h.DST_ALPHA;a.Rb=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.Vb=h.ONE_MINUS_DST_ALPHA,a.Rb=h.SRC_ALPHA}};jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()=== +d.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(c){var l=new fc(3);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2]);return l} +function hc(c){var l=new fc(16);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=c[6],l[7]=c[7],l[8]=c[8],l[9]=c[9],l[10]=c[10],l[11]=c[11],l[12]=c[12],l[13]=c[13],l[14]=c[14],l[15]=c[15]);return l}function ic(c,l){l[0]=c[0];l[1]=c[1];l[2]=c[2];l[3]=c[3];l[4]=c[4];l[5]=c[5];l[6]=c[6];l[7]=c[7];l[8]=c[8];l[9]=c[9];l[10]=c[10];l[11]=c[11];l[12]=c[12];l[13]=c[13];l[14]=c[14];l[15]=c[15]} +function jc(c,l){var n=l[0],m=l[1];l=l[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=m;c[5]*=m;c[6]*=m;c[7]*=m;c[8]*=l;c[9]*=l;c[10]*=l;c[11]*=l} +function kc(c,l,n,m){m||(m=hc());var k,q,b,a,f,p,d,e,v=c[0],g=c[1];c=c[2];q=n[0];b=n[1];k=n[2];n=l[1];p=l[2];v===l[0]&&g===n&&c===p?(c=m,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=v-l[0],p=g-l[1],d=c-l[2],e=1/Math.sqrt(n*n+p*p+d*d),n*=e,p*=e,d*=e,l=b*d-k*p,k=k*n-q*d,q=q*p-b*n,(e=Math.sqrt(l*l+k*k+q*q))?(e=1/e,l*=e,k*=e,q*=e):q=k=l=0,b=p*q-d*k,a=d*l-n*q,f=n*k-p*l,(e=Math.sqrt(b*b+a*a+f*f))?(e=1/e,b*=e,a*=e,f*=e):f=a=b=0, +m[0]=l,m[1]=b,m[2]=n,m[3]=0,m[4]=k,m[5]=a,m[6]=p,m[7]=0,m[8]=q,m[9]=f,m[10]=d,m[11]=0,m[12]=-(l*v+k*g+q*c),m[13]=-(b*v+a*g+f*c),m[14]=-(n*v+p*g+d*c),m[15]=1)} +(function(){function c(a,f,p){this.te=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ia=!!p;this.rk=this.Wh=!1;this.em=0;this.El=1;this.Bo=1E3;this.ix=(this.Bo-this.El)/32768;this.Tl=gc([0,0,100]);this.hq=gc([0,0,0]);this.Rr=gc([0,1,0]);this.sj=gc([1,1,1]);this.kp=!0;this.Mk=hc();this.Oc=hc();this.$m=hc();this.dm=hc();this.K=a;this.Ip()}function l(a,f,p){this.K=a;this.ej=f;this.name=p;this.dd=a.getAttribLocation(f,"aPos");this.of=a.getAttribLocation(f, +"aTex");this.fq=a.getUniformLocation(f,"matP");this.Ik=a.getUniformLocation(f,"matMV");this.Tg=a.getUniformLocation(f,"opacity");this.nn=a.getUniformLocation(f,"colorFill");this.gq=a.getUniformLocation(f,"samplerFront");this.Ai=a.getUniformLocation(f,"samplerBack");this.gg=a.getUniformLocation(f,"destStart");this.fg=a.getUniformLocation(f,"destEnd");this.Ci=a.getUniformLocation(f,"seconds");this.qn=a.getUniformLocation(f,"pixelWidth");this.pn=a.getUniformLocation(f,"pixelHeight");this.yi=a.getUniformLocation(f, +"layerScale");this.xi=a.getUniformLocation(f,"layerAngle");this.Di=a.getUniformLocation(f,"viewOrigin");this.Bi=a.getUniformLocation(f,"scrollPos");this.Jv=!!(this.qn||this.pn||this.Ci||this.Ai||this.gg||this.fg||this.yi||this.xi||this.Di||this.Bi);this.pq=this.qq=-999;this.Lk=1;this.lq=this.kq=0;this.nq=this.jq=this.iq=1;this.tq=this.sq=this.rq=this.vq=this.uq=this.mq=0;this.Zm=[];this.oq=hc();this.Tg&&a.uniform1f(this.Tg,1);this.nn&&a.uniform4f(this.nn,1,1,1,1);this.gq&&a.uniform1i(this.gq,0);this.Ai&& +a.uniform1i(this.Ai,1);this.gg&&a.uniform2f(this.gg,0,0);this.fg&&a.uniform2f(this.fg,1,1);this.yi&&a.uniform1f(this.yi,1);this.xi&&a.uniform1f(this.xi,0);this.Di&&a.uniform2f(this.Di,0,0);this.Bi&&a.uniform2f(this.Bi,0,0);this.Ci&&a.uniform1f(this.Ci,0);this.Sf=!1}function n(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&&a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]=== +f[15]}function m(a,f){this.type=a;this.H=f;this.K=f.K;this.Ud=this.cc=this.Mq=0;this.aa=this.ld=null;this.sr=[]}var k=hc();c.prototype.Ip=function(){var a=this.K,f;this.$p=1;this.bg=this.jf=null;this.Oj=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.Ia?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.aq=a.ONE;this.Zp=a.ONE_MINUS_SRC_ALPHA; +this.Cl=new Float32Array(8E3*(this.Ia?3:2));this.ql=new Float32Array(16E3);this.Xq=new Float32Array(32E3);this.Dn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Dn);a.bufferData(a.ARRAY_BUFFER,this.Xq.byteLength,a.DYNAMIC_DRAW);this.rj=Array(4);this.kj=Array(4);for(f=0;4>f;f++)this.rj[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.rj[f]),a.bufferData(a.ARRAY_BUFFER,this.Cl.byteLength,a.DYNAMIC_DRAW),this.kj[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.kj[f]),a.bufferData(a.ARRAY_BUFFER, +this.ql.byteLength,a.DYNAMIC_DRAW);this.ke=0;this.Ov=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ov);for(var p=new Uint16Array(12E3),d=f=0;12E3>f;)p[f++]=d,p[f++]=d+1,p[f++]=d+2,p[f++]=d,p[f++]=d+2,p[f++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,p,a.STATIC_DRAW);this.En=this.gh=this.Le=0;this.$a=[];f=this.Ia?"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}";p=this.yh({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}"},f,"");this.$a.push(p);p=this.yh({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}","");this.$a.push(p);p=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"");this.$a.push(p);p=this.yh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +f,"");this.$a.push(p);for(var e in lc)lc.hasOwnProperty(e)&&this.$a.push(this.yh(lc[e],f,e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Te=[];this.je=0;this.Sb=!1;this.gp=this.mi=-1;this.Bg=null;this.qm=a.createFramebuffer();this.Sj=this.cl=null;this.Vo=!1;this.Ia&&(this.Sj=a.createRenderbuffer());this.xf=gc([0,0,0]);this.wq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&a.vertexAttribPointer(b.dd,4,a.FLOAT,!1,0,0));if(0"!==b.name&&a.vertexAttribPointer(b.dd,this.Ia?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.kj[this.ke]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ql.subarray(0,this.gh));b&&0<=b.of&&""!== +b.name&&a.vertexAttribPointer(b.of,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.je;ac||0>d)){var e=this.Ec();e.type=7;e.cc=1;e.aa||(e.aa=hc());e.aa[0]=a;e.aa[1]=b;e.aa[2]=c;e.aa[3]=d;this.Sb=!1}};c.prototype.lr=function(a){if(this.Ia&&(a=!!a,this.Wh!==a)){var b=this.Ec();b.type=14;b.cc=a?1:0;this.Sb=!1;this.Wh=a;this.cl=null;this.Wh?this.uc(2):this.uc(0)}};c.prototype.kr=function(a){if(this.Ia){var b=this.Ec();b.type=13;b.cc=a?1:0;this.Sb=!1}};c.prototype.sp=function(){ic(this.$m,k);this.hd();this.Rc();var a=this.width/2,b=this.height/ +2;this.Xi(-a,b,a,b,a,-b,-a,-b);ic(k,this.Oc);this.Rc()};c.prototype.jr=function(a,b,c){this.uc(3);var d=this.Ec();d.type=12;d.aa||(d.aa=hc());d.aa[0]=a;d.aa[1]=b;d.aa[2]=c;d.aa[3]=1;this.Sb=!1};c.prototype.Qw=function(){this.uc(0)};c.prototype.Bw=function(){this.uc(2)};c.prototype.sw=function(){this.$e();this.K.flush()};var q=[],b={};c.prototype.Kt=function(){T(q);b={}};c.prototype.Fk=function(a,f,c,d){f=!!f;c=!!c;var e=a.src+","+f+","+c+(f?",undefined":""),k=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(e))return k= +b[e],k.Gj++,k;this.$e();var g=this.K,m=ha(a.width)&&ha(a.height),k=g.createTexture();g.bindTexture(g.TEXTURE_2D,k);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=g.RGBA,l=g.RGBA,h=g.UNSIGNED_BYTE;if(d&&!this.te)switch(d){case 1:l=n=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=n=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(!m&&f){d=document.createElement("canvas");d.width=ia(a.width);d.height=ia(a.height);var r=d.getContext("2d");r.webkitImageSmoothingEnabled= +c;r.mozImageSmoothingEnabled=c;r.msImageSmoothingEnabled=c;r.imageSmoothingEnabled=c;r.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);g.texImage2D(g.TEXTURE_2D,0,n,l,h,d)}else g.texImage2D(g.TEXTURE_2D,0,n,l,h,a);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER, +g.LINEAR),m&&this.kp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.jf=null;k.Df=a.width;k.Cf=a.height;k.Gj=1;k.Zo=e;q.push(k);return b[e]=k};c.prototype.Kc=function(a,b,c,d){this.$e();var e=this.K;this.te&&(d=!1);var k= +e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.jf=null;k.Df=a;k.Cf=b;q.push(k);return k};c.prototype.gx= +function(a,b,c){this.$e();var d=this.K;this.te&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}d.bindTexture(d.TEXTURE_2D,null);this.jf=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Gj&&1=d?a[3]:256>=d? +a[2]:512>=d?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(a,d,h,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=h}}catch(f){e(f)}}function q(a,d,h){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=m;e.onerror= +h;e.onsuccess=function(e){e=e.target.result;e.onerror=h;var b=e.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?d(b.result.data):d(null)}}}catch(b){h(b)}}function b(){y("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1f?(f*=d,5===c?(g=f*h/this.sb,1g&&(g=1/Math.ceil(1/g)),f=this.sb*g/h,g=this.rb*g/h,e=(a-f)/2,b=(d-g)/2,a=f,d=g):(e=(a-f)/2,a=f)):(g=a/f,5===c?(g=g*h/this.rb,1g&&(g=1/Math.ceil(1/g)),f=this.sb*g/h,g=this.rb*g/h,e=(a-f)/2,b=(d-g)/2,a=f):b=(d-g)/2,d=g),r&&!this.gf&&(b=e=0)):this.gf&&this.Zh&&0===this.tp&&(e=Math.floor((a-this.sb)/2),b=Math.floor((d-this.rb)/2),a= +this.sb,d=this.rb),2>c&&(this.sh=h),this.Mj=Math.round(a),this.Ah=Math.round(d),this.width=Math.round(a*h),this.height=Math.round(d*h),this.Ca=!0,this.$r?(this.R=this.width,this.P=this.height,this.Lc=!0):this.widthf&&(this.P=this.R/c)):3===c&&(f=this.sb/this.rb,c=this.si/this.ri,c>f?this.R=this.P*c:c=c)c=5E4;a+=c;g.src&&(g.complete||g.loaded)&&!g.Yo?d+=c:b=!1}b&&this.qw&&this.zg&&(v||(this.zg.Uw(),v=!0),h=this.zg.qv(),d+=h,hthis.nf&&(this.xd||500<=e&&this.bq!=this.Hd)){a.clearRect(0,0,b,c);var e=b/2,c=c/2,b=0===this.nf&&this.lf.Kk.complete,r=40*k,m=0,v=80*k,n;if(b){var l=this.lf.Kk,v=l.width*k;n=l.height*k;r=v/2;m=n/2;a.drawImage(l,R(e-r),R(c-m),v,n)}1>=this.nf?(e=R(e-r)+.5,c=R(c+(m+(b?12*k:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(e,c,Math.floor(v*this.Hd),6*k),a.strokeStyle="black",a.strokeRect(e,c,v,6*k),a.strokeStyle="white",a.strokeRect(e-1*k,c-1*k,v+2*k,8*k)):2===this.nf&&(a.font=this.yd?"12pt ArialMT": +"12pt Arial",a.fillStyle=d?"#f00":"#999",a.ny="middle",k=Math.round(100*this.Hd)+"%",b=a.measureText?a.measureText(k):null,a.fillText(k,e-(b?b.width:0)/2,c));this.bq=this.Hd}else if(4===this.nf){this.ju(a);f?f(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.xd?10:100)}}};var I=-1,E="undefined"===typeof cr_is_preview?200:0,A=!0,h=!1,r=0,x=0,C="undefined"===typeof cr_is_preview?3E3:0,G=null,P=null,N=0;c.prototype.ju=function(a){if(!g){for(var e=Math.ceil(this.width), +b=Math.ceil(this.height),f=this.lf.Kk,c=this.lf.pw,k=this.lf.hx,m=0;4>m;++m)if(!f[m].complete||!c[m].complete||!k[m].complete)return;0===N&&(I=Date.now());var m=Date.now(),v=!1,n=a,p,q;A||h?(a.clearRect(0,0,e,b),G&&G.width===e&&G.height===b||(G=document.createElement("canvas"),G.width=e,G.height=b,P=G.getContext("2d")),n=P,v=!0,A&&1===N&&(I=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,e,b);256=C&&!h&&1<=this.Hd&&(h=!0,x=m);if(h&&m-x>=300+E||"undefined"!==typeof cr_is_preview&&1<=this.Hd&&500>Date.now()-I)g=!0,h=A=!1,this.lf=P=G=null;++N}};c.prototype.Hv=function(){this.Fb&&(this.canvas.parentNode.removeChild(this.Fb),this.Fb=this.Cn=null);this.ol=Date.now();this.eg=Za();var a,d,h;if(this.wo)for(a=0,d=this.G.length;aa||2===this.yc&&dd&&(d=0),this.Ze=d/1E3,.51/this.zq&&(this.Ze=1/this.zq));this.wk=a;this.Jf=this.Ze*this.ug;this.ob.add(this.Jf);this.Me.add(this.Ze);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Zh)&&!this.Vd;2<=this.yc|| +a&&0d||2===e&&ha++;)this.jp(this.Ff);a=0;for(d=this.me.length;ad.Qj.length&&d.Qj.push(a)}; +c.prototype.ep=function(a,d,h,e){if(a.S){var b=R(Math.random()*a.jg.length);return this.ep(a.jg[b],d,h,e)}return a.Yc?this.Xe(a.Yc,d,!1,h,e,!1):null};var z=[];c.prototype.Xe=function(a,d,h,e,b,f){var g,c,k,r;if(!a)return null;var m=this.G[a[1]],n=m.Ja.hf;if(this.Og&&n&&!m.Tm||n&&!this.H&&11===a[0][11])return null;var v=d;n||(d=null);var l;m.Qj.length?(l=m.Qj.pop(),l.Fc=!0,m.Ja.Y.call(l,m)):(l=new m.Ja.Y(m),l.Fc=!1);!h||f||this.xe.hasOwnProperty(a[2].toString())?l.uid=this.Li++:l.uid=a[2];this.xe[l.uid.toString()]= +l;l.cr=this.Dq++;l.Uf=m.k.length;g=0;for(c=this.vd.length;ga&&(a=0);a>=this.za.Z.length&&(a=this.za.Z.length-1);return this.za.Z[a]};c.prototype.Yl= +function(a){var d,h;d=0;for(h=a.length;d=b;)g=1/b,b*=2,a.x+=d*g*(f?1:-1),a.y+=h*g*(f?1:-1),a.F(),this.ec(a,e)?g=f=!0:(g=f=!1,c=a.x,k=a.y);g&&(a.x=c,a.y=k,a.F())};c.prototype.Jn=function(a,d){var h=ea(d)?100:d,e=0,b=a.x,g=a.y,f=0,c=0,k=0,r=this.Ka(a);if(!r)return!0;for(;e<=h;){switch(f){case 0:c=0;k=-1;e++;break;case 1:c=1;k=-1;break;case 2:c=1;k=0;break;case 3:k=c=1;break;case 4:c=0;k=1;break;case 5:c=-1;k=1;break;case 6:c=-1;k=0;break;case 7:k=c=-1}f=(f+1)%8;a.x=R(b+c*e);a.y= +R(g+k*e);a.F();if(!this.ec(a,r)&&(r=this.Ka(a),!r))return!0}a.x=b;a.y=g;a.F();return!1};c.prototype.be=function(a,d){a.Jc&&d.Jc&&this.Zi.push([a,d])};c.prototype.It=function(a,d){var h,e,b;h=0;for(e=this.Zi.length;hr;r++)if(l=f-r*v,a.x=d+Math.cos(l)*g,a.y=h+Math.sin(l)*g,a.F(), +!this.ec(a,k)&&(k=this.Ka(a),!k)){m=l;break}36===r&&(m=Ga(f+oa));k=c;for(r=1;36>r;r++)if(l=f+r*v,a.x=d+Math.cos(l)*g,a.y=h+Math.sin(l)*g,a.F(),!this.ec(a,k)&&(k=this.Ka(a),!k)){n=l;break}36===r&&(n=Ga(f+oa));a.x=e;a.y=b;a.F();if(n===m)return n;a=Ma(n,m)/2;a=Pa(n,m)?Ga(m+a+oa):Ga(n+a);m=Math.cos(f);f=Math.sin(f);n=Math.cos(a);a=Math.sin(a);d=m*n+f*a;return La(0,0,m-2*d*n,f-2*d*a)};var W=-1;c.prototype.trigger=function(a,d,h){if(!this.za)return!1;var e=this.za.Lf;if(!e)return!1;var b=!1,g,f,c;W++;var k= +e.gm;f=0;for(c=k.length;f=this.rn.length&&this.rn.push([])};c.prototype.mw=function(){this.Jk--};c.prototype.xp=function(){return this.rn[this.Jk]};c.prototype.al=function(a){this.Vj++; +this.Vj>=this.mm.length&&this.mm.push(new Qb);var d=this.Eb();d.reset(a);return d};c.prototype.Wk=function(){this.Vj--};c.prototype.Eb=function(){return this.mm[this.Vj]};c.prototype.yp=function(a,d){for(var h,e,b,g,f,c;d;){h=0;for(e=d.kd.length;hg||g>=a.nb.length||(a.nb[g]=b[e]));if(f.hf){g=d.w;a.n.ja!==g.l&&(b= +a.n,a.n=this.za.ik(g.l),a.n?(b.Zg(a,!0),a.n.rh(a,!0),a.F(),a.n.bj(0)):(a.n=b,h||this.yf(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Nd=g.zi;a.q=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.nc=g.hasOwnProperty("hX")?g.hX:.5;a.oc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Jc=g.hasOwnProperty("ce")?g.ce:!0;a.Ki=g.hasOwnProperty("mts")?g.mts:-1;a.Jb=g.hasOwnProperty("bm")?g.bm:0;a.wh=hb(a.Jb);this.K&&ib(a,a.Jb,this.K);a.F();if(g.hasOwnProperty("fx"))for(h= +0,b=g.fx.length;hf||(a.Qe[f]=g.fx[h].active,a.Xa[f]=g.fx[h].params);a.Md()}if(c=d.behs)for(e in c)c.hasOwnProperty(e)&&(h=this.$u(a,parseInt(e,10)),0>h||a.O[h].hb(c[e]));d.data&&a.hb(d.data)};c.prototype.op=function(a,d,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,h)},h)};c.prototype.Ru=function(a,d){this.op("data.js",function(h){var e=new FileReader;e.onload=function(d){a(d.target.result)};e.onerror=d;e.readAsText(h)}, +d)};c.prototype.pp=function(a,d,h){this.op(a,function(a){var h=new FileReader;h.onload=function(a){d(a.target.result)};h.readAsArrayBuffer(a)},h)};c.prototype.Su=function(a,d,h){this.pp(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},h)};c.prototype.nr=function(a,d){this.bi?this.Su(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};Sb=function(a){return new c(document.getElementById(a))};Tb=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime= +Sb;window.cr_createDCRuntime=Tb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Pl=!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,l){var n=window.cr_getC2Runtime();n&&n.Pt(c,l)};window.cr_sizeCanvas=function(c,l){if(0!==c&&0!==l){var n=window.cr_getC2Runtime();n&&n.setSize(c,l)}};window.cr_setSuspended=function(c){var l=window.cr_getC2Runtime();l&&l.setSuspended(c)}; +(function(){function c(a,e){this.b=a;this.Lf=null;this.scrollX=this.b.sb/2;this.scrollY=this.b.rb/2;this.scale=1;this.q=0;this.Fg=!0;this.name=e[0];this.width=e[1];this.height=e[2];this.Qr=e[3];this.tr=e[4];this.ja=e[5];var b=e[6],g,f;this.Z=[];this.Rh=[];g=0;for(f=b.length;g=this.Z.length&&(h=this.Z.length-1);k.n=this.Z[h];-1===k.n.k.indexOf(k)&&k.n.k.push(k);k.n.vg=!0}if(!b)for(a=0,f=this.Z.length;af?k.siblings.push(m.k[f]):m.Yc&&(c=this.b.Xe(m.Yc,k.n,!0,k.x,k.y,!0),this.b.Hb(),m.xl(),k.siblings.push(c),q.push(c)));a=0;for(f=this.Wf.length;athis.width-e&&(a=this.width-e);athis.height-e&&(a=this.height-e);aL&&(L=0);0>J&&(J=0);O>B&&(O=B);S>t&&(S=t);0>U&&(U=0);0>H&&(H=0);pa>B&&(pa=B);qa>t&&(qa=t);u.left=L/B;u.top=1-J/t;u.right=O/B;u.bottom=1-S/t}else u.left=D.left=0,u.top=D.top=0,u.right=D.right=1,u.bottom=D.bottom=1;ka=b&&(a.Ui(f[0].kb)||0!==F|| +0!==ka||1!==b.opacity||b.type.Ja.Aq)||e&&!b&&1!==e.opacity;a.ir();if(ka){n[M]||(n[M]=a.Kc(B,t,this.b.da));if(n[M].Df!==B||n[M].Cf!==t)a.deleteTexture(n[M]),n[M]=a.Kc(B,t,this.b.da);a.uc(0);a.jd(n[M]);K=qa-H;a.clearRect(U,t-H-K,pa-U,K);b?b.Yb(a):(a.Gc(this.b.pb),a.ng(e.opacity),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u));D.left=D.top=0;D.right=D.bottom=1;b&&(z=u.top,u.top=u.bottom,u.bottom=z);M=1;ga=0}a.ng(1);F=f.length-1;var Ia=a.Hn(f[F].kb)||!e&&!b&&!this.b.Lc,va=0;p=0;for(q=f.length;p< +q;p++){n[M]||(n[M]=a.Kc(B,t,this.b.da));if(n[M].Df!==B||n[M].Cf!==t)a.deleteTexture(n[M]),n[M]=a.Kc(B,t,this.b.da);a.uc(f[p].kb);va=f[p].index;a.Zk(f[p].kb)&&(this.b.Ca=!0);0!=p||ka?(a.ah(g,1/B,1/t,D.left,D.top,D.right,D.bottom,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,b?b.Xa[va]:e?e.Xa[va]:this.Xa[va]),a.Gc(null),p!==F||Ia?(a.jd(n[M]),K=qa-H,z=t-H-K,a.clearRect(U,z,pa-U,K)):(b?a.uf(b.Vb,b.Rb):e&&a.uf(e.Vb,e.Rb),a.jd(g)),a.Gc(n[ga]),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u),p!==F||Ia||a.Gc(null)): +(a.jd(n[M]),K=qa-H,z=t-H-K,a.clearRect(U,z,pa-U,K),b?(a.ah(g,1/b.width,1/b.height,D.left,D.top,D.right,D.bottom,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,b.Xa[va]),b.Yb(a)):(a.ah(g,1/B,1/t,0,0,1,1,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,e?e.Xa[va]:this.Xa[va]),a.Gc(e?this.b.pb:this.b.gb),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u)),D.left=D.top=0,D.right=D.bottom=1,b&&!Ia&&(z=S,S=J,J=z));M=0===M?1:0;ga=0===M?1:0}Ia&&(a.uc(0),b?a.uf(b.Vb,b.Rb):e?a.uf(e.Vb,e.Rb):this.b.Lc||(a.pg(this.b.width,this.b.height), +W=this.b.width/2,w=this.b.height/2,J=L=0,O=this.b.width,S=this.b.height),a.jd(g),a.Gc(n[ga]),a.hd(),a.translate(-W,-w),a.Rc(),b&&1===f.length&&!ka?a.ae(L,J,O,J,O,S,L,S,u):a.ae(L,S,O,S,O,J,L,J,u),a.Gc(null))};c.prototype.ik=function(a){var b,f;b=0;for(f=this.Z.length;bf||(b&&this.Sc&&a.rc&&a.rc.right>=a.rc.left&&(a.Ha(),this.Gb.update(a,a.rc,null),a.rc.set(0,0,-1,-1)),f===this.k.length-1?this.k.pop():(xa(this.k,f),this.bj(f)),this.Id=!0)};n.prototype.rh=function(a,b){a.Nd=this.k.length;this.k.push(a); +b&&this.Sc&&a.rc&&a.F();this.Id=!0};n.prototype.rw=function(a){this.k.unshift(a);this.bj(0)};n.prototype.dw=function(a,b,f){var g=a.Td();b=b.Td();xa(this.k,g);gthis.Va||f.top>this.Ua||(b.globalCompositeOperation=a.wh,a.$c(b))}};n.prototype.zl=function(){this.le=!0;var a=this.Ve(!0),b=this.Ve(!1); +this.le=!1;this.b.Fd&&(a=Math.round(a),b=Math.round(b));this.dl(a,b,null)};n.prototype.dl=function(a,b,f){var g=this.mc();this.La=a;this.Ma=b;this.Va=a+1/g*this.b.R;this.Ua=b+1/g*this.b.P;a=this.ab();0!==a&&(f&&(f.translate(this.b.R/2,this.b.P/2),f.rotate(-a),f.translate(this.b.R/-2,this.b.P/-2)),this.Je.set(this.La,this.Ma,this.Va,this.Ua),this.Je.offset((this.La+this.Va)/-2,(this.Ma+this.Ua)/-2),this.Lr.rr(this.Je,a),this.Lr.Xo(this.Je),this.Je.offset((this.La+this.Va)/2,(this.Ma+this.Ua)/2),this.La= +this.Je.left,this.Ma=this.Je.top,this.Va=this.Je.right,this.Ua=this.Je.bottom)};n.prototype.If=function(a){if(this.de=this.dk){this.b.pb||(this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da));if(this.b.pb.Df!==this.b.R||this.b.pb.Cf!==this.b.P)a.deleteTexture(this.b.pb),this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da);a.jd(this.b.pb)}this.le=!0;var b=this.Ve(!0),f=this.Ve(!1);this.le=!1;this.b.Fd&&(b=Math.round(b),f=Math.round(f));this.dl(b,f,null);b=this.mc();a.hd();a.scale(b,b);a.el(-this.ab());a.translate((this.La+ +this.Va)/-2,(this.Ma+this.Ua)/-2);a.Rc();this.Sc?(this.Cb.left=this.Gb.fc(this.La),this.Cb.top=this.Gb.gc(this.Ma),this.Cb.right=this.Gb.fc(this.Va),this.Cb.bottom=this.Gb.gc(this.Ua),this.Id||!this.Cb.Eh(this.Sg)?(k(this.ve),b=this.Cm(),this.Id=!1,this.Sg.xh(this.Cb)):b=this.ve):b=this.k;for(var g,c=null,f=b.length-1;0<=f;--f)g=b[f],g!==c&&(this.hu(b[f],a),c=g);this.Sc&&(this.ve=b);this.Ld||(this.Zl=this.b.Kf++,a.il(this.Zl),a.jr(1,1,1),a.sp(),a.Bw())};n.prototype.Yb=function(a){var b=0,f=0;if(this.de= +this.dk||1!==this.opacity||0this.Va||f.top>this.Ua||(b.il(a.Kf),a.Xr?this.iu(a,b):(b.uc(0),b.uf(a.Vb,a.Rb),a.Yb(b)))}};n.prototype.hu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var f=a.Oa;f.rightthis.Va||f.top>this.Ua||(a.Kf=this.b.Kf++,0===a.Jb&&1===a.opacity&&a.Ee&&a.If&&(b.il(a.Kf),a.If(b)))}};n.prototype.iu= +function(a,b){var f=a.ta[0].kb,g=a.ta[0].index,c=this.mc();if(1!==a.ta.length||b.Hn(f)||b.uw(f)||(a.q||a.n.ab())&&b.Ui(f)||1!==a.opacity||a.type.Ja.Aq)this.qb.On(b,this,a,this.de?this.b.pb:this.qb.Kh()),b.hd(),b.scale(c,c),b.el(-this.ab()),b.translate((this.La+this.Va)/-2,(this.Ma+this.Ua)/-2),b.Rc();else{b.uc(f);b.uf(a.Vb,a.Rb);b.Zk(f)&&(this.b.Ca=!0);var k=0,l=0,h=0,r=0;b.Ui(f)&&(f=a.Oa,k=this.wa(f.left,f.top,!0,!0),l=this.wa(f.left,f.top,!1,!0),h=this.wa(f.right,f.bottom,!0,!0),f=this.wa(f.right, +f.bottom,!1,!0),k=k/windowWidth,l=1-l/windowHeight,h=h/windowWidth,r=1-f/windowHeight);b.ah(this.de?this.b.pb:this.qb.Kh(),1/a.width,1/a.height,k,l,h,r,c,this.ab(),this.La,this.Ma,(this.La+this.Va)/2,(this.Ma+this.Ua)/2,this.b.ob.T,a.Xa[g]);a.Yb(b)}};n.prototype.Ve=function(a){var b=0,f=0,g=this.b.devicePixelRatio;this.b.Yf&&(b*=g,f*=g);var g=this.b.Tq,c=this.b.Uq,g=(this.qb.scrollX-g)*this.ye+g,c=(this.qb.scrollY-c)*this.ze+c,k,l,h=1/this.mc(!1);k=g-this.b.R*h/2;l=c-this.b.P*h/2;k+=b*h;l+=f*h;f= +this.ab();0!==f&&(k-=g,l-=c,b=Math.cos(f),f=Math.sin(f),h=k*b-l*f,l=l*b+k*f,k=h+g,l+=c);return a?k:l};n.prototype.wa=function(a,b,f,g){var c=this.b.Tq,k=this.b.Uq,l=(this.qb.scrollX-c)*this.ye+c,h=(this.qb.scrollY-k)*this.ze+k,k=l,c=h,r=this.ab();if(0!==r){a-=l;b-=h;var m=Math.cos(-r),r=Math.sin(-r),n=a*m-b*r;b=b*m+a*r;a=n+l;b+=h}l=1/this.mc(!g);g?(k-=this.b.R*l/2,c-=this.b.P*l/2):(k-=this.b.width*l/2,c-=this.b.height*l/2);k=(a-k)/l;c=(b-c)/l;a=this.b.devicePixelRatio;this.b.Yf&&!g&&(k/=a,c/=a);return f? +k:c};n.prototype.Za=function(){var a,b,f,g={s:this.scale,a:this.q,vl:this.La,vt:this.Ma,vr:this.Va,vb:this.Ua,v:this.visible,bc:this.td,t:this.Ld,px:this.ye,py:this.ze,o:this.opacity,zr:this.tj,fx:[],cg:this.zh,instances:[]};a=0;for(b=this.X.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=I.length&&(I.length=a.length+1);I[a.length]||(I[a.length]=[]);e=I[a.length];b=0;for(d=e.length;b=b.length&&(b.length=this.hg+1),b[this.hg]=a):this.data=a};e.prototype.Lh=function(){var a=this.b.xp();return!this.parent||this.di||!a||this.sk?this.data:this.hg>=a.length||"undefined"===typeof a[this.hg]?this.mk:a[this.hg]};e.prototype.jb=function(){!this.parent||this.di||this.sk||this.qg(this.mk)};Rb= +e;v.prototype.toString=function(){return"include:"+this.Qh.toString()};v.prototype.eb=function(){this.Qh=this.b.nm[this.Nv];this.sheet.Hp.add(this);this.Ga=n(this.Ga);for(var a=this.parent;a;)a.group&&a.Kj.push(this),a=a.parent;this.Sr()};v.prototype.jb=function(){this.parent&&this.b.Wi(this.b.G);this.Qh.Km||this.Qh.jb(!0);this.parent&&this.b.mg(this.b.G)};v.prototype.Sr=function(){for(var a=this.parent;a;){if(a.group&&!a.Nh){this.Ib=!1;return}a=a.parent}this.Ib=!0};ac=v;g.prototype.reset=function(a){this.jc= +a;this.hc=this.xb=0;T(this.Er);this.km=this.dg=!1};Qb=g})(); +(function(){function c(b,a){this.fd=b;this.b=b.b;this.type=a[0];this.get=[this.Du,this.zu,this.Mu,this.Pu,this.ou,this.Nu,this.Hu,this.wu,this.Gu,this.Lu,this.pu,this.Ku,this.xu,this.Iu,this.Eu,this.Fu,this.Au,this.Bu,this.vu,this.Ou,this.Ju,this.Cu,this.uu,this.yu][this.type];var f=null;this.we=this.ba=this.Ya=this.Db=this.rl=this.second=this.first=this.value=null;this.ud=-1;this.wd=null;this.Yr=-1;this.Mf=this.qj=null;this.$g=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= +new Zb(b,a[1]);break;case 18:this.first=new Zb(b,a[1]);this.second=new Zb(b,a[2]);this.rl=new Zb(b,a[3]);break;case 19:this.Db=this.b.Pe(a[1]);this.Db!==Y.prototype.Qa.random&&this.Db!==Y.prototype.Qa.Jt||this.fd.pr();this.Ya=[];this.ba=[];3===a.length?(f=a[2],this.Ya.length=f.length+1):this.Ya.length=1;break;case 20:this.we=this.b.G[a[1]];this.ud=-1;this.Db=this.b.Pe(a[2]);this.$g=a[3];dc.Function&&this.Db===dc.Function.prototype.Qa.qx&&this.fd.pr();a[4]?this.wd=new Zb(b,a[4]):this.wd=null;this.Ya= +[];this.ba=[];6===a.length?(f=a[5],this.Ya.length=f.length+1):this.Ya.length=1;break;case 21:this.we=this.b.G[a[1]];this.$g=a[2];a[3]?this.wd=new Zb(b,a[3]):this.wd=null;this.Yr=a[4];break;case 22:this.we=this.b.G[a[1]];this.we.hk(a[2]);this.ud=this.we.xm(a[2]);this.Db=this.b.Pe(a[3]);this.$g=a[4];a[5]?this.wd=new Zb(b,a[5]):this.wd=null;this.Ya=[];this.ba=[];7===a.length?(f=a[6],this.Ya.length=f.length+1):this.Ya.length=1;break;case 23:this.qj=a[1],this.Mf=null}this.fd.cw(this.we);4<=this.type&& +17>=this.type&&(this.first=new Zb(b,a[1]),this.second=new Zb(b,a[2]));if(f){var c,d;c=0;for(d=f.length;c=a||k<=-a)k%=a;0>k&&(k+=a);e.apply(m[k],f)};c.prototype.uu=function(b){var a=this.we,f=this.Ya,c=this.ba,d=this.wd,e=this.ud,k=this.Db,g=this.fd.He,m=a.ma(),E=m.lc();if(!E.length)if(m.ca.length)E=m.ca;else{this.$g?b.Hc(""):b.Fa(0);return}f[0]=b;b.lg=a;b=l();n(c,f,b);d&&(d.get(b),b.zb()&&(g=b.data,E=a.k));--q;c=E.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=E[g];E=0;a.S&&(E=g.type.Eg[a.ne]);k.apply(g.O[e+E],f)};c.prototype.Cu=function(b){var a=this.wd,f=this.we,c=this.Yr, +d=this.fd.He,e=f.ma(),k=e.lc();if(!k.length)if(e.ca.length)k=e.ca;else{this.$g?b.Hc(""):b.Fa(0);return}if(a){e=l();a.get(e);if(e.zb()){d=e.data;k=f.k;0!==k.length&&(d%=k.length,0>d&&(d+=k.length));d=f.Am(d);f=d.nb[c];Q(f)?b.Hc(f):b.fa(f);--q;return}--q}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;f.S&&(k=d.type.Xj[f.ne]);f=d.nb[c+k];Q(f)?b.Hc(f):b.fa(f)};c.prototype.Du=function(b){b.type=bc.xg;b.data=this.value};c.prototype.zu=function(b){b.type=bc.wg;b.data=this.value};c.prototype.Mu=function(b){b.type= +bc.String;b.data=this.value};c.prototype.Pu=function(b){this.first.get(b);b.zb()&&(b.data=-b.data)};c.prototype.ou=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data+=a.data,a.Kg()&&b.Ug());--q};c.prototype.Nu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data-=a.data,a.Kg()&&b.Ug());--q};c.prototype.Hu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data*=a.data,a.Kg()&&b.Ug());--q};c.prototype.wu=function(b){this.first.get(b); +var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data/=a.data,b.Ug());--q};c.prototype.Gu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data%=a.data,a.Kg()&&b.Ug());--q};c.prototype.Lu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data=Math.pow(b.data,a.data),a.Kg()&&b.Ug());--q};c.prototype.pu=function(b){this.first.get(b);var a=l();this.second.get(a);a.Ng()||b.Ng()?this.ru(b,a):this.qu(b,a);--q};c.prototype.ru=function(b,a){b.Ng()&& +a.Ng()?this.tu(b,a):this.su(b,a)};c.prototype.tu=function(b,a){b.data+=a.data};c.prototype.su=function(b,a){b.Ng()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Hc(b.data.toString()+a.data)};c.prototype.qu=function(b,a){b.Fa(b.data&&a.data?1:0)};c.prototype.Ku=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data||a.data?b.Fa(1):b.Fa(0));--q};c.prototype.vu=function(b){this.first.get(b);b.data?this.second.get(b):this.rl.get(b)};c.prototype.xu=function(b){this.first.get(b); +var a=l();this.second.get(a);b.Fa(b.data===a.data?1:0);--q};c.prototype.Iu=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.data!==a.data?1:0);--q};c.prototype.Eu=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.dataa.data?1:0);--q};c.prototype.Bu=function(b){this.first.get(b); +var a=l();this.second.get(a);b.Fa(b.data>=a.data?1:0);--q};c.prototype.yu=function(b){var a=this.Mf.Lh();fa(a)?b.fa(a):b.Hc(a)};Zb=c;m.prototype.Kg=function(){return this.type===bc.wg};m.prototype.zb=function(){return this.type===bc.xg||this.type===bc.wg};m.prototype.Ng=function(){return this.type===bc.String};m.prototype.Ug=function(){this.Kg()||(this.Ng()&&(this.data=parseFloat(this.data)),this.type=bc.wg)};m.prototype.Fa=function(b){this.type=bc.xg;this.data=Math.floor(b)};m.prototype.fa=function(b){this.type= +bc.wg;this.data=b};m.prototype.Hc=function(b){this.type=bc.String;this.data=b};m.prototype.Rw=function(b){fa(b)?(this.type=bc.wg,this.data=b):Q(b)?(this.type=bc.String,this.data=b.toString()):(this.type=bc.xg,this.data=0)};Yb=m;bc={xg:0,wg:1,String:2}})();function Y(c){this.b=c;this.wc=[]} +Y.prototype.Za=function(){var c={},l,n,m,k,q,b,a,f;c.waits=[];var p=c.waits,d;l=0;for(n=this.wc.length;l=f+d)return a.L.Every_lastTime=f+d,c>=a.L.Every_lastTime+.04&&(a.L.Every_lastTime=c),a.L.Every_seconds=b,!0;cb)){var a,f,c,d=this.b.Eb(),e;k.length?e=k.pop():e={ac:{},Ga:[]};e.im=!1;e.time=this.b.ob.T+b;e.yr="";e.co=!1;e.Cg=d.jc;e.hc=d.hc+1;b=0;for(a= +this.b.G.length;bd&&(a=d);b.fa(a)};n.prototype.Jf=function(b){b.fa(this.b.Jf)};n.prototype.ug=function(b){b.fa(this.b.ug)};n.prototype.time=function(b){b.fa(this.b.ob.T)};n.prototype.md=function(b){b.Fa(this.b.md)};n.prototype.Pk=function(b){b.Fa(this.b.Pk)}; +n.prototype.um=function(b){b.Fa(this.b.um)};n.prototype.q=function(b,a,f,c,d){b.fa(Ea(La(a,f,c,d)))};n.prototype.Zv=function(b){b.Fa(this.b.za.height)};n.prototype.left=function(b,a,f){b.Hc(Q(a)?a.substr(0,f):"")};n.prototype.right=function(b,a,f){b.Hc(Q(a)?a.substr(a.length-f):"")};n.prototype.replace=function(b,a,f,c){Q(a)&&Q(f)&&Q(c)?b.Hc(a.replace(new RegExp(db(f),"gi"),c)):b.Hc(Q(a)?a:"")};n.prototype.trim=function(b,a){b.Hc(Q(a)?a.trim():"")};n.prototype.Jt=function(b){var a=R(Math.random()* +(arguments.length-1));b.Rw(arguments[a+1])};n.prototype.cm=function(b){b.fa(this.b.cm/1E3)};n.prototype.Hk=function(b){b.fa(this.b.Hk)};m.Qa=new n;m.Fw=function(){var b,a,f,c,d,e,l=this.b.Eb();b=0;for(f=this.wc.length;bthis.b.ob.T)continue;l.jc=c.Cg;l.hc=c.hc;l.xb=0;for(a in c.ac)c.ac.hasOwnProperty(a)&&(d=this.b.G[parseInt(a,10)].ma(),e=c.ac[a],d.xa=e.gl,za(d.k,e.qe),d=e,T(d.qe),q.push(d));c.Cg.Dw();this.b.Yl(c.Ga);c.im=!0}a=b= +0;for(f=this.wc.length;ba.Va||b.top>a.Ua)},d.Bx=function(){this.Ha();var a=this.Oa,b=this.b.za;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Mx=function(a,b,d){var f=this.ma(), +e=f.lc();if(!e.length)return!1;var c=e[0],k=c,l=Ra(c.x,c.y,b,d),m,n,p;m=1;for(n=e.length;ml)l=p,k=c;f.Si(k);return!0},e.Zx=function(a){this.x!==a&&(this.x=a,this.F())},e.$x=function(a){this.y!==a&&(this.y=a,this.F())},e.bt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},e.ct=function(a,b){var d=a.pv(this);if(d){var f;d.Ih?(f=d.Ih(b,!0),d=d.Ih(b,!1)):(f=d.x,d=d.y);if(this.x!==f||this.y!==d)this.x=f,this.y=d,this.F()}},e.Gx= +function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.F())},e.Fx=function(a,b){0!==b&&(this.x+=Math.cos(X(a))*b,this.y+=Math.sin(X(a))*b,this.F())},v.qt=function(a){a.fa(this.x)},v.tt=function(a){a.fa(this.y)},v.Jf=function(a){a.fa(this.b.Pf(this))});q&&(d.ux=function(a,b){return cc(this.width,a,b)},d.rx=function(a,b){return cc(this.height,a,b)},e.Po=function(a){this.width!==a&&(this.width=a,this.F())},e.Xs=function(a){this.height!==a&&(this.height=a,this.F())},e.Yx=function(a, +b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},v.nt=function(a){a.fa(this.width)},v.us=function(a){a.fa(this.height)},v.mx=function(a){this.Ha();a.fa(this.Oa.left)},v.ox=function(a){this.Ha();a.fa(this.Oa.top)},v.nx=function(a){this.Ha();a.fa(this.Oa.right)},v.kx=function(a){this.Ha();a.fa(this.Oa.bottom)});b&&(d.Co=function(a,b){return Ma(this.q,X(b))<=X(a)},d.ys=function(a){return Pa(this.q,X(a))},d.vs=function(a,b){var d=Ka(a),f=Ka(b),e=Ga(this.q);return Pa(f,d)?Pa(e, +d)&&!Pa(e,f):!(!Pa(e,d)&&Pa(e,f))},e.Ux=function(a){a=X(Fa(a));isNaN(a)||this.q===a||(this.q=a,this.F())},e.Qx=function(a){0===a||isNaN(a)||(this.q+=X(a),this.q=Ga(this.q),this.F())},e.Rx=function(a){0===a||isNaN(a)||(this.q-=X(a),this.q=Ga(this.q),this.F())},e.Sx=function(a,b){var d=Na(this.q,X(b),X(a));isNaN(d)||this.q===d||(this.q=d,this.F())},e.Tx=function(a,b,d){a=Na(this.q,Math.atan2(d-this.y,b-this.x),X(a));isNaN(a)||this.q===a||(this.q=a,this.F())},e.et=function(a,b){var d=Math.atan2(b-this.y, +a-this.x);isNaN(d)||this.q===d||(this.q=d,this.F())},v.jx=function(a){a.fa(Ha(this.q))});m||(d.hs=function(a,b,d){return cc(this.nb[a],b,d)},d.ws=function(a){return this.nb[a]},d.Nx=function(a,b){var d=this.ma(),f=d.lc();if(!f.length)return!1;var e=f[0],c=e,k=e.nb[b],l,m,n;l=1;for(m=f.length;lk)k=n,c=e;d.Si(c);return!0},d.Lx=function(a){var b,d,f,e,c;if(this.b.Hh().ok){c=this.ma();if(c.xa)for(c.xa=!1,T(c.k),T(c.ca),f=this.k,b=0,d=f.length;ba?a=0:1e.n.index||f.n.index===e.n.index&&f.Td()>e.Td())e=f}else if(f.n.indexd)){var f=1===a;this.Qe[d]!==f&&(this.Qe[d]=f,this.Md(),this.b.Ca=!0)}}},e.Wx=function(a,b,d){if(this.b.H){var f=this.type.zm(a);0>f||(a=this.type.X[f],f=this.Xa[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.H.tv(a.kb,b)&&(d/=100),f[b]!==d&&(f[b]=d,a.Ib&&(this.b.Ca=!0))))}})};Ib=function(){this.Ul=this.Ql=!0;this.type.Aj=!0;this.b.Ca=!0;var c,n,m=this.Rl;c=0;for(n= +m.length;cm;case 5:return c>=m;default:return!1}}})();var lc={};function pc(c){this.b=c} +(function(){function c(a){0>a&&(a=0);1a&&(a=.01);this.Yk.gain.value=a;this.Xk.gain.value=Math.pow(1/a,.6)*b};E.prototype.shape=function(a,b,d){var f=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=ac;++c)e=c/32768,e=this.shape(e,d,f),this.Pj[32768+c]=e,this.Pj[32768- +c-1]=-e};E.prototype.Wc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};E.prototype.remove=function(){this.qa.disconnect();this.Yk.disconnect();this.Dl.disconnect();this.Xk.disconnect();this.W.disconnect();this.U.disconnect()};E.prototype.Mc=function(){return this.qa};A.prototype.Wc=function(a){this.ra.disconnect();this.ra.connect(a)};A.prototype.remove=function(){this.ra.disconnect()};A.prototype.Mc=function(){return this.ra};h.prototype.Ea=function(){this.ra.getFloatFrequencyData(this.Wu); +this.ra.getByteTimeDomainData(this.ur);for(var a=this.ra.fftSize,b=0,d=this.Ri=0,f=0;bf&&(f=-f),this.Rithis.wf.length||this.wf.shift(),this.wf.push(a),this.uk=this.V.x,this.vk=this.V.y)};r.prototype.Cp=function(){if(!this.wf.length)return 0;var a,b,d=0;a=0;for(b=this.wf.length;ab&&(d=b);return d};C.prototype.$h=function(){return!this.Ac&&!this.Sd&&!this.tc&&!this.Tf()}; +C.prototype.Sw=function(){return!this.Sd&&!this.tc&&!this.Tf()};C.prototype.Zw=function(){var a=this.volume*J;isFinite(a)||(a=0);switch(this.ea){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.ea?this.lb.gain.value=a*this.Vg:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};C.prototype.Uj=function(a){switch(this.ea){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.ea?(this.Vg=a?0:1,this.lb.gain.value= +J*this.volume*this.Vg):this.u.muted!==!!a&&(this.u.muted=!!a)}};C.prototype.Nw=function(){this.Lg=!0;this.Uj(this.Lg||this.ci)};C.prototype.or=function(a){this.ci=!!a;this.Uj(this.Lg||this.ci)};C.prototype.yl=function(){var a=this.playbackRate;this.Ig&&(a*=z.ug);switch(this.ea){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.ea?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};C.prototype.Pw=function(a){switch(this.ea){case 0:a? +this.$h()?(this.Qc=!0,this.u.pause()):this.Qc=!1:this.Qc&&(this.u.play(),this.Qc=!1);break;case 1:a?this.$h()?(this.Qc=!0,1===this.buffer.ea?(this.sc=this.Bm(!0),this.Xd&&(this.sc=this.sc%this.Qf()),b(this.u)):this.u.pause()):this.Qc=!1:this.Qc&&(1===this.buffer.ea?(this.u=t.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.lb),this.u.onended=this.zn,this.xj=this.u,this.u.loop=this.Xd,this.lb.gain.value=J*this.volume*this.Vg,this.yl(),this.startTime=(this.Ig?z.ob.T:z.Me.T)-this.sc/ +(this.playbackRate||.001),q(this.u,this.sc,this.Qf())):this.u.play(),this.Qc=!1);break;case 2:a?this.$h()?(this.u.pause(),this.Qc=!0):this.Qc=!1:this.Qc&&(this.Qc=!1,this.u.play())}};F.Y=function(a){this.type=a;z=this.b=a.b;M=this;this.$b=null;this.vi=-600;this.b.bi&&(lb=!0);!(this.b.ei||this.b.pk&&(this.b.Uh||this.b.qk))||this.b.Vh||this.b.Da||this.b.Qm||lb||(Sa=!0);t=null;"undefined"!==typeof AudioContext?(B=1,t=new AudioContext):"undefined"!==typeof webkitAudioContext&&(B=1,t=new webkitAudioContext); +this.b.ei&&t&&(t.close&&t.close(),"undefined"!==typeof AudioContext?t=new AudioContext:"undefined"!==typeof webkitAudioContext&&(t=new webkitAudioContext));Sa&&document.addEventListener("touchend",function(){if(!zc&&t){if(!pa&&t.createBuffer){var a=t.createBuffer(1,220,22050),b=t.createBufferSource();b.buffer=a;b.connect(t.destination);k(b)}zc=!0}var d;if(Sa){if(!U)for(a=0,b=Ta.length;a"!==b&&(a.Uk=b,a.sn=f,a.xo=e),null;k=new C(a,b);w.push(k);return k};var Oa=[];P.prototype.wj=function(a){return kb(ga,a)};F.D=new P;N.prototype.Play=function(a,b,d,f){!U&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1< +d&&(d=1),u=this.vp(this.b.rm+a[0]+(D?".ogg":".m4a"),f,a[1],0!==b,d))&&(u.Zn(!1),u.play(0!==b,d,0,this.Cq),this.Cq=0)};N.prototype.it=function(){var a,b;a=0;for(b=w.length;a=a||0>=f||m>=l||b>=d?(this.kc||jQuery(this.I).hide(),this.kc=!0):(1>m&&(m=1),1>b&&(b=1),a>=l&&(a=l-1),f>=d&&(f=d-1),l=window.innerWidth,d=window.innerHeight, +c||this.li!==m||this.oi!==b||this.ni!==a||this.ji!==f||this.qi!==l||this.pi!==d?(this.li=m,this.oi=b,this.ni=a,this.ji=f,this.qi=l,this.pi=d,this.kc&&(jQuery(this.I).show(),this.kc=!1),c=Math.round(m)+jQuery(this.b.canvas).offset().left,l=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.I).css("position","absolute"),jQuery(this.I).offset({left:c,top:l}),jQuery(this.I).width(Math.round(a-m)),jQuery(this.I).height(Math.round(f-b)),this.At&&jQuery(this.I).css("font-size",this.n.mc(!0)/this.b.devicePixelRatio- +.2+"em")):this.kc&&(jQuery(this.I).show(),this.kc=!1))}};m.$c=function(){};m.Yb=function(){};c.prototype.uj=function(){return!0};n.D=new c;l.prototype.No=function(c){this.b.Da||(this.Hg?this.hi.nodeValue=c:this.I.value=c)};l.prototype.Il=function(c){this.b.Da||(this.visible=0!==c)};n.J=new l;n.Qa=new function(){}})();function rc(c){this.b=c} +(function(){function c(){}var l=rc.prototype;l.ka=function(c){this.Ja=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c){this.type=c;this.b=c.b;this.Rg=Array(256);this.oj=Array(256);this.Ke=0};var n=l.Y.prototype;n.N=function(){var c=this;this.b.Da||(jQuery(document).keydown(function(m){c.Oi(m)}),jQuery(document).keyup(function(m){c.Pi(m)}))};var m=[32,33,34,35,36,37,38,39,40,44];n.Oi=function(c){var l=!1;window!=window.top&&-1c;++c)if(this.Rg[c]){this.Rg[c]=!1;this.Ke=c;this.b.trigger(rc.prototype.D.Eo,this);var m=this.b.trigger(rc.prototype.D.Ho,this),b=this.b.trigger(rc.prototype.D.Go,this);if(m||b)this.oj[c]=!0}};n.Za=function(){return{triggerKey:this.Ke}};n.hb=function(c){this.Ke=c.triggerKey};c.prototype.zs=function(c){return this.Rg[c]};c.prototype.Fo=function(c){return c===this.Ke};c.prototype.Gs=function(){return!0}; +c.prototype.Eo=function(){return!0};c.prototype.Ho=function(c){return c===this.Ke};c.prototype.Ms=function(c){return c===this.Ke};c.prototype.Go=function(c){return c===this.Ke};l.D=new c;l.J=new function(){};l.Qa=new function(){}})();function Z(c){this.b=c} +(function(){function c(){if(0===this.fm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.eh?b.drawImage(this.ya,this.Wg,this.Xg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ya,0,0,this.width,this.height);this.fm=a.toDataURL("image/png")}return this.fm}function l(){}function n(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function m(a,b){return athis.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);var a=this.Pa.frames[this.M];this.la.cj(a.Vk);this.nc=a.nc;this.oc=a.oc;this.Bh=this.Pa.speed;this.Ye=this.Pa.Qn;this.Fc?this.Od.reset():this.Od=new cb;this.oe=this.Od.T;this.Af=!0;this.he=0;this.zf=!0;this.Jj=this.So="";this.bp=0;this.Xl=-1;this.type.mn();var b,d,f,c, +e,k,g,a=0;for(b=this.type.ic.length;athis.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);this.Bh=a.cas;this.oe=a.fs;this.he=a.ar;this.Od.reset();this.Od.T=a.at;this.Af=a.hasOwnProperty("ap")?a.ap:!0;this.zf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ye=a.rt:this.Ye=this.Pa.Qn;this.Xc=this.Pa.frames[this.M];this.Nj=this.Xc.Na;this.la.cj(this.Xc.Vk);this.nc= +this.Xc.nc;this.oc=this.Xc.oc};e.Ol=function(a){this.M=a?0:this.Pa.frames.length-1;this.Af=!1;this.So=this.Pa.name;this.Nm=!0;this.b.trigger(Z.prototype.D.Fs,this);this.b.trigger(Z.prototype.D.Es,this);this.Nm=!1;this.he=0};e.Pl=function(){return this.Od.T};e.Ea=function(){this.Od.add(this.b.Pf(this));this.Jj.length&&this.ip();0<=this.Xl&&this.Qt();var a=this.Od.T,b=this.Pa,d=b.frames[this.M],f=d.duration/this.Bh;this.Af&&a>=this.oe+f&&(this.zf?this.M++:this.M--,this.oe+=f,this.M>=b.frames.length&& +(b.Vq?(this.zf=!1,this.M=b.frames.length-2):b.loop?this.M=this.Ye:(this.he++,this.he>=b.Pn?this.Ol(!1):this.M=this.Ye)),0>this.M&&(b.Vq?(this.M=1,this.zf=!0,b.loop||(this.he++,this.he>=b.Pn&&this.Ol(!0))):b.loop?this.M=this.Ye:(this.he++,this.he>=b.Pn?this.Ol(!0):this.M=this.Ye)),0>this.M?this.M=0:this.M>=b.frames.length&&(this.M=b.frames.length-1),a>this.oe+b.frames[this.M].duration/this.Bh&&(this.oe=a),a=b.frames[this.M],this.yg(d,a),this.b.Ca=!0)};e.up=function(a){var b,d,f;b=0;for(d=this.type.ic.length;b< +d;b++)if(f=this.type.ic[b],kb(f.name,a))return f;return null};e.Zu=function(a){var b,d,f;b=0;for(d=this.type.ic.length;bthis.M&&(this.M=0),this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1),1===this.bp&&(this.M=0),this.Af=!0,this.oe=this.Od.T,this.zf=!0,this.yg(a,this.Pa.frames[this.M]), +this.b.Ca=!0)};e.Qt=function(){var a=this.Pa.frames[this.M],b=this.M;this.M=R(this.Xl);0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);b!==this.M&&(this.yg(a,this.Pa.frames[this.M]),this.oe=this.Od.T,this.b.Ca=!0);this.Xl=-1};e.yg=function(a,b){var d=a.width,f=a.height,c=b.width,e=b.height;d!=c&&(this.width*=c/d);f!=e&&(this.height*=e/f);this.nc=b.nc;this.oc=b.oc;this.la.cj(b.Vk);this.F();this.Xc=b;this.Nj=b.Na;d=0;for(f=this.O.length;dc||c>=f.length)return b?this.x:this.y;var e=(f[c][1]-d.nc)*this.width,f=f[c][2],f=(f-d.oc)*this.height,d=Math.cos(this.q);c=Math.sin(this.q);var k=e*d-f*c,f=f*d+e*c,e=k+this.x,f=f+this.y;return b?e:f};var v=[],g=-2,I=[];l.prototype.Is=function(a){if(!a)return!1;var d=this.b,f=d.Hh(), +c=f.type,e=null;f.L.collmemory?e=f.L.collmemory:(e={},f.L.collmemory=e);f.L.spriteCreatedDestroyCallback||(f.L.spriteCreatedDestroyCallback=!0,d.yj(function(a){var b=f.L.collmemory;a=a.uid;var d,c;for(d in b)b.hasOwnProperty(d)&&(c=b[d],c[0]===a||c[1]===a)&&(n(b[d]),delete b[d])}));var m=c.ma(),l=a.ma(),m=m.lc(),p,v,E,A,K,B,t,W=this.b.md,w=W-1,u=d.Eb().jc;for(v=0;v=this.Vc.left&&this.type.vh.update(this,this.Vc,null),this.Vc.set(0,0,-1,-1)))};f.J=new a;f.Qa=new function(){}})();function sc(c){this.b=c} +(function(){function c(){return a.length?a.pop():{}}function l(b){var c,d;c=0;for(d=b.length;ca.Va||b.top>a.Ua)this.b.H.deleteTexture(this.Cc),this.Yd=this.kg=this.Cc=null}};q.Cd=function(){this.Yd=this.kg=null;this.b.H&& +this.Cc&&this.b.H.deleteTexture(this.Cc);this.Cc=null};q.Pl=function(){this.font=this.ck+" "+this.Vi.toString()+"pt "+this.Dg;this.tg=!0;this.b.Ca=!0};q.$c=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.n.mc(),a.save(),a.scale(d,d));if(this.tg||this.width!==this.gn)this.type.Ja.ot(this.text,this.kf,a,this.width,this.Ao),this.tg=!1,this.gn=this.width;this.Ha();var d=b?0:this.Mb.ub,c=b?0:this.Mb.wb;this.b.Fd&&(d=d+.5|0,c= +c+.5|0);0===this.q||b||(a.save(),a.translate(d,c),a.rotate(this.q),c=d=0);var k=c+this.height,g=this.Kn,g=g+this.jn,m,l;1===this.Al?c+=Math.max(this.height/2-this.kf.length*g/2,0):2===this.Al&&(c+=Math.max(this.height-this.kf.length*g-2,0));for(l=0;l=k-g);l++);(0!==this.q||b)&&a.restore();this.ti=this.b.md};q.Yb=function(a){if(!(1>this.width|| +1>this.height)){var b=this.tg||this.Bq;this.Bq=!1;var d=this.n.mc(),c=this.n.ab(),k=this.tf,g=d*this.width,m=d*this.height,l=Math.ceil(g),n=Math.ceil(m),h=this.b.R/2,q=this.b.P/2;this.kg||(this.Yd=document.createElement("canvas"),this.Yd.width=l,this.Yd.height=n,this.yk=l,this.xk=n,b=!0,this.kg=this.Yd.getContext("2d"));if(l!==this.yk||n!==this.xk)this.Yd.width=l,this.Yd.height=n,this.Cc&&(a.deleteTexture(this.Cc),this.Cc=null),b=!0;b&&(this.kg.clearRect(0,0,l,n),this.$c(this.kg,!0),this.Cc||(this.Cc= +a.Kc(l,n,this.b.da,this.b.Xf)),a.gx(this.Yd,this.Cc,this.b.Xf));this.yk=l;this.xk=n;a.Gc(this.Cc);a.ng(this.opacity);a.hd();a.translate(-h,-q);a.Rc();var x=this.Mb,b=this.n.wa(x.ub,x.wb,!0,!0),h=this.n.wa(x.ub,x.wb,!1,!0),q=this.n.wa(x.Wb,x.Xb,!0,!0),C=this.n.wa(x.Wb,x.Xb,!1,!0),G=this.n.wa(x.Nb,x.Ob,!0,!0),P=this.n.wa(x.Nb,x.Ob,!1,!0),N=this.n.wa(x.Kb,x.Lb,!0,!0),x=this.n.wa(x.Kb,x.Lb,!1,!0);if(this.b.Fd||0===this.q&&0===c)var F=(b+.5|0)-b,z=(h+.5|0)-h,b=b+F,h=h+z,q=q+F,C=C+z,G=G+F,P=P+z,N=N+F,x= +x+z;0===this.q&&0===c?(q=b+l,C=h,G=q,P=h+n,N=b,x=P,k.right=1,k.bottom=1):(k.right=g/l,k.bottom=m/n);a.ae(b,h,q,C,G,P,N,x,k);a.hd();a.scale(d,d);a.el(-this.n.ab());a.translate((this.n.La+this.n.Va)/-2,(this.n.Ma+this.n.Ua)/-2);a.Rc();this.ti=this.b.md}};var b=[];k.kt=function(a){T(b);for(var c="",d,e=0;e=e)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=d.measureText(a).width;if(g<=e){l(b);b.push(c());b[0].text=a;b[0].width=g;return}}this.pt(a,b,d,e,k)}else l(b)};k.pt=function(f,k,d,e,m){m&&(this.kt(f),f=b);var g="",l,q,A,h=0;for(A=0;A=k.length&&k.push(c()),g=n(g),q=k[h],q.text=g,q.width=d.measureText(g).width,h++,g=""):(l=g,g+=f[A],q=d.measureText(g).width, +q>=e&&(h>=k.length&&k.push(c()),l=n(l),q=k[h],q.text=l,q.width=d.measureText(l).width,h++,g=f[A],m||" "!==g||(g="")));g.length&&(h>=k.length&&k.push(c()),g=n(g),q=k[h],q.text=g,q.width=d.measureText(g).width,h++);for(A=h;Aa&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.tg=!0,this.b.Ca=!0)};k.J=new m;k.Qa=new function(){}})();function tc(c){this.b=c} +(function(){var c=tc.prototype;c.ka=function(c){this.Ja=c;this.b=c.b};var l=c.ka.prototype;l.N=function(){this.S||(this.ya=new Image,this.ya.dp=this.jo,this.b.Zr(this.ya,this.io),this.Na=this.pattern=null)};l.Qk=function(){this.S||(this.Na=null)};l.yn=function(){if(!this.S&&this.k.length){this.Na||(this.Na=this.b.H.Fk(this.ya,!0,this.b.da,this.ko));var c,m;c=0;for(m=this.k.length;ca&&(a+=this.ya.width);0>f&&(f+=this.ya.height);c.translate(m,k);c.rotate(this.q);c.translate(a,f);c.fillRect(l-a,b-f,this.width,this.height);c.restore()};l.If=function(c){this.Yb(c)}; +l.Yb=function(c){c.Gc(this.Na);c.ng(this.opacity);var m=this.tf;m.right=this.width/this.ya.width;m.bottom=this.height/this.ya.height;var k=this.Mb;if(this.b.Fd){var l=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.ae(k.ub+l,k.wb+b,k.Wb+l,k.Xb+b,k.Nb+l,k.Ob+b,k.Kb+l,k.Lb+b,m)}else c.ae(k.ub,k.wb,k.Wb,k.Xb,k.Nb,k.Ob,k.Kb,k.Lb,m)};c.D=new function(){};c.J=new function(){};c.Qa=new function(){}})();function uc(c){this.b=c} +(function(){function c(){}function l(){}var n=uc.prototype;n.ka=function(c){this.Ja=c;this.b=c.b};n.ka.prototype.N=function(){};n.Y=function(c){this.type=c;this.b=c.b};var m=n.Y.prototype;m.N=function(){this.b.Da?y("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.I=document.createElement("progress"),this.value=this.C[0],this.max=this.C[1],0=a||0>=f||m>=l||b>=d?(this.kc||jQuery(this.I).hide(),this.kc=!0):(1>m&&(m=1),1>b&&(b=1),a>=l&&(a=l-1),f>=d&&(f=d-1),l=window.innerWidth,d=window.innerHeight,c||this.li!==m||this.oi!==b||this.ni!==a||this.ji!==f||this.qi!==l||this.pi!==d?(this.li=m,this.oi=b,this.ni=a,this.ji=f,this.qi=l,this.pi=d,this.kc&&(jQuery(this.I).show(),this.kc=!1),c=Math.round(m)+ +jQuery(this.b.canvas).offset().left,l=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.I).css("position","absolute"),jQuery(this.I).offset({left:c,top:l}),jQuery(this.I).width(Math.round(a-m)),jQuery(this.I).height(Math.round(f-b))):this.kc&&(jQuery(this.I).show(),this.kc=!1))}};m.$c=function(){};m.Yb=function(){};c.prototype.uj=function(){return!0};n.D=new c;l.prototype.Il=function(c){this.b.Da||(this.visible=0!==c)};l.prototype.dt=function(c){this.b.Da||(this.value=c,this.I.max=this.max, +this.I.value=this.value)};n.J=new l;n.Qa=new function(){}})();function vc(c){this.b=c} +(function(){function c(){}var l=vc.prototype;l.ka=function(c){this.behavior=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=l.Y.prototype;n.N=function(){var c=this.C[0];this.Ba=this.C[1];this.Zb=this.C[2];this.Dt=0!==this.C[3];this.Xn=0!==this.C[4];this.A=Math.cos(this.j.q)*c;this.B=Math.sin(this.j.q)*c;this.zk=this.j.x;this.Ak=this.j.y;this.cd=this.j.q;this.tl=0;this.enabled=0!==this.C[5]};n.Za=function(){return{acc:this.Ba, +g:this.Zb,dx:this.A,dy:this.B,lx:this.zk,ly:this.Ak,lka:this.cd,t:this.tl,e:this.enabled}};n.hb=function(c){this.Ba=c.acc;this.Zb=c.g;this.A=c.dx;this.B=c.dy;this.zk=c.lx;this.Ak=c.ly;this.cd=c.lka;this.tl=c.t;this.enabled=c.e};n.Ea=function(){if(this.enabled){var c=this.b.Pf(this.j),k,l;this.j.q!==this.cd&&(this.Xn&&(k=Ra(0,0,this.A,this.B),this.A=Math.cos(this.j.q)*k,this.B=Math.sin(this.j.q)*k),this.cd=this.j.q);0!==this.Ba&&(k=Ra(0,0,this.A,this.B),l=0===this.A&&0===this.B?this.j.q:La(0,0,this.A, +this.B),k+=this.Ba*c,0>k&&(k=0),this.A=Math.cos(l)*k,this.B=Math.sin(l)*k);0!==this.Zb&&(this.B+=this.Zb*c);this.zk=this.j.x;this.Ak=this.j.y;if(0!==this.A||0!==this.B)if(this.j.x+=this.A*c,this.j.y+=this.B*c,this.tl+=Ra(0,0,this.A*c,this.B*c),this.Xn&&(this.j.q=La(0,0,this.A,this.B),this.j.F(),this.cd=this.j.q),this.j.F(),this.Dt&&(k=this.b.Ka(this.j)))this.b.be(this.j,k),k=Ra(0,0,this.A,this.B),l=this.b.Gt(this.j,this.zk,this.Ak),this.A=Math.cos(l)*k,this.B=Math.sin(l)*k,this.j.x+=this.A*c,this.j.y+= +this.B*c,this.j.F(),this.Xn&&(this.cd=this.j.q=l,this.j.F()),this.b.Pc(this.j,this.A/k,this.B/k,Math.max(2.5*k*c,30))||this.b.Jn(this.j,100)}};l.D=new function(){};c.prototype.Hl=function(c){this.Ba=c};c.prototype.Lo=function(c){this.Zb=c};l.J=new c;l.Qa=new function(){}})();function wc(c){this.b=c} +(function(){function c(){}var l=wc.prototype;l.ka=function(c){this.behavior=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b;this.Ge=this.Fe=this.ll=this.ml=this.pe=this.Jd=this.Bd=this.Dh=this.nj=!1;this.cn=this.bn=this.an=this.dn=-1;this.B=this.A=0};var n=l.Y.prototype;n.N=function(){this.ed=this.C[0];this.Ba=this.C[1];this.Qb=this.C[2];this.jm=this.C[3];this.Nl=this.C[4];this.hm=1===this.C[5];this.enabled=0!==this.C[6];this.hm&& +!this.b.Da&&(jQuery(document).keydown(function(c){return function(k){c.Oi(k)}}(this)),jQuery(document).keyup(function(c){return function(k){c.Pi(k)}}(this)))};n.Za=function(){return{dx:this.A,dy:this.B,enabled:this.enabled,maxspeed:this.ed,acc:this.Ba,dec:this.Qb,ignoreInput:this.pe}};n.hb=function(c){this.A=c.dx;this.B=c.dy;this.enabled=c.enabled;this.ed=c.maxspeed;this.Ba=c.acc;this.Qb=c.dec;this.pe=c.ignoreInput;this.Ge=this.Fe=this.ll=this.ml=this.Jd=this.Bd=this.Dh=this.nj=!1;this.cn=this.bn= +this.an=this.dn=-1};n.Oi=function(c){var k=this.b.md;switch(c.which){case 37:c.preventDefault();this.bnthis.A?(this.A+=this.Qb*c,0this.A&&(this.A=0)));b==a&&(0>this.B?(this.B+=this.Qb*c,0this.B&&(this.B=0)));k&&!l&&(this.A=0this.A?this.A+(this.Ba+this.Qb)*c:this.A+this.Ba*c);b&&!a&&(this.B=0this.B?this.B+(this.Ba+this.Qb)*c:this.B+this.Ba*c);if(0!==this.A||0!==this.B){Math.sqrt(this.A*this.A+this.B*this.B)>this.ed&& +(f=Math.atan2(this.B,this.A),this.A=this.ed*Math.cos(f),this.B=this.ed*Math.sin(f));l=this.j.x;b=this.j.y;k=this.j.q;this.j.x+=this.A*c;this.j.F();if(f=this.b.Ka(this.j))this.j.x=l,this.A=0,this.j.F(),this.b.be(this.j,f);this.j.y+=this.B*c;this.j.F();if(f=this.b.Ka(this.j))this.j.y=b,this.B=0,this.j.F(),this.b.be(this.j,f);c=jb(this.A);f=jb(this.B);if(0!==c||0!==f)1===this.Nl?this.j.q=Ka(90*Math.round(Ea(Math.atan2(f,c))/90)):2===this.Nl?this.j.q=Ka(45*Math.round(Ea(Math.atan2(f,c))/45)):3===this.Nl&& +(this.j.q=Math.atan2(f,c));this.j.F();this.j.q!=k&&(f=this.b.Ka(this.j))&&(this.j.q=k,this.j.F(),this.b.be(this.j,f))}}};l.D=new function(){};c.prototype.Mo=function(c){this.pe=c};c.prototype.Hl=function(c){this.Ba=c;0>this.Ba&&(this.Ba=0)};c.prototype.Jl=function(c){switch(c){case 0:this.Fe=!0;break;case 1:this.Ge=!0;break;case 2:this.ml=!0;break;case 3:this.ll=!0}};c.prototype.Oo=function(c){this.B=c};l.J=new c;l.Qa=new function(){}})();function xc(c){this.b=c} +(function(){function c(){}function l(){}var n=xc.prototype;n.ka=function(a){this.behavior=a;this.b=a.b};var m=n.ka.prototype;m.N=function(){this.pf=[]};m.Tu=function(a){var b,d,c;b=0;for(d=a.O.length;bthis.j.width&&(l+=Math.PI);if(Ra(d,c,a,b)>this.Mn||Ma(l,La(d,c,a,b))>this.$l/2)return!1;var g,m;q.set(d,c,a,b);q.normalize();if(0===this.ew)for(this.Wr? +this.b.Bp(this.j.n,q,k):(l=this.b.eo)&&Aa(k,l.Ji.nd()),l=0,g=k.length;l +this.sf||4===this.mode&&lthis.Zb&&(this.Ra*=-1,this.Sa*=-1,this.Zb=Math.abs(this.Zb))};m.N=function(){this.ed=this.C[0];this.Ba=this.C[1];this.Qb=this.C[2];this.gi=this.C[3];this.fk=this.Zb=this.C[4];this.ig=this.C[5];this.lm=0!==this.C[6];this.Ym=this.C[7]/1E3;this.hm=1===this.C[8];this.enabled=0!==this.C[9];this.nh=!1;this.oh=this.b.ge(this.j);this.ln=-1;this.sg=0;this.df=X(90); +this.wl();var c=this;this.hm&&!this.b.Da&&(jQuery(document).keydown(function(l){c.Oi(l)}),jQuery(document).keyup(function(l){c.Pi(l)}));this.Fc||(this.Hi=function(l){c.Ni(l)});this.b.yj(this.Hi);this.j.L.isPlatformBehavior=!0};m.Za=function(){return{ii:this.pe,lfx:this.$f,lfy:this.ag,lfo:this.Tb?this.Tb.uid:-1,am:this.sd,en:this.enabled,fall:this.cf,ft:this.ak,dx:this.A,dy:this.B,ms:this.ed,acc:this.Ba,dec:this.Qb,js:this.gi,g:this.Zb,g1:this.fk,mf:this.ig,wof:this.nh,woj:this.oh?this.oh.uid:-1,ga:this.df, +edj:this.lm,cdj:this.uh,dj:this.Ch,sus:this.Ym}};m.hb=function(c){this.pe=c.ii;this.$f=c.lfx;this.ag=c.lfy;this.kn=c.lfo;this.sd=c.am;this.enabled=c.en;this.cf=c.fall;this.ak=c.ft;this.A=c.dx;this.B=c.dy;this.ed=c.ms;this.Ba=c.acc;this.Qb=c.dec;this.gi=c.js;this.Zb=c.g;this.fk=c.g1;this.ig=c.mf;this.nh=c.wof;this.ln=c.woj;this.df=c.ga;this.lm=c.edj;this.uh=c.cdj;this.Ch=c.dj;this.Ym=c.sus;this.gj=this.Ge=this.Fe=this.Pg=this.Qg=this.Jd=this.Bd=!1;this.sg=0;this.wl()};m.qd=function(){-1===this.kn? +this.Tb=null:this.Tb=this.b.Rf(this.kn);-1===this.ln?this.oh=null:this.oh=this.b.Rf(this.ln)};m.Ni=function(c){this.Tb==c&&(this.Tb=null)};m.Cd=function(){this.Tb=null;this.b.fr(this.Hi)};m.Oi=function(c){switch(c.which){case 38:c.preventDefault();this.Qg=!0;break;case 37:c.preventDefault();this.Bd=!0;break;case 39:c.preventDefault(),this.Jd=!0}};m.Pi=function(c){switch(c.which){case 38:c.preventDefault();this.Pg=this.Qg=!1;break;case 37:c.preventDefault();this.Bd=!1;break;case 39:c.preventDefault(), +this.Jd=!1}};m.qf=function(){this.Qg=this.Jd=this.Bd=!1};m.Pl=function(){return 0>this.Zb?-1:1};m.Rp=function(){var c=null,l=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Ra;this.j.y+=this.Sa;this.j.F();if(this.Tb&&this.b.ec(this.j,this.Tb))return this.j.x=b,this.j.y=a,this.j.F(),this.Tb;(c=this.b.Ka(this.j))||0!==this.cf||(l=this.b.ge(this.j,!0));this.j.x=b;this.j.y=a;this.j.F();if(c){if(this.b.ec(this.j,c))return null;this.bk=!1;return c}if(l&&l.length){a=c=0;for(b=l.length;cthis.ig&&(this.B=this.ig)),E&&(this.Pg=!0));this.nh=!!A;I==a&&(0>this.A?(this.A+=this.Qb*c,0this.A&&(this.A=0)));I&&!a&&(this.A=0this.A?this.A+(this.Ba+this.Qb)*c:this.A+this.Ba*c);this.A>this.ed?this.A=this.ed:this.A<-this.ed&&(this.A=-this.ed);I=!1;0!==this.A&&(n=this.j.x,g=this.j.y,l=this.A*c*this.Be,b=this.A*c*this.Ce,this.j.x+= +this.Be*(1this.A?1:-1),this.Ce*(0>this.A?1: +-1),l,!1)?!A||f||this.bk||(n=this.j.x,g=this.j.y,this.j.x+=this.Ra,this.j.y+=this.Sa,this.b.Ka(this.j)?this.b.Pc(this.j,-this.Ra,-this.Sa,3,!1)||(this.j.x=n,this.j.y=g,this.j.F()):(this.j.x=n,this.j.y=g,this.j.F())):(this.j.x=n,this.j.y=g,this.j.F()),f||(this.A=0)):!m&&!E&&Math.abs(this.B)this.B?1:-1),this.Sa*(0>this.B?1:-1),l,f,b)?(this.Tb=b,this.$f=b.x,this.ag=b.y,(this.bk=f)&&(I=!0),this.B=0):(this.j.x=n,this.j.y=g,this.j.F(),this.nh=!0,f||(this.B=0)))}3!==this.sd&&0this.Ba&&(this.Ba=0)};l.prototype.Lo=function(c){this.fk!==c&&(this.Zb=c,this.wl(),this.b.Ka(this.j)&&(this.b.Pc(this.j,this.Ra,this.Sa,10),this.j.x+=2*this.Ra,this.j.y+=2*this.Sa,this.j.F()),this.Tb=null)};l.prototype.Zs=function(c){this.ig=c;0>this.ig&&(this.ig=0)};l.prototype.Jl=function(c){switch(c){case 0:this.Fe= +!0;break;case 1:this.Ge=!0;break;case 2:this.gj=!0}};l.prototype.Oo=function(c){this.B=c};l.prototype.Ws=function(c){c=X(c);c=Ga(c);this.df!==c&&(this.df=c,this.wl(),this.Tb=null)};l.prototype.qs=function(){var c=this.j.x,l=this.j.y;this.j.x+=this.Ra;this.j.y+=this.Sa;this.j.F();var b=this.b.ge(this.j,!1);this.j.x=c;this.j.y=l;this.j.F();b&&(this.cf=3,this.Tb=null)};n.J=new l;n.Qa=new function(){}})();function Bc(c){this.b=c} +(function(){var c=Bc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,b){this.type=c;this.behavior=c.behavior;this.j=b;this.b=c.b;this.mb=0};var l=c.Y.prototype,n=2*Math.PI,m=Math.PI/2,k=3*Math.PI/2;l.N=function(){this.Ib=1===this.C[0];this.Gi=this.C[1];this.zo=this.C[2];this.Ae=this.C[3];this.Ae+=Math.random()*this.C[4];0===this.Ae?this.mb=0:(this.mb=this.C[5]/this.Ae*n,this.mb+=Math.random()*this.C[6]/this.Ae*n);this.qc=this.C[7];this.qc+=Math.random()* +this.C[8];this.Yi=this.Vf=this.na=0;this.init()};l.Za=function(){return{i:this.mb,a:this.Ib,mv:this.Gi,w:this.zo,p:this.Ae,mag:this.qc,iv:this.na,iv2:this.Vf,r:this.Yi,lkv:this.Bc,lkv2:this.ki}};l.hb=function(c){this.mb=c.i;this.Ib=c.a;this.Gi=c.mv;this.zo=c.w;this.Ae=c.p;this.qc=c.mag;this.na=c.iv;this.Vf=c.iv2||0;this.Yi=c.r;this.Bc=c.lkv;this.ki=c.lkv2||0};l.init=function(){switch(this.Gi){case 0:this.na=this.j.x;break;case 1:this.na=this.j.y;break;case 2:this.na=this.j.width;this.Yi=this.j.height/ +this.j.width;break;case 3:this.na=this.j.width;break;case 4:this.na=this.j.height;break;case 5:this.na=this.j.q;this.qc=X(this.qc);break;case 6:this.na=this.j.opacity;break;case 7:this.na=0;break;case 8:this.na=this.j.x,this.Vf=this.j.y}this.Bc=this.na;this.ki=this.Vf};l.Ne=function(c){c=c%n;switch(this.zo){case 0:return Math.sin(c);case 1:return c<=m?c/m:c<=k?1-2*(c-m)/Math.PI:(c-k)/m-1;case 2:return 2*c/n-1;case 3:return-2*c/n+1;case 4:return cthis.j.opacity?this.j.opacity=0:1=l.duration&&(l.er?l.current.T-=l.duration:delete this.vc[c]))};c.D=new function(){};c.J=new function(){};c.Qa=new function(){}})();function oc(c){this.b=c} +(function(){var c=oc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.j.L.jumpthruEnabled=0!==this.C[0]};l.Ea=function(){};c.D=new function(){};c.J=new function(){}})();function Dc(c){this.b=c;this.ao=this.kl=this.fj=this.$n=0} +(function(){var c=Dc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.enabled=0!==this.C[0]};l.Za=function(){return{smg:this.behavior.$n,ss:this.behavior.fj,se:this.behavior.kl,smd:this.behavior.ao}};l.hb=function(c){this.behavior.$n=c.smg;this.behavior.fj=c.ss;this.behavior.kl=c.se;this.behavior.ao=c.smd};l.Ea=function(){};l.lj=function(){if(this.enabled){var c= +this.behavior.Ji.nd(),l=0,k=0,q,b,a,f=0;q=0;for(b=c.length;q=this.behavior.fj&&b