a.ma||d.top>a.la)},e.lx=function(){this.ya();var a=this.Aa,d=this.b.wa;return 0>a.right||0>a.bottom||a.left>d.width||a.top>d.height},e.zx=function(a,d,c){var e=this.za(),
b=e.Cc();if(!b.length)return!1;var g=b[0],k=g,l=Ta(g.x,g.y,d,c),p,m,n;p=1;for(m=b.length;pl)l=n,k=g;e.Ei(k);return!0},d.Sx=function(a){this.x!==a&&(this.x=a,this.C())},d.Tx=function(a){this.y!==a&&(this.y=a,this.C())},d.Ox=function(a,d){if(this.x!==a||this.y!==d)this.x=a,this.y=d,this.C()},d.Px=function(a,d){var c=a.Ju(this);if(c){var e;c.mm?(e=c.mm(d,!0),c=c.mm(d,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.C()}},d.rx=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.C())},d.qx=function(a,d){0!==d&&(this.x+=Math.cos(W(a))*d,this.y+=Math.sin(W(a))*d,this.C())},k.Yx=function(a){a.Y(this.x)},k.Zx=function(a){a.Y(this.y)},k.Ef=function(a){a.Y(this.b.Nh(this))});r&&(e.$w=function(a,d){return fc(this.width,a,d)},e.Xw=function(a,d){return fc(this.height,a,d)},d.Gs=function(a){this.width!==a&&(this.width=a,this.C())},d.Lx=function(a){this.height!==a&&(this.height=a,this.C())},d.Qx=function(a,
d){if(this.width!==a||this.height!==d)this.width=a,this.height=d,this.C()},k.Xx=function(a){a.Y(this.width)},k.gx=function(a){a.Y(this.height)},k.Tw=function(a){this.ya();a.Y(this.Aa.left)},k.Vw=function(a){this.ya();a.Y(this.Aa.top)},k.Uw=function(a){this.ya();a.Y(this.Aa.right)},k.Sw=function(a){this.ya();a.Y(this.Aa.bottom)});c&&(e.Nr=function(a,d){return Ma(this.n,W(d))<=W(a)},e.Xr=function(a){return Ra(this.n,W(a))},e.Vr=function(a,d){var c=Ka(a),e=Ka(d),b=Ia(this.n);return Ra(e,c)?Ra(b,c)&&
!Ra(b,e):!(!Ra(b,c)&&Ra(b,e))},d.Hx=function(a){a=W(Ha(a));isNaN(a)||this.n===a||(this.n=a,this.C())},d.Dx=function(a){0===a||isNaN(a)||(this.n+=W(a),this.n=Ia(this.n),this.C())},d.Ex=function(a){0===a||isNaN(a)||(this.n-=W(a),this.n=Ia(this.n),this.C())},d.Fx=function(a,d){var c=Qa(this.n,W(d),W(a));isNaN(c)||this.n===c||(this.n=c,this.C())},d.Gx=function(a,d,c){a=Qa(this.n,Math.atan2(c-this.y,d-this.x),W(a));isNaN(a)||this.n===a||(this.n=a,this.C())},d.Rx=function(a,d){var c=Math.atan2(d-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.C())},k.Rw=function(a){a.Y(Ja(this.n))});n||(e.Yw=function(a,d,c){return fc(this.pb[a],d,c)},e.ix=function(a){return this.pb[a]},e.Ax=function(a,d){var c=this.za(),e=c.Cc();if(!e.length)return!1;var b=e[0],g=b,k=b.pb[d],l,p,m;l=1;for(p=e.length;lk)k=m,g=b;c.Ei(g);return!0},e.yx=function(a){var d,c,e,b,g;if(this.b.$o().Cm){g=this.za();if(g.Ma)for(g.Ma=!1,V(g.e),V(g.pa),e=this.e,d=0,c=e.length;da?a=0:1b.j.index||e.j.index===b.j.index&&e.Gd()>b.Gd())b=e}else if(e.j.indexc)){var e=1===a;this.Fe[c]!==e&&(this.Fe[c]=e,this.wd(),this.b.ua=!0)}}},d.Kx=function(a,d,c){if(this.b.m){var e=this.type.lm(a);0>e||(a=this.type.P[e],e=this.Pa[e],d=Math.floor(d),0>d||d>=e.length||(1===this.b.m.Ou(a.kb,d)&&(c/=100),e[d]!==c&&(e[d]=c,a.Mb&&(this.b.ua=!0))))}})};Lb=function(){this.Ll=this.Gl=!0;this.type.lj=!0;this.b.ua=!0;var b,g,n=this.Hl;b=0;for(g=
n.length;bn;case 5:return b>=n;default:return!1}}})();
var oc={hardlight:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nif (front.r * 0.299 + front.g * 0.587 + front.b * 0.114 <= 0.5)\n{\nfront *= back * 2.0;\n}\nelse\n{\nfront.rgb = 1.0 - ((1.0 - (2.0 * front.rgb - 1.0)) * (1.0 - back.rgb * front.a));\n}\ngl_FragColor = front;\n}",Qj:0,
Rj:0,Ul:!0,Uc:!1,El:!1,V:[]}};function tc(b){this.b=b}
(function(){function b(a){-1===nb.indexOf(a)&&nb.push(a)}function m(a){var d=a.k,c;try{c=d.play()}catch(e){b(a);return}c?c.catch(function(){b(a)}):Bc&&!D.Rf&&b(a)}function g(){var a,d,c,e;Cc||ga||!w||(n(),"running"===w.state&&(Cc=!0));var f=nb.slice(0);V(nb);if(!T)for(a=0,d=f.length;aa&&(a=0);1a&&(a=.01);this.Pk.gain.value=a;this.Ok.gain.value=Math.pow(1/a,.6)*d};u.prototype.shape=function(a,d,c){var b=1.05*c*d-d;c=0>a?-1:1;a=0>a?-a:a;d=af;++f)e=f/32768,e=this.shape(e,c,b),this.Hj[32768+f]=e,this.Hj[32768-f-1]=-e};u.prototype.Nc=function(a){this.O.disconnect();this.O.connect(a);this.N.disconnect();this.N.connect(a)};u.prototype.remove=function(){this.ea.disconnect();this.Pk.disconnect();this.ul.disconnect();this.Ok.disconnect();this.O.disconnect();this.N.disconnect()};u.prototype.Bc=function(){return this.ea};K.prototype.Nc=function(a){this.ka.disconnect();this.ka.connect(a)};K.prototype.remove=
function(){this.ka.disconnect()};K.prototype.Bc=function(){return this.ka};C.prototype.Ja=function(){this.ka.getFloatFrequencyData(this.wu);this.ka.getByteTimeDomainData(this.hr);for(var a=this.ka.fftSize,d=0,c=this.Di=0,b=0;db&&(b=-b),this.Did&&(c=d);return c};E.prototype.ai=function(){return!this.pc&&!this.Fd&&!this.ic&&!this.Nf()};E.prototype.yw=function(){return!this.Fd&&!this.ic&&!this.Nf()};E.prototype.Jw=function(){var a=this.volume*
Z;isFinite(a)||(a=0);switch(this.X){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.X?this.mb.gain.value=a*this.dh:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};E.prototype.Mj=function(a){switch(this.X){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.X?(this.dh=a?0:1,this.mb.gain.value=Z*this.volume*this.dh):this.k.muted!==!!a&&(this.k.muted=!!a)}};E.prototype.qw=function(){this.Lg=
!0;this.Mj(this.Lg||this.ci)};E.prototype.br=function(a){this.ci=!!a;this.Mj(this.Lg||this.ci)};E.prototype.rl=function(){var a=this.playbackRate;this.Jg&&(a*=D.pg);switch(this.X){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.X?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};E.prototype.sw=function(a){switch(this.X){case 0:a?this.ai()?(this.Ic=!0,this.k.pause()):this.Ic=!1:this.Ic&&(this.k.play(),
this.Ic=!1);break;case 1:a?this.ai()?(this.Ic=!0,1===this.buffer.X?(this.gc=this.om(!0),this.Id&&(this.gc=this.gc%this.Lf()),e(this.k)):this.k.pause()):this.Ic=!1:this.Ic&&(1===this.buffer.X?(this.k=w.createBufferSource(),this.k.buffer=this.buffer.ja,this.k.connect(this.mb),this.k.onended=this.qn,this.jj=this.k,this.k.loop=this.Id,this.mb.gain.value=Z*this.volume*this.dh,this.rl(),this.startTime=(this.Jg?D.Gb.fa:D.Be.fa)-this.gc/(this.playbackRate||.001),t(this.k,this.gc,this.Lf())):this.k.play(),
this.Ic=!1);break;case 2:a?this.ai()?(this.k.pause(),this.Ic=!0):this.Ic=!1:this.Ic&&(this.Ic=!1,this.k.play())}};G.T=function(a){this.type=a;D=this.b=a.b;J=this;this.rc=null;this.ki=-600;this.b.mk&&(ob=!0);!(this.b.Og||this.b.Ig&&(this.b.Em||this.b.ik))||this.b.Xh||this.b.Qa||this.b.hk||ob||(Bc=!0);w=null;"undefined"!==typeof AudioContext?(O=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(O=1,w=new webkitAudioContext);this.b.Og&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?
w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==O&&(this.b.kd&&"undefined"!==typeof window.Media?O=2:this.b.rp&&(O=3));2===O&&(M=location.href,a=M.lastIndexOf("/"),-1"!==d&&(a.Lk=d,a.bn=b,a.fo=e),null;g=new E(a,d);x.push(g);return g};var Pa=[];S.prototype.hj=function(a){return lb(z,a)};G.u=new S;P.prototype.Play=function(a,d,c,b){!T&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&
(c=0),1=a||0>=l||g>=m||c>=e?(this.Hf||jQuery(this.xa).hide(),this.Hf=!0):(1>g&&(g=1),1>c&&(c=1),a>=m&&(a=m-1),l>=e&&(l=e-1),m=window.innerWidth,e=window.innerHeight,
b||this.Ep!==g||this.Ip!==c||this.Gp!==a||this.Ap!==l||this.Kp!==m||this.Jp!==e?(this.Ep=g,this.Ip=c,this.Gp=a,this.Ap=l,this.Kp=m,this.Jp=e,this.Hf&&(jQuery(this.xa).show(),this.Hf=!1),b=Math.round(g)+jQuery(this.b.canvas).offset().left,m=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.xa).css("position","absolute"),jQuery(this.xa).offset({left:b,top:m}),jQuery(this.xa).width(Math.round(a-g)),jQuery(this.xa).height(Math.round(l-c)),this.Qs&&jQuery(this.xa).css("font-size",this.j.Zb(!0)/
this.b.devicePixelRatio-.2+"em")):this.Hf&&(jQuery(this.xa).show(),this.Hf=!1))}};n.zc=function(){};n.Pb=function(){};b.prototype.mo=function(){return!0};g.u=new b;m.prototype.Fs=function(b){this.b.Qa||(this.visible=0!==b)};m.prototype.Cs=function(b,g){this.b.Qa||jQuery(this.xa).css(b,g)};g.qa=new m;g.lb=new function(){}})();function vc(b){this.b=b}
(function(){function b(){}function m(){}function g(){}var n=vc.prototype;n.Z=function(b){this.Da=b;this.b=b.b};n.Z.prototype.H=function(){};n.T=function(b){this.type=b;this.b=b.b};var p=n.T.prototype;p.H=function(){this.Ag={}};p.$a=function(){return this.Ag};p.rb=function(b){this.Ag=b;for(var c in this.Ag);};b.prototype.Ur=function(b){return this.Ag.hasOwnProperty(b)};n.u=new b;m.prototype.Mr=function(b,c){this.Ag[b]=c};n.qa=new m;g.prototype.ko=function(b){b.hc(JSON.stringify({c2dictionary:!0,data:this.Ag}))};
n.lb=new g})();function wc(b){this.b=b}
(function(){function b(){}var m=wc.prototype;m.Z=function(b){this.Da=b;this.b=b.b};m.Z.prototype.H=function(){};m.T=function(b){this.type=b;this.b=b.b;this.Sg=Array(256);this.Zi=Array(256);this.ze=0};var g=m.T.prototype;g.H=function(){var b=this;this.b.Qa||(jQuery(document).keydown(function(g){b.nn(g)}),jQuery(document).keyup(function(g){b.pn(g)}))};var n=[32,33,34,35,36,37,38,39,40,44];g.nn=function(b){var g=!1;window!=window.top&&-1b;++b)if(this.Sg[b]){this.Sg[b]=!1;this.ze=b;this.b.trigger(wc.prototype.u.lo,this);var g=this.b.trigger(wc.prototype.u.qo,this),c=this.b.trigger(wc.prototype.u.po,this);if(g||c)this.Zi[b]=!0}};g.$a=function(){return{triggerKey:this.ze}};g.rb=function(b){this.ze=b.triggerKey};b.prototype.Yr=function(b){return this.Sg[b]};b.prototype.oo=function(b){return b===this.ze};b.prototype.es=function(){return!0};
b.prototype.lo=function(){return!0};b.prototype.qo=function(b){return b===this.ze};b.prototype.ts=function(b){return b===this.ze};b.prototype.po=function(b){return b===this.ze};m.u=new b;m.qa=new function(){};m.lb=new function(){}})();function sc(b){this.b=b}
(function(){function b(){if(0===this.Wl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var d=a.getContext("2d");this.nh?d.drawImage(this.I,this.eh,this.fh,this.width,this.height,0,0,this.width,this.height):d.drawImage(this.I,0,0,this.width,this.height);this.Wl=a.toDataURL("image/png")}return this.Wl}function m(){}function g(a){a[0]=0;a[1]=0;a[2]=0;k.push(a)}function n(a,d){return athis.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);var a=this.Ia.frames[this.G];this.R.Ni(a.Mk);this.Tb=a.Tb;this.Ub=a.Ub;this.xg=this.Ia.speed;this.Re=this.Ia.En;1===this.type.lc.length&&1===this.type.lc[0].frames.length||0===this.xg||this.b.Yi(this);this.vc?this.zd.reset():this.zd=new db;this.$d=this.zd.fa;this.vf=!0;this.Sd=0;this.uf=!0;this.Pl=this.vo="";this.Zs=0;this.Ol=-1;this.type.Xm();var d,c,b,e,f,g,k,a=0;for(d=this.type.lc.length;athis.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);this.xg=a.cas;this.$d=a.fs;this.Sd=a.ar;this.zd.reset();this.zd.fa=a.at;this.vf=a.hasOwnProperty("ap")?a.ap:!0;this.uf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Re=a.rt:this.Re=this.Ia.En;this.Db=this.Ia.frames[this.G];this.Ej=this.Db.D;this.R.Ni(this.Db.Mk);this.Tb=this.Db.Tb;this.Ub=this.Db.Ub};d.Fl=function(a){this.G=a?0:this.Ia.frames.length-
1;this.vf=!1;this.vo=this.Ia.name;this.b.trigger(sc.prototype.u.ds,this);this.b.trigger(sc.prototype.u.cs,this);this.Sd=0};d.nj=function(){return this.zd.fa};d.Ja=function(){this.zd.add(this.b.Nh(this));this.Pl.length&&this.mt();0<=this.Ol&&this.nt();var a=this.zd.fa,d=this.Ia,c=d.frames[this.G],b=c.duration/this.xg;this.vf&&a>=this.$d+b&&(this.uf?this.G++:this.G--,this.$d+=b,this.G>=d.frames.length&&(d.Gq?(this.uf=!1,this.G=d.frames.length-2):d.loop?this.G=this.Re:(this.Sd++,this.Sd>=d.Dn?this.Fl(!1):
this.G=this.Re)),0>this.G&&(d.Gq?(this.G=1,this.uf=!0,d.loop||(this.Sd++,this.Sd>=d.Dn&&this.Fl(!0))):d.loop?this.G=this.Re:(this.Sd++,this.Sd>=d.Dn?this.Fl(!0):this.G=this.Re)),0>this.G?this.G=0:this.G>=d.frames.length&&(this.G=d.frames.length-1),a>this.$d+d.frames[this.G].duration/this.xg&&(this.$d=a),a=d.frames[this.G],this.tg(c,a),this.b.ua=!0)};d.Wo=function(a){var d,c,b;d=0;for(c=this.type.lc.length;dthis.G&&(this.G=0),this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1),1===this.Zs&&(this.G=0),this.vf=!0,this.$d=this.zd.fa,this.uf=!0,this.tg(a,this.Ia.frames[this.G]),this.b.ua=!0)};d.nt=function(){var a=this.Ia.frames[this.G],d=this.G;this.G=
ra(this.Ol);0>this.G&&(this.G=0);this.G>=this.Ia.frames.length&&(this.G=this.Ia.frames.length-1);d!==this.G&&(this.tg(a,this.Ia.frames[this.G]),this.$d=this.zd.fa,this.b.ua=!0);this.Ol=-1};d.tg=function(a,d){var c=a.width,b=a.height,e=d.width,f=d.height;c!=e&&(this.width*=e/c);b!=f&&(this.height*=f/b);this.Tb=d.Tb;this.Ub=d.Ub;this.R.Ni(d.Mk);this.C();this.Db=d;this.Ej=d.D;c=0;for(b=this.M.length;ce||e>=b.length)return d?this.x:this.y;var f=(b[e][1]-c.Tb)*this.width,b=b[e][2],b=(b-c.Ub)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var g=f*c-b*e,b=b*c+f*e,f=g+this.x,b=b+this.y;return d?f:b};var k=[],f=-2,v=[];m.prototype.hs=function(a){if(!a)return!1;var d=this.b,b=d.$o(),e=b.type,k=null;b.L.collmemory?k=b.L.collmemory:(k={},b.L.collmemory=k);
b.L.spriteCreatedDestroyCallback||(b.L.spriteCreatedDestroyCallback=!0,d.Cl(function(a){var d=b.L.collmemory;a=a.uid;var c,e;for(c in d)d.hasOwnProperty(c)&&(e=d[c],e[0]===a||e[1]===a)&&(g(d[c]),delete d[c])}));var l=e.za(),m=a.za(),l=l.Cc(),n,t,A,H,G,D,J,z=this.b.Qd,M=z-1,O=d.Sb().Oc;for(t=0;t=g.length&&g.push(b(c,Object));e=g[e];e.text=f;e.width=a.dn(f);a.we=na(a.we,e.width)}var n=xc.prototype;n.H=function(){};n.Z=function(a){this.Da=a;this.b=a.b};var p=n.Z.prototype;p.H=function(){this.F||
(this.I=new Image,this.b.tl(this.I,this.kl),this.D=null)};p.gh=function(){this.F||(this.D=null)};p.Ci=function(){if(!this.F&&this.e.length){this.D||(this.D=this.b.m.Xg(this.I,!1,this.b.Ea,this.Xi));var a,c;a=0;for(c=this.e.length;a=c*e);n++){var r=n%c,t=Math.floor(n/c),C=h.charAt(n);if(this.b.m){var N=this.zj,L=r*m,E=t*p,r=(r+1)*m,t=(t+1)*p;void 0===N[C]&&(N[C]=b(l,ua));N[C].left=L;N[C].top=E;N[C].right=r;N[C].bottom=t}else N=this.yj,r=r*d,t=t*g,L=d,E=g,void 0===N[C]&&(N[C]=b(a,Object)),N[C].x=r,N[C].y=t,N[C].Kr=L,N[C].gp=E}};var t=
[];n.yl=function(a){V(t);for(var c="",b,e=0;e=g)m(c,f,!0);else{var l=a.Ne,n=a.wg;if(e.length*(a.xj*l+n)-n<=g&&-1===e.indexOf("\n")&&(n=a.dn(e),n<=g)){m(c,f,!0);f.push(b(c,
Object));f[0].text=e;f[0].width=n;a.we=n;a.Pd=a.Me*l+a.lineHeight;return}this.Al(a);a.Pd=f.length*(a.Me*l+a.lineHeight)}}else m(c,f,!0)};n.Al=function(a){var b=a.fj,e=a.text,l=a.Vb,m=a.width;b&&(this.yl(e),e=t);var n="",h,p,u,K=0,C=!1;for(u=0;um&&(""===h?(g(a,K,n),n="",C=!0):(g(a,K,h),n=e[u]),K++,b||" "!==n||(n="")));n.replace(/\s\s*$/,"").length&&(g(a,K,n),K++);for(u=K;uthis.width+1E-5)break;void 0!==w&&(D=G,J=P,0===m&&1===p&&(D=Math.round(D),J=Math.round(J)),a.drawImage(this.I,w.x,w.y,w.Kr,w.gp,D,J,w.Kr*p,w.gp*p));G+=I*p+L;if(0===m&&c+G>l)break}}P+=r;if(0===m&&(P+r+t>this.height||b+P>h))break}}a.restore()}};var e=new va;p.Pb=function(a){a.jb(this.D);a.pe(this.opacity);if(this.text&&(this.Qq(),!(this.heightthis.width+1E-5)break;if(void 0!==
B){var x=this.xj*N,F=this.Me*N;M=z;O=t;0===p&&1===N&&(M=Math.round(M),O=Math.round(O));e.Ga=M;e.Ha=O;e.ab=M+x;e.bb=O;e.Ta=M;e.Ua=O+F;e.Va=M+x;e.Wa=O+F;0!==p&&(M=e,O=D,x=J,F=void 0,F=M.Ga*O-M.Ha*x,M.Ha=M.Ha*O+M.Ga*x,M.Ga=F,F=M.ab*O-M.bb*x,M.bb=M.bb*O+M.ab*x,M.ab=F,F=M.Ta*O-M.Ua*x,M.Ua=M.Ua*O+M.Ta*x,M.Ta=F,F=M.Va*O-M.Wa*x,M.Wa=M.Wa*O+M.Va*x,M.Va=F);e.offset(b,c);a.rd(e.Ga,e.Ha,e.ab,e.bb,e.Va,e.Wa,e.Ta,e.Ua,B)}z+=G*N+I;if(0===p&&b+z>h)break}}t+=L;if(0===p&&(t+L+E>this.height||c+t>n))break}}};n.u=new function(){};
p.nj=function(a,c){var b=parseInt(c,10);this.Oe[a]!==b&&(this.Oe[a]=b,this.ud=!0,this.b.ua=!0)};n.qa=new function(){};n.lb=new function(){}})();function yc(b){this.b=b}
(function(){function b(){return c.length?c.pop():{}}function m(a){var b,g;b=0;for(g=a.length;ba.ma||c.top>a.la)this.b.m.deleteTexture(this.sc),this.Jd=this.dg=this.sc=null}};p.ke=function(){this.Jd=this.dg=null;this.b.m&&this.sc&&this.b.m.deleteTexture(this.sc);
this.sc=null};p.nj=function(){this.font=this.Yj+" "+this.Gi.toString()+"pt "+this.Bg;this.ud=!0;this.b.ua=!0};p.zc=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var b=1;c&&(b=Math.abs(this.j.Zb()),a.save(),a.scale(b,b));if(this.ud||this.width!==this.Zf)this.type.Da.zl(this.text,this.Vb,a,this.width,this.fj),this.ud=!1,this.Zf=this.width;this.ya();var b=c?0:this.wb.Ga,e=c?0:this.wb.Ha;this.b.Hc&&(b=b+.5|0,e=e+.5|0);0===this.n||c||(a.save(),
a.translate(b,e),a.rotate(this.n),e=b=0);var d=e+this.height,g=this.zn,g=g+this.Um,f,m;1===this.Ae?e+=Math.max(this.height/2-this.Vb.length*g/2,0):2===this.Ae&&(e+=Math.max(this.height-this.Vb.length*g-2,0));for(m=0;m=d-g);m++);(0!==this.n||c)&&a.restore();this.Yf=this.b.Qd};p.Pb=function(a){if(!(1>this.width||1>this.height)){var c=this.ud||
this.nq;this.nq=!1;var b=this.j.Zb(),e=this.j.nb(),d=this.hf,g=b*this.width,f=b*this.height,m=Math.ceil(g),n=Math.ceil(f),p=Math.abs(m),h=Math.abs(n),q=this.b.K/2,r=this.b.J/2;this.dg||(this.Jd=document.createElement("canvas"),this.Jd.width=p,this.Jd.height=h,this.uk=p,this.tk=h,c=!0,this.dg=this.Jd.getContext("2d"));if(p!==this.uk||h!==this.tk)this.Jd.width=p,this.Jd.height=h,this.sc&&(a.deleteTexture(this.sc),this.sc=null),c=!0;c&&(this.dg.clearRect(0,0,p,h),this.zc(this.dg,!0),this.sc||(this.sc=
a.Yb(p,h,this.b.Ea,this.b.Sf)),a.eo(this.Jd,this.sc,this.b.Sf));this.uk=p;this.tk=h;a.jb(this.sc);a.pe(this.opacity);a.Wc();a.translate(-q,-r);a.Kc();var K=this.wb,c=this.j.Ca(K.Ga,K.Ha,!0,!0),p=this.j.Ca(K.Ga,K.Ha,!1,!0),h=this.j.Ca(K.ab,K.bb,!0,!0),q=this.j.Ca(K.ab,K.bb,!1,!0),r=this.j.Ca(K.Va,K.Wa,!0,!0),C=this.j.Ca(K.Va,K.Wa,!1,!0),N=this.j.Ca(K.Ta,K.Ua,!0,!0),K=this.j.Ca(K.Ta,K.Ua,!1,!0);if(this.b.Hc||0===this.n&&0===e)var L=(c+.5|0)-c,E=(p+.5|0)-p,c=c+L,p=p+E,h=h+L,q=q+E,r=r+L,C=C+E,N=N+L,K=
K+E;0===this.n&&0===e?(h=c+m,q=p,r=h,C=p+n,N=c,K=C,d.right=1,d.bottom=1):(d.right=g/m,d.bottom=f/n);a.rd(c,p,h,q,r,C,N,K,d);a.Wc();a.scale(b,b);a.Yk(-this.j.nb());a.translate((this.j.ba+this.j.ma)/-2,(this.j.ca+this.j.la)/-2);a.Kc();this.Yf=this.b.Qd}};var r=[];n.yl=function(a){V(r);for(var c="",b,e=0;e=e)m(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var k=g.measureText(a).width;if(k<=e){m(c);c.push(b());c[0].text=a;c[0].width=k;return}}this.Al(a,c,g,e,d)}else m(c)};n.Al=function(a,l,m,e,d){d&&(this.yl(a),a=r);var k="",f,p,n,A=0;for(n=0;n=l.length&&l.push(b()),k=g(k),p=l[A],p.text=k,p.width=m.measureText(k).width,A++,k=""):(f=k,k+=a[n],p=m.measureText(k).width,
p>=e&&(A>=l.length&&l.push(b()),f=g(f),p=l[A],p.text=f,p.width=m.measureText(f).width,A++,k=a[n],d||" "!==k||(k="")));k.length&&(A>=l.length&&l.push(b()),k=g(k),p=l[A],p.text=k,p.width=m.measureText(k).width,A++);for(n=A;na&&(a+=this.I.width);0>l&&(l+=this.I.height);b.translate(m,p);b.rotate(this.n);b.translate(a,l);b.fillRect(r-a,c-l,this.width,this.height);b.restore()};m.Df=function(b){this.Pb(b)};m.Pb=function(b){b.jb(this.D);
b.pe(this.opacity);var m=this.hf;m.right=this.width/this.I.width;m.bottom=this.height/this.I.height;var p=this.wb;if(this.b.Hc){var r=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.rd(p.Ga+r,p.Ha+c,p.ab+r,p.bb+c,p.Va+r,p.Wa+c,p.Ta+r,p.Ua+c,m)}else b.rd(p.Ga,p.Ha,p.ab,p.bb,p.Va,p.Wa,p.Ta,p.Ua,m)};b.u=new function(){};b.qa=new function(){};b.lb=new function(){}})();function Ac(b){this.b=b}
(function(){function b(a){var d;if(!e[a])for(e[a]=Array(20),d=0;20>d;++d)e[a][d]=0;return e[a]}function m(a){var c;if(!d[a])for(d[a]=Array(20),c=0;20>c;++c)d[a][c]=0;return d[a]}function g(a,d){return d?4<=a?-1:a+16:16<=a?-1:a}function n(d){t[d.gamepad.index]=d.gamepad;a.trigger(Ac.prototype.u.os,l)}function p(d){a.trigger(Ac.prototype.u.qs,l);t[d.gamepad.index]=null}function r(){}var c=Ac.prototype;c.Z=function(a){this.Da=a;this.b=a.b};c.Z.prototype.H=function(){};var a=null,l=null,t=Array(16),e=
Array(16),d=Array(16),k="",f="",v=null,H={windows:{}};H.windows.firefox={};var A=[0,1,2,3,4,5,8,9,10,11],h=[0,1,[7,6],2,3,[14,15],[12,13]];H.windows.firefox.xbox360=function(a,d){return d?a>=h.length?-1:ja(h[a])?h[a]+16:h[a]:a>=A.length?-1:A[a]};var q=[2,0,1,3,4,6,5,7,8,9],u=[0,1,2,3,[14,15],[12,13]];H.windows.firefox.logitechdualaction=function(a,d){return d?a>=u.length?-1:ja(u[a])?u[a]+16:u[a]:a>=q.length?-1:q[a]};c.T=function(d){this.type=d;a=this.b=d.b;l=this};var K=c.T.prototype;K.H=function(){this.rk=
0;var a=navigator.userAgent;k="windows";/mac/i.test(a)&&(k="mac");v=H[k];f="chrome";/firefox/i.test(a)&&(f="firefox");v&&(v=v[f]);window.addEventListener("webkitgamepadconnected",n,!1);window.addEventListener("webkitgamepaddisconnected",p,!1);window.addEventListener("MozGamepadConnected",n,!1);window.addEventListener("MozGamepadDisconnected",p,!1);window.addEventListener("gamepadconnected",n,!1);window.addEventListener("gamepaddisconnected",p,!1);this.b.Yi(this);this.Bl=[]};K.Ja=function(){this.Bl.length=
0;var a=null,c=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.wp&&window.cr_getGamepads?(a=window.cr_getGamepads(),c=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||t;if(a){var f,h,k,l,p,n,q;f=0;for(h=a.length;fp;++p)l[p]=
k[p];c?k=g:v?(k="",l=r.id.toLowerCase(),-1n&&(z[n]=100*q,50<=z[n]&&50>u[n]&&(this.rk=n));k=0;for(l=r.axes.length;kn&&(z[n]=100*q):(z[n[0]]=0,z[n[1]]=0,0>=q?z[n[0]]=Math.abs(100*q):z[n[1]]=Math.abs(100*q));this.Bl.push(r)}else r=
f,e[r]=null,d[r]=null}for(;20>f;++f)a=f,e[a]=null,d[a]=null}};K.$a=function(){return{lastButton:this.rk}};K.rb=function(a){this.rk=a.lastButton};r.prototype.os=function(){return!0};r.prototype.qs=function(){return!0};r.prototype.Wr=function(a,d){a=Math.floor(a);if(0>a||a>=this.Bl.length)return!1;var c=b(a);if(!c)return!1;if(c=50<=c[d])this.rk=d;return c};c.u=new r;c.qa=new function(){};c.lb=new function(){}})();function Dc(b){this.b=b}
(function(){function b(a){a%=d.length;0>a&&(a+=d.length);return a}function m(){var a,c,e,g;a=0;for(c=d.length;af.width,
0>f.height));c.beginPath();c.moveTo(u[0],u[1]);f=2;for(g=u.length;f=Math.PI/2)};var D=0,J=0;n.Ws=function(){for(var a=v,d,c,b;a=a%e,d=2*a,c=t[d],b=t[d+1],u.push(c),u.push(b),a!==H;++a);var f=this.Wg,g=La(this.bf,this.cf,h,q),a=this.bf+Math.cos(g-Math.PI/2)*f,k=this.cf+Math.sin(g-Math.PI/2)*f,g=La(a,k,c,b),l=Ta(a,k,c,b),a=a+Math.cos(g)*(l+this.cc),k=k+Math.sin(g)*(l+this.cc);d=2*v;var m=t[d];d=t[d+1];var g=La(this.bf,this.cf,h,q),p=this.bf+Math.cos(g+
Math.PI/2)*f,n=this.cf+Math.sin(g+Math.PI/2)*f,g=La(p,n,m,d),l=Ta(p,n,m,d),f=p+Math.cos(g)*(l+this.cc),g=n+Math.sin(g)*(l+this.cc);E=c;I=b;K=m;C=d;var r,A,G,l=a-c,p=k-b;r=f-m;A=g-d;G=-r*p+l*A;0===G?c=!1:(n=(-p*(c-m)+l*(b-d))/G,G=-r*p+l*A,0===G?c=!1:(m=(r*(b-d)-A*(c-m))/G,0<=n&&1>=n&&0<=m&&1>=m?(D=c+m*l,J=b+m*p,c=!0):c=!1));c?(u.push(D),u.push(J),S=D,P=J,N=D,L=J):(u.push(a),u.push(k),u.push(f),u.push(g),S=a,P=k,N=f,L=g)};n.Xs=function(a,d,c,b,e){if(e>=this.Op)return this.cc;if(0>=e)return 0;a=Ta(a,
d,c,b);a=Math.atan(a/(this.Op-e));e=e*Math.tan(a);e>=this.cc&&(e=this.cc);0>e&&(e=0);return e};n.Pb=function(c){c.pe(this.opacity);this.fp();var b,e,g,h,k,m,p,n,q,r;b=0;for(e=a.length;bu.length||(c.jb(this.D),c.Ho(u),-1g.width,0>g.height)),6>u.length||(c.jb(this.D),c.Ho(u),-1=this.xe)){var b=this.b.Nh(this.d);this.xe-=b;0>=this.xe?(this.xe=0,this.d.visible=!0,this.b.ua=!0,this.b.trigger(Ec.prototype.u.ns,this.d)):(this.ue-=b,0>=this.ue&&(0===this.Si?(this.d.visible=!1,this.Si=1,this.ue+=this.kn):(this.d.visible=!0,this.Si=0,this.ue+=this.rn),this.b.ua=!0))}};b.prototype.ns=function(){return!0};m.u=new b;m.qa=new function(){};m.lb=new function(){}})();function Fc(b){this.b=b}
(function(){function b(){}function m(){}var g=Fc.prototype;g.Z=function(b){this.behavior=b;this.b=b.b};g.Z.prototype.H=function(){};g.T=function(b,g){this.type=b;this.behavior=b.behavior;this.d=g;this.b=b.b;this.Qi=this.gl=this.fl=this.xm=this.Ah=this.Gh=this.Qg=this.Rg=this.Ji=this.ji=!1;this.Hb=null;this.Vm=-1;this.Ze=this.Ye=0;this.Mh=!1;this.Kf=this.dd=0;this.Xj=!0;this.ra=this.U=0};var n=g.T.prototype;n.Fr=function(){this.Xa=Math.cos(this.Fg);this.Ya=Math.sin(this.Fg);this.kf=Math.cos(this.Fg-
Math.PI/2);this.lf=Math.sin(this.Fg-Math.PI/2);this.Xa=kb(this.Xa);this.Ya=kb(this.Ya);this.kf=kb(this.kf);this.lf=kb(this.lf);this.hm=this.ae;0>this.ae&&(this.Xa*=-1,this.Ya*=-1,this.ae=Math.abs(this.ae))};n.H=function(){this.$g=this.q[0];this.ug=this.q[1];this.zg=this.q[2];this.fi=this.q[3];this.hm=this.ae=this.q[4];this.Fk=this.q[5];this.Oj=0!==this.q[6];this.Nm=this.q[7]/1E3;this.jt=1===this.q[8];this.enabled=0!==this.q[9];this.uh=!1;this.vh=this.b.ve(this.d);this.Wm=-1;this.ng=0;this.Fg=W(90);
this.Fr();var b=this;this.jt&&!this.b.Qa&&(jQuery(document).keydown(function(g){b.nn(g)}),jQuery(document).keyup(function(g){b.pn(g)}));this.vc||(this.mq=function(g){b.mn(g)});this.b.Cl(this.mq);this.d.L.isPlatformBehavior=!0};n.$a=function(){return{ii:this.xm,lfx:this.Ye,lfy:this.Ze,lfo:this.Hb?this.Hb.uid:-1,am:this.dd,en:this.enabled,fall:this.Kf,ft:this.Xj,dx:this.U,dy:this.ra,ms:this.$g,acc:this.ug,dec:this.zg,js:this.fi,g:this.ae,g1:this.hm,mf:this.Fk,wof:this.uh,woj:this.vh?this.vh.uid:-1,
ga:this.Fg,edj:this.Oj,cdj:this.Ah,dj:this.Gh,sus:this.Nm}};n.rb=function(b){this.xm=b.ii;this.Ye=b.lfx;this.Ze=b.lfy;this.Vm=b.lfo;this.dd=b.am;this.enabled=b.en;this.Kf=b.fall;this.Xj=b.ft;this.U=b.dx;this.ra=b.dy;this.$g=b.ms;this.ug=b.acc;this.zg=b.dec;this.fi=b.js;this.ae=b.g;this.hm=b.g1;this.Fk=b.mf;this.uh=b.wof;this.Wm=b.woj;this.Fg=b.ga;this.Oj=b.edj;this.Ah=b.cdj;this.Gh=b.dj;this.Nm=b.sus;this.Qi=this.gl=this.fl=this.Qg=this.Rg=this.Ji=this.ji=!1;this.ng=0;this.Fr()};n.yd=function(){-1===
this.Vm?this.Hb=null:this.Hb=this.b.Gg(this.Vm);-1===this.Wm?this.vh=null:this.vh=this.b.Gg(this.Wm)};n.mn=function(b){this.Hb==b&&(this.Hb=null)};n.ke=function(){this.Hb=null;this.b.aw(this.mq)};n.nn=function(b){switch(b.which){case 38:b.preventDefault();this.Rg=!0;break;case 37:b.preventDefault();this.ji=!0;break;case 39:b.preventDefault(),this.Ji=!0}};n.pn=function(b){switch(b.which){case 38:b.preventDefault();this.Qg=this.Rg=!1;break;case 37:b.preventDefault();this.ji=!1;break;case 39:b.preventDefault(),
this.Ji=!1}};n.fg=function(){this.Rg=this.Ji=this.ji=!1};n.nj=function(){return 0>this.ae?-1:1};n.up=function(){var b=null,g=null,c,a;c=this.d.x;a=this.d.y;this.d.x+=this.Xa;this.d.y+=this.Ya;this.d.C();if(this.Hb&&this.b.Jc(this.d,this.Hb)&&(!this.b.Xn(this.Hb.type,qc)||this.Hb.L.solidEnabled))return this.d.x=c,this.d.y=a,this.d.C(),this.Hb;(b=this.b.kc(this.d))||0!==this.Kf||(g=this.b.ve(this.d,!0));this.d.x=c;this.d.y=a;this.d.C();if(b){if(this.b.Jc(this.d,b))return null;this.Mh=!1;return b}if(g&&
g.length){a=b=0;for(c=g.length;bthis.Fk&&(this.ra=this.Fk)),H&&(this.Qg=!0));this.uh=!!A;n==a&&(0>this.U?(this.U+=this.zg*b,0this.U&&(this.U=0)));n&&!a&&(this.U=0this.U?this.U+(this.ug+this.zg)*b:this.U+this.ug*b);this.U>this.$g?this.U=this.$g:this.U<-this.$g&&(this.U=-this.$g);n=!1;0!==this.U&&(k=this.d.x,f=this.d.y,g=this.U*b*this.kf,c=this.U*b*this.lf,this.d.x+=this.kf*(1this.U?1:-1),this.lf*(0>this.U?1:-1),g,!1)?!A||l||this.Mh||(k=this.d.x,f=this.d.y,this.d.x+=this.Xa,this.d.y+=this.Ya,this.b.kc(this.d)?this.b.qd(this.d,-this.Xa,-this.Ya,3,!1)||(this.d.x=k,this.d.y=f,this.d.C()):(this.d.x=k,this.d.y=
f,this.d.C())):(this.d.x=k,this.d.y=f,this.d.C()),l||(this.U=0)):!m&&!H&&Math.abs(this.ra)this.ra?1:-1),this.Ya*(0>this.ra?1:-1),g,l,c)?(this.Hb=c,this.Ye=c.x,this.Ze=c.y,(this.Mh=l)&&(n=!0),this.ra=0):(this.d.x=k,this.d.y=f,this.d.C(),this.uh=!0,l||(this.ra=0)))}3!==this.dd&&0this.d.opacity?this.d.opacity=0:1=this.behavior.Pi&&cc?(b.x=r+1-(g.right-b.x),b.C()):g.bottoml&&
(b.y=a+1-(g.bottom-b.y),b.C())}})();function pc(){return[tc,vc,uc,Ac,wc,Dc,yc,zc,xc,sc,Fc,Hc,qc,Gc,rc,Ec,Ic,wc.prototype.u.oo,Fc.prototype.qa.Sr,wc.prototype.u.Yr,Fc.prototype.qa.Hs,sc.prototype.qa.Es,sc.prototype.u.Qr,Y.prototype.lb.zv,Y.prototype.qa.As,sc.prototype.u.hs,Y.prototype.qa.Tr,uc.prototype.u.mo,tc.prototype.qa.Play,Y.prototype.qa.Bs,Y.prototype.qa.bs,Fc.prototype.qa.Ds,vc.prototype.qa.Mr,vc.prototype.u.Ur,Ac.prototype.u.Wr,Y.prototype.u.Zr,uc.prototype.qa.Cs]};