// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,y,da,ea,fa,O,ga,ha,ia,ja,ka,P,na,oa,R,pa,qa,sa,va,S,wa,xa,ya,za,Ba,V,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,W,Rb,Sb={},Tb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,d,h,f){this.set(a,d,h,f)}function n(){this.cb=this.bb=this.gb=this.fb=this.qb=this.pb=this.Oa=this.Na=0}function c(a,d,h,f){a<d?h<f?(x=a<h?a:h,u=d>f?d:f):(x=a<f?a:f,u=d>h?d:h):h<f?(x=d<h?d:h,u=a>f?a:f):(x=d<f?d:f,u=a>h?a:h)}function p(){this.items=this.Yc=null;this.vg=0;la&&(this.Yc=new Set);this.If=[];this.Ld=!0}function l(a){Q[T++]=a}function t(){this.ca=this.jj=this.y=this.Rj=0}function b(a){this.Ma=[];this.uh=this.wh=this.xh=this.vh=0;this.Zg(a)}function a(a,d){this.Vj=
a;this.Uj=d;this.cells={}}function e(a,d){this.Vj=a;this.Uj=d;this.cells={}}function w(a,d,h){var f;return B.length?(f=B.pop(),f.zk=a,f.x=d,f.y=h,f):new aa(a,d,h)}function d(a,d,h){this.zk=a;this.x=d;this.y=h;this.Ta=new ba}function f(a,d,h){var f;return z.length?(f=z.pop(),f.zk=a,f.x=d,f.y=h,f):new ca(a,d,h)}function r(a,d,h){this.zk=a;this.x=d;this.y=h;this.Ta=[];this.gf=!0;this.Vc=new ba;this.Mf=!1}function k(a,d){return a.Nc-d.Nc}y=function(a){window.console&&window.console.log&&window.console.log(a)};
da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};O=function(a){return"string"===typeof a};ga=function(a){return 0<a&&0===(a-1&a)};ha=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ia=function(a){return 0>a?-a:a};ja=function(a,d){return a<d?a:d};ka=Math.PI;P=function(a){return 0<=a?a|0:(a|0)-1};na=function(a){var d=a|0;return d===a?d:d+1};oa=function(a,d,h,f,e,v,m,b){var k,
r,w,q;a<h?(r=a,k=h):(r=h,k=a);e<m?(q=e,w=m):(q=m,w=e);if(k<q||r>w)return!1;d<f?(r=d,k=f):(r=f,k=d);v<b?(q=v,w=b):(q=b,w=v);if(k<q||r>w)return!1;k=e-a+m-h;r=v-d+b-f;a=h-a;d=f-d;e=m-e;v=b-v;b=ia(d*e-v*a);return ia(e*r-v*k)>b?!1:ia(a*r-d*k)<=b};g.prototype.set=function(a,d,h,f){this.left=a;this.top=d;this.right=h;this.bottom=f};g.prototype.Sf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};g.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};g.prototype.Es=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};g.prototype.Fs=function(a,d,h){return!(a.right+d<this.left||a.bottom+
h<this.top||a.left+d>this.right||a.top+h>this.bottom)};g.prototype.hb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};g.prototype.Xf=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};R=g;n.prototype.zf=function(a){this.Na=a.left;this.Oa=a.top;this.pb=a.right;this.qb=a.top;this.fb=a.right;this.gb=a.bottom;this.bb=a.left;this.cb=a.bottom};n.prototype.Lo=function(a,d){if(0===d)this.zf(a);else{var h=Math.sin(d),f=Math.cos(d),
e=a.left*h,v=a.top*h,m=a.right*h,h=a.bottom*h,b=a.left*f,k=a.top*f,r=a.right*f,f=a.bottom*f;this.Na=b-v;this.Oa=k+e;this.pb=r-v;this.qb=k+m;this.fb=r-h;this.gb=f+m;this.bb=b-h;this.cb=f+e}};n.prototype.offset=function(a,d){this.Na+=a;this.Oa+=d;this.pb+=a;this.qb+=d;this.fb+=a;this.gb+=d;this.bb+=a;this.cb+=d;return this};var x=0,u=0;n.prototype.Cm=function(a){c(this.Na,this.pb,this.fb,this.bb);a.left=x;a.right=u;c(this.Oa,this.qb,this.gb,this.cb);a.top=x;a.bottom=u};n.prototype.hb=function(a,d){var h=
this.Na,f=this.Oa,e=this.pb-h,v=this.qb-f,m=this.fb-h,b=this.gb-f,k=a-h,r=d-f,w=e*e+v*v,q=e*m+v*b,v=e*k+v*r,u=m*m+b*b,c=m*k+b*r,g=1/(w*u-q*q),e=(u*v-q*c)*g,w=(w*c-q*v)*g;if(0<=e&&0<w&&1>e+w)return!0;e=this.bb-h;v=this.cb-f;w=e*e+v*v;q=e*m+v*b;v=e*k+v*r;g=1/(w*u-q*q);e=(u*v-q*c)*g;w=(w*c-q*v)*g;return 0<=e&&0<w&&1>e+w};n.prototype.Kd=function(a,d){if(d)switch(a){case 0:return this.Na;case 1:return this.pb;case 2:return this.fb;case 3:return this.bb;case 4:return this.Na;default:return this.Na}else switch(a){case 0:return this.Oa;
case 1:return this.qb;case 2:return this.gb;case 3:return this.cb;case 4:return this.Oa;default:return this.Oa}};n.prototype.Zn=function(){return(this.Na+this.pb+this.fb+this.bb)/4};n.prototype.$n=function(){return(this.Oa+this.qb+this.gb+this.cb)/4};n.prototype.kn=function(a){var d=a.Zn(),h=a.$n();if(this.hb(d,h))return!0;d=this.Zn();h=this.$n();if(a.hb(d,h))return!0;var f,e,v,m,b,k,r,w;for(r=0;4>r;r++)for(w=0;4>w;w++)if(d=this.Kd(r,!0),h=this.Kd(r,!1),f=this.Kd(r+1,!0),e=this.Kd(r+1,!1),v=a.Kd(w,
!0),m=a.Kd(w,!1),b=a.Kd(w+1,!0),k=a.Kd(w+1,!1),oa(d,h,f,e,v,m,b,k))return!0;return!1};pa=n;qa=function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h]);return a};sa=function(a,d){var h,f;d=P(d);if(!(0>d||d>=a.length)){h=d;for(f=a.length-1;h<f;h++)a[h]=a[h+1];va(a,f)}};va=function(a,d){a.length=d};S=function(a){va(a,0)};wa=function(a,d){S(a);var h,f;h=0;for(f=d.length;h<f;++h)a[h]=d[h]};xa=function(a,d){a.push.apply(a,d)};ya=function(a,d){var h,f;h=0;for(f=a.length;h<f;++h)if(a[h]===d)return h;
return-1};za=function(a,d){var h=ya(a,d);-1!==h&&sa(a,h)};Ba=function(a,d,h){return a<d?d:a>h?h:a};V=function(a){return a/(180/ka)};Ca=function(a){return 180/ka*a};Da=function(a){a%=360;0>a&&(a+=360);return a};Ea=function(a){a%=2*ka;0>a&&(a+=2*ka);return a};Fa=function(a){return Da(Ca(a))};Ga=function(a){return Ea(V(a))};Ha=function(a,d,h,f){return Math.atan2(f-d,h-a)};Ia=function(a,d){if(a===d)return 0;var h=Math.sin(a),f=Math.cos(a),e=Math.sin(d),v=Math.cos(d),h=h*e+f*v;return 1<=h?0:-1>=h?ka:Math.acos(h)};
Ja=function(a,d,h){var f=Math.sin(a),e=Math.cos(a),v=Math.sin(d),m=Math.cos(d);return Math.acos(f*v+e*m)>h?0<e*v-f*m?Ea(a+h):Ea(a-h):Ea(d)};Ka=function(a,d){var h=Math.sin(a),f=Math.cos(a),e=Math.sin(d),v=Math.cos(d);return 0>=f*e-h*v};La=function(a,d,h,f){a=h-a;d=f-d;return Math.sqrt(a*a+d*d)};Ma=function(a,d){return!a!==!d};Na=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Oa=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var q=+new Date;Pa=function(){if("undefined"!==
typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-q};var h=!1,m=h=!1,N=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),m=/(iphone|ipod|ipad)/i.test(navigator.userAgent),N=window.c2ejecta);
var la=!h&&!N&&!m&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.nd()?!1:la?this.Yc.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(la)this.Yc.has(a)||(this.Yc.add(a),this.Ld=!1);else{var d=a.toString(),h=this.items;h?h.hasOwnProperty(d)||(h[d]=a,this.vg++,this.Ld=!1):(this.items={},this.items[d]=a,this.vg=1,this.Ld=!1)}};p.prototype.remove=function(a){if(!this.nd())if(la)this.Yc.has(a)&&(this.Yc["delete"](a),
this.Ld=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.vg--,this.Ld=!1)}};p.prototype.clear=function(){this.nd()||(la?this.Yc.clear():(this.items=null,this.vg=0),S(this.If),this.Ld=!0)};p.prototype.nd=function(){return 0===this.count()};p.prototype.count=function(){return la?this.Yc.size:this.vg};var Q=null,T=0;p.prototype.Ut=function(){if(!this.Ld){if(la)S(this.If),Q=this.If,T=0,this.Yc.forEach(l),Q=null,T=0;else{var a=this.If;S(a);var d,h=0,f=this.items;
if(f)for(d in f)f.hasOwnProperty(d)&&(a[h++]=f[d])}this.Ld=!0}};p.prototype.Mc=function(){this.Ut();return this.If};ba=p;new ba;Qa=function(a,d){la?Ra(a,d.Yc):Sa(a,d.Mc())};Ra=function(a,d){var h,f,e,v;f=h=0;for(e=a.length;h<e;++h)v=a[h],d.has(v)||(a[f++]=v);va(a,f)};Sa=function(a,d){var h,f,e,v;f=h=0;for(e=a.length;h<e;++h)v=a[h],-1===ya(d,v)&&(a[f++]=v);va(a,f)};t.prototype.add=function(a){this.y=a-this.Rj;this.jj=this.ca+this.y;this.Rj=this.jj-this.ca-this.y;this.ca=this.jj};t.prototype.reset=
function(){this.ca=this.jj=this.y=this.Rj=0};Ta=t;Ua=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Zg=function(a){this.xo=a;this.Hc=a.length/2;this.Ma.length=a.length;this.Ah=this.Bh=-1;this.Fm=0};b.prototype.ef=function(){return!this.xo.length};b.prototype.da=function(){for(var a=this.Ma,d=a[0],h=d,f=a[1],e=f,v,m,b=1,k=this.Hc;b<k;++b)m=2*b,v=a[m],m=a[m+1],v<d&&(d=v),v>h&&(h=v),m<f&&(f=m),m>e&&(e=m);this.vh=d;this.wh=h;this.xh=f;this.uh=e};b.prototype.zf=function(a,
d,h){this.Ma.length=8;this.Hc=4;var f=this.Ma;f[0]=a.left-d;f[1]=a.top-h;f[2]=a.right-d;f[3]=a.top-h;f[4]=a.right-d;f[5]=a.bottom-h;f[6]=a.left-d;f[7]=a.bottom-h;this.Bh=a.right-a.left;this.Ah=a.bottom-a.top;this.da()};b.prototype.yf=function(a,d,h,f,e){this.Ma.length=8;this.Hc=4;var v=this.Ma;v[0]=a.Na-d;v[1]=a.Oa-h;v[2]=a.pb-d;v[3]=a.qb-h;v[4]=a.fb-d;v[5]=a.gb-h;v[6]=a.bb-d;v[7]=a.cb-h;this.Bh=f;this.Ah=e;this.da()};b.prototype.Ko=function(a){this.Hc=a.Hc;wa(this.Ma,a.Ma);this.vh=a.vh;this.xh-a.xh;
this.wh=a.wh;this.uh=a.uh};b.prototype.Ue=function(a,d,h){if(this.Bh!==a||this.Ah!==d||this.Fm!==h){this.Bh=a;this.Ah=d;this.Fm=h;var f,e,v,m,b,k=0,r=1,w=this.xo,q=this.Ma;0!==h&&(k=Math.sin(h),r=Math.cos(h));h=0;for(v=this.Hc;h<v;h++)f=2*h,e=f+1,m=w[f]*a,b=w[e]*d,q[f]=m*r-b*k,q[e]=b*r+m*k;this.da()}};b.prototype.hb=function(a,d){var h=this.Ma;if(a===h[0]&&d===h[1])return!0;var f,e,v,m=this.Hc,b=this.vh-110,k=this.xh-101,r=this.wh+131,w=this.uh+120,q,u,c=0,g=0;for(f=0;f<m;f++)e=2*f,v=(f+1)%m*2,q=
h[e],e=h[e+1],u=h[v],v=h[v+1],oa(b,k,a,d,q,e,u,v)&&c++,oa(r,w,a,d,q,e,u,v)&&g++;return 1===c%2||1===g%2};b.prototype.mg=function(a,d,h){var f=a.Ma,e=this.Ma;if(this.hb(f[0]+d,f[1]+h)||a.hb(e[0]-d,e[1]-h))return!0;var v,m,b,k,r,w,q,u,c,g,x,l;v=0;for(k=this.Hc;v<k;v++)for(m=2*v,b=(v+1)%k*2,u=e[m],m=e[m+1],c=e[b],g=e[b+1],b=0,q=a.Hc;b<q;b++)if(r=2*b,w=(b+1)%q*2,x=f[r]+d,r=f[r+1]+h,l=f[w]+d,w=f[w+1]+h,oa(u,m,c,g,x,r,l,w))return!0;return!1};Va=b;a.prototype.Sd=function(a,d,h){var f;f=this.cells[a];return f?
(f=f[d])?f:h?(f=w(this,a,d),this.cells[a][d]=f):null:h?(f=w(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};a.prototype.xb=function(a){return P(a/this.Vj)};a.prototype.yb=function(a){return P(a/this.Uj)};a.prototype.update=function(a,d,h){var f,e,v,m,b;if(d)for(f=d.left,e=d.right;f<=e;++f)for(v=d.top,m=d.bottom;v<=m;++v)if(!h||!h.hb(f,v))if(b=this.Sd(f,v,!1))b.remove(a),b.nd()&&(b.Ta.clear(),1E3>B.length&&B.push(b),this.cells[f][v]=null);if(h)for(f=h.left,e=h.right;f<=e;++f)for(v=h.top,m=h.bottom;v<=
m;++v)d&&d.hb(f,v)||this.Sd(f,v,!0).Jk(a)};a.prototype.Ui=function(a,d){var h,f,e,v,m,b;h=this.xb(a.left);e=this.yb(a.top);f=this.xb(a.right);for(m=this.yb(a.bottom);h<=f;++h)for(v=e;v<=m;++v)(b=this.Sd(h,v,!1))&&b.dump(d)};Wa=a;e.prototype.Sd=function(a,d,h){var e;e=this.cells[a];return e?(e=e[d])?e:h?(e=f(this,a,d),this.cells[a][d]=e):null:h?(e=f(this,a,d),this.cells[a]={},this.cells[a][d]=e):null};e.prototype.xb=function(a){return P(a/this.Vj)};e.prototype.yb=function(a){return P(a/this.Uj)};e.prototype.update=
function(a,d,h){var f,e,v,m,b;if(d)for(f=d.left,e=d.right;f<=e;++f)for(v=d.top,m=d.bottom;v<=m;++v)if(!h||!h.hb(f,v))if(b=this.Sd(f,v,!1))b.remove(a),b.nd()&&(b.reset(),1E3>z.length&&z.push(b),this.cells[f][v]=null);if(h)for(f=h.left,e=h.right;f<=e;++f)for(v=h.top,m=h.bottom;v<=m;++v)d&&d.hb(f,v)||this.Sd(f,v,!0).Jk(a)};e.prototype.Ui=function(a,d,h,f,e){var v,m;a=this.xb(a);d=this.yb(d);h=this.xb(h);for(v=this.yb(f);a<=h;++a)for(f=d;f<=v;++f)(m=this.Sd(a,f,!1))&&m.dump(e)};e.prototype.Rs=function(a){var d,
h,f,e,v;d=a.left;f=a.top;h=a.right;for(e=a.bottom;d<=h;++d)for(a=f;a<=e;++a)if(v=this.Sd(d,a,!1))v.gf=!1};Xa=e;var B=[];d.prototype.nd=function(){return this.Ta.nd()};d.prototype.Jk=function(a){this.Ta.add(a)};d.prototype.remove=function(a){this.Ta.remove(a)};d.prototype.dump=function(a){xa(a,this.Ta.Mc())};aa=d;var z=[];r.prototype.nd=function(){if(!this.Ta.length)return!0;if(this.Ta.length>this.Vc.count())return!1;this.mk();return!0};r.prototype.Jk=function(a){this.Vc.contains(a)?(this.Vc.remove(a),
this.Vc.nd()&&(this.Mf=!1)):this.Ta.length?(this.Ta[this.Ta.length-1].jc()>a.jc()&&(this.gf=!1),this.Ta.push(a)):(this.Ta.push(a),this.gf=!0)};r.prototype.remove=function(a){this.Vc.add(a);this.Mf=!0;30<=this.Vc.count()&&this.mk()};r.prototype.mk=function(){this.Mf&&(this.Vc.count()===this.Ta.length?this.reset():(Qa(this.Ta,this.Vc),this.Vc.clear(),this.Mf=!1))};r.prototype.kr=function(){this.gf||(this.Ta.sort(k),this.gf=!0)};r.prototype.reset=function(){S(this.Ta);this.gf=!0;this.Vc.clear();this.Mf=
!1};r.prototype.dump=function(a){this.mk();this.kr();this.Ta.length&&a.push(this.Ta)};ca=r;var K="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":K[a-1]};$a=function(a,d,h){if(h)switch(a.nb=h.ONE,a.ib=h.ONE_MINUS_SRC_ALPHA,d){case 1:a.nb=h.ONE;a.ib=h.ONE;break;case 3:a.nb=h.ONE;a.ib=h.ZERO;break;case 4:a.nb=h.ONE_MINUS_DST_ALPHA;a.ib=h.ONE;break;case 5:a.nb=h.DST_ALPHA;a.ib=
h.ZERO;break;case 6:a.nb=h.ZERO;a.ib=h.SRC_ALPHA;break;case 7:a.nb=h.ONE_MINUS_DST_ALPHA;a.ib=h.ZERO;break;case 8:a.nb=h.ZERO;a.ib=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.nb=h.DST_ALPHA;a.ib=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.nb=h.ONE_MINUS_DST_ALPHA,a.ib=h.SRC_ALPHA}};ab=function(a){return Math.round(1E6*a)/1E6};bb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};cb=function(a){a=a.target;return!a||a===document||a===
window||document&&document.body&&a===document.body||bb(a.tagName,"canvas")?!0:!1}})();var Ub="undefined"!==typeof Float32Array?Float32Array:Array;function Vb(g){var n=new Ub(3);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2]);return n}function Wb(g){var n=new Ub(16);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2],n[3]=g[3],n[4]=g[4],n[5]=g[5],n[6]=g[6],n[7]=g[7],n[8]=g[8],n[9]=g[9],n[10]=g[10],n[11]=g[11],n[12]=g[12],n[13]=g[13],n[14]=g[14],n[15]=g[15]);return n}
function Xb(g,n){n[0]=g[0];n[1]=g[1];n[2]=g[2];n[3]=g[3];n[4]=g[4];n[5]=g[5];n[6]=g[6];n[7]=g[7];n[8]=g[8];n[9]=g[9];n[10]=g[10];n[11]=g[11];n[12]=g[12];n[13]=g[13];n[14]=g[14];n[15]=g[15]}function Yb(g,n){var c=n[0],p=n[1];n=n[2];g[0]*=c;g[1]*=c;g[2]*=c;g[3]*=c;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=n;g[9]*=n;g[10]*=n;g[11]*=n}
function Zb(g,n,c,p){p||(p=Wb());var l,t,b,a,e,w,d,f,r=g[0],k=g[1];g=g[2];t=c[0];b=c[1];l=c[2];c=n[1];w=n[2];r===n[0]&&k===c&&g===w?(g=p,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(c=r-n[0],w=k-n[1],d=g-n[2],f=1/Math.sqrt(c*c+w*w+d*d),c*=f,w*=f,d*=f,n=b*d-l*w,l=l*c-t*d,t=t*w-b*c,(f=Math.sqrt(n*n+l*l+t*t))?(f=1/f,n*=f,l*=f,t*=f):t=l=n=0,b=w*t-d*l,a=d*n-c*t,e=c*l-w*n,(f=Math.sqrt(b*b+a*a+e*e))?(f=1/f,b*=f,a*=f,e*=f):e=a=b=0,
p[0]=n,p[1]=b,p[2]=c,p[3]=0,p[4]=l,p[5]=a,p[6]=w,p[7]=0,p[8]=t,p[9]=e,p[10]=d,p[11]=0,p[12]=-(n*r+l*k+t*g),p[13]=-(b*r+a*k+e*g),p[14]=-(c*r+w*k+d*g),p[15]=1)}
(function(){function g(a,e,b){this.od=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ga=!!b;this.ei=this.og=!1;this.dk=0;this.Cj=1;this.Ul=1E3;this.$t=(this.Ul-this.Cj)/32768;this.Sj=Vb([0,0,100]);this.Jn=Vb([0,0,0]);this.fp=Vb([0,1,0]);this.qh=Vb([1,1,1]);this.Mm=!0;this.Ai=Wb();this.$b=Wb();this.Uk=Wb();this.ck=Wb();this.n=a;this.en()}function n(a,e,b){this.n=a;this.$g=e;this.name=b;this.oc=a.getAttribLocation(e,"aPos");this.ae=a.getAttribLocation(e,
"aTex");this.Hn=a.getUniformLocation(e,"matP");this.vi=a.getUniformLocation(e,"matMV");this.mf=a.getUniformLocation(e,"opacity");this.Zk=a.getUniformLocation(e,"colorFill");this.In=a.getUniformLocation(e,"samplerFront");this.Hg=a.getUniformLocation(e,"samplerBack");this.Ge=a.getUniformLocation(e,"destStart");this.Fe=a.getUniformLocation(e,"destEnd");this.Jg=a.getUniformLocation(e,"seconds");this.al=a.getUniformLocation(e,"pixelWidth");this.$k=a.getUniformLocation(e,"pixelHeight");this.Gg=a.getUniformLocation(e,
"layerScale");this.Fg=a.getUniformLocation(e,"layerAngle");this.Kg=a.getUniformLocation(e,"viewOrigin");this.Ig=a.getUniformLocation(e,"scrollPos");this.As=!!(this.al||this.$k||this.Jg||this.Hg||this.Ge||this.Fe||this.Gg||this.Fg||this.Kg||this.Ig);this.Rn=this.Sn=-999;this.yi=1;this.Nn=this.Mn=0;this.Pn=this.Ln=this.Kn=1;this.Vn=this.Un=this.Tn=this.Xn=this.Wn=this.On=0;this.Tk=[];this.Qn=Wb();this.mf&&a.uniform1f(this.mf,1);this.Zk&&a.uniform4f(this.Zk,1,1,1,1);this.In&&a.uniform1i(this.In,0);this.Hg&&
a.uniform1i(this.Hg,1);this.Ge&&a.uniform2f(this.Ge,0,0);this.Fe&&a.uniform2f(this.Fe,1,1);this.Gg&&a.uniform1f(this.Gg,1);this.Fg&&a.uniform1f(this.Fg,0);this.Kg&&a.uniform2f(this.Kg,0,0);this.Ig&&a.uniform2f(this.Ig,0,0);this.Jg&&a.uniform1f(this.Jg,0);this.ye=!1}function c(a,e){return a[0]===e[0]&&a[1]===e[1]&&a[2]===e[2]&&a[3]===e[3]&&a[4]===e[4]&&a[5]===e[5]&&a[6]===e[6]&&a[7]===e[7]&&a[8]===e[8]&&a[9]===e[9]&&a[10]===e[10]&&a[11]===e[11]&&a[12]===e[12]&&a[13]===e[13]&&a[14]===e[14]&&a[15]===
e[15]}function p(a,e){this.type=a;this.k=e;this.n=e.n;this.kc=this.ob=this.oo=0;this.L=this.vc=null;this.Mo=[]}var l=Wb();g.prototype.en=function(){var a=this.n,e;this.yn=1;this.Ce=this.Xd=null;this.Hh=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.ga?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.An=a.ONE;this.wn=a.ONE_MINUS_SRC_ALPHA;
this.yj=new Float32Array(8E3*(this.ga?3:2));this.kj=new Float32Array(16E3);this.nl=new Float32Array(32E3);this.ml=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.ml);a.bufferData(a.ARRAY_BUFFER,this.nl.byteLength,a.DYNAMIC_DRAW);this.oh=Array(4);this.gh=Array(4);for(e=0;4>e;e++)this.oh[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.oh[e]),a.bufferData(a.ARRAY_BUFFER,this.yj.byteLength,a.DYNAMIC_DRAW),this.gh[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.gh[e]),a.bufferData(a.ARRAY_BUFFER,
this.kj.byteLength,a.DYNAMIC_DRAW);this.dd=0;this.Cs=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Cs);for(var b=new Uint16Array(12E3),d=e=0;12E3>e;)b[e++]=d,b[e++]=d+1,b[e++]=d+2,b[e++]=d,b[e++]=d+2,b[e++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.tf=this.Df=this.Bd=0;this.Ba=[];e=this.ga?"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.Tf({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}"},e,"<default>");this.Ba.push(b);b=this.Tf({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.Ba.push(b);b=this.Tf({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"<earlyz>");this.Ba.push(b);b=this.Tf({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
e,"<fill>");this.Ba.push(b);for(var f in $b)$b.hasOwnProperty(f)&&this.Ba.push(this.Tf($b[f],e,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.cd=[];this.Pc=0;this.lb=this.Xa=!1;this.Hm=this.xg=-1;this.Ve=null;this.lk=a.createFramebuffer();this.Jh=this.Xi=null;this.Am=!1;this.ga&&(this.Jh=a.createRenderbuffer());this.je=Vb([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Us=a[0];this.cl=a[1];2048<this.cl&&(this.cl=2048);this.Ib(0)};n.prototype.Ol=function(a){c(this.Qn,
a)||(Xb(a,this.Qn),this.n.uniformMatrix4fv(this.vi,!1,a))};g.prototype.Tf=function(a,e,b){var d=this.n,f=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(f,a.src);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(f),null;var r=d.createShader(d.VERTEX_SHADER);d.shaderSource(r,e);d.compileShader(r);if(!d.getShaderParameter(r,d.COMPILE_STATUS))return d.deleteShader(f),d.deleteShader(r),null;e=d.createProgram();d.attachShader(e,f);d.attachShader(e,r);d.linkProgram(e);
if(!d.getProgramParameter(e,d.LINK_STATUS))return d.deleteShader(f),d.deleteShader(r),d.deleteProgram(e),null;d.useProgram(e);d.deleteShader(f);d.deleteShader(r);b=new n(d,e,b);b.Lh=a.Lh||0;b.Mh=a.Mh||0;b.bk=!!a.bk;b.pc=!!a.pc;b.Lj=!!a.Lj;b.K=a.K||[];a=0;for(f=b.K.length;a<f;a++)b.K[a][1]=d.getUniformLocation(e,b.K[a][0]),b.Tk.push(0),d.uniform1f(b.K[a][1],0);return b};g.prototype.xk=function(a){var e,b;e=0;for(b=this.Ba.length;e<b;e++)if(this.Ba[e].name===a)return e;return-1};g.prototype.wo=function(a,
e,b){var d=this.$b,f=this.Ai,r=[0,0,0,0,0,0,0,0];r[0]=d[0]*a+d[4]*e+d[12];r[1]=d[1]*a+d[5]*e+d[13];r[2]=d[2]*a+d[6]*e+d[14];r[3]=d[3]*a+d[7]*e+d[15];r[4]=f[0]*r[0]+f[4]*r[1]+f[8]*r[2]+f[12]*r[3];r[5]=f[1]*r[0]+f[5]*r[1]+f[9]*r[2]+f[13]*r[3];r[6]=f[2]*r[0]+f[6]*r[1]+f[10]*r[2]+f[14]*r[3];r[7]=-r[2];0!==r[7]&&(r[7]=1/r[7],r[4]*=r[7],r[5]*=r[7],r[6]*=r[7],b[0]=(.5*r[4]+.5)*this.width,b[1]=(.5*r[5]+.5)*this.height)};g.prototype.Oe=function(a,e,b){if(this.width!==a||this.height!==e||b){this.hd();b=this.n;
this.width=a;this.height=e;b.viewport(0,0,a,e);Zb(this.Sj,this.Jn,this.fp,this.$b);if(this.ga){var d=-a/2;a=a/2;var f=e/2;e=-e/2;var r=this.Cj,k=this.Ul,c=this.Ai;c||(c=Wb());var u=a-d,q=e-f,h=k-r;c[0]=2/u;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/q;c[6]=0;c[7]=0;c[8]=0;c[9]=0;c[10]=-2/h;c[11]=0;c[12]=-(d+a)/u;c[13]=-(e+f)/q;c[14]=-(k+r)/h;c[15]=1;this.qh[0]=1;this.qh[1]=1}else e=a/e,d=this.Cj,a=this.Ul,c=this.Ai,k=d*Math.tan(45*Math.PI/360),e*=k,f=-e,r=-k,c||(c=Wb()),u=e-f,q=k-r,h=a-d,c[0]=2*d/u,c[1]=0,
c[2]=0,c[3]=0,c[4]=0,c[5]=2*d/q,c[6]=0,c[7]=0,c[8]=(e+f)/u,c[9]=(k+r)/q,c[10]=-(a+d)/h,c[11]=-1,c[12]=0,c[13]=0,c[14]=-(a*d*2)/h,c[15]=0,d=[0,0],a=[0,0],this.wo(0,0,d),this.wo(1,1,a),this.qh[0]=1/(a[0]-d[0]),this.qh[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ba.length;d<a;d++)f=this.Ba[d],f.ye=!1,f.Hn&&(b.useProgram(f.$g),b.uniformMatrix4fv(f.Hn,!1,this.Ai));b.useProgram(this.Ba[this.xg].$g);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);
this.Ce=this.Xd=null;this.Jh&&(b.bindFramebuffer(b.FRAMEBUFFER,this.lk),b.bindRenderbuffer(b.RENDERBUFFER,this.Jh),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Am||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Jh),this.Am=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.Xi=null)}};g.prototype.qc=function(){Zb(this.Sj,this.Jn,this.fp,this.$b);Yb(this.$b,this.qh)};g.prototype.translate=function(a,
e){if(0!==a||0!==e){this.je[0]=a;this.je[1]=e;this.je[2]=0;var b=this.$b,d=this.je,f=d[0],r=d[1],d=d[2];b[12]=b[0]*f+b[4]*r+b[8]*d+b[12];b[13]=b[1]*f+b[5]*r+b[9]*d+b[13];b[14]=b[2]*f+b[6]*r+b[10]*d+b[14];b[15]=b[3]*f+b[7]*r+b[11]*d+b[15]}};g.prototype.scale=function(a,b){if(1!==a||1!==b)this.je[0]=a,this.je[1]=b,this.je[2]=1,Yb(this.$b,this.je)};g.prototype.Zi=function(a){if(0!==a){var b=this.$b,c,d=Math.sin(a);a=Math.cos(a);var f=b[0],r=b[1],k=b[2],g=b[3],u=b[4],q=b[5],h=b[6],m=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]=f*a+u*d;c[1]=r*a+q*d;c[2]=k*a+h*d;c[3]=g*a+m*d;c[4]=f*-d+u*a;c[5]=r*-d+q*a;c[6]=k*-d+h*a;c[7]=g*-d+m*a}};g.prototype.ec=function(){if(!c(this.Uk,this.$b)){var a=this.Fb();a.type=5;a.L?Xb(this.$b,a.L):a.L=Wb(this.$b);Xb(this.$b,this.Uk);this.lb=this.Xa=!1}};g.prototype.aj=function(a){this.ga&&(32760<a&&(a=32760),this.dk=this.Sj[2]-this.Cj-a*this.$t)};p.prototype.Sq=function(){var a=this.n,b=this.k;0!==
this.ob?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.lk),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.ei=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.ei=!1)};p.prototype.Wq=function(){this.n.bindTexture(this.n.TEXTURE_2D,this.vc)};p.prototype.Xq=function(){var a=this.n;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.vc);
a.activeTexture(a.TEXTURE0)};p.prototype.Tq=function(){var a=this.oo,b=this.k;b.Hh=a;b=b.Ve;b.mf&&b.yi!==a&&(b.yi=a,this.n.uniform1f(b.mf,a))};p.prototype.Nq=function(){this.n.drawElements(this.n.TRIANGLES,this.kc,this.n.UNSIGNED_SHORT,this.ob)};p.prototype.Pq=function(){this.n.blendFunc(this.ob,this.kc)};p.prototype.Zq=function(){var a,b,c,d=this.k.Ba,f=this.k.Hm;a=0;for(b=d.length;a<b;a++)c=d[a],a===f&&c.vi?(c.Ol(this.L),c.ye=!0):c.ye=!1;Xb(this.L,this.k.ck)};p.prototype.Oq=function(){var a=this.n,
b=this.k;this.vc?(b.Ce===this.vc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Ce=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.lk),b.ei||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.vc,0)):(b.ga||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};p.prototype.Lq=function(){var a=this.n,b=this.ob;0===b?(a.clearColor(this.L[0],this.L[1],this.L[2],this.L[3]),a.clear(a.COLOR_BUFFER_BIT)):
1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.L[0],this.L[1],this.L[2],this.L[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.Rq=function(){var a=this.n;0!==this.ob?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.Mq=function(){var a=this.n,b=this.k;b.ga&&a.disable(a.DEPTH_TEST);var c=b.Ba[1];a.useProgram(c.$g);!c.ye&&c.vi&&(c.Ol(b.ck),c.ye=!0);a.enableVertexAttribArray(c.oc);a.bindBuffer(a.ARRAY_BUFFER,b.ml);a.vertexAttribPointer(c.oc,
4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.ob/4,this.kc);c=b.Ve;a.useProgram(c.$g);0<=c.oc&&(a.enableVertexAttribArray(c.oc),a.bindBuffer(a.ARRAY_BUFFER,b.oh[b.dd]),a.vertexAttribPointer(c.oc,b.ga?3:2,a.FLOAT,!1,0,0));0<=c.ae&&(a.enableVertexAttribArray(c.ae),a.bindBuffer(a.ARRAY_BUFFER,b.gh[b.dd]),a.vertexAttribPointer(c.ae,2,a.FLOAT,!1,0,0));b.ga&&a.enable(a.DEPTH_TEST)};p.prototype.Uq=function(){var a=this.n,b=this.k,c=b.Ba[this.ob];b.Hm=this.ob;b.Ve=c;a.useProgram(c.$g);!c.ye&&c.vi&&(c.Ol(b.ck),
c.ye=!0);c.mf&&c.yi!==b.Hh&&(c.yi=b.Hh,a.uniform1f(c.mf,b.Hh));0<=c.oc&&(a.enableVertexAttribArray(c.oc),a.bindBuffer(a.ARRAY_BUFFER,b.oh[b.dd]),a.vertexAttribPointer(c.oc,b.ga?3:2,a.FLOAT,!1,0,0));0<=c.ae&&(a.enableVertexAttribArray(c.ae),a.bindBuffer(a.ARRAY_BUFFER,b.gh[b.dd]),a.vertexAttribPointer(c.ae,2,a.FLOAT,!1,0,0))};p.prototype.Qq=function(){var a=this.L;this.n.uniform4f(this.k.Ve.Zk,a[0],a[1],a[2],a[3])};p.prototype.Vq=function(){var a,b,c=this.k.Ve,d=this.n;a=this.L;c.Hg&&this.k.Ce!==this.vc&&
(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.vc),this.k.Ce=this.vc,d.activeTexture(d.TEXTURE0));var f=a[0];c.al&&f!==c.Sn&&(c.Sn=f,d.uniform1f(c.al,f));f=a[1];c.$k&&f!==c.Rn&&(c.Rn=f,d.uniform1f(c.$k,f));f=a[2];b=a[3];!c.Ge||f===c.Mn&&b===c.Nn||(c.Mn=f,c.Nn=b,d.uniform2f(c.Ge,f,b));f=a[4];b=a[5];!c.Fe||f===c.Kn&&b===c.Ln||(c.Kn=f,c.Ln=b,d.uniform2f(c.Fe,f,b));f=a[6];c.Gg&&f!==c.Pn&&(c.Pn=f,d.uniform1f(c.Gg,f));f=a[7];c.Fg&&f!==c.On&&(c.On=f,d.uniform1f(c.Fg,f));f=a[8];b=a[9];!c.Kg||
f===c.Wn&&b===c.Xn||(c.Wn=f,c.Xn=b,d.uniform2f(c.Kg,f,b));f=a[10];b=a[11];!c.Ig||f===c.Tn&&b===c.Un||(c.Tn=f,c.Un=b,d.uniform2f(c.Ig,f,b));f=a[12];c.Jg&&f!==c.Vn&&(c.Vn=f,d.uniform1f(c.Jg,f));if(c.K.length)for(a=0,b=c.K.length;a<b;a++)f=this.Mo[a],f!==c.Tk[a]&&(c.Tk[a]=f,d.uniform1f(c.K[a][1],f))};g.prototype.Fb=function(){this.Pc===this.cd.length&&this.cd.push(new p(0,this));return this.cd[this.Pc++]};g.prototype.hd=function(){if(0!==this.Pc&&!this.n.isContextLost()){var a=this.n;0<this.tf&&(a.bindBuffer(a.ARRAY_BUFFER,
this.ml),a.bufferSubData(a.ARRAY_BUFFER,0,this.nl.subarray(0,this.tf)),b&&0<=b.oc&&"<point>"===b.name&&a.vertexAttribPointer(b.oc,4,a.FLOAT,!1,0,0));if(0<this.Bd){var b=this.Ve;a.bindBuffer(a.ARRAY_BUFFER,this.oh[this.dd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.yj.subarray(0,this.Bd));b&&0<=b.oc&&"<point>"!==b.name&&a.vertexAttribPointer(b.oc,this.ga?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.gh[this.dd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.kj.subarray(0,this.Df));b&&0<=b.ae&&"<point>"!==
b.name&&a.vertexAttribPointer(b.ae,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.Pc;a<b;a++)switch(c=this.cd[a],c.type){case 1:c.Nq();break;case 2:c.Wq();break;case 3:c.Tq();break;case 4:c.Pq();break;case 5:c.Zq();break;case 6:c.Oq();break;case 7:c.Lq();break;case 8:c.Mq();break;case 9:c.Uq();break;case 10:c.Vq();break;case 11:c.Xq();break;case 12:c.Qq();break;case 13:c.Rq();break;case 14:c.Sq()}this.tf=this.Df=this.Bd=this.Pc=0;this.ei=this.lb=this.Xa=!1;this.dd++;4<=this.dd&&(this.dd=0)}};g.prototype.he=
function(a){if(a!==this.yn&&!this.og){var b=this.Fb();b.type=3;this.yn=b.oo=a;this.lb=this.Xa=!1}};g.prototype.Hb=function(a){if(a!==this.Xd){var b=this.Fb();b.type=2;this.Xd=b.vc=a;this.lb=this.Xa=!1}};g.prototype.ge=function(a,b){if((a!==this.An||b!==this.wn)&&!this.og){var c=this.Fb();c.type=4;c.ob=a;c.kc=b;this.An=a;this.wn=b;this.lb=this.Xa=!1}};g.prototype.Eo=function(){this.ge(this.n.ONE,this.n.ONE_MINUS_SRC_ALPHA)};g.prototype.uf=function(a,b,c,d,f,r,k,g){15992<=this.Bd&&this.hd();var u=this.Bd,
q=this.Df,h=this.yj,m=this.kj,l=this.dk;if(this.Xa)this.cd[this.Pc-1].kc+=6;else{var n=this.Fb();n.type=1;n.ob=this.ga?u:u/2*3;n.kc=6;this.Xa=!0;this.lb=!1}this.ga?(h[u++]=a,h[u++]=b,h[u++]=l,h[u++]=c,h[u++]=d,h[u++]=l,h[u++]=f,h[u++]=r,h[u++]=l,h[u++]=k,h[u++]=g,h[u++]=l):(h[u++]=a,h[u++]=b,h[u++]=c,h[u++]=d,h[u++]=f,h[u++]=r,h[u++]=k,h[u++]=g);m[q++]=0;m[q++]=0;m[q++]=1;m[q++]=0;m[q++]=1;m[q++]=1;m[q++]=0;m[q++]=1;this.Bd=u;this.Df=q};g.prototype.Wc=function(a,b,c,d,f,r,k,g,u){15992<=this.Bd&&this.hd();
var q=this.Bd,h=this.Df,m=this.yj,l=this.kj,n=this.dk;if(this.Xa)this.cd[this.Pc-1].kc+=6;else{var p=this.Fb();p.type=1;p.ob=this.ga?q:q/2*3;p.kc=6;this.Xa=!0;this.lb=!1}var p=u.left,t=u.top,B=u.right;u=u.bottom;this.ga?(m[q++]=a,m[q++]=b,m[q++]=n,m[q++]=c,m[q++]=d,m[q++]=n,m[q++]=f,m[q++]=r,m[q++]=n,m[q++]=k,m[q++]=g,m[q++]=n):(m[q++]=a,m[q++]=b,m[q++]=c,m[q++]=d,m[q++]=f,m[q++]=r,m[q++]=k,m[q++]=g);l[h++]=p;l[h++]=t;l[h++]=B;l[h++]=t;l[h++]=B;l[h++]=u;l[h++]=p;l[h++]=u;this.Bd=q;this.Df=h};g.prototype.kt=
function(a,b,c,d){7996<=this.tf&&this.hd();var f=this.tf,r=this.nl;if(this.lb)this.cd[this.Pc-1].kc++;else{var k=this.Fb();k.type=8;k.ob=f;k.kc=1;this.lb=!0;this.Xa=!1}r[f++]=a;r[f++]=b;r[f++]=c;r[f++]=d;this.tf=f};g.prototype.Ib=function(a){if(this.xg!==a){if(!this.Ba[a]){if(0===this.xg)return;a=0}var b=this.Fb();b.type=9;this.xg=b.ob=a;this.lb=this.Xa=!1}};g.prototype.Vg=function(a){a=this.Ba[a];return!(!a.Ge&&!a.Fe)};g.prototype.ql=function(a){a=this.Ba[a];return!!(a.Ge||a.Fe||a.bk)};g.prototype.pl=
function(a){return this.Ba[a].pc};g.prototype.ut=function(a){a=this.Ba[a];return 0!==a.Lh||0!==a.Mh};g.prototype.es=function(a){return this.Ba[a].Lh};g.prototype.gs=function(a){return this.Ba[a].Mh};g.prototype.hs=function(a,b){return this.Ba[a].K[b][2]};g.prototype.Ri=function(a){return this.Ba[a].Lj};g.prototype.xf=function(a,b,c,d,f,r,k,g,u,q,h,m,l,n,p){var t=this.Ba[this.xg],B,z;if(t.As||p.length){B=this.Fb();B.type=10;B.L?Xb(this.$b,B.L):B.L=Wb();z=B.L;z[0]=b;z[1]=c;z[2]=d;z[3]=f;z[4]=r;z[5]=
k;z[6]=g;z[7]=u;z[8]=q;z[9]=h;z[10]=m;z[11]=l;z[12]=n;t.Hg?B.vc=a:B.vc=null;if(p.length)for(c=B.Mo,c.length=p.length,a=0,b=p.length;a<b;a++)c[a]=p[a];this.lb=this.Xa=!1}};g.prototype.clear=function(a,b,c,d){var f=this.Fb();f.type=7;f.ob=0;f.L||(f.L=Wb());f.L[0]=a;f.L[1]=b;f.L[2]=c;f.L[3]=d;this.lb=this.Xa=!1};g.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var f=this.Fb();f.type=7;f.ob=1;f.L||(f.L=Wb());f.L[0]=a;f.L[1]=b;f.L[2]=c;f.L[3]=d;this.lb=this.Xa=!1}};g.prototype.Ho=function(a){if(this.ga&&
(a=!!a,this.og!==a)){var b=this.Fb();b.type=14;b.ob=a?1:0;this.lb=this.Xa=!1;this.og=a;this.Xi=null;this.og?this.Ib(2):this.Ib(0)}};g.prototype.Go=function(a){if(this.ga){var b=this.Fb();b.type=13;b.ob=a?1:0;this.lb=this.Xa=!1}};g.prototype.Sm=function(){Xb(this.Uk,l);this.qc();this.ec();var a=this.width/2,b=this.height/2;this.uf(-a,b,a,b,a,-b,-a,-b);Xb(l,this.$b);this.ec()};g.prototype.Fo=function(a,b,c){this.Ib(3);var d=this.Fb();d.type=12;d.L||(d.L=Wb());d.L[0]=a;d.L[1]=b;d.L[2]=c;d.L[3]=1;this.lb=
this.Xa=!1};g.prototype.Jt=function(){this.Ib(0)};g.prototype.zt=function(){this.Ib(2)};g.prototype.tt=function(){this.hd();this.n.flush()};var t=[],b={};g.prototype.Cq=function(){S(t);b={}};g.prototype.kf=function(a,c,g,d){c=!!c;g=!!g;var f=a.src+","+c+","+g+(c?",undefined":""),r=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return r=b[f],r.zh++,r;this.hd();var k=this.n,l=ga(a.width)&&ga(a.height),r=k.createTexture();k.bindTexture(k.TEXTURE_2D,r);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);var u=k.RGBA,q=k.RGBA,h=k.UNSIGNED_BYTE;if(d&&!this.od)switch(d){case 1:q=u=k.RGB;break;case 2:h=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:q=u=k.RGB,h=k.UNSIGNED_SHORT_5_6_5}if(!l&&c){d=document.createElement("canvas");d.width=ha(a.width);d.height=ha(a.height);var m=d.getContext("2d");m.webkitImageSmoothingEnabled=g;m.mozImageSmoothingEnabled=g;m.msImageSmoothingEnabled=g;m.imageSmoothingEnabled=g;m.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);k.texImage2D(k.TEXTURE_2D,
0,u,q,h,d)}else k.texImage2D(k.TEXTURE_2D,0,u,q,h,a);c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));g?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),l&&this.Mm?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.Xd=null;r.oe=a.width;r.ne=a.height;r.zh=1;r.Em=f;t.push(r);return b[f]=r};g.prototype.Ub=function(a,b,c,d){this.hd();var f=this.n;this.od&&(d=!1);var r=f.createTexture();f.bindTexture(f.TEXTURE_2D,r);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Xd=null;r.oe=a;r.ne=b;t.push(r);return r};g.prototype.Yt=function(a,b,c){this.hd();var d=this.n;this.od&&(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(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}d.bindTexture(d.TEXTURE_2D,null);this.Xd=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.zh&&1<a.zh?a.zh--:(this.hd(),a===this.Xd&&(this.n.bindTexture(this.n.TEXTURE_2D,null),this.Xd=null),a===this.Ce&&(this.n.activeTexture(this.n.TEXTURE1),this.n.bindTexture(this.n.TEXTURE_2D,null),this.n.activeTexture(this.n.TEXTURE0),this.Ce=null),
za(t,a),"undefined"!==typeof a.Em&&delete b[a.Em],this.n.deleteTexture(a)))};g.prototype.rc=function(a){if(a!==this.Xi){var b=this.Fb();b.type=6;this.Xi=b.vc=a;this.lb=this.Xa=!1}};db=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Zb=(this.gi=/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.Tc=!!a.dc;this.Gs="undefined"!==typeof window.AppMobi||this.Tc;this.Cb=!!window.c2cocoonjs;this.lc=!!window.c2ejecta;this.Cb&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.lc&&(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.R=this.Tc||this.Cb||this.lc;this.qg=/edge\//i.test(navigator.userAgent);this.od=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.qg;this.pn=/tizen/i.test(navigator.userAgent);this.mn=/android/i.test(navigator.userAgent)&&!this.pn&&!this.od&&!this.qg;this.Sk=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.od&&!this.qg;this.un=/ipad/i.test(navigator.userAgent);this.ki=this.Sk||this.un||this.lc;this.Ns=this.Sk&&/os\s6/i.test(navigator.userAgent);this.fi=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.od&&!this.qg;this.ln=/amazonwebappplatform/i.test(navigator.userAgent);this.Is=/firefox/i.test(navigator.userAgent);this.Ks=/safari/i.test(navigator.userAgent)&&!this.fi&&!this.od&&!this.qg;this.Ud="undefined"!==typeof window.c2nodewebkit||
"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.rn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ms=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.df=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Qk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.qn=!!window.cr_windows10;this.hi=this.rn||this.Ms||this.Qk||
this.qn;this.Hs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.nn=this.mn&&!this.fi&&!this.gi&&!this.Is&&!this.ln&&!this.R;this.devicePixelRatio=1;this.qd=this.Zb||this.gi||this.Gs||this.Cb||this.mn||this.ki||this.df||this.Qk||this.Hs||this.pn||this.lc;this.qd||(this.qd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Ud||"?nw"!==window.location.search&&
!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ud=!0);this.canvas=a;this.Ch=document.getElementById("c2canvasdiv");this.k=this.n=null;this.yk="(unavailable)";this.ga=!1;this.te=0;this.V=null;this.ok="";this.Qh=!1;this.lo=this.no=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Tc&&(window.c2runtime=this);this.Ud&&(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.nn&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.F=this.width;this.D=this.height;this.Fh=this.width;this.Vf=this.height;this.zg=window.innerWidth;this.yg=window.innerHeight;this.Ur=!1;this.S=!0;this.sg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types=
{};this.m=[];this.Da=[];this.Xk={};this.Ec=[];this.kk={};this.jd=[];this.Kf=[];this.tj=[];this.rq=[];this.sq=[];this.re={};this.Nk=this.Td=!1;this.pd=0;this.Mk=this.Pk=!1;this.Cc=[];this.pg=!1;this.rd=this.mb=this.ri=this.Bl="";this.dh=this.Po=!1;this.Ph=[];this.Qd=this.Xe=0;this.ao=30;this.$j=this.Lg=0;this.jh=1;this.nc=new Ta;this.zj=new Ta;this.Di=this.Uh=this.$f=this.$c=this.Ee=this.nk=this.mi=0;this.Qf=null;this.gk=[];this.jk=[];this.Kh=-1;this.bl=[[]];this.Kl=this.wi=0;this.Ti(null);this.bg=
this.ho=this.Ng=0;this.eh=[];this.Hl=this.sl=-1;this.ug=!0;this.lf=0;this.rg=!1;this.Nt=0;this.Pf=null;this.ia=this.bi=!1;this.ko=new ba;this.el=new ba;this.fl=new ba;this.Wi=[];this.Jc=new Va([]);this.Gl=new Va([]);this.Jd=[];this.Zh={};this.Md={};this.Gd={};this.Jf={};this.Bm={};this.Gn=this.qi=this.Ea=this.Ia=this.Fn=this.pi=this.Z=null;this.Hf=this.Rk=!1;this.pk=[null,null];this.xe=0;this.ud={};this.ah=this.Zd=null;this.Qo="";this.Ci=[];this.yt()}}function p(a,d){return 128>=d?a[3]:256>=d?a[2]:
512>=d?a[1]:a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function t(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function b(a,d,h,b){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=t;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=h}}catch(m){b(m)}}function a(a,d,h){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=t;b.onerror=h;b.onsuccess=
function(b){b=b.target.result;b.onerror=h;var f=b.transaction(["saves"]).objectStore("saves").get(a);f.onsuccess=function(){f.result?d(f.result.data):d(null)}}}catch(f){h(f)}}function e(){y("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 w(a){var d,h={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof ba||a[d]&&"undefined"!==typeof a[d].gv||"spriteCreatedDestroyCallback"!==
d&&(h[d]=a[d]);return h}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.yt=function(){var a=this,d;this.df?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var h="data.js";if(this.rn||this.df||this.Qk||this.qn)h="data.json";d.open("GET",h,!0);var b=!1;if(!this.R&&"response"in d&&"responseType"in d)try{d.responseType="json",b="json"===d.responseType}catch(f){b=
!1}if(!b&&"responseType"in d)try{d.responseType="text"}catch(m){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.df?d.onreadystatechange=function(){4===d.readyState&&a.ti(JSON.parse(d.responseText))}:(d.onload=function(){if(b)a.ti(d.response);else if(a.lc){var h=d.responseText,h=h.substr(h.indexOf("{"));a.ti(JSON.parse(h))}else a.ti(JSON.parse(d.responseText))},d.onerror=function(a){da("Error requesting "+h+":");da(a)});d.send()};c.prototype.Ds=function(){var a=
this,d,h,b,f,m,c,k,r,e;this.Vd=(!this.R||this.lc||this.Zb)&&this.Vt&&!this.nn;0===this.kb&&this.ki&&(this.Vd=!1);this.devicePixelRatio=this.Vd?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.$a();h=!(!this.Ur&&(!this.Jj||this.Ud||this.hi||this.df||this.gi||this.Zb||this.ln));0<this.kb&&this.setSize(g(),n(),!0);try{this.ir&&(this.Cb||this.lc||!this.R)&&(d={alpha:h,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.n=this.canvas.getContext("webgl",
d)||this.canvas.getContext("experimental-webgl",d))}catch(q){}if(this.n){if(d=this.n.getExtension("WEBGL_debug_renderer_info"))this.yk=this.n.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.n.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.ga&&(this.yk+=" [front-to-back enabled]");this.R||(this.Ya=document.createElement("canvas"),jQuery(this.Ya).appendTo(this.canvas.parentNode),this.Ya.oncontextmenu=function(){return!1},this.Ya.onselectstart=function(){return!1},this.Ya.width=Math.round(this.Fh*
this.devicePixelRatio),this.Ya.height=Math.round(this.Vf*this.devicePixelRatio),jQuery(this.Ya).css({width:this.Fh+"px",height:this.Vf+"px"}),this.vo(),this.ll=this.Ya.getContext("2d"));this.k=new db(this.n,this.qd,this.ga);this.k.Oe(this.canvas.width,this.canvas.height);this.k.Mm=0!==this.$q;this.V=null;this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.Xs();y("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){a.k.en();a.k.Oe(a.k.width,a.k.height,!0);a.Ia=null;a.Ea=null;a.pk[0]=null;a.pk[1]=null;a.Ys();a.S=!0;y("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);d=0;for(h=this.m.length;d<h;d++)for(m=this.m[d],b=0,f=m.G.length;b<f;b++)k=m.G[b],k.Ga=this.k.xk(k.id),k.pc=this.k.pl(k.Ga),this.Hf=this.Hf||this.k.Vg(k.Ga);d=0;for(h=this.Ec.length;d<h;d++){r=this.Ec[d];b=0;for(f=r.G.length;b<f;b++)k=r.G[b],k.Ga=this.k.xk(k.id),k.pc=this.k.pl(k.Ga);r.Lc();b=0;for(f=r.H.length;b<f;b++){e=
r.H[b];m=0;for(c=e.G.length;m<c;m++)k=e.G[m],k.Ga=this.k.xk(k.id),k.pc=this.k.pl(k.Ga),this.Hf=this.Hf||this.k.Vg(k.Ga);e.Lc()}}}else{if(0<this.kb&&this.Tc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.V=AppMobi.canvas.getContext("2d");try{this.V.samplingMode=this.J?"smooth":"sharp",this.V.globalScale=1,this.V.HTML5CompatibilityMode=!0,this.V.imageSmoothingEnabled=this.J}catch(u){}0!==this.width&&0!==this.height&&(this.V.width=this.width,
this.V.height=this.height)}this.V||(this.Cb?(d={antialias:!!this.J,alpha:h},this.V=this.canvas.getContext("2d",d)):(d={alpha:h},this.V=this.canvas.getContext("2d",d)),this.V.webkitImageSmoothingEnabled=this.J,this.V.mozImageSmoothingEnabled=this.J,this.V.msImageSmoothingEnabled=this.J,this.V.imageSmoothingEnabled=this.J);this.ll=this.Ya=null}this.Xo=function(d){a.Rb(!1,d)};window==window.top||this.R||this.hi||this.df||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",
function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Cb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(y("Reloading for continuous preview"),this.ri="__c2_continuouspreview",this.dh=!0),this.jt&&!this.qd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.sf()});this.R||(d=function(a){if(cb(a)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.kb&&this.Vd&&1<this.devicePixelRatio&&this.setSize(this.La,this.Ka,!0);this.cp();this.xs();this.go();this.X={}};c.prototype.setSize=
function(a,d,h){var b=0,f=0,m=0,c=0,c=0,k=this.Ns&&this.Ks&&!navigator.standalone&&!this.R&&!this.Zb;k&&(d+=60);if(this.zg!==a||this.yg!==d||h){this.zg=a;this.yg=d;var r=this.kb,e=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.rg)&&!this.Zb;if(e||0!==this.kb||h)e&&0<this.xe&&(r=this.xe),h=this.devicePixelRatio,4<=r?(m=this.La/this.Ka,a/d>m?(m*=d,5===r?(c=m*h/this.La,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),m=this.La*c/h,c=this.Ka*
c/h,b=(a-m)/2,f=(d-c)/2,a=m,d=c):(b=(a-m)/2,a=m)):(c=a/m,5===r?(c=c*h/this.Ka,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),m=this.La*c/h,c=this.Ka*c/h,b=(a-m)/2,f=(d-c)/2,a=m):f=(d-c)/2,d=c),e&&!this.Ud&&(f=b=0)):this.Ud&&this.rg&&0===this.Tm&&(b=Math.floor((a-this.La)/2),f=Math.floor((d-this.Ka)/2),a=this.La,d=this.Ka),2>r&&(this.Of=h),this.Vd&&this.un&&1<h&&(1024<=a&&(a=1023),1024<=d&&(d=1023)),this.Fh=Math.round(a),this.Vf=Math.round(d),this.width=Math.round(a*h),this.height=Math.round(d*h),this.S=
!0,this.np?(this.F=this.width,this.D=this.height,this.Vb=!0):this.width<this.La&&this.height<this.Ka||1===r?(this.F=this.width,this.D=this.height,this.Vb=!0):(this.F=this.La,this.D=this.Ka,this.Vb=!1,2===r?(m=this.La/this.Ka,r=this.zg/this.yg,r<m?this.F=this.D*r:r>m&&(this.D=this.F/r)):3===r&&(m=this.La/this.Ka,r=this.zg/this.yg,r>m?this.F=this.D*r:r<m&&(this.D=this.F/r))),this.Ch&&!this.R&&(jQuery(this.Ch).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(f)+
"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*h),this.canvas.height=Math.round(d*h),this.lc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.Vd&&!this.R&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.Ya&&
(this.Ya.width=Math.round(a*h),this.Ya.height=Math.round(d*h),this.Ya.style.width=this.Fh+"px",this.Ya.style.height=this.Vf+"px"),this.k&&this.k.Oe(Math.round(a*h),Math.round(d*h)),this.Tc&&this.V&&(this.V.width=Math.round(a),this.V.height=Math.round(d)),this.V&&(this.V.webkitImageSmoothingEnabled=this.J,this.V.mozImageSmoothingEnabled=this.J,this.V.msImageSmoothingEnabled=this.J,this.V.imageSmoothingEnabled=this.J),this.cp(),this.R||!k&&!this.Sk||window.setTimeout(function(){window.scrollTo(0,1)},
100)}};c.prototype.cp=function(){if(this.vq&&0!==this.kl){var a="portrait";2===this.kl&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",d)}}};c.prototype.Xs=function(){this.k.Cq();
this.Rk=!0;var a,d,h;a=0;for(d=this.m.length;a<d;a++)h=this.m[a],h.Og&&h.Og()};c.prototype.Ys=function(){this.Rk=!1;var a,d,h;a=0;for(d=this.m.length;a<d;a++)h=this.m[a],h.Ei&&h.Ei()};c.prototype.vo=function(){if(!this.R){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.rg)&&!this.Zb?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Ya).css(a)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var d;if(a&&!this.sg)for(y("[Construct 2] Suspending"),this.sg=!0,-1!==this.sl&&f&&f(this.sl),-1!==this.Hl&&clearTimeout(this.Hl),a=0,d=this.eh.length;a<d;a++)this.eh[a](!0);else if(!a&&this.sg){y("[Construct 2] Resuming");this.sg=!1;this.mi=Pa();this.Ee=Pa();a=this.Lg=this.Uh=0;for(d=this.eh.length;a<d;a++)this.eh[a](!1);this.Rb(!1)}};c.prototype.pq=function(a){this.eh.push(a)};
c.prototype.Ed=function(a){return this.Ci[a]};c.prototype.ti=function(a){a&&a.project||da("Project model unavailable");a=a.project;this.name=a[0];this.Rm=a[1];this.kb=a[12];this.Tm=a[12];this.La=a[10];this.Ka=a[11];this.po=this.La/2;this.qo=this.Ka/2;this.R&&!this.lc&&(4<=a[12]||0===a[12])&&(y("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Tm=this.kb=3);this.Rl=a[18];this.$d=a[19];if(0===this.$d){var d=new Image;d.crossOrigin=
"anonymous";d.src="loading-logo.png";this.Zd={xi:d}}else if(4===this.$d){d=new Image;d.src="";var h=new Image;h.src="";var b=new Image;b.src="";var f=new Image;f.src="";var m=new Image;m.src="";var c=new Image;c.src="";var k=new Image;k.src="";var r=new Image;r.src="";var e=new Image;e.src="";var q=new Image;q.src="";var u=new Image;u.src="";var g=new Image;g.src="";this.Zd={xi:[d,h,b,f],ot:[m,c,k,r],Zt:[e,q,u,g]}}this.Ng=a[21];this.Ci=ac();this.Zc=new X(this);d=0;for(h=a[2].length;d<h;d++)k=a[2][d],
b=this.Ed(k[0]),eb(k,b.prototype),r=new b(this),r.cj=k[1],r.Wd=k[2],r.co=k[9],r.O&&r.O(),this.plugins.push(r);this.Ci=ac();d=0;for(h=a[3].length;d<h;d++){k=a[3][d];m=this.Ed(k[1]);r=null;b=0;for(f=this.plugins.length;b<f;b++)if(this.plugins[b]instanceof m){r=this.plugins[b];break}e=new r.pa(r);e.name=k[0];e.B=k[2];e.Kk=k[3].slice(0);e.Xt=k[3].length;e.wq=k[4];e.Vr=k[5];e.P=k[11];e.B?(e.Bi=[],e.kd=this.bg++,e.xa=null):(e.Bi=null,e.kd=-1,e.xa=[]);e.Oh=null;e.Ze=null;e.Nm=null;e.mc=!1;e.Jb=null;k[6]?
(e.lj=k[6][0],e.mj=k[6][1],e.hh=k[6][2]):(e.lj=null,e.mj=0,e.hh=0);k[7]?e.zb=k[7]:e.zb=null;e.index=d;e.d=[];e.Ih=[];e.yd=[new fb(e)];e.Qc=0;e.Rc=null;e.Gq=0;e.Cf=!0;e.vj=gb;e.Zr=hb;e.ds=ib;e.Y=jb;e.Xg=kb;e.Si=lb;e.Ne=mb;e.Vh=nb;e.rk=ob;e.tk=pb;e.zc=qb;e.vk=rb;e.Dh=new Wa(this.La,this.Ka);e.rh=!0;e.sh=!1;e.X={};e.toString=sb;e.Da=[];b=0;for(f=k[8].length;b<f;b++){q=k[8][b];u=this.Ed(q[1]);g=null;m=0;for(c=this.Da.length;m<c;m++)if(this.Da[m]instanceof u){g=this.Da[m];break}g||(g=new u(this),g.eo=
[],g.of=new ba,g.O&&g.O(),this.Da.push(g));-1===g.eo.indexOf(e)&&g.eo.push(e);m=new g.pa(g,e);m.name=q[0];m.P=q[2];m.O();e.Da.push(m)}e.global=k[9];e.Ok=k[10];e.G=[];b=0;for(f=k[12].length;b<f;b++)e.G.push({id:k[12][b][0],name:k[12][b][1],Ga:-1,pc:!1,Pa:!0,index:b});e.Cv=k[13];this.Rl&&!e.B&&!e.Ok&&r.Wd||e.O();e.name&&(this.types[e.name]=e);this.m.push(e);r.cj&&(b=new r.aa(e),b.uid=this.Ng++,b.yo=this.ho++,b.ze=0,b.gg=tb,b.toString=ub,b.M=k[14],b.O(),e.d.push(b),this.ud[b.uid.toString()]=b)}d=0;for(h=
a[4].length;d<h;d++)for(m=a[4][d],c=this.m[m[0]],b=1,f=m.length;b<f;b++)k=this.m[m[b]],k.xa.push(c),c.Bi.push(k);d=0;for(h=a[28].length;d<h;d++){m=a[28][d];c=[];b=0;for(f=m.length;b<f;b++)c.push(this.m[m[b]]);b=0;for(f=c.length;b<f;b++)c[b].mc=!0,c[b].Jb=c}if(0<this.bg)for(d=0,h=this.m.length;d<h;d++)if(k=this.m[d],!k.B&&k.xa.length){k.Oh=Array(this.bg);k.Ze=Array(this.bg);k.Nm=Array(this.bg);e=[];b=g=u=q=0;for(f=k.xa.length;b<f;b++)for(r=k.xa[b],k.Oh[r.kd]=q,q+=r.Xt,k.Ze[r.kd]=u,u+=r.wq,k.Nm[r.kd]=
g,g+=r.Vr,m=0,c=r.G.length;m<c;m++)e.push(qa({},r.G[m]));k.G=e.concat(k.G);b=0;for(f=k.G.length;b<f;b++)k.G[b].index=b}d=0;for(h=a[5].length;d<h;d++)k=a[5][d],b=new vb(this,k),this.Xk[b.name]=b,this.Ec.push(b);d=0;for(h=a[6].length;d<h;d++)k=a[6][d],b=new wb(this,k),this.kk[b.name]=b,this.jd.push(b);d=0;for(h=this.jd.length;d<h;d++)this.jd[d].Ca();d=0;for(h=this.jd.length;d<h;d++)this.jd[d].Nl();d=0;for(h=this.tj.length;d<h;d++)this.tj[d].Ca();S(this.tj);this.tq=a[7];this.ac=a[9];this.Of=1;this.ir=
a[13];this.J=a[14];this.Jj=a[15];this.Vt=a[17];this.kl=a[20];this.vq=0<this.kl;this.jt=a[22];this.Vb=this.np=a[23];this.$q=a[24];this.pt=a[25];this.ga=a[27]&&!this.od;this.gj=Date.now();S(this.Ci);this.Ds()};var r=!1;c.prototype.Sl=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){r=a.Dm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.lc?a.src=d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(d){a.src=d},function(h){r=a.Dm=!0;console&&
console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",a.src=d));this.Kf.push(a)};c.prototype.Tr=function(a){var d,h;d=0;for(h=this.Kf.length;d<h;d++)if(this.Kf[d].Dq===a)return this.Kf[d];return null};var k=0,x=!1;c.prototype.xs=function(){this.Pf&&(k=this.Pf.zv(this.tq))};c.prototype.zm=function(){var a=k,d=0,h=0,b=!0,f,m,h=0;for(f=this.Kf.length;h<f;h++){m=this.Kf[h];var c=m.ak;if(!c||0>=c)c=5E4;a+=c;m.src&&(m.complete||m.loaded)&&!m.Dm?
d+=c:b=!1}b&&this.pt&&this.Pf&&(x||(this.Pf.Av(),x=!0),h=this.Pf.mv(),d+=h,h<k&&(b=!1));this.Gc=0==a?1:d/a;return b};var u=!1;c.prototype.go=function(){if(this.V||this.k){var a=this.V||this.ll;this.Ya&&this.vo();this.Gc=0;this.En=-1;var h=this;if(this.zm()&&(4!==this.$d||u))this.ys();else{var b=Date.now()-this.gj;if(a){var f=this.width,m=this.height,c=this.devicePixelRatio;if(3>this.$d&&(this.Cb||500<=b&&this.En!=this.Gc)){a.clearRect(0,0,f,m);var b=f/2,m=m/2,f=0===this.$d&&this.Zd.xi.complete,k=
40*c,e=0,q=80*c,g;if(f){var l=this.Zd.xi,q=l.width*c;g=l.height*c;k=q/2;e=g/2;a.drawImage(l,P(b-k),P(m-e),q,g)}1>=this.$d?(b=P(b-k)+.5,m=P(m+(e+(f?12*c:0)))+.5,a.fillStyle=r?"red":"DodgerBlue",a.fillRect(b,m,Math.floor(q*this.Gc),6*c),a.strokeStyle="black",a.strokeRect(b,m,q,6*c),a.strokeStyle="white",a.strokeRect(b-1*c,m-1*c,q+2*c,8*c)):2===this.$d&&(a.font=this.lc?"12pt ArialMT":"12pt Arial",a.fillStyle=r?"#f00":"#999",a.Bv="middle",c=Math.round(100*this.Gc)+"%",f=a.measureText?a.measureText(c):
null,a.fillText(c,b-(f?f.width:0)/2,m));this.En=this.Gc}else if(4===this.$d){this.fr(a);d?d(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.Cb?10:100)}}};var q=-1,h="undefined"===typeof cr_is_preview?200:0,m=!0,N=!1,la=0,Q=0,T="undefined"===typeof cr_is_preview?3E3:0,B=null,z=null,K=0;c.prototype.fr=function(a){if(!u){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),f=this.Zd.xi,c=this.Zd.ot,k=this.Zd.Zt,e=0;4>e;++e)if(!f[e].complete||!c[e].complete||
!k[e].complete)return;0===K&&(q=Date.now());var e=Date.now(),g=!1,l=a,n,x;m||N?(a.clearRect(0,0,d,b),B&&B.width===d&&B.height===b||(B=document.createElement("canvas"),B.width=d,B.height=b,z=B.getContext("2d")),l=z,g=!0,m&&1===K&&(q=Date.now())):a.globalAlpha=1;l.fillStyle="#333333";l.fillRect(0,0,d,b);256<this.Vf?(n=Ba(.22*b,105,.6*d),x=.25*n,l.drawImage(p(c,n),.5*d-n/2,.2*b-x/2,n,x),x=n=Math.min(.395*b,.95*d),l.drawImage(p(f,n),.5*d-n/2,.485*b-x/2,n,x),n=Ba(.22*b,105,.6*d),x=.25*n,l.drawImage(p(k,
n),.5*d-n/2,.868*b-x/2,n,x),l.fillStyle="#3C3C3C",n=d,x=Math.max(.005*b,2),l.fillRect(0,.8*b-x/2,n,x),l.fillStyle=r?"red":"#E0FF65",n=d*this.Gc,l.fillRect(.5*d-n/2,.8*b-x/2,n,x)):(x=n=.55*b,l.drawImage(p(f,n),.5*d-n/2,.45*b-x/2,n,x),l.fillStyle="#3C3C3C",n=d,x=Math.max(.005*b,2),l.fillRect(0,.85*b-x/2,n,x),l.fillStyle=r?"red":"#E0FF65",n=d*this.Gc,l.fillRect(.5*d-n/2,.85*b-x/2,n,x));g&&(m?a.globalAlpha=0===K?0:Math.min((e-q)/300,1):N&&(a.globalAlpha=Math.max(1-(e-Q)/300,0)),a.drawImage(B,0,0,d,b));
m&&300<=e-q&&2<=K&&(m=!1,la=e);!m&&e-la>=T&&!N&&1<=this.Gc&&(N=!0,Q=e);if(N&&e-Q>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.Gc&&500>Date.now()-q)u=!0,N=m=!1,this.Zd=z=B=null;++K}};c.prototype.ys=function(){this.Ya&&(this.canvas.parentNode.removeChild(this.Ya),this.Ya=this.ll=null);this.gj=Date.now();this.Ee=Pa();var a,d,h;if(this.Rl)for(a=0,d=this.m.length;a<d;a++)h=this.m[a],h.B||h.Ok||!h.ka.Wd||h.O();else this.ug=!1;a=0;for(d=this.Ec.length;a<d;a++)this.Ec[a].Eq();2<=this.kb&&(a=this.La/
this.Ka,d=this.width/this.height,this.Of=2!==this.kb&&d>a||2===this.kb&&d<a?this.height/this.Ka:this.width/this.La);this.Rm?this.Xk[this.Rm].El():this.Ec[0].El();this.Rl||(this.lf=1,this.trigger(X.prototype.i.fm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.m.length;a<d;a++)h=this.m[a],h.Ws&&h.Ws();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Rb(!1);this.Tc&&AppMobi.webview.execute("onGameReady();")};
c.prototype.Rb=function(a,h,b){if(this.Z){var f=Pa();if(b||!this.sg||a){a||(d?this.sl=d(this.Xo):this.Hl=setTimeout(this.Xo,this.qd?1:16));h=h||f;var m=this.kb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Zb)||this.rg)&&0<this.xe&&(m=this.xe);0<m&&(!this.ki||window.self!==window.top)&&(m=window.innerHeight,this.zg===window.innerWidth&&this.yg===m||this.setSize(g(),n()));this.R||(b?(this.Qh||(this.ok=jQuery(this.canvas).css("margin")||
"0",this.Qh=!0),this.fi||this.Ud||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.Qh?(this.fi||this.Ud||jQuery(this.canvas).css("margin",this.ok),this.ok="",this.Qh=!1,0===this.kb&&this.setSize(Math.round(this.no/this.devicePixelRatio),Math.round(this.lo/this.devicePixelRatio),!0)):(this.no=this.width,this.lo=this.height));this.ug&&(b=this.zm(),
this.lf=this.Gc,b&&(this.ug=!1,this.Gc=1,this.trigger(X.prototype.i.fm,null)));this.Qs(h);!this.S&&!this.Cb||this.Rk||this.dh||a||(this.S=!1,this.k?this.Va():this.Kb(),this.ah&&(this.canvas&&this.canvas.toDataURL&&(this.Qo=this.canvas.toDataURL(this.ah[0],this.ah[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Qo),this.trigger(X.prototype.i.Ep,null)),this.ah=null));this.nv||(this.$c++,this.$f++,this.Uh++);this.Lg+=Pa()-f}}};c.prototype.Qs=function(a){var d,h,b,f,m,c,k,e;1E3<=a-this.Ee&&(this.Ee+=
1E3,1E3<=a-this.Ee&&(this.Ee=a),this.nk=this.Uh,this.Uh=0,this.$j=this.Lg,this.Lg=0);0!==this.mi&&(d=a-this.mi,0>d&&(d=0),this.Qd=d/1E3,.5<this.Qd?this.Qd=0:this.Qd>1/this.ao&&(this.Qd=1/this.ao));this.mi=a;this.Xe=this.Qd*this.jh;this.nc.add(this.Xe);this.zj.add(this.Qd);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.rg)&&!this.Zb;2<=this.kb||a&&0<this.xe?(d=this.La/this.Ka,h=this.width/this.height,b=this.kb,a&&0<this.xe&&(b=this.xe),
this.Of=2!==b&&h>d||2===b&&h<d?this.height/this.Ka:this.width/this.La,this.Z&&(this.Z.Co(this.Z.scrollX),this.Z.Do(this.Z.scrollY))):this.Of=this.Vd?this.devicePixelRatio:1;this.$a();this.pd++;this.Zc.Ct();this.pd--;this.$a();this.pd++;h=this.ko.Mc();a=0;for(d=h.length;a<d;a++)h[a].uv();a=0;for(d=this.m.length;a<d;a++)if(c=this.m[a],!c.B&&(c.Da.length||c.xa.length))for(h=0,b=c.d.length;h<b;h++)for(k=c.d[h],f=0,m=k.C.length;f<m;f++)k.C[f].Rb();a=0;for(d=this.m.length;a<d;a++)if(c=this.m[a],!c.B&&(c.Da.length||
c.xa.length))for(h=0,b=c.d.length;h<b;h++)for(k=c.d[h],f=0,m=k.C.length;f<m;f++)e=k.C[f],e.nt&&e.nt();h=this.el.Mc();a=0;for(d=h.length;a<d;a++)h[a].Rb();this.pd--;this.zs();for(a=0;this.Qf&&10>a++;)this.Jm(this.Qf);a=0;for(d=this.jd.length;a<d;a++)this.jd[a].Dk=!1;this.Z.ve&&this.Z.ve.Fa();S(this.Wi);this.pd++;a=0;for(d=this.m.length;a<d;a++)if(c=this.m[a],!c.B&&(c.Da.length||c.xa.length))for(h=0,b=c.d.length;h<b;h++)for(k=c.d[h],f=0,m=k.C.length;f<m;f++)e=k.C[f],e.oj&&e.oj();h=this.fl.Mc();a=0;
for(d=h.length;a<d;a++)h[a].oj();this.pd--};c.prototype.sf=function(){var a,d,h,b,f,c,m,k,e;a=0;for(d=this.m.length;a<d;a++)if(m=this.m[a],!m.B)for(h=0,b=m.d.length;h<b;h++)if(k=m.d[h],k.sf&&k.sf(),k.C)for(f=0,c=k.C.length;f<c;f++)e=k.C[f],e.sf&&e.sf()};c.prototype.Jm=function(a){var d=this.Z;this.Z.Ot();var h,b,f,m,c,k,e;if(this.k)for(h=0,b=this.m.length;h<b;h++)c=this.m[h],c.B||!c.uj||c.global&&0!==c.d.length||-1!==a.lg.indexOf(c)||c.uj();d==a&&S(this.Zc.Sb);S(this.Wi);a.El();h=0;for(b=this.m.length;h<
b;h++)if(c=this.m[h],c.global||c.ka.cj)for(a=0,d=c.d.length;a<d;a++)if(k=c.d[a],k.jl&&k.jl(),k.C)for(f=0,m=k.C.length;f<m;f++)e=k.C[f],e.jl&&e.jl();this.S=!0;this.$a()};c.prototype.pj=function(a){this.el.add(a)};c.prototype.Qt=function(a){this.fl.add(a)};c.prototype.Wh=function(a){return a&&-1!==a.Mg?this.Qd*a.Mg:this.Xe};c.prototype.Kb=function(){this.Z.Kb(this.V);this.Tc&&this.V.present()};c.prototype.Va=function(){this.ga&&(this.te=1,this.Z.se(this.k));this.Z.Va(this.k);this.k.tt()};c.prototype.nq=
function(a){a&&this.gk.push(a)};c.prototype.$m=function(a){a=a.toString();return this.ud.hasOwnProperty(a)?this.ud[a]:null};var F=[];c.prototype.Dd=function(a){var d,h;d=a.type.name;var b=null;if(this.re.hasOwnProperty(d)){if(b=this.re[d],b.contains(a))return}else b=F.length?F.pop():new ba,this.re[d]=b;b.add(a);this.Td=!0;if(a.mc)for(d=0,h=a.siblings.length;d<h;d++)this.Dd(a.siblings[d]);this.Nk&&b.If.push(a);this.Mk||(this.pd++,this.trigger(Object.getPrototypeOf(a.type.ka).i.Gp,a),this.pd--)};c.prototype.$a=
function(){if(this.Td){var a,d,h,b,f,c;this.Nk=!0;h=0;for(f=this.Cc.length;h<f;++h)for(a=this.Cc[h],d=a.type,d.d.push(a),b=0,c=d.xa.length;b<c;++b)d.xa[b].d.push(a),d.xa[b].Cf=!0;S(this.Cc);this.xp();Oa(this.re);this.Td=this.Nk=!1}};c.prototype.xp=function(){for(var a in this.re)this.re.hasOwnProperty(a)&&this.rp(this.re[a])};c.prototype.rp=function(a){var d=a.Mc(),h=d[0].type,b,f,c,m,k,e;Qa(h.d,a);h.Cf=!0;0===h.d.length&&(h.sh=!1);b=0;for(f=h.xa.length;b<f;++b)e=h.xa[b],Qa(e.d,a),e.Cf=!0;b=0;for(f=
this.Zc.Sb.length;b<f;++b)if(k=this.Zc.Sb[b],k.Qb.hasOwnProperty(h.index)&&Qa(k.Qb[h.index].Be,a),!h.B)for(c=0,m=h.xa.length;c<m;++c)e=h.xa[c],k.Qb.hasOwnProperty(e.index)&&Qa(k.Qb[e.index].Be,a);if(k=d[0].e){if(k.fc)for(c=k.d,b=0,f=c.length;b<f;++b)m=c[b],a.contains(m)&&(m.da(),k.Za.update(m,m.Gb,null),m.Gb.set(0,0,-1,-1));Qa(k.d,a);k.Yg(0)}for(b=0;b<d.length;++b)this.qp(d[b],h);a.clear();F.push(a);this.S=!0};c.prototype.qp=function(a,d){var h,b,f;h=0;for(b=this.gk.length;h<b;++h)this.gk[h](a);a.Nd&&
d.Dh.update(a,a.Nd,null);(h=a.e)&&h.vf(a,!0);if(a.C)for(h=0,b=a.C.length;h<b;++h)f=a.C[h],f.Le&&f.Le(),f.behavior.of.remove(a);this.ko.remove(a);this.el.remove(a);this.fl.remove(a);a.Le&&a.Le();this.ud.hasOwnProperty(a.uid.toString())&&delete this.ud[a.uid.toString()];this.Di--;100>d.Ih.length&&d.Ih.push(a)};var M=[];c.prototype.qe=function(a,d,h,b,f,c){var m,k,e,r;if(!a)return null;var q=this.m[a[1]],u=q.ka.Wd;if(this.ug&&u&&!q.Ok||u&&!this.k&&11===a[0][11])return null;var g=d;u||(d=null);var l;
q.Ih.length?(l=q.Ih.pop(),l.Ob=!0,q.ka.aa.call(l,q)):(l=new q.ka.aa(q),l.Ob=!1);!h||c||this.ud.hasOwnProperty(a[2].toString())?l.uid=this.Ng++:l.uid=a[2];this.ud[l.uid.toString()]=l;l.yo=this.ho++;l.ze=q.d.length;m=0;for(k=this.Cc.length;m<k;++m)this.Cc[m].type===q&&l.ze++;l.gg=tb;l.toString=ub;e=a[3];if(l.Ob)Oa(l.X);else{l.X={};if("undefined"!==typeof cr_is_preview)for(l.jn=[],l.jn.length=e.length,m=0,k=e.length;m<k;m++)l.jn[m]=e[m][1];l.Ha=[];l.Ha.length=e.length}m=0;for(k=e.length;m<k;m++)l.Ha[m]=
e[m][0];if(u){var n=a[0];l.x=ea(b)?n[0]:b;l.y=ea(f)?n[1]:f;l.z=n[2];l.width=n[3];l.height=n[4];l.depth=n[5];l.j=n[6];l.opacity=n[7];l.Ab=n[8];l.Bb=n[9];l.ab=n[10];m=n[11];!this.k&&q.G.length&&(l.ab=m);l.Rf=Za(l.ab);this.n&&$a(l,l.ab,this.n);if(l.Ob){m=0;for(k=n[12].length;m<k;m++)for(e=0,r=n[12][m].length;e<r;e++)l.za[m][e]=n[12][m][e];l.qa.set(0,0,0,0);l.Nd.set(0,0,-1,-1);l.Gb.set(0,0,-1,-1);l.eb.zf(l.qa);S(l.Pj)}else{l.za=n[12].slice(0);m=0;for(k=l.za.length;m<k;m++)l.za[m]=n[12][m].slice(0);l.T=
[];l.Fd=[];l.Fd.length=q.G.length;l.qa=new R(0,0,0,0);l.Nd=new R(0,0,-1,-1);l.Gb=new R(0,0,-1,-1);l.eb=new pa;l.Pj=[];l.ta=xb;l.qq=yb;l.hb=zb;l.da=Ab;l.kp=Bb;l.Ql=Cb;l.jc=Db}l.ih=!1;l.Tt=0;l.St=0;l.Rt=null;14===n.length&&(l.ih=!0,l.Tt=n[13][0],l.St=n[13][1],l.Rt=n[13][2]);m=0;for(k=q.G.length;m<k;m++)l.Fd[m]=!0;l.wd=!0;l.Lc=Eb;l.Lc();l.lp=!!l.T.length;l.yh=!0;l.Tj=!0;q.rh=!0;l.visible=!0;l.Mg=-1;l.e=d;l.Nc=d.d.length;l.te=0;"undefined"===typeof l.U&&(l.U=null);this.S=l.pe=!0}var x;S(M);m=0;for(k=
q.xa.length;m<k;m++)M.push.apply(M,q.xa[m].Da);M.push.apply(M,q.Da);if(l.Ob)for(m=0,k=M.length;m<k;m++){var N=M[m];x=l.C[m];x.Ob=!0;N.behavior.aa.call(x,N,l);n=a[4][m];e=0;for(r=n.length;e<r;e++)x.M[e]=n[e];x.O();N.behavior.of.add(l)}else for(l.C=[],m=0,k=M.length;m<k;m++)N=M[m],x=new N.behavior.aa(N,l),x.Ob=!1,x.M=a[4][m].slice(0),x.O(),l.C.push(x),N.behavior.of.add(l);n=a[5];if(l.Ob)for(m=0,k=n.length;m<k;m++)l.M[m]=n[m];else l.M=n.slice(0);this.Cc.push(l);this.Td=!0;d&&(d.Nf(l,!0),1!==d.Db||1!==
d.Eb)&&(q.sh=!0);this.Di++;if(q.mc){if(l.mc=!0,l.Ob?S(l.siblings):l.siblings=[],!h&&!c){m=0;for(k=q.Jb.length;m<k;m++)if(q.Jb[m]!==q){if(!q.Jb[m].Rc)return null;l.siblings.push(this.qe(q.Jb[m].Rc,g,!1,u?l.x:b,u?l.y:f,!0))}m=0;for(k=l.siblings.length;m<k;m++)for(l.siblings[m].siblings.push(l),e=0;e<k;e++)m!==e&&l.siblings[m].siblings.push(l.siblings[e])}}else l.mc=!1,l.siblings=null;l.O();m=0;for(k=l.C.length;m<k;m++)l.C[m].mt&&l.C[m].mt();return l};c.prototype.eg=function(a){var d,h;d=0;for(h=this.Z.H.length;d<
h;d++){var b=this.Z.H[d];if(bb(b.name,a))return b}return null};c.prototype.md=function(a){a=P(a);0>a&&(a=0);a>=this.Z.H.length&&(a=this.Z.H.length-1);return this.Z.H[a]};c.prototype.Yj=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Y().la=!0};c.prototype.Xg=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Xg()};c.prototype.Si=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Si()};c.prototype.Ne=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Ne()};c.prototype.hp=function(a){if(a.rh){var d,
h,b=a.d;d=0;for(h=b.length;d<h;++d)b[d].Ql();b=this.Cc;d=0;for(h=b.length;d<h;++d)b[d].type===a&&b[d].Ql();a.rh=!1}};c.prototype.Yr=function(a,d,h,b){var f,m,c=a?1!==a.Db||1!==a.Eb:!1;if(d.B)for(a=0,f=d.Bi.length;a<f;++a)m=d.Bi[a],c||m.sh?xa(b,m.d):(this.hp(m),m.Dh.Ui(h,b));else c||d.sh?xa(b,d.d):(this.hp(d),d.Dh.Ui(h,b))};c.prototype.fh=function(a,d,h){var b=a.Y(),f,m,c,k,e,r;if(b.la)for(b.la=!1,S(b.d),f=0,k=a.d.length;f<k;f++)c=a.d[f],c.da(),e=c.e.wa(d,h,!0),r=c.e.wa(d,h,!1),c.hb(e,r)&&b.d.push(c);
else{f=m=0;for(k=b.d.length;f<k;f++)c=b.d[f],c.da(),e=c.e.wa(d,h,!0),r=c.e.wa(d,h,!1),c.hb(e,r)&&(b.d[m]=b.d[f],m++);b.d.length=m}a.zc();return b.Ck()};c.prototype.Pt=function(a,d){if(!(a&&d&&a!==d&&a.pe&&d.pe))return!1;a.da();d.da();var h=a.e,b=d.e,f,m,c,k,e,r,q,l;if(h===b||h.Db===b.Db&&b.Eb===b.Eb&&h.scale===b.scale&&h.j===b.j&&h.rb===b.rb){if(!a.qa.Es(d.qa)||!a.eb.kn(d.eb)||a.ih&&d.ih)return!1;if(a.ih)return this.Uo(a,d);if(d.ih)return this.Uo(d,a);q=a.U&&!a.U.ef();f=d.U&&!d.U.ef();if(!q&&!f)return!0;
q?(a.U.Ue(a.width,a.height,a.j),q=a.U):(this.Jc.yf(a.eb,a.x,a.y,a.width,a.height),q=this.Jc);f?(d.U.Ue(d.width,d.height,d.j),l=d.U):(this.Jc.yf(d.eb,d.x,d.y,d.width,d.height),l=this.Jc);return q.mg(l,d.x-a.x,d.y-a.y)}q=a.U&&!a.U.ef();f=d.U&&!d.U.ef();q?(a.U.Ue(a.width,a.height,a.j),this.Jc.Ko(a.U)):this.Jc.yf(a.eb,a.x,a.y,a.width,a.height);q=this.Jc;f?(d.U.Ue(d.width,d.height,d.j),this.Gl.Ko(d.U)):this.Gl.yf(d.eb,d.x,d.y,d.width,d.height);l=this.Gl;f=0;for(m=q.Hc;f<m;f++)c=2*f,k=c+1,e=q.Ma[c],r=q.Ma[k],
q.Ma[c]=h.ba(e+a.x,r+a.y,!0),q.Ma[k]=h.ba(e+a.x,r+a.y,!1);q.da();f=0;for(m=l.Hc;f<m;f++)c=2*f,k=c+1,e=l.Ma[c],r=l.Ma[k],l.Ma[c]=b.ba(e+d.x,r+d.y,!0),l.Ma[k]=b.ba(e+d.x,r+d.y,!1);l.da();return q.mg(l,0,0)};var J=new pa;new R(0,0,0,0);var E=[];c.prototype.Uo=function(a,d){var h,b,f,m,c=d.qa,k=a.x,e=a.y;a.kv(c,E);var r=d.U&&!d.U.ef();h=0;for(b=E.length;h<b;++h)if(f=E[h],m=f.xv,c.Fs(m,k,e)&&(J.zf(m),J.offset(k,e),J.kn(d.eb)))if(r)if(d.U.Ue(d.width,d.height,d.j),f.ol){if(f.ol.mg(d.U,d.x-(k+m.left),d.y-
(e+m.top)))return S(E),!0}else{if(this.Jc.yf(J,0,0,m.right-m.left,m.bottom-m.top),this.Jc.mg(d.U,d.x,d.y))return S(E),!0}else if(f.ol){if(this.Jc.yf(d.eb,0,0,d.width,d.height),f.ol.mg(this.Jc,-(k+m.left),-(e+m.top)))return S(E),!0}else return S(E),!0;S(E);return!1};c.prototype.dp=function(a,d){if(!d)return!1;var h,b,f,m,c;h=0;for(b=a.Da.length;h<b;h++)if(a.Da[h].behavior instanceof d)return!0;if(!a.B)for(h=0,b=a.xa.length;h<b;h++)for(c=a.xa[h],f=0,m=c.Da.length;f<m;f++)if(c.Da[f].behavior instanceof
d)return!0;return!1};c.prototype.Ll=function(a){return this.dp(a,Tb.Cu)};c.prototype.Ml=function(a){return this.dp(a,Tb.Du)};c.prototype.Aq=function(a,d){var h,b,f;h=0;for(b=this.Wi.length;h<b;h++)if(f=this.Wi[h],f[0]==a&&f[1]==d||f[0]==d&&f[1]==a)return!0;return!1};var H=-1;c.prototype.trigger=function(a,d,h){if(!this.Z)return!1;var b=this.Z.ve;if(!b)return!1;var f=!1,m,c,k;H++;var e=b.fk;c=0;for(k=e.length;c<k;++c)m=this.$o(a,d,e[c],h),f=f||m;m=this.$o(a,d,b,h);H--;return f||m};c.prototype.$o=function(a,
d,h,b){var f=!1,m,c,k,e;if(d)for(k=this.Jl(a,d,d.type.name,h,b),f=f||k,e=d.type.xa,m=0,c=e.length;m<c;++m)k=this.Jl(a,d,e[m].name,h,b),f=f||k;else k=this.Jl(a,d,"system",h,b),f=f||k;return f};c.prototype.Jl=function(a,d,h,b,f){var m,c=!1,k=!1,k="undefined"!==typeof f,e=(k?b.Pm:b.bp)[h];if(!e)return c;var r=null;b=0;for(m=e.length;b<m;++b)if(e[b].method==a){r=e[b].Zf;break}if(!r)return c;var q;k?q=r[f]:q=r;if(!q)return null;b=0;for(m=q.length;b<m;b++)a=q[b][0],f=q[b][1],k=this.Sr(d,h,a,f),c=c||k;return c};
c.prototype.Sr=function(a,d,h,b){var f,m,c=!1;this.Kl++;var k=this.sb().ic;k&&this.Xg(k.ie);var e=1<this.Kl;this.Xg(h.ie);e&&this.xt();var r=this.Ti(h);r.ic=h;a&&(f=this.types[d].Y(),f.la=!1,S(f.d),f.d[0]=a,this.types[d].zc());a=!0;if(h.parent){d=r.To;for(f=h.parent;f;)d.push(f),f=f.parent;d.reverse();f=0;for(m=d.length;f<m;f++)if(!d[f].Et()){a=!1;break}}a&&(this.$f++,h.Fc?h.Dt(b):h.Fa(),c=c||r.De);this.Pi();e&&this.lt();this.Ne(h.ie);k&&this.Ne(k.ie);this.Td&&0===this.pd&&0===H&&!this.Pk&&this.$a();
this.Kl--;return c};c.prototype.Vm=function(){var a=this.sb();return a.ic.Ra[a.Qa]};c.prototype.xt=function(){this.wi++;this.wi>=this.bl.length&&this.bl.push([])};c.prototype.lt=function(){this.wi--};c.prototype.Wm=function(){return this.bl[this.wi]};c.prototype.Ti=function(a){this.Kh++;this.Kh>=this.jk.length&&this.jk.push(new Fb);var d=this.sb();d.reset(a);return d};c.prototype.Pi=function(){this.Kh--};c.prototype.sb=function(){return this.jk[this.Kh]};c.prototype.Xm=function(a,d){for(var h,b,f,
m,c,k;d;){h=0;for(b=d.uc.length;h<b;h++)if(k=d.uc[h],k instanceof Gb&&bb(a,k.name))return k;d=d.parent}h=0;for(b=this.jd.length;h<b;h++)for(c=this.jd[h],f=0,m=c.Rd.length;f<m;f++)if(k=c.Rd[f],k instanceof Gb&&bb(a,k.name))return k;return null};c.prototype.Ym=function(a){var d,h;d=0;for(h=this.Ec.length;d<h;d++)if(this.Ec[d].P===a)return this.Ec[d];return null};c.prototype.Yh=function(a){var d,h;d=0;for(h=this.m.length;d<h;d++)if(this.m[d].P===a)return this.m[d];return null};c.prototype.$r=function(a){var d,
h;d=0;for(h=this.Jd.length;d<h;d++)if(this.Jd[d].P===a)return this.Jd[d];return null};c.prototype.Iq=function(a,d){this.ah=[a,d];this.S=!0};c.prototype.zs=function(){var d=this,h=this.Bl,f=this.rd,m=this.ri,c=!1;this.Po&&(c=!0,h="__c2_continuouspreview",this.Po=!1);if(h.length){this.$a();f=this.It();if(l()&&!this.Cb)b(h,f,function(){y("Saved state to IndexedDB storage ("+f.length+" bytes)");d.rd=f;d.trigger(X.prototype.i.Fj,null);d.rd="";c&&e()},function(a){try{localStorage.setItem("__c2save_"+h,
f),y("Saved state to WebStorage ("+f.length+" bytes)"),d.rd=f,d.trigger(X.prototype.i.Fj,null),d.rd="",c&&e()}catch(b){y("Failed to save game state: "+a+"; "+b)}});else try{localStorage.setItem("__c2save_"+h,f),y("Saved state to WebStorage ("+f.length+" bytes)"),d.rd=f,this.trigger(X.prototype.i.Fj,null),d.rd="",c&&e()}catch(k){y("Error saving to WebStorage: "+k)}this.mb=this.ri=this.Bl=""}if(m.length){if(l()&&!this.Cb)a(m,function(a){a?(d.mb=a,y("Loaded state from IndexedDB storage ("+d.mb.length+
" bytes)")):(d.mb=localStorage.getItem("__c2save_"+m)||"",y("Loaded state from WebStorage ("+d.mb.length+" bytes)"));d.dh=!1;d.mb.length||d.trigger(X.prototype.i.Ej,null)},function(){d.mb=localStorage.getItem("__c2save_"+m)||"";y("Loaded state from WebStorage ("+d.mb.length+" bytes)");d.dh=!1;d.mb.length||d.trigger(X.prototype.i.Ej,null)});else{try{this.mb=localStorage.getItem("__c2save_"+m)||"",y("Loaded state from WebStorage ("+this.mb.length+" bytes)")}catch(r){this.mb=""}this.dh=!1;d.mb.length||
d.trigger(X.prototype.i.Ej,null)}this.Bl=this.ri=""}this.mb.length&&(this.$a(),this.Ps(this.mb),this.rd=this.mb,this.trigger(X.prototype.i.Qp,null),this.mb=this.rd="")};c.prototype.It=function(){var a,d,h,b,f,m,c,k={c2save:!0,version:1,rt:{time:this.nc.ca,walltime:this.zj.ca,timescale:this.jh,tickcount:this.$c,execcount:this.$f,next_uid:this.Ng,running_layout:this.Z.P,start_time_offset:Date.now()-this.gj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(d=this.m.length;a<d;a++)if(f=
this.m[a],!f.B&&!this.Ll(f)){m={instances:[]};Na(f.X)&&(m.ex=w(f.X));h=0;for(b=f.d.length;h<b;h++)m.instances.push(this.Al(f.d[h]));k.types[f.P.toString()]=m}a=0;for(d=this.Ec.length;a<d;a++)h=this.Ec[a],k.layouts[h.P.toString()]=h.wb();b=k.events.groups;a=0;for(d=this.Jd.length;a<d;a++)h=this.Jd[a],b[h.P.toString()]=this.Zh[h.ig].hg;d=k.events.cnds;for(c in this.Md)this.Md.hasOwnProperty(c)&&(a=this.Md[c],Na(a.X)&&(d[c]={ex:w(a.X)}));d=k.events.acts;for(c in this.Gd)this.Gd.hasOwnProperty(c)&&(a=
this.Gd[c],Na(a.X)&&(d[c]={ex:w(a.X)}));d=k.events.vars;for(c in this.Jf)this.Jf.hasOwnProperty(c)&&(a=this.Jf[c],a.ii||a.parent&&!a.tg||(d[c]=a.data));k.system=this.Zc.wb();return JSON.stringify(k)};c.prototype.zo=function(){var a,d,h,b,f,m;this.ud={};a=0;for(d=this.m.length;a<d;a++)if(h=this.m[a],!h.B)for(b=0,f=h.d.length;b<f;b++)m=h.d[b],this.ud[m.uid.toString()]=m};c.prototype.Ps=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.pg=!0;var d=a.rt;this.nc.reset();this.nc.ca=d.time;this.zj.reset();
this.zj.ca=d.walltime||0;this.jh=d.timescale;this.$c=d.tickcount;this.$f=d.execcount;this.gj=Date.now()-d.start_time_offset;var h=d.running_layout;if(h!==this.Z.P)if(h=this.Ym(h))this.Jm(h);else return;var b,f,m,c,k,e,r;e=a.types;for(f in e)if(e.hasOwnProperty(f)&&(c=this.Yh(parseInt(f,10)))&&!c.B&&!this.Ll(c)){e[f].ex?c.X=e[f].ex:Oa(c.X);k=c.d;m=e[f].instances;h=0;for(b=ja(k.length,m.length);h<b;h++)this.si(k[h],m[h]);h=m.length;for(b=k.length;h<b;h++)this.Dd(k[h]);h=k.length;for(b=m.length;h<b;h++){k=
null;if(c.ka.Wd&&(k=this.Z.Xh(m[h].w.l),!k))continue;k=this.qe(c.Rc,k,!1,0,0,!0);this.si(k,m[h])}c.Cf=!0}this.$a();this.zo();b=a.layouts;for(f in b)b.hasOwnProperty(f)&&(h=this.Ym(parseInt(f,10)))&&h.Mb(b[f]);b=a.events.groups;for(f in b)b.hasOwnProperty(f)&&(h=this.$r(parseInt(f,10)))&&this.Zh[h.ig]&&this.Zh[h.ig].Io(b[f]);h=a.events.cnds;for(f in this.Md)this.Md.hasOwnProperty(f)&&(h.hasOwnProperty(f)?this.Md[f].X=h[f].ex:this.Md[f].X={});h=a.events.acts;for(f in this.Gd)this.Gd.hasOwnProperty(f)&&
(h.hasOwnProperty(f)?this.Gd[f].X=h[f].ex:this.Gd[f].X={});h=a.events.vars;for(f in h)h.hasOwnProperty(f)&&this.Jf.hasOwnProperty(f)&&(this.Jf[f].data=h[f]);this.Ng=d.next_uid;this.pg=!1;h=0;for(b=this.Ph.length;h<b;++h)k=this.Ph[h],this.trigger(Object.getPrototypeOf(k.type.ka).i.Yl,k);S(this.Ph);this.Zc.Mb(a.system);h=0;for(b=this.m.length;h<b;h++)if(c=this.m[h],!c.B&&!this.Ll(c))for(f=0,a=c.d.length;f<a;f++){k=c.d[f];if(c.mc)for(e=k.gg(),S(k.siblings),d=0,m=c.Jb.length;d<m;d++)r=c.Jb[d],c!==r&&
k.siblings.push(r.d[e]);k.Hd&&k.Hd();if(k.C)for(d=0,m=k.C.length;d<m;d++)e=k.C[d],e.Hd&&e.Hd()}this.S=!0}};c.prototype.Al=function(a,d){var h,b,f,m,c;m=a.type;f=m.ka;var k={};d?k.c2=!0:k.uid=a.uid;Na(a.X)&&(k.ex=w(a.X));if(a.Ha&&a.Ha.length)for(k.ivs={},h=0,b=a.Ha.length;h<b;h++)k.ivs[a.type.Kk[h].toString()]=a.Ha[h];if(f.Wd){f={x:a.x,y:a.y,w:a.width,h:a.height,l:a.e.P,zi:a.jc()};0!==a.j&&(f.a=a.j);1!==a.opacity&&(f.o=a.opacity);.5!==a.Ab&&(f.hX=a.Ab);.5!==a.Bb&&(f.hY=a.Bb);0!==a.ab&&(f.bm=a.ab);
a.visible||(f.v=a.visible);a.pe||(f.ce=a.pe);-1!==a.Mg&&(f.mts=a.Mg);if(m.G.length)for(f.fx=[],h=0,b=m.G.length;h<b;h++)c=m.G[h],f.fx.push({name:c.name,active:a.Fd[c.index],params:a.za[c.index]});k.w=f}if(a.C&&a.C.length)for(k.behs={},h=0,b=a.C.length;h<b;h++)m=a.C[h],m.wb&&(k.behs[m.type.P.toString()]=m.wb());a.wb&&(k.data=a.wb());return k};c.prototype.bs=function(a,d){var h,b;h=0;for(b=a.Kk.length;h<b;h++)if(a.Kk[h]===d)return h;return-1};c.prototype.Xr=function(a,d){var h,b;h=0;for(b=a.C.length;h<
b;h++)if(a.C[h].type.P===d)return h;return-1};c.prototype.si=function(a,d,h){var b,f,m,c,k;k=a.type;c=k.ka;if(h){if(!d.c2)return}else a.uid=d.uid;d.ex?a.X=d.ex:Oa(a.X);if(f=d.ivs)for(b in f)f.hasOwnProperty(b)&&(m=this.bs(k,parseInt(b,10)),0>m||m>=a.Ha.length||(a.Ha[m]=f[b]));if(c.Wd){m=d.w;a.e.P!==m.l&&(f=a.e,a.e=this.Z.Xh(m.l),a.e?(f.vf(a,!0),a.e.Nf(a,!0),a.ta(),a.e.Yg(0)):(a.e=f,h||this.Dd(a)));a.x=m.x;a.y=m.y;a.width=m.w;a.height=m.h;a.Nc=m.zi;a.j=m.hasOwnProperty("a")?m.a:0;a.opacity=m.hasOwnProperty("o")?
m.o:1;a.Ab=m.hasOwnProperty("hX")?m.hX:.5;a.Bb=m.hasOwnProperty("hY")?m.hY:.5;a.visible=m.hasOwnProperty("v")?m.v:!0;a.pe=m.hasOwnProperty("ce")?m.ce:!0;a.Mg=m.hasOwnProperty("mts")?m.mts:-1;a.ab=m.hasOwnProperty("bm")?m.bm:0;a.Rf=Za(a.ab);this.n&&$a(a,a.ab,this.n);a.ta();if(m.hasOwnProperty("fx"))for(h=0,f=m.fx.length;h<f;h++)c=k.tk(m.fx[h].name),0>c||(a.Fd[c]=m.fx[h].active,a.za[c]=m.fx[h].params);a.Lc()}if(k=d.behs)for(b in k)k.hasOwnProperty(b)&&(h=this.Xr(a,parseInt(b,10)),0>h||a.C[h].Mb(k[b]));
d.data&&a.Mb(d.data)};Hb=function(a){return new c(document.getElementById(a))};Ib=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime=Hb;window.cr_createDCRuntime=Ib;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Oj=!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 g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,n){var c=window.cr_getC2Runtime();c&&c.Iq(g,n)};
window.cr_sizeCanvas=function(g,n){if(0!==g&&0!==n){var c=window.cr_getC2Runtime();c&&c.setSize(g,n)}};window.cr_setSuspended=function(g){var n=window.cr_getC2Runtime();n&&n.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.ve=null;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;this.scale=1;this.j=0;this.$e=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.ep=b[3];this.No=b[4];this.P=b[5];var c=b[6],k,e;this.H=[];this.lg=[];k=0;for(e=c.length;k<e;k++){var l=new Jb(this,c[k]);l.jo=k;this.H.push(l)}c=b[7];this.Ae=[];k=0;for(e=c.length;k<e;k++){var l=c[k],q=this.b.m[l[1]];q.Rc||(q.Rc=l);this.Ae.push(l);-1===this.lg.indexOf(q)&&this.lg.push(q)}this.G=[];this.T=[];this.wd=
!0;this.za=[];k=0;for(e=b[8].length;k<e;k++)this.G.push({id:b[8][k][0],name:b[8][k][1],Ga:-1,pc:!1,Pa:!0,index:k}),this.za.push(b[8][k][2].slice(0));this.Lc();this.fe=new R(0,0,1,1);this.tl=new R(0,0,1,1);this.ee={}}function n(a,b){return a.Nc-b.Nc}function c(a,b){this.Ja=a;this.b=a.b;this.d=[];this.scale=1;this.j=0;this.gd=!1;this.zd=new R(0,0,0,0);this.Yo=new pa;this.na=this.fa=this.oa=this.ea=0;this.Qe=!1;this.Cd=-1;this.Zj=0;this.name=b[0];this.index=b[1];this.P=b[2];this.visible=b[3];this.Ac=
b[4];this.Kc=b[5];this.Db=b[6];this.Eb=b[7];this.opacity=b[8];this.Th=b[9];this.fc=b[10];this.rb=b[11];this.ab=b[12];this.hr=b[13];this.Rf="source-over";this.ib=this.nb=0;this.Za=null;this.sd=p();this.Ic=!0;this.jf=new R(0,0,-1,-1);this.Ua=new R(0,0,-1,-1);this.fc&&(this.Za=new Xa(this.b.La,this.b.Ka));this.Xc=!1;var c=b[14],k,e;this.So=[];this.Xb=[];this.Uf=[];k=0;for(e=c.length;k<e;k++){var l=c[k],q=this.b.m[l[1]];q.Rc||(q.Rc=l,q.Gq=this.index);this.Xb.push(l);-1===this.Ja.lg.indexOf(q)&&this.Ja.lg.push(q)}wa(this.So,
this.Xb);this.G=[];this.T=[];this.wd=!0;this.za=[];k=0;for(e=b[15].length;k<e;k++)this.G.push({id:b[15][k][0],name:b[15][k][1],Ga:-1,pc:!1,Pa:!0,index:k}),this.za.push(b[15][k][2].slice(0));this.Lc();this.fe=new R(0,0,1,1);this.tl=new R(0,0,1,1)}function p(){return a.length?a.pop():[]}function l(d){S(d);a.push(d)}g.prototype.Ht=function(a){var b=a.type.P.toString();this.ee.hasOwnProperty(b)||(this.ee[b]=[]);this.ee[b].push(this.b.Al(a))};g.prototype.an=function(){var a=this.H[0];return!a.Kc&&1===
a.opacity&&!a.Th&&a.visible};g.prototype.Lc=function(){S(this.T);this.wd=!0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Pa&&(this.T.push(c),c.pc||(this.wd=!1))};g.prototype.sk=function(a){var b,c,k;b=0;for(c=this.G.length;b<c;b++)if(k=this.G[b],k.name===a)return k;return null};var t=[],b=!0;g.prototype.El=function(){this.No&&(this.ve=this.b.kk[this.No],this.ve.Nl());this.b.Z=this;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;var a,f,c,k,e,l,q;a=0;for(c=this.b.m.length;a<c;a++)if(f=
this.b.m[a],!f.B)for(e=f.d,f=0,k=e.length;f<k;f++)if(l=e[f],l.e){var h=l.e.jo;h>=this.H.length&&(h=this.H.length-1);l.e=this.H[h];-1===l.e.d.indexOf(l)&&l.e.d.push(l);l.e.Qe=!0}if(!b)for(a=0,c=this.H.length;a<c;++a)this.H[a].d.sort(n);S(t);this.xq();a=0;for(c=this.H.length;a<c;a++)l=this.H[a],l.Fq(),l.wj();e=!1;if(!this.$e){for(q in this.ee)if(this.ee.hasOwnProperty(q)&&(f=this.b.Yh(parseInt(q,10)))&&!f.B&&this.b.Ml(f)){k=this.ee[q];a=0;for(c=k.length;a<c;a++){l=null;if(f.ka.Wd&&(l=this.Xh(k[a].w.l),
!l))continue;l=this.b.qe(f.Rc,l,!1,0,0,!0);this.b.si(l,k[a]);e=!0;t.push(l)}S(k)}a=0;for(c=this.H.length;a<c;a++)this.H[a].d.sort(n),this.H[a].Qe=!0}e&&(this.b.$a(),this.b.zo());for(a=0;a<t.length;a++)if(l=t[a],l.type.mc)for(c=l.gg(),f=0,k=l.type.Jb.length;f<k;f++)q=l.type.Jb[f],l.type!==q&&(q.d.length>c?l.siblings.push(q.d[c]):q.Rc&&(e=this.b.qe(q.Rc,l.e,!0,l.x,l.y,!0),this.b.$a(),q.vj(),l.siblings.push(e),t.push(e)));a=0;for(c=this.Ae.length;a<c;a++)this.b.qe(this.Ae[a],null,!0);this.b.Qf=null;
this.b.$a();if(this.b.V&&!this.b.R)for(a=0,c=this.b.m.length;a<c;a++)q=this.b.m[a],!q.B&&q.d.length&&q.Qi&&q.Qi(this.b.V);if(this.b.pg)wa(this.b.Ph,t);else for(a=0,c=t.length;a<c;a++)l=t[a],this.b.trigger(Object.getPrototypeOf(l.type.ka).i.Yl,l);S(t);this.b.pg||this.b.trigger(X.prototype.i.em,null);this.$e=!1};g.prototype.Eq=function(){var a,b,c,k,e;b=a=0;for(c=this.Ae.length;a<c;a++)k=this.Ae[a],e=this.b.m[k[1]],e.global?e.mc||this.b.qe(k,null,!0):(this.Ae[b]=k,b++);va(this.Ae,b)};g.prototype.Ot=
function(){this.b.pg||this.b.trigger(X.prototype.i.Pp,null);this.b.Mk=!0;S(this.b.Zc.Sb);var a,f,c,k,e,l;if(!this.$e)for(a=0,f=this.H.length;a<f;a++)for(this.H[a].Pl(),e=this.H[a].d,c=0,k=e.length;c<k;c++)l=e[c],l.type.global||this.b.Ml(l.type)&&this.Ht(l);a=0;for(f=this.H.length;a<f;a++){e=this.H[a].d;c=0;for(k=e.length;c<k;c++)l=e[c],l.type.global||this.b.Dd(l);this.b.$a();S(e);this.H[a].Qe=!0}a=0;for(f=this.b.m.length;a<f;a++)if(e=this.b.m[a],!(e.global||e.ka.Wd||e.ka.cj||e.B)){c=0;for(k=e.d.length;c<
k;c++)this.b.Dd(e.d[c]);this.b.$a()}b=!1;this.b.Mk=!1};new R(0,0,0,0);g.prototype.Kb=function(a){var b,c=a,k=!1,e=!this.b.Vb;e&&(this.b.qi||(this.b.qi=document.createElement("canvas"),b=this.b.qi,b.width=this.b.F,b.height=this.b.D,this.b.Gn=b.getContext("2d"),k=!0),b=this.b.qi,c=this.b.Gn,b.width!==this.b.F&&(b.width=this.b.F,k=!0),b.height!==this.b.D&&(b.height=this.b.D,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.J,c.mozImageSmoothingEnabled=this.b.J,c.msImageSmoothingEnabled=this.b.J,c.imageSmoothingEnabled=
this.b.J));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Jj&&!this.an()&&c.clearRect(0,0,this.b.F,this.b.D);var l,q,k=0;for(l=this.H.length;k<l;k++)q=this.H[k],q.visible&&0<q.opacity&&11!==q.ab&&(q.d.length||!q.Kc)?q.Kb(c):q.wj();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.se=function(a){a.Ho(!0);this.b.Ea||(this.b.Ea=a.Ub(this.b.F,this.b.D,this.b.J));if(this.b.Ea.oe!==this.b.F||this.b.Ea.ne!==this.b.D)a.deleteTexture(this.b.Ea),this.b.Ea=a.Ub(this.b.F,this.b.D,
this.b.J);a.rc(this.b.Ea);this.b.Vb||a.Oe(this.b.F,this.b.D);var b,c;for(b=this.H.length-1;0<=b;--b)c=this.H[b],c.visible&&1===c.opacity&&c.wd&&0===c.ab&&(c.d.length||!c.Kc)?c.se(a):c.wj();a.Ho(!1)};g.prototype.Va=function(a){var b=0<this.T.length||this.b.Hf||!this.b.Vb||this.b.ga;if(b){this.b.Ea||(this.b.Ea=a.Ub(this.b.F,this.b.D,this.b.J));if(this.b.Ea.oe!==this.b.F||this.b.Ea.ne!==this.b.D)a.deleteTexture(this.b.Ea),this.b.Ea=a.Ub(this.b.F,this.b.D,this.b.J);a.rc(this.b.Ea);this.b.Vb||a.Oe(this.b.F,
this.b.D)}else this.b.Ea&&(a.rc(null),a.deleteTexture(this.b.Ea),this.b.Ea=null);this.b.Jj&&!this.an()&&a.clear(0,0,0,0);var c,k,e;c=0;for(k=this.H.length;c<k;c++)e=this.H[c],e.visible&&0<e.opacity&&(e.d.length||!e.Kc)?e.Va(a):e.wj();b&&(0===this.T.length||1===this.T.length&&this.b.Vb?(1===this.T.length?(b=this.T[0].index,a.Ib(this.T[0].Ga),a.xf(null,1/this.b.F,1/this.b.D,0,0,1,1,this.scale,this.j,0,0,this.b.F/2,this.b.D/2,this.b.nc.ca,this.za[b]),a.Ri(this.T[0].Ga)&&(this.b.S=!0)):a.Ib(0),this.b.Vb||
a.Oe(this.b.width,this.b.height),a.rc(null),a.Go(!1),a.he(1),a.Hb(this.b.Ea),a.Eo(),a.qc(),a.ec(),b=this.b.width/2,c=this.b.height/2,a.uf(-b,c,b,c,b,-c,-b,-c),a.Hb(null),a.Go(!0)):this.ul(a,null,null,null))};g.prototype.fg=function(){return 0<this.T.length||this.b.Hf||!this.b.Vb||this.b.ga?this.b.Ea:null};g.prototype.Zm=function(){var a=this.H[0].tb(),b,c,k;b=1;for(c=this.H.length;b<c;b++)k=this.H[b],(0!==k.Db||0!==k.Eb)&&k.tb()<a&&(a=k.tb());return a};g.prototype.Co=function(a){if(!this.ep){var b=
1/this.Zm()*this.b.F/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.S=!0)};g.prototype.Do=function(a){if(!this.ep){var b=1/this.Zm()*this.b.D/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.S=!0)};g.prototype.xq=function(){this.Co(this.scrollX);this.Do(this.scrollY)};g.prototype.ul=function(a,b,c,k){var e=c?c.T:b?b.T:this.T,l=1,q=0,h=0,m=0,g=this.b.F,n=this.b.D;c?(l=c.e.tb(),q=c.e.Lb(),h=c.e.ea,m=c.e.fa,g=c.e.oa,n=c.e.na):
b&&(l=b.tb(),q=b.Lb(),h=b.ea,m=b.fa,g=b.oa,n=b.na);var p=this.b.pk,t,w,z,K,F=0,M=1,J,E=this.b.F,H=this.b.D,v=E/2,ra=H/2,Z=b?b.fe:this.fe,C=b?b.tl:this.tl,D=0,U=0,G=0,A=0,I=E,ta=E,L=H,ua=H,ma=z=0;K=c?c.e.Lb():0;if(c){t=0;for(w=e.length;t<w;t++)z+=a.es(e[t].Ga),ma+=a.gs(e[t].Ga);A=c.qa;D=b.ba(A.left,A.top,!0,!0);G=b.ba(A.left,A.top,!1,!0);I=b.ba(A.right,A.bottom,!0,!0);L=b.ba(A.right,A.bottom,!1,!0);0!==K&&(t=b.ba(A.right,A.top,!0,!0),w=b.ba(A.right,A.top,!1,!0),U=b.ba(A.left,A.bottom,!0,!0),A=b.ba(A.left,
A.bottom,!1,!0),K=Math.min(D,I,t,U),I=Math.max(D,I,t,U),D=K,K=Math.min(G,L,w,A),L=Math.max(G,L,w,A),G=K);D-=z;G-=ma;I+=z;L+=ma;C.left=D/E;C.top=1-G/H;C.right=I/E;C.bottom=1-L/H;U=D=P(D);A=G=P(G);ta=I=na(I);ua=L=na(L);U-=z;A-=ma;ta+=z;ua+=ma;0>D&&(D=0);0>G&&(G=0);I>E&&(I=E);L>H&&(L=H);0>U&&(U=0);0>A&&(A=0);ta>E&&(ta=E);ua>H&&(ua=H);Z.left=D/E;Z.top=1-G/H;Z.right=I/E;Z.bottom=1-L/H}else Z.left=C.left=0,Z.top=C.top=0,Z.right=C.right=1,Z.bottom=C.bottom=1;ma=c&&(a.Vg(e[0].Ga)||0!==z||0!==ma||1!==c.opacity||
c.type.ka.co)||b&&!c&&1!==b.opacity;a.Eo();if(ma){p[F]||(p[F]=a.Ub(E,H,this.b.J));if(p[F].oe!==E||p[F].ne!==H)a.deleteTexture(p[F]),p[F]=a.Ub(E,H,this.b.J);a.Ib(0);a.rc(p[F]);J=ua-A;a.clearRect(U,H-A-J,ta-U,J);c?c.Va(a):(a.Hb(this.b.Ia),a.he(b.opacity),a.qc(),a.translate(-v,-ra),a.ec(),a.Wc(D,L,I,L,I,G,D,G,Z));C.left=C.top=0;C.right=C.bottom=1;c&&(K=Z.top,Z.top=Z.bottom,Z.bottom=K);F=1;M=0}a.he(1);z=e.length-1;var Ya=a.ql(e[z].Ga)||!b&&!c&&!this.b.Vb,Aa=0;t=0;for(w=e.length;t<w;t++){p[F]||(p[F]=a.Ub(E,
H,this.b.J));if(p[F].oe!==E||p[F].ne!==H)a.deleteTexture(p[F]),p[F]=a.Ub(E,H,this.b.J);a.Ib(e[t].Ga);Aa=e[t].index;a.Ri(e[t].Ga)&&(this.b.S=!0);0!=t||ma?(a.xf(k,1/E,1/H,C.left,C.top,C.right,C.bottom,l,q,h,m,(h+g)/2,(m+n)/2,this.b.nc.ca,c?c.za[Aa]:b?b.za[Aa]:this.za[Aa]),a.Hb(null),t!==z||Ya?(a.rc(p[F]),J=ua-A,K=H-A-J,a.clearRect(U,K,ta-U,J)):(c?a.ge(c.nb,c.ib):b&&a.ge(b.nb,b.ib),a.rc(k)),a.Hb(p[M]),a.qc(),a.translate(-v,-ra),a.ec(),a.Wc(D,L,I,L,I,G,D,G,Z),t!==z||Ya||a.Hb(null)):(a.rc(p[F]),J=ua-A,
K=H-A-J,a.clearRect(U,K,ta-U,J),c?(a.xf(k,1/c.width,1/c.height,C.left,C.top,C.right,C.bottom,l,q,h,m,(h+g)/2,(m+n)/2,this.b.nc.ca,c.za[Aa]),c.Va(a)):(a.xf(k,1/E,1/H,0,0,1,1,l,q,h,m,(h+g)/2,(m+n)/2,this.b.nc.ca,b?b.za[Aa]:this.za[Aa]),a.Hb(b?this.b.Ia:this.b.Ea),a.qc(),a.translate(-v,-ra),a.ec(),a.Wc(D,L,I,L,I,G,D,G,Z)),C.left=C.top=0,C.right=C.bottom=1,c&&!Ya&&(K=L,L=G,G=K));F=0===F?1:0;M=0===F?1:0}Ya&&(a.Ib(0),c?a.ge(c.nb,c.ib):b?a.ge(b.nb,b.ib):this.b.Vb||(a.Oe(this.b.width,this.b.height),v=this.b.width/
2,ra=this.b.height/2,G=D=0,I=this.b.width,L=this.b.height),a.rc(k),a.Hb(p[M]),a.qc(),a.translate(-v,-ra),a.ec(),c&&1===e.length&&!ma?a.Wc(D,G,I,G,I,L,D,L,Z):a.Wc(D,L,I,L,I,G,D,G,Z),a.Hb(null))};g.prototype.Xh=function(a){var b,c;b=0;for(c=this.H.length;b<c;b++)if(this.H[b].P===a)return this.H[b];return null};g.prototype.wb=function(){var a,b,c,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.$e,persist:this.ee,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=
this.G[a],k.fx.push({name:c.name,active:c.Pa,params:this.za[c.index]});a=0;for(b=this.H.length;a<b;a++)c=this.H[a],k.layers[c.P.toString()]=c.wb();return k};g.prototype.Mb=function(a){var b,c,k,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.ee=a.persist;"undefined"!==typeof a.fv&&(this.$e=a.fv);var l=a.fx;b=0;for(c=l.length;b<c;b++)if(k=this.sk(l[b].name))k.Pa=l[b].active,this.za[k.index]=l[b].params;this.Lc();b=a.layers;for(e in b)b.hasOwnProperty(e)&&
(a=this.Xh(parseInt(e,10)))&&a.Mb(b[e])};vb=g;c.prototype.Lc=function(){S(this.T);this.wd=!0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Pa&&(this.T.push(c),c.pc||(this.wd=!1))};c.prototype.sk=function(a){var b,c,k;b=0;for(c=this.G.length;b<c;b++)if(k=this.G[b],k.name===a)return k;return null};c.prototype.Fq=function(){var a,b,c,k,e,l;b=a=0;for(c=this.Xb.length;a<c;a++){k=this.Xb[a];e=this.b.m[k[1]];l=this.b.Ml(e);e=!0;if(!l||this.Ja.$e)k=this.b.qe(k,this,!0),t.push(k),k.type.global&&
(e=!1,this.Uf.push(k.uid));e&&(this.Xb[b]=this.Xb[a],b++)}this.Xb.length=b;this.b.$a();!this.b.k&&this.G.length&&(this.ab=this.hr);this.Rf=Za(this.ab);this.b.n&&$a(this,this.ab,this.b.n);this.Ic=!0};c.prototype.vf=function(a,b){var c=ya(this.d,a);0>c||(b&&this.fc&&a.Gb&&a.Gb.right>=a.Gb.left&&(a.da(),this.Za.update(a,a.Gb,null),a.Gb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(sa(this.d,c),this.Yg(c)),this.Ic=!0)};c.prototype.Nf=function(a,b){a.Nc=this.d.length;this.d.push(a);b&&this.fc&&a.Gb&&
a.ta();this.Ic=!0};c.prototype.qt=function(a){this.d.unshift(a);this.Yg(0)};c.prototype.Vs=function(a,b,c){var k=a.jc();b=b.jc();sa(this.d,k);k<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Yg(k<b?k:b)};c.prototype.Yg=function(a){-1===this.Cd?this.Cd=a:a<this.Cd&&(this.Cd=a);this.Ic=this.Qe=!0};c.prototype.Pl=function(){if(this.Qe){-1===this.Cd&&(this.Cd=0);var a,b,c;if(this.fc)for(a=this.Cd,b=this.d.length;a<b;++a)c=this.d[a],c.Nc=a,this.Za.Rs(c.Gb);else for(a=this.Cd,
b=this.d.length;a<b;++a)this.d[a].Nc=a;this.Qe=!1;this.Cd=-1}};c.prototype.tb=function(a){return this.cs()*(this.b.Vb||a?this.b.Of:1)};c.prototype.cs=function(){return(this.scale*this.Ja.scale-1)*this.rb+1};c.prototype.Lb=function(){return this.gd?0:Ea(this.Ja.j+this.j)};var a=[],e=[],w=[];c.prototype.wk=function(){this.Pl();this.Za.Ui(this.ea,this.fa,this.oa,this.na,w);if(!w.length)return p();if(1===w.length){var a=p();wa(a,w[0]);S(w);return a}for(var b=!0;1<w.length;){for(var a=w,c=void 0,k=void 0,
g=void 0,n=void 0,q=void 0,c=0,k=a.length;c<k-1;c+=2){var g=a[c],n=a[c+1],q=p(),h=g,m=n,N=q,t=0,Q=0,T=0,B=h.length,z=m.length,K=void 0,F=void 0;for(N.length=B+z;t<B&&Q<z;++T)K=h[t],F=m[Q],K.Nc<F.Nc?(N[T]=K,++t):(N[T]=F,++Q);for(;t<B;++t,++T)N[T]=h[t];for(;Q<z;++Q,++T)N[T]=m[Q];b||(l(g),l(n));e.push(q)}1===k%2&&(b?(g=p(),wa(g,a[k-1]),e.push(g)):e.push(a[k-1]));wa(a,e);S(e);b=!1}a=w[0];S(w);return a};c.prototype.Kb=function(a){this.Xc=this.Th||1!==this.opacity||0!==this.ab;var b=this.b.canvas,c=a,k=
!1;this.Xc&&(this.b.pi||(this.b.pi=document.createElement("canvas"),b=this.b.pi,b.width=this.b.F,b.height=this.b.D,this.b.Fn=b.getContext("2d"),k=!0),b=this.b.pi,c=this.b.Fn,b.width!==this.b.F&&(b.width=this.b.F,k=!0),b.height!==this.b.D&&(b.height=this.b.D,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.J,c.mozImageSmoothingEnabled=this.b.J,c.msImageSmoothingEnabled=this.b.J,c.imageSmoothingEnabled=this.b.J),this.Kc&&c.clearRect(0,0,this.b.F,this.b.D));c.globalAlpha=1;c.globalCompositeOperation="source-over";
this.Kc||(c.fillStyle="rgb("+this.Ac[0]+","+this.Ac[1]+","+this.Ac[2]+")",c.fillRect(0,0,this.b.F,this.b.D));c.save();this.gd=!0;var k=this.wa(0,0,!0,!0),e=this.wa(0,0,!1,!0);this.gd=!1;this.b.ac&&(k=Math.round(k),e=Math.round(e));this.Yi(k,e,c);var g=this.tb();c.scale(g,g);c.translate(-k,-e);this.fc?(this.Ua.left=this.Za.xb(this.ea),this.Ua.top=this.Za.yb(this.fa),this.Ua.right=this.Za.xb(this.oa),this.Ua.bottom=this.Za.yb(this.na),this.Ic||!this.Ua.Xf(this.jf)?(l(this.sd),k=this.wk(),this.Ic=!1,
this.jf.Sf(this.Ua)):k=this.sd):k=this.d;for(var q,h=null,e=0,g=k.length;e<g;++e)q=k[e],q!==h&&(this.br(q,c),h=q);this.fc&&(this.sd=k);c.restore();this.Xc&&(a.globalCompositeOperation=this.Rf,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};c.prototype.br=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.da();var c=a.qa;c.right<this.ea||c.bottom<this.fa||c.left>this.oa||c.top>this.na||(b.globalCompositeOperation=a.Rf,a.Kb(b))}};c.prototype.wj=function(){this.gd=!0;var a=this.wa(0,0,!0,!0),b=
this.wa(0,0,!1,!0);this.gd=!1;this.b.ac&&(a=Math.round(a),b=Math.round(b));this.Yi(a,b,null)};c.prototype.Yi=function(a,b,c){var k=this.tb();this.ea=a;this.fa=b;this.oa=a+1/k*this.b.F;this.na=b+1/k*this.b.D;a=this.Lb();0!==a&&(c&&(c.translate(this.b.F/2,this.b.D/2),c.rotate(-a),c.translate(this.b.F/-2,this.b.D/-2)),this.zd.set(this.ea,this.fa,this.oa,this.na),this.zd.offset((this.ea+this.oa)/-2,(this.fa+this.na)/-2),this.Yo.Lo(this.zd,a),this.Yo.Cm(this.zd),this.zd.offset((this.ea+this.oa)/2,(this.fa+
this.na)/2),this.ea=this.zd.left,this.fa=this.zd.top,this.oa=this.zd.right,this.na=this.zd.bottom)};c.prototype.se=function(a){if(this.Xc=this.Th){this.b.Ia||(this.b.Ia=a.Ub(this.b.F,this.b.D,this.b.J));if(this.b.Ia.oe!==this.b.F||this.b.Ia.ne!==this.b.D)a.deleteTexture(this.b.Ia),this.b.Ia=a.Ub(this.b.F,this.b.D,this.b.J);a.rc(this.b.Ia)}this.gd=!0;var b=this.wa(0,0,!0,!0),c=this.wa(0,0,!1,!0);this.gd=!1;this.b.ac&&(b=Math.round(b),c=Math.round(c));this.Yi(b,c,null);b=this.tb();a.qc();a.scale(b,
b);a.Zi(-this.Lb());a.translate((this.ea+this.oa)/-2,(this.fa+this.na)/-2);a.ec();this.fc?(this.Ua.left=this.Za.xb(this.ea),this.Ua.top=this.Za.yb(this.fa),this.Ua.right=this.Za.xb(this.oa),this.Ua.bottom=this.Za.yb(this.na),this.Ic||!this.Ua.Xf(this.jf)?(l(this.sd),b=this.wk(),this.Ic=!1,this.jf.Sf(this.Ua)):b=this.sd):b=this.d;for(var k,e=null,c=b.length-1;0<=c;--c)k=b[c],k!==e&&(this.dr(b[c],a),e=k);this.fc&&(this.sd=b);this.Kc||(this.Zj=this.b.te++,a.aj(this.Zj),a.Fo(1,1,1),a.Sm(),a.zt())};c.prototype.Va=
function(a){var b=0,c=0;if(this.Xc=this.Th||1!==this.opacity||0<this.T.length||0!==this.ab){this.b.Ia||(this.b.Ia=a.Ub(this.b.F,this.b.D,this.b.J));if(this.b.Ia.oe!==this.b.F||this.b.Ia.ne!==this.b.D)a.deleteTexture(this.b.Ia),this.b.Ia=a.Ub(this.b.F,this.b.D,this.b.J);a.rc(this.b.Ia);this.Kc&&a.clear(0,0,0,0)}this.Kc||(this.b.ga?(a.aj(this.Zj),a.Fo(this.Ac[0]/255,this.Ac[1]/255,this.Ac[2]/255),a.Sm(),a.Jt()):a.clear(this.Ac[0]/255,this.Ac[1]/255,this.Ac[2]/255,1));this.gd=!0;var k=this.wa(0,0,!0,
!0),b=this.wa(0,0,!1,!0);this.gd=!1;this.b.ac&&(k=Math.round(k),b=Math.round(b));this.Yi(k,b,null);k=this.tb();a.qc();a.scale(k,k);a.Zi(-this.Lb());a.translate((this.ea+this.oa)/-2,(this.fa+this.na)/-2);a.ec();this.fc?(this.Ua.left=this.Za.xb(this.ea),this.Ua.top=this.Za.yb(this.fa),this.Ua.right=this.Za.xb(this.oa),this.Ua.bottom=this.Za.yb(this.na),this.Ic||!this.Ua.Xf(this.jf)?(l(this.sd),b=this.wk(),this.Ic=!1,this.jf.Sf(this.Ua)):b=this.sd):b=this.d;var e,g,q=null,c=0;for(e=b.length;c<e;++c)g=
b[c],g!==q&&(this.cr(b[c],a),q=g);this.fc&&(this.sd=b);this.Xc&&(b=this.T.length?this.T[0].Ga:0,c=this.T.length?this.T[0].index:0,0===this.T.length||1===this.T.length&&!a.ql(b)&&1===this.opacity?(1===this.T.length?(a.Ib(b),a.xf(this.Ja.fg(),1/this.b.F,1/this.b.D,0,0,1,1,k,this.Lb(),this.ea,this.fa,(this.ea+this.oa)/2,(this.fa+this.na)/2,this.b.nc.ca,this.za[c]),a.Ri(b)&&(this.b.S=!0)):a.Ib(0),a.rc(this.Ja.fg()),a.he(this.opacity),a.Hb(this.b.Ia),a.ge(this.nb,this.ib),a.qc(),a.ec(),k=this.b.F/2,b=
this.b.D/2,a.uf(-k,b,k,b,k,-b,-k,-b),a.Hb(null)):this.Ja.ul(a,this,null,this.Ja.fg()))};c.prototype.cr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.da();var c=a.qa;c.right<this.ea||c.bottom<this.fa||c.left>this.oa||c.top>this.na||(b.aj(a.te),a.lp?this.er(a,b):(b.Ib(0),b.ge(a.nb,a.ib),a.Va(b)))}};c.prototype.dr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.da();var c=a.qa;c.right<this.ea||c.bottom<this.fa||c.left>this.oa||c.top>this.na||(a.te=this.b.te++,0===a.ab&&1===a.opacity&&
a.wd&&a.se&&(b.aj(a.te),a.se(b)))}};c.prototype.er=function(a,b){var c=a.T[0].Ga,k=a.T[0].index,e=this.tb();if(1!==a.T.length||b.ql(c)||b.ut(c)||(a.j||a.e.Lb())&&b.Vg(c)||1!==a.opacity||a.type.ka.co)this.Ja.ul(b,this,a,this.Xc?this.b.Ia:this.Ja.fg()),b.qc(),b.scale(e,e),b.Zi(-this.Lb()),b.translate((this.ea+this.oa)/-2,(this.fa+this.na)/-2),b.ec();else{b.Ib(c);b.ge(a.nb,a.ib);b.Ri(c)&&(this.b.S=!0);var l=0,q=0,h=0,m=0;b.Vg(c)&&(c=a.qa,l=this.ba(c.left,c.top,!0,!0),q=this.ba(c.left,c.top,!1,!0),h=
this.ba(c.right,c.bottom,!0,!0),c=this.ba(c.right,c.bottom,!1,!0),l=l/windowWidth,q=1-q/windowHeight,h=h/windowWidth,m=1-c/windowHeight);b.xf(this.Xc?this.b.Ia:this.Ja.fg(),1/a.width,1/a.height,l,q,h,m,e,this.Lb(),this.ea,this.fa,(this.ea+this.oa)/2,(this.fa+this.na)/2,this.b.nc.ca,a.za[k]);a.Va(b)}};c.prototype.wa=function(a,b,c,k){var e=this.b.devicePixelRatio;this.b.Vd&&(a*=e,b*=e);var e=this.b.po,l=this.b.qo,e=(this.Ja.scrollX-e)*this.Db+e,l=(this.Ja.scrollY-l)*this.Eb+l,q=e,h=l,m=1/this.tb(!k);
k?(q-=this.b.F*m/2,h-=this.b.D*m/2):(q-=this.b.width*m/2,h-=this.b.height*m/2);q+=a*m;h+=b*m;b=this.Lb();0!==b&&(q-=e,h-=l,a=Math.cos(b),b=Math.sin(b),k=q*a-h*b,h=h*a+q*b,q=k+e,h+=l);return c?q:h};c.prototype.ba=function(a,b,c,e){var l=this.b.po,g=this.b.qo,q=(this.Ja.scrollX-l)*this.Db+l,h=(this.Ja.scrollY-g)*this.Eb+g,g=q,l=h,m=this.Lb();if(0!==m){a-=q;b-=h;var n=Math.cos(-m),m=Math.sin(-m),p=a*n-b*m;b=b*n+a*m;a=p+q;b+=h}q=1/this.tb(!e);e?(g-=this.b.F*q/2,l-=this.b.D*q/2):(g-=this.b.width*q/2,l-=
this.b.height*q/2);g=(a-g)/q;l=(b-l)/q;a=this.b.devicePixelRatio;this.b.Vd&&!e&&(g/=a,l/=a);return c?g:l};c.prototype.wb=function(){var a,b,c,e={s:this.scale,a:this.j,vl:this.ea,vt:this.fa,vr:this.oa,vb:this.na,v:this.visible,bc:this.Ac,t:this.Kc,px:this.Db,py:this.Eb,o:this.opacity,zr:this.rb,fx:[],cg:this.Uf,instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],e.fx.push({name:c.name,active:c.Pa,params:this.za[c.index]});return e};c.prototype.Mb=function(a){var b,c,e;this.scale=a.s;this.j=a.a;
this.ea=a.vl;this.fa=a.vt;this.oa=a.vr;this.na=a.vb;this.visible=a.v;this.Ac=a.bc;this.Kc=a.t;this.Db=a.px;this.Eb=a.py;this.opacity=a.o;this.rb=a.zr;this.Uf=a.cg||[];wa(this.Xb,this.So);var l=new ba;b=0;for(e=this.Uf.length;b<e;++b)l.add(this.Uf[b]);c=b=0;for(e=this.Xb.length;b<e;++b)l.contains(this.Xb[b][2])||(this.Xb[c]=this.Xb[b],++c);va(this.Xb,c);c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=this.sk(c[b].name))a.Pa=c[b].active,this.za[a.index]=c[b].params;this.Lc();this.d.sort(n);this.Qe=!0};Jb=c})();
(function(){function g(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function n(a,b){return a.index-b.index}function c(a){var b,d,c,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);e=x[a.length];b=0;for(d=e.length;b<d;b++)if(c=e[b],g(a,c))return c;e.push(a);return a}
function p(a,b){this.b=a;this.bp={};this.Pm={};this.Dk=!1;this.dn=new ba;this.fk=[];this.Kj=[];this.name=b[0];var d=b[1];this.Rd=[];var c,e;c=0;for(e=d.length;c<e;c++)this.gn(d[c],null,this.Rd)}function l(a){this.type=a;this.d=[];this.Q=[];this.la=!0}function t(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ya=[];this.ie=[];this.bn=this.qj=this.Il=this.di=this.group=this.Ro=!1;this.Ra=[];this.xc=[];this.uc=[];this.ig="";this.hg=this.di=this.group=!1;this.Eh=null;d[1]&&(this.ig=d[1][1].toLowerCase(),
this.group=!0,this.di=!!d[1][0],this.Eh=[],this.hg=this.di,this.b.Jd.push(this),this.b.Zh[this.ig]=this);this.Fc=d[2];this.P=d[4];this.group||(this.b.Bm[this.P.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var e=new Kb(this,c[a]);e.index=a;this.Ra.push(e);this.xm(e.type)}c=d[6];a=0;for(b=c.length;a<b;a++)e=new Lb(this,c[a]),e.index=a,this.xc.push(e);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.gn(d[a],this,this.uc);this.ji=!1;this.Ra.length&&(this.ji=null==this.Ra[0].type&&
this.Ra[0].Wa==X.prototype.i.tp)}function b(a,b){var d,c,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.mc))for(d=0,c=a.Jb.length;d<c;d++)e=a.Jb[d],a!==e&&-1===b.indexOf(e)&&b.push(e)}function a(a,b){this.Tb=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.Aa=[];this.X={};this.index=-1;this.Lf=!1;this.Wa=this.b.Ed(b[1]);this.trigger=0<b[3];this.Om=2===b[3];this.Lk=b[5];this.Os=b[6];this.P=b[7];this.b.Md[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Fa=this.zl,this.me=null,this.Bc=-1):(this.type=this.b.m[b[0]],
this.Fa=this.Os?this.Ft:this.yl,b[2]?(this.me=this.type.Vh(b[2]),this.Bc=this.type.rk(b[2])):(this.me=null,this.Bc=-1),this.Tb.parent&&this.Tb.parent.bj());this.Om&&(this.Fa=this.Gt);if(10===b.length){var d,c,e=b[9];d=0;for(c=e.length;d<c;d++){var k=new Mb(this,e[d]);this.K.push(k)}this.Aa.length=e.length}}function e(a,b){this.Tb=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.Aa=[];this.X={};this.index=-1;this.Lf=!1;this.Wa=this.b.Ed(b[1]);-1===b[0]?(this.type=null,this.Fa=this.zl,this.me=null,this.Bc=
-1):(this.type=this.b.m[b[0]],this.Fa=this.yl,b[2]?(this.me=this.type.Vh(b[2]),this.Bc=this.type.rk(b[2])):(this.me=null,this.Bc=-1));this.P=b[3];this.b.Gd[this.P.toString()]=this;if(6===b.length){var d,c,e=b[5];d=0;for(c=e.length;d<c;d++){var k=new Mb(this,e[d]);this.K.push(k)}this.Aa.length=e.length}}function w(){q++;u.length===q&&u.push(new Nb);return u[q]}function d(a,b){this.ja=a;this.Tb=a.Tb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Sc=null;this.xd=0;this.get=null;this.Gm=0;this.Ja=
null;this.key=0;this.object=null;this.index=0;this.mh=this.Pe=this.mh=this.Pe=this.Qm=this.we=this.nh=null;this.wc=!1;var d,c,e;switch(b[0]){case 0:case 7:this.Sc=new Ob(this,b[1]);this.xd=0;this.get=this.ns;break;case 1:this.Sc=new Ob(this,b[1]);this.xd=0;this.get=this.os;break;case 5:this.Sc=new Ob(this,b[1]);this.xd=0;this.get=this.ts;break;case 3:case 8:this.Gm=b[1];this.get=this.ls;break;case 6:this.Ja=this.b.Xk[b[1]];this.get=this.us;break;case 9:this.key=b[1];this.get=this.ss;break;case 4:this.object=
this.b.m[b[1]];this.get=this.vs;this.Tb.xm(this.object);this.ja instanceof Lb?this.Tb.bj():this.Tb.parent&&this.Tb.parent.bj();break;case 10:this.index=b[1];a.type.B?(this.get=this.qs,this.wc=!0):this.get=this.rs;break;case 11:this.nh=b[1];this.we=null;this.get=this.ms;break;case 2:case 12:this.Qm=b[1];this.get=this.ks;break;case 13:for(this.get=this.ws,this.Pe=[],this.mh=[],d=1,c=b.length;d<c;d++)e=new Mb(this.ja,b[d]),this.Pe.push(e),this.mh.push(0)}}function f(a,b,d){this.sheet=a;this.parent=b;
this.b=a.b;this.ya=[];this.name=d[1];this.Fk=d[3];this.tg=!!d[4];this.ii=!!d[5];this.P=d[6];this.b.Jf[this.P.toString()]=this;this.data=this.Fk;this.parent?(this.He=this.tg||this.ii?-1:this.b.Nt++,this.b.sq.push(this)):(this.He=-1,this.b.rq.push(this))}function r(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ya=[];this.kg=null;this.Bs=d[1];this.Pa=!0}function k(){this.To=[];this.reset(null)}var x=[];p.prototype.toString=function(){return this.name};p.prototype.gn=function(a,b,d){switch(a[0]){case 0:a=
new Pb(this,b,a);if(a.Fc)for(d.push(a),d=0,b=a.Ra.length;d<b;d++)a.Ra[d].trigger&&this.hn(a,d);else a.tn()?this.hn(a,0):d.push(a);break;case 1:a=new Gb(this,b,a);d.push(a);break;case 2:a=new Qb(this,b,a),d.push(a)}};p.prototype.Ca=function(){var a,b;a=0;for(b=this.Rd.length;a<b;a++)this.Rd[a].Ca(a<b-1&&this.Rd[a+1].ji)};p.prototype.Nl=function(){S(this.fk);S(this.Kj);this.wm(this);S(this.Kj)};p.prototype.wm=function(a){var b,d,c,e,k=a.fk,f=a.Kj,l=this.dn.Mc();b=0;for(d=l.length;b<d;++b)c=l[b],e=c.kg,
!c.Pa||a===e||-1<f.indexOf(e)||(f.push(e),e.wm(a),k.push(e))};p.prototype.Fa=function(a){this.b.yv||(this.Dk=!0,a||(this.b.Pk=!0));var b,d;b=0;for(d=this.Rd.length;b<d;b++){var c=this.Rd[b];c.Fa();this.b.Yj(c.ya);this.b.Td&&this.b.$a()}a||(this.b.Pk=!1)};p.prototype.hn=function(a,b){a.Fc||this.b.tj.push(a);var d,c,e=a.Ra[b],k;e.type?k=e.type.name:k="system";var f=(d=e.Om)?this.Pm:this.bp;f[k]||(f[k]=[]);k=f[k];f=e.Wa;if(d){if(e.K.length&&(e=e.K[0],1===e.type&&2===e.Sc.type)){e=e.Sc.value.toLowerCase();
d=0;for(c=k.length;d<c;d++)if(k[d].method==f){d=k[d].Zf;d[e]?d[e].push([a,b]):d[e]=[[a,b]];return}d={};d[e]=[[a,b]];k.push({method:f,Zf:d})}}else{d=0;for(c=k.length;d<c;d++)if(k[d].method==f){k[d].Zf.push([a,b]);return}bc&&f===bc.prototype.i.Te?k.unshift({method:f,Zf:[[a,b]]}):k.push({method:f,Zf:[[a,b]]})}};wb=p;l.prototype.Ck=function(){return this.la?this.type.d.length:this.d.length};l.prototype.Wb=function(){return this.la?this.type.d:this.d};l.prototype.Ug=function(a){a&&(a.b.sb().ic.Fc?(this.la&&
(S(this.d),wa(this.Q,a.type.d),this.la=!1),a=this.Q.indexOf(a),-1!==a&&(this.d.push(this.Q[a]),this.Q.splice(a,1))):(this.la=!1,S(this.d),this.d[0]=a))};fb=l;window._c2hh_="D9F8786E86C045E1A717748BA36A1D02F8279B7B";t.prototype.Ca=function(a){var b,d=this.parent;if(this.group)for(this.qj=!0;d;){if(!d.group){this.qj=!1;break}d=d.parent}this.Il=!this.tn()&&(!this.parent||this.parent.group&&this.parent.qj);this.bn=!!a;this.ie=this.ya.slice(0);for(d=this.parent;d;){a=0;for(b=d.ya.length;a<b;a++)this.oq(d.ya[a]);
d=d.parent}this.ya=c(this.ya);this.ie=c(this.ie);a=0;for(b=this.Ra.length;a<b;a++)this.Ra[a].Ca();a=0;for(b=this.xc.length;a<b;a++)this.xc[a].Ca();a=0;for(b=this.uc.length;a<b;a++)this.uc[a].Ca(a<b-1&&this.uc[a+1].ji)};t.prototype.Io=function(a){if(this.hg!==!!a){this.hg=!!a;var b;a=0;for(b=this.Eh.length;a<b;++a)this.Eh[a].gp();0<b&&this.b.Z.ve&&this.b.Z.ve.Nl()}};t.prototype.xm=function(a){b(a,this.ya)};t.prototype.oq=function(a){b(a,this.ie)};t.prototype.bj=function(){this.Ro=!0;this.parent&&this.parent.bj()};
t.prototype.tn=function(){return this.Ra.length?this.Ra[0].trigger:!1};t.prototype.Fa=function(){var a,b,d=!1,c=this.b,e=this.b.sb();e.ic=this;var k=this.Ra;this.ji||(e.ik=!1);if(this.Fc){0===k.length&&(d=!0);e.Qa=0;for(a=k.length;e.Qa<a;e.Qa++)b=k[e.Qa],b.trigger||(b=b.Fa())&&(d=!0);(e.De=d)&&this.$i()}else{e.Qa=0;for(a=k.length;e.Qa<a;e.Qa++)if(b=k[e.Qa].Fa(),!b){e.De=!1;this.Il&&c.Td&&c.$a();return}e.De=!0;this.$i()}this.jr(e)};t.prototype.jr=function(a){a.De&&this.bn&&(a.ik=!0);this.Il&&this.b.Td&&
this.b.$a()};t.prototype.Dt=function(a){this.b.sb().ic=this;this.Ra[a].Fa()&&(this.$i(),this.b.sb().De=!0)};t.prototype.$i=function(){var a=this.b.sb(),b;a.gc=0;for(b=this.xc.length;a.gc<b;a.gc++)if(this.xc[a.gc].Fa())return;this.Ao()};t.prototype.At=function(){var a=this.b.sb(),b;for(b=this.xc.length;a.gc<b;a.gc++)if(this.xc[a.gc].Fa())return;this.Ao()};t.prototype.Ao=function(){if(this.uc.length){var a,b,d,c,e=this.uc.length-1;this.b.Ti(this);if(this.Ro)for(a=0,b=this.uc.length;a<b;a++)d=this.uc[a],
(c=!this.qj||!this.group&&a<e)&&this.b.Si(d.ya),d.Fa(),c?this.b.Ne(d.ya):this.b.Yj(d.ya);else for(a=0,b=this.uc.length;a<b;a++)this.uc[a].Fa();this.b.Pi()}};t.prototype.Et=function(){var a=this.b.sb();a.ic=this;var b=!1,d;a.Qa=0;for(d=this.Ra.length;a.Qa<d;a.Qa++)if(this.Ra[a.Qa].Fa())b=!0;else if(!this.Fc)return!1;return this.Fc?b:!0};t.prototype.Bt=function(){this.b.$f++;var a=this.b.sb().Qa,b=this.b.Ti(this);if(!this.Fc)for(b.Qa=a+1,a=this.Ra.length;b.Qa<a;b.Qa++)if(!this.Ra[b.Qa].Fa()){this.b.Pi();
return}this.$i();this.b.Pi()};t.prototype.Js=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Ra[b].type===a.type)return!1;return!0};Pb=t;a.prototype.Ca=function(){var a,b,d;a=0;for(b=this.K.length;a<b;a++)d=this.K[a],d.Ca(),d.wc&&(this.Lf=!0)};a.prototype.Gt=function(){return!0};a.prototype.zl=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.Aa[a]=this.K[a].get();return Ma(this.Wa.apply(this.b.Zc,this.Aa),this.Lk)};a.prototype.Ft=function(){var a,b;a=0;for(b=this.K.length;a<
b;a++)this.Aa[a]=this.K[a].get();a=this.Wa.apply(this.me?this.me:this.type,this.Aa);this.type.zc();return a};a.prototype.yl=function(){var a,b,d,c,e,k,f,l,q=this.type,g=q.Y(),n=this.Tb.Fc&&!this.trigger;b=0;var u=q.mc,p=q.B,r=q.kd,t=this.Bc,w=-1<t,x=this.Lf,C=this.K,D=this.Aa,U=this.Lk,G=this.Wa,A;if(x)for(b=0,e=C.length;b<e;++b)k=C[b],k.wc||(D[b]=k.get(0));else for(b=0,e=C.length;b<e;++b)D[b]=C[b].get(0);if(g.la){S(g.d);S(g.Q);A=q.d;a=0;for(c=A.length;a<c;++a){l=A[a];if(x)for(b=0,e=C.length;b<e;++b)k=
C[b],k.wc&&(D[b]=k.get(a));w?(b=0,p&&(b=l.type.Ze[r]),b=G.apply(l.C[t+b],D)):b=G.apply(l,D);(f=Ma(b,U))?g.d.push(l):n&&g.Q.push(l)}q.finish&&q.finish(!0);g.la=!1;q.zc();return g.Ck()}d=0;A=(f=n&&!this.Tb.Js(this))?g.Q:g.d;var I=!1;a=0;for(c=A.length;a<c;++a){l=A[a];if(x)for(b=0,e=C.length;b<e;++b)k=C[b],k.wc&&(D[b]=k.get(a));w?(b=0,p&&(b=l.type.Ze[r]),b=G.apply(l.C[t+b],D)):b=G.apply(l,D);if(Ma(b,U))if(I=!0,f){if(g.d.push(l),u)for(b=0,e=l.siblings.length;b<e;b++)k=l.siblings[b],k.type.Y().d.push(k)}else{A[d]=
l;if(u)for(b=0,e=l.siblings.length;b<e;b++)k=l.siblings[b],k.type.Y().d[d]=k;d++}else if(f){A[d]=l;if(u)for(b=0,e=l.siblings.length;b<e;b++)k=l.siblings[b],k.type.Y().Q[d]=k;d++}else if(n&&(g.Q.push(l),u))for(b=0,e=l.siblings.length;b<e;b++)k=l.siblings[b],k.type.Y().Q.push(k)}va(A,d);if(u)for(p=q.Jb,a=0,c=p.length;a<c;a++)l=p[a].Y(),f?va(l.Q,d):va(l.d,d);d=I;if(f&&!I)for(a=0,c=g.d.length;a<c;a++){l=g.d[a];if(x)for(b=0,e=C.length;b<e;b++)k=C[b],k.wc&&(D[b]=k.get(a));b=w?G.apply(l.C[t],D):G.apply(l,
D);if(Ma(b,U)){I=!0;break}}q.finish&&q.finish(d||n);return n?I:g.Ck()};Kb=a;e.prototype.Ca=function(){var a,b,d;a=0;for(b=this.K.length;a<b;a++)d=this.K[a],d.Ca(),d.wc&&(this.Lf=!0)};e.prototype.zl=function(){var a=this.b,b,d,c=this.K,e=this.Aa;b=0;for(d=c.length;b<d;++b)e[b]=c[b].get();return this.Wa.apply(a.Zc,e)};e.prototype.yl=function(){var a=this.type,b=this.Bc,d=a.kd,c=this.Lf,e=this.K,k=this.Aa,f=this.Wa,l=a.Y().Wb(),a=a.B,q=-1<b,g,n,u,p,r,t;if(c)for(n=0,p=e.length;n<p;++n)r=e[n],r.wc||(k[n]=
r.get(0));else for(n=0,p=e.length;n<p;++n)k[n]=e[n].get(0);g=0;for(u=l.length;g<u;++g){t=l[g];if(c)for(n=0,p=e.length;n<p;++n)r=e[n],r.wc&&(k[n]=r.get(g));q?(n=0,a&&(n=t.type.Ze[d]),f.apply(t.C[b+n],k)):f.apply(t,k)}return!1};Lb=e;var u=[],q=-1;d.prototype.Ca=function(){var a,b;if(11===this.type)this.we=this.b.Xm(this.nh,this.Tb.parent);else if(13===this.type)for(a=0,b=this.Pe.length;a<b;a++)this.Pe[a].Ca();this.Sc&&this.Sc.Ca()};d.prototype.Ts=function(a){this.wc||!a||a.ka.cj||(this.wc=!0)};d.prototype.Jo=
function(){this.wc=!0};d.prototype.ns=function(a){this.xd=a||0;a=w();this.Sc.get(a);q--;return a.data};d.prototype.os=function(a){this.xd=a||0;a=w();this.Sc.get(a);q--;return O(a.data)?a.data:""};d.prototype.vs=function(){return this.object};d.prototype.ls=function(){return this.Gm};d.prototype.ts=function(a){this.xd=a||0;a=w();this.Sc.get(a);q--;return a.Sa()?this.b.md(a.data):this.b.eg(a.data)};d.prototype.us=function(){return this.Ja};d.prototype.ss=function(){return this.key};d.prototype.rs=function(){return this.index};
d.prototype.qs=function(a){a=a||0;var b=this.ja.type,d=null,d=b.Y(),c=d.Wb();if(c.length)d=c[a%c.length].type;else if(d.Q.length)d=d.Q[a%d.Q.length].type;else if(b.d.length)d=b.d[a%b.d.length].type;else return 0;return this.index+d.Oh[b.kd]};d.prototype.ms=function(){return this.we};d.prototype.ks=function(){return this.Qm};d.prototype.ws=function(){var a,b;a=0;for(b=this.Pe.length;a<b;a++)this.mh[a]=this.Pe[a].get();return this.mh};Mb=d;f.prototype.Ca=function(){this.ya=c(this.ya)};f.prototype.Kt=
function(a){var b=this.b.Wm();this.parent&&!this.tg&&b?(this.He>=b.length&&(b.length=this.He+1),b[this.He]=a):this.data=a};f.prototype.js=function(){var a=this.b.Wm();return!this.parent||this.tg||!a||this.ii?this.data:this.He>=a.length||"undefined"===typeof a[this.He]?this.Fk:a[this.He]};f.prototype.Fa=function(){!this.parent||this.tg||this.ii||this.Kt(this.Fk)};Gb=f;r.prototype.toString=function(){return"include:"+this.kg.toString()};r.prototype.Ca=function(){this.kg=this.b.kk[this.Bs];this.sheet.dn.add(this);
this.ya=c(this.ya);for(var a=this.parent;a;)a.group&&a.Eh.push(this),a=a.parent;this.gp()};r.prototype.Fa=function(){this.parent&&this.b.Xg(this.b.m);this.kg.Dk||this.kg.Fa(!0);this.parent&&this.b.Ne(this.b.m)};r.prototype.gp=function(){for(var a=this.parent;a;){if(a.group&&!a.hg){this.Pa=!1;return}a=a.parent}this.Pa=!0};Qb=r;k.prototype.reset=function(a){this.ic=a;this.gc=this.Qa=0;S(this.To);this.ik=this.De=!1};Fb=k})();
(function(){function g(b,a){this.ja=b;this.b=b.b;this.type=a[0];this.get=[this.Fr,this.Br,this.Or,this.Rr,this.lr,this.Pr,this.Jr,this.tr,this.Ir,this.Nr,this.mr,this.Mr,this.ur,this.Kr,this.Gr,this.Hr,this.Cr,this.Dr,this.sr,this.Qr,this.Lr,this.Er,this.rr,this.Ar][this.type];var c=null;this.td=this.K=this.Aa=this.Wa=this.nj=this.second=this.first=this.value=null;this.Bc=-1;this.Dc=null;this.mp=-1;this.we=this.nh=null;this.wf=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Ob(b,a[1]);break;case 18:this.first=new Ob(b,a[1]);this.second=new Ob(b,a[2]);this.nj=new Ob(b,a[3]);break;case 19:this.Wa=this.b.Ed(a[1]);this.Wa!==X.prototype.jb.random&&this.Wa!==X.prototype.jb.Bq||this.ja.Jo();this.Aa=[];this.K=[];3===a.length?(c=a[2],this.Aa.length=c.length+1):this.Aa.length=1;break;case 20:this.td=this.b.m[a[1]];this.Bc=-1;this.Wa=this.b.Ed(a[2]);this.wf=a[3];Sb.Function&&this.Wa===Sb.Function.prototype.jb.gu&&this.ja.Jo();a[4]?this.Dc=new Ob(b,a[4]):this.Dc=null;this.Aa=
[];this.K=[];6===a.length?(c=a[5],this.Aa.length=c.length+1):this.Aa.length=1;break;case 21:this.td=this.b.m[a[1]];this.wf=a[2];a[3]?this.Dc=new Ob(b,a[3]):this.Dc=null;this.mp=a[4];break;case 22:this.td=this.b.m[a[1]];this.td.Vh(a[2]);this.Bc=this.td.rk(a[2]);this.Wa=this.b.Ed(a[3]);this.wf=a[4];a[5]?this.Dc=new Ob(b,a[5]):this.Dc=null;this.Aa=[];this.K=[];7===a.length?(c=a[6],this.Aa.length=c.length+1):this.Aa.length=1;break;case 23:this.nh=a[1],this.we=null}this.ja.Ts(this.td);4<=this.type&&17>=
this.type&&(this.first=new Ob(b,a[1]),this.second=new Ob(b,a[2]));if(c){var l,d;l=0;for(d=c.length;l<d;l++)this.K.push(new Ob(b,c[l]))}}function n(){++t;l.length===t&&l.push(new Nb);return l[t]}function c(b,a,c){var l,d;l=0;for(d=b.length;l<d;++l)b[l].get(c),a[l+1]=c.data}function p(b,a){this.type=b||W.Se;this.data=a||0;this.Ke=null;this.type==W.Se&&(this.data=Math.floor(this.data))}g.prototype.Ca=function(){23===this.type&&(this.we=this.ja.b.Xm(this.nh,this.ja.Tb.parent));this.first&&this.first.Ca();
this.second&&this.second.Ca();this.nj&&this.nj.Ca();this.Dc&&this.Dc.Ca();if(this.K){var b,a;b=0;for(a=this.K.length;b<a;b++)this.K[b].Ca()}};var l=[],t=-1;g.prototype.Qr=function(b){var a=this.K,e=this.Aa;e[0]=b;b=n();c(a,e,b);--t;this.Wa.apply(this.b.Zc,e)};g.prototype.Lr=function(b){var a=this.td,e=this.Aa,l=this.K,d=this.Dc,f=this.Wa,g=this.ja.xd,k=a.Y(),p=k.Wb();if(!p.length)if(k.Q.length)p=k.Q;else{this.wf?b.Pb(""):b.ma(0);return}e[0]=b;b.Ke=a;b=n();c(l,e,b);d&&(d.get(b),b.Sa()&&(g=b.data,p=
a.d));--t;a=p.length;if(g>=a||g<=-a)g%=a;0>g&&(g+=a);f.apply(p[g],e)};g.prototype.rr=function(b){var a=this.td,e=this.Aa,l=this.K,d=this.Dc,f=this.Bc,g=this.Wa,k=this.ja.xd,p=a.Y(),u=p.Wb();if(!u.length)if(p.Q.length)u=p.Q;else{this.wf?b.Pb(""):b.ma(0);return}e[0]=b;b.Ke=a;b=n();c(l,e,b);d&&(d.get(b),b.Sa()&&(k=b.data,u=a.d));--t;l=u.length;if(k>=l||k<=-l)k%=l;0>k&&(k+=l);k=u[k];u=0;a.B&&(u=k.type.Ze[a.kd]);g.apply(k.C[f+u],e)};g.prototype.Er=function(b){var a=this.Dc,c=this.td,l=this.mp,d=this.ja.xd,
f=c.Y(),g=f.Wb();if(!g.length)if(f.Q.length)g=f.Q;else{this.wf?b.Pb(""):b.ma(0);return}if(a){f=n();a.get(f);if(f.Sa()){d=f.data;g=c.d;0!==g.length&&(d%=g.length,0>d&&(d+=g.length));d=c.vk(d);c=d.Ha[l];O(c)?b.Pb(c):b.u(c);--t;return}--t}a=g.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=g[d];g=0;c.B&&(g=d.type.Oh[c.kd]);c=d.Ha[l+g];O(c)?b.Pb(c):b.u(c)};g.prototype.Fr=function(b){b.type=W.Se;b.data=this.value};g.prototype.Br=function(b){b.type=W.Re;b.data=this.value};g.prototype.Or=function(b){b.type=W.String;
b.data=this.value};g.prototype.Rr=function(b){this.first.get(b);b.Sa()&&(b.data=-b.data)};g.prototype.lr=function(b){this.first.get(b);var a=n();this.second.get(a);b.Sa()&&a.Sa()&&(b.data+=a.data,a.ff()&&b.nf());--t};g.prototype.Pr=function(b){this.first.get(b);var a=n();this.second.get(a);b.Sa()&&a.Sa()&&(b.data-=a.data,a.ff()&&b.nf());--t};g.prototype.Jr=function(b){this.first.get(b);var a=n();this.second.get(a);b.Sa()&&a.Sa()&&(b.data*=a.data,a.ff()&&b.nf());--t};g.prototype.tr=function(b){this.first.get(b);
var a=n();this.second.get(a);b.Sa()&&a.Sa()&&(b.data/=a.data,b.nf());--t};g.prototype.Ir=function(b){this.first.get(b);var a=n();this.second.get(a);b.Sa()&&a.Sa()&&(b.data%=a.data,a.ff()&&b.nf());--t};g.prototype.Nr=function(b){this.first.get(b);var a=n();this.second.get(a);b.Sa()&&a.Sa()&&(b.data=Math.pow(b.data,a.data),a.ff()&&b.nf());--t};g.prototype.mr=function(b){this.first.get(b);var a=n();this.second.get(a);a.hf()||b.hf()?this.or(b,a):this.nr(b,a);--t};g.prototype.or=function(b,a){b.hf()&&
a.hf()?this.qr(b,a):this.pr(b,a)};g.prototype.qr=function(b,a){b.data+=a.data};g.prototype.pr=function(b,a){b.hf()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Pb(b.data.toString()+a.data)};g.prototype.nr=function(b,a){b.ma(b.data&&a.data?1:0)};g.prototype.Mr=function(b){this.first.get(b);var a=n();this.second.get(a);b.Sa()&&a.Sa()&&(b.data||a.data?b.ma(1):b.ma(0));--t};g.prototype.sr=function(b){this.first.get(b);b.data?this.second.get(b):this.nj.get(b)};g.prototype.ur=function(b){this.first.get(b);
var a=n();this.second.get(a);b.ma(b.data===a.data?1:0);--t};g.prototype.Kr=function(b){this.first.get(b);var a=n();this.second.get(a);b.ma(b.data!==a.data?1:0);--t};g.prototype.Gr=function(b){this.first.get(b);var a=n();this.second.get(a);b.ma(b.data<a.data?1:0);--t};g.prototype.Hr=function(b){this.first.get(b);var a=n();this.second.get(a);b.ma(b.data<=a.data?1:0);--t};g.prototype.Cr=function(b){this.first.get(b);var a=n();this.second.get(a);b.ma(b.data>a.data?1:0);--t};g.prototype.Dr=function(b){this.first.get(b);
var a=n();this.second.get(a);b.ma(b.data>=a.data?1:0);--t};g.prototype.Ar=function(b){var a=this.we.js();fa(a)?b.u(a):b.Pb(a)};Ob=g;p.prototype.ff=function(){return this.type===W.Re};p.prototype.Sa=function(){return this.type===W.Se||this.type===W.Re};p.prototype.hf=function(){return this.type===W.String};p.prototype.nf=function(){this.ff()||(this.hf()&&(this.data=parseFloat(this.data)),this.type=W.Re)};p.prototype.ma=function(b){this.type=W.Se;this.data=Math.floor(b)};p.prototype.u=function(b){this.type=
W.Re;this.data=b};p.prototype.Pb=function(b){this.type=W.String;this.data=b};p.prototype.Lt=function(b){fa(b)?(this.type=W.Re,this.data=b):O(b)?(this.type=W.String,this.data=b.toString()):(this.type=W.Se,this.data=0)};Nb=p;W={Se:0,Re:1,String:2}})();function X(g){this.b=g;this.Sb=[]}
X.prototype.wb=function(){var g={},n,c,p,l,t,b,a,e;g.waits=[];var w=g.waits,d;n=0;for(c=this.Sb.length;n<c;n++){b=this.Sb[n];d={t:b.time,st:b.Mt,s:b.Oo,ev:b.Yf.P,sm:[],sols:{}};b.Yf.xc[b.gc]&&(d.act=b.Yf.xc[b.gc].P);p=0;for(l=b.ya.length;p<l;p++)d.sm.push(b.ya[p].P);for(t in b.Qb)if(b.Qb.hasOwnProperty(t)){a=this.b.m[parseInt(t,10)];e={sa:b.Qb[t].Bo,insts:[]};p=0;for(l=b.Qb[t].Be.length;p<l;p++)e.insts.push(b.Qb[t].Be[p].uid);d.sols[a.P.toString()]=e}w.push(d)}return g};
X.prototype.Mb=function(g){g=g.waits;var n,c,p,l,t,b,a,e,w,d,f;S(this.Sb);n=0;for(c=g.length;n<c;n++)if(b=g[n],e=this.b.Bm[b.ev.toString()]){w=-1;p=0;for(l=e.xc.length;p<l;p++)if(e.xc[p].P===b.act){w=p;break}if(-1!==w){a={Qb:{},ya:[],Im:!1};a.time=b.t;a.Mt=b.st||"";a.Oo=!!b.s;a.Yf=e;a.gc=w;p=0;for(l=b.sm.length;p<l;p++)(e=this.b.Yh(b.sm[p]))&&a.ya.push(e);for(t in b.sols)if(b.sols.hasOwnProperty(t)&&(e=this.b.Yh(parseInt(t,10)))){w=b.sols[t];d={Bo:w.sa,Be:[]};p=0;for(l=w.insts.length;p<l;p++)(f=this.b.$m(w.insts[p]))&&
d.Be.push(f);a.Qb[e.index.toString()]=d}this.Sb.push(a)}}};
(function(){function g(){}function n(){}function c(){}var p=X.prototype;g.prototype.em=function(){return!0};g.prototype.Pp=function(){return!0};g.prototype.tp=function(){var b=this.b.sb();return b.ik?!1:!b.De};g.prototype.fm=function(){return!0};g.prototype.Ep=function(){return!0};g.prototype.Fj=function(){return!0};g.prototype.Qp=function(){return!0};g.prototype.Ej=function(){return!0};g.prototype.op=function(b,a,c){return Ia(V(b),V(c))<=V(a)};g.prototype.wp=function(b,a){return Ka(V(b),V(a))};g.prototype.vp=
function(b,a,c){b=Ga(b);a=Ga(a);c=Ga(c);return Ka(c,a)?Ka(b,a)&&!Ka(b,c):!(!Ka(b,a)&&Ka(b,c))};p.i=new g;var l=[],t=[];n.prototype.cq=function(){if(!this.b.ug&&!this.b.Qf&&this.b.Z){this.b.Qf=this.b.Z;var b,a,c;b=0;for(a=this.b.Jd.length;b<a;b++)c=this.b.Jd[b],c.Io(c.di)}};p.ua=new n;c.prototype["int"]=function(b,a){O(a)?(b.ma(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.ma(a)};c.prototype["float"]=function(b,a){O(a)?(b.u(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.u(a)};c.prototype.random=function(b,
a,c){void 0===c?b.u(Math.random()*a):b.u(Math.random()*(c-a)+a)};c.prototype.sqrt=function(b,a){b.u(Math.sqrt(a))};c.prototype.abs=function(b,a){b.u(Math.abs(a))};c.prototype.round=function(b,a){b.ma(Math.round(a))};c.prototype.floor=function(b,a){b.ma(Math.floor(a))};c.prototype.ceil=function(b,a){b.ma(Math.ceil(a))};c.prototype.sin=function(b,a){b.u(Math.sin(V(a)))};c.prototype.cos=function(b,a){b.u(Math.cos(V(a)))};c.prototype.tan=function(b,a){b.u(Math.tan(V(a)))};c.prototype.asin=function(b,
a){b.u(Ca(Math.asin(a)))};c.prototype.acos=function(b,a){b.u(Ca(Math.acos(a)))};c.prototype.atan=function(b,a){b.u(Ca(Math.atan(a)))};c.prototype.exp=function(b,a){b.u(Math.exp(a))};c.prototype.log10=function(b,a){b.u(Math.log(a)/Math.LN10)};c.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,l,d;c=2;for(l=arguments.length;c<l;c++)d=arguments[c],"number"===typeof d&&a<d&&(a=d);b.u(a)};c.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,l,d;c=
2;for(l=arguments.length;c<l;c++)d=arguments[c],"number"===typeof d&&a>d&&(a=d);b.u(a)};c.prototype.Xe=function(b){b.u(this.b.Xe)};c.prototype.jh=function(b){b.u(this.b.jh)};c.prototype.time=function(b){b.u(this.b.nc.ca)};c.prototype.$c=function(b){b.ma(this.b.$c)};c.prototype.Di=function(b){b.ma(this.b.Di)};c.prototype.nk=function(b){b.ma(this.b.nk)};c.prototype.j=function(b,a,c,l,d){b.u(Ca(Ha(a,c,l,d)))};c.prototype.left=function(b,a,c){b.Pb(O(a)?a.substr(0,c):"")};c.prototype.right=function(b,
a,c){b.Pb(O(a)?a.substr(a.length-c):"")};c.prototype.replace=function(b,a,c,l){O(a)&&O(c)&&O(l)?b.Pb(a.replace(new RegExp(Ua(c),"gi"),l)):b.Pb(O(a)?a:"")};c.prototype.trim=function(b,a){b.Pb(O(a)?a.trim():"")};c.prototype.Bq=function(b){var a=P(Math.random()*(arguments.length-1));b.Lt(arguments[a+1])};c.prototype.$j=function(b){b.u(this.b.$j/1E3)};c.prototype.lf=function(b){b.u(this.b.lf)};p.jb=new c;p.Ct=function(){var b,a,c,g,d,f,n=this.b.sb();b=0;for(c=this.Sb.length;b<c;b++){g=this.Sb[b];if(-1===
g.time){if(!g.Oo)continue}else if(g.time>this.b.nc.ca)continue;n.ic=g.Yf;n.gc=g.gc;n.Qa=0;for(a in g.Qb)g.Qb.hasOwnProperty(a)&&(d=this.b.m[parseInt(a,10)].Y(),f=g.Qb[a],d.la=f.Bo,wa(d.d,f.Be),d=f,S(d.Be),t.push(d));g.Yf.At();this.b.Yj(g.ya);g.Im=!0}a=b=0;for(c=this.Sb.length;b<c;b++)g=this.Sb[b],this.Sb[a]=g,g.Im?(Oa(g.Qb),S(g.ya),l.push(g)):a++;va(this.Sb,a)}})();
(function(){eb=function(g,c){var p=g[1],l=g[3],t=g[4],b=g[5],a=g[6],e=g[7],w=g[8];c.i||(c.i={});c.ua||(c.ua={});c.jb||(c.jb={});var d=c.i,f=c.ua,r=c.jb;l&&(d.lu=function(a,b){return Rb(this.x,a,b)},d.mu=function(a,b){return Rb(this.y,a,b)},d.tu=function(){var a=this.e;this.da();var b=this.qa;return!(b.right<a.ea||b.bottom<a.fa||b.left>a.oa||b.top>a.na)},d.uu=function(){this.da();var a=this.qa,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Fu=function(a,b,d){var c=this.Y(),
h=c.Wb();if(!h.length)return!1;var e=h[0],f=e,l=La(e.x,e.y,b,d),g,n,p;g=1;for(n=h.length;g<n;g++)if(e=h[g],p=La(e.x,e.y,b,d),0===a&&p<l||1===a&&p>l)l=p,f=e;c.Ug(f);return!0},f.Xu=function(a){this.x!==a&&(this.x=a,this.ta())},f.Yu=function(a){this.y!==a&&(this.y=a,this.ta())},f.fq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ta()},f.Uu=function(a,b){var d=a.ds(this);if(d){var c;d.uk?(c=d.uk(b,!0),d=d.uk(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.ta()}},
f.zu=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.ta())},f.yu=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.ta())},r.pm=function(a){a.u(this.x)},r.qm=function(a){a.u(this.y)},r.Xe=function(a){a.u(this.b.Wh(this))});t&&(d.ku=function(a,b){return Rb(this.width,a,b)},d.hu=function(a,b){return Rb(this.height,a,b)},f.gq=function(a){this.width!==a&&(this.width=a,this.ta())},f.Ru=function(a){this.height!==a&&(this.height=a,this.ta())},f.Vu=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ta()},r.bv=function(a){a.u(this.width)},r.pu=function(a){a.u(this.height)},r.du=function(a){this.da();a.u(this.qa.left)},r.fu=function(a){this.da();a.u(this.qa.top)},r.eu=function(a){this.da();a.u(this.qa.right)},r.cu=function(a){this.da();a.u(this.qa.bottom)});b&&(d.op=function(a,b){return Ia(this.j,V(b))<=V(a)},d.wp=function(a){return Ka(this.j,V(a))},d.vp=function(a,b){var d=Ga(a),c=Ga(b),h=Ea(this.j);return Ka(c,
d)?Ka(h,d)&&!Ka(h,c):!(!Ka(h,d)&&Ka(h,c))},f.Nu=function(a){a=V(Da(a));isNaN(a)||this.j===a||(this.j=a,this.ta())},f.Ju=function(a){0===a||isNaN(a)||(this.j+=V(a),this.j=Ea(this.j),this.ta())},f.Ku=function(a){0===a||isNaN(a)||(this.j-=V(a),this.j=Ea(this.j),this.ta())},f.Lu=function(a,b){var d=Ja(this.j,V(b),V(a));isNaN(d)||this.j===d||(this.j=d,this.ta())},f.Mu=function(a,b,d){a=Ja(this.j,Math.atan2(d-this.y,b-this.x),V(a));isNaN(a)||this.j===a||(this.j=a,this.ta())},f.Wu=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.j===d||(this.j=d,this.ta())},r.bu=function(a){a.u(Fa(this.j))});p||(d.iu=function(a,b,d){return Rb(this.Ha[a],b,d)},d.ru=function(a){return this.Ha[a]},d.Gu=function(a,b){var d=this.Y(),c=d.Wb();if(!c.length)return!1;var h=c[0],e=h,f=h.Ha[b],l,g,n;l=1;for(g=c.length;l<g;l++)if(h=c[l],n=h.Ha[b],0===a&&n<f||1===a&&n>f)f=n,e=h;d.Ug(e);return!0},d.Eu=function(a){var b,d,c,h,e;if(this.b.Vm().Lk){e=this.Y();if(e.la)for(e.la=!1,S(e.d),S(e.Q),c=this.d,b=0,d=c.length;b<d;b++)h=
c[b],h.uid===a?e.Q.push(h):e.d.push(h);else{c=b=0;for(d=e.d.length;b<d;b++)h=e.d[b],e.d[c]=h,h.uid===a?e.Q.push(h):c++;va(e.d,c)}this.zc();return!!e.d.length}h=this.b.$m(a);if(!h)return!1;e=this.Y();if(!e.la&&-1===e.d.indexOf(h))return!1;if(this.B)for(a=h.type.xa,b=0,d=a.length;b<d;b++){if(a[b]===this)return e.Ug(h),this.zc(),!0}else if(h.type===this)return e.Ug(h),this.zc(),!0;return!1},d.Yl=function(){return!0},d.Gp=function(){return!0},f.Su=function(a,b){var d=this.Ha;fa(d[a])?d[a]=fa(b)?b:parseFloat(b):
O(d[a])&&(d[a]=O(b)?b:b.toString())},f.au=function(a,b){var d=this.Ha;fa(d[a])?d[a]=fa(b)?d[a]+b:d[a]+parseFloat(b):O(d[a])&&(d[a]=O(b)?d[a]+b:d[a]+b.toString())},f.Zu=function(a,b){var d=this.Ha;fa(d[a])&&(d[a]=fa(b)?d[a]-b:d[a]-parseFloat(b))},f.Ou=function(a,b){this.Ha[a]=b?1:0},f.$u=function(a){this.Ha[a]=1-this.Ha[a]},f.ou=function(){this.b.Dd(this)},f.yp||(f.yp=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.si(this,b,!0);this.Hd&&this.Hd();if(this.C)for(a=0,b=this.C.length;a<
b;++a)d=this.C[a],d.Hd&&d.Hd()}),r.nu=function(a){var b=a.Ke.d.length,d,c,h;d=0;for(c=this.b.Cc.length;d<c;d++)h=this.b.Cc[d],a.Ke.B?0<=h.type.xa.indexOf(a.Ke)&&b++:h.type===a.Ke&&b++;a.ma(b)},r.Iu=function(a){a.ma(a.Ke.Y().Wb().length)},r.av=function(a){a.ma(this.uid)},r.qu=function(a){a.ma(this.gg())},r.pp||(r.pp=function(a){a.Pb(JSON.stringify(this.b.Al(this,!0)))}));a&&(d.vu=function(){return this.visible},f.Gj=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.S=!0)},d.ju=function(a,b){return Rb(ab(100*
this.opacity),a,b)},f.Tu=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.S=!0)},r.Opacity=function(a){a.u(ab(100*this.opacity))});e&&(d.su=function(a){return a?this.e===a:!1},d.Hu=function(a){var b=this.Y(),d=b.Wb();if(!d.length)return!1;var c=d[0],h=c,e,f;e=1;for(f=d.length;e<f;e++)if(c=d[e],0===a){if(c.e.index>h.e.index||c.e.index===h.e.index&&c.jc()>h.jc())h=c}else if(c.e.index<h.e.index||c.e.index===h.e.index&&c.jc()<h.jc())h=c;b.Ug(h);return!0},f.zp=function(){var a=
this.e,b=a.d;b.length&&b[b.length-1]===this||(a.vf(this,!1),a.Nf(this,!1),this.b.S=!0)},f.Au=function(){var a=this.e,b=a.d;b.length&&b[0]===this||(a.vf(this,!1),a.qt(this),this.b.S=!0)},f.Bu=function(a){a&&a!=this.e&&(this.e.vf(this,!0),this.e=a,a.Nf(this,!0),this.b.S=!0)},f.dv=function(a,b){var d=0===a;if(b){var c=b.Zr(this);c&&c.uid!==this.uid&&(this.e.index!==c.e.index&&(this.e.vf(this,!0),this.e=c.e,c.e.Nf(this,!0)),this.e.Vs(this,c,d),this.b.S=!0)}},r.xu=function(a){a.ma(this.e.jo)},r.wu=function(a){a.Pb(this.e.name)},
r.cv=function(a){a.ma(this.jc())});w&&(f.Pu=function(a,b){if(this.b.k){var d=this.type.tk(b);if(!(0>d)){var c=1===a;this.Fd[d]!==c&&(this.Fd[d]=c,this.Lc(),this.b.S=!0)}}},f.Qu=function(a,b,d){if(this.b.k){var c=this.type.tk(a);0>c||(a=this.type.G[c],c=this.za[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.k.hs(a.Ga,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.Pa&&(this.b.S=!0))))}})};xb=function(){this.Tj=this.yh=!0;this.type.rh=!0;this.b.S=!0;var g,c,p=this.Pj;g=0;for(c=p.length;g<c;++g)p[g](this);this.e.fc&&
this.da()};yb=function(g){g&&this.Pj.push(g)};Ab=function(){if(this.yh){var g=this.qa,c=this.eb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Ab*this.width,-this.Bb*this.height);this.j?(g.offset(-this.x,-this.y),c.Lo(g,this.j),c.offset(this.x,this.y),c.Cm(g)):c.zf(g);g.normalize();this.yh=!1;this.kp()}};var g=new R(0,0,0,0);Bb=function(){if(this.e.fc){var n=this.e.Za,c=this.qa;g.set(n.xb(c.left),n.yb(c.top),n.xb(c.right),n.yb(c.bottom));this.Gb.Xf(g)||(this.Gb.right<this.Gb.left?
n.update(this,null,g):n.update(this,this.Gb,g),this.Gb.Sf(g),this.e.Ic=!0)}};Cb=function(){if(this.Tj&&this.pe){this.da();var n=this.type.Dh,c=this.qa;g.set(n.xb(c.left),n.yb(c.top),n.xb(c.right),n.yb(c.bottom));this.Nd.Xf(g)||(this.Nd.right<this.Nd.left?n.update(this,null,g):n.update(this,this.Nd,g),this.Nd.Sf(g),this.Tj=!1)}};zb=function(g,c){return this.qa.hb(g,c)&&this.eb.hb(g,c)?this.U&&!this.U.ef()?(this.U.Ue(this.width,this.height,this.j),this.U.hb(g-this.x,c-this.y)):!0:!1};tb=function(){this.type.vj();
return this.ze};Db=function(){this.e.Pl();return this.Nc};Eb=function(){S(this.T);var g,c,p,l=!0;g=0;for(c=this.Fd.length;g<c;g++)this.Fd[g]&&(p=this.type.G[g],this.T.push(p),p.pc||(l=!1));this.lp=!!this.T.length;this.wd=l};ub=function(){return"Inst"+this.yo};hb=function(g){if(g&&g.mc&&g.type!=this){var c,p,l;c=0;for(p=g.siblings.length;c<p;c++)if(l=g.siblings[c],l.type==this)return l}g=this.Y().Wb();return g.length?g[0]:null};ib=function(g){var c=this.Y().Wb();return c.length?c[g.gg()%c.length]:
null};gb=function(){if(this.Cf&&!this.B){var g,c;g=0;for(c=this.d.length;g<c;g++)this.d[g].ze=g;var p=g,l=this.b.Cc;g=0;for(c=l.length;g<c;++g)l[g].type===this&&(l[g].ze=p++);this.Cf=!1}};rb=function(g){if(g<this.d.length)return this.d[g];g-=this.d.length;var c=this.b.Cc,p,l;p=0;for(l=c.length;p<l;++p)if(c[p].type===this){if(0===g)return c[p];--g}return null};jb=function(){return this.yd[this.Qc]};kb=function(){this.Qc++;this.Qc===this.yd.length?this.yd.push(new fb(this)):(this.yd[this.Qc].la=!0,
S(this.yd[this.Qc].Q))};lb=function(){this.Qc++;this.Qc===this.yd.length&&this.yd.push(new fb(this));var g=this.yd[this.Qc],c=this.yd[this.Qc-1];c.la?(g.la=!0,S(g.Q)):(g.la=!1,wa(g.d,c.d),wa(g.Q,c.Q))};mb=function(){this.Qc--};nb=function(g){var c,p,l,t,b,a=0;if(!this.B)for(c=0,p=this.xa.length;c<p;c++)for(b=this.xa[c],l=0,t=b.Da.length;l<t;l++){if(g===b.Da[l].name)return this.X.lastBehIndex=a,b.Da[l];a++}c=0;for(p=this.Da.length;c<p;c++){if(g===this.Da[c].name)return this.X.lastBehIndex=a,this.Da[c];
a++}return null};ob=function(g){return this.Vh(g)?this.X.lastBehIndex:-1};pb=function(g){var c,p;c=0;for(p=this.G.length;c<p;c++)if(this.G[c].name===g)return c;return-1};qb=function(){if(this.mc&&!this.B){var g,c,p,l,t,b,a;this.vj();b=this.Y();var e=b.la,w=(g=this.b.sb())&&g.ic&&g.ic.Fc;g=0;for(c=this.Jb.length;g<c;g++)if(t=this.Jb[g],t!==this&&(t.vj(),a=t.Y(),a.la=e,!e)){S(a.d);p=0;for(l=b.d.length;p<l;++p)a.d[p]=t.vk(b.d[p].ze);if(w)for(S(a.Q),p=0,l=b.Q.length;p<l;++p)a.Q[p]=t.vk(b.Q[p].ze)}}};
sb=function(){return"Type"+this.P};Rb=function(g,c,p){if("undefined"===typeof g||"undefined"===typeof p)return!1;switch(c){case 0:return g===p;case 1:return g!==p;case 2:return g<p;case 3:return g<=p;case 4:return g>p;case 5:return g>=p;default:return!1}}})();
var $b={lumblend:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nprecision mediump float;\nvec3 rgb_to_hsl(vec3 color)\n{\nvec3 hsl = vec3(0.0, 0.0, 0.0);\nfloat fmin = min(min(color.r, color.g), color.b);\nfloat fmax = max(max(color.r, color.g), color.b);\nfloat delta = fmax - fmin;\nhsl.z = (fmax + fmin) / 2.0;\nif (delta == 0.0)\n{\nhsl.x = 0.0;\nhsl.y = 0.0;\n}\nelse\n{\nif (hsl.z < 0.5)\nhsl.y = delta / (fmax + fmin);\nelse\nhsl.y = delta / (2.0 - fmax - fmin);\nfloat dR = (((fmax - color.r) / 6.0) + (delta / 2.0)) / delta;\nfloat dG = (((fmax - color.g) / 6.0) + (delta / 2.0)) / delta;\nfloat dB = (((fmax - color.b) / 6.0) + (delta / 2.0)) / delta;\nif (color.r == fmax)\nhsl.x = dB - dG;\nelse if (color.g == fmax)\nhsl.x = (1.0 / 3.0) + dR - dB;\nelse if (color.b == fmax)\nhsl.x = (2.0 / 3.0) + dG - dR;\nif (hsl.x < 0.0)\nhsl.x += 1.0;\nelse if (hsl.x > 1.0)\nhsl.x -= 1.0;\n}\nreturn hsl;\n}\nfloat hue_to_rgb(float f1, float f2, float hue)\n{\nif (hue < 0.0)\nhue += 1.0;\nelse if (hue > 1.0)\nhue -= 1.0;\nfloat ret;\nif ((6.0 * hue) < 1.0)\nret = f1 + (f2 - f1) * 6.0 * hue;\nelse if ((2.0 * hue) < 1.0)\nret = f2;\nelse if ((3.0 * hue) < 2.0)\nret = f1 + (f2 - f1) * ((2.0 / 3.0) - hue) * 6.0;\nelse\nret = f1;\nreturn ret;\n}\nvec3 hsl_to_rgb(vec3 hsl)\n{\nvec3 rgb = vec3(hsl.z);\nif (hsl.y != 0.0)\n{\nfloat f2;\nif (hsl.z < 0.5)\nf2 = hsl.z * (1.0 + hsl.y);\nelse\nf2 = (hsl.z + hsl.y) - (hsl.y * hsl.z);\nfloat f1 = 2.0 * hsl.z - f2;\nrgb.r = hue_to_rgb(f1, f2, hsl.x + (1.0 / 3.0));\nrgb.g = hue_to_rgb(f1, f2, hsl.x);\nrgb.b = hue_to_rgb(f1, f2, hsl.x - (1.0 / 3.0));\n}\nreturn rgb;\n}\nvoid main(void)\n{\nvec4 front = texture2D(samplerFront, vTex);\nvec3 fronthsl = rgb_to_hsl(front.rgb / front.a);\nvec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nvec3 backhsl = rgb_to_hsl(back.rgb / back.a);\nfronthsl = hsl_to_rgb(vec3(backhsl.x, backhsl.y, fronthsl.z));\nfronthsl *= front.a;\ngl_FragColor = vec4(fronthsl.r, fronthsl.g, fronthsl.b, front.a) * back.a;\n}",Lh:0,
Mh:0,bk:!0,pc:!1,Lj:!1,K:[]}};function cc(g){this.b=g}
(function(){function g(){}function n(){}var c=cc.prototype;c.pa=function(c){this.ka=c;this.b=c.b};c.pa.prototype.O=function(){};c.aa=function(c){this.type=c;this.b=c.b};c.aa.prototype.O=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(cc.prototype.i.Wp,c)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(cc.prototype.i.Sp,c)}),window.addEventListener("offline",function(){c.b.trigger(cc.prototype.i.Rp,c)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){c.b.lf=1;c.b.trigger(cc.prototype.i.nm,c)}),window.applicationCache.addEventListener("progress",function(l){c.b.lf=l.loaded/l.total}));this.b.Tc||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(cc.prototype.i.nm,c)}),document.addEventListener("backbutton",function(){c.b.trigger(cc.prototype.i.Dj,c)}),document.addEventListener("menubutton",function(){c.b.trigger(cc.prototype.i.gm,
c)}),document.addEventListener("searchbutton",function(){c.b.trigger(cc.prototype.i.Xp,c)}),document.addEventListener("tizenhwkey",function(l){var g;switch(l.keyName){case "back":g=c.b.trigger(cc.prototype.i.Dj,c);!g&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(g=c.b.trigger(cc.prototype.i.gm,c))||l.preventDefault()}}));this.b.hi&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!c.b.trigger(cc.prototype.i.Dj,c)});this.b.pq(function(l){l?
c.b.trigger(cc.prototype.i.Tp,c):c.b.trigger(cc.prototype.i.Up,c)});this.sn="undefined"!==typeof window.is_scirra_arcade};g.prototype.Sp=function(){return!0};g.prototype.Rp=function(){return!0};g.prototype.nm=function(){return!0};g.prototype.Up=function(){return!0};g.prototype.Tp=function(){return!0};g.prototype.Wp=function(){return!0};g.prototype.Dj=function(){return!0};g.prototype.gm=function(){return!0};g.prototype.Xp=function(){return!0};c.i=new g;n.prototype.sp=function(){this.b.Cb?CocoonJS.App.forceToFinish():
window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.sn||this.b.R||window.close()};n.prototype.up=function(c,l){this.b.Cb?CocoonJS.App.openURL(c):this.b.lc?ejecta.openURL(c):this.b.hi?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(c)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(c,{openExternal:!0}):this.b.Zb?window.open(c,
"_system"):this.sn||this.b.R||window.open(c,l)};c.ua=new n;c.jb=new function(){}})();function dc(g){this.b=g}
(function(){function g(){}function n(){}var c=dc.prototype;c.pa=function(c){this.ka=c;this.b=c.b};c.pa.prototype.O=function(){};c.aa=function(c){this.type=c;this.b=c.b};var p=c.aa.prototype;p.O=function(){this.b.R?y("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.ng=1===this.M[0],this.Yb=document.createElement("input"),this.W=this.ng?document.createElement("label"):this.Yb,this.li=null,this.Yb.type=this.ng?"checkbox":"button",this.Yb.id=this.M[6],
jQuery(this.W).appendTo(this.b.Ch?this.b.Ch:"body"),this.ng?(jQuery(this.Yb).appendTo(this.W),this.li=document.createTextNode(this.M[1]),jQuery(this.W).append(this.li),this.Yb.checked=0!==this.M[7],jQuery(this.W).css("font-family","sans-serif"),jQuery(this.W).css("display","inline-block"),jQuery(this.W).css("color","black")):this.Yb.value=this.M[1],this.W.title=this.M[2],this.Yb.disabled=0===this.M[4],this.uq=0!==this.M[5],this.ue=!1,0===this.M[3]&&(jQuery(this.W).hide(),this.visible=!1,this.ue=!0),
this.Yb.onclick=function(c){return function(g){g.stopPropagation();c.b.ia=!0;c.b.trigger(dc.prototype.i.Xl,c);c.b.ia=!1}}(this),this.W.addEventListener("touchstart",function(c){c.stopPropagation()},!1),this.W.addEventListener("touchmove",function(c){c.stopPropagation()},!1),this.W.addEventListener("touchend",function(c){c.stopPropagation()},!1),jQuery(this.W).mousedown(function(c){c.stopPropagation()}),jQuery(this.W).mouseup(function(c){c.stopPropagation()}),jQuery(this.W).keydown(function(c){c.stopPropagation()}),
jQuery(this.W).keyup(function(c){c.stopPropagation()}),this.Cn=this.Dn=this.vn=this.zn=this.Bn=this.xn=0,this.jp(!0),this.b.pj(this))};p.wb=function(){var c={tooltip:this.W.title,disabled:!!this.Yb.disabled};this.ng?(c.checked=!!this.Yb.checked,c.text=this.li.nodeValue):c.text=this.W.value;return c};p.Mb=function(c){this.W.title=c.tooltip;this.Yb.disabled=c.disabled;this.ng?(this.Yb.checked=c.checked,this.li.nodeValue=c.text):this.W.value=c.text};p.Le=function(){this.b.R||(jQuery(this.W).remove(),
this.W=null)};p.Rb=function(){this.jp()};p.jp=function(c){if(!this.b.R){var g=this.e.ba(this.x,this.y,!0),b=this.e.ba(this.x,this.y,!1),a=this.e.ba(this.x+this.width,this.y+this.height,!0),e=this.e.ba(this.x+this.width,this.y+this.height,!1),n=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.e.visible||0>=a||0>=e||g>=n||b>=d?(this.ue||jQuery(this.W).hide(),this.ue=!0):(1>g&&(g=1),1>b&&(b=1),a>=n&&(a=n-1),e>=d&&(e=d-1),n=window.innerWidth,d=window.innerHeight,
c||this.xn!==g||this.Bn!==b||this.zn!==a||this.vn!==e||this.Dn!==n||this.Cn!==d?(this.xn=g,this.Bn=b,this.zn=a,this.vn=e,this.Dn=n,this.Cn=d,this.ue&&(jQuery(this.W).show(),this.ue=!1),c=Math.round(g)+jQuery(this.b.canvas).offset().left,n=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.W).css("position","absolute"),jQuery(this.W).offset({left:c,top:n}),jQuery(this.W).width(Math.round(a-g)),jQuery(this.W).height(Math.round(e-b)),this.uq&&jQuery(this.W).css("font-size",this.e.tb(!0)/this.b.devicePixelRatio-
.2+"em")):this.ue&&(jQuery(this.W).show(),this.ue=!1))}};p.Kb=function(){};p.Va=function(){};g.prototype.Xl=function(){return!0};c.i=new g;n.prototype.Gj=function(c){this.b.R||(this.visible=0!==c)};n.prototype.om=function(c){this.b.R||(this.Yb.disabled=0===c)};n.prototype.dq=function(c,g){this.b.R||jQuery(this.W).css(c,g)};c.ua=new n;c.jb=new function(){}})();function ec(g){this.b=g}
(function(){function g(){}var n=ec.prototype;n.pa=function(c){this.ka=c;this.b=c.b};n.pa.prototype.O=function(){};n.aa=function(c){this.type=c;this.b=c.b;this.wg=Array(256);this.lh=Array(256);this.Ad=0};var c=n.aa.prototype;c.O=function(){var c=this;this.b.R||(jQuery(document).keydown(function(g){c.bt(g)}),jQuery(document).keyup(function(g){c.ct(g)}))};var p=[32,33,34,35,36,37,38,39,40,44];c.bt=function(c){var g=!1;window!=window.top&&-1<p.indexOf(c.which)&&(c.preventDefault(),g=!0,c.stopPropagation());
if(this.wg[c.which])this.lh[c.which]&&!g&&c.preventDefault();else{this.wg[c.which]=!0;this.Ad=c.which;this.b.ia=!0;this.b.trigger(ec.prototype.i.Dp,this);var b=this.b.trigger(ec.prototype.i.$l,this),a=this.b.trigger(ec.prototype.i.Op,this);this.b.ia=!1;if(b||a)this.lh[c.which]=!0,g||c.preventDefault()}};c.ct=function(c){this.wg[c.which]=!1;this.Ad=c.which;this.b.ia=!0;this.b.trigger(ec.prototype.i.Vl,this);var g=this.b.trigger(ec.prototype.i.cm,this),b=this.b.trigger(ec.prototype.i.am,this);this.b.ia=
!1;if(g||b||this.lh[c.which])this.lh[c.which]=!0,c.preventDefault()};c.sf=function(){var c;for(c=0;256>c;++c)if(this.wg[c]){this.wg[c]=!1;this.Ad=c;this.b.trigger(ec.prototype.i.Vl,this);var g=this.b.trigger(ec.prototype.i.cm,this),b=this.b.trigger(ec.prototype.i.am,this);if(g||b)this.lh[c]=!0}};c.wb=function(){return{triggerKey:this.Ad}};c.Mb=function(c){this.Ad=c.triggerKey};g.prototype.$l=function(c){return c===this.Ad};g.prototype.Dp=function(){return!0};g.prototype.Vl=function(){return!0};g.prototype.cm=
function(c){return c===this.Ad};g.prototype.Op=function(c){return c===this.Ad};g.prototype.am=function(c){return c===this.Ad};n.i=new g;n.ua=new function(){};n.jb=new function(){}})();function fc(g){this.b=g}
(function(){function g(){}function n(){}var c=fc.prototype;c.pa=function(c){this.ka=c;this.b=c.b};c.pa.prototype.O=function(){};c.aa=function(c){this.type=c;this.b=c.b;this.Qj=Array(4);this.Zo=this.rj=this.Ff=this.de=this.be=0;this.Bk=!1};var p=c.aa.prototype;p.O=function(){var c=this;if(!this.b.R){jQuery(document).mousemove(function(a){c.Qg(a)});jQuery(document).mousedown(function(a){c.Pg(a)});jQuery(document).mouseup(function(a){c.Rg(a)});jQuery(document).dblclick(function(a){c.Zs(a)});var b=function(a){c.ht(a)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var l={left:0,top:0};p.Qg=function(c){var b=this.b.R?l:jQuery(this.b.canvas).offset();this.be=c.pageX-b.left;this.de=c.pageY-b.top};p.bo=function(){return 0<this.b.kb?!0:0<=this.be&&0<=this.de&&this.be<this.b.width&&this.de<this.b.height};p.Pg=function(c){this.bo()&&(this.Qj[c.which]=!0,this.b.ia=!0,this.b.trigger(fc.prototype.i.Cp,this),this.Ff=c.which-1,this.rj=0,this.b.trigger(fc.prototype.i.Wl,this),
this.b.trigger(fc.prototype.i.jm,this),this.b.ia=!1)};p.Rg=function(c){this.Qj[c.which]&&(this.b.bi&&!this.b.qd&&c.preventDefault(),this.b.bi=!0,this.Qj[c.which]=!1,this.b.ia=!0,this.Ff=c.which-1,this.b.trigger(fc.prototype.i.Vp,this),this.b.ia=!1)};p.Zs=function(c){this.bo()&&(c.preventDefault(),this.b.ia=!0,this.Ff=c.which-1,this.rj=1,this.b.trigger(fc.prototype.i.Wl,this),this.b.trigger(fc.prototype.i.jm,this),this.b.ia=!1)};p.ht=function(c){this.Zo=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.Bk=!1;this.b.ia=!0;this.b.trigger(fc.prototype.i.aq,this);this.b.ia=!1;this.Bk&&cb(c)&&c.preventDefault()};g.prototype.Wl=function(c,b){return c===this.Ff&&b===this.rj};g.prototype.Cp=function(){return!0};g.prototype.Vp=function(c){return c===this.Ff};g.prototype.jm=function(c,b,a){return c!==this.Ff||b!==this.rj?!1:this.b.fh(a,this.be,this.de)};g.prototype.aq=function(c){this.Bk=!0;return c===this.Zo};c.i=new g;c.ua=new function(){};n.prototype.pm=function(c,b){var a,e,g,d,f;ea(b)?(a=
this.b.md(0),e=a.scale,g=a.rb,d=a.Db,f=a.j,a.scale=1,a.rb=1,a.Db=1,a.j=0,c.u(a.wa(this.be,this.de,!0)),a.scale=e,a.rb=g,a.Db=d,a.j=f):(a=fa(b)?this.b.md(b):this.b.eg(b))?c.u(a.wa(this.be,this.de,!0)):c.u(0)};n.prototype.qm=function(c,b){var a,e,g,d,f;ea(b)?(a=this.b.md(0),e=a.scale,g=a.rb,d=a.Eb,f=a.j,a.scale=1,a.rb=1,a.Eb=1,a.j=0,c.u(a.wa(this.be,this.de,!1)),a.scale=e,a.rb=g,a.Eb=d,a.j=f):(a=fa(b)?this.b.md(b):this.b.eg(b))?c.u(a.wa(this.be,this.de,!1)):c.u(0)};c.jb=new n})();
function gc(g){this.b=g}
(function(){function g(c){this.ja=c;this.Pa=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.Id=this.cf=this.size=this.$h=0}var n=gc.prototype;n.pa=function(c){this.ka=c;this.b=c.b};var c=n.pa.prototype;c.O=function(){this.B||(this.I=new Image,this.I.ak=this.mj,this.N=null,this.b.Sl(this.I,this.lj))};c.Og=function(){this.B||(this.N=null)};c.Ei=function(){this.B||!this.d.length||this.N||(this.N=this.b.k.kf(this.I,!0,this.b.J,this.hh))};c.Eg=function(){this.B||this.N||!this.b.k||(this.N=this.b.k.kf(this.I,
!0,this.b.J,this.hh))};c.uj=function(){this.B||this.d.length||!this.N||(this.b.k.deleteTexture(this.N),this.N=null)};c.Qi=function(c){c.drawImage(this.I,0,0)};g.prototype.init=function(){var c=this.ja;this.x=c.x-c.Aj/2+Math.random()*c.Aj;this.y=c.y-c.Bj/2+Math.random()*c.Bj;this.speed=c.Ik-c.ej/2+Math.random()*c.ej;this.j=c.j-c.fj/2+Math.random()*c.fj;this.opacity=c.Gk;this.size=c.Hk-c.dj/2+Math.random()*c.dj;this.$h=c.Ak-c.ai/2+Math.random()*c.ai;this.Id=this.cf=0};g.prototype.Rb=function(c){var g=
this.ja;this.x+=Math.cos(this.j)*this.speed*c;this.y+=Math.sin(this.j)*this.speed*c;this.y+=this.cf*c;this.speed+=g.Hj*c;this.size+=this.$h*c;this.cf+=g.qk*c;this.Id+=c;1>this.size?this.Pa=!1:(0!==g.Bg&&(this.j+=Math.random()*g.Bg*c-g.Bg*c/2),0!==g.Dg&&(this.speed+=Math.random()*g.Dg*c-g.Dg*c/2),0!==g.Cg&&(this.opacity+=Math.random()*g.Cg*c-g.Cg*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=g.We&&this.Id>=g.timeout&&(this.Pa=!1),2===g.We&&0>=this.speed&&(this.Pa=!1))};g.prototype.Kb=
function(c){var g=this.ja.opacity*this.opacity;if(0!==g){0===this.ja.We&&(g*=1-this.Id/this.ja.timeout);c.globalAlpha=g;var g=this.x-this.size/2,b=this.y-this.size/2;this.ja.b.ac&&(g=g+.5|0,b=b+.5|0);c.drawImage(this.ja.type.I,g,b,this.size,this.size)}};g.prototype.Va=function(c){var g=this.ja.opacity*this.opacity;0===this.ja.We&&(g*=1-this.Id/this.ja.timeout);var b=this.size,a=b*this.ja.ro,e=this.x-b/2,n=this.y-b/2;this.ja.b.ac&&(e=e+.5|0,n=n+.5|0);1>a||0===g||(a<c.Us||a>c.cl?(c.he(g),c.uf(e,n,e+
b,n,e+b,n+b,e,n+b)):c.kt(this.x,this.y,a,g))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};n.aa=function(c){this.type=c;this.b=c.b};var c=n.aa.prototype,p=[];c.O=function(){var c=this.M;this.Vi=c[0];this.fj=V(c[1]);this.Af=c[2];this.Dl=!0;this.Ik=c[3];this.Hk=c[4];this.Gk=c[5]/100;this.Ak=c[6];this.Aj=c[7];this.Bj=c[8];this.ej=
c[9];this.dj=c[10];this.ai=c[11];this.Hj=c[12];this.qk=c[13];this.Bg=c[14];this.Dg=c[15];this.Cg=c[16];this.We=c[17];this.timeout=c[18];this.Me=0;this.ro=1;this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;this.qq(function(c){c.qa.set(c.Li,c.Ni,c.Mi,c.Ki);c.eb.zf(c.qa);c.yh=!1;c.Ql();c.kp()});this.Ob||(this.ub=[]);this.b.pj(this);this.type.Eg();if(1===this.Af)for(c=0;c<this.Vi;c++)this.Ij().opacity=0;this.Rh=!0};c.wb=function(){var c={r:this.Vi,sc:this.fj,st:this.Af,s:this.Dl,isp:this.Ik,
isz:this.Hk,io:this.Gk,gr:this.Ak,xr:this.Aj,yr:this.Bj,spr:this.ej,szr:this.dj,grnd:this.ai,acc:this.Hj,g:this.qk,lar:this.Bg,lsr:this.Dg,lor:this.Cg,dm:this.We,to:this.timeout,pcc:this.Me,ft:this.Rh,p:[]},g,b,a,e=c.p;g=0;for(b=this.ub.length;g<b;g++)a=this.ub[g],e.push([a.x,a.y,a.speed,a.j,a.opacity,a.$h,a.size,a.cf,a.Id]);return c};c.Mb=function(c){this.Vi=c.r;this.fj=c.sc;this.Af=c.st;this.Dl=c.s;this.Ik=c.isp;this.Hk=c.isz;this.Gk=c.io;this.Ak=c.gr;this.Aj=c.xr;this.Bj=c.yr;this.ej=c.spr;this.dj=
c.szr;this.ai=c.grnd;this.Hj=c.acc;this.qk=c.g;this.Bg=c.lar;this.Dg=c.lsr;this.Cg=c.lor;this.We=c.dm;this.timeout=c.to;this.Me=c.pcc;this.Rh=c.ft;p.push.apply(p,this.ub);S(this.ub);var g,b,a,e=c.p;c=0;for(g=e.length;c<g;c++)b=this.Ij(),a=e[c],b.x=a[0],b.y=a[1],b.speed=a[2],b.j=a[3],b.opacity=a[4],b.$h=a[5],b.size=a[6],b.cf=a[7],b.Id=a[8]};c.Le=function(){p.push.apply(p,this.ub);S(this.ub)};c.Ij=function(){var c;p.length?(c=p.pop(),c.ja=this):c=new g(this);this.ub.push(c);c.Pa=!0;return c};c.Rb=function(){var c=
this.b.Wh(this),g,b,a,e;if(0===this.Af&&this.Dl)for(this.Me+=c*this.Vi,b=P(this.Me),this.Me-=b,g=0;g<b;g++)a=this.Ij(),a.init();this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;e=g=0;for(b=this.ub.length;g<b;g++)a=this.ub[g],this.ub[e]=a,this.b.S=!0,1===this.Af&&this.Rh&&a.init(),a.Rb(c),a.Pa?(a.left()<this.Li&&(this.Li=a.left()),a.right()>this.Mi&&(this.Mi=a.right()),a.top()<this.Ni&&(this.Ni=a.top()),a.bottom()>this.Ki&&(this.Ki=a.bottom()),e++):p.push(a);va(this.ub,e);this.ta();this.Rh=
!1;1===this.Af&&0===this.ub.length&&this.b.Dd(this)};c.Kb=function(c){var g,b,a,e=this.e;g=0;for(b=this.ub.length;g<b;g++)a=this.ub[g],a.right()>=e.ea&&a.bottom()>=e.fa&&a.left()<=e.oa&&a.top()<=e.na&&a.Kb(c)};c.Va=function(c){this.ro=this.e.tb();c.Hb(this.type.N);var g,b,a,e=this.e;g=0;for(b=this.ub.length;g<b;g++)a=this.ub[g],a.right()>=e.ea&&a.bottom()>=e.fa&&a.left()<=e.oa&&a.top()<=e.na&&a.Va(c)};n.i=new function(){};n.ua=new function(){};n.jb=new function(){}})();function bc(g){this.b=g}
(function(){function g(){if(0===this.ek.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Bf?b.drawImage(this.I,this.pf,this.qf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.I,0,0,this.width,this.height);this.ek=a.toDataURL("image/png")}return this.ek}function n(){}function c(a){a[0]=0;a[1]=0;a[2]=0;f.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function l(a,b,c,d){b=b.uid;c=c.uid;var e=p(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var g=f.length?f.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=d;a[e]=g}}function t(a,b,d){b=p(b.uid,d.uid);a.hasOwnProperty(b)&&(c(a[b]),delete a[b])}function b(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return r=a[b][2],!0;r=-2;return!1}var a=bc.prototype;a.pa=function(a){this.ka=a;this.b=a.b};var e=a.pa.prototype;e.O=function(){if(!this.B){var a,b,c,d,e,f,k,l,n;this.yc=[];this.jg=!1;a=0;for(b=this.zb.length;a<b;a++){e=this.zb[a];k={};k.name=e[0];k.speed=e[1];k.loop=e[2];k.wl=e[3];k.xl=e[4];k.so=
e[5];k.P=e[6];k.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],l={},l.lj=f[0],l.mj=f[1],l.pf=f[2],l.qf=f[3],l.width=f[4],l.height=f[5],l.duration=f[6],l.Ab=f[7],l.Bb=f[8],l.Ek=f[9],l.Oi=f[10],l.uo=f[11],l.Bf=0!==l.width,l.ek="",l.lv=g,n={left:0,top:0,right:1,bottom:1},l.Cl=n,l.N=null,(n=this.b.Tr(f[0]))?l.I=n:(l.I=new Image,l.I.Dq=f[0],l.I.ak=f[1],l.I.yq=null,this.b.Sl(l.I,f[0])),k.frames.push(l),this.yc.push(l);this.zb[a]=k}}};e.ip=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],
c.Gh=c.hc.N};e.Og=function(){if(!this.B){var a,b,c;a=0;for(b=this.yc.length;a<b;++a)c=this.yc[a],c.I.yq=null,c.N=null;this.jg=!1;this.ip()}};e.Ei=function(){if(!this.B&&this.d.length){var a,b,c;a=0;for(b=this.yc.length;a<b;++a)c=this.yc[a],c.N=this.b.k.kf(c.I,!1,this.b.J,c.uo);this.ip()}};e.Eg=function(){if(!this.B&&!this.jg&&this.b.k){var a,b,c;a=0;for(b=this.yc.length;a<b;++a)c=this.yc[a],c.N=this.b.k.kf(c.I,!1,this.b.J,c.uo);this.jg=!0}};e.uj=function(){if(!this.B&&!this.d.length&&this.jg){var a,
b,c;a=0;for(b=this.yc.length;a<b;++a)c=this.yc[a],this.b.k.deleteTexture(c.N),c.N=null;this.jg=!1}};var w=[];e.Qi=function(a){var b,c,d;S(w);b=0;for(c=this.yc.length;b<c;++b)d=this.yc[b].I,-1===w.indexOf(d)&&(a.drawImage(d,0,0),w.push(d))};a.aa=function(a){this.type=a;this.b=a.b;a=this.type.zb[0].frames[0].Oi;this.Ob?this.U.Zg(a):this.U=new Va(a)};var d=a.aa.prototype;d.O=function(){this.visible=0===this.M[0];this.pe=0!==this.M[3];1===this.type.zb.length&&1===this.type.zb[0].frames.length||0===this.type.zb[0].speed||
this.b.pj(this);this.ra=this.Um(this.M[1])||this.type.zb[0];this.A=this.M[2];0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);var a=this.ra.frames[this.A];this.U.Zg(a.Oi);this.Ab=a.Ab;this.Bb=a.Bb;this.Wf=this.ra.speed;this.Od=this.ra.xl;this.Ob?this.Oc.reset():this.Oc=new Ta;this.ld=this.Oc.ca;this.le=!0;this.bd=0;this.ke=!0;this.Xj=this.ym="";this.zq=0;this.Wj=-1;this.type.Eg();var b,c,d,e,f,g,k,a=0;for(b=this.type.zb.length;a<b;a++)for(e=this.type.zb[a],c=0,
d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.I.width,f.height=f.I.height),f.Bf&&(k=f.I,g=f.Cl,g.left=f.pf/k.width,g.top=f.qf/k.height,g.right=(f.pf+f.width)/k.width,g.bottom=(f.qf+f.height)/k.height,0===f.pf&&0===f.qf&&f.width===k.width&&f.height===k.height&&(f.Bf=!1));this.hc=this.ra.frames[this.A];this.Gh=this.hc.N};d.wb=function(){var a={a:this.ra.P,f:this.A,cas:this.Wf,fs:this.ld,ar:this.bd,at:this.Oc.ca,rt:this.Od};this.le||(a.ap=this.le);this.ke||(a.af=this.ke);return a};
d.Mb=function(a){var b=this.Wr(a.a);b&&(this.ra=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);this.Wf=a.cas;this.ld=a.fs;this.bd=a.ar;this.Oc.reset();this.Oc.ca=a.at;this.le=a.hasOwnProperty("ap")?a.ap:!0;this.ke=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Od=a.rt:this.Od=this.ra.xl;this.hc=this.ra.frames[this.A];this.Gh=this.hc.N;this.U.Zg(this.hc.Oi);this.Ab=this.hc.Ab;this.Bb=this.hc.Bb};d.Mj=function(a){this.A=a?0:this.ra.frames.length-
1;this.le=!1;this.ym=this.ra.name;this.b.trigger(bc.prototype.i.Bp,this);this.b.trigger(bc.prototype.i.Ap,this);this.bd=0};d.Oj=function(){return this.Oc.ca};d.Rb=function(){this.Oc.add(this.b.Wh(this));this.Xj.length&&this.Jq();0<=this.Wj&&this.Kq();var a=this.Oc.ca,b=this.ra,c=b.frames[this.A],d=c.duration/this.Wf;this.le&&a>=this.ld+d&&(this.ke?this.A++:this.A--,this.ld+=d,this.A>=b.frames.length&&(b.so?(this.ke=!1,this.A=b.frames.length-2):b.loop?this.A=this.Od:(this.bd++,this.bd>=b.wl?this.Mj(!1):
this.A=this.Od)),0>this.A&&(b.so?(this.A=1,this.ke=!0,b.loop||(this.bd++,this.bd>=b.wl&&this.Mj(!0))):b.loop?this.A=this.Od:(this.bd++,this.bd>=b.wl?this.Mj(!0):this.A=this.Od)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.ld+b.frames[this.A].duration/this.Wf&&(this.ld=a),a=b.frames[this.A],this.Te(c,a),this.b.S=!0)};d.Um=function(a){var b,c,d;b=0;for(c=this.type.zb.length;b<c;b++)if(d=this.type.zb[b],bb(d.name,a))return d;return null};d.Wr=function(a){var b,c,d;b=
0;for(c=this.type.zb.length;b<c;b++)if(d=this.type.zb[b],d.P===a)return d;return null};d.Jq=function(){var a=this.ra.frames[this.A],b=this.Um(this.Xj);this.Xj="";!b||bb(b.name,this.ra.name)&&this.le||(this.ra=b,this.Wf=b.speed,this.Od=b.xl,0>this.A&&(this.A=0),this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1),1===this.zq&&(this.A=0),this.le=!0,this.ld=this.Oc.ca,this.ke=!0,this.Te(a,this.ra.frames[this.A]),this.b.S=!0)};d.Kq=function(){var a=this.ra.frames[this.A],b=this.A;this.A=P(this.Wj);
0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);b!==this.A&&(this.Te(a,this.ra.frames[this.A]),this.ld=this.Oc.ca,this.b.S=!0);this.Wj=-1};d.Te=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Ab=b.Ab;this.Bb=b.Bb;this.U.Zg(b.Oi);this.ta();this.hc=b;this.Gh=b.N;c=0;for(d=this.C.length;c<d;c++)e=this.C[c],e.et&&e.et(a,b);this.b.trigger(bc.prototype.i.Te,this)};d.Kb=function(a){a.globalAlpha=this.opacity;
var b=this.hc,c=b.Bf,d=b.I,e=this.x,f=this.y,g=this.width,k=this.height;if(0===this.j&&0<=g&&0<=k)e-=this.Ab*g,f-=this.Bb*k,this.b.ac&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.pf,b.qf,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.ac&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,n=0<k?1:-1;a.translate(e,f);1===l&&1===n||a.scale(l,n);a.rotate(this.j*l*n);e=0-this.Ab*ia(g);f=0-this.Bb*ia(k);c?a.drawImage(d,b.pf,b.qf,b.width,b.height,e,f,ia(g),ia(k)):a.drawImage(d,
e,f,ia(g),ia(k));a.restore()}};d.se=function(a){this.Va(a)};d.Va=function(a){a.Hb(this.Gh);a.he(this.opacity);var b=this.hc,c=this.eb;if(this.b.ac){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Bf?a.Wc(c.Na+d,c.Oa+e,c.pb+d,c.qb+e,c.fb+d,c.gb+e,c.bb+d,c.cb+e,b.Cl):a.uf(c.Na+d,c.Oa+e,c.pb+d,c.qb+e,c.fb+d,c.gb+e,c.bb+d,c.cb+e)}else b.Bf?a.Wc(c.Na,c.Oa,c.pb,c.qb,c.fb,c.gb,c.bb,c.cb,b.Cl):a.uf(c.Na,c.Oa,c.pb,c.qb,c.fb,c.gb,c.bb,c.cb)};d.as=function(a){var b=this.hc,c,d;c=0;for(d=b.Ek.length;c<
d;c++)if(bb(a,b.Ek[c][0]))return c;return-1};d.uk=function(a,b){var c=this.hc,d=c.Ek,e;O(a)?e=this.as(a):e=a-1;e=P(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Ab)*this.width,d=d[e][2],d=(d-c.Bb)*this.height,c=Math.cos(this.j);e=Math.sin(this.j);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var f=[],r=-2,k=[];n.prototype.Fp=function(a){if(!a)return!1;var d=this.b,e=d.Vm(),f=e.type,g=null;e.X.collmemory?g=e.X.collmemory:(g={},e.X.collmemory=g);e.X.spriteCreatedDestroyCallback||
(e.X.spriteCreatedDestroyCallback=!0,d.nq(function(a){var b=e.X.collmemory;a=a.uid;var d,h;for(d in b)b.hasOwnProperty(d)&&(h=b[d],h[0]===a||h[1]===a)&&(c(b[d]),delete b[d])}));var n=f.Y(),p=a.Y(),n=n.Wb(),u,w,x,F,M,J,E,H=this.b.$c,v=H-1,ra=d.sb().ic;for(w=0;w<n.length;w++){x=n[w];p.la?(x.da(),this.b.Yr(x.e,a,x.qa,k),u=k):u=p.Wb();for(F=0;F<u.length;F++)M=u[F],d.Pt(x,M)||d.Aq(x,M)?(J=b(g,x,M),J=!J||r<v,l(g,x,M,H),J&&(d.Si(ra.ya),J=f.Y(),E=a.Y(),J.la=!1,E.la=!1,f===a?(J.d.length=2,J.d[0]=x,J.d[1]=
M,f.zc()):(J.d.length=1,E.d.length=1,J.d[0]=x,E.d[0]=M,f.zc(),a.zc()),ra.Bt(),d.Ne(ra.ya))):t(g,x,M);S(k)}return!1};var x=new ba,u=!1;new R(0,0,0,0);e.finish=function(a){if(u){if(a){var b=this.b.sb().ic.Fc;a=null.Y();var c=x.Mc(),d,e;if(a.la){a.la=!1;S(a.d);d=0;for(e=c.length;d<e;++d)a.d[d]=c[d];if(b)for(S(a.Q),d=0,e=null.d.length;d<e;++d)c=null.d[d],x.contains(c)||a.Q.push(c)}else if(b)for(b=a.d.length,d=0,e=c.length;d<e;++d)a.d[b+d]=c[d],za(a.Q,c[d]);else wa(a.d,c);null.zc()}x.clear();u=!1}};n.prototype.Ap=
function(a){return bb(this.ym,a)};n.prototype.Bp=function(){return!0};n.prototype.Te=function(){return!0};a.i=new n;a.ua=new function(){};a.jb=new function(){}})();function hc(g){this.b=g}
(function(){function g(){return b.length?b.pop():{}}function n(a){var c,g;c=0;for(g=a.length;c<g;c++)b.push(a[c]);S(a)}function c(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}var p=hc.prototype;p.O=function(){p.ua.gq=function(a){this.width!==a&&(this.width=a,this.Ef=!0,this.ta())}};p.pa=function(a){this.ka=a;this.b=a.b};var l=p.pa.prototype;l.O=function(){};l.Og=function(){if(!this.B){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Uc=null,c.Je=null,c.Nb=null}};
p.aa=function(a){this.type=a;this.b=a.b;this.Ob?S(this.Yd):this.Yd=[];this.Ef=!0};l=p.aa.prototype;l.O=function(){this.text=this.M[0];this.visible=0===this.M[1];this.font=this.M[2];this.color=this.M[3];this.ci=this.M[4];this.xj=this.M[5];this.Tl=0===this.M[7];this.Wk=this.oi=this.width;this.ni=this.height;this.Yk=this.M[8];this.Sh=this.Ye="";this.Vo=this.Wo=this.Wg=0;this.it();this.Nb=this.Je=this.Uc=null;this.fo=!1;this.Ag=this.b.$c;this.Ob?this.fe.set(0,0,1,1):this.fe=new R(0,0,1,1);this.b.k&&this.b.pj(this)};
l.it=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.Wg=parseInt(a[b].substr(0,a[b].length-2));this.rl=Math.ceil(this.Wg/72*96)+4;0<b&&(this.Sh=a[b-1]);this.Ye=a[b+1];for(b+=2;b<a.length;b++)this.Ye+=" "+a[b];break}};l.wb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.ci,va:this.xj,wr:this.Tl,lho:this.Yk,fn:this.Ye,fs:this.Sh,ps:this.Wg,pxh:this.rl,tw:this.Wo,th:this.Vo,lrt:this.Ag}};l.Mb=function(a){this.text=a.t;this.font=
a.f;this.color=a.c;this.ci=a.ha;this.xj=a.va;this.Tl=a.wr;this.Yk=a.lho;this.Ye=a.fn;this.Sh=a.fs;this.Wg=a.ps;this.rl=a.pxh;this.Wo=a.tw;this.Vo=a.th;this.Ag=a.lrt;this.Ef=!0;this.Wk=this.oi=this.width;this.ni=this.height};l.Rb=function(){if(this.b.k&&this.Nb&&300<=this.b.$c-this.Ag){var a=this.e;this.da();var b=this.qa;if(b.right<a.ea||b.bottom<a.fa||b.left>a.oa||b.top>a.na)this.b.k.deleteTexture(this.Nb),this.Uc=this.Je=this.Nb=null}};l.Le=function(){this.Uc=this.Je=null;this.b.k&&this.Nb&&this.b.k.deleteTexture(this.Nb);
this.Nb=null};l.Oj=function(){this.font=this.Sh+" "+this.Wg.toString()+"pt "+this.Ye;this.Ef=!0;this.b.S=!0};l.Kb=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.e.tb(),a.save(),a.scale(c,c));if(this.Ef||this.width!==this.Wk)this.type.ka.iq(this.text,this.Yd,a,this.width,this.Tl),this.Ef=!1,this.Wk=this.width;this.da();var c=b?0:this.eb.Na,d=b?0:this.eb.Oa;this.b.ac&&(c=c+.5|0,d=d+.5|0);0===this.j||b||(a.save(),a.translate(c,
d),a.rotate(this.j),d=c=0);var f=d+this.height,g=this.rl,g=g+this.Yk,k,l;1===this.xj?d+=Math.max(this.height/2-this.Yd.length*g/2,0):2===this.xj&&(d+=Math.max(this.height-this.Yd.length*g-2,0));for(l=0;l<this.Yd.length&&!(k=c,1===this.ci?k=c+(this.width-this.Yd[l].width)/2:2===this.ci&&(k=c+(this.width-this.Yd[l].width)),a.fillText(this.Yd[l].text,k,d),d+=g,d>=f-g);l++);(0!==this.j||b)&&a.restore();this.Ag=this.b.$c};l.Va=function(a){if(!(1>this.width||1>this.height)){var b=this.Ef||this.fo;this.fo=
!1;var c=this.e.tb(),d=this.e.Lb(),f=this.fe,g=c*this.width,k=c*this.height,l=Math.ceil(g),n=Math.ceil(k),q=this.b.F/2,h=this.b.D/2;this.Je||(this.Uc=document.createElement("canvas"),this.Uc.width=l,this.Uc.height=n,this.oi=l,this.ni=n,b=!0,this.Je=this.Uc.getContext("2d"));if(l!==this.oi||n!==this.ni)this.Uc.width=l,this.Uc.height=n,this.Nb&&(a.deleteTexture(this.Nb),this.Nb=null),b=!0;b&&(this.Je.clearRect(0,0,l,n),this.Kb(this.Je,!0),this.Nb||(this.Nb=a.Ub(l,n,this.b.J,this.b.qd)),a.Yt(this.Uc,
this.Nb,this.b.qd));this.oi=l;this.ni=n;a.Hb(this.Nb);a.he(this.opacity);a.qc();a.translate(-q,-h);a.ec();var m=this.eb,b=this.e.ba(m.Na,m.Oa,!0,!0),q=this.e.ba(m.Na,m.Oa,!1,!0),h=this.e.ba(m.pb,m.qb,!0,!0),p=this.e.ba(m.pb,m.qb,!1,!0),t=this.e.ba(m.fb,m.gb,!0,!0),Q=this.e.ba(m.fb,m.gb,!1,!0),T=this.e.ba(m.bb,m.cb,!0,!0),m=this.e.ba(m.bb,m.cb,!1,!0);if(this.b.ac||0===this.j&&0===d)var B=(b+.5|0)-b,z=(q+.5|0)-q,b=b+B,q=q+z,h=h+B,p=p+z,t=t+B,Q=Q+z,T=T+B,m=m+z;0===this.j&&0===d?(h=b+l,p=q,t=h,Q=q+n,
T=b,m=Q,f.right=1,f.bottom=1):(f.right=g/l,f.bottom=k/n);a.Wc(b,q,h,p,t,Q,T,m,f);a.qc();a.scale(c,c);a.Zi(-this.e.Lb());a.translate((this.e.ea+this.e.oa)/-2,(this.e.fa+this.e.na)/-2);a.ec();this.Ag=this.b.$c}};var t=[];p.hq=function(a){S(t);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(t.push(b),b=""),t.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));t.push(b);b=""}else d<a.length&&(b+=c,d++);
b.length&&t.push(b)};var b=[];p.iq=function(a,b,c,d,f){if(a&&a.length)if(2>=d)n(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var l=c.measureText(a).width;if(l<=d){n(b);b.push(g());b[0].text=a;b[0].width=l;return}}this.jq(a,b,c,d,f)}else n(b)};p.jq=function(a,e,l,d,f){f&&(this.hq(a),a=t);var n="",k,p,u,q=0;for(u=0;u<a.length;u++)"\n"===a[u]?(q>=e.length&&e.push(g()),n=c(n),p=e[q],p.text=n,p.width=l.measureText(n).width,q++,n=""):(k=n,n+=a[u],p=l.measureText(n).width,p>=d&&(q>=e.length&&e.push(g()),
k=c(k),p=e[q],p.text=k,p.width=l.measureText(k).width,q++,n=a[u],f||" "!==n||(n="")));n.length&&(q>=e.length&&e.push(g()),n=c(n),p=e[q],p.text=n,p.width=l.measureText(n).width,q++);for(u=q;u<e.length;u++)b.push(e[u]);e.length=q};p.i=new function(){};p.ua=new function(){};p.jb=new function(){}})();function ic(g){this.b=g}
(function(){var g=ic.prototype;g.pa=function(c){this.ka=c;this.b=c.b};var n=g.pa.prototype;n.O=function(){this.B||(this.I=new Image,this.I.ak=this.mj,this.b.Sl(this.I,this.lj),this.N=this.pattern=null)};n.Og=function(){this.B||(this.N=null)};n.Ei=function(){if(!this.B&&this.d.length){this.N||(this.N=this.b.k.kf(this.I,!0,this.b.J,this.hh));var c,g;c=0;for(g=this.d.length;c<g;c++)this.d[c].N=this.N}};n.Eg=function(){this.B||this.N||!this.b.k||(this.N=this.b.k.kf(this.I,!0,this.b.J,this.hh))};n.uj=
function(){this.B||this.d.length||!this.N||(this.b.k.deleteTexture(this.N),this.N=null)};n.Qi=function(c){c.drawImage(this.I,0,0)};g.aa=function(c){this.type=c;this.b=c.b};n=g.aa.prototype;n.O=function(){this.visible=0===this.M[0];this.fe=new R(0,0,0,0);this.cn=!1;this.I=this.type.I;this.b.k?(this.type.Eg(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.V.createPattern(this.type.I,"repeat")),this.pattern=this.type.pattern)};n.Hd=function(){this.cn=!1;this.I=this.type.I};n.Le=function(){this.b.k&&
this.cn&&this.N&&(this.b.k.deleteTexture(this.N),this.N=null)};n.Kb=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var g=this.x,l=this.y;this.b.ac&&(g=Math.round(g),l=Math.round(l));var n=-(this.Ab*this.width),b=-(this.Bb*this.height),a=n%this.I.width,e=b%this.I.height;0>a&&(a+=this.I.width);0>e&&(e+=this.I.height);c.translate(g,l);c.rotate(this.j);c.translate(a,e);c.fillRect(n-a,b-e,this.width,this.height);c.restore()};n.se=function(c){this.Va(c)};n.Va=function(c){c.Hb(this.N);
c.he(this.opacity);var g=this.fe;g.right=this.width/this.I.width;g.bottom=this.height/this.I.height;var l=this.eb;if(this.b.ac){var n=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.Wc(l.Na+n,l.Oa+b,l.pb+n,l.qb+b,l.fb+n,l.gb+b,l.bb+n,l.cb+b,g)}else c.Wc(l.Na,l.Oa,l.pb,l.qb,l.fb,l.gb,l.bb,l.cb,g)};g.i=new function(){};g.ua=new function(){};g.jb=new function(){}})();function Y(g){this.b=g}
(function(){function g(a){e=a.x;w=a.y;d=a.z}function n(a,b,d,e){var g;g=f.length?f.pop():new c;g.init(a,b,d,e);return g}function c(){this.bh=this.id=this.y=this.x=this.ij=this.hj=this.Vk=this.time=this.Fl=0;this.kh=this.sj=!1}function p(){}function l(){}var t=Y.prototype;t.pa=function(a){this.ka=a;this.b=a.b};t.pa.prototype.O=function(){};t.aa=function(a){this.type=a;this.b=a.b;this.touches=[];this.dl=!1};var b=t.aa.prototype,a={left:0,top:0};b.dg=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 e=0,w=0,d=0,f=[];c.prototype.init=function(a,b,c,d){var e=Pa();this.Fl=this.Vk=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.bh=d;this.kh=this.sj=!1};c.prototype.update=function(a,b,c,d,e,f){this.Vk=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.kh&&15<=La(this.hj,this.ij,this.x,this.y)&&(this.kh=!0)};c.prototype.Ss=function(a,b){!this.sj&&500<=
Pa()-this.Fl&&!this.kh&&15>La(this.hj,this.ij,this.x,this.y)&&(this.sj=!0,a.ad=this.bh,a.Gf=this.id,a.bf=b,a.b.trigger(Y.prototype.i.Mp,a),a.ed=this.x,a.fd=this.y,a.b.trigger(Y.prototype.i.Np,a),a.bf=0)};var r=-1E3,k=-1E3,x=-1E4;c.prototype.Yn=function(a,b){if(!this.sj){var c=Pa();333>=c-this.Fl&&!this.kh&&15>La(this.hj,this.ij,this.x,this.y)&&(a.ad=this.bh,a.Gf=this.id,a.bf=b,666>=c-x&&25>La(r,k,this.x,this.y)?(a.b.trigger(Y.prototype.i.Hp,a),a.ed=this.x,a.fd=this.y,a.b.trigger(Y.prototype.i.Ip,
a),k=r=-1E3,x=-1E4):(a.b.trigger(Y.prototype.i.Yp,a),a.ed=this.x,a.fd=this.y,a.b.trigger(Y.prototype.i.Zp,a),r=this.x,k=this.y,x=c),a.bf=0)}};b.O=function(){this.Ls=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.bf=this.Gf=this.ad=this.fd=this.ed=this.um=this.tm=this.rm=this.mq=this.lq=this.kq=this.Ji=this.Ii=this.Hi=0;this.Wt=0!==this.M[0];var a=0<this.b.kb?document:this.b.canvas,b=document;this.b.Tc?b=a=window.Canvas:this.b.Cb&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.Tg(a)},!1),a.addEventListener("pointermove",function(a){c.Sg(a)},!1),b.addEventListener("pointerup",function(a){c.vd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.vd(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){c.Tg(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Sg(a)},!1),b.addEventListener("MSPointerUp",function(a){c.vd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.vd(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){c.Gi(a)},!1),a.addEventListener("touchmove",function(a){c.Fi(a)},!1),b.addEventListener("touchend",function(a){c.rf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.rf(a,!0)},!1));if(this.Ls){var d=function(a){a=a.reading;c.rm=a.accelerationX;c.tm=a.accelerationY;c.um=a.accelerationZ},e=function(a){a=a.reading;c.Hi=a.yawDegrees;c.Ii=a.pitchDegrees;c.Ji=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),
f.addEventListener("readingchanged",d));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),k&&k.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),k&&k.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",
function(a){c.Hi=a.alpha||0;c.Ii=a.beta||0;c.Ji=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.kq=a.accelerationIncludingGravity.x||0,c.lq=a.accelerationIncludingGravity.y||0,c.mq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.rm=a.acceleration.x||0,c.tm=a.acceleration.y||0,c.um=a.acceleration.z||0)},!1);this.Wt&&!this.b.R&&(jQuery(document).mousemove(function(a){c.Qg(a)}),jQuery(document).mousedown(function(a){c.Pg(a)}),jQuery(document).mouseup(function(a){c.Rg(a)}));
!this.b.ki&&this.b.Zb&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.Qt(this)};b.Sg=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.dg(b.pointerId),d=Pa();if(0<=c){var e=this.b.R?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.Tg=
function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&cb(b)&&b.preventDefault();var c=this.b.R?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;Pa();this.ad=this.touches.length;this.Gf=b.pointerId;this.touches.push(n(d,c,b.pointerId,this.ad));this.b.ia=!0;this.b.trigger(Y.prototype.i.im,this);this.b.trigger(Y.prototype.i.mm,this);this.ed=d;this.fd=c;this.b.trigger(Y.prototype.i.lm,this);this.b.ia=!1}};b.vd=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.dg(a.pointerId);this.ad=0<=c?this.touches[c].bh:-1;this.Gf=0<=c?this.touches[c].id:-1;this.b.ia=!0;this.b.trigger(Y.prototype.i.hm,this);this.b.trigger(Y.prototype.i.km,this);0<=c&&(b||this.touches[c].Yn(this,c),100>f.length&&f.push(this.touches[c]),this.touches.splice(c,1));this.b.ia=!1}};b.Fi=function(b){b.preventDefault&&b.preventDefault();var c=Pa(),d,e,f,g;d=0;for(e=b.changedTouches.length;d<
e;d++)if(f=b.changedTouches[d],g=this.dg(f.identifier),0<=g){var k=this.b.R?a:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-k.left,f.pageY-k.top,2*(f.vv||f.Ev||f.pv||f.sv||0),2*(f.wv||f.Fv||f.qv||f.tv||0),f.jv||f.Dv||f.ov||f.rv||0)}};b.Gi=function(b){b.preventDefault&&cb(b)&&b.preventDefault();var c=this.b.R?a:jQuery(this.b.canvas).offset();Pa();this.b.ia=!0;var d,e,f,g;d=0;for(e=b.changedTouches.length;d<e;d++)if(f=b.changedTouches[d],g=this.dg(f.identifier),-1===
g){g=f.pageX-c.left;var k=f.pageY-c.top;this.ad=this.touches.length;this.Gf=f.identifier;this.touches.push(n(g,k,f.identifier,this.ad));this.b.trigger(Y.prototype.i.im,this);this.b.trigger(Y.prototype.i.mm,this);this.ed=g;this.fd=k;this.b.trigger(Y.prototype.i.lm,this)}this.b.ia=!1};b.rf=function(a,b){a.preventDefault&&cb(a)&&a.preventDefault();this.b.ia=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.dg(e.identifier),0<=e&&(this.ad=this.touches[e].bh,this.Gf=this.touches[e].id,
this.b.trigger(Y.prototype.i.hm,this),this.b.trigger(Y.prototype.i.km,this),b||this.touches[e].Yn(this,e),100>f.length&&f.push(this.touches[e]),this.touches.splice(e,1));this.b.ia=!1};b.Oj=function(){return this.b.Zb&&0===this.Hi&&0!==d?90*d:this.Hi};b.hv=function(){return this.b.Zb&&0===this.Ii&&0!==w?90*w:this.Ii};b.iv=function(){return this.b.Zb&&0===this.Ji&&0!==e?90*e:this.Ji};b.Pg=function(a){this.Gi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.dl=!0};b.Qg=function(a){this.dl&&
this.Fi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Rg=function(a){a.preventDefault&&this.b.bi&&!this.b.qd&&a.preventDefault();this.b.bi=!0;this.rf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.dl=!1};b.oj=function(){var a,b,c,d=Pa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Vk=d),c.Ss(this,a)};p.prototype.mm=function(){return!0};p.prototype.km=function(){return!0};p.prototype.lm=function(a){return a?this.b.fh(a,this.ed,this.fd):
!1};p.prototype.im=function(a){a=Math.floor(a);return a===this.ad};p.prototype.hm=function(a){a=Math.floor(a);return a===this.ad};p.prototype.Mp=function(){return!0};p.prototype.Yp=function(){return!0};p.prototype.Hp=function(){return!0};p.prototype.Np=function(a){return a?this.b.fh(a,this.ed,this.fd):!1};p.prototype.Zp=function(a){return a?this.b.fh(a,this.ed,this.fd):!1};p.prototype.Ip=function(a){return a?this.b.fh(a,this.ed,this.fd):!1};t.i=new p;l.prototype.pm=function(a,b){var c=this.bf;if(0>
c||c>=this.touches.length)a.u(0);else{var d,e,f,g,k;ea(b)?(d=this.b.md(0),e=d.scale,f=d.rb,g=d.Db,k=d.j,d.scale=1,d.rb=1,d.Db=1,d.j=0,a.u(d.wa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.rb=f,d.Db=g,d.j=k):(d=fa(b)?this.b.md(b):this.b.eg(b))?a.u(d.wa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};l.prototype.qm=function(a,b){var c=this.bf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,k;ea(b)?(d=this.b.md(0),e=d.scale,f=d.rb,g=d.Eb,k=d.j,d.scale=1,d.rb=1,d.Eb=1,d.j=0,a.u(d.wa(this.touches[c].x,
this.touches[c].y,!1)),d.scale=e,d.rb=f,d.Eb=g,d.j=k):(d=fa(b)?this.b.md(b):this.b.eg(b))?a.u(d.wa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};t.jb=new l})();
function jc(g){this.b=g;var n=this;this.b.R||(jQuery(document).mousemove(function(c){n.Qg(c)}),jQuery(document).mousedown(function(c){n.Pg(c)}),jQuery(document).mouseup(function(c){n.Rg(c)}));g=0<this.b.kb?document:this.b.canvas;this.b.Tc?g=window.Canvas:this.b.Cb&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(c){n.Tg(c)},!1),g.addEventListener("pointermove",function(c){n.Sg(c)},!1),g.addEventListener("pointerup",function(c){n.vd(c)},!1),g.addEventListener("pointercancel",
function(c){n.vd(c)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(c){n.Tg(c)},!1),g.addEventListener("MSPointerMove",function(c){n.Sg(c)},!1),g.addEventListener("MSPointerUp",function(c){n.vd(c)},!1),g.addEventListener("MSPointerCancel",function(c){n.vd(c)},!1)):(g.addEventListener("touchstart",function(c){n.Gi(c)},!1),g.addEventListener("touchmove",function(c){n.Fi(c)},!1),g.addEventListener("touchend",function(c){n.rf(c)},!1),g.addEventListener("touchcancel",
function(c){n.rf(c)},!1))}
(function(){function g(b){var a,c;a=0;for(c=b.C.length;a<c;a++)if(b.C[a]instanceof p.aa)return b.C[a];return null}function n(){}function c(){}var p=jc.prototype,l={left:0,top:0};p.Pg=function(b){1===b.which&&this.gl("leftmouse",b.pageX,b.pageY)};p.Qg=function(b){1===b.which&&this.hl("leftmouse",b.pageX,b.pageY)};p.Rg=function(b){1===b.which&&this.il("leftmouse")};p.Gi=function(b){b.preventDefault&&cb(b)&&b.preventDefault();var a,c,g,d;a=0;for(c=b.changedTouches.length;a<c;a++)g=b.changedTouches[a],
d=g.identifier,this.gl(d?d.toString():"<none>",g.pageX,g.pageY)};p.Fi=function(b){b.preventDefault&&b.preventDefault();var a,c,g,d;a=0;for(c=b.changedTouches.length;a<c;a++)g=b.changedTouches[a],d=g.identifier,this.hl(d?d.toString():"<none>",g.pageX,g.pageY)};p.rf=function(b){b.preventDefault&&cb(b)&&b.preventDefault();var a,c,g;a=0;for(c=b.changedTouches.length;a<c;a++)g=b.changedTouches[a],g=g.identifier,this.il(g?g.toString():"<none>")};p.Tg=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&
"mouse"!==b.pointerType&&(b.preventDefault&&cb(b)&&b.preventDefault(),this.gl(b.pointerId.toString(),b.pageX,b.pageY))};p.Sg=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.hl(b.pointerId.toString(),b.pageX,b.pageY))};p.vd=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&cb(b)&&b.preventDefault(),this.il(b.pointerId.toString()))};p.gl=function(b,a,c){var n=this.b.R?l:jQuery(this.b.canvas).offset();
a=a-n.left;c=c-n.top;var d,f,p,k,n=this.of.Mc(),t,u,q,h=null;t=0;for(u=n.length;t<u;t++)if(q=n[t],d=g(q),d.enabled&&!d.Pd&&(d=q.e.wa(a,c,!0),f=q.e.wa(a,c,!1),q.da(),q.hb(d,f)))h?q.e.index>h.e.index?(h=q,p=d,k=f):q.e.index===h.e.index&&q.jc()>h.jc()&&(h=q,p=d,k=f):(h=q,p=d,k=f);h&&g(h).$s(b,p,k)};p.hl=function(b,a,c){var n=this.b.R?l:jQuery(this.b.canvas).offset();a=a-n.left;c=c-n.top;var d,f=this.of.Mc(),p,k,t;p=0;for(k=f.length;p<k;p++)d=f[p],t=g(d),!t.enabled||!t.Pd||t.Pd&&t.hk!==b||(n=d.e.wa(a,
c,!0),d=d.e.wa(a,c,!1),t.dt(n,d))};p.il=function(b){var a=this.of.Mc(),c,l,d;c=0;for(l=a.length;c<l;c++)d=a[c],d=g(d),d.Pd&&d.hk===b&&d.gt()};p.pa=function(b){this.behavior=b;this.b=b.b};p.pa.prototype.O=function(){};p.aa=function(b,a){this.type=b;this.behavior=b.behavior;this.q=a;this.b=b.b};var t=p.aa.prototype;t.O=function(){this.Pd=!1;this.Lm=this.Km=0;this.hk="<none>";this.Nj=this.M[0];this.enabled=0!==this.M[1]};t.wb=function(){return{enabled:this.enabled}};t.Mb=function(b){this.enabled=b.enabled;
this.Pd=!1};t.$s=function(b,a,c){this.Km=a-this.q.x;this.Lm=c-this.q.y;this.Pd=!0;this.hk=b;this.b.ia=!0;this.b.trigger(jc.prototype.i.Jp,this.q);this.b.ia=!1};t.dt=function(b,a){var c=b-this.Km,g=a-this.Lm;if(0===this.Nj){if(this.q.x!==c||this.q.y!==g)this.q.x=c,this.q.y=g,this.q.ta()}else 1===this.Nj?this.q.x!==c&&(this.q.x=c,this.q.ta()):2===this.Nj&&this.q.y!==g&&(this.q.y=g,this.q.ta())};t.gt=function(){this.Pd=!1;this.b.ia=!0;this.b.trigger(jc.prototype.i.Zl,this.q);this.b.ia=!1};t.Rb=function(){};
n.prototype.Jp=function(){return!0};n.prototype.Zl=function(){return!0};p.i=new n;c.prototype.om=function(b){this.enabled=0!==b;this.enabled||(this.Pd=!1)};p.ua=new c;p.jb=new function(){}})();function kc(g){this.b=g}
(function(){function g(){}function n(){}var c=kc.prototype;c.pa=function(c){this.behavior=c;this.b=c.b};c.pa.prototype.O=function(){};c.aa=function(c,g){this.type=c;this.behavior=c.behavior;this.q=g;this.b=c.b};var p=c.aa.prototype;p.O=function(){this.vm=1===this.M[0];this.ag=this.M[1];this.ph=this.M[2];this.Nh=this.M[3];this.Hq=this.M[4];this.cc=this.vm?0:3;this.Ob?this.tc.reset():this.tc=new Ta;this.Ie=this.q.opacity?this.q.opacity:1;this.vm&&(0===this.ag?(this.cc=1,0===this.ph&&(this.cc=2)):(this.q.opacity=
0,this.b.S=!0))};p.wb=function(){return{fit:this.ag,wt:this.ph,fot:this.Nh,s:this.cc,st:this.tc.ca,mo:this.Ie}};p.Mb=function(c){this.ag=c.fit;this.ph=c.wt;this.Nh=c.fot;this.cc=c.s;this.tc.reset();this.tc.ca=c.st;this.Ie=c.mo};p.Rb=function(){this.tc.add(this.b.Wh(this.q));0===this.cc&&(this.q.opacity=this.tc.ca/this.ag*this.Ie,this.b.S=!0,this.q.opacity>=this.Ie&&(this.q.opacity=this.Ie,this.cc=1,this.tc.reset(),this.b.trigger(kc.prototype.i.Kp,this.q)));1===this.cc&&this.tc.ca>=this.ph&&(this.cc=
2,this.tc.reset(),this.b.trigger(kc.prototype.i.$p,this.q));2===this.cc&&0!==this.Nh&&(this.q.opacity=this.Ie-this.tc.ca/this.Nh*this.Ie,this.b.S=!0,0>this.q.opacity&&(this.q.opacity=0,this.cc=3,this.tc.reset(),this.b.trigger(kc.prototype.i.Lp,this.q),1===this.Hq&&this.b.Dd(this.q)))};p.Yq=function(){this.cc=0;this.tc.reset();0===this.ag?(this.cc=1,0===this.ph&&(this.cc=2)):(this.q.opacity=0,this.b.S=!0)};g.prototype.Lp=function(){return!0};g.prototype.Kp=function(){return!0};g.prototype.$p=function(){return!0};
c.i=new g;n.prototype.bq=function(){this.Yq()};c.ua=new n;c.jb=new function(){}})();function lc(g){this.b=g}
(function(){var g=lc.prototype;g.pa=function(g){this.behavior=g;this.b=g.b};g.pa.prototype.O=function(){};g.aa=function(g,c){this.type=g;this.behavior=g.behavior;this.q=c;this.b=g.b;this.mode=0};g=g.aa.prototype;g.O=function(){this.mode=this.M[0]};g.Rb=function(){};g.oj=function(){this.q.da();var g=this.q.qa,c=this.q.e.Ja,p=!1;0===this.mode?(0>this.q.x&&(this.q.x=0,p=!0),0>this.q.y&&(this.q.y=0,p=!0),this.q.x>c.width&&(this.q.x=c.width,p=!0),this.q.y>c.height&&(this.q.y=c.height,p=!0)):(0>g.left&&
(this.q.x-=g.left,p=!0),0>g.top&&(this.q.y-=g.top,p=!0),g.right>c.width&&(this.q.x-=g.right-c.width,p=!0),g.bottom>c.height&&(this.q.y-=g.bottom-c.height,p=!0));p&&this.q.ta()}})();
function ac(){return[cc,dc,fc,gc,ec,ic,Y,hc,bc,lc,jc,kc,bc.prototype.i.Fp,jc.prototype.ua.om,bc.prototype.ua.fq,bc.prototype.ua.zp,bc.prototype.ua.Gj,kc.prototype.ua.bq,jc.prototype.i.Zl,dc.prototype.i.Xl,dc.prototype.ua.Gj,X.prototype.ua.cq,X.prototype.i.em,dc.prototype.ua.dq,cc.prototype.ua.up,cc.prototype.ua.sp,ec.prototype.i.$l]};
