// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var aa,ba,ea,B,ha,ia,ja,N,ka,la,ma,na,qa,P,ra,ta,ua,va,wa,xa,ya,U,Aa,Ba,Ca,Da,Ea,V,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc={},ec={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype}); (function(){function c(a,d,e,f){this.set(a,d,e,f)}function n(){this.$b=this.Zb=this.ec=this.cc=this.rc=this.qc=this.Mb=this.Lb=0}function g(a,d,e,f){af?d:f):(k=ae?d:e):ef?a:f):(k=de?a:e)}function t(){this.items=this.td=null;this.Xg=0;ca&&(this.td=new Set);this.lg=[];this.ee=!0}function u(a){oa[T++]=a}function r(){this.K=this.Mj=this.y=this.kk=0}function b(a){this.Ra=[];this.Uh=this.Wh=this.Xh=this.Vh=0;this.zh(a)}function a(a,d){this.ok= a;this.nk=d;this.cells={}}function v(a,d){this.ok=a;this.nk=d;this.cells={}}function x(a,d,e){var f;return y.length?(f=y.pop(),f.Uk=a,f.x=d,f.y=e,f):new aa(a,d,e)}function d(a,d,e){this.Uk=a;this.x=d;this.y=e;this.Ya=new ba}function f(a,d,e){var f;return C.length?(f=C.pop(),f.Uk=a,f.x=d,f.y=e,f):new ea(a,d,e)}function m(a,d,e){this.Uk=a;this.x=d;this.y=e;this.Ya=[];this.Df=!0;this.qd=new ba;this.qg=!1}function e(a,d){return a.ed-d.ed}B=function(a){window.console&&window.console.log&&window.console.log(a)}; ha=function(a){window.console&&window.console.error&&window.console.error(a)};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};N=function(a){return"string"===typeof a};ka=function(a){return 0d;d<<=1)a=a|a>>d;return a+1};ma=function(a){return 0>a?-a:a};na=function(a,d){return av)return!1;dv)return!1;z=l-a+b-e;w=h-d+A-f;a=e-a;d=f-d;l=b-l;h=A-h;A=ma(d*l-h*a);return ma(l*w-h*z)>A?!1:ma(a*w-d*z)<=A};c.prototype.set=function(a,d,e,f){this.left=a;this.top=d;this.right=e;this.bottom=f};c.prototype.lf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right-this.left};c.prototype.height= function(){return this.bottom-this.top};c.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};c.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};c.prototype.At=function(a){return!(a.rightthis.right||a.top>this.bottom)};c.prototype.Bt=function(a,d,e){return!(a.right+dthis.right||a.top+e>this.bottom)};c.prototype.nb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};c.prototype.yg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=c;n.prototype.bg=function(a){this.Lb=a.left;this.Mb=a.top;this.qc=a.right;this.rc=a.top;this.cc=a.right;this.ec=a.bottom;this.Zb=a.left;this.$b=a.bottom};n.prototype.Lp=function(a,d){if(0===d)this.bg(a);else{var e=Math.sin(d),f=Math.cos(d), l=a.left*e,h=a.top*e,b=a.right*e,e=a.bottom*e,A=a.left*f,z=a.top*f,w=a.right*f,f=a.bottom*f;this.Lb=A-h;this.Mb=z+l;this.qc=w-h;this.rc=z+b;this.cc=w-e;this.ec=f+b;this.Zb=A-e;this.$b=f+l}};n.prototype.offset=function(a,d){this.Lb+=a;this.Mb+=d;this.qc+=a;this.rc+=d;this.cc+=a;this.ec+=d;this.Zb+=a;this.$b+=d;return this};var k=0,q=0;n.prototype.sn=function(a){g(this.Lb,this.qc,this.cc,this.Zb);a.left=k;a.right=q;g(this.Mb,this.rc,this.ec,this.$b);a.top=k;a.bottom=q};n.prototype.nb=function(a,d){var e= this.Lb,f=this.Mb,l=this.qc-e,h=this.rc-f,b=this.cc-e,A=this.ec-f,z=a-e,w=d-f,v=l*l+h*h,p=l*b+h*A,h=l*z+h*w,k=b*b+A*A,m=b*z+A*w,q=1/(v*k-p*p),l=(k*h-p*m)*q,v=(v*m-p*h)*q;if(0<=l&&0l+v)return!0;l=this.Zb-e;h=this.$b-f;v=l*l+h*h;p=l*b+h*A;h=l*z+h*w;q=1/(v*k-p*p);l=(k*h-p*m)*q;v=(v*m-p*h)*q;return 0<=l&&0l+v};n.prototype.de=function(a,d){if(d)switch(a){case 0:return this.Lb;case 1:return this.qc;case 2:return this.cc;case 3:return this.Zb;case 4:return this.Lb;default:return this.Lb}else switch(a){case 0:return this.Mb; case 1:return this.rc;case 2:return this.ec;case 3:return this.$b;case 4:return this.Mb;default:return this.Mb}};n.prototype.So=function(){return(this.Lb+this.qc+this.cc+this.Zb)/4};n.prototype.To=function(){return(this.Mb+this.rc+this.ec+this.$b)/4};n.prototype.jo=function(a){var d=a.So(),e=a.To();if(this.nb(d,e))return!0;d=this.So();e=this.To();if(a.nb(d,e))return!0;var f,l,h,b,A,z,w,v;for(w=0;4>w;w++)for(v=0;4>v;v++)if(d=this.de(w,!0),e=this.de(w,!1),f=this.de(w+1,!0),l=this.de(w+1,!1),h=a.de(v, !0),b=a.de(v,!1),A=a.de(v+1,!0),z=a.de(v+1,!1),ta(d,e,f,l,h,b,A,z))return!0;return!1};va=n;wa=function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);return a};xa=function(a,d){var e,f;d=P(d);if(!(0>d||d>=a.length)){e=d;for(f=a.length-1;ee?e:a};V=function(a){return a/(180/qa)};Ga=function(a){return 180/qa*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};Ia=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ja=function(a){return Ha(Ga(a))};Ka=function(a){return Ia(V(a))};La=function(a,d,e,f){return Math.atan2(f-d,e-a)};Ma=function(a,d){if(a===d)return 0;var e=Math.sin(a),f=Math.cos(a),l=Math.sin(d),h=Math.cos(d),e=e*l+f*h;return 1<=e?0:-1>=e?qa:Math.acos(e)}; Na=function(a,d,e){var f=Math.sin(a),l=Math.cos(a),h=Math.sin(d),b=Math.cos(d);return Math.acos(f*h+l*b)>e?0=f*l-e*h};Ra=function(a,d,e,f,l,h){if(0===e)return h?a:d;var b=Math.sin(e);e=Math.cos(e);a-=f;d-=l;var A=a*b;a=a*e-d*b;d=d*e+A;return h?a+f:d+l};Sa=function(a,d,e,f){a=e-a;d=f-d;return Math.sqrt(a*a+d*d)};Ta=function(a,d){return!a!==!d};Ua=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0; return!1};Va=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var p=+new Date;Wa=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()-p};var l=!1,h=l=!1,M=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent), l=!l&&/safari/i.test(navigator.userAgent),h=/(iphone|ipod|ipad)/i.test(navigator.userAgent),M=window.c2ejecta);var ca=!l&&!M&&!h&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;t.prototype.contains=function(a){return this.Id()?!1:ca?this.td.has(a):this.items&&this.items.hasOwnProperty(a)};t.prototype.add=function(a){if(ca)this.td.has(a)||(this.td.add(a),this.ee=!1);else{var d=a.toString(),e=this.items;e?e.hasOwnProperty(d)||(e[d]=a,this.Xg++,this.ee=!1):(this.items={},this.items[d]= a,this.Xg=1,this.ee=!1)}};t.prototype.remove=function(a){if(!this.Id())if(ca)this.td.has(a)&&(this.td["delete"](a),this.ee=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Xg--,this.ee=!1)}};t.prototype.clear=function(){this.Id()||(ca?this.td.clear():(this.items=null,this.Xg=0),U(this.lg),this.ee=!0)};t.prototype.Id=function(){return 0===this.count()};t.prototype.count=function(){return ca?this.td.size:this.Xg};var oa=null,T=0;t.prototype.Yu=function(){if(!this.ee){if(ca)U(this.lg), oa=this.lg,T=0,this.td.forEach(u),oa=null,T=0;else{var a=this.lg;U(a);var d,e=0,f=this.items;if(f)for(d in f)f.hasOwnProperty(d)&&(a[e++]=f[d])}this.ee=!0}};t.prototype.dd=function(){this.Yu();return this.lg};ba=t;new ba;Xa=function(a,d){ca?Ya(a,d.td):Za(a,d.dd())};Ya=function(a,d){var e,f,l,h;f=e=0;for(l=a.length;ee&&(e=h),bl&&(l=b);this.Vh=d;this.Wh=e;this.Xh=f;this.Uh=l};b.prototype.bg=function(a,d,e){this.Ra.length=8;this.Yc=4;var f=this.Ra;f[0]=a.left-d;f[1]=a.top-e;f[2]=a.right-d;f[3]=a.top-e;f[4]=a.right-d;f[5]=a.bottom-e;f[6]=a.left-d;f[7]=a.bottom-e;this.ai=a.right-a.left;this.$h=a.bottom-a.top;this.ma()};b.prototype.ag=function(a,d,e,f,l){this.Ra.length=8;this.Yc=4;var h=this.Ra;h[0]=a.Lb-d;h[1]=a.Mb-e;h[2]=a.qc-d;h[3]=a.rc-e;h[4]=a.cc-d;h[5]=a.ec-e;h[6]=a.Zb-d;h[7]=a.$b-e;this.ai=f;this.$h=l;this.ma()}; b.prototype.Kp=function(a){this.Yc=a.Yc;Aa(this.Ra,a.Ra);this.Vh=a.Vh;this.Xh-a.Xh;this.Wh=a.Wh;this.Uh=a.Uh};b.prototype.kf=function(a,d,e){if(this.ai!==a||this.$h!==d||this.vn!==e){this.ai=a;this.$h=d;this.vn=e;var f,l,h,b,A,z=0,w=1,v=this.up,p=this.Ra;0!==e&&(z=Math.sin(e),w=Math.cos(e));e=0;for(h=this.Yc;ey.length&&y.push(A), this.cells[f][h]=null);if(e)for(f=e.left,l=e.right;f<=l;++f)for(h=e.top,b=e.bottom;h<=b;++h)d&&d.nb(f,h)||this.le(f,h,!0).fl(a)};a.prototype.vj=function(a,d){var e,f,l,h,b,A;e=this.Bb(a.left);l=this.Cb(a.top);f=this.Bb(a.right);for(b=this.Cb(a.bottom);e<=f;++e)for(h=l;h<=b;++h)(A=this.le(e,h,!1))&&A.dump(d)};eb=a;v.prototype.le=function(a,d,e){var l;l=this.cells[a];return l?(l=l[d])?l:e?(l=f(this,a,d),this.cells[a][d]=l):null:e?(l=f(this,a,d),this.cells[a]={},this.cells[a][d]=l):null};v.prototype.Bb= function(a){return P(a/this.ok)};v.prototype.Cb=function(a){return P(a/this.nk)};v.prototype.update=function(a,d,e){var f,l,h,b,A;if(d)for(f=d.left,l=d.right;f<=l;++f)for(h=d.top,b=d.bottom;h<=b;++h)if(!e||!e.nb(f,h))if(A=this.le(f,h,!1))A.remove(a),A.Id()&&(A.reset(),1E3>C.length&&C.push(A),this.cells[f][h]=null);if(e)for(f=e.left,l=e.right;f<=l;++f)for(h=e.top,b=e.bottom;h<=b;++h)d&&d.nb(f,h)||this.le(f,h,!0).fl(a)};v.prototype.vj=function(a,d,e,f,l){var h,b;a=this.Bb(a);d=this.Cb(d);e=this.Bb(e); for(h=this.Cb(f);a<=e;++a)for(f=d;f<=h;++f)(b=this.le(a,f,!1))&&b.dump(l)};v.prototype.Rt=function(a){var d,e,f,l,h;d=a.left;f=a.top;e=a.right;for(l=a.bottom;d<=e;++d)for(a=f;a<=l;++a)if(h=this.le(d,a,!1))h.Df=!1};fb=v;var y=[];d.prototype.Id=function(){return this.Ya.Id()};d.prototype.fl=function(a){this.Ya.add(a)};d.prototype.remove=function(a){this.Ya.remove(a)};d.prototype.dump=function(a){Ba(a,this.Ya.dd())};aa=d;var C=[];m.prototype.Id=function(){if(!this.Ya.length)return!0;if(this.Ya.length> this.qd.count())return!1;this.Hk();return!0};m.prototype.fl=function(a){this.qd.contains(a)?(this.qd.remove(a),this.qd.Id()&&(this.qg=!1)):this.Ya.length?(this.Ya[this.Ya.length-1].zc()>a.zc()&&(this.Df=!1),this.Ya.push(a)):(this.Ya.push(a),this.Df=!0)};m.prototype.remove=function(a){this.qd.add(a);this.qg=!0;30<=this.qd.count()&&this.Hk()};m.prototype.Hk=function(){this.qg&&(this.qd.count()===this.Ya.length?this.reset():(Xa(this.Ya,this.qd),this.qd.clear(),this.qg=!1))};m.prototype.$r=function(){this.Df|| (this.Ya.sort(e),this.Df=!0)};m.prototype.reset=function(){U(this.Ya);this.Df=!0;this.qd.clear();this.qg=!1};m.prototype.dump=function(a){this.Hk();this.$r();this.Ya.length&&a.push(this.Ya)};ea=m;var fa="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":fa[a-1]};hb=function(a,d,e){if(e)switch(a.rb=e.ONE,a.ob=e.ONE_MINUS_SRC_ALPHA,d){case 1:a.rb=e.ONE;a.ob=e.ONE;break;case 3:a.rb= e.ONE;a.ob=e.ZERO;break;case 4:a.rb=e.ONE_MINUS_DST_ALPHA;a.ob=e.ONE;break;case 5:a.rb=e.DST_ALPHA;a.ob=e.ZERO;break;case 6:a.rb=e.ZERO;a.ob=e.SRC_ALPHA;break;case 7:a.rb=e.ONE_MINUS_DST_ALPHA;a.ob=e.ZERO;break;case 8:a.rb=e.ZERO;a.ob=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.rb=e.DST_ALPHA;a.ob=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.rb=e.ONE_MINUS_DST_ALPHA,a.ob=e.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length? !1:a===d?!0:a.toLowerCase()===d.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(c){var n=new fc(3);c&&(n[0]=c[0],n[1]=c[1],n[2]=c[2]);return n} function hc(c){var n=new fc(16);c&&(n[0]=c[0],n[1]=c[1],n[2]=c[2],n[3]=c[3],n[4]=c[4],n[5]=c[5],n[6]=c[6],n[7]=c[7],n[8]=c[8],n[9]=c[9],n[10]=c[10],n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15]);return n}function ic(c,n){n[0]=c[0];n[1]=c[1];n[2]=c[2];n[3]=c[3];n[4]=c[4];n[5]=c[5];n[6]=c[6];n[7]=c[7];n[8]=c[8];n[9]=c[9];n[10]=c[10];n[11]=c[11];n[12]=c[12];n[13]=c[13];n[14]=c[14];n[15]=c[15]} function jc(c,n){var g=n[0],t=n[1];n=n[2];c[0]*=g;c[1]*=g;c[2]*=g;c[3]*=g;c[4]*=t;c[5]*=t;c[6]*=t;c[7]*=t;c[8]*=n;c[9]*=n;c[10]*=n;c[11]*=n} function kc(c,n,g,t){t||(t=hc());var u,r,b,a,v,x,d,f,m=c[0],e=c[1];c=c[2];r=g[0];b=g[1];u=g[2];g=n[1];x=n[2];m===n[0]&&e===g&&c===x?(c=t,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(g=m-n[0],x=e-n[1],d=c-n[2],f=1/Math.sqrt(g*g+x*x+d*d),g*=f,x*=f,d*=f,n=b*d-u*x,u=u*g-r*d,r=r*x-b*g,(f=Math.sqrt(n*n+u*u+r*r))?(f=1/f,n*=f,u*=f,r*=f):r=u=n=0,b=x*r-d*u,a=d*n-g*r,v=g*u-x*n,(f=Math.sqrt(b*b+a*a+v*v))?(f=1/f,b*=f,a*=f,v*=f):v=a=b=0, t[0]=n,t[1]=b,t[2]=g,t[3]=0,t[4]=u,t[5]=a,t[6]=x,t[7]=0,t[8]=r,t[9]=v,t[10]=d,t[11]=0,t[12]=-(n*m+u*e+r*c),t[13]=-(b*m+a*e+v*c),t[14]=-(g*m+x*e+d*c),t[15]=1)} (function(){function c(a,b,c){this.oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ja=!!c;this.Li=this.Og=!1;this.uk=0;this.bk=1;this.Pm=1E3;this.cv=(this.Pm-this.bk)/32768;this.lk=gc([0,0,100]);this.Bo=gc([0,0,0]);this.fq=gc([0,1,0]);this.Mh=gc([1,1,1]);this.Jn=!0;this.cj=hc();this.mc=hc();this.sl=hc();this.tk=hc();this.m=a;this.version=0===this.m.getParameter(this.m.VERSION).indexOf("WebGL 2")?2:1;this.co()}function n(a,b,c){this.m=a;this.Ah= b;this.name=c;this.Cc=a.getAttribLocation(b,"aPos");this.se=a.getAttribLocation(b,"aTex");this.zo=a.getUniformLocation(b,"matP");this.Zi=a.getUniformLocation(b,"matMV");this.Jf=a.getUniformLocation(b,"opacity");this.xl=a.getUniformLocation(b,"colorFill");this.Ao=a.getUniformLocation(b,"samplerFront");this.gh=a.getUniformLocation(b,"samplerBack");this.Ve=a.getUniformLocation(b,"destStart");this.Ue=a.getUniformLocation(b,"destEnd");this.ih=a.getUniformLocation(b,"seconds");this.zl=a.getUniformLocation(b, "pixelWidth");this.yl=a.getUniformLocation(b,"pixelHeight");this.fh=a.getUniformLocation(b,"layerScale");this.eh=a.getUniformLocation(b,"layerAngle");this.jh=a.getUniformLocation(b,"viewOrigin");this.hh=a.getUniformLocation(b,"scrollPos");this.tt=!!(this.zl||this.yl||this.ih||this.gh||this.Ve||this.Ue||this.fh||this.eh||this.jh||this.hh);this.Jo=this.Ko=-999;this.bj=1;this.Fo=this.Eo=0;this.Ho=this.Do=this.Co=1;this.No=this.Mo=this.Lo=this.Po=this.Oo=this.Go=0;this.rl=[];this.Io=hc();this.Jf&&a.uniform1f(this.Jf, 1);this.xl&&a.uniform4f(this.xl,1,1,1,1);this.Ao&&a.uniform1i(this.Ao,0);this.gh&&a.uniform1i(this.gh,1);this.Ve&&a.uniform2f(this.Ve,0,0);this.Ue&&a.uniform2f(this.Ue,1,1);this.fh&&a.uniform1f(this.fh,1);this.eh&&a.uniform1f(this.eh,0);this.jh&&a.uniform2f(this.jh,0,0);this.hh&&a.uniform2f(this.hh,0,0);this.ih&&a.uniform1f(this.ih,0);this.Me=!1}function g(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&& a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function t(a,b){this.type=a;this.q=b;this.m=b.m;this.Ac=this.sb=this.fp=0;this.L=this.Kc=null;this.Mp=[]}var u=hc();c.prototype.co=function(){var a=this.m,b;this.uo=1;this.Re=this.Qe=null;this.hi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ja?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): a.disable(a.DEPTH_TEST);this.vo=a.ONE;this.so=a.ONE_MINUS_SRC_ALPHA;this.Yj=new Float32Array(8E3*(this.ja?3:2));this.Oj=new Float32Array(16E3);this.Vl=new Float32Array(32E3);this.Ul=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Ul);a.bufferData(a.ARRAY_BUFFER,this.Vl.byteLength,a.DYNAMIC_DRAW);this.Kh=Array(4);this.Fh=Array(4);for(b=0;4>b;b++)this.Kh[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Kh[b]),a.bufferData(a.ARRAY_BUFFER,this.Yj.byteLength,a.DYNAMIC_DRAW),this.Fh[b]=a.createBuffer(), a.bindBuffer(a.ARRAY_BUFFER,this.Fh[b]),a.bufferData(a.ARRAY_BUFFER,this.Oj.byteLength,a.DYNAMIC_DRAW);this.Ad=0;this.yt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.yt);for(var c=new Uint16Array(12E3),d=b=0;12E3>b;)c[b++]=d,c[b++]=d+1,c[b++]=d+2,c[b++]=d,c[b++]=d+2,c[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.Uf=this.gg=this.Ud=0;this.Ba=[];b=this.ja?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.vg({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}"},b,"");this.Ba.push(c);c=this.vg({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, "attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.Ba.push(c);c=this.vg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"");this.Ba.push(c);c=this.vg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, b,"");this.Ba.push(c);for(var f in lc)lc.hasOwnProperty(f)&&this.Ba.push(this.vg(lc[f],b,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.zd=[];this.hd=0;this.pb=this.fb=!1;this.Dn=this.Yg=-1;this.nf=null;this.Fk=a.createFramebuffer();this.li=this.xj=null;this.qn=!1;this.ja&&(this.li=a.createRenderbuffer());this.we=gc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Ut=a[0];this.Cl=a[1];2048"===b.name&&a.vertexAttribPointer(b.Cc,4,a.FLOAT,!1,0,0));if(0"!==b.name&&a.vertexAttribPointer(b.Cc,this.ja?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Fh[this.Ad]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Oj.subarray(0,this.gg));b&&0<=b.se&&""!==b.name&&a.vertexAttribPointer(b.se,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.hd;ac||0>d)){var f=this.Gb();f.type=7;f.sb=1;f.L||(f.L=hc());f.L[0]=a;f.L[1]=b;f.L[2]=c;f.L[3]=d;this.pb=this.fb=!1}};c.prototype.Gp=function(a){if(this.ja&&(a=!!a,this.Og!==a)){var b=this.Gb();b.type=14;b.sb=a?1:0;this.pb=this.fb=!1;this.Og=a;this.xj=null;this.Og?this.Kb(2):this.Kb(0)}};c.prototype.Fp=function(a){if(this.ja){var b=this.Gb();b.type=13;b.sb=a?1:0;this.pb=this.fb=!1}};c.prototype.Rn=function(){ic(this.sl, u);this.sd();this.cd();var a=this.width/2,b=this.height/2;this.Wf(-a,b,a,b,a,-b,-a,-b);ic(u,this.mc);this.cd()};c.prototype.Ep=function(a,b,c){this.Kb(3);var d=this.Gb();d.type=12;d.L||(d.L=hc());d.L[0]=a;d.L[1]=b;d.L[2]=c;d.L[3]=1;this.pb=this.fb=!1};c.prototype.Lu=function(){this.Kb(0)};c.prototype.xu=function(){this.Kb(2)};c.prototype.pu=function(){this.je();this.m.flush()};var r=[],b={};c.prototype.qr=function(){U(r);b={}};c.prototype.Wi=function(a,c,n,d){c=!!c;n=!!n;var f=a.src+","+c+","+n+(c? ",undefined":""),m=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return m=b[f],m.Zh++,m;this.je();var e=this.m,k=ka(a.width)&&ka(a.height),m=e.createTexture();e.bindTexture(e.TEXTURE_2D,m);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var q=e.RGBA,p=e.RGBA,l=e.UNSIGNED_BYTE;if(d&&!this.oe)switch(d){case 1:p=q=e.RGB;break;case 2:l=e.UNSIGNED_SHORT_4_4_4_4;break;case 3:l=e.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=q=e.RGB,l=e.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!k&&c){d=document.createElement("canvas"); d.width=la(a.width);d.height=la(a.height);var h=d.getContext("2d");"undefined"!==typeof h.imageSmoothingEnabled?h.imageSmoothingEnabled=n:(h.webkitImageSmoothingEnabled=n,h.mozImageSmoothingEnabled=n,h.msImageSmoothingEnabled=n);h.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);e.texImage2D(e.TEXTURE_2D,0,q,p,l,d)}else e.texImage2D(e.TEXTURE_2D,0,q,p,l,a);c?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));n?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),(k||2<=this.version)&&this.Jn?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.generateMipmap(e.TEXTURE_2D)):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST));e.bindTexture(e.TEXTURE_2D, null);this.Qe=null;m.Be=a.width;m.Ae=a.height;m.Zh=1;m.un=f;r.push(m);return b[f]=m};c.prototype.wc=function(a,b,c){var d;this.je();var f=this.m;this.oe&&(d=!1);var m=f.createTexture();f.bindTexture(f.TEXTURE_2D,m);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.Qe=null;m.Be=a;m.Ae=b;r.push(m);return m};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Zh&&1=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function g(){try{return!!window.indexedDB}catch(a){return!1}} function t(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(a,d,e,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=e}}catch(l){b(l)}}function r(a,d,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=t;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;var f=b.transaction(["saves"]).objectStore("saves").get(a); f.onsuccess=function(){f.result?d(f.result.data):d(null)}}}catch(f){e(f)}}function b(){B("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1l?(l*=d,5===c?(h=l*e/this.Qa,1h&&(h=1/Math.ceil(1/h)),l=this.Qa*h/e,h=this.Pa*h/e,b=(a-l)/2,f=(d-h)/2,a=l,d=h):(b=(a-l)/2,a=l)):(h=a/l,5=== c?(h=h*e/this.Pa,1h&&(h=1/Math.ceil(1/h)),l=this.Qa*h/e,h=this.Pa*h/e,b=(a-l)/2,f=(d-h)/2,a=l):f=(d-h)/2,d=h)):l&&0===c&&(b=Math.floor((a-this.Qa)/2),f=Math.floor((d-this.Pa)/2),a=this.Qa,d=this.Pa),2>c&&(this.sg=e),this.fi=Math.round(a),this.xg=Math.round(d),this.width=Math.round(a*e),this.height=Math.round(d*e),this.V=!0,this.oq?(this.C=this.width,this.B=this.height,this.fc=!0):this.widthl&&(this.B=this.C/c)):3===c&&(l=this.Qa/this.Pa,c=this.Hf/this.Gf,c>l?this.C=this.B*c:cf;)f++,a=m.shift(),this.Hp(a[0],a[1])};c.prototype.nq=function(a,e){a.cocoonLazyLoad=!0;a.onerror=function(e){d=a.tn=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",e)};this.Sc?a.src=e:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,function(d){a.src=d},function(b){d=a.tn=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",b)}):(a.crossOrigin= "anonymous",this.su(a,e)));this.ng.push(a)};c.prototype.Is=function(a){var d,e;d=0;for(e=this.ng.length;d=h)h=5E4;a+=h;c.src&&(c.complete||c.loaded)&&!c.tn?d+=h:f=!1}f&&this.nu&&this.jf&&(k||(this.jf.Pu(),k=!0),b=this.jf.Ws(),d+=b,bthis.re&&(this.jc||500<=b&&this.wo!=this.Xc)){a.clearRect(0,0,l,c);var b=l/2,c=c/2,l=0===this.re&&this.qe.aj.complete,h=40*e,k=0, p=80*e,m;if(l){var n=this.qe.aj,p=n.width*e;m=n.height*e;h=p/2;k=m/2;a.drawImage(n,P(b-h),P(c-k),p,m)}1>=this.re?(b=P(b-h)+.5,c=P(c+(k+(l?12*e:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(b,c,Math.floor(p*this.Xc),6*e),a.strokeStyle="black",a.strokeRect(b,c,p,6*e),a.strokeStyle="white",a.strokeRect(b-1*e,c-1*e,p+2*e,8*e)):2===this.re&&(a.font=this.Sc?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.Gw="middle",e=Math.round(100*this.Xc)+"%",l=a.measureText?a.measureText(e):null,a.fillText(e, b-(l?l.width:0)/2,c));this.wo=this.Xc}else if(4===this.re){this.Wr(a);v?v(function(){f.go()}):setTimeout(function(){f.go()},16);return}}setTimeout(function(){f.go()},this.jc?10:100)}}};var p=-1,l="undefined"===typeof cr_is_preview?200:0,h=!0,M=!1,ca=0,oa=0,T="undefined"===typeof cr_is_preview?3E3:0,y=null,C=null,fa=0;c.prototype.Wr=function(a){if(!q){for(var e=Math.ceil(this.width),b=Math.ceil(this.height),f=this.qe.aj,c=this.qe.mu,k=this.qe.bv,m=0;4>m;++m)if(!f[m].complete||!c[m].complete||!k[m].complete)return; 0===fa&&(p=Date.now());var m=Date.now(),g=!1,r=a,v,u;h||M?(a.clearRect(0,0,e,b),y&&y.width===e&&y.height===b||(y=document.createElement("canvas"),y.width=e,y.height=b,C=y.getContext("2d")),r=C,g=!0,h&&1===fa&&(p=Date.now())):a.globalAlpha=1;r.fillStyle="#333333";r.fillRect(0,0,e,b);256=T&&!M&&1<=this.Xc&&(M=!0,oa=m);if(M&&m-oa>=300+l||"undefined"!==typeof cr_is_preview&&1<=this.Xc&&500>Date.now()-p)q=!0,M=h=!1,this.qe=C=y=null;++fa}};c.prototype.pt=function(){this.ib&&(this.canvas.parentNode.removeChild(this.ib),this.ib=this.Tl=null);this.Jj=Date.now();this.Te=Wa();var a,d,e;if(this.Mm)for(a=0,d=this.k.length;aa||2===this.wb&&dd&&(d=0),this.He=d/=1E3,.51/this.Uo&&(this.He=1/this.Uo));this.Ri=a;this.Ge=this.He*this.ig;this.gb.add(this.Ge);this.Vd.add(d); a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ni)&&!this.kc;2<=this.wb||a&&0d||2===b&&ea++;)this.Gn(this.tg);a=0;for(d=this.Ed.length;ad.ji.length&&d.ji.push(a)}; c.prototype.Bn=function(a,d,e,b){if(a.I){var f=P(Math.random()*a.Mf.length);return this.Bn(a.Mf[f],d,e,b)}return a.xc?this.he(a.xc,d,!1,e,b,!1):null};var R=[];c.prototype.he=function(a,d,e,b,f,l){var c,h,k,p;if(!a)return null;var m=this.k[a[1]],q=m.Ca.pe;if(this.Wg&&q&&!m.ll||q&&!this.q&&11===a[0][11])return null;var n=d;q||(d=null);var g;m.ji.length?(g=m.ji.pop(),g.Gc=!0,m.Ca.Ta.call(g,m)):(g=new m.Ca.Ta(m),g.Gc=!1);!e||l||this.Md.hasOwnProperty(a[2].toString())?g.uid=this.nh++:g.uid=a[2];this.Md[g.uid.toString()]= g;g.vp=this.Yo++;g.Oe=m.c.length;c=0;for(h=this.Pc.length;ca&&(a=0);a>=this.ba.J.length&&(a=this.ba.J.length-1);return this.ba.J[a]};c.prototype.qk= function(a){var d,e;d=0;for(e=a.length;d=this.Al.length&& this.Al.push([])};c.prototype.ju=function(){this.$i--};c.prototype.Vn=function(){return this.Al[this.$i]};c.prototype.am=function(a){this.ni++;this.ni>=this.Bk.length&&this.Bk.push(new Qb);var d=this.Wa();d.reset(a);return d};c.prototype.rp=function(){this.ni--};c.prototype.Wa=function(){return this.Bk[this.ni]};c.prototype.Wn=function(a,d){for(var e,b,f,c,l,h;d;){e=0;for(b=d.Jc.length;ec||c>=a.La.length||(l=f[b],null===l&&(l=NaN),a.La[c]=l));if(k.pe){c=d.w;a.e.P!==c.l&&(f=a.e,a.e=this.ba.Ci(c.l),a.e?(f.Xf(a,!0),a.e.rg(a,!0),a.pa(),a.e.yh(0)):(a.e=f,e||this.wd(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.ed=c.zi;a.i=c.hasOwnProperty("a")? c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Rb=c.hasOwnProperty("hX")?c.hX:.5;a.Sb=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Ce=c.hasOwnProperty("ce")?c.ce:!0;a.mh=c.hasOwnProperty("mts")?c.mts:-1;a.lb=c.hasOwnProperty("bm")?c.bm:0;a.ug=gb(a.lb);this.m&&hb(a,a.lb,this.m);a.pa();if(c.hasOwnProperty("fx"))for(e=0,f=c.fx.length;el||(a.Yd[l]=c.fx[e].active,a.xa[l]=c.fx[e].params);a.bd()}if(h=d.behs)for(b in h)h.hasOwnProperty(b)&&(e=this.Ns(a, parseInt(b,10)),0>e||a.G[e].Bc(h[b]));d.data&&a.Bc(d.data)};c.prototype.Nn=function(a,d,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,e)},e)};c.prototype.Gs=function(a,d){this.Nn("data.js",function(e){var b=new FileReader;b.onload=function(d){a(d.target.result)};b.onerror=d;b.readAsText(e)},d)};var K=[],da=0;c.prototype.Dl=function(){if(K.length&&!(8<=da)){da++;var a=K.shift();this.Dr(a.filename,a.Ru,a.as)}};c.prototype.On=function(a,d,e){var b= this;K.push({filename:a,Ru:function(a){da--;b.Dl();d(a)},as:function(a){da--;b.Dl();e(a)}});this.Dl()};c.prototype.Dr=function(a,d,e){this.Nn(a,function(a){var e=new FileReader;e.onload=function(a){d(a.target.result)};e.readAsArrayBuffer(a)},e)};c.prototype.Hs=function(a,d,e){var b="",f=a.toLowerCase(),c=f.substr(f.length-4),f=f.substr(f.length-5);".mp4"===c?b="video/mp4":".webm"===f?b="video/webm":".m4a"===c?b="audio/mp4":".mp3"===c&&(b="audio/mpeg");this.On(a,function(a){a=URL.createObjectURL(new Blob([a], {type:b}));d(a)},e)};c.prototype.Ct=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.Hp=function(a,d){this.Oi&&!this.Ct(d)?this.Hs(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};c.prototype.Bj=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Sb=function(a){return new c(document.getElementById(a))}; Tb=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime=Sb;window.cr_createDCRuntime=Tb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ik=!0;document.body.appendChild(a);a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight); return a};window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,n){var g=window.cr_getC2Runtime();g&&g.Ar(c,n)}; window.cr_sizeCanvas=function(c,n){if(0!==c&&0!==n){var g=window.cr_getC2Runtime();g&&g.setSize(c,n)}};window.cr_setSuspended=function(c){var n=window.cr_getC2Runtime();n&&n.setSuspended(c)}; (function(){function c(a,b){this.b=a;this.Je=null;this.scrollX=this.b.Qa/2;this.scrollY=this.b.Pa/2;this.scale=1;this.i=0;this.tf=!0;this.name=b[0];this.fu=b[1];this.eu=b[2];this.width=b[1];this.height=b[2];this.dq=b[3];this.Np=b[4];this.P=b[5];var c=b[6],e,k;this.J=[];this.Lg=[];e=0;for(k=c.length;e=this.J.length&&(l=this.J.length-1);q.e=this.J[l];-1===q.e.c.indexOf(q)&&q.e.c.push(q);q.e.df=!0}if(!b)for(a=0,m=this.J.length;am?q.siblings.push(p.c[m]):p.xc&&(k=this.b.he(p.xc,q.e,!0,q.x,q.y,!0),this.b.kb(),p.Vj(),q.siblings.push(k),r.push(k)));a=0;for(m=this.ne.length;a< m;a++)q=this.ne[a],c=this.b.k[q[1]],c.Fb||this.b.he(this.ne[a],null,!0);this.b.tg=null;this.b.kb();if(this.b.wa&&!this.b.ya)for(a=0,m=this.b.k.length;athis.width- b&&(a=this.width-b);athis.height-b&&(a=this.height-b);aJ&&(J=0);0>G&&(G=0);L>D&&(L=D);I>K&&(I=K);0>E&&(E=0);0>F&&(F=0);X>D&&(X=D);ga>K&&(ga=K);z.left=J/D;z.top=1-G/K;z.right=L/D;z.bottom=1-I/K}else z.left=w.left=0,z.top=w.top=0,z.right=w.right=1,z.bottom=w.bottom=1;Y=c&&(a.uh(k[0].Ha)||0!==t||0!==Y||1!==c.opacity||c.type.Ca.Vo)||b&&!c&&1!==b.opacity; a.Dp();if(Y){r[H]||(r[H]=a.wc(D,K,this.b.za));if(r[H].Be!==D||r[H].Ae!==K)a.deleteTexture(r[H]),r[H]=a.wc(D,K,this.b.za);a.Kb(0);a.Hc(r[H]);O=ga-F;a.clearRect(E,K-F-O,X-E,O);c?c.Qb(a):(a.oc(this.b.Ma),a.Zf(b.opacity),a.sd(),a.translate(-da,-A),a.cd(),a.$e(J,I,L,I,L,G,J,G,z));w.left=w.top=0;w.right=w.bottom=1;c&&(x=z.top,z.top=z.bottom,z.bottom=x);H=1;R=0}a.Zf(1);t=k.length-1;var za=a.Zl(k[t].Ha)||!b&&!c&&!this.b.fc;v=x=0;for(u=k.length;vc||(b&&this.tc&&a.Hb&&a.Hb.right>=a.Hb.left&&(a.ma(),this.jb.update(a,a.Hb,null),a.Hb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.yh(c)),this.Zc=!0)};g.prototype.rg=function(a,b){a.ed=this.c.length;this.c.push(a); b&&this.tc&&a.Hb&&a.pa();this.Zc=!0};g.prototype.ou=function(a){this.c.unshift(a);this.yh(0)};g.prototype.Vt=function(a,b,c){var e=a.zc();b=b.zc();xa(this.c,e);ethis.ha||c.top>this.ga||(b.globalCompositeOperation=a.ug,a.kd(b))}};g.prototype.Xj=function(){this.Dd=!0;var a=this.Ja(0,0,!0,!0),b=this.Ja(0,0,!1,!0);this.Dd=!1;this.b.Od&&(a=Math.round(a),b=Math.round(b));this.yj(a,b,null)};g.prototype.yj= function(a,b,c){var e=this.hc();this.Z=a;this.aa=b;this.ha=a+1/e*this.b.C;this.ga=b+1/e*this.b.B;this.Z>this.ha&&(a=this.Z,this.Z=this.ha,this.ha=a);this.aa>this.ga&&(a=this.aa,this.aa=this.ga,this.ga=a);a=this.eb();0!==a&&(c&&(c.translate(this.b.C/2,this.b.B/2),c.rotate(-a),c.translate(this.b.C/-2,this.b.B/-2)),this.Td.set(this.Z,this.aa,this.ha,this.ga),this.Td.offset((this.Z+this.ha)/-2,(this.aa+this.ga)/-2),this.Zp.Lp(this.Td,a),this.Zp.sn(this.Td),this.Td.offset((this.Z+this.ha)/2,(this.aa+this.ga)/ 2),this.Z=this.Td.left,this.aa=this.Td.top,this.ha=this.Td.right,this.ga=this.Td.bottom)};g.prototype.pf=function(a){if(this.rd=this.wi){this.b.Ma||(this.b.Ma=a.wc(this.b.C,this.b.B,this.b.za));if(this.b.Ma.Be!==this.b.C||this.b.Ma.Ae!==this.b.B)a.deleteTexture(this.b.Ma),this.b.Ma=a.wc(this.b.C,this.b.B,this.b.za);a.Hc(this.b.Ma)}this.Dd=!0;var b=this.Ja(0,0,!0,!0),c=this.Ja(0,0,!1,!0);this.Dd=!1;this.b.Od&&(b=Math.round(b),c=Math.round(c));this.yj(b,c,null);b=this.hc();a.sd();a.scale(b,b);a.jm(-this.eb()); a.translate((this.Z+this.ha)/-2,(this.aa+this.ga)/-2);a.cd();this.tc?(this.bb.left=this.jb.Bb(this.Z),this.bb.top=this.jb.Cb(this.aa),this.bb.right=this.jb.Bb(this.ha),this.bb.bottom=this.jb.Cb(this.ga),this.Zc||!this.bb.yg(this.If)?(u(this.Kd),b=this.Rk(),this.Zc=!1,this.If.lf(this.bb)):b=this.Kd):b=this.c;for(var e,k=null,c=b.length-1;0<=c;--c)e=b[c],e!==k&&(this.Ur(b[c],a),k=e);this.tc&&(this.Kd=b);this.ad||(this.rk=this.b.Ie++,a.Cj(this.rk),a.Ep(1,1,1),a.Rn(),a.xu())};g.prototype.Qb=function(a){var b= 0,c=0;if(this.rd=this.wi||1!==this.opacity||0this.ha||c.top>this.ga||(b.Cj(a.Ie),a.kq?this.Vr(a,b):(b.Kb(0),b.ue(a.rb,a.ob),a.Qb(b)))}};g.prototype.Ur=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ra;c.rightthis.ha||c.top>this.ga||(a.Ie=this.b.Ie++,0===a.lb&&1===a.opacity&&a.Qd&&a.pf&&(b.Cj(a.Ie),a.pf(b)))}}; g.prototype.Vr=function(a,b){var c=a.U[0].Ha,e=a.U[0].index,k=this.hc();if(1!==a.U.length||b.Zl(c)||b.qu(c)||(a.i||a.e.eb())&&b.uh(c)||1!==a.opacity||a.type.Ca.Vo)this.Na.gm(b,this,a,this.rd?this.b.Ma:this.Na.Fg()),b.sd(),b.scale(k,k),b.jm(-this.eb()),b.translate((this.Z+this.ha)/-2,(this.aa+this.ga)/-2),b.cd();else{b.Kb(c);b.ue(a.rb,a.ob);b.uj(c)&&(this.b.V=!0);var q=0,p=0,l=0,h=0;b.uh(c)&&(h=a.ra,q=this.xb(h.left,h.top,!0,!0),p=this.xb(h.left,h.top,!1,!0),l=this.xb(h.right,h.bottom,!0,!0),h=this.xb(h.right, h.bottom,!1,!0),q=q/windowWidth,p=1-p/windowHeight,l=l/windowWidth,h=1-h/windowHeight);var g;a.ab&&a.ab.la?(g=a.ab.la,c=1/g.width,g=1/g.height):(c=1/a.width,g=1/a.height);b.$f(this.rd?this.b.Ma:this.Na.Fg(),c,g,q,p,l,h,k,this.eb(),this.Z,this.aa,(this.Z+this.ha)/2,(this.aa+this.ga)/2,this.b.gb.K,a.xa[e]);a.Qb(b)}};g.prototype.Ja=function(a,b,c,e){var k=this.b.devicePixelRatio;this.b.Pe&&(a*=k,b*=k);var k=this.b.mp,q=this.b.np,k=(this.Na.scrollX-k)*this.Ec+k,q=(this.Na.scrollY-q)*this.Fc+q,p=k,l=q, h=1/this.hc(!e);e?(p-=this.b.C*h/2,l-=this.b.B*h/2):(p-=this.b.width*h/2,l-=this.b.height*h/2);p+=a*h;l+=b*h;b=this.eb();0!==b&&(p-=k,l-=q,a=Math.cos(b),b=Math.sin(b),e=p*a-l*b,l=l*a+p*b,p=e+k,l+=q);return c?p:l};g.prototype.xb=function(a,b,c,e){var k=this.b.mp,q=this.b.np,p=(this.Na.scrollX-k)*this.Ec+k,l=(this.Na.scrollY-q)*this.Fc+q,q=p,k=l,h=this.eb();if(0!==h){a-=p;b-=l;var g=Math.cos(-h),h=Math.sin(-h),n=a*g-b*h;b=b*g+a*h;a=n+p;b+=l}p=1/this.hc(!e);e?(q-=this.b.C*p/2,k-=this.b.B*p/2):(q-=this.b.width* p/2,k-=this.b.height*p/2);q=(a-q)/p;k=(b-k)/p;a=this.b.devicePixelRatio;this.b.Pe&&!e&&(q/=a,k/=a);return c?q:k};g.prototype.Wb=function(){var a,b,c,e={s:this.scale,a:this.i,vl:this.Z,vt:this.aa,vr:this.ha,vb:this.ga,v:this.visible,bc:this.Nc,t:this.ad,px:this.Ec,py:this.Fc,o:this.opacity,zr:this.fd,fx:[],cg:this.wg,instances:[]};a=0;for(b=this.H.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=k.length&&(k.length=a.length+1);k[a.length]||(k[a.length]=[]);f=k[a.length];b=0;for(e=f.length;b=b.length&&(b.length=this.We+1),b[this.We]=a):this.data=a};f.prototype.$s=function(){var a=this.b.Vn();return!this.parent||this.Vg|| !a||this.Pi?this.data:this.We>=a.length||"undefined"===typeof a[this.We]?this.al:a[this.We]};f.prototype.Sa=function(){!this.parent||this.Vg||this.Pi||this.Ej(this.al)};Rb=f;m.prototype.toString=function(){return"include:"+this.Kg.toString()};m.prototype.Da=function(){this.Kg=this.b.Ck[this.xt];this.sheet.bo.add(this);this.qa=g(this.qa);for(var a=this.parent;a;)a.group&&a.di.push(this),a=a.parent;this.gq()};m.prototype.Sa=function(){this.parent&&this.b.vh(this.b.k);this.Kg.Xk||this.Kg.Sa(!0);this.parent&& this.b.Vf(this.b.k)};m.prototype.gq=function(){for(var a=this.parent;a;){if(a.group&&!a.Hg){this.Ua=!1;return}a=a.parent}this.Ua=!0};ac=m;e.prototype.reset=function(a){this.tb=a;this.Db=this.Eb=0;U(this.Vp);this.Ak=this.Se=!1};Qb=e})(); (function(){function c(b,a){this.ka=b;this.b=b.b;this.type=a[0];this.get=[this.ss,this.os,this.Bs,this.Es,this.bs,this.Cs,this.ws,this.ls,this.vs,this.As,this.cs,this.zs,this.ms,this.xs,this.ts,this.us,this.ps,this.qs,this.ks,this.Ds,this.ys,this.rs,this.js,this.ns][this.type];var c=null;this.Ld=this.M=this.Aa=this.cb=this.Pj=this.second=this.first=this.value=null;this.Oc=-1;this.Rc=null;this.lq=-1;this.Ke=this.Jh=null;this.Yf=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= new Zb(b,a[1]);break;case 18:this.first=new Zb(b,a[1]);this.second=new Zb(b,a[2]);this.Pj=new Zb(b,a[3]);break;case 19:this.cb=this.b.Xd(a[1]);this.cb!==W.prototype.ub.random&&this.cb!==W.prototype.ub.pr||this.ka.Jp();this.Aa=[];this.M=[];3===a.length?(c=a[2],this.Aa.length=c.length+1):this.Aa.length=1;break;case 20:this.Ld=this.b.k[a[1]];this.Oc=-1;this.cb=this.b.Xd(a[2]);this.Yf=a[3];dc.Function&&this.cb===dc.Function.prototype.ub.lv&&this.ka.Jp();a[4]?this.Rc=new Zb(b,a[4]):this.Rc=null;this.Aa= [];this.M=[];6===a.length?(c=a[5],this.Aa.length=c.length+1):this.Aa.length=1;break;case 21:this.Ld=this.b.k[a[1]];this.Yf=a[2];a[3]?this.Rc=new Zb(b,a[3]):this.Rc=null;this.lq=a[4];break;case 22:this.Ld=this.b.k[a[1]];this.Ld.Ai(a[2]);this.Oc=this.Ld.Lk(a[2]);this.cb=this.b.Xd(a[3]);this.Yf=a[4];a[5]?this.Rc=new Zb(b,a[5]):this.Rc=null;this.Aa=[];this.M=[];7===a.length?(c=a[6],this.Aa.length=c.length+1):this.Aa.length=1;break;case 23:this.Jh=a[1],this.Ke=null}this.ka.Tt(this.Ld);4<=this.type&&17>= this.type&&(this.first=new Zb(b,a[1]),this.second=new Zb(b,a[2]));if(c){var g,d;g=0;for(d=c.length;g=a||m<=-a)m%=a;0>m&&(m+=a);f.apply(k[m],c)};c.prototype.js=function(b){var a=this.Ld,c=this.Aa,u=this.M,d=this.Rc,f=this.Oc,m=this.cb,e=this.ka.Rd,k=a.Y(),q=k.Qc();if(!q.length)if(k.N.length)q=k.N;else{this.Yf?b.Xb(""):b.fa(0);return}c[0]=b;b.Ye=a;b=n();g(u,c,b);d&&(d.get(b),b.Xa()&&(e=b.data,q=a.c));--r;u=q.length;if(e>=u||e<=-u)e%=u;0>e&&(e+=u);e=q[e];q=0;a.I&&(q=e.type.sf[a.Fd]);m.apply(e.G[f+q],c)};c.prototype.rs=function(b){var a=this.Rc,c=this.Ld,g=this.lq,d=this.ka.Rd, f=c.Y(),m=f.Qc();if(!m.length)if(f.N.length)m=f.N;else{this.Yf?b.Xb(""):b.fa(0);return}if(a){f=n();a.get(f);if(f.Xa()){d=f.data;m=c.c;0!==m.length&&(d%=m.length,0>d&&(d+=m.length));d=c.Ok(d);c=d.La[g];N(c)?b.Xb(c):b.A(c);--r;return}--r}a=m.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=m[d];m=0;c.I&&(m=d.type.qi[c.Fd]);c=d.La[g+m];N(c)?b.Xb(c):b.A(c)};c.prototype.ss=function(b){b.type=bc.ff;b.data=this.value};c.prototype.os=function(b){b.type=bc.ef;b.data=this.value};c.prototype.Bs=function(b){b.type=bc.String; b.data=this.value};c.prototype.Es=function(b){this.first.get(b);b.Xa()&&(b.data=-b.data)};c.prototype.bs=function(b){this.first.get(b);var a=n();this.second.get(a);b.Xa()&&a.Xa()&&(b.data+=a.data,a.Bf()&&b.Kf());--r};c.prototype.Cs=function(b){this.first.get(b);var a=n();this.second.get(a);b.Xa()&&a.Xa()&&(b.data-=a.data,a.Bf()&&b.Kf());--r};c.prototype.ws=function(b){this.first.get(b);var a=n();this.second.get(a);b.Xa()&&a.Xa()&&(b.data*=a.data,a.Bf()&&b.Kf());--r};c.prototype.ls=function(b){this.first.get(b); var a=n();this.second.get(a);b.Xa()&&a.Xa()&&(b.data/=a.data,b.Kf());--r};c.prototype.vs=function(b){this.first.get(b);var a=n();this.second.get(a);b.Xa()&&a.Xa()&&(b.data%=a.data,a.Bf()&&b.Kf());--r};c.prototype.As=function(b){this.first.get(b);var a=n();this.second.get(a);b.Xa()&&a.Xa()&&(b.data=Math.pow(b.data,a.data),a.Bf()&&b.Kf());--r};c.prototype.cs=function(b){this.first.get(b);var a=n();this.second.get(a);a.Ef()||b.Ef()?this.es(b,a):this.ds(b,a);--r};c.prototype.es=function(b,a){b.Ef()&& a.Ef()?this.hs(b,a):this.gs(b,a)};c.prototype.hs=function(b,a){b.data+=a.data};c.prototype.gs=function(b,a){b.Ef()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Xb(b.data.toString()+a.data)};c.prototype.ds=function(b,a){b.fa(b.data&&a.data?1:0)};c.prototype.zs=function(b){this.first.get(b);var a=n();this.second.get(a);b.Xa()&&a.Xa()&&(b.data||a.data?b.fa(1):b.fa(0));--r};c.prototype.ks=function(b){this.first.get(b);b.data?this.second.get(b):this.Pj.get(b)};c.prototype.ms=function(b){this.first.get(b); var a=n();this.second.get(a);b.fa(b.data===a.data?1:0);--r};c.prototype.xs=function(b){this.first.get(b);var a=n();this.second.get(a);b.fa(b.data!==a.data?1:0);--r};c.prototype.ts=function(b){this.first.get(b);var a=n();this.second.get(a);b.fa(b.dataa.data?1:0);--r};c.prototype.qs=function(b){this.first.get(b); var a=n();this.second.get(a);b.fa(b.data>=a.data?1:0);--r};c.prototype.ns=function(b){var a=this.Ke.$s();ja(a)?b.A(a):b.Xb(a)};Zb=c;t.prototype.Bf=function(){return this.type===bc.ef};t.prototype.Xa=function(){return this.type===bc.ff||this.type===bc.ef};t.prototype.Ef=function(){return this.type===bc.String};t.prototype.Kf=function(){this.Bf()||(this.Ef()&&(this.data=parseFloat(this.data)),this.type=bc.ef)};t.prototype.fa=function(b){this.type=bc.ff;this.data=Math.floor(b)};t.prototype.A=function(b){this.type= bc.ef;this.data=b};t.prototype.Xb=function(b){this.type=bc.String;this.data=b};t.prototype.Mu=function(b){ja(b)?(this.type=bc.ef,this.data=b):N(b)?(this.type=bc.String,this.data=b.toString()):(this.type=bc.ff,this.data=0)};Yb=t;bc={ff:0,ef:1,String:2}})();function W(c){this.b=c;this.Nb=[]} W.prototype.Wb=function(){var c={},n,g,t,u,r,b,a,v;c.waits=[];var x=c.waits,d;n=0;for(g=this.Nb.length;nb)){var a,c,g,d=this.b.Wa(),f;u.length?f=u.pop():f={zb:{},qa:[]};f.xk=!1;f.time=this.b.gb.K+ b;f.Qp="";f.tm=!1;f.qf=d.tb;f.Db=d.Db+1;b=0;for(a=this.b.k.length;bd&&(a=d);b.A(a)};g.prototype.Ge=function(b){b.A(this.b.Ge)};g.prototype.ig=function(b){b.A(this.b.ig)};g.prototype.time=function(b){b.A(this.b.gb.K)};g.prototype.Gh=function(b){b.fa(this.b.Gh)};g.prototype.ej=function(b){b.fa(this.b.ej)};g.prototype.Ik=function(b){b.fa(this.b.Ik)};g.prototype.i=function(b,a,c,g,d){b.A(Ga(La(a,c,g,d)))};g.prototype.left=function(b,a,c){b.Xb(N(a)?a.substr(0,c):"")};g.prototype.right=function(b,a,c){b.Xb(N(a)?a.substr(a.length- c):"")};g.prototype.replace=function(b,a,c,g){N(a)&&N(c)&&N(g)?b.Xb(a.replace(new RegExp(ab(c),"gi"),g)):b.Xb(N(a)?a:"")};g.prototype.trim=function(b,a){b.Xb(N(a)?a.trim():"")};g.prototype.pr=function(b){var a=P(Math.random()*(arguments.length-1));b.Mu(arguments[a+1])};g.prototype.sk=function(b){b.A(this.b.sk/1E3)};g.prototype.Yi=function(b){b.A(this.b.Yi)};t.ub=new g;t.zu=function(){var b,a,c,g,d,f,n=this.b.Wa();b=0;for(c=this.Nb.length;b this.b.gb.K)continue;n.tb=g.qf;n.Db=g.Db;n.Eb=0;for(a in g.zb)g.zb.hasOwnProperty(a)&&(d=this.b.k[parseInt(a,10)].Y(),f=g.zb[a],d.ca=f.zj,Aa(d.c,f.Hd),d=f,U(d.Hd),r.push(d));g.qf.yu();this.b.qk(g.qa);g.xk=!0}a=b=0;for(c=this.Nb.length;ba.ha||b.top>a.ga)},d.xv=function(){this.ma();var a=this.ra,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Jv=function(a,b,c){var d=this.Y(), f=d.Qc();if(!f.length)return!1;var h=f[0],g=h,n=Sa(h.x,h.y,b,c),r,m,u;r=1;for(m=f.length;rn)n=u,g=h;d.th(g);return!0},f.cw=function(a){this.x!==a&&(this.x=a,this.pa())},f.dw=function(a){this.y!==a&&(this.y=a,this.pa())},f.Tq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.pa()},f.Yv=function(a,b){var c=a.Vs(this);if(c){var d;c.Dg?(d=c.Dg(b,!0),c=c.Dg(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.pa()}}, f.Cv=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.pa())},f.Bv=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.pa())},m.cn=function(a){a.A(this.x)},m.dn=function(a){a.A(this.y)},m.Ge=function(a){a.A(this.b.Bi(this))});r&&(d.pv=function(a,b){return cc(this.width,a,b)},d.mv=function(a,b){return cc(this.height,a,b)},f.bw=function(a){this.width!==a&&(this.width=a,this.pa())},f.Vv=function(a){this.height!==a&&(this.height=a,this.pa())},f.Zv= function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.pa()},m.hw=function(a){a.A(this.width)},m.sv=function(a){a.A(this.height)},m.iv=function(a){this.ma();a.A(this.ra.left)},m.kv=function(a){this.ma();a.A(this.ra.top)},m.jv=function(a){this.ma();a.A(this.ra.right)},m.hv=function(a){this.ma();a.A(this.ra.bottom)});b&&(d.pq=function(a,b){return Ma(this.i,V(b))<=V(a)},d.zq=function(a){return Oa(this.i,V(a))},d.yq=function(a,b){var c=Ka(a),d=Ka(b),f=Ia(this.i);return Oa(d, c)?Oa(f,c)&&!Oa(f,d):!(!Oa(f,c)&&Oa(f,d))},f.Rv=function(a){a=V(Ha(a));isNaN(a)||this.i===a||(this.i=a,this.pa())},f.Nv=function(a){0===a||isNaN(a)||(this.i+=V(a),this.i=Ia(this.i),this.pa())},f.Ov=function(a){0===a||isNaN(a)||(this.i-=V(a),this.i=Ia(this.i),this.pa())},f.Pv=function(a,b){var c=Na(this.i,V(b),V(a));isNaN(c)||this.i===c||(this.i=c,this.pa())},f.Qv=function(a,b,c){a=Na(this.i,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.i===a||(this.i=a,this.pa())},f.$v=function(a,b){var c=Math.atan2(b- this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.pa())},m.gv=function(a){a.A(Ja(this.i))});t||(d.nv=function(a,b,c){return cc(this.La[a],b,c)},d.uv=function(a){return this.La[a]},d.Kv=function(a,b){var c=this.Y(),d=c.Qc();if(!d.length)return!1;var f=d[0],h=f,g=f.La[b],n,r,m;n=1;for(r=d.length;ng)g=m,h=f;c.th(h);return!0},d.Iv=function(a){var b,c,d,f,h;if(this.b.Un().Ji){h=this.Y();if(h.ca)for(h.ca=!1,U(h.c),U(h.N),d=this.c,b=0,c=d.length;ba?a=0:1f.e.index||d.e.index===f.e.index&&d.zc()>f.zc())f=d}else if(d.e.indexc)){var d=1===a;this.Yd[c]!==d&&(this.Yd[c]=d,this.bd(),this.b.V=!0)}}},f.Uv=function(a,b,c){if(this.b.q){var d=this.type.Nk(a);0>d||(a=this.type.H[d],d=this.xa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.q.Zs(a.Ha,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ua&&(this.b.V=!0))))}})};Ib=function(){this.mk=this.Yh=!0;this.type.Sh=!0;this.b.V=!0;var c,g,t=this.jk;c=0;for(g=t.length;ct;case 5:return c>=t;default:return!1}}})();var lc={};function oc(c){this.b=c} (function(){function c(a){-1===cb.indexOf(a)&&cb.push(a)}function n(a){var b=a.d,d;try{d=b.play()}catch(e){c(a);return}d?d.catch(function(){c(a)}):uc&&!D.lc&&c(a)}function g(){var a,b,d,e;vc||za||!w||(t(),"running"===w.state&&(vc=!0));var f=cb.slice(0);U(cb);if(!X)for(a=0,b=f.length;aa&&(a=0);1a&&(a=.01);this.tj.gain.value=a;this.sj.gain.value=Math.pow(1/a,.6)*b};M.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=af;++f)e=f/32768,e=this.shape(e,c,d),this.ii[32768+f]=e,this.ii[32768-f-1]=-e};M.prototype.vc=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)};M.prototype.remove=function(){this.R.disconnect();this.tj.disconnect();this.Zj.disconnect();this.sj.disconnect();this.F.disconnect();this.D.disconnect()};M.prototype.gc=function(){return this.R};ca.prototype.vc=function(a){this.T.disconnect();this.T.connect(a)};ca.prototype.remove= function(){this.T.disconnect()};ca.prototype.gc=function(){return this.T};oa.prototype.Ia=function(){this.T.getFloatFrequencyData(this.Js);this.T.getByteTimeDomainData(this.Op);for(var a=this.T.fftSize,b=0,c=this.sh=0,d=0;bd&&(d=-d),this.shb&&(c=b);return c};C.prototype.Rg=function(){return!this.Tb&&!this.md&&!this.Jb&&!this.Ne()};C.prototype.Nu=function(){return!this.md&&!this.Jb&&!this.Ne()};C.prototype.Xu=function(){var a=this.volume* I;isFinite(a)||(a=0);switch(this.O){case 0:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a);break;case 1:1===this.buffer.O?this.Ka.gain.value=a*this.Nf:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a)}};C.prototype.mi=function(a){switch(this.O){case 0:this.d.muted!==!!a&&(this.d.muted=!!a);break;case 1:1===this.buffer.O?(this.Nf=a?0:1,this.Ka.gain.value=I*this.volume*this.Nf):this.d.muted!==!!a&&(this.d.muted=!!a)}};C.prototype.Iu=function(){this.Cf= !0;this.mi(this.Cf||this.Ug)};C.prototype.Ip=function(a){this.Ug=!!a;this.mi(this.Cf||this.Ug)};C.prototype.Wj=function(){var a=this.playbackRate;this.zf&&(a*=D.ig);switch(this.O){case 0:this.d.playbackRate!==a&&(this.d.playbackRate=a);break;case 1:1===this.buffer.O?this.d.playbackRate.value!==a&&(this.d.playbackRate.value=a):this.d.playbackRate!==a&&(this.d.playbackRate=a)}};C.prototype.Ku=function(a){switch(this.O){case 0:a?this.Rg()?(this.nc=!0,this.d.pause()):this.nc=!1:this.nc&&(this.d.play(), this.nc=!1);break;case 1:a?this.Rg()?(this.nc=!0,1===this.buffer.O?(this.Ib=this.Qk(!0),this.od&&(this.Ib=this.Ib%this.Le()),d(this.d)):this.d.pause()):this.nc=!1:this.nc&&(1===this.buffer.O?(this.d=w.createBufferSource(),this.d.buffer=this.buffer.S,this.d.connect(this.Ka),this.d.onended=this.Rl,this.Qh=this.d,this.d.loop=this.od,this.Ka.gain.value=I*this.volume*this.Nf,this.Wj(),this.startTime=(this.zf?D.gb.K:D.Vd.K)-this.Ib/(this.playbackRate||.001),x(this.d,this.Ib,this.Le())):this.d.play(),this.nc= !1);break;case 2:a?this.Rg()?(this.d.pause(),this.nc=!0):this.nc=!1:this.nc&&(this.nc=!1,this.d.play())}};O.Ta=function(a){this.type=a;D=this.b=a.b;K=this;this.Ub=null;this.bh=-600;this.b.Oi&&(db=!0);!(this.b.Ff||this.b.Ng&&(this.b.hl||this.b.Ki))||this.b.Mi||this.b.ya||this.b.ko||db||(uc=!0);w=null;"undefined"!==typeof AudioContext?(z=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(z=1,w=new webkitAudioContext);this.b.Ff&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w= new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==z&&(this.b.kc&&"undefined"!==typeof window.Media?z=2:this.b.lo&&(z=3));2===z&&(A=location.href,a=A.lastIndexOf("/"),-1"!==b&&(a.qj=b,a.Bl=d,a.Nm=e),null;k=new C(a,b);E.push(k);return k};var sa=[];R.prototype.Oh=function(a){return jb(da,a)};O.j=new R;S.prototype.Play=function(a,b,c,d){!X&&(c=Math.pow(10,c/20),isFinite(c)|| (c=0),0>c&&(c=0),1this.size?this.Ua=!1:(0!==g.Zg&&(this.i+=Math.random()*g.Zg*c-g.Zg*c/2),0!==g.ah&&(this.speed+=Math.random()*g.ah*c-g.ah*c/2),0!==g.$g&&(this.opacity+=Math.random()*g.$g*c-g.$g*c/2,0>this.opacity?this.opacity=0:1=g.of&&this.ae>=g.timeout&&(this.Ua=!1),2===g.of&& 0>=this.speed&&(this.Ua=!1))};c.prototype.kd=function(c){var g=this.ka.opacity*this.opacity;if(0!==g){0===this.ka.of&&(g*=1-this.ae/this.ka.timeout);c.globalAlpha=g;var g=this.x-this.size/2,b=this.y-this.size/2;this.ka.b.Od&&(g=g+.5|0,b=b+.5|0);c.drawImage(this.ka.type.la,g,b,this.size,this.size)}};c.prototype.Qb=function(c){var g=this.ka.opacity*this.opacity;0===this.ka.of&&(g*=1-this.ae/this.ka.timeout);var b=this.size,a=b*this.ka.op,n=this.x-b/2,t=this.y-b/2;this.ka.b.Od&&(n=n+.5|0,t=t+.5|0);1> a||0===g||(ac.Cl?(c.Zf(g),c.Wf(n,t,n+b,t,n+b,t+b,n,t+b)):c.iu(this.x,this.y,a,g))};c.prototype.left=function(){return this.x-this.size/2};c.prototype.right=function(){return this.x+this.size/2};c.prototype.top=function(){return this.y-this.size/2};c.prototype.bottom=function(){return this.y+this.size/2};n.Ta=function(c){this.type=c;this.b=c.b};var g=n.Ta.prototype,t=[];g.ua=function(){var c=this.ea;this.wj=c[0];this.Ij=V(c[1]);this.dg=c[2];this.um=!0;this.el=c[3];this.dl=c[4];this.cl=c[5]/ 100;this.Vk=c[6];this.$j=c[7];this.ak=c[8];this.Hj=c[9];this.Gj=c[10];this.Hi=c[11];this.dk=c[12];this.Kk=c[13];this.Zg=c[14];this.ah=c[15];this.$g=c[16];this.of=c[17];this.timeout=c[18];this.Ze=0;this.op=1;this.mj=this.x;this.oj=this.y;this.nj=this.x;this.lj=this.y;this.fr(function(c){c.ra.set(c.mj,c.oj,c.nj,c.lj);c.ac.bg(c.ra);c.Yh=!1;c.Lm();c.jq()});this.Gc||(this.yb=[]);this.b.Rj(this);this.type.wl();if(1===this.dg)for(c=0;cthis.nj&&(this.nj=a.right()),a.top()this.lj&&(this.lj= a.bottom()),n++):t.push(a);ya(this.yb,n);this.pa();this.vi=!1;1===this.dg&&0===this.yb.length&&this.b.wd(this)};g.kd=function(c){var g,b,a,n=this.e;g=0;for(b=this.yb.length;g=n.Z&&a.bottom()>=n.aa&&a.left()<=n.ha&&a.top()<=n.ga&&a.kd(c)};g.Qb=function(c){this.op=this.e.hc();c.oc(this.type.$a);var g,b,a,n=this.e;g=0;for(b=this.yb.length;g=n.Z&&a.bottom()>=n.aa&&a.left()<=n.ha&&a.top()<=n.ga&&a.Qb(c)};n.j=new function(){};n.Va=new function(){}; n.ub=new function(){}})();function nc(c){this.b=c} (function(){function c(){if(0===this.vk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.eg?b.drawImage(this.la,this.Pf,this.Qf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.la,0,0,this.width,this.height);this.vk=a.toDataURL("image/png")}return this.vk}function n(){}function g(){}function t(){}var u=nc.prototype;u.Ab=function(a){this.Ca=a;this.b=a.b};var r=u.Ab.prototype;r.ua=function(){if(!this.I){var a,b,d, f,g,h,n,m,r;this.Mc=[];this.Jg=!1;a=0;for(b=this.Ob.length;athis.u&&(this.u=0);this.u>=this.na.frames.length&&(this.u=this.na.frames.length-1);var a=this.na.frames[this.u];this.W.zh(a.rj);this.Rb=a.Rb;this.Sb=a.Sb;this.mf=this.na.speed;this.ie=this.na.im;1===this.type.Ob.length&&1===this.type.Ob[0].frames.length||0===this.mf||(this.b.Rj(this),this.nl=!0);this.Gc?this.gd.reset(): this.gd=new $a;this.Gd=this.gd.K;this.ye=!0;this.xd=0;this.xe=!0;this.bi=this.mn="";this.xn=0;this.pk=-1;this.type.wl();var b,c,d,f,h,g,m,a=0;for(b=this.type.Ob.length;athis.u&&(this.u=0);this.u>=this.na.frames.length&&(this.u=this.na.frames.length-1);this.mf=a.cas;this.Gd=a.fs;this.xd=a.ar;this.gd.reset();this.gd.K=a.at;this.ye=a.hasOwnProperty("ap")?a.ap:!0;this.xe=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")? this.ie=a.rt:this.ie=this.na.im;this.ab=this.na.frames[this.u];this.gi=this.ab.$a;this.W.zh(this.ab.rj);this.Rb=this.ab.Rb;this.Sb=this.ab.Sb};a.gk=function(a){this.u=a?0:this.na.frames.length-1;this.ye=!1;this.mn=this.na.name;this.$k=!0;this.b.trigger(nc.prototype.j.Eq,this);this.b.trigger(nc.prototype.j.Dq,this);this.$k=!1;this.xd=0};a.ik=function(){return this.gd.K};a.Ia=function(){this.gd.add(this.b.Bi(this));this.bi.length&&this.Fn();0<=this.pk&&this.Br();var a=this.gd.K,b=this.na,c=b.frames[this.u], d=c.duration/this.mf;this.ye&&a>=this.Gd+d&&(this.xe?this.u++:this.u--,this.Gd+=d,this.u>=b.frames.length&&(b.pp?(this.xe=!1,this.u=b.frames.length-2):b.loop?this.u=this.ie:(this.xd++,this.xd>=b.hm?this.gk(!1):this.u=this.ie)),0>this.u&&(b.pp?(this.u=1,this.xe=!0,b.loop||(this.xd++,this.xd>=b.hm&&this.gk(!0))):b.loop?this.u=this.ie:(this.xd++,this.xd>=b.hm?this.gk(!0):this.u=this.ie)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.Gd+b.frames[this.u].duration/this.mf&& (this.Gd=a),a=b.frames[this.u],this.gf(c,a),this.b.V=!0)};a.Sn=function(a){var b,c,d;b=0;for(c=this.type.Ob.length;bthis.u&&(this.u=0),this.u>=this.na.frames.length&&(this.u= this.na.frames.length-1),1===this.xn&&(this.u=0),this.ye=!0,this.Gd=this.gd.K,this.xe=!0,this.gf(a,this.na.frames[this.u]),this.b.V=!0)};a.Br=function(){var a=this.na.frames[this.u],b=this.u;this.u=P(this.pk);0>this.u&&(this.u=0);this.u>=this.na.frames.length&&(this.u=this.na.frames.length-1);b!==this.u&&(this.gf(a,this.na.frames[this.u]),this.Gd=this.gd.K,this.b.V=!0);this.pk=-1};a.gf=function(a,b){var c=a.width,d=a.height,f=b.width,h=b.height;c!=f&&(this.width*=f/c);d!=h&&(this.height*=h/d);this.Rb= b.Rb;this.Sb=b.Sb;this.W.zh(b.rj);this.pa();this.ab=b;this.gi=b.$a;c=0;for(d=this.G.length;cf||f>=d.length)return b?this.x:this.y;var h=(d[f][1]-c.Rb)*this.width,d=d[f][2],d=(d-c.Sb)*this.height,c=Math.cos(this.i);f=Math.sin(this.i);var g=h*c-d*f,d=d*c+ h*f,h=g+this.x,d=d+this.y;return b?h:d};var v=null,x=new ba,d=!1,f=[],m=new ua(0,0,0,0);r.finish=function(a){if(d){if(a){var b=this.b.Wa().tb.Dc;a=v.Y();var c=x.dd(),f,g;if(a.ca){a.ca=!1;U(a.c);f=0;for(g=c.length;fSa(this.Kj,this.Lj,this.x,this.y)&&(this.Tj=!0,a.vd=this.Ch,a.jg=this.id,a.vf=b,a.b.trigger(Z.prototype.j.Lq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.j.Mq,a),a.vf=0)};var e=-1E3,k=-1E3,q=-1E4;g.prototype.Ro=function(a,b){if(!this.Tj){var c=Wa();333>=c-this.wm&&!this.Hh&&15>Sa(this.Kj,this.Lj,this.x, this.y)&&(a.vd=this.Ch,a.jg=this.id,a.vf=b,666>=c-q&&25>Sa(e,k,this.x,this.y)?(a.b.trigger(Z.prototype.j.Hq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.j.Iq,a),k=e=-1E3,q=-1E4):(a.b.trigger(Z.prototype.j.Pq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Z.prototype.j.Zm,a),e=this.x,k=this.y,q=c),a.vf=0)}};a.ua=function(){this.Lt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vf=this.jg=this.vd=this.Cd=this.Bd=this.hn=this.gn=this.en=this.br=this.$q=this.Zq=this.kj=this.jj=this.ij= 0;this.$u=0!==this.ea[0];var a=0c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.rh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.b.ya?v:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Wa();this.vd=this.touches.length; this.jg=a.pointerId;this.touches.push(n(c,b,a.pointerId,this.vd));this.b.lc=!0;this.b.trigger(Z.prototype.j.Xm,this);this.b.trigger(Z.prototype.j.bn,this);this.Bd=c;this.Cd=b;this.b.trigger(Z.prototype.j.an,this);this.b.lc=!1}};a.Nd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.Cg(a.pointerId);this.vd=0<=c?this.touches[c].Ch:-1;this.jg=0<=c?this.touches[c].id:-1;this.b.lc=!0;this.b.trigger(Z.prototype.j.Wm, this);this.b.trigger(Z.prototype.j.$m,this);0<=c&&(b||this.touches[c].Ro(this,c),100>m.length&&m.push(this.touches[c]),this.touches.splice(c,1));this.b.lc=!1}};a.gj=function(a){a.preventDefault&&a.preventDefault();var b=Wa(),c,d,e,f;c=0;for(d=a.changedTouches.length;cb-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top,2*(e.Bw||e.Jw||e.uw||e.xw||0),2*(e.Cw||e.Kw||e.vw||e.yw|| 0),e.ow||e.Iw||e.tw||e.ww||0)}};a.hj=function(a){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.b.ya?v:jQuery(this.b.canvas).offset();Wa();this.b.lc=!0;var c,d,e,f;c=0;for(d=a.changedTouches.length;cm.length&&m.push(this.touches[e]),this.touches.splice(e,1));this.b.lc=!1};a.ik=function(){return this.b.kc&&0===this.ij&&0!==f?90*f:this.ij}; a.lw=function(){return this.b.kc&&0===this.jj&&0!==d?90*d:this.jj};a.mw=function(){return this.b.kc&&0===this.kj&&0!==x?90*x:this.kj};a.Nl=function(a){t(a)||(this.hj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.El=!0)};a.Ol=function(a){this.El&&!t(a)&&this.gj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Pl=function(a){a.preventDefault&&this.b.Zn&&!this.b.yf&&a.preventDefault();this.b.Zn=!0;t(a)||(this.Rf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}), this.El=!1)};a.Qj=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.A(0);else{var d,e,f,g,k;ia(b)?(d=this.b.Eg(0),e=d.scale,f=d.fd,g=d.Ec,k=d.i,d.scale=1,d.fd=1,d.Ec=1,d.i=0,a.A(d.Ja(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.fd=f,d.Ec=g,d.i=k):(d=ja(b)?this.b.Eg(b): this.b.Pk(b))?a.A(d.Ja(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};r.prototype.dn=function(a,b){var c=this.vf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,k;ia(b)?(d=this.b.Eg(0),e=d.scale,f=d.fd,g=d.Fc,k=d.i,d.scale=1,d.fd=1,d.Fc=1,d.i=0,a.A(d.Ja(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.fd=f,d.Fc=g,d.i=k):(d=ja(b)?this.b.Eg(b):this.b.Pk(b))?a.A(d.Ja(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};b.ub=new r})(); function qc(c){this.b=c;var n=this;this.b.ya||(jQuery(document).mousemove(function(c){n.Ol(c)}),jQuery(document).mousedown(function(c){n.Nl(c)}),jQuery(document).mouseup(function(c){n.Pl(c)}));c=0",g.pageX,g.pageY)};g.gj=function(c){c.preventDefault&&c.preventDefault();var b,a,g,n;b=0;for(a=c.changedTouches.length;b",g.pageX,g.pageY)};g.Rf=function(c){c.preventDefault&&kb(c)&&c.preventDefault();var b,a,g;b=0;for(a=c.changedTouches.length;b")};g.rh=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&& (c.preventDefault&&kb(c)&&c.preventDefault(),this.Jl(c.pointerId.toString(),c.pageX,c.pageY))};g.qh=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&c.preventDefault(),this.Kl(c.pointerId.toString(),c.pageX,c.pageY))};g.Nd=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&kb(c)&&c.preventDefault(),this.Ll(c.pointerId.toString()))};g.Jl=function(g,b,a){var n=this.b.ya?t:jQuery(this.b.canvas).offset();b=b-n.left; a=a-n.top;var u,d,f,m,n=this.Of.dd(),e,k,q,p=null;e=0;for(k=n.length;ep.e.index?(p=q,f=u,m=d):q.e.index===p.e.index&&q.zc()>p.zc()&&(p=q,f=u,m=d):(p=q,f=u,m=d);p&&c(p).Zt(g,f,m)};g.Kl=function(g,b,a){var n=this.b.ya?t:jQuery(this.b.canvas).offset();b=b-n.left;a=a-n.top;var u,d=this.Of.dd(),f,m,e;f=0;for(m=d.length;f";this.hk=this.ea[0];this.enabled=0!==this.ea[1]};u.Wb=function(){return{enabled:this.enabled}};u.Bc=function(c){this.enabled=c.enabled;this.Fe= !1};u.Zt=function(c,b,a){this.Hn=b-this.n.x;this.In=a-this.n.y;this.Fe=!0;this.zk=c;this.b.lc=!0;this.b.trigger(qc.prototype.j.Sm,this.n);this.b.lc=!1};u.au=function(c,b){var a=c-this.Hn,g=b-this.In;if(0===this.hk){if(this.n.x!==a||this.n.y!==g)this.n.x=a,this.n.y=g,this.n.pa()}else 1===this.hk?this.n.x!==a&&(this.n.x=a,this.n.pa()):2===this.hk&&this.n.y!==g&&(this.n.y=g,this.n.pa())};u.du=function(){this.Fe=!1;this.b.lc=!0;this.b.trigger(qc.prototype.j.Tm,this.n);this.b.lc=!1};u.Ia=function(){}; n.prototype.Sm=function(){return!0};n.prototype.Tm=function(){return!0};g.j=new n;g.Va=new function(){};g.ub=new function(){}})();function rc(c){this.b=c} (function(){function c(){}var n=rc.prototype;n.Ab=function(c){this.behavior=c;this.b=c.b};n.Ab.prototype.ua=function(){};n.Ta=function(c,g){this.type=c;this.behavior=c.behavior;this.n=g;this.b=c.b};var g=n.Ta.prototype;g.ua=function(){this.jn=1===this.ea[0];this.Ag=this.ea[1];this.Lh=this.ea[2];this.oi=this.ea[3];this.wr=this.ea[4];this.pc=this.jn?0:3;this.Gc?this.Ic.reset():this.Ic=new $a;this.Xe=this.n.opacity?this.n.opacity:1;this.jn&&(0===this.Ag?(this.pc=1,0===this.Lh&&(this.pc=2)):(this.n.opacity= 0,this.b.V=!0))};g.Wb=function(){return{fit:this.Ag,wt:this.Lh,fot:this.oi,s:this.pc,st:this.Ic.K,mo:this.Xe}};g.Bc=function(c){this.Ag=c.fit;this.Lh=c.wt;this.oi=c.fot;this.pc=c.s;this.Ic.reset();this.Ic.K=c.st;this.Xe=c.mo};g.Ia=function(){this.Ic.add(this.b.Bi(this.n));0===this.pc&&(this.n.opacity=this.Ic.K/this.Ag*this.Xe,this.b.V=!0,this.n.opacity>=this.Xe&&(this.n.opacity=this.Xe,this.pc=1,this.Ic.reset(),this.b.trigger(rc.prototype.j.Jq,this.n)));1===this.pc&&this.Ic.K>=this.Lh&&(this.pc=2, this.Ic.reset(),this.b.trigger(rc.prototype.j.Qq,this.n));2===this.pc&&0!==this.oi&&(this.n.opacity=this.Xe-this.Ic.K/this.oi*this.Xe,this.b.V=!0,0>this.n.opacity&&(this.n.opacity=0,this.pc=3,this.Ic.reset(),this.b.trigger(rc.prototype.j.Kq,this.n),1===this.wr&&this.b.wd(this.n)))};g.ik=function(){this.pc=0;this.Ic.reset();0===this.Ag?(this.pc=1,0===this.Lh&&(this.pc=2)):(this.n.opacity=0,this.b.V=!0)};c.prototype.Kq=function(){return!0};c.prototype.Jq=function(){return!0};c.prototype.Qq=function(){return!0}; n.j=new c;n.Va=new function(){};n.ub=new function(){}})();function xc(c){this.b=c} (function(){var c=xc.prototype;c.Ab=function(c){this.behavior=c;this.b=c.b};c.Ab.prototype.ua=function(){};c.Ta=function(c,g){this.type=c;this.behavior=c.behavior;this.n=g;this.b=c.b;this.mode=0};c=c.Ta.prototype;c.ua=function(){this.mode=this.ea[0]};c.Ia=function(){};c.Qj=function(){this.n.ma();var c=this.n.ra,g=this.n.e.Na,t=!1;0===this.mode?(0>this.n.x&&(this.n.x=0,t=!0),0>this.n.y&&(this.n.y=0,t=!0),this.n.x>g.width&&(this.n.x=g.width,t=!0),this.n.y>g.height&&(this.n.y=g.height,t=!0)):(0>c.left&& (this.n.x-=c.left,t=!0),0>c.top&&(this.n.y-=c.top,t=!0),c.right>g.width&&(this.n.x-=c.right-g.width,t=!0),c.bottom>g.height&&(this.n.y-=c.bottom-g.height,t=!0));t&&this.n.pa()}})(); function mc(){return[oc,pc,Z,nc,qc,xc,rc,W.prototype.j.Um,pc.prototype.Va.Qm,qc.prototype.j.Tm,nc.prototype.j.Aq,nc.prototype.j.vq,nc.prototype.ub.qq,oc.prototype.Va.Play,nc.prototype.Va.Vq,nc.prototype.Va.Rq,nc.prototype.Va.Qm,W.prototype.j.Rm,nc.prototype.Va.Tq,qc.prototype.j.Sm,W.prototype.Va.Uq,nc.prototype.ub.cn,nc.prototype.ub.dn,W.prototype.j.uq,nc.prototype.ub.wq,W.prototype.Va.Xq,W.prototype.Va.xq,Z.prototype.j.Zm,oc.prototype.Va.Sq,oc.prototype.Va.Wq]};