// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,fa,ga,ha,y,ia,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,za,I,Aa,Da,Ea,Fa,Ga,J,Ha,Ia,Ja,Ka,La,Ma,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,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,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={},gc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,b,c,d){this.set(a,b,c,d)}function p(){this.Sb=this.Rb=this.Vb=this.Ub=this.hc=this.gc=this.Eb=this.Db=0}function f(a,b,c,d){a<b?c<d?(B=a<c?a:c,P=b>d?b:d):(B=a<d?a:d,P=b>c?b:c):c<d?(B=b<c?b:c,P=a>d?a:d):(B=b<d?b:d,P=a>c?a:c)}function n(){this.items=this.pe=null;this.Xi=0;z&&(this.pe=new Set);this.Xh=[];this.of=!0}function r(a){t[K++]=a}function l(){this.V=this.vm=this.y=this.mi=0}function e(a){this.Cb=[];this.qk=this.sk=this.tk=this.rk=0;this.Nj(a)}function b(a,b){this.qn=
a;this.pn=b;this.cells={}}function d(a,b){this.qn=a;this.pn=b;this.cells={}}function c(a,b,c){var d;return C.length?(d=C.pop(),d.$n=a,d.x=b,d.y=c,d):new ba(a,b,c)}function a(a,b,c){this.$n=a;this.x=b;this.y=c;this.Gb=new ca}function h(a,b,c){var d;return D.length?(d=D.pop(),d.$n=a,d.x=b,d.y=c,d):new da(a,b,c)}function q(a,b,c){this.$n=a;this.x=b;this.y=c;this.Gb=[];this.ph=!0;this.le=new ca;this.hi=!1}function k(a,b){return a.Ud-b.Ud}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};y=function(a){return"string"===typeof a};ia=function(a){return 0<a&&0===(a-1&a)};la=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};ma=function(a){return 0>a?-a:a};na=function(a,b){return a>b?a:b};oa=function(a,b){return a<b?a:b};pa=Math.PI;qa=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var b=
a|0;return b===a?b:b+1};sa=function(a,b,c,d,h,k,v,x){var e,q,m,t;a<c?(q=a,e=c):(q=c,e=a);h<v?(t=h,m=v):(t=v,m=h);if(e<t||q>m)return!1;b<d?(q=b,e=d):(q=d,e=b);k<x?(t=k,m=x):(t=x,m=k);if(e<t||q>m)return!1;e=h-a+v-c;q=k-b+x-d;a=c-a;b=d-b;h=v-h;k=x-k;x=ma(b*h-k*a);return ma(h*q-k*e)>x?!1:ma(a*q-b*e)<=x};g.prototype.set=function(a,b,c,d){this.left=a;this.top=b;this.right=c;this.bottom=d};g.prototype.Sg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=
function(){return this.right-this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};g.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};g.prototype.az=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};g.prototype.bz=
function(a,b,c){return!(a.right+b<this.left||a.bottom+c<this.top||a.left+b>this.right||a.top+c>this.bottom)};g.prototype.jc=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};g.prototype.xi=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=g;p.prototype.Rh=function(a){this.Db=a.left;this.Eb=a.top;this.gc=a.right;this.hc=a.top;this.Ub=a.right;this.Vb=a.bottom;this.Rb=a.left;this.Sb=a.bottom};p.prototype.lt=function(a,
b){if(0===b)this.Rh(a);else{var c=Math.sin(b),d=Math.cos(b),h=a.left*c,k=a.top*c,v=a.right*c,c=a.bottom*c,x=a.left*d,e=a.top*d,q=a.right*d,d=a.bottom*d;this.Db=x-k;this.Eb=e+h;this.gc=q-k;this.hc=e+v;this.Ub=q-c;this.Vb=d+v;this.Rb=x-c;this.Sb=d+h}};p.prototype.offset=function(a,b){this.Db+=a;this.Eb+=b;this.gc+=a;this.hc+=b;this.Ub+=a;this.Vb+=b;this.Rb+=a;this.Sb+=b;return this};var B=0,P=0;p.prototype.Dq=function(a){f(this.Db,this.gc,this.Ub,this.Rb);a.left=B;a.right=P;f(this.Eb,this.hc,this.Vb,
this.Sb);a.top=B;a.bottom=P};p.prototype.jc=function(a,b){var c=this.Db,d=this.Eb,h=this.gc-c,k=this.hc-d,v=this.Ub-c,x=this.Vb-d,e=a-c,q=b-d,m=h*h+k*k,t=h*v+k*x,k=h*e+k*q,B=v*v+x*x,l=v*e+x*q,u=1/(m*B-t*t),h=(B*k-t*l)*u,m=(m*l-t*k)*u;if(0<=h&&0<m&&1>h+m)return!0;h=this.Rb-c;k=this.Sb-d;m=h*h+k*k;t=h*v+k*x;k=h*e+k*q;u=1/(m*B-t*t);h=(B*k-t*l)*u;m=(m*l-t*k)*u;return 0<=h&&0<m&&1>h+m};p.prototype.cd=function(a,b){if(b)switch(a){case 0:return this.Db;case 1:return this.gc;case 2:return this.Ub;case 3:return this.Rb;
case 4:return this.Db;default:return this.Db}else switch(a){case 0:return this.Eb;case 1:return this.hc;case 2:return this.Vb;case 3:return this.Sb;case 4:return this.Eb;default:return this.Eb}};p.prototype.ns=function(){return(this.Db+this.gc+this.Ub+this.Rb)/4};p.prototype.os=function(){return(this.Eb+this.hc+this.Vb+this.Sb)/4};p.prototype.tr=function(a){var b=a.ns(),c=a.os();if(this.jc(b,c))return!0;b=this.ns();c=this.os();if(a.jc(b,c))return!0;var d,h,k,v,x,e,q,m;for(q=0;4>q;q++)for(m=0;4>m;m++)if(b=
this.cd(q,!0),c=this.cd(q,!1),d=this.cd(q+1,!0),h=this.cd(q+1,!1),k=a.cd(m,!0),v=a.cd(m,!1),x=a.cd(m+1,!0),e=a.cd(m+1,!1),sa(b,c,d,h,k,v,x,e))return!0;return!1};ua=p;va=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};wa=function(a,b){var c,d;b=qa(b);if(!(0>b||b>=a.length)){c=b;for(d=a.length-1;c<d;c++)a[c]=a[c+1];za(a,d)}};za=function(a,b){a.length=b};I=function(a){za(a,0)};Aa=function(a,b){I(a);var c,d;c=0;for(d=b.length;c<d;++c)a[c]=b[c]};Da=function(a,b){a.push.apply(a,
b)};Ea=function(a,b){var c,d;c=0;for(d=a.length;c<d;++c)if(a[c]===b)return c;return-1};Fa=function(a,b){var c=Ea(a,b);-1!==c&&wa(a,c)};Ga=function(a,b,c){return a<b?b:a>c?c:a};J=function(a){return a/(180/pa)};Ha=function(a){return 180/pa*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Ka=function(a){return Ia(Ha(a))};La=function(a){return Ja(J(a))};Ma=function(a,b,c,d){return Math.atan2(d-b,c-a)};Pa=function(a,b){if(a===b)return 0;var c=Math.sin(a),
d=Math.cos(a),h=Math.sin(b),k=Math.cos(b),c=c*h+d*k;return 1<=c?0:-1>=c?pa:Math.acos(c)};Qa=function(a,b,c){var d=Math.sin(a),h=Math.cos(a),k=Math.sin(b),v=Math.cos(b);return Math.acos(d*k+h*v)>c?0<h*k-d*v?Ja(a+c):Ja(a-c):Ja(b)};Ra=function(a,b){var c=Math.sin(a),d=Math.cos(a),h=Math.sin(b),k=Math.cos(b);return 0>=d*h-c*k};Sa=function(a,b,c,d,h,k){if(0===c)return k?a:b;var v=Math.sin(c);c=Math.cos(c);a-=d;b-=h;var x=a*v;a=a*c-b*v;b=b*c+x;return k?a+d:b+h};Ta=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*
a+b*b)};Ua=function(a,b){return!a!==!b};Va=function(a,b,c){return a+(b-a)*c};Wa=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Xa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var G=+new Date;bb=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()-
G};var m=!1,u=m=!1,H=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),H=window.c2ejecta);var z=!m&&!H&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.Fe()?!1:z?this.pe.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(z)this.pe.has(a)||(this.pe.add(a),
this.of=!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.Xi++,this.of=!1):(this.items={},this.items[b]=a,this.Xi=1,this.of=!1)}};n.prototype.remove=function(a){if(!this.Fe())if(z)this.pe.has(a)&&(this.pe["delete"](a),this.of=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Xi--,this.of=!1)}};n.prototype.clear=function(){this.Fe()||(z?this.pe.clear():(this.items=null,this.Xi=0),I(this.Xh),this.of=!0)};n.prototype.Fe=function(){return 0===
this.count()};n.prototype.count=function(){return z?this.pe.size:this.Xi};var t=null,K=0;n.prototype.sA=function(){if(!this.of){if(z)I(this.Xh),t=this.Xh,K=0,this.pe.forEach(r),t=null,K=0;else{var a=this.Xh;I(a);var b,c=0,d=this.items;if(d)for(b in d)d.hasOwnProperty(b)&&(a[c++]=d[b])}this.of=!0}};n.prototype.$e=function(){this.sA();return this.Xh};ca=n;new ca;cb=function(a,b){z?db(a,b.pe):eb(a,b.$e())};db=function(a,b){var c,d,h,k;d=c=0;for(h=a.length;c<h;++c)k=a[c],b.has(k)||(a[d++]=k);za(a,d)};
eb=function(a,b){var c,d,h,k;d=c=0;for(h=a.length;c<h;++c)k=a[c],-1===Ea(b,k)&&(a[d++]=k);za(a,d)};l.prototype.add=function(a){this.y=a-this.mi;this.vm=this.V+this.y;this.mi=this.vm-this.V-this.y;this.V=this.vm};l.prototype.reset=function(){this.V=this.vm=this.y=this.mi=0};fb=l;gb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};e.prototype.Nj=function(a){this.Us=a;this.Od=a.length/2;this.Cb.length=a.length;this.xk=this.yk=-1;this.Gq=0};e.prototype.mh=function(){return!this.Us.length};
e.prototype.Da=function(){for(var a=this.Cb,b=a[0],c=b,d=a[1],h=d,k,v,x=1,q=this.Od;x<q;++x)v=2*x,k=a[v],v=a[v+1],k<b&&(b=k),k>c&&(c=k),v<d&&(d=v),v>h&&(h=v);this.rk=b;this.sk=c;this.tk=d;this.qk=h};e.prototype.Rh=function(a,b,c){this.Cb.length=8;this.Od=4;var d=this.Cb;d[0]=a.left-b;d[1]=a.top-c;d[2]=a.right-b;d[3]=a.top-c;d[4]=a.right-b;d[5]=a.bottom-c;d[6]=a.left-b;d[7]=a.bottom-c;this.yk=a.right-a.left;this.xk=a.bottom-a.top;this.Da()};e.prototype.Qh=function(a,b,c,d,h){this.Cb.length=8;this.Od=
4;var k=this.Cb;k[0]=a.Db-b;k[1]=a.Eb-c;k[2]=a.gc-b;k[3]=a.hc-c;k[4]=a.Ub-b;k[5]=a.Vb-c;k[6]=a.Rb-b;k[7]=a.Sb-c;this.yk=d;this.xk=h;this.Da()};e.prototype.kt=function(a){this.Od=a.Od;Aa(this.Cb,a.Cb);this.rk=a.rk;this.tk-a.tk;this.sk=a.sk;this.qk=a.qk};e.prototype.Qg=function(a,b,c){if(this.yk!==a||this.xk!==b||this.Gq!==c){this.yk=a;this.xk=b;this.Gq=c;var d,h,k,v,x,q=0,e=1,m=this.Us,t=this.Cb;0!==c&&(q=Math.sin(c),e=Math.cos(c));c=0;for(k=this.Od;c<k;c++)d=2*c,h=d+1,v=m[d]*a,x=m[h]*b,t[d]=v*e-x*
q,t[h]=x*e+v*q;this.Da()}};e.prototype.jc=function(a,b){var c=this.Cb;if(a===c[0]&&b===c[1])return!0;var d,h,k,v=this.Od,x=this.rk-110,q=this.tk-101,e=this.sk+131,m=this.qk+120,t,B,l=0,u=0;for(d=0;d<v;d++)h=2*d,k=(d+1)%v*2,t=c[h],h=c[h+1],B=c[k],k=c[k+1],sa(x,q,a,b,t,h,B,k)&&l++,sa(e,m,a,b,t,h,B,k)&&u++;return 1===l%2||1===u%2};e.prototype.Ni=function(a,b,c){var d=a.Cb,h=this.Cb;if(this.jc(d[0]+b,d[1]+c)||a.jc(h[0]-b,h[1]-c))return!0;var k,v,x,q,e,m,t,B,l,u,g,n;k=0;for(q=this.Od;k<q;k++)for(v=2*k,
x=(k+1)%q*2,B=h[v],v=h[v+1],l=h[x],u=h[x+1],x=0,t=a.Od;x<t;x++)if(e=2*x,m=(x+1)%t*2,g=d[e]+b,e=d[e+1]+c,n=d[m]+b,m=d[m+1]+c,sa(B,v,l,u,g,e,n,m))return!0;return!1};hb=e;b.prototype.uf=function(a,b,d){var h;h=this.cells[a];return h?(h=h[b])?h:d?(h=c(this,a,b),this.cells[a][b]=h):null:d?(h=c(this,a,b),this.cells[a]={},this.cells[a][b]=h):null};b.prototype.nc=function(a){return qa(a/this.qn)};b.prototype.oc=function(a){return qa(a/this.pn)};b.prototype.update=function(a,b,c){var d,h,k,v,x;if(b)for(d=
b.left,h=b.right;d<=h;++d)for(k=b.top,v=b.bottom;k<=v;++k)if(!c||!c.jc(d,k))if(x=this.uf(d,k,!1))x.remove(a),x.Fe()&&(x.Gb.clear(),1E3>C.length&&C.push(x),this.cells[d][k]=null);if(c)for(d=c.left,h=c.right;d<=h;++d)for(k=c.top,v=c.bottom;k<=v;++k)b&&b.jc(d,k)||this.uf(d,k,!0).po(a)};b.prototype.cm=function(a,b){var c,d,h,k,v,x;c=this.nc(a.left);h=this.oc(a.top);d=this.nc(a.right);for(v=this.oc(a.bottom);c<=d;++c)for(k=h;k<=v;++k)(x=this.uf(c,k,!1))&&x.dump(b)};ib=b;d.prototype.uf=function(a,b,c){var d;
d=this.cells[a];return d?(d=d[b])?d:c?(d=h(this,a,b),this.cells[a][b]=d):null:c?(d=h(this,a,b),this.cells[a]={},this.cells[a][b]=d):null};d.prototype.nc=function(a){return qa(a/this.qn)};d.prototype.oc=function(a){return qa(a/this.pn)};d.prototype.update=function(a,b,c){var d,h,k,v,x;if(b)for(d=b.left,h=b.right;d<=h;++d)for(k=b.top,v=b.bottom;k<=v;++k)if(!c||!c.jc(d,k))if(x=this.uf(d,k,!1))x.remove(a),x.Fe()&&(x.reset(),1E3>D.length&&D.push(x),this.cells[d][k]=null);if(c)for(d=c.left,h=c.right;d<=
h;++d)for(k=c.top,v=c.bottom;k<=v;++k)b&&b.jc(d,k)||this.uf(d,k,!0).po(a)};d.prototype.cm=function(a,b,c,d,h){var k,v;a=this.nc(a);b=this.oc(b);c=this.nc(c);for(k=this.oc(d);a<=c;++a)for(d=b;d<=k;++d)(v=this.uf(a,d,!1))&&v.dump(h)};d.prototype.sz=function(a){var b,c,d,h,k;b=a.left;d=a.top;c=a.right;for(h=a.bottom;b<=c;++b)for(a=d;a<=h;++a)if(k=this.uf(b,a,!1))k.ph=!1};jb=d;var C=[];a.prototype.Fe=function(){return this.Gb.Fe()};a.prototype.po=function(a){this.Gb.add(a)};a.prototype.remove=function(a){this.Gb.remove(a)};
a.prototype.dump=function(a){Da(a,this.Gb.$e())};ba=a;var D=[];q.prototype.Fe=function(){if(!this.Gb.length)return!0;if(this.Gb.length>this.le.count())return!1;this.In();return!0};q.prototype.po=function(a){this.le.contains(a)?(this.le.remove(a),this.le.Fe()&&(this.hi=!1)):this.Gb.length?(this.Gb[this.Gb.length-1].ee()>a.ee()&&(this.ph=!1),this.Gb.push(a)):(this.Gb.push(a),this.ph=!0)};q.prototype.remove=function(a){this.le.add(a);this.hi=!0;30<=this.le.count()&&this.In()};q.prototype.In=function(){this.hi&&
(this.le.count()===this.Gb.length?this.reset():(cb(this.Gb,this.le),this.le.clear(),this.hi=!1))};q.prototype.Gx=function(){this.ph||(this.Gb.sort(k),this.ph=!0)};q.prototype.reset=function(){I(this.Gb);this.ph=!0;this.le.clear();this.hi=!1};q.prototype.dump=function(a){this.In();this.Gx();this.Gb.length&&a.push(this.Gb)};da=q;var A="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");kb=function(a){return 0>=a||11<=a?"source-over":
A[a-1]};lb=function(a,b,c){if(c)switch(a.cc=c.ONE,a.Wb=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.cc=c.ONE;a.Wb=c.ONE;break;case 3:a.cc=c.ONE;a.Wb=c.ZERO;break;case 4:a.cc=c.ONE_MINUS_DST_ALPHA;a.Wb=c.ONE;break;case 5:a.cc=c.DST_ALPHA;a.Wb=c.ZERO;break;case 6:a.cc=c.ZERO;a.Wb=c.SRC_ALPHA;break;case 7:a.cc=c.ONE_MINUS_DST_ALPHA;a.Wb=c.ZERO;break;case 8:a.cc=c.ZERO;a.Wb=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.cc=c.DST_ALPHA;a.Wb=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.cc=c.ONE_MINUS_DST_ALPHA,a.Wb=c.SRC_ALPHA}};
mb=function(a){return Math.round(1E6*a)/1E6};nb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var hc="undefined"!==typeof Float32Array?Float32Array:Array;function ic(g){var p=new hc(3);g&&(p[0]=g[0],p[1]=g[1],p[2]=g[2]);return p}
function jc(g){var p=new hc(16);g&&(p[0]=g[0],p[1]=g[1],p[2]=g[2],p[3]=g[3],p[4]=g[4],p[5]=g[5],p[6]=g[6],p[7]=g[7],p[8]=g[8],p[9]=g[9],p[10]=g[10],p[11]=g[11],p[12]=g[12],p[13]=g[13],p[14]=g[14],p[15]=g[15]);return p}function kc(g,p){p[0]=g[0];p[1]=g[1];p[2]=g[2];p[3]=g[3];p[4]=g[4];p[5]=g[5];p[6]=g[6];p[7]=g[7];p[8]=g[8];p[9]=g[9];p[10]=g[10];p[11]=g[11];p[12]=g[12];p[13]=g[13];p[14]=g[14];p[15]=g[15]}
function lc(g,p){var f=p[0],n=p[1];p=p[2];g[0]*=f;g[1]*=f;g[2]*=f;g[3]*=f;g[4]*=n;g[5]*=n;g[6]*=n;g[7]*=n;g[8]*=p;g[9]*=p;g[10]*=p;g[11]*=p}
function mc(g,p,f,n){n||(n=jc());var r,l,e,b,d,c,a,h,q=g[0],k=g[1];g=g[2];l=f[0];e=f[1];r=f[2];f=p[1];c=p[2];q===p[0]&&k===f&&g===c?(g=n,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(f=q-p[0],c=k-p[1],a=g-p[2],h=1/Math.sqrt(f*f+c*c+a*a),f*=h,c*=h,a*=h,p=e*a-r*c,r=r*f-l*a,l=l*c-e*f,(h=Math.sqrt(p*p+r*r+l*l))?(h=1/h,p*=h,r*=h,l*=h):l=r=p=0,e=c*l-a*r,b=a*p-f*l,d=f*r-c*p,(h=Math.sqrt(e*e+b*b+d*d))?(h=1/h,e*=h,b*=h,d*=h):d=b=e=0,
n[0]=p,n[1]=e,n[2]=f,n[3]=0,n[4]=r,n[5]=b,n[6]=c,n[7]=0,n[8]=l,n[9]=d,n[10]=a,n[11]=0,n[12]=-(p*q+r*k+l*g),n[13]=-(e*q+b*k+d*g),n[14]=-(f*q+c*k+a*g),n[15]=1)}
(function(){function g(b,d,c){this.Ge=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Na=!!c;this.jl=this.Qi=!1;this.wn=0;this.Qm=1;this.Xp=1E3;this.xA=(this.Xp-this.Qm)/32768;this.ln=ic([0,0,100]);this.Vr=ic([0,0,0]);this.Nt=ic([0,1,0]);this.bk=ic([1,1,1]);this.Oq=!0;this.Gl=jc();this.Xc=jc();this.Co=jc();this.vn=jc();this.I=b;this.pr()}function p(b,d,c){this.I=b;this.Oj=d;this.name=c;this.nd=b.getAttribLocation(d,"aPos");this.Ef=b.getAttribLocation(d,
"aTex");this.Tr=b.getUniformLocation(d,"matP");this.Cl=b.getUniformLocation(d,"matMV");this.Ah=b.getUniformLocation(d,"opacity");this.Io=b.getUniformLocation(d,"colorFill");this.Ur=b.getUniformLocation(d,"samplerFront");this.mj=b.getUniformLocation(d,"samplerBack");this.wg=b.getUniformLocation(d,"destStart");this.vg=b.getUniformLocation(d,"destEnd");this.oj=b.getUniformLocation(d,"seconds");this.Ko=b.getUniformLocation(d,"pixelWidth");this.Jo=b.getUniformLocation(d,"pixelHeight");this.lj=b.getUniformLocation(d,
"layerScale");this.kj=b.getUniformLocation(d,"layerAngle");this.pj=b.getUniformLocation(d,"viewOrigin");this.nj=b.getUniformLocation(d,"scrollPos");this.Wy=!!(this.Ko||this.Jo||this.oj||this.mj||this.wg||this.vg||this.lj||this.kj||this.pj||this.nj);this.cs=this.ds=-999;this.Fl=1;this.Zr=this.Yr=0;this.as=this.Xr=this.Wr=1;this.hs=this.gs=this.es=this.ls=this.ks=this.$r=0;this.Bo=[];this.bs=jc();this.Ah&&b.uniform1f(this.Ah,1);this.Io&&b.uniform4f(this.Io,1,1,1,1);this.Ur&&b.uniform1i(this.Ur,0);this.mj&&
b.uniform1i(this.mj,1);this.wg&&b.uniform2f(this.wg,0,0);this.vg&&b.uniform2f(this.vg,1,1);this.lj&&b.uniform1f(this.lj,1);this.kj&&b.uniform1f(this.kj,0);this.pj&&b.uniform2f(this.pj,0,0);this.nj&&b.uniform2f(this.nj,0,0);this.oj&&b.uniform1f(this.oj,0);this.ig=!1}function f(b,d){return b[0]===d[0]&&b[1]===d[1]&&b[2]===d[2]&&b[3]===d[3]&&b[4]===d[4]&&b[5]===d[5]&&b[6]===d[6]&&b[7]===d[7]&&b[8]===d[8]&&b[9]===d[9]&&b[10]===d[10]&&b[11]===d[11]&&b[12]===d[12]&&b[13]===d[13]&&b[14]===d[14]&&b[15]===
d[15]}function n(b,d){this.type=b;this.D=d;this.I=d.I;this.ld=this.ec=this.Es=0;this.fa=this.xd=null;this.mt=[]}var r=jc();g.prototype.pr=function(){var b=this.I,d;this.Or=1;this.sg=this.Af=null;this.Fk=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.Na?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.Pr=b.ONE;this.Nr=b.ONE_MINUS_SRC_ALPHA;
this.Mm=new Float32Array(8E3*(this.Na?3:2));this.wm=new Float32Array(16E3);this.dp=new Float32Array(32E3);this.cp=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.cp);b.bufferData(b.ARRAY_BUFFER,this.dp.byteLength,b.DYNAMIC_DRAW);this.$j=Array(4);this.Uj=Array(4);for(d=0;4>d;d++)this.$j[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.$j[d]),b.bufferData(b.ARRAY_BUFFER,this.Mm.byteLength,b.DYNAMIC_DRAW),this.Uj[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Uj[d]),b.bufferData(b.ARRAY_BUFFER,
this.wm.byteLength,b.DYNAMIC_DRAW);this.we=0;this.Zy=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Zy);for(var c=new Uint16Array(12E3),a=d=0;12E3>d;)c[d++]=a,c[d++]=a+1,c[d++]=a+2,c[d++]=a,c[d++]=a+2,c[d++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,b.STATIC_DRAW);this.Kh=this.Uh=this.bf=0;this.Ya=[];d=this.Na?"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}";c=this.ri({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},d,"<default>");this.Ya.push(c);c=this.ri({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ya.push(c);c=this.ri({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.Ya.push(c);c=this.ri({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.Ya.push(c);for(var h in nc)nc.hasOwnProperty(h)&&this.Ya.push(this.ri(nc[h],d,h));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.ue=[];this.Zd=0;this.Yb=this.Lb=!1;this.Kq=this.$i=-1;this.Ug=null;this.Gn=b.createFramebuffer();this.Jk=this.em=null;this.Bq=!1;this.Na&&(this.Jk=b.createRenderbuffer());this.Qf=ic([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.wz=b[0];this.No=b[1];2048<this.No&&(this.No=2048);this.Cc(0)};p.prototype.Op=function(b){f(this.bs,
b)||(kc(b,this.bs),this.I.uniformMatrix4fv(this.Cl,!1,b))};g.prototype.ri=function(b,d,c){var a=this.I,h=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(h,b.src);a.compileShader(h);if(!a.getShaderParameter(h,a.COMPILE_STATUS))return a.deleteShader(h),null;var q=a.createShader(a.VERTEX_SHADER);a.shaderSource(q,d);a.compileShader(q);if(!a.getShaderParameter(q,a.COMPILE_STATUS))return a.deleteShader(h),a.deleteShader(q),null;d=a.createProgram();a.attachShader(d,h);a.attachShader(d,q);a.linkProgram(d);
if(!a.getProgramParameter(d,a.LINK_STATUS))return a.deleteShader(h),a.deleteShader(q),a.deleteProgram(d),null;a.useProgram(d);a.deleteShader(h);a.deleteShader(q);c=new p(a,d,c);c.Zg=b.Zg||0;c.$g=b.$g||0;c.ti=!!b.ti;c.Lc=!!b.Lc;c.fi=!!b.fi;c.ba=b.ba||[];b=0;for(h=c.ba.length;b<h;b++)c.ba[b][1]=a.getUniformLocation(d,c.ba[b][0]),c.Bo.push(0),a.uniform1f(c.ba[b][1],0);return c};g.prototype.Wn=function(b){var d,c;d=0;for(c=this.Ya.length;d<c;d++)if(this.Ya[d].name===b)return d;return-1};g.prototype.Ts=
function(b,d,c){var a=this.Xc,h=this.Gl,q=[0,0,0,0,0,0,0,0];q[0]=a[0]*b+a[4]*d+a[12];q[1]=a[1]*b+a[5]*d+a[13];q[2]=a[2]*b+a[6]*d+a[14];q[3]=a[3]*b+a[7]*d+a[15];q[4]=h[0]*q[0]+h[4]*q[1]+h[8]*q[2]+h[12]*q[3];q[5]=h[1]*q[0]+h[5]*q[1]+h[9]*q[2]+h[13]*q[3];q[6]=h[2]*q[0]+h[6]*q[1]+h[10]*q[2]+h[14]*q[3];q[7]=-q[2];0!==q[7]&&(q[7]=1/q[7],q[4]*=q[7],q[5]*=q[7],q[6]*=q[7],c[0]=(.5*q[4]+.5)*this.width,c[1]=(.5*q[5]+.5)*this.height)};g.prototype.Te=function(b,d,c){if(this.width!==b||this.height!==d||c){this.ze();
c=this.I;this.width=b;this.height=d;c.viewport(0,0,b,d);mc(this.ln,this.Vr,this.Nt,this.Xc);if(this.Na){var a=-b/2;b=b/2;var h=d/2;d=-d/2;var q=this.Qm,k=this.Xp,e=this.Gl;e||(e=jc());var l=b-a,g=d-h,m=k-q;e[0]=2/l;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/g;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/m;e[11]=0;e[12]=-(a+b)/l;e[13]=-(d+h)/g;e[14]=-(k+q)/m;e[15]=1;this.bk[0]=1;this.bk[1]=1}else d=b/d,a=this.Qm,b=this.Xp,e=this.Gl,k=a*Math.tan(45*Math.PI/360),d*=k,h=-d,q=-k,e||(e=jc()),l=d-h,g=k-q,m=b-a,e[0]=2*a/
l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a/g,e[6]=0,e[7]=0,e[8]=(d+h)/l,e[9]=(k+q)/g,e[10]=-(b+a)/m,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(b*a*2)/m,e[15]=0,a=[0,0],b=[0,0],this.Ts(0,0,a),this.Ts(1,1,b),this.bk[0]=1/(b[0]-a[0]),this.bk[1]=-1/(b[1]-a[1]);a=0;for(b=this.Ya.length;a<b;a++)h=this.Ya[a],h.ig=!1,h.Tr&&(c.useProgram(h.Oj),c.uniformMatrix4fv(h.Tr,!1,this.Gl));c.useProgram(this.Ya[this.$i].Oj);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);
this.sg=this.Af=null;this.Jk&&(c.bindFramebuffer(c.FRAMEBUFFER,this.Gn),c.bindRenderbuffer(c.RENDERBUFFER,this.Jk),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Bq||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Jk),this.Bq=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.em=null)}};g.prototype.td=function(){mc(this.ln,this.Vr,this.Nt,this.Xc);lc(this.Xc,this.bk)};g.prototype.translate=function(b,
d){if(0!==b||0!==d){this.Qf[0]=b;this.Qf[1]=d;this.Qf[2]=0;var c=this.Xc,a=this.Qf,h=a[0],e=a[1],a=a[2];c[12]=c[0]*h+c[4]*e+c[8]*a+c[12];c[13]=c[1]*h+c[5]*e+c[9]*a+c[13];c[14]=c[2]*h+c[6]*e+c[10]*a+c[14];c[15]=c[3]*h+c[7]*e+c[11]*a+c[15]}};g.prototype.scale=function(b,d){if(1!==b||1!==d)this.Qf[0]=b,this.Qf[1]=d,this.Qf[2]=1,lc(this.Xc,this.Qf)};g.prototype.gm=function(b){if(0!==b){var d=this.Xc,c,a=Math.sin(b);b=Math.cos(b);var h=d[0],e=d[1],k=d[2],l=d[3],g=d[4],n=d[5],m=d[6],u=d[7];c?d!==c&&(c[8]=
d[8],c[9]=d[9],c[10]=d[10],c[11]=d[11],c[12]=d[12],c[13]=d[13],c[14]=d[14],c[15]=d[15]):c=d;c[0]=h*b+g*a;c[1]=e*b+n*a;c[2]=k*b+m*a;c[3]=l*b+u*a;c[4]=h*-a+g*b;c[5]=e*-a+n*b;c[6]=k*-a+m*b;c[7]=l*-a+u*b}};g.prototype.$c=function(){if(!f(this.Co,this.Xc)){var b=this.yc();b.type=5;b.fa?kc(this.Xc,b.fa):b.fa=jc(this.Xc);kc(this.Xc,this.Co);this.Yb=this.Lb=!1}};g.prototype.km=function(b){this.Na&&(32760<b&&(b=32760),this.wn=this.ln[2]-this.Qm-b*this.xA)};n.prototype.ox=function(){var b=this.I,d=this.D;0!==
this.ec?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,d.Gn),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),d.jl=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),d.jl=!1)};n.prototype.ux=function(){this.I.bindTexture(this.I.TEXTURE_2D,this.xd)};n.prototype.vx=function(){var b=this.I;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.xd);
b.activeTexture(b.TEXTURE0)};n.prototype.qx=function(){var b=this.Es,d=this.D;d.Fk=b;d=d.Ug;d.Ah&&d.Fl!==b&&(d.Fl=b,this.I.uniform1f(d.Ah,b))};n.prototype.ix=function(){this.I.drawElements(this.I.TRIANGLES,this.ld,this.I.UNSIGNED_SHORT,this.ec)};n.prototype.kx=function(){this.I.blendFunc(this.ec,this.ld)};n.prototype.wx=function(){var b,d,c,a=this.D.Ya,h=this.D.Kq;b=0;for(d=a.length;b<d;b++)c=a[b],b===h&&c.Cl?(c.Op(this.fa),c.ig=!0):c.ig=!1;kc(this.fa,this.D.vn)};n.prototype.jx=function(){var b=this.I,
d=this.D;this.xd?(d.sg===this.xd&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),d.sg=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,d.Gn),d.jl||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.xd,0)):(d.Na||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};n.prototype.gx=function(){var b=this.I,d=this.ec;0===d?(b.clearColor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),b.clear(b.COLOR_BUFFER_BIT)):
1===d?(b.enable(b.SCISSOR_TEST),b.scissor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};n.prototype.nx=function(){var b=this.I;0!==this.ec?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};n.prototype.hx=function(){var b=this.I,d=this.D;d.Na&&b.disable(b.DEPTH_TEST);var c=d.Ya[1];b.useProgram(c.Oj);!c.ig&&c.Cl&&(c.Op(d.vn),c.ig=!0);b.enableVertexAttribArray(c.nd);b.bindBuffer(b.ARRAY_BUFFER,d.cp);
b.vertexAttribPointer(c.nd,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.ec/4,this.ld);c=d.Ug;b.useProgram(c.Oj);0<=c.nd&&(b.enableVertexAttribArray(c.nd),b.bindBuffer(b.ARRAY_BUFFER,d.$j[d.we]),b.vertexAttribPointer(c.nd,d.Na?3:2,b.FLOAT,!1,0,0));0<=c.Ef&&(b.enableVertexAttribArray(c.Ef),b.bindBuffer(b.ARRAY_BUFFER,d.Uj[d.we]),b.vertexAttribPointer(c.Ef,2,b.FLOAT,!1,0,0));d.Na&&b.enable(b.DEPTH_TEST)};n.prototype.rx=function(){var b=this.I,d=this.D,c=d.Ya[this.ec];d.Kq=this.ec;d.Ug=c;b.useProgram(c.Oj);
!c.ig&&c.Cl&&(c.Op(d.vn),c.ig=!0);c.Ah&&c.Fl!==d.Fk&&(c.Fl=d.Fk,b.uniform1f(c.Ah,d.Fk));0<=c.nd&&(b.enableVertexAttribArray(c.nd),b.bindBuffer(b.ARRAY_BUFFER,d.$j[d.we]),b.vertexAttribPointer(c.nd,d.Na?3:2,b.FLOAT,!1,0,0));0<=c.Ef&&(b.enableVertexAttribArray(c.Ef),b.bindBuffer(b.ARRAY_BUFFER,d.Uj[d.we]),b.vertexAttribPointer(c.Ef,2,b.FLOAT,!1,0,0))};n.prototype.mx=function(){var b=this.fa;this.I.uniform4f(this.D.Ug.Io,b[0],b[1],b[2],b[3])};n.prototype.tx=function(){var b,d,c=this.D.Ug,a=this.I;b=
this.fa;c.mj&&this.D.sg!==this.xd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.xd),this.D.sg=this.xd,a.activeTexture(a.TEXTURE0));var h=b[0];c.Ko&&h!==c.ds&&(c.ds=h,a.uniform1f(c.Ko,h));h=b[1];c.Jo&&h!==c.cs&&(c.cs=h,a.uniform1f(c.Jo,h));h=b[2];d=b[3];!c.wg||h===c.Yr&&d===c.Zr||(c.Yr=h,c.Zr=d,a.uniform2f(c.wg,h,d));h=b[4];d=b[5];!c.vg||h===c.Wr&&d===c.Xr||(c.Wr=h,c.Xr=d,a.uniform2f(c.vg,h,d));h=b[6];c.lj&&h!==c.as&&(c.as=h,a.uniform1f(c.lj,h));h=b[7];c.kj&&h!==c.$r&&(c.$r=h,a.uniform1f(c.kj,
h));h=b[8];d=b[9];!c.pj||h===c.ks&&d===c.ls||(c.ks=h,c.ls=d,a.uniform2f(c.pj,h,d));h=b[10];d=b[11];!c.nj||h===c.es&&d===c.gs||(c.es=h,c.gs=d,a.uniform2f(c.nj,h,d));h=b[12];c.oj&&h!==c.hs&&(c.hs=h,a.uniform1f(c.oj,h));if(c.ba.length)for(b=0,d=c.ba.length;b<d;b++)h=this.mt[b],h!==c.Bo[b]&&(c.Bo[b]=h,a.uniform1f(c.ba[b][1],h))};g.prototype.yc=function(){this.Zd===this.ue.length&&this.ue.push(new n(0,this));return this.ue[this.Zd++]};g.prototype.ze=function(){if(0!==this.Zd&&!this.I.isContextLost()){var b=
this.I;0<this.Kh&&(b.bindBuffer(b.ARRAY_BUFFER,this.cp),b.bufferSubData(b.ARRAY_BUFFER,0,this.dp.subarray(0,this.Kh)),d&&0<=d.nd&&"<point>"===d.name&&b.vertexAttribPointer(d.nd,4,b.FLOAT,!1,0,0));if(0<this.bf){var d=this.Ug;b.bindBuffer(b.ARRAY_BUFFER,this.$j[this.we]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Mm.subarray(0,this.bf));d&&0<=d.nd&&"<point>"!==d.name&&b.vertexAttribPointer(d.nd,this.Na?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Uj[this.we]);b.bufferSubData(b.ARRAY_BUFFER,0,this.wm.subarray(0,
this.Uh));d&&0<=d.Ef&&"<point>"!==d.name&&b.vertexAttribPointer(d.Ef,2,b.FLOAT,!1,0,0)}for(var c,b=0,d=this.Zd;b<d;b++)switch(c=this.ue[b],c.type){case 1:c.ix();break;case 2:c.ux();break;case 3:c.qx();break;case 4:c.kx();break;case 5:c.wx();break;case 6:c.jx();break;case 7:c.gx();break;case 8:c.hx();break;case 9:c.rx();break;case 10:c.tx();break;case 11:c.vx();break;case 12:c.mx();break;case 13:c.nx();break;case 14:c.ox()}this.Kh=this.Uh=this.bf=this.Zd=0;this.jl=this.Yb=this.Lb=!1;this.we++;4<=this.we&&
(this.we=0)}};g.prototype.Lf=function(b){if(b!==this.Or&&!this.Qi){var d=this.yc();d.type=3;this.Or=d.Es=b;this.Yb=this.Lb=!1}};g.prototype.Bc=function(b){if(b!==this.Af){var d=this.yc();d.type=2;this.Af=d.xd=b;this.Yb=this.Lb=!1}};g.prototype.Kf=function(b,d){if((b!==this.Pr||d!==this.Nr)&&!this.Qi){var c=this.yc();c.type=4;c.ec=b;c.ld=d;this.Pr=b;this.Nr=d;this.Yb=this.Lb=!1}};g.prototype.bt=function(){this.Kf(this.I.ONE,this.I.ONE_MINUS_SRC_ALPHA)};g.prototype.Lh=function(b,d,c,a,h,e,k,l){15992<=
this.bf&&this.ze();var g=this.bf,n=this.Uh,m=this.Mm,u=this.wm,f=this.wn;if(this.Lb)this.ue[this.Zd-1].ld+=6;else{var p=this.yc();p.type=1;p.ec=this.Na?g:g/2*3;p.ld=6;this.Lb=!0;this.Yb=!1}this.Na?(m[g++]=b,m[g++]=d,m[g++]=f,m[g++]=c,m[g++]=a,m[g++]=f,m[g++]=h,m[g++]=e,m[g++]=f,m[g++]=k,m[g++]=l,m[g++]=f):(m[g++]=b,m[g++]=d,m[g++]=c,m[g++]=a,m[g++]=h,m[g++]=e,m[g++]=k,m[g++]=l);u[n++]=0;u[n++]=0;u[n++]=1;u[n++]=0;u[n++]=1;u[n++]=1;u[n++]=0;u[n++]=1;this.bf=g;this.Uh=n};g.prototype.ne=function(b,d,
c,a,h,e,k,l,g){15992<=this.bf&&this.ze();var n=this.bf,m=this.Uh,u=this.Mm,f=this.wm,p=this.wn;if(this.Lb)this.ue[this.Zd-1].ld+=6;else{var t=this.yc();t.type=1;t.ec=this.Na?n:n/2*3;t.ld=6;this.Lb=!0;this.Yb=!1}var t=g.left,r=g.top,C=g.right;g=g.bottom;this.Na?(u[n++]=b,u[n++]=d,u[n++]=p,u[n++]=c,u[n++]=a,u[n++]=p,u[n++]=h,u[n++]=e,u[n++]=p,u[n++]=k,u[n++]=l,u[n++]=p):(u[n++]=b,u[n++]=d,u[n++]=c,u[n++]=a,u[n++]=h,u[n++]=e,u[n++]=k,u[n++]=l);f[m++]=t;f[m++]=r;f[m++]=C;f[m++]=r;f[m++]=C;f[m++]=g;f[m++]=
t;f[m++]=g;this.bf=n;this.Uh=m};g.prototype.Lz=function(b,d,c,a){7996<=this.Kh&&this.ze();var h=this.Kh,e=this.dp;if(this.Yb)this.ue[this.Zd-1].ld++;else{var k=this.yc();k.type=8;k.ec=h;k.ld=1;this.Yb=!0;this.Lb=!1}e[h++]=b;e[h++]=d;e[h++]=c;e[h++]=a;this.Kh=h};g.prototype.Cc=function(b){if(this.$i!==b){if(!this.Ya[b]){if(0===this.$i)return;b=0}var d=this.yc();d.type=9;this.$i=d.ec=b;this.Yb=this.Lb=!1}};g.prototype.Cj=function(b){b=this.Ya[b];return!(!b.wg&&!b.vg)};g.prototype.gp=function(b){b=this.Ya[b];
return!!(b.wg||b.vg||b.ti)};g.prototype.fp=function(b){return this.Ya[b].Lc};g.prototype.Tz=function(b){b=this.Ya[b];return 0!==b.Zg||0!==b.$g};g.prototype.Dy=function(b){return this.Ya[b].Zg};g.prototype.Ey=function(b){return this.Ya[b].$g};g.prototype.Fy=function(b,d){return this.Ya[b].ba[d][2]};g.prototype.Zl=function(b){return this.Ya[b].fi};g.prototype.Ph=function(b,d,c,a,h,e,k,l,g,n,m,u,f,p,t){var r=this.Ya[this.$i],C,D;if(r.Wy||t.length){C=this.yc();C.type=10;C.fa?kc(this.Xc,C.fa):C.fa=jc();
D=C.fa;D[0]=d;D[1]=c;D[2]=a;D[3]=h;D[4]=e;D[5]=k;D[6]=l;D[7]=g;D[8]=n;D[9]=m;D[10]=u;D[11]=f;D[12]=p;r.mj?C.xd=b:C.xd=null;if(t.length)for(c=C.mt,c.length=t.length,b=0,d=t.length;b<d;b++)c[b]=t[b];this.Yb=this.Lb=!1}};g.prototype.clear=function(b,d,c,a){var h=this.yc();h.type=7;h.ec=0;h.fa||(h.fa=jc());h.fa[0]=b;h.fa[1]=d;h.fa[2]=c;h.fa[3]=a;this.Yb=this.Lb=!1};g.prototype.clearRect=function(b,d,c,a){if(!(0>c||0>a)){var h=this.yc();h.type=7;h.ec=1;h.fa||(h.fa=jc());h.fa[0]=b;h.fa[1]=d;h.fa[2]=c;h.fa[3]=
a;this.Yb=this.Lb=!1}};g.prototype.et=function(b){if(this.Na&&(b=!!b,this.Qi!==b)){var d=this.yc();d.type=14;d.ec=b?1:0;this.Yb=this.Lb=!1;this.Qi=b;this.em=null;this.Qi?this.Cc(2):this.Cc(0)}};g.prototype.dt=function(b){if(this.Na){var d=this.yc();d.type=13;d.ec=b?1:0;this.Yb=this.Lb=!1}};g.prototype.Xq=function(){kc(this.Co,r);this.td();this.$c();var b=this.width/2,d=this.height/2;this.Lh(-b,d,b,d,b,-d,-b,-d);kc(r,this.Xc);this.$c()};g.prototype.ct=function(b,d,c){this.Cc(3);var a=this.yc();a.type=
12;a.fa||(a.fa=jc());a.fa[0]=b;a.fa[1]=d;a.fa[2]=c;a.fa[3]=1;this.Yb=this.Lb=!1};g.prototype.jA=function(){this.Cc(0)};g.prototype.Xz=function(){this.Cc(2)};g.prototype.Sz=function(){this.ze();this.I.flush()};var l=[],e={};g.prototype.Sw=function(){I(l);e={}};g.prototype.yh=function(b,d,c,a){d=!!d;c=!!c;var h=b.src+","+d+","+c+(d?",undefined":""),q=null;if("undefined"!==typeof b.src&&e.hasOwnProperty(h))return q=e[h],q.wk++,q;this.ze();var k=this.I,g=ia(b.width)&&ia(b.height),q=k.createTexture();
k.bindTexture(k.TEXTURE_2D,q);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=k.RGBA,f=k.RGBA,m=k.UNSIGNED_BYTE;if(a&&!this.Ge)switch(a){case 1:f=n=k.RGB;break;case 2:m=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:f=n=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(!g&&d){a=document.createElement("canvas");a.width=la(b.width);a.height=la(b.height);var u=a.getContext("2d");u.webkitImageSmoothingEnabled=c;u.mozImageSmoothingEnabled=c;u.msImageSmoothingEnabled=c;u.imageSmoothingEnabled=
c;u.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);k.texImage2D(k.TEXTURE_2D,0,n,f,m,a)}else k.texImage2D(k.TEXTURE_2D,0,n,f,m,b);d?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),g&&this.Oq?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,
k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.Af=null;q.Wf=b.width;q.Vf=b.height;q.wk=1;q.Fq=h;l.push(q);return e[h]=q};g.prototype.Oc=function(b,d,c,a){this.ze();var h=this.I;this.Ge&&(a=!1);var e=h.createTexture();h.bindTexture(h.TEXTURE_2D,e);h.texImage2D(h.TEXTURE_2D,
0,h.RGBA,b,d,0,h.RGBA,a?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,c?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,c?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.Af=null;e.Wf=b;e.Vf=d;l.push(e);return e};g.prototype.vA=function(b,d,c){this.ze();var a=this.I;this.Ge&&(c=!1);a.bindTexture(a.TEXTURE_2D,
d);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",h)}a.bindTexture(a.TEXTURE_2D,null);this.Af=null};g.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.wk&&1<b.wk?b.wk--:(this.ze(),b===this.Af&&(this.I.bindTexture(this.I.TEXTURE_2D,null),this.Af=null),b===this.sg&&(this.I.activeTexture(this.I.TEXTURE1),this.I.bindTexture(this.I.TEXTURE_2D,
null),this.I.activeTexture(this.I.TEXTURE0),this.sg=null),Fa(l,b),"undefined"!==typeof b.Fq&&delete e[b.Fq],this.I.deleteTexture(b)))};g.prototype.ud=function(b){if(b!==this.em){var d=this.yc();d.type=6;this.em=d.xd=b;this.Yb=this.Lb=!1}};pb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function p(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.fe=(this.Pi=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.kc=!!a.dc;this.ur="undefined"!==typeof window.AppMobi||this.kc;this.Uc=!!window.c2cocoonjs;this.md=!!window.c2ejecta;this.Uc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.md&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Qa=this.kc||this.Uc||this.md;this.Si=/edge\//i.test(navigator.userAgent);this.Ge=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Si;this.Er=/tizen/i.test(navigator.userAgent);this.hl=/android/i.test(navigator.userAgent)&&!this.Er&&!this.Ge&&!this.Si;this.zo=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Ge&&!this.Si;this.Kr=/ipad/i.test(navigator.userAgent);this.nl=this.zo||this.Kr||this.md;this.jz=this.zo&&/os\s6/i.test(navigator.userAgent);this.Oi=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Ge&&!this.Si;this.ro=/amazonwebappplatform/i.test(navigator.userAgent);this.ez=/firefox/i.test(navigator.userAgent);this.Dr=/safari/i.test(navigator.userAgent)&&!this.Oi&&!this.Ge&&!this.Si;this.iz=/windows/i.test(navigator.userAgent);
this.hz=this.He="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Gr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Hr=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.lh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.xo=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);
this.Fr=!!window.cr_windows10;this.kl=this.Gr||this.Hr||this.xo||this.Fr;this.cz=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.il=this.hl&&!this.Oi&&!this.Pi&&!this.ez&&!this.ro&&!this.Qa;this.devicePixelRatio=1;this.xf=this.fe||this.Pi||this.ur||this.Uc||this.hl||this.nl||this.lh||this.xo||this.cz||this.Er||this.md;this.xf||(this.xf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===
typeof cr_is_preview||this.He||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.He=!0);this.dz="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.mn=document.getElementById("c2canvasdiv");this.D=this.I=null;this.Zn="(unavailable)";this.Na=!1;this.$f=0;this.Fa=null;this.Kn="";this.Sk=!1;this.Bs=this.Cs=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};
this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.kc&&(window.c2runtime=this);this.He&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.il&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.R=this.width;this.P=this.height;this.Dk=this.width;this.vi=this.height;
this.bj=window.innerWidth;this.aj=window.innerHeight;this.my=!1;this.ua=!0;this.Ui=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.G=[];this.fb=[];this.xh={};this.Kd=[];this.En={};this.Ae=[];this.Zh=[];this.Fm=[];this.Dw=[];this.Ew=[];this.Mr=this.ut=null;this.Yf={};this.uo=this.wf=!1;this.Vc=0;this.so=this.wo=!1;this.Gd=[];this.Ri=!1;this.Je=this.$b=this.yl=this.rp="";this.Sj=this.pt=!1;this.Rk=[];this.sf=this.rf=0;this.qs=30;this.tn=this.qj=0;this.Pf=1;this.yb=
new fb;this.cf=new fb;this.Ll=this.Yk=this.dg=this.Rd=this.ug=this.Jn=this.ql=0;this.ve=null;this.Lk=[];this.Dn=[];this.Nk=-1;this.Lo=[[]];this.Kp=this.Dl=0;this.$l(null);this.rj=[];this.Bh=-1;this.vs=this.wj=0;this.Eo=!0;this.Bi=0;this.Tj=[];this.Hp=this.jp=-1;this.pg=!0;this.zh=0;this.ng=!1;this.mA=0;this.Pg=null;this.Gc=this.kr=!1;this.zs=new ca;this.Ro=new ca;this.As=new ca;this.Hj=[];this.Qd=new hb([]);this.Gp=new hb([]);this.kf=[];this.gh={};this.Rg={};this.Og={};this.Yh={};this.Cq={};this.Sr=
this.xl=this.lb=this.zb=this.Rr=this.wl=this.Ga=null;this.Wh=this.yo=!1;this.Ln=[null,null];this.De=0;this.Hn="";this.Oe={};this.Rj=this.Cf=null;this.tt="";this.Kl=[];this.Wz()}}function n(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(a,b,c,d){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=r;h.onerror=d;h.onsuccess=function(h){h=h.target.result;h.onerror=d;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:b}).onsuccess=c}}catch(k){d(k)}}function e(a,b,c){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=r;d.onerror=c;d.onsuccess=function(d){d=d.target.result;d.onerror=c;var h=d.transaction(["saves"]).objectStore("saves").get(a);h.onsuccess=function(){h.result?b(h.result.data):b(null)}}}catch(h){c(h)}}function b(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+
"?continuous"}function d(a){var b,c={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==typeof a[b].hB||"spriteCreatedDestroyCallback"!==b&&(c[b]=a[b]);return c}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Wz=function(){var a=this,b;this.lh?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.Gr||this.lh||this.xo||
this.Fr)c="data.json";b.open("GET",c,!0);var d=!1;if(!this.Qa&&"response"in b&&"responseType"in b)try{b.responseType="json",d="json"===b.responseType}catch(h){d=!1}if(!d&&"responseType"in b)try{b.responseType="text"}catch(k){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(e){}this.lh?b.onreadystatechange=function(){4===b.readyState&&a.Al(JSON.parse(b.responseText))}:(b.onload=function(){if(d)a.Al(b.response);else if(a.md){var c=b.responseText,c=c.substr(c.indexOf("{"));
a.Al(JSON.parse(c))}else a.Al(JSON.parse(b.responseText))},b.onerror=function(a){fa("Error requesting "+c+":");fa(a)});b.send()};f.prototype.$y=function(){var a=this,b,c,d,h,k,e,m,q,t;this.yf=(!this.Qa||this.md||this.fe)&&this.tA&&!this.il;0===this.rc&&this.nl&&(this.yf=!1);this.devicePixelRatio=this.yf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Pb();c=!(!this.my&&(!this.gn||this.He||this.kl||this.lh||this.Pi||this.fe||this.ro));
0<this.rc&&this.setSize(g(),p(),!0);try{this.Ex&&(this.Uc||this.md||!this.Qa)&&(b={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.I=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(l){}if(this.I){if(b=this.I.getExtension("WEBGL_debug_renderer_info"))this.Zn=this.I.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.I.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Na&&(this.Zn+=" [front-to-back enabled]");this.Qa||(this.Mb=document.createElement("canvas"),
jQuery(this.Mb).appendTo(this.canvas.parentNode),this.Mb.oncontextmenu=function(){return!1},this.Mb.onselectstart=function(){return!1},this.Mb.width=Math.round(this.Dk*this.devicePixelRatio),this.Mb.height=Math.round(this.vi*this.devicePixelRatio),jQuery(this.Mb).css({width:this.Dk+"px",height:this.vi+"px"}),this.Rs(),this.Zo=this.Mb.getContext("2d"));this.D=new pb(this.I,this.xf,this.Na);this.D.Te(this.canvas.width,this.canvas.height);this.D.Oq=0!==this.xx;this.Fa=null;this.canvas.addEventListener("webglcontextlost",
function(b){b.preventDefault();a.Az();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.D.pr();a.D.Te(a.D.width,a.D.height,!0);a.zb=null;a.lb=null;a.Ln[0]=null;a.Ln[1]=null;a.Bz();a.ua=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(c=this.G.length;b<c;b++)for(k=this.G[b],d=0,h=k.Z.length;d<h;d++)m=k.Z[d],m.pb=this.D.Wn(m.id),m.Lc=this.D.fp(m.pb),this.Wh=this.Wh||this.D.Cj(m.pb);
b=0;for(c=this.Kd.length;b<c;b++){q=this.Kd[b];d=0;for(h=q.Z.length;d<h;d++)m=q.Z[d],m.pb=this.D.Wn(m.id),m.Lc=this.D.fp(m.pb);q.Td();d=0;for(h=q.ca.length;d<h;d++){t=q.ca[d];k=0;for(e=t.Z.length;k<e;k++)m=t.Z[k],m.pb=this.D.Wn(m.id),m.Lc=this.D.fp(m.pb),this.Wh=this.Wh||this.D.Cj(m.pb);t.Td()}}}else{if(0<this.rc&&this.kc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Fa=AppMobi.canvas.getContext("2d");try{this.Fa.samplingMode=this.ea?
"smooth":"sharp",this.Fa.globalScale=1,this.Fa.HTML5CompatibilityMode=!0,this.Fa.imageSmoothingEnabled=this.ea}catch(n){}0!==this.width&&0!==this.height&&(this.Fa.width=this.width,this.Fa.height=this.height)}this.Fa||(this.Uc?(b={antialias:!!this.ea,alpha:c},this.Fa=this.canvas.getContext("2d",b)):(b={alpha:c},this.Fa=this.canvas.getContext("2d",b)),this.Fa.webkitImageSmoothingEnabled=this.ea,this.Fa.mozImageSmoothingEnabled=this.ea,this.Fa.msImageSmoothingEnabled=this.ea,this.Fa.imageSmoothingEnabled=
this.ea);this.Zo=this.Mb=null}this.Ft=function(b){a.Ha(!1,b)};window==window.top||this.Qa||this.kl||this.lh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Uc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.yl="__c2_continuouspreview",this.Sj=!0),this.Jz&&
!this.xf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Ag()});this.Qa||(b=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",
b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.rc&&this.yf&&1<this.devicePixelRatio&&this.setSize(this.Bb,this.Ab,!0);this.Kt();this.Ty();this.go();this.M={}};f.prototype.setSize=function(a,b,c){var d=0,h=0,k=0,e=0,e=0,m=this.jz&&this.Dr&&!navigator.standalone&&!this.Qa&&!this.fe;m&&(b+=60);if(this.bj!==a||this.aj!==b||c){this.bj=a;this.aj=b;var q=this.rc,t=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||
this.ng)&&!this.fe;if(t||0!==this.rc||c)t&&0<this.De&&(q=this.De),c=this.devicePixelRatio,4<=q?(k=this.Bb/this.Ab,a/b>k?(k*=b,5===q?(e=k*c/this.Bb,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),k=this.Bb*e/c,e=this.Ab*e/c,d=(a-k)/2,h=(b-e)/2,a=k,b=e):(d=(a-k)/2,a=k)):(e=a/k,5===q?(e=e*c/this.Ab,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),k=this.Bb*e/c,e=this.Ab*e/c,d=(a-k)/2,h=(b-e)/2,a=k):h=(b-e)/2,b=e),t&&!this.He&&(h=d=0)):this.He&&this.ng&&0===this.Yq&&(d=Math.floor((a-this.Bb)/2),h=Math.floor((b-
this.Ab)/2),a=this.Bb,b=this.Ab),2>q&&(this.ki=c),this.yf&&this.Kr&&1<c&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.Dk=Math.round(a),this.vi=Math.round(b),this.width=Math.round(a*c),this.height=Math.round(b*c),this.ua=!0,this.Wt?(this.R=this.width,this.P=this.height,this.Rc=!0):this.width<this.Bb&&this.height<this.Ab||1===q?(this.R=this.width,this.P=this.height,this.Rc=!0):(this.R=this.Bb,this.P=this.Ab,this.Rc=!1,2===q?(k=this.Bb/this.Ab,q=this.bj/this.aj,q<k?this.R=this.P*q:q>k&&(this.P=this.R/
q)):3===q&&(k=this.Bb/this.Ab,q=this.bj/this.aj,q>k?this.R=this.P*q:q<k&&(this.P=this.R/q))),this.mn&&!this.Qa&&(jQuery(this.mn).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(b*c),this.md?(this.canvas.style.left=Math.floor(d)+"px",
this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.yf&&!this.Qa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Mb&&(this.Mb.width=Math.round(a*c),this.Mb.height=Math.round(b*c),this.Mb.style.width=this.Dk+"px",this.Mb.style.height=this.vi+"px"),this.D&&this.D.Te(Math.round(a*c),Math.round(b*c)),this.kc&&this.Fa&&(this.Fa.width=Math.round(a),this.Fa.height=Math.round(b)),
this.Fa&&(this.Fa.webkitImageSmoothingEnabled=this.ea,this.Fa.mozImageSmoothingEnabled=this.ea,this.Fa.msImageSmoothingEnabled=this.ea,this.Fa.imageSmoothingEnabled=this.ea),this.Kt(),this.Qa||!m&&!this.zo||window.setTimeout(function(){window.scrollTo(0,1)},100)}};f.prototype.Kt=function(){if(this.Hw&&0!==this.Xo){var a="portrait";2===this.Xo&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?
screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};f.prototype.Az=function(){this.D.Sw();this.yo=!0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.yj&&c.yj()};f.prototype.Bz=function(){this.yo=!1;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ml&&c.Ml()};f.prototype.Rs=function(){if(!this.Qa){var a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ng)&&!this.fe?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Mb).css(a)}};var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(b){var c;if(b&&!this.Ui)for(ea("[Construct 2] Suspending"),this.Ui=!0,-1!==this.jp&&a&&a(this.jp),-1!==
this.Hp&&clearTimeout(this.Hp),b=0,c=this.Tj.length;b<c;b++)this.Tj[b](!0);else if(!b&&this.Ui){ea("[Construct 2] Resuming");this.Ui=!1;this.ql=bb();this.ug=bb();b=this.qj=this.Yk=0;for(c=this.Tj.length;b<c;b++)this.Tj[b](!1);this.Ha(!1)}};f.prototype.yq=function(a){this.Tj.push(a)};f.prototype.ff=function(a){return this.Kl[a]};f.prototype.Al=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Tq=a[1];this.rc=a[12];this.Yq=a[12];this.Bb=a[10];this.Ab=a[11];this.Ls=
this.Bb/2;this.Ms=this.Ab/2;this.Qa&&!this.md&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Yq=this.rc=3);this.Rp=a[18];this.Df=a[19];if(0===this.Df){var b=new Image;b.crossOrigin="anonymous";b.src="loading-logo.png";this.Cf={El:b}}else if(4===this.Df){b=new Image;b.src="";var c=new Image;c.src="";var d=new Image;d.src="";var h=new Image;h.src="";var k=new Image;k.src="";var e=new Image;e.src="";
var m=new Image;m.src="";var q=new Image;q.src="";var t=new Image;t.src="";var l=new Image;l.src="";var g=new Image;g.src="";var n=new Image;n.src="";this.Cf={El:[b,c,d,h],Pz:[k,e,m,q],wA:[t,l,g,n]}}this.wj=a[21];this.Kl=oc();this.qe=new T(this);b=0;for(c=a[2].length;b<c;b++)m=a[2][b],d=this.ff(m[0]),qb(m,d.prototype),q=new d(this),q.pm=m[1],q.zf=m[2],q.ts=m[9],q.J&&q.J(),this.plugins.push(q);this.Kl=oc();b=0;for(c=a[3].length;b<c;b++){m=a[3][b];k=this.ff(m[1]);q=null;d=0;for(h=this.plugins.length;d<
h;d++)if(this.plugins[d]instanceof k){q=this.plugins[d];break}t=new q.T(q);t.name=m[0];t.N=m[2];t.qo=m[3].slice(0);t.uA=m[3].length;t.Iw=m[4];t.oy=m[5];t.qa=m[11];t.N?(t.Eh=[],t.Be=this.Bi++,t.Sa=null):(t.Eh=null,t.Be=-1,t.Sa=[]);t.Pk=null;t.bh=null;t.Pq=null;t.Zb=!1;t.Ec=null;m[6]?(t.xm=m[6][0],t.ym=m[6][1],t.Vj=m[6][2]):(t.xm=null,t.ym=0,t.Vj=0);m[7]?t.qc=m[7]:t.qc=null;t.index=b;t.j=[];t.Hk=[];t.Nf=[new rb(t)];t.xe=0;t.jd=null;t.$w=0;t.Th=!0;t.Hm=sb;t.er=tb;t.By=ub;t.aa=vb;t.Ej=wb;t.Hf=xb;t.Md=
yb;t.$k=zb;t.Nn=Ab;t.Rn=Bb;t.Dd=Cb;t.Sn=Db;t.pi=new ib(this.Bb,this.Ab);t.ok=!0;t.pk=!1;t.M={};t.toString=Eb;t.fb=[];d=0;for(h=m[8].length;d<h;d++){l=m[8][d];g=this.ff(l[1]);n=null;k=0;for(e=this.fb.length;k<e;k++)if(this.fb[k]instanceof g){n=this.fb[k];break}n||(n=new g(this),n.Jl=[],n.Il=new ca,n.J&&n.J(),this.fb.push(n),pc&&n instanceof pc&&(this.ut=n),gc.lz&&n instanceof gc.lz&&(this.Mr=n));-1===n.Jl.indexOf(t)&&n.Jl.push(t);k=new n.T(n,t);k.name=l[0];k.qa=l[2];k.J();t.fb.push(k)}t.global=m[9];
t.vo=m[10];t.Z=[];d=0;for(h=m[12].length;d<h;d++)t.Z.push({id:m[12][d][0],name:m[12][d][1],pb:-1,Lc:!1,Ra:!0,index:d});t.vB=m[13];this.Rp&&!t.N&&!t.vo&&q.zf||t.J();t.name&&(this.types[t.name]=t);this.G.push(t);q.pm&&(d=new q.O(t),d.uid=this.wj++,d.Vs=this.vs++,d.kg=0,d.Hi=Fb,d.toString=Gb,d.C=m[14],d.J(),t.j.push(d),this.Oe[d.uid.toString()]=d)}b=0;for(c=a[4].length;b<c;b++)for(k=a[4][b],e=this.G[k[0]],d=1,h=k.length;d<h;d++)m=this.G[k[d]],m.Sa.push(e),e.Eh.push(m);b=0;for(c=a[28].length;b<c;b++){k=
a[28][b];e=[];d=0;for(h=k.length;d<h;d++)e.push(this.G[k[d]]);d=0;for(h=e.length;d<h;d++)e[d].Zb=!0,e[d].Ec=e}if(0<this.Bi)for(b=0,c=this.G.length;b<c;b++)if(m=this.G[b],!m.N&&m.Sa.length){m.Pk=Array(this.Bi);m.bh=Array(this.Bi);m.Pq=Array(this.Bi);t=[];d=n=g=l=0;for(h=m.Sa.length;d<h;d++)for(q=m.Sa[d],m.Pk[q.Be]=l,l+=q.uA,m.bh[q.Be]=g,g+=q.Iw,m.Pq[q.Be]=n,n+=q.oy,k=0,e=q.Z.length;k<e;k++)t.push(va({},q.Z[k]));m.Z=t.concat(m.Z);d=0;for(h=m.Z.length;d<h;d++)m.Z[d].index=d}b=0;for(c=a[5].length;b<c;b++)m=
a[5][b],d=new Hb(this,m),this.xh[d.name]=d,this.Kd.push(d);b=0;for(c=a[6].length;b<c;b++)m=a[6][b],d=new Ib(this,m),this.En[d.name]=d,this.Ae.push(d);b=0;for(c=this.Ae.length;b<c;b++)this.Ae[b].eb();b=0;for(c=this.Ae.length;b<c;b++)this.Ae[b].Np();b=0;for(c=this.Fm.length;b<c;b++)this.Fm[b].eb();I(this.Fm);this.Gw=a[7];this.Hn=a[8];this.Yc=a[9];this.ki=1;this.Ex=a[13];this.ea=a[14];this.gn=a[15];this.tA=a[17];this.Xo=a[20];this.Hw=0<this.Xo;this.Jz=a[22];this.Rc=this.Wt=a[23];this.xx=a[24];this.Qz=
a[25];this.Na=a[27]&&!this.Ge;this.um=Date.now();I(this.Kl);this.$y()};var h=!1;f.prototype.Tp=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){h=a.Eq=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.md?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(c){h=a.Eq=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",a.src=b));this.Zh.push(a)};
f.prototype.ky=function(a){var b,c;b=0;for(c=this.Zh.length;b<c;b++)if(this.Zh[b].Tw===a)return this.Zh[b];return null};var q=0,k=!1;f.prototype.Ty=function(){this.Pg&&(q=this.Pg.hA(this.Gw))};f.prototype.Aq=function(){var a=q,b=0,c=0,d=!0,h,e,c=0;for(h=this.Zh.length;c<h;c++){e=this.Zh[c];var m=e.un;if(!m||0>=m)m=5E4;a+=m;e.src&&(e.complete||e.loaded)&&!e.Eq?b+=m:d=!1}d&&this.Qz&&this.Pg&&(k||(this.Pg.nA(),k=!0),c=this.Pg.Cy(),b+=c,c<q&&(d=!1));this.Nd=0==a?1:b/a;return d};var B=!1;f.prototype.go=
function(){if(this.Fa||this.D){var a=this.Fa||this.Zo;this.Mb&&this.Rs();this.Nd=0;this.Qr=-1;var b=this;if(this.Aq()&&(4!==this.Df||B))this.Uy();else{var d=Date.now()-this.um;if(a){var k=this.width,e=this.height,m=this.devicePixelRatio;if(3>this.Df&&(this.Uc||500<=d&&this.Qr!=this.Nd)){a.clearRect(0,0,k,e);var d=k/2,e=e/2,k=0===this.Df&&this.Cf.El.complete,q=40*m,t=0,l=80*m,n;if(k){var g=this.Cf.El,l=g.width*m;n=g.height*m;q=l/2;t=n/2;a.drawImage(g,qa(d-q),qa(e-t),l,n)}1>=this.Df?(d=qa(d-q)+.5,e=
qa(e+(t+(k?12*m:0)))+.5,a.fillStyle=h?"red":"DodgerBlue",a.fillRect(d,e,Math.floor(l*this.Nd),6*m),a.strokeStyle="black",a.strokeRect(d,e,l,6*m),a.strokeStyle="white",a.strokeRect(d-1*m,e-1*m,l+2*m,8*m)):2===this.Df&&(a.font=this.md?"12pt ArialMT":"12pt Arial",a.fillStyle=h?"#f00":"#999",a.uB="middle",m=Math.round(100*this.Nd)+"%",k=a.measureText?a.measureText(m):null,a.fillText(m,d-(k?k.width:0)/2,e));this.Qr=this.Nd}else if(4===this.Df){this.Cx(a);c?c(function(){b.go()}):setTimeout(function(){b.go()},
16);return}}setTimeout(function(){b.go()},this.Uc?10:100)}}};var P=-1,G="undefined"===typeof cr_is_preview?200:0,m=!0,u=!1,H=0,z=0,t="undefined"===typeof cr_is_preview?3E3:0,K=null,C=null,D=0;f.prototype.Cx=function(a){if(!B){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),d=this.Cf.El,k=this.Cf.Pz,e=this.Cf.wA,q=0;4>q;++q)if(!d[q].complete||!k[q].complete||!e[q].complete)return;0===D&&(P=Date.now());var q=Date.now(),l=!1,g=a,f,p;m||u?(a.clearRect(0,0,b,c),K&&K.width===b&&K.height===c||(K=
document.createElement("canvas"),K.width=b,K.height=c,C=K.getContext("2d")),g=C,l=!0,m&&1===D&&(P=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,b,c);256<this.vi?(f=Ga(.22*c,105,.6*b),p=.25*f,g.drawImage(n(k,f),.5*b-f/2,.2*c-p/2,f,p),p=f=Math.min(.395*c,.95*b),g.drawImage(n(d,f),.5*b-f/2,.485*c-p/2,f,p),f=Ga(.22*c,105,.6*b),p=.25*f,g.drawImage(n(e,f),.5*b-f/2,.868*c-p/2,f,p),g.fillStyle="#3C3C3C",f=b,p=Math.max(.005*c,2),g.fillRect(0,.8*c-p/2,f,p),g.fillStyle=h?"red":"#E0FF65",
f=b*this.Nd,g.fillRect(.5*b-f/2,.8*c-p/2,f,p)):(p=f=.55*c,g.drawImage(n(d,f),.5*b-f/2,.45*c-p/2,f,p),g.fillStyle="#3C3C3C",f=b,p=Math.max(.005*c,2),g.fillRect(0,.85*c-p/2,f,p),g.fillStyle=h?"red":"#E0FF65",f=b*this.Nd,g.fillRect(.5*b-f/2,.85*c-p/2,f,p));l&&(m?a.globalAlpha=0===D?0:Math.min((q-P)/300,1):u&&(a.globalAlpha=Math.max(1-(q-z)/300,0)),a.drawImage(K,0,0,b,c));m&&300<=q-P&&2<=D&&(m=!1,H=q);!m&&q-H>=t&&!u&&1<=this.Nd&&(u=!0,z=q);if(u&&q-z>=300+G||"undefined"!==typeof cr_is_preview&&1<=this.Nd&&
500>Date.now()-P)B=!0,u=m=!1,this.Cf=C=K=null;++D}};f.prototype.Uy=function(){this.Mb&&(this.canvas.parentNode.removeChild(this.Mb),this.Mb=this.Zo=null);this.um=Date.now();this.ug=bb();var a,b,c;if(this.Rp)for(a=0,b=this.G.length;a<b;a++)c=this.G[a],c.N||c.vo||!c.za.zf||c.J();else this.pg=!1;a=0;for(b=this.Kd.length;a<b;a++)this.Kd[a].Uw();2<=this.rc&&(a=this.Bb/this.Ab,b=this.width/this.height,this.ki=2!==this.rc&&b>a||2===this.rc&&b<a?this.height/this.Ab:this.width/this.Bb);this.Tq?this.xh[this.Tq].Fp():
this.Kd[0].Fp();this.Rp||(this.zh=1,this.trigger(T.prototype.k.Xm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.zz&&c.zz();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ha(!1);this.kc&&AppMobi.webview.execute("onGameReady();")};f.prototype.Ha=function(a,b,d){if(this.Ga){var h=bb();if(d||!this.Ui||a){a||(c?this.jp=c(this.Ft):this.Hp=setTimeout(this.Ft,
this.xf?1:16));b=b||h;var k=this.rc;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.fe)||this.ng)&&0<this.De&&(k=this.De);0<k&&(!this.nl||window.self!==window.top)&&(k=window.innerHeight,this.bj===window.innerWidth&&this.aj===k||this.setSize(g(),p()));this.Qa||(d?(this.Sk||(this.Kn=jQuery(this.canvas).css("margin")||"0",this.Sk=!0),this.Oi||this.He||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/
2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Sk?(this.Oi||this.He||jQuery(this.canvas).css("margin",this.Kn),this.Kn="",this.Sk=!1,0===this.rc&&this.setSize(Math.round(this.Cs/this.devicePixelRatio),Math.round(this.Bs/this.devicePixelRatio),!0)):(this.Cs=this.width,this.Bs=this.height));this.pg&&(d=this.Aq(),this.zh=this.Nd,d&&(this.pg=!1,this.Nd=1,this.trigger(T.prototype.k.Xm,null)));this.pz(b);!this.ua&&!this.Uc||this.yo||this.Sj||a||(this.ua=
!1,this.D?this.Xb():this.Qc(),this.Rj&&(this.canvas&&this.canvas.toDataURL&&(this.tt=this.canvas.toDataURL(this.Rj[0],this.Rj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.tt),this.trigger(T.prototype.k.dv,null)),this.Rj=null));this.kB||(this.Rd++,this.dg++,this.Yk++);this.qj+=bb()-h}}};f.prototype.pz=function(a){var b,c,d,h,k,e,m,q;1E3<=a-this.ug&&(this.ug+=1E3,1E3<=a-this.ug&&(this.ug=a),this.Jn=this.Yk,this.Yk=0,this.tn=this.qj,this.qj=0);0!==this.ql&&(b=a-this.ql,0>b&&(b=0),this.sf=b/1E3,
.5<this.sf?this.sf=0:this.sf>1/this.qs&&(this.sf=1/this.qs));this.ql=a;this.rf=this.sf*this.Pf;this.yb.add(this.rf);this.cf.add(this.sf);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ng)&&!this.fe;2<=this.rc||a&&0<this.De?(b=this.Bb/this.Ab,c=this.width/this.height,d=this.rc,a&&0<this.De&&(d=this.De),this.ki=2!==d&&c>b||2===d&&c<b?this.height/this.Ab:this.width/this.Bb,this.Ga&&(this.Ga.sp(this.Ga.scrollX),this.Ga.tp(this.Ga.scrollY))):
this.ki=this.yf?this.devicePixelRatio:1;this.Pb();this.Vc++;this.qe.$z();this.Vc--;this.Pb();this.Vc++;c=this.zs.$e();a=0;for(b=c.length;a<b;a++)c[a].qB();a=0;for(b=this.G.length;a<b;a++)if(e=this.G[a],!e.N&&(e.fb.length||e.Sa.length))for(c=0,d=e.j.length;c<d;c++)for(m=e.j[c],h=0,k=m.U.length;h<k;h++)m.U[h].Ha();a=0;for(b=this.G.length;a<b;a++)if(e=this.G[a],!e.N&&(e.fb.length||e.Sa.length))for(c=0,d=e.j.length;c<d;c++)for(m=e.j[c],h=0,k=m.U.length;h<k;h++)q=m.U[h],q.Ss&&q.Ss();c=this.Ro.$e();a=0;
for(b=c.length;a<b;a++)c[a].Ha();this.Vc--;this.Vy();for(a=0;this.ve&&10>a++;)this.Mq(this.ve);a=0;for(b=this.Ae.length;a<b;a++)this.Ae[a].eo=!1;this.Ga.ag&&this.Ga.ag.ob();I(this.Hj);this.Eo=!1;this.Vc++;a=0;for(b=this.G.length;a<b;a++)if(e=this.G[a],!e.N&&(e.fb.length||e.Sa.length))for(c=0,d=e.j.length;c<d;c++)for(m=e.j[c],h=0,k=m.U.length;h<k;h++)q=m.U[h],q.Bm&&q.Bm();c=this.As.$e();a=0;for(b=c.length;a<b;a++)c[a].Bm();this.Vc--};f.prototype.Ag=function(){var a,b,c,d,h,k,e,m,q;a=0;for(b=this.G.length;a<
b;a++)if(e=this.G[a],!e.N)for(c=0,d=e.j.length;c<d;c++)if(m=e.j[c],m.Ag&&m.Ag(),m.U)for(h=0,k=m.U.length;h<k;h++)q=m.U[h],q.Ag&&q.Ag()};f.prototype.Mq=function(a){var b=this.Ga;this.Ga.oA();var c,d,h,k,e,m,q;if(this.D)for(c=0,d=this.G.length;c<d;c++)e=this.G[c],e.N||!e.Gm||e.global&&0!==e.j.length||-1!==a.Mi.indexOf(e)||e.Gm();b==a&&I(this.qe.Dc);I(this.Hj);a.Fp();c=0;for(d=this.G.length;c<d;c++)if(e=this.G[c],e.global||e.za.pm)for(a=0,b=e.j.length;a<b;a++)if(m=e.j[a],m.Vo&&m.Vo(),m.U)for(h=0,k=m.U.length;h<
k;h++)q=m.U[h],q.Vo&&q.Vo();this.Eo=this.ua=!0;this.Pb()};f.prototype.Xe=function(a){this.Ro.add(a)};f.prototype.vf=function(a){return a&&-1!==a.vj?this.sf*a.vj:this.rf};f.prototype.Qc=function(){this.Ga.Qc(this.Fa);this.kc&&this.Fa.present()};f.prototype.Xb=function(){this.Na&&(this.$f=1,this.Ga.Zf(this.D));this.Ga.Xb(this.D);this.D.Sz()};f.prototype.lk=function(a){a&&this.Lk.push(a)};f.prototype.Zs=function(a){Fa(this.Lk,a)};f.prototype.gg=function(a){a=a.toString();return this.Oe.hasOwnProperty(a)?
this.Oe[a]:null};var A=[];f.prototype.Wd=function(a){var b,c;b=a.type.name;var d=null;if(this.Yf.hasOwnProperty(b)){if(d=this.Yf[b],d.contains(a))return}else d=A.length?A.pop():new ca,this.Yf[b]=d;d.add(a);this.wf=!0;if(a.Zb)for(b=0,c=a.siblings.length;b<c;b++)this.Wd(a.siblings[b]);this.uo&&d.Xh.push(a);this.so||(this.Vc++,this.trigger(Object.getPrototypeOf(a.type.za).k.fq,a),this.Vc--)};f.prototype.Pb=function(){if(this.wf){var a,b,c,d,h,k;this.uo=!0;c=0;for(h=this.Gd.length;c<h;++c)for(a=this.Gd[c],
b=a.type,b.j.push(a),d=0,k=b.Sa.length;d<k;++d)b.Sa[d].j.push(a),b.Sa[d].Th=!0;I(this.Gd);this.Nu();Xa(this.Yf);this.wf=this.uo=!1}};f.prototype.Nu=function(){for(var a in this.Yf)this.Yf.hasOwnProperty(a)&&this.du(this.Yf[a])};f.prototype.du=function(a){var b=a.$e(),c=b[0].type,d,h,k,e,m,q;cb(c.j,a);c.Th=!0;0===c.j.length&&(c.pk=!1);d=0;for(h=c.Sa.length;d<h;++d)q=c.Sa[d],cb(q.j,a),q.Th=!0;d=0;for(h=this.qe.Dc.length;d<h;++d)if(m=this.qe.Dc[d],m.mc.hasOwnProperty(c.index)&&cb(m.mc[c.index].Ee,a),
!c.N)for(k=0,e=c.Sa.length;k<e;++k)q=c.Sa[k],m.mc.hasOwnProperty(q.index)&&cb(m.mc[q.index].Ee,a);if(m=b[0].q){if(m.ad)for(k=m.j,d=0,h=k.length;d<h;++d)e=k[d],a.contains(e)&&(e.Da(),m.Nb.update(e,e.zc,null),e.zc.set(0,0,-1,-1));cb(m.j,a);m.Mj(0)}for(d=0;d<b.length;++d)this.cu(b[d],c);a.clear();A.push(a);this.ua=!0};f.prototype.cu=function(a,b){var c,d,h;c=0;for(d=this.Lk.length;c<d;++c)this.Lk[c](a);a.dd&&b.pi.update(a,a.dd,null);(c=a.q)&&c.Nh(a,!0);if(a.U)for(c=0,d=a.U.length;c<d;++c)h=a.U[c],h.je&&
h.je(),h.behavior.Il.remove(a);this.zs.remove(a);this.Ro.remove(a);this.As.remove(a);a.je&&a.je();this.Oe.hasOwnProperty(a.uid.toString())&&delete this.Oe[a.uid.toString()];this.Ll--;100>b.Hk.length&&b.Hk.push(a)};f.prototype.Ck=function(a,b,c,d){if(a.N){var h=qa(Math.random()*a.Eh.length);return this.Ck(a.Eh[h],b,c,d)}return a.jd?this.pf(a.jd,b,!1,c,d,!1):null};var w=[];f.prototype.pf=function(a,b,c,d,h,k){var e,m,q,t;if(!a)return null;var l=this.G[a[1]],g=l.za.zf;if(this.pg&&g&&!l.vo||g&&!this.D&&
11===a[0][11])return null;var n=b;g||(b=null);var f;l.Hk.length?(f=l.Hk.pop(),f.ac=!0,l.za.O.call(f,l)):(f=new l.za.O(l),f.ac=!1);!c||k||this.Oe.hasOwnProperty(a[2].toString())?f.uid=this.wj++:f.uid=a[2];this.Oe[f.uid.toString()]=f;f.Vs=this.vs++;f.kg=l.j.length;e=0;for(m=this.Gd.length;e<m;++e)this.Gd[e].type===l&&f.kg++;f.Hi=Fb;f.toString=Gb;q=a[3];if(f.ac)Xa(f.M);else{f.M={};if("undefined"!==typeof cr_is_preview)for(f.sr=[],f.sr.length=q.length,e=0,m=q.length;e<m;e++)f.sr[e]=q[e][1];f.xb=[];f.xb.length=
q.length}e=0;for(m=q.length;e<m;e++)f.xb[e]=q[e][0];if(g){var u=a[0];f.x=ga(d)?u[0]:d;f.y=ga(h)?u[1]:h;f.z=u[2];f.width=u[3];f.height=u[4];f.depth=u[5];f.n=u[6];f.opacity=u[7];f.uc=u[8];f.vc=u[9];f.Qb=u[10];e=u[11];!this.D&&l.Z.length&&(f.Qb=e);f.qi=kb(f.Qb);this.I&&lb(f,f.Qb,this.I);if(f.ac){e=0;for(m=u[12].length;e<m;e++)for(q=0,t=u[12][e].length;q<t;q++)f.Wa[e][q]=u[12][e][q];f.Ia.set(0,0,0,0);f.dd.set(0,0,-1,-1);f.zc.set(0,0,-1,-1);f.Tb.Rh(f.Ia);I(f.kn)}else{f.Wa=u[12].slice(0);e=0;for(m=f.Wa.length;e<
m;e++)f.Wa[e]=u[12][e].slice(0);f.ya=[];f.hf=[];f.hf.length=l.Z.length;f.Ia=new ta(0,0,0,0);f.dd=new ta(0,0,-1,-1);f.zc=new ta(0,0,-1,-1);f.Tb=new ua;f.kn=[];f.B=Kb;f.Cw=Lb;f.jc=Mb;f.Da=Nb;f.Tt=Ob;f.Qp=Pb;f.ee=Qb}f.Wj=!1;f.rA=0;f.qA=0;f.pA=null;14===u.length&&(f.Wj=!0,f.rA=u[13][0],f.qA=u[13][1],f.pA=u[13][2]);e=0;for(m=l.Z.length;e<m;e++)f.hf[e]=!0;f.Ue=!0;f.Td=Rb;f.Td();f.Ut=!!f.ya.length;f.uk=!0;f.nn=!0;l.ok=!0;f.visible=!0;f.vj=-1;f.q=b;f.Ud=b.j.length;f.$f=0;"undefined"===typeof f.Ba&&(f.Ba=
null);this.ua=f.ed=!0}var p;I(w);e=0;for(m=l.Sa.length;e<m;e++)w.push.apply(w,l.Sa[e].fb);w.push.apply(w,l.fb);if(f.ac)for(e=0,m=w.length;e<m;e++){var B=w[e];p=f.U[e];p.ac=!0;B.behavior.O.call(p,B,f);u=a[4][e];q=0;for(t=u.length;q<t;q++)p.C[q]=u[q];p.J();B.behavior.Il.add(f)}else for(f.U=[],e=0,m=w.length;e<m;e++)B=w[e],p=new B.behavior.O(B,f),p.ac=!1,p.C=a[4][e].slice(0),p.J(),f.U.push(p),B.behavior.Il.add(f);u=a[5];if(f.ac)for(e=0,m=u.length;e<m;e++)f.C[e]=u[e];else f.C=u.slice(0);this.Gd.push(f);
this.wf=!0;b&&(b.ji(f,!0),1!==b.qd||1!==b.rd)&&(l.pk=!0);this.Ll++;if(l.Zb){if(f.Zb=!0,f.ac?I(f.siblings):f.siblings=[],!c&&!k){e=0;for(m=l.Ec.length;e<m;e++)if(l.Ec[e]!==l){if(!l.Ec[e].jd)return null;f.siblings.push(this.pf(l.Ec[e].jd,n,!1,g?f.x:d,g?f.y:h,!0))}e=0;for(m=f.siblings.length;e<m;e++)for(f.siblings[e].siblings.push(f),q=0;q<m;q++)e!==q&&f.siblings[e].siblings.push(f.siblings[q])}}else f.Zb=!1,f.siblings=null;f.J();e=0;for(m=f.U.length;e<m;e++)f.U[e].Oz&&f.U[e].Oz();return f};f.prototype.Tn=
function(a){var b,c;b=0;for(c=this.Ga.ca.length;b<c;b++){var d=this.Ga.ca[b];if(nb(d.name,a))return d}return null};f.prototype.Ei=function(a){a=qa(a);0>a&&(a=0);a>=this.Ga.ca.length&&(a=this.Ga.ca.length-1);return this.Ga.ca[a]};f.prototype.rn=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].aa().ja=!0};f.prototype.Ej=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Ej()};f.prototype.Hf=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Hf()};f.prototype.Md=function(a){var b,c;b=0;for(c=a.length;b<
c;b++)a[b].Md()};f.prototype.Pt=function(a){if(a.ok){var b,c,d=a.j;b=0;for(c=d.length;b<c;++b)d[b].Qp();d=this.Gd;b=0;for(c=d.length;b<c;++b)d[b].type===a&&d[b].Qp();a.ok=!1}};f.prototype.On=function(a,b,c,d){var h,k,e=a?1!==a.qd||1!==a.rd:!1;if(b.N)for(a=0,h=b.Eh.length;a<h;++a)k=b.Eh[a],e||k.pk?Da(d,k.j):(this.Pt(k),k.pi.cm(c,d));else e||b.pk?Da(d,b.j):(this.Pt(b),b.pi.cm(c,d))};f.prototype.jr=function(a,b,c,d){var h,k;h=0;for(k=b.length;h<k;++h)this.On(a,b[h],c,d)};f.prototype.Gy=function(a,b,
c){var d=this.ut;d&&this.jr(a,d.Jl,b,c)};f.prototype.zy=function(a,b,c){var d=this.Mr;d&&this.jr(a,d.Jl,b,c)};f.prototype.At=function(a,b,c,d){var h=a.aa(),k,e,m,q,t,f;if(h.ja)for(d||(h.ja=!1,I(h.j)),k=0,q=a.j.length;k<q;k++){if(m=a.j[k],m.Da(),t=m.q.ic(b,c,!0),f=m.q.ic(b,c,!1),m.jc(t,f)){if(d)return!1;h.j.push(m)}}else{k=e=0;for(q=h.j.length;k<q;k++)if(m=h.j[k],m.Da(),t=m.q.ic(b,c,!0),f=m.q.ic(b,c,!1),m.jc(t,f)){if(d)return!1;h.j[e]=h.j[k];e++}d||(h.j.length=e)}a.Dd();return d?!0:h.co()};f.prototype.fc=
function(a,b){if(!(a&&b&&a!==b&&a.ed&&b.ed))return!1;a.Da();b.Da();var c=a.q,d=b.q,h,k,e,m,q,t,f,l;if(c===d||c.qd===d.qd&&d.rd===d.rd&&c.scale===d.scale&&c.n===d.n&&c.Vd===d.Vd){if(!a.Ia.az(b.Ia)||!a.Tb.tr(b.Tb)||a.Wj&&b.Wj)return!1;if(a.Wj)return this.Bt(a,b);if(b.Wj)return this.Bt(b,a);f=a.Ba&&!a.Ba.mh();h=b.Ba&&!b.Ba.mh();if(!f&&!h)return!0;f?(a.Ba.Qg(a.width,a.height,a.n),f=a.Ba):(this.Qd.Qh(a.Tb,a.x,a.y,a.width,a.height),f=this.Qd);h?(b.Ba.Qg(b.width,b.height,b.n),l=b.Ba):(this.Qd.Qh(b.Tb,b.x,
b.y,b.width,b.height),l=this.Qd);return f.Ni(l,b.x-a.x,b.y-a.y)}f=a.Ba&&!a.Ba.mh();h=b.Ba&&!b.Ba.mh();f?(a.Ba.Qg(a.width,a.height,a.n),this.Qd.kt(a.Ba)):this.Qd.Qh(a.Tb,a.x,a.y,a.width,a.height);f=this.Qd;h?(b.Ba.Qg(b.width,b.height,b.n),this.Gp.kt(b.Ba)):this.Gp.Qh(b.Tb,b.x,b.y,b.width,b.height);l=this.Gp;h=0;for(k=f.Od;h<k;h++)e=2*h,m=e+1,q=f.Cb[e],t=f.Cb[m],f.Cb[e]=c.Ta(q+a.x,t+a.y,!0),f.Cb[m]=c.Ta(q+a.x,t+a.y,!1);f.Da();h=0;for(k=l.Od;h<k;h++)e=2*h,m=e+1,q=l.Cb[e],t=l.Cb[m],l.Cb[e]=d.Ta(q+b.x,
t+b.y,!0),l.Cb[m]=d.Ta(q+b.x,t+b.y,!1);l.Da();return f.Ni(l,0,0)};var N=new ua;new ta(0,0,0,0);var U=[];f.prototype.Bt=function(a,b){var c,d,h,k,e=b.Ia,m=a.x,q=a.y;a.iB(e,U);var t=b.Ba&&!b.Ba.mh();c=0;for(d=U.length;c<d;++c)if(h=U[c],k=h.rB,e.bz(k,m,q)&&(N.Rh(k),N.offset(m,q),N.tr(b.Tb)))if(t)if(b.Ba.Qg(b.width,b.height,b.n),h.ep){if(h.ep.Ni(b.Ba,b.x-(m+k.left),b.y-(q+k.top)))return I(U),!0}else{if(this.Qd.Qh(N,0,0,k.right-k.left,k.bottom-k.top),this.Qd.Ni(b.Ba,b.x,b.y))return I(U),!0}else if(h.ep){if(this.Qd.Qh(b.Tb,
0,0,b.width,b.height),h.ep.Ni(this.Qd,-(m+k.left),-(q+k.top)))return I(U),!0}else return I(U),!0;I(U);return!1};f.prototype.Lt=function(a,b){if(!b)return!1;var c,d,h,k,e;c=0;for(d=a.fb.length;c<d;c++)if(a.fb[c].behavior instanceof b)return!0;if(!a.N)for(c=0,d=a.Sa.length;c<d;c++)for(e=a.Sa[c],h=0,k=e.fb.length;h<k;h++)if(e.fb[h].behavior instanceof b)return!0;return!1};f.prototype.Lp=function(a){return this.Lt(a,gc.NA)};f.prototype.Mp=function(a){return this.Lt(a,gc.OA)};var Q=[];f.prototype.qb=function(a){var b,
c,d;a.Da();this.Gy(a.q,a.Ia,Q);b=0;for(c=Q.length;b<c;++b)if(d=Q[b],d.M.solidEnabled&&this.fc(a,d))return I(Q),d;I(Q);return null};var R=[];f.prototype.We=function(a,b){var c=null;b&&(c=R,I(c));a.Da();this.zy(a.q,a.Ia,Q);var d,h,k;d=0;for(h=Q.length;d<h;++d)if(k=Q[d],k.M.jumpthruEnabled&&this.fc(a,k))if(b)c.push(k);else return I(Q),k;I(Q);return c};f.prototype.sd=function(a,b,c,d,h,k){d=d||50;var e=a.x,m=a.y,q,t=null,f=null;for(q=0;q<d;q++)if(a.x=e+b*q,a.y=m+c*q,a.B(),!this.fc(a,t)&&((t=this.qb(a))&&
(f=t),!t&&(h&&(k?t=this.fc(a,k)?k:null:t=this.We(a),t&&(f=t)),!t)))return f&&this.hp(a,b,c,f),!0;a.x=e;a.y=m;a.B();return!1};f.prototype.hp=function(a,b,c,d){var h=2,k,e=!1;k=!1;for(var m=a.x,q=a.y;16>=h;)k=1/h,h*=2,a.x+=b*k*(e?1:-1),a.y+=c*k*(e?1:-1),a.B(),this.fc(a,d)?k=e=!0:(k=e=!1,m=a.x,q=a.y);k&&(a.x=m,a.y=q,a.B())};f.prototype.Xs=function(a,b){var c=ga(b)?100:b,d=0,h=a.x,k=a.y,e=0,m=0,q=0,t=this.qb(a);if(!t)return!0;for(;d<=c;){switch(e){case 0:m=0;q=-1;d++;break;case 1:m=1;q=-1;break;case 2:m=
1;q=0;break;case 3:q=m=1;break;case 4:m=0;q=1;break;case 5:m=-1;q=1;break;case 6:m=-1;q=0;break;case 7:q=m=-1}e=(e+1)%8;a.x=qa(h+m*d);a.y=qa(k+q*d);a.B();if(!this.fc(a,t)&&(t=this.qb(a),!t))return!0}a.x=h;a.y=k;a.B();return!1};f.prototype.Mh=function(a,b){a.ed&&b.ed&&this.Hj.push([a,b])};f.prototype.Pw=function(a,b){var c,d,h;c=0;for(d=this.Hj.length;c<d;c++)if(h=this.Hj[c],h[0]==a&&h[1]==b||h[0]==b&&h[1]==a)return!0;return!1};f.prototype.Mw=function(a,b,c){var d=a.x,h=a.y,k=na(10,Ta(b,c,d,h)),e=
Ma(b,c,d,h),m=this.qb(a);if(!m)return Ja(e+pa);var q=m,t,f,l,g,n=J(5);for(t=1;36>t;t++)if(f=e-t*n,a.x=b+Math.cos(f)*k,a.y=c+Math.sin(f)*k,a.B(),!this.fc(a,q)&&(q=this.qb(a),!q)){l=f;break}36===t&&(l=Ja(e+pa));q=m;for(t=1;36>t;t++)if(f=e+t*n,a.x=b+Math.cos(f)*k,a.y=c+Math.sin(f)*k,a.B(),!this.fc(a,q)&&(q=this.qb(a),!q)){g=f;break}36===t&&(g=Ja(e+pa));a.x=d;a.y=h;a.B();if(g===l)return g;a=Pa(g,l)/2;a=Ra(g,l)?Ja(l+a+pa):Ja(g+a);l=Math.cos(e);e=Math.sin(e);g=Math.cos(a);a=Math.sin(a);b=l*g+e*a;return Ma(0,
0,l-2*b*g,e-2*b*a)};var V=-1;f.prototype.trigger=function(a,b,c){if(!this.Ga)return!1;var d=this.Ga.ag;if(!d)return!1;var h=!1,k,e,m;V++;var q=d.yn;e=0;for(m=q.length;e<m;++e)k=this.It(a,b,q[e],c),h=h||k;k=this.It(a,b,d,c);V--;return h||k};f.prototype.It=function(a,b,c,d){var h=!1,k,e,m,q;if(b)for(m=this.Jp(a,b,b.type.name,c,d),h=h||m,q=b.type.Sa,k=0,e=q.length;k<e;++k)m=this.Jp(a,b,q[k].name,c,d),h=h||m;else m=this.Jp(a,b,"system",c,d),h=h||m;return h};f.prototype.Jp=function(a,b,c,d,h){var k,e=
!1,m=!1,m="undefined"!==typeof h,q=(m?d.Rq:d.Jt)[c];if(!q)return e;var t=null;d=0;for(k=q.length;d<k;++d)if(q[d].method==a){t=q[d].yi;break}if(!t)return e;var f;m?f=t[h]:f=t;if(!f)return null;d=0;for(k=f.length;d<k;d++)a=f[d][0],h=f[d][1],m=this.jy(b,c,a,h),e=e||m;return e};f.prototype.jy=function(a,b,c,d){var h,k,e=!1;this.Kp++;var m=this.kb().gb;m&&this.Ej(m.Mf);var q=1<this.Kp;this.Ej(c.Mf);q&&this.Uz();var t=this.$l(c);t.gb=c;a&&(h=this.types[b].aa(),h.ja=!1,I(h.j),h.j[0]=a,this.types[b].Dd());
a=!0;if(c.parent){b=t.zt;for(h=c.parent;h;)b.push(h),h=h.parent;b.reverse();h=0;for(k=b.length;h<k;h++)if(!b[h].bA()){a=!1;break}}a&&(this.dg++,c.od?c.aA(d):c.ob(),e=e||t.tg);this.Vl();q&&this.Nz();this.Md(c.Mf);m&&this.Md(m.Mf);this.wf&&0===this.Vc&&0===V&&!this.wo&&this.Pb();this.Kp--;return e};f.prototype.fh=function(){var a=this.kb();return a.gb.tb[a.sb]};f.prototype.vy=function(){var a=this.kb();return a.gb.bd[a.pc]};f.prototype.Uz=function(){this.Dl++;this.Dl>=this.Lo.length&&this.Lo.push([])};
f.prototype.Nz=function(){this.Dl--};f.prototype.br=function(){return this.Lo[this.Dl]};f.prototype.$l=function(a){this.Nk++;this.Nk>=this.Dn.length&&this.Dn.push(new Sb);var b=this.kb();b.reset(a);return b};f.prototype.Vl=function(){this.Nk--};f.prototype.kb=function(){return this.Dn[this.Nk]};f.prototype.Ws=function(a){this.Bh++;this.Bh>=this.rj.length&&this.rj.push(aa({name:a,index:0,Va:!1}));var b=this.Pn();b.name=a;b.index=0;b.Va=!1;return b};f.prototype.Qs=function(){this.Bh--};f.prototype.Pn=
function(){return this.rj[this.Bh]};f.prototype.dr=function(a,b){for(var c,d,h,k,e,m;b;){c=0;for(d=b.wd.length;c<d;c++)if(m=b.wd[c],m instanceof Tb&&nb(a,m.name))return m;b=b.parent}c=0;for(d=this.Ae.length;c<d;c++)for(e=this.Ae[c],h=0,k=e.tf.length;h<k;h++)if(m=e.tf[h],m instanceof Tb&&nb(a,m.name))return m;return null};f.prototype.fr=function(a){var b,c;b=0;for(c=this.Kd.length;b<c;b++)if(this.Kd[b].qa===a)return this.Kd[b];return null};f.prototype.bl=function(a){var b,c;b=0;for(c=this.G.length;b<
c;b++)if(this.G[b].qa===a)return this.G[b];return null};f.prototype.wy=function(a){var b,c;b=0;for(c=this.kf.length;b<c;b++)if(this.kf[b].qa===a)return this.kf[b];return null};f.prototype.cx=function(a,b){this.Rj=[a,b];this.ua=!0};f.prototype.Vy=function(){var a=this,c=this.rp,d=this.Je,h=this.yl,k=!1;this.pt&&(k=!0,c="__c2_continuouspreview",this.pt=!1);if(c.length){this.Pb();d=this.fA();if(window.indexedDB&&!this.Uc)l(c,d,function(){ea("Saved state to IndexedDB storage ("+d.length+" bytes)");a.Je=
d;a.trigger(T.prototype.k.Zm,null);a.Je="";k&&b()},function(h){try{localStorage.setItem("__c2save_"+c,d),ea("Saved state to WebStorage ("+d.length+" bytes)"),a.Je=d,a.trigger(T.prototype.k.Zm,null),a.Je="",k&&b()}catch(e){ea("Failed to save game state: "+h+"; "+e)}});else try{localStorage.setItem("__c2save_"+c,d),ea("Saved state to WebStorage ("+d.length+" bytes)"),a.Je=d,this.trigger(T.prototype.k.Zm,null),a.Je="",k&&b()}catch(m){ea("Error saving to WebStorage: "+m)}this.$b=this.yl=this.rp=""}if(h.length){if(window.indexedDB&&
!this.Uc)e(h,function(b){b?(a.$b=b,ea("Loaded state from IndexedDB storage ("+a.$b.length+" bytes)")):(a.$b=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+a.$b.length+" bytes)"));a.Sj=!1;a.$b.length||a.trigger(T.prototype.k.Wm,null)},function(){a.$b=localStorage.getItem("__c2save_"+h)||"";ea("Loaded state from WebStorage ("+a.$b.length+" bytes)");a.Sj=!1;a.$b.length||a.trigger(T.prototype.k.Wm,null)});else{try{this.$b=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+
this.$b.length+" bytes)")}catch(q){this.$b=""}this.Sj=!1;a.$b.length||a.trigger(T.prototype.k.Wm,null)}this.rp=this.yl=""}this.$b.length&&(this.Pb(),this.oz(this.$b),this.Je=this.$b,this.trigger(T.prototype.k.uv,null),this.$b=this.Je="")};f.prototype.fA=function(){var a,b,c,h,k,e,m,q={c2save:!0,version:1,rt:{time:this.yb.V,walltime:this.cf.V,timescale:this.Pf,tickcount:this.Rd,execcount:this.dg,next_uid:this.wj,running_layout:this.Ga.qa,start_time_offset:Date.now()-this.um},types:{},layouts:{},events:{groups:{},
cnds:{},acts:{},vars:{}}};a=0;for(b=this.G.length;a<b;a++)if(k=this.G[a],!k.N&&!this.Lp(k)){e={instances:[]};Wa(k.M)&&(e.ex=d(k.M));c=0;for(h=k.j.length;c<h;c++)e.instances.push(this.qp(k.j[c]));q.types[k.qa.toString()]=e}a=0;for(b=this.Kd.length;a<b;a++)c=this.Kd[a],q.layouts[c.qa.toString()]=c.Ua();h=q.events.groups;a=0;for(b=this.kf.length;a<b;a++)c=this.kf[a],h[c.qa.toString()]=this.gh[c.Ii].hg;b=q.events.cnds;for(m in this.Rg)this.Rg.hasOwnProperty(m)&&(a=this.Rg[m],Wa(a.M)&&(b[m]={ex:d(a.M)}));
b=q.events.acts;for(m in this.Og)this.Og.hasOwnProperty(m)&&(a=this.Og[m],Wa(a.M)&&(b[m]={ex:a.M}));b=q.events.vars;for(m in this.Yh)this.Yh.hasOwnProperty(m)&&(a=this.Yh[m],a.ll||a.parent&&!a.Wi||(b[m]=a.data));q.system=this.qe.Ua();return JSON.stringify(q)};f.prototype.Ys=function(){var a,b,c,d,h,k;this.Oe={};a=0;for(b=this.G.length;a<b;a++)if(c=this.G[a],!c.N)for(d=0,h=c.j.length;d<h;d++)k=c.j[d],this.Oe[k.uid.toString()]=k};f.prototype.oz=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Ri=
!0;var b=a.rt;this.yb.reset();this.yb.V=b.time;this.cf.reset();this.cf.V=b.walltime||0;this.Pf=b.timescale;this.Rd=b.tickcount;this.dg=b.execcount;this.um=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.Ga.qa)if(c=this.fr(c))this.Mq(c);else return;var d,h,k,e,m,q,t;q=a.types;for(h in q)if(q.hasOwnProperty(h)&&(e=this.bl(parseInt(h,10)))&&!e.N&&!this.Lp(e)){q[h].ex?e.M=q[h].ex:Xa(e.M);m=e.j;k=q[h].instances;c=0;for(d=oa(m.length,k.length);c<d;c++)this.zl(m[c],k[c]);c=k.length;for(d=
m.length;c<d;c++)this.Wd(m[c]);c=m.length;for(d=k.length;c<d;c++){m=null;if(e.za.zf&&(m=this.Ga.al(k[c].w.l),!m))continue;m=this.pf(e.jd,m,!1,0,0,!0);this.zl(m,k[c])}e.Th=!0}this.Pb();this.Ys();d=a.layouts;for(h in d)d.hasOwnProperty(h)&&(c=this.fr(parseInt(h,10)))&&c.ab(d[h]);d=a.events.groups;for(h in d)d.hasOwnProperty(h)&&(c=this.wy(parseInt(h,10)))&&this.gh[c.Ii]&&this.gh[c.Ii].Kj(d[h]);c=a.events.cnds;for(h in c)c.hasOwnProperty(h)&&this.Rg.hasOwnProperty(h)&&(this.Rg[h].M=c[h].ex);c=a.events.acts;
for(h in c)c.hasOwnProperty(h)&&this.Og.hasOwnProperty(h)&&(this.Og[h].M=c[h].ex);c=a.events.vars;for(h in c)c.hasOwnProperty(h)&&this.Yh.hasOwnProperty(h)&&(this.Yh[h].data=c[h]);this.wj=b.next_uid;this.Ri=!1;c=0;for(d=this.Rk.length;c<d;++c)m=this.Rk[c],this.trigger(Object.getPrototypeOf(m.type.za).k.Rf,m);I(this.Rk);this.qe.ab(a.system);c=0;for(d=this.G.length;c<d;c++)if(e=this.G[c],!e.N&&!this.Lp(e))for(h=0,a=e.j.length;h<a;h++){m=e.j[h];if(e.Zb)for(q=m.Hi(),I(m.siblings),b=0,k=e.Ec.length;b<
k;b++)t=e.Ec[b],e!==t&&m.siblings.push(t.j[q]);m.zd&&m.zd();if(m.U)for(b=0,k=m.U.length;b<k;b++)q=m.U[b],q.zd&&q.zd()}this.ua=!0}};f.prototype.qp=function(a,b){var c,h,k,e,m;e=a.type;k=e.za;var q={};b?q.c2=!0:q.uid=a.uid;Wa(a.M)&&(q.ex=d(a.M));if(a.xb&&a.xb.length)for(q.ivs={},c=0,h=a.xb.length;c<h;c++)q.ivs[a.type.qo[c].toString()]=a.xb[c];if(k.zf){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.q.qa,zi:a.ee()};0!==a.n&&(k.a=a.n);1!==a.opacity&&(k.o=a.opacity);.5!==a.uc&&(k.hX=a.uc);.5!==a.vc&&(k.hY=a.vc);
0!==a.Qb&&(k.bm=a.Qb);a.visible||(k.v=a.visible);a.ed||(k.ce=a.ed);-1!==a.vj&&(k.mts=a.vj);if(e.Z.length)for(k.fx=[],c=0,h=e.Z.length;c<h;c++)m=e.Z[c],k.fx.push({name:m.name,active:a.hf[m.index],params:a.Wa[m.index]});q.w=k}if(a.U&&a.U.length)for(q.behs={},c=0,h=a.U.length;c<h;c++)e=a.U[c],e.Ua&&(q.behs[e.type.qa.toString()]=e.Ua());a.Ua&&(q.data=a.Ua());return q};f.prototype.yy=function(a,b){var c,d;c=0;for(d=a.qo.length;c<d;c++)if(a.qo[c]===b)return c;return-1};f.prototype.uy=function(a,b){var c,
d;c=0;for(d=a.U.length;c<d;c++)if(a.U[c].type.qa===b)return c;return-1};f.prototype.zl=function(a,b,c){var d,h,k,e,m;m=a.type;e=m.za;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.M=b.ex:Xa(a.M);if(h=b.ivs)for(d in h)h.hasOwnProperty(d)&&(k=this.yy(m,parseInt(d,10)),0>k||k>=a.xb.length||(a.xb[k]=h[d]));if(e.zf){k=b.w;a.q.qa!==k.l&&(h=a.q,a.q=this.Ga.al(k.l),a.q?(h.Nh(a,!0),a.q.ji(a,!0),a.B(),a.q.Mj(0)):(a.q=h,c||this.Wd(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Ud=k.zi;a.n=k.hasOwnProperty("a")?
k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.uc=k.hasOwnProperty("hX")?k.hX:.5;a.vc=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.ed=k.hasOwnProperty("ce")?k.ce:!0;a.vj=k.hasOwnProperty("mts")?k.mts:-1;a.Qb=k.hasOwnProperty("bm")?k.bm:0;a.qi=kb(a.Qb);this.I&&lb(a,a.Qb,this.I);a.B();if(k.hasOwnProperty("fx"))for(c=0,h=k.fx.length;c<h;c++)e=m.Rn(k.fx[c].name),0>e||(a.hf[e]=k.fx[c].active,a.Wa[e]=k.fx[c].params);a.Td()}if(m=b.behs)for(d in m)m.hasOwnProperty(d)&&(c=this.uy(a,
parseInt(d,10)),0>c||a.U[c].ab(m[d]));b.data&&a.ab(b.data)};Ub=function(a){return new f(document.getElementById(a))};Vb=function(a,b){return new f({dc:!0,width:a,height:b})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.li=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,p){var f=window.cr_getC2Runtime();f&&f.cx(g,p)};
window.cr_sizeCanvas=function(g,p){if(0!==g&&0!==p){var f=window.cr_getC2Runtime();f&&f.setSize(g,p)}};window.cr_setSuspended=function(g){var p=window.cr_getC2Runtime();p&&p.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.ag=null;this.scrollX=this.b.Bb/2;this.scrollY=this.b.Ab/2;this.scale=1;this.n=0;this.dh=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Mt=b[3];this.nt=b[4];this.qa=b[5];var c=b[6],d,e;this.ca=[];this.Mi=[];d=0;for(e=c.length;d<e;d++){var f=new Wb(this,c[d]);f.xs=d;this.ca.push(f)}c=b[7];this.mg=[];d=0;for(e=c.length;d<e;d++){var f=c[d],l=this.b.G[f[1]];l.jd||(l.jd=f);this.mg.push(f);-1===this.Mi.indexOf(l)&&this.Mi.push(l)}this.Z=[];this.ya=[];this.Ue=
!0;this.Wa=[];d=0;for(e=b[8].length;d<e;d++)this.Z.push({id:b[8][d][0],name:b[8][d][1],pb:-1,Lc:!1,Ra:!0,index:d}),this.Wa.push(b[8][d][2].slice(0));this.Td();this.If=new ta(0,0,1,1);this.kp=new ta(0,0,1,1);this.Gf={}}function p(a,b){return a.Ud-b.Ud}function f(a,b){this.$a=a;this.b=a.b;this.j=[];this.scale=1;this.n=0;this.ye=!1;this.Ye=new ta(0,0,0,0);this.Gt=new ua;this.La=this.Ka=this.Ma=this.Ja=0;this.Ig=!1;this.ef=-1;this.sn=0;this.name=b[0];this.index=b[1];this.qa=b[2];this.visible=b[3];this.Ed=
b[4];this.Sd=b[5];this.qd=b[6];this.rd=b[7];this.opacity=b[8];this.Xk=b[9];this.ad=b[10];this.Vd=b[11];this.Qb=b[12];this.Dx=b[13];this.qi="source-over";this.Wb=this.cc=0;this.Nb=null;this.Ke=n();this.Pd=!0;this.wh=new ta(0,0,-1,-1);this.Ib=new ta(0,0,-1,-1);this.ad&&(this.Nb=new jb(this.b.Bb,this.b.Ab));this.oe=!1;var c=b[14],d,e;this.xt=[];this.Tc=[];this.si=[];d=0;for(e=c.length;d<e;d++){var f=c[d],l=this.b.G[f[1]];l.jd||(l.jd=f,l.$w=this.index);this.Tc.push(f);-1===this.$a.Mi.indexOf(l)&&this.$a.Mi.push(l)}Aa(this.xt,
this.Tc);this.Z=[];this.ya=[];this.Ue=!0;this.Wa=[];d=0;for(e=b[15].length;d<e;d++)this.Z.push({id:b[15][d][0],name:b[15][d][1],pb:-1,Lc:!1,Ra:!0,index:d}),this.Wa.push(b[15][d][2].slice(0));this.Td();this.If=new ta(0,0,1,1);this.kp=new ta(0,0,1,1)}function n(){return b.length?b.pop():[]}function r(a){I(a);b.push(a)}g.prototype.eA=function(a){var b=a.type.qa.toString();this.Gf.hasOwnProperty(b)||(this.Gf[b]=[]);this.Gf[b].push(this.b.qp(a))};g.prototype.lr=function(){var a=this.ca[0];return!a.Sd&&
1===a.opacity&&!a.Xk&&a.visible};g.prototype.Td=function(){I(this.ya);this.Ue=!0;var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Ra&&(this.ya.push(c),c.Lc||(this.Ue=!1))};g.prototype.Qn=function(a){var b,c,d;b=0;for(c=this.Z.length;b<c;b++)if(d=this.Z[b],d.name===a)return d;return null};var l=[],e=!0;g.prototype.Fp=function(){this.nt&&(this.ag=this.b.En[this.nt],this.ag.Np());this.b.Ga=this;this.scrollX=this.b.Bb/2;this.scrollY=this.b.Ab/2;var a,b,c,d,f,g,n;a=0;for(c=this.b.G.length;a<c;a++)if(b=
this.b.G[a],!b.N)for(f=b.j,b=0,d=f.length;b<d;b++)if(g=f[b],g.q){var m=g.q.xs;m>=this.ca.length&&(m=this.ca.length-1);g.q=this.ca[m];-1===g.q.j.indexOf(g)&&g.q.j.push(g);g.q.Ig=!0}if(!e)for(a=0,c=this.ca.length;a<c;++a)this.ca[a].j.sort(p);I(l);this.Kw();a=0;for(c=this.ca.length;a<c;a++)g=this.ca[a],g.Vw(),g.Jm();f=!1;if(!this.dh){for(n in this.Gf)if(this.Gf.hasOwnProperty(n)&&(b=this.b.bl(parseInt(n,10)))&&!b.N&&this.b.Mp(b)){d=this.Gf[n];a=0;for(c=d.length;a<c;a++){g=null;if(b.za.zf&&(g=this.al(d[a].w.l),
!g))continue;g=this.b.pf(b.jd,g,!1,0,0,!0);this.b.zl(g,d[a]);f=!0;l.push(g)}I(d)}a=0;for(c=this.ca.length;a<c;a++)this.ca[a].j.sort(p),this.ca[a].Ig=!0}f&&(this.b.Pb(),this.b.Ys());for(a=0;a<l.length;a++)if(g=l[a],g.type.Zb)for(c=g.Hi(),b=0,d=g.type.Ec.length;b<d;b++)n=g.type.Ec[b],g.type!==n&&(n.j.length>c?g.siblings.push(n.j[c]):n.jd&&(f=this.b.pf(n.jd,g.q,!0,g.x,g.y,!0),this.b.Pb(),n.Hm(),g.siblings.push(f),l.push(f)));a=0;for(c=this.mg.length;a<c;a++)this.b.pf(this.mg[a],null,!0);this.b.ve=null;
this.b.Pb();if(this.b.Fa&&!this.b.Qa)for(a=0,c=this.b.G.length;a<c;a++)n=this.b.G[a],!n.N&&n.j.length&&n.Yl&&n.Yl(this.b.Fa);if(this.b.Ri)Aa(this.b.Rk,l);else for(a=0,c=l.length;a<c;a++)g=l[a],this.b.trigger(Object.getPrototypeOf(g.type.za).k.Rf,g);I(l);this.b.Ri||this.b.trigger(T.prototype.k.lq,null);this.dh=!1};g.prototype.Uw=function(){var a,b,c,d,e;b=a=0;for(c=this.mg.length;a<c;a++)d=this.mg[a],e=this.b.G[d[1]],e.global?e.Zb||this.b.pf(d,null,!0):(this.mg[b]=d,b++);za(this.mg,b)};g.prototype.oA=
function(){this.b.Ri||this.b.trigger(T.prototype.k.kq,null);this.b.so=!0;I(this.b.qe.Dc);var a,b,c,d,f,l;if(!this.dh)for(a=0,b=this.ca.length;a<b;a++)for(this.ca[a].Pp(),f=this.ca[a].j,c=0,d=f.length;c<d;c++)l=f[c],l.type.global||this.b.Mp(l.type)&&this.eA(l);a=0;for(b=this.ca.length;a<b;a++){f=this.ca[a].j;c=0;for(d=f.length;c<d;c++)l=f[c],l.type.global||this.b.Wd(l);this.b.Pb();I(f);this.ca[a].Ig=!0}a=0;for(b=this.b.G.length;a<b;a++)if(f=this.b.G[a],!(f.global||f.za.zf||f.za.pm||f.N)){c=0;for(d=
f.j.length;c<d;c++)this.b.Wd(f.j[c]);this.b.Pb()}e=!1;this.b.so=!1};new ta(0,0,0,0);g.prototype.Qc=function(a){var b,c=a,d=!1,e=!this.b.Rc;e&&(this.b.xl||(this.b.xl=document.createElement("canvas"),b=this.b.xl,b.width=this.b.R,b.height=this.b.P,this.b.Sr=b.getContext("2d"),d=!0),b=this.b.xl,c=this.b.Sr,b.width!==this.b.R&&(b.width=this.b.R,d=!0),b.height!==this.b.P&&(b.height=this.b.P,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=
this.b.ea,c.imageSmoothingEnabled=this.b.ea));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.gn&&!this.lr()&&c.clearRect(0,0,this.b.R,this.b.P);var f,l,d=0;for(f=this.ca.length;d<f;d++)l=this.ca[d],l.visible&&0<l.opacity&&11!==l.Qb&&(l.j.length||!l.Sd)?l.Qc(c):l.Jm();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Zf=function(a){a.et(!0);this.b.lb||(this.b.lb=a.Oc(this.b.R,this.b.P,this.b.ea));if(this.b.lb.Wf!==this.b.R||this.b.lb.Vf!==this.b.P)a.deleteTexture(this.b.lb),
this.b.lb=a.Oc(this.b.R,this.b.P,this.b.ea);a.ud(this.b.lb);this.b.Rc||a.Te(this.b.R,this.b.P);var b,c;for(b=this.ca.length-1;0<=b;--b)c=this.ca[b],c.visible&&1===c.opacity&&c.Ue&&0===c.Qb&&(c.j.length||!c.Sd)?c.Zf(a):c.Jm();a.et(!1)};g.prototype.Xb=function(a){var b=0<this.ya.length||this.b.Wh||!this.b.Rc||this.b.Na;if(b){this.b.lb||(this.b.lb=a.Oc(this.b.R,this.b.P,this.b.ea));if(this.b.lb.Wf!==this.b.R||this.b.lb.Vf!==this.b.P)a.deleteTexture(this.b.lb),this.b.lb=a.Oc(this.b.R,this.b.P,this.b.ea);
a.ud(this.b.lb);this.b.Rc||a.Te(this.b.R,this.b.P)}else this.b.lb&&(a.ud(null),a.deleteTexture(this.b.lb),this.b.lb=null);this.b.gn&&!this.lr()&&a.clear(0,0,0,0);var c,d,e;c=0;for(d=this.ca.length;c<d;c++)e=this.ca[c],e.visible&&0<e.opacity&&(e.j.length||!e.Sd)?e.Xb(a):e.Jm();b&&(0===this.ya.length||1===this.ya.length&&this.b.Rc?(1===this.ya.length?(b=this.ya[0].index,a.Cc(this.ya[0].pb),a.Ph(null,1/this.b.R,1/this.b.P,0,0,1,1,this.scale,this.n,0,0,this.b.R/2,this.b.P/2,this.b.yb.V,this.Wa[b]),a.Zl(this.ya[0].pb)&&
(this.b.ua=!0)):a.Cc(0),this.b.Rc||a.Te(this.b.width,this.b.height),a.ud(null),a.dt(!1),a.Lf(1),a.Bc(this.b.lb),a.bt(),a.td(),a.$c(),b=this.b.width/2,c=this.b.height/2,a.Lh(-b,c,b,c,b,-c,-b,-c),a.Bc(null),a.dt(!0)):this.lp(a,null,null,null))};g.prototype.Fi=function(){return 0<this.ya.length||this.b.Wh||!this.b.Rc||this.b.Na?this.b.lb:null};g.prototype.hr=function(){var a=this.ca[0].tc(),b,c,d;b=1;for(c=this.ca.length;b<c;b++)d=this.ca[b],(0!==d.qd||0!==d.rd)&&d.tc()<a&&(a=d.tc());return a};g.prototype.sp=
function(a){if(!this.Mt){var b=1/this.hr()*this.b.R/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ua=!0)};g.prototype.tp=function(a){if(!this.Mt){var b=1/this.hr()*this.b.P/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ua=!0)};g.prototype.Kw=function(){this.sp(this.scrollX);this.tp(this.scrollY)};g.prototype.lp=function(a,b,c,d){var e=c?c.ya:b?b.ya:this.ya,f=1,l=0,m=0,g=0,n=this.b.R,p=this.b.P;c?(f=c.q.tc(),l=c.q.Za(),
m=c.q.Ja,g=c.q.Ka,n=c.q.Ma,p=c.q.La):b&&(f=b.tc(),l=b.Za(),m=b.Ja,g=b.Ka,n=b.Ma,p=b.La);var t=this.b.Ln,r,C,D,A,w=0,N=1,U,Q=this.b.R,R=this.b.P,V=Q/2,v=R/2,x=b?b.If:this.If,E=b?b.kp:this.kp,L=0,W=0,M=0,F=0,O=Q,ja=Q,S=R,xa=R,ka=D=0;A=c?c.q.Za():0;if(c){r=0;for(C=e.length;r<C;r++)D+=a.Dy(e[r].pb),ka+=a.Ey(e[r].pb);F=c.Ia;L=b.Ta(F.left,F.top,!0,!0);M=b.Ta(F.left,F.top,!1,!0);O=b.Ta(F.right,F.bottom,!0,!0);S=b.Ta(F.right,F.bottom,!1,!0);0!==A&&(r=b.Ta(F.right,F.top,!0,!0),C=b.Ta(F.right,F.top,!1,!0),
W=b.Ta(F.left,F.bottom,!0,!0),F=b.Ta(F.left,F.bottom,!1,!0),A=Math.min(L,O,r,W),O=Math.max(L,O,r,W),L=A,A=Math.min(M,S,C,F),S=Math.max(M,S,C,F),M=A);L-=D;M-=ka;O+=D;S+=ka;E.left=L/Q;E.top=1-M/R;E.right=O/Q;E.bottom=1-S/R;W=L=qa(L);F=M=qa(M);ja=O=ra(O);xa=S=ra(S);W-=D;F-=ka;ja+=D;xa+=ka;0>L&&(L=0);0>M&&(M=0);O>Q&&(O=Q);S>R&&(S=R);0>W&&(W=0);0>F&&(F=0);ja>Q&&(ja=Q);xa>R&&(xa=R);x.left=L/Q;x.top=1-M/R;x.right=O/Q;x.bottom=1-S/R}else x.left=E.left=0,x.top=E.top=0,x.right=E.right=1,x.bottom=E.bottom=1;
ka=c&&(a.Cj(e[0].pb)||0!==D||0!==ka||1!==c.opacity||c.type.za.ts)||b&&!c&&1!==b.opacity;a.bt();if(ka){t[w]||(t[w]=a.Oc(Q,R,this.b.ea));if(t[w].Wf!==Q||t[w].Vf!==R)a.deleteTexture(t[w]),t[w]=a.Oc(Q,R,this.b.ea);a.Cc(0);a.ud(t[w]);U=xa-F;a.clearRect(W,R-F-U,ja-W,U);c?c.Xb(a):(a.Bc(this.b.zb),a.Lf(b.opacity),a.td(),a.translate(-V,-v),a.$c(),a.ne(L,S,O,S,O,M,L,M,x));E.left=E.top=0;E.right=E.bottom=1;c&&(A=x.top,x.top=x.bottom,x.bottom=A);w=1;N=0}a.Lf(1);D=e.length-1;var Na=a.gp(e[D].pb)||!b&&!c&&!this.b.Rc,
Ba=0;r=0;for(C=e.length;r<C;r++){t[w]||(t[w]=a.Oc(Q,R,this.b.ea));if(t[w].Wf!==Q||t[w].Vf!==R)a.deleteTexture(t[w]),t[w]=a.Oc(Q,R,this.b.ea);a.Cc(e[r].pb);Ba=e[r].index;a.Zl(e[r].pb)&&(this.b.ua=!0);0!=r||ka?(a.Ph(d,1/Q,1/R,E.left,E.top,E.right,E.bottom,f,l,m,g,(m+n)/2,(g+p)/2,this.b.yb.V,c?c.Wa[Ba]:b?b.Wa[Ba]:this.Wa[Ba]),a.Bc(null),r!==D||Na?(a.ud(t[w]),U=xa-F,A=R-F-U,a.clearRect(W,A,ja-W,U)):(c?a.Kf(c.cc,c.Wb):b&&a.Kf(b.cc,b.Wb),a.ud(d)),a.Bc(t[N]),a.td(),a.translate(-V,-v),a.$c(),a.ne(L,S,O,S,
O,M,L,M,x),r!==D||Na||a.Bc(null)):(a.ud(t[w]),U=xa-F,A=R-F-U,a.clearRect(W,A,ja-W,U),c?(a.Ph(d,1/c.width,1/c.height,E.left,E.top,E.right,E.bottom,f,l,m,g,(m+n)/2,(g+p)/2,this.b.yb.V,c.Wa[Ba]),c.Xb(a)):(a.Ph(d,1/Q,1/R,0,0,1,1,f,l,m,g,(m+n)/2,(g+p)/2,this.b.yb.V,b?b.Wa[Ba]:this.Wa[Ba]),a.Bc(b?this.b.zb:this.b.lb),a.td(),a.translate(-V,-v),a.$c(),a.ne(L,S,O,S,O,M,L,M,x)),E.left=E.top=0,E.right=E.bottom=1,c&&!Na&&(A=S,S=M,M=A));w=0===w?1:0;N=0===w?1:0}Na&&(a.Cc(0),c?a.Kf(c.cc,c.Wb):b?a.Kf(b.cc,b.Wb):
this.b.Rc||(a.Te(this.b.width,this.b.height),V=this.b.width/2,v=this.b.height/2,M=L=0,O=this.b.width,S=this.b.height),a.ud(d),a.Bc(t[N]),a.td(),a.translate(-V,-v),a.$c(),c&&1===e.length&&!ka?a.ne(L,M,O,M,O,S,L,S,x):a.ne(L,S,O,S,O,M,L,M,x),a.Bc(null))};g.prototype.al=function(a){var b,c;b=0;for(c=this.ca.length;b<c;b++)if(this.ca[b].qa===a)return this.ca[b];return null};g.prototype.Ua=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.dh,
persist:this.Gf,fx:[],layers:{}};a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],d.fx.push({name:c.name,active:c.Ra,params:this.Wa[c.index]});a=0;for(b=this.ca.length;a<b;a++)c=this.ca[a],d.layers[c.qa.toString()]=c.Ua();return d};g.prototype.ab=function(a){var b,c,d,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.Gf=a.persist;"undefined"!==typeof a.fv&&(this.dh=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(d=this.Qn(f[b].name))d.Ra=f[b].active,this.Wa[d.index]=
f[b].params;this.Td();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.al(parseInt(e,10)))&&a.ab(b[e])};Hb=g;f.prototype.Td=function(){I(this.ya);this.Ue=!0;var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Ra&&(this.ya.push(c),c.Lc||(this.Ue=!1))};f.prototype.Qn=function(a){var b,c,d;b=0;for(c=this.Z.length;b<c;b++)if(d=this.Z[b],d.name===a)return d;return null};f.prototype.Vw=function(){var a,b,c,d,e,f;b=a=0;for(c=this.Tc.length;a<c;a++){d=this.Tc[a];e=this.b.G[d[1]];f=this.b.Mp(e);e=!0;
if(!f||this.$a.dh)d=this.b.pf(d,this,!0),l.push(d),d.type.global&&(e=!1,this.si.push(d.uid));e&&(this.Tc[b]=this.Tc[a],b++)}this.Tc.length=b;this.b.Pb();!this.b.D&&this.Z.length&&(this.Qb=this.Dx);this.qi=kb(this.Qb);this.b.I&&lb(this,this.Qb,this.b.I);this.Pd=!0};f.prototype.Nh=function(a,b){var c=Ea(this.j,a);0>c||(b&&this.ad&&a.zc&&a.zc.right>=a.zc.left&&(a.Da(),this.Nb.update(a,a.zc,null),a.zc.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(wa(this.j,c),this.Mj(c)),this.Pd=!0)};f.prototype.ji=
function(a,b){a.Ud=this.j.length;this.j.push(a);b&&this.ad&&a.zc&&a.B();this.Pd=!0};f.prototype.Rz=function(a){this.j.unshift(a);this.Mj(0)};f.prototype.xz=function(a,b,c){var d=a.ee();b=b.ee();wa(this.j,d);d<b&&b--;c&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.Mj(d<b?d:b)};f.prototype.Mj=function(a){-1===this.ef?this.ef=a:a<this.ef&&(this.ef=a);this.Pd=this.Ig=!0};f.prototype.Pp=function(){if(this.Ig){-1===this.ef&&(this.ef=0);var a,b,c;if(this.ad)for(a=this.ef,b=this.j.length;a<
b;++a)c=this.j[a],c.Ud=a,this.Nb.sz(c.zc);else for(a=this.ef,b=this.j.length;a<b;++a)this.j[a].Ud=a;this.Ig=!1;this.ef=-1}};f.prototype.tc=function(a){return this.Ay()*(this.b.Rc||a?this.b.ki:1)};f.prototype.Ay=function(){return(this.scale*this.$a.scale-1)*this.Vd+1};f.prototype.Za=function(){return this.ye?0:Ja(this.$a.n+this.n)};var b=[],d=[],c=[];f.prototype.Vn=function(){this.Pp();this.Nb.cm(this.Ja,this.Ka,this.Ma,this.La,c);if(!c.length)return n();if(1===c.length){var a=n();Aa(a,c[0]);I(c);
return a}for(var b=!0;1<c.length;){for(var a=c,e=void 0,k=void 0,f=void 0,l=void 0,g=void 0,e=0,k=a.length;e<k-1;e+=2){var f=a[e],l=a[e+1],g=n(),m=f,u=l,p=g,z=0,t=0,K=0,C=m.length,D=u.length,A=void 0,w=void 0;for(p.length=C+D;z<C&&t<D;++K)A=m[z],w=u[t],A.Ud<w.Ud?(p[K]=A,++z):(p[K]=w,++t);for(;z<C;++z,++K)p[K]=m[z];for(;t<D;++t,++K)p[K]=u[t];b||(r(f),r(l));d.push(g)}1===k%2&&(b?(f=n(),Aa(f,a[k-1]),d.push(f)):d.push(a[k-1]));Aa(a,d);I(d);b=!1}a=c[0];I(c);return a};f.prototype.Qc=function(a){this.oe=
this.Xk||1!==this.opacity||0!==this.Qb;var b=this.b.canvas,c=a,d=!1;this.oe&&(this.b.wl||(this.b.wl=document.createElement("canvas"),b=this.b.wl,b.width=this.b.R,b.height=this.b.P,this.b.Rr=b.getContext("2d"),d=!0),b=this.b.wl,c=this.b.Rr,b.width!==this.b.R&&(b.width=this.b.R,d=!0),b.height!==this.b.P&&(b.height=this.b.P,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=this.b.ea,c.imageSmoothingEnabled=this.b.ea),this.Sd&&c.clearRect(0,
0,this.b.R,this.b.P));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Sd||(c.fillStyle="rgb("+this.Ed[0]+","+this.Ed[1]+","+this.Ed[2]+")",c.fillRect(0,0,this.b.R,this.b.P));c.save();this.ye=!0;var d=this.ic(0,0,!0,!0),e=this.ic(0,0,!1,!0);this.ye=!1;this.b.Yc&&(d=Math.round(d),e=Math.round(e));this.fm(d,e,c);var f=this.tc();c.scale(f,f);c.translate(-d,-e);this.ad?(this.Ib.left=this.Nb.nc(this.Ja),this.Ib.top=this.Nb.oc(this.Ka),this.Ib.right=this.Nb.nc(this.Ma),this.Ib.bottom=this.Nb.oc(this.La),
this.Pd||!this.Ib.xi(this.wh)?(r(this.Ke),d=this.Vn(),this.Pd=!1,this.wh.Sg(this.Ib)):d=this.Ke):d=this.j;for(var l,m=null,e=0,f=d.length;e<f;++e)l=d[e],l!==m&&(this.yx(l,c),m=l);this.ad&&(this.Ke=d);c.restore();this.oe&&(a.globalCompositeOperation=this.qi,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.yx=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.Ia;c.right<this.Ja||c.bottom<this.Ka||c.left>this.Ma||c.top>this.La||(b.globalCompositeOperation=a.qi,a.Qc(b))}};
f.prototype.Jm=function(){this.ye=!0;var a=this.ic(0,0,!0,!0),b=this.ic(0,0,!1,!0);this.ye=!1;this.b.Yc&&(a=Math.round(a),b=Math.round(b));this.fm(a,b,null)};f.prototype.fm=function(a,b,c){var d=this.tc();this.Ja=a;this.Ka=b;this.Ma=a+1/d*this.b.R;this.La=b+1/d*this.b.P;a=this.Za();0!==a&&(c&&(c.translate(this.b.R/2,this.b.P/2),c.rotate(-a),c.translate(this.b.R/-2,this.b.P/-2)),this.Ye.set(this.Ja,this.Ka,this.Ma,this.La),this.Ye.offset((this.Ja+this.Ma)/-2,(this.Ka+this.La)/-2),this.Gt.lt(this.Ye,
a),this.Gt.Dq(this.Ye),this.Ye.offset((this.Ja+this.Ma)/2,(this.Ka+this.La)/2),this.Ja=this.Ye.left,this.Ka=this.Ye.top,this.Ma=this.Ye.right,this.La=this.Ye.bottom)};f.prototype.Zf=function(a){if(this.oe=this.Xk){this.b.zb||(this.b.zb=a.Oc(this.b.R,this.b.P,this.b.ea));if(this.b.zb.Wf!==this.b.R||this.b.zb.Vf!==this.b.P)a.deleteTexture(this.b.zb),this.b.zb=a.Oc(this.b.R,this.b.P,this.b.ea);a.ud(this.b.zb)}this.ye=!0;var b=this.ic(0,0,!0,!0),c=this.ic(0,0,!1,!0);this.ye=!1;this.b.Yc&&(b=Math.round(b),
c=Math.round(c));this.fm(b,c,null);b=this.tc();a.td();a.scale(b,b);a.gm(-this.Za());a.translate((this.Ja+this.Ma)/-2,(this.Ka+this.La)/-2);a.$c();this.ad?(this.Ib.left=this.Nb.nc(this.Ja),this.Ib.top=this.Nb.oc(this.Ka),this.Ib.right=this.Nb.nc(this.Ma),this.Ib.bottom=this.Nb.oc(this.La),this.Pd||!this.Ib.xi(this.wh)?(r(this.Ke),b=this.Vn(),this.Pd=!1,this.wh.Sg(this.Ib)):b=this.Ke):b=this.j;for(var d,e=null,c=b.length-1;0<=c;--c)d=b[c],d!==e&&(this.Ax(b[c],a),e=d);this.ad&&(this.Ke=b);this.Sd||(this.sn=
this.b.$f++,a.km(this.sn),a.ct(1,1,1),a.Xq(),a.Xz())};f.prototype.Xb=function(a){var b=0,c=0;if(this.oe=this.Xk||1!==this.opacity||0<this.ya.length||0!==this.Qb){this.b.zb||(this.b.zb=a.Oc(this.b.R,this.b.P,this.b.ea));if(this.b.zb.Wf!==this.b.R||this.b.zb.Vf!==this.b.P)a.deleteTexture(this.b.zb),this.b.zb=a.Oc(this.b.R,this.b.P,this.b.ea);a.ud(this.b.zb);this.Sd&&a.clear(0,0,0,0)}this.Sd||(this.b.Na?(a.km(this.sn),a.ct(this.Ed[0]/255,this.Ed[1]/255,this.Ed[2]/255),a.Xq(),a.jA()):a.clear(this.Ed[0]/
255,this.Ed[1]/255,this.Ed[2]/255,1));this.ye=!0;var d=this.ic(0,0,!0,!0),b=this.ic(0,0,!1,!0);this.ye=!1;this.b.Yc&&(d=Math.round(d),b=Math.round(b));this.fm(d,b,null);d=this.tc();a.td();a.scale(d,d);a.gm(-this.Za());a.translate((this.Ja+this.Ma)/-2,(this.Ka+this.La)/-2);a.$c();this.ad?(this.Ib.left=this.Nb.nc(this.Ja),this.Ib.top=this.Nb.oc(this.Ka),this.Ib.right=this.Nb.nc(this.Ma),this.Ib.bottom=this.Nb.oc(this.La),this.Pd||!this.Ib.xi(this.wh)?(r(this.Ke),b=this.Vn(),this.Pd=!1,this.wh.Sg(this.Ib)):
b=this.Ke):b=this.j;var e,f,l=null,c=0;for(e=b.length;c<e;++c)f=b[c],f!==l&&(this.zx(b[c],a),l=f);this.ad&&(this.Ke=b);this.oe&&(b=this.ya.length?this.ya[0].pb:0,c=this.ya.length?this.ya[0].index:0,0===this.ya.length||1===this.ya.length&&!a.gp(b)&&1===this.opacity?(1===this.ya.length?(a.Cc(b),a.Ph(this.$a.Fi(),1/this.b.R,1/this.b.P,0,0,1,1,d,this.Za(),this.Ja,this.Ka,(this.Ja+this.Ma)/2,(this.Ka+this.La)/2,this.b.yb.V,this.Wa[c]),a.Zl(b)&&(this.b.ua=!0)):a.Cc(0),a.ud(this.$a.Fi()),a.Lf(this.opacity),
a.Bc(this.b.zb),a.Kf(this.cc,this.Wb),a.td(),a.$c(),d=this.b.R/2,b=this.b.P/2,a.Lh(-d,b,d,b,d,-b,-d,-b),a.Bc(null)):this.$a.lp(a,this,null,this.$a.Fi()))};f.prototype.zx=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.Ia;c.right<this.Ja||c.bottom<this.Ka||c.left>this.Ma||c.top>this.La||(b.km(a.$f),a.Ut?this.Bx(a,b):(b.Cc(0),b.Kf(a.cc,a.Wb),a.Xb(b)))}};f.prototype.Ax=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.Ia;c.right<this.Ja||c.bottom<this.Ka||c.left>
this.Ma||c.top>this.La||(a.$f=this.b.$f++,0===a.Qb&&1===a.opacity&&a.Ue&&a.Zf&&(b.km(a.$f),a.Zf(b)))}};f.prototype.Bx=function(a,b){var c=a.ya[0].pb,d=a.ya[0].index,e=this.tc();if(1!==a.ya.length||b.gp(c)||b.Tz(c)||(a.n||a.q.Za())&&b.Cj(c)||1!==a.opacity||a.type.za.ts)this.$a.lp(b,this,a,this.oe?this.b.zb:this.$a.Fi()),b.td(),b.scale(e,e),b.gm(-this.Za()),b.translate((this.Ja+this.Ma)/-2,(this.Ka+this.La)/-2),b.$c();else{b.Cc(c);b.Kf(a.cc,a.Wb);b.Zl(c)&&(this.b.ua=!0);var f=0,l=0,m=0,g=0;b.Cj(c)&&
(c=a.Ia,f=this.Ta(c.left,c.top,!0,!0),l=this.Ta(c.left,c.top,!1,!0),m=this.Ta(c.right,c.bottom,!0,!0),c=this.Ta(c.right,c.bottom,!1,!0),f=f/windowWidth,l=1-l/windowHeight,m=m/windowWidth,g=1-c/windowHeight);b.Ph(this.oe?this.b.zb:this.$a.Fi(),1/a.width,1/a.height,f,l,m,g,e,this.Za(),this.Ja,this.Ka,(this.Ja+this.Ma)/2,(this.Ka+this.La)/2,this.b.yb.V,a.Wa[d]);a.Xb(b)}};f.prototype.ic=function(a,b,c,d){var e=this.b.devicePixelRatio;this.b.yf&&(a*=e,b*=e);var e=this.b.Ls,f=this.b.Ms,e=(this.$a.scrollX-
e)*this.qd+e,f=(this.$a.scrollY-f)*this.rd+f,l=e,m=f,g=1/this.tc(!d);d?(l-=this.b.R*g/2,m-=this.b.P*g/2):(l-=this.b.width*g/2,m-=this.b.height*g/2);l+=a*g;m+=b*g;b=this.Za();0!==b&&(l-=e,m-=f,a=Math.cos(b),b=Math.sin(b),d=l*a-m*b,m=m*a+l*b,l=d+e,m+=f);return c?l:m};f.prototype.Ta=function(a,b,c,d){var e=this.b.Ls,f=this.b.Ms,l=(this.$a.scrollX-e)*this.qd+e,m=(this.$a.scrollY-f)*this.rd+f,f=l,e=m,g=this.Za();if(0!==g){a-=l;b-=m;var n=Math.cos(-g),g=Math.sin(-g),p=a*n-b*g;b=b*n+a*g;a=p+l;b+=m}l=1/this.tc(!d);
d?(f-=this.b.R*l/2,e-=this.b.P*l/2):(f-=this.b.width*l/2,e-=this.b.height*l/2);f=(a-f)/l;e=(b-e)/l;a=this.b.devicePixelRatio;this.b.yf&&!d&&(f/=a,e/=a);return c?f:e};f.prototype.Ua=function(){var a,b,c,d={s:this.scale,a:this.n,vl:this.Ja,vt:this.Ka,vr:this.Ma,vb:this.La,v:this.visible,bc:this.Ed,t:this.Sd,px:this.qd,py:this.rd,o:this.opacity,zr:this.Vd,fx:[],cg:this.si,instances:[]};a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],d.fx.push({name:c.name,active:c.Ra,params:this.Wa[c.index]});return d};
f.prototype.ab=function(a){var b,c,d;this.scale=a.s;this.n=a.a;this.Ja=a.vl;this.Ka=a.vt;this.Ma=a.vr;this.La=a.vb;this.visible=a.v;this.Ed=a.bc;this.Sd=a.t;this.qd=a.px;this.rd=a.py;this.opacity=a.o;this.Vd=a.zr;this.si=a.cg||[];Aa(this.Tc,this.xt);var e=new ca;b=0;for(d=this.si.length;b<d;++b)e.add(this.si[b]);c=b=0;for(d=this.Tc.length;b<d;++b)e.contains(this.Tc[b][2])||(this.Tc[c]=this.Tc[b],++c);za(this.Tc,c);c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.Qn(c[b].name))a.Ra=c[b].active,this.Wa[a.index]=
c[b].params;this.Td();this.j.sort(p);this.Ig=!0};Wb=f})();
(function(){function g(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function p(a,b){return a.index-b.index}function f(a){var b,c,d,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);e=B[a.length];b=0;for(c=e.length;b<c;b++)if(d=e[b],g(a,d))return d;e.push(a);return a}
function n(a,b){this.b=a;this.Jt={};this.Rq={};this.eo=!1;this.or=new ca;this.yn=[];this.hn=[];this.name=b[0];var c=b[1];this.tf=[];var d,e;d=0;for(e=c.length;d<e;d++)this.qr(c[d],null,this.tf)}function r(a){this.type=a;this.j=[];this.wa=[];this.ja=!0}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.Mf=[];this.mr=this.Cm=this.Ip=this.gl=this.group=this.Dp=!1;this.tb=[];this.bd=[];this.wd=[];this.Ii="";this.hg=this.gl=this.group=!1;this.Ak=null;c[1]&&(this.Ii=c[1][1].toLowerCase(),
this.group=!0,this.gl=!!c[1][0],this.Ak=[],this.hg=this.gl,this.b.kf.push(this),this.b.gh[this.Ii]=this);this.od=c[2];this.qa=c[4];this.group||(this.b.Cq[this.qa.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Xb(this,d[a]);e.index=a;this.tb.push(e);this.xq(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new Yb(this,d[a]),e.index=a,this.bd.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.qr(c[a],this,this.wd);this.ml=!1;this.tb.length&&(this.ml=null==this.tb[0].type&&
this.tb[0].Jb==T.prototype.k.Zp)}function e(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Zb))for(c=0,d=a.Ec.length;c<d;c++)e=a.Ec[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function b(a,b){this.Nc=a;this.sheet=a.sheet;this.b=a.b;this.ba=[];this.Xa=[];this.M={};this.index=-1;this.gi=!1;this.Jb=this.b.ff(b[1]);this.trigger=0<b[3];this.Qq=2===b[3];this.he=b[4];this.jh=b[5];this.kz=b[6];this.qa=b[7];this.b.Rg[this.qa.toString()]=this;-1===b[0]?(this.type=null,this.ob=this.pp,this.Uf=null,this.Fd=
-1):(this.type=this.b.G[b[0]],this.ob=this.kz?this.cA:this.op,b[2]?(this.Uf=this.type.$k(b[2]),this.Fd=this.type.Nn(b[2])):(this.Uf=null,this.Fd=-1),this.Nc.parent&&this.Nc.parent.lm());this.Qq&&(this.ob=this.dA);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var k=new Zb(this,e[c]);this.ba.push(k)}this.Xa.length=e.length}}function d(a,b){this.Nc=a;this.sheet=a.sheet;this.b=a.b;this.ba=[];this.Xa=[];this.M={};this.index=-1;this.gi=!1;this.Jb=this.b.ff(b[1]);-1===b[0]?(this.type=null,
this.ob=this.pp,this.Uf=null,this.Fd=-1):(this.type=this.b.G[b[0]],this.ob=this.op,b[2]?(this.Uf=this.type.$k(b[2]),this.Fd=this.type.Nn(b[2])):(this.Uf=null,this.Fd=-1));this.qa=b[3];this.b.Og[this.qa.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var k=new Zb(this,e[c]);this.ba.push(k)}this.Xa.length=e.length}}function c(){G++;P.length===G&&P.push(new $b);return P[G]}function a(a,b){this.Oa=a;this.Nc=a.Nc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ae=null;this.Ve=
0;this.get=null;this.Iq=0;this.$a=null;this.key=0;this.object=null;this.index=0;this.Yj=this.Fg=this.Yj=this.Fg=this.Sq=this.bg=this.Zj=null;this.yd=!1;var c,d,e;switch(b[0]){case 0:case 7:this.ae=new ac(this,b[1]);this.Ve=0;this.get=this.Ky;break;case 1:this.ae=new ac(this,b[1]);this.Ve=0;this.get=this.Ly;break;case 5:this.ae=new ac(this,b[1]);this.Ve=0;this.get=this.Py;break;case 3:case 8:this.Iq=b[1];this.get=this.Iy;break;case 6:this.$a=this.b.xh[b[1]];this.get=this.Qy;break;case 9:this.key=b[1];
this.get=this.Oy;break;case 4:this.object=this.b.G[b[1]];this.get=this.Ry;this.Nc.xq(this.object);this.Oa instanceof Yb?this.Nc.lm():this.Nc.parent&&this.Nc.parent.lm();break;case 10:this.index=b[1];a.type.N?(this.get=this.My,this.yd=!0):this.get=this.Ny;break;case 11:this.Zj=b[1];this.bg=null;this.get=this.Jy;break;case 2:case 12:this.Sq=b[1];this.get=this.Hy;break;case 13:for(this.get=this.Sy,this.Fg=[],this.Yj=[],c=1,d=b.length;c<d;c++)e=new Zb(this.Oa,b[c]),this.Fg.push(e),this.Yj.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.name=c[1];this.Lm=c[2];this.ko=c[3];this.Wi=!!c[4];this.ll=!!c[5];this.qa=c[6];this.b.Yh[this.qa.toString()]=this;this.data=this.ko;this.parent?(this.xg=this.Wi||this.ll?-1:this.b.mA++,this.b.Ew.push(this)):(this.xg=-1,this.b.Dw.push(this))}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.Li=null;this.Yy=c[1];this.Ra=!0}function k(){this.zt=[];this.reset(null)}var B=[];n.prototype.toString=function(){return this.name};
n.prototype.qr=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.od)for(c.push(a),c=0,b=a.tb.length;c<b;c++)a.tb[c].trigger&&this.rr(a,c);else a.Jr()?this.rr(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};n.prototype.eb=function(){var a,b;a=0;for(b=this.tf.length;a<b;a++)this.tf[a].eb(a<b-1&&this.tf[a+1].ml)};n.prototype.Np=function(){I(this.yn);I(this.hn);this.wq(this);I(this.hn)};n.prototype.wq=function(a){var b,c,d,e,k=a.yn,h=a.hn,
f=this.or.$e();b=0;for(c=f.length;b<c;++b)d=f[b],e=d.Li,!d.Ra||a===e||-1<h.indexOf(e)||(h.push(e),e.wq(a),k.push(e))};n.prototype.ob=function(a){this.b.sB||(this.eo=!0,a||(this.b.wo=!0));var b,c;b=0;for(c=this.tf.length;b<c;b++){var d=this.tf[b];d.ob();this.b.rn(d.ma);this.b.wf&&this.b.Pb()}a||(this.b.wo=!1)};n.prototype.rr=function(a,b){a.od||this.b.Fm.push(a);var c,d,e=a.tb[b],k;e.type?k=e.type.name:k="system";var h=(c=e.Qq)?this.Rq:this.Jt;h[k]||(h[k]=[]);k=h[k];h=e.Jb;if(c){if(e.ba.length&&(e=
e.ba[0],1===e.type&&2===e.ae.type)){e=e.ae.value.toLowerCase();c=0;for(d=k.length;c<d;c++)if(k[c].method==h){c=k[c].yi;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];k.push({method:h,yi:c})}}else{c=0;for(d=k.length;c<d;c++)if(k[c].method==h){k[c].yi.push([a,b]);return}X&&h===X.prototype.k.Mg?k.unshift({method:h,yi:[[a,b]]}):k.push({method:h,yi:[[a,b]]})}};Ib=n;r.prototype.co=function(){return this.ja?this.type.j.length:this.j.length};r.prototype.Fc=function(){return this.ja?this.type.j:
this.j};r.prototype.Aj=function(a){a&&(a.b.kb().gb.od?(this.ja&&(I(this.j),Aa(this.wa,a.type.j),this.ja=!1),a=this.wa.indexOf(a),-1!==a&&(this.j.push(this.wa[a]),this.wa.splice(a,1))):(this.ja=!1,I(this.j),this.j[0]=a))};rb=r;window._c2hh_="CFF39BA4132C0EA6E8A7303A5381A8E04976E3E3";l.prototype.eb=function(a){var b,c=this.parent;if(this.group)for(this.Cm=!0;c;){if(!c.group){this.Cm=!1;break}c=c.parent}this.Ip=!this.Jr()&&(!this.parent||this.parent.group&&this.parent.Cm);this.mr=!!a;this.Mf=this.ma.slice(0);
for(c=this.parent;c;){a=0;for(b=c.ma.length;a<b;a++)this.Bw(c.ma[a]);c=c.parent}this.ma=f(this.ma);this.Mf=f(this.Mf);a=0;for(b=this.tb.length;a<b;a++)this.tb[a].eb();a=0;for(b=this.bd.length;a<b;a++)this.bd[a].eb();a=0;for(b=this.wd.length;a<b;a++)this.wd[a].eb(a<b-1&&this.wd[a+1].ml)};l.prototype.Kj=function(a){if(this.hg!==!!a){this.hg=!!a;var b;a=0;for(b=this.Ak.length;a<b;++a)this.Ak[a].Ot();0<b&&this.b.Ga.ag&&this.b.Ga.ag.Np()}};l.prototype.xq=function(a){e(a,this.ma)};l.prototype.Bw=function(a){e(a,
this.Mf)};l.prototype.lm=function(){this.Dp=!0;this.parent&&this.parent.lm()};l.prototype.Jr=function(){return this.tb.length?this.tb[0].trigger:!1};l.prototype.ob=function(){var a,b,c=!1,d=this.b,e=this.b.kb();e.gb=this;var k=this.tb;this.ml||(e.Bn=!1);if(this.od){0===k.length&&(c=!0);e.sb=0;for(a=k.length;e.sb<a;e.sb++)b=k[e.sb],b.trigger||(b=b.ob())&&(c=!0);(e.tg=c)&&this.hm()}else{e.sb=0;for(a=k.length;e.sb<a;e.sb++)if(b=k[e.sb].ob(),!b){e.tg=!1;this.Ip&&d.wf&&d.Pb();return}e.tg=!0;this.hm()}this.Fx(e)};
l.prototype.Fx=function(a){a.tg&&this.mr&&(a.Bn=!0);this.Ip&&this.b.wf&&this.b.Pb()};l.prototype.aA=function(a){this.b.kb().gb=this;this.tb[a].ob()&&(this.hm(),this.b.kb().tg=!0)};l.prototype.hm=function(){var a=this.b.kb(),b;a.pc=0;for(b=this.bd.length;a.pc<b;a.pc++)if(this.bd[a.pc].ob())return;this.$s()};l.prototype.Zz=function(){var a=this.b.kb(),b;for(b=this.bd.length;a.pc<b;a.pc++)if(this.bd[a.pc].ob())return;this.$s()};l.prototype.$s=function(){if(this.wd.length){var a,b,c,d,e=this.wd.length-
1;this.b.$l(this);if(this.Dp)for(a=0,b=this.wd.length;a<b;a++)c=this.wd[a],(d=!this.Cm||!this.group&&a<e)&&this.b.Hf(c.ma),c.ob(),d?this.b.Md(c.ma):this.b.rn(c.ma);else for(a=0,b=this.wd.length;a<b;a++)this.wd[a].ob();this.b.Vl()}};l.prototype.bA=function(){var a=this.b.kb();a.gb=this;var b=!1,c;a.sb=0;for(c=this.tb.length;a.sb<c;a.sb++)if(this.tb[a.sb].ob())b=!0;else if(!this.od)return!1;return this.od?b:!0};l.prototype.Jf=function(){this.b.dg++;var a=this.b.kb().sb,b=this.b.$l(this);if(!this.od)for(b.sb=
a+1,a=this.tb.length;b.sb<a;b.sb++)if(!this.tb[b.sb].ob()){this.b.Vl();return}this.hm();this.b.Vl()};l.prototype.fz=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.tb[b].type===a.type)return!1;return!0};bc=l;b.prototype.eb=function(){var a,b,c;a=0;for(b=this.ba.length;a<b;a++)c=this.ba[a],c.eb(),c.yd&&(this.gi=!0)};b.prototype.dA=function(){return!0};b.prototype.pp=function(){var a,b;a=0;for(b=this.ba.length;a<b;a++)this.Xa[a]=this.ba[a].get();return Ua(this.Jb.apply(this.b.qe,
this.Xa),this.jh)};b.prototype.cA=function(){var a,b;a=0;for(b=this.ba.length;a<b;a++)this.Xa[a]=this.ba[a].get();a=this.Jb.apply(this.Uf?this.Uf:this.type,this.Xa);this.type.Dd();return a};b.prototype.op=function(){var a,b,c,d,e,k,h,f,l=this.type,g=l.aa(),q=this.Nc.od&&!this.trigger;b=0;var n=l.Zb,p=l.N,r=l.Be,B=this.Fd,P=-1<B,G=this.gi,E=this.ba,L=this.Xa,W=this.jh,M=this.Jb,F;if(G)for(b=0,e=E.length;b<e;++b)k=E[b],k.yd||(L[b]=k.get(0));else for(b=0,e=E.length;b<e;++b)L[b]=E[b].get(0);if(g.ja){I(g.j);
I(g.wa);F=l.j;a=0;for(d=F.length;a<d;++a){f=F[a];if(G)for(b=0,e=E.length;b<e;++b)k=E[b],k.yd&&(L[b]=k.get(a));P?(b=0,p&&(b=f.type.bh[r]),b=M.apply(f.U[B+b],L)):b=M.apply(f,L);(h=Ua(b,W))?g.j.push(f):q&&g.wa.push(f)}l.finish&&l.finish(!0);g.ja=!1;l.Dd();return g.co()}c=0;F=(h=q&&!this.Nc.fz(this))?g.wa:g.j;var O=!1;a=0;for(d=F.length;a<d;++a){f=F[a];if(G)for(b=0,e=E.length;b<e;++b)k=E[b],k.yd&&(L[b]=k.get(a));P?(b=0,p&&(b=f.type.bh[r]),b=M.apply(f.U[B+b],L)):b=M.apply(f,L);if(Ua(b,W))if(O=!0,h){if(g.j.push(f),
n)for(b=0,e=f.siblings.length;b<e;b++)k=f.siblings[b],k.type.aa().j.push(k)}else{F[c]=f;if(n)for(b=0,e=f.siblings.length;b<e;b++)k=f.siblings[b],k.type.aa().j[c]=k;c++}else if(h){F[c]=f;if(n)for(b=0,e=f.siblings.length;b<e;b++)k=f.siblings[b],k.type.aa().wa[c]=k;c++}else if(q&&(g.wa.push(f),n))for(b=0,e=f.siblings.length;b<e;b++)k=f.siblings[b],k.type.aa().wa.push(k)}za(F,c);if(n)for(p=l.Ec,a=0,d=p.length;a<d;a++)f=p[a].aa(),h?za(f.wa,c):za(f.j,c);c=O;if(h&&!O)for(a=0,d=g.j.length;a<d;a++){f=g.j[a];
if(G)for(b=0,e=E.length;b<e;b++)k=E[b],k.yd&&(L[b]=k.get(a));b=P?M.apply(f.U[B],L):M.apply(f,L);if(Ua(b,W)){O=!0;break}}l.finish&&l.finish(c||q);return q?O:g.co()};Xb=b;d.prototype.eb=function(){var a,b,c;a=0;for(b=this.ba.length;a<b;a++)c=this.ba[a],c.eb(),c.yd&&(this.gi=!0)};d.prototype.pp=function(){var a=this.b,b,c,d=this.ba,e=this.Xa;b=0;for(c=d.length;b<c;++b)e[b]=d[b].get();return this.Jb.apply(a.qe,e)};d.prototype.op=function(){var a=this.type,b=this.Fd,c=a.Be,d=this.gi,e=this.ba,k=this.Xa,
h=this.Jb,f=a.aa().Fc(),a=a.N,l=-1<b,g,q,n,p,r,B;if(d)for(q=0,p=e.length;q<p;++q)r=e[q],r.yd||(k[q]=r.get(0));else for(q=0,p=e.length;q<p;++q)k[q]=e[q].get(0);g=0;for(n=f.length;g<n;++g){B=f[g];if(d)for(q=0,p=e.length;q<p;++q)r=e[q],r.yd&&(k[q]=r.get(g));l?(q=0,a&&(q=B.type.bh[c]),h.apply(B.U[b+q],k)):h.apply(B,k)}return!1};Yb=d;var P=[],G=-1;a.prototype.eb=function(){var a,b;if(11===this.type)this.bg=this.b.dr(this.Zj,this.Nc.parent);else if(13===this.type)for(a=0,b=this.Fg.length;a<b;a++)this.Fg[a].eb();
this.ae&&this.ae.eb()};a.prototype.uz=function(a){this.yd||!a||a.za.pm||(this.yd=!0)};a.prototype.jt=function(){this.yd=!0};a.prototype.Ky=function(a){this.Ve=a||0;a=c();this.ae.get(a);G--;return a.data};a.prototype.Ly=function(a){this.Ve=a||0;a=c();this.ae.get(a);G--;return y(a.data)?a.data:""};a.prototype.Ry=function(){return this.object};a.prototype.Iy=function(){return this.Iq};a.prototype.Py=function(a){this.Ve=a||0;a=c();this.ae.get(a);G--;return a.Fb()?this.b.Ei(a.data):this.b.Tn(a.data)};
a.prototype.Qy=function(){return this.$a};a.prototype.Oy=function(){return this.key};a.prototype.Ny=function(){return this.index};a.prototype.My=function(a){a=a||0;var b=this.Oa.type,c=null,c=b.aa(),d=c.Fc();if(d.length)c=d[a%d.length].type;else if(c.wa.length)c=c.wa[a%c.wa.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.Pk[b.Be]};a.prototype.Jy=function(){return this.bg};a.prototype.Hy=function(){return this.Sq};a.prototype.Sy=function(){var a,b;a=0;for(b=
this.Fg.length;a<b;a++)this.Yj[a]=this.Fg[a].get();return this.Yj};Zb=a;h.prototype.eb=function(){this.ma=f(this.ma)};h.prototype.Dg=function(a){var b=this.b.br();this.parent&&!this.Wi&&b?(this.xg>=b.length&&(b.length=this.xg+1),b[this.xg]=a):this.data=a};h.prototype.Gi=function(){var a=this.b.br();return!this.parent||this.Wi||!a||this.ll?this.data:this.xg>=a.length||"undefined"===typeof a[this.xg]?this.ko:a[this.xg]};h.prototype.ob=function(){!this.parent||this.Wi||this.ll||this.Dg(this.ko)};Tb=
h;q.prototype.toString=function(){return"include:"+this.Li.toString()};q.prototype.eb=function(){this.Li=this.b.En[this.Yy];this.sheet.or.add(this);this.ma=f(this.ma);for(var a=this.parent;a;)a.group&&a.Ak.push(this),a=a.parent;this.Ot()};q.prototype.ob=function(){this.parent&&this.b.Ej(this.b.G);this.Li.eo||this.Li.ob(!0);this.parent&&this.b.Md(this.b.G)};q.prototype.Ot=function(){for(var a=this.parent;a;){if(a.group&&!a.hg){this.Ra=!1;return}a=a.parent}this.Ra=!0};cc=q;k.prototype.reset=function(a){this.gb=
a;this.pc=this.sb=0;I(this.zt);this.Bn=this.tg=!1};k.prototype.Br=function(){return this.gb.Dp?!0:this.sb<this.gb.tb.length-1?!!this.gb.ma.length:!1};Sb=k})();
(function(){function g(e,b){this.Oa=e;this.b=e.b;this.type=b[0];this.get=[this.Wx,this.Sx,this.fy,this.iy,this.Hx,this.gy,this.$x,this.Px,this.Zx,this.ey,this.Ix,this.cy,this.Qx,this.ay,this.Xx,this.Yx,this.Tx,this.Ux,this.Ox,this.hy,this.by,this.Vx,this.Nx,this.Rx][this.type];var d=null;this.Ne=this.ba=this.Xa=this.Jb=this.Am=this.second=this.first=this.value=null;this.Fd=-1;this.Id=null;this.Vt=-1;this.bg=this.Zj=null;this.Oh=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new ac(e,b[1]);break;case 18:this.first=new ac(e,b[1]);this.second=new ac(e,b[2]);this.Am=new ac(e,b[3]);break;case 19:this.Jb=this.b.ff(b[1]);this.Jb!==T.prototype.L.random&&this.Jb!==T.prototype.L.Qw||this.Oa.jt();this.Xa=[];this.ba=[];3===b.length?(d=b[2],this.Xa.length=d.length+1):this.Xa.length=1;break;case 20:this.Ne=this.b.G[b[1]];this.Fd=-1;this.Jb=this.b.ff(b[2]);this.Oh=b[3];fc.Function&&this.Jb===fc.Function.prototype.L.DA&&this.Oa.jt();b[4]?this.Id=new ac(e,b[4]):this.Id=null;this.Xa=
[];this.ba=[];6===b.length?(d=b[5],this.Xa.length=d.length+1):this.Xa.length=1;break;case 21:this.Ne=this.b.G[b[1]];this.Oh=b[2];b[3]?this.Id=new ac(e,b[3]):this.Id=null;this.Vt=b[4];break;case 22:this.Ne=this.b.G[b[1]];this.Ne.$k(b[2]);this.Fd=this.Ne.Nn(b[2]);this.Jb=this.b.ff(b[3]);this.Oh=b[4];b[5]?this.Id=new ac(e,b[5]):this.Id=null;this.Xa=[];this.ba=[];7===b.length?(d=b[6],this.Xa.length=d.length+1):this.Xa.length=1;break;case 23:this.Zj=b[1],this.bg=null}this.Oa.uz(this.Ne);4<=this.type&&
17>=this.type&&(this.first=new ac(e,b[1]),this.second=new ac(e,b[2]));if(d){var c,a;c=0;for(a=d.length;c<a;c++)this.ba.push(new ac(e,d[c]))}}function p(){++l;r.length===l&&r.push(new $b);return r[l]}function f(e,b,d){var c,a;c=0;for(a=e.length;c<a;++c)e[c].get(d),b[c+1]=d.data}function n(e,b){this.type=e||dc.Kg;this.data=b||0;this.zg=null;this.type==dc.Kg&&(this.data=Math.floor(this.data))}g.prototype.eb=function(){23===this.type&&(this.bg=this.Oa.b.dr(this.Zj,this.Oa.Nc.parent));this.first&&this.first.eb();
this.second&&this.second.eb();this.Am&&this.Am.eb();this.Id&&this.Id.eb();if(this.ba){var e,b;e=0;for(b=this.ba.length;e<b;e++)this.ba[e].eb()}};var r=[],l=-1;g.prototype.hy=function(e){var b=this.ba,d=this.Xa;d[0]=e;e=p();f(b,d,e);--l;this.Jb.apply(this.b.qe,d)};g.prototype.by=function(e){var b=this.Ne,d=this.Xa,c=this.ba,a=this.Id,h=this.Jb,g=this.Oa.Ve,k=b.aa(),n=k.Fc();if(!n.length)if(k.wa.length)n=k.wa;else{this.Oh?e.Ob(""):e.la(0);return}d[0]=e;e.zg=b;e=p();f(c,d,e);a&&(a.get(e),e.Fb()&&(g=
e.data,n=b.j));--l;b=n.length;if(g>=b||g<=-b)g%=b;0>g&&(g+=b);h.apply(n[g],d)};g.prototype.Nx=function(e){var b=this.Ne,d=this.Xa,c=this.ba,a=this.Id,h=this.Fd,g=this.Jb,k=this.Oa.Ve,n=b.aa(),r=n.Fc();if(!r.length)if(n.wa.length)r=n.wa;else{this.Oh?e.Ob(""):e.la(0);return}d[0]=e;e.zg=b;e=p();f(c,d,e);a&&(a.get(e),e.Fb()&&(k=e.data,r=b.j));--l;c=r.length;if(k>=c||k<=-c)k%=c;0>k&&(k+=c);k=r[k];r=0;b.N&&(r=k.type.bh[b.Be]);g.apply(k.U[h+r],d)};g.prototype.Vx=function(e){var b=this.Id,d=this.Ne,c=this.Vt,
a=this.Oa.Ve,h=d.aa(),f=h.Fc();if(!f.length)if(h.wa.length)f=h.wa;else{this.Oh?e.Ob(""):e.la(0);return}if(b){h=p();b.get(h);if(h.Fb()){a=h.data;f=d.j;0!==f.length&&(a%=f.length,0>a&&(a+=f.length));a=d.Sn(a);d=a.xb[c];y(d)?e.Ob(d):e.S(d);--l;return}--l}b=f.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=f[a];f=0;d.N&&(f=a.type.Pk[d.Be]);d=a.xb[c+f];y(d)?e.Ob(d):e.S(d)};g.prototype.Wx=function(e){e.type=dc.Kg;e.data=this.value};g.prototype.Sx=function(e){e.type=dc.Jg;e.data=this.value};g.prototype.fy=function(e){e.type=
dc.String;e.data=this.value};g.prototype.iy=function(e){this.first.get(e);e.Fb()&&(e.data=-e.data)};g.prototype.Hx=function(e){this.first.get(e);var b=p();this.second.get(b);e.Fb()&&b.Fb()&&(e.data+=b.data,b.nh()&&e.Ch());--l};g.prototype.gy=function(e){this.first.get(e);var b=p();this.second.get(b);e.Fb()&&b.Fb()&&(e.data-=b.data,b.nh()&&e.Ch());--l};g.prototype.$x=function(e){this.first.get(e);var b=p();this.second.get(b);e.Fb()&&b.Fb()&&(e.data*=b.data,b.nh()&&e.Ch());--l};g.prototype.Px=function(e){this.first.get(e);
var b=p();this.second.get(b);e.Fb()&&b.Fb()&&(e.data/=b.data,e.Ch());--l};g.prototype.Zx=function(e){this.first.get(e);var b=p();this.second.get(b);e.Fb()&&b.Fb()&&(e.data%=b.data,b.nh()&&e.Ch());--l};g.prototype.ey=function(e){this.first.get(e);var b=p();this.second.get(b);e.Fb()&&b.Fb()&&(e.data=Math.pow(e.data,b.data),b.nh()&&e.Ch());--l};g.prototype.Ix=function(e){this.first.get(e);var b=p();this.second.get(b);b.qh()||e.qh()?this.Kx(e,b):this.Jx(e,b);--l};g.prototype.Kx=function(e,b){e.qh()&&
b.qh()?this.Mx(e,b):this.Lx(e,b)};g.prototype.Mx=function(e,b){e.data+=b.data};g.prototype.Lx=function(e,b){e.qh()?e.data+=(Math.round(1E10*b.data)/1E10).toString():e.Ob(e.data.toString()+b.data)};g.prototype.Jx=function(e,b){e.la(e.data&&b.data?1:0)};g.prototype.cy=function(e){this.first.get(e);var b=p();this.second.get(b);e.Fb()&&b.Fb()&&(e.data||b.data?e.la(1):e.la(0));--l};g.prototype.Ox=function(e){this.first.get(e);e.data?this.second.get(e):this.Am.get(e)};g.prototype.Qx=function(e){this.first.get(e);
var b=p();this.second.get(b);e.la(e.data===b.data?1:0);--l};g.prototype.ay=function(e){this.first.get(e);var b=p();this.second.get(b);e.la(e.data!==b.data?1:0);--l};g.prototype.Xx=function(e){this.first.get(e);var b=p();this.second.get(b);e.la(e.data<b.data?1:0);--l};g.prototype.Yx=function(e){this.first.get(e);var b=p();this.second.get(b);e.la(e.data<=b.data?1:0);--l};g.prototype.Tx=function(e){this.first.get(e);var b=p();this.second.get(b);e.la(e.data>b.data?1:0);--l};g.prototype.Ux=function(e){this.first.get(e);
var b=p();this.second.get(b);e.la(e.data>=b.data?1:0);--l};g.prototype.Rx=function(e){var b=this.bg.Gi();ha(b)?e.S(b):e.Ob(b)};ac=g;n.prototype.nh=function(){return this.type===dc.Jg};n.prototype.Fb=function(){return this.type===dc.Kg||this.type===dc.Jg};n.prototype.qh=function(){return this.type===dc.String};n.prototype.Ch=function(){this.nh()||(this.qh()&&(this.data=parseFloat(this.data)),this.type=dc.Jg)};n.prototype.la=function(e){this.type=dc.Kg;this.data=Math.floor(e)};n.prototype.S=function(e){this.type=
dc.Jg;this.data=e};n.prototype.Ob=function(e){this.type=dc.String;this.data=e};n.prototype.yp=function(e){ha(e)?(this.type=dc.Jg,this.data=e):y(e)?(this.type=dc.String,this.data=e.toString()):(this.type=dc.Kg,this.data=0)};$b=n;dc={Kg:0,Jg:1,String:2}})();function T(g){this.b=g;this.Dc=[]}
T.prototype.Ua=function(){var g={},p,f,n,r,l,e,b,d;g.waits=[];var c=g.waits,a;p=0;for(f=this.Dc.length;p<f;p++){e=this.Dc[p];a={t:e.time,st:e.qt,s:e.Cp,ev:e.Yg.qa,sm:[],sols:{}};e.Yg.bd[e.pc]&&(a.act=e.Yg.bd[e.pc].qa);n=0;for(r=e.ma.length;n<r;n++)a.sm.push(e.ma[n].qa);for(l in e.mc)if(e.mc.hasOwnProperty(l)){b=this.b.G[parseInt(l,10)];d={sa:e.mc[l].im,insts:[]};n=0;for(r=e.mc[l].Ee.length;n<r;n++)d.insts.push(e.mc[l].Ee[n].uid);a.sols[b.qa.toString()]=d}c.push(a)}return g};
T.prototype.ab=function(g){g=g.waits;var p,f,n,r,l,e,b,d,c,a,h;I(this.Dc);p=0;for(f=g.length;p<f;p++)if(e=g[p],d=this.b.Cq[e.ev.toString()]){c=-1;n=0;for(r=d.bd.length;n<r;n++)if(d.bd[n].qa===e.act){c=n;break}if(-1!==c){b={mc:{},ma:[],zn:!1};b.time=e.t;b.qt=e.st||"";b.Cp=!!e.s;b.Yg=d;b.pc=c;n=0;for(r=e.sm.length;n<r;n++)(d=this.b.bl(e.sm[n]))&&b.ma.push(d);for(l in e.sols)if(e.sols.hasOwnProperty(l)&&(d=this.b.bl(parseInt(l,10)))){c=e.sols[l];a={im:c.sa,Ee:[]};n=0;for(r=c.insts.length;n<r;n++)(h=
this.b.gg(c.insts[n]))&&a.Ee.push(h);b.mc[d.index.toString()]=a}this.Dc.push(b)}}};
(function(){function g(){}function p(){}function f(){}var n=T.prototype;g.prototype.qu=function(){return!0};g.prototype.lq=function(){return!0};g.prototype.kq=function(){return!0};g.prototype.gu=function(b,c,a){return ec(b,c,a)};g.prototype.ru=function(b,c,a){var e=this.b.kb(),f=e.gb,e=e.Br();b=this.b.Ws(b);if(a<c)if(e)for(;c>=a&&!b.Va;--c)this.b.Hf(f.ma),b.index=c,f.Jf(),this.b.Md(f.ma);else for(;c>=a&&!b.Va;--c)b.index=c,f.Jf();else if(e)for(;c<=a&&!b.Va;++c)this.b.Hf(f.ma),b.index=c,f.Jf(),this.b.Md(f.ma);
else for(;c<=a&&!b.Va;++c)b.index=c,f.Jf();this.b.Qs();return!1};var r=[],l=-1;g.prototype.su=function(b){var c=b.aa();l++;r.length===l&&r.push([]);var a=r[l];Aa(a,c.Fc());var e=this.b.kb(),f=e.gb,k=e.Br(),e=this.b.Ws(),g,n,p,m,u,H,z=b.Zb;if(k)for(k=0,g=a.length;k<g&&!e.Va;k++){this.b.Hf(f.ma);m=a[k];c=b.aa();c.ja=!1;I(c.j);c.j[0]=m;if(z)for(n=0,p=m.siblings.length;n<p;n++)u=m.siblings[n],H=u.type.aa(),H.ja=!1,I(H.j),H.j[0]=u;e.index=k;f.Jf();this.b.Md(f.ma)}else for(c.ja=!1,I(c.j),k=0,g=a.length;k<
g&&!e.Va;k++){m=a[k];c.j[0]=m;if(z)for(n=0,p=m.siblings.length;n<p;n++)u=m.siblings[n],H=u.type.aa(),H.ja=!1,I(H.j),H.j[0]=u;e.index=k;f.Jf()}I(a);this.b.Qs();l--;return!1};g.prototype.qw=function(){var b=this.b.fh().M;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var c=b.TriggerOnce_lastTick,a=this.b.Rd;b.TriggerOnce_lastTick=a;return this.b.Eo||c!==a-1};g.prototype.pu=function(b){var c=this.b.fh(),a=c.M.Every_lastTime||0,e=this.b.yb.V;"undefined"===typeof c.M.Every_seconds&&
(c.M.Every_seconds=b);var f=c.M.Every_seconds;if(e>=a+f)return c.M.Every_lastTime=a+f,e>=c.M.Every_lastTime+.04&&(c.M.Every_lastTime=e),c.M.Every_seconds=b,!0;e<a-.1&&(c.M.Every_lastTime=e);return!1};g.prototype.ku=function(b,c,a){return ec(b.Gi(),c,a)};g.prototype.Cu=function(b){return(b=this.b.gh[b.toLowerCase()])&&b.hg};g.prototype.Zp=function(){var b=this.b.kb();return b.Bn?!1:!b.tg};g.prototype.Xm=function(){return!0};g.prototype.dv=function(){return!0};g.prototype.Zm=function(){return!0};g.prototype.uv=
function(){return!0};g.prototype.Wm=function(){return!0};g.prototype.Zt=function(b,c,a){return Pa(J(b),J(a))<=J(c)};g.prototype.Au=function(b,c){return Ra(J(b),J(c))};g.prototype.xu=function(b,c,a){b=La(b);c=La(c);a=La(a);return Ra(a,c)?Ra(b,c)&&!Ra(b,a):!(!Ra(b,c)&&Ra(b,a))};n.k=new g;p.prototype.uu=function(b){this.b.pg||this.b.ve||(this.b.ve=b)};p.prototype.ou=function(b,c,a,e){if(c&&b&&(c=this.b.Ck(b,c,a,e))){this.b.Vc++;var f;this.b.trigger(Object.getPrototypeOf(b.za).k.Rf,c);if(c.Zb)for(a=0,
e=c.siblings.length;a<e;a++)f=c.siblings[a],this.b.trigger(Object.getPrototypeOf(f.type.za).k.Rf,f);this.b.Vc--;b=b.aa();b.ja=!1;I(b.j);b.j[0]=c;if(c.Zb)for(a=0,e=c.siblings.length;a<e;a++)f=c.siblings[a],b=f.type.aa(),b.ja=!1,I(b.j),b.j[0]=f}};p.prototype.dw=function(b,c){0===b.Lm?ha(c)?b.Dg(c):b.Dg(parseFloat(c)):1===b.Lm&&b.Dg(c.toString())};p.prototype.Yt=function(b,c){0===b.Lm?ha(c)?b.Dg(b.Gi()+c):b.Dg(b.Gi()+parseFloat(c)):1===b.Lm&&b.Dg(b.Gi()+c.toString())};p.prototype.Tv=function(b,c){var a=
this.b.gh[b.toLowerCase()];if(a)switch(c){case 0:a.Kj(!1);break;case 1:a.Kj(!0);break;case 2:a.Kj(!a.hg)}};p.prototype.cw=function(b){0>b&&(b=0);this.b.Pf=b};var e=[],b=[];p.prototype.vw=function(d){if(!(0>d)){var c,a,h,f=this.b.kb(),k;e.length?k=e.pop():k={mc:{},ma:[]};k.zn=!1;k.time=this.b.yb.V+d;k.qt="";k.Cp=!1;k.Yg=f.gb;k.pc=f.pc+1;d=0;for(c=this.b.G.length;d<c;d++)h=this.b.G[d],a=h.aa(),a.ja&&-1===f.gb.ma.indexOf(h)||(k.ma.push(h),h=void 0,b.length?h=b.pop():h={Ee:[]},h.im=!1,h.im=a.ja,Aa(h.Ee,
a.j),k.mc[d.toString()]=h);this.Dc.push(k);return!0}};p.prototype.mw=function(){0>this.b.Bh||(this.b.Pn().Va=!0)};p.prototype.vu=function(b){if(!this.b.pg&&!this.b.ve)for(var c in this.b.xh)if(this.b.xh.hasOwnProperty(c)&&nb(c,b)){this.b.ve=this.b.xh[c];break}};p.prototype.Iv=function(){if(!this.b.pg&&!this.b.ve&&this.b.Ga){this.b.ve=this.b.Ga;var b,c,a;b=0;for(c=this.b.kf.length;b<c;b++)a=this.b.kf[b],a.Kj(a.gl)}};n.u=new p;f.prototype["int"]=function(b,c){y(c)?(b.la(parseInt(c,10)),isNaN(b.data)&&
(b.data=0)):b.la(c)};f.prototype["float"]=function(b,c){y(c)?(b.S(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.S(c)};f.prototype.mz=function(b,c){b.la(c.length||0)};f.prototype.random=function(b,c,a){void 0===a?b.S(Math.random()*c):b.S(Math.random()*(a-c)+c)};f.prototype.sqrt=function(b,c){b.S(Math.sqrt(c))};f.prototype.abs=function(b,c){b.S(Math.abs(c))};f.prototype.round=function(b,c){b.la(Math.round(c))};f.prototype.floor=function(b,c){b.la(Math.floor(c))};f.prototype.ceil=function(b,c){b.la(Math.ceil(c))};
f.prototype.sin=function(b,c){b.S(Math.sin(J(c)))};f.prototype.cos=function(b,c){b.S(Math.cos(J(c)))};f.prototype.tan=function(b,c){b.S(Math.tan(J(c)))};f.prototype.asin=function(b,c){b.S(Ha(Math.asin(c)))};f.prototype.acos=function(b,c){b.S(Ha(Math.acos(c)))};f.prototype.atan=function(b,c){b.S(Ha(Math.atan(c)))};f.prototype.exp=function(b,c){b.S(Math.exp(c))};f.prototype.log10=function(b,c){b.S(Math.log(c)/Math.LN10)};f.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,
e,f;a=2;for(e=arguments.length;a<e;a++)f=arguments[a],"number"===typeof f&&c<f&&(c=f);b.S(c)};f.prototype.min=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,e,f;a=2;for(e=arguments.length;a<e;a++)f=arguments[a],"number"===typeof f&&c>f&&(c=f);b.S(c)};f.prototype.rf=function(b){b.S(this.b.rf)};f.prototype.Pf=function(b){b.S(this.b.Pf)};f.prototype.time=function(b){b.S(this.b.yb.V)};f.prototype.Rd=function(b){b.la(this.b.Rd)};f.prototype.Ll=function(b){b.la(this.b.Ll)};f.prototype.Jn=
function(b){b.la(this.b.Jn)};f.prototype.qz=function(b,c){var a,e;if(this.b.rj.length)if(c){for(e=this.b.Bh;0<=e;--e)if(a=this.b.rj[e],a.name===c){b.la(a.index);return}b.la(0)}else a=this.b.Pn(),b.la(a?a.index:-1);else b.la(0)};f.prototype.n=function(b,c,a,e,f){b.S(Ha(Ma(c,a,e,f)))};f.prototype.nz=function(b,c,a,e){b.S(Va(c,a,e))};f.prototype.rz=function(b,c){b.Ob(y(c)?c.toLowerCase():"")};f.prototype.find=function(b,c,a){y(c)&&y(a)?b.la(c.search(new RegExp(gb(a),"i"))):b.la(-1)};f.prototype.left=
function(b,c,a){b.Ob(y(c)?c.substr(0,a):"")};f.prototype.right=function(b,c,a){b.Ob(y(c)?c.substr(c.length-a):"")};f.prototype.vz=function(b,c,a,e){b.Ob(y(c)?c.substr(a,e):"")};f.prototype.replace=function(b,c,a,e){y(c)&&y(a)&&y(e)?b.Ob(c.replace(new RegExp(gb(a),"gi"),e)):b.Ob(y(c)?c:"")};f.prototype.trim=function(b,c){b.Ob(y(c)?c.trim():"")};f.prototype.Qw=function(b){var c=qa(Math.random()*(arguments.length-1));b.yp(arguments[c+1])};f.prototype.tn=function(b){b.S(this.b.tn/1E3)};f.prototype.zh=
function(b){b.S(this.b.zh)};n.L=new f;n.$z=function(){var d,c,a,h,f,k,l=this.b.kb();d=0;for(a=this.Dc.length;d<a;d++){h=this.Dc[d];if(-1===h.time){if(!h.Cp)continue}else if(h.time>this.b.yb.V)continue;l.gb=h.Yg;l.pc=h.pc;l.sb=0;for(c in h.mc)h.mc.hasOwnProperty(c)&&(f=this.b.G[parseInt(c,10)].aa(),k=h.mc[c],f.ja=k.im,Aa(f.j,k.Ee),f=k,I(f.Ee),b.push(f));h.Yg.Zz();this.b.rn(h.ma);h.zn=!0}c=d=0;for(a=this.Dc.length;d<a;d++)h=this.Dc[d],this.Dc[c]=h,h.zn?(Xa(h.mc),I(h.ma),e.push(h)):c++;za(this.Dc,c)}})();
(function(){qb=function(g,f){var n=g[1],r=g[3],l=g[4],e=g[5],b=g[6],d=g[7],c=g[8];f.k||(f.k={});f.u||(f.u={});f.L||(f.L={});var a=f.k,h=f.u,q=f.L;r&&(a.Yp=function(a,b){return ec(this.x,a,b)},a.mu=function(a,b){return ec(this.y,a,b)},a.Hu=function(){var a=this.q;this.Da();var b=this.Ia;return!(b.right<a.Ja||b.bottom<a.Ka||b.left>a.Ma||b.top>a.La)},a.Iu=function(){this.Da();var a=this.Ia,b=this.b.Ga;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.QA=function(a,b,c){var d=this.aa(),
e=d.Fc();if(!e.length)return!1;var h=e[0],f=h,l=Ta(h.x,h.y,b,c),g,n,q;g=1;for(n=e.length;g<n;g++)if(h=e[g],q=Ta(h.x,h.y,b,c),0===a&&q<l||1===a&&q>l)l=q,f=h;d.Aj(f);return!0},h.gw=function(a){this.x!==a&&(this.x=a,this.B())},h.aB=function(a){this.y!==a&&(this.y=a,this.B())},h.$v=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.B()},h.ZA=function(a,b){var c=a.By(this);if(c){var d;c.Di?(d=c.Di(b,!0),c=c.Di(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.B()}},h.Ru=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.B())},h.LA=function(a,b){0!==b&&(this.x+=Math.cos(J(a))*b,this.y+=Math.sin(J(a))*b,this.B())},q.ek=function(a){a.S(this.x)},q.fk=function(a){a.S(this.y)},q.rf=function(a){a.S(this.b.vf(this))});l&&(a.GA=function(a,b){return ec(this.width,a,b)},a.EA=function(a,b){return ec(this.height,a,b)},h.sq=function(a){this.width!==a&&(this.width=a,this.B())},h.Uv=function(a){this.height!==a&&(this.height=a,this.B())},h.rq=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.B()},q.bn=function(a){a.S(this.width)},q.$p=function(a){a.S(this.height)},q.AA=function(a){this.Da();a.S(this.Ia.left)},q.CA=function(a){this.Da();a.S(this.Ia.top)},q.BA=function(a){this.Da();a.S(this.Ia.right)},q.zA=function(a){this.Da();a.S(this.Ia.bottom)});e&&(a.Zt=function(a,b){return Pa(this.n,J(b))<=J(a)},a.Au=function(a){return Ra(this.n,J(a))},a.xu=function(a,b){var c=La(a),d=La(b),e=Ja(this.n);return Ra(d,c)?Ra(e,c)&&
!Ra(e,d):!(!Ra(e,c)&&Ra(e,d))},h.Kv=function(a){a=J(Ia(a));isNaN(a)||this.n===a||(this.n=a,this.B())},h.UA=function(a){0===a||isNaN(a)||(this.n+=J(a),this.n=Ja(this.n),this.B())},h.VA=function(a){0===a||isNaN(a)||(this.n-=J(a),this.n=Ja(this.n),this.B())},h.WA=function(a,b){var c=Qa(this.n,J(b),J(a));isNaN(c)||this.n===c||(this.n=c,this.B())},h.XA=function(a,b,c){a=Qa(this.n,Math.atan2(c-this.y,b-this.x),J(a));isNaN(a)||this.n===a||(this.n=a,this.B())},h.$A=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.B())},q.yA=function(a){a.S(Ka(this.n))});n||(a.ju=function(a,b,c){return ec(this.xb[a],b,c)},a.yu=function(a){return this.xb[a]},a.RA=function(a,b){var c=this.aa(),d=c.Fc();if(!d.length)return!1;var e=d[0],h=e,f=e.xb[b],l,g,n;l=1;for(g=d.length;l<g;l++)if(e=d[l],n=e.xb[b],0===a&&n<f||1===a&&n>f)f=n,h=e;c.Aj(h);return!0},a.PA=function(a){var b,c,d,e,h;if(this.b.fh().jh){h=this.aa();if(h.ja)for(h.ja=!1,I(h.j),I(h.wa),d=this.j,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?h.wa.push(e):h.j.push(e);else{d=b=0;for(c=h.j.length;b<c;b++)e=h.j[b],h.j[d]=e,e.uid===a?h.wa.push(e):d++;za(h.j,d)}this.Dd();return!!h.j.length}e=this.b.gg(a);if(!e)return!1;h=this.aa();if(!h.ja&&-1===h.j.indexOf(e))return!1;if(this.N)for(a=e.type.Sa,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.Aj(e),this.Dd(),!0}else if(e.type===this)return h.Aj(e),this.Dd(),!0;return!1},a.Rf=function(){return!0},a.fq=function(){return!0},h.Vv=function(a,b){var c=this.xb;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
y(c[a])&&(c[a]=y(b)?b:b.toString())},h.Xt=function(a,b){var c=this.xb;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):y(c[a])&&(c[a]=y(b)?c[a]+b:c[a]+b.toString())},h.ow=function(a,b){var c=this.xb;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},h.Pv=function(a,b){this.xb[a]=b?1:0},h.bB=function(a){this.xb[a]=1-this.xb[a]},h.Sm=function(){this.b.Wd(this)},h.Pu||(h.Pu=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.zl(this,b,!0);this.zd&&this.zd();if(this.U)for(a=0,b=this.U.length;a<
b;++a)c=this.U[a],c.zd&&c.zd()}),q.nu=function(a){var b=a.zg.j.length,c,d,e;c=0;for(d=this.b.Gd.length;c<d;c++)e=this.b.Gd[c],a.zg.N?0<=e.type.Sa.indexOf(a.zg)&&b++:e.type===a.zg&&b++;a.la(b)},q.TA=function(a){a.la(a.zg.aa().Fc().length)},q.rw=function(a){a.la(this.uid)},q.HA=function(a){a.la(this.Hi())},q.Rm||(q.Rm=function(a){a.Ob(JSON.stringify(this.b.qp(this,!0)))}));b&&(a.Lu=function(){return this.visible},h.an=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ua=!0)},a.FA=function(a,
b){return ec(mb(100*this.opacity),a,b)},h.qq=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ua=!0)},q.Opacity=function(a){a.S(mb(100*this.opacity))});d&&(a.IA=function(a){return a?this.q===a:!1},a.SA=function(a){var b=this.aa(),c=b.Fc();if(!c.length)return!1;var d=c[0],e=d,h,f;h=1;for(f=c.length;h<f;h++)if(d=c[h],0===a){if(d.q.index>e.q.index||d.q.index===e.q.index&&d.ee()>e.ee())e=d}else if(d.q.index<e.q.index||d.q.index===e.q.index&&d.ee()<e.ee())e=d;b.Aj(e);return!0},
h.Su=function(){var a=this.q,b=a.j;b.length&&b[b.length-1]===this||(a.Nh(this,!1),a.ji(this,!1),this.b.ua=!0)},h.bq=function(){var a=this.q,b=a.j;b.length&&b[0]===this||(a.Nh(this,!1),a.Rz(this),this.b.ua=!0)},h.MA=function(a){a&&a!=this.q&&(this.q.Nh(this,!0),this.q=a,a.ji(this,!0),this.b.ua=!0)},h.dB=function(a,b){var c=0===a;if(b){var d=b.er(this);d&&d.uid!==this.uid&&(this.q.index!==d.q.index&&(this.q.Nh(this,!0),this.q=d.q,d.q.ji(this,!0)),this.q.xz(this,d,c),this.b.ua=!0)}},q.KA=function(a){a.la(this.q.xs)},
q.JA=function(a){a.Ob(this.q.name)},q.cB=function(a){a.la(this.ee())});c&&(h.pq=function(a,b){if(this.b.D){var c=this.type.Rn(b);if(!(0>c)){var d=1===a;this.hf[c]!==d&&(this.hf[c]=d,this.Td(),this.b.ua=!0)}}},h.YA=function(a,b,c){if(this.b.D){var d=this.type.Rn(a);0>d||(a=this.type.Z[d],d=this.Wa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.D.Fy(a.pb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ra&&(this.b.ua=!0))))}})};Kb=function(){this.nn=this.uk=!0;this.type.ok=!0;this.b.ua=!0;var g,f,n=this.kn;g=0;for(f=
n.length;g<f;++g)n[g](this);this.q.ad&&this.Da()};Lb=function(g){g&&this.kn.push(g)};Nb=function(){if(this.uk){var g=this.Ia,f=this.Tb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.uc*this.width,-this.vc*this.height);this.n?(g.offset(-this.x,-this.y),f.lt(g,this.n),f.offset(this.x,this.y),f.Dq(g)):f.Rh(g);g.normalize();this.uk=!1;this.Tt()}};var g=new ta(0,0,0,0);Ob=function(){if(this.q.ad){var p=this.q.Nb,f=this.Ia;g.set(p.nc(f.left),p.oc(f.top),p.nc(f.right),p.oc(f.bottom));
this.zc.xi(g)||(this.zc.right<this.zc.left?p.update(this,null,g):p.update(this,this.zc,g),this.zc.Sg(g),this.q.Pd=!0)}};Pb=function(){if(this.nn&&this.ed){this.Da();var p=this.type.pi,f=this.Ia;g.set(p.nc(f.left),p.oc(f.top),p.nc(f.right),p.oc(f.bottom));this.dd.xi(g)||(this.dd.right<this.dd.left?p.update(this,null,g):p.update(this,this.dd,g),this.dd.Sg(g),this.nn=!1)}};Mb=function(g,f){return this.Ia.jc(g,f)&&this.Tb.jc(g,f)?this.Ba&&!this.Ba.mh()?(this.Ba.Qg(this.width,this.height,this.n),this.Ba.jc(g-
this.x,f-this.y)):!0:!1};Fb=function(){this.type.Hm();return this.kg};Qb=function(){this.q.Pp();return this.Ud};Rb=function(){I(this.ya);var g,f,n,r=!0;g=0;for(f=this.hf.length;g<f;g++)this.hf[g]&&(n=this.type.Z[g],this.ya.push(n),n.Lc||(r=!1));this.Ut=!!this.ya.length;this.Ue=r};Gb=function(){return"Inst"+this.Vs};tb=function(g){if(g&&g.Zb&&g.type!=this){var f,n,r;f=0;for(n=g.siblings.length;f<n;f++)if(r=g.siblings[f],r.type==this)return r}g=this.aa().Fc();return g.length?g[0]:null};ub=function(g){var f=
this.aa().Fc();return f.length?f[g.Hi()%f.length]:null};sb=function(){if(this.Th&&!this.N){var g,f;g=0;for(f=this.j.length;g<f;g++)this.j[g].kg=g;var n=g,r=this.b.Gd;g=0;for(f=r.length;g<f;++g)r[g].type===this&&(r[g].kg=n++);this.Th=!1}};Db=function(g){if(g<this.j.length)return this.j[g];g-=this.j.length;var f=this.b.Gd,n,r;n=0;for(r=f.length;n<r;++n)if(f[n].type===this){if(0===g)return f[n];--g}return null};vb=function(){return this.Nf[this.xe]};wb=function(){this.xe++;this.xe===this.Nf.length?this.Nf.push(new rb(this)):
this.Nf[this.xe].ja=!0};xb=function(){this.xe++;this.xe===this.Nf.length&&this.Nf.push(new rb(this));var g=this.Nf[this.xe],f=this.Nf[this.xe-1];f.ja?g.ja=!0:(g.ja=!1,Aa(g.j,f.j),Aa(g.wa,f.wa))};yb=function(){this.xe--};zb=function(g){var f,n,r,l,e,b=0;if(!this.N)for(f=0,n=this.Sa.length;f<n;f++)for(e=this.Sa[f],r=0,l=e.fb.length;r<l;r++){if(g===e.fb[r].name)return this.M.lastBehIndex=b,e.fb[r];b++}f=0;for(n=this.fb.length;f<n;f++){if(g===this.fb[f].name)return this.M.lastBehIndex=b,this.fb[f];b++}return null};
Ab=function(g){return this.$k(g)?this.M.lastBehIndex:-1};Bb=function(g){var f,n;f=0;for(n=this.Z.length;f<n;f++)if(this.Z[f].name===g)return f;return-1};Cb=function(){if(this.Zb&&!this.N){var g,f,n,r,l,e,b;this.Hm();e=this.aa();var d=e.ja,c=(g=this.b.kb())&&g.gb&&g.gb.od;g=0;for(f=this.Ec.length;g<f;g++)if(l=this.Ec[g],l!==this&&(l.Hm(),b=l.aa(),b.ja=d,!d)){I(b.j);n=0;for(r=e.j.length;n<r;++n)b.j[n]=l.Sn(e.j[n].kg);if(c)for(I(b.wa),n=0,r=e.wa.length;n<r;++n)b.wa[n]=l.Sn(e.wa[n].kg)}}};Eb=function(){return"Type"+
this.qa};ec=function(g,f,n){if("undefined"===typeof g||"undefined"===typeof n)return!1;switch(f){case 0:return g===n;case 1:return g!==n;case 2:return g<n;case 3:return g<=n;case 4:return g>n;case 5:return g>=n;default:return!1}}})();
var nc={blurhorizontal:{src:"varying mediump vec2 vTex;\nuniform mediump sampler2D samplerFront;\nuniform mediump float pixelWidth;\nuniform mediump float intensity;\nvoid main(void)\n{\nmediump vec4 sum = vec4(0.0);\nmediump float halfPixelWidth = pixelWidth / 2.0;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 7.0 + halfPixelWidth, 0.0)) * 0.06;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 5.0 + halfPixelWidth, 0.0)) * 0.10;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 3.0 + halfPixelWidth, 0.0)) * 0.13;\nsum += texture2D(samplerFront, vTex - vec2(pixelWidth * 1.0 + halfPixelWidth, 0.0)) * 0.16;\nmediump vec4 front = texture2D(samplerFront, vTex);\nsum += front * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 1.0 + halfPixelWidth, 0.0)) * 0.16;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 3.0 + halfPixelWidth, 0.0)) * 0.13;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 5.0 + halfPixelWidth, 0.0)) * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(pixelWidth * 7.0 + halfPixelWidth, 0.0)) * 0.06;\ngl_FragColor = mix(front, sum, intensity);\n}",Zg:8,
$g:0,ti:!1,Lc:!1,fi:!1,ba:[["intensity",0,1]]},blurvertical:{src:"varying mediump vec2 vTex;\nuniform mediump sampler2D samplerFront;\nuniform mediump float pixelHeight;\nuniform mediump float intensity;\nvoid main(void)\n{\nmediump vec4 sum = vec4(0.0);\nmediump float halfPixelHeight = pixelHeight / 2.0;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 7.0 + halfPixelHeight)) * 0.06;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 5.0 + halfPixelHeight)) * 0.10;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 3.0 + halfPixelHeight)) * 0.13;\nsum += texture2D(samplerFront, vTex - vec2(0.0, pixelHeight * 1.0 + halfPixelHeight)) * 0.16;\nmediump vec4 front = texture2D(samplerFront, vTex);\nsum += front * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 1.0 + halfPixelHeight)) * 0.16;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 3.0 + halfPixelHeight)) * 0.13;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 5.0 + halfPixelHeight)) * 0.10;\nsum += texture2D(samplerFront, vTex + vec2(0.0, pixelHeight * 7.0 + halfPixelHeight)) * 0.06;\ngl_FragColor = mix(front, sum, intensity);\n}",
Zg:0,$g:8,ti:!1,Lc:!1,fi:!1,ba:[["intensity",0,1]]},radialblur:{src:"precision mediump float;\nvarying vec2 vTex;\nuniform sampler2D samplerFront;\nuniform float pixelWidth;\nuniform float pixelHeight;\nuniform float intensity;\nuniform float radius;\nvoid main(void)\n{\nvec2 dir = 0.5 - vTex;\nfloat dist = sqrt(dir.x*dir.x + dir.y*dir.y);\ndir = dir/dist;\nvec4 front = texture2D(samplerFront, vTex);\nvec4 sum = front;\nsum += texture2D(samplerFront, vTex + dir * -0.08 * radius);\nsum += texture2D(samplerFront, vTex + dir * -0.05 * radius);\nsum += texture2D(samplerFront, vTex + dir * -0.03 * radius);\nsum += texture2D(samplerFront, vTex + dir * -0.02 * radius);\nsum += texture2D(samplerFront, vTex + dir * -0.01 * radius);\nsum += texture2D(samplerFront, vTex + dir * 0.01 * radius);\nsum += texture2D(samplerFront, vTex + dir * 0.02 * radius);\nsum += texture2D(samplerFront, vTex + dir * 0.03 * radius);\nsum += texture2D(samplerFront, vTex + dir * 0.05 * radius);\nsum += texture2D(samplerFront, vTex + dir * 0.08 * radius);\nsum /= 11.0;\nfloat t = dist * 2.2;\nt = clamp(t, 0.0, 1.0);\ngl_FragColor = mix(front, mix(front, sum, t), intensity);\n}",
Zg:32,$g:32,ti:!1,Lc:!1,fi:!1,ba:[["radius",0,1],["intensity",0,1]]}};function qc(g){this.b=g}
(function(){function g(){return b.length?b.pop():[]}function p(d){var c,a;c=0;for(a=d.length;c<a;c++)Array.isArray(d[c])&&p(d[c]);I(d);b.push(d)}function f(){}function n(){}function r(){}var l=qc.prototype;l.T=function(b){this.za=b;this.b=b.b};l.T.prototype.J=function(){};l.O=function(b){this.type=b;this.b=b.b};var e=l.O.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});e.J=function(){this.Pc=this.C[0];this.hd=this.C[1];this.Hd=this.C[2];
this.ac||(this.Yd=g());var b=this.Yd;b.length=this.Pc;var c,a,e;for(c=0;c<this.Pc;c++)for(b[c]||(b[c]=g()),b[c].length=this.hd,a=0;a<this.hd;a++)for(b[c][a]||(b[c][a]=g()),b[c][a].length=this.Hd,e=0;e<this.Hd;e++)b[c][a][e]=0;this.Uq=[];this.Vq=[];this.Wq=[];this.Ce=-1};e.je=function(){var b;for(b=0;b<this.Pc;b++)p(this.Yd[b]);I(this.Yd)};e.cd=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.Pc-1||isNaN(c)||0>c||c>this.hd-1||isNaN(a)||0>a||a>this.Hd-1?0:
this.Yd[b][c][a]};e.set=function(b,c,a,e){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.Pc-1||isNaN(c)||0>c||c>this.hd-1||isNaN(a)||0>a||a>this.Hd-1||(this.Yd[b][c][a]=e)};e.ty=function(){return JSON.stringify({c2array:!0,size:[this.Pc,this.hd,this.Hd],data:this.Yd})};e.Ua=function(){return{size:[this.Pc,this.hd,this.Hd],data:this.Yd}};e.ab=function(b){var c=b.size;this.Pc=c[0];this.hd=c[1];this.Hd=c[2];this.Yd=b.data};e.Te=function(b,c,a){0>b&&(b=0);0>c&&(c=0);0>a&&(a=0);
if(this.Pc!==b||this.hd!==c||this.Hd!==a){this.Pc=b;this.hd=c;this.Hd=a;var e,f,k=this.Yd;k.length=b;for(b=0;b<this.Pc;b++)for(ga(k[b])&&(k[b]=g()),k[b].length=c,e=0;e<this.hd;e++)for(ga(k[b][e])&&(k[b][e]=g()),k[b][e].length=a,f=0;f<this.Hd;f++)ga(k[b][e][f])&&(k[b][e][f]=0)}};e.Ww=function(){return 0<=this.Ce&&this.Ce<this.Uq.length?this.Uq[this.Ce]:0};e.mB=function(){return 0<=this.Ce&&this.Ce<this.Vq.length?this.Vq[this.Ce]:0};e.nB=function(){return 0<=this.Ce&&this.Ce<this.Wq.length?this.Wq[this.Ce]:
0};f.prototype.Yp=function(b,c,a){return ec(this.cd(b,0,0),c,a)};f.prototype.lu=function(b,c,a,e){return ec(this.cd(b,c,0),a,e)};e.li=function(b){this.b.Hf(b.ma);b.Jf();this.b.Md(b.ma)};l.k=new f;n.prototype.rq=function(b,c,a){this.Te(b,c,a)};n.prototype.gw=function(b,c){this.set(b,0,0,c)};n.prototype.hw=function(b,c,a){this.set(b,c,0,a)};n.prototype.Ou=function(b){var c;try{c=JSON.parse(b)}catch(a){return}c.c2array&&(b=c.size,this.Pc=b[0],this.hd=b[1],this.Hd=b[2],this.Yd=c.data)};l.u=new n;r.prototype.au=
function(b,c,a,e){b.yp(this.cd(c,a||0,e||0))};r.prototype.bn=function(b){b.la(this.Pc)};r.prototype.$p=function(b){b.la(this.hd)};r.prototype.Rm=function(b){b.Ob(this.ty())};l.L=new r})();function rc(g){this.b=g}
(function(){function g(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function p(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function f(a){a=a.toLowerCase();return Z.hasOwnProperty(a)&&Z[a].length?Z[a][0].Sc():v.destination}function n(){return v.createGain?v.createGain():v.createGainNode()}function r(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function e(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,
b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function d(a,b,c,d,e,h){this.type="filter";this.Ld=[a,b,c,d,e,h];this.ta=n();this.Y=n();this.Y.gain.value=h;this.W=n();this.W.gain.value=1-h;this.jb=v.createBiquadFilter();this.jb.type="number"===typeof this.jb.type?a:Mc[a];this.jb.frequency.value=b;this.jb.detune&&(this.jb.detune.value=c);this.jb.Q.value=d;this.jb.gain.value=e;this.ta.connect(this.jb);this.ta.connect(this.W);this.jb.connect(this.Y)}function c(a,b,c){this.type="delay";
this.Ld=[a,b,c];this.ta=n();this.Y=n();this.Y.gain.value=c;this.W=n();this.W.gain.value=1-c;this.sj=n();this.kd=r(a);this.kd.delayTime.value=a;this.Ik=n();this.Ik.gain.value=b;this.ta.connect(this.sj);this.ta.connect(this.W);this.sj.connect(this.Y);this.sj.connect(this.kd);this.kd.connect(this.Ik);this.Ik.connect(this.sj)}function a(a,b,c,d){this.type="convolve";this.Ld=[b,c,d];this.ta=n();this.Y=n();this.Y.gain.value=c;this.W=n();this.W.gain.value=1-c;this.Xf=v.createConvolver();a&&(this.Xf.normalize=
b,this.Xf.buffer=a);this.ta.connect(this.Xf);this.ta.connect(this.W);this.Xf.connect(this.Y)}function h(a,b,c,d,e){this.type="flanger";this.Ld=[a,b,c,d,e];this.ta=n();this.W=n();this.W.gain.value=1-e/2;this.Y=n();this.Y.gain.value=e/2;this.Qk=n();this.Qk.gain.value=d;this.kd=r(a+b);this.kd.delayTime.value=a;this.Hb=v.createOscillator();this.Hb.frequency.value=c;this.Kc=n();this.Kc.gain.value=b;this.ta.connect(this.kd);this.ta.connect(this.W);this.kd.connect(this.Y);this.kd.connect(this.Qk);this.Qk.connect(this.kd);
this.Hb.connect(this.Kc);this.Kc.connect(this.kd.delayTime);l(this.Hb)}function q(a,b,c,d,e,h){this.type="phaser";this.Ld=[a,b,c,d,e,h];this.ta=n();this.W=n();this.W.gain.value=1-h/2;this.Y=n();this.Y.gain.value=h/2;this.jb=v.createBiquadFilter();this.jb.type="number"===typeof this.jb.type?7:"allpass";this.jb.frequency.value=a;this.jb.detune&&(this.jb.detune.value=b);this.jb.Q.value=c;this.Hb=v.createOscillator();this.Hb.frequency.value=e;this.Kc=n();this.Kc.gain.value=d;this.ta.connect(this.jb);
this.ta.connect(this.W);this.jb.connect(this.Y);this.Hb.connect(this.Kc);this.Kc.connect(this.jb.frequency);l(this.Hb)}function k(a){this.type="gain";this.Ld=[a];this.xa=n();this.xa.gain.value=a}function B(a,b){this.type="tremolo";this.Ld=[a,b];this.xa=n();this.xa.gain.value=1-b/2;this.Hb=v.createOscillator();this.Hb.frequency.value=a;this.Kc=n();this.Kc.gain.value=b/2;this.Hb.connect(this.Kc);this.Kc.connect(this.xa.gain);l(this.Hb)}function P(a,b){this.type="ringmod";this.Ld=[a,b];this.ta=n();this.Y=
n();this.Y.gain.value=b;this.W=n();this.W.gain.value=1-b;this.Jj=n();this.Jj.gain.value=0;this.Hb=v.createOscillator();this.Hb.frequency.value=a;this.Hb.connect(this.Jj.gain);l(this.Hb);this.ta.connect(this.Jj);this.ta.connect(this.W);this.Jj.connect(this.Y)}function G(a,b,c,d,e){this.type="distortion";this.Ld=[a,b,c,d,e];this.ta=n();this.Xl=n();this.Wl=n();this.gA(c,Math.pow(10,d/20));this.Y=n();this.Y.gain.value=e;this.W=n();this.W.gain.value=1-e;this.Nm=v.createWaveShaper();this.Gk=new Float32Array(65536);
this.qy(a,b);this.Nm.Gk=this.Gk;this.ta.connect(this.Xl);this.ta.connect(this.W);this.Xl.connect(this.Nm);this.Nm.connect(this.Wl);this.Wl.connect(this.Y)}function m(a,b,c,d,e){this.type="compressor";this.Ld=[a,b,c,d,e];this.xa=v.createDynamicsCompressor();try{this.xa.threshold.value=a,this.xa.knee.value=b,this.xa.ratio.value=c,this.xa.attack.value=d,this.xa.release.value=e}catch(h){}}function u(a,b){this.type="analyser";this.Ld=[a,b];this.xa=v.createAnalyser();this.xa.fftSize=a;this.xa.smoothingTimeConstant=
b;this.ny=new Float32Array(this.xa.frequencyBinCount);this.ot=new Uint8Array(a);this.zj=0}function H(){this.X=null;this.Bl=0;this.Of=[];this.Po=this.pl=this.ol=0}function z(a,b){this.src=a;this.ka=V;this.Jd=b;this.mk=!1;var c=this;this.Oo=this.Yo=null;this.Jh=[];this.jm=0;this.Up=this.Fn=this.yt=this.Rl=!1;1===V&&b&&(this.ka=0,this.Yo=n());this.Tf=this.Aa=null;var d;switch(this.ka){case 0:this.Aa=new Audio;this.Aa.crossOrigin="anonymous";this.Aa.addEventListener("canplaythrough",function(){c.Up=!0});
1===V&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.yt=!0,this.Aa.addEventListener("canplay",function(){c.Oo||(c.Oo=v.createMediaElementSource(c.Aa),c.Oo.connect(c.Yo))}));this.Aa.autoplay=!1;this.Aa.pB="auto";this.Aa.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.Tf=d.response;c.Yw()};d.onerror=function(){c.Fn=!0};d.send();break;case 2:this.Aa=!0;break;case 3:this.Aa=!0}}function t(a,b){var c=this;this.tag=b;
this.Va=this.de=!0;this.src=a.src;this.buffer=a;this.ka=V;this.Jd=a.Jd;this.playbackRate=1;this.ih=!0;this.Hc=this.Zc=!1;this.Ac=0;this.Vi=this.oh=this.he=!1;this.volume=1;this.Wo=function(a){if(!c.Hc&&!c.Zc){var b=this;b||(b=a.target);b===c.kk&&(c.ih=!0,c.Va=!0,Q=c.tag,N.trigger(rc.prototype.k.ck,U))}};this.kk=null;this.kh=1===M&&!this.Jd||2===M;this.Fh=1;this.startTime=this.kh?N.yb.V:N.cf.V;this.cb=this.ub=null;this.ke=!1;this.bb=null;this.Is=this.Hs=this.Gs=this.Fs=this.Ks=this.Js=0;this.A=null;
var d=!1;1!==this.ka||0!==this.buffer.ka||this.buffer.yt||(this.ka=0);switch(this.ka){case 0:this.Jd?(this.A=a.Aa,d=!a.mk,a.mk=!0):(this.A=new Audio,this.A.crossOrigin="anonymous",this.A.autoplay=!1,this.A.src=a.Aa.src,d=!0);d&&this.A.addEventListener("ended",function(){Q=c.tag;c.Va=!0;N.trigger(rc.prototype.k.ck,U)});break;case 1:this.ub=n();this.ub.connect(f(b));1===this.buffer.ka?a.Aa&&(this.A=v.createBufferSource(),this.A.buffer=a.Aa,this.A.connect(this.ub)):(this.A=this.buffer.Aa,this.buffer.Yo.connect(this.ub),
this.buffer.mk||(this.buffer.mk=!0,this.buffer.Aa.addEventListener("ended",function(){Q=c.tag;c.Va=!0;N.trigger(rc.prototype.k.ck,U)})));break;case 2:this.A=new window.Media(R+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.ih=!0,c.Va=!0,Q=c.tag,N.trigger(rc.prototype.k.ck,U))});break;case 3:this.A=!0}}function K(a){I(Ca);if(a.length){var b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],nb(a,d.tag)&&Ca.push(d)}else L&&!L.jg()&&(I(Ca),Ca[0]=L)}function C(a,b){Z.hasOwnProperty(a)?Z[a].push(b):
Z[a]=[b];var c,d,e,h,f=v.destination;if(Z.hasOwnProperty(a)&&(e=Z[a],e.length))for(f=e[0].Sc(),c=0,d=e.length;c<d;c++)h=e[c],c+1===d?h.fd(v.destination):h.fd(e[c+1].Sc());K(a);c=0;for(d=Ca.length;c<d;c++)Ca[c].Vz(f);Oa&&Jb===a&&(Oa.disconnect(),Oa.connect(f))}function D(){}function A(){}var w=rc.prototype;w.T=function(a){this.za=a;this.b=a.b};w.T.prototype.J=function(){};var N=null,U=null,Q="",R="",V=0,v=null,x=[],E=[],L=null,W=!1,M=0,F=!1,O=1,ja=0,S=0,xa=1,ka=1,Na=10,Ba=1E4,Ic=1,Oa=null,Jb="",Ya=
!1,Za=[],Z={},Mc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.fd=function(a){this.Y.disconnect();this.Y.connect(a);this.W.disconnect();this.W.connect(a)};d.prototype.remove=function(){this.ta.disconnect();this.jb.disconnect();this.Y.disconnect();this.W.disconnect()};d.prototype.Sc=function(){return this.ta};c.prototype.fd=function(a){this.Y.disconnect();this.Y.connect(a);this.W.disconnect();this.W.connect(a)};c.prototype.remove=function(){this.ta.disconnect();
this.sj.disconnect();this.kd.disconnect();this.Ik.disconnect();this.Y.disconnect();this.W.disconnect()};c.prototype.Sc=function(){return this.ta};a.prototype.fd=function(a){this.Y.disconnect();this.Y.connect(a);this.W.disconnect();this.W.connect(a)};a.prototype.remove=function(){this.ta.disconnect();this.Xf.disconnect();this.Y.disconnect();this.W.disconnect()};a.prototype.Sc=function(){return this.ta};h.prototype.fd=function(a){this.W.disconnect();this.W.connect(a);this.Y.disconnect();this.Y.connect(a)};
h.prototype.remove=function(){this.ta.disconnect();this.kd.disconnect();this.Hb.disconnect();this.Kc.disconnect();this.W.disconnect();this.Y.disconnect();this.Qk.disconnect()};h.prototype.Sc=function(){return this.ta};q.prototype.fd=function(a){this.W.disconnect();this.W.connect(a);this.Y.disconnect();this.Y.connect(a)};q.prototype.remove=function(){this.ta.disconnect();this.jb.disconnect();this.Hb.disconnect();this.Kc.disconnect();this.W.disconnect();this.Y.disconnect()};q.prototype.Sc=function(){return this.ta};
k.prototype.fd=function(a){this.xa.disconnect();this.xa.connect(a)};k.prototype.remove=function(){this.xa.disconnect()};k.prototype.Sc=function(){return this.xa};B.prototype.fd=function(a){this.xa.disconnect();this.xa.connect(a)};B.prototype.remove=function(){this.Hb.disconnect();this.Kc.disconnect();this.xa.disconnect()};B.prototype.Sc=function(){return this.xa};P.prototype.fd=function(a){this.Y.disconnect();this.Y.connect(a);this.W.disconnect();this.W.connect(a)};P.prototype.remove=function(){this.Hb.disconnect();
this.Jj.disconnect();this.ta.disconnect();this.Y.disconnect();this.W.disconnect()};P.prototype.Sc=function(){return this.ta};G.prototype.gA=function(a,b){.01>a&&(a=.01);this.Xl.gain.value=a;this.Wl.gain.value=Math.pow(1/a,.6)*b};G.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};G.prototype.qy=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,h=0;32768>h;++h)e=h/32768,e=this.shape(e,c,d),this.Gk[32768+h]=e,this.Gk[32768-
h-1]=-e};G.prototype.fd=function(a){this.Y.disconnect();this.Y.connect(a);this.W.disconnect();this.W.connect(a)};G.prototype.remove=function(){this.ta.disconnect();this.Xl.disconnect();this.Nm.disconnect();this.Wl.disconnect();this.Y.disconnect();this.W.disconnect()};G.prototype.Sc=function(){return this.ta};m.prototype.fd=function(a){this.xa.disconnect();this.xa.connect(a)};m.prototype.remove=function(){this.xa.disconnect()};m.prototype.Sc=function(){return this.xa};u.prototype.Ha=function(){this.xa.getFloatFrequencyData(this.ny);
this.xa.getByteTimeDomainData(this.ot);for(var a=this.xa.fftSize,b=0,c=this.zj=0,d=0;b<a;b++)d=(this.ot[b]-128)/128,0>d&&(d=-d),this.zj<d&&(this.zj=d),c+=d*d;this.zj=p(this.zj);p(Math.sqrt(c/a))};u.prototype.fd=function(a){this.xa.disconnect();this.xa.connect(a)};u.prototype.remove=function(){this.xa.disconnect()};u.prototype.Sc=function(){return this.xa};H.prototype.Lj=function(a){if(this.X=a)this.ol=this.X.x,this.pl=this.X.y;I(this.Of)};H.prototype.fl=function(){return!!this.X};H.prototype.Ha=function(a){this.X&&
0!==a&&(this.Po=Ma(this.ol,this.pl,this.X.x,this.X.y),a=Ta(this.ol,this.pl,this.X.x,this.X.y)/a,4>this.Of.length||this.Of.shift(),this.Of.push(a),this.ol=this.X.x,this.pl=this.X.y)};H.prototype.ir=function(){if(!this.Of.length)return 0;var a,b,c=0;a=0;for(b=this.Of.length;a<b;a++)c+=this.Of[a];return c/this.Of.length};H.prototype.Xn=function(){return Math.cos(this.Po)*this.ir()};H.prototype.Yn=function(){return Math.sin(this.Po)*this.ir()};var Jc=!1;z.prototype.Yw=function(){if(!this.Aa&&this.Tf){var a=
this;if(v.decodeAudioData)v.decodeAudioData(this.Tf,function(b){a.Aa=b;a.Tf=null;var c,d,e;if(ga(a.Tl)||F)ga(a.Bk)||(c=a.Bk.Xf,c.normalize=a.ws,c.buffer=b);else if(a.Jh.length){c=0;for(d=a.Jh.length;c<d;c++){b=a.Jh[c];e=new t(a,b.Et);e.xp(!0);if("undefined"!==typeof b.ys&&(b.X=N.gg(b.ys),!b.X))continue;if(b.X){var h=Sa(b.X.x,b.X.y,-b.X.q.Za(),ja,S,!0),f=Sa(b.X.x,b.X.y,-b.X.q.Za(),ja,S,!1);e.wp(h,f,Ha(b.X.n-b.X.q.Za()),b.fo,b.Qo,b.So);e.Lj(b.X)}else e.wp(b.x,b.y,b.Aw,b.fo,b.Qo,b.So);e.play(a.Mo,a.Sp,
a.jm);a.Rl&&e.pause();E.push(e)}I(a.Jh)}else e=new t(a,a.Tl||""),e.play(a.Mo,a.Sp,a.jm),a.Rl&&e.pause(),E.push(e)},function(){a.Fn=!0});else if(this.Aa=v.createBuffer(this.Tf,!1),this.Tf=null,ga(this.Tl)||F)ga(this.Bk)||(b=this.Bk.Xf,b.normalize=this.ws,b.buffer=this.Aa);else{var b=new t(this,this.Tl);b.play(this.Mo,this.Sp,this.jm);this.Rl&&b.pause();E.push(b)}}};z.prototype.Ar=function(){switch(this.ka){case 0:var a=4<=this.Aa.readyState;a&&(this.Up=!0);return a||this.Up;case 1:return!!this.Tf||
!!this.Aa;case 2:return!0;case 3:return!0}return!1};z.prototype.gz=function(){switch(this.ka){case 0:return this.Ar();case 1:return!!this.Aa;case 2:return!0;case 3:return!0}return!1};z.prototype.Xy=function(){switch(this.ka){case 0:return!!this.Aa.error;case 1:return this.Fn}return!1};t.prototype.jg=function(){switch(this.ka){case 0:return this.A.ended;case 1:return 1===this.buffer.ka?!this.de&&!this.Va&&this.A.loop||this.Hc?!1:this.ih:this.A.ended;case 2:return this.ih;case 3:!0}return!0};t.prototype.Ow=
function(){return this.de||this.Va?!0:this.jg()};t.prototype.xp=function(a){1===V&&(!this.ke&&a?this.ub&&(this.cb||(this.cb=v.createPanner(),this.cb.panningModel="number"===typeof this.cb.panningModel?xa:["equalpower","HRTF","soundfield"][xa],this.cb.distanceModel="number"===typeof this.cb.distanceModel?ka:["linear","inverse","exponential"][ka],this.cb.refDistance=Na,this.cb.maxDistance=Ba,this.cb.rolloffFactor=Ic),this.ub.disconnect(),this.ub.connect(this.cb),this.cb.connect(f(this.tag)),this.ke=
!0):this.ke&&!a&&this.ub&&(this.cb.disconnect(),this.ub.disconnect(),this.ub.connect(f(this.tag)),this.ke=!1))};t.prototype.wp=function(a,b,c,d,e,h){this.ke&&1===V&&(this.cb.setPosition(a,b,0),this.cb.setOrientation(Math.cos(J(c)),Math.sin(J(c)),0),this.cb.coneInnerAngle=d,this.cb.coneOuterAngle=e,this.cb.coneOuterGain=h,this.Js=a,this.Ks=b,this.Fs=c,this.Gs=d,this.Hs=e,this.Is=h)};t.prototype.Lj=function(a){this.ke&&1===V&&(this.bb||(this.bb=new H),this.bb.Lj(a))};t.prototype.Ha=function(a){if(this.ke&&
1===V&&this.bb&&this.bb.fl()&&this.Ti()){this.bb.Ha(a);a=this.bb.X;var b=Sa(a.x,a.y,-a.q.Za(),ja,S,!0),c=Sa(a.x,a.y,-a.q.Za(),ja,S,!1);this.cb.setPosition(b,c,0);b=0;"undefined"!==typeof this.bb.X.n&&(b=a.n-a.q.Za(),this.cb.setOrientation(Math.cos(b),Math.sin(b),0));b=Sa(this.bb.Xn(),this.bb.Yn(),-a.q.Za(),0,0,!0);c=Sa(this.bb.Xn(),this.bb.Yn(),-a.q.Za(),0,0,!1);this.cb.setVelocity(b,c,0)}};t.prototype.play=function(a,b,c){var d=this.A;this.he=a;this.volume=b;c=c||0;switch(this.ka){case 0:1!==d.playbackRate&&
(d.playbackRate=1);d.volume!==b*O&&(d.volume=b*O);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(h){}if(this.Jd&&Ya&&!N.Gc)Za.push(this);else try{this.A.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",f)}break;case 1:this.muted=!1;this.Fh=1;if(1===this.buffer.ka)this.ub.gain.value=b*O,this.de||(this.A=v.createBufferSource(),this.A.buffer=this.buffer.Aa,this.A.connect(this.ub)),this.A.onended=
this.Wo,this.kk=this.A,this.A.loop=a,this.ih=!1,0===c?l(this.A):e(this.A,c,this.fg());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*O;if(d.currentTime!==c)try{d.currentTime=c}catch(k){}this.Jd&&Ya&&!N.Gc?Za.push(this):d.play()}break;case 2:(!this.de&&this.Va||0!==c)&&d.seekTo(c);d.play();this.ih=!1;break;case 3:N.kc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.kh?N.yb.V:N.cf.V)-c;this.Hc=this.Va=
this.de=!1};t.prototype.stop=function(){switch(this.ka){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ka?b(this.A):this.A.paused||this.A.pause();break;case 2:this.A.stop();break;case 3:N.kc&&AppMobi.context.stopSound(this.src)}this.Va=!0;this.Hc=!1};t.prototype.pause=function(){if(!(this.de||this.Va||this.jg()||this.Hc)){switch(this.ka){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ka?(this.Ac=this.Un(!0),this.he&&(this.Ac=this.Ac%this.fg()),this.Hc=!0,b(this.A)):
this.A.paused||this.A.pause();break;case 2:this.A.pause();break;case 3:N.kc&&AppMobi.context.stopSound(this.src)}this.Hc=!0}};t.prototype.Yz=function(){if(!(this.de||this.Va||this.jg())&&this.Hc){switch(this.ka){case 0:this.A.play();break;case 1:1===this.buffer.ka?(this.A=v.createBufferSource(),this.A.buffer=this.buffer.Aa,this.A.connect(this.ub),this.A.onended=this.Wo,this.kk=this.A,this.A.loop=this.he,this.ub.gain.value=O*this.volume*this.Fh,this.Im(),this.startTime=(this.kh?N.yb.V:N.cf.V)-this.Ac/
(this.playbackRate||.001),e(this.A,this.Ac,this.fg())):this.A.play();break;case 2:this.A.play();break;case 3:N.kc&&AppMobi.context.resumeSound(this.src)}this.Hc=!1}};t.prototype.seek=function(a){if(!(this.de||this.Va||this.jg()))switch(this.ka){case 0:try{this.A.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ka)this.Hc?this.Ac=a:(this.pause(),this.Ac=a,this.Yz());else try{this.A.currentTime=a}catch(c){}break;case 3:N.kc&&AppMobi.context.seekSound(this.src,a)}};t.prototype.Vz=function(a){1===
this.ka&&(this.ke?(this.cb.disconnect(),this.cb.connect(a)):(this.ub.disconnect(),this.ub.connect(a)))};t.prototype.fg=function(){var a=0;switch(this.ka){case 0:"undefined"!==typeof this.A.duration&&(a=this.A.duration);break;case 1:a=this.buffer.Aa.duration;break;case 2:a=this.A.getDuration();break;case 3:N.kc&&(a=AppMobi.context.getDurationSound(this.src))}return a};t.prototype.Un=function(a){var b=this.fg(),c=0;switch(this.ka){case 0:"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);
break;case 1:if(1===this.buffer.ka){if(this.Hc)return this.Ac;c=(this.kh?N.yb.V:N.cf.V)-this.startTime}else"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 3:N.kc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.he&&c>b&&(c=b);return c};t.prototype.Ti=function(){return!this.Hc&&!this.de&&!this.Va&&!this.jg()};t.prototype.lA=function(){return!this.de&&!this.Va&&!this.jg()};t.prototype.kA=function(a){this.volume=a;this.St()};t.prototype.St=
function(){var a=this.volume*O;isFinite(a)||(a=0);switch(this.ka){case 0:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a);break;case 1:1===this.buffer.ka?this.ub.gain.value=a*this.Fh:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a)}};t.prototype.Mk=function(a){switch(this.ka){case 0:this.A.muted!==!!a&&(this.A.muted=!!a);break;case 1:1===this.buffer.ka?(this.Fh=a?0:1,this.ub.gain.value=O*this.volume*this.Fh):this.A.muted!==!!a&&(this.A.muted=!!a)}};
t.prototype.ht=function(a){this.oh=!!a;this.Mk(this.oh||this.Vi)};t.prototype.it=function(a){this.Vi=!!a;this.Mk(this.oh||this.Vi)};t.prototype.Im=function(){var a=this.playbackRate;this.kh&&(a*=N.Pf);switch(this.ka){case 0:this.A.playbackRate!==a&&(this.A.playbackRate=a);break;case 1:1===this.buffer.ka?this.A.playbackRate.value!==a&&(this.A.playbackRate.value=a):this.A.playbackRate!==a&&(this.A.playbackRate=a)}};t.prototype.iA=function(a){switch(this.ka){case 0:a?this.Ti()?(this.Zc=!0,this.A.pause()):
this.Zc=!1:this.Zc&&(this.A.play(),this.Zc=!1);break;case 1:a?this.Ti()?(this.Zc=!0,1===this.buffer.ka?(this.Ac=this.Un(!0),this.he&&(this.Ac=this.Ac%this.fg()),b(this.A)):this.A.pause()):this.Zc=!1:this.Zc&&(1===this.buffer.ka?(this.A=v.createBufferSource(),this.A.buffer=this.buffer.Aa,this.A.connect(this.ub),this.A.onended=this.Wo,this.kk=this.A,this.A.loop=this.he,this.ub.gain.value=O*this.volume*this.Fh,this.Im(),this.startTime=(this.kh?N.yb.V:N.cf.V)-this.Ac/(this.playbackRate||.001),e(this.A,
this.Ac,this.fg())):this.A.play(),this.Zc=!1);break;case 2:a?this.Ti()?(this.A.pause(),this.Zc=!0):this.Zc=!1:this.Zc&&(this.Zc=!1,this.A.play())}};w.O=function(a){this.type=a;N=this.b=a.b;U=this;this.lc=null;this.ij=-600;!(this.b.nl||this.b.hl&&(this.b.Oi||this.b.il))||this.b.Pi||this.b.Qa||this.b.ro||(Ya=!0);v=null;"undefined"!==typeof AudioContext?(V=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(V=1,v=new webkitAudioContext);Ya&&document.addEventListener("touchend",function(){if(!Jc&&
v){var a=v.createBuffer(1,1,22050),b=v.createBufferSource();b.buffer=a;b.connect(v.destination);l(b);Jc=!0}var c;if(Ya){if(!F)for(a=0,b=Za.length;a<b;++a)c=Za[a],c.Va||c.Hc||c.A.play();I(Za)}},!0);1!==V&&(this.b.fe&&"undefined"!==typeof window.Media?V=2:this.b.ur&&(V=3));2===V&&(R=location.href,a=R.lastIndexOf("/"),-1<a&&(R=R.substr(0,a+1)),R=R.replace("file://",""));if(this.b.Dr&&this.b.iz&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),
this.b.Wd(this);else{if(this.b.kc)W=this.b.hl;else try{W=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){W=!1}this.b.Xe(this)}};var ya=w.O.prototype;ya.J=function(){this.b.Pg=this;M=this.C[0];this.Se=this.C[1];this.Kz=0!==this.C[2];xa=this.C[3];ka=this.C[4];this.ij=-this.C[5];Na=this.C[6];Ba=this.C[7];Ic=this.C[8];this.lc=new H;var a=this.b.R||this.b.width,b=this.b.P||this.b.height;1===V&&("undefined"!==typeof v.listener.dopplerFactor&&(v.listener.dopplerFactor=0),v.listener.setPosition(a/
2,b/2,this.ij),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Oa&&Oa.disconnect();Jb=b.toLowerCase();Oa=v.createMediaStreamSource(a);Oa.connect(f(Jb))});this.b.yq(function(a){U.Gz(a)});var c=this;this.b.lk(function(a){c.xj(a)})};ya.xj=function(a){var b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.bb&&d.bb.X===a&&(d.bb.X=null,d.ke&&d.Ti()&&d.he&&d.stop());this.lc.X===a&&(this.lc.X=null)};ya.Ua=function(){var a={silent:F,masterVolume:O,listenerZ:this.ij,listenerUid:this.lc.fl()?
this.lc.X.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,h,f,k;c=0;for(d=E.length;c<d;c++)e=E[c],!e.lA()||3===this.Se||e.Jd&&1===this.Se||!e.Jd&&2===this.Se||(h=e.Un(),e.he&&(h=h%e.fg()),h={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Jd,playbackTime:h,volume:e.volume,looping:e.he,muted:e.oh,playbackRate:e.playbackRate,paused:e.Hc,resume_position:e.Ac},e.ke&&(h.pan={},k=h.pan,e.bb&&e.bb.fl()?k.objUid=e.bb.X.uid:(k.x=e.Js,k.y=e.Ks,k.a=e.Fs),k.ia=e.Gs,k.oa=e.Hs,k.og=e.Is),b.push(h));b=a.effects;for(f in Z)if(Z.hasOwnProperty(f)){e=
[];c=0;for(d=Z[f].length;c<d;c++)e.push({type:Z[f][c].type,params:Z[f][c].Ld});b[f]=e}return a};var $a=[];ya.ab=function(b){var e=b.silent;O=b.masterVolume;this.ij=b.listenerZ;this.lc.Lj(null);var f=b.listenerUid;-1!==f&&(this.lc.Bl=f,$a.push(this.lc));var f=b.playing,g,l,n,t,p,r,D,K,A,w,v;if(3!==this.Se)for(g=0,l=E.length;g<l;g++)A=E[g],A.Jd&&1===this.Se||(A.Jd||2!==this.Se)&&A.stop();for(p in Z)if(Z.hasOwnProperty(p))for(g=0,l=Z[p].length;g<l;g++)Z[p][g].remove();Xa(Z);for(p in b.effects)if(b.effects.hasOwnProperty(p))for(r=
b.effects[p],g=0,l=r.length;g<l;g++)switch(n=r[g].type,w=r[g].params,n){case "filter":C(p,new d(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":C(p,new c(w[0],w[1],w[2]));break;case "convolve":n=w[2];A=this.Zk(n,!1);A.Aa?n=new a(A.Aa,w[0],w[1],n):(n=new a(null,w[0],w[1],n),A.ws=w[0],A.Bk=n);C(p,n);break;case "flanger":C(p,new h(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":C(p,new q(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":C(p,new k(w[0]));break;case "tremolo":C(p,new B(w[0],w[1]));break;
case "ringmod":C(p,new P(w[0],w[1]));break;case "distortion":C(p,new G(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":C(p,new m(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":C(p,new u(w[0],w[1]))}g=0;for(l=f.length;g<l;g++)3===this.Se||(b=f[g],n=b.buffersrc,t=b.is_music,p=b.tag,r=b.playbackTime,D=b.looping,K=b.volume,v=(w=b.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,t&&1===this.Se)||!t&&2===this.Se||((A=this.$q(n,p,t,D,K))?(A.Ac=b.resume_position,A.xp(!!w),A.play(D,K,r),A.Im(),A.St(),A.Mk(A.oh||
A.Vi),b.paused&&A.pause(),b.muted&&A.ht(!0),A.Mk(A.oh||A.Vi),w&&(-1!==v?(A.bb=A.bb||new H,A.bb.Bl=v,$a.push(A.bb)):A.wp(w.x,w.y,w.a,w.ia,w.oa,w.og))):(A=this.Zk(n,t),A.jm=r,A.Rl=b.paused,w&&(-1!==v?A.Jh.push({ys:v,fo:w.ia,Qo:w.oa,So:w.og,Et:p}):A.Jh.push({x:w.x,y:w.y,Aw:w.a,fo:w.ia,Qo:w.oa,So:w.og,Et:p}))));if(e&&!F){g=0;for(l=E.length;g<l;g++)E[g].it(!0);F=!0}else if(!e&&F){g=0;for(l=E.length;g<l;g++)E[g].it(!1);F=!1}};ya.zd=function(){var a,b,c,d;a=0;for(b=$a.length;a<b;a++)c=$a[a],d=this.b.gg(c.Bl),
c.Lj(d),c.Bl=-1,d&&(ja=d.x,S=d.y);I($a)};ya.Gz=function(a){if(!this.Kz){!a&&v&&v.resume&&v.resume();var b,c;b=0;for(c=E.length;b<c;b++)E[b].iA(a);a&&v&&v.suspend&&v.suspend()}};ya.Ha=function(){var a=this.b.rf,b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.Ha(a),0!==M&&d.Im();var e,h;for(e in Z)if(Z.hasOwnProperty(e))for(d=Z[e],b=0,c=d.length;b<c;b++)h=d[b],h.Ha&&h.Ha();1===V&&this.lc.fl()&&(this.lc.Ha(a),ja=this.lc.X.x,S=this.lc.X.y,v.listener.setPosition(this.lc.X.x,this.lc.X.y,this.ij),v.listener.setVelocity(this.lc.Xn(),
this.lc.Yn(),0))};var ab=[];ya.hA=function(a){var b,c,d,e,h,f=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(h=4<e.length&&".ogg"===e.substr(e.length-4))&&W||!h&&!W)ab.push({filename:e,size:d,X:null}),f+=d;return f};ya.nA=function(){var a,b,c,d;a=0;for(b=ab.length;a<b;++a)c=ab[a],d=this.b.Hn+c.filename,c.X=this.Zk(d,!1)};ya.Cy=function(){var a=0,b,c,d;b=0;for(c=ab.length;b<c;++b)d=ab[b],d.X.gz()||d.X.Xy()||this.b.Qa||this.b.il?a+=d.size:d.X.Ar()&&(a+=Math.floor(d.size/2));return a};ya.Zk=
function(a,b){var c,d,e,h=null;c=0;for(d=x.length;c<d;c++)if(e=x[c],e.src===a){h=e;break}h||(h=new z(a,b),x.push(h));return h};ya.$q=function(a,b,c,d,e){var h,f,g;h=0;for(f=E.length;h<f;h++)if(g=E[h],g.src===a&&(g.Ow()||c))return g.tag=b,g;a=this.Zk(a,c);if(!a.Aa)return"<preload>"!==b&&(a.Tl=b,a.Mo=d,a.Sp=e),null;g=new t(a,b);E.push(g);return g};var Ca=[];D.prototype.ck=function(a){return nb(Q,a)};w.k=new D;A.prototype.Play=function(a,b,c,d){!F&&(c=g(c),L=this.$q(this.b.Hn+a[0]+(W?".ogg":".m4a"),
d,a[1],0!==b,c))&&(L.xp(!1),L.play(0!==b,c))};A.prototype.Yv=function(a,b){K(a);var c,d;c=0;for(d=Ca.length;c<d;c++)Ca[c].ht(0===b)};A.prototype.fw=function(a,b){K(a);var c=g(b),d,e;d=0;for(e=Ca.length;d<e;d++)Ca[d].kA(c)};w.u=new A;w.L=new function(){}})();function sc(g){this.b=g}
(function(){function g(){}function p(){}function f(e){console&&console.warn&&console.warn("Fullscreen request failed: ",e);l.setSize(window.innerWidth,window.innerHeight)}var n=sc.prototype;n.T=function(e){this.za=e;this.b=e.b};n.T.prototype.J=function(){};n.O=function(e){this.type=e;this.b=e.b};n.O.prototype.J=function(){var e=this;window.addEventListener("resize",function(){e.b.trigger(sc.prototype.k.Bv,e)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){e.b.trigger(sc.prototype.k.xv,
e)}),window.addEventListener("offline",function(){e.b.trigger(sc.prototype.k.wv,e)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){e.b.zh=1;e.b.trigger(sc.prototype.k.oq,e)}),window.applicationCache.addEventListener("progress",function(b){e.b.zh=b.loaded/b.total}));this.b.kc||(document.addEventListener("appMobi.device.update.available",function(){e.b.trigger(sc.prototype.k.oq,e)}),document.addEventListener("backbutton",function(){e.b.trigger(sc.prototype.k.Tm,
e)}),document.addEventListener("menubutton",function(){e.b.trigger(sc.prototype.k.mq,e)}),document.addEventListener("searchbutton",function(){e.b.trigger(sc.prototype.k.Cv,e)}),document.addEventListener("tizenhwkey",function(b){var d;switch(b.keyName){case "back":d=e.b.trigger(sc.prototype.k.Tm,e);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=e.b.trigger(sc.prototype.k.mq,e))||b.preventDefault()}}));this.b.kl&&WinJS.Application&&(WinJS.Application.onbackclick=
function(){return!!e.b.trigger(sc.prototype.k.Tm,e)});this.b.yq(function(b){b?e.b.trigger(sc.prototype.k.yv,e):e.b.trigger(sc.prototype.k.zv,e)});this.Ir="undefined"!==typeof window.is_scirra_arcade};g.prototype.xv=function(){return!0};g.prototype.wv=function(){return!0};g.prototype.oq=function(){return!0};g.prototype.zv=function(){return!0};g.prototype.yv=function(){return!0};g.prototype.Bv=function(){return!0};g.prototype.Tm=function(){return!0};g.prototype.mq=function(){return!0};g.prototype.Cv=
function(){return!0};n.k=new g;p.prototype.fu=function(){this.b.Uc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.Ir||this.b.Qa||window.close()};p.prototype.wu=function(e,b){this.b.Uc?CocoonJS.App.openURL(e):this.b.md?ejecta.openURL(e):this.b.kl?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(e)):
navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(e,{openExternal:!0}):this.b.fe?window.open(e,"_system"):this.Ir||this.b.Qa||window.open(e,b)};var r=!0,l=null;p.prototype.Gv=function(e){this.b.Qa?ea("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=e&&(e+=1),6===e&&(e=2),this.b.hz?this.b.dz?debuggerFullscreen(!0):!this.b.ng&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.ng=!0,this.b.De=2<=e?e:0):document.mozFullScreen||
document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.De=2<=e?e:0,e=this.b.mn||this.b.canvas,r&&(r=!1,l=this.b,e.addEventListener("mozfullscreenerror",f),e.addEventListener("webkitfullscreenerror",f),e.addEventListener("MSFullscreenError",f),e.addEventListener("fullscreenerror",f)),e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen&&
("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):e.webkitRequestFullScreen())))};n.u=new p;n.L=new function(){}})();function tc(g){this.b=g}
(function(){function g(){}var p=tc.prototype;p.T=function(f){this.za=f;this.b=f.b};p.T.prototype.J=function(){};p.O=function(f){this.type=f;this.b=f.b;this.uh=Array(256);this.Xj=Array(256);this.Ze=0};var f=p.O.prototype;f.J=function(){var f=this;this.b.Qa||(jQuery(document).keydown(function(g){f.To(g)}),jQuery(document).keyup(function(g){f.Uo(g)}))};var n=[32,33,34,35,36,37,38,39,40,44];f.To=function(f){var g=!1;window!=window.top&&-1<n.indexOf(f.which)&&(f.preventDefault(),g=!0,f.stopPropagation());
if(this.uh[f.which])this.Xj[f.which]&&!g&&f.preventDefault();else{this.uh[f.which]=!0;this.Ze=f.which;this.b.Gc=!0;this.b.trigger(tc.prototype.k.av,this);var e=this.b.trigger(tc.prototype.k.iq,this),b=this.b.trigger(tc.prototype.k.sv,this);this.b.Gc=!1;if(e||b)this.Xj[f.which]=!0,g||f.preventDefault()}};f.Uo=function(f){this.uh[f.which]=!1;this.Ze=f.which;this.b.Gc=!0;this.b.trigger(tc.prototype.k.dq,this);var g=this.b.trigger(tc.prototype.k.Vm,this),e=this.b.trigger(tc.prototype.k.jq,this);this.b.Gc=
!1;if(g||e||this.Xj[f.which])this.Xj[f.which]=!0,f.preventDefault()};f.Ag=function(){var f;for(f=0;256>f;++f)if(this.uh[f]){this.uh[f]=!1;this.Ze=f;this.b.trigger(tc.prototype.k.dq,this);var g=this.b.trigger(tc.prototype.k.Vm,this),e=this.b.trigger(tc.prototype.k.jq,this);if(g||e)this.Xj[f]=!0}};f.Ua=function(){return{triggerKey:this.Ze}};f.ab=function(f){this.Ze=f.triggerKey};g.prototype.Eu=function(f){return this.uh[f]};g.prototype.iq=function(f){return f===this.Ze};g.prototype.av=function(){return!0};
g.prototype.dq=function(){return!0};g.prototype.Vm=function(f){return f===this.Ze};g.prototype.sv=function(f){return f===this.Ze};g.prototype.jq=function(f){return f===this.Ze};p.k=new g;p.u=new function(){};p.L=new function(){}})();var uc=!1;
try{!function(){var g,p,f;!function(){var n={},r={};g=function(f,e,b){n[f]={ax:e,Nw:b}};f=p=function(g){function e(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=g.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var e=a[c];".."===e?b.pop():"."!==e&&b.push(e)}return b.join("/")}if(f.eB=n,r[g])return r[g];if(r[g]={},!n[g])throw Error("Could not find module "+g);for(var b,d=n[g],c=d.ax,d=d.Nw,a=[],h=0,q=c.length;q>h;h++)"exports"===c[h]?a.push(b={}):a.push(p(e(c[h])));c=d.apply(this,a);return r[g]=
b||c}}();g("promise/all",["./utils","exports"],function(f,g){var l=f.isArray,e=f.isFunction;g.all=function(b){if(!l(b))throw new TypeError("You must pass an array to all.");return new this(function(d,c){function a(a){return function(b){g[a]=b;0===--k&&d(g)}}var f,g=[],k=b.length;0===k&&d([]);for(var l=0;l<b.length;l++)(f=b[l])&&e(f.then)?f.then(a(l),c):(g[l]=f,0===--k&&d(g))})}});g("promise/asap",["exports"],function(f){function g(){return function(){process.oB(b)}}function l(){var c=0,d=new a(b),
e=document.createTextNode("");return d.observe(e,{characterData:!0}),function(){e.data=c=++c%2}}function e(){return function(){h.setTimeout(b,1)}}function b(){for(var a=0;a<q.length;a++){var b=q[a];(0,b[0])(b[1])}q=[]}var d,c="undefined"!=typeof window?window:{},a=c.MutationObserver||c.WebKitMutationObserver,h="undefined"!=typeof global?global:void 0===this?window:this,q=[];d="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?g():a?l():e();f.Fw=function(a,b){1===q.push([a,
b])&&d()}});g("promise/config",["exports"],function(f){var g={lB:!1};f.Jq=g;f.Rw=function(f,e){return 2!==arguments.length?g[f]:void(g[f]=e)}});g("promise/polyfill",["./promise","./utils","exports"],function(f,g,l){var e=f.Promise,b=g.isFunction;l.Mz=function(){var d;d="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in d&&"resolve"in d.Promise&&"reject"in d.Promise&&"all"in d.Promise&&"race"in d.Promise&&function(){var c;return new d.Promise(function(a){c=
a}),b(c)}()||(d.Promise=e)}});g("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(f,g,l,e,b,d,c,a){function h(a){if(!D(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof h))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.jk=[];q(a,this)}function q(a,b){function c(a){m(b,
a)}function d(a){H(b,a)}try{a(c,d)}catch(e){d(e)}}function k(a,b,c,d){var e,f,h,g,k=D(c);if(k)try{e=c(d),h=!0}catch(l){g=!0,f=l}else e=d,h=!0;G(b,e)||(k&&h?m(b,e):g?H(b,f):a===N?m(b,e):a===U&&H(b,e))}function p(a,b,c,d){a=a.jk;var e=a.length;a[e]=b;a[e+N]=c;a[e+U]=d}function P(a,b){for(var c,d,e=a.jk,f=a.hk,h=0;h<e.length;h+=3)c=e[h],d=e[h+b],k(b,c,d,f);a.jk=null}function G(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(C(b)&&(d=b.then,
D(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?m(a,d):u(a,d)))},function(b){return c?!0:(c=!0,void H(a,b))}),!0}catch(e){return c?!0:(H(a,e),!0)}return!1}function m(a,b){a===b?u(a,b):G(a,b)||u(a,b)}function u(a,b){a.re===A&&(a.re=w,a.hk=b,K.async(z,a))}function H(a,b){a.re===A&&(a.re=w,a.hk=b,K.async(t,a))}function z(a){P(a,a.re=N)}function t(a){P(a,a.re=U)}var K=f.Jq,C=(f.Rw,g.yz),D=g.isFunction;f=(g.now,l.all);e=e.race;b=b.resolve;d=d.reject;K.async=c.Fw;var A=void 0,w=0,N=1,U=2;
h.prototype={constructor:h,re:void 0,hk:void 0,jk:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.re){var e=arguments;K.async(function(){k(c.re,d,e[c.re-1],c.hk)})}else p(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};h.all=f;h.race=e;h.resolve=b;h.reject=d;a.Promise=h});g("promise/race",["./utils","exports"],function(f,g){var l=f.isArray;g.race=function(e){if(!l(e))throw new TypeError("You must pass an array to race.");return new this(function(b,
d){for(var c,a=0;a<e.length;a++)(c=e[a])&&"function"==typeof c.then?c.then(b,d):b(c)})}});g("promise/reject",["exports"],function(f){f.reject=function(f){return new this(function(g,e){e(f)})}});g("promise/resolve",["exports"],function(f){f.resolve=function(f){return f&&"object"==typeof f&&f.constructor===this?f:new this(function(g){g(f)})}});g("promise/utils",["exports"],function(f){function g(e){return"function"==typeof e}var l=Date.now||function(){return(new Date).getTime()};f.yz=function(e){return g(e)||
"object"==typeof e&&null!==e};f.isFunction=g;f.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)};f.now=l});p("promise/polyfill").Mz()}();var vc=function(){return function(g){function p(n){if(f[n])return f[n].$d;var r=f[n]={$d:{},id:n,loaded:!1};return g[n].call(r.$d,r,r.$d,p),r.loaded=!0,r.$d}var f={};return p.li=g,p.mi=f,p.Ww="",p(0)}([function(g,p,f){p.gk=!0;(function(){function g(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function r(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(h(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function l(a){for(var c in b)if(b.hasOwnProperty(c)&&b[c]===a)return!0;return!1}var e={},b={bi:"asyncStorage",Lg:"localStorageWrapper",di:"webSQLStorage"},d="clear getItem iterate key keys length removeItem setItem".split(" "),c={description:"",Xg:[b.bi,b.di,b.Lg].slice(),name:"localforage",size:4980736,Ca:"keyvaluepairs",
version:1},a=function(a){var c=c||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Uu||a.msIndexedDB,d={};d[b.di]=!!a.openDatabase;d[b.bi]=!!function(){if("undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent))return!1;try{return c&&"function"==typeof c.open&&"undefined"!=typeof a.IDBKeyRange}catch(b){return!1}}();var e;try{e=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(f){e=!1}return d[b.Lg]=
!!e,d}(this),h=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},q=new (function(){function k(a){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function");this.bi=b.bi;this.Lg=b.Lg;this.di=b.di;this.cn=r({},c);this.Sf=r({},this.cn,a);this.uq=this.Xd=null;this.gf=!1;this.Ea=null;this.vq();this.vp(this.Sf.Xg)}return k.prototype.Jq=function(a){if("object"==typeof a){if(this.gf)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.Sf[b]=a[b];return"driver"in a&&a.Xg&&this.vp(this.Sf.Xg),!0}return"string"==typeof a?this.Sf[a]:this.Sf},k.prototype.Xg=function(){return this.ei||null},k.prototype.cr=function(a,b,c){var d=this,h=function(){if(l(a))switch(a){case d.bi:return new Promise(function(a){a(f(1))});case d.Lg:return new Promise(function(a){a(f(2))});case d.di:return new Promise(function(a){a(f(4))})}else if(e[a])return Promise.resolve(e[a]);return Promise.reject(Error("Driver not found."))}();
return h.then(b,c),h},k.prototype.ready=function(a){var b=this,c=b.Xd.then(function(){return null===b.gf&&(b.gf=b.uq()),b.gf});return c.then(a,a),c},k.prototype.vp=function(a,b,c){function d(){f.Sf.Xg=f.Xg()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.Ea=null,f.gf=null,f.cr(e).then(function(a){return f.yw(a),d(),f.gf=f.ik(f.Sf),f.gf})["catch"](b)}d();return f.Xd=Promise.reject(Error("No available storage method found.")),f.Xd}var c=0;return b()}}var f=this;
h(a)||(a=[a]);var g=this.zw(a);return this.Xd=(null!==this.Xd?this.Xd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=g[0];return f.Ea=null,f.gf=null,f.cr(a).then(function(a){f.ei=a.ei;d();f.vq();f.uq=e(g)})})["catch"](function(){d();return f.Xd=Promise.reject(Error("No available storage method found.")),f.Xd}),this.Xd.then(b,c),this.Xd},k.prototype.supports=function(b){return!!a[b]},k.prototype.yw=function(a){r(this,a)},k.prototype.zw=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},k.prototype.vq=function(){for(var a=0;a<d.length;a++)g(this,d[a])},k.prototype.Ck=function(a){return new k(a)},k}());p["default"]=q}).call("undefined"!=typeof window?window:self);g.$d=p["default"]},function(g,p){p.gk=!0;(function(){function f(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (H.BlobBuilder||H.Qu||H.Tu||H.WebKitBlobBuilder),e=0;e<a.length;e+=1)d.append(a[e]);
return d.getBlob(b.type)}}function g(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function r(a){return(new Promise(function(b,c){var d=f([""],{type:"image/png"}),e=a.transaction([C],"readwrite");e.objectStore(C).put(d,
"key");e.oncomplete=function(){var d=a.transaction([C],"readwrite").objectStore(C).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);g(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}}}))["catch"](function(){return!1})}function l(a){return"boolean"==typeof t?Promise.resolve(t):r(a).then(function(a){return t=a})}function e(a){return new Promise(function(b,c){var d=new FileReader;d.onerror=c;d.onloadend=
function(c){b({tq:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),h=0;c>h;h++)e[h]=b.charCodeAt(h);return f([d],{type:a.type})}function d(a){function b(){return Promise.resolve()}var d=this,e={db:null};if(a)for(var f in a)e[f]=a[f];K||(K={});var h=K[e.name];h||(h={Wk:[],db:null},K[e.name]=h);h.Wk.push(this);a=[];for(f=0;f<h.Wk.length;f++){var g=h.Wk[f];g!==this&&a.push(g.ready()["catch"](b))}var k=
h.Wk.slice(0);return Promise.all(a).then(function(){return e.db=h.db,c(e,!1)}).then(function(a){e.db=a;var b;b=d.cn.version;if(e.db){var f=!e.db.objectStoreNames.contains(e.Ca),h=e.version>e.db.version;(e.version<e.db.version&&(e.version!==b&&H.console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),h||f)?(f&&(b=e.db.version+1,b>e.version&&(e.version=b)),b=!0):b=!1}else b=!0;return b?c(e,!0):a}).then(function(a){e.db=
h.db=a;d.Ea=e;for(a=0;a<k.length;a++){var b=k[a];b!==d&&(b.Ea.db=e.db,b.Ea.version=e.version)}})}function c(a,b){return new Promise(function(c,d){if(a.db){if(!b)return c(a.db);a.db.close()}var e=[a.name];b&&e.push(a.version);var f=z.open.apply(z,e);b&&(f.onupgradeneeded=function(b){var c=f.result;try{c.createObjectStore(a.Ca),1>=b.oldVersion&&c.createObjectStore(C)}catch(d){if("ConstraintError"!==d.name)throw d;H.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+
" to version "+b.newVersion+', but the storage "'+a.Ca+'" already exists.')}});f.onerror=function(){d(f.error)};f.onsuccess=function(){c(f.result)}})}function a(a,c){var d=this;"string"!=typeof a&&(H.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){var f=d.Ea,h=f.db.transaction(f.Ca,"readonly").objectStore(f.Ca).get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null);a&&a.tq&&(a=b(a));c(a)};h.onerror=function(){e(h.error)}})["catch"](e)});
return u(e,c),e}function h(a,c){var d=this,e=new Promise(function(c,e){d.ready().then(function(){var f=d.Ea,h=f.db.transaction(f.Ca,"readonly").objectStore(f.Ca).openCursor(),g=1;h.onsuccess=function(){var d=h.result;if(d){var e=d.value;e&&e.tq&&(e=b(e));e=a(e,d.key,g++);void 0!==e?c(e):d["continue"]()}else c()};h.onerror=function(){e(h.error)}})["catch"](e)});return u(e,c),e}function q(a,b,c){var d=this;"string"!=typeof a&&(H.console.warn(a+" used as a key, but it is not a string."),a=String(a));
var f=new Promise(function(c,f){var h;d.ready().then(function(){return h=d.Ea,b instanceof Blob?l(h.db).then(function(a){return a?b:e(b)}):b}).then(function(b){var d=h.db.transaction(h.Ca,"readwrite"),e=d.objectStore(h.Ca);null===b&&(b=void 0);var g=e.put(b,a);d.oncomplete=function(){void 0===b&&(b=null);c(b)};d.onabort=d.onerror=function(){f(g.error?g.error:g.transaction.error)}})["catch"](f)});return u(f,c),f}function k(a,b){var c=this;"string"!=typeof a&&(H.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ea,f=e.db.transaction(e.Ca,"readwrite"),h=f.objectStore(e.Ca)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){d(h.error)};f.onabort=function(){d(h.error?h.error:h.transaction.error)}})["catch"](d)});return u(d,b),d}function B(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ea,e=d.db.transaction(d.Ca,"readwrite"),f=e.objectStore(d.Ca).clear();e.oncomplete=function(){a()};e.onabort=
e.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return u(c,a),c}function P(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ea,e=d.db.transaction(d.Ca,"readonly").objectStore(d.Ca).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return u(c,a),c}function G(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c.Ea,f=!1,h=e.db.transaction(e.Ca,"readonly").objectStore(e.Ca).openCursor();
h.onsuccess=function(){var c=h.result;return c?void(0===a?b(c.key):f?b(c.key):(f=!0,c.advance(a))):void b(null)};h.onerror=function(){d(h.error)}})["catch"](d)});return u(d,b),d}function m(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ea,e=d.db.transaction(d.Ca,"readonly").objectStore(d.Ca).openCursor(),f=[];e.onsuccess=function(){var b=e.result;return b?(f.push(b.key),void b["continue"]()):void a(f)};e.onerror=function(){c(e.error)}})["catch"](c)});return u(c,a),c}function u(a,
b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var H=this,z=z||this.indexedDB||this.webkitIndexedDB||this.mozIndexedDB||this.Uu||this.msIndexedDB;if(z){var t,K,C="local-forage-detect-blob-support";p["default"]={ei:"asyncStorage",ik:d,Lr:h,getItem:a,setItem:q,removeItem:k,clear:B,length:P,key:G,keys:m}}}).call("undefined"!=typeof window?window:self);g.$d=p["default"]},function(g,p,f){p.gk=!0;(function(){function g(b,d){d&&b.then(function(b){d(null,b)},function(b){d(b)})}var r=this,l=null;try{if(!(this.localStorage&&
"setItem"in this.localStorage))return;l=this.localStorage}catch(e){return}p["default"]={ei:"localStorageWrapper",ik:function(b){var d={};if(b)for(var c in b)d[c]=b[c];return d.ge=d.name+"/",d.Ca!==this.cn.Ca&&(d.ge+=d.Ca+"/"),this.Ea=d,(new Promise(function(a){a(f(3))})).then(function(a){return d.Cg=a,Promise.resolve()})},Lr:function(b,d){var c=this,a=c.ready().then(function(){for(var a=c.Ea,d=a.ge,e=d.length,f=l.length,g=1,n=0;f>n;n++){var m=l.key(n);if(0===m.indexOf(d)){var p=l.getItem(m);if(p&&
(p=a.Cg.Kk(p)),p=b(p,m.substring(e),g++),void 0!==p)return p}}});return g(a,d),a},getItem:function(b,d){var c=this;"string"!=typeof b&&(r.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=c.ready().then(function(){var a=c.Ea,d=l.getItem(a.ge+b);return d&&(d=a.Cg.Kk(d)),d});return g(a,d),a},setItem:function(b,d,c){var a=this;"string"!=typeof b&&(r.console.warn(b+" used as a key, but it is not a string."),b=String(b));var e=a.ready().then(function(){void 0===d&&(d=null);var c=
d;return new Promise(function(e,f){var h=a.Ea;h.Cg.serialize(d,function(a,d){if(d)f(d);else try{l.setItem(h.ge+b,a),e(c)}catch(g){"QuotaExceededError"!==g.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==g.name||f(g),f(g)}})})});return g(e,c),e},removeItem:function(b,d){var c=this;"string"!=typeof b&&(r.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=c.ready().then(function(){l.removeItem(c.Ea.ge+b)});return g(a,d),a},clear:function(b){var d=this,c=d.ready().then(function(){for(var a=
d.Ea.ge,b=l.length-1;0<=b;b--){var c=l.key(b);0===c.indexOf(a)&&l.removeItem(c)}});return g(c,b),c},length:function(b){var d=this.keys().then(function(b){return b.length});return g(d,b),d},key:function(b,d){var c=this,a=c.ready().then(function(){var a,d=c.Ea;try{a=l.key(b)}catch(e){a=null}return a&&(a=a.substring(d.ge.length)),a});return g(a,d),a},keys:function(b){var d=this,c=d.ready().then(function(){for(var a=d.Ea,b=l.length,c=[],e=0;b>e;e++)0===l.key(e).indexOf(a.ge)&&c.push(l.key(e).substring(a.ge.length));
return c});return g(c,b),c}}}).call("undefined"!=typeof window?window:self);g.$d=p["default"]},function(g,p){p.gk=!0;(function(){function f(b){var d,c,a,e,f;d=.75*b.length;var g=b.length,l=0;"="===b[b.length-1]&&(d--,"="===b[b.length-2]&&d--);var n=new ArrayBuffer(d),p=new Uint8Array(n);for(d=0;g>d;d+=4)c=r.indexOf(b[d]),a=r.indexOf(b[d+1]),e=r.indexOf(b[d+2]),f=r.indexOf(b[d+3]),p[l++]=c<<2|a>>4,p[l++]=(15&a)<<4|e>>2,p[l++]=(3&e)<<6|63&f;return n}function g(b){var d=new Uint8Array(b),c="";for(b=
0;b<d.length;b+=3)c+=r[d[b]>>2],c+=r[(3&d[b])<<4|d[b+1]>>4],c+=r[(15&d[b+1])<<2|d[b+2]>>6],c+=r[63&d[b+2]];return 2===d.length%3?c=c.substring(0,c.length-1)+"=":1===d.length%3&&(c=c.substring(0,c.length-2)+"=="),c}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/^~~local_forage_type~([^~]+)~/,e=this;p["default"]={serialize:function(b,d){var c="";if(b&&(c=b.toString()),b&&("[object ArrayBuffer]"===b.toString()||b.buffer&&"[object ArrayBuffer]"===b.buffer.toString())){var a,
e="__lfsc__:";b instanceof ArrayBuffer?(a=b,e+="arbf"):(a=b.buffer,"[object Int8Array]"===c?e+="si08":"[object Uint8Array]"===c?e+="ui08":"[object Uint8ClampedArray]"===c?e+="uic8":"[object Int16Array]"===c?e+="si16":"[object Uint16Array]"===c?e+="ur16":"[object Int32Array]"===c?e+="si32":"[object Uint32Array]"===c?e+="ui32":"[object Float32Array]"===c?e+="fl32":"[object Float64Array]"===c?e+="fl64":d(Error("Failed to get type for BinaryArray")));d(e+g(a))}else if("[object Blob]"===c)c=new FileReader,
c.onload=function(){var a="~~local_forage_type~"+b.type+"~"+g(this.result);d("__lfsc__:blob"+a)},c.readAsArrayBuffer(b);else try{d(JSON.stringify(b))}catch(f){console.error("Couldn't convert value into a JSON string: ",b),d(null,f)}},Kk:function(b){if("__lfsc__:"!==b.substring(0,9))return JSON.parse(b);var d,c=b.substring(13);b=b.substring(9,13);if("blob"===b&&l.test(c)){var a=c.match(l);d=a[1];c=c.substring(a[0].length)}c=f(c);switch(b){case "arbf":return c;case "blob":var h;c=[c];d={type:d};c=c||
[];d=d||{};try{h=new Blob(c,d)}catch(g){if("TypeError"!==g.name)throw g;h=new (e.BlobBuilder||e.Qu||e.Tu||e.WebKitBlobBuilder);for(b=0;b<c.length;b+=1)h.append(c[b]);h=h.getBlob(d.type)}return h;case "si08":return new Int8Array(c);case "ui08":return new Uint8Array(c);case "uic8":return new Uint8ClampedArray(c);case "si16":return new Int16Array(c);case "ur16":return new Uint16Array(c);case "si32":return new Int32Array(c);case "ui32":return new Uint32Array(c);case "fl32":return new Float32Array(c);
case "fl64":return new Float64Array(c);default:throw Error("Unkown type: "+b);}},tB:f,gB:g}}).call("undefined"!=typeof window?window:self);g.$d=p["default"]},function(g,p,f){p.gk=!0;(function(){function g(a){var b=this,c={db:null};if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new Promise(function(d,e){try{c.db=B(c.name,String(c.version),c.description,c.size)}catch(f){return b.vp(b.Lg).then(function(){return b.ik(a)}).then(d)["catch"](e)}c.db.transaction(function(a){a.executeSql("CREATE TABLE IF NOT EXISTS "+
c.Ca+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Ea=c;d()},function(a,b){e(b)})})});return(new Promise(function(a){a(f(3))})).then(function(a){return c.Cg=a,e})}function r(a,b){var c=this;"string"!=typeof a&&(k.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ca+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:
null;d&&(d=e.Cg.Kk(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function l(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ca,[],function(c,d){for(var f=d.rows,h=f.length,g=0;h>g;g++){var k=f.item(g),l=k.value;if(l&&(l=e.Cg.Kk(l)),l=a(l,k.key,g+1),void 0!==l)return void b(l)}b()},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function e(a,b,c){var d=this;"string"!=typeof a&&(k.console.warn(a+
" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b,h=d.Ea;h.Cg.serialize(b,function(b,d){d?e(d):h.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+h.Ca+" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return q(e,c),e}function b(a,b){var c=this;"string"!=typeof a&&(k.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.Ca+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function d(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ea;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ca,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function c(a){var b=this,c=new Promise(function(a,
c){b.ready().then(function(){var d=b.Ea;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ca,[],function(b,c){var d=c.rows.item(0).mi;a(d)},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function a(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ea;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ca+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});
return q(d,b),d}function h(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ea;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ca,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);a(d)},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function q(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var k=this,B=this.openDatabase;B&&(p["default"]={ei:"webSQLStorage",ik:g,Lr:l,getItem:r,setItem:e,removeItem:b,clear:d,
length:c,key:a,keys:h})}).call("undefined"!=typeof window?window:self);g.$d=p["default"]}])};"object"==typeof exports&&"object"==typeof module?module.$d=vc():"function"==typeof define&&define.fB?define([],vc):"object"==typeof exports?exports.localforage=vc():this.localforage=vc()}catch(wc){uc=!0}function Y(g){this.b=g}
(function(){function g(a){a.b.trigger(Y.prototype.k.ci,a)}function p(){}function f(){}function n(){}var r="",l="",e=[],b="",d="undefined"!==typeof window.is_scirra_arcade;d&&(b="sa"+window.scirra_arcade_id+"_");var c=Y.prototype;c.T=function(a){this.za=a;this.b=a.b};c.T.prototype.J=function(){};c.O=function(a){this.type=a;this.b=a.b};var a=c.O.prototype;a.J=function(){this.$o=this.bp=0};a.je=function(){};a.Ua=function(){return{}};a.ab=function(){};p.prototype.qv=function(a){return r===a};p.prototype.$u=
function(){return!0};p.prototype.hq=function(a){return r===a};p.prototype.Zu=function(){return!0};p.prototype.gv=function(){return!0};p.prototype.ci=function(){return!0};p.prototype.gq=function(a){return r===a};p.prototype.pv=function(a){return r===a};p.prototype.Wu=function(){return!0};p.prototype.Vu=function(){return!0};c.k=new p;f.prototype.Wv=function(a,c){if(uc)g(this);else{var d=b+a;this.bp++;var e=this;localforage.setItem(d,c,function(b,c){e.bp--;b?e.b.trigger(Y.prototype.k.ci,e):(r=a,l=c,
e.b.trigger(Y.prototype.k.$u,e),e.b.trigger(Y.prototype.k.qv,e),l=r="");0===e.bp&&e.b.trigger(Y.prototype.k.Wu,e)})}};f.prototype.tu=function(a){if(uc)g(this);else{var c=b+a;this.$o++;var d=this;localforage.getItem(c,function(b,c){d.$o--;if(b)d.b.trigger(Y.prototype.k.ci,d);else{r=a;l=c;if("undefined"===typeof l||null===l)l="";d.b.trigger(Y.prototype.k.Zu,d);d.b.trigger(Y.prototype.k.hq,d);l=r=""}0===d.$o&&d.b.trigger(Y.prototype.k.Vu,d)})}};f.prototype.bu=function(a){if(uc)g(this);else{var c=this;
localforage.getItem(b+a,function(b,d){b?c.b.trigger(Y.prototype.k.ci,c):(r=a,null===d?(l="",c.b.trigger(Y.prototype.k.pv,c)):(l=d,c.b.trigger(Y.prototype.k.gq,c)),l=r="")})}};f.prototype.eu=function(){if(uc)g(this);else if(!d){var a=this;localforage.clear(function(b){b?a.b.trigger(Y.prototype.k.ci,a):(l=r="",I(e),a.b.trigger(Y.prototype.k.gv,a))})}};c.u=new f;n.prototype.Mu=function(a){a.yp(l)};c.L=new n})();function xc(g){this.b=g}
(function(){function g(){}function p(){}function f(){}var n=xc.prototype;n.T=function(b){this.za=b;this.b=b.b};n.T.prototype.J=function(){};n.O=function(b){this.type=b;this.b=b.b;this.vk=Array(4);this.Ht=this.Em=this.Vh=this.Me=this.Le=0;this.bo=!1};var r=n.O.prototype;r.J=function(){var b=this;if(!this.b.Qa){jQuery(document).mousemove(function(c){b.Ez(c)});jQuery(document).mousedown(function(c){b.Dz(c)});jQuery(document).mouseup(function(c){b.Fz(c)});jQuery(document).dblclick(function(c){b.Cz(c)});
var d=function(c){b.Hz(c)};document.addEventListener("mousewheel",d,!1);document.addEventListener("DOMMouseScroll",d,!1)}};var l={left:0,top:0};r.Ez=function(b){var d=this.b.Qa?l:jQuery(this.b.canvas).offset();this.Le=b.pageX-d.left;this.Me=b.pageY-d.top};r.rs=function(){return 0<this.b.rc?!0:0<=this.Le&&0<=this.Me&&this.Le<this.b.width&&this.Me<this.b.height};r.Dz=function(b){this.rs()&&(this.vk[b.which]=!0,this.b.Gc=!0,this.b.trigger(xc.prototype.k.Yu,this),this.Vh=b.which-1,this.Em=0,this.b.trigger(xc.prototype.k.Um,
this),this.b.trigger(xc.prototype.k.Ym,this),this.b.Gc=!1)};r.Fz=function(b){this.vk[b.which]&&(this.b.kr&&!this.b.xf&&b.preventDefault(),this.b.kr=!0,this.vk[b.which]=!1,this.b.Gc=!0,this.Vh=b.which-1,this.b.trigger(xc.prototype.k.Av,this),this.b.Gc=!1)};r.Cz=function(b){this.rs()&&(b.preventDefault(),this.b.Gc=!0,this.Vh=b.which-1,this.Em=1,this.b.trigger(xc.prototype.k.Um,this),this.b.trigger(xc.prototype.k.Ym,this),this.b.Gc=!1)};r.Hz=function(b){this.Ht=0>(b.wheelDelta?b.wheelDelta:b.detail?
-b.detail:0)?0:1;this.bo=!1;this.b.Gc=!0;this.b.trigger(xc.prototype.k.Ev,this);this.b.Gc=!1;this.bo&&ob(b)&&b.preventDefault()};g.prototype.Um=function(b,d){return b===this.Vh&&d===this.Em};g.prototype.Yu=function(){return!0};g.prototype.aq=function(b){return this.vk[b+1]};g.prototype.Av=function(b){return b===this.Vh};g.prototype.Ju=function(b){var d=this.b.fh();return Ua(this.b.At(b,this.Le,this.Me,d.jh),d.jh)};g.prototype.Ym=function(b,d,c){return b!==this.Vh||d!==this.Em?!1:this.b.At(c,this.Le,
this.Me,!1)};g.prototype.Ev=function(b){this.bo=!0;return b===this.Ht};n.k=new g;var e=null;p.prototype.Rv=function(b){this.b.Qa||(b="auto pointer text crosshair move help wait none".split(" ")[b],e!==b&&(e=b,document.body.style.cursor=b))};n.u=new p;f.prototype.ek=function(b,d){var c,a,e,f,g;ga(d)?(c=this.b.Ei(0),a=c.scale,e=c.Vd,f=c.qd,g=c.n,c.scale=1,c.Vd=1,c.qd=1,c.n=0,b.S(c.ic(this.Le,this.Me,!0)),c.scale=a,c.Vd=e,c.qd=f,c.n=g):(c=ha(d)?this.b.Ei(d):this.b.Tn(d))?b.S(c.ic(this.Le,this.Me,!0)):
b.S(0)};f.prototype.fk=function(b,d){var c,a,e,f,g;ga(d)?(c=this.b.Ei(0),a=c.scale,e=c.Vd,f=c.rd,g=c.n,c.scale=1,c.Vd=1,c.rd=1,c.n=0,b.S(c.ic(this.Le,this.Me,!1)),c.scale=a,c.Vd=e,c.rd=f,c.n=g):(c=ha(d)?this.b.Ei(d):this.b.Tn(d))?b.S(c.ic(this.Le,this.Me,!1)):b.S(0)};n.L=new f})();function yc(g){this.b=g}
(function(){function g(f){this.Oa=f;this.Ra=!1;this.n=this.speed=this.y=this.x=0;this.opacity=1;this.jf=this.hh=this.size=this.cl=0}function p(){}var f=yc.prototype;f.T=function(f){this.za=f;this.b=f.b};var n=f.T.prototype;n.J=function(){this.N||(this.da=new Image,this.da.un=this.ym,this.na=null,this.b.Tp(this.da,this.xm))};n.yj=function(){this.N||(this.na=null)};n.Ml=function(){this.N||!this.j.length||this.na||(this.na=this.b.D.yh(this.da,!0,this.b.ea,this.Vj))};n.jj=function(){this.N||this.na||
!this.b.D||(this.na=this.b.D.yh(this.da,!0,this.b.ea,this.Vj))};n.Gm=function(){this.N||this.j.length||!this.na||(this.b.D.deleteTexture(this.na),this.na=null)};n.Yl=function(f){f.drawImage(this.da,0,0)};g.prototype.init=function(){var f=this.Oa;this.x=f.x-f.Om/2+Math.random()*f.Om;this.y=f.y-f.Pm/2+Math.random()*f.Pm;this.speed=f.oo-f.rm/2+Math.random()*f.rm;this.n=f.n-f.tm/2+Math.random()*f.tm;this.opacity=f.lo;this.size=f.no-f.qm/2+Math.random()*f.qm;this.cl=f.ao-f.dl/2+Math.random()*f.dl;this.jf=
this.hh=0};g.prototype.Ha=function(f){var e=this.Oa;this.x+=Math.cos(this.n)*this.speed*f;this.y+=Math.sin(this.n)*this.speed*f;this.y+=this.hh*f;this.speed+=e.rb*f;this.size+=this.cl*f;this.hh+=e.Kb*f;this.jf+=f;1>this.size?this.Ra=!1:(0!==e.fj&&(this.n+=Math.random()*e.fj*f-e.fj*f/2),0!==e.hj&&(this.speed+=Math.random()*e.hj*f-e.hj*f/2),0!==e.gj&&(this.opacity+=Math.random()*e.gj*f-e.gj*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=e.Wg&&this.jf>=e.timeout&&(this.Ra=!1),
2===e.Wg&&0>=this.speed&&(this.Ra=!1))};g.prototype.Qc=function(f){var e=this.Oa.opacity*this.opacity;if(0!==e){0===this.Oa.Wg&&(e*=1-this.jf/this.Oa.timeout);f.globalAlpha=e;var e=this.x-this.size/2,b=this.y-this.size/2;this.Oa.b.Yc&&(e=e+.5|0,b=b+.5|0);f.drawImage(this.Oa.type.da,e,b,this.size,this.size)}};g.prototype.Xb=function(f){var e=this.Oa.opacity*this.opacity;0===this.Oa.Wg&&(e*=1-this.jf/this.Oa.timeout);var b=this.size,d=b*this.Oa.Ns,c=this.x-b/2,a=this.y-b/2;this.Oa.b.Yc&&(c=c+.5|0,a=
a+.5|0);1>d||0===e||(d<f.wz||d>f.No?(f.Lf(e),f.Lh(c,a,c+b,a,c+b,a+b,c,a+b)):f.Lz(this.x,this.y,d,e))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};f.O=function(f){this.type=f;this.b=f.b};var n=f.O.prototype,r=[];n.J=function(){var f=this.C;this.Fj=f[0];this.tm=J(f[1]);this.Eg=f[2];this.Ep=!0;this.oo=f[3];this.no=f[4];this.lo=
f[5]/100;this.ao=f[6];this.Om=f[7];this.Pm=f[8];this.rm=f[9];this.qm=f[10];this.dl=f[11];this.rb=f[12];this.Kb=f[13];this.fj=f[14];this.hj=f[15];this.gj=f[16];this.Wg=f[17];this.timeout=f[18];this.Bg=0;this.Ns=1;this.Ol=this.x;this.Ql=this.y;this.Pl=this.x;this.Nl=this.y;this.Cw(function(e){e.Ia.set(e.Ol,e.Ql,e.Pl,e.Nl);e.Tb.Rh(e.Ia);e.uk=!1;e.Qp();e.Tt()});this.ac||(this.mb=[]);this.b.Xe(this);this.type.jj();if(1===this.Eg)for(f=0;f<this.Fj;f++)this.nk().opacity=0;this.Ci=!0};n.Ua=function(){var f=
{r:this.Fj,sc:this.tm,st:this.Eg,s:this.Ep,isp:this.oo,isz:this.no,io:this.lo,gr:this.ao,xr:this.Om,yr:this.Pm,spr:this.rm,szr:this.qm,grnd:this.dl,acc:this.rb,g:this.Kb,lar:this.fj,lsr:this.hj,lor:this.gj,dm:this.Wg,to:this.timeout,pcc:this.Bg,ft:this.Ci,p:[]},e,b,d,c=f.p;e=0;for(b=this.mb.length;e<b;e++)d=this.mb[e],c.push([d.x,d.y,d.speed,d.n,d.opacity,d.cl,d.size,d.hh,d.jf]);return f};n.ab=function(f){this.Fj=f.r;this.tm=f.sc;this.Eg=f.st;this.Ep=f.s;this.oo=f.isp;this.no=f.isz;this.lo=f.io;this.ao=
f.gr;this.Om=f.xr;this.Pm=f.yr;this.rm=f.spr;this.qm=f.szr;this.dl=f.grnd;this.rb=f.acc;this.Kb=f.g;this.fj=f.lar;this.hj=f.lsr;this.gj=f.lor;this.Wg=f.dm;this.timeout=f.to;this.Bg=f.pcc;this.Ci=f.ft;r.push.apply(r,this.mb);I(this.mb);var e,b,d,c=f.p;f=0;for(e=c.length;f<e;f++)b=this.nk(),d=c[f],b.x=d[0],b.y=d[1],b.speed=d[2],b.n=d[3],b.opacity=d[4],b.cl=d[5],b.size=d[6],b.hh=d[7],b.jf=d[8]};n.je=function(){r.push.apply(r,this.mb);I(this.mb)};n.nk=function(){var f;r.length?(f=r.pop(),f.Oa=this):f=
new g(this);this.mb.push(f);f.Ra=!0;return f};n.Ha=function(){var f=this.b.vf(this),e,b,d,c;if(0===this.Eg&&this.Ep)for(this.Bg+=f*this.Fj,b=qa(this.Bg),this.Bg-=b,e=0;e<b;e++)d=this.nk(),d.init();this.Ol=this.x;this.Ql=this.y;this.Pl=this.x;this.Nl=this.y;c=e=0;for(b=this.mb.length;e<b;e++)d=this.mb[e],this.mb[c]=d,this.b.ua=!0,1===this.Eg&&this.Ci&&d.init(),d.Ha(f),d.Ra?(d.left()<this.Ol&&(this.Ol=d.left()),d.right()>this.Pl&&(this.Pl=d.right()),d.top()<this.Ql&&(this.Ql=d.top()),d.bottom()>this.Nl&&
(this.Nl=d.bottom()),c++):r.push(d);za(this.mb,c);this.B();this.Ci=!1;1===this.Eg&&0===this.mb.length&&this.b.Wd(this)};n.Qc=function(f){var e,b,d,c=this.q;e=0;for(b=this.mb.length;e<b;e++)d=this.mb[e],d.right()>=c.Ja&&d.bottom()>=c.Ka&&d.left()<=c.Ma&&d.top()<=c.La&&d.Qc(f)};n.Xb=function(f){this.Ns=this.q.tc();f.Bc(this.type.na);var e,b,d,c=this.q;e=0;for(b=this.mb.length;e<b;e++)d=this.mb[e],d.right()>=c.Ja&&d.bottom()>=c.Ka&&d.left()<=c.Ma&&d.top()<=c.La&&d.Xb(f)};f.k=new function(){};p.prototype.aw=
function(f){this.Fj=f;var e;if(1===this.Eg&&this.Ci)if(f<this.mb.length)for(f=this.mb.length-f,e=0;e<f;e++)r.push(this.mb.pop());else if(f>this.mb.length)for(f=f-this.mb.length,e=0;e<f;e++)this.nk().opacity=0};f.u=new p;f.L=new function(){}})();function X(g){this.b=g}
(function(){function g(){if(0===this.xn.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Sh?b.drawImage(this.da,this.Hh,this.Ih,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.da,0,0,this.width,this.height);this.xn=a.toDataURL("image/png")}return this.xn}function p(){}function f(a){a[0]=0;a[1]=0;a[2]=0;k.push(a)}function n(a,b){return a<b?""+a+","+b:""+b+","+a}function r(a,b,c,d){b=b.uid;c=c.uid;var e=n(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=k.length?k.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function l(a,b,c){b=n(b.uid,c.uid);a.hasOwnProperty(b)&&(f(a[b]),delete a[b])}function e(a,b,c){b=n(b.uid,c.uid);if(a.hasOwnProperty(b))return B=a[b][2],!0;B=-2;return!1}function b(){}function d(){}var c=X.prototype;c.T=function(a){this.za=a;this.b=a.b};var a=c.T.prototype;a.J=function(){if(!this.N){var a,b,c,d,e,f,h,k,n;this.Ad=[];this.Ji=!1;a=0;for(b=this.qc.length;a<b;a++){e=this.qc[a];h={};h.name=e[0];h.speed=e[1];h.loop=e[2];
h.mp=e[3];h.np=e[4];h.Os=e[5];h.qa=e[6];h.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],k={},k.xm=f[0],k.ym=f[1],k.Hh=f[2],k.Ih=f[3],k.width=f[4],k.height=f[5],k.duration=f[6],k.uc=f[7],k.vc=f[8],k.jo=f[9],k.Ul=f[10],k.Ps=f[11],k.Sh=0!==k.width,k.xn="",k.jB=g,n={left:0,top:0,right:1,bottom:1},k.Bp=n,k.na=null,(n=this.b.ky(f[0]))?k.da=n:(k.da=new Image,k.da.Tw=f[0],k.da.un=f[1],k.da.Lw=null,this.b.Tp(k.da,f[0])),h.frames.push(k),this.Ad.push(k);this.qc[a]=h}}};a.Qt=function(){var a,b,c;a=0;for(b=
this.j.length;a<b;a++)c=this.j[a],c.Ek=c.gd.na};a.yj=function(){if(!this.N){var a,b,c;a=0;for(b=this.Ad.length;a<b;++a)c=this.Ad[a],c.da.Lw=null,c.na=null;this.Ji=!1;this.Qt()}};a.Ml=function(){if(!this.N&&this.j.length){var a,b,c;a=0;for(b=this.Ad.length;a<b;++a)c=this.Ad[a],c.na=this.b.D.yh(c.da,!1,this.b.ea,c.Ps);this.Qt()}};a.jj=function(){if(!this.N&&!this.Ji&&this.b.D){var a,b,c;a=0;for(b=this.Ad.length;a<b;++a)c=this.Ad[a],c.na=this.b.D.yh(c.da,!1,this.b.ea,c.Ps);this.Ji=!0}};a.Gm=function(){if(!this.N&&
!this.j.length&&this.Ji){var a,b,c;a=0;for(b=this.Ad.length;a<b;++a)c=this.Ad[a],this.b.D.deleteTexture(c.na),c.na=null;this.Ji=!1}};var h=[];a.Yl=function(a){var b,c,d;I(h);b=0;for(c=this.Ad.length;b<c;++b)d=this.Ad[b].da,-1===h.indexOf(d)&&(a.drawImage(d,0,0),h.push(d))};c.O=function(a){this.type=a;this.b=a.b;a=this.type.qc[0].frames[0].Ul;this.ac?this.Ba.Nj(a):this.Ba=new hb(a)};var q=c.O.prototype;q.J=function(){this.visible=0===this.C[0];this.Ki=this.Ie=!1;this.ed=0!==this.C[3];1===this.type.qc.length&&
1===this.type.qc[0].frames.length||0===this.type.qc[0].speed||(this.b.Xe(this),this.Ie=!0);this.Pa=this.Zq(this.C[1])||this.type.qc[0];this.K=this.C[2];0>this.K&&(this.K=0);this.K>=this.Pa.frames.length&&(this.K=this.Pa.frames.length-1);var a=this.Pa.frames[this.K];this.Ba.Nj(a.Ul);this.uc=a.uc;this.vc=a.vc;this.Tg=this.Pa.speed;this.qf=this.Pa.np;this.ac?this.Cd.reset():this.Cd=new fb;this.be=this.Cd.V;this.nf=!0;this.te=0;this.lf=!0;this.zk=this.zq="";this.Hq=0;this.oi=-1;this.type.jj();var b,c,
d,e,f,h,g,a=0;for(b=this.type.qc.length;a<b;a++)for(e=this.type.qc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.da.width,f.height=f.da.height),f.Sh&&(g=f.da,h=f.Bp,h.left=f.Hh/g.width,h.top=f.Ih/g.height,h.right=(f.Hh+f.width)/g.width,h.bottom=(f.Ih+f.height)/g.height,0===f.Hh&&0===f.Ih&&f.width===g.width&&f.height===g.height&&(f.Sh=!1));this.gd=this.Pa.frames[this.K];this.Ek=this.gd.na};q.Ua=function(){var a={a:this.Pa.qa,f:this.K,cas:this.Tg,fs:this.be,ar:this.te,at:this.Cd.V,
rt:this.qf};this.nf||(a.ap=this.nf);this.lf||(a.af=this.lf);return a};q.ab=function(a){var b=this.ry(a.a);b&&(this.Pa=b);this.K=a.f;0>this.K&&(this.K=0);this.K>=this.Pa.frames.length&&(this.K=this.Pa.frames.length-1);this.Tg=a.cas;this.be=a.fs;this.te=a.ar;this.Cd.reset();this.Cd.V=a.at;this.nf=a.hasOwnProperty("ap")?a.ap:!0;this.lf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.qf=a.rt:this.qf=this.Pa.np;this.gd=this.Pa.frames[this.K];this.Ek=this.gd.na;this.Ba.Nj(this.gd.Ul);this.uc=
this.gd.uc;this.vc=this.gd.vc};q.jn=function(a){this.K=a?0:this.Pa.frames.length-1;this.nf=!1;this.zq=this.Pa.name;this.Ki=!0;this.b.trigger(X.prototype.k.Xu,this);this.b.trigger(X.prototype.k.cq,this);this.Ki=!1;this.te=0};q.li=function(){return this.Cd.V};q.Ha=function(){this.Cd.add(this.b.vf(this));this.zk.length&&this.Lq();0<=this.oi&&this.An();var a=this.Cd.V,b=this.Pa,c=b.frames[this.K],d=c.duration/this.Tg;this.nf&&a>=this.be+d&&(this.lf?this.K++:this.K--,this.be+=d,this.K>=b.frames.length&&
(b.Os?(this.lf=!1,this.K=b.frames.length-2):b.loop?this.K=this.qf:(this.te++,this.te>=b.mp?this.jn(!1):this.K=this.qf)),0>this.K&&(b.Os?(this.K=1,this.lf=!0,b.loop||(this.te++,this.te>=b.mp&&this.jn(!0))):b.loop?this.K=this.qf:(this.te++,this.te>=b.mp?this.jn(!0):this.K=this.qf)),0>this.K?this.K=0:this.K>=b.frames.length&&(this.K=b.frames.length-1),a>this.be+b.frames[this.K].duration/this.Tg&&(this.be=a),a=b.frames[this.K],this.Mg(c,a),this.b.ua=!0)};q.Zq=function(a){var b,c,d;b=0;for(c=this.type.qc.length;b<
c;b++)if(d=this.type.qc[b],nb(d.name,a))return d;return null};q.ry=function(a){var b,c,d;b=0;for(c=this.type.qc.length;b<c;b++)if(d=this.type.qc[b],d.qa===a)return d;return null};q.Lq=function(){var a=this.Pa.frames[this.K],b=this.Zq(this.zk);this.zk="";!b||nb(b.name,this.Pa.name)&&this.nf||(this.Pa=b,this.Tg=b.speed,this.qf=b.np,0>this.K&&(this.K=0),this.K>=this.Pa.frames.length&&(this.K=this.Pa.frames.length-1),1===this.Hq&&(this.K=0),this.nf=!0,this.be=this.Cd.V,this.lf=!0,this.Mg(a,this.Pa.frames[this.K]),
this.b.ua=!0)};q.An=function(){var a=this.Pa.frames[this.K],b=this.K;this.K=qa(this.oi);0>this.K&&(this.K=0);this.K>=this.Pa.frames.length&&(this.K=this.Pa.frames.length-1);b!==this.K&&(this.Mg(a,this.Pa.frames[this.K]),this.be=this.Cd.V,this.b.ua=!0);this.oi=-1};q.Mg=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.uc=b.uc;this.vc=b.vc;this.Ba.Nj(b.Ul);this.B();this.gd=b;this.Ek=b.na;c=0;for(d=this.U.length;c<d;c++)e=this.U[c],e.Ds&&
e.Ds(a,b);this.b.trigger(X.prototype.k.Mg,this)};q.Qc=function(a){a.globalAlpha=this.opacity;var b=this.gd,c=b.Sh,d=b.da,e=this.x,f=this.y,h=this.width,g=this.height;if(0===this.n&&0<=h&&0<=g)e-=this.uc*h,f-=this.vc*g,this.b.Yc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Hh,b.Ih,b.width,b.height,e,f,h,g):a.drawImage(d,e,f,h,g);else{this.b.Yc&&(e=Math.round(e),f=Math.round(f));a.save();var k=0<h?1:-1,n=0<g?1:-1;a.translate(e,f);1===k&&1===n||a.scale(k,n);a.rotate(this.n*k*n);e=0-this.uc*ma(h);
f=0-this.vc*ma(g);c?a.drawImage(d,b.Hh,b.Ih,b.width,b.height,e,f,ma(h),ma(g)):a.drawImage(d,e,f,ma(h),ma(g));a.restore()}};q.Zf=function(a){this.Xb(a)};q.Xb=function(a){a.Bc(this.Ek);a.Lf(this.opacity);var b=this.gd,c=this.Tb;if(this.b.Yc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Sh?a.ne(c.Db+d,c.Eb+e,c.gc+d,c.hc+e,c.Ub+d,c.Vb+e,c.Rb+d,c.Sb+e,b.Bp):a.Lh(c.Db+d,c.Eb+e,c.gc+d,c.hc+e,c.Ub+d,c.Vb+e,c.Rb+d,c.Sb+e)}else b.Sh?a.ne(c.Db,c.Eb,c.gc,c.hc,c.Ub,c.Vb,c.Rb,c.Sb,b.Bp):a.Lh(c.Db,
c.Eb,c.gc,c.hc,c.Ub,c.Vb,c.Rb,c.Sb)};q.xy=function(a){var b=this.gd,c,d;c=0;for(d=b.jo.length;c<d;c++)if(nb(a,b.jo[c][0]))return c;return-1};q.Di=function(a,b){var c=this.gd,d=c.jo,e;y(a)?e=this.xy(a):e=a-1;e=qa(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.uc)*this.width,d=d[e][2],d=(d-c.vc)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var h=f*c-d*e,d=d*c+f*e,f=h+this.x,d=d+this.y;return b?f:d};var k=[],B=-2,P=[];p.prototype.hv=function(a){if(!a)return!1;var b=this.b,c=b.fh(),
d=c.type,h=null;c.M.collmemory?h=c.M.collmemory:(h={},c.M.collmemory=h);c.M.spriteCreatedDestroyCallback||(c.M.spriteCreatedDestroyCallback=!0,b.lk(function(a){var b=c.M.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(f(b[d]),delete b[d])}));var g=d.aa(),k=a.aa(),g=g.Fc(),n,m,q,p,u,x,G,z=this.b.Rd,H=z-1,M=b.kb().gb;for(m=0;m<g.length;m++){q=g[m];k.ja?(q.Da(),this.b.On(q.q,a,q.Ia,P),n=P):n=k.Fc();for(p=0;p<n.length;p++)u=n[p],b.fc(q,u)||b.Pw(q,u)?(x=e(h,q,u),
x=!x||B<H,r(h,q,u,z),x&&(b.Hf(M.ma),x=d.aa(),G=a.aa(),x.ja=!1,G.ja=!1,d===a?(x.j.length=2,x.j[0]=q,x.j[1]=u,d.Dd()):(x.j.length=1,G.j.length=1,x.j[0]=q,G.j[0]=u,d.Dd(),a.Dd()),M.Jf(),b.Md(M.ma))):l(h,q,u);I(P)}return!1};var G=null,m=new ca,u=!1,H=[],z=new ta(0,0,0,0);a.finish=function(a){if(u){if(a){var b=this.b.kb().gb.od;a=G.aa();var c=m.$e(),d,e;if(a.ja){a.ja=!1;I(a.j);d=0;for(e=c.length;d<e;++d)a.j[d]=c[d];if(b)for(I(a.wa),d=0,e=G.j.length;d<e;++d)c=G.j[d],m.contains(c)||a.wa.push(c)}else if(b)for(b=
a.j.length,d=0,e=c.length;d<e;++d)a.j[b+d]=c[d],Fa(a.wa,c[d]);else Aa(a.j,c);G.Dd()}m.clear();u=!1}};p.prototype.Ku=function(a){if(a){var b=!1,c,d,e,f=this.b.fh(),h=f.type,f=f.jh;c=a.aa();d=this.b.kb().gb.od;var g;c.ja?(this.Da(),z.Sg(this.Ia),z.offset(0,0),this.b.On(this.q,a,z,H),g=H):g=d?c.wa:c.j;G=a;u=h!==a&&!f;c=0;for(d=g.length;c<d;c++)if(e=g[c],this.b.fc(this,e)){b=!0;if(f)break;h!==a&&m.add(e)}I(H);a=b}else a=!1;return a};p.prototype.iu=function(a,b){return ec(this.K,a,b)};p.prototype.cq=function(a){return nb(this.zq,
a)};p.prototype.Xu=function(){return!0};p.prototype.Mg=function(){return!0};c.k=new p;b.prototype.jw=function(a,b,c){if(a&&b&&(b=this.b.Ck(a,b,this.Di(c,!0),this.Di(c,!1)))){"undefined"!==typeof b.n&&(b.n=this.n,b.B());this.b.Vc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.za).k.Rf,b);if(b.Zb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.za).k.Rf,f);this.b.Vc--;d=this.b.vy();c=!1;if(ga(d.M.Spawn_LastExec)||d.M.Spawn_LastExec<this.b.dg)c=!0,d.M.Spawn_LastExec=
this.b.dg;if(a!=this.type&&(a=a.aa(),a.ja=!1,c?(I(a.j),a.j[0]=b):a.j.push(b),b.Zb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.aa(),a.ja=!1,c?(I(a.j),a.j[0]=f):a.j.push(f)}};b.prototype.kw=function(a){this.nf=!0;this.be=this.Cd.V;1===a&&0!==this.K&&(this.oi=0,this.Ki||this.An());this.Ie||(this.b.Xe(this),this.Ie=!0)};b.prototype.Mv=function(a,b){this.zk=a;this.Hq=b;this.Ie||(this.b.Xe(this),this.Ie=!0);this.Ki||this.Lq()};b.prototype.Nv=function(a){this.oi=a;this.Ie||(this.b.Xe(this),
this.Ie=!0);this.Ki||this.An()};b.prototype.Ov=function(a){this.Tg=ma(a);this.lf=0<=a;this.Ie||(this.b.Xe(this),this.Ie=!0)};b.prototype.Xv=function(a){a=ma(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.B())};b.prototype.Sv=function(a){a=ma(this.height)*(0===a?-1:1);this.height!==a&&(this.height=a,this.B())};b.prototype.Qv=function(a){this.ed!==(0!==a)&&((this.ed=0!==a)?this.B():(this.dd.right>=this.dd.left&&this.type.pi.update(this,this.dd,null),this.dd.set(0,0,-1,-1)))};c.u=new b;
d.prototype.$t=function(a){a.la(this.K)};c.L=new d})();function zc(g){this.b=g}
(function(){function g(){return d.length?d.pop():{}}function p(b){var a,e;a=0;for(e=b.length;a<e;a++)d.push(b[a]);I(b)}function f(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function n(){}function r(){}var l=zc.prototype;l.J=function(){l.u.sq=function(b){this.width!==b&&(this.width=b,this.Hg=!0,this.B())}};l.T=function(b){this.za=b;this.b=b.b};var e=l.T.prototype;e.J=function(){};e.yj=function(){if(!this.N){var b,a,d;b=0;for(a=this.j.length;b<a;b++)d=this.j[b],d.ie=
null,d.yg=null,d.Jc=null}};l.O=function(b){this.type=b;this.b=b.b;this.ac?I(this.Bf):this.Bf=[];this.Hg=!0};e=l.O.prototype;e.J=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.el=this.C[4];this.Km=this.C[5];this.Wp=0===this.C[7];this.Do=this.sl=this.width;this.rl=this.height;this.Fo=this.C[8];this.Vk=this.ah="";this.Ct=this.Dt=this.Dj=0;this.Iz();this.Jc=this.yg=this.ie=null;this.us=!1;this.cj=this.b.Rd;this.ac?this.If.set(0,0,1,1):this.If=new ta(0,
0,1,1);this.b.D&&this.b.Xe(this)};e.Iz=function(){var b=this.font.split(" "),a;for(a=0;a<b.length;a++)if("pt"===b[a].substr(b[a].length-2,2)){this.Dj=parseInt(b[a].substr(0,b[a].length-2));this.ip=Math.ceil(this.Dj/72*96)+4;0<a&&(this.Vk=b[a-1]);this.ah=b[a+1];for(a+=2;a<b.length;a++)this.ah+=" "+b[a];break}};e.Ua=function(){return{t:this.text,f:this.font,c:this.color,ha:this.el,va:this.Km,wr:this.Wp,lho:this.Fo,fn:this.ah,fs:this.Vk,ps:this.Dj,pxh:this.ip,tw:this.Dt,th:this.Ct,lrt:this.cj}};e.ab=
function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.el=b.ha;this.Km=b.va;this.Wp=b.wr;this.Fo=b.lho;this.ah=b.fn;this.Vk=b.fs;this.Dj=b.ps;this.ip=b.pxh;this.Dt=b.tw;this.Ct=b.th;this.cj=b.lrt;this.Hg=!0;this.Do=this.sl=this.width;this.rl=this.height};e.Ha=function(){if(this.b.D&&this.Jc&&300<=this.b.Rd-this.cj){var b=this.q;this.Da();var a=this.Ia;if(a.right<b.Ja||a.bottom<b.Ka||a.left>b.Ma||a.top>b.La)this.b.D.deleteTexture(this.Jc),this.ie=this.yg=this.Jc=null}};e.je=function(){this.ie=
this.yg=null;this.b.D&&this.Jc&&this.b.D.deleteTexture(this.Jc);this.Jc=null};e.li=function(){this.font=this.Vk+" "+this.Dj.toString()+"pt "+this.ah;this.Hg=!0;this.b.ua=!0};e.Qc=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var d=1;a&&(d=this.q.tc(),b.save(),b.scale(d,d));if(this.Hg||this.width!==this.Do)this.type.za.ww(this.text,this.Bf,b,this.width,this.Wp),this.Hg=!1,this.Do=this.width;this.Da();var d=a?0:this.Tb.Db,e=a?0:this.Tb.Eb;
this.b.Yc&&(d=d+.5|0,e=e+.5|0);0===this.n||a||(b.save(),b.translate(d,e),b.rotate(this.n),e=d=0);var f=e+this.height,g=this.ip,g=g+this.Fo,n,l;1===this.Km?e+=Math.max(this.height/2-this.Bf.length*g/2,0):2===this.Km&&(e+=Math.max(this.height-this.Bf.length*g-2,0));for(l=0;l<this.Bf.length&&!(n=d,1===this.el?n=d+(this.width-this.Bf[l].width)/2:2===this.el&&(n=d+(this.width-this.Bf[l].width)),b.fillText(this.Bf[l].text,n,e),e+=g,e>=f-g);l++);(0!==this.n||a)&&b.restore();this.cj=this.b.Rd};e.Xb=function(b){if(!(1>
this.width||1>this.height)){var a=this.Hg||this.us;this.us=!1;var d=this.q.tc(),e=this.q.Za(),f=this.If,g=d*this.width,n=d*this.height,l=Math.ceil(g),m=Math.ceil(n),p=this.b.R/2,r=this.b.P/2;this.yg||(this.ie=document.createElement("canvas"),this.ie.width=l,this.ie.height=m,this.sl=l,this.rl=m,a=!0,this.yg=this.ie.getContext("2d"));if(l!==this.sl||m!==this.rl)this.ie.width=l,this.ie.height=m,this.Jc&&(b.deleteTexture(this.Jc),this.Jc=null),a=!0;a&&(this.yg.clearRect(0,0,l,m),this.Qc(this.yg,!0),this.Jc||
(this.Jc=b.Oc(l,m,this.b.ea,this.b.xf)),b.vA(this.ie,this.Jc,this.b.xf));this.sl=l;this.rl=m;b.Bc(this.Jc);b.Lf(this.opacity);b.td();b.translate(-p,-r);b.$c();var z=this.Tb,a=this.q.Ta(z.Db,z.Eb,!0,!0),p=this.q.Ta(z.Db,z.Eb,!1,!0),r=this.q.Ta(z.gc,z.hc,!0,!0),t=this.q.Ta(z.gc,z.hc,!1,!0),K=this.q.Ta(z.Ub,z.Vb,!0,!0),C=this.q.Ta(z.Ub,z.Vb,!1,!0),D=this.q.Ta(z.Rb,z.Sb,!0,!0),z=this.q.Ta(z.Rb,z.Sb,!1,!0);if(this.b.Yc||0===this.n&&0===e)var A=(a+.5|0)-a,w=(p+.5|0)-p,a=a+A,p=p+w,r=r+A,t=t+w,K=K+A,C=C+
w,D=D+A,z=z+w;0===this.n&&0===e?(r=a+l,t=p,K=r,C=p+m,D=a,z=C,f.right=1,f.bottom=1):(f.right=g/l,f.bottom=n/m);b.ne(a,p,r,t,K,C,D,z,f);b.td();b.scale(d,d);b.gm(-this.q.Za());b.translate((this.q.Ja+this.q.Ma)/-2,(this.q.Ka+this.q.La)/-2);b.$c();this.cj=this.b.Rd}};var b=[];l.pw=function(c){I(b);for(var a="",d,e=0;e<c.length;)if(d=c.charAt(e),"\n"===d)a.length&&(b.push(a),a=""),b.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do a+=c.charAt(e),e++;while(e<c.length&&(" "===c.charAt(e)||"\t"===c.charAt(e)));
b.push(a);a=""}else e<c.length&&(a+=d,e++);a.length&&b.push(a)};var d=[];l.ww=function(b,a,d,e,f){if(b&&b.length)if(2>=e)p(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var n=d.measureText(b).width;if(n<=e){p(a);a.push(g());a[0].text=b;a[0].width=n;return}}this.xw(b,a,d,e,f)}else p(a)};l.xw=function(c,a,e,n,k){k&&(this.pw(c),c=b);var l="",p,r,m,u=0;for(m=0;m<c.length;m++)"\n"===c[m]?(u>=a.length&&a.push(g()),l=f(l),r=a[u],r.text=l,r.width=e.measureText(l).width,u++,l=""):(p=l,l+=c[m],r=e.measureText(l).width,
r>=n&&(u>=a.length&&a.push(g()),p=f(p),r=a[u],r.text=p,r.width=e.measureText(p).width,u++,l=c[m],k||" "!==l||(l="")));l.length&&(u>=a.length&&a.push(g()),l=f(l),r=a[u],r.text=l,r.width=e.measureText(l).width,u++);for(m=u;m<a.length;m++)d.push(a[m]);a.length=u};l.k=new function(){};n.prototype.bw=function(b){ha(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Hg=!0,this.b.ua=!0)};l.u=new n;r.prototype.Text=function(b){b.Ob(this.text)};l.L=new r})();
function Ac(g){this.b=g}
(function(){var g=Ac.prototype;g.T=function(f){this.za=f;this.b=f.b};var p=g.T.prototype;p.J=function(){this.N||(this.da=new Image,this.da.un=this.ym,this.b.Tp(this.da,this.xm),this.na=this.pattern=null)};p.yj=function(){this.N||(this.na=null)};p.Ml=function(){if(!this.N&&this.j.length){this.na||(this.na=this.b.D.yh(this.da,!0,this.b.ea,this.Vj));var f,g;f=0;for(g=this.j.length;f<g;f++)this.j[f].na=this.na}};p.jj=function(){this.N||this.na||!this.b.D||(this.na=this.b.D.yh(this.da,!0,this.b.ea,this.Vj))};
p.Gm=function(){this.N||this.j.length||!this.na||(this.b.D.deleteTexture(this.na),this.na=null)};p.Yl=function(f){f.drawImage(this.da,0,0)};g.O=function(f){this.type=f;this.b=f.b};p=g.O.prototype;p.J=function(){this.visible=0===this.C[0];this.If=new ta(0,0,0,0);this.nr=!1;this.da=this.type.da;this.b.D?(this.type.jj(),this.na=this.type.na):(this.type.pattern||(this.type.pattern=this.b.Fa.createPattern(this.type.da,"repeat")),this.pattern=this.type.pattern)};p.zd=function(){this.nr=!1;this.da=this.type.da};
p.je=function(){this.b.D&&this.nr&&this.na&&(this.b.D.deleteTexture(this.na),this.na=null)};p.Qc=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var g=this.x,p=this.y;this.b.Yc&&(g=Math.round(g),p=Math.round(p));var l=-(this.uc*this.width),e=-(this.vc*this.height),b=l%this.da.width,d=e%this.da.height;0>b&&(b+=this.da.width);0>d&&(d+=this.da.height);f.translate(g,p);f.rotate(this.n);f.translate(b,d);f.fillRect(l-b,e-d,this.width,this.height);f.restore()};p.Zf=function(f){this.Xb(f)};
p.Xb=function(f){f.Bc(this.na);f.Lf(this.opacity);var g=this.If;g.right=this.width/this.da.width;g.bottom=this.height/this.da.height;var p=this.Tb;if(this.b.Yc){var l=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;f.ne(p.Db+l,p.Eb+e,p.gc+l,p.hc+e,p.Ub+l,p.Vb+e,p.Rb+l,p.Sb+e,g)}else f.ne(p.Db,p.Eb,p.gc,p.hc,p.Ub,p.Vb,p.Rb,p.Sb,g)};g.k=new function(){};g.u=new function(){};g.L=new function(){}})();function Bc(g){this.b=g}
(function(){function g(b){var c;if(!a[b])for(a[b]=Array(20),c=0;20>c;++c)a[b][c]=0;return a[b]}function p(a){var b;if(!h[a])for(h[a]=Array(20),b=0;20>b;++b)h[a][b]=0;return h[a]}function f(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function n(a){c[a.gamepad.index]=a.gamepad;b.trigger(Bc.prototype.k.nv,d)}function r(a){b.trigger(Bc.prototype.k.ov,d);c[a.gamepad.index]=null}function l(){}var e=Bc.prototype;e.T=function(a){this.za=a;this.b=a.b};e.T.prototype.J=function(){};var b=null,d=null,c=Array(16),a=
Array(16),h=Array(16),q="",k="",B=null,P={windows:{}};P.windows.firefox={};var G=[0,1,2,3,4,5,8,9,10,11],m=[0,1,[7,6],2,3,[14,15],[12,13]];P.windows.firefox.xbox360=function(a,b){return b?a>=m.length?-1:ha(m[a])?m[a]+16:m[a]:a>=G.length?-1:G[a]};var u=[2,0,1,3,4,6,5,7,8,9],H=[0,1,2,3,[14,15],[12,13]];P.windows.firefox.logitechdualaction=function(a,b){return b?a>=H.length?-1:ha(H[a])?H[a]+16:H[a]:a>=u.length?-1:u[a]};e.O=function(a){this.type=a;b=this.b=a.b;d=this};var z=e.O.prototype;z.J=function(){this.Xw=
this.C[0];this.vh=0;var a=navigator.userAgent;q="windows";/mac/i.test(a)&&(q="mac");B=P[q];k="chrome";/firefox/i.test(a)&&(k="firefox");B&&(B=B[k]);window.addEventListener("webkitgamepadconnected",n,!1);window.addEventListener("webkitgamepaddisconnected",r,!1);window.addEventListener("MozGamepadConnected",n,!1);window.addEventListener("MozGamepadDisconnected",r,!1);window.addEventListener("gamepadconnected",n,!1);window.addEventListener("gamepaddisconnected",r,!1);this.b.Xe(this);this.Ng=[]};z.Ha=
function(){this.Ng.length=0;var b=null,d=!1;navigator.getGamepads?b=navigator.getGamepads():navigator.webkitGetGamepads?b=navigator.webkitGetGamepads():navigator.mozGetGamepads?b=navigator.mozGetGamepads():navigator.msGetGamepads?b=navigator.msGetGamepads():this.b.Hr&&window.cr_getGamepads?(b=window.cr_getGamepads(),d=!0):b=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||c;if(b){var e,k,l,n,m,q,r;e=0;for(k=b.length;e<k;e++){var u=b[e];if(u){var z=g(e),v=p(e);n=e;l=g(n);n=p(n);
m=void 0;for(m=0;20>m;++m)n[m]=l[m];d?l=f:B?(l="",n=u.id.toLowerCase(),-1<n.indexOf("xbox 360")?l="xbox360":-1<n.indexOf("logitech dual action")&&(l="logitechdualaction"),l=B[l]||f):l=f;m=l;l=0;for(n=u.buttons.length;l<n;l++)r="undefined"!==typeof u.buttons[l].value?u.buttons[l].value:u.buttons[l],q=m(l,!1,r),0<=q&&20>q&&(z[q]=100*r,50<=z[q]&&50>v[q]&&(this.vh=q));l=0;for(n=u.axes.length;l<n;l++)r=u.axes[l],q=m(l,!0,r),ha(q)?0<=q&&20>q&&(z[q]=100*r):(z[q[0]]=0,z[q[1]]=0,0>=r?z[q[0]]=Math.abs(100*
r):z[q[1]]=Math.abs(100*r));this.Ng.push(u)}else u=e,a[u]=null,h[u]=null}for(;20>e;++e)b=e,a[b]=null,h[b]=null}};z.Ua=function(){return{lastButton:this.vh}};z.ab=function(a){this.vh=a.lastButton};l.prototype.nv=function(){return!0};l.prototype.ov=function(){return!0};l.prototype.aq=function(a,b){a=Math.floor(a);if(0>a||a>=this.Ng.length)return!1;var c=g(a);if(!c)return!1;if(c=50<=c[b])this.vh=b;return c};l.prototype.bv=function(a,b){a=Math.floor(a);if(0>a||a>=this.Ng.length)return!1;var c=g(a),d=
p(a);if(!c||!d)return!1;if(c=50<=c[b]&&50>d[b])this.vh=b;return c};l.prototype.cv=function(a,b){a=Math.floor(a);if(0>a||a>=this.Ng.length)return!1;var c=g(a),d=p(a);if(!c||!d)return!1;if(c=50>c[b]&&50<=d[b])this.vh=b;return c};l.prototype.hu=function(a,b,c,d){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.Ng.length)return!1;if(a=g(a)){var e=a[b+16],f=0,f=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(e*e+f*f)<=this.Xw&&(e=0);return ec(e,c,d)}};e.k=new l;e.u=new function(){};e.L=new function(){}})();
function Cc(g){this.b=g}
(function(){function g(){}var p=Cc.prototype;p.T=function(f){this.behavior=f;this.b=f.b};p.T.prototype.J=function(){};p.O=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var f=p.O.prototype;f.J=function(){var f=this.C[0];this.rb=this.C[1];this.Kb=this.C[2];this.Jw=0!==this.C[3];this.up=0!==this.C[4];this.F=Math.cos(this.d.n)*f;this.H=Math.sin(this.d.n)*f;this.tl=this.d.x;this.ul=this.d.y;this.Wc=this.d.n;this.Dm=0;this.enabled=0!==this.C[5]};f.Ua=function(){return{acc:this.rb,g:this.Kb,
dx:this.F,dy:this.H,lx:this.tl,ly:this.ul,lka:this.Wc,t:this.Dm,e:this.enabled}};f.ab=function(f){this.rb=f.acc;this.Kb=f.g;this.F=f.dx;this.H=f.dy;this.tl=f.lx;this.ul=f.ly;this.Wc=f.lka;this.Dm=f.t;this.enabled=f.e};f.Ha=function(){if(this.enabled){var f=this.b.vf(this.d),g,l;this.d.n!==this.Wc&&(this.up&&(g=Ta(0,0,this.F,this.H),this.F=Math.cos(this.d.n)*g,this.H=Math.sin(this.d.n)*g),this.Wc=this.d.n);0!==this.rb&&(g=Ta(0,0,this.F,this.H),l=0===this.F&&0===this.H?this.d.n:Ma(0,0,this.F,this.H),
g+=this.rb*f,0>g&&(g=0),this.F=Math.cos(l)*g,this.H=Math.sin(l)*g);0!==this.Kb&&(this.H+=this.Kb*f);this.tl=this.d.x;this.ul=this.d.y;if(0!==this.F||0!==this.H)if(this.d.x+=this.F*f,this.d.y+=this.H*f,this.Dm+=Ta(0,0,this.F*f,this.H*f),this.up&&(this.d.n=Ma(0,0,this.F,this.H),this.d.B(),this.Wc=this.d.n),this.d.B(),this.Jw&&(g=this.b.qb(this.d)))this.b.Mh(this.d,g),g=Ta(0,0,this.F,this.H),l=this.b.Mw(this.d,this.tl,this.ul),this.F=Math.cos(l)*g,this.H=Math.sin(l)*g,this.d.x+=this.F*f,this.d.y+=this.H*
f,this.d.B(),this.up&&(this.Wc=this.d.n=l,this.d.B()),this.b.sd(this.d,this.F/g,this.H/g,Math.max(2.5*g*f,30))||this.b.Xs(this.d,100)}};p.k=new function(){};g.prototype.$m=function(f){var g=Ma(0,0,this.F,this.H);this.F=Math.cos(g)*f;this.H=Math.sin(g)*f};g.prototype.Lv=function(f){f=J(f);var g=Ta(0,0,this.F,this.H);this.F=Math.cos(f)*g;this.H=Math.sin(f)*g};g.prototype.dk=function(f){this.enabled=1===f};p.u=new g;p.L=new function(){}})();function Dc(g){this.b=g}
(function(){function g(){}function p(){}var f=Dc.prototype;f.T=function(f){this.behavior=f;this.b=f.b};f.T.prototype.J=function(){};f.O=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var n=f.O.prototype;n.J=function(){this.dn=1===this.C[0];this.gt=!1;this.Ai=this.C[1];this.ak=this.C[2];this.Ok=this.C[3];this.bx=this.C[4];this.Mc=this.dn?0:3;this.ac?this.vd.reset():this.vd=new fb;this.Ff=this.d.opacity?this.d.opacity:1;this.dn&&(0===this.Ai?(this.Mc=1,0===this.ak&&(this.Mc=
2)):(this.d.opacity=0,this.b.ua=!0))};n.Ua=function(){return{fit:this.Ai,wt:this.ak,fot:this.Ok,s:this.Mc,st:this.vd.V,mo:this.Ff}};n.ab=function(f){this.Ai=f.fit;this.ak=f.wt;this.Ok=f.fot;this.Mc=f.s;this.vd.reset();this.vd.V=f.st;this.Ff=f.mo};n.Ha=function(){this.vd.add(this.b.vf(this.d));0===this.Mc&&(this.d.opacity=this.vd.V/this.Ai*this.Ff,this.b.ua=!0,this.d.opacity>=this.Ff&&(this.d.opacity=this.Ff,this.Mc=1,this.vd.reset(),this.b.trigger(Dc.prototype.k.jv,this.d)));1===this.Mc&&this.vd.V>=
this.ak&&(this.Mc=2,this.vd.reset(),this.b.trigger(Dc.prototype.k.Dv,this.d));2===this.Mc&&0!==this.Ok&&(this.d.opacity=this.Ff-this.vd.V/this.Ok*this.Ff,this.b.ua=!0,0>this.d.opacity&&(this.d.opacity=0,this.Mc=3,this.vd.reset(),this.b.trigger(Dc.prototype.k.kv,this.d),1===this.bx&&this.b.Wd(this.d)))};n.Nq=function(){this.Mc=0;this.vd.reset();0===this.Ai?(this.Mc=1,0===this.ak&&(this.Mc=2)):(this.d.opacity=0,this.b.ua=!0)};g.prototype.kv=function(){return!0};g.prototype.jv=function(){return!0};g.prototype.Dv=
function(){return!0};f.k=new g;p.prototype.lw=function(){this.dn||this.gt||(this.Ff=this.d.opacity?this.d.opacity:1,this.gt=!0);3===this.Mc&&this.Nq()};p.prototype.Hv=function(){this.Nq()};f.u=new p;f.L=new function(){}})();function Ec(g){this.b=g}
(function(){function g(){}var p=Ec.prototype;p.T=function(f){this.behavior=f;this.b=f.b};p.T.prototype.J=function(){};p.O=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var f=p.O.prototype;f.J=function(){this.nb=null;this.Sl=-1;this.mode=this.Wc=this.zm=this.Gh=this.Pe=this.Bj=0;var f=this;this.ac||(this.uj=function(g){f.xj(g)});this.b.lk(this.uj)};f.Ua=function(){return{uid:this.nb?this.nb.uid:-1,pa:this.Bj,pd:this.Pe,msa:this.Gh,tsa:this.zm,lka:this.Wc,m:this.mode}};f.ab=
function(f){this.Sl=f.uid;this.Bj=f.pa;this.Pe=f.pd;this.Gh=f.msa;this.zm=f.tsa;this.Wc=f.lka;this.mode=f.m};f.zd=function(){-1===this.Sl?this.nb=null:this.nb=this.b.gg(this.Sl);this.Sl=-1};f.xj=function(f){this.nb==f&&(this.nb=null)};f.je=function(){this.nb=null;this.b.Zs(this.uj)};f.Ha=function(){};f.Bm=function(){if(this.nb){this.Wc!==this.d.n&&(this.Gh=Ja(this.Gh+(this.d.n-this.Wc)));var f=this.d.x,g=this.d.y;if(3===this.mode||4===this.mode){var l=Ta(this.d.x,this.d.y,this.nb.x,this.nb.y);if(l>
this.Pe||4===this.mode&&l<this.Pe)g=Ma(this.nb.x,this.nb.y,this.d.x,this.d.y),f=this.nb.x+Math.cos(g)*this.Pe,g=this.nb.y+Math.sin(g)*this.Pe}else f=this.nb.x+Math.cos(this.nb.n+this.Bj)*this.Pe,g=this.nb.y+Math.sin(this.nb.n+this.Bj)*this.Pe;this.Wc=l=Ja(this.Gh+(this.nb.n-this.zm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.d.x===f&&this.d.y===g||(this.d.x=f,this.d.y=g,this.d.B());0!==this.mode&&2!==this.mode||this.d.n===l||(this.d.n=l,this.d.B())}};p.k=new function(){};g.prototype.Fv=
function(f,g){if(f){var l=f.er(this.d);l&&(this.nb=l,this.Bj=Ma(l.x,l.y,this.d.x,this.d.y)-l.n,this.Pe=Ta(l.x,l.y,this.d.x,this.d.y),this.Wc=this.Gh=this.d.n,this.zm=l.n,this.mode=g)}};g.prototype.sw=function(){this.nb=null};p.u=new g;p.L=new function(){}})();function Fc(g){this.b=g}
(function(){function g(){}function p(){}function f(){}var n=Fc.prototype;n.T=function(f){this.behavior=f;this.b=f.b};n.T.prototype.J=function(){};n.O=function(f,e){this.type=f;this.behavior=f.behavior;this.d=e;this.b=f.b;this.Qj=this.om=this.nm=this.ho=this.ni=this.wi=this.rh=this.sh=this.Ij=this.ej=!1;this.wc=null;this.Go=-1;this.rg=this.qg=0;this.Uk=!1;this.eg=this.Bd=0;this.Tk=!0;this.H=this.F=0};var r=n.O.prototype;r.Rt=function(){this.hb=Math.cos(this.eh);this.ib=Math.sin(this.eh);this.Qe=Math.cos(this.eh-
Math.PI/2);this.Re=Math.sin(this.eh-Math.PI/2);this.hb=mb(this.hb);this.ib=mb(this.ib);this.Qe=mb(this.Qe);this.Re=mb(this.Re);this.Mn=this.Kb;0>this.Kb&&(this.hb*=-1,this.ib*=-1,this.Kb=Math.abs(this.Kb))};r.J=function(){this.Dh=this.C[0];this.rb=this.C[1];this.Vg=this.C[2];this.Yi=this.C[3];this.Mn=this.Kb=this.C[4];this.Hl=this.C[5];this.Cn=0!==this.C[6];this.Ao=this.C[7]/1E3;this.Zw=1===this.C[8];this.enabled=0!==this.C[9];this.$h=!1;this.ai=this.b.We(this.d);this.Ho=-1;this.Gg=0;this.eh=J(90);
this.Rt();var f=this;this.Zw&&!this.b.Qa&&(jQuery(document).keydown(function(e){f.To(e)}),jQuery(document).keyup(function(e){f.Uo(e)}));this.ac||(this.uj=function(e){f.xj(e)});this.b.lk(this.uj);this.d.M.isPlatformBehavior=!0};r.Ua=function(){return{ii:this.ho,lfx:this.qg,lfy:this.rg,lfo:this.wc?this.wc.uid:-1,am:this.Bd,en:this.enabled,fall:this.eg,ft:this.Tk,dx:this.F,dy:this.H,ms:this.Dh,acc:this.rb,dec:this.Vg,js:this.Yi,g:this.Kb,g1:this.Mn,mf:this.Hl,wof:this.$h,woj:this.ai?this.ai.uid:-1,ga:this.eh,
edj:this.Cn,cdj:this.ni,dj:this.wi,sus:this.Ao}};r.ab=function(f){this.ho=f.ii;this.qg=f.lfx;this.rg=f.lfy;this.Go=f.lfo;this.Bd=f.am;this.enabled=f.en;this.eg=f.fall;this.Tk=f.ft;this.F=f.dx;this.H=f.dy;this.Dh=f.ms;this.rb=f.acc;this.Vg=f.dec;this.Yi=f.js;this.Kb=f.g;this.Mn=f.g1;this.Hl=f.mf;this.$h=f.wof;this.Ho=f.woj;this.eh=f.ga;this.Cn=f.edj;this.ni=f.cdj;this.wi=f.dj;this.Ao=f.sus;this.Qj=this.om=this.nm=this.rh=this.sh=this.Ij=this.ej=!1;this.Gg=0;this.Rt()};r.zd=function(){-1===this.Go?
this.wc=null:this.wc=this.b.gg(this.Go);-1===this.Ho?this.ai=null:this.ai=this.b.gg(this.Ho)};r.xj=function(f){this.wc==f&&(this.wc=null)};r.je=function(){this.wc=null;this.b.Zs(this.uj)};r.To=function(f){switch(f.which){case 38:f.preventDefault();this.sh=!0;break;case 37:f.preventDefault();this.ej=!0;break;case 39:f.preventDefault(),this.Ij=!0}};r.Uo=function(f){switch(f.which){case 38:f.preventDefault();this.rh=this.sh=!1;break;case 37:f.preventDefault();this.ej=!1;break;case 39:f.preventDefault(),
this.Ij=!1}};r.Ag=function(){this.sh=this.Ij=this.ej=!1};r.li=function(){return 0>this.Kb?-1:1};r.Cr=function(){var f=null,e=null,b,d;b=this.d.x;d=this.d.y;this.d.x+=this.hb;this.d.y+=this.ib;this.d.B();if(this.wc&&this.b.fc(this.d,this.wc))return this.d.x=b,this.d.y=d,this.d.B(),this.wc;(f=this.b.qb(this.d))||0!==this.eg||(e=this.b.We(this.d,!0));this.d.x=b;this.d.y=d;this.d.B();if(f){if(this.b.fc(this.d,f))return null;this.Uk=!1;return f}if(e&&e.length){d=f=0;for(b=e.length;f<b;f++)e[d]=e[f],this.b.fc(this.d,
e[f])||d++;if(1<=d)return this.Uk=!0,e[0]}return null};r.Ha=function(){};r.Ss=function(){var f=this.b.vf(this.d),e,b,d,c,a,g,n,k,p;this.sh||this.Qj||(this.rh=!1);var r=this.ej||this.nm;d=this.Ij||this.om;var G=(c=this.sh||this.Qj)&&!this.rh;this.Qj=this.om=this.nm=!1;if(this.enabled){this.ho&&(G=c=d=r=!1);c||(this.Gg=0);k=this.wc;p=!1;this.Tk&&((this.b.qb(this.d)||this.b.We(this.d))&&this.b.sd(this.d,-this.hb,-this.ib,4,!0),this.Tk=!1);!k||0!==this.H||k.y===this.rg&&k.x===this.qg||(e=k.x-this.qg,
b=k.y-this.rg,this.d.x+=e,this.d.y+=b,this.d.B(),this.qg=k.x,this.rg=k.y,p=!0,this.b.qb(this.d)&&this.b.sd(this.d,-e,-b,2.5*Math.sqrt(e*e+b*b)));var m=this.Cr();if(b=this.b.qb(this.d))if(this.d.M.inputPredicted)this.b.sd(this.d,-this.hb,-this.ib,10,!1);else if(this.b.Xs(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Mh(this.d,b);else return;m?(this.ni=this.wi=!1,0<this.H&&(this.$h||(this.b.hp(this.d,-this.hb,-this.ib,m),this.$h=!0),this.H=0),k!=m)?(this.wc=m,this.qg=m.x,this.rg=m.y,this.b.Mh(this.d,
m)):p&&(b=this.b.qb(this.d))&&(this.b.Mh(this.d,b),0!==e&&(0<e?this.b.sd(this.d,-this.Qe,-this.Re):this.b.sd(this.d,this.Qe,this.Re)),this.b.sd(this.d,-this.hb,-this.ib)):c||(this.ni=!0);if(m&&G||!m&&this.Cn&&c&&this.ni&&!this.wi)k=this.d.x,p=this.d.y,this.d.x-=this.hb,this.d.y-=this.ib,this.d.B(),this.b.qb(this.d)?G=!1:(this.Gg=this.Ao,this.b.trigger(Fc.prototype.k.rv,this.d),this.Bd=2,this.H=-this.Yi,G=!0,m?this.rh=!0:this.wi=!0),this.d.x=k,this.d.y=p,this.d.B();m||(c&&0<this.Gg?(this.H=-this.Yi,
this.Gg-=f):(this.wc=null,this.H+=this.Kb*f,this.H>this.Hl&&(this.H=this.Hl)),G&&(this.rh=!0));this.$h=!!m;r==d&&(0>this.F?(this.F+=this.Vg*f,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.Vg*f,0>this.F&&(this.F=0)));r&&!d&&(this.F=0<this.F?this.F-(this.rb+this.Vg)*f:this.F-this.rb*f);d&&!r&&(this.F=0>this.F?this.F+(this.rb+this.Vg)*f:this.F+this.rb*f);this.F>this.Dh?this.F=this.Dh:this.F<-this.Dh&&(this.F=-this.Dh);r=!1;0!==this.F&&(k=this.d.x,p=this.d.y,e=this.F*f*this.Qe,b=this.F*f*this.Re,this.d.x+=
this.Qe*(1<this.F?1:-1)-this.hb,this.d.y+=this.Re*(1<this.F?1:-1)-this.ib,this.d.B(),c=!1,a=this.b.qb(this.d),this.d.x=k+e,this.d.y=p+b,this.d.B(),d=this.b.qb(this.d),!d&&m&&(d=this.b.We(this.d))&&(this.d.x=k,this.d.y=p,this.d.B(),this.b.fc(this.d,d)?(d=null,c=!1):c=!0,this.d.x=k+e,this.d.y=p+b,this.d.B()),d?(e=Math.abs(this.F*f)+2,a||!this.b.sd(this.d,-this.hb,-this.ib,e,c,d))?(this.b.Mh(this.d,d),e=Math.max(Math.abs(this.F*f*2.5),30),this.b.sd(this.d,this.Qe*(0>this.F?1:-1),this.Re*(0>this.F?1:
-1),e,!1)?!m||c||this.Uk||(k=this.d.x,p=this.d.y,this.d.x+=this.hb,this.d.y+=this.ib,this.b.qb(this.d)?this.b.sd(this.d,-this.hb,-this.ib,3,!1)||(this.d.x=k,this.d.y=p,this.d.B()):(this.d.x=k,this.d.y=p,this.d.B())):(this.d.x=k,this.d.y=p,this.d.B()),c||(this.F=0)):!a&&!G&&Math.abs(this.H)<Math.abs(this.Yi/4)&&(this.H=0,m||(r=!0)):(k=this.Cr(),m&&!k?(b=Math.ceil(Math.abs(this.F*f))+2,k=this.d.x,p=this.d.y,this.d.x+=this.hb*b,this.d.y+=this.ib*b,this.d.B(),this.b.qb(this.d)||this.b.We(this.d)?this.b.sd(this.d,
-this.hb,-this.ib,b+2,!0):(this.d.x=k,this.d.y=p,this.d.B())):k&&0===this.H&&this.b.hp(this.d,-this.hb,-this.ib,k)));if(0!==this.H){k=this.d.x;p=this.d.y;this.d.x+=this.H*f*this.hb;this.d.y+=this.H*f*this.ib;e=this.d.x;d=this.d.y;this.d.B();b=this.b.qb(this.d);c=!1;if(!b&&0<this.H&&!m){if((c=0<this.eg?null:this.b.We(this.d,!0))&&c.length){if(this.ai){this.d.x=k;this.d.y=p;this.d.B();n=a=0;for(g=c.length;a<g;a++)c[n]=c[a],this.b.fc(this.d,c[a])||n++;c.length=n;this.d.x=e;this.d.y=d;this.d.B()}1<=c.length&&
(b=c[0])}c=!!b}b&&(this.b.Mh(this.d,b),this.Gg=0,e=c?Math.abs(this.H*f*2.5+10):Math.max(Math.abs(this.H*f*2.5+10),30),this.b.sd(this.d,this.hb*(0>this.H?1:-1),this.ib*(0>this.H?1:-1),e,c,b)?(this.wc=b,this.qg=b.x,this.rg=b.y,(this.Uk=c)&&(r=!0),this.H=0):(this.d.x=k,this.d.y=p,this.d.B(),this.$h=!0,c||(this.H=0)))}3!==this.Bd&&0<this.H&&!m&&(this.b.trigger(Fc.prototype.k.lv,this.d),this.Bd=3);if(m||r)3===this.Bd||r||G&&0===this.H?(this.b.trigger(Fc.prototype.k.tv,this.d),this.Bd=0===this.F&&0===this.H?
0:1):(0!==this.Bd&&0===this.F&&0===this.H&&(this.b.trigger(Fc.prototype.k.nq,this.d),this.Bd=0),1===this.Bd||0===this.F&&0===this.H||G||(this.b.trigger(Fc.prototype.k.vv,this.d),this.Bd=1));0<this.eg&&this.eg--;this.ai=this.b.We(this.d)}};g.prototype.Fu=function(){return 0!==this.F||0!==this.H};g.prototype.Gu=function(){if(0!==this.H)return!1;var f=null,e=null,b,d;b=this.d.x;d=this.d.y;this.d.x+=this.hb;this.d.y+=this.ib;this.d.B();(f=this.b.qb(this.d))||0!==this.eg||(e=this.b.We(this.d,!0));this.d.x=
b;this.d.y=d;this.d.B();if(f)return!this.b.fc(this.d,f);if(e&&e.length){d=f=0;for(b=e.length;f<b;f++)e[d]=e[f],this.b.fc(this.d,e[f])||d++;if(1<=d)return!0}return!1};g.prototype.zu=function(f){var e=!1,b=this.d.x,d=this.d.y;this.d.x-=3*this.hb;this.d.y-=3*this.ib;this.d.B();if(this.b.qb(this.d))return this.d.x=b,this.d.y=d,this.d.B(),!1;0===f?(this.d.x-=2*this.Qe,this.d.y-=2*this.Re):(this.d.x+=2*this.Qe,this.d.y+=2*this.Re);this.d.B();e=this.b.qb(this.d);this.d.x=b;this.d.y=d;this.d.B();return e};
g.prototype.Du=function(){return 0>this.H};g.prototype.Bu=function(){return 0<this.H};g.prototype.rv=function(){return!0};g.prototype.lv=function(){return!0};g.prototype.nq=function(){return!0};g.prototype.vv=function(){return!0};g.prototype.tv=function(){return!0};n.k=new g;p.prototype.iw=function(f){switch(f){case 0:this.nm=!0;break;case 1:this.om=!0;break;case 2:this.Qj=!0}};p.prototype.ew=function(f){this.H=f};p.prototype.dk=function(f){this.enabled!==(1===f)&&(this.enabled=1===f,this.enabled||
(this.wc=null))};n.u=new p;f.prototype.uw=function(f){f.S(this.H)};n.L=new f})();function Gc(g){this.b=g}
(function(){function g(){}var p=Gc.prototype;p.T=function(f){this.behavior=f;this.b=f.b};p.T.prototype.J=function(){};p.O=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var f=p.O.prototype;f.J=function(){this.speed=J(this.C[0]);this.rb=J(this.C[1])};f.Ua=function(){return{speed:this.speed,acc:this.rb}};f.ab=function(f){this.speed=f.speed;this.rb=f.acc};f.Ha=function(){var f=this.b.vf(this.d);0!==f&&(0!==this.rb&&(this.speed+=this.rb*f),0!==this.speed&&(this.d.n=Ja(this.d.n+
this.speed*f),this.d.B()))};p.k=new function(){};g.prototype.$m=function(f){this.speed=J(f)};p.u=new g;p.L=new function(){}})();function Hc(g){this.b=g}
(function(){function g(){}var p=Hc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.O=function(e,b){this.type=e;this.behavior=e.behavior;this.d=b;this.b=e.b;this.wb=0};var f=p.O.prototype,n=2*Math.PI,r=Math.PI/2,l=3*Math.PI/2;f.J=function(){this.Ra=1===this.C[0];this.tj=this.C[1];this.Vp=this.C[2];this.me=this.C[3];this.me+=Math.random()*this.C[4];0===this.me?this.wb=0:(this.wb=this.C[5]/this.me*n,this.wb+=Math.random()*this.C[6]/this.me*n);this.xc=this.C[7];this.xc+=
Math.random()*this.C[8];this.Gj=this.lg=this.ra=0;this.init()};f.Ua=function(){return{i:this.wb,a:this.Ra,mv:this.tj,w:this.Vp,p:this.me,mag:this.xc,iv:this.ra,iv2:this.lg,r:this.Gj,lkv:this.Ic,lkv2:this.Zi}};f.ab=function(e){this.wb=e.i;this.Ra=e.a;this.tj=e.mv;this.Vp=e.w;this.me=e.p;this.xc=e.mag;this.ra=e.iv;this.lg=e.iv2||0;this.Gj=e.r;this.Ic=e.lkv;this.Zi=e.lkv2||0};f.init=function(){switch(this.tj){case 0:this.ra=this.d.x;break;case 1:this.ra=this.d.y;break;case 2:this.ra=this.d.width;this.Gj=
this.d.height/this.d.width;break;case 3:this.ra=this.d.width;break;case 4:this.ra=this.d.height;break;case 5:this.ra=this.d.n;this.xc=J(this.xc);break;case 6:this.ra=this.d.opacity;break;case 7:this.ra=0;break;case 8:this.ra=this.d.x,this.lg=this.d.y}this.Ic=this.ra;this.Zi=this.lg};f.df=function(e){e=e%n;switch(this.Vp){case 0:return Math.sin(e);case 1:return e<=r?e/r:e<=l?1-2*(e-r)/Math.PI:(e-l)/r-1;case 2:return 2*e/n-1;case 3:return-2*e/n+1;case 4:return e<Math.PI?-1:1}return 0};f.Ha=function(){var e=
this.b.vf(this.d);if(this.Ra&&0!==e){0===this.me?this.wb=0:(this.wb+=e/this.me*n,this.wb=this.wb%n);switch(this.tj){case 0:this.d.x!==this.Ic&&(this.ra+=this.d.x-this.Ic);this.d.x=this.ra+this.df(this.wb)*this.xc;this.Ic=this.d.x;break;case 1:this.d.y!==this.Ic&&(this.ra+=this.d.y-this.Ic);this.d.y=this.ra+this.df(this.wb)*this.xc;this.Ic=this.d.y;break;case 2:this.d.width=this.ra+this.df(this.wb)*this.xc;this.d.height=this.d.width*this.Gj;break;case 3:this.d.width=this.ra+this.df(this.wb)*this.xc;
break;case 4:this.d.height=this.ra+this.df(this.wb)*this.xc;break;case 5:this.d.n!==this.Ic&&(this.ra=Ja(this.ra+(this.d.n-this.Ic)));this.d.n=Ja(this.ra+this.df(this.wb)*this.xc);this.Ic=this.d.n;break;case 6:this.d.opacity=this.ra+this.df(this.wb)*this.xc/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.Ic&&(this.ra+=this.d.x-this.Ic),this.d.y!==this.Zi&&(this.lg+=this.d.y-this.Zi),this.d.x=this.ra+Math.cos(this.d.n)*this.df(this.wb)*this.xc,
this.d.y=this.lg+Math.sin(this.d.n)*this.df(this.wb)*this.xc,this.Ic=this.d.x,this.Zi=this.d.y}this.d.B()}};f.Ds=function(e,b){switch(this.tj){case 2:this.ra*=b.width/e.width;this.Gj=b.height/b.width;break;case 3:this.ra*=b.width/e.width;break;case 4:this.ra*=b.height/e.height}};p.k=new function(){};g.prototype.Jv=function(e){this.Ra=1===e};g.prototype.Zv=function(e){this.me=e};p.u=new g;p.L=new function(){}})();function Kc(g){this.b=g}
(function(){var g=Kc.prototype;g.T=function(g){this.behavior=g;this.b=g.b};g.T.prototype.J=function(){};g.O=function(g,f){this.type=g;this.behavior=g.behavior;this.d=f;this.b=g.b};g=g.O.prototype;g.J=function(){};g.Ha=function(){this.d.Da();var g=this.d.Ia,f=this.d.q.$a;(0>g.right||0>g.bottom||g.left>f.width||g.top>f.height)&&this.b.Wd(this.d)}})();function Lc(g){this.b=g;this.Ap=this.mm=this.Pj=this.zp=0}
(function(){function g(){}var p=Lc.prototype;p.T=function(f){this.behavior=f;this.b=f.b};p.T.prototype.J=function(){};p.O=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var f=p.O.prototype;f.J=function(){this.enabled=0!==this.C[0]};f.Ua=function(){return{smg:this.behavior.zp,ss:this.behavior.Pj,se:this.behavior.mm,smd:this.behavior.Ap}};f.ab=function(f){this.behavior.zp=f.smg;this.behavior.Pj=f.ss;this.behavior.mm=f.se;this.behavior.Ap=f.smd};f.Ha=function(){};f.Bm=function(){if(this.enabled){var f=
this.behavior.Il.$e(),g=0,l=0,e,b,d,c=0;e=0;for(b=f.length;e<b;e++){a:{d=f[e];for(var a=void 0,h=void 0,p=void 0,a=0,h=d.U.length;a<h;++a)if(p=d.U[a],p.behavior instanceof Lc){d=p;break a}d=null}d&&d.enabled&&(g+=f[e].x,l+=f[e].y,++c)}f=this.d.q.$a;b=this.b.yb.V;d=e=0;b>=this.behavior.Pj&&b<this.behavior.mm&&(e=this.behavior.zp*Math.min(this.b.Pf,1),0===this.behavior.Ap&&(e*=1-(b-this.behavior.Pj)/(this.behavior.mm-this.behavior.Pj)),b=Math.random()*Math.PI*2,d=Math.random()*e,e=Math.cos(b)*d,d*=
Math.sin(b));f.sp(g/c+e);f.tp(l/c+d)}};g.prototype.dk=function(f){this.enabled=0!==f};p.u=new g})();function pc(g){this.b=g}(function(){function g(){}var p=pc.prototype;p.T=function(f){this.behavior=f;this.b=f.b};p.T.prototype.J=function(){};p.O=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var f=p.O.prototype;f.J=function(){this.d.M.solidEnabled=0!==this.C[0]};f.Ha=function(){};p.k=new function(){};g.prototype.dk=function(f){this.d.M.solidEnabled=!!f};p.u=new g})();
function Nc(g){this.b=g}
(function(){var g=Nc.prototype;g.T=function(g){this.behavior=g;this.b=g.b};g.T.prototype.J=function(){};g.O=function(g,f){this.type=g;this.behavior=g.behavior;this.d=f;this.b=g.b};g=g.O.prototype;g.J=function(){this.mode=this.C[0]};g.Ha=function(){var g=this.d;g.Da();var f=g.Ia,n=g.q,r=n.$a,l=0,e=0,b=0,d=0;0===this.mode?(e=r.width,d=r.height):(l=n.Ja,e=n.Ma,b=n.Ka,d=n.La);f.right<l?(g.x=e-1+(g.x-f.left),g.B()):f.left>e?(g.x=l+1-(f.right-g.x),g.B()):f.bottom<b?(g.y=d-1+(g.y-f.top),g.B()):f.top>d&&
(g.y=b+1-(f.bottom-g.y),g.B())}})();
function oc(){return[qc,rc,sc,tc,Y,Bc,yc,xc,X,Ac,zc,pc,Lc,Fc,Ec,Cc,Kc,Hc,Dc,Nc,Gc,T.prototype.k.ku,T.prototype.u.Tv,T.prototype.k.Cu,X.prototype.k.iu,rc.prototype.u.Play,tc.prototype.k.iq,Bc.prototype.k.bv,X.prototype.k.Lu,X.prototype.k.Hu,Fc.prototype.k.Gu,X.prototype.k.Ku,T.prototype.k.lq,Ec.prototype.u.Fv,X.prototype.u.Mv,xc.prototype.u.Rv,T.prototype.u.dw,X.prototype.u.Sm,X.prototype.u.an,X.prototype.u.Vv,zc.prototype.u.an,X.prototype.u.qq,Dc.prototype.u.lw,qc.prototype.u.hw,T.prototype.L.max,
qc.prototype.L.au,T.prototype.u.Yt,T.prototype.u.vu,Y.prototype.u.Wv,T.prototype.k.gu,qc.prototype.L.bn,qc.prototype.k.lu,T.prototype.k.Zp,qc.prototype.L.Rm,T.prototype.u.Iv,X.prototype.k.hv,T.prototype.u.ou,X.prototype.u.Nv,X.prototype.u.Su,T.prototype.k.qw,T.prototype.u.cw,X.prototype.u.Qv,T.prototype.u.uu,Fc.prototype.u.ew,Bc.prototype.k.cv,Fc.prototype.L.uw,Bc.prototype.k.aq,Bc.prototype.k.hu,tc.prototype.k.Eu,Fc.prototype.u.iw,X.prototype.u.Xv,Fc.prototype.k.Du,Fc.prototype.k.Bu,Fc.prototype.k.zu,
Fc.prototype.k.Fu,Fc.prototype.k.nq,tc.prototype.k.Vm,X.prototype.k.Iu,X.prototype.k.fq,X.prototype.L.ek,X.prototype.L.fk,X.prototype.u.bq,sc.prototype.u.Gv,Cc.prototype.u.dk,X.prototype.k.ju,Cc.prototype.u.$m,Cc.prototype.u.Lv,T.prototype.k.qu,zc.prototype.u.bw,yc.prototype.u.Sm,X.prototype.k.cq,zc.prototype.k.yu,T.prototype.k.su,zc.prototype.u.Pv,zc.prototype.L.rw,T.prototype.k.ru,T.prototype.L.mz,zc.prototype.L.Text,T.prototype.L.find,T.prototype.L.rz,T.prototype.L.vz,T.prototype.L.qz,zc.prototype.L.ek,
X.prototype.L.bn,zc.prototype.L.fk,T.prototype.k.kq,rc.prototype.u.fw,rc.prototype.u.Yv,T.prototype.L.nz,T.prototype.L.rf,xc.prototype.k.Um,sc.prototype.u.wu,X.prototype.k.Rf,X.prototype.u.jw,X.prototype.L.nu,X.prototype.u.$v,xc.prototype.L.ek,xc.prototype.L.fk,xc.prototype.k.Ym,Ac.prototype.u.pq,X.prototype.u.pq,Y.prototype.u.bu,Y.prototype.k.gq,Y.prototype.u.tu,Y.prototype.k.hq,Y.prototype.L.Mu,qc.prototype.u.Ou,Ac.prototype.u.qq,sc.prototype.u.fu,xc.prototype.k.Ju,Y.prototype.u.eu,X.prototype.L.$t,
T.prototype.k.pu,T.prototype.u.vw,X.prototype.u.Ov,X.prototype.u.Xt,yc.prototype.u.bq,yc.prototype.u.aw,yc.prototype.u.an,Hc.prototype.u.Jv,X.prototype.u.kw,X.prototype.k.Yp,X.prototype.u.Sv,X.prototype.k.mu,Hc.prototype.u.Zv,X.prototype.u.rq,X.prototype.u.Ru,T.prototype.L.random,X.prototype.u.sq,X.prototype.u.Uv,Gc.prototype.u.$m,X.prototype.u.ow,T.prototype.L.sin,X.prototype.L.$p,Ec.prototype.u.sw,Ac.prototype.u.Sm,X.prototype.u.Kv,T.prototype.u.mw,Dc.prototype.u.Hv,T.prototype.k.Xm]};
