// 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,D,ia,ja,ka,ma,na,pa,M,qa,ta,ua,va,wa,xa,ya,W,Aa,Ba,Ca,Da,Ea,Y,Fa,Ia,Ja,Ka,La,Ma,Na,Oa,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={},fc={};"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,d,b,h){this.set(a,d,b,h)}function l(){this.Jb=this.Ib=this.Mb=this.Lb=this.Ub=this.Tb=this.tb=this.sb=0}function m(a,d,b,h){a<d?b<h?(r=a<b?a:b,u=d>h?d:h):(r=a<h?a:h,u=d>b?d:b):b<h?(r=d<b?d:b,u=a>h?a:h):(r=d<h?d:h,u=a>b?a:b)}function p(){this.items=this.Ad=null;this.sh=0;H&&(this.Ad=new Set);this.Cg=[];this.le=!0}function t(a){B[K++]=a}function q(){this.T=this.ak=this.y=this.Og=0}function f(a){this.Za=[];this.si=this.vi=this.wi=this.ti=0;this.Vh(a)}function a(a,d){this.Fk=
a;this.Ek=d;this.cells={}}function c(a,d){this.Fk=a;this.Ek=d;this.cells={}}function e(a,d,b){var h;return U.length?(h=U.pop(),h.ml=a,h.x=d,h.y=b,h):new ba(a,d,b)}function d(a,d,b){this.ml=a;this.x=d;this.y=b;this.gb=new ca}function b(a,d,b){var h;return P.length?(h=P.pop(),h.ml=a,h.x=d,h.y=b,h):new da(a,d,b)}function v(a,d,b){this.ml=a;this.x=d;this.y=b;this.gb=[];this.Yf=!0;this.yd=new ca;this.Kg=!1}function k(a,d){return a.hd-d.hd}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};D=function(a){return"string"===typeof a};ia=function(a){return 0<a&&0===(a-1&a)};ja=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ka=function(a){return 0>a?-a:a};ma=function(a,d){return a>d?a:d};na=function(a,d){return a<d?a:d};pa=Math.PI;M=function(a){return 0<=a?a|0:(a|0)-1};qa=function(a){var d=
a|0;return d===a?d:d+1};ta=function(a,d,b,h,c,e,C,A){var F,k,n,f;a<b?(k=a,F=b):(k=b,F=a);c<C?(f=c,n=C):(f=C,n=c);if(F<f||k>n)return!1;d<h?(k=d,F=h):(k=h,F=d);e<A?(f=e,n=A):(f=A,n=e);if(F<f||k>n)return!1;F=c-a+C-b;k=e-d+A-h;a=b-a;d=h-d;c=C-c;e=A-e;A=ka(d*c-e*a);return ka(c*k-e*F)>A?!1:ka(a*k-d*F)<=A};g.prototype.set=function(a,d,b,h){this.left=a;this.top=d;this.right=b;this.bottom=h};g.prototype.Qg=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,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;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.iu=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};g.prototype.ju=
function(a,d,b){return!(a.right+d<this.left||a.bottom+b<this.top||a.left+d>this.right||a.top+b>this.bottom)};g.prototype.Cb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};g.prototype.Ug=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=g;l.prototype.Uh=function(a){this.sb=a.left;this.tb=a.top;this.Tb=a.right;this.Ub=a.top;this.Lb=a.right;this.Mb=a.bottom;this.Ib=a.left;this.Jb=a.bottom};l.prototype.Kp=function(a,
d){if(0===d)this.Uh(a);else{var b=Math.sin(d),h=Math.cos(d),c=a.left*b,e=a.top*b,C=a.right*b,b=a.bottom*b,A=a.left*h,F=a.top*h,k=a.right*h,h=a.bottom*h;this.sb=A-e;this.tb=F+c;this.Tb=k-e;this.Ub=F+C;this.Lb=k-b;this.Mb=h+C;this.Ib=A-b;this.Jb=h+c}};l.prototype.offset=function(a,d){this.sb+=a;this.tb+=d;this.Tb+=a;this.Ub+=d;this.Lb+=a;this.Mb+=d;this.Ib+=a;this.Jb+=d;return this};var r=0,u=0;l.prototype.kn=function(a){m(this.sb,this.Tb,this.Lb,this.Ib);a.left=r;a.right=u;m(this.tb,this.Ub,this.Mb,
this.Jb);a.top=r;a.bottom=u};l.prototype.Cb=function(a,d){var b=this.sb,h=this.tb,c=this.Tb-b,e=this.Ub-h,C=this.Lb-b,A=this.Mb-h,F=a-b,k=d-h,n=c*c+e*e,f=c*C+e*A,e=c*F+e*k,v=C*C+A*A,g=C*F+A*k,r=1/(n*v-f*f),c=(v*e-f*g)*r,n=(n*g-f*e)*r;if(0<=c&&0<n&&1>c+n)return!0;c=this.Ib-b;e=this.Jb-h;n=c*c+e*e;f=c*C+e*A;e=c*F+e*k;r=1/(n*v-f*f);c=(v*e-f*g)*r;n=(n*g-f*e)*r;return 0<=c&&0<n&&1>c+n};l.prototype.je=function(a,d){if(d)switch(a){case 0:return this.sb;case 1:return this.Tb;case 2:return this.Lb;case 3:return this.Ib;
case 4:return this.sb;default:return this.sb}else switch(a){case 0:return this.tb;case 1:return this.Ub;case 2:return this.Mb;case 3:return this.Jb;case 4:return this.tb;default:return this.tb}};l.prototype.Oo=function(){return(this.sb+this.Tb+this.Lb+this.Ib)/4};l.prototype.Po=function(){return(this.tb+this.Ub+this.Mb+this.Jb)/4};l.prototype.Yn=function(a){var d=a.Oo(),b=a.Po();if(this.Cb(d,b))return!0;d=this.Oo();b=this.Po();if(a.Cb(d,b))return!0;var h,c,e,C,A,F,k,n;for(k=0;4>k;k++)for(n=0;4>n;n++)if(d=
this.je(k,!0),b=this.je(k,!1),h=this.je(k+1,!0),c=this.je(k+1,!1),e=a.je(n,!0),C=a.je(n,!1),A=a.je(n+1,!0),F=a.je(n+1,!1),ta(d,b,h,c,e,C,A,F))return!0;return!1};va=l;wa=function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b]);return a};xa=function(a,d){var b,h;d=M(d);if(!(0>d||d>=a.length)){b=d;for(h=a.length-1;b<h;b++)a[b]=a[b+1];ya(a,h)}};ya=function(a,d){a.length=d};W=function(a){ya(a,0)};Aa=function(a,d){W(a);var b,h;b=0;for(h=d.length;b<h;++b)a[b]=d[b]};Ba=function(a,d){a.push.apply(a,d)};
Ca=function(a,d){var b,h;b=0;for(h=a.length;b<h;++b)if(a[b]===d)return b;return-1};Da=function(a,d){var b=Ca(a,d);-1!==b&&xa(a,b)};Ea=function(a,d,b){return a<d?d:a>b?b:a};Y=function(a){return a/(180/pa)};Fa=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(Fa(a))};La=function(a){return Ja(Y(a))};Ma=function(a,d,b,h){return Math.atan2(h-d,b-a)};Na=function(a,d){if(a===d)return 0;var b=Math.sin(a),h=Math.cos(a),
c=Math.sin(d),e=Math.cos(d),b=b*c+h*e;return 1<=b?0:-1>=b?pa:Math.acos(b)};Oa=function(a,d,b){var h=Math.sin(a),c=Math.cos(a),e=Math.sin(d),C=Math.cos(d);return Math.acos(h*e+c*C)>b?0<c*e-h*C?Ja(a+b):Ja(a-b):Ja(d)};Ua=function(a,d){var b=Math.sin(a),h=Math.cos(a),c=Math.sin(d),e=Math.cos(d);return 0>=h*c-b*e};Va=function(a,d,b,h,c,e){if(0===b)return e?a:d;var C=Math.sin(b);b=Math.cos(b);a-=h;d-=c;var A=a*C;a=a*b-d*C;d=d*b+A;return e?a+h:d+c};Wa=function(a,d,b,h){a=b-a;d=h-d;return Math.sqrt(a*a+d*
d)};Xa=function(a,d){return!a!==!d};Ya=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Za=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var y=+new Date;$a=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-y};var h=!1,
n=h=!1,x=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),n=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta);var H=!h&&!x&&!n&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.Nd()?!1:H?this.Ad.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(H)this.Ad.has(a)||(this.Ad.add(a),this.le=
!1);else{var d=a.toString(),b=this.items;b?b.hasOwnProperty(d)||(b[d]=a,this.sh++,this.le=!1):(this.items={},this.items[d]=a,this.sh=1,this.le=!1)}};p.prototype.remove=function(a){if(!this.Nd())if(H)this.Ad.has(a)&&(this.Ad["delete"](a),this.le=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.sh--,this.le=!1)}};p.prototype.clear=function(){this.Nd()||(H?this.Ad.clear():(this.items=null,this.sh=0),W(this.Cg),this.le=!0)};p.prototype.Nd=function(){return 0===
this.count()};p.prototype.count=function(){return H?this.Ad.size:this.sh};var B=null,K=0;p.prototype.Pv=function(){if(!this.le){if(H)W(this.Cg),B=this.Cg,K=0,this.Ad.forEach(t),B=null,K=0;else{var a=this.Cg;W(a);var d,b=0,h=this.items;if(h)for(d in h)h.hasOwnProperty(d)&&(a[b++]=h[d])}this.le=!0}};p.prototype.Ke=function(){this.Pv();return this.Cg};ca=p;new ca;ab=function(a,d){H?bb(a,d.Ad):cb(a,d.Ke())};bb=function(a,d){var b,h,c,e;h=b=0;for(c=a.length;b<c;++b)e=a[b],d.has(e)||(a[h++]=e);ya(a,h)};
cb=function(a,d){var b,h,c,e;h=b=0;for(c=a.length;b<c;++b)e=a[b],-1===Ca(d,e)&&(a[h++]=e);ya(a,h)};q.prototype.add=function(a){this.y=a-this.Og;this.ak=this.T+this.y;this.Og=this.ak-this.T-this.y;this.T=this.ak};q.prototype.reset=function(){this.T=this.ak=this.y=this.Og=0};db=q;eb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.Vh=function(a){this.tp=a;this.bd=a.length/2;this.Za.length=a.length;this.yi=this.Ai=-1;this.nn=0};f.prototype.Vf=function(){return!this.tp.length};
f.prototype.ta=function(){for(var a=this.Za,d=a[0],b=d,h=a[1],c=h,e,C,A=1,k=this.bd;A<k;++A)C=2*A,e=a[C],C=a[C+1],e<d&&(d=e),e>b&&(b=e),C<h&&(h=C),C>c&&(c=C);this.ti=d;this.vi=b;this.wi=h;this.si=c};f.prototype.Uh=function(a,d,b){this.Za.length=8;this.bd=4;var h=this.Za;h[0]=a.left-d;h[1]=a.top-b;h[2]=a.right-d;h[3]=a.top-b;h[4]=a.right-d;h[5]=a.bottom-b;h[6]=a.left-d;h[7]=a.bottom-b;this.Ai=a.right-a.left;this.yi=a.bottom-a.top;this.ta()};f.prototype.wg=function(a,d,b,h,c){this.Za.length=8;this.bd=
4;var e=this.Za;e[0]=a.sb-d;e[1]=a.tb-b;e[2]=a.Tb-d;e[3]=a.Ub-b;e[4]=a.Lb-d;e[5]=a.Mb-b;e[6]=a.Ib-d;e[7]=a.Jb-b;this.Ai=h;this.yi=c;this.ta()};f.prototype.Jp=function(a){this.bd=a.bd;Aa(this.Za,a.Za);this.ti=a.ti;this.wi-a.wi;this.vi=a.vi;this.si=a.si};f.prototype.Gf=function(a,d,b){if(this.Ai!==a||this.yi!==d||this.nn!==b){this.Ai=a;this.yi=d;this.nn=b;var h,c,e,C,A,k=0,n=1,f=this.tp,v=this.Za;0!==b&&(k=Math.sin(b),n=Math.cos(b));b=0;for(e=this.bd;b<e;b++)h=2*b,c=h+1,C=f[h]*a,A=f[c]*d,v[h]=C*n-A*
k,v[c]=A*n+C*k;this.ta()}};f.prototype.Cb=function(a,d){var b=this.Za;if(a===b[0]&&d===b[1])return!0;var h,c,e,C=this.bd,A=this.ti-110,k=this.wi-101,n=this.vi+131,f=this.si+120,v,g,r=0,u=0;for(h=0;h<C;h++)c=2*h,e=(h+1)%C*2,v=b[c],c=b[c+1],g=b[e],e=b[e+1],ta(A,k,a,d,v,c,g,e)&&r++,ta(n,f,a,d,v,c,g,e)&&u++;return 1===r%2||1===u%2};f.prototype.fh=function(a,d,b){var h=a.Za,c=this.Za;if(this.Cb(h[0]+d,h[1]+b)||a.Cb(c[0]-d,c[1]-b))return!0;var e,C,A,k,n,f,v,g,r,u,x,y;e=0;for(k=this.bd;e<k;e++)for(C=2*e,
A=(e+1)%k*2,g=c[C],C=c[C+1],r=c[A],u=c[A+1],A=0,v=a.bd;A<v;A++)if(n=2*A,f=(A+1)%v*2,x=h[n]+d,n=h[n+1]+b,y=h[f]+d,f=h[f+1]+b,ta(g,C,r,u,x,n,y,f))return!0;return!1};fb=f;a.prototype.se=function(a,d,b){var h;h=this.cells[a];return h?(h=h[d])?h:b?(h=e(this,a,d),this.cells[a][d]=h):null:b?(h=e(this,a,d),this.cells[a]={},this.cells[a][d]=h):null};a.prototype.Gb=function(a){return M(a/this.Fk)};a.prototype.Hb=function(a){return M(a/this.Ek)};a.prototype.update=function(a,d,b){var h,c,e,C,A;if(d)for(h=d.left,
c=d.right;h<=c;++h)for(e=d.top,C=d.bottom;e<=C;++e)if(!b||!b.Cb(h,e))if(A=this.se(h,e,!1))A.remove(a),A.Nd()&&(A.gb.clear(),1E3>U.length&&U.push(A),this.cells[h][e]=null);if(b)for(h=b.left,c=b.right;h<=c;++h)for(e=b.top,C=b.bottom;e<=C;++e)d&&d.Cb(h,e)||this.se(h,e,!0).wl(a)};a.prototype.Pj=function(a,d){var b,h,c,e,C,A;b=this.Gb(a.left);c=this.Hb(a.top);h=this.Gb(a.right);for(C=this.Hb(a.bottom);b<=h;++b)for(e=c;e<=C;++e)(A=this.se(b,e,!1))&&A.dump(d)};gb=a;c.prototype.se=function(a,d,h){var c;c=
this.cells[a];return c?(c=c[d])?c:h?(c=b(this,a,d),this.cells[a][d]=c):null:h?(c=b(this,a,d),this.cells[a]={},this.cells[a][d]=c):null};c.prototype.Gb=function(a){return M(a/this.Fk)};c.prototype.Hb=function(a){return M(a/this.Ek)};c.prototype.update=function(a,d,b){var h,c,e,C,A;if(d)for(h=d.left,c=d.right;h<=c;++h)for(e=d.top,C=d.bottom;e<=C;++e)if(!b||!b.Cb(h,e))if(A=this.se(h,e,!1))A.remove(a),A.Nd()&&(A.reset(),1E3>P.length&&P.push(A),this.cells[h][e]=null);if(b)for(h=b.left,c=b.right;h<=c;++h)for(e=
b.top,C=b.bottom;e<=C;++e)d&&d.Cb(h,e)||this.se(h,e,!0).wl(a)};c.prototype.Pj=function(a,d,b,h,c){var e,C;a=this.Gb(a);d=this.Hb(d);b=this.Gb(b);for(e=this.Hb(h);a<=b;++a)for(h=d;h<=e;++h)(C=this.se(a,h,!1))&&C.dump(c)};c.prototype.yu=function(a){var d,b,h,c,e;d=a.left;h=a.top;b=a.right;for(c=a.bottom;d<=b;++d)for(a=h;a<=c;++a)if(e=this.se(d,a,!1))e.Yf=!1};ib=c;var U=[];d.prototype.Nd=function(){return this.gb.Nd()};d.prototype.wl=function(a){this.gb.add(a)};d.prototype.remove=function(a){this.gb.remove(a)};
d.prototype.dump=function(a){Ba(a,this.gb.Ke())};ba=d;var P=[];v.prototype.Nd=function(){if(!this.gb.length)return!0;if(this.gb.length>this.yd.count())return!1;this.Yk();return!0};v.prototype.wl=function(a){this.yd.contains(a)?(this.yd.remove(a),this.yd.Nd()&&(this.Kg=!1)):this.gb.length?(this.gb[this.gb.length-1].rd()>a.rd()&&(this.Yf=!1),this.gb.push(a)):(this.gb.push(a),this.Yf=!0)};v.prototype.remove=function(a){this.yd.add(a);this.Kg=!0;30<=this.yd.count()&&this.Yk()};v.prototype.Yk=function(){this.Kg&&
(this.yd.count()===this.gb.length?this.reset():(ab(this.gb,this.yd),this.yd.clear(),this.Kg=!1))};v.prototype.Ks=function(){this.Yf||(this.gb.sort(k),this.Yf=!0)};v.prototype.reset=function(){W(this.gb);this.Yf=!0;this.yd.clear();this.Kg=!1};v.prototype.dump=function(a){this.Yk();this.Ks();this.gb.length&&a.push(this.gb)};da=v;var E="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":
E[a-1]};kb=function(a,d,b){if(b)switch(a.Ab=b.ONE,a.xb=b.ONE_MINUS_SRC_ALPHA,d){case 1:a.Ab=b.ONE;a.xb=b.ONE;break;case 3:a.Ab=b.ONE;a.xb=b.ZERO;break;case 4:a.Ab=b.ONE_MINUS_DST_ALPHA;a.xb=b.ONE;break;case 5:a.Ab=b.DST_ALPHA;a.xb=b.ZERO;break;case 6:a.Ab=b.ZERO;a.xb=b.SRC_ALPHA;break;case 7:a.Ab=b.ONE_MINUS_DST_ALPHA;a.xb=b.ZERO;break;case 8:a.Ab=b.ZERO;a.xb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.Ab=b.DST_ALPHA;a.xb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.Ab=b.ONE_MINUS_DST_ALPHA,a.xb=b.SRC_ALPHA}};
lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(g){var l=new gc(3);g&&(l[0]=g[0],l[1]=g[1],l[2]=g[2]);return l}
function ic(g){var l=new gc(16);g&&(l[0]=g[0],l[1]=g[1],l[2]=g[2],l[3]=g[3],l[4]=g[4],l[5]=g[5],l[6]=g[6],l[7]=g[7],l[8]=g[8],l[9]=g[9],l[10]=g[10],l[11]=g[11],l[12]=g[12],l[13]=g[13],l[14]=g[14],l[15]=g[15]);return l}function jc(g,l){l[0]=g[0];l[1]=g[1];l[2]=g[2];l[3]=g[3];l[4]=g[4];l[5]=g[5];l[6]=g[6];l[7]=g[7];l[8]=g[8];l[9]=g[9];l[10]=g[10];l[11]=g[11];l[12]=g[12];l[13]=g[13];l[14]=g[14];l[15]=g[15]}
function kc(g,l){var m=l[0],p=l[1];l=l[2];g[0]*=m;g[1]*=m;g[2]*=m;g[3]*=m;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=l;g[9]*=l;g[10]*=l;g[11]*=l}
function lc(g,l,m,p){p||(p=ic());var t,q,f,a,c,e,d,b,v=g[0],k=g[1];g=g[2];q=m[0];f=m[1];t=m[2];m=l[1];e=l[2];v===l[0]&&k===m&&g===e?(g=p,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):(m=v-l[0],e=k-l[1],d=g-l[2],b=1/Math.sqrt(m*m+e*e+d*d),m*=b,e*=b,d*=b,l=f*d-t*e,t=t*m-q*d,q=q*e-f*m,(b=Math.sqrt(l*l+t*t+q*q))?(b=1/b,l*=b,t*=b,q*=b):q=t=l=0,f=e*q-d*t,a=d*l-m*q,c=m*t-e*l,(b=Math.sqrt(f*f+a*a+c*c))?(b=1/b,f*=b,a*=b,c*=b):c=a=f=0,
p[0]=l,p[1]=f,p[2]=m,p[3]=0,p[4]=t,p[5]=a,p[6]=e,p[7]=0,p[8]=q,p[9]=c,p[10]=d,p[11]=0,p[12]=-(l*v+t*k+q*g),p[13]=-(f*v+a*k+c*g),p[14]=-(m*v+e*k+d*g),p[15]=1)}
(function(){function g(a,c,e){this.Od=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ua=!!e;this.lj=this.ih=!1;this.Ok=0;this.ok=1;this.Rm=1E3;this.Zv=(this.Rm-this.ok)/32768;this.Ck=hc([0,0,100]);this.yo=hc([0,0,0]);this.lq=hc([0,1,0]);this.fi=hc([1,1,1]);this.xn=!0;this.Ej=ic();this.uc=ic();this.Hl=ic();this.Nk=ic();this.q=a;this.Un()}function l(a,c,e){this.q=a;this.Wh=c;this.name=e;this.Ec=a.getAttribLocation(c,"aPos");this.Be=a.getAttribLocation(c,
"aTex");this.wo=a.getUniformLocation(c,"matP");this.zj=a.getUniformLocation(c,"matMV");this.hg=a.getUniformLocation(c,"opacity");this.Ll=a.getUniformLocation(c,"colorFill");this.xo=a.getUniformLocation(c,"samplerFront");this.zh=a.getUniformLocation(c,"samplerBack");this.pf=a.getUniformLocation(c,"destStart");this.of=a.getUniformLocation(c,"destEnd");this.Bh=a.getUniformLocation(c,"seconds");this.Nl=a.getUniformLocation(c,"pixelWidth");this.Ml=a.getUniformLocation(c,"pixelHeight");this.yh=a.getUniformLocation(c,
"layerScale");this.xh=a.getUniformLocation(c,"layerAngle");this.Ch=a.getUniformLocation(c,"viewOrigin");this.Ah=a.getUniformLocation(c,"scrollPos");this.bu=!!(this.Nl||this.Ml||this.Bh||this.zh||this.pf||this.of||this.yh||this.xh||this.Ch||this.Ah);this.Go=this.Ho=-999;this.Dj=1;this.Co=this.Bo=0;this.Eo=this.Ao=this.zo=1;this.Ko=this.Jo=this.Io=this.Mo=this.Lo=this.Do=0;this.Gl=[];this.Fo=ic();this.hg&&a.uniform1f(this.hg,1);this.Ll&&a.uniform4f(this.Ll,1,1,1,1);this.xo&&a.uniform1i(this.xo,0);this.zh&&
a.uniform1i(this.zh,1);this.pf&&a.uniform2f(this.pf,0,0);this.of&&a.uniform2f(this.of,1,1);this.yh&&a.uniform1f(this.yh,1);this.xh&&a.uniform1f(this.xh,0);this.Ch&&a.uniform2f(this.Ch,0,0);this.Ah&&a.uniform2f(this.Ah,0,0);this.Bh&&a.uniform1f(this.Bh,0);this.ff=!1}function m(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===
c[15]}function p(a,c){this.type=a;this.r=c;this.q=c.q;this.sd=this.Eb=this.ep=0;this.M=this.Oc=null;this.Lp=[]}var t=ic();g.prototype.Un=function(){var a=this.q,c;this.mo=1;this.lf=this.xe=null;this.Hi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ua?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.oo=a.ONE;this.ko=a.ONE_MINUS_SRC_ALPHA;
this.mk=new Float32Array(8E3*(this.ua?3:2));this.bk=new Float32Array(16E3);this.pp=new Float32Array(32E3);this.fm=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.fm);a.bufferData(a.ARRAY_BUFFER,this.pp.byteLength,a.DYNAMIC_DRAW);this.ei=Array(4);this.$h=Array(4);for(c=0;4>c;c++)this.ei[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ei[c]),a.bufferData(a.ARRAY_BUFFER,this.mk.byteLength,a.DYNAMIC_DRAW),this.$h[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.$h[c]),a.bufferData(a.ARRAY_BUFFER,
this.bk.byteLength,a.DYNAMIC_DRAW);this.Hd=0;this.gu=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.gu);for(var e=new Uint16Array(12E3),d=c=0;12E3>c;)e[c++]=d,e[c++]=d+1,e[c++]=d+2,e[c++]=d,e[c++]=d+2,e[c++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,e,a.STATIC_DRAW);this.gm=this.zg=this.$d=0;this.Ha=[];c=this.ua?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";e=this.Rg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},c,"<default>");this.Ha.push(e);e=this.Rg({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.Ha.push(e);e=this.Rg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Ha.push(e);e=this.Rg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Ha.push(e);for(var b in mc)mc.hasOwnProperty(b)&&this.Ha.push(this.Rg(mc[b],c,b));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ke=[];this.Fd=0;this.yb=!1;this.sn=this.uh=-1;this.If=null;this.Wk=a.createFramebuffer();this.Li=this.Qj=null;this.hn=!1;this.ua&&(this.Li=a.createRenderbuffer());this.Je=hc([0,0,0]);this.No=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.No&&(this.No=2048);this.Sb(0)};l.prototype.Lm=function(a){m(this.Fo,a)||(jc(a,this.Fo),this.q.uniformMatrix4fv(this.zj,
!1,a))};g.prototype.Rg=function(a,c,e){var d=this.q,b=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(b,a.src);d.compileShader(b);if(!d.getShaderParameter(b,d.COMPILE_STATUS))return d.deleteShader(b),null;var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,c);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(b),d.deleteShader(f),null;c=d.createProgram();d.attachShader(c,b);d.attachShader(c,f);d.linkProgram(c);if(!d.getProgramParameter(c,d.LINK_STATUS))return d.deleteShader(b),
d.deleteShader(f),d.deleteProgram(c),null;d.useProgram(c);d.deleteShader(b);d.deleteShader(f);e=new l(d,c,e);e.Pi=a.Pi||0;e.Qi=a.Qi||0;e.Mk=!!a.Mk;e.Jc=!!a.Jc;e.yk=!!a.yk;e.K=a.K||[];a=0;for(b=e.K.length;a<b;a++)e.K[a][1]=d.getUniformLocation(c,e.K[a][0]),e.Gl.push(0),d.uniform1f(e.K[a][1],0);return e};g.prototype.kl=function(a){var c,e;c=0;for(e=this.Ha.length;c<e;c++)if(this.Ha[c].name===a)return c;return-1};g.prototype.sp=function(a,c,e){var d=this.uc,b=this.Ej,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*a+
d[4]*c+d[12];f[1]=d[1]*a+d[5]*c+d[13];f[2]=d[2]*a+d[6]*c+d[14];f[3]=d[3]*a+d[7]*c+d[15];f[4]=b[0]*f[0]+b[4]*f[1]+b[8]*f[2]+b[12]*f[3];f[5]=b[1]*f[0]+b[5]*f[1]+b[9]*f[2]+b[13]*f[3];f[6]=b[2]*f[0]+b[6]*f[1]+b[10]*f[2]+b[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],e[0]=(.5*f[4]+.5)*this.width,e[1]=(.5*f[5]+.5)*this.height)};g.prototype.uf=function(a,c,e){if(this.width!==a||this.height!==c||e){this.qe();e=this.q;this.width=a;this.height=c;e.viewport(0,0,a,c);lc(this.Ck,
this.yo,this.lq,this.uc);if(this.ua){var d=-a/2;a=a/2;var b=c/2;c=-c/2;var f=this.ok,k=this.Rm,g=this.Ej;g||(g=ic());var u=a-d,y=c-b,h=k-f;g[0]=2/u;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=2/y;g[6]=0;g[7]=0;g[8]=0;g[9]=0;g[10]=-2/h;g[11]=0;g[12]=-(d+a)/u;g[13]=-(c+b)/y;g[14]=-(k+f)/h;g[15]=1;this.fi[0]=1;this.fi[1]=1}else c=a/c,d=this.ok,a=this.Rm,g=this.Ej,k=d*Math.tan(45*Math.PI/360),c*=k,b=-c,f=-k,g||(g=ic()),u=c-b,y=k-f,h=a-d,g[0]=2*d/u,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=2*d/y,g[6]=0,g[7]=0,g[8]=(c+b)/
u,g[9]=(k+f)/y,g[10]=-(a+d)/h,g[11]=-1,g[12]=0,g[13]=0,g[14]=-(a*d*2)/h,g[15]=0,d=[0,0],a=[0,0],this.sp(0,0,d),this.sp(1,1,a),this.fi[0]=1/(a[0]-d[0]),this.fi[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ha.length;d<a;d++)b=this.Ha[d],b.ff=!1,b.wo&&(e.useProgram(b.Wh),e.uniformMatrix4fv(b.wo,!1,this.Ej));e.useProgram(this.Ha[this.uh].Wh);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.lf=this.xe=null;this.Li&&(e.bindFramebuffer(e.FRAMEBUFFER,
this.Wk),e.bindRenderbuffer(e.RENDERBUFFER,this.Li),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.hn||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.Li),this.hn=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.Qj=null)}};g.prototype.Lc=function(){lc(this.Ck,this.yo,this.lq,this.uc);kc(this.uc,this.fi)};g.prototype.translate=function(a,c){if(0!==a||0!==c){this.Je[0]=a;this.Je[1]=c;this.Je[2]=
0;var e=this.uc,d=this.Je,b=d[0],f=d[1],d=d[2];e[12]=e[0]*b+e[4]*f+e[8]*d+e[12];e[13]=e[1]*b+e[5]*f+e[9]*d+e[13];e[14]=e[2]*b+e[6]*f+e[10]*d+e[14];e[15]=e[3]*b+e[7]*f+e[11]*d+e[15]}};g.prototype.scale=function(a,c){if(1!==a||1!==c)this.Je[0]=a,this.Je[1]=c,this.Je[2]=1,kc(this.uc,this.Je)};g.prototype.Sj=function(a){if(0!==a){var c=this.uc,e,d=Math.sin(a);a=Math.cos(a);var b=c[0],f=c[1],k=c[2],g=c[3],u=c[4],y=c[5],h=c[6],n=c[7];e?c!==e&&(e[8]=c[8],e[9]=c[9],e[10]=c[10],e[11]=c[11],e[12]=c[12],e[13]=
c[13],e[14]=c[14],e[15]=c[15]):e=c;e[0]=b*a+u*d;e[1]=f*a+y*d;e[2]=k*a+h*d;e[3]=g*a+n*d;e[4]=b*-d+u*a;e[5]=f*-d+y*a;e[6]=k*-d+h*a;e[7]=g*-d+n*a}};g.prototype.xc=function(){if(!m(this.Hl,this.uc)){var a=this.jc();a.type=5;a.M?jc(this.uc,a.M):a.M=ic(this.uc);jc(this.uc,this.Hl);this.yb=!1}};g.prototype.Xj=function(a){this.ua&&(32760<a&&(a=32760),this.Ok=this.Ck[2]-this.ok-a*this.Zv)};p.prototype.us=function(){var a=this.q,c=this.r;0!==this.Eb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,c.Wk),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.lj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.lj=!1)};p.prototype.ys=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Oc)};p.prototype.zs=function(){var a=this.q;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Oc);a.activeTexture(a.TEXTURE0)};p.prototype.vs=function(){var a=this.ep,
c=this.r;c.Hi=a;c=c.If;c.hg&&c.Dj!==a&&(c.Dj=a,this.q.uniform1f(c.hg,a))};p.prototype.os=function(){this.q.drawElements(this.q.TRIANGLES,this.sd,this.q.UNSIGNED_SHORT,this.Eb)};p.prototype.rs=function(){this.q.blendFunc(this.Eb,this.sd)};p.prototype.As=function(){var a,c,e,d=this.r.Ha,b=this.r.sn;a=0;for(c=d.length;a<c;a++)e=d[a],a===b&&e.zj?(e.Lm(this.M),e.ff=!0):e.ff=!1;jc(this.M,this.r.Nk)};p.prototype.qs=function(){var a=this.q,c=this.r;this.Oc?(c.lf===this.Oc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),c.lf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Wk),c.lj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Oc,0)):(c.ua||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};p.prototype.ls=function(){var a=this.q,c=this.Eb;0===c?(a.clearColor(this.M[0],this.M[1],this.M[2],this.M[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.M[0],this.M[1],this.M[2],
this.M[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.ts=function(){var a=this.q;0!==this.Eb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.ns=function(){var a=this.q,c=this.r;c.ua&&a.disable(a.DEPTH_TEST);var e=c.Ha[1];a.useProgram(e.Wh);!e.ff&&e.zj&&(e.Lm(c.Nk),e.ff=!0);a.enableVertexAttribArray(e.Ec);a.bindBuffer(a.ARRAY_BUFFER,c.fm);a.vertexAttribPointer(e.Ec,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Eb/
4,this.sd);e=c.If;a.useProgram(e.Wh);0<=e.Ec&&(a.enableVertexAttribArray(e.Ec),a.bindBuffer(a.ARRAY_BUFFER,c.ei[c.Hd]),a.vertexAttribPointer(e.Ec,c.ua?3:2,a.FLOAT,!1,0,0));0<=e.Be&&(a.enableVertexAttribArray(e.Be),a.bindBuffer(a.ARRAY_BUFFER,c.$h[c.Hd]),a.vertexAttribPointer(e.Be,2,a.FLOAT,!1,0,0));c.ua&&a.enable(a.DEPTH_TEST)};p.prototype.ws=function(){var a=this.q,c=this.r,e=c.Ha[this.Eb];c.sn=this.Eb;c.If=e;a.useProgram(e.Wh);!e.ff&&e.zj&&(e.Lm(c.Nk),e.ff=!0);e.hg&&e.Dj!==c.Hi&&(e.Dj=c.Hi,a.uniform1f(e.hg,
c.Hi));0<=e.Ec&&(a.enableVertexAttribArray(e.Ec),a.bindBuffer(a.ARRAY_BUFFER,c.ei[c.Hd]),a.vertexAttribPointer(e.Ec,c.ua?3:2,a.FLOAT,!1,0,0));0<=e.Be&&(a.enableVertexAttribArray(e.Be),a.bindBuffer(a.ARRAY_BUFFER,c.$h[c.Hd]),a.vertexAttribPointer(e.Be,2,a.FLOAT,!1,0,0))};p.prototype.ss=function(){var a=this.M;this.q.uniform4f(this.r.If.Ll,a[0],a[1],a[2],a[3])};p.prototype.xs=function(){var a,c,e=this.r.If,d=this.q;a=this.M;e.zh&&this.r.lf!==this.Oc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,
this.Oc),this.r.lf=this.Oc,d.activeTexture(d.TEXTURE0));var b=a[0];e.Nl&&b!==e.Ho&&(e.Ho=b,d.uniform1f(e.Nl,b));b=a[1];e.Ml&&b!==e.Go&&(e.Go=b,d.uniform1f(e.Ml,b));b=a[2];c=a[3];!e.pf||b===e.Bo&&c===e.Co||(e.Bo=b,e.Co=c,d.uniform2f(e.pf,b,c));b=a[4];c=a[5];!e.of||b===e.zo&&c===e.Ao||(e.zo=b,e.Ao=c,d.uniform2f(e.of,b,c));b=a[6];e.yh&&b!==e.Eo&&(e.Eo=b,d.uniform1f(e.yh,b));b=a[7];e.xh&&b!==e.Do&&(e.Do=b,d.uniform1f(e.xh,b));b=a[8];c=a[9];!e.Ch||b===e.Lo&&c===e.Mo||(e.Lo=b,e.Mo=c,d.uniform2f(e.Ch,b,
c));b=a[10];c=a[11];!e.Ah||b===e.Io&&c===e.Jo||(e.Io=b,e.Jo=c,d.uniform2f(e.Ah,b,c));b=a[12];e.Bh&&b!==e.Ko&&(e.Ko=b,d.uniform1f(e.Bh,b));if(e.K.length)for(a=0,c=e.K.length;a<c;a++)b=this.Lp[a],b!==e.Gl[a]&&(e.Gl[a]=b,d.uniform1f(e.K[a][1],b))};g.prototype.jc=function(){this.Fd===this.ke.length&&this.ke.push(new p(0,this));return this.ke[this.Fd++]};g.prototype.qe=function(){if(0!==this.Fd&&!this.q.isContextLost()){var a=this.q;0<this.gm&&(a.bindBuffer(a.ARRAY_BUFFER,this.fm),a.bufferSubData(a.ARRAY_BUFFER,
0,this.pp.subarray(0,this.gm)),c&&0<=c.Ec&&"<point>"===c.name&&a.vertexAttribPointer(c.Ec,4,a.FLOAT,!1,0,0));if(0<this.$d){var c=this.If;a.bindBuffer(a.ARRAY_BUFFER,this.ei[this.Hd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.mk.subarray(0,this.$d));c&&0<=c.Ec&&"<point>"!==c.name&&a.vertexAttribPointer(c.Ec,this.ua?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.$h[this.Hd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.bk.subarray(0,this.zg));c&&0<=c.Be&&"<point>"!==c.name&&a.vertexAttribPointer(c.Be,2,
a.FLOAT,!1,0,0)}for(var e,a=0,c=this.Fd;a<c;a++)switch(e=this.ke[a],e.type){case 1:e.os();break;case 2:e.ys();break;case 3:e.vs();break;case 4:e.rs();break;case 5:e.As();break;case 6:e.qs();break;case 7:e.ls();break;case 8:e.ns();break;case 9:e.ws();break;case 10:e.xs();break;case 11:e.zs();break;case 12:e.ss();break;case 13:e.ts();break;case 14:e.us()}this.gm=this.zg=this.$d=this.Fd=0;this.lj=this.yb=!1;this.Hd++;4<=this.Hd&&(this.Hd=0)}};g.prototype.ug=function(a){if(a!==this.mo&&!this.ih){var c=
this.jc();c.type=3;this.mo=c.ep=a;this.yb=!1}};g.prototype.wc=function(a){if(a!==this.xe){var c=this.jc();c.type=2;this.xe=c.Oc=a;this.yb=!1}};g.prototype.He=function(a,c){if((a!==this.oo||c!==this.ko)&&!this.ih){var e=this.jc();e.type=4;e.Eb=a;e.sd=c;this.oo=a;this.ko=c;this.yb=!1}};g.prototype.Ap=function(){this.He(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};g.prototype.Ph=function(a,c,e,d,b,f,k,g){15992<=this.$d&&this.qe();var u=this.$d,y=this.zg,h=this.mk,n=this.bk,x=this.Ok;if(this.yb)this.ke[this.Fd-
1].sd+=6;else{var l=this.jc();l.type=1;l.Eb=this.ua?u:u/2*3;l.sd=6;this.yb=!0}this.ua?(h[u++]=a,h[u++]=c,h[u++]=x,h[u++]=e,h[u++]=d,h[u++]=x,h[u++]=b,h[u++]=f,h[u++]=x,h[u++]=k,h[u++]=g,h[u++]=x):(h[u++]=a,h[u++]=c,h[u++]=e,h[u++]=d,h[u++]=b,h[u++]=f,h[u++]=k,h[u++]=g);n[y++]=0;n[y++]=0;n[y++]=1;n[y++]=0;n[y++]=1;n[y++]=1;n[y++]=0;n[y++]=1;this.$d=u;this.zg=y};g.prototype.Ge=function(a,c,e,d,b,f,k,g,u){15992<=this.$d&&this.qe();var y=this.$d,h=this.zg,n=this.mk,x=this.bk,l=this.Ok;if(this.yb)this.ke[this.Fd-
1].sd+=6;else{var B=this.jc();B.type=1;B.Eb=this.ua?y:y/2*3;B.sd=6;this.yb=!0}var B=u.left,m=u.top,p=u.right;u=u.bottom;this.ua?(n[y++]=a,n[y++]=c,n[y++]=l,n[y++]=e,n[y++]=d,n[y++]=l,n[y++]=b,n[y++]=f,n[y++]=l,n[y++]=k,n[y++]=g,n[y++]=l):(n[y++]=a,n[y++]=c,n[y++]=e,n[y++]=d,n[y++]=b,n[y++]=f,n[y++]=k,n[y++]=g);x[h++]=B;x[h++]=m;x[h++]=p;x[h++]=m;x[h++]=p;x[h++]=u;x[h++]=B;x[h++]=u;this.$d=y;this.zg=h};g.prototype.Sb=function(a){if(this.uh!==a){if(!this.Ha[a]){if(0===this.uh)return;a=0}var c=this.jc();
c.type=9;this.uh=c.Eb=a;this.yb=!1}};g.prototype.Lh=function(a){a=this.Ha[a];return!(!a.pf&&!a.of)};g.prototype.jm=function(a){a=this.Ha[a];return!!(a.pf||a.of||a.Mk)};g.prototype.im=function(a){return this.Ha[a].Jc};g.prototype.av=function(a){a=this.Ha[a];return 0!==a.Pi||0!==a.Qi};g.prototype.It=function(a){return this.Ha[a].Pi};g.prototype.Jt=function(a){return this.Ha[a].Qi};g.prototype.Kt=function(a,c){return this.Ha[a].K[c][2]};g.prototype.Nj=function(a){return this.Ha[a].yk};g.prototype.vg=
function(a,c,e,d,b,f,k,g,u,l,h,n,x,m,B){var p=this.Ha[this.uh],q,t;if(p.bu||B.length){q=this.jc();q.type=10;q.M?jc(this.uc,q.M):q.M=ic();t=q.M;t[0]=c;t[1]=e;t[2]=d;t[3]=b;t[4]=f;t[5]=k;t[6]=g;t[7]=u;t[8]=l;t[9]=h;t[10]=n;t[11]=x;t[12]=m;p.zh?q.Oc=a:q.Oc=null;if(B.length)for(e=q.Lp,e.length=B.length,a=0,c=B.length;a<c;a++)e[a]=B[a];this.yb=!1}};g.prototype.clear=function(a,c,e,d){var b=this.jc();b.type=7;b.Eb=0;b.M||(b.M=ic());b.M[0]=a;b.M[1]=c;b.M[2]=e;b.M[3]=d;this.yb=!1};g.prototype.clearRect=function(a,
c,e,d){if(!(0>e||0>d)){var b=this.jc();b.type=7;b.Eb=1;b.M||(b.M=ic());b.M[0]=a;b.M[1]=c;b.M[2]=e;b.M[3]=d;this.yb=!1}};g.prototype.Ep=function(a){if(this.ua&&(a=!!a,this.ih!==a)){var c=this.jc();c.type=14;c.Eb=a?1:0;this.yb=!1;this.ih=a;this.Qj=null;this.ih?this.Sb(2):this.Sb(0)}};g.prototype.Cp=function(a){if(this.ua){var c=this.jc();c.type=13;c.Eb=a?1:0;this.yb=!1}};g.prototype.Gn=function(){jc(this.Hl,t);this.Lc();this.xc();var a=this.width/2,c=this.height/2;this.Ph(-a,c,a,c,a,-c,-a,-c);jc(t,
this.uc);this.xc()};g.prototype.Bp=function(a,c,e){this.Sb(3);var d=this.jc();d.type=12;d.M||(d.M=ic());d.M[0]=a;d.M[1]=c;d.M[2]=e;d.M[3]=1;this.yb=!1};g.prototype.Cv=function(){this.Sb(0)};g.prototype.nv=function(){this.Sb(2)};g.prototype.$u=function(){this.qe();this.q.flush()};var q=[],f={};g.prototype.$r=function(){W(q);f={}};g.prototype.vo=function(a,c,e){var d;d=!1;c=!!c;var b=a.src+","+d+","+c+(d?",undefined":""),g=null;if("undefined"!==typeof a.src&&f.hasOwnProperty(b))return g=f[b],g.xi++,
g;this.qe();var k=this.q,r=ia(a.width)&&ia(a.height),g=k.createTexture();k.bindTexture(k.TEXTURE_2D,g);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var u=k.RGBA,l=k.RGBA,h=k.UNSIGNED_BYTE;if(e&&!this.Od)switch(e){case 1:l=u=k.RGB;break;case 2:h=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=u=k.RGB,h=k.UNSIGNED_SHORT_5_6_5}if(!r&&d){e=document.createElement("canvas");e.width=ja(a.width);e.height=ja(a.height);var n=e.getContext("2d");"undefined"!==typeof n.imageSmoothingEnabled?
n.imageSmoothingEnabled=c:(n.webkitImageSmoothingEnabled=c,n.mozImageSmoothingEnabled=c,n.msImageSmoothingEnabled=c);n.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);k.texImage2D(k.TEXTURE_2D,0,u,l,h,e)}else k.texImage2D(k.TEXTURE_2D,0,u,l,h,a);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),r&&this.xn?(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.xe=null;g.Se=a.width;g.Re=a.height;g.xi=1;g.mn=b;q.push(g);return f[b]=g};g.prototype.nc=function(a,c,e,d){this.qe();var b=this.q;
this.Od&&(d=!1);var f=b.createTexture();b.bindTexture(b.TEXTURE_2D,f);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,a,c,0,b.RGBA,d?b.UNSIGNED_SHORT_4_4_4_4:b.UNSIGNED_BYTE,null);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,e?b.LINEAR:b.NEAREST);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,e?b.LINEAR:b.NEAREST);b.bindTexture(b.TEXTURE_2D,null);this.xe=null;f.Se=a;f.Re=c;q.push(f);
return f};g.prototype.Tv=function(a,c,e){this.qe();var d=this.q;this.Od&&(e=!1);d.bindTexture(d.TEXTURE_2D,c);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,e?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(b){console&&console.error&&console.error("Error updating WebGL texture: ",b)}d.bindTexture(d.TEXTURE_2D,null);this.xe=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.xi&&1<a.xi?a.xi--:(this.qe(),a===this.xe&&(this.q.bindTexture(this.q.TEXTURE_2D,
null),this.xe=null),a===this.lf&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.lf=null),Da(q,a),"undefined"!==typeof a.mn&&delete f[a.mn],this.q.deleteTexture(a)))};g.prototype.Mc=function(a){if(a!==this.Qj){var c=this.jc();c.type=6;this.Qj=c.Oc=a;this.yb=!1}};ob=g})();
(function(){function g(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.td=(this.hh=/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.Ob=!!a.dc;this.Zn="undefined"!==typeof window.AppMobi||
this.Ob;this.Xc=!!window.c2cocoonjs;this.Yc=!!window.c2ejecta;this.Xc&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Yc&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Fa=this.Ob||this.Xc||this.Yc;this.kh=
/edge\//i.test(navigator.userAgent);this.Od=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.kh;this.ao=/tizen/i.test(navigator.userAgent);this.jj=/android/i.test(navigator.userAgent)&&!this.ao&&!this.Od&&!this.kh;this.ho=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Od&&!this.kh;this.tu=/ipad/i.test(navigator.userAgent);this.rh=this.ho||this.tu||this.Yc;this.gh=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Od&&!this.kh;this.zl=/amazonwebappplatform/i.test(navigator.userAgent);this.mu=/firefox/i.test(navigator.userAgent);this.qu=/safari/i.test(navigator.userAgent)&&!this.gh&&!this.Od&&!this.kh;this.ru=/windows/i.test(navigator.userAgent);this.ve="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.eo=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.su=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Uf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.El=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.co=!!window.cr_windows10;this.bo=this.eo||this.su||this.El||this.co;this.lu=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.kj=this.jj&&!this.gh&&!this.hh&&!this.mu&&!this.zl&&!this.Fa;this.devicePixelRatio=
1;this.ue=this.td||this.hh||this.Zn||this.Xc||this.jj||this.rh||this.Uf||this.El||this.lu||this.ao||this.Yc;this.ue||(this.ue=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.oh=!!(this.rh&&this.td&&window.webkit);this.ql=null;this.du="";this.oh&&(this.ql=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.ve||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.ve=!0);this.canvas=a;this.Bi=document.getElementById("c2canvasdiv");this.r=this.q=null;this.ll="(unavailable)";this.ua=!1;this.Ye=0;this.Da=null;this.$k="";this.Vi=!1;this.bp=this.cp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ob&&(window.c2runtime=this);this.ve&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=
function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.kj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.C=this.width;this.B=this.height;this.Fi=this.width;this.Tg=this.height;this.dg=window.innerWidth;this.bg=window.innerHeight;this.tt=!1;this.ka=!0;this.nh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.p=[];this.Ca=
[];this.fg={};this.fc=[];this.Vk={};this.Jd=[];this.Eg=[];this.hk=[];this.Lr=[];this.Mr=[];this.Rp=null;this.Ve={};this.Bl=this.te=!1;this.Zc=0;this.Al=this.Dl=!1;this.Vc=[];this.jh=!1;this.Pd=this.zb=this.vj=this.vm="";this.Yh=this.Op=!1;this.Ui=[];this.Xe=this.We=0;this.Qo=30;this.Kk=this.Dh=0;this.Ag=1;this.eb=new db;this.ae=new db;this.Gj=this.Zi=this.Wg=this.ed=this.nf=this.Zk=this.oj=0;this.Te=null;this.Sk=[];this.Uk=[];this.Oi=-1;this.Ol=[[]];this.Hm=this.Aj=0;this.Oj(null);this.Ql=[];this.Cj=
-1;this.Vo=this.Gh=0;this.Jl=!0;this.Xg=0;this.Zh=[];this.Em=this.lm=-1;this.$f=!0;this.yj=0;this.lh=!1;this.Fv=0;this.Ff=null;this.Cc=this.Qn=!1;this.Zo=new ca;this.Wl=new ca;this.$o=new ca;this.Qh=[];this.dd=new fb([]);this.Dm=new fb([]);this.Ef=[];this.ah={};this.me={};this.he={};this.Dg={};this.jn={};this.uo=this.uj=this.Ma=this.Wa=this.to=this.tj=this.la=null;this.Bg=this.Fl=!1;this.al=[null,null];this.cf=0;this.Xk="";this.Sd={};this.Xh=this.ze=null;this.Qp="";this.Fj=[];this.mv()}}function l(a,
d){return 128>=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function m(){try{return!!window.indexedDB}catch(a){return!1}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,d,b,h){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=p;c.onerror=h;c.onsuccess=function(c){c=c.target.result;c.onerror=h;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=b}}catch(e){h(e)}}function q(a,d,b){try{var h=indexedDB.open("_C2SaveStates");
h.onupgradeneeded=p;h.onerror=b;h.onsuccess=function(h){h=h.target.result;h.onerror=b;var c=h.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?d(c.result.data):d(null)}}}catch(c){b(c)}}function f(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,b={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof
ca||a[d]&&"undefined"!==typeof a[d].cx||"spriteCreatedDestroyCallback"!==d&&(b[d]=a[d]);return b}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;g.prototype.mv=function(){var a=this;if(this.oh)this.ql?this.ql.startServer({port:0,localhost_only:!0},function(d){a.du=d;a.Dn(function(d){a.gg(JSON.parse(d))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+
a)}):this.Dn(function(d){a.gg(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.Uf?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var b="data.js";if(this.eo||this.Uf||this.El||this.co)b="data.json";d.open("GET",b,!0);var h=!1;if(!this.Fa&&"response"in d&&"responseType"in d)try{d.responseType="json",h="json"===d.responseType}catch(c){h=!1}if(!h&&"responseType"in d)try{d.responseType="text"}catch(e){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.Uf?
d.onreadystatechange=function(){4===d.readyState&&a.gg(JSON.parse(d.responseText))}:(d.onload=function(){if(h)a.gg(d.response);else if(a.Yc){var b=d.responseText,b=b.substr(b.indexOf("{"));a.gg(JSON.parse(b))}else a.gg(JSON.parse(d.responseText))},d.onerror=function(a){fa("Error requesting "+b+":");fa(a)});d.send()}};g.prototype.hu=function(){var a=this,d,b,h,c,e,f,k,n,g;this.kf=(!this.Fa||this.Yc||this.td)&&this.Rv&&!this.kj;0===this.Nb&&this.rh&&(this.kf=!1);this.devicePixelRatio=this.kf?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ub();b=!(!this.tt&&(!this.wk||this.ve||this.bo||this.Uf||this.hh||this.td||this.zl));0<this.Nb&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Is&&(this.Xc||this.Yc||!this.Fa)&&(d={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d))}catch(u){}if(this.q){if(d=this.q.getExtension("WEBGL_debug_renderer_info"))this.ll=
this.q.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.q.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.ua&&(this.ll+=" [front-to-back enabled]");this.Fa||(this.pb=document.createElement("canvas"),jQuery(this.pb).appendTo(this.canvas.parentNode),this.pb.oncontextmenu=function(){return!1},this.pb.onselectstart=function(){return!1},this.pb.width=Math.round(this.Fi*this.devicePixelRatio),this.pb.height=Math.round(this.Tg*this.devicePixelRatio),jQuery(this.pb).css({width:this.Fi+"px",height:this.Tg+
"px"}),this.qp(),this.cm=this.pb.getContext("2d"));this.r=new ob(this.q,this.ue,this.ua);this.r.uf(this.canvas.width,this.canvas.height);this.r.xn=0!==this.Bs;this.Da=null;this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.Du();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.r.Un();a.r.uf(a.r.width,a.r.height,!0);a.Wa=null;a.Ma=null;a.al[0]=null;a.al[1]=null;a.Eu();a.ka=!0;ea("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);d=0;for(b=this.p.length;d<b;d++)for(e=this.p[d],h=0,c=e.I.length;h<c;h++)k=e.I[h],k.Pa=this.r.kl(k.id),k.Jc=this.r.im(k.Pa),this.Bg=this.Bg||this.r.Lh(k.Pa);d=0;for(b=this.fc.length;d<b;d++){n=this.fc[d];h=0;for(c=n.I.length;h<c;h++)k=n.I[h],k.Pa=this.r.kl(k.id),k.Jc=this.r.im(k.Pa);n.gd();h=0;for(c=n.J.length;h<c;h++){g=n.J[h];e=0;for(f=g.I.length;e<f;e++)k=g.I[e],k.Pa=this.r.kl(k.id),k.Jc=this.r.im(k.Pa),this.Bg=this.Bg||this.r.Lh(k.Pa);g.gd()}}}else{if(0<this.Nb&&
this.Ob){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Da=AppMobi.canvas.getContext("2d");try{this.Da.samplingMode=this.Ja?"smooth":"sharp",this.Da.globalScale=1,this.Da.HTML5CompatibilityMode=!0,this.Da.imageSmoothingEnabled=this.Ja}catch(v){}0!==this.width&&0!==this.height&&(this.Da.width=this.width,this.Da.height=this.height)}this.Da||(this.Xc?(d={antialias:!!this.Ja,alpha:b},this.Da=this.canvas.getContext("2d",d)):(d={alpha:b},this.Da=
this.canvas.getContext("2d",d)),this.Wj(this.Da,this.Ja));this.cm=this.pb=null}this.bq=function(d){a.rb(!1,d)};window==window.top||this.Fa||this.bo||this.Uf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Xc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),
this.vj="__c2_continuouspreview",this.Yh=!0),this.Qu&&!this.ue&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.pg()});this.Fa||(d=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",
d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.Nb&&this.kf&&1<this.devicePixelRatio&&this.setSize(this.Ya,this.Xa,!0);this.hq();this.Zt();this.go();this.F={}};g.prototype.setSize=function(a,d,b){var h=0,c=0,e=0,k=0,k=0;if(this.dg!==a||this.bg!==d||b){this.dg=a;this.bg=d;var f=this.Nb,n=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.lh)&&!this.td;if(n||0!==this.Nb||b)n&&0<this.cf&&(f=this.cf),b=this.devicePixelRatio,4<=f?(e=this.Ya/this.Xa,a/d>e?(e*=d,5===f?(k=e*b/this.Ya,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),e=this.Ya*k/b,k=this.Xa*k/b,h=(a-e)/2,c=(d-k)/2,a=e,d=k):(h=(a-e)/2,a=e)):(k=a/e,5===f?(k=k*b/this.Xa,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),e=this.Ya*k/b,k=this.Xa*k/b,h=(a-e)/2,c=(d-k)/2,a=e):c=(d-k)/2,d=k),n&&!this.ve&&(c=h=0)):this.ve&&this.lh&&0===this.Hn&&(h=Math.floor((a-this.Ya)/
2),c=Math.floor((d-this.Xa)/2),a=this.Ya,d=this.Xa),2>f&&(this.Mg=b),this.Fi=Math.round(a),this.Tg=Math.round(d),this.width=Math.round(a*b),this.height=Math.round(d*b),this.ka=!0,this.tq?(this.C=this.width,this.B=this.height,this.pc=!0):this.width<this.Ya&&this.height<this.Xa||1===f?(this.C=this.width,this.B=this.height,this.pc=!0):(this.C=this.Ya,this.B=this.Xa,this.pc=!1,2===f?(e=this.Ya/this.Xa,f=this.dg/this.bg,f<e?this.C=this.B*f:f>e&&(this.B=this.C/f)):3===f&&(e=this.Ya/this.Xa,f=this.dg/this.bg,
f>e?this.C=this.B*f:f<e&&(this.B=this.C/f))),this.Bi&&!this.Fa&&(jQuery(this.Bi).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(h)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(d*b),this.Yc?(this.canvas.style.left=Math.floor(h)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.kf&&!this.Fa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.pb&&(this.pb.width=Math.round(a*b),this.pb.height=Math.round(d*b),this.pb.style.width=this.Fi+"px",this.pb.style.height=this.Tg+"px"),this.r&&this.r.uf(Math.round(a*b),Math.round(d*b)),this.Ob&&this.Da&&(this.Da.width=Math.round(a),this.Da.height=Math.round(d)),this.Da&&this.Wj(this.Da,this.Ja),this.hq(),this.ho&&!this.td&&
window.scrollTo(0,0)}};g.prototype.hq=function(){if(this.Pr&&0!==this.$l){var a="portrait";2===this.$l&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",
d)}}};g.prototype.Du=function(){this.r.$r();this.Fl=!0;var a,d,b;a=0;for(d=this.p.length;a<d;a++)b=this.p[a],b.Yl&&b.Yl()};g.prototype.Eu=function(){this.Fl=!1;var a,d,b;a=0;for(d=this.p.length;a<d;a++)b=this.p[a],b.dp&&b.dp()};g.prototype.qp=function(){if(!this.Fa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.lh)&&!this.td?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.pb).css(a)}};
var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;g.prototype.setSuspended=function(a){var d;if(a&&!this.nh)for(ea("[Construct 2] Suspending"),this.nh=!0,-1!==this.lm&&e&&e(this.lm),-1!==this.Em&&clearTimeout(this.Em),a=0,d=this.Zh.length;a<d;a++)this.Zh[a](!0);else if(!a&&this.nh){ea("[Construct 2] Resuming");this.nh=!1;this.oj=$a();this.nf=$a();a=this.Dh=this.Zi=0;for(d=this.Zh.length;a<
d;a++)this.Zh[a](!1);this.rb(!1)}};g.prototype.Kr=function(a){this.Zh.push(a)};g.prototype.ee=function(a){return this.Fj[a]};g.prototype.gg=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Fn=a[1];this.Nb=a[12];this.Hn=a[12];this.Ya=a[10];this.Xa=a[11];this.lp=this.Ya/2;this.mp=this.Xa/2;this.Fa&&!this.Yc&&(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.Hn=
this.Nb=3);this.Nm=a[18];this.Ae=a[19];if(0===this.Ae){var d=new Image;d.crossOrigin="anonymous";this.Fp(d,"loading-logo.png");this.ze={Bj:d}}else if(4===this.Ae){d=new Image;d.src="";var b=new Image;b.src="";var h=new Image;h.src="";var c=new Image;c.src="";var e=new Image;e.src="";var k=new Image;k.src="";var f=new Image;f.src="";var n=new Image;n.src="";var g=new Image;g.src="";var u=new Image;u.src="";var v=new Image;v.src="";var x=new Image;x.src="";this.ze={Bj:[d,b,h,c],Xu:[e,k,f,n],Yv:[g,u,
v,x]}}this.Gh=a[21];this.Fj=nc();this.Bd=new Z(this);d=0;for(b=a[2].length;d<b;d++)f=a[2][d],h=this.ee(f[0]),pb(f,h.prototype),n=new h(this),n.Zj=f[1],n.we=f[2],n.So=f[9],n.ya&&n.ya(),this.plugins.push(n);this.Fj=nc();d=0;for(b=a[3].length;d<b;d++){f=a[3][d];e=this.ee(f[1]);n=null;h=0;for(c=this.plugins.length;h<c;h++)if(this.plugins[h]instanceof e){n=this.plugins[h];break}g=new n.Fb(n);g.name=f[0];g.L=f[2];g.xl=f[3].slice(0);g.Sv=f[3].length;g.Qr=f[4];g.wt=f[5];g.S=f[11];g.L?(g.jg=[],g.Kd=this.Xg++,
g.Aa=null):(g.jg=null,g.Kd=-1,g.Aa=[]);g.Si=null;g.Of=null;g.yn=null;g.cc=!1;g.Yb=null;f[6]?(g.Yp=f[6][0],g.Zp=f[6][1],g.Kv=f[6][2]):(g.Yp=null,g.Zp=0,g.Kv=0);f[7]?g.Xb=f[7]:g.Xb=null;g.index=d;g.d=[];g.Ji=[];g.Yd=[new qb(g)];g.md=0;g.Ac=null;g.es=0;g.yg=!0;g.ik=rb;g.Bt=sb;g.Gt=tb;g.V=ub;g.Nh=vb;g.Oh=wb;g.Fe=xb;g.bj=yb;g.bl=Ab;g.el=Bb;g.Sc=Cb;g.gl=Db;g.Ci=new gb(this.Ya,this.Xa);g.qi=!0;g.ri=!1;g.F={};g.toString=Eb;g.Ca=[];h=0;for(c=f[8].length;h<c;h++){u=f[8][h];v=this.ee(u[1]);x=null;e=0;for(k=
this.Ca.length;e<k;e++)if(this.Ca[e]instanceof v){x=this.Ca[e];break}x||(x=new v(this),x.Ul=[],x.Tl=new ca,x.ya&&x.ya(),this.Ca.push(x),fc.Ev&&x instanceof fc.Ev&&(this.Rp=x));-1===x.Ul.indexOf(g)&&x.Ul.push(g);e=new x.Fb(x,g);e.name=u[0];e.S=u[2];e.ya();g.Ca.push(e)}g.global=f[9];g.Cl=f[10];g.I=[];h=0;for(c=f[12].length;h<c;h++)g.I.push({id:f[12][h][0],name:f[12][h][1],Pa:-1,Jc:!1,lc:!0,index:h});g.ux=f[13];this.Nm&&!g.L&&!g.Cl&&n.we||g.ya();g.name&&(this.types[g.name]=g);this.p.push(g);n.Zj&&(h=
new n.kb(g),h.uid=this.Gh++,h.up=this.Vo++,h.hf=0,h.Zg=Fb,h.toString=Gb,h.P=f[14],h.ya(),g.d.push(h),this.Sd[h.uid.toString()]=h)}d=0;for(b=a[4].length;d<b;d++)for(e=a[4][d],k=this.p[e[0]],h=1,c=e.length;h<c;h++)f=this.p[e[h]],f.Aa.push(k),k.jg.push(f);d=0;for(b=a[28].length;d<b;d++){e=a[28][d];k=[];h=0;for(c=e.length;h<c;h++)k.push(this.p[e[h]]);h=0;for(c=k.length;h<c;h++)k[h].cc=!0,k[h].Yb=k}if(0<this.Xg)for(d=0,b=this.p.length;d<b;d++)if(f=this.p[d],!f.L&&f.Aa.length){f.Si=Array(this.Xg);f.Of=
Array(this.Xg);f.yn=Array(this.Xg);g=[];h=x=v=u=0;for(c=f.Aa.length;h<c;h++)for(n=f.Aa[h],f.Si[n.Kd]=u,u+=n.Sv,f.Of[n.Kd]=v,v+=n.Qr,f.yn[n.Kd]=x,x+=n.wt,e=0,k=n.I.length;e<k;e++)g.push(wa({},n.I[e]));f.I=g.concat(f.I);h=0;for(c=f.I.length;h<c;h++)f.I[h].index=h}d=0;for(b=a[5].length;d<b;d++)f=a[5][d],h=new Hb(this,f),this.fg[h.name]=h,this.fc.push(h);d=0;for(b=a[6].length;d<b;d++)f=a[6][d],h=new Ib(this,f),this.Vk[h.name]=h,this.Jd.push(h);d=0;for(b=this.Jd.length;d<b;d++)this.Jd[d].Ka();d=0;for(b=
this.Jd.length;d<b;d++)this.Jd[d].Km();d=0;for(b=this.hk.length;d<b;d++)this.hk[d].Ka();W(this.hk);this.Or=a[7];this.Xk=a[8];this.Td=a[9];this.Mg=1;this.Is=a[13];this.Ja=a[14];this.wk=a[15];this.Rv=a[17];this.$l=a[20];this.Pr=0<this.$l;this.Qu=a[22];this.pc=this.tq=a[23];this.Bs=a[24];this.Yu=a[25];this.ua=a[27]&&!this.Od;this.$j=Date.now();W(this.Fj);this.hu()};var d=!1;g.prototype.Xv=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){d=a.ln=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",b)};this.Yc?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(d){a.src=d},function(h){d=a.ln=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",this.Fp(a,b)));this.Eg.push(a)};g.prototype.qt=function(a){var d,b;d=0;for(b=this.Eg.length;d<b;d++)if(this.Eg[d].bs===a)return this.Eg[d];return null};var b=0,v=!1;g.prototype.Zt=function(){this.Ff&&(b=this.Ff.Av(this.Or))};g.prototype.gn=function(){var a=
b,d=0,h=0,c=!0,e,f,h=0;for(e=this.Eg.length;h<e;h++){f=this.Eg[h];var k=f.as;if(!k||0>=k)k=5E4;a+=k;f.src&&(f.complete||f.loaded)&&!f.ln?d+=k:c=!1}c&&this.Yu&&this.Ff&&(v||(this.Ff.Gv(),v=!0),h=this.Ff.Ht(),d+=h,h<b&&(c=!1));this.ad=0==a?1:d/a;return c};var k=!1;g.prototype.go=function(){if(this.Da||this.r){var a=this.Da||this.cm;this.pb&&this.qp();var b=window.innerWidth,h=window.innerHeight;this.dg===b&&this.bg===h||this.setSize(b,h);this.ad=0;this.so=-1;var e=this;if(this.gn()&&(4!==this.Ae||k))this.$t();
else{h=Date.now()-this.$j;if(a){var f=this.width,n=this.height,b=this.devicePixelRatio;if(3>this.Ae&&(this.Xc||500<=h&&this.so!=this.ad)){a.clearRect(0,0,f,n);var h=f/2,n=n/2,f=0===this.Ae&&this.ze.Bj.complete,g=40*b,u=0,v=80*b,x;if(f){var r=this.ze.Bj,v=r.width*b;x=r.height*b;g=v/2;u=x/2;a.drawImage(r,M(h-g),M(n-u),v,x)}1>=this.Ae?(h=M(h-g)+.5,n=M(n+(u+(f?12*b:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(h,n,Math.floor(v*this.ad),6*b),a.strokeStyle="black",a.strokeRect(h,n,v,6*b),a.strokeStyle=
"white",a.strokeRect(h-1*b,n-1*b,v+2*b,8*b)):2===this.Ae&&(a.font=this.Yc?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.tx="middle",b=Math.round(100*this.ad)+"%",f=a.measureText?a.measureText(b):null,a.fillText(b,h-(f?f.width:0)/2,n));this.so=this.ad}else if(4===this.Ae){this.Gs(a);c?c(function(){e.go()}):setTimeout(function(){e.go()},16);return}}setTimeout(function(){e.go()},this.Xc?10:100)}}};var r=-1,u="undefined"===typeof cr_is_preview?200:0,y=!0,h=!1,n=0,x=0,H="undefined"===typeof cr_is_preview?
3E3:0,B=null,K=null,U=0;g.prototype.Gs=function(a){if(!k){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),e=this.ze.Bj,f=this.ze.Xu,g=this.ze.Yv,v=0;4>v;++v)if(!e[v].complete||!f[v].complete||!g[v].complete)return;0===U&&(r=Date.now());var v=Date.now(),m=!1,p=a,q,t;y||h?(a.clearRect(0,0,b,c),B&&B.width===b&&B.height===c||(B=document.createElement("canvas"),B.width=b,B.height=c,K=B.getContext("2d")),p=K,m=!0,y&&1===U&&(r=Date.now())):a.globalAlpha=1;p.fillStyle="#333333";p.fillRect(0,0,b,
c);256<this.Tg?(q=Ea(.22*c,105,.6*b),t=.25*q,p.drawImage(l(f,q),.5*b-q/2,.2*c-t/2,q,t),t=q=Math.min(.395*c,.95*b),p.drawImage(l(e,q),.5*b-q/2,.485*c-t/2,q,t),q=Ea(.22*c,105,.6*b),t=.25*q,p.drawImage(l(g,q),.5*b-q/2,.868*c-t/2,q,t),p.fillStyle="#3C3C3C",q=b,t=Math.max(.005*c,2),p.fillRect(0,.8*c-t/2,q,t),p.fillStyle=d?"red":"#E0FF65",q=b*this.ad,p.fillRect(.5*b-q/2,.8*c-t/2,q,t)):(t=q=.55*c,p.drawImage(l(e,q),.5*b-q/2,.45*c-t/2,q,t),p.fillStyle="#3C3C3C",q=b,t=Math.max(.005*c,2),p.fillRect(0,.85*c-
t/2,q,t),p.fillStyle=d?"red":"#E0FF65",q=b*this.ad,p.fillRect(.5*b-q/2,.85*c-t/2,q,t));m&&(y?a.globalAlpha=0===U?0:Math.min((v-r)/300,1):h&&(a.globalAlpha=Math.max(1-(v-x)/300,0)),a.drawImage(B,0,0,b,c));y&&300<=v-r&&2<=U&&(y=!1,n=v);!y&&v-n>=H&&!h&&1<=this.ad&&(h=!0,x=v);if(h&&v-x>=300+u||"undefined"!==typeof cr_is_preview&&1<=this.ad&&500>Date.now()-r)k=!0,h=y=!1,this.ze=K=B=null;++U}};g.prototype.$t=function(){this.pb&&(this.canvas.parentNode.removeChild(this.pb),this.pb=this.cm=null);this.$j=
Date.now();this.nf=$a();var a,d,b;if(this.Nm)for(a=0,d=this.p.length;a<d;a++)b=this.p[a],b.L||b.Cl||!b.za.we||b.ya();else this.$f=!1;a=0;for(d=this.fc.length;a<d;a++)this.fc[a].cs();2<=this.Nb&&(a=this.Ya/this.Xa,d=this.width/this.height,this.Mg=2!==this.Nb&&d>a||2===this.Nb&&d<a?this.height/this.Xa:this.width/this.Ya);this.Fn?this.fg[this.Fn].Cm():this.fc[0].Cm();this.Nm||(this.yj=1,this.trigger(Z.prototype.n.Vm,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(d=this.p.length;a<d;a++)b=this.p[a],b.Cu&&b.Cu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.rb(!1);this.Ob&&AppMobi.webview.execute("onGameReady();")};g.prototype.rb=function(a,d,b){if(this.la){var h=$a();if(b||!this.nh||a){a||(c?this.lm=c(this.bq):this.Em=setTimeout(this.bq,this.ue?1:16));d=d||h;var e=this.Nb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.td)||this.lh)&&0<this.cf&&(e=this.cf);if(0<e){var e=window.innerWidth,f=window.innerHeight;this.dg===e&&this.bg===f||this.setSize(e,f)}this.Fa||(b?(this.Vi||(this.$k=jQuery(this.canvas).css("margin")||"0",this.Vi=!0),this.gh||this.ve||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.Vi?(this.gh||this.ve||jQuery(this.canvas).css("margin",this.$k),
this.$k="",this.Vi=!1,0===this.Nb&&this.setSize(Math.round(this.cp/this.devicePixelRatio),Math.round(this.bp/this.devicePixelRatio),!0)):(this.cp=this.width,this.bp=this.height));this.$f&&(b=this.gn(),this.yj=this.ad,b&&(this.$f=!1,this.ad=1,this.trigger(Z.prototype.n.Vm,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.xu(d);!this.ka&&!this.Xc||this.Fl||this.Yh||a||(this.ka=!1,this.r?this.oc():this.nd(),this.Xh&&(this.canvas&&this.canvas.toDataURL&&(this.Qp=this.canvas.toDataURL(this.Xh[0],
this.Xh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Qp),this.trigger(Z.prototype.n.br,null)),this.Xh=null));this.ix||(this.ed++,this.Wg++,this.Zi++);this.Dh+=$a()-h}}};g.prototype.xu=function(a){var d,b,h,c,e,f,k,n;1E3<=a-this.nf&&(this.nf+=1E3,1E3<=a-this.nf&&(this.nf=a),this.Zk=this.Zi,this.Zi=0,this.Kk=this.Dh,this.Dh=0);d=0;0!==this.oj&&(d=a-this.oj,0>d&&(d=0),this.Xe=d/=1E3,.5<this.Xe?this.Xe=0:this.Xe>1/this.Qo&&(this.Xe=1/this.Qo));this.oj=a;this.We=this.Xe*this.Ag;this.eb.add(this.We);
this.ae.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.lh)&&!this.td;2<=this.Nb||a&&0<this.cf?(d=this.Ya/this.Xa,b=this.width/this.height,h=this.Nb,a&&0<this.cf&&(h=this.cf),this.Mg=2!==h&&b>d||2===h&&b<d?this.height/this.Xa:this.width/this.Ya,this.la&&(this.la.yp(this.la.scrollX),this.la.zp(this.la.scrollY))):this.Mg=this.kf?this.devicePixelRatio:1;this.ub();this.Zc++;this.Bd.qv();this.Zc--;this.ub();this.Zc++;b=this.Zo.Ke();
a=0;for(d=b.length;a<d;a++)b[a].nx();a=0;for(d=this.p.length;a<d;a++)if(f=this.p[a],!f.L&&(f.Ca.length||f.Aa.length))for(b=0,h=f.d.length;b<h;b++)for(k=f.d[b],c=0,e=k.H.length;c<e;c++)k.H[c].rb();a=0;for(d=this.p.length;a<d;a++)if(f=this.p[a],!f.L&&(f.Ca.length||f.Aa.length))for(b=0,h=f.d.length;b<h;b++)for(k=f.d[b],c=0,e=k.H.length;c<e;c++)n=k.H[c],n.Wu&&n.Wu();b=this.Wl.Ke();a=0;for(d=b.length;a<d;a++)b[a].rb();this.Zc--;this.au();for(a=0;this.Te&&10>a++;)this.wn(this.Te);a=0;for(d=this.Jd.length;a<
d;a++)this.Jd[a].pl=!1;this.la.$e&&this.la.$e.Oa();W(this.Qh);this.Jl=!1;this.Zc++;a=0;for(d=this.p.length;a<d;a++)if(f=this.p[a],!f.L&&(f.Ca.length||f.Aa.length))for(b=0,h=f.d.length;b<h;b++)for(k=f.d[b],c=0,e=k.H.length;c<e;c++)n=k.H[c],n.aq&&n.aq();b=this.$o.Ke();a=0;for(d=b.length;a<d;a++)b[a].aq();this.Zc--};g.prototype.pg=function(){var a,d,b,h,c,e,f,k,n;a=0;for(d=this.p.length;a<d;a++)if(f=this.p[a],!f.L)for(b=0,h=f.d.length;b<h;b++)if(k=f.d[b],k.pg&&k.pg(),k.H)for(c=0,e=k.H.length;c<e;c++)n=
k.H[c],n.pg&&n.pg()};g.prototype.wn=function(a){var d=this.la;this.la.Hv();var b,h,c;if(this.r)for(b=0,h=this.p.length;b<h;b++)c=this.p[b],c.L||!c.kq||c.global&&0!==c.d.length||-1!==a.eh.indexOf(c)||c.kq();d==a&&W(this.Bd.Vb);W(this.Qh);this.wp(!0);a.Cm();this.wp(!1);this.Jl=this.ka=!0;this.ub()};g.prototype.wp=function(a){var d,b,h,c,e,f,k,n,g;d=0;for(b=this.Ca.length;d<b;d++)h=this.Ca[d],a?h.Hh&&h.Hh():h.Ih&&h.Ih();d=0;for(b=this.p.length;d<b;d++)if(h=this.p[d],h.global||h.za.Zj)for(c=0,e=h.d.length;c<
e;c++)if(f=h.d[c],a?f.Hh&&f.Hh():f.Ih&&f.Ih(),f.H)for(k=0,n=f.H.length;k<n;k++)g=f.H[k],a?g.Hh&&g.Hh():g.Ih&&g.Ih()};g.prototype.dk=function(a){this.Wl.add(a)};g.prototype.cl=function(a){return a&&-1!==a.Fh?this.Xe*a.Fh:this.We};g.prototype.nd=function(){this.la.nd(this.Da);this.Ob&&this.Da.present()};g.prototype.oc=function(){this.ua&&(this.Ye=1,this.la.Kf(this.r));this.la.oc(this.r);this.r.$u()};g.prototype.cn=function(a){a&&this.Sk.push(a)};g.prototype.fj=function(a){a=a.toString();return this.Sd.hasOwnProperty(a)?
this.Sd[a]:null};var P=[];g.prototype.Le=function(a){var d,b;d=a.type.name;var h=null;if(this.Ve.hasOwnProperty(d)){if(h=this.Ve[d],h.contains(a))return}else h=P.length?P.pop():new ca,this.Ve[d]=h;h.add(a);this.te=!0;if(a.cc)for(d=0,b=a.siblings.length;d<b;d++)this.Le(a.siblings[d]);this.Bl&&h.Cg.push(a);this.Al||(this.Zc++,this.trigger(Object.getPrototypeOf(a.type.za).n.er,a),this.Zc--)};g.prototype.ub=function(){if(this.te){var a,d,b,h,c,e;this.Bl=!0;b=0;for(c=this.Vc.length;b<c;++b)for(a=this.Vc[b],
d=a.type,d.d.push(a),h=0,e=d.Aa.length;h<e;++h)d.Aa[h].d.push(a),d.Aa[h].yg=!0;W(this.Vc);this.Rq();Za(this.Ve);this.te=this.Bl=!1}};g.prototype.Rq=function(){for(var a in this.Ve)this.Ve.hasOwnProperty(a)&&this.zq(this.Ve[a])};g.prototype.zq=function(a){var d=a.Ke(),b=d[0].type,h,c,e,f,k,n;ab(b.d,a);b.yg=!0;0===b.d.length&&(b.ri=!1);h=0;for(c=b.Aa.length;h<c;++h)n=b.Aa[h],ab(n.d,a),n.yg=!0;h=0;for(c=this.Bd.Vb.length;h<c;++h)if(k=this.Bd.Vb[h],k.Db.hasOwnProperty(b.index)&&ab(k.Db[b.index].Md,a),
!b.L)for(e=0,f=b.Aa.length;e<f;++e)n=b.Aa[e],k.Db.hasOwnProperty(n.index)&&ab(k.Db[n.index].Md,a);if(k=d[0].i){if(k.yc)for(e=k.d,h=0,c=e.length;h<c;++h)f=e[h],a.contains(f)&&(f.ta(),k.qb.update(f,f.Pb,null),f.Pb.set(0,0,-1,-1));ab(k.d,a);k.Th(0)}for(h=0;h<d.length;++h)this.yq(d[h],b);a.clear();P.push(a);this.ka=!0};g.prototype.yq=function(a,d){var b,h,c;b=0;for(h=this.Sk.length;b<h;++b)this.Sk[b](a);a.ne&&d.Ci.update(a,a.ne,null);(b=a.i)&&b.sg(a,!0);if(a.H)for(b=0,h=a.H.length;b<h;++b)c=a.H[b],c.ng&&
c.ng(),c.behavior.Tl.remove(a);this.Zo.remove(a);this.Wl.remove(a);this.$o.remove(a);a.ng&&a.ng();this.Sd.hasOwnProperty(a.uid.toString())&&delete this.Sd[a.uid.toString()];this.Gj--;100>d.Ji.length&&d.Ji.push(a)};g.prototype.Lk=function(a,d,b,h){if(a.L){var c=M(Math.random()*a.jg.length);return this.Lk(a.jg[c],d,b,h)}return a.Ac?this.oe(a.Ac,d,!1,b,h,!1):null};var E=[];g.prototype.oe=function(a,d,b,h,c,e){var f,k,n,g;if(!a)return null;var v=this.p[a[1]],u=v.za.we;if(this.$f&&u&&!v.Cl||u&&!this.r&&
11===a[0][11])return null;var x=d;u||(d=null);var r;v.Ji.length?(r=v.Ji.pop(),r.Kc=!0,v.za.kb.call(r,v)):(r=new v.za.kb(v),r.Kc=!1);!b||e||this.Sd.hasOwnProperty(a[2].toString())?r.uid=this.Gh++:r.uid=a[2];this.Sd[r.uid.toString()]=r;r.up=this.Vo++;r.hf=v.d.length;f=0;for(k=this.Vc.length;f<k;++f)this.Vc[f].type===v&&r.hf++;r.Zg=Fb;r.toString=Gb;n=a[3];if(r.Kc)Za(r.F);else{r.F={};if("undefined"!==typeof cr_is_preview)for(r.Xn=[],r.Xn.length=n.length,f=0,k=n.length;f<k;f++)r.Xn[f]=n[f][1];r.Va=[];
r.Va.length=n.length}f=0;for(k=n.length;f<k;f++)r.Va[f]=n[f][0];if(u){var l=a[0];r.x=ga(h)?l[0]:h;r.y=ga(c)?l[1]:c;r.z=l[2];r.width=l[3];r.height=l[4];r.depth=l[5];r.k=l[6];r.opacity=l[7];r.$b=l[8];r.ac=l[9];r.wb=l[10];f=l[11];!this.r&&v.I.length&&(r.wb=f);r.Pg=jb(r.wb);this.q&&kb(r,r.wb,this.q);if(r.Kc){f=0;for(k=l[12].length;f<k;f++)for(n=0,g=l[12][f].length;n<g;n++)r.Ea[f][n]=l[12][f][n];r.Ba.set(0,0,0,0);r.ne.set(0,0,-1,-1);r.Pb.set(0,0,-1,-1);r.Kb.Uh(r.Ba);W(r.Bk)}else{r.Ea=l[12].slice(0);f=
0;for(k=r.Ea.length;f<k;f++)r.Ea[f]=l[12][f].slice(0);r.Z=[];r.ge=[];r.ge.length=v.I.length;r.Ba=new ua(0,0,0,0);r.ne=new ua(0,0,-1,-1);r.Pb=new ua(0,0,-1,-1);r.Kb=new va;r.Bk=[];r.Y=Jb;r.$w=Kb;r.Cb=Lb;r.ta=Mb;r.Qv=Nb;r.qq=Ob;r.rd=Pb}r.ai=!1;r.Nv=0;r.Mv=0;r.Lv=null;14===l.length&&(r.ai=!0,r.Nv=l[13][0],r.Mv=l[13][1],r.Lv=l[13][2]);f=0;for(k=v.I.length;f<k;f++)r.ge[f]=!0;r.Wd=!0;r.gd=Qb;r.gd();r.rq=!!r.Z.length;r.Ak=!0;r.Dk=!0;v.qi=!0;r.visible=!0;r.Fh=-1;r.i=d;r.hd=d.d.length;r.Ye=0;"undefined"===
typeof r.ca&&(r.ca=null);this.ka=r.Gd=!0}var y;W(E);f=0;for(k=v.Aa.length;f<k;f++)E.push.apply(E,v.Aa[f].Ca);E.push.apply(E,v.Ca);if(r.Kc)for(f=0,k=E.length;f<k;f++){var m=E[f];y=r.H[f];y.Kc=!0;m.behavior.kb.call(y,m,r);l=a[4][f];n=0;for(g=l.length;n<g;n++)y.P[n]=l[n];y.ya();m.behavior.Tl.add(r)}else for(r.H=[],f=0,k=E.length;f<k;f++)m=E[f],y=new m.behavior.kb(m,r),y.Kc=!1,y.P=a[4][f].slice(0),y.ya(),r.H.push(y),m.behavior.Tl.add(r);l=a[5];if(r.Kc)for(f=0,k=l.length;f<k;f++)r.P[f]=l[f];else r.P=l.slice(0);
this.Vc.push(r);this.te=!0;d&&(d.Lg(r,!0),1!==d.Hc||1!==d.Ic)&&(v.ri=!0);this.Gj++;if(v.cc){if(r.cc=!0,r.Kc?W(r.siblings):r.siblings=[],!b&&!e){f=0;for(k=v.Yb.length;f<k;f++)if(v.Yb[f]!==v){if(!v.Yb[f].Ac)return null;r.siblings.push(this.oe(v.Yb[f].Ac,x,!1,u?r.x:h,u?r.y:c,!0))}f=0;for(k=r.siblings.length;f<k;f++)for(r.siblings[f].siblings.push(r),n=0;n<k;n++)f!==n&&r.siblings[f].siblings.push(r.siblings[n])}}else r.cc=!1,r.siblings=null;r.ya();f=0;for(k=r.H.length;f<k;f++)r.H[f].Vu&&r.H[f].Vu();return r};
g.prototype.dj=function(a){var d,b;d=0;for(b=this.la.J.length;d<b;d++){var h=this.la.J[d];if(mb(h.name,a))return h}return null};g.prototype.Qf=function(a){a=M(a);0>a&&(a=0);a>=this.la.J.length&&(a=this.la.J.length-1);return this.la.J[a]};g.prototype.hl=function(a){return ha(a)?this.Qf(a):this.dj(a.toString())};g.prototype.Ik=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].V().fa=!0};g.prototype.Nh=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].Nh()};g.prototype.Oh=function(a){var d,b;d=0;
for(b=a.length;d<b;d++)a[d].Oh()};g.prototype.Fe=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].Fe()};g.prototype.nq=function(a){if(a.qi){var d,b,h=a.d;d=0;for(b=h.length;d<b;++d)h[d].qq();h=this.Vc;d=0;for(b=h.length;d<b;++d)h[d].type===a&&h[d].qq();a.qi=!1}};g.prototype.Kn=function(a,d,b,h){var c,e,f=a?1!==a.Hc||1!==a.Ic:!1;if(d.L)for(a=0,c=d.jg.length;a<c;++a)e=d.jg[a],f||e.ri?Ba(h,e.d):(this.nq(e),e.Ci.Pj(b,h));else f||d.ri?Ba(h,d.d):(this.nq(d),d.Ci.Pj(b,h))};g.prototype.Mt=function(a,d,
b,h){var c,e;c=0;for(e=d.length;c<e;++c)this.Kn(a,d[c],b,h)};g.prototype.Lt=function(a,d,b){var h=this.Rp;h&&this.Mt(a,h.Ul,d,b)};g.prototype.Jv=function(a,d,b){var h=a.V(),c,e,f,k,n=this.bb().ab.Fc,g,r,v;if(h.fa)for(h.fa=!1,W(h.d),c=0,k=a.d.length;c<k;c++)f=a.d[c],f.ta(),g=f.i.Bb(d,b,!0),r=f.i.Bb(d,b,!1),f.Cb(g,r)?h.d.push(f):n&&h.N.push(f);else{e=0;v=n?h.N:h.d;c=0;for(k=v.length;c<k;c++)f=v[c],f.ta(),g=f.i.Bb(d,b,!0),r=f.i.Bb(d,b,!1),f.Cb(g,r)&&(n?h.d.push(f):(h.d[e]=h.d[c],e++));v.length=e}a.Sc();
return h.ol()};g.prototype.wf=function(a,d){if(!(a&&d&&a!==d&&a.Gd&&d.Gd))return!1;a.ta();d.ta();var b=a.i,h=d.i,c,e,f,k,n,g,r,v;if(b===h||b.Hc===h.Hc&&h.Ic===h.Ic&&b.scale===h.scale&&b.k===h.k&&b.jd===h.jd){if(!a.Ba.iu(d.Ba)||!a.Kb.Yn(d.Kb)||a.ai&&d.ai)return!1;if(a.ai)return this.Vp(a,d);if(d.ai)return this.Vp(d,a);r=a.ca&&!a.ca.Vf();c=d.ca&&!d.ca.Vf();if(!r&&!c)return!0;r?(a.ca.Gf(a.width,a.height,a.k),r=a.ca):(this.dd.wg(a.Kb,a.x,a.y,a.width,a.height),r=this.dd);c?(d.ca.Gf(d.width,d.height,d.k),
v=d.ca):(this.dd.wg(d.Kb,d.x,d.y,d.width,d.height),v=this.dd);return r.fh(v,d.x-a.x,d.y-a.y)}r=a.ca&&!a.ca.Vf();c=d.ca&&!d.ca.Vf();r?(a.ca.Gf(a.width,a.height,a.k),this.dd.Jp(a.ca)):this.dd.wg(a.Kb,a.x,a.y,a.width,a.height);r=this.dd;c?(d.ca.Gf(d.width,d.height,d.k),this.Dm.Jp(d.ca)):this.Dm.wg(d.Kb,d.x,d.y,d.width,d.height);v=this.Dm;c=0;for(e=r.bd;c<e;c++)f=2*c,k=f+1,n=r.Za[f],g=r.Za[k],r.Za[f]=b.pa(n+a.x,g+a.y,!0),r.Za[k]=b.pa(n+a.x,g+a.y,!1);r.ta();c=0;for(e=v.bd;c<e;c++)f=2*c,k=f+1,n=v.Za[f],
g=v.Za[k],v.Za[f]=h.pa(n+d.x,g+d.y,!0),v.Za[k]=h.pa(n+d.x,g+d.y,!1);v.ta();return r.fh(v,0,0)};var z=new va;new ua(0,0,0,0);var V=[];g.prototype.Vp=function(a,d){var b,h,c,e,f=d.Ba,k=a.x,n=a.y;a.gx(f,V);var g=d.ca&&!d.ca.Vf();b=0;for(h=V.length;b<h;++b)if(c=V[b],e=c.ox,f.ju(e,k,n)&&(z.Uh(e),z.offset(k,n),z.Yn(d.Kb)))if(g)if(d.ca.Gf(d.width,d.height,d.k),c.hm){if(c.hm.fh(d.ca,d.x-(k+e.left),d.y-(n+e.top)))return W(V),!0}else{if(this.dd.wg(z,0,0,e.right-e.left,e.bottom-e.top),this.dd.fh(d.ca,d.x,d.y))return W(V),
!0}else if(c.hm){if(this.dd.wg(d.Kb,0,0,d.width,d.height),c.hm.fh(this.dd,-(k+e.left),-(n+e.top)))return W(V),!0}else return W(V),!0;W(V);return!1};g.prototype.iq=function(a,d){if(!d)return!1;var b,h,c,e,f;b=0;for(h=a.Ca.length;b<h;b++)if(a.Ca[b].behavior instanceof d)return!0;if(!a.L)for(b=0,h=a.Aa.length;b<h;b++)for(f=a.Aa[b],c=0,e=f.Ca.length;c<e;c++)if(f.Ca[c].behavior instanceof d)return!0;return!1};g.prototype.Im=function(a){return this.iq(a,fc.zw)};g.prototype.Jm=function(a){return this.iq(a,
fc.Aw)};var O=[];g.prototype.xf=function(a){var d,b,h;a.ta();this.Lt(a.i,a.Ba,O);d=0;for(b=O.length;d<b;++d)if(h=O[d],h.F.solidEnabled&&this.wf(a,h))return W(O),h;W(O);return null};g.prototype.gv=function(a,d,b,h){h=h||50;var c=a.x,e=a.y,f,k=null,n=null;for(f=0;f<h;f++)if(a.x=c+d*f,a.y=e+b*f,a.Y(),!this.wf(a,k)&&((k=this.xf(a))&&(n=k),!k&&!k))return n&&this.bv(a,d,b,n),!0;a.x=c;a.y=e;a.Y();return!1};g.prototype.bv=function(a,d,b,h){var c=2,e,f=!1;e=!1;for(var k=a.x,n=a.y;16>=c;)e=1/c,c*=2,a.x+=d*
e*(f?1:-1),a.y+=b*e*(f?1:-1),a.Y(),this.wf(a,h)?e=f=!0:(e=f=!1,k=a.x,n=a.y);e&&(a.x=k,a.y=n,a.Y())};g.prototype.hv=function(a){var d=0,b=a.x,h=a.y,c=0,e=0,f=0,k=this.xf(a);if(k){for(;100>=d;){switch(c){case 0:e=0;f=-1;d++;break;case 1:e=1;f=-1;break;case 2:e=1;f=0;break;case 3:f=e=1;break;case 4:e=0;f=1;break;case 5:e=-1;f=1;break;case 6:e=-1;f=0;break;case 7:f=e=-1}c=(c+1)%8;a.x=M(b+e*d);a.y=M(h+f*d);a.Y();if(!this.wf(a,k)&&(k=this.xf(a),!k))return}a.x=b;a.y=h;a.Y()}};g.prototype.jv=function(a,d){a.Gd&&
d.Gd&&this.Qh.push([a,d])};g.prototype.Yr=function(a,d){var b,h,c;b=0;for(h=this.Qh.length;b<h;b++)if(c=this.Qh[b],c[0]==a&&c[1]==d||c[0]==d&&c[1]==a)return!0;return!1};g.prototype.Ur=function(a,d,b){var h=a.x,c=a.y,e=ma(10,Wa(d,b,h,c)),f=Ma(d,b,h,c),k=this.xf(a);if(!k)return Ja(f+pa);var n=k,g,r,v,u,x=Y(5);for(g=1;36>g;g++)if(r=f-g*x,a.x=d+Math.cos(r)*e,a.y=b+Math.sin(r)*e,a.Y(),!this.wf(a,n)&&(n=this.xf(a),!n)){v=r;break}36===g&&(v=Ja(f+pa));n=k;for(g=1;36>g;g++)if(r=f+g*x,a.x=d+Math.cos(r)*e,a.y=
b+Math.sin(r)*e,a.Y(),!this.wf(a,n)&&(n=this.xf(a),!n)){u=r;break}36===g&&(u=Ja(f+pa));a.x=h;a.y=c;a.Y();if(u===v)return u;a=Na(u,v)/2;a=Ua(u,v)?Ja(v+a+pa):Ja(u+a);v=Math.cos(f);f=Math.sin(f);u=Math.cos(a);a=Math.sin(a);d=v*u+f*a;return Ma(0,0,v-2*d*u,f-2*d*a)};var N=-1;g.prototype.trigger=function(a,d,b){if(!this.la)return!1;var h=this.la.$e;if(!h)return!1;var c=!1,e,f,k;N++;var n=h.Qk;f=0;for(k=n.length;f<k;++f)e=this.fq(a,d,n[f],b),c=c||e;e=this.fq(a,d,h,b);N--;return c||e};g.prototype.fq=function(a,
d,b,h){var c=!1,e,f,k,n;if(d)for(k=this.Gm(a,d,d.type.name,b,h),c=c||k,n=d.type.Aa,e=0,f=n.length;e<f;++e)k=this.Gm(a,d,n[e].name,b,h),c=c||k;else k=this.Gm(a,d,"system",b,h),c=c||k;return c};g.prototype.Gm=function(a,d,b,h,c){var e,f=!1,k=!1,k="undefined"!==typeof c,n=(k?h.An:h.gq)[b];if(!n)return f;var g=null;h=0;for(e=n.length;h<e;++h)if(n[h].method==a){g=n[h].Vg;break}if(!g)return f;var r;k?r=g[c]:r=g;if(!r)return null;h=0;for(e=r.length;h<e;h++)a=r[h][0],c=r[h][1],k=this.ot(d,b,a,c),f=f||k;return f};
g.prototype.ot=function(a,d,b,h){var c,e,f=!1;this.Hm++;var k=this.bb().ab;k&&this.Nh(k.Ie);var n=1<this.Hm;this.Nh(b.Ie);n&&this.cv();var g=this.Oj(b);g.ab=b;a&&(c=this.types[d].V(),c.fa=!1,W(c.d),c.d[0]=a,this.types[d].Sc());a=!0;if(b.parent){d=g.Up;for(c=b.parent;c;)d.push(c),c=c.parent;d.reverse();c=0;for(e=d.length;c<e;c++)if(!d[c].sv()){a=!1;break}}a&&(this.Wg++,b.Fc?b.rv(h):b.Oa(),f=f||g.mf);this.Kj();n&&this.Tu();this.Fe(b.Ie);k&&this.Fe(k.Ie);this.te&&0===this.Zc&&0===N&&!this.Dl&&this.ub();
this.Hm--;return f};g.prototype.cj=function(){var a=this.bb();return a.ab.Ra[a.Qa]};g.prototype.cv=function(){this.Aj++;this.Aj>=this.Ol.length&&this.Ol.push([])};g.prototype.Tu=function(){this.Aj--};g.prototype.Ln=function(){return this.Ol[this.Aj]};g.prototype.Oj=function(a){this.Oi++;this.Oi>=this.Uk.length&&this.Uk.push(new Rb);var d=this.bb();d.reset(a);return d};g.prototype.Kj=function(){this.Oi--};g.prototype.bb=function(){return this.Uk[this.Oi]};g.prototype.dv=function(){this.Cj++;this.Cj>=
this.Ql.length&&this.Ql.push(aa({name:void 0,index:0,ib:!1}));var a=this.At();a.name=void 0;a.index=0;a.ib=!1;return a};g.prototype.Uu=function(){this.Cj--};g.prototype.At=function(){return this.Ql[this.Cj]};g.prototype.Nn=function(a,d){for(var b,h,c,e,f,k;d;){b=0;for(h=d.Nc.length;b<h;b++)if(k=d.Nc[b],k instanceof Sb&&mb(a,k.name))return k;d=d.parent}b=0;for(h=this.Jd.length;b<h;b++)for(f=this.Jd[b],c=0,e=f.re.length;c<e;c++)if(k=f.re[c],k instanceof Sb&&mb(a,k.name))return k;return null};g.prototype.On=
function(a){var d,b;d=0;for(b=this.fc.length;d<b;d++)if(this.fc[d].S===a)return this.fc[d];return null};g.prototype.gj=function(a){var d,b;d=0;for(b=this.p.length;d<b;d++)if(this.p[d].S===a)return this.p[d];return null};g.prototype.Ct=function(a){var d,b;d=0;for(b=this.Ef.length;d<b;d++)if(this.Ef[d].S===a)return this.Ef[d];return null};g.prototype.hs=function(a,d){this.Xh=[a,d];this.ka=!0};g.prototype.au=function(){var a=this,d=this.vm,b=this.Pd,h=this.vj,c=!1;this.Op&&(c=!0,d="__c2_continuouspreview",
this.Op=!1);if(d.length){this.ub();b=this.wv();if(m()&&!this.Xc)t(d,b,function(){ea("Saved state to IndexedDB storage ("+b.length+" bytes)");a.Pd=b;a.trigger(Z.prototype.n.sk,null);a.Pd="";c&&f()},function(h){try{localStorage.setItem("__c2save_"+d,b),ea("Saved state to WebStorage ("+b.length+" bytes)"),a.Pd=b,a.trigger(Z.prototype.n.sk,null),a.Pd="",c&&f()}catch(e){ea("Failed to save game state: "+h+"; "+e),a.trigger(Z.prototype.n.Xm,null)}});else try{localStorage.setItem("__c2save_"+d,b),ea("Saved state to WebStorage ("+
b.length+" bytes)"),a.Pd=b,this.trigger(Z.prototype.n.sk,null),a.Pd="",c&&f()}catch(e){ea("Error saving to WebStorage: "+e),a.trigger(Z.prototype.n.Xm,null)}this.zb=this.vj=this.vm=""}if(h.length){if(m()&&!this.Xc)q(h,function(d){d?(a.zb=d,ea("Loaded state from IndexedDB storage ("+a.zb.length+" bytes)")):(a.zb=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+a.zb.length+" bytes)"));a.Yh=!1;a.zb.length||a.trigger(Z.prototype.n.qk,null)},function(){a.zb=localStorage.getItem("__c2save_"+
h)||"";ea("Loaded state from WebStorage ("+a.zb.length+" bytes)");a.Yh=!1;a.zb.length||a.trigger(Z.prototype.n.qk,null)});else{try{this.zb=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+this.zb.length+" bytes)")}catch(k){this.zb=""}this.Yh=!1;a.zb.length||a.trigger(Z.prototype.n.qk,null)}this.vm=this.vj=""}this.zb.length&&(this.ub(),this.vu(this.zb),this.Pd=this.zb,this.trigger(Z.prototype.n.hr,null),this.zb=this.Pd="")};g.prototype.wv=function(){var d,b,h,c,e,f,k,n={c2save:!0,
version:1,rt:{time:this.eb.T,walltime:this.ae.T,timescale:this.Ag,tickcount:this.ed,execcount:this.Wg,next_uid:this.Gh,running_layout:this.la.S,start_time_offset:Date.now()-this.$j},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(b=this.p.length;d<b;d++)if(e=this.p[d],!e.L&&!this.Im(e)){f={instances:[]};Ya(e.F)&&(f.ex=a(e.F));h=0;for(c=e.d.length;h<c;h++)f.instances.push(this.um(e.d[h]));n.types[e.S.toString()]=f}d=0;for(b=this.fc.length;d<b;d++)h=this.fc[d],n.layouts[h.S.toString()]=
h.Rb();c=n.events.groups;d=0;for(b=this.Ef.length;d<b;d++)h=this.Ef[d],c[h.S.toString()]=this.ah[h.$g].Rf;b=n.events.cnds;for(k in this.me)this.me.hasOwnProperty(k)&&(d=this.me[k],Ya(d.F)&&(b[k]={ex:a(d.F)}));b=n.events.acts;for(k in this.he)this.he.hasOwnProperty(k)&&(d=this.he[k],Ya(d.F)&&(b[k]={ex:a(d.F)}));b=n.events.vars;for(k in this.Dg)this.Dg.hasOwnProperty(k)&&(d=this.Dg[k],d.mj||d.parent&&!d.qh||(b[k]=d.data));n.system=this.Bd.Rb();return JSON.stringify(n)};g.prototype.vp=function(){var a,
d,b,h,c,e;this.Sd={};a=0;for(d=this.p.length;a<d;a++)if(b=this.p[a],!b.L)for(h=0,c=b.d.length;h<c;h++)e=b.d[h],this.Sd[e.uid.toString()]=e};g.prototype.vu=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.jh=!0;var d=a.rt;this.eb.reset();this.eb.T=d.time;this.ae.reset();this.ae.T=d.walltime||0;this.Ag=d.timescale;this.ed=d.tickcount;this.Wg=d.execcount;this.$j=Date.now()-d.start_time_offset;var b=d.running_layout;if(b!==this.la.S)if(b=this.On(b))this.wn(b);else return;var h,c,e,f,k,n,
g;n=a.types;for(c in n)if(n.hasOwnProperty(c)&&(f=this.gj(parseInt(c,10)))&&!f.L&&!this.Im(f)){n[c].ex?f.F=n[c].ex:Za(f.F);k=f.d;e=n[c].instances;b=0;for(h=na(k.length,e.length);b<h;b++)this.wj(k[b],e[b]);b=e.length;for(h=k.length;b<h;b++)this.Le(k[b]);b=k.length;for(h=e.length;b<h;b++){k=null;if(f.za.we&&(k=this.la.ej(e[b].w.l),!k))continue;k=this.oe(f.Ac,k,!1,0,0,!0);this.wj(k,e[b])}f.yg=!0}this.ub();this.vp();h=a.layouts;for(c in h)h.hasOwnProperty(c)&&(b=this.On(parseInt(c,10)))&&b.tc(h[c]);h=
a.events.groups;for(c in h)h.hasOwnProperty(c)&&(b=this.Ct(parseInt(c,10)))&&this.ah[b.$g]&&this.ah[b.$g].yv(h[c]);b=a.events.cnds;for(c in this.me)this.me.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.me[c].F=b[c].ex:this.me[c].F={});b=a.events.acts;for(c in this.he)this.he.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.he[c].F=b[c].ex:this.he[c].F={});b=a.events.vars;for(c in b)b.hasOwnProperty(c)&&this.Dg.hasOwnProperty(c)&&(this.Dg[c].data=b[c]);this.Gh=d.next_uid;this.jh=!1;b=0;for(h=this.Ui.length;b<
h;++b)k=this.Ui[b],this.trigger(Object.getPrototypeOf(k.type.za).n.gi,k);W(this.Ui);this.Bd.tc(a.system);b=0;for(h=this.p.length;b<h;b++)if(f=this.p[b],!f.L&&!this.Im(f))for(c=0,a=f.d.length;c<a;c++){k=f.d[c];if(f.cc)for(n=k.Zg(),W(k.siblings),d=0,e=f.Yb.length;d<e;d++)g=f.Yb[d],f!==g&&k.siblings.push(g.d[n]);k.ie&&k.ie();if(k.H)for(d=0,e=k.H.length;d<e;d++)n=k.H[d],n.ie&&n.ie()}this.ka=!0}};g.prototype.um=function(d,b){var h,c,e,f,k;f=d.type;e=f.za;var n={};b?n.c2=!0:n.uid=d.uid;Ya(d.F)&&(n.ex=a(d.F));
if(d.Va&&d.Va.length)for(n.ivs={},h=0,c=d.Va.length;h<c;h++)n.ivs[d.type.xl[h].toString()]=d.Va[h];if(e.we){e={x:d.x,y:d.y,w:d.width,h:d.height,l:d.i.S,zi:d.rd()};0!==d.k&&(e.a=d.k);1!==d.opacity&&(e.o=d.opacity);.5!==d.$b&&(e.hX=d.$b);.5!==d.ac&&(e.hY=d.ac);0!==d.wb&&(e.bm=d.wb);d.visible||(e.v=d.visible);d.Gd||(e.ce=d.Gd);-1!==d.Fh&&(e.mts=d.Fh);if(f.I.length)for(e.fx=[],h=0,c=f.I.length;h<c;h++)k=f.I[h],e.fx.push({name:k.name,active:d.ge[k.index],params:d.Ea[k.index]});n.w=e}if(d.H&&d.H.length)for(n.behs=
{},h=0,c=d.H.length;h<c;h++)f=d.H[h],f.Rb&&(n.behs[f.type.S.toString()]=f.Rb());d.Rb&&(n.data=d.Rb());return n};g.prototype.Et=function(a,d){var b,h;b=0;for(h=a.xl.length;b<h;b++)if(a.xl[b]===d)return b;return-1};g.prototype.zt=function(a,d){var b,h;b=0;for(h=a.H.length;b<h;b++)if(a.H[b].type.S===d)return b;return-1};g.prototype.wj=function(a,d,b){var h,c,e,f,k;k=a.type;f=k.za;if(b){if(!d.c2)return}else a.uid=d.uid;d.ex?a.F=d.ex:Za(a.F);if(c=d.ivs)for(h in c)c.hasOwnProperty(h)&&(e=this.Et(k,parseInt(h,
10)),0>e||e>=a.Va.length||(a.Va[e]=c[h]));if(f.we){e=d.w;a.i.S!==e.l&&(c=a.i,a.i=this.la.ej(e.l),a.i?(c.sg(a,!0),a.i.Lg(a,!0),a.Y(),a.i.Th(0)):(a.i=c,b||this.Le(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.hd=e.zi;a.k=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.$b=e.hasOwnProperty("hX")?e.hX:.5;a.ac=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.Gd=e.hasOwnProperty("ce")?e.ce:!0;a.Fh=e.hasOwnProperty("mts")?e.mts:-1;a.wb=e.hasOwnProperty("bm")?e.bm:
0;a.Pg=jb(a.wb);this.q&&kb(a,a.wb,this.q);a.Y();if(e.hasOwnProperty("fx"))for(b=0,c=e.fx.length;b<c;b++)f=k.el(e.fx[b].name),0>f||(a.ge[f]=e.fx[b].active,a.Ea[f]=e.fx[b].params);a.gd()}if(k=d.behs)for(h in k)k.hasOwnProperty(h)&&(b=this.zt(a,parseInt(h,10)),0>b||a.H[b].tc(k[h]));d.data&&a.tc(d.data)};g.prototype.Bn=function(a,d,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,b)},b)};g.prototype.Dn=function(a,d){this.Bn("data.js",function(b){var h=
new FileReader;h.onload=function(d){a(d.target.result)};h.onerror=d;h.readAsText(b)},d)};var I=[],w=0;g.prototype.Rl=function(){if(I.length&&!(8<=w)){w++;var a=I.shift();this.ms(a.filename,a.Iv,a.Ls)}};g.prototype.Cn=function(a,d,b){var h=this;I.push({filename:a,Iv:function(a){w--;h.Rl();d(a)},Ls:function(a){w--;h.Rl();b(a)}});this.Rl()};g.prototype.ms=function(a,d,b){this.Bn(a,function(a){var b=new FileReader;b.onload=function(a){d(a.target.result)};b.readAsArrayBuffer(a)},b)};g.prototype.pt=function(a,
d,b){this.Cn(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},b)};g.prototype.ku=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};g.prototype.Fp=function(a,d){this.oh&&!this.ku(d)?this.pt(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};g.prototype.Wj=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=
d)};Tb=function(a){return new g(document.getElementById(a))};Ub=function(a,d){return new g({dc:!0,width:a,height:d})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ng=!0;document.body.appendChild(a);a=new g(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});
window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new g(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,l){var m=window.cr_getC2Runtime();m&&m.hs(g,l)};
window.cr_sizeCanvas=function(g,l){if(0!==g&&0!==l){var m=window.cr_getC2Runtime();m&&m.setSize(g,l)}};window.cr_setSuspended=function(g){var l=window.cr_getC2Runtime();l&&l.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.$e=null;this.scrollX=this.b.Ya/2;this.scrollY=this.b.Xa/2;this.scale=1;this.k=0;this.Pf=!0;this.name=b[0];this.Ou=b[1];this.Nu=b[2];this.width=b[1];this.height=b[2];this.jq=b[3];this.Mp=b[4];this.S=b[5];var c=b[6],e,f;this.J=[];this.eh=[];e=0;for(f=c.length;e<f;e++){var g=new Vb(this,c[e]);g.Xo=e;this.J.push(g)}c=b[7];this.jf=[];e=0;for(f=c.length;e<f;e++){var g=c[e],l=this.b.p[g[1]];l.Ac||(l.Ac=g);this.jf.push(g);-1===this.eh.indexOf(l)&&this.eh.push(l)}this.I=
[];this.Z=[];this.Wd=!0;this.Ea=[];e=0;for(f=b[8].length;e<f;e++)this.I.push({id:b[8][e][0],name:b[8][e][1],Pa:-1,Jc:!1,lc:!0,index:e}),this.Ea.push(b[8][e][2].slice(0));this.gd();this.rg=new ua(0,0,1,1);this.mm=new ua(0,0,1,1);this.Ee={}}function l(a,b){return a.hd-b.hd}function m(a,b){this.fb=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.Id=!1;this.Zd=new ua(0,0,0,0);this.cq=new va;this.qa=this.ja=this.ra=this.ma=0;this.Af=!1;this.de=-1;this.Jk=0;this.name=b[0];this.index=b[1];this.S=b[2];this.visible=
b[3];this.Tc=b[4];this.fd=b[5];this.Hc=b[6];this.Ic=b[7];this.opacity=b[8];this.Yi=b[9];this.yc=b[10];this.jd=b[11];this.wb=b[12];this.Hs=b[13];this.Pg="source-over";this.xb=this.Ab=0;this.qb=null;this.Qd=p();this.cd=!0;this.eg=new ua(0,0,-1,-1);this.lb=new ua(0,0,-1,-1);this.yc&&(this.qb=new ib(this.b.Ya,this.b.Xa));this.zd=!1;var c=b[14],e,f;this.Sp=[];this.sc=[];this.Sg=[];e=0;for(f=c.length;e<f;e++){var g=c[e],l=this.b.p[g[1]];l.Ac||(l.Ac=g,l.es=this.index);this.sc.push(g);-1===this.fb.eh.indexOf(l)&&
this.fb.eh.push(l)}Aa(this.Sp,this.sc);this.I=[];this.Z=[];this.Wd=!0;this.Ea=[];e=0;for(f=b[15].length;e<f;e++)this.I.push({id:b[15][e][0],name:b[15][e][1],Pa:-1,Jc:!1,lc:!0,index:e}),this.Ea.push(b[15][e][2].slice(0));this.gd();this.rg=new ua(0,0,1,1);this.mm=new ua(0,0,1,1)}function p(){return a.length?a.pop():[]}function t(d){W(d);a.push(d)}g.prototype.vv=function(a){var b=a.type.S.toString();this.Ee.hasOwnProperty(b)||(this.Ee[b]=[]);this.Ee[b].push(this.b.um(a))};g.prototype.Rn=function(){var a=
this.J[0];return!a.fd&&1===a.opacity&&!a.Yi&&a.visible};g.prototype.gd=function(){W(this.Z);this.Wd=!0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.lc&&(this.Z.push(c),c.Jc||(this.Wd=!1))};g.prototype.dl=function(a){var b,c,e;b=0;for(c=this.I.length;b<c;b++)if(e=this.I[b],e.name===a)return e;return null};var q=[],f=!0;g.prototype.Cm=function(){this.Mp&&(this.$e=this.b.Vk[this.Mp],this.$e.Km());this.b.la=this;this.width=this.Ou;this.height=this.Nu;this.scrollX=this.b.Ya/2;this.scrollY=this.b.Xa/
2;var a,b,c,e,g,u,m;a=0;for(c=this.b.p.length;a<c;a++)if(b=this.b.p[a],!b.L)for(g=b.d,b=0,e=g.length;b<e;b++)if(u=g[b],u.i){var h=u.i.Xo;h>=this.J.length&&(h=this.J.length-1);u.i=this.J[h];-1===u.i.d.indexOf(u)&&u.i.d.push(u);u.i.Af=!0}if(!f)for(a=0,c=this.J.length;a<c;++a)this.J[a].d.sort(l);W(q);this.Sr();a=0;for(c=this.J.length;a<c;a++)u=this.J[a],u.ds(),u.kk();g=!1;if(!this.Pf){for(m in this.Ee)if(this.Ee.hasOwnProperty(m)&&(b=this.b.gj(parseInt(m,10)))&&!b.L&&this.b.Jm(b)){e=this.Ee[m];a=0;for(c=
e.length;a<c;a++){u=null;if(b.za.we&&(u=this.ej(e[a].w.l),!u))continue;u=this.b.oe(b.Ac,u,!1,0,0,!0);this.b.wj(u,e[a]);g=!0;q.push(u)}W(e)}a=0;for(c=this.J.length;a<c;a++)this.J[a].d.sort(l),this.J[a].Af=!0}g&&(this.b.ub(),this.b.vp());for(a=0;a<q.length;a++)if(u=q[a],u.type.cc)for(c=u.Zg(),b=0,e=u.type.Yb.length;b<e;b++)m=u.type.Yb[b],u.type!==m&&(m.d.length>c?u.siblings.push(m.d[c]):m.Ac&&(g=this.b.oe(m.Ac,u.i,!0,u.x,u.y,!0),this.b.ub(),m.ik(),u.siblings.push(g),q.push(g)));a=0;for(c=this.jf.length;a<
c;a++)this.b.oe(this.jf[a],null,!0);this.b.Te=null;this.b.ub();if(this.b.Da&&!this.b.Fa)for(a=0,c=this.b.p.length;a<c;a++)m=this.b.p[a],!m.L&&m.d.length&&m.rp&&m.rp(this.b.Da);if(this.b.jh)Aa(this.b.Ui,q);else for(a=0,c=q.length;a<c;a++)u=q[a],this.b.trigger(Object.getPrototypeOf(u.type.za).n.gi,u);W(q);this.b.jh||this.b.trigger(Z.prototype.n.Um,null);this.Pf=!1};g.prototype.cs=function(){var a,b,c,e,f;b=a=0;for(c=this.jf.length;a<c;a++)e=this.jf[a],f=this.b.p[e[1]],f.global?f.cc||this.b.oe(e,null,
!0):(this.jf[b]=e,b++);ya(this.jf,b)};g.prototype.Hv=function(){this.b.jh||this.b.trigger(Z.prototype.n.gr,null);this.b.Al=!0;W(this.b.Bd.Vb);var a,b,c,e,g,u;if(!this.Pf)for(a=0,b=this.J.length;a<b;a++)for(this.J[a].Mm(),g=this.J[a].d,c=0,e=g.length;c<e;c++)u=g[c],u.type.global||this.b.Jm(u.type)&&this.vv(u);a=0;for(b=this.J.length;a<b;a++){g=this.J[a].d;c=0;for(e=g.length;c<e;c++)u=g[c],u.type.global||this.b.Le(u);this.b.ub();W(g);this.J[a].Af=!0}a=0;for(b=this.b.p.length;a<b;a++)if(g=this.b.p[a],
!(g.global||g.za.we||g.za.Zj||g.L)){c=0;for(e=g.d.length;c<e;c++)this.b.Le(g.d[c]);this.b.ub()}f=!1;this.b.Al=!1};new ua(0,0,0,0);g.prototype.nd=function(a){var b,c=a,e=!1,f=!this.b.pc;f&&(this.b.uj||(this.b.uj=document.createElement("canvas"),b=this.b.uj,b.width=this.b.C,b.height=this.b.B,this.b.uo=b.getContext("2d"),e=!0),b=this.b.uj,c=this.b.uo,b.width!==this.b.C&&(b.width=this.b.C,e=!0),b.height!==this.b.B&&(b.height=this.b.B,e=!0),e&&this.b.Wj(c,this.b.Ja));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.b.wk&&!this.Rn()&&c.clearRect(0,0,this.b.C,this.b.B);var g,l,e=0;for(g=this.J.length;e<g;e++)l=this.J[e],l.visible&&0<l.opacity&&11!==l.wb&&(l.d.length||!l.fd)?l.nd(c):l.kk();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Kf=function(a){a.Ep(!0);this.b.Ma||(this.b.Ma=a.nc(this.b.C,this.b.B,this.b.Ja));if(this.b.Ma.Se!==this.b.C||this.b.Ma.Re!==this.b.B)a.deleteTexture(this.b.Ma),this.b.Ma=a.nc(this.b.C,this.b.B,this.b.Ja);a.Mc(this.b.Ma);this.b.pc||a.uf(this.b.C,
this.b.B);var b,c;for(b=this.J.length-1;0<=b;--b)c=this.J[b],c.visible&&1===c.opacity&&c.Wd&&0===c.wb&&(c.d.length||!c.fd)?c.Kf(a):c.kk();a.Ep(!1)};g.prototype.oc=function(a){var b=0<this.Z.length||this.b.Bg||!this.b.pc||this.b.ua;if(b){this.b.Ma||(this.b.Ma=a.nc(this.b.C,this.b.B,this.b.Ja));if(this.b.Ma.Se!==this.b.C||this.b.Ma.Re!==this.b.B)a.deleteTexture(this.b.Ma),this.b.Ma=a.nc(this.b.C,this.b.B,this.b.Ja);a.Mc(this.b.Ma);this.b.pc||a.uf(this.b.C,this.b.B)}else this.b.Ma&&(a.Mc(null),a.deleteTexture(this.b.Ma),
this.b.Ma=null);this.b.wk&&!this.Rn()&&a.clear(0,0,0,0);var c,e,f;c=0;for(e=this.J.length;c<e;c++)f=this.J[c],f.visible&&0<f.opacity&&(f.d.length||!f.fd)?f.oc(a):f.kk();b&&(0===this.Z.length||1===this.Z.length&&this.b.pc?(1===this.Z.length?(b=this.Z[0].index,a.Sb(this.Z[0].Pa),a.vg(null,1/this.b.C,1/this.b.B,0,0,1,1,this.scale,this.k,0,0,this.b.C/2,this.b.B/2,this.b.eb.T,this.Ea[b]),a.Nj(this.Z[0].Pa)&&(this.b.ka=!0)):a.Sb(0),this.b.pc||a.uf(this.b.width,this.b.height),a.Mc(null),a.Cp(!1),a.ug(1),
a.wc(this.b.Ma),a.Ap(),a.Lc(),a.xc(),b=this.b.width/2,c=this.b.height/2,a.Ph(-b,c,b,c,b,-c,-b,-c),a.wc(null),a.Cp(!0)):this.nm(a,null,null,null))};g.prototype.Yg=function(){return 0<this.Z.length||this.b.Bg||!this.b.pc||this.b.ua?this.b.Ma:null};g.prototype.Pn=function(){var a=this.J[0].Zb(),b,c,e;b=1;for(c=this.J.length;b<c;b++)e=this.J[b],(0!==e.Hc||0!==e.Ic)&&e.Zb()<a&&(a=e.Zb());return a};g.prototype.yp=function(a){if(!this.jq){var b=1/this.Pn()*this.b.C/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ka=!0)};g.prototype.zp=function(a){if(!this.jq){var b=1/this.Pn()*this.b.B/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ka=!0)};g.prototype.Sr=function(){this.yp(this.scrollX);this.zp(this.scrollY)};g.prototype.nm=function(a,b,c,e){var f=c?c.Z:b?b.Z:this.Z,g=1,l=0,h=0,n=0,x=this.b.C,m=this.b.B;c?(g=c.i.Zb(),l=c.i.Ua(),h=c.i.ma,n=c.i.ja,x=c.i.ra,m=c.i.qa):b&&(g=b.Zb(),l=b.Ua(),h=b.ma,n=b.ja,x=b.ra,m=b.qa);var B=
this.b.al,p,q,t,E,z=0,V=1,O,N,I=this.b.C,w=this.b.B,C=I/2,A=w/2,F=b?b.rg:this.rg,L=b?b.mm:this.mm,Q=0,R=0,G=0,J=0,S=I,ra=I,T=w,sa=w,la=t=0;E=c?c.i.Ua():0;if(c){p=0;for(q=f.length;p<q;p++)t+=a.It(f[p].Pa),la+=a.Jt(f[p].Pa);J=c.Ba;Q=b.pa(J.left,J.top,!0,!0);G=b.pa(J.left,J.top,!1,!0);S=b.pa(J.right,J.bottom,!0,!0);T=b.pa(J.right,J.bottom,!1,!0);0!==E&&(p=b.pa(J.right,J.top,!0,!0),q=b.pa(J.right,J.top,!1,!0),R=b.pa(J.left,J.bottom,!0,!0),J=b.pa(J.left,J.bottom,!1,!0),E=Math.min(Q,S,p,R),S=Math.max(Q,
S,p,R),Q=E,E=Math.min(G,T,q,J),T=Math.max(G,T,q,J),G=E);Q-=t;G-=la;S+=t;T+=la;L.left=Q/I;L.top=1-G/w;L.right=S/I;L.bottom=1-T/w;R=Q=M(Q);J=G=M(G);ra=S=qa(S);sa=T=qa(T);R-=t;J-=la;ra+=t;sa+=la;0>Q&&(Q=0);0>G&&(G=0);S>I&&(S=I);T>w&&(T=w);0>R&&(R=0);0>J&&(J=0);ra>I&&(ra=I);sa>w&&(sa=w);F.left=Q/I;F.top=1-G/w;F.right=S/I;F.bottom=1-T/w}else F.left=L.left=0,F.top=L.top=0,F.right=L.right=1,F.bottom=L.bottom=1;la=c&&(a.Lh(f[0].Pa)||0!==t||0!==la||1!==c.opacity||c.type.za.So)||b&&!c&&1!==b.opacity;a.Ap();
if(la){B[z]||(B[z]=a.nc(I,w,this.b.Ja));if(B[z].Se!==I||B[z].Re!==w)a.deleteTexture(B[z]),B[z]=a.nc(I,w,this.b.Ja);a.Sb(0);a.Mc(B[z]);N=sa-J;a.clearRect(R,w-J-N,ra-R,N);c?c.oc(a):(a.wc(this.b.Wa),a.ug(b.opacity),a.Lc(),a.translate(-C,-A),a.xc(),a.Ge(Q,T,S,T,S,G,Q,G,F));L.left=L.top=0;L.right=L.bottom=1;c&&(E=F.top,F.top=F.bottom,F.bottom=E);z=1;V=0}a.ug(1);t=f.length-1;var Ga=a.jm(f[t].Pa)||!b&&!c&&!this.b.pc;p=E=0;for(q=f.length;p<q;p++){B[z]||(B[z]=a.nc(I,w,this.b.Ja));if(B[z].Se!==I||B[z].Re!==
w)a.deleteTexture(B[z]),B[z]=a.nc(I,w,this.b.Ja);a.Sb(f[p].Pa);E=f[p].index;a.Nj(f[p].Pa)&&(this.b.ka=!0);0!=p||la?(a.vg(e,1/I,1/w,L.left,L.top,L.right,L.bottom,g,l,h,n,(h+x)/2,(n+m)/2,this.b.eb.T,c?c.Ea[E]:b?b.Ea[E]:this.Ea[E]),a.wc(null),p!==t||Ga?(a.Mc(B[z]),N=sa-J,O=w-J-N,a.clearRect(R,O,ra-R,N)):(c?a.He(c.Ab,c.xb):b&&a.He(b.Ab,b.xb),a.Mc(e)),a.wc(B[V]),a.Lc(),a.translate(-C,-A),a.xc(),a.Ge(Q,T,S,T,S,G,Q,G,F),p!==t||Ga||a.wc(null)):(a.Mc(B[z]),N=sa-J,O=w-J-N,a.clearRect(R,O,ra-R,N),c?(c.$a&&c.$a.jb?
(O=c.$a.jb,V=1/O.width,O=1/O.height):(V=1/c.width,O=1/c.height),a.vg(e,V,O,L.left,L.top,L.right,L.bottom,g,l,h,n,(h+x)/2,(n+m)/2,this.b.eb.T,c.Ea[E]),c.oc(a)):(a.vg(e,1/I,1/w,0,0,1,1,g,l,h,n,(h+x)/2,(n+m)/2,this.b.eb.T,b?b.Ea[E]:this.Ea[E]),a.wc(b?this.b.Wa:this.b.Ma),a.Lc(),a.translate(-C,-A),a.xc(),a.Ge(Q,T,S,T,S,G,Q,G,F)),L.left=L.top=0,L.right=L.bottom=1,c&&!Ga&&(E=T,T=G,G=E));z=0===z?1:0;V=0===z?1:0}Ga&&(a.Sb(0),c?a.He(c.Ab,c.xb):b?a.He(b.Ab,b.xb):this.b.pc||(a.uf(this.b.width,this.b.height),
C=this.b.width/2,A=this.b.height/2,G=Q=0,S=this.b.width,T=this.b.height),a.Mc(e),a.wc(B[V]),a.Lc(),a.translate(-C,-A),a.xc(),c&&1===f.length&&!la?a.Ge(Q,G,S,G,S,T,Q,T,F):a.Ge(Q,T,S,T,S,G,Q,G,F),a.wc(null))};g.prototype.ej=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].S===a)return this.J[b];return null};g.prototype.Rb=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Pf,persist:this.Ee,fx:[],layers:{}};a=0;for(b=this.I.length;a<
b;a++)c=this.I[a],e.fx.push({name:c.name,active:c.lc,params:this.Ea[c.index]});a=0;for(b=this.J.length;a<b;a++)c=this.J[a],e.layers[c.S.toString()]=c.Rb();return e};g.prototype.tc=function(a){var b,c,e,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.Ee=a.persist;"undefined"!==typeof a.fv&&(this.Pf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(e=this.dl(g[b].name))e.lc=g[b].active,this.Ea[e.index]=g[b].params;this.gd();b=a.layers;for(f in b)b.hasOwnProperty(f)&&
(a=this.ej(parseInt(f,10)))&&a.tc(b[f])};Hb=g;m.prototype.gd=function(){W(this.Z);this.Wd=!0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.lc&&(this.Z.push(c),c.Jc||(this.Wd=!1))};m.prototype.dl=function(a){var b,c,e;b=0;for(c=this.I.length;b<c;b++)if(e=this.I[b],e.name===a)return e;return null};m.prototype.ds=function(){var a,b,c,e,f,g;b=a=0;for(c=this.sc.length;a<c;a++){e=this.sc[a];f=this.b.p[e[1]];g=this.b.Jm(f);f=!0;if(!g||this.fb.Pf){e=this.b.oe(e,this,!0);if(!e)continue;q.push(e);
e.type.global&&(f=!1,this.Sg.push(e.uid))}f&&(this.sc[b]=this.sc[a],b++)}this.sc.length=b;this.b.ub();!this.b.r&&this.I.length&&(this.wb=this.Hs);this.Pg=jb(this.wb);this.b.q&&kb(this,this.wb,this.b.q);this.cd=!0};m.prototype.sg=function(a,b){var c=Ca(this.d,a);0>c||(b&&this.yc&&a.Pb&&a.Pb.right>=a.Pb.left&&(a.ta(),this.qb.update(a,a.Pb,null),a.Pb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(xa(this.d,c),this.Th(c)),this.cd=!0)};m.prototype.Lg=function(a,b){a.hd=this.d.length;this.d.push(a);
b&&this.yc&&a.Pb&&a.Y();this.cd=!0};m.prototype.Zu=function(a){this.d.unshift(a);this.Th(0)};m.prototype.Au=function(a,b,c){var e=a.rd();b=b.rd();xa(this.d,e);e<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Th(e<b?e:b)};m.prototype.Th=function(a){-1===this.de?this.de=a:a<this.de&&(this.de=a);this.cd=this.Af=!0};m.prototype.Mm=function(){if(this.Af){-1===this.de&&(this.de=0);var a,b,c;if(this.yc)for(a=this.de,b=this.d.length;a<b;++a)c=this.d[a],c.hd=a,this.qb.yu(c.Pb);else for(a=
this.de,b=this.d.length;a<b;++a)this.d[a].hd=a;this.Af=!1;this.de=-1}};m.prototype.Zb=function(a){return this.Ft()*(this.b.pc||a?this.b.Mg:1)};m.prototype.Ft=function(){return(this.scale*this.fb.scale-1)*this.jd+1};m.prototype.Ua=function(){return this.Id?0:Ja(this.fb.k+this.k)};var a=[],c=[],e=[];m.prototype.jl=function(){this.Mm();this.qb.Pj(this.ma,this.ja,this.ra,this.qa,e);if(!e.length)return p();if(1===e.length){var a=p();Aa(a,e[0]);W(e);return a}for(var b=!0;1<e.length;){for(var a=e,f=void 0,
k=void 0,g=void 0,u=void 0,l=void 0,f=0,k=a.length;f<k-1;f+=2){var g=a[f],u=a[f+1],l=p(),h=g,n=u,x=l,m=0,q=0,K=0,U=h.length,P=n.length,E=void 0,z=void 0;for(x.length=U+P;m<U&&q<P;++K)E=h[m],z=n[q],E.hd<z.hd?(x[K]=E,++m):(x[K]=z,++q);for(;m<U;++m,++K)x[K]=h[m];for(;q<P;++q,++K)x[K]=n[q];b||(t(g),t(u));c.push(l)}1===k%2&&(b?(g=p(),Aa(g,a[k-1]),c.push(g)):c.push(a[k-1]));Aa(a,c);W(c);b=!1}a=e[0];W(e);return a};m.prototype.nd=function(a){this.zd=this.Yi||1!==this.opacity||0!==this.wb;var b=this.b.canvas,
c=a,e=!1;this.zd&&(this.b.tj||(this.b.tj=document.createElement("canvas"),b=this.b.tj,b.width=this.b.C,b.height=this.b.B,this.b.to=b.getContext("2d"),e=!0),b=this.b.tj,c=this.b.to,b.width!==this.b.C&&(b.width=this.b.C,e=!0),b.height!==this.b.B&&(b.height=this.b.B,e=!0),e&&this.b.Wj(c,this.b.Ja),this.fd&&c.clearRect(0,0,this.b.C,this.b.B));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.fd||(c.fillStyle="rgb("+this.Tc[0]+","+this.Tc[1]+","+this.Tc[2]+")",c.fillRect(0,0,this.b.C,this.b.B));
c.save();this.Id=!0;var e=this.Bb(0,0,!0,!0),f=this.Bb(0,0,!1,!0);this.Id=!1;this.b.Td&&(e=Math.round(e),f=Math.round(f));this.Rj(e,f,c);var g=this.Zb();c.scale(g,g);c.translate(-e,-f);this.yc?(this.lb.left=this.qb.Gb(this.ma),this.lb.top=this.qb.Hb(this.ja),this.lb.right=this.qb.Gb(this.ra),this.lb.bottom=this.qb.Hb(this.qa),this.cd||!this.lb.Ug(this.eg)?(t(this.Qd),e=this.jl(),this.cd=!1,this.eg.Qg(this.lb)):e=this.Qd):e=this.d;for(var l,h=null,f=0,g=e.length;f<g;++f)l=e[f],l!==h&&(this.Cs(l,c),
h=l);this.yc&&(this.Qd=e);c.restore();this.zd&&(a.globalCompositeOperation=this.Pg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.Cs=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ba;c.right<this.ma||c.bottom<this.ja||c.left>this.ra||c.top>this.qa||(b.globalCompositeOperation=a.Pg,a.nd(b))}};m.prototype.kk=function(){this.Id=!0;var a=this.Bb(0,0,!0,!0),b=this.Bb(0,0,!1,!0);this.Id=!1;this.b.Td&&(a=Math.round(a),b=Math.round(b));this.Rj(a,b,null)};m.prototype.Rj=
function(a,b,c){var e=this.Zb();this.ma=a;this.ja=b;this.ra=a+1/e*this.b.C;this.qa=b+1/e*this.b.B;this.ma>this.ra&&(a=this.ma,this.ma=this.ra,this.ra=a);this.ja>this.qa&&(a=this.ja,this.ja=this.qa,this.qa=a);a=this.Ua();0!==a&&(c&&(c.translate(this.b.C/2,this.b.B/2),c.rotate(-a),c.translate(this.b.C/-2,this.b.B/-2)),this.Zd.set(this.ma,this.ja,this.ra,this.qa),this.Zd.offset((this.ma+this.ra)/-2,(this.ja+this.qa)/-2),this.cq.Kp(this.Zd,a),this.cq.kn(this.Zd),this.Zd.offset((this.ma+this.ra)/2,(this.ja+
this.qa)/2),this.ma=this.Zd.left,this.ja=this.Zd.top,this.ra=this.Zd.right,this.qa=this.Zd.bottom)};m.prototype.Kf=function(a){if(this.zd=this.Yi){this.b.Wa||(this.b.Wa=a.nc(this.b.C,this.b.B,this.b.Ja));if(this.b.Wa.Se!==this.b.C||this.b.Wa.Re!==this.b.B)a.deleteTexture(this.b.Wa),this.b.Wa=a.nc(this.b.C,this.b.B,this.b.Ja);a.Mc(this.b.Wa)}this.Id=!0;var b=this.Bb(0,0,!0,!0),c=this.Bb(0,0,!1,!0);this.Id=!1;this.b.Td&&(b=Math.round(b),c=Math.round(c));this.Rj(b,c,null);b=this.Zb();a.Lc();a.scale(b,
b);a.Sj(-this.Ua());a.translate((this.ma+this.ra)/-2,(this.ja+this.qa)/-2);a.xc();this.yc?(this.lb.left=this.qb.Gb(this.ma),this.lb.top=this.qb.Hb(this.ja),this.lb.right=this.qb.Gb(this.ra),this.lb.bottom=this.qb.Hb(this.qa),this.cd||!this.lb.Ug(this.eg)?(t(this.Qd),b=this.jl(),this.cd=!1,this.eg.Qg(this.lb)):b=this.Qd):b=this.d;for(var e,f=null,c=b.length-1;0<=c;--c)e=b[c],e!==f&&(this.Es(b[c],a),f=e);this.yc&&(this.Qd=b);this.fd||(this.Jk=this.b.Ye++,a.Xj(this.Jk),a.Bp(1,1,1),a.Gn(),a.nv())};m.prototype.oc=
function(a){var b=0,c=0;if(this.zd=this.Yi||1!==this.opacity||0<this.Z.length||0!==this.wb){this.b.Wa||(this.b.Wa=a.nc(this.b.C,this.b.B,this.b.Ja));if(this.b.Wa.Se!==this.b.C||this.b.Wa.Re!==this.b.B)a.deleteTexture(this.b.Wa),this.b.Wa=a.nc(this.b.C,this.b.B,this.b.Ja);a.Mc(this.b.Wa);this.fd&&a.clear(0,0,0,0)}this.fd||(this.b.ua?(a.Xj(this.Jk),a.Bp(this.Tc[0]/255,this.Tc[1]/255,this.Tc[2]/255),a.Gn(),a.Cv()):a.clear(this.Tc[0]/255,this.Tc[1]/255,this.Tc[2]/255,1));this.Id=!0;var e=this.Bb(0,0,
!0,!0),b=this.Bb(0,0,!1,!0);this.Id=!1;this.b.Td&&(e=Math.round(e),b=Math.round(b));this.Rj(e,b,null);e=this.Zb();a.Lc();a.scale(e,e);a.Sj(-this.Ua());a.translate((this.ma+this.ra)/-2,(this.ja+this.qa)/-2);a.xc();this.yc?(this.lb.left=this.qb.Gb(this.ma),this.lb.top=this.qb.Hb(this.ja),this.lb.right=this.qb.Gb(this.ra),this.lb.bottom=this.qb.Hb(this.qa),this.cd||!this.lb.Ug(this.eg)?(t(this.Qd),b=this.jl(),this.cd=!1,this.eg.Qg(this.lb)):b=this.Qd):b=this.d;var f,g,l=null,c=0;for(f=b.length;c<f;++c)g=
b[c],g!==l&&(this.Ds(b[c],a),l=g);this.yc&&(this.Qd=b);this.zd&&(b=this.Z.length?this.Z[0].Pa:0,c=this.Z.length?this.Z[0].index:0,0===this.Z.length||1===this.Z.length&&!a.jm(b)&&1===this.opacity?(1===this.Z.length?(a.Sb(b),a.vg(this.fb.Yg(),1/this.b.C,1/this.b.B,0,0,1,1,e,this.Ua(),this.ma,this.ja,(this.ma+this.ra)/2,(this.ja+this.qa)/2,this.b.eb.T,this.Ea[c]),a.Nj(b)&&(this.b.ka=!0)):a.Sb(0),a.Mc(this.fb.Yg()),a.ug(this.opacity),a.wc(this.b.Wa),a.He(this.Ab,this.xb),a.Lc(),a.xc(),e=this.b.C/2,b=
this.b.B/2,a.Ph(-e,b,e,b,e,-b,-e,-b),a.wc(null)):this.fb.nm(a,this,null,this.fb.Yg()))};m.prototype.Ds=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ba;c.right<this.ma||c.bottom<this.ja||c.left>this.ra||c.top>this.qa||(b.Xj(a.Ye),a.rq?this.Fs(a,b):(b.Sb(0),b.He(a.Ab,a.xb),a.oc(b)))}};m.prototype.Es=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ba;c.right<this.ma||c.bottom<this.ja||c.left>this.ra||c.top>this.qa||(a.Ye=this.b.Ye++,0===a.wb&&1===a.opacity&&
a.Wd&&a.Kf&&(b.Xj(a.Ye),a.Kf(b)))}};m.prototype.Fs=function(a,b){var c=a.Z[0].Pa,e=a.Z[0].index,f=this.Zb();if(1!==a.Z.length||b.jm(c)||b.av(c)||(a.k||a.i.Ua())&&b.Lh(c)||1!==a.opacity||a.type.za.So)this.fb.nm(b,this,a,this.zd?this.b.Wa:this.fb.Yg()),b.Lc(),b.scale(f,f),b.Sj(-this.Ua()),b.translate((this.ma+this.ra)/-2,(this.ja+this.qa)/-2),b.xc();else{b.Sb(c);b.He(a.Ab,a.xb);b.Nj(c)&&(this.b.ka=!0);var g=0,l=0,h=0,n=0;b.Lh(c)&&(n=a.Ba,g=this.pa(n.left,n.top,!0,!0),l=this.pa(n.left,n.top,!1,!0),h=
this.pa(n.right,n.bottom,!0,!0),n=this.pa(n.right,n.bottom,!1,!0),g=g/windowWidth,l=1-l/windowHeight,h=h/windowWidth,n=1-n/windowHeight);var x;a.$a&&a.$a.jb?(x=a.$a.jb,c=1/x.width,x=1/x.height):(c=1/a.width,x=1/a.height);b.vg(this.zd?this.b.Wa:this.fb.Yg(),c,x,g,l,h,n,f,this.Ua(),this.ma,this.ja,(this.ma+this.ra)/2,(this.ja+this.qa)/2,this.b.eb.T,a.Ea[e]);a.oc(b)}};m.prototype.Bb=function(a,b,c,e){var f=this.b.devicePixelRatio;this.b.kf&&(a*=f,b*=f);var f=this.b.lp,g=this.b.mp,f=(this.fb.scrollX-
f)*this.Hc+f,g=(this.fb.scrollY-g)*this.Ic+g,l=f,h=g,n=1/this.Zb(!e);e?(l-=this.b.C*n/2,h-=this.b.B*n/2):(l-=this.b.width*n/2,h-=this.b.height*n/2);l+=a*n;h+=b*n;b=this.Ua();0!==b&&(l-=f,h-=g,a=Math.cos(b),b=Math.sin(b),e=l*a-h*b,h=h*a+l*b,l=e+f,h+=g);return c?l:h};m.prototype.pa=function(a,b,c,e){var f=this.b.lp,g=this.b.mp,l=(this.fb.scrollX-f)*this.Hc+f,h=(this.fb.scrollY-g)*this.Ic+g,g=l,f=h,n=this.Ua();if(0!==n){a-=l;b-=h;var x=Math.cos(-n),n=Math.sin(-n),m=a*x-b*n;b=b*x+a*n;a=m+l;b+=h}l=1/this.Zb(!e);
e?(g-=this.b.C*l/2,f-=this.b.B*l/2):(g-=this.b.width*l/2,f-=this.b.height*l/2);g=(a-g)/l;f=(b-f)/l;a=this.b.devicePixelRatio;this.b.kf&&!e&&(g/=a,f/=a);return c?g:f};m.prototype.Rb=function(){var a,b,c,e={s:this.scale,a:this.k,vl:this.ma,vt:this.ja,vr:this.ra,vb:this.qa,v:this.visible,bc:this.Tc,t:this.fd,px:this.Hc,py:this.Ic,o:this.opacity,zr:this.jd,fx:[],cg:this.Sg,instances:[]};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],e.fx.push({name:c.name,active:c.lc,params:this.Ea[c.index]});return e};
m.prototype.tc=function(a){var b,c,e;this.scale=a.s;this.k=a.a;this.ma=a.vl;this.ja=a.vt;this.ra=a.vr;this.qa=a.vb;this.visible=a.v;this.Tc=a.bc;this.fd=a.t;this.Hc=a.px;this.Ic=a.py;this.opacity=a.o;this.jd=a.zr;this.Sg=a.cg||[];Aa(this.sc,this.Sp);var f=new ca;b=0;for(e=this.Sg.length;b<e;++b)f.add(this.Sg[b]);c=b=0;for(e=this.sc.length;b<e;++b)f.contains(this.sc[b][2])||(this.sc[c]=this.sc[b],++c);ya(this.sc,c);c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=this.dl(c[b].name))a.lc=c[b].active,this.Ea[a.index]=
c[b].params;this.gd();this.d.sort(l);this.Af=!0};Vb=m})();
(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 l(a,b){return a.index-b.index}function m(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(l);a.length>=r.length&&(r.length=a.length+1);r[a.length]||(r[a.length]=[]);e=r[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 p(a,b){this.b=a;this.gq={};this.An={};this.pl=!1;this.Tn=new ca;this.Qk=[];this.xk=[];this.name=b[0];var c=b[1];this.re=[];var d,e;d=0;for(e=c.length;d<e;d++)this.Vn(c[d],null,this.re)}function t(a){this.type=a;this.d=[];this.N=[];this.fa=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ga=[];this.Ie=[];this.Sn=this.ek=this.Fm=this.ul=this.group=this.Bm=!1;this.Ra=[];this.Qc=[];this.Nc=[];this.$g="";this.Rf=this.ul=this.group=!1;this.Di=null;c[1]&&(this.$g=c[1][1].toLowerCase(),
this.group=!0,this.ul=!!c[1][0],this.Di=[],this.Rf=this.ul,this.b.Ef.push(this),this.b.ah[this.$g]=this);this.Fc=c[2];this.S=c[4];this.group||(this.b.jn[this.S.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Wb(this,d[a]);e.index=a;this.Ra.push(e);this.dn(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new Xb(this,d[a]),e.index=a,this.Qc.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Vn(c[a],this,this.Nc);this.nj=!1;this.Ra.length&&(this.nj=null==this.Ra[0].type&&
this.Ra[0].nb==Z.prototype.n.Gq)}function f(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.cc))for(c=0,d=a.Yb.length;c<d;c++)e=a.Yb[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function a(a,b){this.mc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.Ga=[];this.F={};this.index=-1;this.Jg=!1;this.nb=this.b.ee(b[1]);this.trigger=0<b[3];this.zn=2===b[3];this.vd=b[4];this.yl=b[5];this.uu=b[6];this.S=b[7];this.b.me[this.S.toString()]=this;-1===b[0]?(this.type=null,this.Oa=this.tm,this.Pe=null,this.Uc=-1):
(this.type=this.b.p[b[0]],this.Oa=this.uu?this.tv:this.rm,b[2]?(this.Pe=this.type.bj(b[2]),this.Uc=this.type.bl(b[2])):(this.Pe=null,this.Uc=-1),this.mc.parent&&this.mc.parent.Yj());this.zn&&(this.Oa=this.uv);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var f=new Yb(this,e[c]);this.K.push(f)}this.Ga.length=e.length}}function c(a,b){this.mc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.Ga=[];this.F={};this.index=-1;this.Jg=!1;this.nb=this.b.ee(b[1]);-1===b[0]?(this.type=null,this.Oa=
this.tm,this.Pe=null,this.Uc=-1):(this.type=this.b.p[b[0]],this.Oa=this.rm,b[2]?(this.Pe=this.type.bj(b[2]),this.Uc=this.type.bl(b[2])):(this.Pe=null,this.Uc=-1));this.S=b[3];this.b.he[this.S.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var f=new Yb(this,e[c]);this.K.push(f)}this.Ga.length=e.length}}function e(){y++;u.length===y&&u.push(new Zb);return u[y]}function d(a,b){this.Gc=a;this.mc=a.mc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.pd=null;this.Xd=0;this.get=
null;this.qn=0;this.fb=null;this.key=0;this.object=null;this.index=0;this.bi=this.vf=this.bi=this.vf=this.En=this.bf=this.ci=null;this.Pc=!1;var c,d,e;switch(b[0]){case 0:case 7:this.pd=new $b(this,b[1]);this.Xd=0;this.get=this.Qt;break;case 1:this.pd=new $b(this,b[1]);this.Xd=0;this.get=this.Rt;break;case 5:this.pd=new $b(this,b[1]);this.Xd=0;this.get=this.Vt;break;case 3:case 8:this.qn=b[1];this.get=this.Ot;break;case 6:this.fb=this.b.fg[b[1]];this.get=this.Wt;break;case 9:this.key=b[1];this.get=
this.Ut;break;case 4:this.object=this.b.p[b[1]];this.get=this.Xt;this.mc.dn(this.object);this.Gc instanceof Xb?this.mc.Yj():this.mc.parent&&this.mc.parent.Yj();break;case 10:this.index=b[1];a.type&&a.type.L?(this.get=this.St,this.Pc=!0):this.get=this.Tt;break;case 11:this.ci=b[1];this.bf=null;this.get=this.Pt;break;case 2:case 12:this.En=b[1];this.get=this.Nt;break;case 13:for(this.get=this.Yt,this.vf=[],this.bi=[],c=1,d=b.length;c<d;c++)e=new Yb(this.Gc,b[c]),this.vf.push(e),this.bi.push(0)}}function b(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ga=[];this.name=c[1];this.di=c[2];this.tl=c[3];this.qh=!!c[4];this.mj=!!c[5];this.S=c[6];this.b.Dg[this.S.toString()]=this;this.data=this.tl;this.parent?(this.qf=this.qh||this.mj?-1:this.b.Fv++,this.b.Mr.push(this)):(this.qf=-1,this.b.Lr.push(this))}function v(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ga=[];this.dh=null;this.fu=c[1];this.lc=!0}function k(){this.Up=[];this.reset(null)}var r=[];p.prototype.toString=function(){return this.name};
p.prototype.Vn=function(a,b,c){switch(a[0]){case 0:a=new ac(this,b,a);if(a.Fc)for(c.push(a),c=0,b=a.Ra.length;c<b;c++)a.Ra[c].trigger&&this.Wn(a,c);else a.fo()?this.Wn(a,0):c.push(a);break;case 1:a=new Sb(this,b,a);c.push(a);break;case 2:a=new bc(this,b,a),c.push(a)}};p.prototype.Ka=function(){var a,b;a=0;for(b=this.re.length;a<b;a++)this.re[a].Ka(a<b-1&&this.re[a+1].nj)};p.prototype.Km=function(){W(this.Qk);W(this.xk);this.bn(this);W(this.xk)};p.prototype.bn=function(a){var b,c,d,e,f=a.Qk,g=a.xk,
k=this.Tn.Ke();b=0;for(c=k.length;b<c;++b)d=k[b],e=d.dh,!d.lc||a===e||-1<g.indexOf(e)||(g.push(e),e.bn(a),f.push(e))};p.prototype.Oa=function(a){this.b.qx||(this.pl=!0,a||(this.b.Dl=!0));var b,c;b=0;for(c=this.re.length;b<c;b++){var d=this.re[b];d.Oa();this.b.Ik(d.ga);this.b.te&&this.b.ub()}a||(this.b.Dl=!1)};p.prototype.Wn=function(a,b){a.Fc||this.b.hk.push(a);var c,d,e=a.Ra[b],f;e.type?f=e.type.name:f="system";var g=(c=e.zn)?this.An:this.gq;g[f]||(g[f]=[]);f=g[f];g=e.nb;if(c){if(e.K.length&&(e=
e.K[0],1===e.type&&2===e.pd.type)){e=e.pd.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==g){c=f[c].Vg;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];f.push({method:g,Vg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==g){f[c].Vg.push([a,b]);return}oc&&g===oc.prototype.n.Df?f.unshift({method:g,Vg:[[a,b]]}):f.push({method:g,Vg:[[a,b]]})}};Ib=p;t.prototype.ol=function(){return this.fa?this.type.d.length:this.d.length};t.prototype.rc=function(){return this.fa?this.type.d:
this.d};t.prototype.Kh=function(a){a&&(a.b.bb().ab.Fc?(this.fa&&(W(this.d),Aa(this.N,a.type.d),this.fa=!1),a=this.N.indexOf(a),-1!==a&&(this.d.push(this.N[a]),this.N.splice(a,1))):(this.fa=!1,W(this.d),this.d[0]=a))};qb=t;window._c2hh_="139B655A9528B09CFFE4B96826778355E35EDB96";q.prototype.Ka=function(a){var b,c=this.parent;if(this.group)for(this.ek=!0;c;){if(!c.group){this.ek=!1;break}c=c.parent}this.Fm=!this.fo()&&(!this.parent||this.parent.group&&this.parent.ek);this.Sn=!!a;this.Ie=this.ga.slice(0);
for(c=this.parent;c;){a=0;for(b=c.ga.length;a<b;a++)this.Jr(c.ga[a]);c=c.parent}this.ga=m(this.ga);this.Ie=m(this.Ie);a=0;for(b=this.Ra.length;a<b;a++)this.Ra[a].Ka();a=0;for(b=this.Qc.length;a<b;a++)this.Qc[a].Ka();a=0;for(b=this.Nc.length;a<b;a++)this.Nc[a].Ka(a<b-1&&this.Nc[a+1].nj)};q.prototype.yv=function(a){if(this.Rf!==!!a){this.Rf=!!a;var b;a=0;for(b=this.Di.length;a<b;++a)this.Di[a].mq();0<b&&this.b.la.$e&&this.b.la.$e.Km()}};q.prototype.dn=function(a){f(a,this.ga)};q.prototype.Jr=function(a){f(a,
this.Ie)};q.prototype.Yj=function(){this.Bm=!0;this.parent&&this.parent.Yj()};q.prototype.fo=function(){return this.Ra.length?this.Ra[0].trigger:!1};q.prototype.Oa=function(){var a,b,c=!1,d=this.b,e=this.b.bb();e.ab=this;var f=this.Ra;this.nj||(e.Tk=!1);if(this.Fc){0===f.length&&(c=!0);e.Qa=0;for(a=f.length;e.Qa<a;e.Qa++)b=f[e.Qa],b.trigger||(b=b.Oa())&&(c=!0);(e.mf=c)&&this.Tj()}else{e.Qa=0;for(a=f.length;e.Qa<a;e.Qa++)if(b=f[e.Qa].Oa(),!b){e.mf=!1;this.Fm&&d.te&&d.ub();return}e.mf=!0;this.Tj()}this.Js(e)};
q.prototype.Js=function(a){a.mf&&this.Sn&&(a.Tk=!0);this.Fm&&this.b.te&&this.b.ub()};q.prototype.rv=function(a){this.b.bb().ab=this;this.Ra[a].Oa()&&(this.Tj(),this.b.bb().mf=!0)};q.prototype.Tj=function(){var a=this.b.bb(),b;a.Wb=0;for(b=this.Qc.length;a.Wb<b;a.Wb++)if(this.Qc[a.Wb].Oa())return;this.xp()};q.prototype.pv=function(){var a=this.b.bb(),b;for(b=this.Qc.length;a.Wb<b;a.Wb++)if(this.Qc[a.Wb].Oa())return;this.xp()};q.prototype.xp=function(){if(this.Nc.length){var a,b,c,d,e=this.Nc.length-
1;this.b.Oj(this);if(this.Bm)for(a=0,b=this.Nc.length;a<b;a++)c=this.Nc[a],(d=!this.ek||!this.group&&a<e)&&this.b.Oh(c.ga),c.Oa(),d?this.b.Fe(c.ga):this.b.Ik(c.ga);else for(a=0,b=this.Nc.length;a<b;a++)this.Nc[a].Oa();this.b.Kj()}};q.prototype.sv=function(){var a=this.b.bb();a.ab=this;var b=!1,c;a.Qa=0;for(c=this.Ra.length;a.Qa<c;a.Qa++)if(this.Ra[a.Qa].Oa())b=!0;else if(!this.Fc)return!1;return this.Fc?b:!0};q.prototype.qm=function(){this.b.Wg++;var a=this.b.bb().Qa,b=this.b.Oj(this);if(!this.Fc)for(b.Qa=
a+1,a=this.Ra.length;b.Qa<a;b.Qa++)if(!this.Ra[b.Qa].Oa()){this.b.Kj();return}this.Tj();this.b.Kj()};q.prototype.nu=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ra[b].type===a.type)return!1;return!0};ac=q;a.prototype.Ka=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ka(),c.Pc&&(this.Jg=!0)};a.prototype.uv=function(){return!0};a.prototype.tm=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.Ga[a]=this.K[a].get();return Xa(this.nb.apply(this.b.Bd,this.Ga),
this.yl)};a.prototype.tv=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.Ga[a]=this.K[a].get();a=this.nb.apply(this.Pe?this.Pe:this.type,this.Ga);this.type.Sc();return a};a.prototype.rm=function(){var a,b,c,d,e,f,g,k,r=this.type,l=r.V(),u=this.mc.Fc&&!this.trigger;b=0;var m=r.cc,p=r.L,q=r.Kd,t=this.Uc,v=-1<t,y=this.Jg,F=this.K,L=this.Ga,Q=this.yl,R=this.nb,G;if(y)for(b=0,e=F.length;b<e;++b)f=F[b],f.Pc||(L[b]=f.get(0));else for(b=0,e=F.length;b<e;++b)L[b]=F[b].get(0);if(l.fa){W(l.d);W(l.N);
G=r.d;a=0;for(d=G.length;a<d;++a){k=G[a];if(y)for(b=0,e=F.length;b<e;++b)f=F[b],f.Pc&&(L[b]=f.get(a));v?(b=0,p&&(b=k.type.Of[q]),b=R.apply(k.H[t+b],L)):b=R.apply(k,L);(g=Xa(b,Q))?l.d.push(k):u&&l.N.push(k)}r.finish&&r.finish(!0);l.fa=!1;r.Sc();return l.ol()}c=0;G=(g=u&&!this.mc.nu(this))?l.N:l.d;var J=!1;a=0;for(d=G.length;a<d;++a){k=G[a];if(y)for(b=0,e=F.length;b<e;++b)f=F[b],f.Pc&&(L[b]=f.get(a));v?(b=0,p&&(b=k.type.Of[q]),b=R.apply(k.H[t+b],L)):b=R.apply(k,L);if(Xa(b,Q))if(J=!0,g){if(l.d.push(k),
m)for(b=0,e=k.siblings.length;b<e;b++)f=k.siblings[b],f.type.V().d.push(f)}else{G[c]=k;if(m)for(b=0,e=k.siblings.length;b<e;b++)f=k.siblings[b],f.type.V().d[c]=f;c++}else if(g){G[c]=k;if(m)for(b=0,e=k.siblings.length;b<e;b++)f=k.siblings[b],f.type.V().N[c]=f;c++}else if(u&&(l.N.push(k),m))for(b=0,e=k.siblings.length;b<e;b++)f=k.siblings[b],f.type.V().N.push(f)}ya(G,c);if(m)for(p=r.Yb,a=0,d=p.length;a<d;a++)k=p[a].V(),g?ya(k.N,c):ya(k.d,c);c=J;if(g&&!J)for(a=0,d=l.d.length;a<d;a++){k=l.d[a];if(y)for(b=
0,e=F.length;b<e;b++)f=F[b],f.Pc&&(L[b]=f.get(a));b=v?R.apply(k.H[t],L):R.apply(k,L);if(Xa(b,Q)){J=!0;break}}r.finish&&r.finish(c||u);return u?J:l.ol()};Wb=a;c.prototype.Ka=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ka(),c.Pc&&(this.Jg=!0)};c.prototype.tm=function(){var a=this.b,b,c,d=this.K,e=this.Ga;b=0;for(c=d.length;b<c;++b)e[b]=d[b].get();return this.nb.apply(a.Bd,e)};c.prototype.rm=function(){var a=this.type,b=this.Uc,c=a.Kd,d=this.Jg,e=this.K,f=this.Ga,g=this.nb,k=a.V().rc(),
a=a.L,l=-1<b,r,u,m,p,q,t;if(d)for(u=0,p=e.length;u<p;++u)q=e[u],q.Pc||(f[u]=q.get(0));else for(u=0,p=e.length;u<p;++u)f[u]=e[u].get(0);r=0;for(m=k.length;r<m;++r){t=k[r];if(d)for(u=0,p=e.length;u<p;++u)q=e[u],q.Pc&&(f[u]=q.get(r));l?(u=0,a&&(u=t.type.Of[c]),g.apply(t.H[b+u],f)):g.apply(t,f)}return!1};Xb=c;var u=[],y=-1;d.prototype.Ka=function(){var a,b;if(11===this.type)this.bf=this.b.Nn(this.ci,this.mc.parent);else if(13===this.type)for(a=0,b=this.vf.length;a<b;a++)this.vf[a].Ka();this.pd&&this.pd.Ka()};
d.prototype.zu=function(a){this.Pc||!a||a.za.Zj||(this.Pc=!0)};d.prototype.Hp=function(){this.Pc=!0};d.prototype.Qt=function(a){this.Xd=a||0;a=e();this.pd.get(a);y--;return a.data};d.prototype.Rt=function(a){this.Xd=a||0;a=e();this.pd.get(a);y--;return D(a.data)?a.data:""};d.prototype.Xt=function(){return this.object};d.prototype.Ot=function(){return this.qn};d.prototype.Vt=function(a){this.Xd=a||0;a=e();this.pd.get(a);y--;return a.cb()?this.b.Qf(a.data):this.b.dj(a.data)};d.prototype.Wt=function(){return this.fb};
d.prototype.Ut=function(){return this.key};d.prototype.Tt=function(){return this.index};d.prototype.St=function(a){a=a||0;var b=this.Gc.type,c=null,c=b.V(),d=c.rc();if(d.length)c=d[a%d.length].type;else if(c.N.length)c=c.N[a%c.N.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.Si[b.Kd]};d.prototype.Pt=function(){return this.bf};d.prototype.Nt=function(){return this.En};d.prototype.Yt=function(){var a,b;a=0;for(b=this.vf.length;a<b;a++)this.bi[a]=this.vf[a].get();
return this.bi};Yb=d;b.prototype.Ka=function(){this.ga=m(this.ga)};b.prototype.Vd=function(a){var b=this.b.Ln();this.parent&&!this.qh&&b?(this.qf>=b.length&&(b.length=this.qf+1),b[this.qf]=a):this.data=a};b.prototype.ef=function(){var a=this.b.Ln();return!this.parent||this.qh||!a||this.mj?this.data:this.qf>=a.length||"undefined"===typeof a[this.qf]?this.tl:a[this.qf]};b.prototype.Oa=function(){!this.parent||this.qh||this.mj||this.Vd(this.tl)};Sb=b;v.prototype.toString=function(){return"include:"+
this.dh.toString()};v.prototype.Ka=function(){this.dh=this.b.Vk[this.fu];this.sheet.Tn.add(this);this.ga=m(this.ga);for(var a=this.parent;a;)a.group&&a.Di.push(this),a=a.parent;this.mq()};v.prototype.Oa=function(){this.parent&&this.b.Nh(this.b.p);this.dh.pl||this.dh.Oa(!0);this.parent&&this.b.Fe(this.b.p)};v.prototype.mq=function(){for(var a=this.parent;a;){if(a.group&&!a.Rf){this.lc=!1;return}a=a.parent}this.lc=!0};bc=v;k.prototype.reset=function(a){this.ab=a;this.Wb=this.Qa=0;W(this.Up);this.Tk=
this.mf=!1};k.prototype.pu=function(){return this.ab.Bm?!0:this.Qa<this.ab.Ra.length-1?!!this.ab.ga.length:!1};Rb=k})();
(function(){function g(f,a){this.Gc=f;this.b=f.b;this.type=a[0];this.get=[this.bt,this.Xs,this.kt,this.nt,this.Ms,this.lt,this.ft,this.Us,this.et,this.jt,this.Ns,this.it,this.Vs,this.gt,this.ct,this.dt,this.Ys,this.Zs,this.Ts,this.mt,this.ht,this.$s,this.Ss,this.Ws][this.type];var c=null;this.Rd=this.K=this.Ga=this.nb=this.ck=this.second=this.first=this.value=null;this.Uc=-1;this.Wc=null;this.sq=-1;this.bf=this.ci=null;this.tg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new $b(f,a[1]);break;case 18:this.first=new $b(f,a[1]);this.second=new $b(f,a[2]);this.ck=new $b(f,a[3]);break;case 19:this.nb=this.b.ee(a[1]);this.nb!==Z.prototype.Ia.random&&this.nb!==Z.prototype.Ia.pn||this.Gc.Hp();this.Ga=[];this.K=[];3===a.length?(c=a[2],this.Ga.length=c.length+1):this.Ga.length=1;break;case 20:this.Rd=this.b.p[a[1]];this.Uc=-1;this.nb=this.b.ee(a[2]);this.tg=a[3];ec.Function&&this.nb===ec.Function.prototype.Ia.ew&&this.Gc.Hp();a[4]?this.Wc=new $b(f,a[4]):this.Wc=null;this.Ga=
[];this.K=[];6===a.length?(c=a[5],this.Ga.length=c.length+1):this.Ga.length=1;break;case 21:this.Rd=this.b.p[a[1]];this.tg=a[2];a[3]?this.Wc=new $b(f,a[3]):this.Wc=null;this.sq=a[4];break;case 22:this.Rd=this.b.p[a[1]];this.Rd.bj(a[2]);this.Uc=this.Rd.bl(a[2]);this.nb=this.b.ee(a[3]);this.tg=a[4];a[5]?this.Wc=new $b(f,a[5]):this.Wc=null;this.Ga=[];this.K=[];7===a.length?(c=a[6],this.Ga.length=c.length+1):this.Ga.length=1;break;case 23:this.ci=a[1],this.bf=null}this.Gc.zu(this.Rd);4<=this.type&&17>=
this.type&&(this.first=new $b(f,a[1]),this.second=new $b(f,a[2]));if(c){var e,d;e=0;for(d=c.length;e<d;e++)this.K.push(new $b(f,c[e]))}}function l(){++q;t.length===q&&t.push(new Zb);return t[q]}function m(f,a,c){var e,d;e=0;for(d=f.length;e<d;++e)f[e].get(c),a[e+1]=c.data}function p(f,a){this.type=f||cc.Cf;this.data=a||0;this.sf=null;this.type==cc.Cf&&(this.data=Math.floor(this.data))}g.prototype.Ka=function(){23===this.type&&(this.bf=this.Gc.b.Nn(this.ci,this.Gc.mc.parent));this.first&&this.first.Ka();
this.second&&this.second.Ka();this.ck&&this.ck.Ka();this.Wc&&this.Wc.Ka();if(this.K){var f,a;f=0;for(a=this.K.length;f<a;f++)this.K[f].Ka()}};var t=[],q=-1;g.prototype.mt=function(f){var a=this.K,c=this.Ga;c[0]=f;f=l();m(a,c,f);--q;this.nb.apply(this.b.Bd,c)};g.prototype.ht=function(f){var a=this.Rd,c=this.Ga,e=this.K,d=this.Wc,b=this.nb,g=this.Gc.Xd,k=a.V(),r=k.rc();if(!r.length)if(k.N.length)r=k.N;else{this.tg?f.kc(""):f.wa(0);return}c[0]=f;f.sf=a;f=l();m(e,c,f);d&&(d.get(f),f.cb()&&(g=f.data,r=
a.d));--q;a=r.length;if(g>=a||g<=-a)g%=a;0>g&&(g+=a);b.apply(r[g],c)};g.prototype.Ss=function(f){var a=this.Rd,c=this.Ga,e=this.K,d=this.Wc,b=this.Uc,g=this.nb,k=this.Gc.Xd,r=a.V(),u=r.rc();if(!u.length)if(r.N.length)u=r.N;else{this.tg?f.kc(""):f.wa(0);return}c[0]=f;f.sf=a;f=l();m(e,c,f);d&&(d.get(f),f.cb()&&(k=f.data,u=a.d));--q;e=u.length;if(k>=e||k<=-e)k%=e;0>k&&(k+=e);k=u[k];u=0;a.L&&(u=k.type.Of[a.Kd]);g.apply(k.H[b+u],c)};g.prototype.$s=function(f){var a=this.Wc,c=this.Rd,e=this.sq,d=this.Gc.Xd,
b=c.V(),g=b.rc();if(!g.length)if(b.N.length)g=b.N;else{this.tg?f.kc(""):f.wa(0);return}if(a){b=l();a.get(b);if(b.cb()){d=b.data;g=c.d;0!==g.length&&(d%=g.length,0>d&&(d+=g.length));d=c.gl(d);c=d.Va[e];D(c)?f.kc(c):f.A(c);--q;return}--q}a=g.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=g[d];g=0;c.L&&(g=d.type.Si[c.Kd]);c=d.Va[e+g];D(c)?f.kc(c):f.A(c)};g.prototype.bt=function(f){f.type=cc.Cf;f.data=this.value};g.prototype.Xs=function(f){f.type=cc.Bf;f.data=this.value};g.prototype.kt=function(f){f.type=cc.String;
f.data=this.value};g.prototype.nt=function(f){this.first.get(f);f.cb()&&(f.data=-f.data)};g.prototype.Ms=function(f){this.first.get(f);var a=l();this.second.get(a);f.cb()&&a.cb()&&(f.data+=a.data,a.Wf()&&f.ig());--q};g.prototype.lt=function(f){this.first.get(f);var a=l();this.second.get(a);f.cb()&&a.cb()&&(f.data-=a.data,a.Wf()&&f.ig());--q};g.prototype.ft=function(f){this.first.get(f);var a=l();this.second.get(a);f.cb()&&a.cb()&&(f.data*=a.data,a.Wf()&&f.ig());--q};g.prototype.Us=function(f){this.first.get(f);
var a=l();this.second.get(a);f.cb()&&a.cb()&&(f.data/=a.data,f.ig());--q};g.prototype.et=function(f){this.first.get(f);var a=l();this.second.get(a);f.cb()&&a.cb()&&(f.data%=a.data,a.Wf()&&f.ig());--q};g.prototype.jt=function(f){this.first.get(f);var a=l();this.second.get(a);f.cb()&&a.cb()&&(f.data=Math.pow(f.data,a.data),a.Wf()&&f.ig());--q};g.prototype.Ns=function(f){this.first.get(f);var a=l();this.second.get(a);a.Zf()||f.Zf()?this.Ps(f,a):this.Os(f,a);--q};g.prototype.Ps=function(f,a){f.Zf()&&
a.Zf()?this.Rs(f,a):this.Qs(f,a)};g.prototype.Rs=function(f,a){f.data+=a.data};g.prototype.Qs=function(f,a){f.Zf()?f.data+=(Math.round(1E10*a.data)/1E10).toString():f.kc(f.data.toString()+a.data)};g.prototype.Os=function(f,a){f.wa(f.data&&a.data?1:0)};g.prototype.it=function(f){this.first.get(f);var a=l();this.second.get(a);f.cb()&&a.cb()&&(f.data||a.data?f.wa(1):f.wa(0));--q};g.prototype.Ts=function(f){this.first.get(f);f.data?this.second.get(f):this.ck.get(f)};g.prototype.Vs=function(f){this.first.get(f);
var a=l();this.second.get(a);f.wa(f.data===a.data?1:0);--q};g.prototype.gt=function(f){this.first.get(f);var a=l();this.second.get(a);f.wa(f.data!==a.data?1:0);--q};g.prototype.ct=function(f){this.first.get(f);var a=l();this.second.get(a);f.wa(f.data<a.data?1:0);--q};g.prototype.dt=function(f){this.first.get(f);var a=l();this.second.get(a);f.wa(f.data<=a.data?1:0);--q};g.prototype.Ys=function(f){this.first.get(f);var a=l();this.second.get(a);f.wa(f.data>a.data?1:0);--q};g.prototype.Zs=function(f){this.first.get(f);
var a=l();this.second.get(a);f.wa(f.data>=a.data?1:0);--q};g.prototype.Ws=function(f){var a=this.bf.ef();ha(a)?f.A(a):f.kc(a)};$b=g;p.prototype.Wf=function(){return this.type===cc.Bf};p.prototype.cb=function(){return this.type===cc.Cf||this.type===cc.Bf};p.prototype.Zf=function(){return this.type===cc.String};p.prototype.ig=function(){this.Wf()||(this.Zf()&&(this.data=parseFloat(this.data)),this.type=cc.Bf)};p.prototype.wa=function(f){this.type=cc.Cf;this.data=Math.floor(f)};p.prototype.A=function(f){this.type=
cc.Bf;this.data=f};p.prototype.kc=function(f){this.type=cc.String;this.data=f};p.prototype.Ip=function(f){ha(f)?(this.type=cc.Bf,this.data=f):D(f)?(this.type=cc.String,this.data=f.toString()):(this.type=cc.Cf,this.data=0)};Zb=p;cc={Cf:0,Bf:1,String:2}})();function Z(g){this.b=g;this.Vb=[]}
Z.prototype.Rb=function(){var g={},l,m,p,t,q,f,a,c;g.waits=[];var e=g.waits,d;l=0;for(m=this.Vb.length;l<m;l++){f=this.Vb[l];d={t:f.time,st:f.Pp,s:f.Am,ev:f.Mf.S,sm:[],sols:{}};f.Mf.Qc[f.Wb]&&(d.act=f.Mf.Qc[f.Wb].S);p=0;for(t=f.ga.length;p<t;p++)d.sm.push(f.ga[p].S);for(q in f.Db)if(f.Db.hasOwnProperty(q)){a=this.b.p[parseInt(q,10)];c={sa:f.Db[q].Uj,insts:[]};p=0;for(t=f.Db[q].Md.length;p<t;p++)c.insts.push(f.Db[q].Md[p].uid);d.sols[a.S.toString()]=c}e.push(d)}return g};
Z.prototype.tc=function(g){g=g.waits;var l,m,p,t,q,f,a,c,e,d,b;W(this.Vb);l=0;for(m=g.length;l<m;l++)if(f=g[l],c=this.b.jn[f.ev.toString()]){e=-1;p=0;for(t=c.Qc.length;p<t;p++)if(c.Qc[p].S===f.act){e=p;break}if(-1!==e){a={Db:{},ga:[],Rk:!1};a.time=f.t;a.Pp=f.st||"";a.Am=!!f.s;a.Mf=c;a.Wb=e;p=0;for(t=f.sm.length;p<t;p++)(c=this.b.gj(f.sm[p]))&&a.ga.push(c);for(q in f.sols)if(f.sols.hasOwnProperty(q)&&(c=this.b.gj(parseInt(q,10)))){e=f.sols[q];d={Uj:e.sa,Md:[]};p=0;for(t=e.insts.length;p<t;p++)(b=this.b.fj(e.insts[p]))&&
d.Md.push(b);a.Db[c.index.toString()]=d}this.Vb.push(a)}}};
(function(){function g(){}function l(){}function m(){}var p=Z.prototype;g.prototype.Um=function(){return!0};g.prototype.gr=function(){return!0};g.prototype.Sq=function(f){return f?!f.d.length:!1};g.prototype.jr=function(f){var a=this.b.bb(),c=a.ab,e=a.pu(),a=this.b.dv();if(e)for(e=0;e<f&&!a.ib;e++)this.b.Oh(c.ga),a.index=e,c.qm(),this.b.Fe(c.ga);else for(e=0;e<f&&!a.ib;e++)a.index=e,c.qm();this.b.Uu();return!1};g.prototype.yr=function(){var f=this.b.cj().F;"undefined"===typeof f.TriggerOnce_lastTick&&
(f.TriggerOnce_lastTick=-1);var a=f.TriggerOnce_lastTick,c=this.b.ed;f.TriggerOnce_lastTick=c;return this.b.Jl||a!==c-1};g.prototype.Hq=function(f){var a=this.b.cj(),c=a.F.Every_lastTime||0,e=this.b.eb.T;"undefined"===typeof a.F.Every_seconds&&(a.F.Every_seconds=f);var d=a.F.Every_seconds;if(e>=c+d)return a.F.Every_lastTime=c+d,e>=a.F.Every_lastTime+.04&&(a.F.Every_lastTime=e),a.F.Every_seconds=f,!0;e<c-.1&&(a.F.Every_lastTime=e);return!1};g.prototype.Cq=function(f,a,c){return dc(f.ef(),a,c)};g.prototype.Pq=
function(f){return(f=this.b.ah[f.toLowerCase()])&&f.Rf};g.prototype.Gq=function(){var f=this.b.bb();return f.Tk?!1:!f.mf};g.prototype.Vm=function(){return!0};g.prototype.br=function(){return!0};g.prototype.sk=function(){return!0};g.prototype.Xm=function(){return!0};g.prototype.hr=function(){return!0};g.prototype.qk=function(){return!0};g.prototype.wq=function(f,a,c){return Na(Y(f),Y(c))<=Y(a)};g.prototype.Oq=function(f,a){return Ua(Y(f),Y(a))};g.prototype.Mq=function(f,a,c){f=La(f);a=La(a);c=La(c);
return Ua(c,a)?Ua(f,a)&&!Ua(f,c):!(!Ua(f,a)&&Ua(f,c))};p.n=new g;l.prototype.Uq=function(f){if(!this.b.$f&&!this.b.Te){var a=this.b.fc.indexOf(this.b.la);if(!f||0!==a)if(f||a!==this.b.fc.length-1)this.b.Te=this.b.fc[a+(f?-1:1)]}};l.prototype.Eq=function(f,a,c,e){if(a&&f&&(a=this.b.Lk(f,a,c,e))){this.b.Zc++;var d;this.b.trigger(Object.getPrototypeOf(f.za).n.gi,a);if(a.cc)for(c=0,e=a.siblings.length;c<e;c++)d=a.siblings[c],this.b.trigger(Object.getPrototypeOf(d.type.za).n.gi,d);this.b.Zc--;f=f.V();
f.fa=!1;W(f.d);f.d[0]=a;if(a.cc)for(c=0,e=a.siblings.length;c<e;c++)d=a.siblings[c],f=d.type.V(),f.fa=!1,W(f.d),f.d[0]=d}};l.prototype.qr=function(f,a){0===f.di?ha(a)?f.Vd(a):f.Vd(parseFloat(a)):1===f.di&&f.Vd(a.toString())};l.prototype.vq=function(f,a){0===f.di?ha(a)?f.Vd(f.ef()+a):f.Vd(f.ef()+parseFloat(a)):1===f.di&&f.Vd(f.ef()+a.toString())};l.prototype.ur=function(f,a){0===f.di&&(ha(a)?f.Vd(f.ef()-a):f.Vd(f.ef()-parseFloat(a)))};var t=[],q=[];l.prototype.Ar=function(f){if(!(0>f)){var a,c,e,d=
this.b.bb(),b;t.length?b=t.pop():b={Db:{},ga:[]};b.Rk=!1;b.time=this.b.eb.T+f;b.Pp="";b.Am=!1;b.Mf=d.ab;b.Wb=d.Wb+1;f=0;for(a=this.b.p.length;f<a;f++)e=this.b.p[f],c=e.V(),c.fa&&-1===d.ab.ga.indexOf(e)||(b.ga.push(e),e=void 0,q.length?e=q.pop():e={Md:[]},e.Uj=!1,e.Uj=c.fa,Aa(e.Md,c.d),b.Db[f.toString()]=e);this.Vb.push(b);return!0}};l.prototype.Jq=function(f){if(!this.b.$f&&!this.b.Te)for(var a in this.b.fg)if(this.b.fg.hasOwnProperty(a)&&mb(a,f)){this.b.Te=this.b.fg[a];break}};p.R=new l;m.prototype["int"]=
function(f,a){D(a)?(f.wa(parseInt(a,10)),isNaN(f.data)&&(f.data=0)):f.wa(a)};m.prototype["float"]=function(f,a){D(a)?(f.A(parseFloat(a)),isNaN(f.data)&&(f.data=0)):f.A(a)};m.prototype.random=function(f,a,c){void 0===c?f.A(Math.random()*a):f.A(Math.random()*(c-a)+a)};m.prototype.sqrt=function(f,a){f.A(Math.sqrt(a))};m.prototype.abs=function(f,a){f.A(Math.abs(a))};m.prototype.round=function(f,a){f.wa(Math.round(a))};m.prototype.floor=function(f,a){f.wa(Math.floor(a))};m.prototype.ceil=function(f,a){f.wa(Math.ceil(a))};
m.prototype.sin=function(f,a){f.A(Math.sin(Y(a)))};m.prototype.cos=function(f,a){f.A(Math.cos(Y(a)))};m.prototype.tan=function(f,a){f.A(Math.tan(Y(a)))};m.prototype.asin=function(f,a){f.A(Fa(Math.asin(a)))};m.prototype.acos=function(f,a){f.A(Fa(Math.acos(a)))};m.prototype.atan=function(f,a){f.A(Fa(Math.atan(a)))};m.prototype.exp=function(f,a){f.A(Math.exp(a))};m.prototype.log10=function(f,a){f.A(Math.log(a)/Math.LN10)};m.prototype.max=function(f){var a=arguments[1];"number"!==typeof a&&(a=0);var c,
e,d;c=2;for(e=arguments.length;c<e;c++)d=arguments[c],"number"===typeof d&&a<d&&(a=d);f.A(a)};m.prototype.min=function(f){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,d;c=2;for(e=arguments.length;c<e;c++)d=arguments[c],"number"===typeof d&&a>d&&(a=d);f.A(a)};m.prototype.We=function(f){f.A(this.b.We)};m.prototype.Ag=function(f){f.A(this.b.Ag)};m.prototype.time=function(f){f.A(this.b.eb.T)};m.prototype.ed=function(f){f.wa(this.b.ed)};m.prototype.Gj=function(f){f.wa(this.b.Gj)};m.prototype.Zk=
function(f){f.wa(this.b.Zk)};m.prototype.k=function(f,a,c,e,d){f.A(Fa(Ma(a,c,e,d)))};m.prototype.left=function(f,a,c){f.kc(D(a)?a.substr(0,c):"")};m.prototype.right=function(f,a,c){f.kc(D(a)?a.substr(a.length-c):"")};m.prototype.replace=function(f,a,c,e){D(a)&&D(c)&&D(e)?f.kc(a.replace(new RegExp(eb(c),"gi"),e)):f.kc(D(a)?a:"")};m.prototype.trim=function(f,a){f.kc(D(a)?a.trim():"")};m.prototype.pn=function(f){var a=M(Math.random()*(arguments.length-1));f.Ip(arguments[a+1])};m.prototype.Kk=function(f){f.A(this.b.Kk/
1E3)};m.prototype.Wv=function(f,a){var c=this.b.hl(a);f.A(c?c.ja:0)};m.prototype.Vv=function(f,a){var c=this.b.hl(a);f.A(c?c.ra:0)};m.prototype.Uv=function(f,a){var c=this.b.hl(a);f.A(c?c.qa:0)};m.prototype.yj=function(f){f.A(this.b.yj)};p.Ia=new m;p.qv=function(){var f,a,c,e,d,b,g=this.b.bb();f=0;for(c=this.Vb.length;f<c;f++){e=this.Vb[f];if(-1===e.time){if(!e.Am)continue}else if(e.time>this.b.eb.T)continue;g.ab=e.Mf;g.Wb=e.Wb;g.Qa=0;for(a in e.Db)e.Db.hasOwnProperty(a)&&(d=this.b.p[parseInt(a,10)].V(),
b=e.Db[a],d.fa=b.Uj,Aa(d.d,b.Md),d=b,W(d.Md),q.push(d));e.Mf.pv();this.b.Ik(e.ga);e.Rk=!0}a=f=0;for(c=this.Vb.length;f<c;f++)e=this.Vb[f],this.Vb[a]=e,e.Rk?(Za(e.Db),W(e.ga),t.push(e)):a++;ya(this.Vb,a)}})();
(function(){pb=function(g,m){var p=g[1],t=g[3],q=g[4],f=g[5],a=g[6],c=g[7],e=g[8];m.n||(m.n={});m.R||(m.R={});m.Ia||(m.Ia={});var d=m.n,b=m.R,v=m.Ia;t&&(d.Dq=function(a,b){return dc(this.x,a,b)},d.iw=function(a,b){return dc(this.y,a,b)},d.ow=function(){var a=this.i;this.ta();var b=this.Ba;return!(b.right<a.ma||b.bottom<a.ja||b.left>a.ra||b.top>a.qa)},d.pw=function(){this.ta();var a=this.Ba,b=this.b.la;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Cw=function(a,b,c){var d=this.V(),
e=d.rc();if(!e.length)return!1;var f=e[0],g=f,l=Wa(f.x,f.y,b,c),m,p,q;m=1;for(p=e.length;m<p;m++)if(f=e[m],q=Wa(f.x,f.y,b,c),0===a&&q<l||1===a&&q>l)l=q,g=f;d.Kh(g);return!0},b.Tw=function(a){this.x!==a&&(this.x=a,this.Y())},b.Uw=function(a){this.y!==a&&(this.y=a,this.Y())},b.Pw=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Y()},b.Qw=function(a,b){var c=a.Gt(this);if(c){var d;c.fl?(d=c.fl(b,!0),c=c.fl(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Y()}},b.vw=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.Y())},b.uw=function(a,b){0!==b&&(this.x+=Math.cos(Y(a))*b,this.y+=Math.sin(Y(a))*b,this.Y())},v.Er=function(a){a.A(this.x)},v.Fr=function(a){a.A(this.y)},v.We=function(a){a.A(this.b.cl(this))});q&&(d.hw=function(a,b){return dc(this.width,a,b)},d.fw=function(a,b){return dc(this.height,a,b)},b.rr=function(a){this.width!==a&&(this.width=a,this.Y())},b.Nw=function(a){this.height!==a&&(this.height=a,this.Y())},b.Rw=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Y()},v.Br=function(a){a.A(this.width)},v.Kq=function(a){a.A(this.height)},v.bw=function(a){this.ta();a.A(this.Ba.left)},v.dw=function(a){this.ta();a.A(this.Ba.top)},v.cw=function(a){this.ta();a.A(this.Ba.right)},v.aw=function(a){this.ta();a.A(this.Ba.bottom)});f&&(d.wq=function(a,b){return Na(this.k,Y(b))<=Y(a)},d.Oq=function(a){return Ua(this.k,Y(a))},d.Mq=function(a,b){var c=La(a),d=La(b),e=Ja(this.k);return Ua(d,c)?Ua(e,c)&&
!Ua(e,d):!(!Ua(e,c)&&Ua(e,d))},b.Kw=function(a){a=Y(Ia(a));isNaN(a)||this.k===a||(this.k=a,this.Y())},b.Gw=function(a){0===a||isNaN(a)||(this.k+=Y(a),this.k=Ja(this.k),this.Y())},b.Hw=function(a){0===a||isNaN(a)||(this.k-=Y(a),this.k=Ja(this.k),this.Y())},b.Iw=function(a,b){var c=Oa(this.k,Y(b),Y(a));isNaN(c)||this.k===c||(this.k=c,this.Y())},b.Jw=function(a,b,c){a=Oa(this.k,Math.atan2(c-this.y,b-this.x),Y(a));isNaN(a)||this.k===a||(this.k=a,this.Y())},b.Sw=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.k===c||(this.k=c,this.Y())},v.$v=function(a){a.A(Ka(this.k))});p||(d.Aq=function(a,b,c){return dc(this.Va[a],b,c)},d.lw=function(a){return this.Va[a]},d.Dw=function(a,b){var c=this.V(),d=c.rc();if(!d.length)return!1;var e=d[0],f=e,g=e.Va[b],l,m,p;l=1;for(m=d.length;l<m;l++)if(e=d[l],p=e.Va[b],0===a&&p<g||1===a&&p>g)g=p,f=e;c.Kh(f);return!0},d.Bw=function(a){var b,c,d,e,f;if(this.b.cj().yl){f=this.V();if(f.fa)for(f.fa=!1,W(f.d),W(f.N),d=this.d,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?f.N.push(e):f.d.push(e);else{d=b=0;for(c=f.d.length;b<c;b++)e=f.d[b],f.d[d]=e,e.uid===a?f.N.push(e):d++;ya(f.d,d)}this.Sc();return!!f.d.length}e=this.b.fj(a);if(!e)return!1;f=this.V();if(!f.fa&&-1===f.d.indexOf(e))return!1;if(this.L)for(a=e.type.Aa,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Kh(e),this.Sc(),!0}else if(e.type===this)return f.Kh(e),this.Sc(),!0;return!1},d.gi=function(){return!0},d.er=function(){return!0},b.Ym=function(a,b){var c=this.Va;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
D(c[a])&&(c[a]=D(b)?b:b.toString())},b.uq=function(a,b){var c=this.Va;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):D(c[a])&&(c[a]=D(b)?c[a]+b:c[a]+b.toString())},b.tr=function(a,b){var c=this.Va;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},b.Lw=function(a,b){this.Va[a]=b?1:0},b.Vw=function(a){this.Va[a]=1-this.Va[a]},b.Fq=function(){this.b.Le(this)},b.Tq||(b.Tq=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.wj(this,b,!0);this.ie&&this.ie();if(this.H)for(a=0,b=this.H.length;a<
b;++a)c=this.H[a],c.ie&&c.ie()}),v.jw=function(a){var b=a.sf.d.length,c,d,e;c=0;for(d=this.b.Vc.length;c<d;c++)e=this.b.Vc[c],a.sf.L?0<=e.type.Aa.indexOf(a.sf)&&b++:e.type===a.sf&&b++;a.wa(b)},v.Fw=function(a){a.wa(a.sf.V().rc().length)},v.Ww=function(a){a.wa(this.uid)},v.kw=function(a){a.wa(this.Zg())},v.xq||(v.xq=function(a){a.kc(JSON.stringify(this.b.um(this,!0)))}));a&&(d.qw=function(){return this.visible},b.ji=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ka=!0)},d.gw=function(a,b){return dc(lb(100*
this.opacity),a,b)},b.Ow=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ka=!0)},v.Opacity=function(a){a.A(lb(100*this.opacity))});c&&(d.mw=function(a){return a?this.i===a:!1},d.Ew=function(a){var b=this.V(),c=b.rc();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.i.index>e.i.index||d.i.index===e.i.index&&d.rd()>e.rd())e=d}else if(d.i.index<e.i.index||d.i.index===e.i.index&&d.rd()<e.rd())e=d;b.Kh(e);return!0},b.yw=function(){var a=
this.i,b=a.d;b.length&&b[b.length-1]===this||(a.sg(this,!1),a.Lg(this,!1),this.b.ka=!0)},b.ww=function(){var a=this.i,b=a.d;b.length&&b[0]===this||(a.sg(this,!1),a.Zu(this),this.b.ka=!0)},b.xw=function(a){a&&a!=this.i&&(this.i.sg(this,!0),this.i=a,a.Lg(this,!0),this.b.ka=!0)},b.Yw=function(a,b){var c=0===a;if(b){var d=b.Bt(this);d&&d.uid!==this.uid&&(this.i.index!==d.i.index&&(this.i.sg(this,!0),this.i=d.i,d.i.Lg(this,!0)),this.i.Au(this,d,c),this.b.ka=!0)}},v.sw=function(a){a.wa(this.i.Xo)},v.rw=
function(a){a.kc(this.i.name)},v.Xw=function(a){a.wa(this.rd())});e&&(b.kr=function(a,b){if(this.b.r){var c=this.type.el(b);if(!(0>c)){var d=1===a;this.ge[c]!==d&&(this.ge[c]=d,this.gd(),this.b.ka=!0)}}},b.Mw=function(a,b,c){if(this.b.r){var d=this.type.el(a);0>d||(a=this.type.I[d],d=this.Ea[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.r.Kt(a.Pa,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.lc&&(this.b.ka=!0))))}})};Jb=function(){this.Dk=this.Ak=!0;this.type.qi=!0;this.b.ka=!0;var g,m,p=this.Bk;g=0;for(m=
p.length;g<m;++g)p[g](this);this.i.yc&&this.ta()};Kb=function(g){g&&this.Bk.push(g)};Mb=function(){if(this.Ak){var g=this.Ba,m=this.Kb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.$b*this.width,-this.ac*this.height);this.k?(g.offset(-this.x,-this.y),m.Kp(g,this.k),m.offset(this.x,this.y),m.kn(g)):m.Uh(g);g.normalize();this.Ak=!1;this.Qv()}};var g=new ua(0,0,0,0);Nb=function(){if(this.i.yc){var l=this.i.qb,m=this.Ba;g.set(l.Gb(m.left),l.Hb(m.top),l.Gb(m.right),l.Hb(m.bottom));
this.Pb.Ug(g)||(this.Pb.right<this.Pb.left?l.update(this,null,g):l.update(this,this.Pb,g),this.Pb.Qg(g),this.i.cd=!0)}};Ob=function(){if(this.Dk&&this.Gd){this.ta();var l=this.type.Ci,m=this.Ba;g.set(l.Gb(m.left),l.Hb(m.top),l.Gb(m.right),l.Hb(m.bottom));this.ne.Ug(g)||(this.ne.right<this.ne.left?l.update(this,null,g):l.update(this,this.ne,g),this.ne.Qg(g),this.Dk=!1)}};Lb=function(g,m){return this.Ba.Cb(g,m)&&this.Kb.Cb(g,m)?this.ca&&!this.ca.Vf()?(this.ca.Gf(this.width,this.height,this.k),this.ca.Cb(g-
this.x,m-this.y)):!0:!1};Fb=function(){this.type.ik();return this.hf};Pb=function(){this.i.Mm();return this.hd};Qb=function(){W(this.Z);var g,m,p,t=!0;g=0;for(m=this.ge.length;g<m;g++)this.ge[g]&&(p=this.type.I[g],this.Z.push(p),p.Jc||(t=!1));this.rq=!!this.Z.length;this.Wd=t};Gb=function(){return"Inst"+this.up};sb=function(g){if(g&&g.cc&&g.type!=this){var m,p,t;m=0;for(p=g.siblings.length;m<p;m++)if(t=g.siblings[m],t.type==this)return t}g=this.V().rc();return g.length?g[0]:null};tb=function(g){var m=
this.V().rc();return m.length?m[g.Zg()%m.length]:null};rb=function(){if(this.yg&&!this.L){var g,m;g=0;for(m=this.d.length;g<m;g++)this.d[g].hf=g;var p=g,t=this.b.Vc;g=0;for(m=t.length;g<m;++g)t[g].type===this&&(t[g].hf=p++);this.yg=!1}};Db=function(g){if(g<this.d.length)return this.d[g];g-=this.d.length;var m=this.b.Vc,p,t;p=0;for(t=m.length;p<t;++p)if(m[p].type===this){if(0===g)return m[p];--g}return null};ub=function(){return this.Yd[this.md]};vb=function(){this.md++;this.md===this.Yd.length?this.Yd.push(new qb(this)):
(this.Yd[this.md].fa=!0,W(this.Yd[this.md].N))};wb=function(){this.md++;this.md===this.Yd.length&&this.Yd.push(new qb(this));var g=this.Yd[this.md],m=this.Yd[this.md-1];m.fa?(g.fa=!0,W(g.N)):(g.fa=!1,Aa(g.d,m.d),Aa(g.N,m.N))};xb=function(){this.md--};yb=function(g){var m,p,t,q,f,a=0;if(!this.L)for(m=0,p=this.Aa.length;m<p;m++)for(f=this.Aa[m],t=0,q=f.Ca.length;t<q;t++){if(g===f.Ca[t].name)return this.F.lastBehIndex=a,f.Ca[t];a++}m=0;for(p=this.Ca.length;m<p;m++){if(g===this.Ca[m].name)return this.F.lastBehIndex=
a,this.Ca[m];a++}return null};Ab=function(g){return this.bj(g)?this.F.lastBehIndex:-1};Bb=function(g){var m,p;m=0;for(p=this.I.length;m<p;m++)if(this.I[m].name===g)return m;return-1};Cb=function(){if(this.cc&&!this.L){var g,m,p,t,q,f,a;this.ik();f=this.V();var c=f.fa,e=(g=this.b.bb())&&g.ab&&g.ab.Fc;g=0;for(m=this.Yb.length;g<m;g++)if(q=this.Yb[g],q!==this&&(q.ik(),a=q.V(),a.fa=c,!c)){W(a.d);p=0;for(t=f.d.length;p<t;++p)a.d[p]=q.gl(f.d[p].hf);if(e)for(W(a.N),p=0,t=f.N.length;p<t;++p)a.N[p]=q.gl(f.N[p].hf)}}};
Eb=function(){return"Type"+this.S};dc=function(g,m,p){if("undefined"===typeof g||"undefined"===typeof p)return!1;switch(m){case 0:return g===p;case 1:return g!==p;case 2:return g<p;case 3:return g<=p;case 4:return g>p;case 5:return g>=p;default:return!1}}})();
var mc={inverse:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float intensity;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec3 inverse = vec3(front.a - front.rgb);\ngl_FragColor = vec4(mix(front.rgb, inverse, intensity), front.a);\n}",Pi:0,Qi:0,Mk:!1,Jc:!0,yk:!1,K:[["intensity",0,1]]}};function pc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return X.hasOwnProperty(a)&&X[a].length?X[a][0].qc():w.destination}function m(){return w.createGain?w.createGain():w.createGainNode()}function p(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function t(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function q(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function f(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function a(a,b,c,d,e,f){this.type="filter";this.$c=[a,b,c,d,e,f];this.U=m();this.G=m();this.G.gain.value=f;this.D=m();this.D.gain.value=1-f;this.La=w.createBiquadFilter();this.La.type="number"===typeof this.La.type?a:yc[a];this.La.frequency.value=b;this.La.detune&&(this.La.detune.value=c);this.La.Q.value=d;this.La.gain.value=e;this.U.connect(this.La);this.U.connect(this.D);this.La.connect(this.G)}function c(a,b,c){this.type="delay";this.$c=[a,b,c];this.U=m();this.G=m();this.G.gain.value=c;this.D=
m();this.D.gain.value=1-c;this.Eh=m();this.Bc=p(a);this.Bc.delayTime.value=a;this.Ki=m();this.Ki.gain.value=b;this.U.connect(this.Eh);this.U.connect(this.D);this.Eh.connect(this.G);this.Eh.connect(this.Bc);this.Bc.connect(this.Ki);this.Ki.connect(this.Eh)}function e(a,b,c,d){this.type="convolve";this.$c=[b,c,d];this.U=m();this.G=m();this.G.gain.value=c;this.D=m();this.D.gain.value=1-c;this.Ue=w.createConvolver();a&&(this.Ue.normalize=b,this.Ue.buffer=a);this.U.connect(this.Ue);this.U.connect(this.D);
this.Ue.connect(this.G)}function d(a,b,c,d,e){this.type="flanger";this.$c=[a,b,c,d,e];this.U=m();this.D=m();this.D.gain.value=1-e/2;this.G=m();this.G.gain.value=e/2;this.Ti=m();this.Ti.gain.value=d;this.Bc=p(a+b);this.Bc.delayTime.value=a;this.hb=w.createOscillator();this.hb.frequency.value=c;this.ic=m();this.ic.gain.value=b;this.U.connect(this.Bc);this.U.connect(this.D);this.Bc.connect(this.G);this.Bc.connect(this.Ti);this.Ti.connect(this.Bc);this.hb.connect(this.ic);this.ic.connect(this.Bc.delayTime);
t(this.hb)}function b(a,b,c,d,e,f){this.type="phaser";this.$c=[a,b,c,d,e,f];this.U=m();this.D=m();this.D.gain.value=1-f/2;this.G=m();this.G.gain.value=f/2;this.La=w.createBiquadFilter();this.La.type="number"===typeof this.La.type?7:"allpass";this.La.frequency.value=a;this.La.detune&&(this.La.detune.value=b);this.La.Q.value=c;this.hb=w.createOscillator();this.hb.frequency.value=e;this.ic=m();this.ic.gain.value=d;this.U.connect(this.La);this.U.connect(this.D);this.La.connect(this.G);this.hb.connect(this.ic);
this.ic.connect(this.La.frequency);t(this.hb)}function v(a){this.type="gain";this.$c=[a];this.X=m();this.X.gain.value=a}function k(a,b){this.type="tremolo";this.$c=[a,b];this.X=m();this.X.gain.value=1-b/2;this.hb=w.createOscillator();this.hb.frequency.value=a;this.ic=m();this.ic.gain.value=b/2;this.hb.connect(this.ic);this.ic.connect(this.X.gain);t(this.hb)}function r(a,b){this.type="ringmod";this.$c=[a,b];this.U=m();this.G=m();this.G.gain.value=b;this.D=m();this.D.gain.value=1-b;this.Rh=m();this.Rh.gain.value=
0;this.hb=w.createOscillator();this.hb.frequency.value=a;this.hb.connect(this.Rh.gain);t(this.hb);this.U.connect(this.Rh);this.U.connect(this.D);this.Rh.connect(this.G)}function u(a,b,c,d,e){this.type="distortion";this.$c=[a,b,c,d,e];this.U=m();this.Mj=m();this.Lj=m();this.xv(c,Math.pow(10,d/20));this.G=m();this.G.gain.value=e;this.D=m();this.D.gain.value=1-e;this.nk=w.createWaveShaper();this.Ii=new Float32Array(65536);this.xt(a,b);this.nk.Ii=this.Ii;this.U.connect(this.Mj);this.U.connect(this.D);
this.Mj.connect(this.nk);this.nk.connect(this.Lj);this.Lj.connect(this.G)}function y(a,b,c,d,e){this.type="compressor";this.$c=[a,b,c,d,e];this.X=w.createDynamicsCompressor();try{this.X.threshold.value=a,this.X.knee.value=b,this.X.ratio.value=c,this.X.attack.value=d,this.X.release.value=e}catch(f){}}function h(a,b){this.type="analyser";this.$c=[a,b];this.X=w.createAnalyser();this.X.fftSize=a;this.X.smoothingTimeConstant=b;this.ut=new Float32Array(this.X.frequencyBinCount);this.Np=new Uint8Array(a);
this.Jh=0}function n(){this.da=null;this.xj=0}function x(a,b){this.src=a;this.O=I;this.Dc=b;this.pi=!1;var c=this;this.Sl=this.am=null;this.qg=[];this.Vj=0;this.Pm=this.Ri=this.Tp=this.Hj=!1;1===I&&b&&!Pa&&(this.O=0,this.am=m());this.Ed=this.aa=null;var d;switch(this.O){case 0:this.aa=new Audio;this.aa.crossOrigin="anonymous";this.aa.addEventListener("canplaythrough",function(){c.Pm=!0});1===I&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Tp=!0,this.aa.addEventListener("canplay",
function(){c.Sl||(c.Sl=w.createMediaElementSource(c.aa),c.Sl.connect(c.am))}));this.aa.autoplay=!1;this.aa.mx="auto";this.aa.src=a;break;case 1:z.oh?z.Cn(a,function(a){c.Ed=a;c.un()},function(){c.Ri=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Ed=d.response;c.un()},d.onerror=function(){c.Ri=!0},d.send());break;case 2:this.aa=!0;break;case 3:this.aa=!0}}function H(a,b){var c=this;this.tag=b;this.ib=this.qd=!0;this.src=a.src;this.buffer=a;this.O=I;
this.Dc=a.Dc;this.playbackRate=1;this.Sf=!0;this.ec=this.vc=!1;this.Qb=0;this.ph=this.Xf=this.vd=!1;this.volume=1;this.Zl=function(a){if(!c.ec&&!c.vc){var b=this;b||(b=a.target);b===c.oi&&(c.Sf=!0,c.ib=!0,O=c.tag,z.trigger(pc.prototype.n.hi,V))}};this.oi=null;this.Tf=1===Q&&!this.Dc||2===Q;this.kg=1;this.startTime=this.Tf?z.eb.T:z.ae.T;this.Na=this.Ta=null;this.xd=!1;this.ob=null;this.ip=this.hp=this.gp=this.fp=this.kp=this.jp=0;this.j=null;var d=!1;1!==this.O||0!==this.buffer.O||this.buffer.Tp||
(this.O=0);switch(this.O){case 0:this.Dc?(this.j=a.aa,d=!a.pi,a.pi=!0):(this.j=new Audio,this.j.crossOrigin="anonymous",this.j.autoplay=!1,this.j.src=a.aa.src,d=!0);d&&this.j.addEventListener("ended",function(){O=c.tag;c.ib=!0;z.trigger(pc.prototype.n.hi,V)});break;case 1:this.Ta=m();this.Ta.connect(l(b));1===this.buffer.O?a.aa&&(this.j=w.createBufferSource(),this.j.buffer=a.aa,this.j.connect(this.Ta)):(this.j=this.buffer.aa,this.buffer.am.connect(this.Ta),this.buffer.pi||(this.buffer.pi=!0,this.buffer.aa.addEventListener("ended",
function(){O=c.tag;c.ib=!0;z.trigger(pc.prototype.n.hi,V)})));break;case 2:this.j=new window.Media(N+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Sf=!0,c.ib=!0,O=c.tag,z.trigger(pc.prototype.n.hi,V))});break;case 3:this.j=!0}}function B(a){W(za);if(a.length){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],mb(a,d.tag)&&za.push(d)}else F&&!F.gf()&&(W(za),za[0]=F)}function K(a,b){X.hasOwnProperty(a)?X[a].push(b):X[a]=[b];var c,d,e,f,h=w.destination;if(X.hasOwnProperty(a)&&(e=X[a],e.length))for(h=
e[0].qc(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.zc(w.destination):f.zc(e[c+1].qc());B(a);c=0;for(d=za.length;c<d;c++)za[c].iv(h);Ha&&zb===a&&(Ha.disconnect(),Ha.connect(h))}function U(){}function P(){}var E=pc.prototype;E.Fb=function(a){this.za=a;this.b=a.b};E.Fb.prototype.ya=function(){};var z=null,V=null,O="",N="",I=0,w=null,C=[],A=[],F=null,L=!1,Q=0,R=!1,G=1,J=0,S=0,ra=!1,T=1,sa=1,la=10,Ga=1E4,xc=1,Ha=null,zb="",Qa=!1,Ra=[],Pa=!1,X={},yc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");
a.prototype.zc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};a.prototype.remove=function(){this.U.disconnect();this.La.disconnect();this.G.disconnect();this.D.disconnect()};a.prototype.qc=function(){return this.U};c.prototype.zc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};c.prototype.remove=function(){this.U.disconnect();this.Eh.disconnect();this.Bc.disconnect();this.Ki.disconnect();this.G.disconnect();this.D.disconnect()};
c.prototype.qc=function(){return this.U};e.prototype.zc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};e.prototype.remove=function(){this.U.disconnect();this.Ue.disconnect();this.G.disconnect();this.D.disconnect()};e.prototype.qc=function(){return this.U};d.prototype.zc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};d.prototype.remove=function(){this.U.disconnect();this.Bc.disconnect();this.hb.disconnect();this.ic.disconnect();
this.D.disconnect();this.G.disconnect();this.Ti.disconnect()};d.prototype.qc=function(){return this.U};b.prototype.zc=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};b.prototype.remove=function(){this.U.disconnect();this.La.disconnect();this.hb.disconnect();this.ic.disconnect();this.D.disconnect();this.G.disconnect()};b.prototype.qc=function(){return this.U};v.prototype.zc=function(a){this.X.disconnect();this.X.connect(a)};v.prototype.remove=function(){this.X.disconnect()};
v.prototype.qc=function(){return this.X};k.prototype.zc=function(a){this.X.disconnect();this.X.connect(a)};k.prototype.remove=function(){this.hb.disconnect();this.ic.disconnect();this.X.disconnect()};k.prototype.qc=function(){return this.X};r.prototype.zc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};r.prototype.remove=function(){this.hb.disconnect();this.Rh.disconnect();this.U.disconnect();this.G.disconnect();this.D.disconnect()};r.prototype.qc=function(){return this.U};
u.prototype.xv=function(a,b){.01>a&&(a=.01);this.Mj.gain.value=a;this.Lj.gain.value=Math.pow(1/a,.6)*b};u.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};u.prototype.xt=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Ii[32768+f]=e,this.Ii[32768-f-1]=-e};u.prototype.zc=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};
u.prototype.remove=function(){this.U.disconnect();this.Mj.disconnect();this.nk.disconnect();this.Lj.disconnect();this.G.disconnect();this.D.disconnect()};u.prototype.qc=function(){return this.U};y.prototype.zc=function(a){this.X.disconnect();this.X.connect(a)};y.prototype.remove=function(){this.X.disconnect()};y.prototype.qc=function(){return this.X};h.prototype.rb=function(){this.X.getFloatFrequencyData(this.ut);this.X.getByteTimeDomainData(this.Np);for(var a=this.X.fftSize,b=0,c=this.Jh=0,d=0;b<
a;b++)d=(this.Np[b]-128)/128,0>d&&(d=-d),this.Jh<d&&(this.Jh=d),c+=d*d;this.Jh=g(this.Jh);g(Math.sqrt(c/a))};h.prototype.zc=function(a){this.X.disconnect();this.X.connect(a)};h.prototype.remove=function(){this.X.disconnect()};h.prototype.qc=function(){return this.X};n.prototype.Sh=function(a){this.da=a};n.prototype.ij=function(){return!!this.da};n.prototype.rb=function(){};var hb=!1;x.prototype.kv=function(){var a,b,c,d;c=a=0;for(b=A.length;a<b;++a)d=A[a],A[c]=d,d.buffer===this?d.stop():++c;A.length=
c;this.Ed=this.aa=null};x.prototype.un=function(){if(!this.aa&&this.Ed){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Ed,function(b){a.aa=b;a.Ed=null;var c,d,e;if(ga(a.Ij)||R)ga(a.Ei)||(c=a.Ei.Ue,c.normalize=a.Wo,c.buffer=b);else if(a.qg.length){c=0;for(d=a.qg.length;c<d;c++){b=a.qg[c];e=new H(a,b.$p);e.ym(!0);if("undefined"!==typeof b.Yo&&(b.da=z.fj(b.Yo),!b.da))continue;if(b.da){var f=Va(b.da.x,b.da.y,-b.da.i.Ua(),J,S,!0),h=Va(b.da.x,b.da.y,-b.da.i.Ua(),J,S,!1);e.xm(f,h,Fa(b.da.k-b.da.i.Ua()),
b.rl,b.Vl,b.Xl);e.Sh(b.da)}else e.xm(b.x,b.y,b.Ir,b.rl,b.Vl,b.Xl);e.play(a.Pl,a.Om,a.Vj);a.Hj&&e.pause();A.push(e)}W(a.qg)}else e=new H(a,a.Ij||""),e.play(a.Pl,a.Om,a.Vj),a.Hj&&e.pause(),A.push(e)},function(){a.Ri=!0});else if(this.aa=w.createBuffer(this.Ed,!1),this.Ed=null,ga(this.Ij)||R)ga(this.Ei)||(b=this.Ei.Ue,b.normalize=this.Wo,b.buffer=this.aa);else{var b=new H(this,this.Ij);b.play(this.Pl,this.Om,this.Vj);this.Hj&&b.pause();A.push(b)}}};x.prototype.$n=function(){switch(this.O){case 0:var a=
4<=this.aa.readyState;a&&(this.Pm=!0);return a||this.Pm;case 1:return!!this.Ed||!!this.aa;case 2:return!0;case 3:return!0}return!1};x.prototype.ou=function(){switch(this.O){case 0:return this.$n();case 1:return!!this.aa;case 2:return!0;case 3:return!0}return!1};x.prototype.cu=function(){switch(this.O){case 0:return!!this.aa.error;case 1:return this.Ri}return!1};H.prototype.gf=function(){switch(this.O){case 0:return this.j.ended;case 1:return 1===this.buffer.O?!this.qd&&!this.ib&&this.j.loop||this.ec?
!1:this.Sf:this.j.ended;case 2:return this.Sf;case 3:!0}return!0};H.prototype.Wr=function(){return this.qd||this.ib?!0:this.gf()};H.prototype.ym=function(a){1===I&&(!this.xd&&a?this.Ta&&(this.Na||(this.Na=w.createPanner(),this.Na.panningModel="number"===typeof this.Na.panningModel?T:["equalpower","HRTF","soundfield"][T],this.Na.distanceModel="number"===typeof this.Na.distanceModel?sa:["linear","inverse","exponential"][sa],this.Na.refDistance=la,this.Na.maxDistance=Ga,this.Na.rolloffFactor=xc),this.Ta.disconnect(),
this.Ta.connect(this.Na),this.Na.connect(l(this.tag)),this.xd=!0):this.xd&&!a&&this.Ta&&(this.Na.disconnect(),this.Ta.disconnect(),this.Ta.connect(l(this.tag)),this.xd=!1))};H.prototype.xm=function(a,b,c,d,e,f){this.xd&&1===I&&(this.Na.setPosition(a,b,0),this.Na.setOrientation(Math.cos(Y(c)),Math.sin(Y(c)),0),this.Na.coneInnerAngle=d,this.Na.coneOuterAngle=e,this.Na.coneOuterGain=f,this.jp=a,this.kp=b,this.fp=c,this.gp=d,this.hp=e,this.ip=f)};H.prototype.Sh=function(a){this.xd&&1===I&&(this.ob||(this.ob=
new n),this.ob.Sh(a))};H.prototype.rb=function(a){if(this.xd&&1===I&&this.ob&&this.ob.ij()&&this.mh()){this.ob.rb(a);a=this.ob.da;var b=Va(a.x,a.y,-a.i.Ua(),J,S,!0),c=Va(a.x,a.y,-a.i.Ua(),J,S,!1);this.Na.setPosition(b,c,0);b=0;"undefined"!==typeof this.ob.da.k&&(b=a.k-a.i.Ua(),this.Na.setOrientation(Math.cos(b),Math.sin(b),0))}};H.prototype.play=function(a,b,c,d){var e=this.j;this.vd=a;this.volume=b;c=c||0;d=d||0;switch(this.O){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*G&&(e.volume=
b*G);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(f){}if(this.Dc&&Qa&&!z.Cc)Ra.push(this);else try{this.j.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.kg=1;if(1===this.buffer.O)this.Ta.gain.value=b*G,this.qd||(this.j=w.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ta)),this.j.onended=this.Zl,this.oi=this.j,this.j.loop=
a,this.Sf=!1,0===c?t(this.j,d):q(this.j,c,this.df(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*G;if(e.currentTime!==c)try{e.currentTime=c}catch(g){}this.Dc&&Qa&&!z.Cc?Ra.push(this):e.play()}break;case 2:(!this.qd&&this.ib||0!==c)&&e.seekTo(c);e.play();this.Sf=!1;break;case 3:z.Ob?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Tf?z.eb.T:z.ae.T)-c;this.ec=this.ib=this.qd=!1};H.prototype.stop=function(){switch(this.O){case 0:this.j.paused||
this.j.pause();break;case 1:1===this.buffer.O?f(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:z.Ob&&AppMobi.context.stopSound(this.src)}this.ib=!0;this.ec=!1};H.prototype.pause=function(){if(!(this.qd||this.ib||this.gf()||this.ec)){switch(this.O){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.O?(this.Qb=this.il(!0),this.vd&&(this.Qb=this.Qb%this.df()),this.ec=!0,f(this.j)):this.j.paused||this.j.pause();break;case 2:this.j.pause();break;case 3:z.Ob&&
AppMobi.context.stopSound(this.src)}this.ec=!0}};H.prototype.ov=function(){if(!(this.qd||this.ib||this.gf())&&this.ec){switch(this.O){case 0:this.j.play();break;case 1:1===this.buffer.O?(this.j=w.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ta),this.j.onended=this.Zl,this.oi=this.j,this.j.loop=this.vd,this.Ta.gain.value=G*this.volume*this.kg,this.jk(),this.startTime=(this.Tf?z.eb.T:z.ae.T)-this.Qb/(this.playbackRate||.001),q(this.j,this.Qb,this.df())):this.j.play();break;
case 2:this.j.play();break;case 3:z.Ob&&AppMobi.context.resumeSound(this.src)}this.ec=!1}};H.prototype.seek=function(a){if(!(this.qd||this.ib||this.gf()))switch(this.O){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.O)this.ec?this.Qb=a:(this.pause(),this.Qb=a,this.ov());else try{this.j.currentTime=a}catch(c){}break;case 3:z.Ob&&AppMobi.context.seekSound(this.src,a)}};H.prototype.iv=function(a){1===this.O&&(this.xd?(this.Na.disconnect(),this.Na.connect(a)):(this.Ta.disconnect(),
this.Ta.connect(a)))};H.prototype.df=function(){var a=0;switch(this.O){case 0:"undefined"!==typeof this.j.duration&&(a=this.j.duration);break;case 1:a=this.buffer.aa.duration;break;case 2:a=this.j.getDuration();break;case 3:z.Ob&&(a=AppMobi.context.getDurationSound(this.src))}return a};H.prototype.il=function(a){var b=this.df(),c=0;switch(this.O){case 0:"undefined"!==typeof this.j.currentTime&&(c=this.j.currentTime);break;case 1:if(1===this.buffer.O){if(this.ec)return this.Qb;c=(this.Tf?z.eb.T:z.ae.T)-
this.startTime}else"undefined"!==typeof this.j.currentTime&&(c=this.j.currentTime);break;case 3:z.Ob&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.vd&&c>b&&(c=b);return c};H.prototype.mh=function(){return!this.ec&&!this.qd&&!this.ib&&!this.gf()};H.prototype.Dv=function(){return!this.qd&&!this.ib&&!this.gf()};H.prototype.Ov=function(){var a=this.volume*G;isFinite(a)||(a=0);switch(this.O){case 0:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=
a);break;case 1:1===this.buffer.O?this.Ta.gain.value=a*this.kg:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a)}};H.prototype.Ni=function(a){switch(this.O){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:1===this.buffer.O?(this.kg=a?0:1,this.Ta.gain.value=G*this.volume*this.kg):this.j.muted!==!!a&&(this.j.muted=!!a)}};H.prototype.zv=function(){this.Xf=!0;this.Ni(this.Xf||this.ph)};H.prototype.Gp=function(a){this.ph=!!a;this.Ni(this.Xf||this.ph)};H.prototype.jk=function(){var a=
this.playbackRate;this.Tf&&(a*=z.Ag);switch(this.O){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.O?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};H.prototype.Bv=function(a){switch(this.O){case 0:a?this.mh()?(this.vc=!0,this.j.pause()):this.vc=!1:this.vc&&(this.j.play(),this.vc=!1);break;case 1:a?this.mh()?(this.vc=!0,1===this.buffer.O?(this.Qb=this.il(!0),this.vd&&(this.Qb=this.Qb%this.df()),f(this.j)):
this.j.pause()):this.vc=!1:this.vc&&(1===this.buffer.O?(this.j=w.createBufferSource(),this.j.buffer=this.buffer.aa,this.j.connect(this.Ta),this.j.onended=this.Zl,this.oi=this.j,this.j.loop=this.vd,this.Ta.gain.value=G*this.volume*this.kg,this.jk(),this.startTime=(this.Tf?z.eb.T:z.ae.T)-this.Qb/(this.playbackRate||.001),q(this.j,this.Qb,this.df())):this.j.play(),this.vc=!1);break;case 2:a?this.mh()?(this.j.pause(),this.vc=!0):this.vc=!1:this.vc&&(this.vc=!1,this.j.play())}};E.kb=function(a){function b(){if(!ra&&
w.createBuffer){var a=w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);t(c)}}this.type=a;z=this.b=a.b;V=this;this.gc=null;this.wh=-600;this.b.oh&&(Pa=!0);!(this.b.rh||this.b.jj&&(this.b.gh||this.b.kj))||this.b.hh||this.b.Fa||this.b.zl||Pa||(Qa=!0);w=null;"undefined"!==typeof AudioContext?(I=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(I=1,w=new webkitAudioContext);this.b.rh&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:
"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));Qa?document.addEventListener("touchend",function(){!hb&&w&&(b(),hb=!0);var a,c,d;if(Qa){if(!R)for(a=0,c=Ra.length;a<c;++a)d=Ra[a],d.ib||d.ec||d.j.play();W(Ra)}},!0):Pa&&document.addEventListener("touchend",function(){!hb&&w&&(b(),hb=!0)},!0);1!==I&&(this.b.td&&"undefined"!==typeof window.Media?I=2:this.b.Zn&&(I=3));2===I&&(N=location.href,a=N.lastIndexOf("/"),-1<a&&(N=N.substr(0,a+1)),N=N.replace("file://",""));if(this.b.qu&&this.b.ru&&
"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.Le(this);else{if(this.b.Ob)L=this.b.jj;else try{L=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){L=!1}this.b.dk(this)}};var oa=E.kb.prototype;oa.ya=function(){this.b.Ff=this;Q=this.P[0];this.Ud=this.P[1];this.Ru=0!==this.P[2];this.Uo=0;T=this.P[3];sa=this.P[4];this.wh=-this.P[5];la=this.P[6];Ga=this.P[7];xc=this.P[8];this.gc=
new n;var a=this.b.C||this.b.width,b=this.b.B||this.b.height;1===I&&(w.listener.setPosition(a/2,b/2,this.wh),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ha&&Ha.disconnect();zb=b.toLowerCase();Ha=w.createMediaStreamSource(a);Ha.connect(l(zb))});this.b.Kr(function(a){V.Lu(a)});var c=this;this.b.cn(function(a){c.Gu(a)})};oa.Gu=function(a){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.ob&&d.ob.da===a&&(d.ob.da=null,d.xd&&d.mh()&&d.vd&&d.stop());this.gc.da===a&&(this.gc.da=
null)};oa.Rb=function(){var a={silent:R,masterVolume:G,listenerZ:this.wh,listenerUid:this.gc.ij()?this.gc.da.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,h,g;c=0;for(d=A.length;c<d;c++)e=A[c],!e.Dv()||3===this.Ud||e.Dc&&1===this.Ud||!e.Dc&&2===this.Ud||(f=e.il(),e.vd&&(f=f%e.df()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Dc,playbackTime:f,volume:e.volume,looping:e.vd,muted:e.Xf,playbackRate:e.playbackRate,paused:e.ec,resume_position:e.Qb},e.xd&&(f.pan={},g=f.pan,e.ob&&e.ob.ij()?g.objUid=
e.ob.da.uid:(g.x=e.jp,g.y=e.kp,g.a=e.fp),g.ia=e.gp,g.oa=e.hp,g.og=e.ip),b.push(f));b=a.effects;for(h in X)if(X.hasOwnProperty(h)){e=[];c=0;for(d=X[h].length;c<d;c++)e.push({type:X[h][c].type,params:X[h][c].$c});b[h]=e}return a};var Sa=[];oa.tc=function(f){var g=f.silent;G=f.masterVolume;this.wh=f.listenerZ;this.gc.Sh(null);var m=f.listenerUid;-1!==m&&(this.gc.xj=m,Sa.push(this.gc));var m=f.playing,l,p,q,t,x,B,H,N,z,w,C;if(3!==this.Ud)for(l=0,p=A.length;l<p;l++)z=A[l],z.Dc&&1===this.Ud||(z.Dc||2!==
this.Ud)&&z.stop();for(x in X)if(X.hasOwnProperty(x))for(l=0,p=X[x].length;l<p;l++)X[x][l].remove();Za(X);for(x in f.effects)if(f.effects.hasOwnProperty(x))for(B=f.effects[x],l=0,p=B.length;l<p;l++)switch(q=B[l].type,w=B[l].params,q){case "filter":K(x,new a(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":K(x,new c(w[0],w[1],w[2]));break;case "convolve":q=w[2];z=this.aj(q,!1);z.aa?q=new e(z.aa,w[0],w[1],q):(q=new e(null,w[0],w[1],q),z.Wo=w[0],z.Ei=q);K(x,q);break;case "flanger":K(x,new d(w[0],w[1],
w[2],w[3],w[4]));break;case "phaser":K(x,new b(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":K(x,new v(w[0]));break;case "tremolo":K(x,new k(w[0],w[1]));break;case "ringmod":K(x,new r(w[0],w[1]));break;case "distortion":K(x,new u(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":K(x,new y(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":K(x,new h(w[0],w[1]))}l=0;for(p=m.length;l<p;l++)3===this.Ud||(f=m[l],q=f.buffersrc,t=f.is_music,x=f.tag,B=f.playbackTime,H=f.looping,N=f.volume,C=(w=f.pan)&&
w.hasOwnProperty("objUid")?w.objUid:-1,t&&1===this.Ud)||!t&&2===this.Ud||((z=this.Jn(q,x,t,H,N))?(z.Qb=f.resume_position,z.ym(!!w),z.play(H,N,B),z.jk(),z.Ov(),z.Ni(z.Xf||z.ph),f.paused&&z.pause(),f.muted&&z.zv(),z.Ni(z.Xf||z.ph),w&&(-1!==C?(z.ob=z.ob||new n,z.ob.xj=C,Sa.push(z.ob)):z.xm(w.x,w.y,w.a,w.ia,w.oa,w.og))):(z=this.aj(q,t),z.Vj=B,z.Hj=f.paused,w&&(-1!==C?z.qg.push({Yo:C,rl:w.ia,Vl:w.oa,Xl:w.og,$p:x}):z.qg.push({x:w.x,y:w.y,Ir:w.a,rl:w.ia,Vl:w.oa,Xl:w.og,$p:x}))));if(g&&!R){l=0;for(p=A.length;l<
p;l++)A[l].Gp(!0);R=!0}else if(!g&&R){l=0;for(p=A.length;l<p;l++)A[l].Gp(!1);R=!1}};oa.ie=function(){var a,b,c,d;a=0;for(b=Sa.length;a<b;a++)c=Sa[a],d=this.b.fj(c.xj),c.Sh(d),c.xj=-1,d&&(J=d.x,S=d.y);W(Sa)};oa.Lu=function(a){if(!this.Ru){!a&&w&&w.resume&&(w.resume(),ra=!1);var b,c;b=0;for(c=A.length;b<c;b++)A[b].Bv(a);a&&w&&w.suspend&&(w.suspend(),ra=!0)}};oa.rb=function(){var a=this.b.We,b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.rb(a),0!==Q&&d.jk();var e,f;for(e in X)if(X.hasOwnProperty(e))for(d=
X[e],b=0,c=d.length;b<c;b++)f=d[b],f.rb&&f.rb();1===I&&this.gc.ij()&&(this.gc.rb(a),J=this.gc.da.x,S=this.gc.da.y,w.listener.setPosition(this.gc.da.x,this.gc.da.y,this.wh))};var Ta=[];oa.Av=function(a){var b,c,d,e,f,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&L||!f&&!L)Ta.push({filename:e,size:d,da:null}),h+=d;return h};oa.Gv=function(){var a,b,c,d;a=0;for(b=Ta.length;a<b;++a)c=Ta[a],d=this.b.Xk+c.filename,c.da=this.aj(d,!1)};oa.Ht=function(){var a=
0,b,c,d;b=0;for(c=Ta.length;b<c;++b)d=Ta[b],d.da.ou()||d.da.cu()||this.b.Fa||this.b.kj?a+=d.size:d.da.$n()&&(a+=Math.floor(d.size/2));return a};oa.lv=function(){var a,b,c,d;c=a=0;for(b=C.length;a<b;++a)d=C[a],C[c]=d,d.Dc?d.kv():++c;C.length=c};oa.aj=function(a,b){var c,d,e,f=null;c=0;for(d=C.length;c<d;c++)if(e=C[c],e.src===a){f=e;break}f||(Pa&&b&&this.lv(),f=new x(a,b),C.push(f));return f};oa.Jn=function(a,b,c,d,e){var f,h,g;f=0;for(h=A.length;f<h;f++)if(g=A[f],g.src===a&&(g.Wr()||c))return g.tag=
b,g;a=this.aj(a,c);if(!a.aa)return"<preload>"!==b&&(a.Ij=b,a.Pl=d,a.Om=e),null;g=new H(a,b);A.push(g);return g};var za=[];U.prototype.hi=function(a){return mb(O,a)};E.n=new U;P.prototype.Play=function(a,b,c,d){!R&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),F=this.Jn(this.b.Xk+a[0]+(L?".ogg":".m4a"),d,a[1],0!==b,c))&&(F.ym(!1),F.play(0!==b,c,0,this.Uo),this.Uo=0)};P.prototype.sr=function(a){B(a);var b;a=0;for(b=za.length;a<b;a++)za[a].stop()};E.R=new P;E.Ia=new function(){}})();
var qc=!1;
try{!function(){var g,l,m;!function(){var p={},t={};g=function(g,f,a){p[g]={gs:f,Vr:a}};m=l=function(g){function f(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(m.Zw=p,t[g])return t[g];if(t[g]={},!p[g])throw Error("Could not find module "+g);for(var a,c=p[g],e=c.gs,c=c.Vr,d=[],b=0,v=e.length;v>b;b++)"exports"===e[b]?d.push(a={}):d.push(l(f(e[b])));e=c.apply(this,d);return t[g]=
a||e}}();g("promise/all",["./utils","exports"],function(g,l){var m=g.isArray,f=g.isFunction;l.all=function(a){if(!m(a))throw new TypeError("You must pass an array to all.");return new this(function(c,e){function d(a){return function(b){g[a]=b;0===--k&&c(g)}}var b,g=[],k=a.length;0===k&&c([]);for(var l=0;l<a.length;l++)(b=a[l])&&f(b.then)?b.then(d(l),e):(g[l]=b,0===--k&&c(g))})}});g("promise/asap",["exports"],function(g){function l(){return function(){process.kx(a)}}function m(){var b=0,c=new d(a),
e=document.createTextNode("");return c.observe(e,{characterData:!0}),function(){e.data=b=++b%2}}function f(){return function(){b.setTimeout(a,1)}}function a(){for(var a=0;a<v.length;a++){var b=v[a];(0,b[0])(b[1])}v=[]}var c,e="undefined"!=typeof window?window:{},d=e.MutationObserver||e.WebKitMutationObserver,b="undefined"!=typeof global?global:void 0===this?window:this,v=[];c="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?l():d?m():f();g.Nr=function(a,b){1===v.push([a,
b])&&c()}});g("promise/config",["exports"],function(g){var l={jx:!1};g.rn=l;g.Zr=function(g,f){return 2!==arguments.length?l[g]:void(l[g]=f)}});g("promise/polyfill",["./promise","./utils","exports"],function(g,l,m){var f=g.Promise,a=l.isFunction;m.Su=function(){var c;c="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in c&&"resolve"in c.Promise&&"reject"in c.Promise&&"all"in c.Promise&&"race"in c.Promise&&function(){var e;return new c.Promise(function(a){e=
a}),a(e)}()||(c.Promise=f)}});g("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(g,l,m,f,a,c,e,d){function b(a){if(!P(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof b))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.mi=[];v(a,this)}function v(a,b){function c(a){h(b,
a)}function d(a){x(b,a)}try{a(c,d)}catch(e){d(e)}}function k(a,b,c,d){var e,f,g,k,n=P(c);if(n)try{e=c(d),g=!0}catch(l){k=!0,f=l}else e=d,g=!0;y(b,e)||(n&&g?h(b,e):k?x(b,f):a===V?h(b,e):a===O&&x(b,e))}function r(a,b,c,d){a=a.mi;var e=a.length;a[e]=b;a[e+V]=c;a[e+O]=d}function u(a,b){for(var c,d,e=a.mi,f=a.li,g=0;g<e.length;g+=3)c=e[g],d=e[g+b],k(b,c,d,f);a.mi=null}function y(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(U(b)&&(d=b.then,
P(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?h(a,d):n(a,d)))},function(b){return c?!0:(c=!0,void x(a,b))}),!0}catch(e){return c?!0:(x(a,e),!0)}return!1}function h(a,b){a===b?n(a,b):y(a,b)||n(a,b)}function n(a,b){a.Cd===E&&(a.Cd=z,a.li=b,K.async(H,a))}function x(a,b){a.Cd===E&&(a.Cd=z,a.li=b,K.async(B,a))}function H(a){u(a,a.Cd=V)}function B(a){u(a,a.Cd=O)}var K=g.rn,U=(g.Zr,l.Bu),P=l.isFunction;g=(l.now,m.all);f=f.race;a=a.resolve;c=c.reject;K.async=e.Nr;var E=void 0,z=0,V=1,O=2;
b.prototype={constructor:b,Cd:void 0,li:void 0,mi:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Cd){var e=arguments;K.async(function(){k(c.Cd,d,e[c.Cd-1],c.li)})}else r(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};b.all=g;b.race=f;b.resolve=a;b.reject=c;d.Promise=b});g("promise/race",["./utils","exports"],function(g,l){var m=g.isArray;l.race=function(f){if(!m(f))throw new TypeError("You must pass an array to race.");return new this(function(a,
c){for(var e,d=0;d<f.length;d++)(e=f[d])&&"function"==typeof e.then?e.then(a,c):a(e)})}});g("promise/reject",["exports"],function(g){g.reject=function(g){return new this(function(l,f){f(g)})}});g("promise/resolve",["exports"],function(g){g.resolve=function(g){return g&&"object"==typeof g&&g.constructor===this?g:new this(function(l){l(g)})}});g("promise/utils",["exports"],function(g){function l(f){return"function"==typeof f}var m=Date.now||function(){return(new Date).getTime()};g.Bu=function(f){return l(f)||
"object"==typeof f&&null!==f};g.isFunction=l;g.isArray=function(f){return"[object Array]"===Object.prototype.toString.call(f)};g.now=m});l("promise/polyfill").Su()}();var rc=function(){return function(g){function l(p){if(m[p])return m[p].od;var t=m[p]={od:{},id:p,loaded:!1};return g[p].call(t.od,t,t.od,l),t.loaded=!0,t.od}var m={};return l.Ng=g,l.Og=m,l.tn="",l(0)}([function(g,l,m){l.ki=!0;var p=function(g){function l(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function f(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(k(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var b in e)if(e.hasOwnProperty(b)&&e[b]===a)return!0;return!1}var c={},e={Fg:"asyncStorage",Gg:"localStorageWrapper",Hg:"webSQLStorage"},d="clear getItem iterate key keys length removeItem setItem".split(" "),b={description:"",Lf:[e.Fg,e.Hg,e.Gg].slice(),name:"localforage",size:4980736,ea:"keyvaluepairs",
version:1},p=function(a){var b={},c;try{var d=d||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.eu||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:d&&"function"==typeof d.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){c=!1}b[e.Fg]=!!c;var g;try{g=a.openDatabase}catch(k){g=!1}b[e.Hg]=!!g;var l;try{l=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){l=
!1}return b[e.Gg]=!!l,b}(g),k=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function g(a){if(!(this instanceof g))throw new TypeError("Cannot call a class as a function");this.Fg=e.Fg;this.Gg=e.Gg;this.Hg=e.Hg;this.tk=f({},b);this.Me=f({},this.tk,a);this.$m=this.kd=null;this.fe=!1;this.ba=null;this.an();this.Dp(this.Me.Lf)}return g.prototype.rn=function(a){if("object"==typeof a){if(this.fe)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.Me[b]=a[b];return"driver"in a&&a.Lf&&this.Dp(this.Me.Lf),!0}return"string"==typeof a?this.Me[a]:this.Me},g.prototype.Lf=function(){return this.Ig||null},g.prototype.Mn=function(b,d,e){var f=this,g=function(){if(a(b))switch(b){case f.Fg:return new Promise(function(a){a(m(1))});case f.Gg:return new Promise(function(a){a(m(2))});case f.Hg:return new Promise(function(a){a(m(4))})}else if(c[b])return Promise.resolve(c[b]);return Promise.reject(Error("Driver not found."))}();
return g.then(d,e),g},g.prototype.ready=function(a){var b=this,c=b.kd.then(function(){return null===b.fe&&(b.fe=b.$m()),b.fe});return c.then(a,a),c},g.prototype.Dp=function(a,b,c){function d(){f.Me.Lf=f.Lf()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.ba=null,f.fe=null,f.Mn(e).then(function(a){return f.Gr(a),d(),f.fe=f.vk(f.Me),f.fe})["catch"](b)}d();return f.kd=Promise.reject(Error("No available storage method found.")),f.kd}var c=0;return b()}}var f=this;
k(a)||(a=[a]);var g=this.Hr(a);return this.kd=(null!==this.kd?this.kd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=g[0];return f.ba=null,f.fe=null,f.Mn(a).then(function(a){f.Ig=a.Ig;d();f.an();f.$m=e(g)})})["catch"](function(){d();return f.kd=Promise.reject(Error("No available storage method found.")),f.kd}),this.kd.then(b,c),this.kd},g.prototype.supports=function(a){return!!p[a]},g.prototype.Gr=function(a){f(this,a)},g.prototype.Hr=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},g.prototype.an=function(){for(var a=0;a<d.length;a++)l(this,d[a])},g.prototype.Lk=function(a){return new g(a)},g}())}("undefined"!=typeof window?window:self);l["default"]=p;g.od=l["default"]},function(g,l){l.ki=!0;l["default"]=function(g){function l(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (g.BlobBuilder||g.Ng||g.tn||g.WebKitBlobBuilder),e=0;e<a.length;e+=1)d.append(a[e]);
return d.getBlob(b.type)}}function t(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 q(a){return(new Promise(function(b,c){var d=l([""],{type:"image/png"}),e=a.transaction([E],"readwrite");e.objectStore(E).put(d,
"key");e.oncomplete=function(){var d=a.transaction([E],"readwrite").objectStore(E).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);t(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};e.onerror=e.onabort=c}))["catch"](function(){return!1})}function f(a){return"boolean"==typeof U?Promise.resolve(U):q(a).then(function(a){return U=a})}function a(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({Zm:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function c(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),f=0;c>f;f++)e[f]=b.charCodeAt(f);return l([d],{type:a.type})}function e(a){var b=this,c=b.uk().then(function(){var a=P[b.ba.name];return a&&a.Jf?a.Jf:void 0});return c.then(a,a),c}function d(a){a=P[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.vn.push(b);a.Jf?a.Jf=a.Jf.then(function(){return b.promise}):
a.Jf=b.promise}function b(a){function b(){return Promise.resolve()}var c=this,d={db:null};if(a)for(var f in a)d[f]=a[f];P||(P={});var h=P[d.name];h||(h={Xi:[],db:null,Jf:null,vn:[]},P[d.name]=h);h.Xi.push(c);c.uk||(c.uk=c.ready,c.ready=e);a=[];for(f=0;f<h.Xi.length;f++){var k=h.Xi[f];k!==c&&a.push(k.uk()["catch"](b))}var n=h.Xi.slice(0);return Promise.all(a).then(function(){return d.db=h.db,v(d,!1)}).then(function(a){d.db=a;var b;b=c.tk.version;if(d.db){var e=!d.db.objectStoreNames.contains(d.ea),
f=d.version>d.db.version;(d.version<d.db.version&&(d.version!==b&&g.console.warn('The database "'+d.name+"\" can't be downgraded from version "+d.db.version+" to version "+d.version+"."),d.version=d.db.version),f||e)?(e&&(b=d.db.version+1,b>d.version&&(d.version=b)),b=!0):b=!1}else b=!0;return b?v(d,!0):a}).then(function(a){d.db=h.db=a;c.ba=d;for(a=0;a<n.length;a++){var b=n[a];b!==c&&(b.ba.db=d.db,b.ba.version=d.version)}})}function v(a,b){return new Promise(function(c,e){if(a.db){if(!b)return c(a.db);
d(a);a.db.close()}var f=[a.name];b&&f.push(a.version);var h=K.open.apply(K,f);b&&(h.onupgradeneeded=function(b){var c=h.result;try{c.createObjectStore(a.ea),1>=b.oldVersion&&c.createObjectStore(E)}catch(d){if("ConstraintError"!==d.name)throw d;g.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.ea+'" already exists.')}});h.onerror=function(){e(h.error)};h.onsuccess=function(){c(h.result);var b=P[a.name].vn.pop();
b&&b.resolve()}})}function k(a,b){var d=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){d.ready().then(function(){var f=d.ba,g=f.db.transaction(f.ea,"readonly").objectStore(f.ea).get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null);a&&a.Zm&&(a=c(a));b(a)};g.onerror=function(){e(g.error)}})["catch"](e)});return B(e,b),e}function r(a,b){var d=this,e=new Promise(function(b,e){d.ready().then(function(){var f=
d.ba,g=f.db.transaction(f.ea,"readonly").objectStore(f.ea).openCursor(),h=1;g.onsuccess=function(){var d=g.result;if(d){var e=d.value;e&&e.Zm&&(e=c(e));e=a(e,d.key,h++);void 0!==e?b(e):d["continue"]()}else b()};g.onerror=function(){e(g.error)}})["catch"](e)});return B(e,b),e}function u(b,c,d){var e=this;"string"!=typeof b&&(g.console.warn(b+" used as a key, but it is not a string."),b=String(b));var h=new Promise(function(d,g){var h;e.ready().then(function(){return h=e.ba,c instanceof Blob?f(h.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=h.db.transaction(h.ea,"readwrite"),e=c.objectStore(h.ea);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);d(a)};c.onabort=c.onerror=function(){g(f.error?f.error:f.transaction.error)};var f=e.put(a,b)})["catch"](g)});return B(h,d),h}function y(a,b){var c=this;"string"!=typeof a&&(g.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.ba,f=e.db.transaction(e.ea,"readwrite"),
g=f.objectStore(e.ea)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){d(g.error)};f.onabort=function(){d(g.error?g.error:g.transaction.error)}})["catch"](d)});return B(d,b),d}function h(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ba,e=d.db.transaction(d.ea,"readwrite"),f=e.objectStore(d.ea).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return B(c,a),c}function n(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.ba,e=d.db.transaction(d.ea,"readonly").objectStore(d.ea).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return B(c,a),c}function x(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.ba,f=!1,g=e.db.transaction(e.ea,"readonly").objectStore(e.ea).openCursor();g.onsuccess=function(){var c=g.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};g.onerror=function(){d(g.error)}})["catch"](d)});return B(d,b),d}function H(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ba,e=d.db.transaction(d.ea,"readonly").objectStore(d.ea).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 B(c,a),c}function B(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var K=K||g.indexedDB||
g.webkitIndexedDB||g.mozIndexedDB||g.eu||g.msIndexedDB;if(K){var U,P,E="local-forage-detect-blob-support";return{Ig:"asyncStorage",vk:b,io:r,getItem:k,setItem:u,removeItem:y,clear:h,length:n,key:x,keys:H}}}("undefined"!=typeof window?window:self);g.od=l["default"]},function(g,l,m){l.ki=!0;l["default"]=function(g){function l(a,c){c&&a.then(function(a){c(null,a)},function(a){c(a)})}var q=null;try{if(!(g.localStorage&&"setItem"in g.localStorage))return;q=g.localStorage}catch(f){return}return{Ig:"localStorageWrapper",
vk:function(a){var c={};if(a)for(var e in a)c[e]=a[e];return c.ud=c.name+"/",c.ea!==this.tk.ea&&(c.ud+=c.ea+"/"),this.ba=c,(new Promise(function(a){a(m(3))})).then(function(a){return c.tf=a,Promise.resolve()})},io:function(a,c){var e=this,d=e.ready().then(function(){for(var b=e.ba,c=b.ud,d=c.length,f=q.length,g=1,l=0;f>l;l++){var h=q.key(l);if(0===h.indexOf(c)){var n=q.getItem(h);if(n&&(n=b.tf.Mi(n)),n=a(n,h.substring(d),g++),void 0!==n)return n}}});return l(d,c),d},getItem:function(a,c){var e=this;
"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=e.ready().then(function(){var b=e.ba,c=q.getItem(b.ud+a);return c&&(c=b.tf.Mi(c)),c});return l(d,c),d},setItem:function(a,c,e){var d=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var b=d.ready().then(function(){void 0===c&&(c=null);var b=c;return new Promise(function(e,f){var g=d.ba;g.tf.serialize(c,function(c,d){if(d)f(d);else try{q.setItem(g.ud+
a,c),e(b)}catch(n){"QuotaExceededError"!==n.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==n.name||f(n),f(n)}})})});return l(b,e),b},removeItem:function(a,c){var e=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=e.ready().then(function(){q.removeItem(e.ba.ud+a)});return l(d,c),d},clear:function(a){var c=this,e=c.ready().then(function(){for(var a=c.ba.ud,b=q.length-1;0<=b;b--){var e=q.key(b);0===e.indexOf(a)&&q.removeItem(e)}});return l(e,a),e},length:function(a){var c=
this.keys().then(function(a){return a.length});return l(c,a),c},key:function(a,c){var e=this,d=e.ready().then(function(){var b,c=e.ba;try{b=q.key(a)}catch(d){b=null}return b&&(b=b.substring(c.ud.length)),b});return l(d,c),d},keys:function(a){var c=this,e=c.ready().then(function(){for(var a=c.ba,b=q.length,e=[],f=0;b>f;f++)0===q.key(f).indexOf(a.ud)&&e.push(q.key(f).substring(a.ud.length));return e});return l(e,a),e}}}("undefined"!=typeof window?window:self);g.od=l["default"]},function(g,l){l.ki=!0;
l["default"]=function(g){function l(a){var c,e,d,b,f;c=.75*a.length;var g=a.length,m=0;"="===a[a.length-1]&&(c--,"="===a[a.length-2]&&c--);var p=new ArrayBuffer(c),t=new Uint8Array(p);for(c=0;g>c;c+=4)e=q.indexOf(a[c]),d=q.indexOf(a[c+1]),b=q.indexOf(a[c+2]),f=q.indexOf(a[c+3]),t[m++]=e<<2|d>>4,t[m++]=(15&d)<<4|b>>2,t[m++]=(3&b)<<6|63&f;return p}function t(a){var c=new Uint8Array(a),e="";for(a=0;a<c.length;a+=3)e+=q[c[a]>>2],e+=q[(3&c[a])<<4|c[a+1]>>4],e+=q[(15&c[a+1])<<2|c[a+2]>>6],e+=q[63&c[a+2]];
return 2===c.length%3?e=e.substring(0,e.length-1)+"=":1===c.length%3&&(e=e.substring(0,e.length-2)+"=="),e}var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,c){var e="";if(a&&(e=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,b="__lfsc__:";a instanceof ArrayBuffer?(d=a,b+="arbf"):(d=a.buffer,"[object Int8Array]"===e?b+="si08":"[object Uint8Array]"===
e?b+="ui08":"[object Uint8ClampedArray]"===e?b+="uic8":"[object Int16Array]"===e?b+="si16":"[object Uint16Array]"===e?b+="ur16":"[object Int32Array]"===e?b+="si32":"[object Uint32Array]"===e?b+="ui32":"[object Float32Array]"===e?b+="fl32":"[object Float64Array]"===e?b+="fl64":c(Error("Failed to get type for BinaryArray")));c(b+t(d))}else if("[object Blob]"===e)e=new FileReader,e.onload=function(){var b="~~local_forage_type~"+a.type+"~"+t(this.result);c("__lfsc__:blob"+b)},e.readAsArrayBuffer(a);else try{c(JSON.stringify(a))}catch(f){console.error("Couldn't convert value into a JSON string: ",
a),c(null,f)}},Mi:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var c,e=a.substring(13);a=a.substring(9,13);if("blob"===a&&f.test(e)){var d=e.match(f);c=d[1];e=e.substring(d[0].length)}e=l(e);switch(a){case "arbf":return e;case "blob":var b;e=[e];c={type:c};e=e||[];c=c||{};try{b=new Blob(e,c)}catch(q){if("TypeError"!==q.name)throw q;b=new (g.BlobBuilder||g.Ng||g.tn||g.WebKitBlobBuilder);for(a=0;a<e.length;a+=1)b.append(e[a]);b=b.getBlob(c.type)}return b;case "si08":return new Int8Array(e);
case "ui08":return new Uint8Array(e);case "uic8":return new Uint8ClampedArray(e);case "si16":return new Int16Array(e);case "ur16":return new Uint16Array(e);case "si32":return new Int32Array(e);case "ui32":return new Uint32Array(e);case "fl32":return new Float32Array(e);case "fl64":return new Float64Array(e);default:throw Error("Unkown type: "+a);}},rx:l,bx:t}}("undefined"!=typeof window?window:self);g.od=l["default"]},function(g,l,m){l.ki=!0;l["default"]=function(g){function l(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(a,d){try{c.db=r(c.name,String(c.version),c.description,c.size)}catch(e){return d(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.ea+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.ba=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(m(3))})).then(function(a){return c.tf=a,e})}function q(a,b){var c=this;"string"!=typeof a&&(g.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.ba;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.ea+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.tf.Mi(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return k(d,b),d}function f(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.ba;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.ea,[],function(c,d){for(var f=d.rows,
g=f.length,h=0;g>h;h++){var k=f.item(h),n=k.value;if(n&&(n=e.tf.Mi(n)),n=a(n,k.key,h+1),void 0!==n)return void b(n)}b()},function(a,b){d(b)})})})["catch"](d)});return k(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(g.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,g=d.ba;g.tf.serialize(b,function(b,d){d?e(d):g.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+g.ea+
" (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 k(e,c),e}function c(a,b){var c=this;"string"!=typeof a&&(g.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.ba;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.ea+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return k(d,b),d}function e(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ba;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.ea,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return k(c,a),c}function d(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ba;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.ea,[],function(b,c){var d=c.rows.item(0).Og;a(d)},function(a,b){c(b)})})})["catch"](c)});return k(c,a),c}function b(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.ba;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.ea+" 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 k(d,b),d}function v(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ba;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.ea,[],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 k(c,a),c}function k(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var r=g.openDatabase;if(r)return{Ig:"webSQLStorage",vk:l,io:f,getItem:q,setItem:a,removeItem:c,clear:e,length:d,key:b,keys:v}}("undefined"!=typeof window?window:self);g.od=l["default"]}])};"object"==typeof exports&&"object"==typeof module?module.od=rc():"function"==typeof define&&define.ax?define([],rc):"object"==typeof exports?exports.localforage=rc():this.localforage=
rc()}catch(sc){qc=!0}function tc(g){this.b=g}
(function(){function g(){}function l(){}function m(){}var p="",t="",q="";"undefined"!==typeof window.is_scirra_arcade&&(q="sa"+window.scirra_arcade_id+"_");var f=tc.prototype;f.Fb=function(a){this.za=a;this.b=a.b};f.Fb.prototype.ya=function(){};f.kb=function(a){this.type=a;this.b=a.b};var a=f.kb.prototype;a.ya=function(){this.dm=this.em=0};a.ng=function(){};a.Rb=function(){return{}};a.tc=function(){};g.prototype.fr=function(a){return p===a};g.prototype.$q=function(){return!0};g.prototype.Tm=function(a){return p===
a};g.prototype.Zq=function(){return!0};g.prototype.ii=function(){return!0};g.prototype.Wq=function(){return!0};g.prototype.Vq=function(){return!0};f.n=new g;l.prototype.mr=function(a,e){if(qc)this.b.trigger(tc.prototype.n.ii,this);else{var d=q+a;this.em++;var b=this;localforage.setItem(d,e,function(d,e){b.em--;d?b.b.trigger(tc.prototype.n.ii,b):(p=a,t=e,b.b.trigger(tc.prototype.n.$q,b),b.b.trigger(tc.prototype.n.fr,b),t=p="");0===b.em&&b.b.trigger(tc.prototype.n.Wq,b)})}};l.prototype.Iq=function(a){if(qc)this.b.trigger(tc.prototype.n.ii,
this);else{var e=q+a;this.dm++;var d=this;localforage.getItem(e,function(b,e){d.dm--;if(b)d.b.trigger(tc.prototype.n.ii,d);else{p=a;t=e;if("undefined"===typeof t||null===t)t="";d.b.trigger(tc.prototype.n.Zq,d);d.b.trigger(tc.prototype.n.Tm,d);t=p=""}0===d.dm&&d.b.trigger(tc.prototype.n.Vq,d)})}};f.R=new l;m.prototype.Qq=function(a){a.Ip(t)};f.Ia=new m})();function uc(g){this.b=g}
(function(){function g(){}function l(){}var m=uc.prototype;m.Fb=function(g){this.za=g;this.b=g.b};m.Fb.prototype.ya=function(){};m.kb=function(g){this.type=g;this.b=g.b;this.Qe=Array(4);this.dq=this.gk=this.zf=this.De=this.Ce=0;this.nl=!1};var p=m.kb.prototype;p.ya=function(){var g=this;if(!this.b.Fa){jQuery(document).mousemove(function(a){g.Iu(a)});jQuery(document).mousedown(function(a){g.Hu(a)});jQuery(document).mouseup(function(a){g.Ju(a)});jQuery(document).dblclick(function(a){g.Fu(a)});var f=
function(a){g.Mu(a)};document.addEventListener("mousewheel",f,!1);document.addEventListener("DOMMouseScroll",f,!1)}};var t={left:0,top:0};p.Iu=function(g){var f=this.b.Fa?t:jQuery(this.b.canvas).offset();this.Ce=g.pageX-f.left;this.De=g.pageY-f.top};p.Ro=function(){return 0<this.b.Nb?!0:0<=this.Ce&&0<=this.De&&this.Ce<this.b.width&&this.De<this.b.height};p.Hu=function(g){this.Ro()&&(this.Qe[g.which]=!0,this.b.Cc=!0,this.b.trigger(uc.prototype.n.Sm,this),this.zf=g.which-1,this.gk=0,this.b.trigger(uc.prototype.n.pk,
this),this.b.trigger(uc.prototype.n.rk,this),this.b.Cc=!1)};p.Ju=function(g){this.Qe[g.which]&&(this.b.Qn&&!this.b.ue&&g.preventDefault(),this.b.Qn=!0,this.Qe[g.which]=!1,this.b.Cc=!0,this.zf=g.which-1,this.b.trigger(uc.prototype.n.Wm,this),this.b.Cc=!1)};p.Fu=function(g){this.Ro()&&(g.preventDefault(),this.b.Cc=!0,this.zf=g.which-1,this.gk=1,this.b.trigger(uc.prototype.n.pk,this),this.b.trigger(uc.prototype.n.rk,this),this.b.Cc=!1)};p.Mu=function(g){this.dq=0>(g.wheelDelta?g.wheelDelta:g.detail?
-g.detail:0)?0:1;this.nl=!1;this.b.Cc=!0;this.b.trigger(uc.prototype.n.ir,this);this.b.Cc=!1;this.nl&&nb(g)&&g.preventDefault()};p.pg=function(){var g,f;g=0;for(f=this.Qe.length;g<f;++g)this.Qe[g]&&(this.Qe[g]=!1,this.zf=g-1,this.b.trigger(uc.prototype.n.Wm,this))};g.prototype.pk=function(g,f){return g===this.zf&&f===this.gk};g.prototype.Sm=function(){return!0};g.prototype.Nq=function(g){return this.Qe[g+1]};g.prototype.Wm=function(g){return g===this.zf};g.prototype.rk=function(g,f,a){return g!==
this.zf||f!==this.gk?!1:this.b.Jv(a,this.Ce,this.De)};g.prototype.ir=function(g){this.nl=!0;return g===this.dq};m.n=new g;m.R=new function(){};l.prototype.Er=function(g,f){var a,c,e,d,b;ga(f)?(a=this.b.Qf(0),c=a.scale,e=a.jd,d=a.Hc,b=a.k,a.scale=1,a.jd=1,a.Hc=1,a.k=0,g.A(a.Bb(this.Ce,this.De,!0)),a.scale=c,a.jd=e,a.Hc=d,a.k=b):(a=ha(f)?this.b.Qf(f):this.b.dj(f))?g.A(a.Bb(this.Ce,this.De,!0)):g.A(0)};l.prototype.Fr=function(g,f){var a,c,e,d,b;ga(f)?(a=this.b.Qf(0),c=a.scale,e=a.jd,d=a.Ic,b=a.k,a.scale=
1,a.jd=1,a.Ic=1,a.k=0,g.A(a.Bb(this.Ce,this.De,!1)),a.scale=c,a.jd=e,a.Ic=d,a.k=b):(a=ha(f)?this.b.Qf(f):this.b.dj(f))?g.A(a.Bb(this.Ce,this.De,!1)):g.A(0)};m.Ia=new l})();function oc(g){this.b=g}
(function(){function g(){if(0===this.Pk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.xg?b.drawImage(this.jb,this.lg,this.mg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.jb,0,0,this.width,this.height);this.Pk=a.toDataURL("image/png")}return this.Pk}function l(){}function m(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,c,d){b=b.uid;c=c.uid;var e=p(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=v.length?v.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function q(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(m(a[b]),delete a[b])}function f(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return k=a[b][2],!0;k=-2;return!1}function a(){}var c=oc.prototype;c.Fb=function(a){this.za=a;this.b=a.b};var e=c.Fb.prototype;e.ya=function(){if(!this.L){var a,b,c,d,e,f,k,l,m;this.Rc=[];this.bh=!1;a=0;for(b=this.Xb.length;a<b;a++){e=this.Xb[a];k={};k.name=e[0];k.speed=e[1];k.loop=e[2];k.om=e[3];
k.pm=e[4];k.np=e[5];k.S=e[6];k.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],l={},l.Yp=f[0],l.Zp=f[1],l.lg=f[2],l.mg=f[3],l.width=f[4],l.height=f[5],l.duration=f[6],l.$b=f[7],l.ac=f[8],l.sl=f[9],l.Jj=f[10],l.op=f[11],l.xg=0!==l.width,l.Pk="",l.hx=g,m={left:0,top:0,right:1,bottom:1},l.zm=m,l.be=null,(m=this.b.qt(f[0]))?l.jb=m:(l.jb=new Image,l.jb.bs=f[0],l.jb.as=f[1],l.jb.Tr=null,this.b.Xv(l.jb,f[0])),k.frames.push(l),this.Rc.push(l);this.Xb[a]=k}}};e.oq=function(){var a,b,c;a=0;for(b=this.d.length;a<
b;a++)c=this.d[a],c.Gi=c.$a.be};e.Yl=function(){if(!this.L){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],c.jb.Tr=null,c.be=null;this.bh=!1;this.oq()}};e.dp=function(){if(!this.L&&this.d.length){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],c.be=this.b.r.vo(c.jb,this.b.Ja,c.op);this.oq()}};e.wu=function(){if(!this.L&&!this.bh&&this.b.r){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],c.be=this.b.r.vo(c.jb,this.b.Ja,c.op);this.bh=!0}};e.kq=function(){if(!this.L&&!this.d.length&&
this.bh){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],this.b.r.deleteTexture(c.be),c.be=null;this.bh=!1}};var d=[];e.rp=function(a){var b,c,e;W(d);b=0;for(c=this.Rc.length;b<c;++b)e=this.Rc[b].jb,-1===d.indexOf(e)&&(a.drawImage(e,0,0),d.push(e))};c.kb=function(a){this.type=a;this.b=a.b;a=this.type.Xb[0].frames[0].Jj;this.Kc?this.ca.Vh(a):this.ca=new fb(a)};var b=c.kb.prototype;b.ya=function(){this.visible=0===this.P[0];this.Gd=0!==this.P[3];this.xa=this.In(this.P[1])||this.type.Xb[0];this.u=
this.P[2];0>this.u&&(this.u=0);this.u>=this.xa.frames.length&&(this.u=this.xa.frames.length-1);var a=this.xa.frames[this.u];this.ca.Vh(a.Jj);this.$b=a.$b;this.ac=a.ac;this.Hf=this.xa.speed;this.pe=this.xa.pm;1===this.type.Xb.length&&1===this.type.Xb[0].frames.length||0===this.Hf||this.b.dk(this);this.Kc?this.ld.reset():this.ld=new db;this.Ld=this.ld.T;this.Oe=!0;this.Dd=0;this.Ne=!0;this.Hk=this.en="";this.Xr=0;this.Gk=-1;this.type.wu();var b,c,d,e,f,g,k,a=0;for(b=this.type.Xb.length;a<b;a++)for(e=
this.type.Xb[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.jb.width,f.height=f.jb.height),f.xg&&(k=f.jb,g=f.zm,g.left=f.lg/k.width,g.top=f.mg/k.height,g.right=(f.lg+f.width)/k.width,g.bottom=(f.mg+f.height)/k.height,0===f.lg&&0===f.mg&&f.width===k.width&&f.height===k.height&&(f.xg=!1));this.$a=this.xa.frames[this.u];this.Gi=this.$a.be};b.Rb=function(){var a={a:this.xa.S,f:this.u,cas:this.Hf,fs:this.Ld,ar:this.Dd,at:this.ld.T,rt:this.pe};this.Oe||(a.ap=this.Oe);this.Ne||(a.af=
this.Ne);return a};b.tc=function(a){var b=this.yt(a.a);b&&(this.xa=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.xa.frames.length&&(this.u=this.xa.frames.length-1);this.Hf=a.cas;this.Ld=a.fs;this.Dd=a.ar;this.ld.reset();this.ld.T=a.at;this.Oe=a.hasOwnProperty("ap")?a.ap:!0;this.Ne=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.pe=a.rt:this.pe=this.xa.pm;this.$a=this.xa.frames[this.u];this.Gi=this.$a.be;this.ca.Vh(this.$a.Jj);this.$b=this.$a.$b;this.ac=this.$a.ac};b.zk=function(a){this.u=
a?0:this.xa.frames.length-1;this.Oe=!1;this.en=this.xa.name;this.b.trigger(oc.prototype.n.Yq,this);this.b.trigger(oc.prototype.n.Xq,this);this.Dd=0};b.Ng=function(){return this.ld.T};b.rb=function(){this.ld.add(this.b.cl(this));this.Hk.length&&this.js();0<=this.Gk&&this.ks();var a=this.ld.T,b=this.xa,c=b.frames[this.u],d=c.duration/this.Hf;this.Oe&&a>=this.Ld+d&&(this.Ne?this.u++:this.u--,this.Ld+=d,this.u>=b.frames.length&&(b.np?(this.Ne=!1,this.u=b.frames.length-2):b.loop?this.u=this.pe:(this.Dd++,
this.Dd>=b.om?this.zk(!1):this.u=this.pe)),0>this.u&&(b.np?(this.u=1,this.Ne=!0,b.loop||(this.Dd++,this.Dd>=b.om&&this.zk(!0))):b.loop?this.u=this.pe:(this.Dd++,this.Dd>=b.om?this.zk(!0):this.u=this.pe)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.Ld+b.frames[this.u].duration/this.Hf&&(this.Ld=a),a=b.frames[this.u],this.Df(c,a),this.b.ka=!0)};b.In=function(a){var b,c,d;b=0;for(c=this.type.Xb.length;b<c;b++)if(d=this.type.Xb[b],mb(d.name,a))return d;return null};b.yt=
function(a){var b,c,d;b=0;for(c=this.type.Xb.length;b<c;b++)if(d=this.type.Xb[b],d.S===a)return d;return null};b.js=function(){var a=this.xa.frames[this.u],b=this.In(this.Hk);this.Hk="";!b||mb(b.name,this.xa.name)&&this.Oe||(this.xa=b,this.Hf=b.speed,this.pe=b.pm,0>this.u&&(this.u=0),this.u>=this.xa.frames.length&&(this.u=this.xa.frames.length-1),1===this.Xr&&(this.u=0),this.Oe=!0,this.Ld=this.ld.T,this.Ne=!0,this.Df(a,this.xa.frames[this.u]),this.b.ka=!0)};b.ks=function(){var a=this.xa.frames[this.u],
b=this.u;this.u=M(this.Gk);0>this.u&&(this.u=0);this.u>=this.xa.frames.length&&(this.u=this.xa.frames.length-1);b!==this.u&&(this.Df(a,this.xa.frames[this.u]),this.Ld=this.ld.T,this.b.ka=!0);this.Gk=-1};b.Df=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.$b=b.$b;this.ac=b.ac;this.ca.Vh(b.Jj);this.Y();this.$a=b;this.Gi=b.be;c=0;for(d=this.H.length;c<d;c++)e=this.H[c],e.Ku&&e.Ku(a,b);this.b.trigger(oc.prototype.n.Df,this)};b.nd=function(a){a.globalAlpha=
this.opacity;var b=this.$a,c=b.xg,d=b.jb,e=this.x,f=this.y,g=this.width,k=this.height;if(0===this.k&&0<=g&&0<=k)e-=this.$b*g,f-=this.ac*k,this.b.Td&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.lg,b.mg,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.Td&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,m=0<k?1:-1;a.translate(e,f);1===l&&1===m||a.scale(l,m);a.rotate(this.k*l*m);e=0-this.$b*ka(g);f=0-this.ac*ka(k);c?a.drawImage(d,b.lg,b.mg,b.width,b.height,e,f,ka(g),ka(k)):
a.drawImage(d,e,f,ka(g),ka(k));a.restore()}};b.Kf=function(a){this.oc(a)};b.oc=function(a){a.wc(this.Gi);a.ug(this.opacity);var b=this.$a,c=this.Kb;if(this.b.Td){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.xg?a.Ge(c.sb+d,c.tb+e,c.Tb+d,c.Ub+e,c.Lb+d,c.Mb+e,c.Ib+d,c.Jb+e,b.zm):a.Ph(c.sb+d,c.tb+e,c.Tb+d,c.Ub+e,c.Lb+d,c.Mb+e,c.Ib+d,c.Jb+e)}else b.xg?a.Ge(c.sb,c.tb,c.Tb,c.Ub,c.Lb,c.Mb,c.Ib,c.Jb,b.zm):a.Ph(c.sb,c.tb,c.Tb,c.Ub,c.Lb,c.Mb,c.Ib,c.Jb)};b.Dt=function(a){var b=this.$a,c,d;c=
0;for(d=b.sl.length;c<d;c++)if(mb(a,b.sl[c][0]))return c;return-1};b.fl=function(a,b){var c=this.$a,d=c.sl,e;D(a)?e=this.Dt(a):e=a-1;e=M(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.$b)*this.width,d=d[e][2],d=(d-c.ac)*this.height,c=Math.cos(this.k);e=Math.sin(this.k);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var v=[],k=-2,r=[];l.prototype.dr=function(a){if(!a)return!1;var b=this.b,c=b.cj(),d=c.type,e=null;c.F.collmemory?e=c.F.collmemory:(e={},c.F.collmemory=e);
c.F.spriteCreatedDestroyCallback||(c.F.spriteCreatedDestroyCallback=!0,b.cn(function(a){var b=c.F.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(m(b[d]),delete b[d])}));var g=d.V(),l=a.V(),g=g.rc(),p,u,v,y,O,N,I,w=this.b.ed,C=w-1,A=b.bb().ab;for(u=0;u<g.length;u++){v=g[u];l.fa?(v.ta(),this.b.Kn(v.i,a,v.Ba,r),p=r):p=l.rc();for(y=0;y<p.length;y++)O=p[y],b.wf(v,O)||b.Yr(v,O)?(N=f(e,v,O),N=!N||k<C,t(e,v,O,w),N&&(b.Oh(A.ga),N=d.V(),I=a.V(),N.fa=!1,I.fa=!1,d===
a?(N.d.length=2,N.d[0]=v,N.d[1]=O,d.Sc()):(N.d.length=1,I.d.length=1,N.d[0]=v,I.d[0]=O,d.Sc(),a.Sc()),A.qm(),b.Fe(A.ga))):q(e,v,O);W(r)}return!1};var u=new ca,y=!1;new ua(0,0,0,0);e.finish=function(a){if(y){if(a){var b=this.b.bb().ab.Fc;a=null.V();var c=u.Ke(),d,e;if(a.fa){a.fa=!1;W(a.d);d=0;for(e=c.length;d<e;++d)a.d[d]=c[d];if(b)for(W(a.N),d=0,e=null.d.length;d<e;++d)c=null.d[d],u.contains(c)||a.N.push(c)}else if(b)for(b=a.d.length,d=0,e=c.length;d<e;++d)a.d[b+d]=c[d],Da(a.N,c[d]);else Aa(a.d,c);
null.Sc()}u.clear();y=!1}};l.prototype.Xq=function(a){return mb(this.en,a)};l.prototype.Yq=function(){return!0};l.prototype.Df=function(){return!0};c.n=new l;c.R=new function(){};a.prototype.Lq=function(a){a.A(this.$a.width)};c.Ia=new a})();function vc(g){this.b=g}
(function(){function g(){return a.length?a.pop():{}}function l(c){var e,d;e=0;for(d=c.length;e<d;e++)a.push(c[e]);W(c)}function m(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function p(){}var t=vc.prototype;t.ya=function(){t.R.rr=function(a){this.width!==a&&(this.width=a,this.yf=!0,this.Y())}};t.Fb=function(a){this.za=a;this.b=a.b};var q=t.Fb.prototype;q.ya=function(){};q.Yl=function(){if(!this.L){var a,e,d;a=0;for(e=this.d.length;a<e;a++)d=this.d[a],d.wd=null,d.rf=
null,d.hc=null}};t.kb=function(a){this.type=a;this.b=a.b;this.Kc?W(this.ye):this.ye=[];this.yf=!0};q=t.kb.prototype;q.ya=function(){this.text=this.P[0];this.visible=0===this.P[1];this.font=this.P[2];this.color=this.P[3];this.hj=this.P[4];this.lk=this.P[5];this.Qm=0===this.P[7];this.Il=this.qj=this.width;this.pj=this.height;this.Kl=this.P[8];this.Wi=this.Nf="";this.Wp=this.Xp=this.Mh=0;this.Pu();this.hc=this.rf=this.wd=null;this.To=!1;this.vh=this.b.ed;this.Kc?this.rg.set(0,0,1,1):this.rg=new ua(0,
0,1,1);this.b.r&&this.b.dk(this)};q.Pu=function(){var a=this.font.split(" "),e;for(e=0;e<a.length;e++)if("pt"===a[e].substr(a[e].length-2,2)){this.Mh=parseInt(a[e].substr(0,a[e].length-2));this.km=Math.ceil(this.Mh/72*96)+4;0<e&&(this.Wi=a[e-1]);this.Nf=a[e+1];for(e+=2;e<a.length;e++)this.Nf+=" "+a[e];break}};q.Rb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.hj,va:this.lk,wr:this.Qm,lho:this.Kl,fn:this.Nf,fs:this.Wi,ps:this.Mh,pxh:this.km,tw:this.Xp,th:this.Wp,lrt:this.vh}};q.tc=
function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.hj=a.ha;this.lk=a.va;this.Qm=a.wr;this.Kl=a.lho;this.Nf=a.fn;this.Wi=a.fs;this.Mh=a.ps;this.km=a.pxh;this.Xp=a.tw;this.Wp=a.th;this.vh=a.lrt;this.yf=!0;this.Il=this.qj=this.width;this.pj=this.height};q.rb=function(){if(this.b.r&&this.hc&&300<=this.b.ed-this.vh){var a=this.i;this.ta();var e=this.Ba;if(e.right<a.ma||e.bottom<a.ja||e.left>a.ra||e.top>a.qa)this.b.r.deleteTexture(this.hc),this.wd=this.rf=this.hc=null}};q.ng=function(){this.wd=
this.rf=null;this.b.r&&this.hc&&this.b.r.deleteTexture(this.hc);this.hc=null};q.Ng=function(){this.font=this.Wi+" "+this.Mh.toString()+"pt "+this.Nf;this.yf=!0;this.b.ka=!0};q.nd=function(a,e){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=e?1:this.opacity;var d=1;e&&(d=Math.abs(this.i.Zb()),a.save(),a.scale(d,d));if(this.yf||this.width!==this.Il)this.type.za.Cr(this.text,this.ye,a,this.width,this.Qm),this.yf=!1,this.Il=this.width;this.ta();var d=e?0:this.Kb.sb,b=e?0:this.Kb.tb;
this.b.Td&&(d=d+.5|0,b=b+.5|0);0===this.k||e||(a.save(),a.translate(d,b),a.rotate(this.k),b=d=0);var f=b+this.height,g=this.km,g=g+this.Kl,l,m;1===this.lk?b+=Math.max(this.height/2-this.ye.length*g/2,0):2===this.lk&&(b+=Math.max(this.height-this.ye.length*g-2,0));for(m=0;m<this.ye.length&&!(l=d,1===this.hj?l=d+(this.width-this.ye[m].width)/2:2===this.hj&&(l=d+(this.width-this.ye[m].width)),a.fillText(this.ye[m].text,l,b),b+=g,b>=f-g);m++);(0!==this.k||e)&&a.restore();this.vh=this.b.ed};q.oc=function(a){if(!(1>
this.width||1>this.height)){var e=this.yf||this.To;this.To=!1;var d=this.i.Zb(),b=this.i.Ua(),f=this.rg,g=d*this.width,l=d*this.height,m=Math.ceil(g),p=Math.ceil(l),h=Math.abs(m),n=Math.abs(p),q=this.b.C/2,t=this.b.B/2;this.rf||(this.wd=document.createElement("canvas"),this.wd.width=h,this.wd.height=n,this.qj=h,this.pj=n,e=!0,this.rf=this.wd.getContext("2d"));if(h!==this.qj||n!==this.pj)this.wd.width=h,this.wd.height=n,this.hc&&(a.deleteTexture(this.hc),this.hc=null),e=!0;e&&(this.rf.clearRect(0,
0,h,n),this.nd(this.rf,!0),this.hc||(this.hc=a.nc(h,n,this.b.Ja,this.b.ue)),a.Tv(this.wd,this.hc,this.b.ue));this.qj=h;this.pj=n;a.wc(this.hc);a.ug(this.opacity);a.Lc();a.translate(-q,-t);a.xc();var B=this.Kb,e=this.i.pa(B.sb,B.tb,!0,!0),h=this.i.pa(B.sb,B.tb,!1,!0),n=this.i.pa(B.Tb,B.Ub,!0,!0),q=this.i.pa(B.Tb,B.Ub,!1,!0),t=this.i.pa(B.Lb,B.Mb,!0,!0),K=this.i.pa(B.Lb,B.Mb,!1,!0),U=this.i.pa(B.Ib,B.Jb,!0,!0),B=this.i.pa(B.Ib,B.Jb,!1,!0);if(this.b.Td||0===this.k&&0===b)var P=(e+.5|0)-e,E=(h+.5|0)-
h,e=e+P,h=h+E,n=n+P,q=q+E,t=t+P,K=K+E,U=U+P,B=B+E;0===this.k&&0===b?(n=e+m,q=h,t=n,K=h+p,U=e,B=K,f.right=1,f.bottom=1):(f.right=g/m,f.bottom=l/p);a.Ge(e,h,n,q,t,K,U,B,f);a.Lc();a.scale(d,d);a.Sj(-this.i.Ua());a.translate((this.i.ma+this.i.ra)/-2,(this.i.ja+this.i.qa)/-2);a.xc();this.vh=this.b.ed}};var f=[];t.xr=function(a){W(f);for(var e="",d,b=0;b<a.length;)if(d=a.charAt(b),"\n"===d)e.length&&(f.push(e),e=""),f.push("\n"),++b;else if(" "===d||"\t"===d||"-"===d){do e+=a.charAt(b),b++;while(b<a.length&&
(" "===a.charAt(b)||"\t"===a.charAt(b)));f.push(e);e=""}else b<a.length&&(e+=d,b++);e.length&&f.push(e)};var a=[];t.Cr=function(a,e,d,b,f){if(a&&a.length)if(2>=b)l(e);else{if(100>=a.length&&-1===a.indexOf("\n")){var k=d.measureText(a).width;if(k<=b){l(e);e.push(g());e[0].text=a;e[0].width=k;return}}this.Dr(a,e,d,b,f)}else l(e)};t.Dr=function(c,e,d,b,l){l&&(this.xr(c),c=f);var k="",p,q,t,h=0;for(t=0;t<c.length;t++)"\n"===c[t]?(h>=e.length&&e.push(g()),k=m(k),q=e[h],q.text=k,q.width=d.measureText(k).width,
h++,k=""):(p=k,k+=c[t],q=d.measureText(k).width,q>=b&&(h>=e.length&&e.push(g()),p=m(p),q=e[h],q.text=p,q.width=d.measureText(p).width,h++,k=c[t],l||" "!==k||(k="")));k.length&&(h>=e.length&&e.push(g()),k=m(k),q=e[h],q.text=k,q.width=d.measureText(k).width,h++);for(t=h;t<e.length;t++)a.push(e[t]);e.length=h};t.n=new function(){};p.prototype.pr=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.yf=!0,this.b.ka=!0)};t.R=new p;t.Ia=new function(){}})();
function wc(g){this.b=g}
(function(){function g(){}function l(){}var m=wc.prototype;m.Fb=function(g){this.za=g;this.b=g.b};m.Fb.prototype.ya=function(){};m.kb=function(g){this.type=g;this.b=g.b};var p=m.kb.prototype;p.ya=function(){this.b.Fa?ea("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.na=document.createElement("progress"),this.value=this.P[0],this.max=this.P[1],0<this.max&&0<=this.value&&(this.na.max=this.max,this.na.value=this.value),this.na.id=this.P[4],
this.na.title=this.P[2],jQuery(this.na).appendTo(this.b.Bi?this.b.Bi:"body"),this.Ze=!1,0===this.P[3]&&(jQuery(this.na).hide(),this.visible=!1,this.Ze=!0),this.na.onclick=function(g){return function(l){l.stopPropagation();g.b.Cc=!0;g.b.trigger(wc.prototype.n.cr,g);g.b.Cc=!1}}(this),this.na.addEventListener("touchstart",function(g){g.stopPropagation()},!1),this.na.addEventListener("touchmove",function(g){g.stopPropagation()},!1),this.na.addEventListener("touchend",function(g){g.stopPropagation()},
!1),jQuery(this.na).mousedown(function(g){g.stopPropagation()}),jQuery(this.na).mouseup(function(g){g.stopPropagation()}),this.qo=this.ro=this.jo=this.no=this.po=this.lo=0,this.pq(!0),this.b.dk(this))};p.Rb=function(){return{v:this.na.value,m:this.na.max}};p.tc=function(g){this.na.value=g.v;this.na.max=g.m};p.ng=function(){this.b.Fa||(jQuery(this.na).remove(),this.na=null)};p.rb=function(){this.pq()};p.pq=function(g){if(!this.b.Fa){var l=this.i.pa(this.x,this.y,!0),f=this.i.pa(this.x,this.y,!1),a=
this.i.pa(this.x+this.width,this.y+this.height,!0),c=this.i.pa(this.x+this.width,this.y+this.height,!1),e=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.i.visible||0>=a||0>=c||l>=e||f>=d?(this.Ze||jQuery(this.na).hide(),this.Ze=!0):(1>l&&(l=1),1>f&&(f=1),a>=e&&(a=e-1),c>=d&&(c=d-1),e=window.innerWidth,d=window.innerHeight,g||this.lo!==l||this.po!==f||this.no!==a||this.jo!==c||this.ro!==e||this.qo!==d?(this.lo=l,this.po=f,this.no=a,this.jo=c,this.ro=
e,this.qo=d,this.Ze&&(jQuery(this.na).show(),this.Ze=!1),g=Math.round(l)+jQuery(this.b.canvas).offset().left,e=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.na).css("position","absolute"),jQuery(this.na).offset({left:g,top:e}),jQuery(this.na).width(Math.round(a-l)),jQuery(this.na).height(Math.round(c-f))):this.Ze&&(jQuery(this.na).show(),this.Ze=!1))}};p.nd=function(){};p.oc=function(){};g.prototype.cr=function(){return!0};g.prototype.Bq=function(g,l){return this.Fa?!1:dc(this.na.value,
g,l)};m.n=new g;l.prototype.ji=function(g){this.b.Fa||(this.visible=0!==g)};l.prototype.nr=function(g){this.b.Fa||(this.value=g,this.na.max=this.max,this.na.value=this.value)};m.R=new l;m.Ia=new function(){}})();function zc(g){this.b=g}
(function(){function g(){}var l=zc.prototype;l.Fb=function(g){this.behavior=g;this.b=g.b};l.Fb.prototype.ya=function(){};l.kb=function(g,l){this.type=g;this.behavior=g.behavior;this.W=l;this.b=g.b};var m=l.kb.prototype;m.ya=function(){var g=this.P[0];this.ni=this.P[1];this.$i=this.P[2];this.Rr=0!==this.P[3];this.wm=0!==this.P[4];this.mb=Math.cos(this.W.k)*g;this.Sa=Math.sin(this.W.k)*g;this.rj=this.W.x;this.sj=this.W.y;this.ag=this.W.k;this.fk=0;this.enabled=0!==this.P[5]};m.Rb=function(){return{acc:this.ni,
g:this.$i,dx:this.mb,dy:this.Sa,lx:this.rj,ly:this.sj,lka:this.ag,t:this.fk,e:this.enabled}};m.tc=function(g){this.ni=g.acc;this.$i=g.g;this.mb=g.dx;this.Sa=g.dy;this.rj=g.lx;this.sj=g.ly;this.ag=g.lka;this.fk=g.t;this.enabled=g.e};m.rb=function(){if(this.enabled){var g=this.b.cl(this.W),l,m;this.W.k!==this.ag&&(this.wm&&(l=Wa(0,0,this.mb,this.Sa),this.mb=Math.cos(this.W.k)*l,this.Sa=Math.sin(this.W.k)*l),this.ag=this.W.k);0!==this.ni&&(l=Wa(0,0,this.mb,this.Sa),m=0===this.mb&&0===this.Sa?this.W.k:
Ma(0,0,this.mb,this.Sa),l+=this.ni*g,0>l&&(l=0),this.mb=Math.cos(m)*l,this.Sa=Math.sin(m)*l);0!==this.$i&&(this.Sa+=this.$i*g);this.rj=this.W.x;this.sj=this.W.y;if(0!==this.mb||0!==this.Sa)if(this.W.x+=this.mb*g,this.W.y+=this.Sa*g,this.fk+=Wa(0,0,this.mb*g,this.Sa*g),this.wm&&(this.W.k=Ma(0,0,this.mb,this.Sa),this.W.Y(),this.ag=this.W.k),this.W.Y(),this.Rr&&(l=this.b.xf(this.W)))this.b.jv(this.W,l),l=Wa(0,0,this.mb,this.Sa),m=this.b.Ur(this.W,this.rj,this.sj),this.mb=Math.cos(m)*l,this.Sa=Math.sin(m)*
l,this.W.x+=this.mb*g,this.W.y+=this.Sa*g,this.W.Y(),this.wm&&(this.ag=this.W.k=m,this.W.Y()),this.b.gv(this.W,this.mb/l,this.Sa/l,Math.max(2.5*l*g,30))||this.b.hv(this.W)}};l.n=new function(){};g.prototype.or=function(g){var l=Ma(0,0,this.mb,this.Sa);this.mb=Math.cos(l)*g;this.Sa=Math.sin(l)*g};g.prototype.lr=function(g){this.enabled=1===g};l.R=new g;l.Ia=new function(){}})();
function nc(){return[tc,uc,wc,oc,vc,pc,zc,Z.prototype.n.Um,Z.prototype.R.vq,oc.prototype.R.kr,Z.prototype.n.Pq,oc.prototype.n.Aq,uc.prototype.n.rk,oc.prototype.R.Ym,Z.prototype.n.jr,Z.prototype.R.Eq,oc.prototype.Ia.Lq,Z.prototype.Ia.random,Z.prototype.Ia.Wv,oc.prototype.Ia.Kq,Z.prototype.Ia.Uv,pc.prototype.R.Play,wc.prototype.R.ji,Z.prototype.n.Hq,wc.prototype.R.uq,wc.prototype.R.nr,wc.prototype.n.Bq,wc.prototype.R.Ym,oc.prototype.n.dr,oc.prototype.R.Fq,pc.prototype.R.sr,Z.prototype.n.yr,Z.prototype.R.Ar,
oc.prototype.R.tr,oc.prototype.n.Dq,Z.prototype.R.Jq,Z.prototype.n.Sq,Z.prototype.n.Cq,Z.prototype.R.Uq,uc.prototype.n.pk,uc.prototype.n.Nq,vc.prototype.R.pr,Z.prototype.R.qr,Z.prototype.Ia.pn,Z.prototype.Ia.Vv,oc.prototype.Ia.Br,zc.prototype.R.lr,Z.prototype.R.ur,tc.prototype.R.mr,zc.prototype.R.or,uc.prototype.n.Sm,tc.prototype.R.Iq,tc.prototype.n.Tm,tc.prototype.Ia.Qq,vc.prototype.R.ji,oc.prototype.R.ji]};
