// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var aa,ba,ca,ea,ha,ia,ja,A,ka,la,ma,na,qa,O,ra,sa,ta,ua,va,wa,ya,P,za,Aa,Ba,Ca,Da,V,Fa,Ga,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,ub,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype}); (function(){function b(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;da&&(this.td=new Set);this.lg=[];this.ee=!0}function u(a){oa[U++]=a}function r(){this.K=this.Mj=this.y=this.kk=0}function c(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.Xa=new ba}function f(a,d,e){var f;return B.length?(f=B.pop(),f.Uk=a,f.x=d,f.y=e,f):new ca(a,d,e)}function m(a,d,e){this.Uk=a;this.x=d;this.y=e;this.Xa=[];this.Df=!0;this.qd=new ba;this.qg=!1}function e(a,d){return a.ed-d.ed}ea=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};A=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 ap)return!1;dp)return!1;w=l-a+c-e;v=h-d+z-f;a=e-a;d=f-d;l=c-l;h=z-h;z=ma(d*l-h*a);return ma(l*v-h*w)>z?!1:ma(a*v-d*w)<=z};b.prototype.set=function(a,d,e,f){this.left=a;this.top=d;this.right=e;this.bottom=f};b.prototype.lf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.width=function(){return this.right-this.left};b.prototype.height= function(){return this.bottom-this.top};b.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};b.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)};b.prototype.xt=function(a){return!(a.rightthis.right||a.top>this.bottom)};b.prototype.yt=function(a,d,e){return!(a.right+dthis.right||a.top+e>this.bottom)};b.prototype.nb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};b.prototype.yg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=b;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.Kp=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,c=a.right*e,e=a.bottom*e,z=a.left*f,w=a.top*f,v=a.right*f,f=a.bottom*f;this.Lb=z-h;this.Mb=w+l;this.qc=v-h;this.rc=w+c;this.cc=v-e;this.ec=f+c;this.Zb=z-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,c=this.cc-e,z=this.ec-f,w=a-e,v=d-f,p=l*l+h*h,k=l*c+h*z,h=l*w+h*v,m=c*c+z*z,q=c*w+z*v,b=1/(p*m-k*k),l=(m*h-k*q)*b,p=(p*q-k*h)*b;if(0<=l&&0l+p)return!0;l=this.Zb-e;h=this.$b-f;p=l*l+h*h;k=l*c+h*z;h=l*w+h*v;b=1/(p*m-k*k);l=(m*h-k*q)*b;p=(p*q-k*h)*b;return 0<=l&&0l+p};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,c,z,w,v,p;for(v=0;4>v;v++)for(p=0;4>p;p++)if(d=this.de(v,!0),e=this.de(v,!1),f=this.de(v+1,!0),l=this.de(v+1,!1),h=a.de(p, !0),c=a.de(p,!1),z=a.de(p+1,!0),w=a.de(p+1,!1),sa(d,e,f,l,h,c,z,w))return!0;return!1};ua=n;va=function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);return a};wa=function(a,d){var e,f;d=O(d);if(!(0>d||d>=a.length)){e=d;for(f=a.length-1;ee?e:a};V=function(a){return a/(180/qa)};Fa=function(a){return 180/qa*a};Ga=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 Ga(Fa(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),c=Math.cos(d);return Math.acos(f*h+l*c)>e?0=f*l-e*h};Ra=function(a,d,e,f,l,h){if(0===e)return h?a:d;var c=Math.sin(e);e=Math.cos(e);a-=f;d-=l;var z=a*c;a=a*e-d*c;d=d*e+z;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,N=!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),N=window.c2ejecta);var da=!l&&!N&&!h&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;t.prototype.contains=function(a){return this.Id()?!1:da?this.td.has(a):this.items&&this.items.hasOwnProperty(a)};t.prototype.add=function(a){if(da)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(da)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()||(da?this.td.clear():(this.items=null,this.Xg=0),P(this.lg),this.ee=!0)};t.prototype.Id=function(){return 0===this.count()};t.prototype.count=function(){return da?this.td.size:this.Xg};var oa=null,U=0;t.prototype.Wu=function(){if(!this.ee){if(da)P(this.lg), oa=this.lg,U=0,this.td.forEach(u),oa=null,U=0;else{var a=this.lg;P(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.Wu();return this.lg};ba=t;new ba;Xa=function(a,d){da?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),cl&&(l=c);this.Vh=d;this.Wh=e;this.Xh=f;this.Uh=l};c.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()};c.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()}; c.prototype.Jp=function(a){this.Yc=a.Yc;za(this.Ra,a.Ra);this.Vh=a.Vh;this.Xh-a.Xh;this.Wh=a.Wh;this.Uh=a.Uh};c.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,c,z,w=0,v=1,p=this.up,k=this.Ra;0!==e&&(w=Math.sin(e),v=Math.cos(e));e=0;for(h=this.Yc;ey.length&&y.push(z), this.cells[f][h]=null);if(e)for(f=e.left,l=e.right;f<=l;++f)for(h=e.top,c=e.bottom;h<=c;++h)d&&d.nb(f,h)||this.le(f,h,!0).fl(a)};a.prototype.vj=function(a,d){var e,f,l,h,c,z;e=this.Bb(a.left);l=this.Cb(a.top);f=this.Bb(a.right);for(c=this.Cb(a.bottom);e<=f;++e)for(h=l;h<=c;++h)(z=this.le(e,h,!1))&&z.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 O(a/this.ok)};v.prototype.Cb=function(a){return O(a/this.nk)};v.prototype.update=function(a,d,e){var f,l,h,c,z;if(d)for(f=d.left,l=d.right;f<=l;++f)for(h=d.top,c=d.bottom;h<=c;++h)if(!e||!e.nb(f,h))if(z=this.le(f,h,!1))z.remove(a),z.Id()&&(z.reset(),1E3>B.length&&B.push(z),this.cells[f][h]=null);if(e)for(f=e.left,l=e.right;f<=l;++f)for(h=e.top,c=e.bottom;h<=c;++h)d&&d.nb(f,h)||this.le(f,h,!0).fl(a)};v.prototype.vj=function(a,d,e,f,l){var h,c;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)(c=this.le(a,f,!1))&&c.dump(l)};v.prototype.Ot=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.Xa.Id()};d.prototype.fl=function(a){this.Xa.add(a)};d.prototype.remove=function(a){this.Xa.remove(a)};d.prototype.dump=function(a){Aa(a,this.Xa.dd())};aa=d;var B=[];m.prototype.Id=function(){if(!this.Xa.length)return!0;if(this.Xa.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.Xa.length?(this.Xa[this.Xa.length-1].zc()>a.zc()&&(this.Df=!1),this.Xa.push(a)):(this.Xa.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.Xa.length?this.reset():(Xa(this.Xa,this.qd),this.qd.clear(),this.qg=!1))};m.prototype.Xr=function(){this.Df|| (this.Xa.sort(e),this.Df=!0)};m.prototype.reset=function(){P(this.Xa);this.Df=!0;this.qd.clear();this.qg=!1};m.prototype.dump=function(a){this.Hk();this.Xr();this.Xa.length&&a.push(this.Xa)};ca=m;var R="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":R[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 ec="undefined"!==typeof Float32Array?Float32Array:Array;function fc(b){var n=new ec(3);b&&(n[0]=b[0],n[1]=b[1],n[2]=b[2]);return n} function gc(b){var n=new ec(16);b&&(n[0]=b[0],n[1]=b[1],n[2]=b[2],n[3]=b[3],n[4]=b[4],n[5]=b[5],n[6]=b[6],n[7]=b[7],n[8]=b[8],n[9]=b[9],n[10]=b[10],n[11]=b[11],n[12]=b[12],n[13]=b[13],n[14]=b[14],n[15]=b[15]);return n}function hc(b,n){n[0]=b[0];n[1]=b[1];n[2]=b[2];n[3]=b[3];n[4]=b[4];n[5]=b[5];n[6]=b[6];n[7]=b[7];n[8]=b[8];n[9]=b[9];n[10]=b[10];n[11]=b[11];n[12]=b[12];n[13]=b[13];n[14]=b[14];n[15]=b[15]} function ic(b,n){var g=n[0],t=n[1];n=n[2];b[0]*=g;b[1]*=g;b[2]*=g;b[3]*=g;b[4]*=t;b[5]*=t;b[6]*=t;b[7]*=t;b[8]*=n;b[9]*=n;b[10]*=n;b[11]*=n} function jc(b,n,g,t){t||(t=gc());var u,r,c,a,v,x,d,f,m=b[0],e=b[1];b=b[2];r=g[0];c=g[1];u=g[2];g=n[1];x=n[2];m===n[0]&&e===g&&b===x?(b=t,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(g=m-n[0],x=e-n[1],d=b-n[2],f=1/Math.sqrt(g*g+x*x+d*d),g*=f,x*=f,d*=f,n=c*d-u*x,u=u*g-r*d,r=r*x-c*g,(f=Math.sqrt(n*n+u*u+r*r))?(f=1/f,n*=f,u*=f,r*=f):r=u=n=0,c=x*r-d*u,a=d*n-g*r,v=g*u-x*n,(f=Math.sqrt(c*c+a*a+v*v))?(f=1/f,c*=f,a*=f,v*=f):v=a=c=0, t[0]=n,t[1]=c,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*b),t[13]=-(c*m+a*e+v*b),t[14]=-(g*m+x*e+d*b),t[15]=1)} (function(){function b(a,c,b){this.oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ja=!!b;this.Li=this.Og=!1;this.uk=0;this.bk=1;this.Pm=1E3;this.av=(this.Pm-this.bk)/32768;this.lk=fc([0,0,100]);this.Bo=fc([0,0,0]);this.dq=fc([0,1,0]);this.Mh=fc([1,1,1]);this.Jn=!0;this.cj=gc();this.mc=gc();this.sl=gc();this.tk=gc();this.m=a;this.version=0===this.m.getParameter(this.m.VERSION).indexOf("WebGL 2")?2:1;this.co()}function n(a,c,b){this.m=a;this.Ah= c;this.name=b;this.Cc=a.getAttribLocation(c,"aPos");this.se=a.getAttribLocation(c,"aTex");this.zo=a.getUniformLocation(c,"matP");this.Zi=a.getUniformLocation(c,"matMV");this.Jf=a.getUniformLocation(c,"opacity");this.xl=a.getUniformLocation(c,"colorFill");this.Ao=a.getUniformLocation(c,"samplerFront");this.gh=a.getUniformLocation(c,"samplerBack");this.Ve=a.getUniformLocation(c,"destStart");this.Ue=a.getUniformLocation(c,"destEnd");this.ih=a.getUniformLocation(c,"seconds");this.zl=a.getUniformLocation(c, "pixelWidth");this.yl=a.getUniformLocation(c,"pixelHeight");this.fh=a.getUniformLocation(c,"layerScale");this.eh=a.getUniformLocation(c,"layerAngle");this.jh=a.getUniformLocation(c,"viewOrigin");this.hh=a.getUniformLocation(c,"scrollPos");this.ot=!!(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=gc();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,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&& a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function t(a,c){this.type=a;this.q=c;this.m=c.m;this.Ac=this.sb=this.fp=0;this.L=this.Kc=null;this.Lp=[]}var u=gc();b.prototype.co=function(){var a=this.m,c;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(c=0;4>c;c++)this.Kh[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Kh[c]),a.bufferData(a.ARRAY_BUFFER,this.Yj.byteLength,a.DYNAMIC_DRAW),this.Fh[c]=a.createBuffer(), a.bindBuffer(a.ARRAY_BUFFER,this.Fh[c]),a.bufferData(a.ARRAY_BUFFER,this.Oj.byteLength,a.DYNAMIC_DRAW);this.Ad=0;this.tt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.tt);for(var b=new Uint16Array(12E3),d=c=0;12E3>c;)b[c++]=d,b[c++]=d+1,b[c++]=d+2,b[c++]=d,b[c++]=d+2,b[c++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Uf=this.gg=this.Ud=0;this.Ba=[];c=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}";b=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}"},c,"");this.Ba.push(b);b=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(b);b=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}"},c,"");this.Ba.push(b);b=this.vg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, c,"");this.Ba.push(b);for(var f in kc)kc.hasOwnProperty(f)&&this.Ba.push(this.vg(kc[f],c,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.zd=[];this.hd=0;this.pb=this.eb=!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=fc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Rt=a[0];this.Cl=a[1];2048"===c.name&&a.vertexAttribPointer(c.Cc,4,a.FLOAT,!1,0,0));if(0"!==c.name&&a.vertexAttribPointer(c.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));c&&0<=c.se&&""!==c.name&&a.vertexAttribPointer(c.se,2,a.FLOAT,!1,0,0)}for(var b,a=0,c=this.hd;ab||0>d)){var f=this.Gb();f.type=7;f.sb=1;f.L||(f.L=gc());f.L[0]=a;f.L[1]=c;f.L[2]=b;f.L[3]=d;this.pb=this.eb=!1}};b.prototype.Fp=function(a){if(this.ja&&(a=!!a,this.Og!==a)){var c=this.Gb();c.type=14;c.sb=a?1:0;this.pb=this.eb=!1;this.Og=a;this.xj=null;this.Og?this.Kb(2):this.Kb(0)}};b.prototype.Ep=function(a){if(this.ja){var c=this.Gb();c.type=13;c.sb=a?1:0;this.pb=this.eb=!1}};b.prototype.Rn=function(){hc(this.sl, u);this.sd();this.cd();var a=this.width/2,c=this.height/2;this.Wf(-a,c,a,c,a,-c,-a,-c);hc(u,this.mc);this.cd()};b.prototype.Dp=function(a,c,b){this.Kb(3);var d=this.Gb();d.type=12;d.L||(d.L=gc());d.L[0]=a;d.L[1]=c;d.L[2]=b;d.L[3]=1;this.pb=this.eb=!1};b.prototype.Ju=function(){this.Kb(0)};b.prototype.uu=function(){this.Kb(2)};b.prototype.mu=function(){this.je();this.m.flush()};var r=[],c={};b.prototype.nr=function(){P(r);c={}};b.prototype.Wi=function(a,b,n,d){b=!!b;n=!!n;var f=a.src+","+b+","+n+(b? ",undefined":""),m=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(f))return m=c[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&&b){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);b?(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 c[f]=m};b.prototype.wc=function(a,c,b){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,c,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,b?f.LINEAR:f.NEAREST); f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,b?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Qe=null;m.Be=a;m.Ae=c;r.push(m);return m};b.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,c){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=t;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=e}}catch(l){c(l)}}function r(a,d,e){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=t;c.onerror=e;c.onsuccess=function(c){c=c.target.result;c.onerror=e;var f=c.transaction(["saves"]).objectStore("saves").get(a); f.onsuccess=function(){f.result?d(f.result.data):d(null)}}}catch(f){e(f)}}function c(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1l?(l*=d,5===b?(h=l*e/this.Qa,1h&&(h=1/Math.ceil(1/h)),l=this.Qa*h/e,h=this.Pa*h/e,c=(a-l)/2,f=(d-h)/2,a=l,d=h):(c=(a-l)/2,a=l)):(h=a/l,5=== b?(h=h*e/this.Pa,1h&&(h=1/Math.ceil(1/h)),l=this.Qa*h/e,h=this.Pa*h/e,c=(a-l)/2,f=(d-h)/2,a=l):f=(d-h)/2,d=h)):l&&0===b&&(c=Math.floor((a-this.Qa)/2),f=Math.floor((d-this.Pa)/2),a=this.Qa,d=this.Pa),2>b&&(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.nq?(this.C=this.width,this.B=this.height,this.fc=!0):this.widthl&&(this.B=this.C/b)):3===b&&(l=this.Qa/this.Pa,b=this.Hf/this.Gf,b>l?this.C=this.B*b:bf;)f++,a=m.shift(),this.Gp(a[0],a[1])};b.prototype.mq=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(c){d=a.tn=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",c)}):(a.crossOrigin= "anonymous",this.pu(a,e)));this.ng.push(a)};b.prototype.Fs=function(a){var d,e;d=0;for(e=this.ng.length;d=h)h=5E4;a+=h;b.src&&(b.complete||b.loaded)&&!b.tn?d+=h:f=!1}f&&this.ku&&this.jf&&(k||(this.jf.Nu(),k=!0),c=this.jf.Ts(),d+=c,cthis.re&&(this.jc||500<=c&&this.wo!=this.Xc)){a.clearRect(0,0,l,b);var c=l/2,b=b/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,O(c-h),O(b-k),p,m)}1>=this.re?(c=O(c-h)+.5,b=O(b+(k+(l?12*e:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(c,b,Math.floor(p*this.Xc),6*e),a.strokeStyle="black",a.strokeRect(c,b,p,6*e),a.strokeStyle="white",a.strokeRect(c-1*e,b-1*e,p+2*e,8*e)):2===this.re&&(a.font=this.Sc?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.Ew="middle",e=Math.round(100*this.Xc)+"%",l=a.measureText?a.measureText(e):null,a.fillText(e, c-(l?l.width:0)/2,b));this.wo=this.Xc}else if(4===this.re){this.Tr(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,N=!1,da=0,oa=0,U="undefined"===typeof cr_is_preview?3E3:0,y=null,B=null,R=0;b.prototype.Tr=function(a){if(!q){for(var e=Math.ceil(this.width),c=Math.ceil(this.height),f=this.qe.aj,b=this.qe.ju,k=this.qe.$u,m=0;4>m;++m)if(!f[m].complete||!b[m].complete||!k[m].complete)return; 0===R&&(p=Date.now());var m=Date.now(),g=!1,r=a,v,u;h||N?(a.clearRect(0,0,e,c),y&&y.width===e&&y.height===c||(y=document.createElement("canvas"),y.width=e,y.height=c,B=y.getContext("2d")),r=B,g=!0,h&&1===R&&(p=Date.now())):a.globalAlpha=1;r.fillStyle="#333333";r.fillRect(0,0,e,c);256=U&&!N&&1<=this.Xc&&(N=!0,oa=m);if(N&&m-oa>=300+l||"undefined"!==typeof cr_is_preview&&1<=this.Xc&&500>Date.now()-p)q=!0,N=h=!1,this.qe=B=y=null;++R}};b.prototype.mt=function(){this.hb&&(this.canvas.parentNode.removeChild(this.hb),this.hb=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.fb.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===c&&ea++;)this.Gn(this.tg);a=0;for(d=this.Ed.length;ad.ji.length&&d.ji.push(a)}; b.prototype.Bn=function(a,d,e,c){if(a.I){var f=O(Math.random()*a.Mf.length);return this.Bn(a.Mf[f],d,e,c)}return a.xc?this.he(a.xc,d,!1,e,c,!1):null};var T=[];b.prototype.he=function(a,d,e,c,f,l){var b,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;b=0;for(h=this.Pc.length;ba&&(a=0);a>=this.ba.J.length&&(a=this.ba.J.length-1);return this.ba.J[a]};b.prototype.qk= function(a){var d,e;d=0;for(e=a.length;d=this.Al.length&& this.Al.push([])};b.prototype.gu=function(){this.$i--};b.prototype.Vn=function(){return this.Al[this.$i]};b.prototype.am=function(a){this.ni++;this.ni>=this.Bk.length&&this.Bk.push(new Pb);var d=this.Va();d.reset(a);return d};b.prototype.rp=function(){this.ni--};b.prototype.Va=function(){return this.Bk[this.ni]};b.prototype.Wn=function(a,d){for(var e,c,f,b,l,h;d;){e=0;for(c=d.Jc.length;eb||b>=a.La.length||(l=f[c],null===l&&(l=NaN),a.La[b]=l));if(k.pe){b=d.w;a.e.P!==b.l&&(f=a.e,a.e=this.ba.Ci(b.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=b.x;a.y=b.y;a.width=b.w;a.height=b.h;a.ed=b.zi;a.i=b.hasOwnProperty("a")? b.a:0;a.opacity=b.hasOwnProperty("o")?b.o:1;a.Rb=b.hasOwnProperty("hX")?b.hX:.5;a.Sb=b.hasOwnProperty("hY")?b.hY:.5;a.visible=b.hasOwnProperty("v")?b.v:!0;a.Ce=b.hasOwnProperty("ce")?b.ce:!0;a.mh=b.hasOwnProperty("mts")?b.mts:-1;a.lb=b.hasOwnProperty("bm")?b.bm:0;a.ug=gb(a.lb);this.m&&hb(a,a.lb,this.m);a.pa();if(b.hasOwnProperty("fx"))for(e=0,f=b.fx.length;el||(a.Yd[l]=b.fx[e].active,a.xa[l]=b.fx[e].params);a.bd()}if(h=d.behs)for(c in h)h.hasOwnProperty(c)&&(e=this.Ks(a, parseInt(c,10)),0>e||a.G[e].Bc(h[c]));d.data&&a.Bc(d.data)};b.prototype.Nn=function(a,d,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,e)},e)};b.prototype.Ds=function(a,d){this.Nn("data.js",function(e){var c=new FileReader;c.onload=function(d){a(d.target.result)};c.onerror=d;c.readAsText(e)},d)};var I=[],Z=0;b.prototype.Dl=function(){if(I.length&&!(8<=Z)){Z++;var a=I.shift();this.Ar(a.filename,a.Pu,a.Yr)}};b.prototype.On=function(a,d,e){var c=this; I.push({filename:a,Pu:function(a){Z--;c.Dl();d(a)},Yr:function(a){Z--;c.Dl();e(a)}});this.Dl()};b.prototype.Ar=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)};b.prototype.Es=function(a,d,e){var c="",f=a.toLowerCase(),b=f.substr(f.length-4),f=f.substr(f.length-5);".mp4"===b?c="video/mp4":".webm"===f?c="video/webm":".m4a"===b?c="audio/mp4":".mp3"===b&&(c="audio/mpeg");this.On(a,function(a){a=URL.createObjectURL(new Blob([a], {type:c}));d(a)},e)};b.prototype.zt=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};b.prototype.Gp=function(a,d){this.Oi&&!this.zt(d)?this.Es(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};b.prototype.Bj=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Rb=function(a){return new b(document.getElementById(a))}; Sb=function(a,d){return new b({dc:!0,width:a,height:d})};window.cr_createRuntime=Rb;window.cr_createDCRuntime=Sb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ik=!0;document.body.appendChild(a);a=new b(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 b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(b,n){var g=window.cr_getC2Runtime();g&&g.tr(b,n)}; window.cr_sizeCanvas=function(b,n){if(0!==b&&0!==n){var g=window.cr_getC2Runtime();g&&g.setSize(b,n)}};window.cr_setSuspended=function(b){var n=window.cr_getC2Runtime();n&&n.setSuspended(b)}; (function(){function b(a,c){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=c[0];this.cu=c[1];this.bu=c[2];this.width=c[1];this.height=c[2];this.cq=c[3];this.Mp=c[4];this.P=c[5];var b=c[6],e,k;this.J=[];this.Lg=[];e=0;for(k=b.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(!c)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.jb(),p.Vj(),q.siblings.push(k),r.push(k)));a=0;for(m=this.ne.length;a< m;a++)q=this.ne[a],b=this.b.k[q[1]],b.Fb||this.b.he(this.ne[a],null,!0);this.b.tg=null;this.b.jb();if(this.b.wa&&!this.b.ya)for(a=0,m=this.b.k.length;athis.width- c&&(a=this.width-c);athis.height-c&&(a=this.height-c);aC&&(C=0);0>F&&(F=0);H>L&&(H=L);J>I&&(J=I);0>M&&(M=0);0>G&&(G=0);W>L&&(W=L);fa>I&&(fa=I);w.left=C/L;w.top=1-F/I;w.right=H/L;w.bottom=1-J/I}else w.left=E.left=0,w.top=E.top=0,w.right=E.right=1,w.bottom=E.bottom=1;ga=b&&(a.uh(k[0].Ha)||0!==t||0!==ga||1!==b.opacity||b.type.Ca.Vo)||c&&!b&&1!== c.opacity;a.Cp();if(ga){r[K]||(r[K]=a.wc(L,I,this.b.za));if(r[K].Be!==L||r[K].Ae!==I)a.deleteTexture(r[K]),r[K]=a.wc(L,I,this.b.za);a.Kb(0);a.Hc(r[K]);D=fa-G;a.clearRect(M,I-G-D,W-M,D);b?b.Qb(a):(a.oc(this.b.Ma),a.Zf(c.opacity),a.sd(),a.translate(-Z,-z),a.cd(),a.$e(C,J,H,J,H,F,C,F,w));E.left=E.top=0;E.right=E.bottom=1;b&&(x=w.top,w.top=w.bottom,w.bottom=x);K=1;T=0}a.Zf(1);t=k.length-1;var xa=a.Zl(k[t].Ha)||!c&&!b&&!this.b.fc;v=x=0;for(u=k.length;vb||(c&&this.tc&&a.Hb&&a.Hb.right>=a.Hb.left&&(a.ma(),this.ib.update(a,a.Hb,null),a.Hb.set(0,0,-1,-1)),b===this.c.length-1?this.c.pop():(wa(this.c,b),this.yh(b)),this.Zc=!0)};g.prototype.rg=function(a,c){a.ed= this.c.length;this.c.push(a);c&&this.tc&&a.Hb&&a.pa();this.Zc=!0};g.prototype.lu=function(a){this.c.unshift(a);this.yh(0)};g.prototype.St=function(a,c,b){var e=a.zc();c=c.zc();wa(this.c,e);ethis.ha||b.top>this.ga||(c.globalCompositeOperation=a.ug,a.kd(c))}};g.prototype.Xj=function(){this.Dd=!0;var a=this.Ja(0,0,!0,!0),c=this.Ja(0,0,!1,!0);this.Dd=!1;this.b.Od&&(a=Math.round(a),c=Math.round(c)); this.yj(a,c,null)};g.prototype.yj=function(a,c,b){var e=this.hc();this.Z=a;this.aa=c;this.ha=a+1/e*this.b.C;this.ga=c+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.cb();0!==a&&(b&&(b.translate(this.b.C/2,this.b.B/2),b.rotate(-a),b.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.Yp.Kp(this.Td,a),this.Yp.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 c=this.Ja(0,0,!0,!0),b=this.Ja(0,0,!1,!0);this.Dd=!1;this.b.Od&&(c=Math.round(c),b=Math.round(b));this.yj(c,b,null);c=this.hc(); a.sd();a.scale(c,c);a.jm(-this.cb());a.translate((this.Z+this.ha)/-2,(this.aa+this.ga)/-2);a.cd();this.tc?(this.ab.left=this.ib.Bb(this.Z),this.ab.top=this.ib.Cb(this.aa),this.ab.right=this.ib.Bb(this.ha),this.ab.bottom=this.ib.Cb(this.ga),this.Zc||!this.ab.yg(this.If)?(u(this.Kd),c=this.Rk(),this.Zc=!1,this.If.lf(this.ab)):c=this.Kd):c=this.c;for(var e,k=null,b=c.length-1;0<=b;--b)e=c[b],e!==k&&(this.Rr(c[b],a),k=e);this.tc&&(this.Kd=c);this.ad||(this.rk=this.b.Ie++,a.Cj(this.rk),a.Dp(1,1,1),a.Rn(), a.uu())};g.prototype.Qb=function(a){var c=0,b=0;if(this.rd=this.wi||1!==this.opacity||0this.ha||b.top>this.ga||(c.Cj(a.Ie),a.jq?this.Sr(a,c):(c.Kb(0),c.ue(a.rb,a.ob),a.Qb(c)))}};g.prototype.Rr=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var b=a.ra;b.rightthis.ha||b.top>this.ga||(a.Ie=this.b.Ie++,0===a.lb&& 1===a.opacity&&a.Qd&&a.pf&&(c.Cj(a.Ie),a.pf(c)))}};g.prototype.Sr=function(a,c){var b=a.U[0].Ha,e=a.U[0].index,k=this.hc();if(1!==a.U.length||c.Zl(b)||c.nu(b)||(a.i||a.e.cb())&&c.uh(b)||1!==a.opacity||a.type.Ca.Vo)this.Na.gm(c,this,a,this.rd?this.b.Ma:this.Na.Fg()),c.sd(),c.scale(k,k),c.jm(-this.cb()),c.translate((this.Z+this.ha)/-2,(this.aa+this.ga)/-2),c.cd();else{c.Kb(b);c.ue(a.rb,a.ob);c.uj(b)&&(this.b.V=!0);var q=0,p=0,l=0,h=0;c.uh(b)&&(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.$a&&a.$a.la?(g=a.$a.la,b=1/g.width,g=1/g.height):(b=1/a.width,g=1/a.height);c.$f(this.rd?this.b.Ma:this.Na.Fg(),b,g,q,p,l,h,k,this.cb(),this.Z,this.aa,(this.Z+this.ha)/2,(this.aa+this.ga)/2,this.b.fb.K,a.xa[e]);a.Qb(c)}};g.prototype.Ja=function(a,c,b,e){var k=this.b.devicePixelRatio;this.b.Pe&&(a*=k,c*=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+=c*h;c=this.cb();0!==c&&(p-=k,l-=q,a=Math.cos(c),c=Math.sin(c),e=p*a-l*c,l=l*a+p*c,p=e+k,l+=q);return b?p:l};g.prototype.xb=function(a,c,b,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.cb();if(0!==h){a-=p;c-=l;var g=Math.cos(-h),h=Math.sin(-h),n=a*g-c*h;c=c*g+a*h;a=n+p;c+=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=(c-k)/p;a=this.b.devicePixelRatio;this.b.Pe&&!e&&(q/=a,k/=a);return b?q:k};g.prototype.Wb=function(){var a,c,b,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(c=this.H.length;aa[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2=k.length&&(k.length=a.length+1);k[a.length]||(k[a.length]=[]);f=k[a.length];c=0;for(e=f.length;c=c.length&&(c.length=this.We+1),c[this.We]=a): this.data=a};f.prototype.Xs=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)};Qb=f;m.prototype.toString=function(){return"include:"+this.Kg.toString()};m.prototype.Da=function(){this.Kg=this.b.Ck[this.qt];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.fq()};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.fq=function(){for(var a=this.parent;a;){if(a.group&&!a.Hg){this.Ua=!1;return}a=a.parent}this.Ua=!0};$b=m;e.prototype.reset=function(a){this.tb=a;this.Db=this.Eb=0;P(this.Up);this.Ak=this.Se=!1};Pb=e})(); (function(){function b(c,a){this.ka=c;this.b=c.b;this.type=a[0];this.get=[this.ps,this.ls,this.ys,this.Bs,this.Zr,this.zs,this.ts,this.hs,this.ss,this.xs,this.$r,this.ws,this.js,this.us,this.qs,this.rs,this.ms,this.ns,this.gs,this.As,this.vs,this.os,this.es,this.ks][this.type];var b=null;this.Ld=this.M=this.Aa=this.bb=this.Pj=this.second=this.first=this.value=null;this.Oc=-1;this.Rc=null;this.kq=-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 Yb(c,a[1]);break;case 18:this.first=new Yb(c,a[1]);this.second=new Yb(c,a[2]);this.Pj=new Yb(c,a[3]);break;case 19:this.bb=this.b.Xd(a[1]);this.bb!==X.prototype.ub.random&&this.bb!==X.prototype.ub.mr||this.ka.Ip();this.Aa=[];this.M=[];3===a.length?(b=a[2],this.Aa.length=b.length+1):this.Aa.length=1;break;case 20:this.Ld=this.b.k[a[1]];this.Oc=-1;this.bb=this.b.Xd(a[2]);this.Yf=a[3];cc.Function&&this.bb===cc.Function.prototype.ub.jv&&this.ka.Ip();a[4]?this.Rc=new Yb(c,a[4]):this.Rc=null;this.Aa= [];this.M=[];6===a.length?(b=a[5],this.Aa.length=b.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 Yb(c,a[3]):this.Rc=null;this.kq=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.bb=this.b.Xd(a[3]);this.Yf=a[4];a[5]?this.Rc=new Yb(c,a[5]):this.Rc=null;this.Aa=[];this.M=[];7===a.length?(b=a[6],this.Aa.length=b.length+1):this.Aa.length=1;break;case 23:this.Jh=a[1],this.Ke=null}this.ka.Qt(this.Ld);4<=this.type&&17>= this.type&&(this.first=new Yb(c,a[1]),this.second=new Yb(c,a[2]));if(b){var g,d;g=0;for(d=b.length;g=a||m<=-a)m%=a;0>m&&(m+=a);f.apply(k[m],b)};b.prototype.es=function(c){var a=this.Ld,b=this.Aa,u=this.M,d=this.Rc,f=this.Oc,m=this.bb,e=this.ka.Rd,k=a.Y(),q=k.Qc();if(!q.length)if(k.N.length)q=k.N;else{this.Yf?c.Xb(""):c.fa(0);return}b[0]=c;c.Ye=a;c=n();g(u,b,c);d&&(d.get(c),c.Wa()&&(e=c.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],b)};b.prototype.os=function(c){var a=this.Rc,b=this.Ld,g=this.kq,d=this.ka.Rd, f=b.Y(),m=f.Qc();if(!m.length)if(f.N.length)m=f.N;else{this.Yf?c.Xb(""):c.fa(0);return}if(a){f=n();a.get(f);if(f.Wa()){d=f.data;m=b.c;0!==m.length&&(d%=m.length,0>d&&(d+=m.length));d=b.Ok(d);b=d.La[g];A(b)?c.Xb(b):c.A(b);--r;return}--r}a=m.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=m[d];m=0;b.I&&(m=d.type.qi[b.Fd]);b=d.La[g+m];A(b)?c.Xb(b):c.A(b)};b.prototype.ps=function(c){c.type=ac.ff;c.data=this.value};b.prototype.ls=function(c){c.type=ac.ef;c.data=this.value};b.prototype.ys=function(c){c.type=ac.String; c.data=this.value};b.prototype.Bs=function(c){this.first.get(c);c.Wa()&&(c.data=-c.data)};b.prototype.Zr=function(c){this.first.get(c);var a=n();this.second.get(a);c.Wa()&&a.Wa()&&(c.data+=a.data,a.Bf()&&c.Kf());--r};b.prototype.zs=function(c){this.first.get(c);var a=n();this.second.get(a);c.Wa()&&a.Wa()&&(c.data-=a.data,a.Bf()&&c.Kf());--r};b.prototype.ts=function(c){this.first.get(c);var a=n();this.second.get(a);c.Wa()&&a.Wa()&&(c.data*=a.data,a.Bf()&&c.Kf());--r};b.prototype.hs=function(c){this.first.get(c); var a=n();this.second.get(a);c.Wa()&&a.Wa()&&(c.data/=a.data,c.Kf());--r};b.prototype.ss=function(c){this.first.get(c);var a=n();this.second.get(a);c.Wa()&&a.Wa()&&(c.data%=a.data,a.Bf()&&c.Kf());--r};b.prototype.xs=function(c){this.first.get(c);var a=n();this.second.get(a);c.Wa()&&a.Wa()&&(c.data=Math.pow(c.data,a.data),a.Bf()&&c.Kf());--r};b.prototype.$r=function(c){this.first.get(c);var a=n();this.second.get(a);a.Ef()||c.Ef()?this.bs(c,a):this.as(c,a);--r};b.prototype.bs=function(c,a){c.Ef()&& a.Ef()?this.ds(c,a):this.cs(c,a)};b.prototype.ds=function(c,a){c.data+=a.data};b.prototype.cs=function(c,a){c.Ef()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.Xb(c.data.toString()+a.data)};b.prototype.as=function(c,a){c.fa(c.data&&a.data?1:0)};b.prototype.ws=function(c){this.first.get(c);var a=n();this.second.get(a);c.Wa()&&a.Wa()&&(c.data||a.data?c.fa(1):c.fa(0));--r};b.prototype.gs=function(c){this.first.get(c);c.data?this.second.get(c):this.Pj.get(c)};b.prototype.js=function(c){this.first.get(c); var a=n();this.second.get(a);c.fa(c.data===a.data?1:0);--r};b.prototype.us=function(c){this.first.get(c);var a=n();this.second.get(a);c.fa(c.data!==a.data?1:0);--r};b.prototype.qs=function(c){this.first.get(c);var a=n();this.second.get(a);c.fa(c.dataa.data?1:0);--r};b.prototype.ns=function(c){this.first.get(c); var a=n();this.second.get(a);c.fa(c.data>=a.data?1:0);--r};b.prototype.ks=function(c){var a=this.Ke.Xs();ja(a)?c.A(a):c.Xb(a)};Yb=b;t.prototype.Bf=function(){return this.type===ac.ef};t.prototype.Wa=function(){return this.type===ac.ff||this.type===ac.ef};t.prototype.Ef=function(){return this.type===ac.String};t.prototype.Kf=function(){this.Bf()||(this.Ef()&&(this.data=parseFloat(this.data)),this.type=ac.ef)};t.prototype.fa=function(c){this.type=ac.ff;this.data=Math.floor(c)};t.prototype.A=function(c){this.type= ac.ef;this.data=c};t.prototype.Xb=function(c){this.type=ac.String;this.data=c};t.prototype.Ku=function(c){ja(c)?(this.type=ac.ef,this.data=c):A(c)?(this.type=ac.String,this.data=c.toString()):(this.type=ac.ff,this.data=0)};Xb=t;ac={ff:0,ef:1,String:2}})();function X(b){this.b=b;this.Nb=[]} X.prototype.Wb=function(){var b={},n,g,t,u,r,c,a,v;b.waits=[];var x=b.waits,d;n=0;for(g=this.Nb.length;nc)){var a,b,g,d=this.b.Va(),f;u.length?f=u.pop():f={zb:{},qa:[]};f.xk=!1;f.time=this.b.fb.K+ c;f.Pp="";f.tm=!1;f.qf=d.tb;f.Db=d.Db+1;c=0;for(a=this.b.k.length;cd&&(a=d);c.A(a)};g.prototype.Ge=function(c){c.A(this.b.Ge)};g.prototype.ig=function(c){c.A(this.b.ig)};g.prototype.time=function(c){c.A(this.b.fb.K)};g.prototype.Gh=function(c){c.fa(this.b.Gh)};g.prototype.ej=function(c){c.fa(this.b.ej)};g.prototype.Ik=function(c){c.fa(this.b.Ik)};g.prototype.i=function(c,a,b,g,d){c.A(Fa(La(a,b,g,d)))};g.prototype.left=function(c,a,b){c.Xb(A(a)?a.substr(0,b):"")};g.prototype.right=function(c,a,b){c.Xb(A(a)?a.substr(a.length- b):"")};g.prototype.replace=function(c,a,b,g){A(a)&&A(b)&&A(g)?c.Xb(a.replace(new RegExp(ab(b),"gi"),g)):c.Xb(A(a)?a:"")};g.prototype.trim=function(c,a){c.Xb(A(a)?a.trim():"")};g.prototype.mr=function(c){var a=O(Math.random()*(arguments.length-1));c.Ku(arguments[a+1])};g.prototype.sk=function(c){c.A(this.b.sk/1E3)};g.prototype.Yi=function(c){c.A(this.b.Yi)};t.ub=new g;t.xu=function(){var c,a,b,g,d,f,n=this.b.Va();c=0;for(b=this.Nb.length;c this.b.fb.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,za(d.c,f.Hd),d=f,P(d.Hd),r.push(d));g.qf.wu();this.b.qk(g.qa);g.xk=!0}a=c=0;for(b=this.Nb.length;ca.ha||c.top>a.ga)},d.vv=function(){this.ma();var a=this.ra,c=this.b.ba;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},d.Hv=function(a,c,b){var d=this.Y(), f=d.Qc();if(!f.length)return!1;var h=f[0],g=h,n=Sa(h.x,h.y,c,b),r,m,u;r=1;for(m=f.length;rn)n=u,g=h;d.th(g);return!0},f.aw=function(a){this.x!==a&&(this.x=a,this.pa())},f.bw=function(a){this.y!==a&&(this.y=a,this.pa())},f.Rq=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.pa()},f.Wv=function(a,c){var b=a.Ss(this);if(b){var d;b.Dg?(d=b.Dg(c,!0),b=b.Dg(c,!1)):(d=b.x,b=b.y);if(this.x!==d||this.y!==b)this.x=d,this.y=b,this.pa()}}, f.Av=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.pa())},f.zv=function(a,c){0!==c&&(this.x+=Math.cos(V(a))*c,this.y+=Math.sin(V(a))*c,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.nv=function(a,c){return bc(this.width,a,c)},d.kv=function(a,c){return bc(this.height,a,c)},f.$v=function(a){this.width!==a&&(this.width=a,this.pa())},f.Tv=function(a){this.height!==a&&(this.height=a,this.pa())},f.Xv= function(a,c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.pa()},m.fw=function(a){a.A(this.width)},m.qv=function(a){a.A(this.height)},m.gv=function(a){this.ma();a.A(this.ra.left)},m.iv=function(a){this.ma();a.A(this.ra.top)},m.hv=function(a){this.ma();a.A(this.ra.right)},m.dv=function(a){this.ma();a.A(this.ra.bottom)});c&&(d.oq=function(a,c){return Ma(this.i,V(c))<=V(a)},d.yq=function(a){return Oa(this.i,V(a))},d.xq=function(a,c){var b=Ka(a),d=Ka(c),f=Ia(this.i);return Oa(d, b)?Oa(f,b)&&!Oa(f,d):!(!Oa(f,b)&&Oa(f,d))},f.Pv=function(a){a=V(Ga(a));isNaN(a)||this.i===a||(this.i=a,this.pa())},f.Lv=function(a){0===a||isNaN(a)||(this.i+=V(a),this.i=Ia(this.i),this.pa())},f.Mv=function(a){0===a||isNaN(a)||(this.i-=V(a),this.i=Ia(this.i),this.pa())},f.Nv=function(a,c){var b=Na(this.i,V(c),V(a));isNaN(b)||this.i===b||(this.i=b,this.pa())},f.Ov=function(a,c,b){a=Na(this.i,Math.atan2(b-this.y,c-this.x),V(a));isNaN(a)||this.i===a||(this.i=a,this.pa())},f.Yv=function(a,c){var b=Math.atan2(c- this.y,a-this.x);isNaN(b)||this.i===b||(this.i=b,this.pa())},m.cv=function(a){a.A(Ja(this.i))});t||(d.lv=function(a,c,b){return bc(this.La[a],c,b)},d.sv=function(a){return this.La[a]},d.Iv=function(a,c){var b=this.Y(),d=b.Qc();if(!d.length)return!1;var f=d[0],h=f,g=f.La[c],n,r,m;n=1;for(r=d.length;ng)g=m,h=f;b.th(h);return!0},d.Gv=function(a){var c,b,d,f,h;if(this.b.Un().Ji){h=this.Y();if(h.ca)for(h.ca=!1,P(h.c),P(h.N),d=this.c,c=0,b=d.length;ca?a=0:1f.e.index||d.e.index===f.e.index&&d.zc()>f.zc())f=d}else if(d.e.indexb)){var d=1===a;this.Yd[b]!==d&&(this.Yd[b]=d,this.bd(),this.b.V=!0)}}},f.Sv=function(a,c,b){if(this.b.q){var d=this.type.Nk(a);0>d||(a=this.type.H[d],d=this.xa[d],c=Math.floor(c),0>c||c>=d.length||(1===this.b.q.Ws(a.Ha,c)&&(b/=100),d[c]!==b&&(d[c]=b,a.Ua&&(this.b.V=!0))))}})};Hb=function(){this.mk=this.Yh=!0;this.type.Sh=!0;this.b.V=!0;var b,g,t=this.jk;b=0;for(g=t.length;bt;case 5:return b>=t;default:return!1}}})();var kc={};function nc(b){this.b=b} (function(){function b(a){-1===cb.indexOf(a)&&cb.push(a)}function n(a){var c=a.d,d;try{d=c.play()}catch(e){b(a);return}d?d.catch(function(){b(a)}):uc&&!D.lc&&b(a)}function g(){var a,c,d,e;vc||ga||!w||(t(),"running"===w.state&&(vc=!0));var f=cb.slice(0);P(cb);if(!H)for(a=0,c=f.length;aa&&(a=0);1a&&(a=.01);this.tj.gain.value=a;this.sj.gain.value=Math.pow(1/a,.6)*c};N.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=af;++f)e= f/32768,e=this.shape(e,b,d),this.ii[32768+f]=e,this.ii[32768-f-1]=-e};N.prototype.vc=function(a){this.F.disconnect();this.F.connect(a);this.D.disconnect();this.D.connect(a)};N.prototype.remove=function(){this.R.disconnect();this.tj.disconnect();this.Zj.disconnect();this.sj.disconnect();this.F.disconnect();this.D.disconnect()};N.prototype.gc=function(){return this.R};da.prototype.vc=function(a){this.T.disconnect();this.T.connect(a)};da.prototype.remove=function(){this.T.disconnect()};da.prototype.gc= function(){return this.T};oa.prototype.Ia=function(){this.T.getFloatFrequencyData(this.Gs);this.T.getByteTimeDomainData(this.Np);for(var a=this.T.fftSize,c=0,b=this.sh=0,d=0;cd&&(d=-d),this.shc&&(b=c);return b};B.prototype.Rg=function(){return!this.Tb&&!this.md&&!this.Jb&&!this.Ne()};B.prototype.Lu=function(){return!this.md&&!this.Jb&&!this.Ne()};B.prototype.Vu=function(){var a=this.volume*W;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)}};B.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=W*this.volume*this.Nf):this.d.muted!==!!a&&(this.d.muted=!!a)}};B.prototype.Gu=function(){this.Cf=!0;this.mi(this.Cf||this.Ug)};B.prototype.Hp=function(a){this.Ug=!!a;this.mi(this.Cf||this.Ug)};B.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)}};B.prototype.Iu=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=W*this.volume*this.Nf,this.Wj(),this.startTime=(this.zf?D.fb.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())}};Q.Ta=function(a){this.type=a;D=this.b=a.b; L=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&&(Z=location.href,a=Z.lastIndexOf("/"),-1"!==c&&(a.qj=c,a.Bl=d,a.Nm=e),null;k=new B(a,c);C.push(k);return k};var Ha=[];K.prototype.Oh=function(a){return jb(I,a)};Q.j=new K;T.prototype.Play=function(a,c,b,d){!H&&(b=Math.pow(10,b/20),isFinite(b)||(b=0),0>b&&(b=0),1this.size?this.Ua=!1:(0!==g.Zg&&(this.i+=Math.random()*g.Zg*b-g.Zg*b/2),0!==g.ah&&(this.speed+=Math.random()*g.ah*b-g.ah*b/2),0!==g.$g&&(this.opacity+=Math.random()*g.$g*b-g.$g*b/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))};b.prototype.kd=function(b){var g=this.ka.opacity*this.opacity;if(0!==g){0===this.ka.of&&(g*=1-this.ae/this.ka.timeout);b.globalAlpha=g;var g=this.x-this.size/2,c=this.y-this.size/2;this.ka.b.Od&&(g=g+.5|0,c=c+.5|0);b.drawImage(this.ka.type.la,g,c,this.size,this.size)}};b.prototype.Qb=function(b){var g=this.ka.opacity*this.opacity;0===this.ka.of&&(g*=1-this.ae/this.ka.timeout);var c=this.size,a=c*this.ka.op,n=this.x-c/2,t=this.y-c/2;this.ka.b.Od&&(n=n+.5|0,t=t+.5|0);1> a||0===g||(ab.Cl?(b.Zf(g),b.Wf(n,t,n+c,t,n+c,t+c,n,t+c)):b.fu(this.x,this.y,a,g))};b.prototype.left=function(){return this.x-this.size/2};b.prototype.right=function(){return this.x+this.size/2};b.prototype.top=function(){return this.y-this.size/2};b.prototype.bottom=function(){return this.y+this.size/2};n.Ta=function(b){this.type=b;this.b=b.b};var g=n.Ta.prototype,t=[];g.ua=function(){var b=this.ea;this.wj=b[0];this.Ij=V(b[1]);this.dg=b[2];this.um=!0;this.el=b[3];this.dl=b[4];this.cl=b[5]/ 100;this.Vk=b[6];this.$j=b[7];this.ak=b[8];this.Hj=b[9];this.Gj=b[10];this.Hi=b[11];this.dk=b[12];this.Kk=b[13];this.Zg=b[14];this.ah=b[15];this.$g=b[16];this.of=b[17];this.timeout=b[18];this.Ze=0;this.op=1;this.mj=this.x;this.oj=this.y;this.nj=this.x;this.lj=this.y;this.cr(function(b){b.ra.set(b.mj,b.oj,b.nj,b.lj);b.ac.bg(b.ra);b.Yh=!1;b.Lm();b.iq()});this.Gc||(this.yb=[]);this.b.Rj(this);this.type.wl();if(1===this.dg)for(b=0;bthis.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(b){var g,c,a,n=this.e;g=0;for(c=this.yb.length;g=n.Z&&a.bottom()>=n.aa&&a.left()<=n.ha&&a.top()<=n.ga&&a.kd(b)};g.Qb=function(b){this.op=this.e.hc();b.oc(this.type.Za);var g,c,a,n=this.e;g=0;for(c=this.yb.length;g=n.Z&&a.bottom()>=n.aa&&a.left()<=n.ha&&a.top()<=n.ga&&a.Qb(b)};n.j=new function(){};n.kb=new function(){}; n.ub=new function(){}})();function mc(b){this.b=b} (function(){function b(){if(0===this.vk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.eg?c.drawImage(this.la,this.Pf,this.Qf,this.width,this.height,0,0,this.width,this.height):c.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=mc.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,c,d, f,g,h,n,m,r;this.Mc=[];this.Jg=!1;a=0;for(c=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 c,b,d,f,h,g,m,a=0;for(c=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.$a=this.na.frames[this.u];this.gi=this.$a.Za;this.W.zh(this.$a.rj);this.Rb=this.$a.Rb;this.Sb=this.$a.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(mc.prototype.j.Dq,this);this.b.trigger(mc.prototype.j.Cq,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.ur();var a=this.gd.K,c=this.na,b=c.frames[this.u], d=b.duration/this.mf;this.ye&&a>=this.Gd+d&&(this.xe?this.u++:this.u--,this.Gd+=d,this.u>=c.frames.length&&(c.pp?(this.xe=!1,this.u=c.frames.length-2):c.loop?this.u=this.ie:(this.xd++,this.xd>=c.hm?this.gk(!1):this.u=this.ie)),0>this.u&&(c.pp?(this.u=1,this.xe=!0,c.loop||(this.xd++,this.xd>=c.hm&&this.gk(!0))):c.loop?this.u=this.ie:(this.xd++,this.xd>=c.hm?this.gk(!0):this.u=this.ie)),0>this.u?this.u=0:this.u>=c.frames.length&&(this.u=c.frames.length-1),a>this.Gd+c.frames[this.u].duration/this.mf&& (this.Gd=a),a=c.frames[this.u],this.gf(b,a),this.b.V=!0)};a.Sn=function(a){var c,b,d;c=0;for(b=this.type.Ob.length;cthis.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.ur=function(){var a=this.na.frames[this.u],c=this.u;this.u=O(this.pk);0>this.u&&(this.u=0);this.u>=this.na.frames.length&&(this.u=this.na.frames.length-1);c!==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,c){var b=a.width,d=a.height,f=c.width,h=c.height;b!=f&&(this.width*=f/b);d!=h&&(this.height*=h/d);this.Rb= c.Rb;this.Sb=c.Sb;this.W.zh(c.rj);this.pa();this.$a=c;this.gi=c.Za;b=0;for(d=this.G.length;bf||f>=d.length)return c?this.x:this.y;var h=(d[f][1]-b.Rb)*this.width,d=d[f][2],d=(d-b.Sb)*this.height,b=Math.cos(this.i);f=Math.sin(this.i);var g=h*b-d*f,d=d*b+ h*f,h=g+this.x,d=d+this.y;return c?h:d};var v=null,x=new ba,d=!1,f=[],m=new ta(0,0,0,0);r.finish=function(a){if(d){if(a){var c=this.b.Va().tb.Dc;a=v.Y();var b=x.dd(),f,g;if(a.ca){a.ca=!1;P(a.c);f=0;for(g=b.length;fSa(this.Kj,this.Lj,this.x,this.y)&&(this.Tj=!0,a.vd=this.Ch,a.jg=this.id,a.vf=c,a.b.trigger(Y.prototype.j.Kq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Lq,a),a.vf=0)};var e=-1E3,k=-1E3,q=-1E4;g.prototype.Ro=function(a,c){if(!this.Tj){var b=Wa();333>=b-this.wm&&!this.Hh&&15>Sa(this.Kj,this.Lj,this.x, this.y)&&(a.vd=this.Ch,a.jg=this.id,a.vf=c,666>=b-q&&25>Sa(e,k,this.x,this.y)?(a.b.trigger(Y.prototype.j.Gq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Hq,a),k=e=-1E3,q=-1E4):(a.b.trigger(Y.prototype.j.Oq,a),a.Bd=this.x,a.Cd=this.y,a.b.trigger(Y.prototype.j.Zm,a),e=this.x,k=this.y,q=b),a.vf=0)}};a.ua=function(){this.It=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vf=this.jg=this.vd=this.Cd=this.Bd=this.hn=this.gn=this.en=this.Yq=this.Xq=this.Wq=this.kj=this.jj=this.ij= 0;this.Yu=0!==this.ea[0];var a=0b-c.time||c.update(b,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 c=this.b.ya?v:jQuery(this.b.canvas).offset(),b=a.pageX-c.left,c=a.pageY-c.top;Wa();this.vd=this.touches.length; this.jg=a.pointerId;this.touches.push(n(b,c,a.pointerId,this.vd));this.b.lc=!0;this.b.trigger(Y.prototype.j.Xm,this);this.b.trigger(Y.prototype.j.bn,this);this.Bd=b;this.Cd=c;this.b.trigger(Y.prototype.j.an,this);this.b.lc=!1}};a.Nd=function(a,c){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var b=this.Cg(a.pointerId);this.vd=0<=b?this.touches[b].Ch:-1;this.jg=0<=b?this.touches[b].id:-1;this.b.lc=!0;this.b.trigger(Y.prototype.j.Wm, this);this.b.trigger(Y.prototype.j.$m,this);0<=b&&(c||this.touches[b].Ro(this,b),100>m.length&&m.push(this.touches[b]),this.touches.splice(b,1));this.b.lc=!1}};a.gj=function(a){a.preventDefault&&a.preventDefault();var c=Wa(),b,d,e,f;b=0;for(d=a.changedTouches.length;bc-f.time||f.update(c,e.pageX-g.left,e.pageY-g.top,2*(e.zw||e.Hw||e.sw||e.vw||0),2*(e.Aw||e.Iw||e.tw||e.ww|| 0),e.lw||e.Gw||e.rw||e.uw||0)}};a.hj=function(a){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.b.ya?v:jQuery(this.b.canvas).offset();Wa();this.b.lc=!0;var b,d,e,f;b=0;for(d=a.changedTouches.length;bm.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.jw=function(){return this.b.kc&&0===this.jj&&0!==d?90*d:this.jj};a.kw=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,c,b,d=Wa();a=0;for(c=this.touches.length;ab||b>=this.touches.length)a.A(0);else{var d,e,f,g,k;ia(c)?(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[b].x,this.touches[b].y,!0)),d.scale=e,d.fd=f,d.Ec=g,d.i=k):(d=ja(c)?this.b.Eg(c): this.b.Pk(c))?a.A(d.Ja(this.touches[b].x,this.touches[b].y,!0)):a.A(0)}};r.prototype.dn=function(a,c){var b=this.vf;if(0>b||b>=this.touches.length)a.A(0);else{var d,e,f,g,k;ia(c)?(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[b].x,this.touches[b].y,!1)),d.scale=e,d.fd=f,d.Fc=g,d.i=k):(d=ja(c)?this.b.Eg(c):this.b.Pk(c))?a.A(d.Ja(this.touches[b].x,this.touches[b].y,!1)):a.A(0)}};c.ub=new r})(); function pc(b){this.b=b;var n=this;this.b.ya||(jQuery(document).mousemove(function(b){n.Ol(b)}),jQuery(document).mousedown(function(b){n.Nl(b)}),jQuery(document).mouseup(function(b){n.Pl(b)}));b=0",g.pageX,g.pageY)};g.gj=function(b){b.preventDefault&&b.preventDefault();var c,a,g,n;c=0;for(a=b.changedTouches.length;c",g.pageX,g.pageY)};g.Rf=function(b){b.preventDefault&&kb(b)&&b.preventDefault();var c,a,g;c=0;for(a=b.changedTouches.length;c")};g.rh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&& (b.preventDefault&&kb(b)&&b.preventDefault(),this.Jl(b.pointerId.toString(),b.pageX,b.pageY))};g.qh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.Kl(b.pointerId.toString(),b.pageX,b.pageY))};g.Nd=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&kb(b)&&b.preventDefault(),this.Ll(b.pointerId.toString()))};g.Jl=function(g,c,a){var n=this.b.ya?t:jQuery(this.b.canvas).offset();c=c-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&&b(p).Wt(g,f,m)};g.Kl=function(g,c,a){var n=this.b.ya?t:jQuery(this.b.canvas).offset();c=c-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(b){this.enabled=b.enabled;this.Fe= !1};u.Wt=function(b,c,a){this.Hn=c-this.n.x;this.In=a-this.n.y;this.Fe=!0;this.zk=b;this.b.lc=!0;this.b.trigger(pc.prototype.j.Sm,this.n);this.b.lc=!1};u.Yt=function(b,c){var a=b-this.Hn,g=c-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.au=function(){this.Fe=!1;this.b.lc=!0;this.b.trigger(pc.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.kb=new function(){};g.ub=new function(){}})();function qc(b){this.b=b} (function(){function b(){}var n=qc.prototype;n.Ab=function(b){this.behavior=b;this.b=b.b};n.Ab.prototype.ua=function(){};n.Ta=function(b,g){this.type=b;this.behavior=b.behavior;this.n=g;this.b=b.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.sr=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(b){this.Ag=b.fit;this.Lh=b.wt;this.oi=b.fot;this.pc=b.s;this.Ic.reset();this.Ic.K=b.st;this.Xe=b.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(qc.prototype.j.Iq,this.n)));1===this.pc&&this.Ic.K>=this.Lh&&(this.pc=2, this.Ic.reset(),this.b.trigger(qc.prototype.j.Pq,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(qc.prototype.j.Jq,this.n),1===this.sr&&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)};b.prototype.Jq=function(){return!0};b.prototype.Iq=function(){return!0};b.prototype.Pq=function(){return!0}; n.j=new b;n.kb=new function(){};n.ub=new function(){}})();function wc(b){this.b=b} (function(){var b=wc.prototype;b.Ab=function(b){this.behavior=b;this.b=b.b};b.Ab.prototype.ua=function(){};b.Ta=function(b,g){this.type=b;this.behavior=b.behavior;this.n=g;this.b=b.b;this.mode=0};b=b.Ta.prototype;b.ua=function(){this.mode=this.ea[0]};b.Ia=function(){};b.Qj=function(){this.n.ma();var b=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>b.left&& (this.n.x-=b.left,t=!0),0>b.top&&(this.n.y-=b.top,t=!0),b.right>g.width&&(this.n.x-=b.right-g.width,t=!0),b.bottom>g.height&&(this.n.y-=b.bottom-g.height,t=!0));t&&this.n.pa()}})(); function lc(){return[nc,oc,mc,Y,pc,wc,qc,X.prototype.j.Um,oc.prototype.kb.Qm,pc.prototype.j.Tm,mc.prototype.j.zq,mc.prototype.j.uq,mc.prototype.ub.pq,nc.prototype.kb.Play,mc.prototype.kb.Tq,mc.prototype.kb.Qq,mc.prototype.kb.Qm,X.prototype.j.Rm,mc.prototype.kb.Rq,pc.prototype.j.Sm,X.prototype.kb.Sq,mc.prototype.ub.cn,mc.prototype.ub.dn,X.prototype.j.tq,mc.prototype.ub.vq,X.prototype.kb.Uq,X.prototype.kb.wq,Y.prototype.j.Zm]};