// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,x,da,fa,ga,G,ha,ia,ja,ka,la,I,ma,pa,R,sa,ta,ua,va,S,wa,za,Aa,Ba,Ca,U,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,V,Sb,Tb={},Ub={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,d,g,e){this.set(a,d,g,e)}function q(){this.Ab=this.zb=this.Db=this.Cb=this.Ob=this.Nb=this.ib=this.hb=0}function m(a,d,g,e){a<d?g<e?(r=a<g?a:g,l=d>e?d:e):(r=a<e?a:e,l=d>g?d:g):g<e?(r=d<g?d:g,l=a>e?a:e):(r=d<e?d:e,l=a>g?a:g)}function n(){this.items=this.gd=null;this.bh=0;qa&&(this.gd=new Set);this.og=[];this.Zd=!0}function u(a){A[P++]=a}function k(){this.R=this.Kj=this.y=this.dk=0}function b(a){this.Sa=[];this.ci=this.ei=this.fi=this.di=0;this.Jh(a)}function a(a,d){this.hk=
a;this.gk=d;this.cells={}}function p(a,d){this.hk=a;this.gk=d;this.cells={}}function v(a,d,g){var e;return T.length?(e=T.pop(),e.Jk=a,e.x=d,e.y=g,e):new aa(a,d,g)}function d(a,d,g){this.Jk=a;this.x=d;this.y=g;this.Xa=new ba}function h(a,d,g){var e;return F.length?(e=F.pop(),e.Jk=a,e.x=d,e.y=g,e):new ca(a,d,g)}function f(a,d,g){this.Jk=a;this.x=d;this.y=g;this.Xa=[];this.Mf=!0;this.ed=new ba;this.ug=!1}function e(a,d){return a.Xc-d.Xc}x=function(a){window.console&&window.console.log&&window.console.log(a)};
da=function(a){window.console&&window.console.error&&window.console.error(a)};fa=function(a){return"undefined"===typeof a};ga=function(a){return"number"===typeof a};G=function(a){return"string"===typeof a};ha=function(a){return 0<a&&0===(a-1&a)};ia=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ja=function(a){return 0>a?-a:a};ka=function(a,d){return a<d?a:d};la=Math.PI;I=function(a){return 0<=a?a|0:(a|0)-1};ma=function(a){var d=a|0;return d===a?d:d+1};pa=function(a,d,g,e,h,f,p,y){var z,
l,b,v;a<g?(l=a,z=g):(l=g,z=a);h<p?(v=h,b=p):(v=p,b=h);if(z<v||l>b)return!1;d<e?(l=d,z=e):(l=e,z=d);f<y?(v=f,b=y):(v=y,b=f);if(z<v||l>b)return!1;z=h-a+p-g;l=f-d+y-e;a=g-a;d=e-d;h=p-h;f=y-f;y=ja(d*h-f*a);return ja(h*l-f*z)>y?!1:ja(a*l-d*z)<=y};c.prototype.set=function(a,d,g,e){this.left=a;this.top=d;this.right=g;this.bottom=e};c.prototype.yf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right-this.left};c.prototype.height=
function(){return this.bottom-this.top};c.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};c.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};c.prototype.Mt=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.Nt=function(a,d,g){return!(a.right+d<this.left||a.bottom+
g<this.top||a.left+d>this.right||a.top+g>this.bottom)};c.prototype.tb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};c.prototype.Eg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};R=c;q.prototype.Ih=function(a){this.hb=a.left;this.ib=a.top;this.Nb=a.right;this.Ob=a.top;this.Cb=a.right;this.Db=a.bottom;this.zb=a.left;this.Ab=a.bottom};q.prototype.Bp=function(a,d){if(0===d)this.Ih(a);else{var g=Math.sin(d),e=Math.cos(d),
h=a.left*g,f=a.top*g,p=a.right*g,g=a.bottom*g,y=a.left*e,z=a.top*e,l=a.right*e,e=a.bottom*e;this.hb=y-f;this.ib=z+h;this.Nb=l-f;this.Ob=z+p;this.Cb=l-g;this.Db=e+p;this.zb=y-g;this.Ab=e+h}};q.prototype.offset=function(a,d){this.hb+=a;this.ib+=d;this.Nb+=a;this.Ob+=d;this.Cb+=a;this.Db+=d;this.zb+=a;this.Ab+=d;return this};var r=0,l=0;q.prototype.kn=function(a){m(this.hb,this.Nb,this.Cb,this.zb);a.left=r;a.right=l;m(this.ib,this.Ob,this.Db,this.Ab);a.top=r;a.bottom=l};q.prototype.tb=function(a,d){var g=
this.hb,e=this.ib,h=this.Nb-g,f=this.Ob-e,p=this.Cb-g,y=this.Db-e,z=a-g,l=d-e,b=h*h+f*f,v=h*p+f*y,f=h*z+f*l,r=p*p+y*y,t=p*z+y*l,c=1/(b*r-v*v),h=(r*f-v*t)*c,b=(b*t-v*f)*c;if(0<=h&&0<b&&1>h+b)return!0;h=this.zb-g;f=this.Ab-e;b=h*h+f*f;v=h*p+f*y;f=h*z+f*l;c=1/(b*r-v*v);h=(r*f-v*t)*c;b=(b*t-v*f)*c;return 0<=h&&0<b&&1>h+b};q.prototype.Xd=function(a,d){if(d)switch(a){case 0:return this.hb;case 1:return this.Nb;case 2:return this.Cb;case 3:return this.zb;case 4:return this.hb;default:return this.hb}else switch(a){case 0:return this.ib;
case 1:return this.Ob;case 2:return this.Db;case 3:return this.Ab;case 4:return this.ib;default:return this.ib}};q.prototype.Ko=function(){return(this.hb+this.Nb+this.Cb+this.zb)/4};q.prototype.Lo=function(){return(this.ib+this.Ob+this.Db+this.Ab)/4};q.prototype.Yn=function(a){var d=a.Ko(),g=a.Lo();if(this.tb(d,g))return!0;d=this.Ko();g=this.Lo();if(a.tb(d,g))return!0;var e,h,f,p,y,z,l,b;for(l=0;4>l;l++)for(b=0;4>b;b++)if(d=this.Xd(l,!0),g=this.Xd(l,!1),e=this.Xd(l+1,!0),h=this.Xd(l+1,!1),f=a.Xd(b,
!0),p=a.Xd(b,!1),y=a.Xd(b+1,!0),z=a.Xd(b+1,!1),pa(d,g,e,h,f,p,y,z))return!0;return!1};sa=q;ta=function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g]);return a};ua=function(a,d){var g,e;d=I(d);if(!(0>d||d>=a.length)){g=d;for(e=a.length-1;g<e;g++)a[g]=a[g+1];va(a,e)}};va=function(a,d){a.length=d};S=function(a){va(a,0)};wa=function(a,d){S(a);var g,e;g=0;for(e=d.length;g<e;++g)a[g]=d[g]};za=function(a,d){a.push.apply(a,d)};Aa=function(a,d){var g,e;g=0;for(e=a.length;g<e;++g)if(a[g]===d)return g;
return-1};Ba=function(a,d){var g=Aa(a,d);-1!==g&&ua(a,g)};Ca=function(a,d,g){return a<d?d:a>g?g:a};U=function(a){return a/(180/la)};Da=function(a){return 180/la*a};Ea=function(a){a%=360;0>a&&(a+=360);return a};Fa=function(a){a%=2*la;0>a&&(a+=2*la);return a};Ga=function(a){return Ea(Da(a))};Ha=function(a){return Fa(U(a))};Ia=function(a,d,g,e){return Math.atan2(e-d,g-a)};Ja=function(a,d){if(a===d)return 0;var g=Math.sin(a),e=Math.cos(a),h=Math.sin(d),f=Math.cos(d),g=g*h+e*f;return 1<=g?0:-1>=g?la:Math.acos(g)};
Ka=function(a,d,g){var e=Math.sin(a),h=Math.cos(a),f=Math.sin(d),p=Math.cos(d);return Math.acos(e*f+h*p)>g?0<h*f-e*p?Fa(a+g):Fa(a-g):Fa(d)};La=function(a,d){var g=Math.sin(a),e=Math.cos(a),h=Math.sin(d),f=Math.cos(d);return 0>=e*h-g*f};Ma=function(a,d,g,e){a=g-a;d=e-d;return Math.sqrt(a*a+d*d)};Na=function(a,d){return!a!==!d};Oa=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Pa=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var w=+new Date;Qa=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()-w};var g=!1,t=g=!1,ea=!1;"undefined"!==typeof window&&(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),g=!g&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),ea=window.c2ejecta);
var qa=!g&&!ea&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.zd()?!1:qa?this.gd.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(qa)this.gd.has(a)||(this.gd.add(a),this.Zd=!1);else{var d=a.toString(),g=this.items;g?g.hasOwnProperty(d)||(g[d]=a,this.bh++,this.Zd=!1):(this.items={},this.items[d]=a,this.bh=1,this.Zd=!1)}};n.prototype.remove=function(a){if(!this.zd())if(qa)this.gd.has(a)&&(this.gd["delete"](a),
this.Zd=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.bh--,this.Zd=!1)}};n.prototype.clear=function(){this.zd()||(qa?this.gd.clear():(this.items=null,this.bh=0),S(this.og),this.Zd=!0)};n.prototype.zd=function(){return 0===this.count()};n.prototype.count=function(){return qa?this.gd.size:this.bh};var A=null,P=0;n.prototype.Uu=function(){if(!this.Zd){if(qa)S(this.og),A=this.og,P=0,this.gd.forEach(u),A=null,P=0;else{var a=this.og;S(a);var d,g=0,e=this.items;
if(e)for(d in e)e.hasOwnProperty(d)&&(a[g++]=e[d])}this.Zd=!0}};n.prototype.Nd=function(){this.Uu();return this.og};ba=n;new ba;Ra=function(a,d){qa?Sa(a,d.gd):Ta(a,d.Nd())};Sa=function(a,d){var g,e,h,f;e=g=0;for(h=a.length;g<h;++g)f=a[g],d.has(f)||(a[e++]=f);va(a,e)};Ta=function(a,d){var g,e,h,f;e=g=0;for(h=a.length;g<h;++g)f=a[g],-1===Aa(d,f)&&(a[e++]=f);va(a,e)};k.prototype.add=function(a){this.y=a-this.dk;this.Kj=this.R+this.y;this.dk=this.Kj-this.R-this.y;this.R=this.Kj};k.prototype.reset=function(){this.R=
this.Kj=this.y=this.dk=0};Ua=k;Va=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Jh=function(a){this.mp=a;this.Rc=a.length/2;this.Sa.length=a.length;this.hi=this.ji=-1;this.nn=0};b.prototype.Kf=function(){return!this.mp.length};b.prototype.fa=function(){for(var a=this.Sa,d=a[0],g=d,e=a[1],h=e,f,p,y=1,z=this.Rc;y<z;++y)p=2*y,f=a[p],p=a[p+1],f<d&&(d=f),f>g&&(g=f),p<e&&(e=p),p>h&&(h=p);this.di=d;this.ei=g;this.fi=e;this.ci=h};b.prototype.Ih=function(a,d,g){this.Sa.length=
8;this.Rc=4;var e=this.Sa;e[0]=a.left-d;e[1]=a.top-g;e[2]=a.right-d;e[3]=a.top-g;e[4]=a.right-d;e[5]=a.bottom-g;e[6]=a.left-d;e[7]=a.bottom-g;this.ji=a.right-a.left;this.hi=a.bottom-a.top;this.fa()};b.prototype.gg=function(a,d,g,e,h){this.Sa.length=8;this.Rc=4;var f=this.Sa;f[0]=a.hb-d;f[1]=a.ib-g;f[2]=a.Nb-d;f[3]=a.Ob-g;f[4]=a.Cb-d;f[5]=a.Db-g;f[6]=a.zb-d;f[7]=a.Ab-g;this.ji=e;this.hi=h;this.fa()};b.prototype.Ap=function(a){this.Rc=a.Rc;wa(this.Sa,a.Sa);this.di=a.di;this.fi-a.fi;this.ei=a.ei;this.ci=
a.ci};b.prototype.xf=function(a,d,g){if(this.ji!==a||this.hi!==d||this.nn!==g){this.ji=a;this.hi=d;this.nn=g;var e,h,f,p,y,z=0,l=1,b=this.mp,v=this.Sa;0!==g&&(z=Math.sin(g),l=Math.cos(g));g=0;for(f=this.Rc;g<f;g++)e=2*g,h=e+1,p=b[e]*a,y=b[h]*d,v[e]=p*l-y*z,v[h]=y*l+p*z;this.fa()}};b.prototype.tb=function(a,d){var g=this.Sa;if(a===g[0]&&d===g[1])return!0;var e,h,f,p=this.Rc,y=this.di-110,z=this.fi-101,l=this.ei+131,b=this.ci+120,v,r,t=0,c=0;for(e=0;e<p;e++)h=2*e,f=(e+1)%p*2,v=g[h],h=g[h+1],r=g[f],
f=g[f+1],pa(y,z,a,d,v,h,r,f)&&t++,pa(l,b,a,d,v,h,r,f)&&c++;return 1===t%2||1===c%2};b.prototype.Ug=function(a,d,g){var e=a.Sa,h=this.Sa;if(this.tb(e[0]+d,e[1]+g)||a.tb(h[0]-d,h[1]-g))return!0;var f,p,y,z,l,b,v,r,t,c,w,k;f=0;for(z=this.Rc;f<z;f++)for(p=2*f,y=(f+1)%z*2,r=h[p],p=h[p+1],t=h[y],c=h[y+1],y=0,v=a.Rc;y<v;y++)if(l=2*y,b=(y+1)%v*2,w=e[l]+d,l=e[l+1]+g,k=e[b]+d,b=e[b+1]+g,pa(r,p,t,c,w,l,k,b))return!0;return!1};Wa=b;a.prototype.ge=function(a,d,g){var e;e=this.cells[a];return e?(e=e[d])?e:g?(e=
v(this,a,d),this.cells[a][d]=e):null:g?(e=v(this,a,d),this.cells[a]={},this.cells[a][d]=e):null};a.prototype.xb=function(a){return I(a/this.hk)};a.prototype.yb=function(a){return I(a/this.gk)};a.prototype.update=function(a,d,g){var e,h,f,p,y;if(d)for(e=d.left,h=d.right;e<=h;++e)for(f=d.top,p=d.bottom;f<=p;++f)if(!g||!g.tb(e,f))if(y=this.ge(e,f,!1))y.remove(a),y.zd()&&(y.Xa.clear(),1E3>T.length&&T.push(y),this.cells[e][f]=null);if(g)for(e=g.left,h=g.right;e<=h;++e)for(f=g.top,p=g.bottom;f<=p;++f)d&&
d.tb(e,f)||this.ge(e,f,!0).Rk(a)};a.prototype.vj=function(a,d){var g,e,h,f,p,y;g=this.xb(a.left);h=this.yb(a.top);e=this.xb(a.right);for(p=this.yb(a.bottom);g<=e;++g)for(f=h;f<=p;++f)(y=this.ge(g,f,!1))&&y.dump(d)};Xa=a;p.prototype.ge=function(a,d,g){var e;e=this.cells[a];return e?(e=e[d])?e:g?(e=h(this,a,d),this.cells[a][d]=e):null:g?(e=h(this,a,d),this.cells[a]={},this.cells[a][d]=e):null};p.prototype.xb=function(a){return I(a/this.hk)};p.prototype.yb=function(a){return I(a/this.gk)};p.prototype.update=
function(a,d,g){var e,h,f,p,y;if(d)for(e=d.left,h=d.right;e<=h;++e)for(f=d.top,p=d.bottom;f<=p;++f)if(!g||!g.tb(e,f))if(y=this.ge(e,f,!1))y.remove(a),y.zd()&&(y.reset(),1E3>F.length&&F.push(y),this.cells[e][f]=null);if(g)for(e=g.left,h=g.right;e<=h;++e)for(f=g.top,p=g.bottom;f<=p;++f)d&&d.tb(e,f)||this.ge(e,f,!0).Rk(a)};p.prototype.vj=function(a,d,g,e,h){var f,p;a=this.xb(a);d=this.yb(d);g=this.xb(g);for(f=this.yb(e);a<=g;++a)for(e=d;e<=f;++e)(p=this.ge(a,e,!1))&&p.dump(h)};p.prototype.du=function(a){var d,
g,e,h,f;d=a.left;e=a.top;g=a.right;for(h=a.bottom;d<=g;++d)for(a=e;a<=h;++a)if(f=this.ge(d,a,!1))f.Mf=!1};Ya=p;var T=[];d.prototype.zd=function(){return this.Xa.zd()};d.prototype.Rk=function(a){this.Xa.add(a)};d.prototype.remove=function(a){this.Xa.remove(a)};d.prototype.dump=function(a){za(a,this.Xa.Nd())};aa=d;var F=[];f.prototype.zd=function(){if(!this.Xa.length)return!0;if(this.Xa.length>this.ed.count())return!1;this.wk();return!0};f.prototype.Rk=function(a){this.ed.contains(a)?(this.ed.remove(a),
this.ed.zd()&&(this.ug=!1)):this.Xa.length?(this.Xa[this.Xa.length-1].bd()>a.bd()&&(this.Mf=!1),this.Xa.push(a)):(this.Xa.push(a),this.Mf=!0)};f.prototype.remove=function(a){this.ed.add(a);this.ug=!0;30<=this.ed.count()&&this.wk()};f.prototype.wk=function(){this.ug&&(this.ed.count()===this.Xa.length?this.reset():(Ra(this.Xa,this.ed),this.ed.clear(),this.ug=!1))};f.prototype.qs=function(){this.Mf||(this.Xa.sort(e),this.Mf=!0)};f.prototype.reset=function(){S(this.Xa);this.Mf=!0;this.ed.clear();this.ug=
!1};f.prototype.dump=function(a){this.wk();this.qs();this.Xa.length&&a.push(this.Xa)};ca=f;var B="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(a){return 0>=a||11<=a?"source-over":B[a-1]};ab=function(a,d,g){if(g)switch(a.qb=g.ONE,a.mb=g.ONE_MINUS_SRC_ALPHA,d){case 1:a.qb=g.ONE;a.mb=g.ONE;break;case 3:a.qb=g.ONE;a.mb=g.ZERO;break;case 4:a.qb=g.ONE_MINUS_DST_ALPHA;a.mb=g.ONE;break;case 5:a.qb=g.DST_ALPHA;a.mb=
g.ZERO;break;case 6:a.qb=g.ZERO;a.mb=g.SRC_ALPHA;break;case 7:a.qb=g.ONE_MINUS_DST_ALPHA;a.mb=g.ZERO;break;case 8:a.qb=g.ZERO;a.mb=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.qb=g.DST_ALPHA;a.mb=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.qb=g.ONE_MINUS_DST_ALPHA,a.mb=g.SRC_ALPHA}};bb=function(a){return Math.round(1E6*a)/1E6};cb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};db=function(a){a=a.target;return!a||a===document||a===
window||document&&document.body&&a===document.body||cb(a.tagName,"canvas")?!0:!1}})();var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(c){var q=new Vb(3);c&&(q[0]=c[0],q[1]=c[1],q[2]=c[2]);return q}function Xb(c){var q=new Vb(16);c&&(q[0]=c[0],q[1]=c[1],q[2]=c[2],q[3]=c[3],q[4]=c[4],q[5]=c[5],q[6]=c[6],q[7]=c[7],q[8]=c[8],q[9]=c[9],q[10]=c[10],q[11]=c[11],q[12]=c[12],q[13]=c[13],q[14]=c[14],q[15]=c[15]);return q}
function Yb(c,q){q[0]=c[0];q[1]=c[1];q[2]=c[2];q[3]=c[3];q[4]=c[4];q[5]=c[5];q[6]=c[6];q[7]=c[7];q[8]=c[8];q[9]=c[9];q[10]=c[10];q[11]=c[11];q[12]=c[12];q[13]=c[13];q[14]=c[14];q[15]=c[15]}function Zb(c,q){var m=q[0],n=q[1];q=q[2];c[0]*=m;c[1]*=m;c[2]*=m;c[3]*=m;c[4]*=n;c[5]*=n;c[6]*=n;c[7]*=n;c[8]*=q;c[9]*=q;c[10]*=q;c[11]*=q}
function $b(c,q,m,n){n||(n=Xb());var u,k,b,a,p,v,d,h,f=c[0],e=c[1];c=c[2];k=m[0];b=m[1];u=m[2];m=q[1];v=q[2];f===q[0]&&e===m&&c===v?(c=n,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(m=f-q[0],v=e-q[1],d=c-q[2],h=1/Math.sqrt(m*m+v*v+d*d),m*=h,v*=h,d*=h,q=b*d-u*v,u=u*m-k*d,k=k*v-b*m,(h=Math.sqrt(q*q+u*u+k*k))?(h=1/h,q*=h,u*=h,k*=h):k=u=q=0,b=v*k-d*u,a=d*q-m*k,p=m*u-v*q,(h=Math.sqrt(b*b+a*a+p*p))?(h=1/h,b*=h,a*=h,p*=h):p=a=b=0,
n[0]=q,n[1]=b,n[2]=m,n[3]=0,n[4]=u,n[5]=a,n[6]=v,n[7]=0,n[8]=k,n[9]=p,n[10]=d,n[11]=0,n[12]=-(q*f+u*e+k*c),n[13]=-(b*f+a*e+p*c),n[14]=-(m*f+v*e+d*c),n[15]=1)}
(function(){function c(a,p,b){this.je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ma=!!b;this.Pi=this.Vg=!1;this.mk=0;this.Xj=1;this.ym=1E3;this.bv=(this.ym-this.Xj)/32768;this.ek=Wb([0,0,100]);this.to=Wb([0,0,0]);this.Zp=Wb([0,1,0]);this.Yh=Wb([1,1,1]);this.zn=!0;this.gj=Xb();this.jc=Xb();this.dl=Xb();this.lk=Xb();this.A=a;this.version=0===this.A.getParameter(this.A.VERSION).indexOf("WebGL 2")?2:1;this.Un()}function q(a,p,b){this.A=a;this.Kh=
p;this.name=b;this.tc=a.getAttribLocation(p,"aPos");this.pe=a.getAttribLocation(p,"aTex");this.ro=a.getUniformLocation(p,"matP");this.bj=a.getUniformLocation(p,"matMV");this.Vf=a.getUniformLocation(p,"opacity");this.kl=a.getUniformLocation(p,"colorFill");this.so=a.getUniformLocation(p,"samplerFront");this.mh=a.getUniformLocation(p,"samplerBack");this.df=a.getUniformLocation(p,"destStart");this.cf=a.getUniformLocation(p,"destEnd");this.oh=a.getUniformLocation(p,"seconds");this.ml=a.getUniformLocation(p,
"pixelWidth");this.ll=a.getUniformLocation(p,"pixelHeight");this.lh=a.getUniformLocation(p,"layerScale");this.kh=a.getUniformLocation(p,"layerAngle");this.ph=a.getUniformLocation(p,"viewOrigin");this.nh=a.getUniformLocation(p,"scrollPos");this.Ht=!!(this.ml||this.ll||this.oh||this.mh||this.df||this.cf||this.lh||this.kh||this.ph||this.nh);this.Bo=this.Co=-999;this.fj=1;this.xo=this.wo=0;this.zo=this.vo=this.uo=1;this.Fo=this.Eo=this.Do=this.Ho=this.Go=this.yo=0;this.cl=[];this.Ao=Xb();this.Vf&&a.uniform1f(this.Vf,
1);this.kl&&a.uniform4f(this.kl,1,1,1,1);this.so&&a.uniform1i(this.so,0);this.mh&&a.uniform1i(this.mh,1);this.df&&a.uniform2f(this.df,0,0);this.cf&&a.uniform2f(this.cf,1,1);this.lh&&a.uniform1f(this.lh,1);this.kh&&a.uniform1f(this.kh,0);this.ph&&a.uniform2f(this.ph,0,0);this.nh&&a.uniform2f(this.nh,0,0);this.oh&&a.uniform1f(this.oh,0);this.Qe=!1}function m(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]&&a[4]===p[4]&&a[5]===p[5]&&a[6]===p[6]&&a[7]===p[7]&&a[8]===p[8]&&a[9]===p[9]&&
a[10]===p[10]&&a[11]===p[11]&&a[12]===p[12]&&a[13]===p[13]&&a[14]===p[14]&&a[15]===p[15]}function n(a,p){this.type=a;this.C=p;this.A=p.A;this.cd=this.wb=this.bp=0;this.O=this.Bc=null;this.Cp=[]}var u=Xb();c.prototype.Un=function(){var a=this.A,p;this.ko=1;this.Ze=this.le=null;this.qi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ma?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.lo=a.ONE;this.jo=a.ONE_MINUS_SRC_ALPHA;this.Vj=new Float32Array(8E3*(this.ma?3:2));this.Lj=new Float32Array(16E3);this.gp=new Float32Array(32E3);this.Dl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Dl);a.bufferData(a.ARRAY_BUFFER,this.gp.byteLength,a.DYNAMIC_DRAW);this.Wh=Array(4);this.Qh=Array(4);for(p=0;4>p;p++)this.Wh[p]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Wh[p]),a.bufferData(a.ARRAY_BUFFER,this.Vj.byteLength,a.DYNAMIC_DRAW),this.Qh[p]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Qh[p]),a.bufferData(a.ARRAY_BUFFER,this.Lj.byteLength,a.DYNAMIC_DRAW);this.od=0;this.Kt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Kt);for(var b=new Uint16Array(12E3),d=p=0;12E3>p;)b[p++]=d,b[p++]=d+1,b[p++]=d+2,b[p++]=d,b[p++]=d+2,b[p++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.El=this.jg=this.Od=0;this.Aa=[];p=this.ma?"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}";b=this.Ag({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}"},p,"<default>");this.Aa.push(b);b=this.Ag({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.Aa.push(b);b=this.Ag({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},p,"<earlyz>");this.Aa.push(b);b=this.Ag({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
p,"<fill>");this.Aa.push(b);for(var h in ac)ac.hasOwnProperty(h)&&this.Aa.push(this.Ag(ac[h],p,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Yd=[];this.md=0;this.ob=!1;this.un=this.hh=-1;this.Af=null;this.vk=a.createFramebuffer();this.si=this.wj=null;this.hn=!1;this.ma&&(this.si=a.createRenderbuffer());this.Ae=Wb([0,0,0]);this.Io=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Io&&(this.Io=2048);this.Lb(0)};q.prototype.tm=function(a){m(this.Ao,a)||(Yb(a,this.Ao),this.A.uniformMatrix4fv(this.bj,
!1,a))};c.prototype.Ag=function(a,p,b){var d=this.A,h=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(h,a.src);d.compileShader(h);if(!d.getShaderParameter(h,d.COMPILE_STATUS))return d.deleteShader(h),null;var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,p);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(h),d.deleteShader(f),null;p=d.createProgram();d.attachShader(p,h);d.attachShader(p,f);d.linkProgram(p);if(!d.getProgramParameter(p,d.LINK_STATUS))return d.deleteShader(h),
d.deleteShader(f),d.deleteProgram(p),null;d.useProgram(p);d.deleteShader(h);d.deleteShader(f);b=new q(d,p,b);b.tk=a.tk||0;b.uk=a.uk||0;b.tn=!!a.tn;b.Pc=!!a.Pc;b.dn=!!a.dn;b.Q=a.Q||[];a=0;for(h=b.Q.length;a<h;a++)b.Q[a][1]=d.getUniformLocation(p,b.Q[a][0]),b.cl.push(0),d.uniform1f(b.Q[a][1],0);return b};c.prototype.Hk=function(a){var p,b;p=0;for(b=this.Aa.length;p<b;p++)if(this.Aa[p].name===a)return p;return-1};c.prototype.lp=function(a,p,b){var d=this.jc,h=this.gj,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*a+
d[4]*p+d[12];f[1]=d[1]*a+d[5]*p+d[13];f[2]=d[2]*a+d[6]*p+d[14];f[3]=d[3]*a+d[7]*p+d[15];f[4]=h[0]*f[0]+h[4]*f[1]+h[8]*f[2]+h[12]*f[3];f[5]=h[1]*f[0]+h[5]*f[1]+h[9]*f[2]+h[13]*f[3];f[6]=h[2]*f[0]+h[6]*f[1]+h[10]*f[2]+h[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],b[0]=(.5*f[4]+.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};c.prototype.nf=function(a,p,b){if(this.width!==a||this.height!==p||b){this.de();b=this.A;this.width=a;this.height=p;b.viewport(0,0,a,p);$b(this.ek,
this.to,this.Zp,this.jc);if(this.ma){var d=-a/2;a=a/2;var h=p/2;p=-p/2;var f=this.Xj,e=this.ym,r=this.gj;r||(r=Xb());var l=a-d,c=p-h,g=e-f;r[0]=2/l;r[1]=0;r[2]=0;r[3]=0;r[4]=0;r[5]=2/c;r[6]=0;r[7]=0;r[8]=0;r[9]=0;r[10]=-2/g;r[11]=0;r[12]=-(d+a)/l;r[13]=-(p+h)/c;r[14]=-(e+f)/g;r[15]=1;this.Yh[0]=1;this.Yh[1]=1}else p=a/p,d=this.Xj,a=this.ym,r=this.gj,e=d*Math.tan(45*Math.PI/360),p*=e,h=-p,f=-e,r||(r=Xb()),l=p-h,c=e-f,g=a-d,r[0]=2*d/l,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=2*d/c,r[6]=0,r[7]=0,r[8]=(p+h)/
l,r[9]=(e+f)/c,r[10]=-(a+d)/g,r[11]=-1,r[12]=0,r[13]=0,r[14]=-(a*d*2)/g,r[15]=0,d=[0,0],a=[0,0],this.lp(0,0,d),this.lp(1,1,a),this.Yh[0]=1/(a[0]-d[0]),this.Yh[1]=-1/(a[1]-d[1]);d=0;for(a=this.Aa.length;d<a;d++)h=this.Aa[d],h.Qe=!1,h.ro&&(b.useProgram(h.Kh),b.uniformMatrix4fv(h.ro,!1,this.gj));b.useProgram(this.Aa[this.hh].Kh);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Ze=this.le=null;this.si&&(b.bindFramebuffer(b.FRAMEBUFFER,
this.vk),b.bindRenderbuffer(b.RENDERBUFFER,this.si),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.hn||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.si),this.hn=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.wj=null)}};c.prototype.wc=function(){$b(this.ek,this.to,this.Zp,this.jc);Zb(this.jc,this.Yh)};c.prototype.translate=function(a,p){if(0!==a||0!==p){this.Ae[0]=a;this.Ae[1]=p;this.Ae[2]=
0;var b=this.jc,d=this.Ae,h=d[0],f=d[1],d=d[2];b[12]=b[0]*h+b[4]*f+b[8]*d+b[12];b[13]=b[1]*h+b[5]*f+b[9]*d+b[13];b[14]=b[2]*h+b[6]*f+b[10]*d+b[14];b[15]=b[3]*h+b[7]*f+b[11]*d+b[15]}};c.prototype.scale=function(a,b){if(1!==a||1!==b)this.Ae[0]=a,this.Ae[1]=b,this.Ae[2]=1,Zb(this.jc,this.Ae)};c.prototype.yj=function(a){if(0!==a){var b=this.jc,c,d=Math.sin(a);a=Math.cos(a);var h=b[0],f=b[1],e=b[2],r=b[3],l=b[4],w=b[5],g=b[6],t=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=
b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=h*a+l*d;c[1]=f*a+w*d;c[2]=e*a+g*d;c[3]=r*a+t*d;c[4]=h*-d+l*a;c[5]=f*-d+w*a;c[6]=e*-d+g*a;c[7]=r*-d+t*a}};c.prototype.mc=function(){if(!m(this.dl,this.jc)){var a=this.Xb();a.type=5;a.O?Yb(this.jc,a.O):a.O=Xb(this.jc);Yb(this.jc,this.dl);this.ob=!1}};c.prototype.Aj=function(a){this.ma&&(32760<a&&(a=32760),this.mk=this.ek[2]-this.Xj-a*this.bv)};n.prototype.Vr=function(){var a=this.A,b=this.C;0!==this.wb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,b.vk),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Pi=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Pi=!1)};n.prototype.Zr=function(){this.A.bindTexture(this.A.TEXTURE_2D,this.Bc)};n.prototype.$r=function(){var a=this.A;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Bc);a.activeTexture(a.TEXTURE0)};n.prototype.Wr=function(){var a=this.bp,
b=this.C;b.qi=a;b=b.Af;b.Vf&&b.fj!==a&&(b.fj=a,this.A.uniform1f(b.Vf,a))};n.prototype.Qr=function(){this.A.drawElements(this.A.TRIANGLES,this.cd,this.A.UNSIGNED_SHORT,this.wb)};n.prototype.Sr=function(){this.A.blendFunc(this.wb,this.cd)};n.prototype.bs=function(){var a,b,c,d=this.C.Aa,h=this.C.un;a=0;for(b=d.length;a<b;a++)c=d[a],a===h&&c.bj?(c.tm(this.O),c.Qe=!0):c.Qe=!1;Yb(this.O,this.C.lk)};n.prototype.Rr=function(){var a=this.A,b=this.C;this.Bc?(b.Ze===this.Bc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),b.Ze=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.vk),b.Pi||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Bc,0)):(b.ma||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};n.prototype.Nr=function(){var a=this.A,b=this.wb;0===b?(a.clearColor(this.O[0],this.O[1],this.O[2],this.O[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.O[0],this.O[1],this.O[2],
this.O[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};n.prototype.Ur=function(){var a=this.A;0!==this.wb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};n.prototype.Pr=function(){var a=this.A,b=this.C;b.ma&&a.disable(a.DEPTH_TEST);var c=b.Aa[1];a.useProgram(c.Kh);!c.Qe&&c.bj&&(c.tm(b.lk),c.Qe=!0);a.enableVertexAttribArray(c.tc);a.bindBuffer(a.ARRAY_BUFFER,b.Dl);a.vertexAttribPointer(c.tc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.wb/
4,this.cd);c=b.Af;a.useProgram(c.Kh);0<=c.tc&&(a.enableVertexAttribArray(c.tc),a.bindBuffer(a.ARRAY_BUFFER,b.Wh[b.od]),a.vertexAttribPointer(c.tc,b.ma?3:2,a.FLOAT,!1,0,0));0<=c.pe&&(a.enableVertexAttribArray(c.pe),a.bindBuffer(a.ARRAY_BUFFER,b.Qh[b.od]),a.vertexAttribPointer(c.pe,2,a.FLOAT,!1,0,0));b.ma&&a.enable(a.DEPTH_TEST)};n.prototype.Xr=function(){var a=this.A,b=this.C,c=b.Aa[this.wb];b.un=this.wb;b.Af=c;a.useProgram(c.Kh);!c.Qe&&c.bj&&(c.tm(b.lk),c.Qe=!0);c.Vf&&c.fj!==b.qi&&(c.fj=b.qi,a.uniform1f(c.Vf,
b.qi));0<=c.tc&&(a.enableVertexAttribArray(c.tc),a.bindBuffer(a.ARRAY_BUFFER,b.Wh[b.od]),a.vertexAttribPointer(c.tc,b.ma?3:2,a.FLOAT,!1,0,0));0<=c.pe&&(a.enableVertexAttribArray(c.pe),a.bindBuffer(a.ARRAY_BUFFER,b.Qh[b.od]),a.vertexAttribPointer(c.pe,2,a.FLOAT,!1,0,0))};n.prototype.Tr=function(){var a=this.O;this.A.uniform4f(this.C.Af.kl,a[0],a[1],a[2],a[3])};n.prototype.Yr=function(){var a,b,c=this.C.Af,d=this.A;a=this.O;c.mh&&this.C.Ze!==this.Bc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,
this.Bc),this.C.Ze=this.Bc,d.activeTexture(d.TEXTURE0));var h=a[0];c.ml&&h!==c.Co&&(c.Co=h,d.uniform1f(c.ml,h));h=a[1];c.ll&&h!==c.Bo&&(c.Bo=h,d.uniform1f(c.ll,h));h=a[2];b=a[3];!c.df||h===c.wo&&b===c.xo||(c.wo=h,c.xo=b,d.uniform2f(c.df,h,b));h=a[4];b=a[5];!c.cf||h===c.uo&&b===c.vo||(c.uo=h,c.vo=b,d.uniform2f(c.cf,h,b));h=a[6];c.lh&&h!==c.zo&&(c.zo=h,d.uniform1f(c.lh,h));h=a[7];c.kh&&h!==c.yo&&(c.yo=h,d.uniform1f(c.kh,h));h=a[8];b=a[9];!c.ph||h===c.Go&&b===c.Ho||(c.Go=h,c.Ho=b,d.uniform2f(c.ph,h,
b));h=a[10];b=a[11];!c.nh||h===c.Do&&b===c.Eo||(c.Do=h,c.Eo=b,d.uniform2f(c.nh,h,b));h=a[12];c.oh&&h!==c.Fo&&(c.Fo=h,d.uniform1f(c.oh,h));if(c.Q.length)for(a=0,b=c.Q.length;a<b;a++)h=this.Cp[a],h!==c.cl[a]&&(c.cl[a]=h,d.uniform1f(c.Q[a][1],h))};c.prototype.Xb=function(){this.md===this.Yd.length&&this.Yd.push(new n(0,this));return this.Yd[this.md++]};c.prototype.de=function(){if(0!==this.md&&!this.A.isContextLost()){var a=this.A;0<this.El&&(a.bindBuffer(a.ARRAY_BUFFER,this.Dl),a.bufferSubData(a.ARRAY_BUFFER,
0,this.gp.subarray(0,this.El)),b&&0<=b.tc&&"<point>"===b.name&&a.vertexAttribPointer(b.tc,4,a.FLOAT,!1,0,0));if(0<this.Od){var b=this.Af;a.bindBuffer(a.ARRAY_BUFFER,this.Wh[this.od]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Vj.subarray(0,this.Od));b&&0<=b.tc&&"<point>"!==b.name&&a.vertexAttribPointer(b.tc,this.ma?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Qh[this.od]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Lj.subarray(0,this.jg));b&&0<=b.pe&&"<point>"!==b.name&&a.vertexAttribPointer(b.pe,2,
a.FLOAT,!1,0,0)}for(var c,a=0,b=this.md;a<b;a++)switch(c=this.Yd[a],c.type){case 1:c.Qr();break;case 2:c.Zr();break;case 3:c.Wr();break;case 4:c.Sr();break;case 5:c.bs();break;case 6:c.Rr();break;case 7:c.Nr();break;case 8:c.Pr();break;case 9:c.Xr();break;case 10:c.Yr();break;case 11:c.$r();break;case 12:c.Tr();break;case 13:c.Ur();break;case 14:c.Vr()}this.El=this.jg=this.Od=this.md=0;this.Pi=this.ob=!1;this.od++;4<=this.od&&(this.od=0)}};c.prototype.eg=function(a){if(a!==this.ko&&!this.Vg){var b=
this.Xb();b.type=3;this.ko=b.bp=a;this.ob=!1}};c.prototype.kc=function(a){if(a!==this.le){var b=this.Xb();b.type=2;this.le=b.Bc=a;this.ob=!1}};c.prototype.xe=function(a,b){if((a!==this.lo||b!==this.jo)&&!this.Vg){var c=this.Xb();c.type=4;c.wb=a;c.cd=b;this.lo=a;this.jo=b;this.ob=!1}};c.prototype.tp=function(){this.xe(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};c.prototype.Dh=function(a,b,c,d,h,f,e,r){15992<=this.Od&&this.de();var l=this.Od,w=this.jg,g=this.Vj,t=this.Lj,k=this.mk;if(this.ob)this.Yd[this.md-
1].cd+=6;else{var m=this.Xb();m.type=1;m.wb=this.ma?l:l/2*3;m.cd=6;this.ob=!0}this.ma?(g[l++]=a,g[l++]=b,g[l++]=k,g[l++]=c,g[l++]=d,g[l++]=k,g[l++]=h,g[l++]=f,g[l++]=k,g[l++]=e,g[l++]=r,g[l++]=k):(g[l++]=a,g[l++]=b,g[l++]=c,g[l++]=d,g[l++]=h,g[l++]=f,g[l++]=e,g[l++]=r);t[w++]=0;t[w++]=0;t[w++]=1;t[w++]=0;t[w++]=1;t[w++]=1;t[w++]=0;t[w++]=1;this.Od=l;this.jg=w};c.prototype.we=function(a,b,c,d,h,f,e,r,l){15992<=this.Od&&this.de();var w=this.Od,g=this.jg,t=this.Vj,k=this.Lj,m=this.mk;if(this.ob)this.Yd[this.md-
1].cd+=6;else{var q=this.Xb();q.type=1;q.wb=this.ma?w:w/2*3;q.cd=6;this.ob=!0}var q=l.left,u=l.top,n=l.right;l=l.bottom;this.ma?(t[w++]=a,t[w++]=b,t[w++]=m,t[w++]=c,t[w++]=d,t[w++]=m,t[w++]=h,t[w++]=f,t[w++]=m,t[w++]=e,t[w++]=r,t[w++]=m):(t[w++]=a,t[w++]=b,t[w++]=c,t[w++]=d,t[w++]=h,t[w++]=f,t[w++]=e,t[w++]=r);k[g++]=q;k[g++]=u;k[g++]=n;k[g++]=u;k[g++]=n;k[g++]=l;k[g++]=q;k[g++]=l;this.Od=w;this.jg=g};c.prototype.Lb=function(a){if(this.hh!==a){if(!this.Aa[a]){if(0===this.hh)return;a=0}var b=this.Xb();
b.type=9;this.hh=b.wb=a;this.ob=!1}};c.prototype.Ah=function(a){a=this.Aa[a];return!(!a.df&&!a.cf)};c.prototype.Hl=function(a){a=this.Aa[a];return!!(a.df||a.cf||a.tn)};c.prototype.Gl=function(a){return this.Aa[a].Pc};c.prototype.wu=function(a){a=this.Aa[a];return 0!==a.tk||0!==a.uk};c.prototype.kt=function(a){return this.Aa[a].tk};c.prototype.lt=function(a){return this.Aa[a].uk};c.prototype.mt=function(a,b){return this.Aa[a].Q[b][2]};c.prototype.uj=function(a){return this.Aa[a].dn};c.prototype.fg=
function(a,b,c,d,h,f,e,r,l,w,g,t,k,m,q){var u=this.Aa[this.hh],n,F;if(u.Ht||q.length){n=this.Xb();n.type=10;n.O?Yb(this.jc,n.O):n.O=Xb();F=n.O;F[0]=b;F[1]=c;F[2]=d;F[3]=h;F[4]=f;F[5]=e;F[6]=r;F[7]=l;F[8]=w;F[9]=g;F[10]=t;F[11]=k;F[12]=m;u.mh?n.Bc=a:n.Bc=null;if(q.length)for(c=n.Cp,c.length=q.length,a=0,b=q.length;a<b;a++)c[a]=q[a];this.ob=!1}};c.prototype.clear=function(a,b,c,d){var h=this.Xb();h.type=7;h.wb=0;h.O||(h.O=Xb());h.O[0]=a;h.O[1]=b;h.O[2]=c;h.O[3]=d;this.ob=!1};c.prototype.clearRect=function(a,
b,c,d){if(!(0>c||0>d)){var h=this.Xb();h.type=7;h.wb=1;h.O||(h.O=Xb());h.O[0]=a;h.O[1]=b;h.O[2]=c;h.O[3]=d;this.ob=!1}};c.prototype.wp=function(a){if(this.ma&&(a=!!a,this.Vg!==a)){var b=this.Xb();b.type=14;b.wb=a?1:0;this.ob=!1;this.Vg=a;this.wj=null;this.Vg?this.Lb(2):this.Lb(0)}};c.prototype.vp=function(a){if(this.ma){var b=this.Xb();b.type=13;b.wb=a?1:0;this.ob=!1}};c.prototype.Hn=function(){Yb(this.dl,u);this.wc();this.mc();var a=this.width/2,b=this.height/2;this.Dh(-a,b,a,b,a,-b,-a,-b);Yb(u,
this.jc);this.mc()};c.prototype.up=function(a,b,c){this.Lb(3);var d=this.Xb();d.type=12;d.O||(d.O=Xb());d.O[0]=a;d.O[1]=b;d.O[2]=c;d.O[3]=1;this.ob=!1};c.prototype.Ju=function(){this.Lb(0)};c.prototype.Au=function(){this.Lb(2)};c.prototype.vu=function(){this.de();this.A.flush()};var k=[],b={};c.prototype.Er=function(){S(k);b={}};c.prototype.qo=function(a,c,m){var d;d=!1;c=!!c;var h=a.src+","+d+","+c+(d?",undefined":""),f=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(h))return f=b[h],f.gi++,
f;this.de();var e=this.A,r=ha(a.width)&&ha(a.height),f=e.createTexture();e.bindTexture(e.TEXTURE_2D,f);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=e.RGBA,w=e.RGBA,g=e.UNSIGNED_BYTE;if(m&&!this.je)switch(m){case 1:w=l=e.RGB;break;case 2:g=e.UNSIGNED_SHORT_4_4_4_4;break;case 3:g=e.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=l=e.RGB,g=e.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!r&&d){m=document.createElement("canvas");m.width=ia(a.width);m.height=ia(a.height);var t=m.getContext("2d");"undefined"!==
typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=c:(t.webkitImageSmoothingEnabled=c,t.mozImageSmoothingEnabled=c,t.msImageSmoothingEnabled=c);t.drawImage(a,0,0,a.width,a.height,0,0,m.width,m.height);e.texImage2D(e.TEXTURE_2D,0,l,w,g,m)}else e.texImage2D(e.TEXTURE_2D,0,l,w,g,a);d?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,
e.CLAMP_TO_EDGE));c?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),(r||2<=this.version)&&this.zn?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.generateMipmap(e.TEXTURE_2D)):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST));e.bindTexture(e.TEXTURE_2D,null);this.le=null;f.Ge=a.width;f.Fe=a.height;f.gi=1;f.mn=h;k.push(f);return b[h]=
f};c.prototype.ec=function(a,b,c,d){this.de();var h=this.A;this.je&&(d=!1);var f=h.createTexture();h.bindTexture(h.TEXTURE_2D,f);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,b,0,h.RGBA,d?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,c?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,c?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,
null);this.le=null;f.Ge=a;f.Fe=b;k.push(f);return f};c.prototype.Zu=function(a,b,c){this.de();var d=this.A;this.je&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",h)}d.bindTexture(d.TEXTURE_2D,null);this.le=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.gi&&1<a.gi?
a.gi--:(this.de(),a===this.le&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.le=null),a===this.Ze&&(this.A.activeTexture(this.A.TEXTURE1),this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.Ze=null),Ba(k,a),"undefined"!==typeof a.mn&&delete b[a.mn],this.A.deleteTexture(a)))};c.prototype.xc=function(a){if(a!==this.wj){var b=this.Xb();b.type=6;this.wj=b.Bc=a;this.ob=!1}};eb=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.rc=(this.Uk=/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.ie=!!a.dc;this.Qt="undefined"!==typeof window.AppMobi||
this.ie;this.qc=!!window.c2cocoonjs;this.Mc=!!window.c2ejecta;this.qc&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Mc&&(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.Ba=this.ie||this.qc||this.Mc;this.Qi=
/edge\//i.test(navigator.userAgent);this.je=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Qi;this.bo=/tizen/i.test(navigator.userAgent);this.Zn=/android/i.test(navigator.userAgent)&&!this.bo&&!this.je&&!this.Qi;this.ho=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.je&&!this.Qi;this.Yt=/ipad/i.test(navigator.userAgent);this.Ti=this.ho||this.Yt||this.Mc;this.Tk=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.je&&!this.Qi;this.Pt=/amazonwebappplatform/i.test(navigator.userAgent);this.Tt=/firefox/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.Xt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.$g=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.$k=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.co=!!window.cr_windows10;this.Vt=this.eo||this.Xt||this.$k||this.co;this.Rt=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.$n=this.Zn&&!this.Tk&&!this.Uk&&!this.Tt&&!this.Pt&&!this.Ba;this.devicePixelRatio=1;this.Bd=this.rc||this.Uk||this.Qt||this.qc||this.Zn||this.Ti||this.$g||this.$k||this.Rt||this.bo||this.Mc;this.Bd||
(this.Bd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Zk=!!(this.Ti&&this.rc&&window.webkit);this.Nk=null;this.It="";this.Zk&&(this.Nk=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.pn=document.getElementById("c2canvasdiv");
this.C=this.A=null;this.Ik="(unavailable)";this.ma=!1;this.Le=0;this.xa=null;this.yk="";this.Bi=!1;this.To=this.Uo=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.ie&&(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.$n&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.I=this.width;this.H=this.height;this.oi=this.width;this.Cg=this.height;this.Sf=window.innerWidth;this.Rf=window.innerHeight;this.W=!0;this.Yg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];this.wa=[];this.gl={};this.Nc=[];this.sk={};this.ud=[];this.qg=[];this.Rj=[];this.tr=[];this.ur=[];this.io=this.Ip=null;this.Je=
{};this.Wk=this.he=!1;this.Ad=0;this.Vk=this.Yk=!1;this.Jc=[];this.Wg=!1;this.Zi=this.Xl="";this.Pa=null;this.Cd="";this.Oh=this.Fp=!1;this.Ai=[];this.Ke=this.Df=0;this.Mo=30;this.kk=this.qh=0;this.lg=1;this.ic=new Ua;this.Wj=new Ua;this.mj=this.Gi=this.wi=this.Kd=this.bf=this.xk=this.Ui=0;this.He=null;this.ti=[];this.rk=[];this.vi=-1;this.nl=[[]];this.nm=this.cj=0;this.Jl(null);this.Ig=this.Qo=this.wh=0;this.Jj=[];this.km=this.Ml=-1;this.Of=!0;this.aj=0;this.Xg=!1;this.Mu=0;this.xg=null;this.Ma=
this.Ki=!1;this.So=new ba;this.ql=new ba;this.rl=new ba;this.Ol=[];this.Uc=new Wa([]);this.im=new Wa([]);this.Vd=[];this.Qg={};this.$d={};this.Ud={};this.pg={};this.jn={};this.po=this.Yi=this.Ga=this.Na=this.oo=this.Xi=this.ba=null;this.ng=this.al=!1;this.zk=[null,null];this.Oe=0;this.Fd={};this.Mh=this.ne=null;this.Gp="";this.lj=[];this.zu()}}function q(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 n(a){a.target.result.createObjectStore("saves",
{keyPath:"slot"})}function u(a,d,g,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=n;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=g}}catch(h){e(h)}}function k(a,d,g){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=n;e.onerror=g;e.onsuccess=function(e){e=e.target.result;e.onerror=g;var b=e.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?
d(b.result.data):d(null)}}}catch(b){g(b)}}function b(){x("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,g={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof ba||a[d]&&"undefined"!==typeof a[d].hw||"spriteCreatedDestroyCallback"!==d&&(g[d]=a[d]);return g}var p=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.zu=function(){var a=this;if(this.Zk)this.Nk?this.Nk.startServer({port:0,localhost_only:!0},function(d){a.It=d;a.En(function(d){a.Uf(JSON.parse(d))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)}):this.En(function(d){a.Uf(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.$g?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var g="data.js";
if(this.eo||this.$g||this.$k||this.co)g="data.json";d.open("GET",g,!0);var e=!1;if(!this.Ba&&"response"in d&&"responseType"in d)try{d.responseType="json",e="json"===d.responseType}catch(b){e=!1}if(!e&&"responseType"in d)try{d.responseType="text"}catch(h){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.$g?d.onreadystatechange=function(){4===d.readyState&&a.Uf(JSON.parse(d.responseText))}:(d.onload=function(){if(e)a.Uf(d.response);else if(a.Mc){var g=
d.responseText,g=g.substr(g.indexOf("{"));a.Uf(JSON.parse(g))}else a.Uf(JSON.parse(d.responseText))},d.onerror=function(a){da("Error requesting "+g+":");da(a)});d.send()}};c.prototype.Lt=function(){var a=this,d,g,e,b,h,f,c,l,r;this.We=(!this.Ba||this.Mc||this.rc)&&this.Wu&&!this.$n;0===this.ub&&this.Ti&&(this.We=!1);this.devicePixelRatio=this.We?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.jb();0<this.ub&&this.setSize(window.innerWidth,
window.innerHeight,!0);try{this.ns&&(this.qc||this.Mc||!this.Ba)&&(d={alpha:!0,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.A=this.canvas.getContext("webgl2",d)||this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d))}catch(t){}if(this.A){if(d=this.A.getExtension("WEBGL_debug_renderer_info"))this.Ik=this.A.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.ma&&(this.Ik+=" [front-to-back enabled]");this.Ba||(this.fb=
document.createElement("canvas"),jQuery(this.fb).appendTo(this.canvas.parentNode),this.fb.oncontextmenu=function(){return!1},this.fb.onselectstart=function(){return!1},this.fb.width=Math.round(this.oi*this.devicePixelRatio),this.fb.height=Math.round(this.Cg*this.devicePixelRatio),jQuery(this.fb).css({width:this.oi+"px",height:this.Cg+"px"}),this.ip(),this.Cl=this.fb.getContext("2d"));this.C=new eb(this.A,this.Bd,this.ma);this.C.nf(this.canvas.width,this.canvas.height);this.C.zn=0!==this.cs;this.xa=
null;this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.iu();x("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.C.Un();a.C.nf(a.C.width,a.C.height,!0);a.Na=null;a.Ga=null;a.zk[0]=null;a.zk[1]=null;a.ju();a.W=!0;x("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);d=0;for(g=this.u.length;d<g;d++)for(h=this.u[d],e=0,b=h.L.length;e<b;e++)c=h.L[e],c.Ha=this.C.Hk(c.id),
c.Pc=this.C.Gl(c.Ha),this.ng=this.ng||this.C.Ah(c.Ha);d=0;for(g=this.Nc.length;d<g;d++){l=this.Nc[d];e=0;for(b=l.L.length;e<b;e++)c=l.L[e],c.Ha=this.C.Hk(c.id),c.Pc=this.C.Gl(c.Ha);l.Wc();e=0;for(b=l.M.length;e<b;e++){r=l.M[e];h=0;for(f=r.L.length;h<f;h++)c=r.L[h],c.Ha=this.C.Hk(c.id),c.Pc=this.C.Gl(c.Ha),this.ng=this.ng||this.C.Ah(c.Ha);r.Wc()}}}else{if(0<this.ub&&this.ie){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.xa=AppMobi.canvas.getContext("2d");
try{this.xa.samplingMode=this.Ca?"smooth":"sharp",this.xa.globalScale=1,this.xa.HTML5CompatibilityMode=!0,this.xa.imageSmoothingEnabled=this.Ca}catch(p){}0!==this.width&&0!==this.height&&(this.xa.width=this.width,this.xa.height=this.height)}this.xa||(this.qc?(d={antialias:!!this.Ca,alpha:!0},this.xa=this.canvas.getContext("2d",d)):(d={alpha:!0},this.xa=this.canvas.getContext("2d",d)),this.zj(this.xa,this.Ca));this.Cl=this.fb=null}this.Qp=function(d){a.Mb(!1,d)};window==window.top||this.Ba||this.Vt||
this.$g||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.qc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(x("Reloading for continuous preview"),this.Zi="__c2_continuouspreview",this.Oh=!0),this.pu&&!this.Bd&&(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.te()});this.Ba||(d=function(a){if(db(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",
d),document.addEventListener("mousedown",d));0===this.ub&&this.We&&1<this.devicePixelRatio&&this.setSize(this.Ra,this.Qa,!0);this.Vp();this.Et();this.go();this.ca={}};c.prototype.setSize=function(a,d,g){var e=0,b=0,h=0,f=0,f=0;if(this.Sf!==a||this.Rf!==d||g){this.Sf=a;this.Rf=d;var c=this.ub,l=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Xg)&&!this.rc;if(l||0!==this.ub||g)l&&0<this.Oe&&(c=this.Oe),g=this.devicePixelRatio,4<=c?(h=this.Ra/
this.Qa,a/d>h?(h*=d,5===c?(f=h*g/this.Ra,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),h=this.Ra*f/g,f=this.Qa*f/g,e=(a-h)/2,b=(d-f)/2,a=h,d=f):(e=(a-h)/2,a=h)):(f=a/h,5===c?(f=f*g/this.Qa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),h=this.Ra*f/g,f=this.Qa*f/g,e=(a-h)/2,b=(d-f)/2,a=h):b=(d-f)/2,d=f),l&&!this.Ve&&(b=e=0)):this.Ve&&this.Xg&&0===this.In&&(e=Math.floor((a-this.Ra)/2),b=Math.floor((d-this.Qa)/2),a=this.Ra,d=this.Qa),2>c&&(this.wg=g),this.oi=Math.round(a),this.Cg=Math.round(d),this.width=
Math.round(a*g),this.height=Math.round(d*g),this.W=!0,this.hq?(this.I=this.width,this.H=this.height,this.gc=!0):this.width<this.Ra&&this.height<this.Qa||1===c?(this.I=this.width,this.H=this.height,this.gc=!0):(this.I=this.Ra,this.H=this.Qa,this.gc=!1,2===c?(h=this.Ra/this.Qa,c=this.Sf/this.Rf,c<h?this.I=this.H*c:c>h&&(this.H=this.I/c)):3===c&&(h=this.Ra/this.Qa,c=this.Sf/this.Rf,c>h?this.I=this.H*c:c<h&&(this.H=this.I/c))),this.pn&&!this.Ba&&(jQuery(this.pn).css({width:Math.round(a)+"px",height:Math.round(d)+
"px","margin-left":Math.floor(e)+"px","margin-top":Math.floor(b)+"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*g),this.canvas.height=Math.round(d*g),this.Mc?(this.canvas.style.left=Math.floor(e)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.We&&!this.Ba&&(this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(d)+"px")),this.fb&&(this.fb.width=Math.round(a*g),this.fb.height=Math.round(d*g),this.fb.style.width=this.oi+"px",this.fb.style.height=this.Cg+"px"),this.C&&this.C.nf(Math.round(a*g),Math.round(d*g)),this.ie&&this.xa&&(this.xa.width=Math.round(a),this.xa.height=Math.round(d)),this.xa&&this.zj(this.xa,this.Ca),this.Vp(),this.ho&&!this.rc&&window.scrollTo(0,0)}};c.prototype.Vp=function(){if(this.yr&&0!==this.Bl){var a="portrait";2===this.Bl&&(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)}}};c.prototype.iu=function(){this.C.Er();this.al=!0;var a,d,g;a=0;for(d=this.u.length;a<d;a++)g=this.u[a],g.wl&&
g.wl()};c.prototype.ju=function(){this.al=!1;var a,d,g;a=0;for(d=this.u.length;a<d;a++)g=this.u[a],g.Xo&&g.Xo()};c.prototype.ip=function(){if(!this.Ba){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Xg)&&!this.rc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.fb).css(a)}};var v=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var d;if(a&&!this.Yg)for(x("[Construct 2] Suspending"),this.Yg=!0,-1!==this.Ml&&v&&v(this.Ml),-1!==this.km&&clearTimeout(this.km),a=0,d=this.Jj.length;a<d;a++)this.Jj[a](!0);else if(!a&&this.Yg){x("[Construct 2] Resuming");this.Yg=!1;this.Ui=Qa();this.bf=Qa();a=this.qh=this.Gi=0;for(d=this.Jj.length;a<d;a++)this.Jj[a](!1);this.Mb(!1)}};c.prototype.Sd=function(a){return this.lj[a]};c.prototype.Uf=function(a){a&&a.project||da("Project model unavailable");
a=a.project;this.name=a[0];this.Gn=a[1];this.ub=a[12];this.In=a[12];this.Ra=a[10];this.Qa=a[11];this.cp=this.Ra/2;this.dp=this.Qa/2;this.Ba&&!this.Mc&&(4<=a[12]||0===a[12])&&(x("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.In=this.ub=3);this.vm=a[18];this.oe=a[19];if(0===this.oe){var d=new Image;d.crossOrigin="anonymous";this.yp(d,"loading-logo.png");this.ne={ej:d}}else if(4===this.oe){d=new Image;d.src="data:image/png;base64,[encoded data, 72588 characters]";
var g=new Image;g.src="data:image/png;base64,[encoded data, 64500 characters]";
var e=new Image;e.src="data:image/png;base64,[encoded data, 26348 characters]";
var b=new Image;b.src="data:image/png;base64,[encoded data, 11240 characters]";
var h=new Image;h.src="data:image/png;base64,[encoded data, 9880 characters]";
var f=new Image;f.src="data:image/png;base64,[encoded data, 8536 characters]";
var c=new Image;c.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABmFBMVEUzMzOIjoM0NDSHjoKFjIFyeG89Pj1gZF5dYVs2NjY4ODhQU0+Ah3yBiH1XWlU5OjmEin86Ozp+hHpwdWx8gnh3fHNSVFCFjIB8gndNUEx6gHaEi4BcYFpFRkRkaGFjZ2Btcmpxd25qb2dTVlF5f3VVWFNISkc1NTVJS0hpbmZ9hHlAQkBUVlJAQT9na2Q8PDtGSEVQUk5xdm1KTElMTktMTkpobWU/QD51enFmamOCiX54fnRZXFdDREJ2fHI8PTxERUNWWVRrcGiAhntcX1leYls7PDpSVVE9Pjx/hntYXFZaXViDin5laWI7PDtvdGtPUU1obGRCREFCQ0FhZV9uc2tLTUqDin9PUk5eYlxscWk1NjVaXlhHSUZiZl9yeG50eXBlamJISUZXWlRRVE96gHVKTEg4ODdpbWZvdGx0enBERkN4fXN7gXdwdW0+Pz5bXllPUk1scGhrcGd9g3lISkZYW1UzNDNYW1ZjZ2E/QT+GjYJUVlFgZF03Nzc5OTlnbGRjaGBERUKIj4JGR0U3ODd2e3JjaGE5GY8RAAAGGUlEQVR4Xu2XVZMrNxCFdQbMzIzLzMzMzJeZmcIMfzvWaMjrWxunspO6qdV52G5199qaT9K0TL5gcXFxcXFxcXFxcXFxcXElc+6qsZDL+clVkh1dVeNmwMYB/CfiADgADoAD4AAE3ywhznJr8VZrzGmOD+Reytvf96jDTl9MT5V9euGgTytwNZbkvtGdZnWY9TUR0t9V7Gth456DsFzIDBND2a7x0Iszt/B5AN0OuS301LGkRNp9jaZ8v6+fXKKaAeFoFYrabujhlhdgkjuV8TcQ/WpqBRjQykI4Yc7sGBQlVCAO7DoLADBLR7Y+lhXz17SvHaVDEYjaPgcgFgBEAIFe5d9FfDBWZh6NlwzgOzGy9ottcmIecW09G0U8jw0H9ydCOL6rRBLoVXM+6DPuxLcuxdmElOtZsvVGIbWoAIYKSC3snLRXBvseNCwPB7MHEsICA1CC+PW+ILQvBkKPawFkMO4OEmf/bYhJGiqaSloguS4ZgDTHtrQ/ijbmPRRhZzN9dIgxG3Xy+hxuQfKwJLkHWbET8D5jyzMEj4sB8GBRrfKH0MWOxrMxLCjOfYhJlWFIrAUgtjZrH+f9sWLdONZP3SjOyCUDiGoHdzoAnxKLYFfPT6FAbT9C6uOIKRl3mV/AOjU2SWzSysdxygBglKi6gz5BdU8QoHyEBG5q2Z5aABjXZuSMIEPNGNxa1ovkZQNoMXWkKDUxjBm7bAag2/hamholaZ9Qpy9ssFgOJb18B20MQNyvRrYksV1PN6BcMTcgBfXQ21oAg/rAhwRj+FINDMDbfNkAjKYzCdBpP0GeGLoNBzWH+Epd9R4bImzx2MMKXjTp1U4JrxQAh1pkDTLRdYrHFbOIYp1tsBtYoS0DYrf28sgR6wAIAeVRNmBuNNfZbBvxhBpnelUgUexRP4NNhi0gGOUPMKgAaNUCBVw3sm8wpYRO6wRA5nHEPnWd8Q0gayEAMo4YIVuAvkGN07+CNO1hSfrQC8jQkMz6YS88DkNtWK4GkMJbIzuE95VQFI31AhhhpRNoIOy7XhArARRxj5B2/GqumEFAPb60ww3hIW1/zyvuD1JcaRqzqFZHNQAPqhRiPbVeAC+xRk1QwgzbThlLAfTBRwGI5opJpNWJ2ul59woUBqU2iLD6ohp3m/WqGoAXGXN2QAFwUi+AMANACsp7ySXBZimAEbp8rwAnMXQDHsU2YZz+GaL+In0j5nGP3ZogkypVA1hF0/lsFB31AritnpYkPM2ElCETSwGsYrASEjFJDHUgqlhhDEGSZ114DzLbBlRHWL0IwB+1V9dDOOoFEMIgi3owQHdoh6UAgmzwnK6vriHtSjOHGGkLsM2REP1bSLH4EtB5AYBNlM5nT7FdJ4CgPriJMxIU4y5LAXRot5ioUeA61u4ly3g8gzNt1ssxHOgHx34BgH52JzKrCfFH+uDPWgB7phlFVG8fkt+HOWIBAH25hQb2JNMS3HrBASIC84JiKIP7zM9iblc/227EjS3QfR6AkMJPRB9sKaEIFrTIkrcWwJzup4wbwxRmRzBoBYB0j75s8Wl1i47NqLFeEUljCg36L7G2+dRxswZORqpb6xne3XMAyENgQqscZb+aliGpX+p6iloAOp6fsaHvnlkk4BGsAJCIX6cb0pUDPqrzDCO9Rg+7/6Zo2t6LQFjz88CZseoRzMcoDtd6GuXzAMhroDRMnd9kNPyudrX0ur9SX34vhWsBtGL7g0DIXgG4b5zFOJAnVgCYLEKaejIiwdhu10aB+Eg4KkIy3WOzQKPRHFEmBgEZ2JDDUQmBZVIDgHQEgFS4OA/cCrKIcw6AxyPC07JeC8BpFyGtbgCSuYGUgBlLANg+uWUJkMJ3TfFsyQsgtDlsigl9I0GTv0VMSobTABL2afWRRxzmbLc9AiAQ3jFCA9teMTCVcZGjd9VtUnhXImSmKyJJkTtV3eUNHlBjTRcQpqdrjpd/5Z/1nKUV5wVZ58rSJ/KvlMdrqwD8LyR4xOkrDWAARXKlATxF75UGsIiIcGUBZCccUxBbyJUF4APgTRJrNDwskC9dto8Lsb9vyVxcXFxcXFxcXFxcXFxcfwEXKq8s5phFegAAAABJRU5ErkJggg==";
var l=new Image;l.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAACEFBMVEUzMzN9g3g0NDR7gXdzeG9CQ0E1NTWBh3w6OzpvdGx9g3k6OjlkaGFLTUqEi394fXRvdGt1enE2NjZ3fXM9Pj1iZl+AhntVWFNjZ2BWWVQ4OTh1e3FwdWxpbmZAQT83Nzc4ODdrcGhuc2tMTkpKTElNT0tRVE9aXVdPUU1PUk42NzZ6gHZLTUk7PDs5OjldYFp0eXB+hHlYW1Z0enBeYlx+hHp5f3WAh3w2NjVtcmpqb2dMTktISkd/hntHSUY4ODhmamNdYVtnbGRBQkA3ODdyd25yeG88PTs7OzpQUk5ERkNZXFdhZV5eYVuCiX03NzY1NjVOUU2Din5ERUM/QD9uc2pma2N+hXpUV1JFR0Q0NTRDREKIj4OCiH1XWlVGSEVfY1w9Pjw+Pz0/QD6Ein92fHI7PDpdYVp8gniFjIA8PTyAhnxgY11gZF5FRkRQU05YXFZna2NCREFSVVFAQkB/hXpXW1Vrb2dJSkc9PTxlamKFi4BISUZZXVeHjoJzeW9gZF1TVlFfYlxna2RVV1JcX1lbX1lNUEyDiX5tcmlzeXB8gndRVFBOUExpbWZSVFBNT0xhZF5laWJ4fXNwdW1RU09bXllDRUJqbmZfY12Ei4BUVlJbXlhKTEhTVVFcYFpeYltxdm1xd25obGU1NTSFjIFKS0iBiHxscWl9hHlscGhpbWVaXVhvc2ttcWk0NDPL7ZluAAAChElEQVR4Xu3SU6+kWRxG8fWibNvHtm3bdtu27bFtfsXJ6a5UMkklXdU5yZlMat09++Kf38Xmf1mmTJnmnwOAuN3FvpT1fhyw5OVdygBETYlekvStAEUfCKYDBXD+KTAWVQOxduDDMu13WcCx1dLCNpifFrZXRCBoXi4fyk4AggGnKqCmxOwFaDyaImBJ7td1TleK4KlubA1GfHXkdAOx658DnwzCbctAONb8AGTTewN2DOXZrYs+B/TVfhEadUkJgK9RqWszLWBxAfhXUgV8CYxpsyneUgBizx/orhTAqYYocOQsCqcXiEkgRwDluVVAPXGYow0AHyUARYBY089cJaA7pE4V4AV4pcejAeClCSwGxNk+VQiFAMccAKKxFzkfMNgA0ORge5bkDwy3ETZugidKWoC5KO5PAbB/Bl+7afETyWNQD/VP5N1+/Bh5HKhQvZ5HTqJaTAL4SgO/fwOP89MD3DKjrwKg9xBMFuK4S34AvwHM9xSvs74B5Na/mTpUp5MAzmigScvhkbr0AO0z5F4A4KIENF+S1ISaR1VWuFxFvNeAE2XEs2UnAZTOAMLVazOkDNgEsOUQnFADBIaADscNoH7YDBSVWwGUcUCJURGfN78HcCUAxwFMJ4DSO7aW1AHyBgtr0hi4LXaU96t1QJ6xAnjx0APwyF+M6Po2DqDi4CQ0FXrZUXl+EPMOJgC+FkLuGiWwbhRIHfBTpTDSvQGIudXan39ZBwj/age8WjuAcs0p1DbsQMQAwAtp1ll2HFDIxtqOpt/igJqpP5e3/ioGoKcqDYCXOivxukSSFv73e4HyLVeFqbQAe16Whf0EdI5rDaTc33ore9wBzTj/0TJlyvQPsTd0lRaZaakAAAAASUVORK5CYII=";
var r=new Image;r.src="data:image/png;base64,[encoded data, 9588 characters]";
var t=new Image;t.src="data:image/png;base64,[encoded data, 10044 characters]";
var p=new Image;p.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABnlBMVEUzMzOIjoM0NDSHjoJyeG+FjIE2NjZISkeAhntNUEw4ODhVWFN1enFXWlWFjIA9Pj06Ozp4fnRxd26Ah3x6gHZtcmqEin98gnh5f3U8PTxobGWBiH1+hHo1NTVBQkBWWVQ9PjyEi4BMTkp9hHlna2Q5OjlDREJRVFBgZF6Din5laWJGSEU/QD5UVlJ7gXdscWlcX1lFRkRAQT9aXlhvdGtjZ2BCQ0FmamOCiX5wdm03Nzc7PDtHSEZJS0hTVlFpbmZYW1ZERkNuc2tdYVs3ODdCREF2fHJbXlliZl9QUk41NjVeYltZXFc/QD9YW1VQU09tcmlhZV9scGhKTEl3fHNeYlxERUNwdWw7PDpcYFpLTUpqb2d/hntpbWY+Pz5nbGR2e3JMTktWWlR9g3l0eXA8PDt8gndPUk44ODeDin9obGRaXViBiHxrcGhTVVFPUk1OUE1KTEhvdGx4fXNZXFZlamJyeG5RVE90enCGjYJkaGFgZF1rcGczNDNISkZISUZAQj9gY11fY11kaGBLTkpERUJVV1NGR0VUVlFwdW0dCiH/AAAHg0lEQVR4Xu3WVZPkOBYF4HOMycxYyMzMDM3MzMwwM8v4r3fKkpyZ1d3R2Rsxuw/j71HlSstH90rC/57H4/F4PB6Px+PxeDwe26/h98wmV/B71kaO4HftQ3UP/z8ej2cs3A1lKWxBagv3Yy4c3oB0JjwAqSv8ArDDi5AC4RNQguEo6gQGryWM9LnR+qHgcsL4+XgMUjgcAIB7h9OYOjVrrDhjc4htrxk3cMg6MT1rTPTY+JrrIyeNRMcJCzWrf54wZvv8ZUh2+O/AvYOTvw6ewaG5pWXDuFINwHGMeieEFvIWpBIfACX6IWW5A+ka+4Ag45C6+SmgpkM9hprwIwoJN5bbvXRE1jU4yD+J4zCLSzrJZ85YS9sMySQADCYpbI3hKKtPp8P3ElJ0lkL2bxA6OKKNmHQYMeCD/MGiiAP3uQshTHZAGHM+app9EDbJLCQf24A8eRHCSVIVUZBbqLlE/cZiPra6P8OreTg+U3+8mJ+3p3X+fCSA9rdMnjrx0nbGdk2zsOR/AWCHeuHMfKBSvcNkHo3mQny0vnox6p8lq3CMFul7shkb6N4i36oA1t9x1n8sak+avPvLOK+On49ODQ6xVSQ66X71e5pJTS4UDQB+Zt1viXAKjgojFoC4+mqrNcJhCKe5DteYrgqoJcs0Dg0yImNfyPB2YwCZyEQAApm8L5f7ASOv4AjE+QyNlpmVpfWWn7oAYD7JhPgVbZ30ywCGVDxt5F95QTzwMMdl0d0swdGppwz+EY40nwDYMCk7/w2neQmOFb4GgJ/kv+MWC2bGEi8tchSuESYg2aLP5ooMQlqir9wQAHN7kMjWAQhnOQKpn6ZKyB2YglTgsIgkZ0GapM8SAbAHUppMqQf8bHVmsNfKiuzlngPZ6VqvGEvI6KLcWuVZOCbE0i0wCcdjtk3IvWOVSQ2uPvZBeWr2Ox0ypEHSrvIPjQG0QanNWCv5xqAUuYB6VzgNpcLIHhDVaUOxfAyKAGY2IAXJl5AsXRb1GldkOv1RZmW27Th0wLRc9W3cYQsAlDOMOhnNsEusembvOcV+vc0CakYYQqOJ+g4ZZrghgBkNCnkeXzHk7tFqlWy4ipwCnjCOmnM0RAAdUM7Q3IPi46JM5bXo5asaznJTtHyf3AsfOdMyOIYdHhcrn1L5j4uZX0Gn+VQTBbOLhj3gpzLqJbkI11yn1RBACS5y4OsB+FGnQt2CK9CpAWv8C2pGGdGcAHqg2PTB1S6LroWte05L9AEjotMNlXWWC2J3APr5HgD2eUqdfgnRabvArFPOlinOQ6Wqs/3cqAbFIqOo12QA2pR/MPgrX2MAl9n+ZUS7qLHIgWYCQM5ZmAJfAWN8A2DOjFjq2DoHYInnDpvW2chCqu5iumkBuBPZAILccerLQIOFEMnetWAMjntk4McD2Cz0UmoM4ATjOCJJG3UyPN9UAD3sAbRiUXPCiAJtvOCmfBNAmuedMLqBgN5bhnCTl4EurjlhZJ3fGccRle3ZDGk+vggA+f8mgH2dpenqrUXbtkuNAXR/GcDTxm2yl6NNBWAzDtgsiApfASZ5G4IV0TthRdrFY2nAz9OQ1jkJ7HNJ9EwXEGcFX9L6P0foqwAIkPd+NIBtRoLa1/cAP4dwRIltqGOy0lQA2gxjmBTxbtIQZSBN8AH8nHQee9pq4TOXIK0yBcTFRfo41xHT2/F10ThzGoAIV38wgFiE/m9tgqPM4Ii7XEHNdfJhUwHgGbvRLi8z9/XOeaagVNmBgrweTdOPFOch/ZJk/rq87OQZxy778A1Rnf90miYIV0tX7PsBPGcc3wpgQ+cYXJUuC9hhGjVLHEJzATzntfMcVhvC826eghJlSSvK681lFlp4Fq4CBw8YVhtCtKPxmB5YvgFXjt3OwTwB1xr/8f0ARngSiqZOAeUjD+ovBccAm2YMLoM9TQYQ00uX+EEV1rPHtOFK8V/qwlWeSXZzH64HXE4wD8cTVrMRC3XmyUpd2H4Ax3R9ClJnhmPfD+A441DGeSSAQbZbENSFPsdpKLeoDzQZALaYMwNq2Jd6VIarh3FehnCNCY7CFfiUjdx0++29e3RoagEmNAi7cmVu8M1D+cwwJ5rYAzbpltWgTr5oeEE5xQ4V531RDYvkIIRKkZNoNoB9urPHJDmMGpt0Dz4/Gy77MMhxSHHKbiiHdDHY1crEKgA8HDflHAIppmznbwn68k0EgDRbgxagLaR5NsVqwwvQleHaAADtVpaGJnuG7+YB7AV7eXev6QBGySCkBXIJNeVeXoFkZVhAnXHyGKRL5HUcmqLaQ/tLpC/xessk+2RuFz+SpcS/s2R8AM0EEAiRrblcL5kOpPmu8QUYLZGpC4kieXoOQjVCPX7hboa8YqHpALQLRgySNmHMo86p0BkoPaE21KmETkMZCw2r4i6pMOdWQiZJ33I/FK3bMEnz42AZQijU4ixmKA3AHctDKR+P6+TM6UUgGLp25AXYGMnpZObkK7hadu6QnBm2IW2HqlC6QmtwDYf68ZvT5qOBo0P5fBk/worG8G1Wy0UcsdESw5c8Ho/H4/F4PB6Px+PxeDwej8fzH+ab6YZ24mCxAAAAAElFTkSuQmCC";
var w=new Image;w.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAABblBMVEUzMzM2NjY4ODheYlxAQkA/QD58gng0NDQ5Ojl6gHaCiX59hHlMTktZXFc9Pj15f3VkaGFdYVuEi39WWVQ8PTxgZF5FRkRtcmo1NTVlaWJscWl4fnSBiH1xdm5iZmBqb2c9Pjx2fHJcYFpYW1Y6Ozp9g3lHSEZcX1mAhnt+hXo3NzdSVFCHjoJGSEVAQT9CQ0FERUNZXFZobWVERkOAh3xUVlI8PDt1enF3fHNiZl9DREJ2e3I3ODdRVE+FjIE4ODdOUU2Din9KTElVWFNJS0hxdm1MTkpna2RbX1lQUk5XWlV7gXd8gndrcGhuc2tfY11tcml0eXBNUEyDin5yeG9ISkc1NjVmamOEi4BKTEhvdGx6gHVLTUp0enBwdWxNT0x4fXR4fXNVV1M+Pz5aXVhbXlhPUk5vdGs7PDs/QD9pbmZTVVGIj4NXWlRgZF1pbWY5OTlhZV9TVlFlamJzeXB/hntscWg0NDNeYluBiHw6JP9nAAAC8ElEQVR4Xu3R1YpsORhA4bVdyt3dXdvd3e2467jL2w+himloai7m6nCgvos/yWYTFoSv3tTUlFzky/pxhy+rGOQrZ0YM4NsCQEY7cAF80wEGMZTHwKz4gZkthNk7Sz8PA6xclOZmxBqA3stA4gkrb9ZzHviQKiUUibF2Rre8JiDlX+s7u0D4zN3XPUq0GDs6upOB4zKQcwCabbR0QG0qgOKlsgd839wGnq8DSKVK0Zyxu5B/FV4O587A54X+q3hLw5dI3ajsv25JWiTOSGc4YwZDR3WiF3FV3i0VwGldb8uDRCy3YmqRCJBWIGjNdyFwgpHUoJLxAEvPWKwBOxkvrD1aA9h+ChBKE7yaBT755VHAnAH4HBJQVQF51UTgRQHgNEDhuQG0/UGczTaw+Z0TKDaXYXMJDkMVBeINyARgXj3WkDck+F1FdmQd4EwhqLaGwFYEwZUdBbwD8MX4V7KNIK3+BHBzSe4DQqSAMwfwdtUA2NDgdsMkFVY9GMkiNCIELUIu1k+BvQKNGEtdvC4EAsPzgBsILTAyCnCNd8Lgh/jHj6ujADXJ2NVnxpHOOQC3H8EWn08P5BJYWngJMG3jUCF8QSwArD8h/ph3CpbKiOT82ZGRCIX+K8Bn/dJxu+1xwJAx/1uEyq8TArb2Gl5QXJU8wFw5NYBS8TgLLNtyLYrmCercu91RKGQQzOjDgOyGef8EyE0JQFrDs4nQ358QkHXEb2Dxt+sBQN6rA2mfByG10AcS4m7hfQ/g8A/UpAQYQ+1hQMsB4B4/AbkDgLTC2QmAaXcmBOBxGIClI3T9aaBshxBc/ksgbz+DbgPKwzK4PVvQj8vU7855GFBPBgzK848W+bOXhe1aGC6rWWTdFyV4HWNSQD59PyFRBoxEC6GtS4Aq5ntRvjtfdThcQDRU1asLEvQUWHgD0PsLIJy4SqYWXzip114Cu55aNdUBZk/+LtX2DdiMAAQthKdu/q/bOmNrTCZFJx+NZSaYmpqamvoHZD1hKSAldSkAAAAASUVORK5CYII=";
this.ne={ej:[d,g,e,b],su:[h,f,c,l],av:[r,t,p,w]}}this.wh=a[21];this.lj=bc();this.hd=new W(this);d=0;for(g=a[2].length;d<g;d++)c=a[2][d],e=this.Sd(c[0]),fb(c,e.prototype),l=new e(this),l.Fj=c[1],l.ke=c[2],l.Oo=c[9],l.P&&l.P(),this.plugins.push(l);this.lj=bc();d=0;for(g=a[3].length;d<g;d++){c=a[3][d];h=this.Sd(c[1]);l=null;e=0;for(b=this.plugins.length;e<b;e++)if(this.plugins[e]instanceof h){l=this.plugins[e];break}r=new l.ia(l);r.name=c[0];r.S=c[2];r.Sk=c[3].slice(0);r.Yu=c[3].length;r.Ar=c[4];r.Zs=
c[5];r.T=c[11];r.S?(r.ij=[],r.vd=this.Ig++,r.ra=null):(r.ij=null,r.vd=-1,r.ra=[]);r.yi=null;r.Gf=null;r.An=null;r.sc=!1;r.Qb=null;c[6]?(r.Op=c[6][0],r.Pp=c[6][1],r.Pu=c[6][2]):(r.Op=null,r.Pp=0,r.Pu=0);c[7]?r.Pb=c[7]:r.Pb=null;r.index=d;r.j=[];r.ri=[];r.Jd=[new gb(r)];r.Zc=0;r.$c=null;r.Kr=0;r.ig=!0;r.Sj=hb;r.ct=ib;r.jt=jb;r.ja=kb;r.Ch=lb;r.Il=mb;r.$f=nb;r.Hi=ob;r.Bk=pb;r.Dk=qb;r.Wd=rb;r.Fk=sb;r.mi=new Xa(this.Ra,this.Qa);r.$h=!0;r.ai=!1;r.ca={};r.toString=tb;r.wa=[];e=0;for(b=c[8].length;e<b;e++){t=
c[8][e];p=this.Sd(t[1]);w=null;h=0;for(f=this.wa.length;h<f;h++)if(this.wa[h]instanceof p){w=this.wa[h];break}w||(w=new p(this),w.kj=[],w.jj=new ba,w.P&&w.P(),this.wa.push(w),cc&&w instanceof cc&&(this.Ip=w),Ub.$t&&w instanceof Ub.$t&&(this.io=w));-1===w.kj.indexOf(r)&&w.kj.push(r);h=new w.ia(w,r);h.name=t[0];h.T=t[2];h.P();r.wa.push(h)}r.global=c[9];r.Xk=c[10];r.L=[];e=0;for(b=c[12].length;e<b;e++)r.L.push({id:c[12][e][0],name:c[12][e][1],Ha:-1,Pc:!1,ab:!0,index:e});r.Fw=c[13];this.vm&&!r.S&&!r.Xk&&
l.ke||r.P();r.name&&(this.types[r.name]=r);this.u.push(r);l.Fj&&(e=new l.aa(r),e.uid=this.wh++,e.np=this.Qo++,e.Re=0,e.Og=ub,e.toString=vb,e.G=c[14],e.P(),r.j.push(e),this.Fd[e.uid.toString()]=e)}d=0;for(g=a[4].length;d<g;d++)for(h=a[4][d],f=this.u[h[0]],e=1,b=h.length;e<b;e++)c=this.u[h[e]],c.ra.push(f),f.ij.push(c);d=0;for(g=a[28].length;d<g;d++){h=a[28][d];f=[];e=0;for(b=h.length;e<b;e++)f.push(this.u[h[e]]);e=0;for(b=f.length;e<b;e++)f[e].sc=!0,f[e].Qb=f}if(0<this.Ig)for(d=0,g=this.u.length;d<
g;d++)if(c=this.u[d],!c.S&&c.ra.length){c.yi=Array(this.Ig);c.Gf=Array(this.Ig);c.An=Array(this.Ig);r=[];e=w=p=t=0;for(b=c.ra.length;e<b;e++)for(l=c.ra[e],c.yi[l.vd]=t,t+=l.Yu,c.Gf[l.vd]=p,p+=l.Ar,c.An[l.vd]=w,w+=l.Zs,h=0,f=l.L.length;h<f;h++)r.push(ta({},l.L[h]));c.L=r.concat(c.L);e=0;for(b=c.L.length;e<b;e++)c.L[e].index=e}d=0;for(g=a[5].length;d<g;d++)c=a[5][d],e=new wb(this,c),this.gl[e.name]=e,this.Nc.push(e);d=0;for(g=a[6].length;d<g;d++)c=a[6][d],e=new xb(this,c),this.sk[e.name]=e,this.ud.push(e);
d=0;for(g=this.ud.length;d<g;d++)this.ud[d].Ea();d=0;for(g=this.ud.length;d<g;d++)this.ud[d].qm();d=0;for(g=this.Rj.length;d<g;d++)this.Rj[d].Ea();S(this.Rj);this.xr=a[7];this.Gd=a[9];this.wg=1;this.ns=a[13];this.Ca=a[14];this.rn=a[15];this.Wu=a[17];this.Bl=a[20];this.yr=0<this.Bl;this.pu=a[22];this.gc=this.hq=a[23];this.cs=a[24];this.tu=a[25];this.ma=a[27]&&!this.je;this.Gj=Date.now();S(this.lj);this.Lt()};var d=!1;c.prototype.$u=function(a,g){a.cocoonLazyLoad=!0;a.onerror=function(g){d=a.ln=!0;
console&&console.error&&console.error("Error loading image '"+a.src+"': ",g)};this.Mc?a.src=g:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(d){a.src=d},function(e){d=a.ln=!0;console&&console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",e)}):(a.crossOrigin="anonymous",this.yp(a,g)));this.qg.push(a)};c.prototype.Ys=function(a){var d,g;d=0;for(g=this.qg.length;d<g;d++)if(this.qg[d].Gr===a)return this.qg[d];return null};var h=0,f=!1;c.prototype.Et=function(){this.xg&&
(h=this.xg.Cw(this.xr))};c.prototype.gn=function(){var a=h,d=0,g=0,e=!0,b,c,g=0;for(b=this.qg.length;g<b;g++){c=this.qg[g];var l=c.Fr;if(!l||0>=l)l=5E4;a+=l;c.src&&(c.complete||c.loaded)&&!c.ln?d+=l:e=!1}e&&this.tu&&this.xg&&(f||(this.xg.Dw(),f=!0),g=this.xg.mw(),d+=g,g<h&&(e=!1));this.Qc=0==a?1:d/a;return e};var e=!1;c.prototype.go=function(){if(this.xa||this.C){var a=this.xa||this.Cl;this.fb&&this.ip();var g=window.innerWidth,b=window.innerHeight;this.Sf===g&&this.Rf===b||this.setSize(g,b);this.Qc=
0;this.no=-1;var h=this;if(this.gn()&&(4!==this.oe||e))this.Ft();else{b=Date.now()-this.Gj;if(a){var f=this.width,c=this.height,g=this.devicePixelRatio;if(3>this.oe&&(this.qc||500<=b&&this.no!=this.Qc)){a.clearRect(0,0,f,c);var b=f/2,c=c/2,f=0===this.oe&&this.ne.ej.complete,l=40*g,r=0,t=80*g,w;if(f){var k=this.ne.ej,t=k.width*g;w=k.height*g;l=t/2;r=w/2;a.drawImage(k,I(b-l),I(c-r),t,w)}1>=this.oe?(b=I(b-l)+.5,c=I(c+(r+(f?12*g:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(b,c,Math.floor(t*this.Qc),
6*g),a.strokeStyle="black",a.strokeRect(b,c,t,6*g),a.strokeStyle="white",a.strokeRect(b-1*g,c-1*g,t+2*g,8*g)):2===this.oe&&(a.font=this.Mc?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.Ew="middle",g=Math.round(100*this.Qc)+"%",f=a.measureText?a.measureText(g):null,a.fillText(g,b-(f?f.width:0)/2,c));this.no=this.Qc}else if(4===this.oe){this.ks(a);p?p(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.qc?10:100)}}};var r=-1,l="undefined"===typeof cr_is_preview?
200:0,w=!0,g=!1,t=0,ea=0,qa="undefined"===typeof cr_is_preview?3E3:0,A=null,P=null,T=0;c.prototype.ks=function(a){if(!e){for(var b=Math.ceil(this.width),h=Math.ceil(this.height),f=this.ne.ej,c=this.ne.su,p=this.ne.av,k=0;4>k;++k)if(!f[k].complete||!c[k].complete||!p[k].complete)return;0===T&&(r=Date.now());var k=Date.now(),m=!1,v=a,n,u;w||g?(a.clearRect(0,0,b,h),A&&A.width===b&&A.height===h||(A=document.createElement("canvas"),A.width=b,A.height=h,P=A.getContext("2d")),v=P,m=!0,w&&1===T&&(r=Date.now())):
a.globalAlpha=1;v.fillStyle="#333333";v.fillRect(0,0,b,h);256<this.Cg?(n=Ca(.22*h,105,.6*b),u=.25*n,v.drawImage(q(c,n),.5*b-n/2,.2*h-u/2,n,u),u=n=Math.min(.395*h,.95*b),v.drawImage(q(f,n),.5*b-n/2,.485*h-u/2,n,u),n=Ca(.22*h,105,.6*b),u=.25*n,v.drawImage(q(p,n),.5*b-n/2,.868*h-u/2,n,u),v.fillStyle="#3C3C3C",n=b,u=Math.max(.005*h,2),v.fillRect(0,.8*h-u/2,n,u),v.fillStyle=d?"red":"#E0FF65",n=b*this.Qc,v.fillRect(.5*b-n/2,.8*h-u/2,n,u)):(u=n=.55*h,v.drawImage(q(f,n),.5*b-n/2,.45*h-u/2,n,u),v.fillStyle=
"#3C3C3C",n=b,u=Math.max(.005*h,2),v.fillRect(0,.85*h-u/2,n,u),v.fillStyle=d?"red":"#E0FF65",n=b*this.Qc,v.fillRect(.5*b-n/2,.85*h-u/2,n,u));m&&(w?a.globalAlpha=0===T?0:Math.min((k-r)/300,1):g&&(a.globalAlpha=Math.max(1-(k-ea)/300,0)),a.drawImage(A,0,0,b,h));w&&300<=k-r&&2<=T&&(w=!1,t=k);!w&&k-t>=qa&&!g&&1<=this.Qc&&(g=!0,ea=k);if(g&&k-ea>=300+l||"undefined"!==typeof cr_is_preview&&1<=this.Qc&&500>Date.now()-r)e=!0,g=w=!1,this.ne=P=A=null;++T}};c.prototype.Ft=function(){this.fb&&(this.canvas.parentNode.removeChild(this.fb),
this.fb=this.Cl=null);this.Gj=Date.now();this.bf=Qa();var a,d,g;if(this.vm)for(a=0,d=this.u.length;a<d;a++)g=this.u[a],g.S||g.Xk||!g.Da.ke||g.P();else this.Of=!1;a=0;for(d=this.Nc.length;a<d;a++)this.Nc[a].Hr();2<=this.ub&&(a=this.Ra/this.Qa,d=this.width/this.height,this.wg=2!==this.ub&&d>a||2===this.ub&&d<a?this.height/this.Qa:this.width/this.Ra);this.Gn?this.gl[this.Gn].gm():this.Nc[0].gm();this.vm||(this.aj=1,this.trigger(W.prototype.k.Jm,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&
navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.u.length;a<d;a++)g=this.u[a],g.hu&&g.hu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Mb(!1);this.ie&&AppMobi.webview.execute("onGameReady();")};c.prototype.Mb=function(a,d,g){if(this.ba){var e=Qa();if(g||!this.Yg||a){a||(p?this.Ml=p(this.Qp):this.km=setTimeout(this.Qp,this.Bd?1:16));d=d||e;var b=this.ub;((g=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||!!document.msFullscreenElement)&&!this.rc)||this.Xg)&&0<this.Oe&&(b=this.Oe);if(0<b){var b=window.innerWidth,h=window.innerHeight;this.Sf===b&&this.Rf===h||this.setSize(b,h)}this.Ba||(g?(this.Bi||(this.yk=jQuery(this.canvas).css("margin")||"0",this.Bi=!0),this.Tk||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.Bi?(this.Tk||
this.Ve||jQuery(this.canvas).css("margin",this.yk),this.yk="",this.Bi=!1,0===this.ub&&this.setSize(Math.round(this.Uo/this.devicePixelRatio),Math.round(this.To/this.devicePixelRatio),!0)):(this.Uo=this.width,this.To=this.height));this.Of&&(g=this.gn(),this.aj=this.Qc,g&&(this.Of=!1,this.Qc=1,this.trigger(W.prototype.k.Jm,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.cu(d);!this.W&&!this.qc||this.al||this.Oh||a||(this.W=!1,this.C?this.pc():this.td(),this.Mh&&(this.canvas&&this.canvas.toDataURL&&
(this.Gp=this.canvas.toDataURL(this.Mh[0],this.Mh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Gp),this.trigger(W.prototype.k.Dq,null)),this.Mh=null));this.ow||(this.Kd++,this.wi++,this.Gi++);this.qh+=Qa()-e}}};c.prototype.cu=function(a){var d,g,e,b,h,f,c,l;1E3<=a-this.bf&&(this.bf+=1E3,1E3<=a-this.bf&&(this.bf=a),this.xk=this.Gi,this.Gi=0,this.kk=this.qh,this.qh=0);d=0;0!==this.Ui&&(d=a-this.Ui,0>d&&(d=0),this.Ke=d/=1E3,.5<this.Ke?this.Ke=0:this.Ke>1/this.Mo&&(this.Ke=1/this.Mo));this.Ui=
a;this.Df=this.Ke*this.lg;this.ic.add(this.Df);this.Wj.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Xg)&&!this.rc;2<=this.ub||a&&0<this.Oe?(d=this.Ra/this.Qa,g=this.width/this.height,e=this.ub,a&&0<this.Oe&&(e=this.Oe),this.wg=2!==e&&g>d||2===e&&g<d?this.height/this.Qa:this.width/this.Ra,this.ba&&(this.ba.Yl(this.ba.scrollX),this.ba.Zl(this.ba.scrollY))):this.wg=this.We?this.devicePixelRatio:1;this.jb();this.Ad++;this.hd.Cu();
this.Ad--;this.jb();this.Ad++;g=this.So.Nd();a=0;for(d=g.length;a<d;a++)g[a].xw();a=0;for(d=this.u.length;a<d;a++)if(f=this.u[a],!f.S&&(f.wa.length||f.ra.length))for(g=0,e=f.j.length;g<e;g++)for(c=f.j[g],b=0,h=c.J.length;b<h;b++)c.J[b].Mb();a=0;for(d=this.u.length;a<d;a++)if(f=this.u[a],!f.S&&(f.wa.length||f.ra.length))for(g=0,e=f.j.length;g<e;g++)for(c=f.j[g],b=0,h=c.J.length;b<h;b++)l=c.J[b],l.jp&&l.jp();g=this.ql.Nd();a=0;for(d=g.length;a<d;a++)g[a].Mb();this.Ad--;this.Gt();for(a=0;this.He&&10>
a++;)this.yn(this.He);a=0;for(d=this.ud.length;a<d;a++)this.ud[a].Mk=!1;this.ba.Me&&this.ba.Me.Ta();S(this.Ol);this.Ad++;a=0;for(d=this.u.length;a<d;a++)if(f=this.u[a],!f.S&&(f.wa.length||f.ra.length))for(g=0,e=f.j.length;g<e;g++)for(c=f.j[g],b=0,h=c.J.length;b<h;b++)l=c.J[b],l.kg&&l.kg();g=this.rl.Nd();a=0;for(d=g.length;a<d;a++)g[a].kg();this.Ad--};c.prototype.te=function(){var a,d,g,e,b,h,f,c,l;a=0;for(d=this.u.length;a<d;a++)if(f=this.u[a],!f.S)for(g=0,e=f.j.length;g<e;g++)if(c=f.j[g],c.te&&c.te(),
c.J)for(b=0,h=c.J.length;b<h;b++)l=c.J[b],l.te&&l.te()};c.prototype.yn=function(a){var d=this.ba;this.ba.Nu();var g,e,b;if(this.C)for(g=0,e=this.u.length;g<e;g++)b=this.u[g],b.S||!b.Yp||b.global&&0!==b.j.length||-1!==a.Tg.indexOf(b)||b.Yp();d==a&&S(this.hd.ac);S(this.Ol);this.qp(!0);a.gm();this.qp(!1);this.W=!0;this.jb()};c.prototype.qp=function(a){var d,g,e,b,h,f,c,l,r;d=0;for(g=this.wa.length;d<g;d++)e=this.wa[d],a?e.xh&&e.xh():e.yh&&e.yh();d=0;for(g=this.u.length;d<g;d++)if(e=this.u[d],e.global||
e.Da.Fj)for(b=0,h=e.j.length;b<h;b++)if(f=e.j[b],a?f.xh&&f.xh():f.yh&&f.yh(),f.J)for(c=0,l=f.J.length;c<l;c++)r=f.J[c],a?r.xh&&r.xh():r.yh&&r.yh()};c.prototype.Nj=function(a){this.ql.add(a)};c.prototype.Qu=function(a){this.rl.add(a)};c.prototype.Pe=function(a){return a&&-1!==a.vh?this.Ke*a.vh:this.Df};c.prototype.td=function(){this.ba.td(this.xa);this.ie&&this.xa.present()};c.prototype.pc=function(){this.ma&&(this.Le=1,this.ba.Cf(this.C));this.ba.pc(this.C);this.C.vu()};c.prototype.an=function(a){a&&
this.ti.push(a)};c.prototype.pp=function(a){Ba(this.ti,a)};c.prototype.Lg=function(a){a=a.toString();return this.Fd.hasOwnProperty(a)?this.Fd[a]:null};var F=[];c.prototype.Be=function(a){var d,g;d=a.type.name;var e=null;if(this.Je.hasOwnProperty(d)){if(e=this.Je[d],e.contains(a))return}else e=F.length?F.pop():new ba,this.Je[d]=e;e.add(a);this.he=!0;if(a.sc)for(d=0,g=a.siblings.length;d<g;d++)this.Be(a.siblings[d]);this.Wk&&e.og.push(a);this.Vk||(this.Ad++,this.trigger(Object.getPrototypeOf(a.type.Da).k.Eq,
a),this.Ad--)};c.prototype.jb=function(){if(this.he){var a,d,g,e,b,h;this.Wk=!0;g=0;for(b=this.Jc.length;g<b;++g)for(a=this.Jc[g],d=a.type,d.j.push(a),e=0,h=d.ra.length;e<h;++e)d.ra[e].j.push(a),d.ra[e].ig=!0;S(this.Jc);this.yq();Pa(this.Je);this.he=this.Wk=!1}};c.prototype.yq=function(){for(var a in this.Je)this.Je.hasOwnProperty(a)&&this.nq(this.Je[a])};c.prototype.nq=function(a){var d=a.Nd(),g=d[0].type,e,b,h,f,c,l;Ra(g.j,a);g.ig=!0;0===g.j.length&&(g.ai=!1);e=0;for(b=g.ra.length;e<b;++e)l=g.ra[e],
Ra(l.j,a),l.ig=!0;e=0;for(b=this.hd.ac.length;e<b;++e)if(c=this.hd.ac[e],c.Zb.hasOwnProperty(g.index)&&Ra(c.Zb[g.index].Ue,a),!g.S)for(h=0,f=g.ra.length;h<f;++h)l=g.ra[h],c.Zb.hasOwnProperty(l.index)&&Ra(c.Zb[l.index].Ue,a);if(c=d[0].q){if(c.nc)for(h=c.j,e=0,b=h.length;e<b;++e)f=h[e],a.contains(f)&&(f.fa(),c.gb.update(f,f.Kb,null),f.Kb.set(0,0,-1,-1));Ra(c.j,a);c.Hh(0)}for(e=0;e<d.length;++e)this.mq(d[e],g);a.clear();F.push(a);this.W=!0};c.prototype.mq=function(a,d){var g,e,b;g=0;for(e=this.ti.length;g<
e;++g)this.ti[g](a);a.ae&&d.mi.update(a,a.ae,null);(g=a.q)&&g.bg(a,!0);if(a.J)for(g=0,e=a.J.length;g<e;++g)b=a.J[g],b.jf&&b.jf(),b.behavior.jj.remove(a);this.So.remove(a);this.ql.remove(a);this.rl.remove(a);a.jf&&a.jf();this.Fd.hasOwnProperty(a.uid.toString())&&delete this.Fd[a.uid.toString()];this.mj--;100>d.ri.length&&d.ri.push(a)};var B=[];c.prototype.Ie=function(a,d,g,e,b,h){var f,c,l,r;if(!a)return null;var t=this.u[a[1]],p=t.Da.ke;if(this.Of&&p&&!t.Xk||p&&!this.C&&11===a[0][11])return null;
var w=d;p||(d=null);var k;t.ri.length?(k=t.ri.pop(),k.Jb=!0,t.Da.aa.call(k,t)):(k=new t.Da.aa(t),k.Jb=!1);!g||h||this.Fd.hasOwnProperty(a[2].toString())?k.uid=this.wh++:k.uid=a[2];this.Fd[k.uid.toString()]=k;k.np=this.Qo++;k.Re=t.j.length;f=0;for(c=this.Jc.length;f<c;++f)this.Jc[f].type===t&&k.Re++;k.Og=ub;k.toString=vb;l=a[3];if(k.Jb)Pa(k.ca);else{k.ca={};if("undefined"!==typeof cr_is_preview)for(k.Xn=[],k.Xn.length=l.length,f=0,c=l.length;f<c;f++)k.Xn[f]=l[f][1];k.La=[];k.La.length=l.length}f=0;
for(c=l.length;f<c;f++)k.La[f]=l[f][0];if(p){var m=a[0];k.x=fa(e)?m[0]:e;k.y=fa(b)?m[1]:b;k.z=m[2];k.width=m[3];k.height=m[4];k.depth=m[5];k.n=m[6];k.opacity=m[7];k.Tb=m[8];k.Ub=m[9];k.kb=m[10];f=m[11];!this.C&&t.L.length&&(k.kb=f);k.zg=Za(k.kb);this.A&&ab(k,k.kb,this.A);if(k.Jb){f=0;for(c=m[12].length;f<c;f++)for(l=0,r=m[12][f].length;l<r;l++)k.ya[f][l]=m[12][f][l];k.qa.set(0,0,0,0);k.ae.set(0,0,-1,-1);k.Kb.set(0,0,-1,-1);k.Bb.Ih(k.qa);S(k.ck)}else{k.ya=m[12].slice(0);f=0;for(c=k.ya.length;f<c;f++)k.ya[f]=
m[12][f].slice(0);k.X=[];k.Td=[];k.Td.length=t.L.length;k.qa=new R(0,0,0,0);k.ae=new R(0,0,-1,-1);k.Kb=new R(0,0,-1,-1);k.Bb=new sa;k.ck=[];k.D=yb;k.gw=zb;k.tb=Ab;k.fa=Bb;k.Vu=Cb;k.cq=Db;k.bd=Eb}k.Rh=!1;k.Tu=0;k.Su=0;k.Ru=null;14===m.length&&(k.Rh=!0,k.Tu=m[13][0],k.Su=m[13][1],k.Ru=m[13][2]);f=0;for(c=t.L.length;f<c;f++)k.Td[f]=!0;k.Hd=!0;k.Wc=Fb;k.Wc();k.dq=!!k.X.length;k.bk=!0;k.fk=!0;t.$h=!0;k.visible=!0;k.vh=-1;k.q=d;k.Xc=d.j.length;k.Le=0;"undefined"===typeof k.Y&&(k.Y=null);this.W=k.nd=!0}var q;
S(B);f=0;for(c=t.ra.length;f<c;f++)B.push.apply(B,t.ra[f].wa);B.push.apply(B,t.wa);if(k.Jb)for(f=0,c=B.length;f<c;f++){var ea=B[f];q=k.J[f];q.Jb=!0;ea.behavior.aa.call(q,ea,k);m=a[4][f];l=0;for(r=m.length;l<r;l++)q.G[l]=m[l];q.P();ea.behavior.jj.add(k)}else for(k.J=[],f=0,c=B.length;f<c;f++)ea=B[f],q=new ea.behavior.aa(ea,k),q.Jb=!1,q.G=a[4][f].slice(0),q.P(),k.J.push(q),ea.behavior.jj.add(k);m=a[5];if(k.Jb)for(f=0,c=m.length;f<c;f++)k.G[f]=m[f];else k.G=m.slice(0);this.Jc.push(k);this.he=!0;d&&(d.vg(k,
!0),1!==d.Hb||1!==d.Ib)&&(t.ai=!0);this.mj++;if(t.sc){if(k.sc=!0,k.Jb?S(k.siblings):k.siblings=[],!g&&!h){f=0;for(c=t.Qb.length;f<c;f++)if(t.Qb[f]!==t){if(!t.Qb[f].$c)return null;k.siblings.push(this.Ie(t.Qb[f].$c,w,!1,p?k.x:e,p?k.y:b,!0))}f=0;for(c=k.siblings.length;f<c;f++)for(k.siblings[f].siblings.push(k),l=0;l<c;l++)f!==l&&k.siblings[f].siblings.push(k.siblings[l])}}else k.sc=!1,k.siblings=null;k.P();f=0;for(c=k.J.length;f<c;f++)k.J[f].ru&&k.J[f].ru();return k};c.prototype.Kg=function(a){var d,
g;d=0;for(g=this.ba.M.length;d<g;d++){var e=this.ba.M[d];if(cb(e.name,a))return e}return null};c.prototype.yd=function(a){a=I(a);0>a&&(a=0);a>=this.ba.M.length&&(a=this.ba.M.length-1);return this.ba.M[a]};c.prototype.ik=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].ja().ua=!0};c.prototype.Ch=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].Ch()};c.prototype.Il=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].Il()};c.prototype.$f=function(a){var d,g;d=0;for(g=a.length;d<g;d++)a[d].$f()};
c.prototype.aq=function(a){if(a.$h){var d,g,e=a.j;d=0;for(g=e.length;d<g;++d)e[d].cq();e=this.Jc;d=0;for(g=e.length;d<g;++d)e[d].type===a&&e[d].cq();a.$h=!1}};c.prototype.Kn=function(a,d,g,e){var b,f,h=a?1!==a.Hb||1!==a.Ib:!1;if(d.S)for(a=0,b=d.ij.length;a<b;++a)f=d.ij[a],h||f.ai?za(e,f.j):(this.aq(f),f.mi.vj(g,e));else h||d.ai?za(e,d.j):(this.aq(d),d.mi.vj(g,e))};c.prototype.Qn=function(a,d,g,e){var b,f;b=0;for(f=d.length;b<f;++b)this.Kn(a,d[b],g,e)};c.prototype.nt=function(a,d,g){var e=this.Ip;
e&&this.Qn(a,e.kj,d,g)};c.prototype.ht=function(a,d,g){var e=this.io;e&&this.Qn(a,e.kj,d,g)};c.prototype.Ph=function(a,d,g){var e=a.ja(),b,f,h,c,l=this.nb().fc.uc,r,t,k;if(e.ua)for(e.ua=!1,S(e.j),b=0,c=a.j.length;b<c;b++)h=a.j[b],h.fa(),r=h.q.Ia(d,g,!0),t=h.q.Ia(d,g,!1),h.tb(r,t)?e.j.push(h):l&&e.N.push(h);else{f=0;k=l?e.N:e.j;b=0;for(c=k.length;b<c;b++)h=k[b],h.fa(),r=h.q.Ia(d,g,!0),t=h.q.Ia(d,g,!1),h.tb(r,t)&&(l?e.j.push(h):(e.j[f]=e.j[b],f++));k.length=f}a.Wd();return e.Lk()};c.prototype.Ac=function(a,
d){if(!(a&&d&&a!==d&&a.nd&&d.nd))return!1;a.fa();d.fa();var g=a.q,e=d.q,b,f,h,c,l,r,t,k;if(g===e||g.Hb===e.Hb&&e.Ib===e.Ib&&g.scale===e.scale&&g.n===e.n&&g.sb===e.sb){if(!a.qa.Mt(d.qa)||!a.Bb.Yn(d.Bb)||a.Rh&&d.Rh)return!1;if(a.Rh)return this.Lp(a,d);if(d.Rh)return this.Lp(d,a);t=a.Y&&!a.Y.Kf();b=d.Y&&!d.Y.Kf();if(!t&&!b)return!0;t?(a.Y.xf(a.width,a.height,a.n),t=a.Y):(this.Uc.gg(a.Bb,a.x,a.y,a.width,a.height),t=this.Uc);b?(d.Y.xf(d.width,d.height,d.n),k=d.Y):(this.Uc.gg(d.Bb,d.x,d.y,d.width,d.height),
k=this.Uc);return t.Ug(k,d.x-a.x,d.y-a.y)}t=a.Y&&!a.Y.Kf();b=d.Y&&!d.Y.Kf();t?(a.Y.xf(a.width,a.height,a.n),this.Uc.Ap(a.Y)):this.Uc.gg(a.Bb,a.x,a.y,a.width,a.height);t=this.Uc;b?(d.Y.xf(d.width,d.height,d.n),this.im.Ap(d.Y)):this.im.gg(d.Bb,d.x,d.y,d.width,d.height);k=this.im;b=0;for(f=t.Rc;b<f;b++)h=2*b,c=h+1,l=t.Sa[h],r=t.Sa[c],t.Sa[h]=g.ta(l+a.x,r+a.y,!0),t.Sa[c]=g.ta(l+a.x,r+a.y,!1);t.fa();b=0;for(f=k.Rc;b<f;b++)h=2*b,c=h+1,l=k.Sa[h],r=k.Sa[c],k.Sa[h]=e.ta(l+d.x,r+d.y,!0),k.Sa[c]=e.ta(l+d.x,
r+d.y,!1);k.fa();return t.Ug(k,0,0)};var H=new sa;new R(0,0,0,0);var Z=[];c.prototype.Lp=function(a,d){var g,e,b,f,h=d.qa,c=a.x,l=a.y;a.kw(h,Z);var r=d.Y&&!d.Y.Kf();g=0;for(e=Z.length;g<e;++g)if(b=Z[g],f=b.Aw,h.Nt(f,c,l)&&(H.Ih(f),H.offset(c,l),H.Yn(d.Bb)))if(r)if(d.Y.xf(d.width,d.height,d.n),b.Fl){if(b.Fl.Ug(d.Y,d.x-(c+f.left),d.y-(l+f.top)))return S(Z),!0}else{if(this.Uc.gg(H,0,0,f.right-f.left,f.bottom-f.top),this.Uc.Ug(d.Y,d.x,d.y))return S(Z),!0}else if(b.Fl){if(this.Uc.gg(d.Bb,0,0,d.width,d.height),
b.Fl.Ug(this.Uc,-(c+f.left),-(l+f.top)))return S(Z),!0}else return S(Z),!0;S(Z);return!1};c.prototype.Wp=function(a,d){if(!d)return!1;var g,e,b,f,h;g=0;for(e=a.wa.length;g<e;g++)if(a.wa[g].behavior instanceof d)return!0;if(!a.S)for(g=0,e=a.ra.length;g<e;g++)for(h=a.ra[g],b=0,f=h.wa.length;b<f;b++)if(h.wa[b].behavior instanceof d)return!0;return!1};c.prototype.om=function(a){return this.Wp(a,Ub.Hv)};c.prototype.pm=function(a){return this.Wp(a,Ub.Iv)};var O=[];c.prototype.$b=function(a){var d,g,e;a.fa();
this.nt(a.q,a.qa,O);d=0;for(g=O.length;d<g;++d)if(e=O[d],e.ca.solidEnabled&&this.Ac(a,e))return S(O),e;S(O);return null};var na=[];c.prototype.ze=function(a,d){var g=null;d&&(g=na,S(g));a.fa();this.ht(a.q,a.qa,O);var e,b,f;e=0;for(b=O.length;e<b;++e)if(f=O[e],f.ca.jumpthruEnabled&&this.Ac(a,f))if(d)g.push(f);else return S(O),f;S(O);return g};c.prototype.Sc=function(a,d,g,e,b,f){e=e||50;var h=a.x,c=a.y,l,r=null,t=null;for(l=0;l<e;l++)if(a.x=h+d*l,a.y=c+g*l,a.D(),!this.Ac(a,r)&&((r=this.$b(a))&&(t=
r),!r&&(b&&(f?r=this.Ac(a,f)?f:null:r=this.ze(a),r&&(t=r)),!r)))return t&&this.Kl(a,d,g,t),!0;a.x=h;a.y=c;a.D();return!1};c.prototype.Kl=function(a,d,g,e){var b=2,f,h=!1;f=!1;for(var c=a.x,l=a.y;16>=b;)f=1/b,b*=2,a.x+=d*f*(h?1:-1),a.y+=g*f*(h?1:-1),a.D(),this.Ac(a,e)?f=h=!0:(f=h=!1,c=a.x,l=a.y);f&&(a.x=c,a.y=l,a.D())};c.prototype.yu=function(a,d){var g=fa(d)?100:d,e=0,b=a.x,f=a.y,h=0,c=0,l=0,r=this.$b(a);if(!r)return!0;for(;e<=g;){switch(h){case 0:c=0;l=-1;e++;break;case 1:c=1;l=-1;break;case 2:c=
1;l=0;break;case 3:l=c=1;break;case 4:c=0;l=1;break;case 5:c=-1;l=1;break;case 6:c=-1;l=0;break;case 7:l=c=-1}h=(h+1)%8;a.x=I(b+c*e);a.y=I(f+l*e);a.D();if(!this.Ac(a,r)&&(r=this.$b(a),!r))return!0}a.x=b;a.y=f;a.D();return!1};c.prototype.Fh=function(a,d){a.nd&&d.nd&&this.Ol.push([a,d])};var M=-1;c.prototype.trigger=function(a,d,g){if(!this.ba)return!1;var e=this.ba.Me;if(!e)return!1;var b=!1,f,h,c;M++;var l=e.ok;h=0;for(c=l.length;h<c;++h)f=this.Tp(a,d,l[h],g),b=b||f;f=this.Tp(a,d,e,g);M--;return b||
f};c.prototype.Tp=function(a,d,g,e){var b=!1,f,h,c,l;if(d)for(c=this.mm(a,d,d.type.name,g,e),b=b||c,l=d.type.ra,f=0,h=l.length;f<h;++f)c=this.mm(a,d,l[f].name,g,e),b=b||c;else c=this.mm(a,d,"system",g,e),b=b||c;return b};c.prototype.mm=function(a,d,g,e,b){var f,h=!1,c=!1,c="undefined"!==typeof b,l=(c?e.Cn:e.Up)[g];if(!l)return h;var r=null;e=0;for(f=l.length;e<f;++e)if(l[e].method==a){r=l[e].Gg;break}if(!r)return h;var t;c?t=r[b]:t=r;if(!t)return null;e=0;for(f=t.length;e<f;e++)a=t[e][0],b=t[e][1],
c=this.Vs(d,g,a,b),h=h||c;return h};c.prototype.Vs=function(a,d,g,e){var b,f,h=!1;this.nm++;var c=this.nb().fc;c&&this.Ch(c.ye);var l=1<this.nm;this.Ch(g.ye);l&&this.xu();var r=this.Jl(g);r.fc=g;a&&(b=this.types[d].ja(),b.ua=!1,S(b.j),b.j[0]=a,this.types[d].Wd());a=!0;if(g.parent){d=r.Kp;for(b=g.parent;b;)d.push(b),b=b.parent;d.reverse();b=0;for(f=d.length;b<f;b++)if(!d[b].Eu()){a=!1;break}}a&&(this.wi++,g.uc?g.Du(e):g.Ta(),h=h||r.$e);this.hp();l&&this.qu();this.$f(g.ye);c&&this.$f(c.ye);this.he&&
0===this.Ad&&0===M&&!this.Yk&&this.jb();this.nm--;return h};c.prototype.Ln=function(){var a=this.nb();return a.fc.lb[a.Eb]};c.prototype.St=function(){return 0===this.nb().Eb};c.prototype.xu=function(){this.cj++;this.cj>=this.nl.length&&this.nl.push([])};c.prototype.qu=function(){this.cj--};c.prototype.Mn=function(){return this.nl[this.cj]};c.prototype.Jl=function(a){this.vi++;this.vi>=this.rk.length&&this.rk.push(new Gb);var d=this.nb();d.reset(a);return d};c.prototype.hp=function(){this.vi--};c.prototype.nb=
function(){return this.rk[this.vi]};c.prototype.Nn=function(a,d){for(var g,e,b,f,h,c;d;){g=0;for(e=d.zc.length;g<e;g++)if(c=d.zc[g],c instanceof Hb&&cb(a,c.name))return c;d=d.parent}g=0;for(e=this.ud.length;g<e;g++)for(h=this.ud[g],b=0,f=h.ee.length;b<f;b++)if(c=h.ee[b],c instanceof Hb&&cb(a,c.name))return c;return null};c.prototype.On=function(a){var d,g;d=0;for(g=this.Nc.length;d<g;d++)if(this.Nc[d].T===a)return this.Nc[d];return null};c.prototype.Ji=function(a){var d,g;d=0;for(g=this.u.length;d<
g;d++)if(this.u[d].T===a)return this.u[d];return null};c.prototype.dt=function(a){var d,g;d=0;for(g=this.Vd.length;d<g;d++)if(this.Vd[d].T===a)return this.Vd[d];return null};c.prototype.Mr=function(a,d){this.Mh=[a,d];this.W=!0};c.prototype.Gt=function(){var a=this,d=this.Xl,g=this.Cd,e=this.Zi,f=!1;this.Fp&&(f=!0,d="__c2_continuouspreview",this.Fp=!1);if(d.length){this.jb();g=this.Iu();if(m()&&!this.qc)u(d,g,function(){x("Saved state to IndexedDB storage ("+g.length+" bytes)");a.Cd=g;a.trigger(W.prototype.k.Zj,
null);a.Cd="";f&&b()},function(e){try{localStorage.setItem("__c2save_"+d,g),x("Saved state to WebStorage ("+g.length+" bytes)"),a.Cd=g,a.trigger(W.prototype.k.Zj,null),a.Cd="",f&&b()}catch(h){x("Failed to save game state: "+e+"; "+h),a.trigger(W.prototype.k.Om,null)}});else try{localStorage.setItem("__c2save_"+d,g),x("Saved state to WebStorage ("+g.length+" bytes)"),a.Cd=g,this.trigger(W.prototype.k.Zj,null),a.Cd="",f&&b()}catch(h){x("Error saving to WebStorage: "+h),a.trigger(W.prototype.k.Om,null)}this.Zi=
this.Xl="";this.Pa=null}if(e.length){if(m()&&!this.qc)k(e,function(d){d?(a.Pa=d,x("Loaded state from IndexedDB storage ("+a.Pa.length+" bytes)")):(a.Pa=localStorage.getItem("__c2save_"+e)||"",x("Loaded state from WebStorage ("+a.Pa.length+" bytes)"));a.Oh=!1;a.Pa||(a.Pa=null,a.trigger(W.prototype.k.Zh,null))},function(){a.Pa=localStorage.getItem("__c2save_"+e)||"";x("Loaded state from WebStorage ("+a.Pa.length+" bytes)");a.Oh=!1;a.Pa||(a.Pa=null,a.trigger(W.prototype.k.Zh,null))});else{try{this.Pa=
localStorage.getItem("__c2save_"+e)||"",x("Loaded state from WebStorage ("+this.Pa.length+" bytes)")}catch(c){this.Pa=null}this.Oh=!1;a.Pa||(a.Pa=null,a.trigger(W.prototype.k.Zh,null))}this.Xl=this.Zi=""}null!==this.Pa&&(this.jb(),this.au(this.Pa)?(this.Cd=this.Pa,this.trigger(W.prototype.k.Oq,null),this.Cd=""):a.trigger(W.prototype.k.Zh,null),this.Pa=null)};c.prototype.Iu=function(){var d,g,e,b,f,h,c,l={c2save:!0,version:1,rt:{time:this.ic.R,walltime:this.Wj.R,timescale:this.lg,tickcount:this.Kd,
execcount:this.wi,next_uid:this.wh,running_layout:this.ba.T,start_time_offset:Date.now()-this.Gj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(g=this.u.length;d<g;d++)if(f=this.u[d],!f.S&&!this.om(f)){h={instances:[]};Oa(f.ca)&&(h.ex=a(f.ca));e=0;for(b=f.j.length;e<b;e++)h.instances.push(this.Wl(f.j[e]));l.types[f.T.toString()]=h}d=0;for(g=this.Nc.length;d<g;d++)e=this.Nc[d],l.layouts[e.T.toString()]=e.Za();b=l.events.groups;d=0;for(g=this.Vd.length;d<g;d++)e=this.Vd[d],
b[e.T.toString()]=this.Qg[e.Pg].Jf;g=l.events.cnds;for(c in this.$d)this.$d.hasOwnProperty(c)&&(d=this.$d[c],Oa(d.ca)&&(g[c]={ex:a(d.ca)}));g=l.events.acts;for(c in this.Ud)this.Ud.hasOwnProperty(c)&&(d=this.Ud[c],Oa(d.ca)&&(g[c]={ex:a(d.ca)}));g=l.events.vars;for(c in this.pg)this.pg.hasOwnProperty(c)&&(d=this.pg[c],d.Ri||d.parent&&!d.ah||(g[c]=d.data));l.system=this.hd.Za();return JSON.stringify(l)};c.prototype.op=function(){var a,d,g,e,b,f;this.Fd={};a=0;for(d=this.u.length;a<d;a++)if(g=this.u[a],
!g.S)for(e=0,b=g.j.length;e<b;e++)f=g.j[e],this.Fd[f.uid.toString()]=f};c.prototype.au=function(a){var d;try{d=JSON.parse(a)}catch(g){return!1}if(!d.c2save||1<d.version)return!1;this.Wg=!0;a=d.rt;this.ic.reset();this.ic.R=a.time;this.Wj.reset();this.Wj.R=a.walltime||0;this.lg=a.timescale;this.Kd=a.tickcount;this.wi=a.execcount;this.Gj=Date.now()-a.start_time_offset;var e=a.running_layout;if(e!==this.ba.T)if(e=this.On(e))this.yn(e);else return;var b,f,h,c,l,r,t;r=d.types;for(f in r)if(r.hasOwnProperty(f)&&
(c=this.Ji(parseInt(f,10)))&&!c.S&&!this.om(c)){r[f].ex?c.ca=r[f].ex:Pa(c.ca);l=c.j;h=r[f].instances;e=0;for(b=ka(l.length,h.length);e<b;e++)this.$i(l[e],h[e]);e=h.length;for(b=l.length;e<b;e++)this.Be(l[e]);e=l.length;for(b=h.length;e<b;e++){l=null;if(c.Da.ke&&(l=this.ba.Ii(h[e].w.l),!l))continue;l=this.Ie(c.$c,l,!1,0,0,!0);this.$i(l,h[e])}c.ig=!0}this.jb();this.op();b=d.layouts;for(f in b)b.hasOwnProperty(f)&&(e=this.On(parseInt(f,10)))&&e.pb(b[f]);b=d.events.groups;for(f in b)b.hasOwnProperty(f)&&
(e=this.dt(parseInt(f,10)))&&this.Qg[e.Pg]&&this.Qg[e.Pg].xp(b[f]);e=d.events.cnds;for(f in this.$d)this.$d.hasOwnProperty(f)&&(e.hasOwnProperty(f)?this.$d[f].ca=e[f].ex:this.$d[f].ca={});e=d.events.acts;for(f in this.Ud)this.Ud.hasOwnProperty(f)&&(e.hasOwnProperty(f)?this.Ud[f].ca=e[f].ex:this.Ud[f].ca={});e=d.events.vars;for(f in e)e.hasOwnProperty(f)&&this.pg.hasOwnProperty(f)&&(this.pg[f].data=e[f]);this.wh=a.next_uid;this.Wg=!1;e=0;for(b=this.Ai.length;e<b;++e)l=this.Ai[e],this.trigger(Object.getPrototypeOf(l.type.Da).k.Cm,
l);S(this.Ai);this.hd.pb(d.system);e=0;for(b=this.u.length;e<b;e++)if(c=this.u[e],!c.S&&!this.om(c))for(d=0,f=c.j.length;d<f;d++){l=c.j[d];if(c.sc)for(r=l.Og(),S(l.siblings),a=0,h=c.Qb.length;a<h;a++)t=c.Qb[a],c!==t&&l.siblings.push(t.j[r]);l.kd&&l.kd();if(l.J)for(a=0,h=l.J.length;a<h;a++)r=l.J[a],r.kd&&r.kd()}return this.W=!0};c.prototype.Wl=function(d,g){var e,b,f,h,c;h=d.type;f=h.Da;var l={};g?l.c2=!0:l.uid=d.uid;Oa(d.ca)&&(l.ex=a(d.ca));if(d.La&&d.La.length)for(l.ivs={},e=0,b=d.La.length;e<b;e++)l.ivs[d.type.Sk[e].toString()]=
d.La[e];if(f.ke){f={x:d.x,y:d.y,w:d.width,h:d.height,l:d.q.T,zi:d.bd()};0!==d.n&&(f.a=d.n);1!==d.opacity&&(f.o=d.opacity);.5!==d.Tb&&(f.hX=d.Tb);.5!==d.Ub&&(f.hY=d.Ub);0!==d.kb&&(f.bm=d.kb);d.visible||(f.v=d.visible);d.nd||(f.ce=d.nd);-1!==d.vh&&(f.mts=d.vh);if(h.L.length)for(f.fx=[],e=0,b=h.L.length;e<b;e++)c=h.L[e],f.fx.push({name:c.name,active:d.Td[c.index],params:d.ya[c.index]});l.w=f}if(d.J&&d.J.length)for(l.behs={},e=0,b=d.J.length;e<b;e++)h=d.J[e],h.Za&&(l.behs[h.type.T.toString()]=h.Za());
d.Za&&(l.data=d.Za());return l};c.prototype.gt=function(a,d){var g,e;g=0;for(e=a.Sk.length;g<e;g++)if(a.Sk[g]===d)return g;return-1};c.prototype.bt=function(a,d){var g,e;g=0;for(e=a.J.length;g<e;g++)if(a.J[g].type.T===d)return g;return-1};c.prototype.$i=function(a,d,g){var e,b,f,h,c;c=a.type;h=c.Da;if(g){if(!d.c2)return}else a.uid=d.uid;d.ex?a.ca=d.ex:Pa(a.ca);if(b=d.ivs)for(e in b)b.hasOwnProperty(e)&&(f=this.gt(c,parseInt(e,10)),0>f||f>=a.La.length||(a.La[f]=b[e]));if(h.ke){f=d.w;a.q.T!==f.l&&(b=
a.q,a.q=this.ba.Ii(f.l),a.q?(b.bg(a,!0),a.q.vg(a,!0),a.D(),a.q.Hh(0)):(a.q=b,g||this.Be(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Xc=f.zi;a.n=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Tb=f.hasOwnProperty("hX")?f.hX:.5;a.Ub=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.nd=f.hasOwnProperty("ce")?f.ce:!0;a.vh=f.hasOwnProperty("mts")?f.mts:-1;a.kb=f.hasOwnProperty("bm")?f.bm:0;a.zg=Za(a.kb);this.A&&ab(a,a.kb,this.A);a.D();if(f.hasOwnProperty("fx"))for(g=
0,b=f.fx.length;g<b;g++)h=c.Dk(f.fx[g].name),0>h||(a.Td[h]=f.fx[g].active,a.ya[h]=f.fx[g].params);a.Wc()}if(c=d.behs)for(e in c)c.hasOwnProperty(e)&&(g=this.bt(a,parseInt(e,10)),0>g||a.J[g].pb(c[e]));d.data&&a.pb(d.data)};c.prototype.Dn=function(a,d,g){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,g)},g)};c.prototype.En=function(a,d){this.Dn("data.js",function(g){var e=new FileReader;e.onload=function(d){a(d.target.result)};e.onerror=d;e.readAsText(g)},
d)};var K=[],ra=0;c.prototype.ol=function(){if(K.length&&!(8<=ra)){ra++;var a=K.shift();this.Or(a.filename,a.Ou,a.rs)}};c.prototype.Ws=function(a,d,g){var e=this;K.push({filename:a,Ou:function(a){ra--;e.ol();d(a)},rs:function(a){ra--;e.ol();g(a)}});this.ol()};c.prototype.Or=function(a,d,g){this.Dn(a,function(a){var g=new FileReader;g.onload=function(a){d(a.target.result)};g.readAsArrayBuffer(a)},g)};c.prototype.Xs=function(a,d,g){this.Ws(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},g)};
c.prototype.Ot=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.yp=function(a,d){this.Zk&&!this.Ot(d)?this.Xs(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};c.prototype.zj=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Ib=function(a){return new c(document.getElementById(a))};Jb=
function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime=Ib;window.cr_createDCRuntime=Jb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.bi=!0;document.body.appendChild(a);a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};
window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,q){var m=window.cr_getC2Runtime();m&&m.Mr(c,q)};window.cr_sizeCanvas=function(c,q){if(0!==c&&0!==q){var m=window.cr_getC2Runtime();m&&m.setSize(c,q)}};
window.cr_setSuspended=function(c){var q=window.cr_getC2Runtime();q&&q.setSuspended(c)};
(function(){function c(a,b){this.b=a;this.Me=null;this.scrollX=this.b.Ra/2;this.scrollY=this.b.Qa/2;this.scale=1;this.n=0;this.Hf=!0;this.name=b[0];this.nu=b[1];this.mu=b[2];this.width=b[1];this.height=b[2];this.Xp=b[3];this.Dp=b[4];this.T=b[5];var f=b[6],e,c;this.M=[];this.Tg=[];e=0;for(c=f.length;e<c;e++){var l=new Kb(this,f[e]);l.Ro=e;this.M.push(l)}f=b[7];this.Te=[];e=0;for(c=f.length;e<c;e++){var l=f[e],k=this.b.u[l[1]];k.$c||(k.$c=l);this.Te.push(l);-1===this.Tg.indexOf(k)&&this.Tg.push(k)}this.L=
[];this.X=[];this.Hd=!0;this.ya=[];e=0;for(c=b[8].length;e<c;e++)this.L.push({id:b[8][e][0],name:b[8][e][1],Ha:-1,Pc:!1,ab:!0,index:e}),this.ya.push(b[8][e][2].slice(0));this.Wc();this.ag=new R(0,0,1,1);this.Nl=new R(0,0,1,1);this.ue={}}function q(a,b){return a.Xc-b.Xc}function m(a,b){this.Oa=a;this.b=a.b;this.j=[];this.scale=1;this.n=0;this.sd=!1;this.Ld=new R(0,0,0,0);this.Rp=new sa;this.ka=this.ea=this.la=this.da=0;this.sf=!1;this.Rd=-1;this.jk=0;this.name=b[0];this.index=b[1];this.T=b[2];this.visible=
b[3];this.Hc=b[4];this.Vc=b[5];this.Hb=b[6];this.Ib=b[7];this.opacity=b[8];this.Fi=b[9];this.nc=b[10];this.sb=b[11];this.kb=b[12];this.ls=b[13];this.zg="source-over";this.mb=this.qb=0;this.gb=null;this.Dd=n();this.Tc=!0;this.Tf=new R(0,0,-1,-1);this.cb=new R(0,0,-1,-1);this.nc&&(this.gb=new Ya(this.b.Ra,this.b.Qa));this.fd=!1;var f=b[14],e,c;this.Jp=[];this.hc=[];this.Bg=[];e=0;for(c=f.length;e<c;e++){var l=f[e],k=this.b.u[l[1]];k.$c||(k.$c=l,k.Kr=this.index);this.hc.push(l);-1===this.Oa.Tg.indexOf(k)&&
this.Oa.Tg.push(k)}wa(this.Jp,this.hc);this.L=[];this.X=[];this.Hd=!0;this.ya=[];e=0;for(c=b[15].length;e<c;e++)this.L.push({id:b[15][e][0],name:b[15][e][1],Ha:-1,Pc:!1,ab:!0,index:e}),this.ya.push(b[15][e][2].slice(0));this.Wc();this.ag=new R(0,0,1,1);this.Nl=new R(0,0,1,1)}function n(){return a.length?a.pop():[]}function u(d){S(d);a.push(d)}c.prototype.Hu=function(a){var b=a.type.T.toString();this.ue.hasOwnProperty(b)||(this.ue[b]=[]);this.ue[b].push(this.b.Wl(a))};c.prototype.Rn=function(){var a=
this.M[0];return!a.Vc&&1===a.opacity&&!a.Fi&&a.visible};c.prototype.Wc=function(){S(this.X);this.Hd=!0;var a,b,f;a=0;for(b=this.L.length;a<b;a++)f=this.L[a],f.ab&&(this.X.push(f),f.Pc||(this.Hd=!1))};c.prototype.Ck=function(a){var b,f,e;b=0;for(f=this.L.length;b<f;b++)if(e=this.L[b],e.name===a)return e;return null};var k=[],b=!0;c.prototype.gm=function(){this.Dp&&(this.Me=this.b.sk[this.Dp],this.Me.qm());this.b.ba=this;this.width=this.nu;this.height=this.mu;this.scrollX=this.b.Ra/2;this.scrollY=this.b.Qa/
2;var a,c,f,e,r,l,p;a=0;for(f=this.b.u.length;a<f;a++)if(c=this.b.u[a],!c.S)for(r=c.j,c=0,e=r.length;c<e;c++)if(l=r[c],l.q){var g=l.q.Ro;g>=this.M.length&&(g=this.M.length-1);l.q=this.M[g];-1===l.q.j.indexOf(l)&&l.q.j.push(l);l.q.sf=!0}if(!b)for(a=0,f=this.M.length;a<f;++a)this.M[a].j.sort(q);S(k);this.Br();a=0;for(f=this.M.length;a<f;a++)l=this.M[a],l.Ir(),l.Tj();r=!1;if(!this.Hf){for(p in this.ue)if(this.ue.hasOwnProperty(p)&&(c=this.b.Ji(parseInt(p,10)))&&!c.S&&this.b.pm(c)){e=this.ue[p];a=0;for(f=
e.length;a<f;a++){l=null;if(c.Da.ke&&(l=this.Ii(e[a].w.l),!l))continue;l=this.b.Ie(c.$c,l,!1,0,0,!0);this.b.$i(l,e[a]);r=!0;k.push(l)}S(e)}a=0;for(f=this.M.length;a<f;a++)this.M[a].j.sort(q),this.M[a].sf=!0}r&&(this.b.jb(),this.b.op());for(a=0;a<k.length;a++)if(l=k[a],l.type.sc)for(f=l.Og(),c=0,e=l.type.Qb.length;c<e;c++)p=l.type.Qb[c],l.type!==p&&(p.j.length>f?l.siblings.push(p.j[f]):p.$c&&(r=this.b.Ie(p.$c,l.q,!0,l.x,l.y,!0),this.b.jb(),p.Sj(),l.siblings.push(r),k.push(r)));a=0;for(f=this.Te.length;a<
f;a++)this.b.Ie(this.Te[a],null,!0);this.b.He=null;this.b.jb();if(this.b.xa&&!this.b.Ba)for(a=0,f=this.b.u.length;a<f;a++)p=this.b.u[a],!p.S&&p.j.length&&p.kp&&p.kp(this.b.xa);if(this.b.Wg)wa(this.b.Ai,k);else for(a=0,f=k.length;a<f;a++)l=k[a],this.b.trigger(Object.getPrototypeOf(l.type.Da).k.Cm,l);S(k);this.b.Wg||this.b.trigger(W.prototype.k.Im,null);this.Hf=!1};c.prototype.Hr=function(){var a,b,f,e,c;b=a=0;for(f=this.Te.length;a<f;a++)e=this.Te[a],c=this.b.u[e[1]],c.global?c.sc||this.b.Ie(e,null,
!0):(this.Te[b]=e,b++);va(this.Te,b)};c.prototype.Nu=function(){this.b.Wg||this.b.trigger(W.prototype.k.Nq,null);this.b.Vk=!0;S(this.b.hd.ac);var a,c,f,e,r,l;if(!this.Hf)for(a=0,c=this.M.length;a<c;a++)for(this.M[a].um(),r=this.M[a].j,f=0,e=r.length;f<e;f++)l=r[f],l.type.global||this.b.pm(l.type)&&this.Hu(l);a=0;for(c=this.M.length;a<c;a++){r=this.M[a].j;f=0;for(e=r.length;f<e;f++)l=r[f],l.type.global||this.b.Be(l);this.b.jb();S(r);this.M[a].sf=!0}a=0;for(c=this.b.u.length;a<c;a++)if(r=this.b.u[a],
!(r.global||r.Da.ke||r.Da.Fj||r.S)){f=0;for(e=r.j.length;f<e;f++)this.b.Be(r.j[f]);this.b.jb()}b=!1;this.b.Vk=!1};new R(0,0,0,0);c.prototype.td=function(a){var b,f=a,e=!1,c=!this.b.gc;c&&(this.b.Yi||(this.b.Yi=document.createElement("canvas"),b=this.b.Yi,b.width=this.b.I,b.height=this.b.H,this.b.po=b.getContext("2d"),e=!0),b=this.b.Yi,f=this.b.po,b.width!==this.b.I&&(b.width=this.b.I,e=!0),b.height!==this.b.H&&(b.height=this.b.H,e=!0),e&&this.b.zj(f,this.b.Ca));f.globalAlpha=1;f.globalCompositeOperation=
"source-over";this.b.rn&&!this.Rn()&&f.clearRect(0,0,this.b.I,this.b.H);var l,k,e=0;for(l=this.M.length;e<l;e++)k=this.M[e],k.visible&&0<k.opacity&&11!==k.kb&&(k.j.length||!k.Vc)?k.td(f):k.Tj();c&&a.drawImage(b,0,0,this.b.width,this.b.height)};c.prototype.Cf=function(a){a.wp(!0);this.b.Ga||(this.b.Ga=a.ec(this.b.I,this.b.H,this.b.Ca));if(this.b.Ga.Ge!==this.b.I||this.b.Ga.Fe!==this.b.H)a.deleteTexture(this.b.Ga),this.b.Ga=a.ec(this.b.I,this.b.H,this.b.Ca);a.xc(this.b.Ga);this.b.gc||a.nf(this.b.I,
this.b.H);var b,f;for(b=this.M.length-1;0<=b;--b)f=this.M[b],f.visible&&1===f.opacity&&f.Hd&&0===f.kb&&(f.j.length||!f.Vc)?f.Cf(a):f.Tj();a.wp(!1)};c.prototype.pc=function(a){var b=0<this.X.length||this.b.ng||!this.b.gc||this.b.ma;if(b){this.b.Ga||(this.b.Ga=a.ec(this.b.I,this.b.H,this.b.Ca));if(this.b.Ga.Ge!==this.b.I||this.b.Ga.Fe!==this.b.H)a.deleteTexture(this.b.Ga),this.b.Ga=a.ec(this.b.I,this.b.H,this.b.Ca);a.xc(this.b.Ga);this.b.gc||a.nf(this.b.I,this.b.H)}else this.b.Ga&&(a.xc(null),a.deleteTexture(this.b.Ga),
this.b.Ga=null);this.b.rn&&!this.Rn()&&a.clear(0,0,0,0);var f,e,c;f=0;for(e=this.M.length;f<e;f++)c=this.M[f],c.visible&&0<c.opacity&&(c.j.length||!c.Vc)?c.pc(a):c.Tj();b&&(0===this.X.length||1===this.X.length&&this.b.gc?(1===this.X.length?(b=this.X[0].index,a.Lb(this.X[0].Ha),a.fg(null,1/this.b.I,1/this.b.H,0,0,1,1,this.scale,this.n,0,0,this.b.I/2,this.b.H/2,this.b.ic.R,this.ya[b]),a.uj(this.X[0].Ha)&&(this.b.W=!0)):a.Lb(0),this.b.gc||a.nf(this.b.width,this.b.height),a.xc(null),a.vp(!1),a.eg(1),
a.kc(this.b.Ga),a.tp(),a.wc(),a.mc(),b=this.b.width/2,f=this.b.height/2,a.Dh(-b,f,b,f,b,-f,-b,-f),a.kc(null),a.vp(!0)):this.Ql(a,null,null,null))};c.prototype.Mg=function(){return 0<this.X.length||this.b.ng||!this.b.gc||this.b.ma?this.b.Ga:null};c.prototype.Pn=function(){var a=this.M[0].Sb(),b,f,e;b=1;for(f=this.M.length;b<f;b++)e=this.M[b],(0!==e.Hb||0!==e.Ib)&&e.Sb()<a&&(a=e.Sb());return a};c.prototype.Yl=function(a){if(!this.Xp){var b=1/this.Pn()*this.b.I/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.W=!0)};c.prototype.Zl=function(a){if(!this.Xp){var b=1/this.Pn()*this.b.H/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.W=!0)};c.prototype.Br=function(){this.Yl(this.scrollX);this.Zl(this.scrollY)};c.prototype.Ql=function(a,b,f,e){var c=f?f.X:b?b.X:this.X,l=1,k=0,g=0,t=0,p=this.b.I,m=this.b.H;f?(l=f.q.Sb(),k=f.q.Rb(),g=f.q.da,t=f.q.ea,p=f.q.la,m=f.q.ka):b&&(l=b.Sb(),k=b.Rb(),g=b.da,t=b.ea,p=b.la,m=b.ka);var q=
this.b.zk,n,u,v,B,H=0,Z=1,O,na,M=this.b.I,K=this.b.H,ra=M/2,y=K/2,z=b?b.ag:this.ag,D=b?b.Nl:this.Nl,J=0,Q=0,E=0,C=0,N=M,xa=M,L=K,ya=K,oa=v=0;B=f?f.q.Rb():0;if(f){n=0;for(u=c.length;n<u;n++)v+=a.kt(c[n].Ha),oa+=a.lt(c[n].Ha);C=f.qa;J=b.ta(C.left,C.top,!0,!0);E=b.ta(C.left,C.top,!1,!0);N=b.ta(C.right,C.bottom,!0,!0);L=b.ta(C.right,C.bottom,!1,!0);0!==B&&(n=b.ta(C.right,C.top,!0,!0),u=b.ta(C.right,C.top,!1,!0),Q=b.ta(C.left,C.bottom,!0,!0),C=b.ta(C.left,C.bottom,!1,!0),B=Math.min(J,N,n,Q),N=Math.max(J,
N,n,Q),J=B,B=Math.min(E,L,u,C),L=Math.max(E,L,u,C),E=B);J-=v;E-=oa;N+=v;L+=oa;D.left=J/M;D.top=1-E/K;D.right=N/M;D.bottom=1-L/K;Q=J=I(J);C=E=I(E);xa=N=ma(N);ya=L=ma(L);Q-=v;C-=oa;xa+=v;ya+=oa;0>J&&(J=0);0>E&&(E=0);N>M&&(N=M);L>K&&(L=K);0>Q&&(Q=0);0>C&&(C=0);xa>M&&(xa=M);ya>K&&(ya=K);z.left=J/M;z.top=1-E/K;z.right=N/M;z.bottom=1-L/K}else z.left=D.left=0,z.top=D.top=0,z.right=D.right=1,z.bottom=D.bottom=1;oa=f&&(a.Ah(c[0].Ha)||0!==v||0!==oa||1!==f.opacity||f.type.Da.Oo)||b&&!f&&1!==b.opacity;a.tp();
if(oa){q[H]||(q[H]=a.ec(M,K,this.b.Ca));if(q[H].Ge!==M||q[H].Fe!==K)a.deleteTexture(q[H]),q[H]=a.ec(M,K,this.b.Ca);a.Lb(0);a.xc(q[H]);na=ya-C;a.clearRect(Q,K-C-na,xa-Q,na);f?f.pc(a):(a.kc(this.b.Na),a.eg(b.opacity),a.wc(),a.translate(-ra,-y),a.mc(),a.we(J,L,N,L,N,E,J,E,z));D.left=D.top=0;D.right=D.bottom=1;f&&(B=z.top,z.top=z.bottom,z.bottom=B);H=1;Z=0}a.eg(1);v=c.length-1;var $a=a.Hl(c[v].Ha)||!b&&!f&&!this.b.gc;n=B=0;for(u=c.length;n<u;n++){q[H]||(q[H]=a.ec(M,K,this.b.Ca));if(q[H].Ge!==M||q[H].Fe!==
K)a.deleteTexture(q[H]),q[H]=a.ec(M,K,this.b.Ca);a.Lb(c[n].Ha);B=c[n].index;a.uj(c[n].Ha)&&(this.b.W=!0);0!=n||oa?(a.fg(e,1/M,1/K,D.left,D.top,D.right,D.bottom,l,k,g,t,(g+p)/2,(t+m)/2,this.b.ic.R,f?f.ya[B]:b?b.ya[B]:this.ya[B]),a.kc(null),n!==v||$a?(a.xc(q[H]),na=ya-C,O=K-C-na,a.clearRect(Q,O,xa-Q,na)):(f?a.xe(f.qb,f.mb):b&&a.xe(b.qb,b.mb),a.xc(e)),a.kc(q[Z]),a.wc(),a.translate(-ra,-y),a.mc(),a.we(J,L,N,L,N,E,J,E,z),n!==v||$a||a.kc(null)):(a.xc(q[H]),na=ya-C,O=K-C-na,a.clearRect(Q,O,xa-Q,na),f?(f.bb&&
f.bb.$a?(O=f.bb.$a,Z=1/O.width,O=1/O.height):(Z=1/f.width,O=1/f.height),a.fg(e,Z,O,D.left,D.top,D.right,D.bottom,l,k,g,t,(g+p)/2,(t+m)/2,this.b.ic.R,f.ya[B]),f.pc(a)):(a.fg(e,1/M,1/K,0,0,1,1,l,k,g,t,(g+p)/2,(t+m)/2,this.b.ic.R,b?b.ya[B]:this.ya[B]),a.kc(b?this.b.Na:this.b.Ga),a.wc(),a.translate(-ra,-y),a.mc(),a.we(J,L,N,L,N,E,J,E,z)),D.left=D.top=0,D.right=D.bottom=1,f&&!$a&&(B=L,L=E,E=B));H=0===H?1:0;Z=0===H?1:0}$a&&(a.Lb(0),f?a.xe(f.qb,f.mb):b?a.xe(b.qb,b.mb):this.b.gc||(a.nf(this.b.width,this.b.height),
ra=this.b.width/2,y=this.b.height/2,E=J=0,N=this.b.width,L=this.b.height),a.xc(e),a.kc(q[Z]),a.wc(),a.translate(-ra,-y),a.mc(),f&&1===c.length&&!oa?a.we(J,E,N,E,N,L,J,L,z):a.we(J,L,N,L,N,E,J,E,z),a.kc(null))};c.prototype.Ii=function(a){var b,f;b=0;for(f=this.M.length;b<f;b++)if(this.M[b].T===a)return this.M[b];return null};c.prototype.Za=function(){var a,b,f,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.Hf,persist:this.ue,fx:[],layers:{}};a=0;for(b=this.L.length;a<
b;a++)f=this.L[a],e.fx.push({name:f.name,active:f.ab,params:this.ya[f.index]});a=0;for(b=this.M.length;a<b;a++)f=this.M[a],e.layers[f.T.toString()]=f.Za();return e};c.prototype.pb=function(a){var b,f,e,c;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.ue=a.persist;"undefined"!==typeof a.fv&&(this.Hf=a.fv);var l=a.fx;b=0;for(f=l.length;b<f;b++)if(e=this.Ck(l[b].name))e.ab=l[b].active,this.ya[e.index]=l[b].params;this.Wc();b=a.layers;for(c in b)b.hasOwnProperty(c)&&
(a=this.Ii(parseInt(c,10)))&&a.pb(b[c])};wb=c;m.prototype.Wc=function(){S(this.X);this.Hd=!0;var a,b,f;a=0;for(b=this.L.length;a<b;a++)f=this.L[a],f.ab&&(this.X.push(f),f.Pc||(this.Hd=!1))};m.prototype.Ck=function(a){var b,f,e;b=0;for(f=this.L.length;b<f;b++)if(e=this.L[b],e.name===a)return e;return null};m.prototype.Ir=function(){var a,b,f,e,c,l;b=a=0;for(f=this.hc.length;a<f;a++){e=this.hc[a];c=this.b.u[e[1]];l=this.b.pm(c);c=!0;if(!l||this.Oa.Hf){e=this.b.Ie(e,this,!0);if(!e)continue;k.push(e);
e.type.global&&(c=!1,this.Bg.push(e.uid))}c&&(this.hc[b]=this.hc[a],b++)}this.hc.length=b;this.b.jb();!this.b.C&&this.L.length&&(this.kb=this.ls);this.zg=Za(this.kb);this.b.A&&ab(this,this.kb,this.b.A);this.Tc=!0};m.prototype.bg=function(a,b){var f=Aa(this.j,a);0>f||(b&&this.nc&&a.Kb&&a.Kb.right>=a.Kb.left&&(a.fa(),this.gb.update(a,a.Kb,null),a.Kb.set(0,0,-1,-1)),f===this.j.length-1?this.j.pop():(ua(this.j,f),this.Hh(f)),this.Tc=!0)};m.prototype.vg=function(a,b){a.Xc=this.j.length;this.j.push(a);
b&&this.nc&&a.Kb&&a.D();this.Tc=!0};m.prototype.uu=function(a){this.j.unshift(a);this.Hh(0)};m.prototype.gu=function(a,b,f){var e=a.bd();b=b.bd();ua(this.j,e);e<b&&b--;f&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.Hh(e<b?e:b)};m.prototype.Hh=function(a){-1===this.Rd?this.Rd=a:a<this.Rd&&(this.Rd=a);this.Tc=this.sf=!0};m.prototype.um=function(){if(this.sf){-1===this.Rd&&(this.Rd=0);var a,b,f;if(this.nc)for(a=this.Rd,b=this.j.length;a<b;++a)f=this.j[a],f.Xc=a,this.gb.du(f.Kb);else for(a=
this.Rd,b=this.j.length;a<b;++a)this.j[a].Xc=a;this.sf=!1;this.Rd=-1}};m.prototype.Sb=function(a){return this.it()*(this.b.gc||a?this.b.wg:1)};m.prototype.it=function(){return(this.scale*this.Oa.scale-1)*this.sb+1};m.prototype.Rb=function(){return this.sd?0:Fa(this.Oa.n+this.n)};var a=[],p=[],v=[];m.prototype.Gk=function(){this.um();this.gb.vj(this.da,this.ea,this.la,this.ka,v);if(!v.length)return n();if(1===v.length){var a=n();wa(a,v[0]);S(v);return a}for(var b=!0;1<v.length;){for(var a=v,f=void 0,
e=void 0,c=void 0,l=void 0,k=void 0,f=0,e=a.length;f<e-1;f+=2){var c=a[f],l=a[f+1],k=n(),g=c,t=l,m=k,q=0,A=0,P=0,T=g.length,F=t.length,B=void 0,H=void 0;for(m.length=T+F;q<T&&A<F;++P)B=g[q],H=t[A],B.Xc<H.Xc?(m[P]=B,++q):(m[P]=H,++A);for(;q<T;++q,++P)m[P]=g[q];for(;A<F;++A,++P)m[P]=t[A];b||(u(c),u(l));p.push(k)}1===e%2&&(b?(c=n(),wa(c,a[e-1]),p.push(c)):p.push(a[e-1]));wa(a,p);S(p);b=!1}a=v[0];S(v);return a};m.prototype.td=function(a){this.fd=this.Fi||1!==this.opacity||0!==this.kb;var b=this.b.canvas,
f=a,e=!1;this.fd&&(this.b.Xi||(this.b.Xi=document.createElement("canvas"),b=this.b.Xi,b.width=this.b.I,b.height=this.b.H,this.b.oo=b.getContext("2d"),e=!0),b=this.b.Xi,f=this.b.oo,b.width!==this.b.I&&(b.width=this.b.I,e=!0),b.height!==this.b.H&&(b.height=this.b.H,e=!0),e&&this.b.zj(f,this.b.Ca),this.Vc&&f.clearRect(0,0,this.b.I,this.b.H));f.globalAlpha=1;f.globalCompositeOperation="source-over";this.Vc||(f.fillStyle="rgb("+this.Hc[0]+","+this.Hc[1]+","+this.Hc[2]+")",f.fillRect(0,0,this.b.I,this.b.H));
f.save();this.sd=!0;var e=this.Ia(0,0,!0,!0),c=this.Ia(0,0,!1,!0);this.sd=!1;this.b.Gd&&(e=Math.round(e),c=Math.round(c));this.xj(e,c,f);var l=this.Sb();f.scale(l,l);f.translate(-e,-c);this.nc?(this.cb.left=this.gb.xb(this.da),this.cb.top=this.gb.yb(this.ea),this.cb.right=this.gb.xb(this.la),this.cb.bottom=this.gb.yb(this.ka),this.Tc||!this.cb.Eg(this.Tf)?(u(this.Dd),e=this.Gk(),this.Tc=!1,this.Tf.yf(this.cb)):e=this.Dd):e=this.j;for(var k,g=null,c=0,l=e.length;c<l;++c)k=e[c],k!==g&&(this.ds(k,f),
g=k);this.nc&&(this.Dd=e);f.restore();this.fd&&(a.globalCompositeOperation=this.zg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.ds=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.fa();var f=a.qa;f.right<this.da||f.bottom<this.ea||f.left>this.la||f.top>this.ka||(b.globalCompositeOperation=a.zg,a.td(b))}};m.prototype.Tj=function(){this.sd=!0;var a=this.Ia(0,0,!0,!0),b=this.Ia(0,0,!1,!0);this.sd=!1;this.b.Gd&&(a=Math.round(a),b=Math.round(b));this.xj(a,b,null)};m.prototype.xj=
function(a,b,f){var e=this.Sb();this.da=a;this.ea=b;this.la=a+1/e*this.b.I;this.ka=b+1/e*this.b.H;this.da>this.la&&(a=this.da,this.da=this.la,this.la=a);this.ea>this.ka&&(a=this.ea,this.ea=this.ka,this.ka=a);a=this.Rb();0!==a&&(f&&(f.translate(this.b.I/2,this.b.H/2),f.rotate(-a),f.translate(this.b.I/-2,this.b.H/-2)),this.Ld.set(this.da,this.ea,this.la,this.ka),this.Ld.offset((this.da+this.la)/-2,(this.ea+this.ka)/-2),this.Rp.Bp(this.Ld,a),this.Rp.kn(this.Ld),this.Ld.offset((this.da+this.la)/2,(this.ea+
this.ka)/2),this.da=this.Ld.left,this.ea=this.Ld.top,this.la=this.Ld.right,this.ka=this.Ld.bottom)};m.prototype.Cf=function(a){if(this.fd=this.Fi){this.b.Na||(this.b.Na=a.ec(this.b.I,this.b.H,this.b.Ca));if(this.b.Na.Ge!==this.b.I||this.b.Na.Fe!==this.b.H)a.deleteTexture(this.b.Na),this.b.Na=a.ec(this.b.I,this.b.H,this.b.Ca);a.xc(this.b.Na)}this.sd=!0;var b=this.Ia(0,0,!0,!0),f=this.Ia(0,0,!1,!0);this.sd=!1;this.b.Gd&&(b=Math.round(b),f=Math.round(f));this.xj(b,f,null);b=this.Sb();a.wc();a.scale(b,
b);a.yj(-this.Rb());a.translate((this.da+this.la)/-2,(this.ea+this.ka)/-2);a.mc();this.nc?(this.cb.left=this.gb.xb(this.da),this.cb.top=this.gb.yb(this.ea),this.cb.right=this.gb.xb(this.la),this.cb.bottom=this.gb.yb(this.ka),this.Tc||!this.cb.Eg(this.Tf)?(u(this.Dd),b=this.Gk(),this.Tc=!1,this.Tf.yf(this.cb)):b=this.Dd):b=this.j;for(var e,c=null,f=b.length-1;0<=f;--f)e=b[f],e!==c&&(this.gs(b[f],a),c=e);this.nc&&(this.Dd=b);this.Vc||(this.jk=this.b.Le++,a.Aj(this.jk),a.up(1,1,1),a.Hn(),a.Au())};m.prototype.pc=
function(a){var b=0,f=0;if(this.fd=this.Fi||1!==this.opacity||0<this.X.length||0!==this.kb){this.b.Na||(this.b.Na=a.ec(this.b.I,this.b.H,this.b.Ca));if(this.b.Na.Ge!==this.b.I||this.b.Na.Fe!==this.b.H)a.deleteTexture(this.b.Na),this.b.Na=a.ec(this.b.I,this.b.H,this.b.Ca);a.xc(this.b.Na);this.Vc&&a.clear(0,0,0,0)}this.Vc||(this.b.ma?(a.Aj(this.jk),a.up(this.Hc[0]/255,this.Hc[1]/255,this.Hc[2]/255),a.Hn(),a.Ju()):a.clear(this.Hc[0]/255,this.Hc[1]/255,this.Hc[2]/255,1));this.sd=!0;var e=this.Ia(0,0,
!0,!0),b=this.Ia(0,0,!1,!0);this.sd=!1;this.b.Gd&&(e=Math.round(e),b=Math.round(b));this.xj(e,b,null);e=this.Sb();a.wc();a.scale(e,e);a.yj(-this.Rb());a.translate((this.da+this.la)/-2,(this.ea+this.ka)/-2);a.mc();this.nc?(this.cb.left=this.gb.xb(this.da),this.cb.top=this.gb.yb(this.ea),this.cb.right=this.gb.xb(this.la),this.cb.bottom=this.gb.yb(this.ka),this.Tc||!this.cb.Eg(this.Tf)?(u(this.Dd),b=this.Gk(),this.Tc=!1,this.Tf.yf(this.cb)):b=this.Dd):b=this.j;var c,l,k=null,f=0;for(c=b.length;f<c;++f)l=
b[f],l!==k&&(this.es(b[f],a),k=l);this.nc&&(this.Dd=b);this.fd&&(b=this.X.length?this.X[0].Ha:0,f=this.X.length?this.X[0].index:0,0===this.X.length||1===this.X.length&&!a.Hl(b)&&1===this.opacity?(1===this.X.length?(a.Lb(b),a.fg(this.Oa.Mg(),1/this.b.I,1/this.b.H,0,0,1,1,e,this.Rb(),this.da,this.ea,(this.da+this.la)/2,(this.ea+this.ka)/2,this.b.ic.R,this.ya[f]),a.uj(b)&&(this.b.W=!0)):a.Lb(0),a.xc(this.Oa.Mg()),a.eg(this.opacity),a.kc(this.b.Na),a.xe(this.qb,this.mb),a.wc(),a.mc(),e=this.b.I/2,b=this.b.H/
2,a.Dh(-e,b,e,b,e,-b,-e,-b),a.kc(null)):this.Oa.Ql(a,this,null,this.Oa.Mg()))};m.prototype.es=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.fa();var f=a.qa;f.right<this.da||f.bottom<this.ea||f.left>this.la||f.top>this.ka||(b.Aj(a.Le),a.dq?this.hs(a,b):(b.Lb(0),b.xe(a.qb,a.mb),a.pc(b)))}};m.prototype.gs=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.fa();var f=a.qa;f.right<this.da||f.bottom<this.ea||f.left>this.la||f.top>this.ka||(a.Le=this.b.Le++,0===a.kb&&1===a.opacity&&a.Hd&&
a.Cf&&(b.Aj(a.Le),a.Cf(b)))}};m.prototype.hs=function(a,b){var f=a.X[0].Ha,e=a.X[0].index,c=this.Sb();if(1!==a.X.length||b.Hl(f)||b.wu(f)||(a.n||a.q.Rb())&&b.Ah(f)||1!==a.opacity||a.type.Da.Oo)this.Oa.Ql(b,this,a,this.fd?this.b.Na:this.Oa.Mg()),b.wc(),b.scale(c,c),b.yj(-this.Rb()),b.translate((this.da+this.la)/-2,(this.ea+this.ka)/-2),b.mc();else{b.Lb(f);b.xe(a.qb,a.mb);b.uj(f)&&(this.b.W=!0);var l=0,k=0,g=0,t=0;b.Ah(f)&&(t=a.qa,l=this.ta(t.left,t.top,!0,!0),k=this.ta(t.left,t.top,!1,!0),g=this.ta(t.right,
t.bottom,!0,!0),t=this.ta(t.right,t.bottom,!1,!0),l=l/windowWidth,k=1-k/windowHeight,g=g/windowWidth,t=1-t/windowHeight);var p;a.bb&&a.bb.$a?(p=a.bb.$a,f=1/p.width,p=1/p.height):(f=1/a.width,p=1/a.height);b.fg(this.fd?this.b.Na:this.Oa.Mg(),f,p,l,k,g,t,c,this.Rb(),this.da,this.ea,(this.da+this.la)/2,(this.ea+this.ka)/2,this.b.ic.R,a.ya[e]);a.pc(b)}};m.prototype.Ia=function(a,b,f,e){var c=this.b.devicePixelRatio;this.b.We&&(a*=c,b*=c);var c=this.b.cp,l=this.b.dp,c=(this.Oa.scrollX-c)*this.Hb+c,l=(this.Oa.scrollY-
l)*this.Ib+l,k=c,g=l,t=1/this.Sb(!e);e?(k-=this.b.I*t/2,g-=this.b.H*t/2):(k-=this.b.width*t/2,g-=this.b.height*t/2);k+=a*t;g+=b*t;b=this.Rb();0!==b&&(k-=c,g-=l,a=Math.cos(b),b=Math.sin(b),e=k*a-g*b,g=g*a+k*b,k=e+c,g+=l);return f?k:g};m.prototype.ta=function(a,b,f,e){var c=this.b.cp,l=this.b.dp,k=(this.Oa.scrollX-c)*this.Hb+c,g=(this.Oa.scrollY-l)*this.Ib+l,l=k,c=g,t=this.Rb();if(0!==t){a-=k;b-=g;var p=Math.cos(-t),t=Math.sin(-t),m=a*p-b*t;b=b*p+a*t;a=m+k;b+=g}k=1/this.Sb(!e);e?(l-=this.b.I*k/2,c-=
this.b.H*k/2):(l-=this.b.width*k/2,c-=this.b.height*k/2);l=(a-l)/k;c=(b-c)/k;a=this.b.devicePixelRatio;this.b.We&&!e&&(l/=a,c/=a);return f?l:c};m.prototype.Za=function(){var a,b,f,e={s:this.scale,a:this.n,vl:this.da,vt:this.ea,vr:this.la,vb:this.ka,v:this.visible,bc:this.Hc,t:this.Vc,px:this.Hb,py:this.Ib,o:this.opacity,zr:this.sb,fx:[],cg:this.Bg,instances:[]};a=0;for(b=this.L.length;a<b;a++)f=this.L[a],e.fx.push({name:f.name,active:f.ab,params:this.ya[f.index]});return e};m.prototype.pb=function(a){var b,
f,e;this.scale=a.s;this.n=a.a;this.da=a.vl;this.ea=a.vt;this.la=a.vr;this.ka=a.vb;this.visible=a.v;this.Hc=a.bc;this.Vc=a.t;this.Hb=a.px;this.Ib=a.py;this.opacity=a.o;this.sb=a.zr;this.Bg=a.cg||[];wa(this.hc,this.Jp);var c=new ba;b=0;for(e=this.Bg.length;b<e;++b)c.add(this.Bg[b]);f=b=0;for(e=this.hc.length;b<e;++b)c.contains(this.hc[b][2])||(this.hc[f]=this.hc[b],++f);va(this.hc,f);f=a.fx;b=0;for(e=f.length;b<e;b++)if(a=this.Ck(f[b].name))a.ab=f[b].active,this.ya[a.index]=f[b].params;this.Wc();this.j.sort(q);
this.sf=!0};Kb=m})();
(function(){function c(a,b){var e,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(e=0;e<d;e++)if(a[e]!==b[e])return!1;return!0}}function q(a,b){return a.index-b.index}function m(a){var b,e,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=r.length&&(r.length=a.length+1);r[a.length]||(r[a.length]=[]);f=r[a.length];b=0;for(e=f.length;b<e;b++)if(d=f[b],c(a,d))return d;f.push(a);return a}
function n(a,b){this.b=a;this.Up={};this.Cn={};this.Mk=!1;this.Tn=new ba;this.ok=[];this.$j=[];this.name=b[0];var e=b[1];this.ee=[];var d,f;d=0;for(f=e.length;d<f;d++)this.Vn(e[d],null,this.ee)}function u(a){this.type=a;this.j=[];this.N=[];this.ua=!0}function k(a,b,e){this.sheet=a;this.parent=b;this.b=a.b;this.Fa=[];this.ye=[];this.Sn=this.Oj=this.lm=this.Ni=this.group=this.Hp=!1;this.lb=[];this.Ec=[];this.zc=[];this.Pg="";this.Jf=this.Ni=this.group=!1;this.ni=null;e[1]&&(this.Pg=e[1][1].toLowerCase(),
this.group=!0,this.Ni=!!e[1][0],this.ni=[],this.Jf=this.Ni,this.b.Vd.push(this),this.b.Qg[this.Pg]=this);this.uc=e[2];this.T=e[4];this.group||(this.b.jn[this.T.toString()]=this);var d=e[5];a=0;for(b=d.length;a<b;a++){var f=new Lb(this,d[a]);f.index=a;this.lb.push(f);this.bn(f.type)}d=e[6];a=0;for(b=d.length;a<b;a++)f=new Mb(this,d[a]),f.index=a,this.Ec.push(f);if(8===e.length)for(e=e[7],a=0,b=e.length;a<b;a++)this.sheet.Vn(e[a],this,this.zc);this.Si=!1;this.lb.length&&(this.Si=null==this.lb[0].type&&
this.lb[0].eb==W.prototype.k.qq)}function b(a,b){var e,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.sc))for(e=0,d=a.Qb.length;e<d;e++)f=a.Qb[e],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.Q=[];this.za=[];this.ca={};this.index=-1;this.tg=!1;this.eb=this.b.Sd(b[1]);this.trigger=0<b[3];this.Bn=2===b[3];this.Oi=b[5];this.Zt=b[6];this.T=b[7];this.b.$d[this.T.toString()]=this;-1===b[0]?(this.type=null,this.Ta=this.Vl,this.Ee=null,this.Ic=-1):(this.type=
this.b.u[b[0]],this.Ta=this.Zt?this.Fu:this.Ul,b[2]?(this.Ee=this.type.Hi(b[2]),this.Ic=this.type.Bk(b[2])):(this.Ee=null,this.Ic=-1),this.cc.parent&&this.cc.parent.Bj());this.Bn&&(this.Ta=this.Gu);if(10===b.length){var e,d,f=b[9];e=0;for(d=f.length;e<d;e++){var c=new Nb(this,f[e]);this.Q.push(c)}this.za.length=f.length}}function p(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.Q=[];this.za=[];this.ca={};this.index=-1;this.tg=!1;this.eb=this.b.Sd(b[1]);-1===b[0]?(this.type=null,this.Ta=this.Vl,
this.Ee=null,this.Ic=-1):(this.type=this.b.u[b[0]],this.Ta=this.Ul,b[2]?(this.Ee=this.type.Hi(b[2]),this.Ic=this.type.Bk(b[2])):(this.Ee=null,this.Ic=-1));this.T=b[3];this.b.Ud[this.T.toString()]=this;if(6===b.length){var e,d,f=b[5];e=0;for(d=f.length;e<d;e++){var c=new Nb(this,f[e]);this.Q.push(c)}this.za.length=f.length}}function v(){w++;l.length===w&&l.push(new Ob);return l[w]}function d(a,b){this.vc=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ad=null;this.Id=0;this.get=null;
this.sn=0;this.Oa=null;this.key=0;this.object=null;this.index=0;this.Uh=this.of=this.Uh=this.of=this.Fn=this.Ne=this.Vh=null;this.Cc=!1;var e,d,f;switch(b[0]){case 0:case 7:this.ad=new Pb(this,b[1]);this.Id=0;this.get=this.tt;break;case 1:this.ad=new Pb(this,b[1]);this.Id=0;this.get=this.ut;break;case 5:this.ad=new Pb(this,b[1]);this.Id=0;this.get=this.At;break;case 3:case 8:this.sn=b[1];this.get=this.pt;break;case 6:this.Oa=this.b.gl[b[1]];this.get=this.Bt;break;case 9:this.key=b[1];this.get=this.zt;
break;case 4:this.object=this.b.u[b[1]];this.get=this.Ct;this.cc.bn(this.object);this.vc instanceof Mb?this.cc.Bj():this.cc.parent&&this.cc.parent.Bj();break;case 10:this.index=b[1];a.type&&a.type.S?(this.get=this.xt,this.Cc=!0):this.get=this.yt;break;case 11:this.Vh=b[1];this.Ne=null;this.get=this.qt;break;case 2:case 12:this.Fn=b[1];this.get=this.ot;break;case 13:for(this.get=this.Dt,this.of=[],this.Uh=[],e=1,d=b.length;e<d;e++)f=new Nb(this.vc,b[e]),this.of.push(f),this.Uh.push(0)}}function h(a,
b,e){this.sheet=a;this.parent=b;this.b=a.b;this.Fa=[];this.name=e[1];this.gq=e[2];this.Qk=e[3];this.ah=!!e[4];this.Ri=!!e[5];this.T=e[6];this.b.pg[this.T.toString()]=this;this.data=this.Qk;this.parent?(this.ef=this.ah||this.Ri?-1:this.b.Mu++,this.b.ur.push(this)):(this.ef=-1,this.b.tr.push(this))}function f(a,b,e){this.sheet=a;this.parent=b;this.b=a.b;this.Fa=[];this.Sg=null;this.Jt=e[1];this.ab=!0}function e(){this.Kp=[];this.reset(null)}var r=[];n.prototype.toString=function(){return this.name};
n.prototype.Vn=function(a,b,e){switch(a[0]){case 0:a=new Qb(this,b,a);if(a.uc)for(e.push(a),e=0,b=a.lb.length;e<b;e++)a.lb[e].trigger&&this.Wn(a,e);else a.fo()?this.Wn(a,0):e.push(a);break;case 1:a=new Hb(this,b,a);e.push(a);break;case 2:a=new Rb(this,b,a),e.push(a)}};n.prototype.Ea=function(){var a,b;a=0;for(b=this.ee.length;a<b;a++)this.ee[a].Ea(a<b-1&&this.ee[a+1].Si)};n.prototype.qm=function(){S(this.ok);S(this.$j);this.$m(this);S(this.$j)};n.prototype.$m=function(a){var b,e,d,f,c=a.ok,l=a.$j,
h=this.Tn.Nd();b=0;for(e=h.length;b<e;++b)d=h[b],f=d.Sg,!d.ab||a===f||-1<l.indexOf(f)||(l.push(f),f.$m(a),c.push(f))};n.prototype.Ta=function(a){this.b.Bw||(this.Mk=!0,a||(this.b.Yk=!0));var b,e;b=0;for(e=this.ee.length;b<e;b++){var d=this.ee[b];d.Ta();this.b.ik(d.Fa);this.b.he&&this.b.jb()}a||(this.b.Yk=!1)};n.prototype.Wn=function(a,b){a.uc||this.b.Rj.push(a);var e,d,f=a.lb[b],c;f.type?c=f.type.name:c="system";var l=(e=f.Bn)?this.Cn:this.Up;l[c]||(l[c]=[]);c=l[c];l=f.eb;if(e){if(f.Q.length&&(f=
f.Q[0],1===f.type&&2===f.ad.type)){f=f.ad.value.toLowerCase();e=0;for(d=c.length;e<d;e++)if(c[e].method==l){e=c[e].Gg;e[f]?e[f].push([a,b]):e[f]=[[a,b]];return}e={};e[f]=[[a,b]];c.push({method:l,Gg:e})}}else{e=0;for(d=c.length;e<d;e++)if(c[e].method==l){c[e].Gg.push([a,b]);return}X&&l===X.prototype.k.vf?c.unshift({method:l,Gg:[[a,b]]}):c.push({method:l,Gg:[[a,b]]})}};xb=n;u.prototype.Lk=function(){return this.ua?this.type.j.length:this.j.length};u.prototype.Kc=function(){return this.ua?this.type.j:
this.j};u.prototype.zh=function(a){a&&(a.b.nb().fc.uc?(this.ua&&(S(this.j),wa(this.N,a.type.j),this.ua=!1),a=this.N.indexOf(a),-1!==a&&(this.j.push(this.N[a]),this.N.splice(a,1))):(this.ua=!1,S(this.j),this.j[0]=a))};gb=u;window._c2hh_="F1F63E780E7867A12F1395773AF34A032A8E6E81";k.prototype.Ea=function(a){var b,e=this.parent;if(this.group)for(this.Oj=!0;e;){if(!e.group){this.Oj=!1;break}e=e.parent}this.lm=!this.fo()&&(!this.parent||this.parent.group&&this.parent.Oj);this.Sn=!!a;this.ye=this.Fa.slice(0);
for(e=this.parent;e;){a=0;for(b=e.Fa.length;a<b;a++)this.sr(e.Fa[a]);e=e.parent}this.Fa=m(this.Fa);this.ye=m(this.ye);a=0;for(b=this.lb.length;a<b;a++)this.lb[a].Ea();a=0;for(b=this.Ec.length;a<b;a++)this.Ec[a].Ea();a=0;for(b=this.zc.length;a<b;a++)this.zc[a].Ea(a<b-1&&this.zc[a+1].Si)};k.prototype.xp=function(a){if(this.Jf!==!!a){this.Jf=!!a;var b;a=0;for(b=this.ni.length;a<b;++a)this.ni[a].$p();0<b&&this.b.ba.Me&&this.b.ba.Me.qm()}};k.prototype.bn=function(a){b(a,this.Fa)};k.prototype.sr=function(a){b(a,
this.ye)};k.prototype.Bj=function(){this.Hp=!0;this.parent&&this.parent.Bj()};k.prototype.fo=function(){return this.lb.length?this.lb[0].trigger:!1};k.prototype.Ta=function(){var a,b,e=!1,d=this.b,f=this.b.nb();f.fc=this;var c=this.lb;this.Si||(f.pk=!1);if(this.uc){0===c.length&&(e=!0);f.Eb=0;for(a=c.length;f.Eb<a;f.Eb++)b=c[f.Eb],b.trigger||(b=b.Ta())&&(e=!0);(f.$e=e)&&this.Tl()}else{f.Eb=0;for(a=c.length;f.Eb<a;f.Eb++)if(b=c[f.Eb].Ta(),!b){f.$e=!1;this.lm&&d.he&&d.jb();return}f.$e=!0;this.Tl()}this.os(f)};
k.prototype.os=function(a){a.$e&&this.Sn&&(a.pk=!0);this.lm&&this.b.he&&this.b.jb()};k.prototype.Du=function(a){this.b.nb().fc=this;this.lb[a].Ta()&&(this.Tl(),this.b.nb().$e=!0)};k.prototype.Tl=function(){var a=this.b.nb(),b;a.oc=0;for(b=this.Ec.length;a.oc<b;a.oc++)if(this.Ec[a.oc].Ta())return;this.rp()};k.prototype.Bu=function(){var a=this.b.nb(),b;for(b=this.Ec.length;a.oc<b;a.oc++)if(this.Ec[a.oc].Ta())return;this.rp()};k.prototype.rp=function(){if(this.zc.length){var a,b,e,d,f=this.zc.length-
1;this.b.Jl(this);if(this.Hp)for(a=0,b=this.zc.length;a<b;a++)e=this.zc[a],(d=!this.Oj||!this.group&&a<f)&&this.b.Il(e.Fa),e.Ta(),d?this.b.$f(e.Fa):this.b.ik(e.Fa);else for(a=0,b=this.zc.length;a<b;a++)this.zc[a].Ta();this.b.hp()}};k.prototype.Eu=function(){var a=this.b.nb();a.fc=this;var b=!1,e;a.Eb=0;for(e=this.lb.length;a.Eb<e;a.Eb++)if(this.lb[a.Eb].Ta())b=!0;else if(!this.uc)return!1;return this.uc?b:!0};k.prototype.Ut=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.lb[b].type===
a.type)return!1;return!0};Qb=k;a.prototype.Ea=function(){var a,b,e;a=0;for(b=this.Q.length;a<b;a++)e=this.Q[a],e.Ea(),e.Cc&&(this.tg=!0)};a.prototype.Gu=function(){return!0};a.prototype.Vl=function(){var a,b;a=0;for(b=this.Q.length;a<b;a++)this.za[a]=this.Q[a].get();return Na(this.eb.apply(this.b.hd,this.za),this.Oi)};a.prototype.Fu=function(){var a,b;a=0;for(b=this.Q.length;a<b;a++)this.za[a]=this.Q[a].get();a=this.eb.apply(this.Ee?this.Ee:this.type,this.za);this.type.Wd();return a};a.prototype.Ul=
function(){var a,b,e,d,f,c,l,h,k=this.type,r=k.ja(),p=this.cc.uc&&!this.trigger;b=0;var m=k.sc,q=k.S,n=k.vd,w=this.Ic,v=-1<w,u=this.tg,z=this.Q,D=this.za,J=this.Oi,Q=this.eb,E;if(u)for(b=0,f=z.length;b<f;++b)c=z[b],c.Cc||(D[b]=c.get(0));else for(b=0,f=z.length;b<f;++b)D[b]=z[b].get(0);if(r.ua){S(r.j);S(r.N);E=k.j;a=0;for(d=E.length;a<d;++a){h=E[a];if(u)for(b=0,f=z.length;b<f;++b)c=z[b],c.Cc&&(D[b]=c.get(a));v?(b=0,q&&(b=h.type.Gf[n]),b=Q.apply(h.J[w+b],D)):b=Q.apply(h,D);(l=Na(b,J))?r.j.push(h):p&&
r.N.push(h)}k.finish&&k.finish(!0);r.ua=!1;k.Wd();return r.Lk()}e=0;E=(l=p&&!this.cc.Ut(this))?r.N:r.j;var C=!1;a=0;for(d=E.length;a<d;++a){h=E[a];if(u)for(b=0,f=z.length;b<f;++b)c=z[b],c.Cc&&(D[b]=c.get(a));v?(b=0,q&&(b=h.type.Gf[n]),b=Q.apply(h.J[w+b],D)):b=Q.apply(h,D);if(Na(b,J))if(C=!0,l){if(r.j.push(h),m)for(b=0,f=h.siblings.length;b<f;b++)c=h.siblings[b],c.type.ja().j.push(c)}else{E[e]=h;if(m)for(b=0,f=h.siblings.length;b<f;b++)c=h.siblings[b],c.type.ja().j[e]=c;e++}else if(l){E[e]=h;if(m)for(b=
0,f=h.siblings.length;b<f;b++)c=h.siblings[b],c.type.ja().N[e]=c;e++}else if(p&&(r.N.push(h),m))for(b=0,f=h.siblings.length;b<f;b++)c=h.siblings[b],c.type.ja().N.push(c)}va(E,e);if(m)for(q=k.Qb,a=0,d=q.length;a<d;a++)h=q[a].ja(),l?va(h.N,e):va(h.j,e);e=C;if(l&&!C)for(a=0,d=r.j.length;a<d;a++){h=r.j[a];if(u)for(b=0,f=z.length;b<f;b++)c=z[b],c.Cc&&(D[b]=c.get(a));b=v?Q.apply(h.J[w],D):Q.apply(h,D);if(Na(b,J)){C=!0;break}}k.finish&&k.finish(e||p);return p?C:r.Lk()};Lb=a;p.prototype.Ea=function(){var a,
b,e;a=0;for(b=this.Q.length;a<b;a++)e=this.Q[a],e.Ea(),e.Cc&&(this.tg=!0)};p.prototype.Vl=function(){var a=this.b,b,e,d=this.Q,f=this.za;b=0;for(e=d.length;b<e;++b)f[b]=d[b].get();return this.eb.apply(a.hd,f)};p.prototype.Ul=function(){var a=this.type,b=this.Ic,e=a.vd,d=this.tg,f=this.Q,c=this.za,l=this.eb,h=a.ja().Kc(),a=a.S,k=-1<b,r,p,m,q,w,n;if(d)for(p=0,q=f.length;p<q;++p)w=f[p],w.Cc||(c[p]=w.get(0));else for(p=0,q=f.length;p<q;++p)c[p]=f[p].get(0);r=0;for(m=h.length;r<m;++r){n=h[r];if(d)for(p=
0,q=f.length;p<q;++p)w=f[p],w.Cc&&(c[p]=w.get(r));k?(p=0,a&&(p=n.type.Gf[e]),l.apply(n.J[b+p],c)):l.apply(n,c)}return!1};Mb=p;var l=[],w=-1;d.prototype.Ea=function(){var a,b;if(11===this.type)this.Ne=this.b.Nn(this.Vh,this.cc.parent);else if(13===this.type)for(a=0,b=this.of.length;a<b;a++)this.of[a].Ea();this.ad&&this.ad.Ea()};d.prototype.fu=function(a){this.Cc||!a||a.Da.Fj||(this.Cc=!0)};d.prototype.zp=function(){this.Cc=!0};d.prototype.tt=function(a){this.Id=a||0;a=v();this.ad.get(a);w--;return a.data};
d.prototype.ut=function(a){this.Id=a||0;a=v();this.ad.get(a);w--;return G(a.data)?a.data:""};d.prototype.Ct=function(){return this.object};d.prototype.pt=function(){return this.sn};d.prototype.At=function(a){this.Id=a||0;a=v();this.ad.get(a);w--;return a.Wa()?this.b.yd(a.data):this.b.Kg(a.data)};d.prototype.Bt=function(){return this.Oa};d.prototype.zt=function(){return this.key};d.prototype.yt=function(){return this.index};d.prototype.xt=function(a){a=a||0;var b=this.vc.type,e=null,e=b.ja(),d=e.Kc();
if(d.length)e=d[a%d.length].type;else if(e.N.length)e=e.N[a%e.N.length].type;else if(b.j.length)e=b.j[a%b.j.length].type;else return 0;return this.index+e.yi[b.vd]};d.prototype.qt=function(){return this.Ne};d.prototype.ot=function(){return this.Fn};d.prototype.Dt=function(){var a,b;a=0;for(b=this.of.length;a<b;a++)this.Uh[a]=this.of[a].get();return this.Uh};Nb=d;h.prototype.Ea=function(){this.Fa=m(this.Fa)};h.prototype.Cj=function(a){var b=this.b.Mn();this.parent&&!this.ah&&b?(this.ef>=b.length&&
(b.length=this.ef+1),b[this.ef]=a):this.data=a};h.prototype.Ng=function(){var a=this.b.Mn();return!this.parent||this.ah||!a||this.Ri?this.data:this.ef>=a.length||"undefined"===typeof a[this.ef]?this.Qk:a[this.ef]};h.prototype.Ta=function(){!this.parent||this.ah||this.Ri||this.Cj(this.Qk)};Hb=h;f.prototype.toString=function(){return"include:"+this.Sg.toString()};f.prototype.Ea=function(){this.Sg=this.b.sk[this.Jt];this.sheet.Tn.add(this);this.Fa=m(this.Fa);for(var a=this.parent;a;)a.group&&a.ni.push(this),
a=a.parent;this.$p()};f.prototype.Ta=function(){this.parent&&this.b.Ch(this.b.u);this.Sg.Mk||this.Sg.Ta(!0);this.parent&&this.b.$f(this.b.u)};f.prototype.$p=function(){for(var a=this.parent;a;){if(a.group&&!a.Jf){this.ab=!1;return}a=a.parent}this.ab=!0};Rb=f;e.prototype.reset=function(a){this.fc=a;this.oc=this.Eb=0;S(this.Kp);this.pk=this.$e=!1};Gb=e})();
(function(){function c(b,a){this.vc=b;this.b=b.b;this.type=a[0];this.get=[this.Is,this.Es,this.Rs,this.Us,this.ts,this.Ss,this.Ms,this.Bs,this.Ls,this.Qs,this.us,this.Ps,this.Cs,this.Ns,this.Js,this.Ks,this.Fs,this.Gs,this.As,this.Ts,this.Os,this.Hs,this.zs,this.Ds][this.type];var c=null;this.Ed=this.Q=this.za=this.eb=this.Mj=this.second=this.first=this.value=null;this.Ic=-1;this.Lc=null;this.fq=-1;this.Ne=this.Vh=null;this.dg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Pb(b,a[1]);break;case 18:this.first=new Pb(b,a[1]);this.second=new Pb(b,a[2]);this.Mj=new Pb(b,a[3]);break;case 19:this.eb=this.b.Sd(a[1]);this.eb!==W.prototype.Ja.random&&this.eb!==W.prototype.Ja.Dr||this.vc.zp();this.za=[];this.Q=[];3===a.length?(c=a[2],this.za.length=c.length+1):this.za.length=1;break;case 20:this.Ed=this.b.u[a[1]];this.Ic=-1;this.eb=this.b.Sd(a[2]);this.dg=a[3];Tb.Function&&this.eb===Tb.Function.prototype.Ja.kv&&this.vc.zp();a[4]?this.Lc=new Pb(b,a[4]):this.Lc=null;this.za=
[];this.Q=[];6===a.length?(c=a[5],this.za.length=c.length+1):this.za.length=1;break;case 21:this.Ed=this.b.u[a[1]];this.dg=a[2];a[3]?this.Lc=new Pb(b,a[3]):this.Lc=null;this.fq=a[4];break;case 22:this.Ed=this.b.u[a[1]];this.Ed.Hi(a[2]);this.Ic=this.Ed.Bk(a[2]);this.eb=this.b.Sd(a[3]);this.dg=a[4];a[5]?this.Lc=new Pb(b,a[5]):this.Lc=null;this.za=[];this.Q=[];7===a.length?(c=a[6],this.za.length=c.length+1):this.za.length=1;break;case 23:this.Vh=a[1],this.Ne=null}this.vc.fu(this.Ed);4<=this.type&&17>=
this.type&&(this.first=new Pb(b,a[1]),this.second=new Pb(b,a[2]));if(c){var k,d;k=0;for(d=c.length;k<d;k++)this.Q.push(new Pb(b,c[k]))}}function q(){++k;u.length===k&&u.push(new Ob);return u[k]}function m(b,a,c){var k,d;k=0;for(d=b.length;k<d;++k)b[k].get(c),a[k+1]=c.data}function n(b,a){this.type=b||V.uf;this.data=a||0;this.hf=null;this.type==V.uf&&(this.data=Math.floor(this.data))}c.prototype.Ea=function(){23===this.type&&(this.Ne=this.vc.b.Nn(this.Vh,this.vc.cc.parent));this.first&&this.first.Ea();
this.second&&this.second.Ea();this.Mj&&this.Mj.Ea();this.Lc&&this.Lc.Ea();if(this.Q){var b,a;b=0;for(a=this.Q.length;b<a;b++)this.Q[b].Ea()}};var u=[],k=-1;c.prototype.Ts=function(b){var a=this.Q,c=this.za;c[0]=b;b=q();m(a,c,b);--k;this.eb.apply(this.b.hd,c)};c.prototype.Os=function(b){var a=this.Ed,c=this.za,n=this.Q,d=this.Lc,h=this.eb,f=this.vc.Id,e=a.ja(),r=e.Kc();if(!r.length)if(e.N.length)r=e.N;else{this.dg?b.Yb(""):b.na(0);return}c[0]=b;b.hf=a;b=q();m(n,c,b);d&&(d.get(b),b.Wa()&&(f=b.data,
r=a.j));--k;a=r.length;if(f>=a||f<=-a)f%=a;0>f&&(f+=a);h.apply(r[f],c)};c.prototype.zs=function(b){var a=this.Ed,c=this.za,n=this.Q,d=this.Lc,h=this.Ic,f=this.eb,e=this.vc.Id,r=a.ja(),l=r.Kc();if(!l.length)if(r.N.length)l=r.N;else{this.dg?b.Yb(""):b.na(0);return}c[0]=b;b.hf=a;b=q();m(n,c,b);d&&(d.get(b),b.Wa()&&(e=b.data,l=a.j));--k;n=l.length;if(e>=n||e<=-n)e%=n;0>e&&(e+=n);e=l[e];l=0;a.S&&(l=e.type.Gf[a.vd]);f.apply(e.J[h+l],c)};c.prototype.Hs=function(b){var a=this.Lc,c=this.Ed,m=this.fq,d=this.vc.Id,
h=c.ja(),f=h.Kc();if(!f.length)if(h.N.length)f=h.N;else{this.dg?b.Yb(""):b.na(0);return}if(a){h=q();a.get(h);if(h.Wa()){d=h.data;f=c.j;0!==f.length&&(d%=f.length,0>d&&(d+=f.length));d=c.Fk(d);c=d.La[m];G(c)?b.Yb(c):b.B(c);--k;return}--k}a=f.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=f[d];f=0;c.S&&(f=d.type.yi[c.vd]);c=d.La[m+f];G(c)?b.Yb(c):b.B(c)};c.prototype.Is=function(b){b.type=V.uf;b.data=this.value};c.prototype.Es=function(b){b.type=V.tf;b.data=this.value};c.prototype.Rs=function(b){b.type=V.String;
b.data=this.value};c.prototype.Us=function(b){this.first.get(b);b.Wa()&&(b.data=-b.data)};c.prototype.ts=function(b){this.first.get(b);var a=q();this.second.get(a);b.Wa()&&a.Wa()&&(b.data+=a.data,a.Lf()&&b.Wf());--k};c.prototype.Ss=function(b){this.first.get(b);var a=q();this.second.get(a);b.Wa()&&a.Wa()&&(b.data-=a.data,a.Lf()&&b.Wf());--k};c.prototype.Ms=function(b){this.first.get(b);var a=q();this.second.get(a);b.Wa()&&a.Wa()&&(b.data*=a.data,a.Lf()&&b.Wf());--k};c.prototype.Bs=function(b){this.first.get(b);
var a=q();this.second.get(a);b.Wa()&&a.Wa()&&(b.data/=a.data,b.Wf());--k};c.prototype.Ls=function(b){this.first.get(b);var a=q();this.second.get(a);b.Wa()&&a.Wa()&&(b.data%=a.data,a.Lf()&&b.Wf());--k};c.prototype.Qs=function(b){this.first.get(b);var a=q();this.second.get(a);b.Wa()&&a.Wa()&&(b.data=Math.pow(b.data,a.data),a.Lf()&&b.Wf());--k};c.prototype.us=function(b){this.first.get(b);var a=q();this.second.get(a);a.Nf()||b.Nf()?this.ws(b,a):this.vs(b,a);--k};c.prototype.ws=function(b,a){b.Nf()&&
a.Nf()?this.ys(b,a):this.xs(b,a)};c.prototype.ys=function(b,a){b.data+=a.data};c.prototype.xs=function(b,a){b.Nf()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Yb(b.data.toString()+a.data)};c.prototype.vs=function(b,a){b.na(b.data&&a.data?1:0)};c.prototype.Ps=function(b){this.first.get(b);var a=q();this.second.get(a);b.Wa()&&a.Wa()&&(b.data||a.data?b.na(1):b.na(0));--k};c.prototype.As=function(b){this.first.get(b);b.data?this.second.get(b):this.Mj.get(b)};c.prototype.Cs=function(b){this.first.get(b);
var a=q();this.second.get(a);b.na(b.data===a.data?1:0);--k};c.prototype.Ns=function(b){this.first.get(b);var a=q();this.second.get(a);b.na(b.data!==a.data?1:0);--k};c.prototype.Js=function(b){this.first.get(b);var a=q();this.second.get(a);b.na(b.data<a.data?1:0);--k};c.prototype.Ks=function(b){this.first.get(b);var a=q();this.second.get(a);b.na(b.data<=a.data?1:0);--k};c.prototype.Fs=function(b){this.first.get(b);var a=q();this.second.get(a);b.na(b.data>a.data?1:0);--k};c.prototype.Gs=function(b){this.first.get(b);
var a=q();this.second.get(a);b.na(b.data>=a.data?1:0);--k};c.prototype.Ds=function(b){var a=this.Ne.Ng();ga(a)?b.B(a):b.Yb(a)};Pb=c;n.prototype.Lf=function(){return this.type===V.tf};n.prototype.Wa=function(){return this.type===V.uf||this.type===V.tf};n.prototype.Nf=function(){return this.type===V.String};n.prototype.Wf=function(){this.Lf()||(this.Nf()&&(this.data=parseFloat(this.data)),this.type=V.tf)};n.prototype.na=function(b){this.type=V.uf;this.data=Math.floor(b)};n.prototype.B=function(b){this.type=
V.tf;this.data=b};n.prototype.Yb=function(b){this.type=V.String;this.data=b};n.prototype.Ku=function(b){ga(b)?(this.type=V.tf,this.data=b):G(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.uf,this.data=0)};Ob=n;V={uf:0,tf:1,String:2}})();function W(c){this.b=c;this.ac=[]}
W.prototype.Za=function(){var c={},q,m,n,u,k,b,a,p;c.waits=[];var v=c.waits,d;q=0;for(m=this.ac.length;q<m;q++){b=this.ac[q];d={t:b.time,st:b.Lu,s:b.Ep,ev:b.Fg.T,sm:[],sols:{}};b.Fg.Ec[b.oc]&&(d.act=b.Fg.Ec[b.oc].T);n=0;for(u=b.Fa.length;n<u;n++)d.sm.push(b.Fa[n].T);for(k in b.Zb)if(b.Zb.hasOwnProperty(k)){a=this.b.u[parseInt(k,10)];p={sa:b.Zb[k].sp,insts:[]};n=0;for(u=b.Zb[k].Ue.length;n<u;n++)p.insts.push(b.Zb[k].Ue[n].uid);d.sols[a.T.toString()]=p}v.push(d)}return c};
W.prototype.pb=function(c){c=c.waits;var q,m,n,u,k,b,a,p,v,d,h;S(this.ac);q=0;for(m=c.length;q<m;q++)if(b=c[q],p=this.b.jn[b.ev.toString()]){v=-1;n=0;for(u=p.Ec.length;n<u;n++)if(p.Ec[n].T===b.act){v=n;break}if(-1!==v){a={Zb:{},Fa:[],vn:!1};a.time=b.t;a.Lu=b.st||"";a.Ep=!!b.s;a.Fg=p;a.oc=v;n=0;for(u=b.sm.length;n<u;n++)(p=this.b.Ji(b.sm[n]))&&a.Fa.push(p);for(k in b.sols)if(b.sols.hasOwnProperty(k)&&(p=this.b.Ji(parseInt(k,10)))){v=b.sols[k];d={sp:v.sa,Ue:[]};n=0;for(u=v.insts.length;n<u;n++)(h=this.b.Lg(v.insts[n]))&&
d.Ue.push(h);a.Zb[p.index.toString()]=d}this.ac.push(a)}}};
(function(){function c(){}function q(){}function m(){}var n=W.prototype;c.prototype.rq=function(){return!0};c.prototype.Im=function(){return!0};c.prototype.Nq=function(){return!0};c.prototype.pq=function(b,a,c){return Sb(b.Ng(),a,c)};c.prototype.vq=function(b){return(b=this.b.Qg[b.toLowerCase()])&&b.Jf};c.prototype.qq=function(){var b=this.b.nb();return b.pk?!1:!b.$e};c.prototype.Jm=function(){return!0};c.prototype.Dq=function(){return!0};c.prototype.Zj=function(){return!0};c.prototype.Om=function(){return!0};
c.prototype.Oq=function(){return!0};c.prototype.Zh=function(){return!0};c.prototype.kq=function(b,a,c){return Ja(U(b),U(c))<=U(a)};c.prototype.uq=function(b,a){return La(U(b),U(a))};c.prototype.tq=function(b,a,c){b=Ha(b);a=Ha(a);c=Ha(c);return La(c,a)?La(b,a)&&!La(b,c):!(!La(b,a)&&La(b,c))};n.k=new c;q.prototype.sq=function(b){this.b.Of||this.b.He||(this.b.He=b)};q.prototype.iq=function(b,a){0===b.gq?ga(a)?b.Cj(b.Ng()+a):b.Cj(b.Ng()+parseFloat(a)):1===b.gq&&b.Cj(b.Ng()+a.toString())};var u=[],k=[];
q.prototype.Wq=function(){if(!this.b.Of&&!this.b.He&&this.b.ba){this.b.He=this.b.ba;var b,a,c;b=0;for(a=this.b.Vd.length;b<a;b++)c=this.b.Vd[b],c.xp(c.Ni)}};n.U=new q;m.prototype["int"]=function(b,a){G(a)?(b.na(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.na(a)};m.prototype["float"]=function(b,a){G(a)?(b.B(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.B(a)};m.prototype.random=function(b,a,c){void 0===c?b.B(Math.random()*a):b.B(Math.random()*(c-a)+a)};m.prototype.sqrt=function(b,a){b.B(Math.sqrt(a))};
m.prototype.abs=function(b,a){b.B(Math.abs(a))};m.prototype.round=function(b,a){b.na(Math.round(a))};m.prototype.floor=function(b,a){b.na(Math.floor(a))};m.prototype.ceil=function(b,a){b.na(Math.ceil(a))};m.prototype.sin=function(b,a){b.B(Math.sin(U(a)))};m.prototype.cos=function(b,a){b.B(Math.cos(U(a)))};m.prototype.tan=function(b,a){b.B(Math.tan(U(a)))};m.prototype.asin=function(b,a){b.B(Da(Math.asin(a)))};m.prototype.acos=function(b,a){b.B(Da(Math.acos(a)))};m.prototype.atan=function(b,a){b.B(Da(Math.atan(a)))};
m.prototype.exp=function(b,a){b.B(Math.exp(a))};m.prototype.log10=function(b,a){b.B(Math.log(a)/Math.LN10)};m.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,k,d;c=2;for(k=arguments.length;c<k;c++)d=arguments[c],"number"===typeof d&&a<d&&(a=d);b.B(a)};m.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,k,d;c=2;for(k=arguments.length;c<k;c++)d=arguments[c],"number"===typeof d&&a>d&&(a=d);b.B(a)};m.prototype.Df=function(b){b.B(this.b.Df)};m.prototype.lg=
function(b){b.B(this.b.lg)};m.prototype.time=function(b){b.B(this.b.ic.R)};m.prototype.Kd=function(b){b.na(this.b.Kd)};m.prototype.mj=function(b){b.na(this.b.mj)};m.prototype.xk=function(b){b.na(this.b.xk)};m.prototype.n=function(b,a,c,k,d){b.B(Da(Ia(a,c,k,d)))};m.prototype.left=function(b,a,c){b.Yb(G(a)?a.substr(0,c):"")};m.prototype.right=function(b,a,c){b.Yb(G(a)?a.substr(a.length-c):"")};m.prototype.replace=function(b,a,c,k){G(a)&&G(c)&&G(k)?b.Yb(a.replace(new RegExp(Va(c),"gi"),k)):b.Yb(G(a)?
a:"")};m.prototype.trim=function(b,a){b.Yb(G(a)?a.trim():"")};m.prototype.Dr=function(b){var a=I(Math.random()*(arguments.length-1));b.Ku(arguments[a+1])};m.prototype.kk=function(b){b.B(this.b.kk/1E3)};m.prototype.aj=function(b){b.B(this.b.aj)};n.Ja=new m;n.Cu=function(){var b,a,c,m,d,h,f=this.b.nb();b=0;for(c=this.ac.length;b<c;b++){m=this.ac[b];if(-1===m.time){if(!m.Ep)continue}else if(m.time>this.b.ic.R)continue;f.fc=m.Fg;f.oc=m.oc;f.Eb=0;for(a in m.Zb)m.Zb.hasOwnProperty(a)&&(d=this.b.u[parseInt(a,
10)].ja(),h=m.Zb[a],d.ua=h.sp,wa(d.j,h.Ue),d=h,S(d.Ue),k.push(d));m.Fg.Bu();this.b.ik(m.Fa);m.vn=!0}a=b=0;for(c=this.ac.length;b<c;b++)m=this.ac[b],this.ac[a]=m,m.vn?(Pa(m.Zb),S(m.Fa),u.push(m)):a++;va(this.ac,a)}})();
(function(){fb=function(c,m){var n=c[1],u=c[3],k=c[4],b=c[5],a=c[6],p=c[7],v=c[8];m.k||(m.k={});m.U||(m.U={});m.Ja||(m.Ja={});var d=m.k,h=m.U,f=m.Ja;u&&(d.qv=function(a,b){return Sb(this.x,a,b)},d.rv=function(a,b){return Sb(this.y,a,b)},d.yv=function(){var a=this.q;this.fa();var b=this.qa;return!(b.right<a.da||b.bottom<a.ea||b.left>a.la||b.top>a.ka)},d.wq=function(){this.fa();var a=this.qa,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Kv=function(a,b,d){var c=this.ja(),
f=c.Kc();if(!f.length)return!1;var h=f[0],k=h,p=Ma(h.x,h.y,b,d),m,q,n;m=1;for(q=f.length;m<q;m++)if(h=f[m],n=Ma(h.x,h.y,b,d),0===a&&n<p||1===a&&n>p)p=n,k=h;c.zh(k);return!0},h.Zv=function(a){this.x!==a&&(this.x=a,this.D())},h.$v=function(a){this.y!==a&&(this.y=a,this.D())},h.fr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},h.gr=function(a,b){var d=a.jt(this);if(d){var c;d.Ek?(c=d.Ek(b,!0),d=d.Ek(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.D()}},h.Dv=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.D())},h.Cv=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.D())},f.Um=function(a){a.B(this.x)},f.Vm=function(a){a.B(this.y)},f.Df=function(a){a.B(this.b.Pe(this))});k&&(d.pv=function(a,b){return Sb(this.width,a,b)},d.lv=function(a,b){return Sb(this.height,a,b)},h.kr=function(a){this.width!==a&&(this.width=a,this.D())},h.Vv=function(a){this.height!==a&&(this.height=a,this.D())},h.Xv=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.D()},f.dw=function(a){a.B(this.width)},f.uv=function(a){a.B(this.height)},f.gv=function(a){this.fa();a.B(this.qa.left)},f.jv=function(a){this.fa();a.B(this.qa.top)},f.hv=function(a){this.fa();a.B(this.qa.right)},f.dv=function(a){this.fa();a.B(this.qa.bottom)});b&&(d.kq=function(a,b){return Ja(this.n,U(b))<=U(a)},d.uq=function(a){return La(this.n,U(a))},d.tq=function(a,b){var d=Ha(a),c=Ha(b),f=Fa(this.n);return La(c,d)?La(f,d)&&
!La(f,c):!(!La(f,d)&&La(f,c))},h.Yq=function(a){a=U(Ea(a));isNaN(a)||this.n===a||(this.n=a,this.D())},h.Ov=function(a){0===a||isNaN(a)||(this.n+=U(a),this.n=Fa(this.n),this.D())},h.Pv=function(a){0===a||isNaN(a)||(this.n-=U(a),this.n=Fa(this.n),this.D())},h.Qv=function(a,b){var d=Ka(this.n,U(b),U(a));isNaN(d)||this.n===d||(this.n=d,this.D())},h.Rv=function(a,b,d){a=Ka(this.n,Math.atan2(d-this.y,b-this.x),U(a));isNaN(a)||this.n===a||(this.n=a,this.D())},h.Yv=function(a,b){var d=Math.atan2(b-this.y,
a-this.x);isNaN(d)||this.n===d||(this.n=d,this.D())},f.jq=function(a){a.B(Ga(this.n))});n||(d.nv=function(a,b,d){return Sb(this.La[a],b,d)},d.wv=function(a){return this.La[a]},d.Lv=function(a,b){var d=this.ja(),c=d.Kc();if(!c.length)return!1;var f=c[0],h=f,k=f.La[b],p,m,q;p=1;for(m=c.length;p<m;p++)if(f=c[p],q=f.La[b],0===a&&q<k||1===a&&q>k)k=q,h=f;d.zh(h);return!0},d.Jv=function(a){var b,d,c,f,h;if(this.b.Ln().Oi){h=this.ja();if(h.ua)for(h.ua=!1,S(h.j),S(h.N),c=this.j,b=0,d=c.length;b<d;b++)f=c[b],
f.uid===a?h.N.push(f):h.j.push(f);else{c=b=0;for(d=h.j.length;b<d;b++)f=h.j[b],h.j[c]=f,f.uid===a?h.N.push(f):c++;va(h.j,c)}this.Wd();return!!h.j.length}f=this.b.Lg(a);if(!f)return!1;h=this.ja();if(!h.ua&&-1===h.j.indexOf(f))return!1;if(this.S)for(a=f.type.ra,b=0,d=a.length;b<d;b++){if(a[b]===this)return h.zh(f),this.Wd(),!0}else if(f.type===this)return h.zh(f),this.Wd(),!0;return!1},d.Cm=function(){return!0},d.Eq=function(){return!0},h.cr=function(a,b){var d=this.La;ga(d[a])?d[a]=ga(b)?b:parseFloat(b):
G(d[a])&&(d[a]=G(b)?b:b.toString())},h.cv=function(a,b){var d=this.La;ga(d[a])?d[a]=ga(b)?d[a]+b:d[a]+parseFloat(b):G(d[a])&&(d[a]=G(b)?d[a]+b:d[a]+b.toString())},h.aw=function(a,b){var d=this.La;ga(d[a])&&(d[a]=ga(b)?d[a]-b:d[a]-parseFloat(b))},h.Sv=function(a,b){this.La[a]=b?1:0},h.bw=function(a){this.La[a]=1-this.La[a]},h.tv=function(){this.b.Be(this)},h.zq||(h.zq=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.$i(this,b,!0);this.kd&&this.kd();if(this.J)for(a=0,b=this.J.length;a<
b;++a)d=this.J[a],d.kd&&d.kd()}),f.sv=function(a){var b=a.hf.j.length,d,c,f;d=0;for(c=this.b.Jc.length;d<c;d++)f=this.b.Jc[d],a.hf.S?0<=f.type.ra.indexOf(a.hf)&&b++:f.type===a.hf&&b++;a.na(b)},f.Nv=function(a){a.na(a.hf.ja().Kc().length)},f.cw=function(a){a.na(this.uid)},f.vv=function(a){a.na(this.Og())},f.lq||(f.lq=function(a){a.Yb(JSON.stringify(this.b.Wl(this,!0)))}));a&&(d.zv=function(){return this.visible},h.jr=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.W=!0)},d.ov=function(a,b){return Sb(bb(100*
this.opacity),a,b)},h.Wv=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.W=!0)},f.Opacity=function(a){a.B(bb(100*this.opacity))});p&&(d.xv=function(a){return a?this.q===a:!1},d.Mv=function(a){var b=this.ja(),d=b.Kc();if(!d.length)return!1;var c=d[0],f=c,h,k;h=1;for(k=d.length;h<k;h++)if(c=d[h],0===a){if(c.q.index>f.q.index||c.q.index===f.q.index&&c.bd()>f.bd())f=c}else if(c.q.index<f.q.index||c.q.index===f.q.index&&c.bd()<f.bd())f=c;b.zh(f);return!0},h.Gv=function(){var a=
this.q,b=a.j;b.length&&b[b.length-1]===this||(a.bg(this,!1),a.vg(this,!1),this.b.W=!0)},h.Ev=function(){var a=this.q,b=a.j;b.length&&b[0]===this||(a.bg(this,!1),a.uu(this),this.b.W=!0)},h.Fv=function(a){a&&a!=this.q&&(this.q.bg(this,!0),this.q=a,a.vg(this,!0),this.b.W=!0)},h.fw=function(a,b){var d=0===a;if(b){var c=b.ct(this);c&&c.uid!==this.uid&&(this.q.index!==c.q.index&&(this.q.bg(this,!0),this.q=c.q,c.q.vg(this,!0)),this.q.gu(this,c,d),this.b.W=!0)}},f.Bv=function(a){a.na(this.q.Ro)},f.Av=function(a){a.Yb(this.q.name)},
f.ew=function(a){a.na(this.bd())});v&&(h.Tv=function(a,b){if(this.b.C){var d=this.type.Dk(b);if(!(0>d)){var c=1===a;this.Td[d]!==c&&(this.Td[d]=c,this.Wc(),this.b.W=!0)}}},h.Uv=function(a,b,d){if(this.b.C){var c=this.type.Dk(a);0>c||(a=this.type.L[c],c=this.ya[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.C.mt(a.Ha,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.ab&&(this.b.W=!0))))}})};yb=function(){this.fk=this.bk=!0;this.type.$h=!0;this.b.W=!0;var c,m,n=this.ck;c=0;for(m=n.length;c<m;++c)n[c](this);this.q.nc&&
this.fa()};zb=function(c){c&&this.ck.push(c)};Bb=function(){if(this.bk){var c=this.qa,m=this.Bb;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.Tb*this.width,-this.Ub*this.height);this.n?(c.offset(-this.x,-this.y),m.Bp(c,this.n),m.offset(this.x,this.y),m.kn(c)):m.Ih(c);c.normalize();this.bk=!1;this.Vu()}};var c=new R(0,0,0,0);Cb=function(){if(this.q.nc){var q=this.q.gb,m=this.qa;c.set(q.xb(m.left),q.yb(m.top),q.xb(m.right),q.yb(m.bottom));this.Kb.Eg(c)||(this.Kb.right<this.Kb.left?
q.update(this,null,c):q.update(this,this.Kb,c),this.Kb.yf(c),this.q.Tc=!0)}};Db=function(){if(this.fk&&this.nd){this.fa();var q=this.type.mi,m=this.qa;c.set(q.xb(m.left),q.yb(m.top),q.xb(m.right),q.yb(m.bottom));this.ae.Eg(c)||(this.ae.right<this.ae.left?q.update(this,null,c):q.update(this,this.ae,c),this.ae.yf(c),this.fk=!1)}};Ab=function(c,m){return this.qa.tb(c,m)&&this.Bb.tb(c,m)?this.Y&&!this.Y.Kf()?(this.Y.xf(this.width,this.height,this.n),this.Y.tb(c-this.x,m-this.y)):!0:!1};ub=function(){this.type.Sj();
return this.Re};Eb=function(){this.q.um();return this.Xc};Fb=function(){S(this.X);var c,m,n,u=!0;c=0;for(m=this.Td.length;c<m;c++)this.Td[c]&&(n=this.type.L[c],this.X.push(n),n.Pc||(u=!1));this.dq=!!this.X.length;this.Hd=u};vb=function(){return"Inst"+this.np};ib=function(c){if(c&&c.sc&&c.type!=this){var m,n,u;m=0;for(n=c.siblings.length;m<n;m++)if(u=c.siblings[m],u.type==this)return u}c=this.ja().Kc();return c.length?c[0]:null};jb=function(c){var m=this.ja().Kc();return m.length?m[c.Og()%m.length]:
null};hb=function(){if(this.ig&&!this.S){var c,m;c=0;for(m=this.j.length;c<m;c++)this.j[c].Re=c;var n=c,u=this.b.Jc;c=0;for(m=u.length;c<m;++c)u[c].type===this&&(u[c].Re=n++);this.ig=!1}};sb=function(c){if(c<this.j.length)return this.j[c];c-=this.j.length;var m=this.b.Jc,n,u;n=0;for(u=m.length;n<u;++n)if(m[n].type===this){if(0===c)return m[n];--c}return null};kb=function(){return this.Jd[this.Zc]};lb=function(){this.Zc++;this.Zc===this.Jd.length?this.Jd.push(new gb(this)):(this.Jd[this.Zc].ua=!0,
S(this.Jd[this.Zc].N))};mb=function(){this.Zc++;this.Zc===this.Jd.length&&this.Jd.push(new gb(this));var c=this.Jd[this.Zc],m=this.Jd[this.Zc-1];m.ua?(c.ua=!0,S(c.N)):(c.ua=!1,wa(c.j,m.j),wa(c.N,m.N))};nb=function(){this.Zc--};ob=function(c){var m,n,u,k,b,a=0;if(!this.S)for(m=0,n=this.ra.length;m<n;m++)for(b=this.ra[m],u=0,k=b.wa.length;u<k;u++){if(c===b.wa[u].name)return this.ca.lastBehIndex=a,b.wa[u];a++}m=0;for(n=this.wa.length;m<n;m++){if(c===this.wa[m].name)return this.ca.lastBehIndex=a,this.wa[m];
a++}return null};pb=function(c){return this.Hi(c)?this.ca.lastBehIndex:-1};qb=function(c){var m,n;m=0;for(n=this.L.length;m<n;m++)if(this.L[m].name===c)return m;return-1};rb=function(){if(this.sc&&!this.S){var c,m,n,u,k,b,a;this.Sj();b=this.ja();var p=b.ua,v=(c=this.b.nb())&&c.fc&&c.fc.uc;c=0;for(m=this.Qb.length;c<m;c++)if(k=this.Qb[c],k!==this&&(k.Sj(),a=k.ja(),a.ua=p,!p)){S(a.j);n=0;for(u=b.j.length;n<u;++n)a.j[n]=k.Fk(b.j[n].Re);if(v)for(S(a.N),n=0,u=b.N.length;n<u;++n)a.N[n]=k.Fk(b.N[n].Re)}}};
tb=function(){return"Type"+this.T};Sb=function(c,m,n){if("undefined"===typeof c||"undefined"===typeof n)return!1;switch(m){case 0:return c===n;case 1:return c!==n;case 2:return c<n;case 3:return c<=n;case 4:return c>n;case 5:return c>=n;default:return!1}}})();var ac={};function dc(c){this.b=c}
(function(){function c(){}var q=dc.prototype;q.ia=function(c){this.Da=c;this.b=c.b};q.ia.prototype.P=function(){};q.aa=function(c){this.type=c;this.b=c.b;this.eh=Array(256);this.Th=Array(256);this.Md=0};var m=q.aa.prototype;m.P=function(){var c=this;this.b.Ba||(jQuery(document).keydown(function(k){c.tl(k)}),jQuery(document).keyup(function(k){c.ul(k)}))};var n=[32,33,34,35,36,37,38,39,40,44];m.tl=function(c){var k=!1;window!=window.top&&-1<n.indexOf(c.which)&&(c.preventDefault(),k=!0,c.stopPropagation());
if(this.eh[c.which])this.Th[c.which]&&!k&&c.preventDefault();else{this.eh[c.which]=!0;this.Md=c.which;this.b.Ma=!0;this.b.trigger(dc.prototype.k.Cq,this);var b=this.b.trigger(dc.prototype.k.Em,this),a=this.b.trigger(dc.prototype.k.Mq,this);this.b.Ma=!1;if(b||a)this.Th[c.which]=!0,k||c.preventDefault()}};m.ul=function(c){this.eh[c.which]=!1;this.Md=c.which;this.b.Ma=!0;this.b.trigger(dc.prototype.k.Am,this);var k=this.b.trigger(dc.prototype.k.Gm,this),b=this.b.trigger(dc.prototype.k.Fm,this);this.b.Ma=
!1;if(k||b||this.Th[c.which])this.Th[c.which]=!0,c.preventDefault()};m.te=function(){var c;for(c=0;256>c;++c)if(this.eh[c]){this.eh[c]=!1;this.Md=c;this.b.trigger(dc.prototype.k.Am,this);var k=this.b.trigger(dc.prototype.k.Gm,this),b=this.b.trigger(dc.prototype.k.Fm,this);if(k||b)this.Th[c]=!0}};m.Za=function(){return{triggerKey:this.Md}};m.pb=function(c){this.Md=c.triggerKey};c.prototype.Em=function(c){return c===this.Md};c.prototype.Cq=function(){return!0};c.prototype.Am=function(){return!0};c.prototype.Gm=
function(c){return c===this.Md};c.prototype.Mq=function(c){return c===this.Md};c.prototype.Fm=function(c){return c===this.Md};q.k=new c;q.U=new function(){};q.Ja=new function(){}})();function ec(c){this.b=c}
(function(){function c(){}function q(){}var m=ec.prototype;m.ia=function(c){this.Da=c;this.b=c.b};m.ia.prototype.P=function(){};m.aa=function(c){this.type=c;this.b=c.b;this.wf=Array(4);this.Sp=this.Pj=this.rf=this.re=this.qe=0;this.Kk=!1};var n=m.aa.prototype;n.P=function(){var c=this;if(!this.b.Ba){jQuery(document).mousemove(function(a){c.yl(a)});jQuery(document).mousedown(function(a){c.xl(a)});jQuery(document).mouseup(function(a){c.zl(a)});jQuery(document).dblclick(function(a){c.ku(a)});var b=function(a){c.lu(a)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var u={left:0,top:0};n.yl=function(c){var b=this.b.Ba?u:jQuery(this.b.canvas).offset();this.qe=c.pageX-b.left;this.re=c.pageY-b.top};n.No=function(){return 0<this.b.ub?!0:0<=this.qe&&0<=this.re&&this.qe<this.b.width&&this.re<this.b.height};n.xl=function(c){this.No()&&(this.wf[c.which]=!0,this.b.Ma=!0,this.b.trigger(ec.prototype.k.Bq,this),this.rf=c.which-1,this.Pj=0,this.b.trigger(ec.prototype.k.Bm,this),
this.b.trigger(ec.prototype.k.Yj,this),this.b.Ma=!1)};n.zl=function(c){this.wf[c.which]&&(this.b.Ki&&!this.b.Bd&&c.preventDefault(),this.b.Ki=!0,this.wf[c.which]=!1,this.b.Ma=!0,this.rf=c.which-1,this.b.trigger(ec.prototype.k.Nm,this),this.b.Ma=!1)};n.ku=function(c){this.No()&&(c.preventDefault(),this.b.Ma=!0,this.rf=c.which-1,this.Pj=1,this.b.trigger(ec.prototype.k.Bm,this),this.b.trigger(ec.prototype.k.Yj,this),this.b.Ma=!1)};n.lu=function(c){this.Sp=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.Kk=!1;this.b.Ma=!0;this.b.trigger(ec.prototype.k.Tq,this);this.b.Ma=!1;this.Kk&&db(c)&&c.preventDefault()};n.te=function(){var c,b;c=0;for(b=this.wf.length;c<b;++c)this.wf[c]&&(this.wf[c]=!1,this.rf=c-1,this.b.trigger(ec.prototype.k.Nm,this))};c.prototype.Bm=function(c,b){return c===this.rf&&b===this.Pj};c.prototype.Bq=function(){return!0};c.prototype.Nm=function(c){return c===this.rf};c.prototype.Yj=function(c,b,a){return c!==this.rf||b!==this.Pj?!1:this.b.Ph(a,this.qe,this.re)};c.prototype.Tq=
function(c){this.Kk=!0;return c===this.Sp};m.k=new c;m.U=new function(){};q.prototype.Um=function(c,b){var a,p,m,d,h;fa(b)?(a=this.b.yd(0),p=a.scale,m=a.sb,d=a.Hb,h=a.n,a.scale=1,a.sb=1,a.Hb=1,a.n=0,c.B(a.Ia(this.qe,this.re,!0)),a.scale=p,a.sb=m,a.Hb=d,a.n=h):(a=ga(b)?this.b.yd(b):this.b.Kg(b))?c.B(a.Ia(this.qe,this.re,!0)):c.B(0)};q.prototype.Vm=function(c,b){var a,p,m,d,h;fa(b)?(a=this.b.yd(0),p=a.scale,m=a.sb,d=a.Ib,h=a.n,a.scale=1,a.sb=1,a.Ib=1,a.n=0,c.B(a.Ia(this.qe,this.re,!1)),a.scale=p,a.sb=
m,a.Ib=d,a.n=h):(a=ga(b)?this.b.yd(b):this.b.Kg(b))?c.B(a.Ia(this.qe,this.re,!1)):c.B(0)};m.Ja=new q})();function X(c){this.b=c}
(function(){function c(){if(0===this.nk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.hg?b.drawImage(this.$a,this.Yf,this.Zf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.$a,0,0,this.width,this.height);this.nk=a.toDataURL("image/png")}return this.nk}function q(){}function m(){}var n=X.prototype;n.ia=function(a){this.Da=a;this.b=a.b};var u=n.ia.prototype;u.P=function(){if(!this.S){var a,b,d,l,h,g,k,p,m;this.Fc=
[];this.Rg=!1;a=0;for(b=this.Pb.length;a<b;a++){h=this.Pb[a];k={};k.name=h[0];k.speed=h[1];k.loop=h[2];k.Rl=h[3];k.Sl=h[4];k.ep=h[5];k.T=h[6];k.frames=[];d=0;for(l=h[7].length;d<l;d++)g=h[7][d],p={},p.Op=g[0],p.Pp=g[1],p.Yf=g[2],p.Zf=g[3],p.width=g[4],p.height=g[5],p.duration=g[6],p.Tb=g[7],p.Ub=g[8],p.Pk=g[9],p.tj=g[10],p.fp=g[11],p.hg=0!==p.width,p.nk="",p.lw=c,m={left:0,top:0,right:1,bottom:1},p.dm=m,p.Qd=null,(m=this.b.Ys(g[0]))?p.$a=m:(p.$a=new Image,p.$a.Gr=g[0],p.$a.Fr=g[1],p.$a.Cr=null,this.b.$u(p.$a,
g[0])),k.frames.push(p),this.Fc.push(p);this.Pb[a]=k}}};u.bq=function(){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=this.j[a],c.pi=c.bb.Qd};u.wl=function(){if(!this.S){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],c.$a.Cr=null,c.Qd=null;this.Rg=!1;this.bq()}};u.Xo=function(){if(!this.S&&this.j.length){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],c.Qd=this.b.C.qo(c.$a,this.b.Ca,c.fp);this.bq()}};u.bu=function(){if(!this.S&&!this.Rg&&this.b.C){var a,b,c;a=0;for(b=this.Fc.length;a<
b;++a)c=this.Fc[a],c.Qd=this.b.C.qo(c.$a,this.b.Ca,c.fp);this.Rg=!0}};u.Yp=function(){if(!this.S&&!this.j.length&&this.Rg){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],this.b.C.deleteTexture(c.Qd),c.Qd=null;this.Rg=!1}};var k=[];u.kp=function(a){var b,c,d;S(k);b=0;for(c=this.Fc.length;b<c;++b)d=this.Fc[b].$a,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};n.aa=function(a){this.type=a;this.b=a.b;a=this.type.Pb[0].frames[0].tj;this.Jb?this.Y.Jh(a):this.Y=new Wa(a)};var b=n.aa.prototype;
b.P=function(){this.visible=0===this.G[0];this.Mi=this.Zg=!1;this.nd=0!==this.G[3];this.oa=this.Jn(this.G[1])||this.type.Pb[0];this.F=this.G[2];0>this.F&&(this.F=0);this.F>=this.oa.frames.length&&(this.F=this.oa.frames.length-1);var a=this.oa.frames[this.F];this.Y.Jh(a.tj);this.Tb=a.Tb;this.Ub=a.Ub;this.zf=this.oa.speed;this.be=this.oa.Sl;1===this.type.Pb.length&&1===this.type.Pb[0].frames.length||0===this.zf||(this.b.Nj(this),this.Zg=!0);this.Jb?this.Yc.reset():this.Yc=new Ua;this.wd=this.Yc.R;this.De=
!0;this.ld=0;this.Ce=!0;this.li=this.cn="";this.qn=0;this.ki=-1;this.type.bu();var b,c,d,h,g,k,p,a=0;for(b=this.type.Pb.length;a<b;a++)for(h=this.type.Pb[a],c=0,d=h.frames.length;c<d;c++)g=h.frames[c],0===g.width&&(g.width=g.$a.width,g.height=g.$a.height),g.hg&&(p=g.$a,k=g.dm,k.left=g.Yf/p.width,k.top=g.Zf/p.height,k.right=(g.Yf+g.width)/p.width,k.bottom=(g.Zf+g.height)/p.height,0===g.Yf&&0===g.Zf&&g.width===p.width&&g.height===p.height&&(g.hg=!1));this.bb=this.oa.frames[this.F];this.pi=this.bb.Qd};
b.Za=function(){var a={a:this.oa.T,f:this.F,cas:this.zf,fs:this.wd,ar:this.ld,at:this.Yc.R,rt:this.be};this.De||(a.ap=this.De);this.Ce||(a.af=this.Ce);return a};b.pb=function(a){var b=this.$s(a.a);b&&(this.oa=b);this.F=a.f;0>this.F&&(this.F=0);this.F>=this.oa.frames.length&&(this.F=this.oa.frames.length-1);this.zf=a.cas;this.wd=a.fs;this.ld=a.ar;this.Yc.reset();this.Yc.R=a.at;this.De=a.hasOwnProperty("ap")?a.ap:!0;this.Ce=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.be=a.rt:this.be=
this.oa.Sl;this.bb=this.oa.frames[this.F];this.pi=this.bb.Qd;this.Y.Jh(this.bb.tj);this.Tb=this.bb.Tb;this.Ub=this.bb.Ub};b.ak=function(a){this.F=a?0:this.oa.frames.length-1;this.De=!1;this.cn=this.oa.name;this.Mi=!0;this.b.trigger(X.prototype.k.Aq,this);this.b.trigger(X.prototype.k.zm,this);this.Mi=!1;this.ld=0};b.bi=function(){return this.Yc.R};b.Mb=function(){this.Yc.add(this.b.Pe(this));this.li.length&&this.wn();0<=this.ki&&this.xn();var a=this.Yc.R,b=this.oa,c=b.frames[this.F],d=c.duration/this.zf;
this.De&&a>=this.wd+d&&(this.Ce?this.F++:this.F--,this.wd+=d,this.F>=b.frames.length&&(b.ep?(this.Ce=!1,this.F=b.frames.length-2):b.loop?this.F=this.be:(this.ld++,this.ld>=b.Rl?this.ak(!1):this.F=this.be)),0>this.F&&(b.ep?(this.F=1,this.Ce=!0,b.loop||(this.ld++,this.ld>=b.Rl&&this.ak(!0))):b.loop?this.F=this.be:(this.ld++,this.ld>=b.Rl?this.ak(!0):this.F=this.be)),0>this.F?this.F=0:this.F>=b.frames.length&&(this.F=b.frames.length-1),a>this.wd+b.frames[this.F].duration/this.zf&&(this.wd=a),a=b.frames[this.F],
this.vf(c,a),this.b.W=!0)};b.Jn=function(a){var b,c,d;b=0;for(c=this.type.Pb.length;b<c;b++)if(d=this.type.Pb[b],cb(d.name,a))return d;return null};b.$s=function(a){var b,c,d;b=0;for(c=this.type.Pb.length;b<c;b++)if(d=this.type.Pb[b],d.T===a)return d;return null};b.wn=function(){var a=this.oa.frames[this.F],b=this.Jn(this.li);this.li="";!b||cb(b.name,this.oa.name)&&this.De||(this.oa=b,this.zf=b.speed,this.be=b.Sl,0>this.F&&(this.F=0),this.F>=this.oa.frames.length&&(this.F=this.oa.frames.length-1),
1===this.qn&&(this.F=0),this.De=!0,this.wd=this.Yc.R,this.Ce=!0,this.vf(a,this.oa.frames[this.F]),this.b.W=!0)};b.xn=function(){var a=this.oa.frames[this.F],b=this.F;this.F=I(this.ki);0>this.F&&(this.F=0);this.F>=this.oa.frames.length&&(this.F=this.oa.frames.length-1);b!==this.F&&(this.vf(a,this.oa.frames[this.F]),this.wd=this.Yc.R,this.b.W=!0);this.ki=-1};b.vf=function(a,b){var c=a.width,d=a.height,h=b.width,g=b.height;c!=h&&(this.width*=h/c);d!=g&&(this.height*=g/d);this.Tb=b.Tb;this.Ub=b.Ub;this.Y.Jh(b.tj);
this.D();this.bb=b;this.pi=b.Qd;c=0;for(d=this.J.length;c<d;c++)h=this.J[c],h.Yo&&h.Yo(a,b);this.b.trigger(X.prototype.k.vf,this)};b.td=function(a){a.globalAlpha=this.opacity;var b=this.bb,c=b.hg,d=b.$a,h=this.x,g=this.y,k=this.width,p=this.height;if(0===this.n&&0<=k&&0<=p)h-=this.Tb*k,g-=this.Ub*p,this.b.Gd&&(h=Math.round(h),g=Math.round(g)),c?a.drawImage(d,b.Yf,b.Zf,b.width,b.height,h,g,k,p):a.drawImage(d,h,g,k,p);else{this.b.Gd&&(h=Math.round(h),g=Math.round(g));a.save();var m=0<k?1:-1,n=0<p?1:
-1;a.translate(h,g);1===m&&1===n||a.scale(m,n);a.rotate(this.n*m*n);h=0-this.Tb*ja(k);g=0-this.Ub*ja(p);c?a.drawImage(d,b.Yf,b.Zf,b.width,b.height,h,g,ja(k),ja(p)):a.drawImage(d,h,g,ja(k),ja(p));a.restore()}};b.Cf=function(a){this.pc(a)};b.pc=function(a){a.kc(this.pi);a.eg(this.opacity);var b=this.bb,c=this.Bb;if(this.b.Gd){var d=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;b.hg?a.we(c.hb+d,c.ib+h,c.Nb+d,c.Ob+h,c.Cb+d,c.Db+h,c.zb+d,c.Ab+h,b.dm):a.Dh(c.hb+d,c.ib+h,c.Nb+d,c.Ob+h,c.Cb+d,c.Db+
h,c.zb+d,c.Ab+h)}else b.hg?a.we(c.hb,c.ib,c.Nb,c.Ob,c.Cb,c.Db,c.zb,c.Ab,b.dm):a.Dh(c.hb,c.ib,c.Nb,c.Ob,c.Cb,c.Db,c.zb,c.Ab)};b.et=function(a){var b=this.bb,c,d;c=0;for(d=b.Pk.length;c<d;c++)if(cb(a,b.Pk[c][0]))return c;return-1};b.Ek=function(a,b){var c=this.bb,d=c.Pk,h;G(a)?h=this.et(a):h=a-1;h=I(h);if(0>h||h>=d.length)return b?this.x:this.y;var g=(d[h][1]-c.Tb)*this.width,d=d[h][2],d=(d-c.Ub)*this.height,c=Math.cos(this.n);h=Math.sin(this.n);var k=g*c-d*h,d=d*c+g*h,g=k+this.x,d=d+this.y;return b?
g:d};var a=null,p=new ba,v=!1,d=[],h=new R(0,0,0,0);u.finish=function(b){if(v){if(b){var c=this.b.nb().fc.uc;b=a.ja();var d=p.Nd(),h,k;if(b.ua){b.ua=!1;S(b.j);h=0;for(k=d.length;h<k;++h)b.j[h]=d[h];if(c)for(S(b.N),h=0,k=a.j.length;h<k;++h)d=a.j[h],p.contains(d)||b.N.push(d)}else if(c)for(c=b.j.length,h=0,k=d.length;h<k;++h)b.j[c+h]=d[h],Ba(b.N,d[h]);else wa(b.j,d);a.Wd()}p.clear();v=!1}};q.prototype.xq=function(b){if(b){var c=!1,k,l,m,g=this.b.Ln(),n=g.type,g=g.Oi;k=b.ja();l=this.b.nb().fc.uc;var q;
k.ua?(this.fa(),h.yf(this.qa),h.offset(0,0),this.b.Kn(this.q,b,h,d),q=d):q=l?this.b.St()&&!k.N.length&&k.j.length?k.j:k.N:k.j;a=b;v=n!==b&&!g;k=0;for(l=q.length;k<l;k++)if(m=q[k],this.b.Ac(this,m)){c=!0;if(g)break;n!==b&&p.add(m)}S(d);b=c}else b=!1;return b};q.prototype.oq=function(a,b){return Sb(this.F,a,b)};q.prototype.zm=function(a){return cb(this.cn,a)};q.prototype.Aq=function(){return!0};q.prototype.vf=function(){return!0};n.k=new q;m.prototype.Zq=function(a,b){this.li=a;this.qn=b;this.Zg||(this.b.Nj(this),
this.Zg=!0);this.Mi||this.wn()};m.prototype.$q=function(a){this.ki=a;this.Zg||(this.b.Nj(this),this.Zg=!0);this.Mi||this.xn()};m.prototype.dr=function(a){a=ja(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.D())};n.U=new m;n.Ja=new function(){}})();function fc(c){this.b=c}
(function(){function c(){return a.length?a.pop():{}}function q(b){var c,d;c=0;for(d=b.length;c<d;c++)a.push(b[c]);S(b)}function m(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function n(){}var u=fc.prototype;u.P=function(){u.U.kr=function(a){this.width!==a&&(this.width=a,this.qf=!0,this.D())}};u.ia=function(a){this.Da=a;this.b=a.b};var k=u.ia.prototype;k.P=function(){};k.wl=function(){if(!this.S){var a,b,c;a=0;for(b=this.j.length;a<b;a++)c=this.j[a],c.dd=null,c.gf=null,
c.Wb=null}};u.aa=function(a){this.type=a;this.b=a.b;this.Jb?S(this.me):this.me=[];this.qf=!0};k=u.aa.prototype;k.P=function(){this.text=this.G[0];this.visible=0===this.G[1];this.font=this.G[2];this.color=this.G[3];this.Li=this.G[4];this.Uj=this.G[5];this.xm=0===this.G[7];this.fl=this.Wi=this.width;this.Vi=this.height;this.hl=this.G[8];this.Ei=this.Ef="";this.Mp=this.Np=this.Bh=0;this.ou();this.Wb=this.gf=this.dd=null;this.Po=!1;this.ih=this.b.Kd;this.Jb?this.ag.set(0,0,1,1):this.ag=new R(0,0,1,1);
this.b.C&&this.b.Nj(this)};k.ou=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Bh=parseInt(a[b].substr(0,a[b].length-2));this.Ll=Math.ceil(this.Bh/72*96)+4;0<b&&(this.Ei=a[b-1]);this.Ef=a[b+1];for(b+=2;b<a.length;b++)this.Ef+=" "+a[b];break}};k.Za=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Li,va:this.Uj,wr:this.xm,lho:this.hl,fn:this.Ef,fs:this.Ei,ps:this.Bh,pxh:this.Ll,tw:this.Np,th:this.Mp,lrt:this.ih}};k.pb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.Li=a.ha;this.Uj=a.va;this.xm=a.wr;this.hl=a.lho;this.Ef=a.fn;this.Ei=a.fs;this.Bh=a.ps;this.Ll=a.pxh;this.Np=a.tw;this.Mp=a.th;this.ih=a.lrt;this.qf=!0;this.fl=this.Wi=this.width;this.Vi=this.height};k.Mb=function(){if(this.b.C&&this.Wb&&300<=this.b.Kd-this.ih){var a=this.q;this.fa();var b=this.qa;if(b.right<a.da||b.bottom<a.ea||b.left>a.la||b.top>a.ka)this.b.C.deleteTexture(this.Wb),this.dd=this.gf=this.Wb=null}};k.jf=function(){this.dd=this.gf=null;this.b.C&&
this.Wb&&this.b.C.deleteTexture(this.Wb);this.Wb=null};k.bi=function(){this.font=this.Ei+" "+this.Bh.toString()+"pt "+this.Ef;this.qf=!0;this.b.W=!0};k.td=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.q.Sb()),a.save(),a.scale(c,c));if(this.qf||this.width!==this.fl)this.type.Da.nr(this.text,this.me,a,this.width,this.xm),this.qf=!1,this.fl=this.width;this.fa();var c=b?0:this.Bb.hb,h=b?0:this.Bb.ib;this.b.Gd&&(c=
c+.5|0,h=h+.5|0);0===this.n||b||(a.save(),a.translate(c,h),a.rotate(this.n),h=c=0);var f=h+this.height,e=this.Ll,e=e+this.hl,k,l;1===this.Uj?h+=Math.max(this.height/2-this.me.length*e/2,0):2===this.Uj&&(h+=Math.max(this.height-this.me.length*e-2,0));for(l=0;l<this.me.length&&!(k=c,1===this.Li?k=c+(this.width-this.me[l].width)/2:2===this.Li&&(k=c+(this.width-this.me[l].width)),a.fillText(this.me[l].text,k,h),h+=e,h>=f-e);l++);(0!==this.n||b)&&a.restore();this.ih=this.b.Kd};k.pc=function(a){if(!(1>
this.width||1>this.height)){var b=this.qf||this.Po;this.Po=!1;var c=this.q.Sb(),h=this.q.Rb(),f=this.ag,e=c*this.width,k=c*this.height,l=Math.ceil(e),m=Math.ceil(k),g=Math.abs(l),n=Math.abs(m),q=this.b.I/2,u=this.b.H/2;this.gf||(this.dd=document.createElement("canvas"),this.dd.width=g,this.dd.height=n,this.Wi=g,this.Vi=n,b=!0,this.gf=this.dd.getContext("2d"));if(g!==this.Wi||n!==this.Vi)this.dd.width=g,this.dd.height=n,this.Wb&&(a.deleteTexture(this.Wb),this.Wb=null),b=!0;b&&(this.gf.clearRect(0,
0,g,n),this.td(this.gf,!0),this.Wb||(this.Wb=a.ec(g,n,this.b.Ca,this.b.Bd)),a.Zu(this.dd,this.Wb,this.b.Bd));this.Wi=g;this.Vi=n;a.kc(this.Wb);a.eg(this.opacity);a.wc();a.translate(-q,-u);a.mc();var A=this.Bb,b=this.q.ta(A.hb,A.ib,!0,!0),g=this.q.ta(A.hb,A.ib,!1,!0),n=this.q.ta(A.Nb,A.Ob,!0,!0),q=this.q.ta(A.Nb,A.Ob,!1,!0),u=this.q.ta(A.Cb,A.Db,!0,!0),P=this.q.ta(A.Cb,A.Db,!1,!0),T=this.q.ta(A.zb,A.Ab,!0,!0),A=this.q.ta(A.zb,A.Ab,!1,!0);if(this.b.Gd||0===this.n&&0===h)var F=(b+.5|0)-b,B=(g+.5|0)-
g,b=b+F,g=g+B,n=n+F,q=q+B,u=u+F,P=P+B,T=T+F,A=A+B;0===this.n&&0===h?(n=b+l,q=g,u=n,P=g+m,T=b,A=P,f.right=1,f.bottom=1):(f.right=e/l,f.bottom=k/m);a.we(b,g,n,q,u,P,T,A,f);a.wc();a.scale(c,c);a.yj(-this.q.Rb());a.translate((this.q.da+this.q.la)/-2,(this.q.ea+this.q.ka)/-2);a.mc();this.ih=this.b.Kd}};var b=[];u.mr=function(a){S(b);for(var c="",d,h=0;h<a.length;)if(d=a.charAt(h),"\n"===d)c.length&&(b.push(c),c=""),b.push("\n"),++h;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(h),h++;while(h<a.length&&
(" "===a.charAt(h)||"\t"===a.charAt(h)));b.push(c);c=""}else h<a.length&&(c+=d,h++);c.length&&b.push(c)};var a=[];u.nr=function(a,b,d,h,f){if(a&&a.length)if(2>=h)q(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var e=d.measureText(a).width;if(e<=h){q(b);b.push(c());b[0].text=a;b[0].width=e;return}}this.or(a,b,d,h,f)}else q(b)};u.or=function(k,n,d,h,f){f&&(this.mr(k),k=b);var e="",r,l,q,g=0;for(q=0;q<k.length;q++)"\n"===k[q]?(g>=n.length&&n.push(c()),e=m(e),l=n[g],l.text=e,l.width=d.measureText(e).width,
g++,e=""):(r=e,e+=k[q],l=d.measureText(e).width,l>=h&&(g>=n.length&&n.push(c()),r=m(r),l=n[g],l.text=r,l.width=d.measureText(r).width,g++,e=k[q],f||" "!==e||(e="")));e.length&&(g>=n.length&&n.push(c()),e=m(e),l=n[g],l.text=e,l.width=d.measureText(e).width,g++);for(q=g;q<n.length;q++)a.push(n[q]);n.length=g};u.k=new function(){};n.prototype.ir=function(a){ga(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.qf=!0,this.b.W=!0)};u.U=new n;u.Ja=new function(){}})();
function Y(c){this.b=c}
(function(){function c(a){p=a.x;v=a.y;d=a.z}function q(a,b,c,d){var e;e=h.length?h.pop():new m;e.init(a,b,c,d);return e}function m(){this.Nh=this.id=this.y=this.x=this.Ij=this.Hj=this.el=this.time=this.hm=0;this.Sh=this.Qj=!1}function n(){}function u(){}var k=Y.prototype;k.ia=function(a){this.Da=a;this.b=a.b};k.ia.prototype.P=function(){};k.aa=function(a){this.type=a;this.b=a.b;this.touches=[];this.pl=!1};var b=k.aa.prototype,a={left:0,top:0};b.Jg=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var p=0,v=0,d=0,h=[];m.prototype.init=function(a,b,c,d){var e=Qa();this.hm=this.el=this.time=e;this.Hj=a;this.Ij=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Nh=d;this.Sh=this.Qj=!1};m.prototype.update=function(a,b,c,d,e,f){this.el=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Sh&&15<=Ma(this.Hj,this.Ij,this.x,this.y)&&(this.Sh=!0)};m.prototype.eu=function(a,b){!this.Qj&&500<=
Qa()-this.hm&&!this.Sh&&15>Ma(this.Hj,this.Ij,this.x,this.y)&&(this.Qj=!0,a.jd=this.Nh,a.mg=this.id,a.If=b,a.b.trigger(Y.prototype.k.Jq,a),a.qd=this.x,a.rd=this.y,a.b.trigger(Y.prototype.k.Kq,a),a.If=0)};var f=-1E3,e=-1E3,r=-1E4;m.prototype.Jo=function(a,b){if(!this.Qj){var c=Qa();333>=c-this.hm&&!this.Sh&&15>Ma(this.Hj,this.Ij,this.x,this.y)&&(a.jd=this.Nh,a.mg=this.id,a.If=b,666>=c-r&&25>Ma(f,e,this.x,this.y)?(a.b.trigger(Y.prototype.k.Fq,a),a.qd=this.x,a.rd=this.y,a.b.trigger(Y.prototype.k.Gq,
a),e=f=-1E3,r=-1E4):(a.b.trigger(Y.prototype.k.Pq,a),a.qd=this.x,a.rd=this.y,a.b.trigger(Y.prototype.k.Qq,a),f=this.x,e=this.y,r=c),a.If=0)}};b.P=function(){this.Wt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.If=this.mg=this.jd=this.rd=this.qd=this.Ym=this.Xm=this.Wm=this.rr=this.qr=this.pr=this.qj=this.pj=this.oj=0;this.Xu=0!==this.G[0];var a=0<this.b.ub?document:this.b.canvas,b=document;this.b.ie?b=a=window.Canvas:this.b.qc&&(b=a=window);var d=this;"undefined"!==typeof PointerEvent?
(a.addEventListener("pointerdown",function(a){d.Wo(a)},!1),a.addEventListener("pointermove",function(a){d.Vo(a)},!1),b.addEventListener("pointerup",function(a){d.nj(a,!1)},!1),b.addEventListener("pointercancel",function(a){d.nj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",
function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){d.Wo(a)},!1),a.addEventListener("MSPointerMove",function(a){d.Vo(a)},!1),b.addEventListener("MSPointerUp",function(a){d.nj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){d.nj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",
function(a){d.$o(a)},!1),a.addEventListener("touchmove",function(a){d.Zo(a)},!1),b.addEventListener("touchend",function(a){d.Al(a,!1)},!1),b.addEventListener("touchcancel",function(a){d.Al(a,!0)},!1));if(this.Wt){var e=function(a){a=a.reading;d.Wm=a.accelerationX;d.Xm=a.accelerationY;d.Ym=a.accelerationZ},f=function(a){a=a.reading;d.oj=a.yawDegrees;d.pj=a.pitchDegrees;d.qj=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),
h.addEventListener("readingchanged",e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",f)):(h&&h.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",
function(a){d.oj=a.alpha||0;d.pj=a.beta||0;d.qj=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(d.pr=a.accelerationIncludingGravity.x||0,d.qr=a.accelerationIncludingGravity.y||0,d.rr=a.accelerationIncludingGravity.z||0);a.acceleration&&(d.Wm=a.acceleration.x||0,d.Xm=a.acceleration.y||0,d.Ym=a.acceleration.z||0)},!1);this.Xu&&!this.b.Ba&&(jQuery(document).mousemove(function(a){d.yl(a)}),jQuery(document).mousedown(function(a){d.xl(a)}),jQuery(document).mouseup(function(a){d.zl(a)}));
!this.b.Ti&&this.b.rc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(c,null,{frequency:40});this.b.Qu(this)};b.Vo=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.Jg(b.pointerId),d=Qa();if(0<=c){var e=this.b.Ba?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,b.pageX-e.left,b.pageY-e.top,b.width||0,b.height||0,b.pressure||0)}}};b.Wo=
function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&db(b)&&b.preventDefault();var c=this.b.Ba?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;Qa();this.jd=this.touches.length;this.mg=b.pointerId;this.touches.push(q(d,c,b.pointerId,this.jd));this.b.Ma=!0;this.b.trigger(Y.prototype.k.Mm,this);this.b.trigger(Y.prototype.k.Sm,this);this.qd=d;this.rd=c;this.b.trigger(Y.prototype.k.Rm,this);this.b.Ma=!1}};b.nj=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var c=this.Jg(a.pointerId);this.jd=0<=c?this.touches[c].Nh:-1;this.mg=0<=c?this.touches[c].id:-1;this.b.Ma=!0;this.b.trigger(Y.prototype.k.Lm,this);this.b.trigger(Y.prototype.k.Qm,this);0<=c&&(b||this.touches[c].Jo(this,c),100>h.length&&h.push(this.touches[c]),this.touches.splice(c,1));this.b.Ma=!1}};b.Zo=function(b){b.preventDefault&&b.preventDefault();var c=Qa(),d,e,f,h;d=0;for(e=b.changedTouches.length;d<
e;d++)if(f=b.changedTouches[d],h=this.Jg(f.identifier),0<=h){var k=this.b.Ba?a:jQuery(this.b.canvas).offset();h=this.touches[h];2>c-h.time||h.update(c,f.pageX-k.left,f.pageY-k.top,2*(f.yw||f.Hw||f.rw||f.vw||0),2*(f.zw||f.Iw||f.sw||f.ww||0),f.jw||f.Gw||f.qw||f.uw||0)}};b.$o=function(b){b.preventDefault&&db(b)&&b.preventDefault();var c=this.b.Ba?a:jQuery(this.b.canvas).offset();Qa();this.b.Ma=!0;var d,e,f,h;d=0;for(e=b.changedTouches.length;d<e;d++)if(f=b.changedTouches[d],h=this.Jg(f.identifier),-1===
h){h=f.pageX-c.left;var k=f.pageY-c.top;this.jd=this.touches.length;this.mg=f.identifier;this.touches.push(q(h,k,f.identifier,this.jd));this.b.trigger(Y.prototype.k.Mm,this);this.b.trigger(Y.prototype.k.Sm,this);this.qd=h;this.rd=k;this.b.trigger(Y.prototype.k.Rm,this)}this.b.Ma=!1};b.Al=function(a,b){a.preventDefault&&db(a)&&a.preventDefault();this.b.Ma=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Jg(e.identifier),0<=e&&(this.jd=this.touches[e].Nh,this.mg=this.touches[e].id,
this.b.trigger(Y.prototype.k.Lm,this),this.b.trigger(Y.prototype.k.Qm,this),b||this.touches[e].Jo(this,e),100>h.length&&h.push(this.touches[e]),this.touches.splice(e,1));this.b.Ma=!1};b.bi=function(){return this.b.rc&&0===this.oj&&0!==d?90*d:this.oj};b.iw=function(){return this.b.rc&&0===this.pj&&0!==v?90*v:this.pj};b.pw=function(){return this.b.rc&&0===this.qj&&0!==p?90*p:this.qj};b.xl=function(a){this.$o({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.pl=!0};b.yl=function(a){this.pl&&
this.Zo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.zl=function(a){a.preventDefault&&this.b.Ki&&!this.b.Bd&&a.preventDefault();this.b.Ki=!0;this.Al({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.pl=!1};b.kg=function(){var a,b,c,d=Qa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.el=d),c.eu(this,a)};n.prototype.Sm=function(){return!0};n.prototype.Qm=function(){return!0};n.prototype.Rm=function(a){return a?this.b.Ph(a,this.qd,this.rd):
!1};n.prototype.Mm=function(a){a=Math.floor(a);return a===this.jd};n.prototype.Lm=function(a){a=Math.floor(a);return a===this.jd};n.prototype.Jq=function(){return!0};n.prototype.Pq=function(){return!0};n.prototype.Fq=function(){return!0};n.prototype.Kq=function(a){return a?this.b.Ph(a,this.qd,this.rd):!1};n.prototype.Qq=function(a){return a?this.b.Ph(a,this.qd,this.rd):!1};n.prototype.Gq=function(a){return a?this.b.Ph(a,this.qd,this.rd):!1};k.k=new n;u.prototype.Um=function(a,b){var c=this.If;if(0>
c||c>=this.touches.length)a.B(0);else{var d,e,f,h,k;fa(b)?(d=this.b.yd(0),e=d.scale,f=d.sb,h=d.Hb,k=d.n,d.scale=1,d.sb=1,d.Hb=1,d.n=0,a.B(d.Ia(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.sb=f,d.Hb=h,d.n=k):(d=ga(b)?this.b.yd(b):this.b.Kg(b))?a.B(d.Ia(this.touches[c].x,this.touches[c].y,!0)):a.B(0)}};u.prototype.Vm=function(a,b){var c=this.If;if(0>c||c>=this.touches.length)a.B(0);else{var d,e,f,h,k;fa(b)?(d=this.b.yd(0),e=d.scale,f=d.sb,h=d.Ib,k=d.n,d.scale=1,d.sb=1,d.Ib=1,d.n=0,a.B(d.Ia(this.touches[c].x,
this.touches[c].y,!1)),d.scale=e,d.sb=f,d.Ib=h,d.n=k):(d=ga(b)?this.b.yd(b):this.b.Kg(b))?a.B(d.Ia(this.touches[c].x,this.touches[c].y,!1)):a.B(0)}};k.Ja=new u})();function gc(c){this.b=c}
(function(){function c(){}function q(){}var m=gc.prototype;m.ia=function(c){this.behavior=c;this.b=c.b};m.ia.prototype.P=function(){};m.aa=function(c,k){this.type=c;this.behavior=c.behavior;this.e=k;this.b=c.b};var n=m.aa.prototype;n.P=function(){this.Zm=1===this.G[0];this.Hg=this.G[1];this.Xh=this.G[2];this.xi=this.G[3];this.Lr=this.G[4];this.lc=this.Zm?0:3;this.Jb?this.yc.reset():this.yc=new Ua;this.ff=this.e.opacity?this.e.opacity:1;this.Zm&&(0===this.Hg?(this.lc=1,0===this.Xh&&(this.lc=2)):(this.e.opacity=
0,this.b.W=!0))};n.Za=function(){return{fit:this.Hg,wt:this.Xh,fot:this.xi,s:this.lc,st:this.yc.R,mo:this.ff}};n.pb=function(c){this.Hg=c.fit;this.Xh=c.wt;this.xi=c.fot;this.lc=c.s;this.yc.reset();this.yc.R=c.st;this.ff=c.mo};n.Mb=function(){this.yc.add(this.b.Pe(this.e));0===this.lc&&(this.e.opacity=this.yc.R/this.Hg*this.ff,this.b.W=!0,this.e.opacity>=this.ff&&(this.e.opacity=this.ff,this.lc=1,this.yc.reset(),this.b.trigger(gc.prototype.k.Hq,this.e)));1===this.lc&&this.yc.R>=this.Xh&&(this.lc=2,
this.yc.reset(),this.b.trigger(gc.prototype.k.Sq,this.e));2===this.lc&&0!==this.xi&&(this.e.opacity=this.ff-this.yc.R/this.xi*this.ff,this.b.W=!0,0>this.e.opacity&&(this.e.opacity=0,this.lc=3,this.yc.reset(),this.b.trigger(gc.prototype.k.Iq,this.e),1===this.Lr&&this.b.Be(this.e)))};n.as=function(){this.lc=0;this.yc.reset();0===this.Hg?(this.lc=1,0===this.Xh&&(this.lc=2)):(this.e.opacity=0,this.b.W=!0)};c.prototype.Iq=function(){return!0};c.prototype.Hq=function(){return!0};c.prototype.Sq=function(){return!0};
m.k=new c;q.prototype.Vq=function(){this.as()};m.U=new q;m.Ja=new function(){}})();function hc(c){this.b=c}
(function(){var c=hc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.aa=function(c,n){this.type=c;this.behavior=c.behavior;this.e=n;this.b=c.b};var q=c.aa.prototype;q.P=function(){this.Ya=null;this.sj=-1;this.mode=this.fh=this.jm=this.uh=this.ve=this.rj=0;var c=this;this.Jb||(this.sh=function(n){c.sl(n)});this.b.an(this.sh)};q.Za=function(){return{uid:this.Ya?this.Ya.uid:-1,pa:this.rj,pd:this.ve,msa:this.uh,tsa:this.jm,lka:this.fh,m:this.mode}};q.pb=function(c){this.sj=
c.uid;this.rj=c.pa;this.ve=c.pd;this.uh=c.msa;this.jm=c.tsa;this.fh=c.lka;this.mode=c.m};q.kd=function(){-1===this.sj?this.Ya=null:this.Ya=this.b.Lg(this.sj);this.sj=-1};q.sl=function(c){this.Ya==c&&(this.Ya=null)};q.jf=function(){this.Ya=null;this.b.pp(this.sh)};q.Mb=function(){};q.kg=function(){if(this.Ya){this.fh!==this.e.n&&(this.uh=Fa(this.uh+(this.e.n-this.fh)));var c=this.e.x,n=this.e.y;if(3===this.mode||4===this.mode){var q=Ma(this.e.x,this.e.y,this.Ya.x,this.Ya.y);if(q>this.ve||4===this.mode&&
q<this.ve)n=Ia(this.Ya.x,this.Ya.y,this.e.x,this.e.y),c=this.Ya.x+Math.cos(n)*this.ve,n=this.Ya.y+Math.sin(n)*this.ve}else c=this.Ya.x+Math.cos(this.Ya.n+this.rj)*this.ve,n=this.Ya.y+Math.sin(this.Ya.n+this.rj)*this.ve;this.fh=q=Fa(this.uh+(this.Ya.n-this.jm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.e.x===c&&this.e.y===n||(this.e.x=c,this.e.y=n,this.e.D());0!==this.mode&&2!==this.mode||this.e.n===q||(this.e.n=q,this.e.D())}};c.k=new function(){};c.U=new function(){};c.Ja=
new function(){}})();function ic(c){this.b=c}
(function(){function c(){}function q(){}function m(){}var n=ic.prototype;n.ia=function(c){this.behavior=c;this.b=c.b};n.ia.prototype.P=function(){};n.aa=function(c,b){this.type=c;this.behavior=c.behavior;this.e=b;this.b=c.b;this.Ej=this.fm=this.em=this.Ok=this.yg=this.Dg=this.Pf=this.Qf=this.Gh=this.jh=!1;this.Fb=null;this.il=-1;this.Ye=this.Xe=0;this.Di=!1;this.Ff=this.Gc=0;this.Ci=!0;this.Z=this.K=0};var u=n.aa.prototype;u.rm=function(){this.Ua=Math.cos(this.fe);this.Va=Math.sin(this.fe);this.kf=
Math.cos(this.fe-Math.PI/2);this.lf=Math.sin(this.fe-Math.PI/2);this.Ua=bb(this.Ua);this.Va=bb(this.Va);this.kf=bb(this.kf);this.lf=bb(this.lf);this.Ak=this.xd;0>this.xd&&(this.Ua*=-1,this.Va*=-1,this.xd=Math.abs(this.xd))};u.P=function(){this.Xf=this.G[0];this.Dc=this.G[1];this.Bf=this.G[2];this.dh=this.G[3];this.Ak=this.xd=this.G[4];this.hj=this.G[5];this.qk=0!==this.G[6];this.bl=this.G[7]/1E3;this.Jr=1===this.G[8];this.enabled=0!==this.G[9];this.rg=!1;this.sg=this.b.ze(this.e);this.jl=-1;this.pf=
0;this.fe=U(90);this.rm();var c=this;this.Jr&&!this.b.Ba&&(jQuery(document).keydown(function(b){c.tl(b)}),jQuery(document).keyup(function(b){c.ul(b)}));this.Jb||(this.sh=function(b){c.sl(b)});this.b.an(this.sh);this.e.ca.isPlatformBehavior=!0};u.Za=function(){return{ii:this.Ok,lfx:this.Xe,lfy:this.Ye,lfo:this.Fb?this.Fb.uid:-1,am:this.Gc,en:this.enabled,fall:this.Ff,ft:this.Ci,dx:this.K,dy:this.Z,ms:this.Xf,acc:this.Dc,dec:this.Bf,js:this.dh,g:this.xd,g1:this.Ak,mf:this.hj,wof:this.rg,woj:this.sg?
this.sg.uid:-1,ga:this.fe,edj:this.qk,cdj:this.yg,dj:this.Dg,sus:this.bl}};u.pb=function(c){this.Ok=c.ii;this.Xe=c.lfx;this.Ye=c.lfy;this.il=c.lfo;this.Gc=c.am;this.enabled=c.en;this.Ff=c.fall;this.Ci=c.ft;this.K=c.dx;this.Z=c.dy;this.Xf=c.ms;this.Dc=c.acc;this.Bf=c.dec;this.dh=c.js;this.xd=c.g;this.Ak=c.g1;this.hj=c.mf;this.rg=c.wof;this.jl=c.woj;this.fe=c.ga;this.qk=c.edj;this.yg=c.cdj;this.Dg=c.dj;this.bl=c.sus;this.Ej=this.fm=this.em=this.Pf=this.Qf=this.Gh=this.jh=!1;this.pf=0;this.rm()};u.kd=
function(){-1===this.il?this.Fb=null:this.Fb=this.b.Lg(this.il);-1===this.jl?this.sg=null:this.sg=this.b.Lg(this.jl)};u.sl=function(c){this.Fb==c&&(this.Fb=null)};u.jf=function(){this.Fb=null;this.b.pp(this.sh)};u.tl=function(c){switch(c.which){case 38:c.preventDefault();this.Qf=!0;break;case 37:c.preventDefault();this.jh=!0;break;case 39:c.preventDefault(),this.Gh=!0}};u.ul=function(c){switch(c.which){case 38:c.preventDefault();this.Pf=this.Qf=!1;break;case 37:c.preventDefault();this.jh=!1;break;
case 39:c.preventDefault(),this.Gh=!1}};u.te=function(){this.Qf=this.Gh=this.jh=!1};u.bi=function(){return 0>this.xd?-1:1};u.ao=function(){var c=null,b=null,a,m;a=this.e.x;m=this.e.y;this.e.x+=this.Ua;this.e.y+=this.Va;this.e.D();if(this.Fb&&this.b.Ac(this.e,this.Fb))return this.e.x=a,this.e.y=m,this.e.D(),this.Fb;(c=this.b.$b(this.e))||0!==this.Ff||(b=this.b.ze(this.e,!0));this.e.x=a;this.e.y=m;this.e.D();if(c){if(this.b.Ac(this.e,c))return null;this.Di=!1;return c}if(b&&b.length){m=c=0;for(a=b.length;c<
a;c++)b[m]=b[c],this.b.Ac(this.e,b[c])||m++;if(1<=m)return this.Di=!0,b[0]}return null};u.Mb=function(){};u.jp=function(){var c=this.b.Pe(this.e),b,a,m,n,d,h,f,e,r;this.Qf||this.Ej||(this.Pf=!1);var l=this.jh||this.em;m=this.Gh||this.fm;var q=(n=this.Qf||this.Ej)&&!this.Pf;this.Ej=this.fm=this.em=!1;if(this.enabled){this.Ok&&(q=n=m=l=!1);n||(this.pf=0);e=this.Fb;r=!1;this.Ci&&((this.b.$b(this.e)||this.b.ze(this.e))&&this.b.Sc(this.e,-this.Ua,-this.Va,4,!0),this.Ci=!1);!e||0!==this.Z||e.y===this.Ye&&
e.x===this.Xe||(b=e.x-this.Xe,a=e.y-this.Ye,this.e.x+=b,this.e.y+=a,this.e.D(),this.Xe=e.x,this.Ye=e.y,r=!0,this.b.$b(this.e)&&this.b.Sc(this.e,-b,-a,2.5*Math.sqrt(b*b+a*a)));var g=this.ao();if(a=this.b.$b(this.e))if(this.e.ca.inputPredicted)this.b.Sc(this.e,-this.Ua,-this.Va,10,!1);else if(this.b.yu(this.e,Math.max(this.e.width,this.e.height)/2))this.b.Fh(this.e,a);else return;g?(this.yg=this.Dg=!1,0<this.Z&&(this.rg||(this.b.Kl(this.e,-this.Ua,-this.Va,g),this.rg=!0),this.Z=0),e!=g)?(this.Fb=g,
this.Xe=g.x,this.Ye=g.y,this.b.Fh(this.e,g)):r&&(a=this.b.$b(this.e))&&(this.b.Fh(this.e,a),0!==b&&(0<b?this.b.Sc(this.e,-this.kf,-this.lf):this.b.Sc(this.e,this.kf,this.lf)),this.b.Sc(this.e,-this.Ua,-this.Va)):n||(this.yg=!0);if(g&&q||!g&&this.qk&&n&&this.yg&&!this.Dg)e=this.e.x,r=this.e.y,this.e.x-=this.Ua,this.e.y-=this.Va,this.e.D(),this.b.$b(this.e)?q=!1:(this.pf=this.bl,this.b.trigger(ic.prototype.k.Lq,this.e),this.Gc=2,this.Z=-this.dh,q=!0,g?this.Pf=!0:this.Dg=!0),this.e.x=e,this.e.y=r,this.e.D();
g||(n&&0<this.pf?(this.Z=-this.dh,this.pf-=c):(this.Fb=null,this.Z+=this.xd*c,this.Z>this.hj&&(this.Z=this.hj)),q&&(this.Pf=!0));this.rg=!!g;l==m&&(0>this.K?(this.K+=this.Bf*c,0<this.K&&(this.K=0)):0<this.K&&(this.K-=this.Bf*c,0>this.K&&(this.K=0)));l&&!m&&(this.K=0<this.K?this.K-(this.Dc+this.Bf)*c:this.K-this.Dc*c);m&&!l&&(this.K=0>this.K?this.K+(this.Dc+this.Bf)*c:this.K+this.Dc*c);this.K>this.Xf?this.K=this.Xf:this.K<-this.Xf&&(this.K=-this.Xf);l=!1;0!==this.K&&(e=this.e.x,r=this.e.y,b=this.K*
c*this.kf,a=this.K*c*this.lf,this.e.x+=this.kf*(1<this.K?1:-1)-this.Ua,this.e.y+=this.lf*(1<this.K?1:-1)-this.Va,this.e.D(),n=!1,d=this.b.$b(this.e),this.e.x=e+b,this.e.y=r+a,this.e.D(),m=this.b.$b(this.e),!m&&g&&(m=this.b.ze(this.e))&&(this.e.x=e,this.e.y=r,this.e.D(),this.b.Ac(this.e,m)?(m=null,n=!1):n=!0,this.e.x=e+b,this.e.y=r+a,this.e.D()),m?(b=Math.abs(this.K*c)+2,d||!this.b.Sc(this.e,-this.Ua,-this.Va,b,n,m))?(this.b.Fh(this.e,m),b=Math.max(Math.abs(this.K*c*2.5),30),this.b.Sc(this.e,this.kf*
(0>this.K?1:-1),this.lf*(0>this.K?1:-1),b,!1)?!g||n||this.Di||(e=this.e.x,r=this.e.y,this.e.x+=this.Ua,this.e.y+=this.Va,this.b.$b(this.e)?this.b.Sc(this.e,-this.Ua,-this.Va,3,!1)||(this.e.x=e,this.e.y=r,this.e.D()):(this.e.x=e,this.e.y=r,this.e.D())):(this.e.x=e,this.e.y=r,this.e.D()),n||(this.K=0)):!d&&!q&&Math.abs(this.Z)<Math.abs(this.dh/4)&&(this.Z=0,g||(l=!0)):(e=this.ao(),g&&!e?(a=Math.ceil(Math.abs(this.K*c))+2,e=this.e.x,r=this.e.y,this.e.x+=this.Ua*a,this.e.y+=this.Va*a,this.e.D(),this.b.$b(this.e)||
this.b.ze(this.e)?this.b.Sc(this.e,-this.Ua,-this.Va,a+2,!0):(this.e.x=e,this.e.y=r,this.e.D())):e&&0===this.Z&&this.b.Kl(this.e,-this.Ua,-this.Va,e)));if(0!==this.Z){e=this.e.x;r=this.e.y;this.e.x+=this.Z*c*this.Ua;this.e.y+=this.Z*c*this.Va;b=this.e.x;m=this.e.y;this.e.D();a=this.b.$b(this.e);n=!1;if(!a&&0<this.Z&&!g){if((n=0<this.Ff?null:this.b.ze(this.e,!0))&&n.length){if(this.sg){this.e.x=e;this.e.y=r;this.e.D();f=d=0;for(h=n.length;d<h;d++)n[f]=n[d],this.b.Ac(this.e,n[d])||f++;n.length=f;this.e.x=
b;this.e.y=m;this.e.D()}1<=n.length&&(a=n[0])}n=!!a}a&&(this.b.Fh(this.e,a),this.pf=0,b=n?Math.abs(this.Z*c*2.5+10):Math.max(Math.abs(this.Z*c*2.5+10),30),this.b.Sc(this.e,this.Ua*(0>this.Z?1:-1),this.Va*(0>this.Z?1:-1),b,n,a)?(this.Fb=a,this.Xe=a.x,this.Ye=a.y,(this.Di=n)&&(l=!0),this.Z=0):(this.e.x=e,this.e.y=r,this.e.D(),this.rg=!0,n||(this.Z=0)))}3!==this.Gc&&0<this.Z&&!g&&(this.b.trigger(ic.prototype.k.Dm,this.e),this.Gc=3);if(g||l)3===this.Gc||l||q&&0===this.Z?(this.b.trigger(ic.prototype.k.Hm,
this.e),this.Gc=0===this.K&&0===this.Z?0:1):(0!==this.Gc&&0===this.K&&0===this.Z&&(this.b.trigger(ic.prototype.k.Pm,this.e),this.Gc=0),1===this.Gc||0===this.K&&0===this.Z||q||(this.b.trigger(ic.prototype.k.Km,this.e),this.Gc=1));0<this.Ff&&this.Ff--;this.sg=this.b.ze(this.e)}};c.prototype.Lq=function(){return!0};c.prototype.Dm=function(){return!0};c.prototype.Pm=function(){return!0};c.prototype.Km=function(){return!0};c.prototype.Hm=function(){return!0};n.k=new c;q.prototype.br=function(c){c=U(c);
c=Fa(c);this.fe!==c&&(this.fe=c,this.rm(),this.Fb=null)};n.U=new q;m.prototype.Tm=function(c){c.B(Math.sqrt(this.K*this.K+this.Z*this.Z))};n.Ja=new m})();function jc(c){this.b=c}
(function(){function c(){}function q(){}var m=jc.prototype;m.ia=function(c){this.behavior=c;this.b=c.b};m.ia.prototype.P=function(){};m.aa=function(c,k){this.type=c;this.behavior=c.behavior;this.e=k;this.b=c.b};var n=m.aa.prototype;n.P=function(){this.speed=U(this.G[0]);this.Dc=U(this.G[1])};n.Za=function(){return{speed:this.speed,acc:this.Dc}};n.pb=function(c){this.speed=c.speed;this.Dc=c.acc};n.Mb=function(){var c=this.b.Pe(this.e);0!==c&&(0!==this.Dc&&(this.speed+=this.Dc*c),0!==this.speed&&(this.e.n=
Fa(this.e.n+this.speed*c),this.e.D()))};m.k=new function(){};c.prototype.hr=function(c){this.speed=U(c)};m.U=new c;q.prototype.Tm=function(c){c.B(Da(this.speed))};m.Ja=new q})();function kc(c){this.b=c}
(function(){function c(){}function q(){}var m=kc.prototype;m.ia=function(a){this.behavior=a;this.b=a.b};m.ia.prototype.P=function(){};m.aa=function(a,b){this.type=a;this.behavior=a.behavior;this.e=b;this.b=a.b;this.Ka=0};var n=m.aa.prototype,u=2*Math.PI,k=Math.PI/2,b=3*Math.PI/2;n.P=function(){this.ab=1===this.G[0];this.rh=this.G[1];this.wm=this.G[2];this.Oc=this.G[3];this.Oc+=Math.random()*this.G[4];0===this.Oc?this.Ka=0:(this.Ka=this.G[5]/this.Oc*u,this.Ka+=Math.random()*this.G[6]/this.Oc*u);this.Gb=
this.G[7];this.Gb+=Math.random()*this.G[8];this.Eh=this.Se=this.V=0;this.init()};n.Za=function(){return{i:this.Ka,a:this.ab,mv:this.rh,w:this.wm,p:this.Oc,mag:this.Gb,iv:this.V,iv2:this.Se,r:this.Eh,lkv:this.Vb,lkv2:this.gh}};n.pb=function(a){this.Ka=a.i;this.ab=a.a;this.rh=a.mv;this.wm=a.w;this.Oc=a.p;this.Gb=a.mag;this.V=a.iv;this.Se=a.iv2||0;this.Eh=a.r;this.Vb=a.lkv;this.gh=a.lkv2||0};n.init=function(){switch(this.rh){case 0:this.V=this.e.x;break;case 1:this.V=this.e.y;break;case 2:this.V=this.e.width;
this.Eh=this.e.height/this.e.width;break;case 3:this.V=this.e.width;break;case 4:this.V=this.e.height;break;case 5:this.V=this.e.n;this.Gb=U(this.Gb);break;case 6:this.V=this.e.opacity;break;case 7:this.V=0;break;case 8:this.V=this.e.x,this.Se=this.e.y}this.Vb=this.V;this.gh=this.Se};n.Pd=function(a){a=a%u;switch(this.wm){case 0:return Math.sin(a);case 1:return a<=k?a/k:a<=b?1-2*(a-k)/Math.PI:(a-b)/k-1;case 2:return 2*a/u-1;case 3:return-2*a/u+1;case 4:return a<Math.PI?-1:1}return 0};n.Mb=function(){var a=
this.b.Pe(this.e);if(this.ab&&0!==a){0===this.Oc?this.Ka=0:(this.Ka+=a/this.Oc*u,this.Ka=this.Ka%u);switch(this.rh){case 0:this.e.x!==this.Vb&&(this.V+=this.e.x-this.Vb);this.e.x=this.V+this.Pd(this.Ka)*this.Gb;this.Vb=this.e.x;break;case 1:this.e.y!==this.Vb&&(this.V+=this.e.y-this.Vb);this.e.y=this.V+this.Pd(this.Ka)*this.Gb;this.Vb=this.e.y;break;case 2:this.e.width=this.V+this.Pd(this.Ka)*this.Gb;this.e.height=this.e.width*this.Eh;break;case 3:this.e.width=this.V+this.Pd(this.Ka)*this.Gb;break;
case 4:this.e.height=this.V+this.Pd(this.Ka)*this.Gb;break;case 5:this.e.n!==this.Vb&&(this.V=Fa(this.V+(this.e.n-this.Vb)));this.e.n=Fa(this.V+this.Pd(this.Ka)*this.Gb);this.Vb=this.e.n;break;case 6:this.e.opacity=this.V+this.Pd(this.Ka)*this.Gb/100;0>this.e.opacity?this.e.opacity=0:1<this.e.opacity&&(this.e.opacity=1);break;case 8:this.e.x!==this.Vb&&(this.V+=this.e.x-this.Vb),this.e.y!==this.gh&&(this.Se+=this.e.y-this.gh),this.e.x=this.V+Math.cos(this.e.n)*this.Pd(this.Ka)*this.Gb,this.e.y=this.Se+
Math.sin(this.e.n)*this.Pd(this.Ka)*this.Gb,this.Vb=this.e.x,this.gh=this.e.y}this.e.D()}};n.Yo=function(a,b){switch(this.rh){case 2:this.V*=b.width/a.width;this.Eh=b.height/b.width;break;case 3:this.V*=b.width/a.width;break;case 4:this.V*=b.height/a.height}};m.k=new function(){};c.prototype.Xq=function(a){this.ab=1===a};c.prototype.er=function(a){this.Oc=a};m.U=new c;q.prototype.Uq=function(a){a.B(this.Oc)};m.Ja=new q})();function lc(c){this.b=c}
(function(){function c(){}function q(){}var m=lc.prototype;m.ia=function(c){this.behavior=c;this.b=c.b};m.ia.prototype.P=function(){};m.aa=function(c,k){this.type=c;this.behavior=c.behavior;this.e=k;this.b=c.b};var n=m.aa.prototype;n.P=function(){this.rb={}};n.jf=function(){Pa(this.rb)};n.Za=function(){var c={},k,b;for(k in this.rb)this.rb.hasOwnProperty(k)&&(b=this.rb[k],c[k]={c:b.current.R,t:b.total.R,d:b.duration,r:b.Pl});return c};n.pb=function(c){this.rb={};for(var k in c)c.hasOwnProperty(k)&&
(this.rb[k]={current:new Ua,total:new Ua,duration:c[k].d,Pl:c[k].r},this.rb[k].current.R=c[k].c,this.rb[k].total.R=c[k].t)};n.Mb=function(){var c=this.b.Pe(this.e),k,b;for(k in this.rb)this.rb.hasOwnProperty(k)&&(b=this.rb[k],b.current.add(c),b.total.add(c))};n.kg=function(){var c,k;for(c in this.rb)this.rb.hasOwnProperty(c)&&(k=this.rb[c],k.current.R>=k.duration&&(k.Pl?k.current.R-=k.duration:delete this.rb[c]))};c.prototype.Rq=function(c){c=c.toLowerCase();return(c=this.rb[c])?c.current.R>=c.duration:
!1};m.k=new c;q.prototype.lr=function(c,k,b){this.rb[b.toLowerCase()]={current:new Ua,total:new Ua,duration:c,Pl:1===k}};m.U=new q;m.Ja=new function(){}})();function mc(c){this.b=c;this.cm=this.Dj=this.Lh=this.$l=0}
(function(){var c=mc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.aa=function(c,n){this.type=c;this.behavior=c.behavior;this.e=n;this.b=c.b};var q=c.aa.prototype;q.P=function(){this.enabled=0!==this.G[0]};q.Za=function(){return{smg:this.behavior.$l,ss:this.behavior.Lh,se:this.behavior.Dj,smd:this.behavior.cm}};q.pb=function(c){this.behavior.$l=c.smg;this.behavior.Lh=c.ss;this.behavior.Dj=c.se;this.behavior.cm=c.smd};q.Mb=function(){};q.kg=function(){if(this.enabled){var c=
this.behavior.jj.Nd(),n=0,q=0,k,b,a,p=0;k=0;for(b=c.length;k<b;k++){a:{a=c[k];for(var v=void 0,d=void 0,h=void 0,v=0,d=a.J.length;v<d;++v)if(h=a.J[v],h.behavior instanceof mc){a=h;break a}a=null}a&&a.enabled&&(n+=c[k].x,q+=c[k].y,++p)}c=this.e.q.Oa;b=this.b.ic.R;a=k=0;b>=this.behavior.Lh&&b<this.behavior.Dj&&(k=this.behavior.$l*Math.min(this.b.lg,1),0===this.behavior.cm&&(k*=1-(b-this.behavior.Lh)/(this.behavior.Dj-this.behavior.Lh)),b=Math.random()*Math.PI*2,a=Math.random()*k,k=Math.cos(b)*a,a*=
Math.sin(b));c.Yl(n/p+k);c.Zl(q/p+a)}};c.U=new function(){}})();function cc(c){this.b=c}(function(){var c=cc.prototype;c.ia=function(c){this.behavior=c;this.b=c.b};c.ia.prototype.P=function(){};c.aa=function(c,n){this.type=c;this.behavior=c.behavior;this.e=n;this.b=c.b};var q=c.aa.prototype;q.P=function(){this.e.ca.solidEnabled=0!==this.G[0]};q.Mb=function(){};c.k=new function(){};c.U=new function(){}})();
function bc(){return[dc,ec,X,fc,Y,ic,mc,cc,kc,hc,jc,lc,gc,W.prototype.k.rq,X.prototype.U.gr,X.prototype.k.wq,X.prototype.k.xq,X.prototype.U.fr,X.prototype.U.Yq,ic.prototype.U.br,X.prototype.Ja.jq,W.prototype.U.iq,fc.prototype.U.ir,X.prototype.U.jr,gc.prototype.U.Vq,W.prototype.k.Im,X.prototype.U.cr,kc.prototype.U.Xq,W.prototype.k.pq,ec.prototype.k.Yj,dc.prototype.k.Em,X.prototype.k.oq,X.prototype.U.$q,kc.prototype.U.er,kc.prototype.Ja.Uq,jc.prototype.U.hr,jc.prototype.Ja.Tm,lc.prototype.U.lr,X.prototype.U.Zq,
lc.prototype.k.Rq,W.prototype.U.sq,W.prototype.U.Wq,W.prototype.k.vq,ic.prototype.k.Hm,X.prototype.k.zm,ic.prototype.k.Pm,ic.prototype.k.Dm,ic.prototype.k.Km,X.prototype.U.dr]};
