Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/furious_road/c2runtime.js
�азад
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var aa,ca,da,fa,ga,ha,ia,ja,la,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,C,Ca,Da,Ea,Fa,Ga,G,Ja,Ka,La,Ma,Na,Oa,Pa,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ic,jc,kc,lc,mc,nc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(m){return m.__proto__}:function(m){return m.constructor.prototype}); (function(){function m(a,e,d,l){this.set(a,e,d,l)}function k(){this.Rb=this.Qb=this.Tb=this.Sb=this.jc=this.ic=this.rb=this.qb=0}function h(a,e,d,l){a<e?d<l?(v=a<d?a:d,y=e>l?e:l):(v=a<l?a:l,y=e>d?e:d):d<l?(v=e<d?e:d,y=a>l?a:l):(v=e<l?e:l,y=a>d?a:d)}function f(){this.items=this.nd=null;this.Gk=0;A&&(this.nd=new Set);this.Ej=[];this.zg=!0}function c(a){E[H++]=a}function b(){this.W=this.wj=this.y=this.Tj=0}function g(a){this.bb=[];this.xm=this.zm=this.Am=this.ym=0;this.wl(a)}function a(a,e){this.Ub= a;this.kc=e;this.cells={}}function d(a,e){this.Ub=a;this.kc=e;this.cells={}}function n(a,e,d){var l;return D.length?(l=D.pop(),l.Tq=a,l.x=e,l.y=d,l):new ca(a,e,d)}function e(a,e,d){this.Tq=a;this.x=e;this.y=d;this.mc=new da}function l(a,e,d){var l;return u.length?(l=u.pop(),l.Tq=a,l.x=e,l.y=d,l):new fa(a,e,d)}function p(a,e,d){this.Tq=a;this.x=e;this.y=d;this.mc=[];this.Ji=!0;this.of=new da;this.Qj=!1}function q(a,e){return a.Te-e.Te}ga=function(a){window.console&&window.console.log&&window.console.log(a)}; ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};oa=function(a){return 0<a&&0===(a-1&a)};pa=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};qa=function(a){return 0>a?-a:a};ra=function(a,e){return a>e?a:e};sa=function(a,e){return a<e?a:e};ta=Math.PI;ua=function(a){return 0<=a?a|0:(a|0)-1};va=function(a){var e= a|0;return e===a?e:e+1};wa=function(a,e,d,l,n,b,c,p){var g,B,r,t;a<d?(B=a,g=d):(B=d,g=a);n<c?(t=n,r=c):(t=c,r=n);if(g<t||B>r)return!1;e<l?(B=e,g=l):(B=l,g=e);b<p?(t=b,r=p):(t=p,r=b);if(g<t||B>r)return!1;g=n-a+c-d;B=b-e+p-l;a=d-a;e=l-e;n=c-n;b=p-b;p=qa(e*n-b*a);return qa(n*B-b*g)>p?!1:qa(a*B-e*g)<=p};m.prototype.set=function(a,e,d,l){this.left=a;this.top=e;this.right=d;this.bottom=l};m.prototype.oi=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};m.prototype.width= function(){return this.right-this.left};m.prototype.height=function(){return this.bottom-this.top};m.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};m.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)};m.prototype.Hv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};m.prototype.Iv= function(a,e,d){return!(a.right+e<this.left||a.bottom+d<this.top||a.left+e>this.right||a.top+d>this.bottom)};m.prototype.Fb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};m.prototype.bk=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};xa=m;k.prototype.Wh=function(a){this.qb=a.left;this.rb=a.top;this.ic=a.right;this.jc=a.top;this.Sb=a.right;this.Tb=a.bottom;this.Qb=a.left;this.Rb=a.bottom};k.prototype.zx=function(a, e){if(0===e)this.Wh(a);else{var d=Math.sin(e),l=Math.cos(e),n=a.left*d,b=a.top*d,c=a.right*d,d=a.bottom*d,p=a.left*l,g=a.top*l,B=a.right*l,l=a.bottom*l;this.qb=p-b;this.rb=g+n;this.ic=B-b;this.jc=g+c;this.Sb=B-d;this.Tb=l+c;this.Qb=p-d;this.Rb=l+n}};k.prototype.offset=function(a,e){this.qb+=a;this.rb+=e;this.ic+=a;this.jc+=e;this.Sb+=a;this.Tb+=e;this.Qb+=a;this.Rb+=e;return this};var v=0,y=0;k.prototype.Fu=function(a){h(this.qb,this.ic,this.Sb,this.Qb);a.left=v;a.right=y;h(this.rb,this.jc,this.Tb, this.Rb);a.top=v;a.bottom=y};k.prototype.Fb=function(a,e){var d=this.qb,l=this.rb,n=this.ic-d,b=this.jc-l,c=this.Sb-d,p=this.Tb-l,g=a-d,B=e-l,r=n*n+b*b,t=n*c+b*p,b=n*g+b*B,q=c*c+p*p,h=c*g+p*B,f=1/(r*q-t*t),n=(q*b-t*h)*f,r=(r*h-t*b)*f;if(0<=n&&0<r&&1>n+r)return!0;n=this.Qb-d;b=this.Rb-l;r=n*n+b*b;t=n*c+b*p;b=n*g+b*B;f=1/(r*q-t*t);n=(q*b-t*h)*f;r=(r*h-t*b)*f;return 0<=n&&0<r&&1>n+r};k.prototype.bd=function(a,e){if(e)switch(a){case 0:return this.qb;case 1:return this.ic;case 2:return this.Sb;case 3:return this.Qb; case 4:return this.qb;default:return this.qb}else switch(a){case 0:return this.rb;case 1:return this.jc;case 2:return this.Tb;case 3:return this.Rb;case 4:return this.rb;default:return this.rb}};k.prototype.xw=function(){return(this.qb+this.ic+this.Sb+this.Qb)/4};k.prototype.yw=function(){return(this.rb+this.jc+this.Tb+this.Rb)/4};k.prototype.wk=function(a,e,d,l){if(this.Fb(a,e)||this.Fb(d,l))return!0;var n,b,c,p,g;for(g=0;4>g;g++)if(n=this.bd(g,!0),b=this.bd(g,!1),c=this.bd(g+1,!0),p=this.bd(g+1, !1),wa(a,e,d,l,n,b,c,p))return!0;return!1};k.prototype.Gv=function(a){var e=a.xw(),d=a.yw();if(this.Fb(e,d))return!0;e=this.xw();d=this.yw();if(a.Fb(e,d))return!0;var l,n,b,c,p,g,B,r;for(B=0;4>B;B++)for(r=0;4>r;r++)if(e=this.bd(B,!0),d=this.bd(B,!1),l=this.bd(B+1,!0),n=this.bd(B+1,!1),b=a.bd(r,!0),c=a.bd(r,!1),p=a.bd(r+1,!0),g=a.bd(r+1,!1),wa(e,d,l,n,b,c,p,g))return!0;return!1};ya=k;za=function(a,e){for(var d in e)e.hasOwnProperty(d)&&(a[d]=e[d]);return a};Aa=function(a,e){var d,l;e=ua(e);if(!(0> e||e>=a.length)){d=e;for(l=a.length-1;d<l;d++)a[d]=a[d+1];Ba(a,l)}};Ba=function(a,e){a.length=e};C=function(a){Ba(a,0)};Ca=function(a,e){C(a);var d,l;d=0;for(l=e.length;d<l;++d)a[d]=e[d]};Da=function(a,e){a.push.apply(a,e)};Ea=function(a,e){var d,l;d=0;for(l=a.length;d<l;++d)if(a[d]===e)return d;return-1};Fa=function(a,e){var d=Ea(a,e);-1!==d&&Aa(a,d)};Ga=function(a,e,d){return a<e?e:a>d?d:a};G=function(a){return a/(180/ta)};Ja=function(a){return 180/ta*a};Ka=function(a){a%=360;0>a&&(a+=360);return a}; La=function(a){a%=2*ta;0>a&&(a+=2*ta);return a};Ma=function(a){return Ka(Ja(a))};Na=function(a){return La(G(a))};Oa=function(a,e,d,l){return Math.atan2(l-e,d-a)};Pa=function(a,e){if(a===e)return 0;var d=Math.sin(a),l=Math.cos(a),n=Math.sin(e),b=Math.cos(e),d=d*n+l*b;return 1<=d?0:-1>=d?ta:Math.acos(d)};Sa=function(a,e,d){var l=Math.sin(a),n=Math.cos(a),b=Math.sin(e),c=Math.cos(e);return Math.acos(l*b+n*c)>d?0<n*b-l*c?La(a+d):La(a-d):La(e)};Ta=function(a,e){var d=Math.sin(a),l=Math.cos(a),n=Math.sin(e), b=Math.cos(e);return 0>=l*n-d*b};Ua=function(a,e,d,l,n,b){if(0===d)return b?a:e;var c=Math.sin(d);d=Math.cos(d);a-=l;e-=n;var p=a*c;a=a*d-e*c;e=e*d+p;return b?a+l:e+n};Va=function(a,e,d,l){a=d-a;e=l-e;return Math.sqrt(a*a+e*e)};Wa=function(a,e){return!a!==!e};Xa=function(a,e,d){return a+(e-a)*d};Ya=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};Za=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var z=+new Date;$a=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()-z};var t=!1,r=t=!1,P=!1;"undefined"!==typeof window&&(t=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),t=!t&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),P=window.c2ejecta);var A=!t&&!P&&!r&&"undefined"!== typeof Set&&"undefined"!==typeof Set.prototype.forEach;f.prototype.contains=function(a){return this.Rf()?!1:A?this.nd.has(a):this.items&&this.items.hasOwnProperty(a)};f.prototype.add=function(a){if(A)this.nd.has(a)||(this.nd.add(a),this.zg=!1);else{var e=a.toString(),d=this.items;d?d.hasOwnProperty(e)||(d[e]=a,this.Gk++,this.zg=!1):(this.items={},this.items[e]=a,this.Gk=1,this.zg=!1)}};f.prototype.remove=function(a){if(!this.Rf())if(A)this.nd.has(a)&&(this.nd["delete"](a),this.zg=!1);else if(this.items){a= a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.Gk--,this.zg=!1)}};f.prototype.clear=function(){this.Rf()||(A?this.nd.clear():(this.items=null,this.Gk=0),C(this.Ej),this.zg=!0)};f.prototype.Rf=function(){return 0===this.count()};f.prototype.count=function(){return A?this.nd.size:this.Gk};var E=null,H=0;f.prototype.cG=function(){if(!this.zg){if(A)C(this.Ej),E=this.Ej,H=0,this.nd.forEach(c),E=null,H=0;else{var a=this.Ej;C(a);var e,d=0,l=this.items;if(l)for(e in l)l.hasOwnProperty(e)&& (a[d++]=l[e])}this.zg=!0}};f.prototype.ke=function(){this.cG();return this.Ej};da=f;new da;ab=function(a,e){A?bb(a,e.nd):cb(a,e.ke())};bb=function(a,e){var d,l,n,b;l=d=0;for(n=a.length;d<n;++d)b=a[d],e.has(b)||(a[l++]=b);Ba(a,l)};cb=function(a,e){var d,l,n,b;l=d=0;for(n=a.length;d<n;++d)b=a[d],-1===Ea(e,b)&&(a[l++]=b);Ba(a,l)};b.prototype.add=function(a){this.y=a-this.Tj;this.wj=this.W+this.y;this.Tj=this.wj-this.W-this.y;this.W=this.wj};b.prototype.reset=function(){this.W=this.wj=this.y=this.Tj= 0};db=b;eb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.wl=function(a){this.ax=a;this.kd=a.length/2;this.bb.length=a.length;this.Em=this.Fm=-1;this.Iu=0};g.prototype.Ch=function(){return!this.ax.length};g.prototype.za=function(){for(var a=this.bb,e=a[0],d=e,l=a[1],n=l,b,c,p=1,g=this.kd;p<g;++p)c=2*p,b=a[c],c=a[c+1],b<e&&(e=b),b>d&&(d=b),c<l&&(l=c),c>n&&(n=c);this.ym=e;this.zm=d;this.Am=l;this.xm=n};g.prototype.Wh=function(a,e,d){this.bb.length=8;this.kd=4;var l=this.bb; l[0]=a.left-e;l[1]=a.top-d;l[2]=a.right-e;l[3]=a.top-d;l[4]=a.right-e;l[5]=a.bottom-d;l[6]=a.left-e;l[7]=a.bottom-d;this.Fm=a.right-a.left;this.Em=a.bottom-a.top;this.za()};g.prototype.sj=function(a,e,d,l,n){this.bb.length=8;this.kd=4;var b=this.bb;b[0]=a.qb-e;b[1]=a.rb-d;b[2]=a.ic-e;b[3]=a.jc-d;b[4]=a.Sb-e;b[5]=a.Tb-d;b[6]=a.Qb-e;b[7]=a.Rb-d;this.Fm=l;this.Em=n;this.za()};g.prototype.yx=function(a){this.kd=a.kd;Ca(this.bb,a.bb);this.ym=a.ym;this.Am-a.Am;this.zm=a.zm;this.xm=a.xm};g.prototype.yg= function(a,e,d){if(this.Fm!==a||this.Em!==e||this.Iu!==d){this.Fm=a;this.Em=e;this.Iu=d;var l,n,b,c,p,g=0,B=1,r=this.ax,t=this.bb;0!==d&&(g=Math.sin(d),B=Math.cos(d));d=0;for(b=this.kd;d<b;d++)l=2*d,n=l+1,c=r[l]*a,p=r[n]*e,t[l]=c*B-p*g,t[n]=p*B+c*g;this.za()}};g.prototype.Fb=function(a,e){var d=this.bb;if(a===d[0]&&e===d[1])return!0;var l,n,b,c=this.kd,p=this.ym-110,g=this.Am-101,B=this.zm+131,r=this.xm+120,t,q,h=0,f=0;for(l=0;l<c;l++)n=2*l,b=(l+1)%c*2,t=d[n],n=d[n+1],q=d[b],b=d[b+1],wa(p,g,a,e,t, n,q,b)&&h++,wa(B,r,a,e,t,n,q,b)&&f++;return 1===h%2||1===f%2};g.prototype.vk=function(a,e,d){var l=a.bb,n=this.bb;if(this.Fb(l[0]+e,l[1]+d)||a.Fb(n[0]-e,n[1]-d))return!0;var b,c,p,g,B,r,t,q,h,f,k,m;b=0;for(g=this.kd;b<g;b++)for(c=2*b,p=(b+1)%g*2,q=n[c],c=n[c+1],h=n[p],f=n[p+1],p=0,t=a.kd;p<t;p++)if(B=2*p,r=(p+1)%t*2,k=l[B]+e,B=l[B+1]+d,m=l[r]+e,r=l[r+1]+d,wa(q,c,h,f,k,B,m,r))return!0;return!1};g.prototype.wk=function(a,e,d,l,n,b){var c=this.bb;if(this.Fb(d-a,l-e))return!0;var p,g,B,r,t,q;p=0;for(g= this.kd;p<g;p++)if(B=2*p,r=(p+1)%g*2,t=c[B]+a,B=c[B+1]+e,q=c[r]+a,r=c[r+1]+e,wa(d,l,n,b,t,B,q,r))return!0;return!1};g.prototype.PE=function(a){var e,d,l;e=0;for(d=this.kd;e<d;++e)l=2*e,this.bb[l]=2*a-this.bb[l]};g.prototype.xD=function(a){var e,d,l;e=0;for(d=this.kd;e<d;++e)l=2*e+1,this.bb[l]=2*a-this.bb[l]};g.prototype.nC=function(){var a,e,d,l,n;a=0;for(e=this.kd;a<e;++a)d=2*a,l=d+1,n=this.bb[d],this.bb[d]=this.bb[l],this.bb[l]=n};fb=g;a.prototype.Gg=function(a,e,d){var l;l=this.cells[a];return l? (l=l[e])?l:d?(l=n(this,a,e),this.cells[a][e]=l):null:d?(l=n(this,a,e),this.cells[a]={},this.cells[a][e]=l):null};a.prototype.Zc=function(a){return ua(a/this.Ub)};a.prototype.$c=function(a){return ua(a/this.kc)};a.prototype.update=function(a,e,d){var l,n,b,c,p;if(e)for(l=e.left,n=e.right;l<=n;++l)for(b=e.top,c=e.bottom;b<=c;++b)if(!d||!d.Fb(l,b))if(p=this.Gg(l,b,!1))p.remove(a),p.Rf()&&(p.mc.clear(),1E3>D.length&&D.push(p),this.cells[l][b]=null);if(d)for(l=d.left,n=d.right;l<=n;++l)for(b=d.top,c=d.bottom;b<= c;++b)e&&e.Fb(l,b)||this.Gg(l,b,!0).$q(a)};a.prototype.wo=function(a,e){var d,l,n,b,c,p;d=this.Zc(a.left);n=this.$c(a.top);l=this.Zc(a.right);for(c=this.$c(a.bottom);d<=l;++d)for(b=n;b<=c;++b)(p=this.Gg(d,b,!1))&&p.dump(e)};gb=a;d.prototype.Gg=function(a,e,d){var n;n=this.cells[a];return n?(n=n[e])?n:d?(n=l(this,a,e),this.cells[a][e]=n):null:d?(n=l(this,a,e),this.cells[a]={},this.cells[a][e]=n):null};d.prototype.Zc=function(a){return ua(a/this.Ub)};d.prototype.$c=function(a){return ua(a/this.kc)}; d.prototype.update=function(a,e,d){var l,n,b,c,p;if(e)for(l=e.left,n=e.right;l<=n;++l)for(b=e.top,c=e.bottom;b<=c;++b)if(!d||!d.Fb(l,b))if(p=this.Gg(l,b,!1))p.remove(a),p.Rf()&&(p.reset(),1E3>u.length&&u.push(p),this.cells[l][b]=null);if(d)for(l=d.left,n=d.right;l<=n;++l)for(b=d.top,c=d.bottom;b<=c;++b)e&&e.Fb(l,b)||this.Gg(l,b,!0).$q(a)};d.prototype.wo=function(a,e,d,l,n){var b,c;a=this.Zc(a);e=this.$c(e);d=this.Zc(d);for(b=this.$c(l);a<=d;++a)for(l=e;l<=b;++l)(c=this.Gg(a,l,!1))&&c.dump(n)};d.prototype.LE= function(a){var e,d,l,n,b;e=a.left;l=a.top;d=a.right;for(n=a.bottom;e<=d;++e)for(a=l;a<=n;++a)if(b=this.Gg(e,a,!1))b.Ji=!1};hb=d;var D=[];e.prototype.Rf=function(){return this.mc.Rf()};e.prototype.$q=function(a){this.mc.add(a)};e.prototype.remove=function(a){this.mc.remove(a)};e.prototype.dump=function(a){Da(a,this.mc.ke())};ca=e;var u=[];p.prototype.Rf=function(){if(!this.mc.length)return!0;if(this.mc.length>this.of.count())return!1;this.Bq();return!0};p.prototype.$q=function(a){this.of.contains(a)? (this.of.remove(a),this.of.Rf()&&(this.Qj=!1)):this.mc.length?(this.mc[this.mc.length-1].gf()>a.gf()&&(this.Ji=!1),this.mc.push(a)):(this.mc.push(a),this.Ji=!0)};p.prototype.remove=function(a){this.of.add(a);this.Qj=!0;30<=this.of.count()&&this.Bq()};p.prototype.Bq=function(){this.Qj&&(this.of.count()===this.mc.length?this.reset():(ab(this.mc,this.of),this.of.clear(),this.Qj=!1))};p.prototype.PC=function(){this.Ji||(this.mc.sort(q),this.Ji=!0)};p.prototype.reset=function(){C(this.mc);this.Ji=!0;this.of.clear(); this.Qj=!1};p.prototype.dump=function(a){this.Bq();this.PC();this.mc.length&&a.push(this.mc)};fa=p;var x="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");ib=function(a){return 0>=a||11<=a?"source-over":x[a-1]};kb=function(a,e,d){if(d)switch(a.Qc=d.ONE,a.Kc=d.ONE_MINUS_SRC_ALPHA,e){case 1:a.Qc=d.ONE;a.Kc=d.ONE;break;case 3:a.Qc=d.ONE;a.Kc=d.ZERO;break;case 4:a.Qc=d.ONE_MINUS_DST_ALPHA;a.Kc=d.ONE;break;case 5:a.Qc=d.DST_ALPHA; a.Kc=d.ZERO;break;case 6:a.Qc=d.ZERO;a.Kc=d.SRC_ALPHA;break;case 7:a.Qc=d.ONE_MINUS_DST_ALPHA;a.Kc=d.ZERO;break;case 8:a.Qc=d.ZERO;a.Kc=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Qc=d.DST_ALPHA;a.Kc=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Qc=d.ONE_MINUS_DST_ALPHA,a.Kc=d.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};nb=function(a){a=a.target;return!a||a===document|| a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var oc="undefined"!==typeof Float32Array?Float32Array:Array;function pc(m){var k=new oc(3);m&&(k[0]=m[0],k[1]=m[1],k[2]=m[2]);return k}function qc(m){var k=new oc(16);m&&(k[0]=m[0],k[1]=m[1],k[2]=m[2],k[3]=m[3],k[4]=m[4],k[5]=m[5],k[6]=m[6],k[7]=m[7],k[8]=m[8],k[9]=m[9],k[10]=m[10],k[11]=m[11],k[12]=m[12],k[13]=m[13],k[14]=m[14],k[15]=m[15]);return k} function rc(m,k){k[0]=m[0];k[1]=m[1];k[2]=m[2];k[3]=m[3];k[4]=m[4];k[5]=m[5];k[6]=m[6];k[7]=m[7];k[8]=m[8];k[9]=m[9];k[10]=m[10];k[11]=m[11];k[12]=m[12];k[13]=m[13];k[14]=m[14];k[15]=m[15]}function sc(m,k){var h=k[0],f=k[1];k=k[2];m[0]*=h;m[1]*=h;m[2]*=h;m[3]*=h;m[4]*=f;m[5]*=f;m[6]*=f;m[7]*=f;m[8]*=k;m[9]*=k;m[10]*=k;m[11]*=k} function tc(m,k,h,f){f||(f=qc());var c,b,g,a,d,n,e,l,p=m[0],q=m[1];m=m[2];b=h[0];g=h[1];c=h[2];h=k[1];n=k[2];p===k[0]&&q===h&&m===n?(m=f,m[0]=1,m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[5]=1,m[6]=0,m[7]=0,m[8]=0,m[9]=0,m[10]=1,m[11]=0,m[12]=0,m[13]=0,m[14]=0,m[15]=1):(h=p-k[0],n=q-k[1],e=m-k[2],l=1/Math.sqrt(h*h+n*n+e*e),h*=l,n*=l,e*=l,k=g*e-c*n,c=c*h-b*e,b=b*n-g*h,(l=Math.sqrt(k*k+c*c+b*b))?(l=1/l,k*=l,c*=l,b*=l):b=c=k=0,g=n*b-e*c,a=e*k-h*b,d=h*c-n*k,(l=Math.sqrt(g*g+a*a+d*d))?(l=1/l,g*=l,a*=l,d*=l):d=a=g=0, f[0]=k,f[1]=g,f[2]=h,f[3]=0,f[4]=c,f[5]=a,f[6]=n,f[7]=0,f[8]=b,f[9]=d,f[10]=e,f[11]=0,f[12]=-(k*p+c*q+b*m),f[13]=-(g*p+a*q+d*m),f[14]=-(h*p+n*q+e*m),f[15]=1)} (function(){function m(a,d,n){this.Sf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.cb=!!n;this.Cn=this.yk=!1;this.Qm=0;this.Ap=1;this.kt=1E3;this.qG=(this.kt-this.Ap)/32768;this.cq=pc([0,0,100]);this.ew=pc([0,0,0]);this.Zx=pc([0,1,0]);this.Wl=pc([1,1,1]);this.Wu=!0;this.Un=qc();this.Nd=qc();this.pr=qc();this.mq=qc();this.U=a;this.version=0===this.U.getParameter(this.U.VERSION).indexOf("WebGL 2")?2:1;this.Cv()}function k(a,d,n){this.U=a;this.xl= d;this.name=n;this.be=a.getAttribLocation(d,"aPos");this.Pg=a.getAttribLocation(d,"aTex");this.bw=a.getUniformLocation(d,"matP");this.Qn=a.getUniformLocation(d,"matMV");this.Wi=a.getUniformLocation(d,"opacity");this.Fr=a.getUniformLocation(d,"colorFill");this.dw=a.getUniformLocation(d,"samplerFront");this.Pk=a.getUniformLocation(d,"samplerBack");this.Jh=a.getUniformLocation(d,"destStart");this.Ih=a.getUniformLocation(d,"destEnd");this.Rk=a.getUniformLocation(d,"seconds");this.Hr=a.getUniformLocation(d, "pixelWidth");this.Gr=a.getUniformLocation(d,"pixelHeight");this.Ok=a.getUniformLocation(d,"layerScale");this.Nk=a.getUniformLocation(d,"layerAngle");this.Sk=a.getUniformLocation(d,"viewOrigin");this.Qk=a.getUniformLocation(d,"scrollPos");this.gE=!!(this.Hr||this.Gr||this.Rk||this.Pk||this.Jh||this.Ih||this.Ok||this.Nk||this.Sk||this.Qk);this.mw=this.ow=-999;this.Tn=1;this.iw=this.hw=0;this.kw=this.gw=this.fw=1;this.rw=this.qw=this.pw=this.uw=this.sw=this.jw=0;this.or=[];this.lw=qc();this.Wi&&a.uniform1f(this.Wi, 1);this.Fr&&a.uniform4f(this.Fr,1,1,1,1);this.dw&&a.uniform1i(this.dw,0);this.Pk&&a.uniform1i(this.Pk,1);this.Jh&&a.uniform2f(this.Jh,0,0);this.Ih&&a.uniform2f(this.Ih,1,1);this.Ok&&a.uniform1f(this.Ok,1);this.Nk&&a.uniform1f(this.Nk,0);this.Sk&&a.uniform2f(this.Sk,0,0);this.Qk&&a.uniform2f(this.Qk,0,0);this.Rk&&a.uniform1f(this.Rk,0);this.wh=!1}function h(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]&&a[9]===d[9]&& a[10]===d[10]&&a[11]===d[11]&&a[12]===d[12]&&a[13]===d[13]&&a[14]===d[14]&&a[15]===d[15]}function f(a,d){this.type=a;this.G=d;this.U=d.U;this.fd=this.Cc=this.Ow=0;this.Aa=this.je=null;this.Ax=[]}var c=qc();m.prototype.Cv=function(){var a=this.U,d;this.Vv=1;this.Dh=this.Mg=null;this.Pm=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.cb?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): a.disable(a.DEPTH_TEST);this.Wv=a.ONE;this.Uv=a.ONE_MINUS_SRC_ALPHA;this.Ql=new Float32Array(8E3*(this.cb?3:2));this.Fl=new Float32Array(16E3);this.es=new Float32Array(32E3);this.ds=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.ds);a.bufferData(a.ARRAY_BUFFER,this.es.byteLength,a.DYNAMIC_DRAW);this.Pl=Array(4);this.El=Array(4);for(d=0;4>d;d++)this.Pl[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Pl[d]),a.bufferData(a.ARRAY_BUFFER,this.Ql.byteLength,a.DYNAMIC_DRAW),this.El[d]=a.createBuffer(), a.bindBuffer(a.ARRAY_BUFFER,this.El[d]),a.bufferData(a.ARRAY_BUFFER,this.Fl.byteLength,a.DYNAMIC_DRAW);this.Df=0;this.kE=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.kE);for(var n=new Uint16Array(12E3),e=d=0;12E3>d;)n[d++]=e,n[d++]=e+1,n[d++]=e+2,n[d++]=e,n[d++]=e+2,n[d++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,n,a.STATIC_DRAW);this.kj=this.Xg=this.me=0;this.xb=[];d=this.cb?"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}";n=this.Yj({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}"},d,"<default>");this.xb.push(n);n=this.Yj({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, "attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.xb.push(n);n=this.Yj({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.xb.push(n);n=this.Yj({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, d,"<fill>");this.xb.push(n);for(var l in uc)uc.hasOwnProperty(l)&&this.xb.push(this.Yj(uc[l],d,l));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ve=[];this.Wd=0;this.rc=this.Zb=!1;this.Pu=this.Hk=-1;this.pi=null;this.yq=a.createFramebuffer();this.Um=this.Ao=null;this.Cu=!1;this.cb&&(this.Um=a.createRenderbuffer());this.ah=pc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.OE=a[0];this.Kr=a[1];2048<this.Kr&&(this.Kr=2048);this.od(0)};k.prototype.ct=function(a){h(this.lw, a)||(rc(a,this.lw),this.U.uniformMatrix4fv(this.Qn,!1,a))};m.prototype.Yj=function(a,d,n){var e=this.U,l=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(l,a.src);e.compileShader(l);if(!e.getShaderParameter(l,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(l),e.deleteShader(l),Error("error compiling fragment shader: "+a);var b=e.createShader(e.VERTEX_SHADER);e.shaderSource(b,d);e.compileShader(b);if(!e.getShaderParameter(b,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(b),e.deleteShader(l),e.deleteShader(b), Error("error compiling vertex shader: "+a);d=e.createProgram();e.attachShader(d,l);e.attachShader(d,b);e.linkProgram(d);if(!e.getProgramParameter(d,e.LINK_STATUS))throw a=e.getProgramInfoLog(d),e.deleteShader(l),e.deleteShader(b),e.deleteProgram(d),Error("error linking shader program: "+a);e.useProgram(d);e.deleteShader(l);e.deleteShader(b);l=new k(e,d,n);l.wq=a.wq||0;l.xq=a.xq||0;l.Ou=!!a.Ou;l.Je=!!a.Je;l.zu=!!a.zu;l.ra=a.ra||[];a=0;for(b=l.ra.length;a<b;a++)l.ra[a][1]=e.getUniformLocation(d,l.ra[a][0]), l.or.push(0),e.uniform1f(l.ra[a][1],0);return l};m.prototype.Qq=function(a){var d,b;d=0;for(b=this.xb.length;d<b;d++)if(this.xb[d].name===a)return d;return-1};m.prototype.$w=function(a,d,b){var e=this.Nd,l=this.Un,c=[0,0,0,0,0,0,0,0];c[0]=e[0]*a+e[4]*d+e[12];c[1]=e[1]*a+e[5]*d+e[13];c[2]=e[2]*a+e[6]*d+e[14];c[3]=e[3]*a+e[7]*d+e[15];c[4]=l[0]*c[0]+l[4]*c[1]+l[8]*c[2]+l[12]*c[3];c[5]=l[1]*c[0]+l[5]*c[1]+l[9]*c[2]+l[13]*c[3];c[6]=l[2]*c[0]+l[6]*c[1]+l[10]*c[2]+l[14]*c[3];c[7]=-c[2];0!==c[7]&&(c[7]=1/ c[7],c[4]*=c[7],c[5]*=c[7],c[6]*=c[7],b[0]=(.5*c[4]+.5)*this.width,b[1]=(.5*c[5]+.5)*this.height)};m.prototype.dg=function(a,d,b){if(this.width!==a||this.height!==d||b){this.$e();b=this.U;this.width=a;this.height=d;b.viewport(0,0,a,d);tc(this.cq,this.ew,this.Zx,this.Nd);if(this.cb){var e=-a/2;a=a/2;var l=d/2;d=-d/2;var c=this.Ap,g=this.kt,h=this.Un;h||(h=qc());var f=a-e,k=d-l,t=g-c;h[0]=2/f;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/k;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/t;h[11]=0;h[12]=-(e+a)/f;h[13]=-(d+ l)/k;h[14]=-(g+c)/t;h[15]=1;this.Wl[0]=1;this.Wl[1]=1}else d=a/d,e=this.Ap,a=this.kt,h=this.Un,g=e*Math.tan(45*Math.PI/360),d*=g,l=-d,c=-g,h||(h=qc()),f=d-l,k=g-c,t=a-e,h[0]=2*e/f,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*e/k,h[6]=0,h[7]=0,h[8]=(d+l)/f,h[9]=(g+c)/k,h[10]=-(a+e)/t,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(a*e*2)/t,h[15]=0,e=[0,0],a=[0,0],this.$w(0,0,e),this.$w(1,1,a),this.Wl[0]=1/(a[0]-e[0]),this.Wl[1]=-1/(a[1]-e[1]);e=0;for(a=this.xb.length;e<a;e++)l=this.xb[e],l.wh=!1,l.bw&&(b.useProgram(l.xl), b.uniformMatrix4fv(l.bw,!1,this.Un));b.useProgram(this.xb[this.Hk].xl);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Dh=this.Mg=null;this.Um&&(b.bindFramebuffer(b.FRAMEBUFFER,this.yq),b.bindRenderbuffer(b.RENDERBUFFER,this.Um),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Cu||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Um),this.Cu=!0),b.bindRenderbuffer(b.RENDERBUFFER, null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.Ao=null)}};m.prototype.qf=function(){tc(this.cq,this.ew,this.Zx,this.Nd);sc(this.Nd,this.Wl)};m.prototype.translate=function(a,d){if(0!==a||0!==d){this.ah[0]=a;this.ah[1]=d;this.ah[2]=0;var b=this.Nd,e=this.ah,l=e[0],c=e[1],e=e[2];b[12]=b[0]*l+b[4]*c+b[8]*e+b[12];b[13]=b[1]*l+b[5]*c+b[9]*e+b[13];b[14]=b[2]*l+b[6]*c+b[10]*e+b[14];b[15]=b[3]*l+b[7]*c+b[11]*e+b[15]}};m.prototype.scale=function(a,d){if(1!==a||1!==d)this.ah[0]=a,this.ah[1]=d,this.ah[2]= 1,sc(this.Nd,this.ah)};m.prototype.zs=function(a){if(0!==a){var d=this.Nd,b,e=Math.sin(a);a=Math.cos(a);var l=d[0],c=d[1],g=d[2],h=d[3],f=d[4],k=d[5],t=d[6],r=d[7];b?d!==b&&(b[8]=d[8],b[9]=d[9],b[10]=d[10],b[11]=d[11],b[12]=d[12],b[13]=d[13],b[14]=d[14],b[15]=d[15]):b=d;b[0]=l*a+f*e;b[1]=c*a+k*e;b[2]=g*a+t*e;b[3]=h*a+r*e;b[4]=l*-e+f*a;b[5]=c*-e+k*a;b[6]=g*-e+t*a;b[7]=h*-e+r*a}};m.prototype.Se=function(){if(!h(this.pr,this.Nd)){var a=this.Vc();a.type=5;a.Aa?rc(this.Nd,a.Aa):a.Aa=qc(this.Nd);rc(this.Nd, this.pr);this.rc=this.Zb=!1}};m.prototype.Jo=function(a){this.cb&&(32760<a&&(a=32760),this.Qm=this.cq[2]-this.Ap-a*this.qG)};f.prototype.yC=function(){var a=this.U,d=this.G;0!==this.Cc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,d.yq),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),d.Cn=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),d.Cn= !1)};f.prototype.CC=function(){this.U.bindTexture(this.U.TEXTURE_2D,this.je)};f.prototype.DC=function(){var a=this.U;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.je);a.activeTexture(a.TEXTURE0)};f.prototype.zC=function(){var a=this.Ow,d=this.G;d.Pm=a;d=d.pi;d.Wi&&d.Tn!==a&&(d.Tn=a,this.U.uniform1f(d.Wi,a))};f.prototype.tC=function(){this.U.drawElements(this.U.TRIANGLES,this.fd,this.U.UNSIGNED_SHORT,this.Cc)};f.prototype.vC=function(){this.U.blendFunc(this.Cc,this.fd)};f.prototype.EC= function(){var a,d,b,e=this.G.xb,l=this.G.Pu;a=0;for(d=e.length;a<d;a++)b=e[a],a===l&&b.Qn?(b.ct(this.Aa),b.wh=!0):b.wh=!1;rc(this.Aa,this.G.mq)};f.prototype.uC=function(){var a=this.U,d=this.G;this.je?(d.Dh===this.je&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),d.Dh=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,d.yq),d.Cn||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.je,0)):(d.cb||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0, a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};f.prototype.pC=function(){var a=this.U,d=this.Cc;0===d?(a.clearColor(this.Aa[0],this.Aa[1],this.Aa[2],this.Aa[3]),a.clear(a.COLOR_BUFFER_BIT)):1===d?(a.enable(a.SCISSOR_TEST),a.scissor(this.Aa[0],this.Aa[1],this.Aa[2],this.Aa[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};f.prototype.xC=function(){var a=this.U;0!==this.Cc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};f.prototype.sC= function(){var a=this.U,d=this.G;d.cb&&a.disable(a.DEPTH_TEST);var b=d.xb[1];a.useProgram(b.xl);!b.wh&&b.Qn&&(b.ct(d.mq),b.wh=!0);a.enableVertexAttribArray(b.be);a.bindBuffer(a.ARRAY_BUFFER,d.ds);a.vertexAttribPointer(b.be,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Cc/4,this.fd);b=d.pi;a.useProgram(b.xl);0<=b.be&&(a.enableVertexAttribArray(b.be),a.bindBuffer(a.ARRAY_BUFFER,d.Pl[d.Df]),a.vertexAttribPointer(b.be,d.cb?3:2,a.FLOAT,!1,0,0));0<=b.Pg&&(a.enableVertexAttribArray(b.Pg),a.bindBuffer(a.ARRAY_BUFFER, d.El[d.Df]),a.vertexAttribPointer(b.Pg,2,a.FLOAT,!1,0,0));d.cb&&a.enable(a.DEPTH_TEST)};f.prototype.AC=function(){var a=this.U,d=this.G,b=d.xb[this.Cc];d.Pu=this.Cc;d.pi=b;a.useProgram(b.xl);!b.wh&&b.Qn&&(b.ct(d.mq),b.wh=!0);b.Wi&&b.Tn!==d.Pm&&(b.Tn=d.Pm,a.uniform1f(b.Wi,d.Pm));0<=b.be&&(a.enableVertexAttribArray(b.be),a.bindBuffer(a.ARRAY_BUFFER,d.Pl[d.Df]),a.vertexAttribPointer(b.be,d.cb?3:2,a.FLOAT,!1,0,0));0<=b.Pg&&(a.enableVertexAttribArray(b.Pg),a.bindBuffer(a.ARRAY_BUFFER,d.El[d.Df]),a.vertexAttribPointer(b.Pg, 2,a.FLOAT,!1,0,0))};f.prototype.wC=function(){var a=this.Aa;this.U.uniform4f(this.G.pi.Fr,a[0],a[1],a[2],a[3])};f.prototype.BC=function(){var a,d,b=this.G.pi,e=this.U;a=this.Aa;b.Pk&&this.G.Dh!==this.je&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.je),this.G.Dh=this.je,e.activeTexture(e.TEXTURE0));var l=a[0];b.Hr&&l!==b.ow&&(b.ow=l,e.uniform1f(b.Hr,l));l=a[1];b.Gr&&l!==b.mw&&(b.mw=l,e.uniform1f(b.Gr,l));l=a[2];d=a[3];!b.Jh||l===b.hw&&d===b.iw||(b.hw=l,b.iw=d,e.uniform2f(b.Jh,l,d)); l=a[4];d=a[5];!b.Ih||l===b.fw&&d===b.gw||(b.fw=l,b.gw=d,e.uniform2f(b.Ih,l,d));l=a[6];b.Ok&&l!==b.kw&&(b.kw=l,e.uniform1f(b.Ok,l));l=a[7];b.Nk&&l!==b.jw&&(b.jw=l,e.uniform1f(b.Nk,l));l=a[8];d=a[9];!b.Sk||l===b.sw&&d===b.uw||(b.sw=l,b.uw=d,e.uniform2f(b.Sk,l,d));l=a[10];d=a[11];!b.Qk||l===b.pw&&d===b.qw||(b.pw=l,b.qw=d,e.uniform2f(b.Qk,l,d));l=a[12];b.Rk&&l!==b.rw&&(b.rw=l,e.uniform1f(b.Rk,l));if(b.ra.length)for(a=0,d=b.ra.length;a<d;a++)l=this.Ax[a],l!==b.or[a]&&(b.or[a]=l,e.uniform1f(b.ra[a][1], l))};m.prototype.Vc=function(){this.Wd===this.ve.length&&this.ve.push(new f(0,this));return this.ve[this.Wd++]};m.prototype.$e=function(){if(0!==this.Wd&&!this.U.isContextLost()){var a=this.U;0<this.kj&&(a.bindBuffer(a.ARRAY_BUFFER,this.ds),a.bufferSubData(a.ARRAY_BUFFER,0,this.es.subarray(0,this.kj)),d&&0<=d.be&&"<point>"===d.name&&a.vertexAttribPointer(d.be,4,a.FLOAT,!1,0,0));if(0<this.me){var d=this.pi;a.bindBuffer(a.ARRAY_BUFFER,this.Pl[this.Df]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ql.subarray(0, this.me));d&&0<=d.be&&"<point>"!==d.name&&a.vertexAttribPointer(d.be,this.cb?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.El[this.Df]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Fl.subarray(0,this.Xg));d&&0<=d.Pg&&"<point>"!==d.name&&a.vertexAttribPointer(d.Pg,2,a.FLOAT,!1,0,0)}for(var b,a=0,d=this.Wd;a<d;a++)switch(b=this.ve[a],b.type){case 1:b.tC();break;case 2:b.CC();break;case 3:b.zC();break;case 4:b.vC();break;case 5:b.EC();break;case 6:b.uC();break;case 7:b.pC();break;case 8:b.sC();break; case 9:b.AC();break;case 10:b.BC();break;case 11:b.DC();break;case 12:b.wC();break;case 13:b.xC();break;case 14:b.yC()}this.kj=this.Xg=this.me=this.Wd=0;this.Cn=this.rc=this.Zb=!1;this.Df++;4<=this.Df&&(this.Df=0)}};m.prototype.sf=function(a){if(a!==this.Vv&&!this.yk){var d=this.Vc();d.type=3;this.Vv=d.Ow=a;this.rc=this.Zb=!1}};m.prototype.Bc=function(a){if(a!==this.Mg){var d=this.Vc();d.type=2;this.Mg=d.je=a;this.rc=this.Zb=!1}};m.prototype.Vg=function(a,d){if((a!==this.Wv||d!==this.Uv)&&!this.yk){var b= this.Vc();b.type=4;b.Cc=a;b.fd=d;this.Wv=a;this.Uv=d;this.rc=this.Zb=!1}};m.prototype.mx=function(){this.Vg(this.U.ONE,this.U.ONE_MINUS_SRC_ALPHA)};m.prototype.mj=function(a,d,b,e,l,c,g,h){15992<=this.me&&this.$e();var f=this.me,k=this.Xg,t=this.Ql,r=this.Fl,m=this.Qm;if(this.Zb)this.ve[this.Wd-1].fd+=6;else{var A=this.Vc();A.type=1;A.Cc=this.cb?f:f/2*3;A.fd=6;this.Zb=!0;this.rc=!1}this.cb?(t[f++]=a,t[f++]=d,t[f++]=m,t[f++]=b,t[f++]=e,t[f++]=m,t[f++]=l,t[f++]=c,t[f++]=m,t[f++]=g,t[f++]=h,t[f++]=m): (t[f++]=a,t[f++]=d,t[f++]=b,t[f++]=e,t[f++]=l,t[f++]=c,t[f++]=g,t[f++]=h);r[k++]=0;r[k++]=0;r[k++]=1;r[k++]=0;r[k++]=1;r[k++]=1;r[k++]=0;r[k++]=1;this.me=f;this.Xg=k};m.prototype.Qd=function(a,d,b,e,l,c,g,h,f){15992<=this.me&&this.$e();var k=this.me,t=this.Xg,r=this.Ql,m=this.Fl,A=this.Qm;if(this.Zb)this.ve[this.Wd-1].fd+=6;else{var E=this.Vc();E.type=1;E.Cc=this.cb?k:k/2*3;E.fd=6;this.Zb=!0;this.rc=!1}var E=f.left,H=f.top,D=f.right;f=f.bottom;this.cb?(r[k++]=a,r[k++]=d,r[k++]=A,r[k++]=b,r[k++]=e, r[k++]=A,r[k++]=l,r[k++]=c,r[k++]=A,r[k++]=g,r[k++]=h,r[k++]=A):(r[k++]=a,r[k++]=d,r[k++]=b,r[k++]=e,r[k++]=l,r[k++]=c,r[k++]=g,r[k++]=h);m[t++]=E;m[t++]=H;m[t++]=D;m[t++]=H;m[t++]=D;m[t++]=f;m[t++]=E;m[t++]=f;this.me=k;this.Xg=t};m.prototype.tF=function(a,d,b,e,l,c,g,h,f,k,t,r,m,A,E,H){15992<=this.me&&this.$e();var D=this.me,u=this.Xg,x=this.Ql,S=this.Fl,T=this.Qm;if(this.Zb)this.ve[this.Wd-1].fd+=6;else{var N=this.Vc();N.type=1;N.Cc=this.cb?D:D/2*3;N.fd=6;this.Zb=!0;this.rc=!1}this.cb?(x[D++]=a, x[D++]=d,x[D++]=T,x[D++]=b,x[D++]=e,x[D++]=T,x[D++]=l,x[D++]=c,x[D++]=T,x[D++]=g,x[D++]=h,x[D++]=T):(x[D++]=a,x[D++]=d,x[D++]=b,x[D++]=e,x[D++]=l,x[D++]=c,x[D++]=g,x[D++]=h);S[u++]=f;S[u++]=k;S[u++]=t;S[u++]=r;S[u++]=m;S[u++]=A;S[u++]=E;S[u++]=H;this.me=D;this.Xg=u};m.prototype.gF=function(a,d,b,e){7996<=this.kj&&this.$e();var l=this.kj,c=this.es;if(this.rc)this.ve[this.Wd-1].fd++;else{var g=this.Vc();g.type=8;g.Cc=l;g.fd=1;this.rc=!0;this.Zb=!1}c[l++]=a;c[l++]=d;c[l++]=b;c[l++]=e;this.kj=l};m.prototype.od= function(a){if(this.Hk!==a){if(!this.xb[a]){if(0===this.Hk)return;a=0}var d=this.Vc();d.type=9;this.Hk=d.Cc=a;this.rc=this.Zb=!1}};m.prototype.ll=function(a){a=this.xb[a];return!(!a.Jh&&!a.Ih)};m.prototype.js=function(a){a=this.xb[a];return!!(a.Jh||a.Ih||a.Ou)};m.prototype.hs=function(a){return this.xb[a].Je};m.prototype.pF=function(a){a=this.xb[a];return 0!==a.wq||0!==a.xq};m.prototype.OD=function(a){return this.xb[a].wq};m.prototype.PD=function(a){return this.xb[a].xq};m.prototype.QD=function(a, d){return this.xb[a].ra[d][2]};m.prototype.uo=function(a){return this.xb[a].zu};m.prototype.qj=function(a,d,b,e,l,c,g,h,f,k,t,r,m,A,E){var H=this.xb[this.Hk],D,u;if(H.gE||E.length){D=this.Vc();D.type=10;D.Aa?rc(this.Nd,D.Aa):D.Aa=qc();u=D.Aa;u[0]=d;u[1]=b;u[2]=e;u[3]=l;u[4]=c;u[5]=g;u[6]=h;u[7]=f;u[8]=k;u[9]=t;u[10]=r;u[11]=m;u[12]=A;H.Pk?D.je=a:D.je=null;if(E.length)for(b=D.Ax,b.length=E.length,a=0,d=E.length;a<d;a++)b[a]=E[a];this.rc=this.Zb=!1}};m.prototype.clear=function(a,d,b,e){var l=this.Vc(); l.type=7;l.Cc=0;l.Aa||(l.Aa=qc());l.Aa[0]=a;l.Aa[1]=d;l.Aa[2]=b;l.Aa[3]=e;this.rc=this.Zb=!1};m.prototype.clearRect=function(a,d,b,e){if(!(0>b||0>e)){var l=this.Vc();l.type=7;l.Cc=1;l.Aa||(l.Aa=qc());l.Aa[0]=a;l.Aa[1]=d;l.Aa[2]=b;l.Aa[3]=e;this.rc=this.Zb=!1}};m.prototype.tx=function(a){if(this.cb&&(a=!!a,this.yk!==a)){var d=this.Vc();d.type=14;d.Cc=a?1:0;this.rc=this.Zb=!1;this.yk=a;this.Ao=null;this.yk?this.od(2):this.od(0)}};m.prototype.qx=function(a){if(this.cb){var d=this.Vc();d.type=13;d.Cc= a?1:0;this.rc=this.Zb=!1}};m.prototype.iv=function(){rc(this.pr,c);this.qf();this.Se();var a=this.width/2,d=this.height/2;this.mj(-a,d,a,d,a,-d,-a,-d);rc(c,this.Nd);this.Se()};m.prototype.nx=function(a,d,b){this.od(3);var e=this.Vc();e.type=12;e.Aa||(e.Aa=qc());e.Aa[0]=a;e.Aa[1]=d;e.Aa[2]=b;e.Aa[3]=1;this.rc=this.Zb=!1};m.prototype.RF=function(){this.od(0)};m.prototype.zF=function(){this.od(2)};m.prototype.oF=function(){this.$e();this.U.flush()};var b=[],g={};m.prototype.eC=function(){C(b);g={}}; m.prototype.hd=function(a,d,c,e,l){d=!!d;c=!!c;var p=a.src+","+d+","+c+(d?","+l:""),h=null;if("undefined"!==typeof a.src&&g.hasOwnProperty(p))return h=g[p],h.Dm++,h;this.$e();var f=this.U,k=oa(a.width)&&oa(a.height),h=f.createTexture();f.bindTexture(f.TEXTURE_2D,h);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=f.RGBA,t=f.RGBA,r=f.UNSIGNED_BYTE;if(e&&!this.Sf)switch(e){case 1:t=m=f.RGB;break;case 2:r=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:r=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:t=m=f.RGB, r=f.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!k&&d){e=document.createElement("canvas");e.width=pa(a.width);e.height=pa(a.height);var P=e.getContext("2d");"undefined"!==typeof P.imageSmoothingEnabled?P.imageSmoothingEnabled=c:(P.webkitImageSmoothingEnabled=c,P.mozImageSmoothingEnabled=c,P.msImageSmoothingEnabled=c);P.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);f.texImage2D(f.TEXTURE_2D,0,m,t,r,e)}else f.texImage2D(f.TEXTURE_2D,0,m,t,r,a);d?"repeat-x"===l?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S, f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE)):("repeat-y"===l?f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(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));c?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),(k||2<=this.version)&&this.Wu?(f.texParameteri(f.TEXTURE_2D, f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.Mg=null;h.ye=a.width;h.xe=a.height;h.Dm=1;h.Hu=p;b.push(h);return g[p]=h};m.prototype.Cd=function(a,d,c,e,l){this.$e();var p=this.U;this.Sf&&(e=!1);var g=p.createTexture();p.bindTexture(p.TEXTURE_2D,g); p.texImage2D(p.TEXTURE_2D,0,p.RGBA,a,d,0,p.RGBA,e?p.UNSIGNED_SHORT_4_4_4_4:p.UNSIGNED_BYTE,null);l?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.REPEAT),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.REPEAT)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.CLAMP_TO_EDGE),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.CLAMP_TO_EDGE));p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,c?p.LINEAR:p.NEAREST);p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,c?p.LINEAR:p.NEAREST);p.bindTexture(p.TEXTURE_2D, null);this.Mg=null;g.ye=a;g.xe=d;b.push(g);return g};m.prototype.hG=function(a,d){var b;this.$e();var e=this.U;this.Sf&&(b=!1);e.bindTexture(e.TEXTURE_2D,d);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,b?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(l){console&&console.error&&console.error("Error updating WebGL texture: ",l)}e.bindTexture(e.TEXTURE_2D,null);this.Mg=null};m.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Dm&&1< a.Dm?a.Dm--:(this.$e(),a===this.Mg&&(this.U.bindTexture(this.U.TEXTURE_2D,null),this.Mg=null),a===this.Dh&&(this.U.activeTexture(this.U.TEXTURE1),this.U.bindTexture(this.U.TEXTURE_2D,null),this.U.activeTexture(this.U.TEXTURE0),this.Dh=null),Fa(b,a),"undefined"!==typeof a.Hu&&delete g[a.Hu],this.U.deleteTexture(a)))};m.prototype.ge=function(a){if(a!==this.Ao){var d=this.Vc();d.type=6;this.Ao=d.je=a;this.rc=this.Zb=!1}};ob=m})(); (function(){function m(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.Tc=(this.Dn=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Oc=!!a.dc;this.Kv="undefined"!==typeof window.AppMobi|| this.Oc;this.Jd=!!window.c2cocoonjs;this.ae=!!window.c2ejecta;this.Jd&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.ae&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.ib=this.Oc||this.Jd||this.ae;this.Ak= /edge\//i.test(navigator.userAgent);this.Sf=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Ak;this.Ov=/tizen/i.test(navigator.userAgent);this.An=/android/i.test(navigator.userAgent)&&!this.Ov&&!this.Sf&&!this.Ak;this.Rv=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Sf&&!this.Ak;this.yE=/ipad/i.test(navigator.userAgent);this.Li=this.Rv||this.yE||this.ae;this.cr=(/chrome/i.test(navigator.userAgent)|| /chromium/i.test(navigator.userAgent))&&!this.Sf&&!this.Ak;this.Jv=/amazonwebappplatform/i.test(navigator.userAgent);this.pE=/firefox/i.test(navigator.userAgent);this.sE=/safari/i.test(navigator.userAgent)&&!this.cr&&!this.Sf&&!this.Ak;this.tE=/windows/i.test(navigator.userAgent);this.hr=this.Bk="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Pv=!("undefined"===typeof window.c2isWindows8|| !window.c2isWindows8);this.vE=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Dk=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.mr=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.lr=!!window.cr_windows10;this.kr=this.Pv||this.vE||this.mr||this.lr;this.nE=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Bn=this.An&&!this.cr&&!this.Dn&&!this.pE&&!this.Jv&&!this.ib; this.devicePixelRatio=1;this.zh=this.Tc||this.Dn||this.Kv||this.Jd||this.An||this.Li||this.Dk||this.mr||this.nE||this.Ov||this.ae;this.zh||(this.zh=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.En=!!(this.Li&&this.Tc&&window.webkit);"undefined"===typeof cr_is_preview||this.Bk||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Bk=!0);this.Lv="undefined"!== typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.dq=document.getElementById("c2canvasdiv");this.G=this.U=null;this.Sq="(unavailable)";this.cb=!1;this.oh=0;this.fb=null;this.dn=!1;this.Hw=this.Iw=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Oc&&(window.c2runtime= this);this.Bk&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Bn&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.ga=this.width;this.fa=this.height;this.Nm=this.width;this.$j=this.height;this.Si=window.innerWidth;this.Ri=window.innerHeight;this.ta=!0;this.Ck=!1;Date.now|| (Date.now=function(){return+new Date});this.plugins=[];this.types={};this.N=[];this.sb=[];this.Cr={};this.Ee=[];this.vq={};this.Lf=[];this.Hj=[];this.kp=[];this.QB=[];this.RB=[];this.Ls=null;this.mh={};this.er=this.Ig=!1;this.Kd=0;this.dr=this.jr=!1;this.ze=[];this.zk=!1;this.Nn=this.Ds="";this.cc=null;this.Uf="";this.Cl=this.Dx=!1;this.cn=[];this.nh=this.Jf=0;this.zw=30;this.lq=this.Tk=0;this.$g=1;this.zb=new db;this.kg=new db;this.Xn=this.kn=this.sh=this.hg=this.Fh=this.Dq=this.In=0;this.hh=null; this.Wm=[];this.uq=[];this.Zm=-1;this.Ir=[[]];this.Ys=this.Rn=0;this.vo(null);this.Uk=[];this.Vk=-1;this.Cw=this.al=0;this.Br=!0;this.fk=0;this.Dl=[];this.Us=this.os=-1;this.Mi=!0;this.Hh=0;this.hf=!1;this.TF=0;this.mi=null;this.Ld=this.xv=!1;this.Gw=new da;this.Sr=new da;this.Tr=new da;this.Th=[];this.Oe=new fb([]);this.Ps=new fb([]);this.ug=[];this.Di={};this.Cg={};this.sg={};this.Fj={};this.Du={};this.$v=this.Mn=this.Lb=this.ac=this.Zv=this.Ln=this.Da=null;this.Dj=this.nr=!1;this.Fq=[null,null]; this.Of=0;this.zq="";this.Xf={};this.zl=this.Ng=null;this.Fx="";this.Wn=[];this.yF()}}function k(a,e){return 128>=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function h(){try{return!!window.indexedDB}catch(a){return!1}}function f(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function c(a,e,d,b){try{var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=f;l.onerror=b;l.onsuccess=function(l){l=l.target.result;l.onerror=b;l.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a, data:e}).onsuccess=d}}catch(c){b(c)}}function b(a,e,d){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=f;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var l=b.transaction(["saves"]).objectStore("saves").get(a);l.onsuccess=function(){l.result?e(l.result.data):e(null)}}}catch(l){d(l)}}function g(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+ "?continuous"}function a(a){var e,d={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof da||a[e]&&"undefined"!==typeof a[e].oH||"spriteCreatedDestroyCallback"!==e&&(d[e]=a[e]);return d}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;m.prototype.yF=function(){var a=this;if(this.En)this.tD(function(e){a.Mk(JSON.parse(e))},function(){alert("Error fetching data.js")});else{var e;this.Dk? e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var d="data.js";if(this.Pv||this.Dk||this.mr||this.lr)d="data.json";e.open("GET",d,!0);var b=!1;if(!this.ib&&"response"in e&&"responseType"in e)try{e.responseType="json",b="json"===e.responseType}catch(l){b=!1}if(!b&&"responseType"in e)try{e.responseType="text"}catch(c){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.Dk?e.onreadystatechange=function(){4===e.readyState&&a.Mk(JSON.parse(e.responseText))}: (e.onload=function(){if(b)a.Mk(e.response);else if(a.ae){var d=e.responseText,d=d.substr(d.indexOf("{"));a.Mk(JSON.parse(d))}else a.Mk(JSON.parse(e.responseText))},e.onerror=function(a){ha("Error requesting "+d+":");ha(a)});e.send()}};m.prototype.lE=function(){var a=this,e,d,b,l,c,g,p,n,f;this.Bh=(!this.ib||this.ae||this.Tc)&&this.eG&&!this.Bn;0===this.ed&&this.Li&&(this.Bh=!1);this.devicePixelRatio=this.Bh?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio|| 1:1;this.Ec();0<this.ed&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.TE();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.G.Cv();a.G.dg(a.G.width,a.G.height,!0);a.ac=null;a.Lb=null;a.Fq[0]=null;a.Fq[1]=null;a.UE();a.ta=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.NC&&(this.Jd||this.ae|| !this.ib)&&(e={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.U=this.canvas.getContext("webgl2",e)||this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",e))}catch(r){}if(this.U){if(e=this.U.getExtension("WEBGL_debug_renderer_info"))this.Sq=this.U.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.U.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.cb&&(this.Sq+=" [front-to-back enabled]");this.ib||(this.wc=document.createElement("canvas"), jQuery(this.wc).appendTo(this.canvas.parentNode),this.wc.oncontextmenu=function(){return!1},this.wc.onselectstart=function(){return!1},this.wc.width=Math.round(this.Nm*this.devicePixelRatio),this.wc.height=Math.round(this.$j*this.devicePixelRatio),jQuery(this.wc).css({width:this.Nm+"px",height:this.$j+"px"}),this.Zw(),this.as=this.wc.getContext("2d"));this.G=new ob(this.U,this.zh,this.cb);this.G.dg(this.canvas.width,this.canvas.height);this.G.Wu=0!==this.FC;this.fb=null;e=0;for(d=this.N.length;e< d;e++)for(c=this.N[e],b=0,l=c.na.length;b<l;b++)p=c.na[b],p.Pb=this.G.Qq(p.id),p.Je=this.G.hs(p.Pb),this.Dj=this.Dj||this.G.ll(p.Pb);e=0;for(d=this.Ee.length;e<d;e++){n=this.Ee[e];b=0;for(l=n.na.length;b<l;b++)p=n.na[b],p.Pb=this.G.Qq(p.id),p.Je=this.G.hs(p.Pb);n.Re();b=0;for(l=n.wa.length;b<l;b++){f=n.wa[b];c=0;for(g=f.na.length;c<g;c++)p=f.na[c],p.Pb=this.G.Qq(p.id),p.Je=this.G.hs(p.Pb),this.Dj=this.Dj||this.G.ll(p.Pb);f.Re()}}}else{if(0<this.ed&&this.Oc){this.canvas=null;document.oncontextmenu= function(){return!1};document.onselectstart=function(){return!1};this.fb=AppMobi.canvas.getContext("2d");try{this.fb.samplingMode=this.Va?"smooth":"sharp",this.fb.globalScale=1,this.fb.HTML5CompatibilityMode=!0,this.fb.imageSmoothingEnabled=this.Va}catch(t){}0!==this.width&&0!==this.height&&(this.fb.width=this.width,this.fb.height=this.height)}this.fb||(this.Jd?(e={antialias:!!this.Va,alpha:!0},this.fb=this.canvas.getContext("2d",e)):(e={alpha:!0},this.fb=this.canvas.getContext("2d",e)),this.Io(this.fb, this.Va));this.as=this.wc=null}this.Mx=function(e){a.Qa(!1,e)};window==window.top||this.ib||this.kr||this.Dk||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Jd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Nn="__c2_continuouspreview",this.Cl=!0),this.eF&& !this.zh&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Rh()});this.ib||(e=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled? document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.ed&&this.Bh&&1<this.devicePixelRatio&&this.setSize(this.kb,this.jb,!0);this.Vx();this.dE();this.go();this.Z={}};m.prototype.setSize=function(a,e,d){var b=0,l=0,c=0,p=0,p=0;if(this.Si!==a||this.Ri!==e||d){this.Si=a;this.Ri=e;var g=this.ed;if((c=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.hf)&&!this.Tc)|| 0!==this.ed||d)c&&0<this.Of&&(g=this.Of),d=this.devicePixelRatio,4<=g?(c=this.kb/this.jb,a/e>c?(c*=e,5===g?(p=c*d/this.kb,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),c=this.kb*p/d,p=this.jb*p/d,b=(a-c)/2,l=(e-p)/2,a=c,e=p):(b=(a-c)/2,a=c)):(p=a/c,5===g?(p=p*d/this.jb,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),c=this.kb*p/d,p=this.jb*p/d,b=(a-c)/2,l=(e-p)/2,a=c):l=(e-p)/2,e=p)):this.Bk&&this.hf&&0===this.jv&&(b=Math.floor((a-this.kb)/2),l=Math.floor((e-this.jb)/2),a=this.kb,e=this.jb),2>g&&(this.Sj= d),this.Nm=Math.round(a),this.$j=Math.round(e),this.width=Math.round(a*d),this.height=Math.round(e*d),this.ta=!0,this.hy?(this.ga=this.width,this.fa=this.height,this.Fd=!0):this.width<this.kb&&this.height<this.jb||1===g?(this.ga=this.width,this.fa=this.height,this.Fd=!0):(this.ga=this.kb,this.fa=this.jb,this.Fd=!1,2===g?(c=this.kb/this.jb,g=this.Si/this.Ri,g<c?this.ga=this.fa*g:g>c&&(this.fa=this.ga/g)):3===g&&(c=this.kb/this.jb,g=this.Si/this.Ri,g>c?this.ga=this.fa*g:g<c&&(this.fa=this.ga/g))),this.dq&& !this.ib&&(jQuery(this.dq).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(l)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(e*d),this.ae?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(l)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height= Math.round(e)+"px"):this.Bh&&!this.ib&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.wc&&(this.wc.width=Math.round(a*d),this.wc.height=Math.round(e*d),this.wc.style.width=this.Nm+"px",this.wc.style.height=this.$j+"px"),this.G&&this.G.dg(Math.round(a*d),Math.round(e*d)),this.Oc&&this.fb&&(this.fb.width=Math.round(a),this.fb.height=Math.round(e)),this.fb&&this.Io(this.fb,this.Va),this.Vx(),this.Rv&&!this.Tc&&window.scrollTo(0,0)}};m.prototype.Vx=function(){if(this.WB&& 0!==this.$r){var a="portrait";2===this.$r&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};m.prototype.TE=function(){this.G.eC();this.nr= !0;var a,e,d;a=0;for(e=this.N.length;a<e;a++)d=this.N[a],d.Ph&&d.Ph()};m.prototype.UE=function(){this.nr=!1;var a,e,d;a=0;for(e=this.N.length;a<e;a++)d=this.N[a],d.Qh&&d.Qh()};m.prototype.Zw=function(){if(!this.ib){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.hf)&&!this.Tc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.wc).css(a)}};var n=window.cancelAnimationFrame||window.mozCancelAnimationFrame|| window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;m.prototype.setSuspended=function(a){var e;if(a&&!this.Ck)for(ga("[Construct 2] Suspending"),this.Ck=!0,-1!==this.os&&n&&n(this.os),-1!==this.Us&&clearTimeout(this.Us),a=0,e=this.Dl.length;a<e;a++)this.Dl[a](!0);else if(!a&&this.Ck){ga("[Construct 2] Resuming");this.Ck=!1;this.In=$a();this.Fh=$a();a=this.Tk=this.kn=0;for(e=this.Dl.length;a<e;a++)this.Dl[a](!1);this.Qa(!1)}};m.prototype.uu=function(a){this.Dl.push(a)}; m.prototype.mg=function(a){return this.Wn[a]};m.prototype.Mk=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.cv=a[1];this.ed=a[12];this.jv=a[12];this.kb=a[10];this.jb=a[11];this.Vw=this.kb/2;this.Ww=this.jb/2;this.ib&&!this.ae&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.jv=this.ed=3);this.ht=a[18];this.Og=a[19];if(0===this.Og){var e=new Image;e.crossOrigin= "anonymous";this.ux(e,"loading-logo.png");this.Ng={Sn:e}}else if(4===this.Og){e=new Image;e.src="";var d=new Image;d.src="";var b=new Image;b.src="";var l=new Image;l.src="";var c=new Image;c.src="";var p=new Image;p.src="";var g=new Image;g.src="";var n=new Image;n.src="";var f=new Image;f.src="";var r=new Image;r.src="";var t=new Image;t.src="";var h=new Image;h.src="";this.Ng={Sn:[e,d,b,l],lF:[c,p,g,n],mG:[f,r,t,h]}}this.al=a[21];this.Wn=vc();this.uf=new L(this);e=0;for(d=a[2].length;e<d;e++)g= a[2][e],b=this.mg(g[0]),pb(g,b.prototype),n=new b(this),n.Uo=g[1],n.Lg=g[2],n.xE=g[5],n.Aw=g[9],n.J&&n.J(),this.plugins.push(n);this.Wn=vc();e=0;for(d=a[3].length;e<d;e++){g=a[3][e];c=this.mg(g[1]);n=null;b=0;for(l=this.plugins.length;b<l;b++)if(this.plugins[b]instanceof c){n=this.plugins[b];break}f=new n.T(n);f.name=g[0];f.P=g[2];f.br=g[3].slice(0);f.gG=g[3].length;f.XB=g[4];f.zD=g[5];f.Ea=g[11];f.P?(f.Rg=[],f.Mf=this.fk++,f.ob=null):(f.Rg=null,f.Mf=-1,f.ob=[]);f.an=null;f.wi=null;f.Xu=null;f.tc= !1;f.sd=null;g[6]?(f.bi=g[6][0],f.zj=g[6][1],f.vf=g[6][2]):(f.bi=null,f.zj=0,f.vf=0);g[7]?f.rd=g[7]:f.rd=null;f.index=e;f.k=[];f.Sm=[];f.gg=[new qb(f)];f.Ye=0;f.Zd=null;f.kC=0;f.uj=!0;f.mp=rb;f.Mq=sb;f.MD=tb;f.aa=ub;f.ml=vb;f.$f=wb;f.fe=xb;f.mn=yb;f.Hq=Bb;f.Lq=Cb;f.Rc=Db;f.Nq=Eb;f.Vj=new gb(this.kb,this.jb);f.um=!0;f.vm=!1;f.Z={};f.toString=Fb;f.sb=[];b=0;for(l=g[8].length;b<l;b++){r=g[8][b];t=this.mg(r[1]);h=null;c=0;for(p=this.sb.length;c<p;c++)if(this.sb[c]instanceof t){h=this.sb[c];break}h||(h= new t(this),h.Qr=[],h.Zk=new da,h.J&&h.J(),this.sb.push(h),wc&&h instanceof wc&&(this.Ls=h));-1===h.Qr.indexOf(f)&&h.Qr.push(f);c=new h.T(h,f);c.name=r[0];c.Ea=r[2];c.J();f.sb.push(c)}f.global=g[9];f.ir=g[10];f.na=[];b=0;for(l=g[12].length;b<l;b++)f.na.push({id:g[12][b][0],name:g[12][b][1],Pb:-1,Je:!1,L:!0,index:b});f.gp=g[13];this.ht&&!f.P&&!f.ir&&n.Lg||f.J();f.name&&(this.types[f.name]=f);this.N.push(f);n.Uo&&(b=new n.M(f),b.uid=this.al++,b.bx=this.Cw++,b.yh=0,b.nk=Gb,b.toString=Hb,b.u=g[14],b.J(), f.k.push(b),this.Xf[b.uid.toString()]=b)}e=0;for(d=a[4].length;e<d;e++)for(c=a[4][e],p=this.N[c[0]],b=1,l=c.length;b<l;b++)g=this.N[c[b]],g.ob.push(p),p.Rg.push(g);e=0;for(d=a[28].length;e<d;e++){c=a[28][e];p=[];b=0;for(l=c.length;b<l;b++)p.push(this.N[c[b]]);b=0;for(l=p.length;b<l;b++)p[b].tc=!0,p[b].sd=p}if(0<this.fk)for(e=0,d=this.N.length;e<d;e++)if(g=this.N[e],!g.P&&g.ob.length){g.an=Array(this.fk);g.wi=Array(this.fk);g.Xu=Array(this.fk);f=[];b=h=t=r=0;for(l=g.ob.length;b<l;b++)for(n=g.ob[b], g.an[n.Mf]=r,r+=n.gG,g.wi[n.Mf]=t,t+=n.XB,g.Xu[n.Mf]=h,h+=n.zD,c=0,p=n.na.length;c<p;c++)f.push(za({},n.na[c]));g.na=f.concat(g.na);b=0;for(l=g.na.length;b<l;b++)g.na[b].index=b}e=0;for(d=a[5].length;e<d;e++)g=a[5][e],b=new Ib(this,g),this.Cr[b.name]=b,this.Ee.push(b);e=0;for(d=a[6].length;e<d;e++)g=a[6][e],b=new Jb(this,g),this.vq[b.name]=b,this.Lf.push(b);e=0;for(d=this.Lf.length;e<d;e++)this.Lf[e].Bb();e=0;for(d=this.Lf.length;e<d;e++)this.Lf[e].bt();e=0;for(d=this.kp.length;e<d;e++)this.kp[e].Bb(); C(this.kp);this.VB=a[7];this.zq=a[8];this.Pc=a[9];this.Sj=1;this.NC=a[13];this.Va=a[14];this.Lu=a[15];this.eG=a[17];this.$r=a[20];this.WB=0<this.$r;this.eF=a[22];this.Fd=this.hy=a[23];this.FC=a[24];this.mF=a[25];this.cb=a[27]&&!this.Sf;this.Yo=Date.now();C(this.Wn);this.lE()};var e=!1,l=0,p=[];m.prototype.uF=function(a,e){function d(){l--;b.vw()}var b=this;a.addEventListener("load",d);a.addEventListener("error",d);p.push([a,e]);this.vw()};m.prototype.vw=function(){for(var a;p.length&&100>l;)l++,a= p.shift(),this.ux(a[0],a[1])};m.prototype.Gj=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){e=a.Gu=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.ae?a.src=d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(e){a.src=e},function(b){e=a.Gu=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.uF(a,d)));this.Hj.push(a)};m.prototype.wD=function(a){var e,d;e=0; for(d=this.Hj.length;e<d;e++)if(this.Hj[e].fC===a)return this.Hj[e];return null};var q=0,v=!1;m.prototype.dE=function(){this.mi&&(q=this.mi.OF(this.VB))};m.prototype.Bu=function(){var a=q,e=0,d=0,b=!0,l,c,d=0;for(l=this.Hj.length;d<l;d++){c=this.Hj[d];var g=c.Xj;if(!g||0>=g)g=5E4;a+=g;c.src&&(c.complete||c.loaded)&&!c.Gu?e+=g:b=!1}b&&this.mF&&this.mi&&(v||(this.mi.UF(),v=!0),d=this.mi.ND(),e+=d,d<q&&(b=!1));this.Ca=0==a?1:e/a;return b};var y=!1;m.prototype.go=function(){if(this.fb||this.G){var a= this.fb||this.as;this.wc&&this.Zw();var b=window.innerWidth,l=window.innerHeight;this.Si===b&&this.Ri===l||this.setSize(b,l);this.Ca=0;this.Yv=-1;var c=this;if(this.Bu()&&(4!==this.Og||y))this.eE();else{l=Date.now()-this.Yo;if(a){var g=this.width,p=this.height,b=this.devicePixelRatio;if(3>this.Og&&(this.Jd||500<=l&&this.Yv!=this.Ca)){a.clearRect(0,0,g,p);var l=g/2,p=p/2,g=0===this.Og&&this.Ng.Sn.complete,f=40*b,n=0,r=80*b,h;if(g){var t=this.Ng.Sn,r=t.width*b;h=t.height*b;f=r/2;n=h/2;a.drawImage(t, ua(l-f),ua(p-n),r,h)}1>=this.Og?(l=ua(l-f)+.5,p=ua(p+(n+(g?12*b:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(l,p,Math.floor(r*this.Ca),6*b),a.strokeStyle="black",a.strokeRect(l,p,r,6*b),a.strokeStyle="white",a.strokeRect(l-1*b,p-1*b,r+2*b,8*b)):2===this.Og&&(a.font=this.ae?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.HH="middle",b=Math.round(100*this.Ca)+"%",g=a.measureText?a.measureText(b):null,a.fillText(b,l-(g?g.width:0)/2,p));this.Yv=this.Ca}else if(4===this.Og){this.KC(a); d?d(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.Jd?10:100)}}};var z=-1,t="undefined"===typeof cr_is_preview?200:0,r=!0,P=!1,A=0,E=0,H="undefined"===typeof cr_is_preview?3E3:0,D=null,u=null,x=0;m.prototype.KC=function(a){if(!y){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),l=this.Ng.Sn,c=this.Ng.lF,g=this.Ng.mG,p=0;4>p;++p)if(!l[p].complete||!c[p].complete||!g[p].complete)return;0===x&&(z=Date.now());var p=Date.now(),f=!1,n=a,h,q;r||P? (a.clearRect(0,0,d,b),D&&D.width===d&&D.height===b||(D=document.createElement("canvas"),D.width=d,D.height=b,u=D.getContext("2d")),n=u,f=!0,r&&1===x&&(z=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,d,b);256<this.$j?(h=Ga(.22*b,105,.6*d),q=.25*h,n.drawImage(k(c,h),.5*d-h/2,.2*b-q/2,h,q),q=h=Math.min(.395*b,.95*d),n.drawImage(k(l,h),.5*d-h/2,.485*b-q/2,h,q),h=Ga(.22*b,105,.6*d),q=.25*h,n.drawImage(k(g,h),.5*d-h/2,.868*b-q/2,h,q),n.fillStyle="#3C3C3C",h=d,q=Math.max(.005*b,2),n.fillRect(0, .8*b-q/2,h,q),n.fillStyle=e?"red":"#E0FF65",h=d*this.Ca,n.fillRect(.5*d-h/2,.8*b-q/2,h,q)):(q=h=.55*b,n.drawImage(k(l,h),.5*d-h/2,.45*b-q/2,h,q),n.fillStyle="#3C3C3C",h=d,q=Math.max(.005*b,2),n.fillRect(0,.85*b-q/2,h,q),n.fillStyle=e?"red":"#E0FF65",h=d*this.Ca,n.fillRect(.5*d-h/2,.85*b-q/2,h,q));f&&(r?a.globalAlpha=0===x?0:Math.min((p-z)/300,1):P&&(a.globalAlpha=Math.max(1-(p-E)/300,0)),a.drawImage(D,0,0,d,b));r&&300<=p-z&&2<=x&&(r=!1,A=p);!r&&p-A>=H&&!P&&1<=this.Ca&&(P=!0,E=p);if(P&&p-E>=300+t|| "undefined"!==typeof cr_is_preview&&1<=this.Ca&&500>Date.now()-z)y=!0,P=r=!1,this.Ng=u=D=null;++x}};m.prototype.eE=function(){this.wc&&(this.canvas.parentNode.removeChild(this.wc),this.wc=this.as=null);this.Yo=Date.now();this.Fh=$a();var a,e,d;if(this.ht)for(a=0,e=this.N.length;a<e;a++)d=this.N[a],d.P||d.ir||!d.Ba.Lg||d.J();else this.Mi=!1;a=0;for(e=this.Ee.length;a<e;a++)this.Ee[a].gC();2<=this.ed&&(a=this.kb/this.jb,e=this.width/this.height,this.Sj=2!==this.ed&&e>a||2===this.ed&&e<a?this.height/ this.jb:this.width/this.kb);this.cv?this.Cr[this.cv].Ns():this.Ee[0].Ns();this.ht||(this.Hh=1,this.trigger(L.prototype.j.Fp,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(e=this.N.length;a<e;a++)d=this.N[a],d.Jw&&d.Jw();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Qa(!1);this.Oc&&AppMobi.webview.execute("onGameReady();")};m.prototype.Qa=function(a, e,b){if(this.Da){var l=$a();if(b||!this.Ck||a){a||(d?this.os=d(this.Mx):this.Us=setTimeout(this.Mx,this.zh?1:16));e=e||l;var c=this.ed;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Tc)||this.hf)&&0<this.Of&&(c=this.Of);if(0<c){var c=window.innerWidth,g=window.innerHeight;this.Si===c&&this.Ri===g||this.setSize(c,g)}this.ib||(b?this.dn||(this.dn=!0):this.dn?(this.dn=!1,0===this.ed&&this.setSize(Math.round(this.Iw/this.devicePixelRatio), Math.round(this.Hw/this.devicePixelRatio),!0)):(this.Iw=this.width,this.Hw=this.height));this.Mi&&(b=this.Bu(),this.Hh=this.Ca,b&&(this.Mi=!1,this.Ca=1,this.trigger(L.prototype.j.Fp,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.HE(e);!this.ta&&!this.Jd||this.nr||this.Cl||a||(this.ta=!1,this.G?this.Gb():this.td(),this.zl&&(this.canvas&&this.canvas.toDataURL&&(this.Fx=this.canvas.toDataURL(this.zl[0],this.zl[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Fx),this.trigger(L.prototype.j.Rz, null)),this.zl=null));this.rH||(this.hg++,this.sh++,this.kn++);this.Tk+=$a()-l}}};m.prototype.HE=function(a){var e,d,b,l,c,g,p,f;1E3<=a-this.Fh&&(this.Fh+=1E3,1E3<=a-this.Fh&&(this.Fh=a),this.Dq=this.kn,this.kn=0,this.lq=this.Tk,this.Tk=0);e=0;0!==this.In&&(e=a-this.In,0>e&&(e=0),this.nh=e/=1E3,.5<this.nh?this.nh=0:this.nh>1/this.zw&&(this.nh=1/this.zw));this.In=a;this.Jf=this.nh*this.$g;this.zb.add(this.Jf);this.kg.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen|| !!document.msFullscreenElement||this.hf)&&!this.Tc;2<=this.ed||a&&0<this.Of?(e=this.kb/this.jb,d=this.width/this.height,b=this.ed,a&&0<this.Of&&(b=this.Of),this.Sj=2!==b&&d>e||2===b&&d<e?this.height/this.jb:this.width/this.kb,this.Da&&(this.Da.Es(this.Da.scrollX),this.Da.Fs(this.Da.scrollY))):this.Sj=this.Bh?this.devicePixelRatio:1;this.Ec();this.Kd++;this.uf.DF();this.Kd--;this.Ec();this.Kd++;d=this.Gw.ke();a=0;for(e=d.length;a<e;a++)d[a].CH();a=0;for(e=this.N.length;a<e;a++)if(g=this.N[a],!g.P&& (g.sb.length||g.ob.length))for(d=0,b=g.k.length;d<b;d++)for(p=g.k[d],l=0,c=p.da.length;l<c;l++)p.da[l].Qa();a=0;for(e=this.N.length;a<e;a++)if(g=this.N[a],!g.P&&(g.sb.length||g.ob.length))for(d=0,b=g.k.length;d<b;d++)for(p=g.k[d],l=0,c=p.da.length;l<c;l++)f=p.da[l],f.kF&&f.kF();d=this.Sr.ke();a=0;for(e=d.length;a<e;a++)d[a].Qa();this.Kd--;this.fE();for(a=0;this.hh&&10>a++;)this.Tu(this.hh);a=0;for(e=this.Lf.length;a<e;a++)this.Lf[a].Vq=!1;this.Da.qh&&this.Da.qh.Ob();C(this.Th);this.Br=!1;this.Kd++; a=0;for(e=this.N.length;a<e;a++)if(g=this.N[a],!g.P&&(g.sb.length||g.ob.length))for(d=0,b=g.k.length;d<b;d++)for(p=g.k[d],l=0,c=p.da.length;l<c;l++)f=p.da[l],f.ci&&f.ci();d=this.Tr.ke();a=0;for(e=d.length;a<e;a++)d[a].ci();this.Kd--};m.prototype.Rh=function(){var a,e,d,b,l,c,g,p,f;a=0;for(e=this.N.length;a<e;a++)if(g=this.N[a],!g.P)for(d=0,b=g.k.length;d<b;d++)if(p=g.k[d],p.Rh&&p.Rh(),p.da)for(l=0,c=p.da.length;l<c;l++)f=p.da[l],f.Rh&&f.Rh()};m.prototype.Tu=function(a){var e=this.Da;this.Da.VF(); var d,b,l;if(this.G)for(d=0,b=this.N.length;d<b;d++)l=this.N[d],l.P||!l.ei||l.global&&0!==l.k.length||-1!==a.uk.indexOf(l)||l.ei();e==a&&C(this.uf.qd);C(this.Th);this.kx(!0);a.Ns();this.kx(!1);this.Br=this.ta=!0;this.Ec()};m.prototype.kx=function(a){var e,d,b,l,c,g,p,f,n;e=0;for(d=this.sb.length;e<d;e++)b=this.sb[e],a?b.bl&&b.bl():b.dj&&b.dj();e=0;for(d=this.N.length;e<d;e++)if(b=this.N[e],b.global||b.Ba.Uo)for(l=0,c=b.k.length;l<c;l++)if(g=b.k[l],a?g.bl&&g.bl():g.dj&&g.dj(),g.da)for(p=0,f=g.da.length;p< f;p++)n=g.da[p],a?n.bl&&n.bl():n.dj&&n.dj()};m.prototype.Zg=function(a){this.Sr.add(a)};m.prototype.$F=function(a){this.Tr.add(a)};m.prototype.ff=function(a){return a&&-1!==a.$k?this.nh*a.$k:this.Jf};m.prototype.td=function(){this.Da.td(this.fb);this.Oc&&this.fb.present()};m.prototype.Gb=function(){this.cb&&(this.oh=1,this.Da.Hf(this.G));this.Da.Gb(this.G);this.G.oF()};m.prototype.pm=function(a){a&&this.Wm.push(a)};m.prototype.ix=function(a){Fa(this.Wm,a)};m.prototype.Ai=function(a){a=a.toString(); return this.Xf.hasOwnProperty(a)?this.Xf[a]:null};var S=[];m.prototype.Ve=function(a){var e,d;e=a.type.name;var b=null;if(this.mh.hasOwnProperty(e)){if(b=this.mh[e],b.contains(a))return}else b=S.length?S.pop():new da,this.mh[e]=b;b.add(a);this.Ig=!0;if(a.tc)for(e=0,d=a.siblings.length;e<d;e++)this.Ve(a.siblings[e]);this.er&&b.Ej.push(a);this.dr||(this.Kd++,this.trigger(Object.getPrototypeOf(a.type.Ba).j.Vz,a),this.Kd--)};m.prototype.Ec=function(){if(this.Ig){var a,e,d,b,l,c;this.er=!0;d=0;for(l=this.ze.length;d< l;++d)for(a=this.ze[d],e=a.type,e.k.push(a),b=0,c=e.ob.length;b<c;++b)e.ob[b].k.push(a),e.ob[b].uj=!0;C(this.ze);this.Dz();Za(this.mh);this.Ig=this.er=!1}};m.prototype.Dz=function(){for(var a in this.mh)this.mh.hasOwnProperty(a)&&this.Ey(this.mh[a])};m.prototype.Ey=function(a){var e=a.ke(),d=e[0].type,b,l,c,g,p,f;ab(d.k,a);d.uj=!0;0===d.k.length&&(d.vm=!1);b=0;for(l=d.ob.length;b<l;++b)f=d.ob[b],ab(f.k,a),f.uj=!0;b=0;for(l=this.uf.qd.length;b<l;++b)if(p=this.uf.qd[b],p.Wc.hasOwnProperty(d.index)&& ab(p.Wc[d.index].Qf,a),!d.P)for(c=0,g=d.ob.length;c<g;++c)f=d.ob[c],p.Wc.hasOwnProperty(f.index)&&ab(p.Wc[f.index].Qf,a);if(p=e[0].B){if(p.Ud)for(c=p.k,b=0,l=c.length;b<l;++b)g=c[b],a.contains(g)&&(g.za(),p.Ac.update(g,g.ld,null),g.ld.set(0,0,-1,-1));ab(p.k,a);p.ul(0)}for(b=0;b<e.length;++b)this.Dy(e[b],d);a.clear();S.push(a);this.ta=!0};m.prototype.Dy=function(a,e){var d,b,l;d=0;for(b=this.Wm.length;d<b;++d)this.Wm[d](a);a.Xd&&e.Vj.update(a,a.Xd,null);(d=a.B)&&d.nj(a,!0);if(a.da)for(d=0,b=a.da.length;d< b;++d)l=a.da[d],l.wd&&l.wd(),l.behavior.Zk.remove(a);this.Gw.remove(a);this.Sr.remove(a);this.Tr.remove(a);a.wd&&a.wd();this.Xf.hasOwnProperty(a.uid.toString())&&delete this.Xf[a.uid.toString()];this.Xn--;100>e.Sm.length&&e.Sm.push(a)};m.prototype.Mm=function(a,e,d,b){if(a.P){var l=ua(Math.random()*a.Rg.length);return this.Mm(a.Rg[l],e,d,b)}return a.Zd?this.Dg(a.Zd,e,!1,d,b,!1):null};var T=[];m.prototype.Dg=function(a,e,d,b,l,c){var g,p,f,n;if(!a)return null;var h=this.N[a[1]],r=h.Ba.Lg;if(this.Mi&& r&&!h.ir||r&&!this.G&&11===a[0][11])return null;var t=e;r||(e=null);var q;h.Sm.length?(q=h.Sm.pop(),q.zc=!0,h.Ba.M.call(q,h)):(q=new h.Ba.M(h),q.zc=!1);!d||c||this.Xf.hasOwnProperty(a[2].toString())?q.uid=this.al++:q.uid=a[2];this.Xf[q.uid.toString()]=q;q.bx=this.Cw++;q.yh=h.k.length;g=0;for(p=this.ze.length;g<p;++g)this.ze[g].type===h&&q.yh++;q.nk=Gb;q.toString=Hb;f=a[3];if(q.zc)Za(q.Z);else{q.Z={};if("undefined"!==typeof cr_is_preview)for(q.Fv=[],q.Fv.length=f.length,g=0,p=f.length;g<p;g++)q.Fv[g]= f[g][1];q.$b=[];q.$b.length=f.length}g=0;for(p=f.length;g<p;g++)q.$b[g]=f[g][0];if(r){var k=a[0];q.x=ia(b)?k[0]:b;q.y=ia(l)?k[1]:l;q.z=k[2];q.width=k[3];q.height=k[4];q.depth=k[5];q.q=k[6];q.opacity=k[7];q.Mc=k[8];q.Nc=k[9];q.Gc=k[10];g=k[11];!this.G&&h.na.length&&(q.Gc=g);q.Wj=ib(q.Gc);this.U&&kb(q,q.Gc,this.U);if(q.zc){g=0;for(p=k[12].length;g<p;g++)for(f=0,n=k[12][g].length;f<n;f++)q.ub[g][f]=k[12][g][f];q.ma.set(0,0,0,0);q.Xd.set(0,0,-1,-1);q.ld.set(0,0,-1,-1);q.Hc.Wh(q.ma);C(q.aq)}else{q.ub= k[12].slice(0);g=0;for(p=q.ub.length;g<p;g++)q.ub[g]=k[12][g].slice(0);q.Ra=[];q.rg=[];q.rg.length=h.na.length;q.ma=new xa(0,0,0,0);q.Xd=new xa(0,0,-1,-1);q.ld=new xa(0,0,-1,-1);q.Hc=new ya;q.aq=[];q.V=Kb;q.PB=Lb;q.Fb=Mb;q.za=Nb;q.ey=Ob;q.gt=Pb;q.gf=Sb}q.di=!1;q.Qx=0;q.Px=0;q.Ox=null;14===k.length&&(q.di=!0,q.Qx=k[13][0],q.Px=k[13][1],q.Ox=k[13][2]);g=0;for(p=h.na.length;g<p;g++)q.rg[g]=!0;q.eg=!0;q.Re=Tb;q.Re();q.fy=!!q.Ra.length;q.Bm=!0;q.hq=!0;h.um=!0;q.visible=!0;q.$k=-1;q.B=e;q.Te=e.k.length; q.oh=0;"undefined"===typeof q.Ga&&(q.Ga=null);this.ta=q.Bd=!0}var m;C(T);g=0;for(p=h.ob.length;g<p;g++)T.push.apply(T,h.ob[g].sb);T.push.apply(T,h.sb);if(q.zc)for(g=0,p=T.length;g<p;g++){var H=T[g];m=q.da[g];m.zc=!0;H.behavior.M.call(m,H,q);k=a[4][g];f=0;for(n=k.length;f<n;f++)m.u[f]=k[f];m.J();H.behavior.Zk.add(q)}else for(q.da=[],g=0,p=T.length;g<p;g++)H=T[g],m=new H.behavior.M(H,q),m.zc=!1,m.u=a[4][g].slice(0),m.J(),q.da.push(m),H.behavior.Zk.add(q);k=a[5];if(q.zc)for(g=0,p=k.length;g<p;g++)q.u[g]= k[g];else q.u=k.slice(0);this.ze.push(q);this.Ig=!0;e&&(e.Rj(q,!0),1!==e.ee||1!==e.Pd)&&(h.vm=!0);this.Xn++;if(h.tc){if(q.tc=!0,q.zc?C(q.siblings):q.siblings=[],!d&&!c){g=0;for(p=h.sd.length;g<p;g++)if(h.sd[g]!==h){if(!h.sd[g].Zd)return null;q.siblings.push(this.Dg(h.sd[g].Zd,t,!1,r?q.x:b,r?q.y:l,!0))}g=0;for(p=q.siblings.length;g<p;g++)for(q.siblings[g].siblings.push(q),f=0;f<p;f++)g!==f&&q.siblings[g].siblings.push(q.siblings[f])}}else q.tc=!1,q.siblings=null;q.J();g=0;for(p=q.da.length;g<p;g++)q.da[g].jF&& q.da[g].jF();return q};m.prototype.nn=function(a){var e,d;e=0;for(d=this.Da.wa.length;e<d;e++){var b=this.Da.wa[e];if(mb(b.name,a))return b}return null};m.prototype.yi=function(a){a=ua(a);0>a&&(a=0);a>=this.Da.wa.length&&(a=this.Da.wa.length-1);return this.Da.wa[a]};m.prototype.kk=function(a){return ja(a)?this.yi(a):this.nn(a.toString())};m.prototype.iq=function(a){var e,d;e=0;for(d=a.length;e<d;e++)a[e].aa().ba=!0};m.prototype.ml=function(a){var e,d;e=0;for(d=a.length;e<d;e++)a[e].ml()};m.prototype.$f= function(a){var e,d;e=0;for(d=a.length;e<d;e++)a[e].$f()};m.prototype.fe=function(a){var e,d;e=0;for(d=a.length;e<d;e++)a[e].fe()};m.prototype.ay=function(a){if(a.um){var e,d,b=a.k;e=0;for(d=b.length;e<d;++e)b[e].gt();b=this.ze;e=0;for(d=b.length;e<d;++e)b[e].type===a&&b[e].gt();a.um=!1}};m.prototype.Jq=function(a,e,d,b){var l,c,g=a?1!==a.ee||1!==a.Pd:!1;if(e.P)for(a=0,l=e.Rg.length;a<l;++a)c=e.Rg[a],g||c.vm?Da(b,c.k):(this.ay(c),c.Vj.wo(d,b));else g||e.vm?Da(b,e.k):(this.ay(e),e.Vj.wo(d,b))};m.prototype.rn= function(a,e,d,b){var l,c;l=0;for(c=e.length;l<c;++l)this.Jq(a,e[l],d,b)};m.prototype.uv=function(a,e,d){var b=this.Ls;b&&this.rn(a,b.Qr,e,d)};m.prototype.dp=function(a,e,d){var b=a.aa(),l,c,g,p,f=this.pb().tb.Od,n,h,r;if(b.ba)for(b.ba=!1,C(b.k),l=0,p=a.k.length;l<p;l++)g=a.k[l],g.za(),n=g.B.oc(e,d,!0),h=g.B.oc(e,d,!1),g.Fb(n,h)?b.k.push(g):f&&b.ea.push(g);else{c=0;r=f?b.ea:b.k;l=0;for(p=r.length;l<p;l++)g=r[l],g.za(),n=g.B.oc(e,d,!0),h=g.B.oc(e,d,!1),g.Fb(n,h)&&(f?b.k.push(g):(b.k[c]=b.k[l],c++)); r.length=c}a.Rc();return b.wn()};m.prototype.xj=function(a,e){if(!(a&&e&&a!==e&&a.Bd&&e.Bd))return!1;a.za();e.za();var d=a.B,b=e.B,l,c,g,p,f,n,h,r;if(d===b||d.ee===b.ee&&b.Pd===b.Pd&&d.scale===b.scale&&d.q===b.q&&d.Ue===b.Ue){if(!a.ma.Hv(e.ma)||!a.Hc.Gv(e.Hc)||a.di&&e.di)return!1;if(a.di)return this.Kx(a,e);if(e.di)return this.Kx(e,a);h=a.Ga&&!a.Ga.Ch();l=e.Ga&&!e.Ga.Ch();if(!h&&!l)return!0;h?(a.Ga.yg(a.width,a.height,a.q),h=a.Ga):(this.Oe.sj(a.Hc,a.x,a.y,a.width,a.height),h=this.Oe);l?(e.Ga.yg(e.width, e.height,e.q),r=e.Ga):(this.Oe.sj(e.Hc,e.x,e.y,e.width,e.height),r=this.Oe);return h.vk(r,e.x-a.x,e.y-a.y)}h=a.Ga&&!a.Ga.Ch();l=e.Ga&&!e.Ga.Ch();h?(a.Ga.yg(a.width,a.height,a.q),this.Oe.yx(a.Ga)):this.Oe.sj(a.Hc,a.x,a.y,a.width,a.height);h=this.Oe;l?(e.Ga.yg(e.width,e.height,e.q),this.Ps.yx(e.Ga)):this.Ps.sj(e.Hc,e.x,e.y,e.width,e.height);r=this.Ps;l=0;for(c=h.kd;l<c;l++)g=2*l,p=g+1,f=h.bb[g],n=h.bb[p],h.bb[g]=d.Uc(f+a.x,n+a.y,!0),h.bb[p]=d.Uc(f+a.x,n+a.y,!1);h.za();l=0;for(c=r.kd;l<c;l++)g=2*l,p= g+1,f=r.bb[g],n=r.bb[p],r.bb[g]=b.Uc(f+e.x,n+e.y,!0),r.bb[p]=b.Uc(f+e.x,n+e.y,!1);r.za();return h.vk(r,0,0)};var N=new ya,F=new xa(0,0,0,0),R=[];m.prototype.Kx=function(a,e){var d,b,l,c,g=e.ma,p=a.x,f=a.y;a.mv(g,R);var n=e.Ga&&!e.Ga.Ch();d=0;for(b=R.length;d<b;++d)if(l=R[d],c=l.Sa,g.Iv(c,p,f)&&(N.Wh(c),N.offset(p,f),N.Gv(e.Hc)))if(n)if(e.Ga.yg(e.width,e.height,e.q),l.Ie){if(l.Ie.vk(e.Ga,e.x-(p+c.left),e.y-(f+c.top)))return C(R),!0}else{if(this.Oe.sj(N,0,0,c.right-c.left,c.bottom-c.top),this.Oe.vk(e.Ga, e.x,e.y))return C(R),!0}else if(l.Ie){if(this.Oe.sj(e.Hc,0,0,e.width,e.height),l.Ie.vk(this.Oe,-(p+c.left),-(f+c.top)))return C(R),!0}else return C(R),!0;C(R);return!1};m.prototype.Jx=function(a,e,d,b,l){if(!l||!l.Bd)return!1;l.za();F.set(sa(a,d),sa(e,b),ra(a,d),ra(e,b));if(!l.ma.Hv(F))return!1;if(l.di){l.mv(F,R);var c,g,p,f=l.x,n=l.y;l=0;for(c=R.length;l<c;++l)if(g=R[l],p=g.Sa,F.Iv(p,f,n)&&(N.Wh(p),N.offset(f,n),N.wk(a,e,d,b)))if(g.Ie){if(g.Ie.wk(f+p.left,n+p.top,a,e,d,b))return C(R),!0}else return C(R), !0;C(R);return!1}if(!l.Hc.wk(a,e,d,b))return!1;if(!l.Ga||l.Ga.Ch())return!0;l.Ga.yg(l.width,l.height,l.q);return l.Ga.wk(l.x,l.y,a,e,d,b)};m.prototype.Xx=function(a,e){if(!e)return!1;var d,b,l,c,g;d=0;for(b=a.sb.length;d<b;d++)if(a.sb[d].behavior instanceof e)return!0;if(!a.P)for(d=0,b=a.ob.length;d<b;d++)for(g=a.ob[d],l=0,c=g.sb.length;l<c;l++)if(g.sb[l].behavior instanceof e)return!0;return!1};m.prototype.Zs=function(a){return this.Xx(a,nc.EG)};m.prototype.$s=function(a){return this.Xx(a,nc.HG)}; var X=[];m.prototype.$h=function(a){var e,d,b;a.za();this.uv(a.B,a.ma,X);e=0;for(d=X.length;e<d;++e)if(b=X[e],b.Z.solidEnabled&&this.xj(a,b))return C(X),b;C(X);return null};m.prototype.cx=function(a,e,d,b){b=b||50;var l=a.x,c=a.y,g,p=null,f=null;for(g=0;g<b;g++)if(a.x=l+e*g,a.y=c+d*g,a.V(),!this.xj(a,p)&&((p=this.$h(a))&&(f=p),!p&&!p))return f&&this.qF(a,e,d,f),!0;a.x=l;a.y=c;a.V();return!1};m.prototype.qF=function(a,e,d,b){var l=2,c,g=!1;c=!1;for(var p=a.x,f=a.y;16>=l;)c=1/l,l*=2,a.x+=e*c*(g?1:-1), a.y+=d*c*(g?1:-1),a.V(),this.xj(a,b)?c=g=!0:(c=g=!1,p=a.x,f=a.y);c&&(a.x=p,a.y=f,a.V())};m.prototype.sF=function(a){var e=ia(void 0)?100:void 0,d=0,b=a.x,l=a.y,c=0,g=0,p=0,f=this.$h(a);if(!f)return!0;for(;d<=e;){switch(c){case 0:g=0;p=-1;d++;break;case 1:g=1;p=-1;break;case 2:g=1;p=0;break;case 3:p=g=1;break;case 4:g=0;p=1;break;case 5:g=-1;p=1;break;case 6:g=-1;p=0;break;case 7:p=g=-1}c=(c+1)%8;a.x=ua(b+g*d);a.y=ua(l+p*d);a.V();if(!this.xj(a,f)&&(f=this.$h(a),!f))return!0}a.x=b;a.y=l;a.V();return!1}; m.prototype.zo=function(a,e){a.Bd&&e.Bd&&this.Th.push([a,e])};m.prototype.NB=function(a,e,d){var b,l,c;b=0;for(l=this.Th.length;b<l;++b){c=this.Th[b];if(c[0]===a)c=c[1];else if(c[1]===a)c=c[0];else continue;if(e.P){if(-1===e.Rg.indexOf(e))continue}else if(c.type!==e)continue;-1===d.indexOf(c)&&d.push(c)}};m.prototype.bC=function(a,e){var d,b,l;d=0;for(b=this.Th.length;d<b;d++)if(l=this.Th[d],l[0]===a&&l[1]===e||l[0]===e&&l[1]===a)return!0;return!1};var ba=-1;m.prototype.trigger=function(a,e,d){if(!this.Da)return!1; var b=this.Da.qh;if(!b)return!1;var l=!1,c,g,p;ba++;var f=b.pq;g=0;for(p=f.length;g<p;++g)c=this.Tx(a,e,f[g],d),l=l||c;c=this.Tx(a,e,b,d);ba--;return l||c};m.prototype.Tx=function(a,e,d,b){var l=!1,c,g,p,f;if(e)for(p=this.Xs(a,e,e.type.name,d,b),l=l||p,f=e.type.ob,c=0,g=f.length;c<g;++c)p=this.Xs(a,e,f[c].name,d,b),l=l||p;else p=this.Xs(a,e,"system",d,b),l=l||p;return l};m.prototype.Xs=function(a,e,d,b,l){var c,g=!1,p=!1,p="undefined"!==typeof l,f=(p?b.Zu:b.Ux)[d];if(!f)return g;var n=null;b=0;for(c= f.length;b<c;++b)if(f[b].method==a){n=f[b].ck;break}if(!n)return g;var h;p?h=n[l]:h=n;if(!h)return null;b=0;for(c=h.length;b<c;b++)a=h[b][0],l=h[b][1],p=this.sD(e,d,a,l),g=g||p;return g};m.prototype.sD=function(a,e,d,b){var l,c,g=!1;this.Ys++;var p=this.pb().tb;p&&this.ml(p.Wg);var f=1<this.Ys;this.ml(d.Wg);f&&this.rF();var n=this.vo(d);n.tb=d;a&&(l=this.types[e].aa(),l.ba=!1,C(l.k),l.k[0]=a,this.types[e].Rc());a=!0;if(d.parent){e=n.Ix;for(l=d.parent;l;)e.push(l),l=l.parent;e.reverse();l=0;for(c= e.length;l<c;l++)if(!e[l].FF()){a=!1;break}}a&&(this.sh++,d.Od?d.EF(b):d.Ob(),g=g||n.Eh);this.po();f&&this.iF();this.fe(d.Wg);p&&this.fe(p.Wg);this.Ig&&0===this.Kd&&0===ba&&!this.jr&&this.Ec();this.Ys--;return g};m.prototype.Pf=function(){var a=this.pb();return a.tb.Vb[a.Eb]};m.prototype.HD=function(){return this.Pf().type};m.prototype.oE=function(){return 0===this.pb().Eb};m.prototype.GD=function(){var a=this.pb();return a.tb.Vd[a.ad]};m.prototype.rF=function(){this.Rn++;this.Rn>=this.Ir.length&& this.Ir.push([])};m.prototype.iF=function(){this.Rn--};m.prototype.nv=function(){return this.Ir[this.Rn]};m.prototype.vo=function(a){this.Zm++;this.Zm>=this.uq.length&&this.uq.push(new Ub);var e=this.pb();e.reset(a);return e};m.prototype.po=function(){this.Zm--};m.prototype.pb=function(){return this.uq[this.Zm]};m.prototype.ms=function(a){this.Vk++;this.Vk>=this.Uk.length&&this.Uk.push(aa({name:a,index:0,nb:!1}));var e=this.ov();e.name=a;e.index=0;e.nb=!1;return e};m.prototype.gs=function(){this.Vk--}; m.prototype.ov=function(){return this.Uk[this.Vk]};m.prototype.qv=function(a,e){for(var d,b,l,c,g,p;e;){d=0;for(b=e.ie.length;d<b;d++)if(p=e.ie[d],p instanceof Vb&&mb(a,p.name))return p;e=e.parent}d=0;for(b=this.Lf.length;d<b;d++)for(g=this.Lf[d],l=0,c=g.Fg.length;l<c;l++)if(p=g.Fg[l],p instanceof Vb&&mb(a,p.name))return p;return null};m.prototype.sv=function(a){var e,d;e=0;for(d=this.Ee.length;e<d;e++)if(this.Ee[e].Ea===a)return this.Ee[e];return null};m.prototype.Bi=function(a){var e,d;e=0;for(d= this.N.length;e<d;e++)if(this.N[e].Ea===a)return this.N[e];return null};m.prototype.ID=function(a){var e,d;e=0;for(d=this.ug.length;e<d;e++)if(this.ug[e].Ea===a)return this.ug[e];return null};m.prototype.oC=function(a,e){this.zl=[a,e];this.ta=!0};m.prototype.fE=function(){var a=this,e=this.Ds,d=this.Uf,l=this.Nn,p=!1;this.Dx&&(p=!0,e="__c2_continuouspreview",this.Dx=!1);if(e.length){this.Ec();d=this.JF();if(h()&&!this.Jd)c(e,d,function(){ga("Saved state to IndexedDB storage ("+d.length+" bytes)"); a.Uf=d;a.trigger(L.prototype.j.Hp,null);a.Uf="";p&&g()},function(b){try{localStorage.setItem("__c2save_"+e,d),ga("Saved state to WebStorage ("+d.length+" bytes)"),a.Uf=d,a.trigger(L.prototype.j.Hp,null),a.Uf="",p&&g()}catch(l){ga("Failed to save game state: "+b+"; "+l),a.trigger(L.prototype.j.Tt,null)}});else try{localStorage.setItem("__c2save_"+e,d),ga("Saved state to WebStorage ("+d.length+" bytes)"),a.Uf=d,this.trigger(L.prototype.j.Hp,null),a.Uf="",p&&g()}catch(f){ga("Error saving to WebStorage: "+ f),a.trigger(L.prototype.j.Tt,null)}this.Nn=this.Ds="";this.cc=null}if(l.length){if(h()&&!this.Jd)b(l,function(e){e?(a.cc=e,ga("Loaded state from IndexedDB storage ("+a.cc.length+" bytes)")):(a.cc=localStorage.getItem("__c2save_"+l)||"",ga("Loaded state from WebStorage ("+a.cc.length+" bytes)"));a.Cl=!1;a.cc||(a.cc=null,a.trigger(L.prototype.j.em,null))},function(){a.cc=localStorage.getItem("__c2save_"+l)||"";ga("Loaded state from WebStorage ("+a.cc.length+" bytes)");a.Cl=!1;a.cc||(a.cc=null,a.trigger(L.prototype.j.em, null))});else{try{this.cc=localStorage.getItem("__c2save_"+l)||"",ga("Loaded state from WebStorage ("+this.cc.length+" bytes)")}catch(n){this.cc=null}this.Cl=!1;a.cc||(a.cc=null,a.trigger(L.prototype.j.em,null))}this.Ds=this.Nn=""}null!==this.cc&&(this.Ec(),this.GE(this.cc)?(this.Uf=this.cc,this.trigger(L.prototype.j.dA,null),this.Uf=""):a.trigger(L.prototype.j.em,null),this.cc=null)};m.prototype.JF=function(){var e,d,b,l,c,g,p,f={c2save:!0,version:1,rt:{time:this.zb.W,walltime:this.kg.W,timescale:this.$g, tickcount:this.hg,execcount:this.sh,next_uid:this.al,running_layout:this.Da.Ea,start_time_offset:Date.now()-this.Yo},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(d=this.N.length;e<d;e++)if(c=this.N[e],!c.P&&!this.Zs(c)){g={instances:[]};Ya(c.Z)&&(g.ex=a(c.Z));b=0;for(l=c.k.length;b<l;b++)g.instances.push(this.Cs(c.k[b]));f.types[c.Ea.toString()]=g}e=0;for(d=this.Ee.length;e<d;e++)b=this.Ee[e],f.layouts[b.Ea.toString()]=b.$a();l=f.events.groups;e=0;for(d=this.ug.length;e< d;e++)b=this.ug[e],l[b.Ea.toString()]=this.Di[b.ok].vh;d=f.events.cnds;for(p in this.Cg)this.Cg.hasOwnProperty(p)&&(e=this.Cg[p],Ya(e.Z)&&(d[p]={ex:a(e.Z)}));d=f.events.acts;for(p in this.sg)this.sg.hasOwnProperty(p)&&(e=this.sg[p],Ya(e.Z)&&(d[p]={ex:a(e.Z)}));d=f.events.vars;for(p in this.Fj)this.Fj.hasOwnProperty(p)&&(e=this.Fj[p],e.Fn||e.parent&&!e.Fk||(d[p]=e.data));f.system=this.uf.$a();return JSON.stringify(f)};m.prototype.hx=function(){var a,e,d,b,l,c;this.Xf={};a=0;for(e=this.N.length;a<e;a++)if(d= this.N[a],!d.P)for(b=0,l=d.k.length;b<l;b++)c=d.k[b],this.Xf[c.uid.toString()]=c};m.prototype.GE=function(a){var e;try{e=JSON.parse(a)}catch(d){return!1}if(!e.c2save||1<e.version)return!1;this.zk=!0;a=e.rt;this.zb.reset();this.zb.W=a.time;this.kg.reset();this.kg.W=a.walltime||0;this.$g=a.timescale;this.hg=a.tickcount;this.sh=a.execcount;this.Yo=Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.Da.Ea)if(b=this.sv(b))this.Tu(b);else return;var l,c,g,p,f,n,h;n=e.types;for(c in n)if(n.hasOwnProperty(c)&& (p=this.Bi(parseInt(c,10)))&&!p.P&&!this.Zs(p)){n[c].ex?p.Z=n[c].ex:Za(p.Z);f=p.k;g=n[c].instances;b=0;for(l=sa(f.length,g.length);b<l;b++)this.On(f[b],g[b]);b=g.length;for(l=f.length;b<l;b++)this.Ve(f[b]);b=f.length;for(l=g.length;b<l;b++){f=null;if(p.Ba.Lg&&(f=this.Da.pn(g[b].w.l),!f))continue;f=this.Dg(p.Zd,f,!1,0,0,!0);this.On(f,g[b])}p.uj=!0}this.Ec();this.hx();l=e.layouts;for(c in l)l.hasOwnProperty(c)&&(b=this.sv(parseInt(c,10)))&&b.eb(l[c]);l=e.events.groups;for(c in l)l.hasOwnProperty(c)&& (b=this.ID(parseInt(c,10)))&&this.Di[b.ok]&&this.Di[b.ok].sl(l[c]);b=e.events.cnds;for(c in this.Cg)this.Cg.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.Cg[c].Z=b[c].ex:this.Cg[c].Z={});b=e.events.acts;for(c in this.sg)this.sg.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.sg[c].Z=b[c].ex:this.sg[c].Z={});b=e.events.vars;for(c in b)b.hasOwnProperty(c)&&this.Fj.hasOwnProperty(c)&&(this.Fj[c].data=b[c]);this.al=a.next_uid;this.zk=!1;b=0;for(l=this.cn.length;b<l;++b)f=this.cn[b],this.trigger(Object.getPrototypeOf(f.type.Ba).j.yf, f);C(this.cn);this.uf.eb(e.system);b=0;for(l=this.N.length;b<l;b++)if(p=this.N[b],!p.P&&!this.Zs(p))for(e=0,c=p.k.length;e<c;e++){f=p.k[e];if(p.tc)for(n=f.nk(),C(f.siblings),a=0,g=p.sd.length;a<g;a++)h=p.sd[a],p!==h&&f.siblings.push(h.k[n]);f.oe&&f.oe();if(f.da)for(a=0,g=f.da.length;a<g;a++)n=f.da[a],n.oe&&n.oe()}return this.ta=!0};m.prototype.Cs=function(e,d){var b,l,c,g,p;g=e.type;c=g.Ba;var f={};d?f.c2=!0:f.uid=e.uid;Ya(e.Z)&&(f.ex=a(e.Z));if(e.$b&&e.$b.length)for(f.ivs={},b=0,l=e.$b.length;b< l;b++)f.ivs[e.type.br[b].toString()]=e.$b[b];if(c.Lg){c={x:e.x,y:e.y,w:e.width,h:e.height,l:e.B.Ea,zi:e.gf()};0!==e.q&&(c.a=e.q);1!==e.opacity&&(c.o=e.opacity);.5!==e.Mc&&(c.hX=e.Mc);.5!==e.Nc&&(c.hY=e.Nc);0!==e.Gc&&(c.bm=e.Gc);e.visible||(c.v=e.visible);e.Bd||(c.ce=e.Bd);-1!==e.$k&&(c.mts=e.$k);if(g.na.length)for(c.fx=[],b=0,l=g.na.length;b<l;b++)p=g.na[b],c.fx.push({name:p.name,active:e.rg[p.index],params:e.ub[p.index]});f.w=c}if(e.da&&e.da.length)for(f.behs={},b=0,l=e.da.length;b<l;b++)g=e.da[b], g.$a&&(f.behs[g.type.Ea.toString()]=g.$a());e.$a&&(f.data=e.$a());return f};m.prototype.KD=function(a,e){var d,b;d=0;for(b=a.br.length;d<b;d++)if(a.br[d]===e)return d;return-1};m.prototype.ED=function(a,e){var d,b;d=0;for(b=a.da.length;d<b;d++)if(a.da[d].type.Ea===e)return d;return-1};m.prototype.On=function(a,e,d){var b,l,c,g,p;p=a.type;var f=p.Ba;if(d){if(!e.c2)return}else a.uid=e.uid;e.ex?a.Z=e.ex:Za(a.Z);if(l=e.ivs)for(b in l)l.hasOwnProperty(b)&&(c=this.KD(p,parseInt(b,10)),0>c||c>=a.$b.length|| (g=l[b],null===g&&(g=NaN),a.$b[c]=g));if(f.Lg){c=e.w;a.B.Ea!==c.l&&(l=a.B,a.B=this.Da.pn(c.l),a.B?(l.nj(a,!0),a.B.Rj(a,!0),a.V(),a.B.ul(0)):(a.B=l,d||this.Ve(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.Te=c.zi;a.q=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Mc=c.hasOwnProperty("hX")?c.hX:.5;a.Nc=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Bd=c.hasOwnProperty("ce")?c.ce:!0;a.$k=c.hasOwnProperty("mts")?c.mts:-1;a.Gc=c.hasOwnProperty("bm")?c.bm: 0;a.Wj=ib(a.Gc);this.U&&kb(a,a.Gc,this.U);a.V();if(c.hasOwnProperty("fx"))for(d=0,l=c.fx.length;d<l;d++)g=p.Lq(c.fx[d].name),0>g||(a.rg[g]=c.fx[d].active,a.ub[g]=c.fx[d].params);a.Re()}if(p=e.behs)for(b in p)p.hasOwnProperty(b)&&(d=this.ED(a,parseInt(b,10)),0>d||a.da[d].eb(p[b]));e.data&&a.eb(e.data)};m.prototype.$u=function(a,e,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,d)},d)};m.prototype.tD=function(a,e){this.$u("data.js",function(d){var b= new FileReader;b.onload=function(e){a(e.target.result)};b.onerror=e;b.readAsText(d)},e)};var I=[],O=0;m.prototype.Nr=function(){if(I.length&&!(8<=O)){O++;var a=I.shift();this.rC(a.filename,a.YF,a.QC)}};m.prototype.av=function(a,e,d){var b=this;I.push({filename:a,YF:function(a){O--;b.Nr();e(a)},QC:function(a){O--;b.Nr();d(a)}});this.Nr()};m.prototype.rC=function(a,e,d){this.$u(a,function(a){var d=new FileReader;d.onload=function(a){e(a.target.result)};d.readAsArrayBuffer(a)},d)};m.prototype.uD=function(a, e,d){var b="",l=a.toLowerCase(),c=l.substr(l.length-4),l=l.substr(l.length-5);".mp4"===c?b="video/mp4":".webm"===l?b="video/webm":".m4a"===c?b="audio/mp4":".mp3"===c&&(b="audio/mpeg");this.av(a,function(a){a=URL.createObjectURL(new Blob([a],{type:b}));e(a)},d)};m.prototype.mE=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};m.prototype.ux=function(a,e){this.En&&!this.mE(e)?this.uD(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}): a.src=e};m.prototype.Io=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Wb=function(a){return new m(document.getElementById(a))};Xb=function(a,e){return new m({dc:!0,width:a,height:e})};window.cr_createRuntime=Wb;window.cr_createDCRuntime=Xb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas"); a.wg=!0;document.body.appendChild(a);a=new m(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 m(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})(); window.cr_getC2Runtime=function(){var m=document.getElementById("c2canvas");return m?m.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(m,k){var h=window.cr_getC2Runtime();h&&h.oC(m,k)};window.cr_sizeCanvas=function(m,k){if(0!==m&&0!==k){var h=window.cr_getC2Runtime();h&&h.setSize(m,k)}};window.cr_setSuspended=function(m){var k=window.cr_getC2Runtime();k&&k.setSuspended(m)}; (function(){function m(a,d){this.b=a;this.qh=null;this.scrollX=this.b.kb/2;this.scrollY=this.b.jb/2;this.scale=1;this.q=0;this.xi=!0;this.name=d[0];this.bF=d[1];this.aF=d[2];this.width=d[1];this.height=d[2];this.Yx=d[3];this.Bx=d[4];this.Ea=d[5];var b=d[6],c,g;this.wa=[];this.uk=[];c=0;for(g=b.length;c<g;c++){var f=new Yb(this,b[c]);f.Ew=c;this.wa.push(f)}b=d[7];this.Jg=[];c=0;for(g=b.length;c<g;c++){var f=b[c],n=this.b.N[f[1]];n.Zd||(n.Zd=f);this.Jg.push(f);-1===this.uk.indexOf(n)&&this.uk.push(n)}this.na= [];this.Ra=[];this.eg=!0;this.ub=[];c=0;for(g=d[8].length;c<g;c++)this.na.push({id:d[8][c][0],name:d[8][c][1],Pb:-1,Je:!1,L:!0,index:c}),this.ub.push(d[8][c][2].slice(0));this.Re();this.ag=new xa(0,0,1,1);this.qs=new xa(0,0,1,1);this.Sg={}}function k(a,d){return a.Te-d.Te}function h(a,d){this.Kb=a;this.b=a.b;this.k=[];this.scale=1;this.q=0;this.Gf=!1;this.ig=new xa(0,0,0,0);this.Rx=new ya;this.La=this.Ia=this.Ma=this.Ha=0;this.gi=!1;this.lg=-1;this.jq=0;this.name=d[0];this.index=d[1];this.Ea=d[2]; this.visible=d[3];this.ue=d[4];this.Qe=d[5];this.ee=d[6];this.Pd=d[7];this.opacity=d[8];this.jn=d[9];this.Ud=d[10];this.Ue=d[11];this.Gc=d[12];this.MC=d[13];this.Wj="source-over";this.Kc=this.Qc=0;this.Ac=null;this.Vf=f();this.Ke=!0;this.Ti=new xa(0,0,-1,-1);this.pc=new xa(0,0,-1,-1);this.Ud&&(this.Ac=new hb(this.b.kb,this.b.jb));this.pf=!1;var b=d[14],c,g;this.Gx=[];this.Id=[];this.Zj=[];c=0;for(g=b.length;c<g;c++){var n=b[c],h=this.b.N[n[1]];h.Zd||(h.Zd=n,h.kC=this.index);this.Id.push(n);-1===this.Kb.uk.indexOf(h)&& this.Kb.uk.push(h)}Ca(this.Gx,this.Id);this.na=[];this.Ra=[];this.eg=!0;this.ub=[];c=0;for(g=d[15].length;c<g;c++)this.na.push({id:d[15][c][0],name:d[15][c][1],Pb:-1,Je:!1,L:!0,index:c}),this.ub.push(d[15][c][2].slice(0));this.Re();this.ag=new xa(0,0,1,1);this.qs=new xa(0,0,1,1)}function f(){return a.length?a.pop():[]}function c(e){C(e);a.push(e)}m.prototype.IF=function(a){var d=a.type.Ea.toString();this.Sg.hasOwnProperty(d)||(this.Sg[d]=[]);this.Sg[d].push(this.b.Cs(a))};m.prototype.yv=function(){var a= this.wa[0];return!a.Qe&&1===a.opacity&&!a.jn&&a.visible};m.prototype.Re=function(){C(this.Ra);this.eg=!0;var a,d,b;a=0;for(d=this.na.length;a<d;a++)b=this.na[a],b.L&&(this.Ra.push(b),b.Je||(this.eg=!1))};m.prototype.Kq=function(a){var d,b,c;d=0;for(b=this.na.length;d<b;d++)if(c=this.na[d],c.name===a)return c;return null};var b=[],g=!0;m.prototype.Ns=function(){this.Bx&&(this.qh=this.b.vq[this.Bx],this.qh.bt());this.b.Da=this;this.width=this.bF;this.height=this.aF;this.scrollX=this.b.kb/2;this.scrollY= this.b.jb/2;var a,d,c,f,n,h,m;a=0;for(c=this.b.N.length;a<c;a++)if(d=this.b.N[a],!d.P)for(n=d.k,d=0,f=n.length;d<f;d++)if(h=n[d],h.B){var t=h.B.Ew;t>=this.wa.length&&(t=this.wa.length-1);h.B=this.wa[t];-1===h.B.k.indexOf(h)&&h.B.k.push(h);h.B.gi=!0}if(!g)for(a=0,c=this.wa.length;a<c;++a)this.wa[a].k.sort(k);C(b);this.YB();a=0;for(c=this.wa.length;a<c;a++)h=this.wa[a],h.hC(),h.op();n=!1;if(!this.xi){for(m in this.Sg)if(this.Sg.hasOwnProperty(m)&&(d=this.b.Bi(parseInt(m,10)))&&!d.P&&this.b.$s(d)){f= this.Sg[m];a=0;for(c=f.length;a<c;a++){h=null;if(d.Ba.Lg&&(h=this.pn(f[a].w.l),!h))continue;h=this.b.Dg(d.Zd,h,!1,0,0,!0);this.b.On(h,f[a]);n=!0;b.push(h)}C(f)}a=0;for(c=this.wa.length;a<c;a++)this.wa[a].k.sort(k),this.wa[a].gi=!0}n&&(this.b.Ec(),this.b.hx());for(a=0;a<b.length;a++)if(h=b[a],h.type.tc)for(c=h.nk(),d=0,f=h.type.sd.length;d<f;d++)m=h.type.sd[d],h.type!==m&&(m.k.length>c?h.siblings.push(m.k[c]):m.Zd&&(n=this.b.Dg(m.Zd,h.B,!0,h.x,h.y,!0),this.b.Ec(),m.mp(),h.siblings.push(n),b.push(n))); a=0;for(c=this.Jg.length;a<c;a++)h=this.Jg[a],d=this.b.N[h[1]],d.tc||this.b.Dg(this.Jg[a],null,!0);this.b.hh=null;this.b.Ec();if(this.b.fb&&!this.b.ib)for(a=0,c=this.b.N.length;a<c;a++)m=this.b.N[a],!m.P&&m.k.length&&m.lj&&m.lj(this.b.fb);if(this.b.zk)Ca(this.b.cn,b);else for(a=0,c=b.length;a<c;a++)h=b[a],this.b.trigger(Object.getPrototypeOf(h.type.Ba).j.yf,h);C(b);this.b.zk||this.b.trigger(L.prototype.j.Ot,null);this.xi=!1};m.prototype.gC=function(){var a,d,b,c,g;d=a=0;for(b=this.Jg.length;a<b;a++)c= this.Jg[a],g=this.b.N[c[1]],g.global?g.tc||this.b.Dg(c,null,!0):(this.Jg[d]=c,d++);Ba(this.Jg,d)};m.prototype.VF=function(){this.b.zk||this.b.trigger(L.prototype.j.Nt,null);this.b.dr=!0;C(this.b.uf.qd);var a,d,b,c,f,n;if(!this.xi)for(a=0,d=this.wa.length;a<d;a++)for(this.wa[a].et(),f=this.wa[a].k,b=0,c=f.length;b<c;b++)n=f[b],n.type.global||this.b.$s(n.type)&&this.IF(n);a=0;for(d=this.wa.length;a<d;a++){f=this.wa[a].k;b=0;for(c=f.length;b<c;b++)n=f[b],n.type.global||this.b.Ve(n);this.b.Ec();C(f); this.wa[a].gi=!0}a=0;for(d=this.b.N.length;a<d;a++)if(f=this.b.N[a],!(f.global||f.Ba.Lg||f.Ba.Uo||f.P)){b=0;for(c=f.k.length;b<c;b++)this.b.Ve(f.k[b]);this.b.Ec()}g=!1;this.b.dr=!1};new xa(0,0,0,0);m.prototype.td=function(a){var d,b=a,c=!1,g=!this.b.Fd;g&&(this.b.Mn||(this.b.Mn=document.createElement("canvas"),d=this.b.Mn,d.width=this.b.ga,d.height=this.b.fa,this.b.$v=d.getContext("2d"),c=!0),d=this.b.Mn,b=this.b.$v,d.width!==this.b.ga&&(d.width=this.b.ga,c=!0),d.height!==this.b.fa&&(d.height=this.b.fa, c=!0),c&&this.b.Io(b,this.b.Va));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.Lu&&!this.yv()&&b.clearRect(0,0,this.b.ga,this.b.fa);var f,n,c=0;for(f=this.wa.length;c<f;c++)n=this.wa[c],n.visible&&0<n.opacity&&11!==n.Gc&&(n.k.length||!n.Qe)?n.td(b):n.op();g&&a.drawImage(d,0,0,this.b.width,this.b.height)};m.prototype.Hf=function(a){a.tx(!0);this.b.Lb||(this.b.Lb=a.Cd(this.b.ga,this.b.fa,this.b.Va));if(this.b.Lb.ye!==this.b.ga||this.b.Lb.xe!==this.b.fa)a.deleteTexture(this.b.Lb),this.b.Lb= a.Cd(this.b.ga,this.b.fa,this.b.Va);a.ge(this.b.Lb);this.b.Fd||a.dg(this.b.ga,this.b.fa);var d,b;for(d=this.wa.length-1;0<=d;--d)b=this.wa[d],b.visible&&1===b.opacity&&b.eg&&0===b.Gc&&(b.k.length||!b.Qe)?b.Hf(a):b.op();a.tx(!1)};m.prototype.Gb=function(a){var d=0<this.Ra.length||this.b.Dj||!this.b.Fd||this.b.cb;if(d){this.b.Lb||(this.b.Lb=a.Cd(this.b.ga,this.b.fa,this.b.Va));if(this.b.Lb.ye!==this.b.ga||this.b.Lb.xe!==this.b.fa)a.deleteTexture(this.b.Lb),this.b.Lb=a.Cd(this.b.ga,this.b.fa,this.b.Va); a.ge(this.b.Lb);this.b.Fd||a.dg(this.b.ga,this.b.fa)}else this.b.Lb&&(a.ge(null),a.deleteTexture(this.b.Lb),this.b.Lb=null);this.b.Lu&&!this.yv()&&a.clear(0,0,0,0);var b,c,g;b=0;for(c=this.wa.length;b<c;b++)g=this.wa[b],g.visible&&0<g.opacity&&(g.k.length||!g.Qe)?g.Gb(a):g.op();d&&(0===this.Ra.length||1===this.Ra.length&&this.b.Fd?(1===this.Ra.length?(d=this.Ra[0].index,a.od(this.Ra[0].Pb),a.qj(null,1/this.b.ga,1/this.b.fa,0,0,1,1,this.scale,this.q,0,0,this.b.ga/2,this.b.fa/2,this.b.zb.W,this.ub[d]), a.uo(this.Ra[0].Pb)&&(this.b.ta=!0)):a.od(0),this.b.Fd||a.dg(this.b.width,this.b.height),a.ge(null),a.qx(!1),a.sf(1),a.Bc(this.b.Lb),a.mx(),a.qf(),a.Se(),d=this.b.width/2,b=this.b.height/2,a.mj(-d,b,d,b,d,-b,-d,-b),a.Bc(null),a.qx(!0)):this.us(a,null,null,null))};m.prototype.lk=function(){return 0<this.Ra.length||this.b.Dj||!this.b.Fd||this.b.cb?this.b.Lb:null};m.prototype.tv=function(){var a=this.wa[0].Hd(),d,b,c;d=1;for(b=this.wa.length;d<b;d++)c=this.wa[d],(0!==c.ee||0!==c.Pd)&&c.Hd()<a&&(a=c.Hd()); return a};m.prototype.Es=function(a){if(!this.Yx){var d=1/this.tv()*this.b.ga/2;a>this.width-d&&(a=this.width-d);a<d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.ta=!0)};m.prototype.Fs=function(a){if(!this.Yx){var d=1/this.tv()*this.b.fa/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.b.ta=!0)};m.prototype.YB=function(){this.Es(this.scrollX);this.Fs(this.scrollY)};m.prototype.us=function(a,d,b,c){var g=b?b.Ra:d?d.Ra:this.Ra,f=1,n=0,h=0,r=0,k=this.b.ga,m=this.b.fa; b?(f=b.B.Hd(),n=b.B.Xb(),h=b.B.Ha,r=b.B.Ia,k=b.B.Ma,m=b.B.La):d&&(f=d.Hd(),n=d.Xb(),h=d.Ha,r=d.Ia,k=d.Ma,m=d.La);var E=this.b.Fq,H,D,u,x,S=0,T=1,N,F,R=this.b.ga,X=this.b.fa,ba=R/2,I=X/2,O=d?d.ag:this.ag,B=d?d.qs:this.qs,V=0,J=0,w=0,Q=0,K=R,ea=R,W=X,ka=X,U=u=0;x=b?b.B.Xb():0;if(b){H=0;for(D=g.length;H<D;H++)u+=a.OD(g[H].Pb),U+=a.PD(g[H].Pb);Q=b.ma;V=d.Uc(Q.left,Q.top,!0,!0);w=d.Uc(Q.left,Q.top,!1,!0);K=d.Uc(Q.right,Q.bottom,!0,!0);W=d.Uc(Q.right,Q.bottom,!1,!0);0!==x&&(H=d.Uc(Q.right,Q.top,!0,!0), D=d.Uc(Q.right,Q.top,!1,!0),J=d.Uc(Q.left,Q.bottom,!0,!0),Q=d.Uc(Q.left,Q.bottom,!1,!0),x=Math.min(V,K,H,J),K=Math.max(V,K,H,J),V=x,x=Math.min(w,W,D,Q),W=Math.max(w,W,D,Q),w=x);V-=u;w-=U;K+=u;W+=U;B.left=V/R;B.top=1-w/X;B.right=K/R;B.bottom=1-W/X;J=V=ua(V);Q=w=ua(w);ea=K=va(K);ka=W=va(W);J-=u;Q-=U;ea+=u;ka+=U;0>V&&(V=0);0>w&&(w=0);K>R&&(K=R);W>X&&(W=X);0>J&&(J=0);0>Q&&(Q=0);ea>R&&(ea=R);ka>X&&(ka=X);O.left=V/R;O.top=1-w/X;O.right=K/R;O.bottom=1-W/X}else O.left=B.left=0,O.top=B.top=0,O.right=B.right= 1,O.bottom=B.bottom=1;U=b&&(a.ll(g[0].Pb)||0!==u||0!==U||1!==b.opacity||b.type.Ba.Aw)||d&&!b&&1!==d.opacity;a.mx();if(U){E[S]||(E[S]=a.Cd(R,X,this.b.Va));if(E[S].ye!==R||E[S].xe!==X)a.deleteTexture(E[S]),E[S]=a.Cd(R,X,this.b.Va);a.od(0);a.ge(E[S]);F=ka-Q;a.clearRect(J,X-Q-F,ea-J,F);b?b.Gb(a):(a.Bc(this.b.ac),a.sf(d.opacity),a.qf(),a.translate(-ba,-I),a.Se(),a.Qd(V,W,K,W,K,w,V,w,O));B.left=B.top=0;B.right=B.bottom=1;b&&(x=O.top,O.top=O.bottom,O.bottom=x);S=1;T=0}a.sf(1);u=g.length-1;var ma=a.js(g[u].Pb)|| !d&&!b&&!this.b.Fd;H=x=0;for(D=g.length;H<D;H++){E[S]||(E[S]=a.Cd(R,X,this.b.Va));if(E[S].ye!==R||E[S].xe!==X)a.deleteTexture(E[S]),E[S]=a.Cd(R,X,this.b.Va);a.od(g[H].Pb);x=g[H].index;a.uo(g[H].Pb)&&(this.b.ta=!0);0!=H||U?(a.qj(c,1/R,1/X,B.left,B.top,B.right,B.bottom,f,n,h,r,(h+k)/2,(r+m)/2,this.b.zb.W,b?b.ub[x]:d?d.ub[x]:this.ub[x]),a.Bc(null),H!==u||ma?(a.ge(E[S]),F=ka-Q,N=X-Q-F,a.clearRect(J,N,ea-J,F)):(b?a.Vg(b.Qc,b.Kc):d&&a.Vg(d.Qc,d.Kc),a.ge(c)),a.Bc(E[T]),a.qf(),a.translate(-ba,-I),a.Se(), a.Qd(V,W,K,W,K,w,V,w,O),H!==u||ma||a.Bc(null)):(a.ge(E[S]),F=ka-Q,N=X-Q-F,a.clearRect(J,N,ea-J,F),b?(b.mb&&b.mb.H?(N=b.mb.H,T=1/N.width,N=1/N.height):(T=1/b.width,N=1/b.height),a.qj(c,T,N,B.left,B.top,B.right,B.bottom,f,n,h,r,(h+k)/2,(r+m)/2,this.b.zb.W,b.ub[x]),b.Gb(a)):(a.qj(c,1/R,1/X,0,0,1,1,f,n,h,r,(h+k)/2,(r+m)/2,this.b.zb.W,d?d.ub[x]:this.ub[x]),a.Bc(d?this.b.ac:this.b.Lb),a.qf(),a.translate(-ba,-I),a.Se(),a.Qd(V,W,K,W,K,w,V,w,O)),B.left=B.top=0,B.right=B.bottom=1,b&&!ma&&(x=W,W=w,w=x));S=0=== S?1:0;T=0===S?1:0}ma&&(a.od(0),b?a.Vg(b.Qc,b.Kc):d?a.Vg(d.Qc,d.Kc):this.b.Fd||(a.dg(this.b.width,this.b.height),ba=this.b.width/2,I=this.b.height/2,w=V=0,K=this.b.width,W=this.b.height),a.ge(c),a.Bc(E[T]),a.qf(),a.translate(-ba,-I),a.Se(),b&&1===g.length&&!U?a.Qd(V,w,K,w,K,W,V,W,O):a.Qd(V,W,K,W,K,w,V,w,O),a.Bc(null))};m.prototype.pn=function(a){var d,b;d=0;for(b=this.wa.length;d<b;d++)if(this.wa[d].Ea===a)return this.wa[d];return null};m.prototype.$a=function(){var a,d,b,c={sx:this.scrollX,sy:this.scrollY, s:this.scale,a:this.q,w:this.width,h:this.height,fv:this.xi,persist:this.Sg,fx:[],layers:{}};a=0;for(d=this.na.length;a<d;a++)b=this.na[a],c.fx.push({name:b.name,active:b.L,params:this.ub[b.index]});a=0;for(d=this.wa.length;a<d;a++)b=this.wa[a],c.layers[b.Ea.toString()]=b.$a();return c};m.prototype.eb=function(a){var d,b,c,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.Sg=a.persist;"undefined"!==typeof a.fv&&(this.xi=a.fv);var f=a.fx;d=0;for(b= f.length;d<b;d++)if(c=this.Kq(f[d].name))c.L=f[d].active,this.ub[c.index]=f[d].params;this.Re();d=a.layers;for(g in d)d.hasOwnProperty(g)&&(a=this.pn(parseInt(g,10)))&&a.eb(d[g])};Ib=m;h.prototype.Re=function(){C(this.Ra);this.eg=!0;var a,d,b;a=0;for(d=this.na.length;a<d;a++)b=this.na[a],b.L&&(this.Ra.push(b),b.Je||(this.eg=!1))};h.prototype.Kq=function(a){var d,b,c;d=0;for(b=this.na.length;d<b;d++)if(c=this.na[d],c.name===a)return c;return null};h.prototype.hC=function(){var a,d,c,g,f,n;d=a=0;for(c= this.Id.length;a<c;a++){g=this.Id[a];f=this.b.N[g[1]];n=this.b.$s(f);f=!0;if(!n||this.Kb.xi){g=this.b.Dg(g,this,!0);if(!g)continue;b.push(g);g.type.global&&(f=!1,this.Zj.push(g.uid))}f&&(this.Id[d]=this.Id[a],d++)}this.Id.length=d;this.b.Ec();!this.b.G&&this.na.length&&(this.Gc=this.MC);this.Wj=ib(this.Gc);this.b.U&&kb(this,this.Gc,this.b.U);this.Ke=!0};h.prototype.nj=function(a,d){var b=Ea(this.k,a);0>b||(d&&this.Ud&&a.ld&&a.ld.right>=a.ld.left&&(a.za(),this.Ac.update(a,a.ld,null),a.ld.set(0,0,-1, -1)),b===this.k.length-1?this.k.pop():(Aa(this.k,b),this.ul(b)),this.Ke=!0)};h.prototype.Rj=function(a,d){a.Te=this.k.length;this.k.push(a);d&&this.Ud&&a.ld&&a.V();this.Ke=!0};h.prototype.nF=function(a){this.k.unshift(a);this.ul(0)};h.prototype.QE=function(a,d,b){var c=a.gf();d=d.gf();Aa(this.k,c);c<d&&d--;b&&d++;d===this.k.length?this.k.push(a):this.k.splice(d,0,a);this.ul(c<d?c:d)};h.prototype.ul=function(a){-1===this.lg?this.lg=a:a<this.lg&&(this.lg=a);this.Ke=this.gi=!0};h.prototype.et=function(){if(this.gi){-1=== this.lg&&(this.lg=0);var a,d,b;if(this.Ud)for(a=this.lg,d=this.k.length;a<d;++a)b=this.k[a],b.Te=a,this.Ac.LE(b.ld);else for(a=this.lg,d=this.k.length;a<d;++a)this.k[a].Te=a;this.gi=!1;this.lg=-1}};h.prototype.Hd=function(a){return this.LD()*(this.b.Fd||a?this.b.Sj:1)};h.prototype.LD=function(){return(this.scale*this.Kb.scale-1)*this.Ue+1};h.prototype.Xb=function(){return this.Gf?0:La(this.Kb.q+this.q)};var a=[],d=[],n=[];h.prototype.Pq=function(){this.et();this.Ac.wo(this.Ha,this.Ia,this.Ma,this.La, n);if(!n.length)return f();if(1===n.length){var a=f();Ca(a,n[0]);C(n);return a}for(var b=!0;1<n.length;){for(var a=n,g=void 0,h=void 0,k=void 0,m=void 0,z=void 0,g=0,h=a.length;g<h-1;g+=2){var k=a[g],m=a[g+1],z=f(),t=k,r=m,P=z,A=0,E=0,H=0,D=t.length,u=r.length,x=void 0,S=void 0;for(P.length=D+u;A<D&&E<u;++H)x=t[A],S=r[E],x.Te<S.Te?(P[H]=x,++A):(P[H]=S,++E);for(;A<D;++A,++H)P[H]=t[A];for(;E<u;++E,++H)P[H]=r[E];b||(c(k),c(m));d.push(z)}1===h%2&&(b?(k=f(),Ca(k,a[h-1]),d.push(k)):d.push(a[h-1]));Ca(a, d);C(d);b=!1}a=n[0];C(n);return a};h.prototype.td=function(a){this.pf=this.jn||1!==this.opacity||0!==this.Gc;var d=this.b.canvas,b=a,g=!1;this.pf&&(this.b.Ln||(this.b.Ln=document.createElement("canvas"),d=this.b.Ln,d.width=this.b.ga,d.height=this.b.fa,this.b.Zv=d.getContext("2d"),g=!0),d=this.b.Ln,b=this.b.Zv,d.width!==this.b.ga&&(d.width=this.b.ga,g=!0),d.height!==this.b.fa&&(d.height=this.b.fa,g=!0),g&&this.b.Io(b,this.b.Va),this.Qe&&b.clearRect(0,0,this.b.ga,this.b.fa));b.globalAlpha=1;b.globalCompositeOperation= "source-over";this.Qe||(b.fillStyle="rgb("+this.ue[0]+","+this.ue[1]+","+this.ue[2]+")",b.fillRect(0,0,this.b.ga,this.b.fa));b.save();this.Gf=!0;var g=this.oc(0,0,!0,!0),f=this.oc(0,0,!1,!0);this.Gf=!1;this.b.Pc&&(g=Math.round(g),f=Math.round(f));this.Do(g,f,b);var n=this.Hd();b.scale(n,n);b.translate(-g,-f);this.Ud?(this.pc.left=this.Ac.Zc(this.Ha),this.pc.top=this.Ac.$c(this.Ia),this.pc.right=this.Ac.Zc(this.Ma),this.pc.bottom=this.Ac.$c(this.La),this.Ke||!this.pc.bk(this.Ti)?(c(this.Vf),g=this.Pq(), this.Ke=!1,this.Ti.oi(this.pc)):g=this.Vf):g=this.k;for(var h,t=null,f=0,n=g.length;f<n;++f)h=g[f],h!==t&&(this.GC(h,b),t=h);this.Ud&&(this.Vf=g);b.restore();this.pf&&(a.globalCompositeOperation=this.Wj,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};h.prototype.GC=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.za();var b=a.ma;b.right<this.Ha||b.bottom<this.Ia||b.left>this.Ma||b.top>this.La||(d.globalCompositeOperation=a.Wj,a.td(d))}};h.prototype.op=function(){this.Gf=!0;var a=this.oc(0, 0,!0,!0),d=this.oc(0,0,!1,!0);this.Gf=!1;this.b.Pc&&(a=Math.round(a),d=Math.round(d));this.Do(a,d,null)};h.prototype.Do=function(a,d,b){var c=this.Hd();this.Ha=a;this.Ia=d;this.Ma=a+1/c*this.b.ga;this.La=d+1/c*this.b.fa;this.Ha>this.Ma&&(a=this.Ha,this.Ha=this.Ma,this.Ma=a);this.Ia>this.La&&(a=this.Ia,this.Ia=this.La,this.La=a);a=this.Xb();0!==a&&(b&&(b.translate(this.b.ga/2,this.b.fa/2),b.rotate(-a),b.translate(this.b.ga/-2,this.b.fa/-2)),this.ig.set(this.Ha,this.Ia,this.Ma,this.La),this.ig.offset((this.Ha+ this.Ma)/-2,(this.Ia+this.La)/-2),this.Rx.zx(this.ig,a),this.Rx.Fu(this.ig),this.ig.offset((this.Ha+this.Ma)/2,(this.Ia+this.La)/2),this.Ha=this.ig.left,this.Ia=this.ig.top,this.Ma=this.ig.right,this.La=this.ig.bottom)};h.prototype.Hf=function(a){if(this.pf=this.jn){this.b.ac||(this.b.ac=a.Cd(this.b.ga,this.b.fa,this.b.Va));if(this.b.ac.ye!==this.b.ga||this.b.ac.xe!==this.b.fa)a.deleteTexture(this.b.ac),this.b.ac=a.Cd(this.b.ga,this.b.fa,this.b.Va);a.ge(this.b.ac)}this.Gf=!0;var d=this.oc(0,0,!0, !0),b=this.oc(0,0,!1,!0);this.Gf=!1;this.b.Pc&&(d=Math.round(d),b=Math.round(b));this.Do(d,b,null);d=this.Hd();a.qf();a.scale(d,d);a.zs(-this.Xb());a.translate((this.Ha+this.Ma)/-2,(this.Ia+this.La)/-2);a.Se();this.Ud?(this.pc.left=this.Ac.Zc(this.Ha),this.pc.top=this.Ac.$c(this.Ia),this.pc.right=this.Ac.Zc(this.Ma),this.pc.bottom=this.Ac.$c(this.La),this.Ke||!this.pc.bk(this.Ti)?(c(this.Vf),d=this.Pq(),this.Ke=!1,this.Ti.oi(this.pc)):d=this.Vf):d=this.k;for(var g,f=null,b=d.length-1;0<=b;--b)g=d[b], g!==f&&(this.IC(d[b],a),f=g);this.Ud&&(this.Vf=d);this.Qe||(this.jq=this.b.oh++,a.Jo(this.jq),a.nx(1,1,1),a.iv(),a.zF())};h.prototype.Gb=function(a){var d=0,b=0;if(this.pf=this.jn||1!==this.opacity||0<this.Ra.length||0!==this.Gc){this.b.ac||(this.b.ac=a.Cd(this.b.ga,this.b.fa,this.b.Va));if(this.b.ac.ye!==this.b.ga||this.b.ac.xe!==this.b.fa)a.deleteTexture(this.b.ac),this.b.ac=a.Cd(this.b.ga,this.b.fa,this.b.Va);a.ge(this.b.ac);this.Qe&&a.clear(0,0,0,0)}this.Qe||(this.b.cb?(a.Jo(this.jq),a.nx(this.ue[0]/ 255,this.ue[1]/255,this.ue[2]/255),a.iv(),a.RF()):a.clear(this.ue[0]/255,this.ue[1]/255,this.ue[2]/255,1));this.Gf=!0;var g=this.oc(0,0,!0,!0),d=this.oc(0,0,!1,!0);this.Gf=!1;this.b.Pc&&(g=Math.round(g),d=Math.round(d));this.Do(g,d,null);g=this.Hd();a.qf();a.scale(g,g);a.zs(-this.Xb());a.translate((this.Ha+this.Ma)/-2,(this.Ia+this.La)/-2);a.Se();this.Ud?(this.pc.left=this.Ac.Zc(this.Ha),this.pc.top=this.Ac.$c(this.Ia),this.pc.right=this.Ac.Zc(this.Ma),this.pc.bottom=this.Ac.$c(this.La),this.Ke|| !this.pc.bk(this.Ti)?(c(this.Vf),d=this.Pq(),this.Ke=!1,this.Ti.oi(this.pc)):d=this.Vf):d=this.k;var f,n,h=null,b=0;for(f=d.length;b<f;++b)n=d[b],n!==h&&(this.HC(d[b],a),h=n);this.Ud&&(this.Vf=d);this.pf&&(d=this.Ra.length?this.Ra[0].Pb:0,b=this.Ra.length?this.Ra[0].index:0,0===this.Ra.length||1===this.Ra.length&&!a.js(d)&&1===this.opacity?(1===this.Ra.length?(a.od(d),a.qj(this.Kb.lk(),1/this.b.ga,1/this.b.fa,0,0,1,1,g,this.Xb(),this.Ha,this.Ia,(this.Ha+this.Ma)/2,(this.Ia+this.La)/2,this.b.zb.W, this.ub[b]),a.uo(d)&&(this.b.ta=!0)):a.od(0),a.ge(this.Kb.lk()),a.sf(this.opacity),a.Bc(this.b.ac),a.Vg(this.Qc,this.Kc),a.qf(),a.Se(),g=this.b.ga/2,d=this.b.fa/2,a.mj(-g,d,g,d,g,-d,-g,-d),a.Bc(null)):this.Kb.us(a,this,null,this.Kb.lk()))};h.prototype.HC=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.za();var b=a.ma;b.right<this.Ha||b.bottom<this.Ia||b.left>this.Ma||b.top>this.La||(d.Jo(a.oh),a.fy?this.JC(a,d):(d.od(0),d.Vg(a.Qc,a.Kc),a.Gb(d)))}};h.prototype.IC=function(a,d){if(a.visible&& 0!==a.width&&0!==a.height){a.za();var b=a.ma;b.right<this.Ha||b.bottom<this.Ia||b.left>this.Ma||b.top>this.La||(a.oh=this.b.oh++,0===a.Gc&&1===a.opacity&&a.eg&&a.Hf&&(d.Jo(a.oh),a.Hf(d)))}};h.prototype.JC=function(a,d){var b=a.Ra[0].Pb,c=a.Ra[0].index,g=this.Hd();if(1!==a.Ra.length||d.js(b)||d.pF(b)||(a.q||a.B.Xb())&&d.ll(b)||1!==a.opacity||a.type.Ba.Aw)this.Kb.us(d,this,a,this.pf?this.b.ac:this.Kb.lk()),d.qf(),d.scale(g,g),d.zs(-this.Xb()),d.translate((this.Ha+this.Ma)/-2,(this.Ia+this.La)/-2),d.Se(); else{d.od(b);d.Vg(a.Qc,a.Kc);d.uo(b)&&(this.b.ta=!0);var f=0,n=0,h=0,r=0;d.ll(b)&&(r=a.ma,f=this.Uc(r.left,r.top,!0,!0),n=this.Uc(r.left,r.top,!1,!0),h=this.Uc(r.right,r.bottom,!0,!0),r=this.Uc(r.right,r.bottom,!1,!0),f=f/windowWidth,n=1-n/windowHeight,h=h/windowWidth,r=1-r/windowHeight);var k;a.mb&&a.mb.H?(k=a.mb.H,b=1/k.width,k=1/k.height):(b=1/a.width,k=1/a.height);d.qj(this.pf?this.b.ac:this.Kb.lk(),b,k,f,n,h,r,g,this.Xb(),this.Ha,this.Ia,(this.Ha+this.Ma)/2,(this.Ia+this.La)/2,this.b.zb.W,a.ub[c]); a.Gb(d)}};h.prototype.oc=function(a,d,b,c){var g=this.b.devicePixelRatio;this.b.Bh&&(a*=g,d*=g);var g=this.b.Vw,f=this.b.Ww,g=(this.Kb.scrollX-g)*this.ee+g,f=(this.Kb.scrollY-f)*this.Pd+f,n=g,h=f,r=1/this.Hd(!c);c?(n-=this.b.ga*r/2,h-=this.b.fa*r/2):(n-=this.b.width*r/2,h-=this.b.height*r/2);n+=a*r;h+=d*r;d=this.Xb();0!==d&&(n-=g,h-=f,a=Math.cos(d),d=Math.sin(d),c=n*a-h*d,h=h*a+n*d,n=c+g,h+=f);return b?n:h};h.prototype.Uc=function(a,d,b,c){var g=this.b.Vw,f=this.b.Ww,n=(this.Kb.scrollX-g)*this.ee+ g,h=(this.Kb.scrollY-f)*this.Pd+f,f=n,g=h,r=this.Xb();if(0!==r){a-=n;d-=h;var k=Math.cos(-r),r=Math.sin(-r),m=a*k-d*r;d=d*k+a*r;a=m+n;d+=h}n=1/this.Hd(!c);c?(f-=this.b.ga*n/2,g-=this.b.fa*n/2):(f-=this.b.width*n/2,g-=this.b.height*n/2);f=(a-f)/n;g=(d-g)/n;a=this.b.devicePixelRatio;this.b.Bh&&!c&&(f/=a,g/=a);return b?f:g};h.prototype.$a=function(){var a,d,b,c={s:this.scale,a:this.q,vl:this.Ha,vt:this.Ia,vr:this.Ma,vb:this.La,v:this.visible,bc:this.ue,t:this.Qe,px:this.ee,py:this.Pd,o:this.opacity, zr:this.Ue,fx:[],cg:this.Zj,instances:[]};a=0;for(d=this.na.length;a<d;a++)b=this.na[a],c.fx.push({name:b.name,active:b.L,params:this.ub[b.index]});return c};h.prototype.eb=function(a){var d,b,c;this.scale=a.s;this.q=a.a;this.Ha=a.vl;this.Ia=a.vt;this.Ma=a.vr;this.La=a.vb;this.visible=a.v;this.ue=a.bc;this.Qe=a.t;this.ee=a.px;this.Pd=a.py;this.opacity=a.o;this.Ue=a.zr;this.Zj=a.cg||[];Ca(this.Id,this.Gx);var g=new da;d=0;for(c=this.Zj.length;d<c;++d)g.add(this.Zj[d]);b=d=0;for(c=this.Id.length;d< c;++d)g.contains(this.Id[d][2])||(this.Id[b]=this.Id[d],++b);Ba(this.Id,b);b=a.fx;d=0;for(c=b.length;d<c;d++)if(a=this.Kq(b[d].name))a.L=b[d].active,this.ub[a.index]=b[d].params;this.Re();this.k.sort(k);this.gi=!0};Yb=h})(); (function(){function m(a,d){var b,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===d[0];case 2:return a[0]===d[0]&&a[1]===d[1];default:for(b=0;b<e;b++)if(a[b]!==d[b])return!1;return!0}}function k(a,d){return a.index-d.index}function h(a){var d,b,e,c;2===a.length?a[0].index>a[1].index&&(d=a[0],a[0]=a[1],a[1]=d):2<a.length&&a.sort(k);a.length>=v.length&&(v.length=a.length+1);v[a.length]||(v[a.length]=[]);c=v[a.length];d=0;for(b=c.length;d<b;d++)if(e=c[d],m(a,e))return e;c.push(a);return a} function f(a,d){this.b=a;this.Ux={};this.Zu={};this.Vq=!1;this.Bv=new da;this.pq=[];this.Yp=[];this.name=d[0];var b=d[1];this.Fg=[];var e,c;e=0;for(c=b.length;e<c;e++)this.Dv(b[e],null,this.Fg)}function c(a){this.type=a;this.k=[];this.ea=[];this.ba=!0}function b(a,d,b){this.sheet=a;this.parent=d;this.b=a.b;this.xa=[];this.Wg=[];this.zv=this.ip=this.Ws=this.yn=this.group=this.Ks=!1;this.Vb=[];this.Vd=[];this.ie=[];this.ok="";this.vh=this.yn=this.group=!1;this.Km=null;b[1]&&(this.ok=b[1][1].toLowerCase(), this.group=!0,this.yn=!!b[1][0],this.Km=[],this.vh=this.yn,this.b.ug.push(this),this.b.Di[this.ok]=this);this.Od=b[2];this.Ea=b[4];this.group||(this.b.Du[this.Ea.toString()]=this);var e=b[5];a=0;for(d=e.length;a<d;a++){var c=new Zb(this,e[a]);c.index=a;this.Vb.push(c);this.tu(c.type)}e=b[6];a=0;for(d=e.length;a<d;a++)c=new $b(this,e[a]),c.index=a,this.Vd.push(c);if(8===b.length)for(b=b[7],a=0,d=b.length;a<d;a++)this.sheet.Dv(b[a],this,this.ie);this.Gn=!1;this.Vb.length&&(this.Gn=null==this.Vb[0].type&& this.Vb[0].qc==L.prototype.j.ot)}function g(a,d){var b,e,c;if(a&&(-1===d.indexOf(a)&&d.push(a),a.tc))for(b=0,e=a.sd.length;b<e;b++)c=a.sd[b],a!==c&&-1===d.indexOf(c)&&d.push(c)}function a(a,d){this.Ad=a;this.sheet=a.sheet;this.b=a.b;this.ra=[];this.wb=[];this.Z={};this.index=-1;this.Pj=!1;this.qc=this.b.mg(d[1]);this.trigger=0<d[3];this.Yu=2===d[3];this.lf=d[4];this.xk=d[5];this.zE=d[6];this.Ea=d[7];this.b.Cg[this.Ea.toString()]=this;-1===d[0]?(this.type=null,this.Ob=this.Bs,this.fh=null,this.we= -1):(this.type=this.b.N[d[0]],this.Ob=this.zE?this.GF:this.As,d[2]?(this.fh=this.type.mn(d[2]),this.we=this.type.Hq(d[2])):(this.fh=null,this.we=-1),this.Ad.parent&&this.Ad.parent.Lo());this.Yu&&(this.Ob=this.HF);if(10===d.length){var b,e,c=d[9];b=0;for(e=c.length;b<e;b++){var g=new ac(this,c[b]);this.ra.push(g)}this.wb.length=c.length}}function d(a,d){this.Ad=a;this.sheet=a.sheet;this.b=a.b;this.ra=[];this.wb=[];this.Z={};this.index=-1;this.Pj=!1;this.qc=this.b.mg(d[1]);-1===d[0]?(this.type=null, this.Ob=this.Bs,this.fh=null,this.we=-1):(this.type=this.b.N[d[0]],this.Ob=this.As,d[2]?(this.fh=this.type.mn(d[2]),this.we=this.type.Hq(d[2])):(this.fh=null,this.we=-1));this.Ea=d[3];this.b.sg[this.Ea.toString()]=this;if(6===d.length){var b,e,c=d[5];b=0;for(e=c.length;b<e;b++){var g=new ac(this,c[b]);this.ra.push(g)}this.wb.length=c.length}}function n(){z++;y.length===z&&y.push(new bc);return y[z]}function e(a,d){this.lb=a;this.Ad=a.Ad;this.sheet=a.sheet;this.b=a.b;this.type=d[0];this.cf=null;this.fg= 0;this.get=null;this.Mu=0;this.Kb=null;this.key=0;this.object=null;this.index=0;this.Ml=this.Zh=this.Ml=this.Zh=this.bv=this.rh=this.Nl=null;this.le=!1;var b,e,c;switch(d[0]){case 0:case 7:this.cf=new cc(this,d[1]);this.fg=0;this.get=this.VD;break;case 1:this.cf=new cc(this,d[1]);this.fg=0;this.get=this.WD;break;case 5:this.cf=new cc(this,d[1]);this.fg=0;this.get=this.$D;break;case 3:case 8:this.Mu=d[1];this.get=this.TD;break;case 6:this.Kb=this.b.Cr[d[1]];this.get=this.aE;break;case 9:this.key=d[1]; this.get=this.ZD;break;case 4:this.object=this.b.N[d[1]];this.get=this.bE;this.Ad.tu(this.object);this.lb instanceof $b?this.Ad.Lo():this.Ad.parent&&this.Ad.parent.Lo();break;case 10:this.index=d[1];a.type&&a.type.P?(this.get=this.XD,this.le=!0):this.get=this.YD;break;case 11:this.Nl=d[1];this.rh=null;this.get=this.UD;break;case 2:case 12:this.bv=d[1];this.get=this.SD;break;case 13:for(this.get=this.cE,this.Zh=[],this.Ml=[],b=1,e=d.length;b<e;b++)c=new ac(this.lb,d[b]),this.Zh.push(c),this.Ml.push(0)}} function l(a,d,b){this.sheet=a;this.parent=d;this.b=a.b;this.xa=[];this.name=b[1];this.rp=b[2];this.I=b[3];this.Fk=!!b[4];this.Fn=!!b[5];this.Ea=b[6];this.b.Fj[this.Ea.toString()]=this;this.data=this.I;this.parent?(this.Kh=this.Fk||this.Fn?-1:this.b.TF++,this.b.RB.push(this)):(this.Kh=-1,this.b.QB.push(this))}function p(a,d,b){this.sheet=a;this.parent=d;this.b=a.b;this.xa=[];this.tk=null;this.jE=b[1];this.L=!0}function q(){this.Ix=[];this.reset(null)}var v=[];f.prototype.toString=function(){return this.name}; f.prototype.Dv=function(a,d,b){switch(a[0]){case 0:a=new dc(this,d,a);if(a.Od)for(b.push(a),b=0,d=a.Vb.length;b<d;b++)a.Vb[b].trigger&&this.Ev(a,b);else a.Qv()?this.Ev(a,0):b.push(a);break;case 1:a=new Vb(this,d,a);b.push(a);break;case 2:a=new ic(this,d,a),b.push(a)}};f.prototype.Bb=function(){var a,d;a=0;for(d=this.Fg.length;a<d;a++)this.Fg[a].Bb(a<d-1&&this.Fg[a+1].Gn)};f.prototype.bt=function(){C(this.pq);C(this.Yp);this.su(this);C(this.Yp)};f.prototype.su=function(a){var d,b,e,c,g=a.pq,f=a.Yp, l=this.Bv.ke();d=0;for(b=l.length;d<b;++d)e=l[d],c=e.tk,!e.L||a===c||-1<f.indexOf(c)||(f.push(c),c.su(a),g.push(c))};f.prototype.Ob=function(a){this.b.FH||(this.Vq=!0,a||(this.b.jr=!0));var d,b;d=0;for(b=this.Fg.length;d<b;d++){var e=this.Fg[d];e.Ob();this.b.iq(e.xa);this.b.Ig&&this.b.Ec()}a||(this.b.jr=!1)};f.prototype.Ev=function(a,d){a.Od||this.b.kp.push(a);var b,e,c=a.Vb[d],g;c.type?g=c.type.name:g="system";var f=(b=c.Yu)?this.Zu:this.Ux;f[g]||(f[g]=[]);g=f[g];f=c.qc;if(b){if(c.ra.length&&(c= c.ra[0],1===c.type&&2===c.cf.type)){c=c.cf.value.toLowerCase();b=0;for(e=g.length;b<e;b++)if(g[b].method==f){b=g[b].ck;b[c]?b[c].push([a,d]):b[c]=[[a,d]];return}b={};b[c]=[[a,d]];g.push({method:f,ck:b})}}else{b=0;for(e=g.length;b<e;b++)if(g[b].method==f){g[b].ck.push([a,d]);return}M&&f===M.prototype.j.ji?g.unshift({method:f,ck:[[a,d]]}):g.push({method:f,ck:[[a,d]]})}};Jb=f;c.prototype.wn=function(){return this.ba?this.type.k.length:this.k.length};c.prototype.Yb=function(){return this.ba?this.type.k: this.k};c.prototype.jj=function(a){a&&(a.b.pb().tb.Od?(this.ba&&(C(this.k),Ca(this.ea,a.type.k),this.ba=!1),a=this.ea.indexOf(a),-1!==a&&(this.k.push(this.ea[a]),this.ea.splice(a,1))):(this.ba=!1,C(this.k),this.k[0]=a))};qb=c;window._c2hh_="82DEAFBD5B22C4104AC451F1C8665F63D48C356E";b.prototype.Bb=function(a){var d,b=this.parent;if(this.group)for(this.ip=!0;b;){if(!b.group){this.ip=!1;break}b=b.parent}this.Ws=!this.Qv()&&(!this.parent||this.parent.group&&this.parent.ip);this.zv=!!a;this.Wg=this.xa.slice(0); for(b=this.parent;b;){a=0;for(d=b.xa.length;a<d;a++)this.MB(b.xa[a]);b=b.parent}this.xa=h(this.xa);this.Wg=h(this.Wg);a=0;for(d=this.Vb.length;a<d;a++)this.Vb[a].Bb();a=0;for(d=this.Vd.length;a<d;a++)this.Vd[a].Bb();a=0;for(d=this.ie.length;a<d;a++)this.ie[a].Bb(a<d-1&&this.ie[a+1].Gn)};b.prototype.sl=function(a){if(this.vh!==!!a){this.vh=!!a;var d;a=0;for(d=this.Km.length;a<d;++a)this.Km[a].$x();0<d&&this.b.Da.qh&&this.b.Da.qh.bt()}};b.prototype.tu=function(a){g(a,this.xa)};b.prototype.MB=function(a){g(a, this.Wg)};b.prototype.Lo=function(){this.Ks=!0;this.parent&&this.parent.Lo()};b.prototype.Qv=function(){return this.Vb.length?this.Vb[0].trigger:!1};b.prototype.Ob=function(){var a,d,b=!1,e=this.b,c=this.b.pb();c.tb=this;var g=this.Vb;this.Gn||(c.tq=!1);if(this.Od){0===g.length&&(b=!0);c.Eb=0;for(a=g.length;c.Eb<a;c.Eb++)d=g[c.Eb],d.trigger||(d=d.Ob())&&(b=!0);(c.Eh=b)&&this.Eo()}else{c.Eb=0;for(a=g.length;c.Eb<a;c.Eb++)if(d=g[c.Eb].Ob(),!d){c.Eh=!1;this.Ws&&e.Ig&&e.Ec();return}c.Eh=!0;this.Eo()}this.OC(c)}; b.prototype.OC=function(a){a.Eh&&this.zv&&(a.tq=!0);this.Ws&&this.b.Ig&&this.b.Ec()};b.prototype.EF=function(a){this.b.pb().tb=this;this.Vb[a].Ob()&&(this.Eo(),this.b.pb().Eh=!0)};b.prototype.Eo=function(){var a=this.b.pb(),d;a.ad=0;for(d=this.Vd.length;a.ad<d;a.ad++)if(this.Vd[a.ad].Ob())return;this.lx()};b.prototype.BF=function(){var a=this.b.pb(),d;for(d=this.Vd.length;a.ad<d;a.ad++)if(this.Vd[a.ad].Ob())return;this.lx()};b.prototype.lx=function(){if(this.ie.length){var a,d,b,e,c=this.ie.length- 1;this.b.vo(this);if(this.Ks)for(a=0,d=this.ie.length;a<d;a++)b=this.ie[a],(e=!this.ip||!this.group&&a<c)&&this.b.$f(b.xa),b.Ob(),e?this.b.fe(b.xa):this.b.iq(b.xa);else for(a=0,d=this.ie.length;a<d;a++)this.ie[a].Ob();this.b.po()}};b.prototype.FF=function(){var a=this.b.pb();a.tb=this;var d=!1,b;a.Eb=0;for(b=this.Vb.length;a.Eb<b;a.Eb++)if(this.Vb[a.Eb].Ob())d=!0;else if(!this.Od)return!1;return this.Od?d:!0};b.prototype.rf=function(){this.b.sh++;var a=this.b.pb().Eb,d=this.b.vo(this);if(!this.Od)for(d.Eb= a+1,a=this.Vb.length;d.Eb<a;d.Eb++)if(!this.Vb[d.Eb].Ob()){this.b.po();return}this.Eo();this.b.po()};b.prototype.qE=function(a){var d=a.index;if(0===d)return!0;for(--d;0<=d;--d)if(this.Vb[d].type===a.type)return!1;return!0};dc=b;a.prototype.Bb=function(){var a,d,b;a=0;for(d=this.ra.length;a<d;a++)b=this.ra[a],b.Bb(),b.le&&(this.Pj=!0)};a.prototype.HF=function(){return!0};a.prototype.Bs=function(){var a,d;a=0;for(d=this.ra.length;a<d;a++)this.wb[a]=this.ra[a].get();return Wa(this.qc.apply(this.b.uf, this.wb),this.xk)};a.prototype.GF=function(){var a,d;a=0;for(d=this.ra.length;a<d;a++)this.wb[a]=this.ra[a].get();a=this.qc.apply(this.fh?this.fh:this.type,this.wb);this.type.Rc();return a};a.prototype.As=function(){var a,d,b,e,c,g,f,l,n=this.type,h=n.aa(),p=this.Ad.Od&&!this.trigger;d=0;var k=n.tc,m=n.P,q=n.Mf,v=this.we,y=-1<v,z=this.Pj,O=this.ra,B=this.wb,V=this.xk,J=this.qc,w;if(z)for(d=0,c=O.length;d<c;++d)g=O[d],g.le||(B[d]=g.get(0));else for(d=0,c=O.length;d<c;++d)B[d]=O[d].get(0);if(h.ba){C(h.k); C(h.ea);w=n.k;a=0;for(e=w.length;a<e;++a){l=w[a];if(z)for(d=0,c=O.length;d<c;++d)g=O[d],g.le&&(B[d]=g.get(a));y?(d=0,m&&(d=l.type.wi[q]),d=J.apply(l.da[v+d],B)):d=J.apply(l,B);(f=Wa(d,V))?h.k.push(l):p&&h.ea.push(l)}n.finish&&n.finish(!0);h.ba=!1;n.Rc();return h.wn()}b=0;w=(f=p&&!this.Ad.qE(this))?h.ea:h.k;var Q=!1;a=0;for(e=w.length;a<e;++a){l=w[a];if(z)for(d=0,c=O.length;d<c;++d)g=O[d],g.le&&(B[d]=g.get(a));y?(d=0,m&&(d=l.type.wi[q]),d=J.apply(l.da[v+d],B)):d=J.apply(l,B);if(Wa(d,V))if(Q=!0,f){if(h.k.push(l), k)for(d=0,c=l.siblings.length;d<c;d++)g=l.siblings[d],g.type.aa().k.push(g)}else{w[b]=l;if(k)for(d=0,c=l.siblings.length;d<c;d++)g=l.siblings[d],g.type.aa().k[b]=g;b++}else if(f){w[b]=l;if(k)for(d=0,c=l.siblings.length;d<c;d++)g=l.siblings[d],g.type.aa().ea[b]=g;b++}else if(p&&(h.ea.push(l),k))for(d=0,c=l.siblings.length;d<c;d++)g=l.siblings[d],g.type.aa().ea.push(g)}Ba(w,b);if(k)for(m=n.sd,a=0,e=m.length;a<e;a++)l=m[a].aa(),f?Ba(l.ea,b):Ba(l.k,b);b=Q;if(f&&!Q)for(a=0,e=h.k.length;a<e;a++){l=h.k[a]; if(z)for(d=0,c=O.length;d<c;d++)g=O[d],g.le&&(B[d]=g.get(a));d=y?J.apply(l.da[v],B):J.apply(l,B);if(Wa(d,V)){Q=!0;break}}n.finish&&n.finish(b||p);return p?Q:h.wn()};Zb=a;d.prototype.Bb=function(){var a,d,b;a=0;for(d=this.ra.length;a<d;a++)b=this.ra[a],b.Bb(),b.le&&(this.Pj=!0)};d.prototype.Bs=function(){var a=this.b,d,b,e=this.ra,c=this.wb;d=0;for(b=e.length;d<b;++d)c[d]=e[d].get();return this.qc.apply(a.uf,c)};d.prototype.As=function(){var a=this.type,d=this.we,b=a.Mf,e=this.Pj,c=this.ra,g=this.wb, f=this.qc,l=a.aa().Yb(),a=a.P,n=-1<d,h,p,k,m,q,v;if(e)for(p=0,m=c.length;p<m;++p)q=c[p],q.le||(g[p]=q.get(0));else for(p=0,m=c.length;p<m;++p)g[p]=c[p].get(0);h=0;for(k=l.length;h<k;++h){v=l[h];if(e)for(p=0,m=c.length;p<m;++p)q=c[p],q.le&&(g[p]=q.get(h));n?(p=0,a&&(p=v.type.wi[b]),f.apply(v.da[d+p],g)):f.apply(v,g)}return!1};$b=d;var y=[],z=-1;e.prototype.Bb=function(){var a,d;if(11===this.type)this.rh=this.b.qv(this.Nl,this.Ad.parent);else if(13===this.type)for(a=0,d=this.Zh.length;a<d;a++)this.Zh[a].Bb(); this.cf&&this.cf.Bb()};e.prototype.NE=function(a){this.le||!a||a.Ba.Uo||(this.le=!0)};e.prototype.xx=function(){this.le=!0};e.prototype.VD=function(a){this.fg=a||0;a=n();this.cf.get(a);z--;return a.data};e.prototype.WD=function(a){this.fg=a||0;a=n();this.cf.get(a);z--;return la(a.data)?a.data:""};e.prototype.bE=function(){return this.object};e.prototype.TD=function(){return this.Mu};e.prototype.$D=function(a){this.fg=a||0;a=n();this.cf.get(a);z--;return a.lc()?this.b.yi(a.data):this.b.nn(a.data)}; e.prototype.aE=function(){return this.Kb};e.prototype.ZD=function(){return this.key};e.prototype.YD=function(){return this.index};e.prototype.XD=function(a){a=a||0;var d=this.lb.type,b=null,b=d.aa(),e=b.Yb();if(e.length)b=e[a%e.length].type;else if(b.ea.length)b=b.ea[a%b.ea.length].type;else if(d.k.length)b=d.k[a%d.k.length].type;else return 0;return this.index+b.an[d.Mf]};e.prototype.UD=function(){return this.rh};e.prototype.SD=function(){return this.bv};e.prototype.cE=function(){var a,d;a=0;for(d= this.Zh.length;a<d;a++)this.Ml[a]=this.Zh[a].get();return this.Ml};ac=e;l.prototype.Bb=function(){this.xa=h(this.xa)};l.prototype.Vh=function(a){var d=this.b.nv();this.parent&&!this.Fk&&d?(this.Kh>=d.length&&(d.length=this.Kh+1),d[this.Kh]=a):this.data=a};l.prototype.mk=function(){var a=this.b.nv();return!this.parent||this.Fk||!a||this.Fn?this.data:this.Kh>=a.length||"undefined"===typeof a[this.Kh]?this.I:a[this.Kh]};l.prototype.Ob=function(){!this.parent||this.Fk||this.Fn||this.Vh(this.I)};Vb=l; p.prototype.toString=function(){return"include:"+this.tk.toString()};p.prototype.Bb=function(){this.tk=this.b.vq[this.jE];this.sheet.Bv.add(this);this.xa=h(this.xa);for(var a=this.parent;a;)a.group&&a.Km.push(this),a=a.parent;this.$x()};p.prototype.Ob=function(){this.parent&&this.b.ml(this.b.N);this.tk.Vq||this.tk.Ob(!0);this.parent&&this.b.fe(this.b.N)};p.prototype.$x=function(){for(var a=this.parent;a;){if(a.group&&!a.vh){this.L=!1;return}a=a.parent}this.L=!0};ic=p;q.prototype.reset=function(a){this.tb= a;this.ad=this.Eb=0;C(this.Ix);this.tq=this.Eh=!1};q.prototype.fr=function(){return this.tb.Ks?!0:this.Eb<this.tb.Vb.length-1?!!this.tb.xa.length:!1};Ub=q})(); (function(){function m(b,a){this.lb=b;this.b=b.b;this.type=a[0];this.get=[this.fD,this.bD,this.oD,this.rD,this.RC,this.pD,this.jD,this.ZC,this.iD,this.nD,this.SC,this.mD,this.$C,this.kD,this.gD,this.hD,this.cD,this.dD,this.YC,this.qD,this.lD,this.eD,this.XC,this.aD][this.type];var d=null;this.Wf=this.ra=this.wb=this.qc=this.fp=this.second=this.first=this.value=null;this.we=-1;this.De=null;this.gy=-1;this.rh=this.Nl=null;this.oj=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= new cc(b,a[1]);break;case 18:this.first=new cc(b,a[1]);this.second=new cc(b,a[2]);this.fp=new cc(b,a[3]);break;case 19:this.qc=this.b.mg(a[1]);this.qc!==L.prototype.A.random&&this.qc!==L.prototype.A.Ku||this.lb.xx();this.wb=[];this.ra=[];3===a.length?(d=a[2],this.wb.length=d.length+1):this.wb.length=1;break;case 20:this.Wf=this.b.N[a[1]];this.we=-1;this.qc=this.b.mg(a[2]);this.oj=a[3];xc&&this.qc===xc.prototype.A.Ay&&this.lb.xx();a[4]?this.De=new cc(b,a[4]):this.De=null;this.wb=[];this.ra=[];6=== a.length?(d=a[5],this.wb.length=d.length+1):this.wb.length=1;break;case 21:this.Wf=this.b.N[a[1]];this.oj=a[2];a[3]?this.De=new cc(b,a[3]):this.De=null;this.gy=a[4];break;case 22:this.Wf=this.b.N[a[1]];this.Wf.mn(a[2]);this.we=this.Wf.Hq(a[2]);this.qc=this.b.mg(a[3]);this.oj=a[4];a[5]?this.De=new cc(b,a[5]):this.De=null;this.wb=[];this.ra=[];7===a.length?(d=a[6],this.wb.length=d.length+1):this.wb.length=1;break;case 23:this.Nl=a[1],this.rh=null}this.lb.NE(this.Wf);4<=this.type&&17>=this.type&&(this.first= new cc(b,a[1]),this.second=new cc(b,a[2]));if(d){var c,e;c=0;for(e=d.length;c<e;c++)this.ra.push(new cc(b,d[c]))}}function k(){++b;c.length===b&&c.push(new bc);return c[b]}function h(b,a,d){var c,e;c=0;for(e=b.length;c<e;++c)b[c].get(d),a[c+1]=d.data}function f(b,a){this.type=b||jc.ii;this.data=a||0;this.Lh=null;this.type==jc.ii&&(this.data=Math.floor(this.data))}m.prototype.Bb=function(){23===this.type&&(this.rh=this.lb.b.qv(this.Nl,this.lb.Ad.parent));this.first&&this.first.Bb();this.second&&this.second.Bb(); this.fp&&this.fp.Bb();this.De&&this.De.Bb();if(this.ra){var b,a;b=0;for(a=this.ra.length;b<a;b++)this.ra[b].Bb()}};var c=[],b=-1;m.prototype.qD=function(c){var a=this.ra,d=this.wb;d[0]=c;c=k();h(a,d,c);--b;this.qc.apply(this.b.uf,d)};m.prototype.lD=function(c){var a=this.Wf,d=this.wb,f=this.ra,e=this.De,l=this.qc,p=this.lb.fg,m=a.aa(),v=m.Yb();if(!v.length)if(m.ea.length)v=m.ea;else{this.oj?c.Xa(""):c.ca(0);return}d[0]=c;c.Lh=a;c=k();h(f,d,c);e&&(e.get(c),c.lc()&&(p=c.data,v=a.k));--b;a=v.length; if(p>=a||p<=-a)p%=a;0>p&&(p+=a);l.apply(v[p],d)};m.prototype.XC=function(c){var a=this.Wf,d=this.wb,f=this.ra,e=this.De,l=this.we,p=this.qc,m=this.lb.fg,v=a.aa(),y=v.Yb();if(!y.length)if(v.ea.length)y=v.ea;else{this.oj?c.Xa(""):c.ca(0);return}d[0]=c;c.Lh=a;c=k();h(f,d,c);e&&(e.get(c),c.lc()&&(m=c.data,y=a.k));--b;f=y.length;if(m>=f||m<=-f)m%=f;0>m&&(m+=f);m=y[m];y=0;a.P&&(y=m.type.wi[a.Mf]);p.apply(m.da[l+y],d)};m.prototype.eD=function(c){var a=this.De,d=this.Wf,f=this.gy,e=this.lb.fg,l=d.aa(),h= l.Yb();if(!h.length)if(l.ea.length)h=l.ea;else{this.oj?c.Xa(""):c.ca(0);return}if(a){l=k();a.get(l);if(l.lc()){e=l.data;h=d.k;0!==h.length&&(e%=h.length,0>e&&(e+=h.length));e=d.Nq(e);d=e.$b[f];la(d)?c.Xa(d):c.F(d);--b;return}--b}a=h.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=h[e];h=0;d.P&&(h=e.type.an[d.Mf]);d=e.$b[f+h];la(d)?c.Xa(d):c.F(d)};m.prototype.fD=function(b){b.type=jc.ii;b.data=this.value};m.prototype.bD=function(b){b.type=jc.hi;b.data=this.value};m.prototype.oD=function(b){b.type=jc.String; b.data=this.value};m.prototype.rD=function(b){this.first.get(b);b.lc()&&(b.data=-b.data)};m.prototype.RC=function(c){this.first.get(c);var a=k();this.second.get(a);c.lc()&&a.lc()&&(c.data+=a.data,a.Hi()&&c.Xi());--b};m.prototype.pD=function(c){this.first.get(c);var a=k();this.second.get(a);c.lc()&&a.lc()&&(c.data-=a.data,a.Hi()&&c.Xi());--b};m.prototype.jD=function(c){this.first.get(c);var a=k();this.second.get(a);c.lc()&&a.lc()&&(c.data*=a.data,a.Hi()&&c.Xi());--b};m.prototype.ZC=function(c){this.first.get(c); var a=k();this.second.get(a);c.lc()&&a.lc()&&(c.data/=a.data,c.Xi());--b};m.prototype.iD=function(c){this.first.get(c);var a=k();this.second.get(a);c.lc()&&a.lc()&&(c.data%=a.data,a.Hi()&&c.Xi());--b};m.prototype.nD=function(c){this.first.get(c);var a=k();this.second.get(a);c.lc()&&a.lc()&&(c.data=Math.pow(c.data,a.data),a.Hi()&&c.Xi());--b};m.prototype.SC=function(c){this.first.get(c);var a=k();this.second.get(a);a.Ki()||c.Ki()?this.UC(c,a):this.TC(c,a);--b};m.prototype.UC=function(b,a){b.Ki()&& a.Ki()?this.WC(b,a):this.VC(b,a)};m.prototype.WC=function(b,a){b.data+=a.data};m.prototype.VC=function(b,a){b.Ki()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Xa(b.data.toString()+a.data)};m.prototype.TC=function(b,a){b.ca(b.data&&a.data?1:0)};m.prototype.mD=function(c){this.first.get(c);var a=k();this.second.get(a);c.lc()&&a.lc()&&(c.data||a.data?c.ca(1):c.ca(0));--b};m.prototype.YC=function(b){this.first.get(b);b.data?this.second.get(b):this.fp.get(b)};m.prototype.$C=function(c){this.first.get(c); var a=k();this.second.get(a);c.ca(c.data===a.data?1:0);--b};m.prototype.kD=function(c){this.first.get(c);var a=k();this.second.get(a);c.ca(c.data!==a.data?1:0);--b};m.prototype.gD=function(c){this.first.get(c);var a=k();this.second.get(a);c.ca(c.data<a.data?1:0);--b};m.prototype.hD=function(c){this.first.get(c);var a=k();this.second.get(a);c.ca(c.data<=a.data?1:0);--b};m.prototype.cD=function(c){this.first.get(c);var a=k();this.second.get(a);c.ca(c.data>a.data?1:0);--b};m.prototype.dD=function(c){this.first.get(c); var a=k();this.second.get(a);c.ca(c.data>=a.data?1:0);--b};m.prototype.aD=function(b){var a=this.rh.mk();ja(a)?b.F(a):b.Xa(a)};cc=m;f.prototype.Hi=function(){return this.type===jc.hi};f.prototype.lc=function(){return this.type===jc.ii||this.type===jc.hi};f.prototype.Ki=function(){return this.type===jc.String};f.prototype.Xi=function(){this.Hi()||(this.Ki()&&(this.data=parseFloat(this.data)),this.type=jc.hi)};f.prototype.ca=function(b){this.type=jc.ii;this.data=Math.floor(b)};f.prototype.F=function(b){this.type= jc.hi;this.data=b};f.prototype.Xa=function(b){this.type=jc.String;this.data=b};f.prototype.rj=function(b){ja(b)?(this.type=jc.hi,this.data=b):la(b)?(this.type=jc.String,this.data=b.toString()):(this.type=jc.ii,this.data=0)};bc=f;jc={ii:0,hi:1,String:2}})();function L(m){this.b=m;this.qd=[]} L.prototype.$a=function(){var m={},k,h,f,c,b,g,a,d;m.waits=[];var n=m.waits,e;k=0;for(h=this.qd.length;k<h;k++){g=this.qd[k];e={t:g.time,st:g.Ex,s:g.Js,ev:g.vi.Ea,sm:[],sols:{}};g.vi.Vd[g.ad]&&(e.act=g.vi.Vd[g.ad].Ea);f=0;for(c=g.xa.length;f<c;f++)e.sm.push(g.xa[f].Ea);for(b in g.Wc)if(g.Wc.hasOwnProperty(b)){a=this.b.N[parseInt(b,10)];d={sa:g.Wc[b].Fo,insts:[]};f=0;for(c=g.Wc[b].Qf.length;f<c;f++)d.insts.push(g.Wc[b].Qf[f].uid);e.sols[a.Ea.toString()]=d}n.push(e)}return m}; L.prototype.eb=function(m){m=m.waits;var k,h,f,c,b,g,a,d,n,e,l;C(this.qd);k=0;for(h=m.length;k<h;k++)if(g=m[k],d=this.b.Du[g.ev.toString()]){n=-1;f=0;for(c=d.Vd.length;f<c;f++)if(d.Vd[f].Ea===g.act){n=f;break}if(-1!==n){a={Wc:{},xa:[],qq:!1};a.time=g.t;a.Ex=g.st||"";a.Js=!!g.s;a.vi=d;a.ad=n;f=0;for(c=g.sm.length;f<c;f++)(d=this.b.Bi(g.sm[f]))&&a.xa.push(d);for(b in g.sols)if(g.sols.hasOwnProperty(b)&&(d=this.b.Bi(parseInt(b,10)))){n=g.sols[b];e={Fo:n.sa,Qf:[]};f=0;for(c=n.insts.length;f<c;f++)(l= this.b.Ai(n.insts[f]))&&e.Qf.push(l);a.Wc[d.index.toString()]=e}this.qd.push(a)}}}; (function(){function m(){}function k(){}function h(){}var f=L.prototype;m.prototype.Ty=function(){return!0};m.prototype.Ot=function(){return!0};m.prototype.Nt=function(){return!0};m.prototype.Gy=function(a,b,c){return kc(a,b,c)};m.prototype.Fz=function(a){return a?a.visible:!1};m.prototype.BA=function(a){var b=this.b.pb(),c=b.tb,g=b.fr(),b=this.b.ms();if(g)for(g=0;g<a&&!b.nb;g++)this.b.$f(c.xa),b.index=g,c.rf(),this.b.fe(c.xa);else for(g=0;g<a&&!b.nb;g++)b.index=g,c.rf();this.b.gs();return!1};m.prototype.Uy= function(a,b,c){var g=this.b.pb(),f=g.tb,g=g.fr();a=this.b.ms(a);if(c<b)if(g)for(;b>=c&&!a.nb;--b)this.b.$f(f.xa),a.index=b,f.rf(),this.b.fe(f.xa);else for(;b>=c&&!a.nb;--b)a.index=b,f.rf();else if(g)for(;b<=c&&!a.nb;++b)this.b.$f(f.xa),a.index=b,f.rf(),this.b.fe(f.xa);else for(;b<=c&&!a.nb;++b)a.index=b,f.rf();this.b.gs();return!1};var c=[],b=-1;m.prototype.Vy=function(a){var g=a.aa();b++;c.length===b&&c.push([]);var e=c[b];Ca(e,g.Yb());var f=this.b.pb(),h=f.tb,k=f.fr(),f=this.b.ms(),m,y,z,t,r,P, A=a.tc;if(k)for(k=0,m=e.length;k<m&&!f.nb;k++){this.b.$f(h.xa);t=e[k];g=a.aa();g.ba=!1;C(g.k);g.k[0]=t;if(A)for(y=0,z=t.siblings.length;y<z;y++)r=t.siblings[y],P=r.type.aa(),P.ba=!1,C(P.k),P.k[0]=r;f.index=k;h.rf();this.b.fe(h.xa)}else for(g.ba=!1,C(g.k),k=0,m=e.length;k<m&&!f.nb;k++){t=e[k];g.k[0]=t;if(A)for(y=0,z=t.siblings.length;y<z;y++)r=t.siblings[y],P=r.type.aa(),P.ba=!1,C(P.k),P.k[0]=r;f.index=k;h.rf()}C(e);this.b.gs();b--;return!1};m.prototype.tA=function(a,g,e,f){var h,k,m,y;if(a){b++;c.length=== b&&c.push([]);var z=c[b],t=a.aa();Ca(z,t.Yb());t.ba&&C(t.ea);var r=this.b.Pf();m=h=0;for(k=z.length;h<k;h++)y=z[h],z[m]=y,g=r.ra[1].get(h),f=r.ra[3].get(h),kc(g,e,f)?m++:t.ea.push(y);Ba(z,m);t.ba=!1;Ca(t.k,z);C(z);b--;a.Rc();return!!t.k.length}};m.prototype.uA=function(a,g){var e,f,h,k;if(a){b++;c.length===b&&c.push([]);var m=c[b],y=a.aa();Ca(m,y.Yb());y.ba&&C(y.ea);var z=this.b.Pf();h=e=0;for(f=m.length;e<f;e++)k=m[e],m[h]=k,(g=z.ra[1].get(e))?h++:y.ea.push(k);Ba(m,h);y.ba=!1;Ca(y.k,m);C(m);b--; a.Rc();return!!y.k.length}};m.prototype.AB=function(){var a=this.b.Pf().Z;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.hg;a.TriggerOnce_lastTick=c;return this.b.Br||b!==c-1};m.prototype.Sy=function(a){var b=this.b.Pf(),c=b.Z.Every_lastTime||0,g=this.b.zb.W;"undefined"===typeof b.Z.Every_seconds&&(b.Z.Every_seconds=a);var f=b.Z.Every_seconds;if(g>=c+f)return b.Z.Every_lastTime=c+f,g>=b.Z.Every_lastTime+.04&&(b.Z.Every_lastTime=g),b.Z.Every_seconds= a,!0;g<c-.1&&(b.Z.Every_lastTime=g);return!1};m.prototype.xA=function(a){if(!a)return!1;var b=a.aa(),c=b.Yb(),g=ua(Math.random()*c.length);if(g>=c.length)return!1;b.jj(c[g]);a.Rc();return!0};m.prototype.Ny=function(a,b,c){return kc(a.mk(),b,c)};m.prototype.oz=function(a){return(a=this.b.Di[a.toLowerCase()])&&a.vh};m.prototype.xz=function(){return"undefined"!==typeof cr_is_preview};m.prototype.sA=function(a){if(!a||!a.k.length)return!1;a.aa().ba=!0;a.Rc();return!0};m.prototype.qz=function(){return this.b.zh}; m.prototype.Hy=function(a,b,c){return a>=b&&a<=c};m.prototype.ot=function(){var a=this.b.pb();return a.tq?!1:!a.Eh};m.prototype.Fp=function(){return!0};m.prototype.Rz=function(){return!0};m.prototype.Hp=function(){return!0};m.prototype.Tt=function(){return!0};m.prototype.dA=function(){return!0};m.prototype.em=function(){return!0};m.prototype.ry=function(a,b,c){return Pa(G(a),G(c))<=G(b)};m.prototype.mz=function(a,b){return Ta(G(a),G(b))};m.prototype.kz=function(a,b,c){a=Na(a);b=Na(b);c=Na(c);return Ta(c, b)?Ta(a,b)&&!Ta(a,c):!(!Ta(a,b)&&Ta(a,c))};f.j=new m;k.prototype.az=function(a){this.b.Mi||this.b.hh||(this.b.hh=a)};k.prototype.Py=function(a,b,c,g){if(b&&a&&(b=this.b.Mm(a,b,c,g))){this.b.Kd++;var f;this.b.trigger(Object.getPrototypeOf(a.Ba).j.yf,b);if(b.tc)for(c=0,g=b.siblings.length;c<g;c++)f=b.siblings[c],this.b.trigger(Object.getPrototypeOf(f.type.Ba).j.yf,f);this.b.Kd--;a=a.aa();a.ba=!1;C(a.k);a.k[0]=b;if(b.tc)for(c=0,g=b.siblings.length;c<g;c++)f=b.siblings[c],a=f.type.aa(),a.ba=!1,C(a.k), a.k[0]=f}};k.prototype.$A=function(a,b){a&&a.visible!==b&&(a.visible=b,this.b.ta=!0)};k.prototype.hB=function(a,b){0===a.rp?ja(b)?a.Vh(b):a.Vh(parseFloat(b)):1===a.rp&&a.Vh(b.toString())};k.prototype.ny=function(a,b){0===a.rp?ja(b)?a.Vh(a.mk()+b):a.Vh(a.mk()+parseFloat(b)):1===a.rp&&a.Vh(a.mk()+b.toString())};k.prototype.TA=function(a,b){var c=this.b.Di[a.toLowerCase()];if(c)switch(b){case 0:c.sl(!1);break;case 1:c.sl(!0);break;case 2:c.sl(!c.vh)}};k.prototype.gB=function(a){0>a&&(a=0);this.b.$g= a};var g=[],a=[];k.prototype.DB=function(b){if(!(0>b)){var c,e,f,h=this.b.pb(),k;g.length?k=g.pop():k={Wc:{},xa:[]};k.qq=!1;k.time=this.b.zb.W+b;k.Ex="";k.Js=!1;k.vi=h.tb;k.ad=h.ad+1;b=0;for(c=this.b.N.length;b<c;b++)f=this.b.N[b],e=f.aa(),e.ba&&-1===h.tb.xa.indexOf(f)||(k.xa.push(f),f=void 0,a.length?f=a.pop():f={Qf:[]},f.Fo=!1,f.Fo=e.ba,Ca(f.Qf,e.k),k.Wc[b.toString()]=f);this.qd.push(k);return!0}};k.prototype.GA=function(){if(!this.b.Mi&&!this.b.hh&&this.b.Da){this.b.hh=this.b.Da;var a,b,c;a=0; for(b=this.b.ug.length;a<b;a++)c=this.b.ug[a],c.sl(c.yn)}};f.n=new k;h.prototype["int"]=function(a,b){la(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};h.prototype["float"]=function(a,b){la(b)?(a.F(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.F(b)};h.prototype.XF=function(a,b){la(b)?a.Xa(b):a.Xa(b.toString())};h.prototype.random=function(a,b,c){void 0===c?a.F(Math.random()*b):a.F(Math.random()*(c-b)+b)};h.prototype.sqrt=function(a,b){a.F(Math.sqrt(b))};h.prototype.abs=function(a,b){a.F(Math.abs(b))}; h.prototype.round=function(a,b){a.ca(Math.round(b))};h.prototype.floor=function(a,b){a.ca(Math.floor(b))};h.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};h.prototype.sin=function(a,b){a.F(Math.sin(G(b)))};h.prototype.cos=function(a,b){a.F(Math.cos(G(b)))};h.prototype.tan=function(a,b){a.F(Math.tan(G(b)))};h.prototype.asin=function(a,b){a.F(Ja(Math.asin(b)))};h.prototype.acos=function(a,b){a.F(Ja(Math.acos(b)))};h.prototype.atan=function(a,b){a.F(Ja(Math.atan(b)))};h.prototype.exp=function(a,b){a.F(Math.exp(b))}; h.prototype.log10=function(a,b){a.F(Math.log(b)/Math.LN10)};h.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,g,f;c=2;for(g=arguments.length;c<g;c++)f=arguments[c],"number"===typeof f&&b<f&&(b=f);a.F(b)};h.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,g,f;c=2;for(g=arguments.length;c<g;c++)f=arguments[c],"number"===typeof f&&b>f&&(b=f);a.F(b)};h.prototype.Jf=function(a){a.F(this.b.Jf)};h.prototype.$g=function(a){a.F(this.b.$g)};h.prototype.time= function(a){a.F(this.b.zb.W)};h.prototype.hg=function(a){a.ca(this.b.hg)};h.prototype.Xn=function(a){a.ca(this.b.Xn)};h.prototype.Dq=function(a){a.ca(this.b.Dq)};h.prototype.KE=function(a,b){var c,g;if(this.b.Uk.length)if(b){for(g=this.b.Vk;0<=g;--g)if(c=this.b.Uk[g],c.name===b){a.ca(c.index);return}a.ca(0)}else c=this.b.ov(),a.ca(c?c.index:-1);else a.ca(0)};h.prototype.q=function(a,b,c,g,f){a.F(Ja(Oa(b,c,g,f)))};h.prototype.KF=function(a){a.F(this.b.Da.scrollX)};h.prototype.LF=function(a){a.F(this.b.Da.scrollY)}; h.prototype.FE=function(a,b,c,g){a.F(Xa(b,c,g))};h.prototype.dG=function(a,b){a.Xa(la(b)?b.toUpperCase():"")};h.prototype.cC=function(a,b,c,g){b<c?a.F(c):b>g?a.F(g):a.F(b)};h.prototype.BE=function(a,b){var c=this.b.kk(b);c?a.F(100*c.Pd):a.F(0)};h.prototype.EE=function(a){a.ca(this.b.Da.width)};h.prototype.CE=function(a){a.ca(this.b.Da.height)};h.prototype.left=function(a,b,c){a.Xa(la(b)?b.substr(0,c):"")};h.prototype.right=function(a,b,c){a.Xa(la(b)?b.substr(b.length-c):"")};h.prototype.aG=function(a, b,c,g){la(b)&&la(g)?(b=b.split(g),c=ua(c),0>c||c>=b.length?a.Xa(""):a.Xa(b[c])):a.Xa("")};h.prototype.bG=function(a,b,c){la(b)&&b.length?a.ca(b.split(c).length):a.ca(0)};h.prototype.replace=function(a,b,c,g){la(b)&&la(c)&&la(g)?a.Xa(b.replace(new RegExp(eb(c),"gi"),g)):a.Xa(la(b)?b:"")};h.prototype.trim=function(a,b){a.Xa(la(b)?b.trim():"")};h.prototype.DE=function(a){this.b.Da?a.Xa(this.b.Da.name):a.Xa("")};h.prototype.Ku=function(a){var b=ua(Math.random()*(arguments.length-1));a.rj(arguments[b+ 1])};h.prototype.rG=function(a,b,c){var g=0>b?"-":"";0>b&&(b=-b);c=c-b.toString().length;for(var f=0;f<c;f++)g+="0";a.Xa(g+b.toString())};h.prototype.lq=function(a){a.F(this.b.lq/1E3)};h.prototype.jG=function(a,b){var c=this.b.kk(b);a.F(c?c.Ha:0)};h.prototype.lG=function(a,b){var c=this.b.kk(b);a.F(c?c.Ia:0)};h.prototype.kG=function(a,b){var c=this.b.kk(b);a.F(c?c.Ma:0)};h.prototype.iG=function(a,b){var c=this.b.kk(b);a.F(c?c.La:0)};h.prototype.Hh=function(a){a.F(this.b.Hh)};h.prototype.dF=function(a){a.ca(this.b.kb)}; h.prototype.cF=function(a){a.ca(this.b.jb)};f.A=new h;f.DF=function(){var b,c,e,f,h,k,m=this.b.pb();b=0;for(e=this.qd.length;b<e;b++){f=this.qd[b];if(-1===f.time){if(!f.Js)continue}else if(f.time>this.b.zb.W)continue;m.tb=f.vi;m.ad=f.ad;m.Eb=0;for(c in f.Wc)f.Wc.hasOwnProperty(c)&&(h=this.b.N[parseInt(c,10)].aa(),k=f.Wc[c],h.ba=k.Fo,Ca(h.k,k.Qf),h=k,C(h.Qf),a.push(h));f.vi.BF();this.b.iq(f.xa);f.qq=!0}c=b=0;for(e=this.qd.length;b<e;b++)f=this.qd[b],this.qd[c]=f,f.qq?(Za(f.Wc),C(f.xa),g.push(f)):c++; Ba(this.qd,c)}})(); (function(){pb=function(k,h){var f=k[1],c=k[3],b=k[4],g=k[5],a=k[6],d=k[7],n=k[8];h.j||(h.j={});h.n||(h.n={});h.A||(h.A={});var e=h.j,l=h.n,p=h.A;c&&(e.mt=function(a,b){return kc(this.x,a,b)},e.nt=function(a,b){return kc(this.y,a,b)},e.rz=function(){var a=this.B;this.za();var b=this.ma;return!(b.right<a.Ha||b.bottom<a.Ia||b.left>a.Ma||b.top>a.La)},e.sz=function(){this.za();var a=this.ma,b=this.b.Da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.wA=function(a,b,d){var c=this.aa(), e=c.Yb();if(!e.length)return!1;var g=e[0],f=g,l=Va(g.x,g.y,b,d),h,p,k;h=1;for(p=e.length;h<p;h++)if(g=e[h],k=Va(g.x,g.y,b,d),0===a&&k<l||1===a&&k>l)l=k,f=g;c.jj(f);return!0},l.im=function(a){this.x!==a&&(this.x=a,this.V())},l.hu=function(a){this.y!==a&&(this.y=a,this.V())},l.hm=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.V()},l.Op=function(a,b){var d=a.MD(this);if(d){var c;d.uh?(c=d.uh(b,!0),d=d.uh(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.V()}},l.DG= function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.V())},l.CG=function(a,b){0!==b&&(this.x+=Math.cos(G(a))*b,this.y+=Math.sin(G(a))*b,this.V())},p.jm=function(a){a.F(this.x)},p.km=function(a){a.F(this.y)},p.Jf=function(a){a.F(this.b.ff(this))});b&&(e.Oy=function(a,b){return kc(this.width,a,b)},e.uG=function(a,b){return kc(this.height,a,b)},l.Sp=function(a){this.width!==a&&(this.width=a,this.V())},l.VA=function(a){this.height!==a&&(this.height=a,this.V())},l.Mj=function(a, b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.V()},p.ku=function(a){a.F(this.width)},p.Zl=function(a){a.F(this.height)},p.yy=function(a){this.za();a.F(this.ma.left)},p.sG=function(a){this.za();a.F(this.ma.top)},p.zy=function(a){this.za();a.F(this.ma.right)},p.xy=function(a){this.za();a.F(this.ma.bottom)});g&&(e.ry=function(a,b){return Pa(this.q,G(b))<=G(a)},e.mz=function(a){return Ta(this.q,G(a))},e.kz=function(a,b){var d=Na(a),c=Na(b),e=La(this.q);return Ta(c,d)?Ta(e,d)&& !Ta(e,c):!(!Ta(e,d)&&Ta(e,c))},l.IA=function(a){a=G(Ka(a));isNaN(a)||this.q===a||(this.q=a,this.V())},l.PG=function(a){0===a||isNaN(a)||(this.q+=G(a),this.q=La(this.q),this.V())},l.QG=function(a){0===a||isNaN(a)||(this.q-=G(a),this.q=La(this.q),this.V())},l.RG=function(a,b){var d=Sa(this.q,G(b),G(a));isNaN(d)||this.q===d||(this.q=d,this.V())},l.SG=function(a,b,d){a=Sa(this.q,Math.atan2(d-this.y,b-this.x),G(a));isNaN(a)||this.q===a||(this.q=a,this.V())},l.dH=function(a,b){var d=Math.atan2(b-this.y, a-this.x);isNaN(d)||this.q===d||(this.q=d,this.V())},p.qy=function(a){a.F(Ma(this.q))});f||(e.Yl=function(a,b,d){return kc(this.$b[a],b,d)},e.lz=function(a){return this.$b[a]},e.IG=function(a,b){var d=this.aa(),c=d.Yb();if(!c.length)return!1;var e=c[0],g=e,f=e.$b[b],l,h,p;l=1;for(h=c.length;l<h;l++)if(e=c[l],p=e.$b[b],0===a&&p<f||1===a&&p>f)f=p,g=e;d.jj(g);return!0},e.vA=function(a){var b,d,c,e,g;if(this.b.Pf().xk){g=this.aa();if(g.ba)for(g.ba=!1,C(g.k),C(g.ea),c=this.k,b=0,d=c.length;b<d;b++)e=c[b], e.uid===a?g.ea.push(e):g.k.push(e);else{c=b=0;for(d=g.k.length;b<d;b++)e=g.k[b],g.k[c]=e,e.uid===a?g.ea.push(e):c++;Ba(g.k,c)}this.Rc();return!!g.k.length}e=this.b.Ai(a);if(!e)return!1;g=this.aa();if(!g.ba&&-1===g.k.indexOf(e))return!1;if(this.P)for(a=e.type.ob,b=0,d=a.length;b<d;b++){if(a[b]===this)return g.jj(e),this.Rc(),!0}else if(e.type===this)return g.jj(e),this.Rc(),!0;return!1},e.yf=function(){return!0},e.Vz=function(){return!0},l.cu=function(a,b){var d=this.$b;ja(d[a])?d[a]=ja(b)?b:parseFloat(b): la(d[a])&&(d[a]=la(b)?b:b.toString())},l.ky=function(a,b){var d=this.$b;ja(d[a])?d[a]=ja(b)?d[a]+b:d[a]+parseFloat(b):la(d[a])&&(d[a]=la(b)?d[a]+b:d[a]+b.toString())},l.hH=function(a,b){var d=this.$b;ja(d[a])&&(d[a]=ja(b)?d[a]-b:d[a]-parseFloat(b))},l.OA=function(a,b){this.$b[a]=b?1:0},l.iH=function(a){this.$b[a]=1-this.$b[a]},l.Ry=function(){this.b.Ve(this)},l.Hz||(l.Hz=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.On(this,b,!0);this.oe&&this.oe();if(this.da)for(a=0,b=this.da.length;a< b;++a)d=this.da[a],d.oe&&d.oe()}),p.wG=function(a){var b=a.Lh.k.length,d,c,e;d=0;for(c=this.b.ze.length;d<c;d++)e=this.b.ze[d],a.Lh.P?0<=e.type.ob.indexOf(a.Lh)&&b++:e.type===a.Lh&&b++;a.ca(b)},p.JG=function(a){a.ca(a.Lh.aa().Yb().length)},p.BB=function(a){a.ca(this.uid)},p.xG=function(a){a.ca(this.nk())},p.Xl||(p.Xl=function(a){a.Xa(JSON.stringify(this.b.Cs(this,!0)))}));a&&(e.yt=function(){return this.visible},l.Rp=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ta=!0)},e.Jy=function(a, b){return kc(lb(100*this.opacity),a,b)},l.Np=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ta=!0)},p.Opacity=function(a){a.F(lb(100*this.opacity))});d&&(e.zG=function(a){return a?this.B===a:!1},e.yA=function(a){var b=this.aa(),d=b.Yb();if(!d.length)return!1;var c=d[0],e=c,g,f;g=1;for(f=d.length;g<f;g++)if(c=d[g],0===a){if(c.B.index>e.B.index||c.B.index===e.B.index&&c.gf()>e.gf())e=c}else if(c.B.index<e.B.index||c.B.index===e.B.index&&c.gf()<e.gf())e=c;b.jj(e);return!0}, l.zt=function(){var a=this.B,b=a.k;b.length&&b[b.length-1]===this||(a.nj(this,!1),a.Rj(this,!1),this.b.ta=!0)},l.Jz=function(){var a=this.B,b=a.k;b.length&&b[0]===this||(a.nj(this,!1),a.nF(this),this.b.ta=!0)},l.Kz=function(a){a&&a!=this.B&&(this.B.nj(this,!0),this.B=a,a.Rj(this,!0),this.b.ta=!0)},l.lu=function(a,b){var d=0===a;if(b){var c=b.Mq(this);c&&c.uid!==this.uid&&(this.B.index!==c.B.index&&(this.B.nj(this,!0),this.B=c.B,c.B.Rj(this,!0)),this.B.QE(this,c,d),this.b.ta=!0)}},p.BG=function(a){a.ca(this.B.Ew)}, p.AG=function(a){a.Xa(this.B.name)},p.kH=function(a){a.ca(this.gf())});n&&(l.VG=function(a,b){if(this.b.G){var d=this.type.Lq(b);if(!(0>d)){var c=1===a;this.rg[d]!==c&&(this.rg[d]=c,this.Re(),this.b.ta=!0)}}},l.WG=function(a,b,d){if(this.b.G){var c=this.type.Lq(a);0>c||(a=this.type.na[c],c=this.ub[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.G.QD(a.Pb,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.L&&(this.b.ta=!0))))}})};Kb=function(){this.hq=this.Bm=!0;this.type.um=!0;this.b.ta=!0;var k,h,f=this.aq;k=0;for(h= f.length;k<h;++k)f[k](this);this.B.Ud&&this.za()};Lb=function(k){k&&this.aq.push(k)};Nb=function(){if(this.Bm){var k=this.ma,h=this.Hc;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.Mc*this.width,-this.Nc*this.height);this.q?(k.offset(-this.x,-this.y),h.zx(k,this.q),h.offset(this.x,this.y),h.Fu(k)):h.Wh(k);k.normalize();this.Bm=!1;this.ey()}};var m=new xa(0,0,0,0);Ob=function(){if(this.B.Ud){var k=this.B.Ac,h=this.ma;m.set(k.Zc(h.left),k.$c(h.top),k.Zc(h.right),k.$c(h.bottom)); this.ld.bk(m)||(this.ld.right<this.ld.left?k.update(this,null,m):k.update(this,this.ld,m),this.ld.oi(m),this.B.Ke=!0)}};Pb=function(){if(this.hq&&this.Bd){this.za();var k=this.type.Vj,h=this.ma;m.set(k.Zc(h.left),k.$c(h.top),k.Zc(h.right),k.$c(h.bottom));this.Xd.bk(m)||(this.Xd.right<this.Xd.left?k.update(this,null,m):k.update(this,this.Xd,m),this.Xd.oi(m),this.hq=!1)}};Mb=function(k,h){return this.ma.Fb(k,h)&&this.Hc.Fb(k,h)?this.di?this.ZF(k,h):this.Ga&&!this.Ga.Ch()?(this.Ga.yg(this.width,this.height, this.q),this.Ga.Fb(k-this.x,h-this.y)):!0:!1};Gb=function(){this.type.mp();return this.yh};Sb=function(){this.B.et();return this.Te};Tb=function(){C(this.Ra);var k,h,f,c=!0;k=0;for(h=this.rg.length;k<h;k++)this.rg[k]&&(f=this.type.na[k],this.Ra.push(f),f.Je||(c=!1));this.fy=!!this.Ra.length;this.eg=c};Hb=function(){return"Inst"+this.bx};sb=function(k){if(k&&k.tc&&k.type!=this){var h,f,c;h=0;for(f=k.siblings.length;h<f;h++)if(c=k.siblings[h],c.type==this)return c}k=this.aa().Yb();return k.length?k[0]: null};tb=function(k){var h=this.aa().Yb();return h.length?h[k.nk()%h.length]:null};rb=function(){if(this.uj&&!this.P){var k,h;k=0;for(h=this.k.length;k<h;k++)this.k[k].yh=k;var f=k,c=this.b.ze;k=0;for(h=c.length;k<h;++k)c[k].type===this&&(c[k].yh=f++);this.uj=!1}};Eb=function(k){if(k<this.k.length)return this.k[k];k-=this.k.length;var h=this.b.ze,f,c;f=0;for(c=h.length;f<c;++f)if(h[f].type===this){if(0===k)return h[f];--k}return null};ub=function(){return this.gg[this.Ye]};vb=function(){this.Ye++; this.Ye===this.gg.length?this.gg.push(new qb(this)):(this.gg[this.Ye].ba=!0,C(this.gg[this.Ye].ea))};wb=function(){this.Ye++;this.Ye===this.gg.length&&this.gg.push(new qb(this));var k=this.gg[this.Ye],h=this.gg[this.Ye-1];h.ba?(k.ba=!0,C(k.ea)):(k.ba=!1,Ca(k.k,h.k),Ca(k.ea,h.ea))};xb=function(){this.Ye--};yb=function(k){var h,f,c,b,g,a=0;if(!this.P)for(h=0,f=this.ob.length;h<f;h++)for(g=this.ob[h],c=0,b=g.sb.length;c<b;c++){if(k===g.sb[c].name)return this.Z.lastBehIndex=a,g.sb[c];a++}h=0;for(f=this.sb.length;h< f;h++){if(k===this.sb[h].name)return this.Z.lastBehIndex=a,this.sb[h];a++}return null};Bb=function(k){return this.mn(k)?this.Z.lastBehIndex:-1};Cb=function(k){var h,f;h=0;for(f=this.na.length;h<f;h++)if(this.na[h].name===k)return h;return-1};Db=function(){if(this.tc&&!this.P){var k,h,f,c,b,g,a;this.mp();g=this.aa();var d=g.ba,n=(k=this.b.pb())&&k.tb&&k.tb.Od;k=0;for(h=this.sd.length;k<h;k++)if(b=this.sd[k],b!==this&&(b.mp(),a=b.aa(),a.ba=d,!d)){C(a.k);f=0;for(c=g.k.length;f<c;++f)a.k[f]=b.Nq(g.k[f].yh); if(n)for(C(a.ea),f=0,c=g.ea.length;f<c;++f)a.ea[f]=b.Nq(g.ea[f].yh)}}};Fb=function(){return"Type"+this.Ea};kc=function(k,h,f){if("undefined"===typeof k||"undefined"===typeof f)return!1;switch(h){case 0:return k===f;case 1:return k!==f;case 2:return k<f;case 3:return k<=f;case 4:return k>f;case 5:return k>=f;default:return!1}}})();var uc={};function yc(m){this.b=m} (function(){function m(){return a.length?a.pop():[]}function k(b){var c,e;c=0;for(e=b.length;c<e;c++)Array.isArray(b[c])&&k(b[c]);C(b);a.push(b)}function h(){}function f(){}function c(){}var b=yc.prototype;b.T=function(a){this.Ba=a;this.b=a.b};b.T.prototype.J=function(){};b.M=function(a){this.type=a;this.b=a.b};var g=b.M.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});g.J=function(){this.Jc=this.u[0];this.cd=this.u[1];this.Dd=this.u[2]; this.zc||(this.te=m());var a=this.te;a.length=this.Jc;var b,c,g;for(b=0;b<this.Jc;b++)for(a[b]||(a[b]=m()),a[b].length=this.cd,c=0;c<this.cd;c++)for(a[b][c]||(a[b][c]=m()),a[b][c].length=this.Dd,g=0;g<this.Dd;g++)a[b][c][g]=0;this.dv=[];this.gv=[];this.hv=[];this.Nf=-1};g.wd=function(){var a;for(a=0;a<this.Jc;a++)k(this.te[a]);C(this.te)};g.bd=function(a,b,c){a=Math.floor(a);b=Math.floor(b);c=Math.floor(c);return isNaN(a)||0>a||a>this.Jc-1||isNaN(b)||0>b||b>this.cd-1||isNaN(c)||0>c||c>this.Dd-1?0: this.te[a][b][c]};g.set=function(a,b,c,g){a=Math.floor(a);b=Math.floor(b);c=Math.floor(c);isNaN(a)||0>a||a>this.Jc-1||isNaN(b)||0>b||b>this.cd-1||isNaN(c)||0>c||c>this.Dd-1||(this.te[a][b][c]=g)};g.DD=function(){return JSON.stringify({c2array:!0,size:[this.Jc,this.cd,this.Dd],data:this.te})};g.$a=function(){return{size:[this.Jc,this.cd,this.Dd],data:this.te}};g.eb=function(a){var b=a.size;this.Jc=b[0];this.cd=b[1];this.Dd=b[2];this.te=a.data};g.dg=function(a,b,c){0>a&&(a=0);0>b&&(b=0);0>c&&(c=0); if(this.Jc!==a||this.cd!==b||this.Dd!==c){this.Jc=a;this.cd=b;this.Dd=c;var g,f,h=this.te;h.length=a;for(a=0;a<this.Jc;a++)for(ia(h[a])&&(h[a]=m()),h[a].length=b,g=0;g<this.cd;g++)for(ia(h[a][g])&&(h[a][g]=m()),h[a][g].length=c,f=0;f<this.Dd;f++)ia(h[a][g][f])&&(h[a][g][f]=0)}};g.Vu=function(){return 0<=this.Nf&&this.Nf<this.dv.length?this.dv[this.Nf]:0};g.Tv=function(){return 0<=this.Nf&&this.Nf<this.gv.length?this.gv[this.Nf]:0};g.tH=function(){return 0<=this.Nf&&this.Nf<this.hv.length?this.hv[this.Nf]: 0};h.prototype.mt=function(a,b,c){return kc(this.bd(a,0,0),b,c)};g.wg=function(a){this.b.$f(a.xa);a.rf();this.b.fe(a.xa)};h.prototype.ut=function(){return 0===this.Jc||0===this.cd||0===this.Dd};b.j=new h;f.prototype.Mj=function(a,b,c){this.dg(a,b,c)};f.prototype.im=function(a,b){this.set(a,0,0,b)};f.prototype.ki=function(a){var b=0,c=0,g=this.te;if(0!==this.Jc&&0!==this.cd&&0!==this.Dd)switch(a){case 0:g.reverse();break;case 1:for(;b<this.Jc;b++)g[b].reverse();break;case 2:for(;b<this.Jc;b++)for(c= 0;c<this.cd;c++)g[b][c].reverse()}};f.prototype.Dp=function(a){var b;try{b=JSON.parse(a)}catch(c){return}b.c2array&&(a=b.size,this.Jc=a[0],this.cd=a[1],this.Dd=a[2],this.te=b.data)};b.n=new f;c.prototype.wy=function(a,b,c,g){a.rj(this.bd(b,c||0,g||0))};c.prototype.ku=function(a){a.ca(this.Jc)};c.prototype.Zl=function(a){a.ca(this.cd)};c.prototype.Xl=function(a){a.Xa(this.DD())};b.A=new c})();function zc(m){this.b=m} (function(){function m(a){-1===Qb.indexOf(a)&&Qb.push(a)}function k(a){var b=a.C,d;try{d=b.play()}catch(c){m(a);return}d?d.catch(function(){m(a)}):id&&!I.Ld&&m(a)}function h(){var a,b,d,c;jd||ec||!w||(f(),"running"===w.state&&(jd=!0));var e=Qb.slice(0);C(Qb);if(!U)for(a=0,b=e.length;a<b;++a)d=e[a],d.nb||d.ud||(c=d.C.play())&&c.catch(function(){m(d)})}function f(){"suspended"===w.state&&w.resume&&w.resume();if(w.createBuffer){var a=w.createBuffer(1,220,22050),b=w.createBufferSource();b.buffer=a;b.connect(w.destination); n(b)}}function c(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function b(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function g(a){a=a.toLowerCase();return na.hasOwnProperty(a)&&na[a].length?na[a][0].Gd():w.destination}function a(){return w.createGain?w.createGain():w.createGainNode()}function d(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function n(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function e(a,b,d,c){a.start?a.start(c||0,b):a.noteGrainOn(c|| 0,b,d-b)}function l(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function p(b,d,c,e,g,f){this.type="filter";this.Ab=[b,d,c,e,g,f];this.Ja=a();this.la=a();this.la.gain.value=f;this.ka=a();this.ka.gain.value=1-f;this.Hb=w.createBiquadFilter();this.Hb.type="number"===typeof this.Hb.type?b:wd[b];this.Hb.frequency.value=d;this.Hb.detune&&(this.Hb.detune.value=c);this.Hb.Q.value=e;this.Hb.gain.value=g;this.Ja.connect(this.Hb);this.Ja.connect(this.ka);this.Hb.connect(this.la)}function q(b,c,e){this.type= "delay";this.Ab=[b,c,e];this.Ja=a();this.la=a();this.la.gain.value=e;this.ka=a();this.ka.gain.value=1-e;this.Wk=a();this.$d=d(b);this.$d.delayTime.value=b;this.Tm=a();this.Tm.gain.value=c;this.Ja.connect(this.Wk);this.Ja.connect(this.ka);this.Wk.connect(this.la);this.Wk.connect(this.$d);this.$d.connect(this.Tm);this.Tm.connect(this.Wk)}function v(b,d,c,e){this.type="convolve";this.Ab=[d,c,e];this.Ja=a();this.la=a();this.la.gain.value=c;this.ka=a();this.ka.gain.value=1-c;this.ih=w.createConvolver(); b&&(this.ih.normalize=d,this.ih.buffer=b);this.Ja.connect(this.ih);this.Ja.connect(this.ka);this.ih.connect(this.la)}function y(b,c,e,g,f){this.type="flanger";this.Ab=[b,c,e,g,f];this.Ja=a();this.ka=a();this.ka.gain.value=1-f/2;this.la=a();this.la.gain.value=f/2;this.bn=a();this.bn.gain.value=g;this.$d=d(b+c);this.$d.delayTime.value=b;this.nc=w.createOscillator();this.nc.frequency.value=e;this.yd=a();this.yd.gain.value=c;this.Ja.connect(this.$d);this.Ja.connect(this.ka);this.$d.connect(this.la);this.$d.connect(this.bn); this.bn.connect(this.$d);this.nc.connect(this.yd);this.yd.connect(this.$d.delayTime);n(this.nc)}function z(b,d,c,e,g,f){this.type="phaser";this.Ab=[b,d,c,e,g,f];this.Ja=a();this.ka=a();this.ka.gain.value=1-f/2;this.la=a();this.la.gain.value=f/2;this.Hb=w.createBiquadFilter();this.Hb.type="number"===typeof this.Hb.type?7:"allpass";this.Hb.frequency.value=b;this.Hb.detune&&(this.Hb.detune.value=d);this.Hb.Q.value=c;this.nc=w.createOscillator();this.nc.frequency.value=g;this.yd=a();this.yd.gain.value= e;this.Ja.connect(this.Hb);this.Ja.connect(this.ka);this.Hb.connect(this.la);this.nc.connect(this.yd);this.yd.connect(this.Hb.frequency);n(this.nc)}function t(b){this.type="gain";this.Ab=[b];this.Pa=a();this.Pa.gain.value=b}function r(b,d){this.type="tremolo";this.Ab=[b,d];this.Pa=a();this.Pa.gain.value=1-d/2;this.nc=w.createOscillator();this.nc.frequency.value=b;this.yd=a();this.yd.gain.value=d/2;this.nc.connect(this.yd);this.yd.connect(this.Pa.gain);n(this.nc)}function P(b,d){this.type="ringmod"; this.Ab=[b,d];this.Ja=a();this.la=a();this.la.gain.value=d;this.ka=a();this.ka.gain.value=1-d;this.rl=a();this.rl.gain.value=0;this.nc=w.createOscillator();this.nc.frequency.value=b;this.nc.connect(this.rl.gain);n(this.nc);this.Ja.connect(this.rl);this.Ja.connect(this.ka);this.rl.connect(this.la)}function A(b,d,c,e,g){this.type="distortion";this.Ab=[b,d,c,e,g];this.Ja=a();this.ro=a();this.qo=a();this.MF(c,Math.pow(10,e/20));this.la=a();this.la.gain.value=g;this.ka=a();this.ka.gain.value=1-g;this.tp= w.createWaveShaper();this.Rm=new Float32Array(65536);this.AD(b,d);this.tp.Rm=this.Rm;this.Ja.connect(this.ro);this.Ja.connect(this.ka);this.ro.connect(this.tp);this.tp.connect(this.qo);this.qo.connect(this.la)}function E(a,b,d,c,e){this.type="compressor";this.Ab=[a,b,d,c,e];this.Pa=w.createDynamicsCompressor();try{this.Pa.threshold.value=a,this.Pa.knee.value=b,this.Pa.ratio.value=d,this.Pa.attack.value=c,this.Pa.release.value=e}catch(g){}}function H(a,b){this.type="analyser";this.Ab=[a,b];this.Pa= w.createAnalyser();this.Pa.fftSize=a;this.Pa.smoothingTimeConstant=b;this.yD=new Float32Array(this.Pa.frequencyBinCount);this.Cx=new Uint8Array(a);this.il=0}function D(){this.Wa=null;this.Pn=0}function u(b,d){this.src=b;this.Fa=J;this.jf=d;this.qm=!1;var c=this;this.Yi=this.hj=null;this.ij=[];this.Go=0;this.jt=this.$m=this.Hx=this.ko=!1;1===J&&d&&!Rb&&(this.Fa=0,this.hj=a());this.Cf=this.Na=null;var e;switch(this.Fa){case 0:this.Na=new Audio;this.Na.crossOrigin="anonymous";this.Na.addEventListener("canplaythrough", function(){c.jt=!0});1===J&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Hx=!0,this.Na.addEventListener("canplay",function(){!c.Yi&&c.Na&&(c.Yi=w.createMediaElementSource(c.Na),c.Yi.connect(c.hj))}));this.Na.autoplay=!1;this.Na.BH="auto";this.Na.src=b;break;case 1:I.En?I.av(b,function(a){c.Cf=a;c.Qu()},function(){c.$m=!0}):(e=new XMLHttpRequest,e.open("GET",b,!0),e.responseType="arraybuffer",e.onload=function(){c.Cf=e.response;c.Qu()},e.onerror=function(){c.$m=!0},e.send()); break;case 2:this.Na=!0;break;case 3:this.Na=!0}}function x(b,d){var c=this;this.tag=d;this.nb=this.ef=!0;this.src=b.src;this.buffer=b;this.Fa=J;this.jf=b.jf;this.playbackRate=1;this.Fi=!0;this.ud=this.Rd=!1;this.md=0;this.Ek=this.Ii=this.lf=!1;this.volume=1;this.Zr=function(a){if(!c.ud&&!c.Rd){var b=this;b||(b=a.target);b===c.om&&(c.Fi=!0,c.nb=!0,B=c.tag,I.trigger(zc.prototype.j.Lj,O))}};this.om=null;this.Gi=1===ka&&!this.jf||2===ka;this.Zi=1;this.startTime=this.Gi?I.zb.W:I.kg.W;this.Mb=this.Wb= null;this.mf=!1;this.vc=null;this.Sw=this.Rw=this.Qw=this.Pw=this.Uw=this.Tw=0;this.C=null;var e=!1;1!==this.Fa||0!==this.buffer.Fa||this.buffer.Hx||(this.Fa=0);switch(this.Fa){case 0:this.jf?(this.C=b.Na,e=!b.qm,b.qm=!0):(this.C=new Audio,this.C.crossOrigin="anonymous",this.C.autoplay=!1,this.C.src=b.Na.src,e=!0);e&&this.C.addEventListener("ended",function(){B=c.tag;c.nb=!0;I.trigger(zc.prototype.j.Lj,O)});break;case 1:this.Wb=a();this.Wb.connect(g(d));1===this.buffer.Fa?b.Na&&(this.C=w.createBufferSource(), this.C.buffer=b.Na,this.C.connect(this.Wb)):(this.C=this.buffer.Na,this.buffer.hj.connect(this.Wb),this.buffer.qm||(this.buffer.qm=!0,this.buffer.Na.addEventListener("ended",function(){B=c.tag;c.nb=!0;I.trigger(zc.prototype.j.Lj,O)})));break;case 2:this.C=new window.Media(V+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Fi=!0,c.nb=!0,B=c.tag,I.trigger(zc.prototype.j.Lj,O))});break;case 3:this.C=!0}}function S(a,b){var d=a.Kg()?1:0,c=b.Kg()?1:0;return d===c?0:d<c?1:-1}function T(a, b){C(Ha);if(a.length){var d,c,e;d=0;for(c=K.length;d<c;d++)e=K[d],mb(a,e.tag)&&Ha.push(e);b&&Ha.sort(S)}else ea&&!ea.xh()&&(C(Ha),Ha[0]=ea)}function N(a,b){na.hasOwnProperty(a)?na[a].push(b):na[a]=[b];var d,c,e,g,f=w.destination;if(na.hasOwnProperty(a)&&(e=na[a],e.length))for(f=e[0].Gd(),d=0,c=e.length;d<c;d++)g=e[d],d+1===c?g.Yd(w.destination):g.Yd(e[d+1].Gd());T(a);d=0;for(c=Ha.length;d<c;d++)Ha[d].vF(f);jb&&hc===a&&(jb.disconnect(),jb.connect(f))}function F(){}function R(){}function X(){}var ba= zc.prototype;ba.T=function(a){this.Ba=a;this.b=a.b};ba.T.prototype.J=function(){};var I=null,O=null,B="",V="",J=0,w=null,Q=[],K=[],ea=null,W=!1,ka=0,U=!1,ma=1,Ra=0,Qa=0,ec=!1,fc=1,gc=1,hd=10,kd=1E4,ld=1,jb=null,hc="",id=!1,Qb=[],Rb=!1,jd=!1;document.addEventListener("touchend",h,!0);document.addEventListener("click",h,!0);document.addEventListener("keydown",h,!0);var na={},wd="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");p.prototype.Yd=function(a){this.la.disconnect(); this.la.connect(a);this.ka.disconnect();this.ka.connect(a)};p.prototype.remove=function(){this.Ja.disconnect();this.Hb.disconnect();this.la.disconnect();this.ka.disconnect()};p.prototype.Gd=function(){return this.Ja};q.prototype.Yd=function(a){this.la.disconnect();this.la.connect(a);this.ka.disconnect();this.ka.connect(a)};q.prototype.remove=function(){this.Ja.disconnect();this.Wk.disconnect();this.$d.disconnect();this.Tm.disconnect();this.la.disconnect();this.ka.disconnect()};q.prototype.Gd=function(){return this.Ja}; v.prototype.Yd=function(a){this.la.disconnect();this.la.connect(a);this.ka.disconnect();this.ka.connect(a)};v.prototype.remove=function(){this.Ja.disconnect();this.ih.disconnect();this.la.disconnect();this.ka.disconnect()};v.prototype.Gd=function(){return this.Ja};y.prototype.Yd=function(a){this.ka.disconnect();this.ka.connect(a);this.la.disconnect();this.la.connect(a)};y.prototype.remove=function(){this.Ja.disconnect();this.$d.disconnect();this.nc.disconnect();this.yd.disconnect();this.ka.disconnect(); this.la.disconnect();this.bn.disconnect()};y.prototype.Gd=function(){return this.Ja};z.prototype.Yd=function(a){this.ka.disconnect();this.ka.connect(a);this.la.disconnect();this.la.connect(a)};z.prototype.remove=function(){this.Ja.disconnect();this.Hb.disconnect();this.nc.disconnect();this.yd.disconnect();this.ka.disconnect();this.la.disconnect()};z.prototype.Gd=function(){return this.Ja};t.prototype.Yd=function(a){this.Pa.disconnect();this.Pa.connect(a)};t.prototype.remove=function(){this.Pa.disconnect()}; t.prototype.Gd=function(){return this.Pa};r.prototype.Yd=function(a){this.Pa.disconnect();this.Pa.connect(a)};r.prototype.remove=function(){this.nc.disconnect();this.yd.disconnect();this.Pa.disconnect()};r.prototype.Gd=function(){return this.Pa};P.prototype.Yd=function(a){this.la.disconnect();this.la.connect(a);this.ka.disconnect();this.ka.connect(a)};P.prototype.remove=function(){this.nc.disconnect();this.rl.disconnect();this.Ja.disconnect();this.la.disconnect();this.ka.disconnect()};P.prototype.Gd= function(){return this.Ja};A.prototype.MF=function(a,b){.01>a&&(a=.01);this.ro.gain.value=a;this.qo.gain.value=Math.pow(1/a,.6)*b};A.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};A.prototype.AD=function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,d,c),this.Rm[32768+g]=e,this.Rm[32768-g-1]=-e};A.prototype.Yd=function(a){this.la.disconnect();this.la.connect(a);this.ka.disconnect(); this.ka.connect(a)};A.prototype.remove=function(){this.Ja.disconnect();this.ro.disconnect();this.tp.disconnect();this.qo.disconnect();this.la.disconnect();this.ka.disconnect()};A.prototype.Gd=function(){return this.Ja};E.prototype.Yd=function(a){this.Pa.disconnect();this.Pa.connect(a)};E.prototype.remove=function(){this.Pa.disconnect()};E.prototype.Gd=function(){return this.Pa};H.prototype.Qa=function(){this.Pa.getFloatFrequencyData(this.yD);this.Pa.getByteTimeDomainData(this.Cx);for(var a=this.Pa.fftSize, d=0,c=this.il=0,e=0;d<a;d++)e=(this.Cx[d]-128)/128,0>e&&(e=-e),this.il<e&&(this.il=e),c+=e*e;this.il=b(this.il);b(Math.sqrt(c/a))};H.prototype.Yd=function(a){this.Pa.disconnect();this.Pa.connect(a)};H.prototype.remove=function(){this.Pa.disconnect()};H.prototype.Gd=function(){return this.Pa};D.prototype.tl=function(a){this.Wa=a};D.prototype.vn=function(){return!!this.Wa};D.prototype.Qa=function(){};u.prototype.wF=function(){var a,b,d,c;d=a=0;for(b=K.length;a<b;++a)c=K[a],K[d]=c,c.buffer===this?c.stop(): ++d;K.length=d;this.Yi&&(this.Yi.disconnect(),this.Yi=null);this.hj&&(this.hj.disconnect(),this.hj=null);this.Cf=this.Na=null};u.prototype.Qu=function(){if(!this.Na&&this.Cf){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Cf,function(b){a.Na=b;a.Cf=null;var d,c,e;if(ia(a.no)||U)ia(a.Lm)||(d=a.Lm.ih,d.normalize=a.Dw,d.buffer=b);else if(a.ij.length){d=0;for(c=a.ij.length;d<c;d++){b=a.ij[d];e=new x(a,b.Lx);e.Hs(!0);if("undefined"!==typeof b.Fw&&(b.Wa=I.Ai(b.Fw),!b.Wa))continue;if(b.Wa){var g= Ua(b.Wa.x,b.Wa.y,-b.Wa.B.Xb(),Ra,Qa,!0),f=Ua(b.Wa.x,b.Wa.y,-b.Wa.B.Xb(),Ra,Qa,!1);e.Gs(g,f,Ja(b.Wa.q-b.Wa.B.Xb()),b.Wq,b.Rr,b.Ur);e.tl(b.Wa)}else e.Gs(b.x,b.y,b.li,b.Wq,b.Rr,b.Ur);e.play(a.Jr,a.it,a.Go);a.ko&&e.pause();K.push(e)}C(a.ij)}else e=new x(a,a.no||""),e.play(a.Jr,a.it,a.Go),a.ko&&e.pause(),K.push(e)},function(){a.$m=!0});else if(this.Na=w.createBuffer(this.Cf,!1),this.Cf=null,ia(this.no)||U)ia(this.Lm)||(b=this.Lm.ih,b.normalize=this.Dw,b.buffer=this.Na);else{var b=new x(this,this.no);b.play(this.Jr, this.it,this.Go);this.ko&&b.pause();K.push(b)}}};u.prototype.Nv=function(){switch(this.Fa){case 0:var a=4<=this.Na.readyState;a&&(this.jt=!0);return a||this.jt;case 1:return!!this.Cf||!!this.Na;case 2:return!0;case 3:return!0}return!1};u.prototype.rE=function(){switch(this.Fa){case 0:return this.Nv();case 1:return!!this.Na;case 2:return!0;case 3:return!0}return!1};u.prototype.hE=function(){switch(this.Fa){case 0:return!!this.Na.error;case 1:return this.$m}return!1};x.prototype.xh=function(){switch(this.Fa){case 0:return this.C.ended; case 1:return 1===this.buffer.Fa?!this.ef&&!this.nb&&this.C.loop||this.ud?!1:this.Fi:this.C.ended;case 2:return this.Fi;case 3:!0}return!0};x.prototype.aC=function(){return this.ef||this.nb?!0:this.xh()};x.prototype.Hs=function(a){1===J&&(!this.mf&&a?this.Wb&&(this.Mb||(this.Mb=w.createPanner(),this.Mb.panningModel="number"===typeof this.Mb.panningModel?fc:["equalpower","HRTF","soundfield"][fc],this.Mb.distanceModel="number"===typeof this.Mb.distanceModel?gc:["linear","inverse","exponential"][gc], this.Mb.refDistance=hd,this.Mb.maxDistance=kd,this.Mb.rolloffFactor=ld),this.Wb.disconnect(),this.Wb.connect(this.Mb),this.Mb.connect(g(this.tag)),this.mf=!0):this.mf&&!a&&this.Wb&&(this.Mb.disconnect(),this.Wb.disconnect(),this.Wb.connect(g(this.tag)),this.mf=!1))};x.prototype.Gs=function(a,b,d,c,e,g){this.mf&&1===J&&(this.Mb.setPosition(a,b,0),this.Mb.setOrientation(Math.cos(G(d)),Math.sin(G(d)),0),this.Mb.coneInnerAngle=c,this.Mb.coneOuterAngle=e,this.Mb.coneOuterGain=g,this.Tw=a,this.Uw=b,this.Pw= d,this.Qw=c,this.Rw=e,this.Sw=g)};x.prototype.tl=function(a){this.mf&&1===J&&(this.vc||(this.vc=new D),this.vc.tl(a))};x.prototype.Qa=function(a){if(this.mf&&1===J&&this.vc&&this.vc.vn()&&this.Kg()){this.vc.Qa(a);a=this.vc.Wa;var b=Ua(a.x,a.y,-a.B.Xb(),Ra,Qa,!0),d=Ua(a.x,a.y,-a.B.Xb(),Ra,Qa,!1);this.Mb.setPosition(b,d,0);b=0;"undefined"!==typeof this.vc.Wa.q&&(b=a.q-a.B.Xb(),this.Mb.setOrientation(Math.cos(b),Math.sin(b),0))}};x.prototype.play=function(a,b,d,c){var g=this.C;this.lf=a;this.volume= b;d=d||0;c=c||0;switch(this.Fa){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==b*ma&&(g.volume=b*ma);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==d)try{g.currentTime=d}catch(f){}k(this);break;case 1:this.muted=!1;this.Zi=1;if(1===this.buffer.Fa)this.Wb.gain.value=b*ma,this.ef||(this.C=w.createBufferSource(),this.C.buffer=this.buffer.Na,this.C.connect(this.Wb)),this.C.onended=this.Zr,this.om=this.C,this.C.loop=a,this.Fi=!1,0===d?n(this.C,c):e(this.C,d,this.Hg(),c);else{1!== g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=b*ma;if(g.currentTime!==d)try{g.currentTime=d}catch(h){}k(this)}break;case 2:(!this.ef&&this.nb||0!==d)&&g.seekTo(d);g.play();this.Fi=!1;break;case 3:I.Oc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Gi?I.zb.W:I.kg.W)-d;this.ud=this.nb=this.ef=!1};x.prototype.stop=function(){switch(this.Fa){case 0:this.C.paused||this.C.pause();break;case 1:1===this.buffer.Fa?l(this.C): this.C.paused||this.C.pause();break;case 2:this.C.stop();break;case 3:I.Oc&&AppMobi.context.stopSound(this.src)}this.nb=!0;this.ud=!1};x.prototype.pause=function(){if(!(this.ef||this.nb||this.xh()||this.ud)){switch(this.Fa){case 0:this.C.paused||this.C.pause();break;case 1:1===this.buffer.Fa?(this.md=this.Oq(!0),this.lf&&(this.md=this.md%this.Hg()),this.ud=!0,l(this.C)):this.C.paused||this.C.pause();break;case 2:this.C.pause();break;case 3:I.Oc&&AppMobi.context.stopSound(this.src)}this.ud=!0}};x.prototype.AF= function(){if(!(this.ef||this.nb||this.xh())&&this.ud){switch(this.Fa){case 0:k(this);break;case 1:1===this.buffer.Fa?(this.C=w.createBufferSource(),this.C.buffer=this.buffer.Na,this.C.connect(this.Wb),this.C.onended=this.Zr,this.om=this.C,this.C.loop=this.lf,this.Wb.gain.value=ma*this.volume*this.Zi,this.np(),this.startTime=(this.Gi?I.zb.W:I.kg.W)-this.md/(this.playbackRate||.001),e(this.C,this.md,this.Hg())):k(this);break;case 2:this.C.play();break;case 3:I.Oc&&AppMobi.context.resumeSound(this.src)}this.ud= !1}};x.prototype.seek=function(a){if(!(this.ef||this.nb||this.xh()))switch(this.Fa){case 0:try{this.C.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.Fa)this.ud?this.md=a:(this.pause(),this.md=a,this.AF());else try{this.C.currentTime=a}catch(d){}break;case 3:I.Oc&&AppMobi.context.seekSound(this.src,a)}};x.prototype.vF=function(a){1===this.Fa&&(this.mf?(this.Mb.disconnect(),this.Mb.connect(a)):(this.Wb.disconnect(),this.Wb.connect(a)))};x.prototype.Hg=function(){var a=0;switch(this.Fa){case 0:"undefined"!== typeof this.C.duration&&(a=this.C.duration);break;case 1:a=this.buffer.Na.duration;break;case 2:a=this.C.getDuration();break;case 3:I.Oc&&(a=AppMobi.context.getDurationSound(this.src))}return a};x.prototype.Oq=function(a){var b=this.Hg(),d=0;switch(this.Fa){case 0:"undefined"!==typeof this.C.currentTime&&(d=this.C.currentTime);break;case 1:if(1===this.buffer.Fa){if(this.ud)return this.md;d=(this.Gi?I.zb.W:I.kg.W)-this.startTime}else"undefined"!==typeof this.C.currentTime&&(d=this.C.currentTime);break; case 3:I.Oc&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.lf&&d>b&&(d=b);return d};x.prototype.Kg=function(){return!this.ud&&!this.ef&&!this.nb&&!this.xh()};x.prototype.SF=function(){return!this.ef&&!this.nb&&!this.xh()};x.prototype.cy=function(){var a=this.volume*ma;isFinite(a)||(a=0);switch(this.Fa){case 0:"undefined"!==typeof this.C.volume&&this.C.volume!==a&&(this.C.volume=a);break;case 1:1===this.buffer.Fa?this.Wb.gain.value=a*this.Zi:"undefined"!==typeof this.C.volume&& this.C.volume!==a&&(this.C.volume=a)}};x.prototype.Xm=function(a){switch(this.Fa){case 0:this.C.muted!==!!a&&(this.C.muted=!!a);break;case 1:1===this.buffer.Fa?(this.Zi=a?0:1,this.Wb.gain.value=ma*this.volume*this.Zi):this.C.muted!==!!a&&(this.C.muted=!!a)}};x.prototype.NF=function(){this.Ii=!0;this.Xm(this.Ii||this.Ek)};x.prototype.Ko=function(a){this.Ek=!!a;this.Xm(this.Ii||this.Ek)};x.prototype.np=function(){var a=this.playbackRate;this.Gi&&(a*=I.$g);switch(this.Fa){case 0:this.C.playbackRate!== a&&(this.C.playbackRate=a);break;case 1:1===this.buffer.Fa?this.C.playbackRate.value!==a&&(this.C.playbackRate.value=a):this.C.playbackRate!==a&&(this.C.playbackRate=a)}};x.prototype.QF=function(a){switch(this.Fa){case 0:a?this.Kg()?(this.Rd=!0,this.C.pause()):this.Rd=!1:this.Rd&&(this.C.play(),this.Rd=!1);break;case 1:a?this.Kg()?(this.Rd=!0,1===this.buffer.Fa?(this.md=this.Oq(!0),this.lf&&(this.md=this.md%this.Hg()),l(this.C)):this.C.pause()):this.Rd=!1:this.Rd&&(1===this.buffer.Fa?(this.C=w.createBufferSource(), this.C.buffer=this.buffer.Na,this.C.connect(this.Wb),this.C.onended=this.Zr,this.om=this.C,this.C.loop=this.lf,this.Wb.gain.value=ma*this.volume*this.Zi,this.np(),this.startTime=(this.Gi?I.zb.W:I.kg.W)-this.md/(this.playbackRate||.001),e(this.C,this.md,this.Hg())):this.C.play(),this.Rd=!1);break;case 2:a?this.Kg()?(this.C.pause(),this.Rd=!0):this.Rd=!1:this.Rd&&(this.Rd=!1,this.C.play())}};ba.M=function(a){this.type=a;I=this.b=a.b;O=this;this.vd=null;this.Lk=-600;this.b.En&&(Rb=!0);!(this.b.Li||this.b.An&& (this.b.cr||this.b.Bn))||this.b.Dn||this.b.ib||this.b.Jv||Rb||(id=!0);w=null;"undefined"!==typeof AudioContext?(J=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(J=1,w=new webkitAudioContext);this.b.Li&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==J&&(this.b.Tc&&"undefined"!==typeof window.Media?J=2:this.b.Kv&&(J=3));2===J&&(V=location.href,a=V.lastIndexOf("/"),-1<a&&(V=V.substr(0, a+1)),V=V.replace("file://",""));if(this.b.sE&&this.b.tE&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed."),this.b.Ve(this);else{if(this.b.Oc)W=this.b.An;else try{W=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){W=!1}this.b.Zg(this)}};var Ia=ba.M.prototype;Ia.J=function(){this.b.mi=this;ka=this.u[0];this.bg=this.u[1];this.fF=0!==this.u[2];this.Bw=0;fc=this.u[3];gc=this.u[4];this.Lk= -this.u[5];hd=this.u[6];kd=this.u[7];ld=this.u[8];this.vd=new D;var a=this.b.ga||this.b.width,b=this.b.fa||this.b.height;1===J&&(w.listener.setPosition(a/2,b/2,this.Lk),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){jb&&jb.disconnect();hc=b.toLowerCase();jb=w.createMediaStreamSource(a);jb.connect(g(hc))});this.b.uu(function(a){O.$E(a)});var d=this;this.b.pm(function(a){d.el(a)})};Ia.el=function(a){var b,d,c;b=0;for(d=K.length;b<d;b++)c=K[b],c.vc&&c.vc.Wa===a&&(c.vc.Wa= null,c.mf&&c.Kg()&&c.lf&&c.stop());this.vd.Wa===a&&(this.vd.Wa=null)};Ia.$a=function(){var a={silent:U,masterVolume:ma,listenerZ:this.Lk,listenerUid:this.vd.vn()?this.vd.Wa.uid:-1,playing:[],effects:{}},b=a.playing,d,c,e,g,f,h;d=0;for(c=K.length;d<c;d++)e=K[d],!e.SF()||3===this.bg||e.jf&&1===this.bg||!e.jf&&2===this.bg||(g=e.Oq(),e.lf&&(g=g%e.Hg()),g={tag:e.tag,buffersrc:e.buffer.src,is_music:e.jf,playbackTime:g,volume:e.volume,looping:e.lf,muted:e.Ii,playbackRate:e.playbackRate,paused:e.ud,resume_position:e.md}, e.mf&&(g.pan={},h=g.pan,e.vc&&e.vc.vn()?h.objUid=e.vc.Wa.uid:(h.x=e.Tw,h.y=e.Uw,h.a=e.Pw),h.ia=e.Qw,h.oa=e.Rw,h.og=e.Sw),b.push(g));b=a.effects;for(f in na)if(na.hasOwnProperty(f)){e=[];d=0;for(c=na[f].length;d<c;d++)e.push({type:na[f][d].type,params:na[f][d].Ab});b[f]=e}return a};var zb=[];Ia.eb=function(a){var b=a.silent;ma=a.masterVolume;this.Lk=a.listenerZ;this.vd.tl(null);var d=a.listenerUid;-1!==d&&(this.vd.Pn=d,zb.push(this.vd));var d=a.playing,c,e,g,f,h,l,k,m,n,u,F;if(3!==this.bg)for(c=0, e=K.length;c<e;c++)n=K[c],n.jf&&1===this.bg||(n.jf||2!==this.bg)&&n.stop();for(h in na)if(na.hasOwnProperty(h))for(c=0,e=na[h].length;c<e;c++)na[h][c].remove();Za(na);for(h in a.effects)if(a.effects.hasOwnProperty(h))for(l=a.effects[h],c=0,e=l.length;c<e;c++)switch(g=l[c].type,u=l[c].params,g){case "filter":N(h,new p(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":N(h,new q(u[0],u[1],u[2]));break;case "convolve":g=u[2];n=this.ln(g,!1);n.Na?g=new v(n.Na,u[0],u[1],g):(g=new v(null,u[0],u[1],g),n.Dw= u[0],n.Lm=g);N(h,g);break;case "flanger":N(h,new y(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":N(h,new z(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":N(h,new t(u[0]));break;case "tremolo":N(h,new r(u[0],u[1]));break;case "ringmod":N(h,new P(u[0],u[1]));break;case "distortion":N(h,new A(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":N(h,new E(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":N(h,new H(u[0],u[1]))}c=0;for(e=d.length;c<e;c++)3===this.bg||(a=d[c],g=a.buffersrc,f=a.is_music, h=a.tag,l=a.playbackTime,k=a.looping,m=a.volume,F=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,f&&1===this.bg)||!f&&2===this.bg||((n=this.lv(g,h,f,k,m))?(n.md=a.resume_position,n.Hs(!!u),n.play(k,m,l),n.np(),n.cy(),n.Xm(n.Ii||n.Ek),a.paused&&n.pause(),a.muted&&n.NF(),n.Xm(n.Ii||n.Ek),u&&(-1!==F?(n.vc=n.vc||new D,n.vc.Pn=F,zb.push(n.vc)):n.Gs(u.x,u.y,u.a,u.ia,u.oa,u.og))):(n=this.ln(g,f),n.Go=l,n.ko=a.paused,u&&(-1!==F?n.ij.push({Fw:F,Wq:u.ia,Rr:u.oa,Ur:u.og,Lx:h}):n.ij.push({x:u.x,y:u.y,li:u.a, Wq:u.ia,Rr:u.oa,Ur:u.og,Lx:h}))));if(b&&!U){c=0;for(e=K.length;c<e;c++)K[c].Ko(!0);U=!0}else if(!b&&U){c=0;for(e=K.length;c<e;c++)K[c].Ko(!1);U=!1}};Ia.oe=function(){var a,b,d,c;a=0;for(b=zb.length;a<b;a++)d=zb[a],c=this.b.Ai(d.Pn),d.tl(c),d.Pn=-1,c&&(Ra=c.x,Qa=c.y);C(zb)};Ia.$E=function(a){if(!this.fF){!a&&w&&w.resume&&(w.resume(),ec=!1);var b,d;b=0;for(d=K.length;b<d;b++)K[b].QF(a);a&&w&&w.suspend&&(w.suspend(),ec=!0)}};Ia.Qa=function(){var a=this.b.Jf,b,d,c;b=0;for(d=K.length;b<d;b++)c=K[b],c.Qa(a), 0!==ka&&c.np();var e,g;for(e in na)if(na.hasOwnProperty(e))for(c=na[e],b=0,d=c.length;b<d;b++)g=c[b],g.Qa&&g.Qa();1===J&&this.vd.vn()&&(this.vd.Qa(a),Ra=this.vd.Wa.x,Qa=this.vd.Wa.y,w.listener.setPosition(this.vd.Wa.x,this.vd.Wa.y,this.Lk))};var Ab=[];Ia.OF=function(a){var b,d,c,e,g,f=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],e=c[0],c=2*c[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&W||!g&&!W)Ab.push({filename:e,size:c,Wa:null}),f+=c;return f};Ia.UF=function(){var a,b,d,c;a=0;for(b=Ab.length;a< b;++a)d=Ab[a],c=this.b.zq+d.filename,d.Wa=this.ln(c,!1)};Ia.ND=function(){var a=0,b,d,c;b=0;for(d=Ab.length;b<d;++b)c=Ab[b],c.Wa.rE()||c.Wa.hE()||this.b.ib||this.b.Bn?a+=c.size:c.Wa.Nv()&&(a+=Math.floor(c.size/2));return a};Ia.xF=function(){var a,b,d,c;d=a=0;for(b=Q.length;a<b;++a)c=Q[a],Q[d]=c,c.jf?c.wF():++d;Q.length=d};Ia.ln=function(a,b){var d,c,e,g=null;d=0;for(c=Q.length;d<c;d++)if(e=Q[d],e.src===a){g=e;break}g||(Rb&&b&&this.xF(),g=new u(a,b),Q.push(g));return g};Ia.lv=function(a,b,d,c,e){var g, f,h;g=0;for(f=K.length;g<f;g++)if(h=K[g],h.src===a&&(h.aC()||d))return h.tag=b,h;a=this.ln(a,d);if(!a.Na)return"<preload>"!==b&&(a.no=b,a.Jr=c,a.it=e),null;h=new x(a,b);K.push(h);return h};var Ha=[];F.prototype.Lj=function(a){return mb(B,a)};F.prototype.Az=function(a){T(a);var b;a=0;for(b=Ha.length;a<b;a++)if(Ha[a].Kg())return!0;return!1};ba.j=new F;R.prototype.Play=function(a,b,d,e){!U&&(d=c(d),ea=this.lv(this.b.zq+a[0]+(W?".ogg":".m4a"),e,a[1],0!==b,d))&&(ea.Hs(!1),ea.play(0!==b,d,0,this.Bw),this.Bw= 0)};R.prototype.pg=function(a){T(a);var b;a=0;for(b=Ha.length;a<b;a++)Ha[a].stop()};R.prototype.tB=function(){var a,b;a=0;for(b=K.length;a<b;a++)K[a].stop()};R.prototype.dB=function(a){var b;2===a&&(a=U?1:0);if(0===a&&!U){a=0;for(b=K.length;a<b;a++)K[a].Ko(!0);U=!0}else if(1===a&&U){a=0;for(b=K.length;a<b;a++)K[a].Ko(!1);U=!1}};R.prototype.aB=function(a){ma=c(a);var b;a=0;for(b=K.length;a<b;a++)K[a].cy()};ba.n=new R;X.prototype.Cp=function(a,b){T(b,!0);Ha.length?a.F(Ha[0].Hg()):a.F(0)};ba.A=new X})(); function Ac(m){this.b=m} (function(){function m(){a&&d&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){n.YE(a)})}function k(){}function h(){}function f(a){console&&console.warn&&console.warn("Fullscreen request failed: ",a);l.setSize(window.innerWidth,window.innerHeight)}function c(){}var b=Ac.prototype;b.T=function(a){this.Ba=a;this.b=a.b};var g=b.T.prototype;g.J=function(){};var a=!1,d=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.wg){var b= document.createElement("script");b.onload=function(){a=!0;m()};b.src="offlineClient.js";document.head.appendChild(b)}});var n=null;g.Jw=function(){d=!0;m()};b.M=function(a){this.type=a;this.b=a.b};g=b.M.prototype;g.J=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(Ac.prototype.j.kA,a)});n=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(Ac.prototype.j.gA,a)}),window.addEventListener("offline",function(){a.b.trigger(Ac.prototype.j.eA, a)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.Hh=1;a.b.trigger(Ac.prototype.j.gm,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.Hh=b.loaded/b.total||0}));this.b.Oc||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(Ac.prototype.j.gm,a)}),document.addEventListener("backbutton",function(){a.b.trigger(Ac.prototype.j.$l,a)}),document.addEventListener("menubutton",function(){a.b.trigger(Ac.prototype.j.Pt, a)}),document.addEventListener("searchbutton",function(){a.b.trigger(Ac.prototype.j.nA,a)}),document.addEventListener("tizenhwkey",function(b){var d;switch(b.keyName){case "back":d=a.b.trigger(Ac.prototype.j.$l,a);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=a.b.trigger(Ac.prototype.j.Pt,a))||b.preventDefault()}}));this.b.lr&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(Ac.prototype.j.$l, a)&&(b.handled=!0)}):this.b.kr&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(Ac.prototype.j.$l,a)});this.b.uu(function(b){b?a.b.trigger(Ac.prototype.j.hA,a):a.b.trigger(Ac.prototype.j.iA,a)});this.wE="undefined"!==typeof window.is_scirra_arcade};g.YE=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(Ac.prototype.j.qA,this):"update-ready"===a||"update-pending"===a?this.b.trigger(Ac.prototype.j.gm,this):"offline-ready"===a&&this.b.trigger(Ac.prototype.j.fA, this)};k.prototype.gA=function(){return!0};k.prototype.eA=function(){return!0};k.prototype.gm=function(){return!0};k.prototype.iA=function(){return!0};k.prototype.hA=function(){return!0};k.prototype.kA=function(){return!0};k.prototype.nz=function(){return!!(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.b.hf)};k.prototype.$l=function(){return!0};k.prototype.Pt=function(){return!0};k.prototype.nA=function(){return!0};k.prototype.wz=function(a){return(window.innerWidth<= window.innerHeight?0:1)===a};k.prototype.xB=function(){if(this.b.hr)return!0;var a=this.b.dq||this.b.canvas;return!!(a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullScreen)};k.prototype.qA=function(){return!0};k.prototype.gm=function(){return!0};k.prototype.fA=function(){return!0};b.j=new k;h.prototype.bz=function(a,b){this.b.Jd?CocoonJS.App.openURL(a):this.b.ae?ejecta.openURL(a):this.b.kr?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)): navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):this.b.Tc?window.open(a,"_system"):this.wE||this.b.ib||window.open(a,b)};var e=!0,l=null;h.prototype.CA=function(a){this.b.ib?ga("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=a&&(a+=1),6===a&&(a=2),this.b.hr?this.b.Lv?debuggerFullscreen(!0):!this.b.hf&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.hf=!0,this.b.Of=2<=a?a:0):document.mozFullScreen|| document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Of=2<=a?a:0,a=document.documentElement,e&&(e=!1,l=this.b,a.addEventListener("mozfullscreenerror",f),a.addEventListener("webkitfullscreenerror",f),a.addEventListener("MSFullscreenError",f),a.addEventListener("fullscreenerror",f)),a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitRequestFullScreen&& ("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen())))};h.prototype.By=function(){this.b.ib?ga("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):this.b.hr?this.b.Lv?debuggerFullscreen(!1):this.b.hf&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.hf=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen? document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};b.n=new h;c.prototype.Ez=function(a){navigator&&navigator.language?a.Xa(navigator.language):a.Xa("")};b.A=new c})();function Bc(m){this.b=m} (function(){function m(){}function k(){}function h(){}var f=Bc.prototype;f.T=function(b){this.Ba=b;this.b=b.b};f.T.prototype.J=function(){};f.M=function(b){this.type=b;this.b=b.b};var c=f.M.prototype;c.J=function(){this.dd={};this.Oi=0};c.$a=function(){return this.dd};c.eb=function(b){this.dd=b;this.Oi=0;for(var c in this.dd)this.dd.hasOwnProperty(c)&&this.Oi++};m.prototype.lt=function(b,c,a){return kc(this.dd[b],c,a)};m.prototype.ut=function(){return 0===this.Oi};f.j=new m;k.prototype.ly=function(b, c){this.dd.hasOwnProperty(b)||this.Oi++;this.dd[b]=c};k.prototype.ZA=function(b,c){this.dd.hasOwnProperty(b)&&(this.dd[b]=c)};k.prototype.Dp=function(b){var c;try{c=JSON.parse(b)}catch(a){return}if(c.c2dictionary){this.dd=c.data;this.Oi=0;for(var d in this.dd)this.dd.hasOwnProperty(d)&&this.Oi++}};f.n=new k;h.prototype.Zy=function(b,c){this.dd.hasOwnProperty(c)?b.rj(this.dd[c]):b.ca(0)};h.prototype.Xl=function(b){b.Xa(JSON.stringify({c2dictionary:!0,data:this.dd}))};f.A=new h})(); function xc(m){this.b=m} (function(){function m(){this.name="";this.pl=0;this.Ab=[]}function k(){a++;a===g.length&&g.push(new m);return g[a]}function h(){}function f(){}function c(){}var b=xc.prototype;b.T=function(a){this.Ba=a;this.b=a.b};b.T.prototype.J=function(){};b.M=function(a){this.type=a;this.b=a.b};var g=[],a=-1;b.M.prototype.J=function(){var b=this;window.c2_callFunction=function(c,e){var g,f,h,m=k();m.name=c.toLowerCase();m.pl=0;if(e)for(m.Ab.length=e.length,g=0,f=e.length;g<f;++g)h=e[g],m.Ab[g]="number"===typeof h|| "string"===typeof h?h:"boolean"===typeof h?h?1:0:0;else C(m.Ab);b.b.trigger(xc.prototype.j.cm,b,m.name);a--;return m.pl}};h.prototype.cm=function(b){var c=0>a?null:g[a];return c?mb(b,c.name):!1};h.prototype.Ly=function(b,c,e){var f=0>a?null:g[a];if(!f)return!1;b=ua(b);return 0>b||b>=f.Ab.length?!1:kc(f.Ab[b],c,e)};b.j=new h;f.prototype.CallFunction=function(b,c){var e=k();e.name=b.toLowerCase();e.pl=0;Ca(e.Ab,c);this.b.trigger(xc.prototype.j.cm,this,e.name);a--};b.n=new f;c.prototype.rA=function(b, c){c=ua(c);var e=0>a?null:g[a];e?0<=c&&c<e.Ab.length?b.rj(e.Ab[c]):b.ca(0):b.ca(0)};c.prototype.Ay=function(b,c){var e=k();e.name=c.toLowerCase();e.pl=0;C(e.Ab);var g,f;g=2;for(f=arguments.length;g<f;g++)e.Ab.push(arguments[g]);this.b.trigger(xc.prototype.j.cm,this,e.name);a--;b.rj(e.pl)};b.A=new c})();function Cc(m){this.b=m} (function(){function m(){}var k=Cc.prototype;k.T=function(c){this.Ba=c;this.b=c.b};k.T.prototype.J=function(){};k.M=function(c){this.type=c;this.b=c.b;this.Ni=Array(256);this.Ll=Array(256);this.jg=0};var h=k.M.prototype;h.J=function(){var c=this;this.b.ib||(jQuery(document).keydown(function(b){c.Wr(b)}),jQuery(document).keyup(function(b){c.Xr(b)}))};var f=[32,33,34,35,36,37,38,39,40,44];h.Wr=function(c){var b=!1;window!=window.top&&-1<f.indexOf(c.which)&&(c.preventDefault(),b=!0,c.stopPropagation()); if(this.Ni[c.which])this.Ll[c.which]&&!b&&c.preventDefault();else{this.Ni[c.which]=!0;this.jg=c.which;this.b.Ld=!0;this.b.trigger(Cc.prototype.j.Pz,this);var g=this.b.trigger(Cc.prototype.j.Kt,this),a=this.b.trigger(Cc.prototype.j.cA,this);this.b.Ld=!1;if(g||a)this.Ll[c.which]=!0,b||c.preventDefault()}};h.Xr=function(c){this.Ni[c.which]=!1;this.jg=c.which;this.b.Ld=!0;this.b.trigger(Cc.prototype.j.Ct,this);var b=this.b.trigger(Cc.prototype.j.Mt,this),g=this.b.trigger(Cc.prototype.j.Lt,this);this.b.Ld= !1;if(b||g||this.Ll[c.which])this.Ll[c.which]=!0,c.preventDefault()};h.Rh=function(){var c;for(c=0;256>c;++c)if(this.Ni[c]){this.Ni[c]=!1;this.jg=c;this.b.trigger(Cc.prototype.j.Ct,this);var b=this.b.trigger(Cc.prototype.j.Mt,this),g=this.b.trigger(Cc.prototype.j.Lt,this);if(b||g)this.Ll[c]=!0}};h.$a=function(){return{triggerKey:this.jg}};h.eb=function(c){this.jg=c.triggerKey};m.prototype.pz=function(c){return this.Ni[c]};m.prototype.Kt=function(c){return c===this.jg};m.prototype.Pz=function(){return!0}; m.prototype.Ct=function(){return!0};m.prototype.Mt=function(c){return c===this.jg};m.prototype.cA=function(c){return c===this.jg};m.prototype.Lt=function(c){return c===this.jg};k.j=new m;k.n=new function(){};k.A=new function(){}})();var Dc=!1; try{!function(){var m,k,h;!function(){var f={},c={};m=function(b,c,a){f[b]={lC:c,$B:a}};h=k=function(b){function g(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var d=b.split("/").slice(0,-1),c=0,e=a.length;e>c;c++){var g=a[c];".."===g?d.pop():"."!==g&&d.push(g)}return d.join("/")}if(h.lH=f,c[b])return c[b];if(c[b]={},!f[b])throw Error("Could not find module "+b);for(var a,d=f[b],m=d.lC,d=d.$B,e=[],l=0,p=m.length;p>l;l++)"exports"===m[l]?e.push(a={}):e.push(k(g(m[l])));m=d.apply(this,e);return c[b]= a||m}}();m("promise/all",["./utils","exports"],function(f,c){var b=f.isArray,g=f.isFunction;c.all=function(a){if(!b(a))throw new TypeError("You must pass an array to all.");return new this(function(b,c){function e(a){return function(c){h[a]=c;0===--k&&b(h)}}var f,h=[],k=a.length;0===k&&b([]);for(var m=0;m<a.length;m++)(f=a[m])&&g(f.then)?f.then(e(m),c):(h[m]=f,0===--k&&b(h))})}});m("promise/asap",["exports"],function(f){function c(){return function(){process.AH(a)}}function b(){var b=0,d=new e(a), c=document.createTextNode("");return d.observe(c,{characterData:!0}),function(){c.data=b=++b%2}}function g(){return function(){l.setTimeout(a,1)}}function a(){for(var a=0;a<k.length;a++){var b=k[a];(0,b[0])(b[1])}k=[]}var d,h="undefined"!=typeof window?window:{},e=h.MutationObserver||h.WebKitMutationObserver,l="undefined"!=typeof global?global:void 0===this?window:this,k=[];d="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?c():e?b():g();f.UB=function(a,b){1===k.push([a, b])&&d()}});m("promise/config",["exports"],function(f){var c={sH:!1};f.Nu=c;f.dC=function(b,g){return 2!==arguments.length?c[b]:void(c[b]=g)}});m("promise/polyfill",["./promise","./utils","exports"],function(f,c,b){var g=f.Promise,a=c.isFunction;b.hF=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var c;return new b.Promise(function(a){c= a}),a(c)}()||(b.Promise=g)}});m("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(f,c,b,g,a,d,h,e){function l(a){if(!u(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof l))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.nm=[];k(a,this)}function k(a,b){function d(a){t(b, a)}function c(a){P(b,a)}try{a(d,c)}catch(e){c(e)}}function m(a,b,d,c){var e,g,f,h,l=u(d);if(l)try{e=d(c),f=!0}catch(k){h=!0,g=k}else e=c,f=!0;z(b,e)||(l&&f?t(b,e):h?P(b,g):a===T?t(b,e):a===N&&P(b,e))}function v(a,b,d,c){a=a.nm;var e=a.length;a[e]=b;a[e+T]=d;a[e+N]=c}function y(a,b){for(var d,c,e=a.nm,g=a.mm,f=0;f<e.length;f+=3)d=e[f],c=e[f+b],m(b,d,c,g);a.nm=null}function z(a,b){var d,c=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(D(b)&&(c=b.then, u(c)))return c.call(b,function(c){return d?!0:(d=!0,void(b!==c?t(a,c):r(a,c)))},function(b){return d?!0:(d=!0,void P(a,b))}),!0}catch(e){return d?!0:(P(a,e),!0)}return!1}function t(a,b){a===b?r(a,b):z(a,b)||r(a,b)}function r(a,b){a.zf===x&&(a.zf=S,a.mm=b,H.async(A,a))}function P(a,b){a.zf===x&&(a.zf=S,a.mm=b,H.async(E,a))}function A(a){y(a,a.zf=T)}function E(a){y(a,a.zf=N)}var H=f.Nu,D=(f.dC,c.RE),u=c.isFunction;f=(c.now,b.all);g=g.race;a=a.resolve;d=d.reject;H.async=h.UB;var x=void 0,S=0,T=1,N=2; l.prototype={constructor:l,zf:void 0,mm:void 0,nm:void 0,then:function(a,b){var d=this,c=new this.constructor(function(){});if(this.zf){var e=arguments;H.async(function(){m(d.zf,c,e[d.zf-1],d.mm)})}else v(this,c,a,b);return c},"catch":function(a){return this.then(null,a)}};l.all=f;l.race=g;l.resolve=a;l.reject=d;e.Promise=l});m("promise/race",["./utils","exports"],function(f,c){var b=f.isArray;c.race=function(c){if(!b(c))throw new TypeError("You must pass an array to race.");return new this(function(a, b){for(var f,e=0;e<c.length;e++)(f=c[e])&&"function"==typeof f.then?f.then(a,b):a(f)})}});m("promise/reject",["exports"],function(f){f.reject=function(c){return new this(function(b,g){g(c)})}});m("promise/resolve",["exports"],function(f){f.resolve=function(c){return c&&"object"==typeof c&&c.constructor===this?c:new this(function(b){b(c)})}});m("promise/utils",["exports"],function(f){function c(b){return"function"==typeof b}var b=Date.now||function(){return(new Date).getTime()};f.RE=function(b){return c(b)|| "object"==typeof b&&null!==b};f.isFunction=c;f.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)};f.now=b});k("promise/polyfill").hF()}();var Ec=function(){return function(m){function k(f){if(h[f])return h[f].bf;var c=h[f]={bf:{},id:f,loaded:!1};return m[f].call(c.bf,c,c.bf,k),c.loaded=!0,c.bf}var h={};return k.wg=m,k.Tj=h,k.hl="",k(0)}([function(m,k,h){k.lm=!0;var f=function(c){function b(a,b){a[b]=function(){var d=arguments;return a.ready().then(function(){return a[b].apply(a, d)})}}function g(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var d in b)b.hasOwnProperty(d)&&(m(b[d])?arguments[0][d]=b[d].slice():arguments[0][d]=b[d])}return arguments[0]}function a(a){for(var b in f)if(f.hasOwnProperty(b)&&f[b]===a)return!0;return!1}var d={},f={Jj:"asyncStorage",Kj:"localStorageWrapper",Nj:"webSQLStorage"},e="clear getItem iterate key keys length removeItem setItem".split(" "),l={description:"",ti:[f.Jj,f.Nj,f.Kj].slice(),name:"localforage",size:4980736,Ya:"keyvaluepairs", version:1},k=function(a){var b={},d;try{var c=c||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Tv||a.msIndexedDB;d="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:c&&"function"==typeof c.open&&"undefined"!=typeof a.IDBKeyRange}catch(e){d=!1}b[f.Jj]=!!d;var g;try{g=a.openDatabase}catch(h){g=!1}b[f.Nj]=!!g;var l;try{l=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(k){l= !1}return b[f.Kj]=!!l,b}(c),m=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.Jj=f.Jj;this.Kj=f.Kj;this.Nj=f.Nj;this.Up=g({},l);this.eh=g({},this.Up,a);this.nu=this.We=null;this.qg=!1;this.Ta=null;this.ou();this.rx(this.eh.ti)}return c.prototype.Nu=function(a){if("object"==typeof a){if(this.qg)return Error("Can't call config() after localforage has been used."); for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.eh[b]=a[b];return"driver"in a&&a.ti&&this.rx(this.eh.ti),!0}return"string"==typeof a?this.eh[a]:this.eh},c.prototype.ti=function(){return this.Oj||null},c.prototype.pv=function(b,c,e){var g=this,f=function(){if(a(b))switch(b){case g.Jj:return new Promise(function(a){a(h(1))});case g.Kj:return new Promise(function(a){a(h(2))});case g.Nj:return new Promise(function(a){a(h(4))})}else if(d[b])return Promise.resolve(d[b]);return Promise.reject(Error("Driver not found."))}(); return f.then(c,e),f},c.prototype.ready=function(a){var b=this,d=b.We.then(function(){return null===b.qg&&(b.qg=b.nu()),b.qg});return d.then(a,a),d},c.prototype.rx=function(a,b,d){function c(){g.eh.ti=g.ti()}function e(a){return function(){function b(){for(;d<a.length;){var e=a[d];return d++,g.Ta=null,g.qg=null,g.pv(e).then(function(a){return g.HB(a),c(),g.qg=g.Wp(g.eh),g.qg})["catch"](b)}c();return g.We=Promise.reject(Error("No available storage method found.")),g.We}var d=0;return b()}}var g=this; m(a)||(a=[a]);var f=this.IB(a);return this.We=(null!==this.We?this.We["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=f[0];return g.Ta=null,g.qg=null,g.pv(a).then(function(a){g.Oj=a.Oj;c();g.ou();g.nu=e(f)})})["catch"](function(){c();return g.We=Promise.reject(Error("No available storage method found.")),g.We}),this.We.then(b,d),this.We},c.prototype.supports=function(a){return!!k[a]},c.prototype.HB=function(a){g(this,a)},c.prototype.IB=function(a){for(var b= [],d=0,c=a.length;c>d;d++){var e=a[d];this.supports(e)&&b.push(e)}return b},c.prototype.ou=function(){for(var a=0;a<e.length;a++)b(this,e[a])},c.prototype.Mm=function(a){return new c(a)},c}())}("undefined"!=typeof window?window:self);k["default"]=f;m.bf=k["default"]},function(m,k){k.lm=!0;k["default"]=function(h){function f(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(d){if("TypeError"!==d.name)throw d;for(var c=new (h.BlobBuilder||h.wg||h.Vu||h.WebKitBlobBuilder),e=0;e<a.length;e+=1)c.append(a[e]); return c.getBlob(b.type)}}function c(a){return new Promise(function(b,d){var c=new XMLHttpRequest;c.open("GET",a);c.withCredentials=!0;c.responseType="arraybuffer";c.onreadystatechange=function(){return 4===c.readyState?200===c.status?b({response:c.response,type:c.getResponseHeader("Content-Type")}):void d({status:c.status,response:c.response}):void 0};c.send()})}function b(a){return(new Promise(function(b,d){var e=f([""],{type:"image/png"}),g=a.transaction([x],"readwrite");g.objectStore(x).put(e, "key");g.oncomplete=function(){var e=a.transaction([x],"readwrite").objectStore(x).get("key");e.onerror=d;e.onsuccess=function(a){var d=URL.createObjectURL(a.target.result);c(d).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(d)})}};g.onerror=g.onabort=d}))["catch"](function(){return!1})}function g(a){return"boolean"==typeof D?Promise.resolve(D):b(a).then(function(a){return D=a})}function a(a){return new Promise(function(b,d){var c=new FileReader; c.onerror=d;c.onloadend=function(d){b({mu:!0,data:btoa(d.target.result||""),type:a.type})};c.readAsBinaryString(a)})}function d(a){for(var b=atob(a.data),d=b.length,c=new ArrayBuffer(d),e=new Uint8Array(c),g=0;d>g;g++)e[g]=b.charCodeAt(g);return f([c],{type:a.type})}function k(a){var b=this,d=b.Vp().then(function(){var a=u[b.Ta.name];return a&&a.qi?a.qi:void 0});return d.then(a,a),d}function e(a){a=u[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Ru.push(b);a.qi?a.qi=a.qi.then(function(){return b.promise}): a.qi=b.promise}function l(a){function b(){return Promise.resolve()}var d=this,c={db:null};if(a)for(var e in a)c[e]=a[e];u||(u={});var g=u[c.name];g||(g={hn:[],db:null,qi:null,Ru:[]},u[c.name]=g);g.hn.push(d);d.Vp||(d.Vp=d.ready,d.ready=k);a=[];for(e=0;e<g.hn.length;e++){var f=g.hn[e];f!==d&&a.push(f.Vp()["catch"](b))}var l=g.hn.slice(0);return Promise.all(a).then(function(){return c.db=g.db,m(c,!1)}).then(function(a){c.db=a;var b;b=d.Up.version;if(c.db){var e=!c.db.objectStoreNames.contains(c.Ya), g=c.version>c.db.version;(c.version<c.db.version&&(c.version!==b&&h.console.warn('The database "'+c.name+"\" can't be downgraded from version "+c.db.version+" to version "+c.version+"."),c.version=c.db.version),g||e)?(e&&(b=c.db.version+1,b>c.version&&(c.version=b)),b=!0):b=!1}else b=!0;return b?m(c,!0):a}).then(function(a){c.db=g.db=a;d.Ta=c;for(a=0;a<l.length;a++){var b=l[a];b!==d&&(b.Ta.db=c.db,b.Ta.version=c.version)}})}function m(a,b){return new Promise(function(d,c){if(a.db){if(!b)return d(a.db); e(a);a.db.close()}var g=[a.name];b&&g.push(a.version);var f=H.open.apply(H,g);b&&(f.onupgradeneeded=function(b){var d=f.result;try{d.createObjectStore(a.Ya),1>=b.oldVersion&&d.createObjectStore(x)}catch(c){if("ConstraintError"!==c.name)throw c;h.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ya+'" already exists.')}});f.onerror=function(){c(f.error)};f.onsuccess=function(){d(f.result);var b=u[a.name].Ru.pop(); b&&b.resolve()}})}function q(a,b){var c=this;"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var g=c.Ta,f=g.db.transaction(g.Ya,"readonly").objectStore(g.Ya).get(a);f.onsuccess=function(){var a=f.result;void 0===a&&(a=null);a&&a.mu&&(a=d(a));b(a)};f.onerror=function(){e(f.error)}})["catch"](e)});return E(e,b),e}function v(a,b){var c=this,e=new Promise(function(b,e){c.ready().then(function(){var g= c.Ta,f=g.db.transaction(g.Ya,"readonly").objectStore(g.Ya).openCursor(),h=1;f.onsuccess=function(){var c=f.result;if(c){var e=c.value;e&&e.mu&&(e=d(e));e=a(e,c.key,h++);void 0!==e?b(e):c["continue"]()}else b()};f.onerror=function(){e(f.error)}})["catch"](e)});return E(e,b),e}function y(b,c,d){var e=this;"string"!=typeof b&&(h.console.warn(b+" used as a key, but it is not a string."),b=String(b));var f=new Promise(function(d,f){var h;e.ready().then(function(){return h=e.Ta,c instanceof Blob?g(h.db).then(function(b){return b? c:a(c)}):c}).then(function(a){var c=h.db.transaction(h.Ya,"readwrite"),e=c.objectStore(h.Ya);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);d(a)};c.onabort=c.onerror=function(){f(g.error?g.error:g.transaction.error)};var g=e.put(a,b)})["catch"](f)});return E(f,d),f}function z(a,b){var c=this;"string"!=typeof a&&(h.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ta,g=e.db.transaction(e.Ya,"readwrite"), f=g.objectStore(e.Ya)["delete"](a);g.oncomplete=function(){b()};g.onerror=function(){d(f.error)};g.onabort=function(){d(f.error?f.error:f.transaction.error)}})["catch"](d)});return E(d,b),d}function t(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ta,e=d.db.transaction(d.Ya,"readwrite"),g=e.objectStore(d.Ya).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(g.error?g.error:g.transaction.error)}})["catch"](c)});return E(c,a),c}function r(a){var b=this, c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ta,e=d.db.transaction(d.Ya,"readonly").objectStore(d.Ya).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return E(c,a),c}function P(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c.Ta,g=!1,f=e.db.transaction(e.Ya,"readonly").objectStore(e.Ya).openCursor();f.onsuccess=function(){var c=f.result;return c?void(0===a?b(c.key):g?b(c.key):(g= !0,c.advance(a))):void b(null)};f.onerror=function(){d(f.error)}})["catch"](d)});return E(d,b),d}function A(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ta,e=d.db.transaction(d.Ya,"readonly").objectStore(d.Ya).openCursor(),g=[];e.onsuccess=function(){var b=e.result;return b?(g.push(b.key),void b["continue"]()):void a(g)};e.onerror=function(){c(e.error)}})["catch"](c)});return E(c,a),c}function E(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var H=H||h.indexedDB|| h.webkitIndexedDB||h.mozIndexedDB||h.Tv||h.msIndexedDB;if(H){var D,u,x="local-forage-detect-blob-support";return{Oj:"asyncStorage",Wp:l,Sv:v,getItem:q,setItem:y,removeItem:z,clear:t,length:r,key:P,keys:A}}}("undefined"!=typeof window?window:self);m.bf=k["default"]},function(m,k,h){k.lm=!0;k["default"]=function(f){function c(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var b=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;b=f.localStorage}catch(g){return}return{Oj:"localStorageWrapper", Wp:function(a){var b={};if(a)for(var c in a)b[c]=a[c];return b.kf=b.name+"/",b.Ya!==this.Up.Ya&&(b.kf+=b.Ya+"/"),this.Ta=b,(new Promise(function(a){a(h(3))})).then(function(a){return b.Uh=a,Promise.resolve()})},Sv:function(a,d){var g=this,e=g.ready().then(function(){for(var c=g.Ta,d=c.kf,e=d.length,f=b.length,h=1,k=0;f>k;k++){var m=b.key(k);if(0===m.indexOf(d)){var r=b.getItem(m);if(r&&(r=c.Uh.Vm(r)),r=a(r,m.substring(e),h++),void 0!==r)return r}}});return c(e,d),e},getItem:function(a,d){var g=this; "string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=g.ready().then(function(){var c=g.Ta,d=b.getItem(c.kf+a);return d&&(d=c.Uh.Vm(d)),d});return c(e,d),e},setItem:function(a,d,g){var e=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=e.ready().then(function(){void 0===d&&(d=null);var c=d;return new Promise(function(g,f){var h=e.Ta;h.Uh.serialize(d,function(d,e){if(e)f(e);else try{b.setItem(h.kf+ a,d),g(c)}catch(l){"QuotaExceededError"!==l.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==l.name||f(l),f(l)}})})});return c(h,g),h},removeItem:function(a,d){var g=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=g.ready().then(function(){b.removeItem(g.Ta.kf+a)});return c(e,d),e},clear:function(a){var d=this,g=d.ready().then(function(){for(var a=d.Ta.kf,c=b.length-1;0<=c;c--){var g=b.key(c);0===g.indexOf(a)&&b.removeItem(g)}});return c(g,a),g},length:function(a){var b= this.keys().then(function(a){return a.length});return c(b,a),b},key:function(a,d){var g=this,e=g.ready().then(function(){var c,d=g.Ta;try{c=b.key(a)}catch(e){c=null}return c&&(c=c.substring(d.kf.length)),c});return c(e,d),e},keys:function(a){var d=this,g=d.ready().then(function(){for(var a=d.Ta,c=b.length,g=[],f=0;c>f;f++)0===b.key(f).indexOf(a.kf)&&g.push(b.key(f).substring(a.kf.length));return g});return c(g,a),g}}}("undefined"!=typeof window?window:self);m.bf=k["default"]},function(m,k){k.lm=!0; k["default"]=function(h){function f(a){var c,g,e,f,h;c=.75*a.length;var k=a.length,m=0;"="===a[a.length-1]&&(c--,"="===a[a.length-2]&&c--);var y=new ArrayBuffer(c),z=new Uint8Array(y);for(c=0;k>c;c+=4)g=b.indexOf(a[c]),e=b.indexOf(a[c+1]),f=b.indexOf(a[c+2]),h=b.indexOf(a[c+3]),z[m++]=g<<2|e>>4,z[m++]=(15&e)<<4|f>>2,z[m++]=(3&f)<<6|63&h;return y}function c(a){var c=new Uint8Array(a),g="";for(a=0;a<c.length;a+=3)g+=b[c[a]>>2],g+=b[(3&c[a])<<4|c[a+1]>>4],g+=b[(15&c[a+1])<<2|c[a+2]>>6],g+=b[63&c[a+2]]; return 2===c.length%3?g=g.substring(0,g.length-1)+"=":1===c.length%3&&(g=g.substring(0,g.length-2)+"=="),g}var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var g="";if(a&&(g=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var e,f="__lfsc__:";a instanceof ArrayBuffer?(e=a,f+="arbf"):(e=a.buffer,"[object Int8Array]"===g?f+="si08":"[object Uint8Array]"=== g?f+="ui08":"[object Uint8ClampedArray]"===g?f+="uic8":"[object Int16Array]"===g?f+="si16":"[object Uint16Array]"===g?f+="ur16":"[object Int32Array]"===g?f+="si32":"[object Uint32Array]"===g?f+="ui32":"[object Float32Array]"===g?f+="fl32":"[object Float64Array]"===g?f+="fl64":b(Error("Failed to get type for BinaryArray")));b(f+c(e))}else if("[object Blob]"===g)g=new FileReader,g.onload=function(){var e="~~local_forage_type~"+a.type+"~"+c(this.result);b("__lfsc__:blob"+e)},g.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(h){console.error("Couldn't convert value into a JSON string: ", a),b(null,h)}},Vm:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var b,c=a.substring(13);a=a.substring(9,13);if("blob"===a&&g.test(c)){var e=c.match(g);b=e[1];c=c.substring(e[0].length)}c=f(c);switch(a){case "arbf":return c;case "blob":var l;c=[c];b={type:b};c=c||[];b=b||{};try{l=new Blob(c,b)}catch(k){if("TypeError"!==k.name)throw k;l=new (h.BlobBuilder||h.wg||h.Vu||h.WebKitBlobBuilder);for(a=0;a<c.length;a+=1)l.append(c[a]);l=l.getBlob(b.type)}return l;case "si08":return new Int8Array(c); case "ui08":return new Uint8Array(c);case "uic8":return new Uint8ClampedArray(c);case "si16":return new Int16Array(c);case "ur16":return new Uint16Array(c);case "si32":return new Int32Array(c);case "ui32":return new Uint32Array(c);case "fl32":return new Float32Array(c);case "fl64":return new Float64Array(c);default:throw Error("Unkown type: "+a);}},GH:f,nH:c}}("undefined"!=typeof window?window:self);m.bf=k["default"]},function(m,k,h){k.lm=!0;k["default"]=function(f){function c(a){var b=this,c={db:null}; if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new Promise(function(a,d){try{c.db=v(c.name,String(c.version),c.description,c.size)}catch(e){return d(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ya+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Ta=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(h(3))})).then(function(a){return c.Uh=a,e})}function b(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."), a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ta;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ya+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.Uh.Vm(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function g(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ta;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ya,[],function(c,d){for(var g=d.rows, f=g.length,h=0;f>h;h++){var l=g.item(h),k=l.value;if(k&&(k=e.Uh.Vm(k)),k=a(k,l.key,h+1),void 0!==k)return void b(k)}b()},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var g=b,f=d.Ta;f.Uh.serialize(b,function(b,d){d?e(d):f.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+f.Ya+ " (key, value) VALUES (?, ?)",[a,b],function(){c(g)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return q(e,c),e}function d(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ta;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.Ya+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function k(a){var b= this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ta;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ya,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function e(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ta;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ya,[],function(b,c){var d=c.rows.item(0).Tj;a(d)},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function l(a,b){var c=this, d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ta;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ya+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return q(d,b),d}function m(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ta;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ya,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key); a(d)},function(a,b){c(b)})})})["catch"](c)});return q(c,a),c}function q(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var v=f.openDatabase;if(v)return{Oj:"webSQLStorage",Wp:c,Sv:g,getItem:b,setItem:a,removeItem:d,clear:k,length:e,key:l,keys:m}}("undefined"!=typeof window?window:self);m.bf=k["default"]}])};"object"==typeof exports&&"object"==typeof module?module.bf=Ec():"function"==typeof define&&define.mH?define([],Ec):"object"==typeof exports?exports.localforage=Ec():this.localforage= Ec()}catch(Fc){Dc=!0}function Gc(m){this.b=m} (function(){function m(a){a.b.trigger(Gc.prototype.j.ne,a)}function k(){}function h(){}function f(){}var c="",b="",g=[],a="",d="undefined"!==typeof window.is_scirra_arcade;d&&(a="sa"+window.scirra_arcade_id+"_");var n=Gc.prototype;n.T=function(a){this.Ba=a;this.b=a.b};n.T.prototype.J=function(){};n.M=function(a){this.type=a;this.b=a.b};var e=n.M.prototype;e.J=function(){this.bs=this.cs=0};e.wd=function(){};e.$a=function(){return{}};e.eb=function(){};k.prototype.bA=function(a){return c===a};k.prototype.Oz= function(){return!0};k.prototype.It=function(a){return c===a};k.prototype.Nz=function(){return!0};k.prototype.Sz=function(){return!0};k.prototype.ne=function(){return!0};k.prototype.Ht=function(a){return c===a};k.prototype.Jt=function(a){return c===a};k.prototype.lt=function(a,c){return kc(b,a,c)};k.prototype.Mz=function(){return!0};k.prototype.Lz=function(){return!0};n.j=new k;h.prototype.YA=function(d,e){if(Dc)m(this);else{var g=a+d;this.cs++;var f=this;localforage.setItem(g,e,function(a,e){f.cs--; a?f.b.trigger(Gc.prototype.j.ne,f):(c=d,b=e,f.b.trigger(Gc.prototype.j.Oz,f),f.b.trigger(Gc.prototype.j.bA,f),b=c="");0===f.cs&&f.b.trigger(Gc.prototype.j.Mz,f)})}};h.prototype.$y=function(d){if(Dc)m(this);else{var e=a+d;this.bs++;var g=this;localforage.getItem(e,function(a,e){g.bs--;if(a)g.b.trigger(Gc.prototype.j.ne,g);else{c=d;b=e;if("undefined"===typeof b||null===b)b="";g.b.trigger(Gc.prototype.j.Nz,g);g.b.trigger(Gc.prototype.j.It,g);b=c=""}0===g.bs&&g.b.trigger(Gc.prototype.j.Lz,g)})}};h.prototype.Cy= function(d){if(Dc)m(this);else{var e=this;localforage.getItem(a+d,function(a,g){a?e.b.trigger(Gc.prototype.j.ne,e):(c=d,null===g?(b="",e.b.trigger(Gc.prototype.j.Jt,e)):(b=g,e.b.trigger(Gc.prototype.j.Ht,e)),b=c="")})}};h.prototype.Fy=function(){if(Dc)m(this);else if(!d){var a=this;localforage.clear(function(d){d?a.b.trigger(Gc.prototype.j.ne,a):(b=c="",C(g),a.b.trigger(Gc.prototype.j.Sz,a))})}};n.n=new h;f.prototype.Cz=function(a){a.rj(b)};n.A=new f})();function Hc(m){this.b=m} (function(){function m(f,c,b,g,a,d,h,e,l,k){f.save();f.fillStyle=c;c=a%b;var m=d%g;0>c&&(c+=b);0>m&&(m+=g);f.translate(c+l,m+k);f.fillRect(a-c-l,d-m-k,h,e);f.restore()}var k=Hc.prototype;k.T=function(f){this.Ba=f;this.b=f.b};var h=k.T.prototype;h.J=function(){this.P||(this.H=new Image,this.H.Xj=this.zj,this.b.Gj(this.H,this.bi),this.Sl=this.Vl=this.Ul=this.Tl=this.Ij=this.K=this.Eu=this.Sx=this.jx=this.aw=this.Aq=null)};h.Ph=function(){this.P||(this.Sl=this.Vl=this.Ul=this.Tl=this.Ij=this.K=null)}; h.Qh=function(){this.P||!this.k.length||this.K||(this.K=this.b.G.hd(this.H,!0,this.b.Va,this.vf))};h.ei=function(){this.P||this.k.length||!this.b.G||(this.b.G.deleteTexture(this.K),this.b.G.deleteTexture(this.Ij),this.b.G.deleteTexture(this.Tl),this.b.G.deleteTexture(this.Ul),this.b.G.deleteTexture(this.Vl),this.b.G.deleteTexture(this.Sl),this.Sl=this.Vl=this.Ul=this.Tl=this.Ij=this.K=null)};h.tf=function(f,c,b,g){var a=document.createElement("canvas");b=b-f;g=g-c;a.width=b;a.height=g;a.getContext("2d").drawImage(this.H, f,c,b,g,0,0,b,g);return a};h.iC=function(f,c,b,g){var a=this.H.width,d=this.H.height,h=a-c,e=d-g;if(this.b.G){if(!this.Ij){var l=this.b.G,k=this.b.Va,m=this.vf;h>f&&e>b&&(this.Ij=l.hd(this.tf(f,b,h,e),!0,k,m));0<f&&e>b&&(this.Tl=l.hd(this.tf(0,b,f,e),!0,k,m,"repeat-y"));0<c&&e>b&&(this.Ul=l.hd(this.tf(h,b,a,e),!0,k,m,"repeat-y"));0<b&&h>f&&(this.Vl=l.hd(this.tf(f,0,h,b),!0,k,m,"repeat-x"));0<g&&h>f&&(this.Sl=l.hd(this.tf(f,e,h,d),!0,k,m,"repeat-x"))}}else this.Aq||(l=this.b.fb,h>f&&e>b&&(this.Aq= l.createPattern(this.tf(f,b,h,e),"repeat")),0<f&&e>b&&(this.aw=l.createPattern(this.tf(0,b,f,e),"repeat")),0<c&&e>b&&(this.jx=l.createPattern(this.tf(h,b,a,e),"repeat")),0<b&&h>f&&(this.Sx=l.createPattern(this.tf(f,0,h,b),"repeat")),0<g&&h>f&&(this.Eu=l.createPattern(this.tf(f,e,h,d),"repeat")))};k.M=function(f){this.type=f;this.b=f.b};h=k.M.prototype;h.J=function(){this.Dr=this.u[0];this.xs=this.u[1];this.Vs=this.u[2];this.bq=this.u[3];this.Ym=this.u[4];this.fill=this.u[5];this.visible=0===this.u[6]; this.Le=0!==this.u[8];this.zc?this.ag.set(0,0,0,0):this.ag=new xa(0,0,0,0);this.b.G&&!this.type.K&&(this.type.K=this.b.G.hd(this.type.H,!1,this.b.Va,this.type.vf));this.type.iC(this.Dr,this.xs,this.Vs,this.bq)};h.td=function(f){var c=this.type.H,b=this.Dr,g=this.xs,a=this.Vs,d=this.bq,h=c.width,e=c.height,l=h-g,k=e-d;f.globalAlpha=this.opacity;f.save();var q=this.x,v=this.y,y=this.width,z=this.height;this.b.Pc&&(q=Math.round(q),v=Math.round(v));var t=-(this.Mc*this.width),r=-(this.Nc*this.height), P=t%h,A=r%e;0>P&&(P+=h);0>A&&(A+=e);f.translate(q+P,v+A);h=t-P;r-=A;A=this.Le?1:0;0<b&&0<a&&f.drawImage(c,0,0,b+A,a+A,h,r,b+A,a+A);0<g&&0<a&&f.drawImage(c,l-A,0,g+A,a+A,h+y-g-A,r,g+A,a+A);0<g&&0<d&&f.drawImage(c,l-A,k-A,g+A,d+A,h+y-g-A,r+z-d-A,g+A,d+A);0<b&&0<d&&f.drawImage(c,0,k-A,b+A,d+A,h,r+z-d-A,b+A,d+A);0===this.Ym?(A=2===this.fill?0:A,0<b&&k>a&&m(f,this.type.aw,b,k-a,h,r+a,b+A,z-a-d,0,0),0<g&&k>a&&m(f,this.type.jx,g,k-a,h+y-g-A,r+a,g+A,z-a-d,A,0),0<a&&l>b&&m(f,this.type.Sx,l-b,a,h+b,r,y-b-g, a+A,0,0),0<d&&l>b&&m(f,this.type.Eu,l-b,d,h+b,r+z-d-A,y-b-g,d+A,0,A)):1===this.Ym&&(0<b&&k>a&&0<z-a-d&&f.drawImage(c,0,a,b,k-a,h,r+a,b,z-a-d),0<g&&k>a&&0<z-a-d&&f.drawImage(c,l,a,g,k-a,h+y-g,r+a,g,z-a-d),0<a&&l>b&&0<y-b-g&&f.drawImage(c,b,0,l-b,a,h+b,r,y-b-g,a),0<d&&l>b&&0<y-b-g&&f.drawImage(c,b,k,l-b,d,h+b,r+z-d,y-b-g,d));k>a&&l>b&&(0===this.fill?m(f,this.type.Aq,l-b,k-a,h+b,r+a,y-b-g,z-a-d,0,0):1===this.fill&&0<y-b-g&&0<z-a-d&&f.drawImage(c,b,a,l-b,k-a,h+b,r+a,y-b-g,z-a-d));f.restore()};h.If=function(f, c,b,g,a,d,h,e,l,k){f.Bc(c);var m=this.ag;m.left=b/c.ye;m.top=g/c.xe;m.right=(b+a)/c.ye;m.bottom=(g+d)/c.xe;f.Qd(h,e,h+l,e,h+l,e+k,h,e+k,m)};h.Hl=function(f,c,b,g,a,d,h,e){f.Bc(c);var l=this.ag;l.left=-h/c.ye;l.top=-e/c.xe;l.right=(a-h)/c.ye;l.bottom=(d-e)/c.xe;f.Qd(b,g,b+a,g,b+a,g+d,b,g+d,l)};h.Hf=function(f){this.Gb(f)};h.Gb=function(f){var c=this.Dr,b=this.xs,g=this.Vs,a=this.bq,d=this.type.H.width-b,h=this.type.H.height-a;f.sf(this.opacity);var e=this.Hc,l=e.qb,e=e.rb,k=this.width,m=this.height; this.b.Pc&&(l=Math.round(l),e=Math.round(e));var v=this.Le?1:0;0<c&&0<g&&this.If(f,this.type.K,0,0,c+v,g+v,l,e,c+v,g+v);0<b&&0<g&&this.If(f,this.type.K,d-v,0,b+v,g+v,l+k-b-v,e,b+v,g+v);0<b&&0<a&&this.If(f,this.type.K,d-v,h-v,b+v,a+v,l+k-b-v,e+m-a-v,b+v,a+v);0<c&&0<a&&this.If(f,this.type.K,0,h-v,c+v,a+v,l,e+m-a-v,c+v,a+v);0===this.Ym?(v=2===this.fill?0:v,0<c&&h>g&&this.Hl(f,this.type.Tl,l,e+g,c+v,m-g-a,0,0),0<b&&h>g&&this.Hl(f,this.type.Ul,l+k-b-v,e+g,b+v,m-g-a,v,0),0<g&&d>c&&this.Hl(f,this.type.Vl, l+c,e,k-c-b,g+v,0,0),0<a&&d>c&&this.Hl(f,this.type.Sl,l+c,e+m-a-v,k-c-b,a+v,0,v)):1===this.Ym&&(0<c&&h>g&&this.If(f,this.type.K,0,g,c,h-g,l,e+g,c,m-g-a),0<b&&h>g&&this.If(f,this.type.K,d,g,b,h-g,l+k-b,e+g,b,m-g-a),0<g&&d>c&&this.If(f,this.type.K,c,0,d-c,g,l+c,e,k-c-b,g),0<a&&d>c&&this.If(f,this.type.K,c,h,d-c,a,l+c,e+m-a,k-c-b,a));h>g&&d>c&&(0===this.fill?this.Hl(f,this.type.Ij,l+c,e+g,k-c-b,m-g-a,0,0):1===this.fill&&this.If(f,this.type.K,c,g,d-c,h-g,l+c,e+g,k-c-b,m-g-a))};k.j=new function(){};k.n= new function(){};k.A=new function(){}})();function Ic(m){this.b=m} (function(){function m(b){this.lb=b;this.L=!1;this.q=this.speed=this.y=this.x=0;this.opacity=1;this.tg=this.Ei=this.size=this.sn=0}function k(){}var h=Ic.prototype;h.T=function(b){this.Ba=b;this.b=b.b};var f=h.T.prototype;f.J=function(){this.P||(this.H=new Image,this.H.Xj=this.zj,this.K=null,this.b.Gj(this.H,this.bi))};f.Ph=function(){this.P||(this.K=null)};f.Qh=function(){this.P||!this.k.length||this.K||(this.K=this.b.G.hd(this.H,!0,this.b.Va,this.vf))};f.Vi=function(){this.P||this.K||!this.b.G|| (this.K=this.b.G.hd(this.H,!0,this.b.Va,this.vf))};f.ei=function(){this.P||this.k.length||!this.K||(this.b.G.deleteTexture(this.K),this.K=null)};f.lj=function(b){b.drawImage(this.H,0,0)};m.prototype.init=function(){var b=this.lb;this.x=b.x-b.vp/2+Math.random()*b.vp;this.y=b.y-b.yp/2+Math.random()*b.yp;this.speed=b.zn-b.Wo/2+Math.random()*b.Wo;this.q=b.q-b.Xo/2+Math.random()*b.Xo;this.opacity=b.Yq;this.size=b.Zq-b.Vo/2+Math.random()*b.Vo;this.sn=b.Uq-b.tn/2+Math.random()*b.tn;this.tg=this.Ei=0};m.prototype.Qa= function(b){var c=this.lb;this.x+=Math.cos(this.q)*this.speed*b;this.y+=Math.sin(this.q)*this.speed*b;this.y+=this.Ei*b;this.speed+=c.Fc*b;this.size+=this.sn*b;this.Ei+=c.Gq*b;this.tg+=b;1>this.size?this.L=!1:(0!==c.Ui&&(this.q+=Math.random()*c.Ui*b-c.Ui*b/2),0!==c.Kk&&(this.speed+=Math.random()*c.Kk*b-c.Kk*b/2),0!==c.Jk&&(this.opacity+=Math.random()*c.Jk*b-c.Jk*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.ri&&this.tg>=c.timeout&&(this.L=!1),2===c.ri&&0>=this.speed&&(this.L= !1))};m.prototype.td=function(b){var c=this.lb.opacity*this.opacity;if(0!==c){0===this.lb.ri&&(c*=1-this.tg/this.lb.timeout);b.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.lb.b.Pc&&(c=c+.5|0,a=a+.5|0);b.drawImage(this.lb.type.H,c,a,this.size,this.size)}};m.prototype.Gb=function(b){var c=this.lb.opacity*this.opacity;0===this.lb.ri&&(c*=1-this.tg/this.lb.timeout);var a=this.size,d=a*this.lb.Xw,f=this.x-a/2,e=this.y-a/2;this.lb.b.Pc&&(f=f+.5|0,e=e+.5|0);1>d||0===c||(d<b.OE||d>b.Kr? (b.sf(c),b.mj(f,e,f+a,e,f+a,e+a,f,e+a)):b.gF(this.x,this.y,d,c))};m.prototype.left=function(){return this.x-this.size/2};m.prototype.right=function(){return this.x+this.size/2};m.prototype.top=function(){return this.y-this.size/2};m.prototype.bottom=function(){return this.y+this.size/2};h.M=function(b){this.type=b;this.b=b.b};var f=h.M.prototype,c=[];f.J=function(){var b=this.u;this.ol=b[0];this.Xo=G(b[1]);this.Yh=b[2];this.Ms=!0;this.zn=b[3];this.Zq=b[4];this.Yq=b[5]/100;this.Uq=b[6];this.vp=b[7]; this.yp=b[8];this.Wo=b[9];this.Vo=b[10];this.tn=b[11];this.Fc=b[12];this.Gq=b[13];this.Ui=b[14];this.Kk=b[15];this.Jk=b[16];this.ri=b[17];this.timeout=b[18];this.Sh=0;this.Xw=1;this.fo=this.x;this.jo=this.y;this.ho=this.x;this.eo=this.y;this.PB(function(b){b.ma.set(b.fo,b.jo,b.ho,b.eo);b.Hc.Wh(b.ma);b.Bm=!1;b.gt();b.ey()});this.zc||(this.Nb=[]);this.b.Zg(this);this.type.Vi();if(1===this.Yh)for(b=0;b<this.ol;b++)this.rm().opacity=0;this.ik=!0};f.$a=function(){var b={r:this.ol,sc:this.Xo,st:this.Yh, s:this.Ms,isp:this.zn,isz:this.Zq,io:this.Yq,gr:this.Uq,xr:this.vp,yr:this.yp,spr:this.Wo,szr:this.Vo,grnd:this.tn,acc:this.Fc,g:this.Gq,lar:this.Ui,lsr:this.Kk,lor:this.Jk,dm:this.ri,to:this.timeout,pcc:this.Sh,ft:this.ik,p:[]},c,a,d,f=b.p;c=0;for(a=this.Nb.length;c<a;c++)d=this.Nb[c],f.push([d.x,d.y,d.speed,d.q,d.opacity,d.sn,d.size,d.Ei,d.tg]);return b};f.eb=function(b){this.ol=b.r;this.Xo=b.sc;this.Yh=b.st;this.Ms=b.s;this.zn=b.isp;this.Zq=b.isz;this.Yq=b.io;this.Uq=b.gr;this.vp=b.xr;this.yp= b.yr;this.Wo=b.spr;this.Vo=b.szr;this.tn=b.grnd;this.Fc=b.acc;this.Gq=b.g;this.Ui=b.lar;this.Kk=b.lsr;this.Jk=b.lor;this.ri=b.dm;this.timeout=b.to;this.Sh=b.pcc;this.ik=b.ft;c.push.apply(c,this.Nb);C(this.Nb);var g,a,d,f=b.p;b=0;for(g=f.length;b<g;b++)a=this.rm(),d=f[b],a.x=d[0],a.y=d[1],a.speed=d[2],a.q=d[3],a.opacity=d[4],a.sn=d[5],a.size=d[6],a.Ei=d[7],a.tg=d[8]};f.wd=function(){c.push.apply(c,this.Nb);C(this.Nb)};f.rm=function(){var b;c.length?(b=c.pop(),b.lb=this):b=new m(this);this.Nb.push(b); b.L=!0;return b};f.Qa=function(){var b=this.b.ff(this),g,a,d,f;if(0===this.Yh&&this.Ms)for(this.Sh+=b*this.ol,a=ua(this.Sh),this.Sh-=a,g=0;g<a;g++)d=this.rm(),d.init();this.fo=this.x;this.jo=this.y;this.ho=this.x;this.eo=this.y;f=g=0;for(a=this.Nb.length;g<a;g++)d=this.Nb[g],this.Nb[f]=d,this.b.ta=!0,1===this.Yh&&this.ik&&d.init(),d.Qa(b),d.L?(d.left()<this.fo&&(this.fo=d.left()),d.right()>this.ho&&(this.ho=d.right()),d.top()<this.jo&&(this.jo=d.top()),d.bottom()>this.eo&&(this.eo=d.bottom()),f++): c.push(d);Ba(this.Nb,f);this.V();this.ik=!1;1===this.Yh&&0===this.Nb.length&&this.b.Ve(this)};f.td=function(b){var c,a,d,f=this.B;c=0;for(a=this.Nb.length;c<a;c++)d=this.Nb[c],d.right()>=f.Ha&&d.bottom()>=f.Ia&&d.left()<=f.Ma&&d.top()<=f.La&&d.td(b)};f.Gb=function(b){this.Xw=this.B.Hd();b.Bc(this.type.K);var c,a,d,f=this.B;c=0;for(a=this.Nb.length;c<a;c++)d=this.Nb[c],d.right()>=f.Ha&&d.bottom()>=f.Ia&&d.left()<=f.Ma&&d.top()<=f.La&&d.Gb(b)};h.j=new function(){};k.prototype.cB=function(b){this.ol= b;var g;if(1===this.Yh&&this.ik)if(b<this.Nb.length)for(b=this.Nb.length-b,g=0;g<b;g++)c.push(this.Nb.pop());else if(b>this.Nb.length)for(b=b-this.Nb.length,g=0;g<b;g++)this.rm().opacity=0};k.prototype.XA=function(b){this.zn=b};k.prototype.KA=function(b){this.Ui=b};h.n=new k;h.A=new function(){}})();function M(m){this.b=m} (function(){function m(){if(0===this.oq.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.tj?b.drawImage(this.H,this.aj,this.bj,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.oq=a.toDataURL("image/png")}return this.oq}function k(){}function h(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function f(a,b){return a<b?""+a+","+b:""+b+","+a}function c(a,b,c,d){b=b.uid;c=c.uid;var e=f(b,c);if(a.hasOwnProperty(e))a[e][2]= d;else{var g=v.length?v.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=d;a[e]=g}}function b(a,b,c){b=f(b.uid,c.uid);a.hasOwnProperty(b)&&(h(a[b]),delete a[b])}function g(a,b,c){b=f(b.uid,c.uid);if(a.hasOwnProperty(b))return y=a[b][2],!0;y=-2;return!1}function a(a,b,c){if(!a)return!1;var d=0!==b||0!==c,e,g,f=!1,h,l=this.b.Pf(),k=l.type,l=l.xk,m=a.aa();h=this.b.pb().tb.Od;m.ba?(this.za(),E.oi(this.ma),E.offset(b,c),this.b.Jq(this.B,a,E,A),m=A):m=h?this.b.oE()&&!m.ea.length&&m.k.length?m.k:m.ea:m.k;t=a;P=k!==a&&!l; d&&(e=this.x,g=this.y,this.x+=b,this.y+=c,this.V());b=0;for(c=m.length;b<c;b++)if(h=m[b],this.b.xj(this,h)){f=!0;if(l)break;k!==a&&r.add(h)}d&&(this.x=e,this.y=g,this.V());C(A);return f}function d(){}function n(){}var e=M.prototype;e.T=function(a){this.Ba=a;this.b=a.b};var l=e.T.prototype;l.J=function(){if(!this.P){var a,b,c,d,e,g,f,h,l;this.pe=[];this.qk=!1;a=0;for(b=this.rd.length;a<b;a++){e=this.rd[a];f={};f.name=e[0];f.speed=e[1];f.loop=e[2];f.vs=e[3];f.ws=e[4];f.Zf=e[5];f.Ea=e[6];f.frames=[]; c=0;for(d=e[7].length;c<d;c++)g=e[7][c],h={},h.bi=g[0],h.zj=g[1],h.aj=g[2],h.bj=g[3],h.width=g[4],h.height=g[5],h.duration=g[6],h.Mc=g[7],h.Nc=g[8],h.Xq=g[9],h.oo=g[10],h.Yw=g[11],h.tj=0!==h.width,h.oq="",h.qH=m,l={left:0,top:0,right:1,bottom:1},h.Is=l,h.K=null,(l=this.b.wD(g[0]))?h.H=l:(h.H=new Image,h.H.fC=g[0],h.H.Xj=g[1],h.H.ZB=null,this.b.Gj(h.H,g[0])),f.frames.push(h),this.pe.push(h);this.rd[a]=f}}};l.by=function(){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=this.k[a],c.Om=c.mb.K};l.Ph=function(){if(!this.P){var a, b,c;a=0;for(b=this.pe.length;a<b;++a)c=this.pe[a],c.H.ZB=null,c.K=null;this.qk=!1;this.by()}};l.Qh=function(){if(!this.P&&this.k.length){var a,b,c;a=0;for(b=this.pe.length;a<b;++a)c=this.pe[a],c.K=this.b.G.hd(c.H,!1,this.b.Va,c.Yw);this.by()}};l.Vi=function(){if(!this.P&&!this.qk&&this.b.G){var a,b,c;a=0;for(b=this.pe.length;a<b;++a)c=this.pe[a],c.K=this.b.G.hd(c.H,!1,this.b.Va,c.Yw);this.qk=!0}};l.ei=function(){if(!this.P&&!this.k.length&&this.qk){var a,b,c;a=0;for(b=this.pe.length;a<b;++a)c=this.pe[a], this.b.G.deleteTexture(c.K),c.K=null;this.qk=!1}};var p=[];l.lj=function(a){var b,c,d;C(p);b=0;for(c=this.pe.length;b<c;++b)d=this.pe[b].H,-1===p.indexOf(d)&&(a.drawImage(d,0,0),p.push(d))};e.M=function(a){this.type=a;this.b=a.b;a=this.type.rd[0].frames[0].oo;this.zc?this.Ga.wl(a):this.Ga=new fb(a)};var q=e.M.prototype;q.J=function(){this.visible=0===this.u[0];this.sk=this.Tf=!1;this.Bd=0!==this.u[3];this.hb=this.kv(this.u[1])||this.type.rd[0];this.Y=this.u[2];0>this.Y&&(this.Y=0);this.Y>=this.hb.frames.length&& (this.Y=this.hb.frames.length-1);var a=this.hb.frames[this.Y];this.Ga.wl(a.oo);this.Mc=a.Mc;this.Nc=a.Nc;this.jh=this.hb.speed;this.Eg=this.hb.ws;1===this.type.rd.length&&1===this.type.rd[0].frames.length||0===this.jh||(this.b.Zg(this),this.Tf=!0);this.zc?this.qe.reset():this.qe=new db;this.df=this.qe.W;this.Af=!0;this.Bf=0;this.vg=!0;this.Gm=this.yu="";this.Ju=0;this.Uj=-1;this.type.Vi();var b,c,d,e,g,f,h,a=0;for(b=this.type.rd.length;a<b;a++)for(e=this.type.rd[a],c=0,d=e.frames.length;c<d;c++)g= e.frames[c],0===g.width&&(g.width=g.H.width,g.height=g.H.height),g.tj&&(h=g.H,f=g.Is,f.left=g.aj/h.width,f.top=g.bj/h.height,f.right=(g.aj+g.width)/h.width,f.bottom=(g.bj+g.height)/h.height,0===g.aj&&0===g.bj&&g.width===h.width&&g.height===h.height&&(g.tj=!1));this.mb=this.hb.frames[this.Y];this.Om=this.mb.K};q.$a=function(){var a={a:this.hb.Ea,f:this.Y,cas:this.jh,fs:this.df,ar:this.Bf,at:this.qe.W,rt:this.Eg};this.Af||(a.ap=this.Af);this.vg||(a.af=this.vg);return a};q.eb=function(a){var b=this.CD(a.a); b&&(this.hb=b);this.Y=a.f;0>this.Y&&(this.Y=0);this.Y>=this.hb.frames.length&&(this.Y=this.hb.frames.length-1);this.jh=a.cas;this.df=a.fs;this.Bf=a.ar;this.qe.reset();this.qe.W=a.at;this.Af=a.hasOwnProperty("ap")?a.ap:!0;this.vg=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Eg=a.rt:this.Eg=this.hb.ws;this.mb=this.hb.frames[this.Y];this.Om=this.mb.K;this.Ga.wl(this.mb.oo);this.Mc=this.mb.Mc;this.Nc=this.mb.Nc};q.$p=function(a){this.Y=a?0:this.hb.frames.length-1;this.Af=!1;this.yu=this.hb.name; this.sk=!0;this.b.trigger(M.prototype.j.Bt,this);this.b.trigger(M.prototype.j.At,this);this.sk=!1;this.Bf=0};q.wg=function(){return this.qe.W};q.Qa=function(){this.qe.add(this.b.ff(this));this.Gm.length&&this.Su();0<=this.Uj&&this.sq();var a=this.qe.W,b=this.hb,c=b.frames[this.Y],d=c.duration/this.jh;this.Af&&a>=this.df+d&&(this.vg?this.Y++:this.Y--,this.df+=d,this.Y>=b.frames.length&&(b.Zf?(this.vg=!1,this.Y=b.frames.length-2):b.loop?this.Y=this.Eg:(this.Bf++,this.Bf>=b.vs?this.$p(!1):this.Y=this.Eg)), 0>this.Y&&(b.Zf?(this.Y=1,this.vg=!0,b.loop||(this.Bf++,this.Bf>=b.vs&&this.$p(!0))):b.loop?this.Y=this.Eg:(this.Bf++,this.Bf>=b.vs?this.$p(!0):this.Y=this.Eg)),0>this.Y?this.Y=0:this.Y>=b.frames.length&&(this.Y=b.frames.length-1),a>this.df+b.frames[this.Y].duration/this.jh&&(this.df=a),a=b.frames[this.Y],this.ji(c,a),this.b.ta=!0)};q.kv=function(a){var b,c,d;b=0;for(c=this.type.rd.length;b<c;b++)if(d=this.type.rd[b],mb(d.name,a))return d;return null};q.CD=function(a){var b,c,d;b=0;for(c=this.type.rd.length;b< c;b++)if(d=this.type.rd[b],d.Ea===a)return d;return null};q.Su=function(){var a=this.hb.frames[this.Y],b=this.kv(this.Gm);this.Gm="";!b||mb(b.name,this.hb.name)&&this.Af||(this.hb=b,this.jh=b.speed,this.Eg=b.ws,0>this.Y&&(this.Y=0),this.Y>=this.hb.frames.length&&(this.Y=this.hb.frames.length-1),1===this.Ju&&(this.Y=0),this.Af=!0,this.df=this.qe.W,this.vg=!0,this.ji(a,this.hb.frames[this.Y]),this.b.ta=!0)};q.sq=function(){var a=this.hb.frames[this.Y],b=this.Y;this.Y=ua(this.Uj);0>this.Y&&(this.Y=0); this.Y>=this.hb.frames.length&&(this.Y=this.hb.frames.length-1);b!==this.Y&&(this.ji(a,this.hb.frames[this.Y]),this.df=this.qe.W,this.b.ta=!0);this.Uj=-1};q.ji=function(a,b){var c=a.width,d=a.height,e=b.width,g=b.height;c!=e&&(this.width*=e/c);d!=g&&(this.height*=g/d);this.Mc=b.Mc;this.Nc=b.Nc;this.Ga.wl(b.oo);this.V();this.mb=b;this.Om=b.K;c=0;for(d=this.da.length;c<d;c++)e=this.da[c],e.ZE&&e.ZE(a,b);this.b.trigger(M.prototype.j.ji,this)};q.td=function(a){a.globalAlpha=this.opacity;var b=this.mb, c=b.tj,d=b.H,e=this.x,g=this.y,f=this.width,h=this.height;if(0===this.q&&0<=f&&0<=h)e-=this.Mc*f,g-=this.Nc*h,this.b.Pc&&(e=Math.round(e),g=Math.round(g)),c?a.drawImage(d,b.aj,b.bj,b.width,b.height,e,g,f,h):a.drawImage(d,e,g,f,h);else{this.b.Pc&&(e=Math.round(e),g=Math.round(g));a.save();var l=0<f?1:-1,k=0<h?1:-1;a.translate(e,g);1===l&&1===k||a.scale(l,k);a.rotate(this.q*l*k);e=0-this.Mc*qa(f);g=0-this.Nc*qa(h);c?a.drawImage(d,b.aj,b.bj,b.width,b.height,e,g,qa(f),qa(h)):a.drawImage(d,e,g,qa(f),qa(h)); a.restore()}};q.Hf=function(a){this.Gb(a)};q.Gb=function(a){a.Bc(this.Om);a.sf(this.opacity);var b=this.mb,c=this.Hc;if(this.b.Pc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.tj?a.Qd(c.qb+d,c.rb+e,c.ic+d,c.jc+e,c.Sb+d,c.Tb+e,c.Qb+d,c.Rb+e,b.Is):a.mj(c.qb+d,c.rb+e,c.ic+d,c.jc+e,c.Sb+d,c.Tb+e,c.Qb+d,c.Rb+e)}else b.tj?a.Qd(c.qb,c.rb,c.ic,c.jc,c.Sb,c.Tb,c.Qb,c.Rb,b.Is):a.mj(c.qb,c.rb,c.ic,c.jc,c.Sb,c.Tb,c.Qb,c.Rb)};q.JD=function(a){var b=this.mb,c,d;c=0;for(d=b.Xq.length;c<d;c++)if(mb(a, b.Xq[c][0]))return c;return-1};q.uh=function(a,b){var c=this.mb,d=c.Xq,e;la(a)?e=this.JD(a):e=a-1;e=ua(e);if(0>e||e>=d.length)return b?this.x:this.y;var g=(d[e][1]-c.Mc)*this.width,d=d[e][2],d=(d-c.Nc)*this.height,c=Math.cos(this.q);e=Math.sin(this.q);var f=g*c-d*e,d=d*c+g*e,g=f+this.x,d=d+this.y;return b?g:d};var v=[],y=-2,z=[];k.prototype.Tz=function(a){if(!a)return!1;var d=this.b,e=d.Pf(),f=e.type,l=null;e.Z.collmemory?l=e.Z.collmemory:(l={},e.Z.collmemory=l);e.Z.spriteCreatedDestroyCallback|| (e.Z.spriteCreatedDestroyCallback=!0,d.pm(function(a){var b=e.Z.collmemory;a=a.uid;var c,d;for(c in b)b.hasOwnProperty(c)&&(d=b[c],d[0]===a||d[1]===a)&&(h(b[c]),delete b[c])}));var k=f.aa(),m=a.aa(),k=k.Yb(),p,r,n,t,A,q,P,E=this.b.hg,v=E-1,w=d.pb().tb;for(r=0;r<k.length;r++){n=k[r];m.ba?(n.za(),this.b.Jq(n.B,a,n.ma,z),p=z,this.b.NB(n,a,p)):p=m.Yb();for(t=0;t<p.length;t++)A=p[t],d.xj(n,A)||d.bC(n,A)?(q=g(l,n,A),q=!q||y<v,c(l,n,A,E),q&&(d.$f(w.xa),q=f.aa(),P=a.aa(),q.ba=!1,P.ba=!1,f===a?(q.k.length= 2,q.k[0]=n,q.k[1]=A,f.Rc()):(q.k.length=1,P.k.length=1,q.k[0]=n,P.k[0]=A,f.Rc(),a.Rc()),w.rf(),d.fe(w.xa))):b(l,n,A);C(z)}return!1};var t=null,r=new da,P=!1,A=[],E=new xa(0,0,0,0);l.finish=function(a){if(P){if(a){var b=this.b.pb().tb.Od;a=t.aa();var c=r.ke(),d,e;if(a.ba){a.ba=!1;C(a.k);d=0;for(e=c.length;d<e;++d)a.k[d]=c[d];if(b)for(C(a.ea),d=0,e=t.k.length;d<e;++d)c=t.k[d],r.contains(c)||a.ea.push(c)}else if(b)for(b=a.k.length,d=0,e=c.length;d<e;++d)a.k[b+d]=c[d],Fa(a.ea,c[d]);else Ca(a.k,c);t.Rc()}r.clear(); P=!1}};k.prototype.uz=function(b){return a.call(this,b,0,0)};k.prototype.vz=function(b,c,d){return a.call(this,b,c,d)};k.prototype.Iy=function(a,b){return kc(this.Y,a,b)};k.prototype.At=function(a){return mb(this.yu,a)};k.prototype.Bt=function(){return!0};k.prototype.ji=function(){return!0};e.j=new k;d.prototype.oB=function(a,b,c){if(a&&b&&(b=this.b.Mm(a,b,this.uh(c,!0),this.uh(c,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,b.V());this.b.Kd++;var d,e,g;this.b.trigger(Object.getPrototypeOf(a.Ba).j.yf, b);if(b.tc)for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],this.b.trigger(Object.getPrototypeOf(g.type.Ba).j.yf,g);this.b.Kd--;d=this.b.GD();c=!1;if(ia(d.Z.Spawn_LastExec)||d.Z.Spawn_LastExec<this.b.sh)c=!0,d.Z.Spawn_LastExec=this.b.sh;if(a!=this.type&&(a=a.aa(),a.ba=!1,c?(C(a.k),a.k[0]=b):a.k.push(b),b.tc))for(d=0,e=b.siblings.length;d<e;d++)g=b.siblings[d],a=g.type.aa(),a.ba=!1,c?(C(a.k),a.k[0]=g):a.k.push(g)}};d.prototype.uB=function(){this.Af=!1};d.prototype.qB=function(a){this.Af=!0;this.df= this.qe.W;1===a&&0!==this.Y&&(this.Uj=0,this.sk||this.sq());this.Tf||(this.b.Zg(this),this.Tf=!0)};d.prototype.LA=function(a,b){this.Gm=a;this.Ju=b;this.Tf||(this.b.Zg(this),this.Tf=!0);this.sk||this.Su()};d.prototype.MA=function(a){this.Uj=a;this.Tf||(this.b.Zg(this),this.Tf=!0);this.sk||this.sq()};d.prototype.NA=function(a){this.jh=qa(a);this.vg=0<=a;this.Tf||(this.b.Zg(this),this.Tf=!0)};d.prototype.Pp=function(a){var b=this.mb,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1); if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.V()};d.prototype.RA=function(a){this.Bd!==(0!==a)&&((this.Bd=0!==a)?this.V():(this.Xd.right>=this.Xd.left&&this.type.Vj.update(this,this.Xd,null),this.Xd.set(0,0,-1,-1)))};e.n=new d;n.prototype.ty=function(a){a.ca(this.Y)};n.prototype.uy=function(a){a.ca(this.hb.frames.length)};n.prototype.iz=function(a,b){a.F(this.uh(b,!0))};n.prototype.jz=function(a,b){a.F(this.uh(b,!1))};n.prototype.qt=function(a){a.F(this.mb.height)};e.A=new n})(); function Jc(m){this.b=m} (function(){function m(a,b){return a.length?a.pop():new b}function k(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<g&&a.push(b[c]);C(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<g&&a.push(b[d]),delete b[d])}function h(b,c,d){var e=b.Gh;d=d.replace(/\s\s*$/,"");c>=e.length&&e.push(m(a,Object));c=e[c];c.text=d;c.width=b.Or(d);b.yj=ra(b.yj,c.width)}function f(){}var c=Jc.prototype;c.J=function(){};c.T=function(a){this.Ba=a;this.b=a.b};var b=c.T.prototype;b.J=function(){this.P|| (this.H=new Image,this.b.Gj(this.H,this.bi),this.K=null)};b.Ph=function(){this.P||(this.K=null)};b.Qh=function(){if(!this.P&&this.k.length){this.K||(this.K=this.b.G.hd(this.H,!1,this.b.Va,this.vf));var a,b;a=0;for(b=this.k.length;a<b;a++)this.k[a].K=this.K}};b.ei=function(){this.P||this.k.length||!this.K||(this.b.G.deleteTexture(this.K),this.K=null)};b.lj=function(a){a.drawImage(this.H,0,0)};c.M=function(a){this.type=a;this.b=a.b};b=c.M.prototype;b.wd=function(){k(a,this.Gh,!0);k(d,this.Im,!1);k(n, this.Jm,!1);Za(this.Bg)};b.J=function(){this.H=this.type.H;this.Hm=this.u[0];this.Ag=this.u[1];this.characterSet=this.u[2];this.text=this.u[3];this.Xe=this.u[4];this.visible=0===this.u[5];this.pk=this.u[6]/2;this.qp=this.u[7]/2;this.pG=0===this.u[9];this.ni=this.u[10];this.lineHeight=this.u[11];this.ai=this.yj=0;this.zc?(C(this.Gh),Za(this.Im),Za(this.Jm),Za(this.Bg)):(this.Gh=[],this.Im={},this.Jm={},this.Bg={});this.Yg=!0;this.Ar=this.width;this.b.G&&(this.type.K||(this.type.K=this.b.G.hd(this.type.H, !1,this.b.Va,this.type.vf)),this.K=this.type.K);this.pB()};b.$a=function(){var a={t:this.text,csc:this.Xe,csp:this.ni,lh:this.lineHeight,tw:this.yj,th:this.ai,lrt:this.AE,ha:this.pk,va:this.qp,cw:{}},b;for(b in this.Bg)a.cw[b]=this.Bg[b];return a};b.eb=function(a){this.text=a.t;this.Xe=a.csc;this.ni=a.csp;this.lineHeight=a.lh;this.yj=a.tw;this.ai=a.th;this.AE=a.lrt;a.hasOwnProperty("ha")&&(this.pk=a.ha);a.hasOwnProperty("va")&&(this.qp=a.va);for(var b in a.cw)this.Bg[b]=a.cw[b];this.Yg=!0;this.Ar= this.width};var g=1E3,a=[],d=[],n=[];b.pB=function(){for(var a=this.H,b=a.width,c=a.height,a=this.Hm,e=this.Ag,g=a/b,f=e/c,h=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/e),l=0;l<h.length&&!(l>=b*c);l++){var k=l%b,E=Math.floor(l/b),H=h.charAt(l);if(this.b.G){var D=this.Jm,u=k*g,x=E*f,k=(k+1)*g,E=(E+1)*f;void 0===D[H]&&(D[H]=m(n,xa));D[H].left=u;D[H].top=x;D[H].right=k;D[H].bottom=E}else D=this.Im,k=k*a,E=E*e,u=a,x=e,void 0===D[H]&&(D[H]=m(d,Object)),D[H].x=k,D[H].y=E,D[H].sp=u,D[H].un=x}};var e= [];c.zB=function(a){C(e);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(e.push(b),b=""),e.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));e.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&e.push(b)};c.EB=function(b){var c=b.text,d=b.Gh;if(c&&c.length){var e=b.width;if(2>=e)k(a,d,!0);else{var g=b.Xe,f=b.ni;if(c.length*(b.Hm*g+f)-f<=e&&-1===c.indexOf("\n")&&(f=b.Or(c),f<=e)){k(a,d,!0);d.push(m(a, Object));d[0].text=c;d[0].width=f;b.yj=f;b.ai=b.Ag*g+b.lineHeight;return}this.GB(b);b.ai=d.length*(b.Ag*g+b.lineHeight)}}else k(a,d,!0)};c.GB=function(b){var c=b.pG,d=b.text,f=b.Gh,l=b.width;c&&(this.zB(d),d=e);var k="",m,n,A,E=0,H=!1;for(A=0;A<d.length;A++)"\n"===d[A]?(!0===H?H=!1:(h(b,E,k),E++),k=""):(H=!1,m=k,k+=d[A],n=b.Or(k.replace(/\s\s*$/,"")),n>l&&(""===m?(h(b,E,k),k="",H=!0):(h(b,E,m),k=d[A]),E++,c||" "!==k||(k="")));k.replace(/\s\s*$/,"").length&&(h(b,E,k),E++);for(A=E;A<f.length;A++)a.length< g&&a.push(f[A]);f.length=E};b.Or=function(a){for(var b=this.ni,c=a.length,d=0,e=0;e<c;e++)d+=this.Iq(a.charAt(e))*this.Xe+b;return d-(0<d?b:0)};b.Iq=function(a){var b=this.Bg;return void 0!==b[a]?b[a]:this.Hm};b.gx=function(){if(this.Yg||this.width!==this.Ar)this.ai=this.yj=0,this.type.Ba.EB(this),this.Yg=!1,this.Ar=this.width};b.td=function(a){var b=this.H;if(""!==this.text&&null!=b&&(this.gx(),!(this.height<this.Ag*this.Xe+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Pc&& (b=Math.round(b),c=Math.round(c));var d=this.B.Ha,e=this.B.Ia,g=this.B.Ma,f=this.B.La;a.save();a.translate(b,c);a.rotate(this.q);for(var h=this.q,l=this.pk,k=this.Xe,m=this.Ag*k,n=this.lineHeight,u=this.ni,x=this.Gh,S,T=-(this.Mc*this.width),N=-(this.Nc*this.height),N=N+this.qp*ra(0,this.height-this.ai),F,R,X,ba=0;ba<x.length;ba++){var I=x[ba].text;S=l*ra(0,this.width-x[ba].width);F=T+S;N+=n;if(0===h&&c+N+m<e)N+=m;else{for(var O=0;O<I.length;O++){R=I.charAt(O);S=this.Iq(R);var B=this.Im[R];if(0=== h&&b+F+S*k+u<d)F+=S*k+u;else{if(F+S*k>this.width+1E-5)break;void 0!==B&&(R=F,X=N,0===h&&1===k&&(R=Math.round(R),X=Math.round(X)),a.drawImage(this.H,B.x,B.y,B.sp,B.un,R,X,B.sp*k,B.un*k));F+=S*k+u;if(0===h&&b+F>g)break}}N+=m;if(0===h&&(N+m+n>this.height||c+N>f))break}}a.restore()}};var l=new ya;b.Gb=function(a){a.Bc(this.K);a.sf(this.opacity);if(this.text&&(this.gx(),!(this.height<this.Ag*this.Xe+this.lineHeight))){this.za();var b=this.Hc,c=0,d=0;this.b.Pc&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)- this.y);var e=this.B.Ha,g=this.B.Ia,f=this.B.Ma,h=this.B.La,k=this.q,m=this.pk,n=this.qp,D=this.Xe,u=this.Ag*D,x=this.lineHeight,S=this.ni,T=this.Gh,N=this.ai,F,R,X;0!==k&&(R=Math.cos(k),X=Math.sin(k));for(var c=b.qb+c,b=b.rb+d,ba,n=n*ra(0,this.height-N),I,O,N=0;N<T.length;N++)if(d=T[N].text,ba=F=m*ra(0,this.width-T[N].width),n+=x,0===k&&b+n+u<g)n+=u;else{for(var B=0;B<d.length;B++){var V=d.charAt(B);F=this.Iq(V);V=this.Jm[V];if(0===k&&c+ba+F*D+S<e)ba+=F*D+S;else{if(ba+F*D>this.width+1E-5)break;if(void 0!== V){var J=this.Hm*D,w=this.Ag*D;I=ba;O=n;0===k&&1===D&&(I=Math.round(I),O=Math.round(O));l.qb=I;l.rb=O;l.ic=I+J;l.jc=O;l.Qb=I;l.Rb=O+w;l.Sb=I+J;l.Tb=O+w;0!==k&&(I=l,O=R,J=X,w=void 0,w=I.qb*O-I.rb*J,I.rb=I.rb*O+I.qb*J,I.qb=w,w=I.ic*O-I.jc*J,I.jc=I.jc*O+I.ic*J,I.ic=w,w=I.Qb*O-I.Rb*J,I.Rb=I.Rb*O+I.Qb*J,I.Qb=w,w=I.Sb*O-I.Tb*J,I.Tb=I.Tb*O+I.Sb*J,I.Sb=w);l.offset(c,b);a.Qd(l.qb,l.rb,l.ic,l.jc,l.Sb,l.Tb,l.Qb,l.Rb,V)}ba+=F*D+S;if(0===k&&c+ba>f)break}}n+=u;if(0===k&&(n+u+x>this.height||b+n>h))break}}};c.j= new function(){};f.prototype.eB=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Yg=!0,this.b.ta=!0)};f.prototype.vy=function(a){ja(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Yg=!0,this.b.ta=!0};f.prototype.Pp=function(a){a!==this.Xe&&(this.Xe=a,this.Yg=!0,this.b.ta=!0)};b.PA=function(a,b){var c=parseInt(b,10);this.Bg[a]!==c&&(this.Bg[a]=c,this.Yg=!0,this.b.ta=!0)};f.prototype.QA=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.PA(a.charAt(c), b)};f.prototype.UA=function(a){this.pk=a/2;this.Yg=!0;this.b.ta=!0};c.n=new f;c.A=new function(){}})();function Kc(m){this.b=m} (function(){function m(){}var k=Kc.prototype;k.T=function(f){this.Ba=f;this.b=f.b};var h=k.T.prototype;h.J=function(){this.P||(this.H=new Image,this.H.Xj=this.zj,this.b.Gj(this.H,this.bi),this.K=this.pattern=null)};h.Ph=function(){this.P||(this.K=null)};h.Qh=function(){if(!this.P&&this.k.length){this.K||(this.K=this.b.G.hd(this.H,!0,this.b.Va,this.vf));var f,c;f=0;for(c=this.k.length;f<c;f++)this.k[f].K=this.K}};h.Vi=function(){this.P||this.K||!this.b.G||(this.K=this.b.G.hd(this.H,!0,this.b.Va,this.vf))}; h.ei=function(){this.P||this.k.length||!this.K||(this.b.G.deleteTexture(this.K),this.K=null)};h.lj=function(f){f.drawImage(this.H,0,0)};k.M=function(f){this.type=f;this.b=f.b};h=k.M.prototype;h.J=function(){this.visible=0===this.u[0];this.ag=new xa(0,0,0,0);this.Av=!1;this.H=this.type.H;this.b.G?(this.type.Vi(),this.K=this.type.K):(this.type.pattern||(this.type.pattern=this.b.fb.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};h.oe=function(){this.Av=!1;this.H=this.type.H};h.wd= function(){this.b.G&&this.Av&&this.K&&(this.b.G.deleteTexture(this.K),this.K=null)};h.td=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var c=this.x,b=this.y;this.b.Pc&&(c=Math.round(c),b=Math.round(b));var g=-(this.Mc*this.width),a=-(this.Nc*this.height),d=g%this.H.width,h=a%this.H.height;0>d&&(d+=this.H.width);0>h&&(h+=this.H.height);f.translate(c,b);f.rotate(this.q);f.translate(d,h);f.fillRect(g-d,a-h,this.width,this.height);f.restore()};h.Hf=function(f){this.Gb(f)};h.Gb= function(f){f.Bc(this.K);f.sf(this.opacity);var c=this.ag;c.right=this.width/this.H.width;c.bottom=this.height/this.H.height;var b=this.Hc;if(this.b.Pc){var g=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;f.Qd(b.qb+g,b.rb+a,b.ic+g,b.jc+a,b.Sb+g,b.Tb+a,b.Qb+g,b.Rb+a,c)}else f.Qd(b.qb,b.rb,b.ic,b.jc,b.Sb,b.Tb,b.Qb,b.Rb,c)};k.j=new function(){};k.n=new function(){};m.prototype.qt=function(f){f.F(this.H.height)};k.A=new m})();function Lc(m){this.b=m} (function(){function m(){this.hp=this.id=-1;this.Au=this.si=this.Ol=this.rk=!1;this.Sa=new xa(0,0,0,0)}function k(a){1E4>v.length&&v.push(a)}function h(){this.id=-1;this.Sa=new xa(0,0,0,0);this.Ie=null}function f(a){1E4>y.length&&y.push(a)}function c(a,c,d){var e;return z.length?(e=z.pop(),e.e=a,e.x=c,e.y=d,e.left=e.x*e.e.Ub*e.e.gc,e.top=e.y*e.e.kc*e.e.fc,e.clear(),e.nl=!1,e):new b(a,c,d)}function b(a,b,c){this.e=a;this.x=b;this.y=c;this.left=this.x*this.e.Ub*this.e.gc;this.top=this.y*this.e.kc*this.e.fc; this.wf=[];this.xc=[];this.Sc=[];this.nl=!1;var d,e;a=0;for(b=this.e.kc;a<b;++a){e=[];c=0;for(d=this.e.Ub;c<d;++c)e.push(-1);this.wf.push(e)}}function g(a){switch(a){case 0:return 0;case 1:return e;case 2:return l;case 3:return e|p;case 4:return e|l;case 5:return l|p;case 6:return e|l|p;case 7:return p;default:return 0}}function a(){}var d=Lc.prototype;d.T=function(a){this.Ba=a;this.b=a.b};var n=d.T.prototype;n.J=function(){var a,b,c;if(!this.P&&(this.H=new Image,this.H.Xj=this.zj,this.b.Gj(this.H, this.bi),this.kh=[],this.nq=!1,this.Pe=[],this.Nx=!1,this.gp&&this.gp.length))for(a=0,b=this.gp.length;a<b;++a)(c=this.gp[a])?this.Pe.push({Ie:c,gn:[[[null,null],[null,null]],[[null,null],[null,null]]]}):this.Pe.push(null)};n.xg=function(a,b,c,d,e,g){if(!(0>a||a>=this.Pe.length)&&this.Pe[a]){var f=this.Pe[a].gn;a=new fb(this.Pe[a].Ie);a.yg(b,c,0);g&&a.nC();d&&a.PE(b/2);e&&a.xD(c/2);f[d?1:0][e?1:0][g?1:0]=a}};n.vv=function(a){if(-1===a)return null;var b=a&q;return 0>b||b>=this.Pe.length||!this.Pe[b]? null:this.Pe[b].gn[a&e?1:0][a&l?1:0][a&p?1:0]};n.Eq=function(){var a,b,c=this.b.G;if(c)for(a=0,b=this.kh.length;a<b;++a)c.deleteTexture(this.kh[a]);C(this.kh);this.nq=!1};n.Mr=function(a,b,c,d,e,g,f){if(!(this.nq||0>=a||0>=b)){this.Eq();var h=this.H.width,l=this.H.height,k;for(k=d;k+b<=l;k+=b+g)for(d=c;d+a<=h;d+=a+e)this.kh.push(this.Qy(d,k,a,b,f));this.nq=!0}};n.Qy=function(a,b,c,d,e){if(this.b.G)return this.Bp(a,b,c,d,!1,!1,!1,e);var g=[[[null,null],[null,null]],[[null,null],[null,null]]];g[0][0][0]= this.Bp(a,b,c,d,!1,!1,!1,e);return{gn:g,x:a,y:b,sp:c,un:d}};n.pt=function(a,b,c,d,e){if(0>a||a>=this.kh.length)return null;a=this.kh[a];var g=a.gn;b=b?1:0;c=c?1:0;d=d?1:0;var f=g[b][c][d];if(f)return f;f=this.Bp(a.x,a.y,a.sp,a.un,0!==b,0!==c,0!==d,e);return g[b][c][d]=f};n.Bp=function(a,b,c,d,e,g,f,h){var l=c,k=d;this.b.G&&!h&&(oa(l)||(l=pa(l)),oa(k)||(k=pa(k)));var m=document.createElement("canvas");m.width=l;m.height=k;var n=m.getContext("2d");if(this.b.fb)return e?g?(f?(n.rotate(Math.PI/2),n.scale(-1, 1)):n.scale(-1,-1),n.translate(-l,-k)):f?(n.rotate(Math.PI/2),n.translate(0,-k)):(n.scale(-1,1),n.translate(-l,0)):g?f?(n.rotate(-Math.PI/2),n.translate(-l,0)):(n.scale(1,-1),n.translate(0,-k)):f&&(n.scale(-1,1),n.rotate(Math.PI/2)),n.drawImage(this.H,a,b,c,d,0,0,l,k),h?m:this.b.fb.createPattern(m,"repeat");n.drawImage(this.H,a,b,c,d,0,0,l,k);a=this.b.G.Cd(l,k,this.b.Va,!1,!h);this.b.G.hG(m,a);return a};n.Ph=function(){this.P||this.Eq()};n.Qh=function(){};n.Vi=function(){};n.ei=function(){this.P|| this.k.length||this.Eq()};n.lj=function(){};d.M=function(a){this.type=a;this.b=a.b};var n=d.M.prototype,e=-2147483648,l=1073741824,p=536870912,q=536870911,v=[],y=[],z=[];b.prototype.clear=function(){var a,b,c,d,e;this.wf.length=this.e.kc;a=0;for(b=this.wf.length;a<b;++a)for(e=this.wf[a],e||(e=[],this.wf[a]=e),e.length=this.e.Ub,c=0,d=e.length;c<d;++c)e[c]=-1};b.prototype.Xk=function(){if(!this.nl){var a=this.e.gc,b=this.e.fc;if(!(0>=a||0>=b)){var c,d,g,n,t,x;c=0;for(d=this.xc.length;c<d;++c)k(this.xc[c]); c=0;for(d=this.Sc.length;c<d;++c)f(this.Sc[c]);C(this.xc);C(this.Sc);var z=Math.min(this.e.de,Math.floor(this.e.width/a)),T=Math.min(this.e.Fe,Math.floor(this.e.height/b)),z=z-this.left/a,T=T-this.top/b;z>this.e.Ub&&(z=this.e.Ub);T>this.e.kc&&(T=this.e.kc);var N=this.e.Le,F=null;c=0;for(d=T;c<d;++c){t=this.wf[c];g=0;for(n=z;g<n;++g)x=t[g],-1===x?F&&(this.xc.push(F),F=null):N||!F||x!==F.id?(F&&this.xc.push(F),F=v.length?v.pop():new m,F.id=x,F.hp=x&q,F.rk=0!==(x&e),F.Ol=0!==(x&l),F.si=0!==(x&p),F.Au= F.rk||F.Ol||F.si,F.Sa.left=g*a+this.left,F.Sa.top=c*b+this.top,F.Sa.right=F.Sa.left+a,F.Sa.bottom=F.Sa.top+b):F.Sa.right+=a;F&&(this.xc.push(F),F=null)}var F=null,R=!1;c=0;for(d=T;c<d;++c){t=this.wf[c];g=0;for(n=z;g<n;++g)x=t[g],-1===x?F&&(this.Sc.push(F),F=null,R=!1):(T=this.e.type.vv(x),!F||T||R?(F&&this.Sc.push(F),F=y.length?y.pop():new h,F.id=x,F.Ie=T?T:null,x=F.Sa,x.left=g*a+this.left,x.top=c*b+this.top,x.right=x.left+a,x.bottom=x.top+b,R=!!T):F.Sa.right+=a);F&&(this.Sc.push(F),F=null,R=!1)}if(!N)for(d= this.xc.length,c=0;c<d;++c)for(n=this.xc[c],a=c+1;a<d;++a)if(g=this.xc[a],!(g.Sa.top<n.Sa.bottom)){if(g.Sa.top>n.Sa.bottom)break;if(g.Sa.right>n.Sa.right||g.Sa.left>n.Sa.left)break;g.id===n.id&&g.Sa.left===n.Sa.left&&g.Sa.right===n.Sa.right&&(k(this.xc[a]),this.xc.splice(a,1),--d,n.Sa.bottom+=b,--a)}d=this.Sc.length;for(c=0;c<d;++c)if(n=this.Sc[c],!n.Ie)for(t=n.Sa,a=c+1;a<d;++a)if(g=this.Sc[a],n=g.Sa,!(n.top<t.bottom)){if(n.top>t.bottom)break;if(n.right>t.right||n.left>t.left)break;g.Ie||n.left!== t.left||n.right!==t.right||(f(this.Sc[a]),this.Sc.splice(a,1),--d,t.bottom+=b,--a)}this.nl=!0}}};b.prototype.No=function(a,b,c){this.wf[b][a]!==c&&(this.wf[b][a]=c,this.nl=!1,this.e.wm=!0,this.e.jl=!0,this.e.b.ta=!0)};n.J=function(){var a,b,c;this.visible=0===this.u[0];this.gc=this.u[1];this.fc=this.u[2];this.Qs=this.u[3];this.Ss=this.u[4];this.Rs=this.u[5];this.Ts=this.u[6];this.Le=0!==this.u[7];this.de=this.Qx;this.Fe=this.Px;this.Kn=this.width;this.Jn=this.height;var d=this.gc,e=this.fc;0===d&& (d=1);0===e&&(e=1);this.Ub=Math.ceil(this.b.kb/d);this.kc=Math.ceil(this.b.jb/e);if(!this.type.Nx)for(this.type.Nx=!0,a=0,b=this.type.Pe.length;a<b;++a)if(c=this.type.Pe[a])this.type.xg(a,d,e,!1,!1,!1),this.type.xg(a,d,e,!1,!1,!0),this.type.xg(a,d,e,!1,!0,!1),this.type.xg(a,d,e,!1,!0,!0),this.type.xg(a,d,e,!0,!1,!1),this.type.xg(a,d,e,!0,!1,!0),this.type.xg(a,d,e,!0,!0,!1),this.type.xg(a,d,e,!0,!0,!0);this.zc||(this.Yc=[]);this.Vn(!0);this.wx(this.Ox);this.type.Mr(this.gc,this.fc,this.Qs,this.Ss, this.Rs,this.Ts,this.Le);this.jl=!1;this.wm=!0;this.Lr()};n.Lr=function(){if(this.wm){var a,b,c,d,e;a=0;for(b=this.Yc.length;a<b;++a)for(e=this.Yc[a],c=0,d=e.length;c<d;++c)e[c].Xk();this.wm=!1}};n.Ho=function(){var a,b,c,d,e;a=0;for(b=this.Yc.length;a<b;++a)for(e=this.Yc[a],c=0,d=e.length;c<d;++c)e[c].nl=!1;this.wm=!0};n.Vn=function(a){var b=ua(this.width/this.gc),d=ua(this.height/this.fc);if(!(b<=this.de&&d<=this.Fe)||a){var e;a?(a=Math.ceil(this.Fe/this.kc),e=Math.ceil(this.de/this.Ub)):(a=this.Yc.length, e=Math.ceil(this.de/this.Ub),d>this.Fe&&(this.Fe=d,a=Math.ceil(this.Fe/this.kc)),b>this.de&&(this.de=b,e=Math.ceil(this.de/this.Ub)),this.Ho(),this.jl=!0,this.b.ta=!0);for(var g,b=0;b<a;++b)if(g=this.Yc[b])for(d=g.length;d<e;++d)g.push(c(this,d,b));else{g=[];for(d=0;d<e;++d)g.push(c(this,d,b));this.Yc[b]=g}}};n.fq=function(a,b){if(0>a||0>b)return null;var c=ua(b/this.kc);if(c>=this.Yc.length)return null;var c=this.Yc[c],d=ua(a/this.Ub);return d>=c.length?null:c[d]};n.gq=function(a,b){if(0>a||0>b|| b>=this.Yc.length)return null;var c=this.Yc[b];return a>=c.length?null:c[a]};n.wx=function(a){var b=[];a=a.split(",");var c,d,g,f,h;c=0;for(d=a.length;c<d;++c)if(g=a[c],f=g.indexOf("x"),-1<f)for(h=parseInt(g.substring(0,f),10),g=g.substring(f+1),f=parseInt(g,10),-1<g.indexOf("h")&&(f|=e),-1<g.indexOf("v")&&(f|=l),-1<g.indexOf("d")&&(f|=p);0<h;--h)b.push(f);else f=parseInt(g,10),-1<g.indexOf("h")&&(f|=e),-1<g.indexOf("v")&&(f|=l),-1<g.indexOf("d")&&(f|=p),b.push(f);for(c=a=0;c<this.Fe;++c)for(d=0;d< this.de;++d)h=b[a++],(g=this.fq(d,c))&&g.No(d%this.Ub,c%this.kc,h)};n.RD=function(){var a="";if(0>=this.de||0>=this.Fe)return a;var b=1,c=this.Rq(0,0),d,g,f,h,k,m,n,t;h=ua(this.width/this.gc);g=ua(this.height/this.fc);for(d=0;d<g;++d)for(f=0===d?1:0;f<h;++f)k=this.Rq(f,d),k===c?++b:(-1===c?(m=-1,c=t=n=!1):(m=c&q,n=0!==(c&e),t=0!==(c&l),c=0!==(c&p)),a=1===b?a+(""+m):a+(""+b+"x"+m),n&&(a+="h"),t&&(a+="v"),c&&(a+="d"),a+=",",b=1,c=k);-1===c?(m=-1,c=t=n=!1):(m=c&q,n=0!==(c&e),t=0!==(c&l),c=0!==(c&p)); a=1===b?a+(""+m):a+(""+b+"x"+m);n&&(a+="h");t&&(a+="v");c&&(a+="d");return a};n.Rq=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.de||b>=this.Fe)return-1;var c=this.fq(a,b);return c?c.wf[b%this.kc][a%this.Ub]:-1};n.No=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.de||b>=this.Fe)return-1;var d=this.fq(a,b);if(!d)return-1;d.No(a%this.Ub,b%this.kc,c)};n.iy=function(a){return Math.floor((a-this.x)/(this.Ub*this.gc))};n.jy=function(a){return Math.floor((a-this.y)/ (this.kc*this.fc))};n.nG=function(a){return Math.floor((a-this.x)/this.gc)};n.oG=function(a){return Math.floor((a-this.y)/this.fc)};n.mv=function(a,b){var c=this.jy(a.top),d=this.iy(a.right),e=this.jy(a.bottom),g,f,h;for(g=this.iy(a.left);g<=d;++g)for(f=c;f<=e;++f)if(h=this.gq(g,f))h.Xk(),Da(b,h.Sc)};n.ZF=function(a,b){var c=this.Rq(this.nG(a),this.oG(b));if(-1===c)return!1;c=this.type.vv(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.fc)*this.fc+this.y;a-=Math.floor((a-this.x)/this.gc)*this.gc+ this.x;return c.Fb(a,b-d)};n.wg=function(a){var b,c,d,e,g,f;b=0;for(c=this.Yc.length;b<c;++b)for(g=this.Yc[b],d=0,e=g.length;d<e;++d)f=g[d],f.Xk(),Da(a,f.Sc)};n.wd=function(){var a,b,c,d,e;a=0;for(b=this.Yc.length;a<b;++a){e=this.Yc[a];c=0;for(d=e.length;c<d;++c){for(var g=e[c],h=void 0,l=void 0,h=0,l=g.xc.length;h<l;++h)k(g.xc[h]);C(g.xc);h=0;for(l=g.Sc.length;h<l;++h)f(g.Sc[h]);C(g.Sc);1E3>z.length&&z.push(g)}C(e)}C(this.Yc)};n.$a=function(){this.Vn();return{w:ua(this.width/this.gc),h:ua(this.height/ this.fc),d:this.RD()}};n.eb=function(a){this.de=a.w;this.Fe=a.h;this.Vn(!0);this.wx(a.d);this.jl=!0;this.Ho()};n.td=function(a){if(!(0>=this.gc||0>=this.fc)){this.type.Mr(this.gc,this.fc,this.Qs,this.Ss,this.Rs,this.Ts,this.Le);if(this.width!==this.Kn||this.height!==this.Jn)this.jl=!0,this.Ho(),this.Lr(),this.Kn=this.width,this.Jn=this.height;a.globalAlpha=this.opacity;var b=this.B,c=b.Ha,d=b.Ia,e=b.Ma,b=b.La,g=this.x,f=this.y,h=this.Le,l;this.b.Pc&&(g=Math.round(g),f=Math.round(f));var k=this.Ub* this.gc,m=this.kc*this.fc,n=Math.floor((c-g)/k),k=Math.floor((e-g)/k),p=Math.floor((d-f)/m),m=Math.floor((b-f)/m),t=g%this.gc,q=f%this.fc;this.Le&&(q=t=0);if(0!==t||0!==q)a.save(),a.translate(t,q),g-=t,f-=q,c-=t,d-=q,e-=t,b-=q;for(var z,v,B,y,J,w,Q,K,ea;n<=k;++n)for(z=p;z<=m;++z)if(v=this.gq(n,z))for(v.Xk(),B=0,y=v.xc.length;B<y;++B)J=v.xc[B],-1!==J.id&&(l=J.Sa,w=l.left+g,Q=l.top+f,K=l.right+g,l=l.bottom+f,w>e||K<c||Q>b||l<d||(ea=this.type.pt(J.hp,J.rk,J.Ol,J.si,this.Le),h?a.drawImage(ea,w,Q):(a.fillStyle= this.type.pt(J.hp,J.rk,J.Ol,J.si,this.Le),a.fillRect(w,Q,K-w,l-Q))));0===t&&0===q||a.restore()}};var t=new xa(0,0,1,1);n.Hf=function(a){this.Gb(a)};n.Gb=function(a){if(!(0>=this.gc||0>=this.fc)){this.type.Mr(this.gc,this.fc,this.Qs,this.Ss,this.Rs,this.Ts,this.Le);if(this.width!==this.Kn||this.height!==this.Jn)this.jl=!0,this.Ho(),this.Lr(),this.Kn=this.width,this.Jn=this.height;a.sf(this.opacity);var b=this.type.kh,c=this.B,d=c.Ha,e=c.Ia,g=c.Ma,c=c.La,f=this.x,h=this.y,l;this.b.Pc&&(f=Math.round(f), h=Math.round(h));var k=this.Ub*this.gc,m=this.kc*this.fc,n=Math.floor((g-f)/k),p=Math.floor((e-h)/m),m=Math.floor((c-h)/m),q,z,v,y,B,V,J,w,Q,K,ea,W,ka,U,ma,Ra,Qa;for(ma=Math.floor((d-f)/k);ma<=n;++ma)for(Ra=p;Ra<=m;++Ra)if(Qa=this.gq(ma,Ra))for(Qa.Xk(),k=0,q=Qa.xc.length;k<q;++k)z=Qa.xc[k],-1!==z.id&&(l=z.Sa,v=l.left+f,y=l.top+h,B=l.right+f,l=l.bottom+h,v>g||B<d||y>c||l<e||(a.Bc(b[z.hp]),t.right=(B-v)/this.gc,t.bottom=(l-y)/this.fc,z.Au?(z.si&&(U=t.right,t.right=t.bottom,t.bottom=U),J=V=0,w=t.right, Q=0,K=t.right,ea=t.bottom,W=0,ka=t.bottom,z.si&&(U=W,W=w,w=U,U=ka,ka=Q,Q=U),z.rk&&(U=V,V=w,w=U,U=J,J=Q,Q=U,U=W,W=K,K=U,U=ka,ka=ea,ea=U),z.Ol&&(U=V,V=W,W=U,U=J,J=ka,ka=U,U=w,w=K,K=U,U=Q,Q=ea,ea=U),a.tF(v,y,B,y,B,l,v,l,V,J,w,Q,K,ea,W,ka)):a.Qd(v,y,B,y,B,l,v,l,t)))}};d.j=new function(){};a.prototype.fB=function(a,b,c,d){this.Vn();this.No(a,b,c&q|g(d))};d.n=new a;d.A=new function(){}})();function Mc(m){this.b=m} (function(){function m(a){n=a.x;e=a.y;l=a.z}function k(a,b,c,d){var e;e=p.length?p.pop():new h;e.init(a,b,c,d);return e}function h(){this.Bl=this.id=this.y=this.x=this.$o=this.Zo=this.ur=this.time=this.Os=0;this.Il=this.jp=!1}function f(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function c(){}function b(){}var g=Mc.prototype;g.T=function(a){this.Ba=a;this.b=a.b};g.T.prototype.J= function(){};g.M=function(a){this.type=a;this.b=a.b;this.touches=[];this.Pr=!1};var a=g.M.prototype,d={left:0,top:0};a.gk=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var n=0,e=0,l=0,p=[];h.prototype.init=function(a,b,c,d){var e=$a();this.Os=this.ur=this.time=e;this.Zo=a;this.$o=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Bl=d;this.Il=this.jp=!1};h.prototype.update=function(a,b,c,d,e,g){this.ur=this.time;this.time= a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=g;!this.Il&&15<=Va(this.Zo,this.$o,this.x,this.y)&&(this.Il=!0)};h.prototype.ME=function(a,b){!this.jp&&500<=$a()-this.Os&&!this.Il&&15>Va(this.Zo,this.$o,this.x,this.y)&&(this.jp=!0,a.xf=this.Bl,a.Aj=this.id,a.Ci=b,a.b.trigger(Mc.prototype.j.$z,a),a.Ef=this.x,a.Ff=this.y,a.b.trigger(Mc.prototype.j.aA,a),a.Ci=0)};var q=-1E3,v=-1E3,y=-1E4;h.prototype.ww=function(a,b){if(!this.jp){var c=$a();333>=c-this.Os&&!this.Il&&15>Va(this.Zo,this.$o, this.x,this.y)&&(a.xf=this.Bl,a.Aj=this.id,a.Ci=b,666>=c-y&&25>Va(q,v,this.x,this.y)?(a.b.trigger(Mc.prototype.j.Wz,a),a.Ef=this.x,a.Ff=this.y,a.b.trigger(Mc.prototype.j.Xz,a),v=q=-1E3,y=-1E4):(a.b.trigger(Mc.prototype.j.oA,a),a.Ef=this.x,a.Ff=this.y,a.b.trigger(Mc.prototype.j.Xt,a),q=this.x,v=this.y,y=c),a.Ci=0)}};a.J=function(){this.uE=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ci=this.Aj=this.xf=this.Ff=this.Ef=this.ru=this.qu=this.pu=this.LB=this.KB=this.JB=this.co= this.bo=this.ao=0;this.fG=0!==this.u[0];var a=0<this.b.ed?document:this.b.canvas,b=document;this.b.Oc?b=a=window.Canvas:this.b.Jd&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Lw(a)},!1),a.addEventListener("pointermove",function(a){c.Kw(a)},!1),b.addEventListener("pointerup",function(a){c.Yn(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Yn(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()}, !1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Lw(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Kw(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Yn(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Yn(a, !0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Nw(a)},!1),a.addEventListener("touchmove",function(a){c.Mw(a)},!1),b.addEventListener("touchend",function(a){c.Yr(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Yr(a,!0)},!1));if(this.uE){var d=function(a){a=a.reading;c.pu=a.accelerationX;c.qu=a.accelerationY; c.ru=a.accelerationZ},e=function(a){a=a.reading;c.ao=a.yawDegrees;c.bo=a.pitchDegrees;c.co=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var f=Windows.Devices.Sensors.Inclinometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden? (g&&g.removeEventListener("readingchanged",d),f&&f.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),f&&f.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.ao=a.alpha||0;c.bo=a.beta||0;c.co=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.JB=a.accelerationIncludingGravity.x||0,c.KB=a.accelerationIncludingGravity.y||0,c.LB=a.accelerationIncludingGravity.z|| 0);a.acceleration&&(c.pu=a.acceleration.x||0,c.qu=a.acceleration.y||0,c.ru=a.acceleration.z||0)},!1);this.fG&&!this.b.ib&&(jQuery(document).mousemove(function(a){c.WE(a)}),jQuery(document).mousedown(function(a){c.VE(a)}),jQuery(document).mouseup(function(a){c.XE(a)}));!this.b.Li&&this.b.Tc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.$F(this)};a.Kw=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&& "mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.gk(a.pointerId),c=$a();if(0<=b){var e=this.b.ib?d:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};a.Lw=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.ib?d:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;$a();this.xf=this.touches.length; this.Aj=a.pointerId;this.touches.push(k(c,b,a.pointerId,this.xf));this.b.Ld=!0;this.b.trigger(Mc.prototype.j.Rt,this);this.b.trigger(Mc.prototype.j.$t,this);this.Ef=c;this.Ff=b;this.b.trigger(Mc.prototype.j.Kp,this);this.b.Ld=!1}};a.Yn=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.gk(a.pointerId);this.xf=0<=c?this.touches[c].Bl:-1;this.Aj=0<=c?this.touches[c].id:-1;this.b.Ld=!0;this.b.trigger(Mc.prototype.j.Qt, this);this.b.trigger(Mc.prototype.j.Zt,this);0<=c&&(b||this.touches[c].ww(this,c),100>p.length&&p.push(this.touches[c]),this.touches.splice(c,1));this.b.Ld=!1}};a.Mw=function(a){a.preventDefault&&a.preventDefault();var b=$a(),c,e,g,f;c=0;for(e=a.changedTouches.length;c<e;c++)if(g=a.changedTouches[c],f=this.gk(g.identifier),0<=f){var h=this.b.ib?d:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,g.pageX-h.left,g.pageY-h.top,2*(g.DH||g.JH||g.vH||g.yH||0),2*(g.EH||g.KH||g.wH|| g.zH||0),g.pH||g.IH||g.uH||g.xH||0)}};a.Nw=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.ib?d:jQuery(this.b.canvas).offset();$a();this.b.Ld=!0;var c,e,g,f;c=0;for(e=a.changedTouches.length;c<e;c++)if(g=a.changedTouches[c],f=this.gk(g.identifier),-1===f){f=g.pageX-b.left;var h=g.pageY-b.top;this.xf=this.touches.length;this.Aj=g.identifier;this.touches.push(k(f,h,g.identifier,this.xf));this.b.trigger(Mc.prototype.j.Rt,this);this.b.trigger(Mc.prototype.j.$t,this);this.Ef=f;this.Ff= h;this.b.trigger(Mc.prototype.j.Kp,this)}this.b.Ld=!1};a.Yr=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Ld=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.gk(e.identifier),0<=e&&(this.xf=this.touches[e].Bl,this.Aj=this.touches[e].id,this.b.trigger(Mc.prototype.j.Qt,this),this.b.trigger(Mc.prototype.j.Zt,this),b||this.touches[e].ww(this,e),100>p.length&&p.push(this.touches[e]),this.touches.splice(e,1));this.b.Ld=!1};a.BD=function(){return this.b.Tc&& 0===this.ao&&0!==l?90*l:this.ao};a.FD=function(){return this.b.Tc&&0===this.bo&&0!==e?90*e:this.bo};a.rv=function(){return this.b.Tc&&0===this.co&&0!==n?90*n:this.co};a.VE=function(a){f(a)||(this.Nw({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Pr=!0)};a.WE=function(a){this.Pr&&!f(a)&&this.Mw({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.XE=function(a){a.preventDefault&&this.b.xv&&!this.b.zh&&a.preventDefault();this.b.xv=!0;f(a)||(this.Yr({changedTouches:[{pageX:a.pageX, pageY:a.pageY,identifier:0}]}),this.Pr=!1)};a.ci=function(){var a,b,c,d=$a();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.ur=d),c.ME(this,a)};c.prototype.$t=function(){return!0};c.prototype.Zt=function(){return!0};c.prototype.Kp=function(a){return a?this.b.dp(a,this.Ef,this.Ff):!1};var z=[];c.prototype.Bz=function(a){if(!a)return!1;var b=a.aa(),c=b.Yb(),d,e,g,f,h,l;g=0;for(f=c.length;g<f;g++){var k=c[g];k.za();h=0;for(l=this.touches.length;h<l;h++)if(e=this.touches[h], d=k.B.oc(e.x,e.y,!0),e=k.B.oc(e.x,e.y,!1),k.Fb(d,e)){z.push(k);break}}return z.length?(b.ba=!1,Ca(b.k,z),a.Rc(),C(z),!0):!1};c.prototype.Ky=function(a,b,c){var d=0,d=0===a?this.BD():1===a?this.FD():this.rv();return kc(d,b,c)};c.prototype.Rt=function(a){a=Math.floor(a);return a===this.xf};c.prototype.Qt=function(a){a=Math.floor(a);return a===this.xf};c.prototype.$z=function(){return!0};c.prototype.oA=function(){return!0};c.prototype.Wz=function(){return!0};c.prototype.aA=function(a){return a?this.b.dp(a, this.Ef,this.Ff):!1};c.prototype.Xt=function(a){return a?this.b.dp(a,this.Ef,this.Ff):!1};c.prototype.Xz=function(a){return a?this.b.dp(a,this.Ef,this.Ff):!1};g.j=new c;b.prototype.jm=function(a,b){var c=this.Ci;if(0>c||c>=this.touches.length)a.F(0);else{var d,e,g,f,h;ia(b)?(d=this.b.yi(0),e=d.scale,g=d.Ue,f=d.ee,h=d.q,d.scale=1,d.Ue=1,d.ee=1,d.q=0,a.F(d.oc(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Ue=g,d.ee=f,d.q=h):(d=ja(b)?this.b.yi(b):this.b.nn(b))?a.F(d.oc(this.touches[c].x,this.touches[c].y, !0)):a.F(0)}};b.prototype.km=function(a,b){var c=this.Ci;if(0>c||c>=this.touches.length)a.F(0);else{var d,e,g,f,h;ia(b)?(d=this.b.yi(0),e=d.scale,g=d.Ue,f=d.Pd,h=d.q,d.scale=1,d.Ue=1,d.Pd=1,d.q=0,a.F(d.oc(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Ue=g,d.Pd=f,d.q=h):(d=ja(b)?this.b.yi(b):this.b.nn(b))?a.F(d.oc(this.touches[c].x,this.touches[c].y,!1)):a.F(0)}};b.prototype.Yy=function(a){a.F(this.rv())};g.A=new b})();function Y(m){this.b=m} (function(){function m(a,b){var c=document.createElement("meta");c.name=a;c.content=b;document.head.appendChild(c)}function k(){}function h(){}function f(){}function c(a){if(!v)return null;a=Math.floor(a);return 0>a||a>=v.length?null:v[a]}var b=Y.prototype;b.T=function(a){this.Ba=a;this.b=a.b};b.T.prototype.J=function(){};var g="",a="",d=!1,n=!1,e=!1,l=null,p=0,q="",v=null;b.M=function(a){this.type=a;this.b=a.b};var y=b.M.prototype;window.googlePlayLoadCallback=function(){d=!0;l.b.Da?l.b.trigger(Y.prototype.j.Gp, l):n=!0};window.googlePlaySigninCallback=function(a){a.status&&a.status.signed_in?(e=!0,l.b.trigger(Y.prototype.j.fm,l)):"user_signed_out"===a.error?(e=!1,l.b.trigger(Y.prototype.j.Wt,l)):"immediate_failed"===a.error?(e=!1,l.b.trigger(Y.prototype.j.Dt,l)):(e=!1,l.b.trigger(Y.prototype.j.ne,l))};y.J=function(){g=this.u[1];a=this.u[2];if(!this.b.ib){l=this;m("google-signin-clientid",g);m("google-signin-cookiepolicy","single_host_origin");m("google-signin-callback","googlePlaySigninCallback");m("google-signin-scope", "https://www.googleapis.com/auth/games");var b=document.createElement("script");b.type="text/javascript";b.async=!0;b.src="https://apis.google.com/js/client.js?onload=googlePlayLoadCallback";document.head.appendChild(b);this.b.Zg(this)}};y.wd=function(){};y.$a=function(){return{}};y.eb=function(){};y.dj=function(){d&&this.b.trigger(Y.prototype.j.Gp,this);e&&this.b.trigger(Y.prototype.j.fm,this)};y.Qa=function(){n&&(n=!1,this.b.trigger(Y.prototype.j.Gp,this))};k.prototype.Gp=function(){return!0};k.prototype.fm= function(){return!0};k.prototype.Wt=function(){return!0};k.prototype.zz=function(){return e};k.prototype.ne=function(){return!0};k.prototype.jA=function(){return!0};k.prototype.Dt=function(){return!0};k.prototype.mA=function(){return!0};k.prototype.Ut=function(){return!0};k.prototype.Gt=function(){return!0};k.prototype.Ep=function(){return!0};b.j=new k;h.prototype.EA=function(){e&&gapi.client.request({path:"/games/v1/players/me",callback:function(a){a?a.error?l.b.trigger(Y.prototype.j.ne,l):l.b.trigger(Y.prototype.j.jA, l):l.b.trigger(Y.prototype.j.ne,l)}})};h.prototype.lB=function(){d&&!e&&(this.b.Tc?jQuery.oauth2({auth_url:"https://accounts.google.com/o/oauth2/auth",response_type:"code",token_url:"https://accounts.google.com/o/oauth2/token",logout_url:"https://accounts.google.com/logout",client_id:g,client_secret:a,redirect_uri:"http://localhost",other_params:{scope:"https://www.googleapis.com/auth/games"}},function(a,b){gapi.auth.setToken(b);e=!0;l.b.trigger(Y.prototype.j.fm,l)},function(){e=!1;l.b.trigger(Y.prototype.j.ne, l)}):gapi.auth.signIn({callback:window.googlePlaySigninCallback}))};h.prototype.mB=function(){d&&e&&(this.b.Tc?(gapi.auth.setToken(null),e=!1,this.b.trigger(Y.prototype.j.Wt,this)):gapi.auth.signOut())};h.prototype.wB=function(a,b,c){d&&e&&(b={leaderboardId:a,score:b},c&&(b.scoreTag=c),gapi.client.request({path:"/games/v1/leaderboards/"+a+"/scores",params:b,method:"post",callback:function(a){a?a.error?l.b.trigger(Y.prototype.j.Ut,l):l.b.trigger(Y.prototype.j.mA,l):l.b.trigger(Y.prototype.j.Ut,l)}}))}; h.prototype.DA=function(a,b,c,g,f){if(d&&e){b=0===b?"PUBLIC":"SOCIAL";var h="ALL_TIME";1===c?h="WEEKLY":2===c&&(h="DAILY");c={leaderboardId:a,collection:b,timeSpan:h,maxResults:g};g="scores";1===f&&(g="window");gapi.client.request({path:"/games/v1/leaderboards/"+a+"/"+g+"/"+b,params:c,callback:function(a){a?a.error?l.b.trigger(Y.prototype.j.Ep,l):(a.playerScore?(p=parseInt(a.playerScore.scoreValue,10)||0,q=a.playerScore.formattedScoreRank||""):(p=0,q=""),v=a.items,l.b.trigger(Y.prototype.j.Gt,l)): l.b.trigger(Y.prototype.j.Ep,l)}})}};b.n=new h;f.prototype.fz=function(a){a.ca(p)};f.prototype.gz=function(a){a.Xa(q)};f.prototype.ez=function(a){a.ca(v?v.length||0:0)};f.prototype.hz=function(a,b){var d=c(b);a.Xa(d&&d.player?d.player.displayName||"":"")};f.prototype.dz=function(a,b){var d=c(b);a.ca(d?parseInt(d.scoreValue,10)||0:0)};b.A=new f})();function Nc(m){this.b=m} (function(){function m(){}var k=Nc.prototype;k.T=function(f){this.behavior=f;this.b=f.b};k.T.prototype.J=function(){};k.M=function(f,c){this.type=f;this.behavior=f.behavior;this.e=c;this.b=f.b};var h=k.M.prototype;h.J=function(){this.wu=this.u[0];this.xu=this.u[1];this.TB=this.u[2];this.SB=this.u[3];this.e.za();this.up=this.e.ma.left;this.zp=this.e.ma.top;this.wp=this.b.kb-this.e.ma.left;this.xp=this.b.jb-this.e.ma.top;this.yo=this.b.kb-this.e.ma.right;this.Cm=this.b.jb-this.e.ma.bottom;this.enabled= 0!==this.u[4]};h.$a=function(){return{xleft:this.up,ytop:this.zp,xright:this.wp,ybottom:this.xp,rdiff:this.yo,bdiff:this.Cm,enabled:this.enabled}};h.eb=function(f){this.up=f.xleft;this.zp=f.ytop;this.wp=f.xright;this.xp=f.ybottom;this.yo=f.rdiff;this.Cm=f.bdiff;this.enabled=f.enabled};h.Qa=function(){if(this.enabled){var f,c=this.e.B,b=this.e,g=this.e.ma;0===this.wu?(b.za(),f=c.Ha+this.up-g.left,0!==f&&(b.x+=f,b.V())):1===this.wu&&(b.za(),f=c.Ma-this.wp-g.left,0!==f&&(b.x+=f,b.V()));0===this.xu?(b.za(), f=c.Ia+this.zp-g.top,0!==f&&(b.y+=f,b.V())):1===this.xu&&(b.za(),f=c.La-this.xp-g.top,0!==f&&(b.y+=f,b.V()));1===this.TB&&(b.za(),f=c.Ma-this.yo-g.right,0!==f&&(b.width+=f,0>b.width&&(b.width=0),b.V()));1===this.SB&&(b.za(),f=c.La-this.Cm-g.bottom,0!==f&&(b.height+=f,0>b.height&&(b.height=0),b.V()))}};k.j=new function(){};m.prototype.ng=function(f){this.enabled&&0===f?this.enabled=!1:this.enabled||0===f||(this.e.za(),this.up=this.e.ma.left,this.zp=this.e.ma.top,this.wp=this.b.kb-this.e.ma.left,this.xp= this.b.jb-this.e.ma.top,this.yo=this.b.kb-this.e.ma.right,this.Cm=this.b.jb-this.e.ma.bottom,this.enabled=!0)};k.n=new m;k.A=new function(){}})();function Oc(m){this.b=m} (function(){function m(){}function k(){}function h(){}var f=Oc.prototype;f.T=function(b){this.behavior=b;this.b=b.b};f.T.prototype.J=function(){};f.M=function(b,c){this.type=b;this.behavior=b.behavior;this.e=c;this.b=b.b;this.So=this.Ro=this.Qo=this.To=this.xn=this.ql=this.Ik=this.ak=this.Jl=!1;this.tr=this.sr=this.rr=this.wr=-1;this.S=this.O=0};var c=f.M.prototype;c.J=function(){this.Ge=this.u[0];this.Fc=this.u[1];this.Ze=this.u[2];this.rq=this.u[3];this.Zp=this.u[4];this.jC=1===this.u[5];this.enabled= 0!==this.u[6];this.jC&&!this.b.ib&&(jQuery(document).keydown(function(b){return function(c){b.Wr(c)}}(this)),jQuery(document).keyup(function(b){return function(c){b.Xr(c)}}(this)))};c.$a=function(){return{dx:this.O,dy:this.S,enabled:this.enabled,maxspeed:this.Ge,acc:this.Fc,dec:this.Ze,ignoreInput:this.xn}};c.eb=function(b){this.O=b.dx;this.S=b.dy;this.enabled=b.enabled;this.Ge=b.maxspeed;this.Fc=b.acc;this.Ze=b.dec;this.xn=b.ignoreInput;this.So=this.Ro=this.Qo=this.To=this.ql=this.Ik=this.ak=this.Jl= !1;this.tr=this.sr=this.rr=this.wr=-1};c.Wr=function(b){var c=this.b.hg;switch(b.which){case 37:b.preventDefault();this.sr<c&&(this.Ik=!0);break;case 38:b.preventDefault();this.wr<c&&(this.Jl=!0);break;case 39:b.preventDefault();this.tr<c&&(this.ql=!0);break;case 40:b.preventDefault(),this.rr<c&&(this.ak=!0)}};c.Xr=function(b){var c=this.b.hg;switch(b.which){case 37:b.preventDefault();this.Ik=!1;this.sr=c;break;case 38:b.preventDefault();this.Jl=!1;this.wr=c;break;case 39:b.preventDefault();this.ql= !1;this.tr=c;break;case 40:b.preventDefault(),this.ak=!1,this.rr=c}};c.Rh=function(){this.ql=this.Ik=this.ak=this.Jl=!1};c.Qa=function(){var b=this.b.ff(this.e),c=this.Ik||this.Ro,a=this.ql||this.So,d=this.Jl||this.To,f=this.ak||this.Qo;this.Qo=this.To=this.So=this.Ro=!1;if(this.enabled){var e=this.b.$h(this.e);if(e&&(this.b.zo(this.e,e),!this.b.sF(this.e)))return;this.xn&&(f=d=a=c=!1);0===this.rq?a=c=!1:1===this.rq&&(f=d=!1);2===this.rq&&(d||f)&&(a=c=!1);c==a&&(0>this.O?(this.O+=this.Ze*b,0<this.O&& (this.O=0)):0<this.O&&(this.O-=this.Ze*b,0>this.O&&(this.O=0)));d==f&&(0>this.S?(this.S+=this.Ze*b,0<this.S&&(this.S=0)):0<this.S&&(this.S-=this.Ze*b,0>this.S&&(this.S=0)));c&&!a&&(this.O=0<this.O?this.O-(this.Fc+this.Ze)*b:this.O-this.Fc*b);a&&!c&&(this.O=0>this.O?this.O+(this.Fc+this.Ze)*b:this.O+this.Fc*b);d&&!f&&(this.S=0<this.S?this.S-(this.Fc+this.Ze)*b:this.S-this.Fc*b);f&&!d&&(this.S=0>this.S?this.S+(this.Fc+this.Ze)*b:this.S+this.Fc*b);if(0!==this.O||0!==this.S){Math.sqrt(this.O*this.O+this.S* this.S)>this.Ge&&(e=Math.atan2(this.S,this.O),this.O=this.Ge*Math.cos(e),this.S=this.Ge*Math.sin(e));a=this.e.x;d=this.e.y;c=this.e.q;this.e.x+=this.O*b;this.e.V();if(e=this.b.$h(this.e))this.b.cx(this.e,0>this.O?1:-1,0,Math.abs(Math.floor(this.O*b)))||(this.e.x=a),this.O=0,this.e.V(),this.b.zo(this.e,e);this.e.y+=this.S*b;this.e.V();if(e=this.b.$h(this.e))this.b.cx(this.e,0,0>this.S?1:-1,Math.abs(Math.floor(this.S*b)))||(this.e.y=d),this.S=0,this.e.V(),this.b.zo(this.e,e);b=lb(this.O);e=lb(this.S); 0===b&&0===e||!this.e.type.Ba.xE||(1===this.Zp?this.e.q=Na(90*Math.round(Ja(Math.atan2(e,b))/90)):2===this.Zp?this.e.q=Na(45*Math.round(Ja(Math.atan2(e,b))/45)):3===this.Zp&&(this.e.q=Math.atan2(e,b)));this.e.V();this.e.q!=c&&(e=this.b.$h(this.e))&&(this.e.q=c,this.e.V(),this.b.zo(this.e,e))}}};m.prototype.xt=function(){return 1E-10<Math.sqrt(this.O*this.O+this.S*this.S)};f.j=new m;k.prototype.pg=function(){this.S=this.O=0};k.prototype.ki=function(){this.O*=-1;this.S*=-1};k.prototype.WA=function(b){this.xn= b};k.prototype.eu=function(b){0>b&&(b=0);b>this.Ge&&(b=this.Ge);var c=Math.atan2(this.S,this.O);this.O=b*Math.cos(c);this.S=b*Math.sin(c)};k.prototype.bB=function(b){this.Ge=b;0>this.Ge&&(this.Ge=0)};k.prototype.HA=function(b){this.Fc=b;0>this.Fc&&(this.Fc=0)};k.prototype.nB=function(b){switch(b){case 0:this.Ro=!0;break;case 1:this.So=!0;break;case 2:this.To=!0;break;case 3:this.Qo=!0}};k.prototype.ng=function(b){this.enabled=1===b};k.prototype.iB=function(b){this.O=b};f.n=new k;h.prototype.iu=function(b){b.F(Math.sqrt(this.O* this.O+this.S*this.S))};h.prototype.Iz=function(b){b.F(this.Ge)};h.prototype.CB=function(b){b.F(this.O)};f.A=new h})();function Pc(m){this.b=m} (function(){function m(){}function k(){}var h=Pc.prototype;h.T=function(c){this.behavior=c;this.b=c.b};h.T.prototype.J=function(){};h.M=function(c,b){this.type=c;this.behavior=c.behavior;this.e=b;this.b=c.b};var f=h.M.prototype;f.J=function(){this.Xp=1===this.u[0];this.vx=!1;this.dk=this.u[1];this.Rl=this.u[2];this.ek=this.u[3];this.mC=this.u[4];this.zd=this.Xp?0:3;this.zc?this.he.reset():this.he=new db;this.Qg=this.e.opacity?this.e.opacity:1;this.Xp&&(0===this.dk?(this.zd=1,0===this.Rl&&(this.zd= 2)):(this.e.opacity=0,this.b.ta=!0))};f.$a=function(){return{fit:this.dk,wt:this.Rl,fot:this.ek,s:this.zd,st:this.he.W,mo:this.Qg}};f.eb=function(c){this.dk=c.fit;this.Rl=c.wt;this.ek=c.fot;this.zd=c.s;this.he.reset();this.he.W=c.st;this.Qg=c.mo};f.Qa=function(){this.he.add(this.b.ff(this.e));0===this.zd&&(this.e.opacity=this.he.W/this.dk*this.Qg,this.b.ta=!0,this.e.opacity>=this.Qg&&(this.e.opacity=this.Qg,this.zd=1,this.he.reset(),this.b.trigger(Pc.prototype.j.Yz,this.e)));1===this.zd&&this.he.W>= this.Rl&&(this.zd=2,this.he.reset(),this.b.trigger(Pc.prototype.j.Lp,this.e));2===this.zd&&0!==this.ek&&(this.e.opacity=this.Qg-this.he.W/this.ek*this.Qg,this.b.ta=!0,0>this.e.opacity&&(this.e.opacity=0,this.zd=3,this.he.reset(),this.b.trigger(Pc.prototype.j.Zz,this.e),1===this.mC&&this.b.Ve(this.e)))};f.Uu=function(){this.zd=0;this.he.reset();0===this.dk?(this.zd=1,0===this.Rl&&(this.zd=2)):(this.e.opacity=0,this.b.ta=!0)};m.prototype.Zz=function(){return!0};m.prototype.Yz=function(){return!0};m.prototype.Lp= function(){return!0};h.j=new m;k.prototype.rB=function(){this.Xp||this.vx||(this.Qg=this.e.opacity?this.e.opacity:1,this.vx=!0);3===this.zd&&this.Uu()};k.prototype.FA=function(){this.Uu()};k.prototype.SA=function(c){0>c&&(c=0);this.ek=c};h.n=new k;h.A=new function(){}})();function Qc(m){this.b=m} (function(){function m(){}var k=Qc.prototype;k.T=function(a){this.behavior=a;this.b=a.b};var h=k.T.prototype;h.J=function(){this.Mh=[]};h.vD=function(a){var b,c,e;b=0;for(c=a.da.length;b<c;++b)if(e=a.da[b],e instanceof Qc.prototype.M&&e.type===this)return e;return null};k.M=function(a,b){this.type=a;this.behavior=a.behavior;this.e=b;this.b=a.b};h=k.M.prototype;h.J=function(){this.SE=this.u[0];this.yc=this.u[1];this.kq=G(this.u[2]);this.Kl=0!==this.u[3]};h.wd=function(){};h.$a=function(){var a={r:this.yc, c:this.kq,t:[]},b,c;b=0;for(c=this.type.Mh.length;b<c;b++)a.t.push(this.type.Mh[b].Ea);return a};h.eb=function(a){this.yc=a.r;this.kq=a.c;C(this.type.Mh);var b,c,e;b=0;for(c=a.t.length;b<c;b++)(e=this.b.Bi(a.t[b]))&&this.type.Mh.push(e)};h.Qa=function(){};var f=[],c=new xa(0,0,0,0);h.iE=function(a,b){var g=this.e.x,e=this.e.y,h=this.e.q;0>this.e.width&&(h+=Math.PI);if(Va(g,e,a,b)>this.yc||Pa(h,Oa(g,e,a,b))>this.kq/2)return!1;var k,m;c.set(g,e,a,b);c.normalize();if(0===this.SE)for(this.Kl?this.b.uv(this.e.B, c,f):(h=this.b.Ls)&&Da(f,h.Zk.ke()),h=0,k=f.length;h<k;++h){if(m=f[h],m.Z.solidEnabled&&m!==this.e&&this.b.Jx(g,e,a,b,m))return C(f),!1}else{if(this.Kl)this.b.rn(this.e.B,this.type.Mh,c,f);else for(h=0,k=this.type.Mh.length;h<k;++h)Da(f,this.type.Mh[h].k);h=0;for(k=f.length;h<k;++h)if(m=f[h],m!==this.e&&this.b.Jx(g,e,a,b,m))return C(f),!1}C(f);return!0};var b=new da,g=new da;m.prototype.cz=function(a){if(!a)return!1;var c,f,e,h,k,m,v,y,z=this.b.HD().aa();a=a.aa();var t=z.Yb(),r=a.Yb();z.ba&&C(z.ea); a.ba&&C(a.ea);var P=this.b.Pf().xk;c=0;for(e=t.length;c<e;++c){k=t[c];y=!1;m=this.vD(k);f=0;for(h=r.length;f<h;++f)v=r[f],k!==v&&Wa(m.iE(v.x,v.y),P)&&(y=!0,g.add(v));y&&b.add(k)}c=b.ke();f=g.ke();z.ba=!1;a.ba=!1;Ca(z.k,c);Ca(a.k,f);b.clear();g.clear();return z.wn()};k.j=new m;k.n=new function(){};k.A=new function(){}})();function Rc(m){this.b=m} (function(){function m(){}var k=Rc.prototype;k.T=function(f){this.behavior=f;this.b=f.b};k.T.prototype.J=function(){};k.M=function(f,c){this.type=f;this.behavior=f.behavior;this.e=c;this.b=f.b};var h=k.M.prototype;h.J=function(){this.ec=null;this.lo=-1;this.mode=this.Pi=this.ep=this.$i=this.Yf=this.kl=0;var f=this;this.zc||(this.Yk=function(c){f.el(c)});this.b.pm(this.Yk)};h.$a=function(){return{uid:this.ec?this.ec.uid:-1,pa:this.kl,pd:this.Yf,msa:this.$i,tsa:this.ep,lka:this.Pi,m:this.mode}};h.eb= function(f){this.lo=f.uid;this.kl=f.pa;this.Yf=f.pd;this.$i=f.msa;this.ep=f.tsa;this.Pi=f.lka;this.mode=f.m};h.oe=function(){-1===this.lo?this.ec=null:this.ec=this.b.Ai(this.lo);this.lo=-1};h.el=function(f){this.ec==f&&(this.ec=null)};h.wd=function(){this.ec=null;this.b.ix(this.Yk)};h.Qa=function(){};h.ci=function(){if(this.ec){this.Pi!==this.e.q&&(this.$i=La(this.$i+(this.e.q-this.Pi)));var f=this.e.x,c=this.e.y;if(3===this.mode||4===this.mode){var b=Va(this.e.x,this.e.y,this.ec.x,this.ec.y);if(b> this.Yf||4===this.mode&&b<this.Yf)c=Oa(this.ec.x,this.ec.y,this.e.x,this.e.y),f=this.ec.x+Math.cos(c)*this.Yf,c=this.ec.y+Math.sin(c)*this.Yf}else f=this.ec.x+Math.cos(this.ec.q+this.kl)*this.Yf,c=this.ec.y+Math.sin(this.ec.q+this.kl)*this.Yf;this.Pi=b=La(this.$i+(this.ec.q-this.ep));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.e.x===f&&this.e.y===c||(this.e.x=f,this.e.y=c,this.e.V());0!==this.mode&&2!==this.mode||this.e.q===b||(this.e.q=b,this.e.V())}};k.j=new function(){};m.prototype.zA= function(f,c){if(f){var b=f.Mq(this.e);b&&(this.ec=b,this.kl=Oa(b.x,b.y,this.e.x,this.e.y)-b.q,this.Yf=Va(b.x,b.y,this.e.x,this.e.y),this.Pi=this.$i=this.e.q,this.ep=b.q,this.mode=c)}};k.n=new m;k.A=new function(){}})();function Sc(m){this.b=m} (function(){function m(){}function k(){}function h(){}var f=Sc.prototype;f.T=function(b){this.behavior=b;this.b=b.b};f.T.prototype.J=function(){};f.M=function(b,c){this.type=b;this.behavior=b.behavior;this.e=c;this.b=b.b};var c=f.M.prototype;c.J=function(){this.hc={}};c.wd=function(){Za(this.hc)};c.$a=function(){var b={},c,a;for(c in this.hc)this.hc.hasOwnProperty(c)&&(a=this.hc[c],b[c]={c:a.current.W,t:a.total.W,d:a.duration,r:a.ts});return b};c.eb=function(b){this.hc={};for(var c in b)b.hasOwnProperty(c)&& (this.hc[c]={current:new db,total:new db,duration:b[c].d,ts:b[c].r},this.hc[c].current.W=b[c].c,this.hc[c].total.W=b[c].t)};c.Qa=function(){var b=this.b.ff(this.e),c,a;for(c in this.hc)this.hc.hasOwnProperty(c)&&(a=this.hc[c],a.current.add(b),a.total.add(b))};c.ci=function(){var b,c;for(b in this.hc)this.hc.hasOwnProperty(b)&&(c=this.hc[b],c.current.W>=c.duration&&(c.ts?c.current.W-=c.duration:delete this.hc[b]))};m.prototype.pA=function(b){b=b.toLowerCase();return(b=this.hc[b])?b.current.W>=b.duration: !1};f.j=new m;k.prototype.sB=function(b,c,a){this.hc[a.toLowerCase()]={current:new db,total:new db,duration:b,ts:1===c}};k.prototype.vB=function(b){b=b.toLowerCase();this.hc.hasOwnProperty(b)&&delete this.hc[b]};f.n=new k;h.prototype.Cp=function(b,c){var a=this.hc[c.toLowerCase()];b.F(a?a.duration:0)};f.A=new h})();function Tc(m){this.b=m} (function(){function m(){}function k(){}var h=Tc.prototype;h.T=function(b){this.behavior=b;this.b=b.b};h.T.prototype.J=function(){this.Ne=[]};h.M=function(b,a){this.type=b;this.behavior=b.behavior;this.e=a;this.b=b.b};var f=h.M.prototype;f.J=function(){this.yc=this.u[0];this.Tg=this.u[1];this.Co=0!==this.u[2];this.ys=G(this.u[3]);this.bp=this.u[4];this.so=0!==this.u[5];this.ks=this.u[6];this.enabled=0!==this.u[7];this.Kl=0!==this.u[8];this.Hn=0;this.Ce=this.Tg;this.currentTarget=null;this.Er=-1;this.Oh= this.Nh=0;this.Qi=[0,0,0,0];this.Me=0;this.hk=!0;var b=this;this.zc||(this.Yk=function(a){b.el(a)});this.b.pm(this.Yk)};f.$a=function(){var b={r:this.yc,rof:this.Tg,re:this.Co,rs:this.ys,tm:this.bp,pa:this.so,ps:this.ks,en:this.enabled,lct:this.Hn,ftc:this.Ce,target:this.currentTarget?this.currentTarget.uid:-1,ox:this.Nh,oy:this.Oh,ls:this.Qi,sc:this.Me,targs:[]},a,c;a=0;for(c=this.type.Ne.length;a<c;a++)b.targs.push(this.type.Ne[a].Ea);return b};f.eb=function(b){this.yc=b.r;this.Tg=b.rof;this.Co= b.re;this.ys=b.rs;this.bp=b.tm;this.so=b.pa;this.ks=b.ps;this.enabled=b.en;this.Hn=b.lct;this.Ce=b.ftc||0;this.Er=b.target;this.Nh=b.ox;this.Oh=b.oy;this.Qi=b.ls;this.Me=b.sc;C(this.type.Ne);var a,c,f;a=0;for(c=b.targs.length;a<c;a++)(f=this.b.Bi(b.targs[a]))&&this.type.Ne.push(f)};f.oe=function(){-1===this.Er?this.currentTarget=null:this.currentTarget=this.b.Ai(this.Er)};f.el=function(b){this.currentTarget==b&&(this.currentTarget=null)};f.wd=function(){this.currentTarget=null;this.b.ix(this.Yk)}; f.OB=function(b){4>this.Me?(this.Qi[this.Me]=b,this.Me++):(this.Qi.shift(),this.Qi.push(b))};f.qn=function(){for(var b=0,a=0;a<this.Me;a++)b+=this.Qi[a];return b/this.Me};f.Mv=function(b){var a=this.e,c=b.x-a.x;b=b.y-a.y;return c*c+b*b<=this.yc*this.yc};var c=new xa(0,0,0,0),b=[];f.IE=function(){var f,a,d;c.left=this.e.x-this.yc;c.top=this.e.y-this.yc;c.right=this.e.x+this.yc;c.bottom=this.e.y+this.yc;if(this.Kl)this.b.rn(null,this.type.Ne,c,b);else for(f=0,a=this.type.Ne.length;f<a;++f)Da(b,this.type.Ne[f].k); f=0;for(a=b.length;f<a;++f)if(d=b[f],this.Mv(d)){this.currentTarget=d;C(b);return}C(b)};f.JE=function(){var f,a,d,h,e,l=this.e.x,k=this.e.y,m=this.yc*this.yc;this.currentTarget=null;c.left=l-this.yc;c.top=k-this.yc;c.right=l+this.yc;c.bottom=k+this.yc;if(this.Kl)this.b.rn(null,this.type.Ne,c,b);else for(f=0,a=this.type.Ne.length;f<a;++f)Da(b,this.type.Ne[f].k);f=0;for(a=b.length;f<a;++f)d=b[f],h=l-d.x,e=k-d.y,h=h*h+e*e,h<m&&(this.currentTarget=d,m=h);b.length=0};f.Qa=function(){var b=this.b.ff(this.e), a=this.b.zb.W,c=this.e;if(this.enabled){this.currentTarget&&!this.Mv(this.currentTarget)&&(this.currentTarget=null,this.Me=0,this.hk=!0);a>=this.Hn+.1&&((this.Hn=a,0!==this.bp||this.currentTarget)?1===this.bp&&(a=this.currentTarget,this.JE(),this.currentTarget&&this.currentTarget!==a&&(this.Me=0,this.hk=!0,this.Nh=this.currentTarget.x,this.Oh=this.currentTarget.y,this.b.trigger(Tc.prototype.j.Yt,this.e))):(this.IE(),this.currentTarget&&(this.Me=0,this.hk=!0,this.Nh=this.currentTarget.x,this.Oh=this.currentTarget.y, this.b.trigger(Tc.prototype.j.Yt,this.e))));this.Ce+=b;if(this.currentTarget){a=Oa(c.x,c.y,this.currentTarget.x,this.currentTarget.y);if(this.so){var f=c.x,e=c.y,h=this.currentTarget.x,k=this.currentTarget.y,m=Oa(h,k,this.Nh,this.Oh);this.hk||this.OB(Va(h,k,this.Nh,this.Oh)/b);var v=this.qn(),y=k-e,z=h-f,f=(v*Math.sin(m)*(f-h)-v*Math.cos(m)*(e-k))/this.ks,y=Math.asin(f/Math.sqrt(y*y+z*z))-Math.atan2(y,-z)+Math.PI;isNaN(y)||(a=y)}this.Co&&(c.q=Sa(c.q,a,this.ys*b),c.V());this.Ce>=this.Tg&&(!this.Co|| .1>=Ja(Pa(c.q,a)))&&(!this.so||4<=this.Me)&&(this.Ce-=this.Tg,this.Ce>=this.Tg&&(this.Ce=0),this.b.trigger(Tc.prototype.j.Vt,this.e));this.currentTarget&&(this.Nh=this.currentTarget.x,this.Oh=this.currentTarget.y);this.hk=!1}this.Ce>this.Tg&&(this.Ce=this.Tg)}};m.prototype.Vt=function(){return!0};m.prototype.Yt=function(){return!0};h.j=new m;k.prototype.my=function(b){var a=this.type.Ne;if(-1===a.indexOf(b)){var c,f,e;c=0;for(f=a.length;c<f;c++)if(e=a[c],e.P&&-1!==e.Rg.indexOf(b))return;a.push(b)}}; k.prototype.ng=function(b){this.enabled=0!==b};h.n=new k;h.A=new function(){}})();function Uc(m){this.b=m} (function(){var m=Uc.prototype;m.T=function(k){this.behavior=k;this.b=k.b};m.T.prototype.J=function(){};m.M=function(k,h){this.type=k;this.behavior=k.behavior;this.e=h;this.b=k.b;this.mode=0};m=m.M.prototype;m.J=function(){this.mode=this.u[0]};m.Qa=function(){};m.ci=function(){this.e.za();var k=this.e.ma,h=this.e.B.Kb,f=!1;0===this.mode?(0>this.e.x&&(this.e.x=0,f=!0),0>this.e.y&&(this.e.y=0,f=!0),this.e.x>h.width&&(this.e.x=h.width,f=!0),this.e.y>h.height&&(this.e.y=h.height,f=!0)):(0>k.left&&(this.e.x-= k.left,f=!0),0>k.top&&(this.e.y-=k.top,f=!0),k.right>h.width&&(this.e.x-=k.right-h.width,f=!0),k.bottom>h.height&&(this.e.y-=k.bottom-h.height,f=!0));f&&this.e.V()}})();function Vc(m){this.b=m} (function(){function m(){}function k(){}function h(){}var f=Vc.prototype;f.T=function(b){this.behavior=b;this.b=b.b};f.T.prototype.J=function(){};f.M=function(b,c){this.type=b;this.behavior=b.behavior;this.e=c;this.b=b.b;this.gh=this.S=this.O=0};var c=f.M.prototype;c.J=function(){this.vj=this.u[0];this.ns=this.u[1];this.enabled=0!==this.u[2]};c.$a=function(){return{dx:this.O,dy:this.S,cancelStep:this.gh,enabled:this.enabled,stepMode:this.vj,pxPerStep:this.ns}};c.eb=function(b){this.O=b.dx;this.S= b.dy;this.gh=b.cancelStep;this.enabled=b.enabled;this.vj=b.stepMode;this.ns=b.pxPerStep};c.qn=function(){return Math.sqrt(this.O*this.O+this.S*this.S)};c.Xb=function(){return Math.atan2(this.S,this.O)};c.step=function(b,c,a){if(0!==b||0!==c){var d=this.e.x,f=this.e.y,e,h=Math.round(Math.sqrt(b*b+c*c)/this.ns);0===h&&(h=1);var k;for(k=1;k<=h;k++)if(e=k/h,this.e.x=d+b*e,this.e.y=f+c*e,this.e.V(),this.b.trigger(a,this.e),1===this.gh){k--;e=k/h;this.e.x=d+b*e;this.e.y=f+c*e;this.e.V();break}else if(2=== this.gh)break}};c.Qa=function(){var b=this.b.ff(this.e),c=this.O*b,b=this.S*b;0===this.O&&0===this.S||!this.enabled||(this.gh=0,0===this.vj?(this.e.x+=c,this.e.y+=b):1===this.vj?this.step(c,b,Vc.prototype.j.Qz):2===this.vj?(this.step(c,0,Vc.prototype.j.Et),this.gh=0,this.step(0,b,Vc.prototype.j.Ft)):3===this.vj&&(this.step(0,b,Vc.prototype.j.Ft),this.gh=0,this.step(c,0,Vc.prototype.j.Et)),this.e.V())};m.prototype.xt=function(){return 0!=this.O||0!=this.S};m.prototype.Qz=function(){return!0};m.prototype.Et= function(){return!0};m.prototype.Ft=function(){return!0};f.j=new m;k.prototype.pg=function(){this.S=this.O=0};k.prototype.ki=function(b){switch(b){case 0:this.O*=-1;this.S*=-1;break;case 1:this.O*=-1;break;case 2:this.S*=-1}};k.prototype.eu=function(b,c){var a;switch(b){case 0:a=this.Xb();this.O=Math.cos(a)*c;this.S=Math.sin(a)*c;break;case 1:this.O=c;break;case 2:this.S=c}};k.prototype.JA=function(b){b=G(b);var c=this.qn();this.O=Math.cos(b)*c;this.S=Math.sin(b)*c};k.prototype.ng=function(b){this.enabled= 1===b};f.n=new k;h.prototype.iu=function(b){b.F(this.qn())};h.prototype.O=function(b){b.F(this.O)};h.prototype.S=function(b){b.F(this.S)};f.A=new h})();var Wc=[],Xc=[],Yc=[],Zc=[],$c=[],ad=[],bd=[],cd=[],dd=[],ed=[];function fd(m){return result=(m/=1)<1/2.75?7.5625*m*m+0:m<2/2.75?1*(7.5625*(m-=1.5/2.75)*m+.75)+0:m<2.5/2.75?1*(7.5625*(m-=2.25/2.75)*m+.9375)+0:1*(7.5625*(m-=2.625/2.75)*m+.984375)+0}function gd(m,k){return Math.round(m/k*1E4)} function md(m,k,h,f,c){var b=0;switch(m){case 0:b=1*k/h+0;break;case 1:b=1*(k/=h)*k+0;break;case 2:b=-1*(k/=h)*(k-2)+0;break;case 3:b=1>(k/=h/2)?.5*k*k+0:-.5*(--k*(k-2)-1)+0;break;case 4:b=1*(k/=h)*k*k+0;break;case 5:b=1*((k=k/h-1)*k*k+1)+0;break;case 6:b=1>(k/=h/2)?.5*k*k*k+0:.5*((k-=2)*k*k+2)+0;break;case 7:b=1*(k/=h)*k*k*k+0;break;case 8:b=-1*((k=k/h-1)*k*k*k-1)+0;break;case 9:b=1>(k/=h/2)?.5*k*k*k*k+0:-.5*((k-=2)*k*k*k-2)+0;break;case 10:b=1*(k/=h)*k*k*k*k+0;break;case 11:b=1*((k=k/h-1)*k*k*k* k+1)+0;break;case 12:b=1>(k/=h/2)?.5*k*k*k*k*k+0:.5*((k-=2)*k*k*k*k+2)+0;break;case 13:c.xd?b=$c[gd(k,h)]:b=-(Math.sqrt(1-k*k)-1);break;case 14:c.xd?b=ad[gd(k,h)]:b=Math.sqrt(1-(k-1)*(k-1));break;case 15:b=c.xd?bd[gd(k,h)]:1>(k/=h/2)?-.5*(Math.sqrt(1-k*k)-1)+0:.5*(Math.sqrt(1-(k-=2)*k)+1)+0;break;case 16:c.xd?b=cd[gd(k,h)]:(c=c.nd,b=1*(k/=h)*k*((c+1)*k-c)+0);break;case 17:c.xd?b=dd[gd(k,h)]:(c=c.nd,b=1*((k=k/h-1)*k*((c+1)*k+c)+1)+0);break;case 18:c.xd?b=ed[gd(k,h)]:(c=c.nd,b=1>(k/=h/2)?.5*k*k*(((c*= 1.525)+1)*k-c)+0:.5*((k-=2)*k*(((c*=1.525)+1)*k+c)+2)+0);break;case 19:c.xd?b=Xc[gd(k,h)]:(b=c.li,m=c.hl,k/=h,0==m&&(m=.3*h),0==b||b<Math.abs(1)?(b=1,c=m/4):c=m/(2*Math.PI)*Math.asin(1/b),b=-(b*Math.pow(2,10*--k)*Math.sin(2*(k*h-c)*Math.PI/m))+0);break;case 20:c.xd?b=Yc[gd(k,h)]:(b=c.li,m=c.hl,k/=h,0==m&&(m=.3*h),0==b||b<Math.abs(1)?(b=1,c=m/4):c=m/(2*Math.PI)*Math.asin(1/b),b=b*Math.pow(2,-10*k)*Math.sin(2*(k*h-c)*Math.PI/m)+1);break;case 21:c.xd?b=Zc[gd(k,h)]:(b=c.li,m=c.hl,k/=h/2,0==m&&(m=.3*h* 1.5),0==b||b<Math.abs(1)?(b=1,c=m/4):c=m/(2*Math.PI)*Math.asin(1/b),b=1>k?-.5*b*Math.pow(2,10*--k)*Math.sin(2*(k*h-c)*Math.PI/m)+0:b*Math.pow(2,-10*--k)*Math.sin(2*(k*h-c)*Math.PI/m)*.5+1);break;case 22:b=c.xd?1-Wc[gd(h-k,h)]+0:1-fd(h-k/h)+0;break;case 23:b=c.xd?Wc[gd(k,h)]:fd(k/h);break;case 24:b=c.xd?k<h/2?.5*(1-Wc[gd(h-2*k,h)]+0)+0:.5*Wc[gd(2*k-h,h)]+.5:k<h/2?.5*(1-fd(h-2*k)+0)+0:.5*fd((2*k-h)/h)+.5;break;case 25:k=k/h/2;b=2*k*k*(3-2*k);break;case 26:k=(k/h+1)/2;b=2*k*k*(3-2*k)-1;break;case 27:k= k/h,b=k*k*(3-2*k)}return f?1-b:b} for(var nd=0,od=0,pd=0,Z=0,qd=0,rd=0;1E4>=rd;rd++)Z=rd/1E4,nd=(Z/=1)<1/2.75?7.5625*Z*Z+0:Z<2/2.75?1*(7.5625*(Z-=1.5/2.75)*Z+.75)+0:Z<2.5/2.75?1*(7.5625*(Z-=2.25/2.75)*Z+.9375)+0:1*(7.5625*(Z-=2.625/2.75)*Z+.984375)+0,Wc[rd]=nd,Z=rd/1E4,pd=od=0,Z/=1,0==pd&&(pd=.3),0==od||od<Math.abs(1)?(od=1,qd=pd/4):qd=pd/(2*Math.PI)*Math.asin(1/od),nd=-(od*Math.pow(2,10*--Z)*Math.sin(2*(1*Z-qd)*Math.PI/pd))+0,Xc[rd]=nd,Z=rd/1E4,pd=od=0,Z/=1,0==pd&&(pd=.3),0==od||od<Math.abs(1)?(od=1,qd=pd/4):qd=pd/(2*Math.PI)*Math.asin(1/ od),nd=od*Math.pow(2,-10*Z)*Math.sin(2*(1*Z-qd)*Math.PI/pd)+1,Yc[rd]=nd,Z=rd/1E4,pd=od=0,Z/=.5,0==pd&&(pd=.3*1.5),0==od||od<Math.abs(1)?(od=1,qd=pd/4):qd=pd/(2*Math.PI)*Math.asin(1/od),nd=1>Z?-.5*od*Math.pow(2,10*--Z)*Math.sin(2*(1*Z-qd)*Math.PI/pd)+0:od*Math.pow(2,-10*--Z)*Math.sin(2*(1*Z-qd)*Math.PI/pd)*.5+1,Zc[rd]=nd,Z=rd/1E4,$c[rd]=-(Math.sqrt(1-Z*Z)-1),Z=rd/1E4,ad[rd]=Math.sqrt(1-(Z-1)*(Z-1)),Z=rd/1E4,nd=1>(Z/=.5)?-.5*(Math.sqrt(1-Z*Z)-1)+0:.5*(Math.sqrt(1-(Z-=2)*Z)+1)+0,bd[rd]=nd,Z=rd/1E4,qd= 0,0==qd&&(qd=1.70158),nd=1*(Z/=1)*Z*((qd+1)*Z-qd)+0,cd[rd]=nd,Z=rd/1E4,qd=0,0==qd&&(qd=1.70158),nd=1*((Z=Z/1-1)*Z*((qd+1)*Z+qd)+1)+0,dd[rd]=nd,Z=rd/1E4,qd=0,0==qd&&(qd=1.70158),nd=1>(Z/=.5)?.5*Z*Z*(((qd*=1.525)+1)*Z-qd)+0:.5*((Z-=2)*Z*(((qd*=1.525)+1)*Z+qd)+2)+0,ed[rd]=nd; function sd(m,k,h,f,c,b,g){this.name=m;this.value=0;this.pj(f);this.Mo(c);this.ph=h;this.D=k;this.duration=b;this.state=this.Ca=0;this.Zn=this.$n=this.He=this.ej=!1;this.uc=this.ab=0;this.Lc=g;this.Zf=1;this.jk=!1;this.Ed=[];this.Xv=1;for(m=0;28>m;m++)this.Ed[m]={},this.Ed[m].li=0,this.Ed[m].hl=0,this.Ed[m].wj=0,this.Ed[m].nd=0,this.Ed[m].xd=!0}sd.prototype={};sd.prototype.pj=function(m){this.Oa=parseFloat(m.split(",")[0]);this.Jb=parseFloat(m.split(",")[1]);this.uc=this.ab=0}; sd.prototype.Mo=function(m){this.Ka=parseFloat(m.split(",")[0]);this.yb=parseFloat(m.split(",")[1]);isNaN(this.yb)&&(this.yb=this.Ka)}; sd.prototype.Jp=function(m){if(0===this.state)return-1;1===this.state&&(this.Ca+=m);2===this.state&&(this.Ca-=m);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.Ca+=m*this.Zf;5===this.state&&(this.Ca+=m*this.Zf);return 0>this.Ca?(this.Ca=0,4===this.state?this.Zf=1:6===this.state?(this.Zf=1,this.jk=!1):this.state=0,this.Zn=!0,0):this.Ca>this.duration?(this.Ca=this.duration,4===this.state?this.Zf=-1:6===this.state?(this.Zf=-1,this.jk=!0):5===this.state?this.Ca=0:this.state=0,this.He= !0,1):this.jk?md(this.ph,this.duration-this.Ca,this.duration,this.jk,this.Ed[this.ph]):md(this.ph,this.Ca,this.duration,this.jk,this.Ed[this.ph])};function td(m){return m.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ud(m){this.b=m} (function(){var m=ud.prototype;m.T=function(h){this.behavior=h;this.b=h.b};m.T.prototype.J=function(){};m.M=function(h,f){this.type=h;this.behavior=h.behavior;this.e=f;this.b=h.b;this.ja=0};var k=m.M.prototype;k.J=function(){this.X=this.u[0];this.L=1==this.X||2==this.X||3==this.X||4==this.X;this.D=this.u[1];this.Kf=this.u[2];this.target=this.u[3];this.cp=this.u[4];this.pp=!1;1===this.cp&&(this.target="relative("+this.target+")");this.duration=this.u[5];this.Lc=1===this.u[6];this.value=0;this.R={}; this.vu(this.D,this.Kf,"current",this.target,this.duration,this.Lc);1===this.u[0]&&this.Al(0);2===this.u[0]&&this.Al(2);3===this.u[0]&&this.Al(3);4===this.u[0]&&this.Al(4)};k.nf=function(h,f){void 0===f&&(f="current");var c=td(f);f=td(f);var b=this.value;if("current"===f)switch(h){case 0:c=this.e.x+","+this.e.y;break;case 1:c=this.e.width+","+this.e.height;break;case 2:c=this.e.width+","+this.e.height;break;case 3:c=this.e.width+","+this.e.height;break;case 4:c=Ja(this.e.q)+","+Ja(this.e.q);break; case 5:c=100*this.e.opacity+","+100*this.e.opacity;break;case 6:c=b+","+b;break;case 7:c=this.e.x+","+this.e.y;break;case 8:c=this.e.x+","+this.e.y;break;case 9:c=void 0!==this.e.mb?this.e.width/this.e.mb.width+","+this.e.height/this.e.mb.height:"1,1"}if("relative"===f.substring(0,8)){var g=f.match(/\((.*?)\)/);if(g)var a=parseFloat(g[1].split(",")[0]),d=parseFloat(g[1].split(",")[1]);isNaN(a)&&(a=0);isNaN(d)&&(d=0);switch(h){case 0:c=this.e.x+a+","+(this.e.y+d);break;case 1:c=this.e.width+a+","+ (this.e.height+d);break;case 2:c=this.e.width+a+","+(this.e.height+d);break;case 3:c=this.e.width+a+","+(this.e.height+d);break;case 4:c=Ja(this.e.q)+a+","+(Ja(this.e.q)+d);break;case 5:c=100*this.e.opacity+a+","+(100*this.e.opacity+d);break;case 6:c=b+a+","+b+a;break;case 7:c=this.e.x+a+","+this.e.y;break;case 8:c=this.e.x+","+(this.e.y+a);break;case 9:c=a+","+d}}return c};k.vu=function(h,f,c,b,g,a){c=this.nf(h,c);b=this.nf(h,b);void 0!==this.R["default"]&&delete this.R["default"];this.R["default"]= new sd("default",h,f,c,b,g,a);this.R["default"].Jf=0};k.$a=function(){JSON.stringify(this.R["default"]);return{playmode:this.X,active:this.L,tweened:this.D,easing:this.Kf,target:this.target,targetmode:this.cp,useCurrent:this.pp,duration:this.duration,enforce:this.Lc,value:this.value,tweenlist:JSON.stringify(this.R["default"])}};sd.Gz=function(h,f,c,b,g,a,d,k){f=new sd(f,c,b,g,a,d,k);for(var e in h)f[e]=h[e];return f};k.eb=function(h){var f=JSON.parse(h.tweenlist),f=sd.Gz(f,f.name,f.D,f.ph,f.Oa+","+ f.Jb,f.Ka+","+f.yb,f.duration,f.Lc);this.R["default"]=f;this.X=h.playmode;this.L=h.active;this.Kf=h.easing;this.target=h.target;this.cp=h.targetmode;this.pp=h.useCurrent;this.duration=h.duration;this.Lc=h.enforce;this.value=h.value};k.PF=function(h){1<h&&(h=1);0>h&&(h=0);for(var f in this.R){var c=this.R[f];c.ab=0;c.uc=0;c.state=3;c.Ca=h*c.duration;var b=c.Jp(0);this.dt(c,b)}};k.Al=function(h){for(var f in this.R){var c=this.R[f];if(this.pp){var b=this.nf(c.D,"current"),g=this.nf(c.D,this.target); c.pj(b);c.Mo(g)}0===h&&(c.Ca=1E-6,c.ab=0,c.uc=0,c.ej=!0,c.state=1);1===h&&(c.state=c.Xv);if(2===h||4===h)c.Ca=1E-6,c.ab=0,c.uc=0,c.ej=!0,2==h&&(c.state=4),4==h&&(c.state=6);3===h&&(c.Ca=1E-6,c.ab=0,c.uc=0,c.ej=!0,c.state=5)}};k.WF=function(h){for(var f in this.R){var c=this.R[f];3!=c.state&&0!=c.state&&(c.Xv=c.state);1===h&&(c.Ca=0);2===h&&(c.Ca=c.duration);c.state=3;var b=c.Jp(0);this.dt(c,b)}};k.CF=function(h){for(var f in this.R){var c=this.R[f];1===h&&(c.Ca=c.duration,c.ab=0,c.uc=0,c.$n=!0);c.state= 2}};k.dt=function(h,f){if(0===h.D)h.Lc?(this.e.x=h.Oa+(h.Ka-h.Oa)*f,this.e.y=h.Jb+(h.yb-h.Jb)*f):(this.e.x+=(h.Ka-h.Oa)*f-h.ab,this.e.y+=(h.yb-h.Jb)*f-h.uc,h.ab=(h.Ka-h.Oa)*f,h.uc=(h.yb-h.Jb)*f);else if(1===h.D)h.Lc?(this.e.width=h.Oa+(h.Ka-h.Oa)*f,this.e.height=h.Jb+(h.yb-h.Jb)*f):(this.e.width+=(h.Ka-h.Oa)*f-h.ab,this.e.height+=(h.yb-h.Jb)*f-h.uc,h.ab=(h.Ka-h.Oa)*f,h.uc=(h.yb-h.Jb)*f);else if(2===h.D)h.Lc?this.e.width=h.Oa+(h.Ka-h.Oa)*f:(this.e.width+=(h.Ka-h.Oa)*f-h.ab,h.ab=(h.Ka-h.Oa)*f);else if(3=== h.D)h.Lc?this.e.height=h.Jb+(h.yb-h.Jb)*f:(this.e.height+=(h.yb-h.Jb)*f-h.uc,h.uc=(h.yb-h.Jb)*f);else if(4===h.D)if(h.Lc){var c=h.Oa+(h.Ka-h.Oa)*f;this.e.q=La(G(c))}else c=(h.Ka-h.Oa)*f-h.ab,this.e.q=La(this.e.q+G(c)),h.ab=(h.Ka-h.Oa)*f;else if(5===h.D)h.Lc?this.e.opacity=(h.Oa+(h.Ka-h.Oa)*f)/100:(this.e.opacity+=((h.Ka-h.Oa)*f-h.ab)/100,h.ab=(h.Ka-h.Oa)*f);else if(6===h.D)h.Lc?this.value=h.Oa+(h.Ka-h.Oa)*f:(this.value+=(h.Ka-h.Oa)*f-h.ab,h.ab=(h.Ka-h.Oa)*f);else if(7===h.D)h.Lc?this.e.x=h.Oa+(h.Ka- h.Oa)*f:(this.e.x+=(h.Ka-h.Oa)*f-h.ab,h.ab=(h.Ka-h.Oa)*f);else if(8===h.D)h.Lc?this.e.y=h.Jb+(h.yb-h.Jb)*f:(this.e.y+=(h.yb-h.Jb)*f-h.uc,h.uc=(h.yb-h.Jb)*f);else if(9===h.D){var c=h.Oa+(h.Ka-h.Oa)*f,b=h.Jb+(h.yb-h.Jb)*f;0>this.e.width&&(c=h.Oa+(h.Ka+h.Oa)*-f);0>this.e.height&&(b=h.Jb+(h.yb+h.Jb)*-f);h.Lc?(this.e.width=this.e.mb.width*c,this.e.height=this.e.mb.height*b):(0>this.e.width?(this.e.width=this.e.width/(-1+h.ab)*c,h.ab=c+1):(this.e.width=this.e.width/(1+h.ab)*c,h.ab=c-1),0>this.e.height? (this.e.height=this.e.height/(-1+h.uc)*b,h.uc=b+1):(this.e.height=this.e.height/(1+h.uc)*b,h.uc=b-1))}this.e.V()};k.Qa=function(){var h=this.b.ff(this.e),f=this.R["default"];0!==f.state&&(f.ej&&(this.b.trigger(ud.prototype.j.Ip,this.e),f.ej=!1),f.$n&&(this.b.trigger(ud.prototype.j.lA,this.e),f.$n=!1),this.L=1==f.state||2==f.state||4==f.state||5==f.state||6==f.state,h=f.Jp(h),this.dt(f,h),f.He&&(this.b.trigger(ud.prototype.j.am,this.e),f.He=!1),f.Zn&&(this.b.trigger(ud.prototype.j.St,this.e),f.Zn= !1))};m.j={};k=m.j;k.tt=function(){return 0!==this.R["default"].state};k.yz=function(){return 2==this.R["default"].state};k.My=function(h,f){var c=this.R["default"];return kc(c.Ca/c.duration,h,f)};k.FG=function(h,f){var c=this.R["default"];this.Gl=kc(c.Ca/c.duration,h,f);if(c=this.Vr!=this.Gl&&this.Gl)this.Vr=this.Gl;return c};k.Ip=function(){return void 0===this.R["default"]?!1:this.R["default"].ej};k.lA=function(){return void 0===this.R["default"]?!1:this.R["default"].$n};k.am=function(){return void 0=== this.R["default"]?!1:this.R["default"].He};k.St=function(){return void 0===this.R["default"]?!1:this.R["default"].Zn};m.n={};k=m.n;k.Tp=function(h,f){this.Vr=this.Gl=!1;this.pp=1==f;this.Al(h)};k.pg=function(h){this.WF(h)};k.ki=function(h){this.Vr=this.Gl=!1;this.CF(h)};k.LG=function(h){this.PF(h)};k.Mp=function(h){isNaN(h)||0>h||void 0===this.R["default"]||(this.R["default"].duration=h)};k.XG=function(h){void 0!==this.R["default"]&&(this.R["default"].Lc=1===h)};k.bu=function(h){void 0!==this.R["default"]&& (h=this.nf(this.R["default"].D,h),this.R["default"].pj(h))};k.Qp=function(h,f,c){if(void 0!==this.R["default"]&&!isNaN(c)){var b=this.R["default"],g=c+"";this.cp=f;var a="",d="";if(1===f){this.target="relative("+g+")";switch(h){case 0:a=this.e.x+c;d=b.yb;break;case 1:a=b.Ka;d=this.e.y+c;break;case 2:d=a=""+Ja(this.e.q+G(c));break;case 3:d=a=""+100*this.e.opacity+c;break;case 4:a=this.e.width+c;d=b.yb;break;case 5:a=b.Ka;d=this.e.height+c;break;case 6:d=a=c}g=a+","+d}else{switch(h){case 0:a=c;d=b.yb; break;case 1:a=b.Ka;d=c;break;case 2:d=a=c;break;case 3:d=a=c;break;case 4:a=c;d=b.yb;break;case 5:a=b.Ka;d=c;break;case 6:d=a=c}this.target=g=a+","+d}h=this.nf(this.R["default"].D,"current");g=this.nf(this.R["default"].D,g);b.pj(h);b.Mo(g)}};k.fu=function(h){void 0!==this.R["default"]&&(this.R["default"].D=h)};k.au=function(h){void 0!==this.R["default"]&&(this.R["default"].ph=h)};k.UG=function(h,f,c,b,g){void 0!==this.R["default"]&&(this.R["default"].Ed[h].xd=!1,this.R["default"].Ed[h].li=f,this.R["default"].Ed[h].hl= c,this.R["default"].Ed[h].wj=b,this.R["default"].Ed[h].nd=g)};k.MG=function(){void 0!==this.R["default"]&&(this.R["default"].xd=!0)};k.gu=function(h){var f=this.R["default"];this.value=h;6===f.D&&f.pj(this.nf(f.D,"current"))};k.du=function(h,f,c,b,g){if(void 0===this.R["default"])this.vu(h,f,initial,c,b,g);else{var a=this.R["default"];a.D=h;a.ph=f;a.pj(this.nf(h,"current"));a.Mo(this.nf(h,c));a.duration=b;a.Lc=1===g}};m.A={};m=m.A;m.fH=function(h){var f="N/A";switch(this.R["default"].state){case 0:f= "paused";break;case 1:f="playing";break;case 2:f="reversing";break;case 3:f="seeking"}h.Xa(f)};m.AA=function(h){h.F(this.R["default"].Ca/this.R["default"].duration)};m.Cp=function(h){h.F(this.R["default"].duration)};m.yB=function(h){var f=this.R["default"],c="N/A";switch(f.D){case 0:c=f.Ka;break;case 1:c=f.yb;break;case 2:c=f.Ka;break;case 3:c=f.Ka;break;case 4:c=f.Ka;break;case 5:c=f.yb;break;case 6:c=f.Ka}h.F(c)};m.ju=function(h){h.F(this.value)};m.jH=function(h,f,c,b,g){b=1<b?1:b;g=md(g,0>b?0: b,1,!1,!1);h.F(f+g*(c-f))}})();function td(m){return m.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vd(m){this.b=m} (function(){function m(c,b){return(c/=b)<1/2.75?7.5625*c*c+0:c<2/2.75?1*(7.5625*(c-=1.5/2.75)*c+.75)+0:c<2.5/2.75?1*(7.5625*(c-=2.25/2.75)*c+.9375)+0:1*(7.5625*(c-=2.625/2.75)*c+.984375)+0}var k=vd.prototype;k.T=function(c){this.behavior=c;this.b=c.b};k.T.prototype.J=function(){};k.M=function(c,b){this.type=c;this.behavior=c.behavior;this.e=b;this.b=c.b;this.ja=0};var h=k.M.prototype;h.wg=function(c){1<c&&(c=1);lc[this.group]=-1;lc[this.group]=c;lc[this.group]>=c&&(lc[this.group]=c)};h.wv=function(){""!= this.group&&("undefined"===typeof mc&&(mc={},lc={}),"undefined"===typeof mc[this.group]&&(mc[this.group]=[],lc[this.group]=-1),-1==mc[this.group].indexOf(this)&&mc[this.group].push(this))};h.Ug=function(){this.Td=this.e.width;this.Sd=this.e.height;this.Bj=this.e.q;this.Wx=this.e.opacity;this.bh=this.e.x;this.dh=this.e.y;this.lp=this.value};h.J=function(){this.L=1===this.u[0];this.D=this.u[1];this.Kf=this.u[2];this.I=this.u[3];this.target=this.u[4];this.duration=this.u[5];this.fi=this.u[6];this.X= this.u[7];this.value=this.u[8];this.Ic=this.u[9];this.Cq=1===this.u[10];this.group=this.u[11];this.Xc=null;this.jd=0;5==this.X&&(this.jd=1);this.wv();this.Ah=!1;this.qa=this.e.x;this.Ib=this.e.y;this.ua=parseFloat(this.target.split(",")[0]);this.Cb=parseFloat(this.target.split(",")[1]);this.Ug();this.Cj=this.Dc=this.Za=this.Db=this.ya=0;this.xo=this.e.height/this.e.width;this.Bo=this.reverse=!1;this.Be=this.Ae=!0;this.loop=!1;this.gb=this.Ua=0;this.qr=this.X;this.gd=this.ab=this.ya;this.Md=this.Db; this.Cq&&this.init();""==this.I&&(this.I="current");this.cl=this.cj=this.dl=this.He=this.gl=this.gj=this.fl=this.fj=!1;this.L&&this.init()};h.init=function(){this.fj=!1;""===this.I&&(this.I="current");""===this.target&&(this.target="current");var c="current"===this.I,b="current"===this.target,f="OBJ"===this.target;"OBJ"===this.target&&null!=this.Xc&&(0==this.D?this.target=1==this.Ic?this.Xc.x-this.e.x+","+(this.Xc.y-this.e.y):this.Xc.x+","+this.Xc.y:1==this.D||2==this.D||3==this.D||7==this.D?this.target= 1==this.Ic?(2==this.D?1:this.Xc.width)+","+(3==this.D?1:this.Xc.height):(2==this.D?1:this.Xc.width/this.Td)+","+(3==this.D?1:this.Xc.height/this.Sd):4==this.D?this.target=1==this.Ic?Ja(this.Xc.q-this.e.q)+"":Ja(this.Xc.q)+"":5==this.D&&(this.target=1==this.Ic?100*(this.Xc.opacity-this.e.opacity)+"":100*this.Xc.opacity+""));if(0==this.D)b&&(this.target=this.e.x+","+this.e.y),c?this.I=1==this.Ic?this.e.x+","+this.e.y:this.bh+","+this.dh:this.reverse||1==this.X||(this.e.x=parseFloat(this.I.split(",")[0]), this.e.y=parseFloat(this.I.split(",")[1])),1==this.Ic?(this.loop&&(this.e.x=this.bh,this.e.y=this.dh),this.qa=this.e.x,this.Ib=this.e.y,this.reverse?(this.ua=-parseFloat(this.target.split(",")[0]),this.Cb=-parseFloat(this.target.split(",")[1])):(this.ua=parseFloat(this.target.split(",")[0]),this.Cb=parseFloat(this.target.split(",")[1])),this.ya=this.qa,this.Db=this.Ib,this.Za=this.ya+this.ua,this.Dc=this.Db+this.Cb):(this.reverse?(this.e.x=parseFloat(this.target.split(",")[0]),this.e.y=parseFloat(this.target.split(",")[1]), this.ua=this.bh,this.Cb=this.dh):(this.e.x=this.bh,this.e.y=this.dh,this.ua=parseFloat(this.target.split(",")[0]),this.Cb=parseFloat(this.target.split(",")[1])),this.qa=this.e.x,this.Ib=this.e.y,this.ya=this.qa,this.Db=this.Ib,this.Za=this.ua,this.Dc=this.Cb,-6==this.X&&(this.Za=this.bh,this.Dc=this.dh));else if(1==this.D||2==this.D||3==this.D){b&&(this.target="1,1");"current"==this.I&&(this.I="1,1");this.I=""+this.I;this.target=""+this.target;2==this.D?(-1==this.I.indexOf(",")&&(this.I=parseFloat(this.I)+ ",1"),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+",1")):3==this.D?(-1==this.I.indexOf(",")&&(this.I="1,"+parseFloat(this.I)),-1==this.target.indexOf(",")&&(this.target="1,"+parseFloat(this.target))):(-1==this.I.indexOf(",")&&(this.I=parseFloat(this.I)+","+parseFloat(this.I)),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+","+parseFloat(this.target)));var a=parseFloat(this.I.split(",")[0]),d=parseFloat(this.I.split(",")[1]);this.Ae=!0;var h=parseFloat(this.target.split(",")[0]); if(0==h||isNaN(h))this.Ae=!1;3==this.D&&(this.Ae=!1);this.Be=!0;var e=parseFloat(this.target.split(",")[1]);if(0==e||isNaN(e))this.Be=!1;2==this.D&&(this.Be=!1);1==this.Ic?(this.loop&&(this.e.width=this.Td,this.e.height=this.Sd),c||(this.reverse?(this.e.width=this.e.width*h,this.e.height=this.e.height*e):(this.e.width=this.e.width*a,this.e.height=this.e.height*d)),this.qa=this.e.width,this.Ib=this.e.height,this.ya=this.qa,this.Db=this.Ib,this.reverse?(this.ua=this.qa*a/h,this.Cb=this.Ib*d/e):(this.ua= this.qa*h,this.Cb=this.Ib*e)):(c||(this.reverse?(this.e.width=this.Td*h,this.e.height=this.Sd*e):(this.e.width=this.Td*a,this.e.height=this.Sd*d)),this.qa=this.e.width,this.Ib=this.e.height,this.ya=this.qa,this.Db=this.Ib,this.reverse?(this.ua=this.Td*a,this.Cb=this.Sd*d):(this.ua=this.Td*h,this.Cb=this.Sd*e));this.Za=this.ua;this.Dc=this.Cb;-6==this.X&&(this.Za=this.Td*a,this.Dc=this.Sd*d)}else if(4==this.D)b&&(this.target=Ja(this.e.q)),"current"==this.I||this.reverse||1==this.X||(this.e.q=G(parseFloat(this.I.split(",")[0]))), 1==this.Ic?(this.loop&&(this.e.q=this.Bj),this.qa=this.e.q,this.reverse?this.ua=this.e.q-G(parseFloat(this.target.split(",")[0])):this.ua=this.e.q+G(parseFloat(this.target.split(",")[0]))):this.reverse?(this.e.q=G(parseFloat(this.target.split(",")[0])),this.qa=this.e.q,this.ua=this.Bj):(this.e.q=this.Bj,this.qa=this.e.q,this.ua=G(parseFloat(this.target.split(",")[0]))),this.ya=this.qa,this.Za=Ja(this.ua),-6==this.X&&(this.Za=Ja(this.Bj)),this.Cj=G(this.Za);else if(5==this.D)"current"==this.I&&(this.I= this.e.opacity),b&&(this.target=""+this.e.opacity),c||this.reverse||1==this.X||(this.e.opacity=parseFloat(this.I.split(",")[0])/100),1==this.Ic?(this.loop&&(this.e.opacity=this.Wx),this.ya=this.qa=this.e.opacity,this.ua=this.reverse?-parseFloat(this.target.split(",")[0])/100:parseFloat(this.target.split(",")[0])/100,this.Za=this.ya+this.ua):(this.qa=this.e.opacity,this.reverse?(this.ya=parseFloat(this.target.split(",")[0])/100,this.ua=parseFloat(this.I.split(",")[0])/100):(this.ya=this.qa,this.ua= parseFloat(this.target.split(",")[0])/100),this.Za=this.ua),-6==this.X&&(this.Za=this.Wx);else if(6==this.D)isNaN(this.value)&&(this.value=0),"current"==this.I&&(this.I=""+this.value),b&&(this.target=""+this.value),c||this.reverse||1==this.X||(this.value=parseFloat(this.I.split(",")[0])),1==this.Ic?(this.loop&&(this.value=this.lp),c||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.I.split(",")[0])),this.qa=this.value,this.reverse?this.ua=this.qa-parseFloat(this.target.split(",")[0]): this.ua=this.qa+parseFloat(this.target.split(",")[0]),this.ya=this.qa,this.Za=this.ua):(c||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.I.split(",")[0])),this.qa=this.value,this.ua=this.reverse?parseFloat(this.I.split(",")[0]):parseFloat(this.target.split(",")[0]),this.ya=this.qa,this.Za=this.ua),-6==this.X&&(this.Za=this.lp);else if(7==this.D){b&&(this.target=this.e.width+","+this.e.height);"current"==this.I||this.reverse||1==this.X||(this.e.width=parseFloat(this.I.split(",")[0]), this.e.height=parseFloat(this.I.split(",")[1]));this.Ae=!0;h=parseFloat(this.target.split(",")[0]);if(0>h||isNaN(h))this.Ae=!1;this.Be=!0;e=parseFloat(this.target.split(",")[1]);if(0>e||isNaN(e))this.Be=!1;1==this.Ic?(this.loop&&(this.e.width=this.Td,this.e.height=this.Sd),this.qa=this.e.width,this.Ib=this.e.height,this.reverse?(this.ua=this.qa-parseFloat(this.target.split(",")[0]),this.Cb=this.Ib-parseFloat(this.target.split(",")[1])):(this.ua=this.qa+parseFloat(this.target.split(",")[0]),this.Cb= this.Ib+parseFloat(this.target.split(",")[1]))):(c||(this.reverse?(this.e.width=parseFloat(this.target.split(",")[0]),this.e.height=parseFloat(this.target.split(",")[1])):(this.e.width=this.Td,this.e.height=this.Sd)),this.qa=this.e.width,this.Ib=this.e.height,this.reverse?(this.ua=this.Td,this.Cb=this.Sd):(this.ua=parseFloat(this.target.split(",")[0]),this.Cb=parseFloat(this.target.split(",")[1])));this.ya=this.qa;this.Db=this.Ib;this.Za=this.ua;this.Dc=this.Cb;-6==this.X&&(this.Za=this.Td,this.Dc= this.Sd)}this.gd=this.ab=this.ya;this.Md=this.Db;this.Ua=parseFloat(this.fi.split(",")[0]);this.gb=parseFloat(this.fi.split(",")[1]);if(0>this.Ua||isNaN(this.Ua))this.Ua=0;if(0>this.gb||isNaN(this.gb))this.gb=0;c&&(this.I="current");b&&(this.target="current");f&&(this.target="OBJ")};h.LC=function(c,b){switch(this.Kf){case 0:return 1*c/b+0;case 1:return 1*(c/=b)*c+0;case 2:return-1*(c/=b)*(c-2)+0;case 3:return 1>(c/=b/2)?.5*c*c+0:-.5*(--c*(c-2)-1)+0;case 4:return 1*(c/=b)*c*c+0;case 5:return 1*((c= c/b-1)*c*c+1)+0;case 6:return 1>(c/=b/2)?.5*c*c*c+0:.5*((c-=2)*c*c+2)+0;case 7:return 1*(c/=b)*c*c*c+0;case 8:return-1*((c=c/b-1)*c*c*c-1)+0;case 9:return 1>(c/=b/2)?.5*c*c*c*c+0:-.5*((c-=2)*c*c*c-2)+0;case 10:return 1*(c/=b)*c*c*c*c+0;case 11:return 1*((c=c/b-1)*c*c*c*c+1)+0;case 12:return 1>(c/=b/2)?.5*c*c*c*c*c+0:.5*((c-=2)*c*c*c*c+2)+0;case 13:return-1*(Math.sqrt(1-(c/=b)*c)-1)+0;case 14:return 1*Math.sqrt(1-(c=c/b-1)*c)+0;case 15:return 1>(c/=b/2)?-.5*(Math.sqrt(1-c*c)-1)+0:.5*(Math.sqrt(1-(c-= 2)*c)+1)+0;case 16:var f=0;0==f&&(f=1.70158);return 1*(c/=b)*c*((f+1)*c-f)+0;case 17:return f=0,0==f&&(f=1.70158),1*((c=c/b-1)*c*((f+1)*c+f)+1)+0;case 18:return f=0,0==f&&(f=1.70158),1>(c/=b/2)?.5*c*c*(((f*=1.525)+1)*c-f)+0:.5*((c-=2)*c*(((f*=1.525)+1)*c+f)+2)+0;case 19:var a=0,d=0;if(0==c)break;if(1==(c/=b))return 1;0==d&&(d=.3*b);0==a||a<Math.abs(1)?(a=1,f=d/4):f=d/(2*Math.PI)*Math.asin(1/a);return-(a*Math.pow(2,10*--c)*Math.sin(2*(c*b-f)*Math.PI/d))+0;case 20:d=a=0;if(0==c)break;if(1==(c/=b))return 1; 0==d&&(d=.6*b);0==a||a<Math.abs(1)?(a=1,f=d/4):f=d/(2*Math.PI)*Math.asin(1/a);return a*Math.pow(2,-10*c)*Math.sin(2*(c*b-f)*Math.PI/d)+1;case 21:d=a=0;if(0==c)break;if(2==(c/=b/2))return 1;0==d&&(d=.3*b*1.5);0==a||a<Math.abs(1)?(a=1,f=d/4):f=d/(2*Math.PI)*Math.asin(1/a);return 1>c?-.5*a*Math.pow(2,10*--c)*Math.sin(2*(c*b-f)*Math.PI/d)+0:a*Math.pow(2,-10*--c)*Math.sin(2*(c*b-f)*Math.PI/d)*.5+1;case 22:return 1-m(b-c,b)+0;case 23:return m(c,b);case 24:return c<b/2?.5*(1-m(b-2*c,b)+0)+0:.5*m(2*c-b,b)+ .5;case 25:return f=c/b/2,2*f*f*(3-2*f);case 26:return f=(c/b+1)/2,2*f*f*(3-2*f)-1;case 27:return f=c/b,f*f*(3-2*f)}return 0};h.$a=function(){return{i:this.ja,active:this.L,tweened:this.D,easing:this.Kf,initial:this.I,target:this.target,duration:this.duration,wait:this.fi,playmode:this.X,value:this.value,coord_mode:this.Ic,forceInit:this.Cq,group:this.group,targetObject:this.Xc,pingpongCounter:this.jd,isPaused:this.Ah,initialX:this.qa,initialY:this.Ib,targetX:this.ua,targetY:this.Cb,tweenSaveWidth:this.Td, tweenSaveHeight:this.Sd,tweenSaveAngle:this.Bj,tweenSaveX:this.bh,tweenSaveY:this.dh,tweenSaveValue:this.lp,tweenInitialX:this.ya,tweenInitialY:this.Db,tweenTargetX:this.Za,tweenTargetY:this.Dc,tweenTargetAngle:this.Cj,ratio:this.xo,reverse:this.reverse,rewindMode:this.Bo,doTweenX:this.Ae,doTweenY:this.Be,loop:this.loop,initiating:this.Ua,cooldown:this.gb,lastPlayMode:this.qr,lastKnownValue:this.ab,lastKnownX:this.gd,lastKnownY:this.Md,onStarted:this.fj,onStartedDone:this.fl,onWaitEnd:this.gj,onWaitEndDone:this.gl, onEnd:this.He,onEndDone:this.dl,onCooldown:this.cj,onCooldownDone:this.cl}};h.eb=function(c){this.ja=c.i;this.L=c.active;this.D=c.tweened;this.Kf=c.easing;this.I=c.initial;this.target=c.target;this.duration=c.duration;this.fi=c.wait;this.X=c.playmode;this.value=c.value;this.Ic=c.coord_mode;this.Cq=c.forceInit;this.group=c.group;this.Xc=c.targetObject;this.jd=c.pingpongCounter;this.Ah=c.isPaused;this.qa=c.initialX;this.Ib=c.initialY;this.ua=c.targetX;this.Cb=c.targetY;this.Td=c.tweenSaveWidth;this.Sd= c.tweenSaveHeight;this.Bj=c.tweenSaveAngle;this.bh=c.tweenSaveX;this.dh=c.tweenSaveY;this.lp=c.tweenSaveValue;this.ya=c.tweenInitialX;this.Db=c.tweenInitialY;this.Za=c.tweenTargetX;this.Dc=c.tweenTargetY;this.Cj=c.tweenTargetAngle;this.xo=c.ratio;this.reverse=c.reverse;this.Bo=c.rewindMode;this.Ae=c.doTweenX;this.Be=c.doTweenY;this.loop=c.loop;this.Ua=c.initiating;this.gb=c.cooldown;this.qr=c.lastPlayMode;this.ab=c.lastKnownValue;this.gd=c.lastKnownX;this.Md=c.lastKnownY;this.fj=c.onStarted;this.fl= c.onStartedDone;this.gj=c.onWaitEnd;this.gl=c.onWaitEndDone;this.He=c.onEnd;this.dl=c.onEndDone;this.cj=c.onCooldown;this.cl=c.onCooldownDone;this.wv()};h.Qa=function(){var c=this.b.ff(this.e),b=-1==this.ja;this.L&&0!==c&&(0!=this.ja||this.fj||(this.fj=!0,this.cl=this.cj=this.dl=this.He=this.gl=this.gj=this.fl=!1,this.b.trigger(vd.prototype.j.Ip,this.e),this.fl=!0),this.ja=-1==this.ja?this.Ua+this.duration+this.gb:this.ja+c,this.ja<=this.Ua||(0==this.gj&&(this.gj=!0,this.b.trigger(vd.prototype.j.Lp, this.e),this.gl=!0),this.ja<=this.duration+this.Ua&&(c=this.LC(this.ja-this.Ua,this.duration),0==this.D?(1==this.Ic?(this.e.x!==this.gd&&(this.ya+=this.e.x-this.gd,this.Za+=this.e.x-this.gd),this.e.y!==this.Md&&(this.Db+=this.e.y-this.Md,this.Dc+=this.e.y-this.Md)):(this.e.x!==this.gd&&(this.ya+=this.e.x-this.gd),this.e.y!==this.Md&&(this.Db+=this.e.y-this.Md)),this.e.x=this.ya+(this.Za-this.ya)*c,this.e.y=this.Db+(this.Dc-this.Db)*c,this.gd=this.e.x,this.Md=this.e.y):1==this.D||2==this.D||3==this.D? (this.e.width!==this.gd&&(this.ya=this.e.width),this.e.height!==this.Md&&(this.Db=this.e.height),this.Ae&&(this.e.width=this.ya+(this.Za-this.ya)*c),this.Be?this.e.height=this.Db+(this.Dc-this.Db)*c:1==this.D&&(this.e.height=this.e.width*this.xo),this.gd=this.e.width,this.Md=this.e.height):4==this.D?(c=this.ya+(this.Cj-this.ya)*c,this.ja>=this.duration+this.Ua&&(c=this.Cj),this.e.q=La(c)):5==this.D?(1==this.Ic&&this.e.opacity!==this.gd&&(this.ya=this.e.opacity),this.e.opacity=this.ya+(this.Za-this.ya)* c,this.gd=this.e.opacity):6==this.D?this.value=this.ya+(this.Za-this.ya)*c:7==this.D&&(1==this.Ic&&(this.e.width!==this.gd&&(this.ya=this.e.width),this.e.height!==this.Md&&(this.Db=this.e.height)),this.Ae&&(this.e.width=this.ya+(this.Za-this.ya)*c),this.Be&&(this.e.height=this.Db+(this.Dc-this.Db)*c),this.gd=this.e.width,this.Md=this.e.height),this.e.V()),this.ja>=this.duration+this.Ua&&(this.qC(b),this.e.V(),0==this.He&&(this.He=!0,this.b.trigger(vd.prototype.j.am,this.e),this.dl=!0))))};h.qC=function(c){switch(this.D){case 0:this.e.x= this.Za;this.e.y=this.Dc;break;case 1:this.Ae&&(this.e.width=this.Za);this.Be?this.e.height=this.Dc:this.e.height=this.e.width*this.xo;break;case 2:this.e.width=this.Za;break;case 3:this.e.height=this.Dc;break;case 4:this.e.q=La(this.Cj);this.ab=this.e.q;break;case 5:this.e.opacity=this.Za;break;case 6:this.value=this.Za;break;case 7:this.Ae&&(this.e.width=this.Za),this.Be&&(this.e.height=this.Dc)}this.ja>=this.duration+this.Ua+this.gb&&(0==this.X?(this.reverse=this.L=!1,this.ja=this.duration+this.Ua+ this.gb):1==this.X?(this.ja=0,this.init(),this.L=!0):2==this.X?c?(this.reverse=!1,this.init()):(this.reverse=!this.reverse,this.ja=0,this.init(),this.L=!0):3==this.X?this.b.Ve(this.e):4==this.X?(this.loop=!0,this.ja=0,this.init(),this.L=!0):5==this.X?c?(this.reverse=!1,this.init()):0>=this.jd?(this.ja=this.duration+this.Ua+this.gb,this.L=!1):(this.reverse?(--this.jd,this.reverse=!1):(--this.jd,this.reverse=!0),this.ja=0,this.init(),this.L=!0):-6==this.X?(this.X=this.qr,this.reverse=!1,this.ja=0,this.L= !1):6==this.X&&(this.reverse=!1,this.ja=this.duration+this.Ua+this.gb,this.L=!1));0==this.cj&&(this.cj=!0,this.b.trigger(vd.prototype.j.Uz,this.e),this.cl=!0)};k.j={};h=k.j;h.tt=function(){return this.L};h.tG=function(c,b){var f=[];mc[this.group].forEach(function(a){f.push(a.ja/(a.duration+a.Ua+a.gb))});return kc(Math.min.apply(null,f),c,b)};h.My=function(c,b){return kc(this.ja/(this.duration+this.Ua+this.gb),c,b)};h.Ip=function(){if(!1===this.fl)return this.fj};h.Lp=function(){if(!1===this.gl)return this.gj}; h.am=function(){if(!1===this.dl)return this.He};h.Uz=function(){if(!1===this.cl)return this.cj};k.n={};var f=k.n;f.TG=function(c){this.L=1===c};f.eH=function(c,b){""===b&&(b=this.group);(1===c||mc[b].every(function(b){return!b.L}))&&mc[b].forEach(function(b){1===c?f.Wy.apply(b):f.Tp.apply(b)})};f.gH=function(c,b){""===b&&(b=this.group);mc[b].forEach(function(b){f.pg.apply(b,[c])})};f.OG=function(c,b,g){""===g&&(g=this.group);(1===c||mc[g].every(function(a){return!a.L}))&&mc[g].forEach(function(a){1=== c?f.Xy.apply(a,[b]):f.ki.apply(a,[b])})};f.Wy=function(){this.loop=4===this.X;5==this.X&&(this.jd=1);6==this.X||-6==this.X?this.ja<this.duration+this.gb+this.Ua&&(this.reverse=!1,this.init(),this.L=!0):(this.reverse=!1,this.ja=0,this.init(),this.L=!0)};f.Xy=function(c){this.Bo=1==c;this.loop=4===this.X;5==this.X&&(this.jd=1);6==this.X||-6==this.X?this.ja<this.duration+this.gb+this.Ua&&(this.reverse=!0,this.init(),this.L=!0):c?1==this.jd&&this.ja>=this.duration+this.gb+this.Ua&&(this.reverse=!0,this.ja= 0,this.jd=2,this.init(),this.L=!0):(this.reverse=!0,this.ja=0,this.init(),this.L=!0)};f.Tp=function(){this.L||(this.loop=4===this.X,5==this.X&&(this.jd=1),6==this.X||-6==this.X?this.ja<this.duration+this.gb+this.Ua&&(this.reverse=!1,this.init(),this.L=!0):(this.jd=1,this.reverse=!1,this.ja=0,this.init(),this.L=!0))};f.pg=function(c){this.L&&(2==this.X||4==this.X?this.ja=this.reverse?0:-1:1==c?this.Ug():0==c?this.ja=this.Ua+this.gb+this.duration:this.ja=0,this.Qa(),this.L=!1)};f.GG=function(){this.L&& (this.Ah=!0,this.L=!1)};f.NG=function(){this.Ah?(this.L=!0,this.Ah=!1):this.L||(this.reverse=!1,this.ja=0,this.init(),this.L=!0)};f.ki=function(c){this.Bo=1==c;this.L||(this.loop=4===this.X,5==this.X&&(this.jd=1),6==this.X||-6==this.X?this.ja<this.duration+this.gb+this.Ua&&(this.reverse=!0,this.init(),this.L=!0):c?1==this.jd&&this.ja>=this.duration+this.gb+this.Ua&&(this.reverse=!0,this.ja=0,this.jd=2,this.init(),this.L=!0):(this.reverse=!0,this.ja=0,this.init(),this.L=!0))};f.Mp=function(c){this.duration= c};f.jB=function(c){this.fi=c;this.Ua=parseFloat(this.fi.split(",")[0]);this.gb=parseFloat(this.fi.split(",")[1]);if(0>this.Ua||isNaN(this.Ua))this.Ua=0;if(0>this.gb||isNaN(this.gb))this.gb=0};f.Qp=function(c){"string"==typeof c?(this.target=c,this.ua=parseFloat(c.split(",")[0]),this.Cb=parseFloat(c.split(",")[1])):this.ua=this.target=c;this.L||this.init()};f.aH=function(c){c&&(c=c.Mq())&&(this.Xc=c,this.target="OBJ")};f.bH=function(c){2==this.D||3==this.D||4==this.D||5==this.D||6==this.D?("string"== typeof c?this.target=parseFloat(c.split(",")[0]):this.target=""+c+","+this.Cb,this.ua=this.target):(this.target=String(c)+","+this.target.split(",")[1],this.ua=parseFloat(this.target.split(",")[0]),this.Cb=parseFloat(this.target.split(",")[1]));this.L||(this.Ug(),this.init())};f.cH=function(c){2==this.D||3==this.D||4==this.D||5==this.D||6==this.D?this.ua=this.target="string"==typeof c?parseFloat(c)+"":this.ua+","+c:(this.target=this.target.split(",")[0]+","+String(c),this.ua=parseFloat(this.target.split(",")[0]), this.Cb=parseFloat(this.target.split(",")[1]));this.L||(this.Ug(),this.init())};f.bu=function(c){"string"==typeof c?(this.I=c,this.qa=parseFloat(c.split(",")[0]),this.Ib=parseFloat(c.split(",")[1])):(this.I=""+c,this.qa=c);6==this.D&&(this.value=this.qa);this.L||(this.Ug(),this.init())};f.YG=function(c){2==this.D||3==this.D||4==this.D||5==this.D||6==this.D?("string"==typeof c?this.I=parseFloat(c):this.I=""+c+","+this.Ib,this.qa=this.I):(""==this.I&&(this.I="current"),this.I=String(c)+","+("current"== this.I?this.dh:this.I.split(",")[1]),this.qa=parseFloat(this.I.split(",")[0]),this.Ib=parseFloat(this.I.split(",")[1]));6==this.D&&(this.value=this.qa);this.L||(this.Ug(),this.init())};f.ZG=function(c){2==this.D||3==this.D||4==this.D||5==this.D||6==this.D?("string"==typeof c?this.I=parseFloat(c):this.I=""+this.qa+","+c,this.qa=this.I):(""==this.I&&(this.I="current"),this.I=("current"==this.I?this.bh:this.I.split(",")[0])+","+String(c),this.qa=parseFloat(this.I.split(",")[0]),this.Ib=parseFloat(this.I.split(",")[1])); this.L||(this.Ug(),this.init())};f.gu=function(c){this.value=c};f.fu=function(c){this.D=c};f.au=function(c){this.Kf=c};f.$G=function(c){this.X=c};f.du=function(c,b,g,a,d,h,e,k){this.D=c;this.X=b;this.Kf=g;f.bu.apply(this,[a]);f.Qp.apply(this,[d]);f.Mp.apply(this,[h]);f.jB.apply(this,[e]);this.Ic=k;this.Ug()};k.A={};k=k.A;k.AA=function(c){c.F(this.ja/(this.duration+this.Ua+this.gb))};k.KG=function(c){c.F(this.ja)};k.Cp=function(c){c.F(this.duration)};k.yG=function(c){c.F(this.Ua)};k.vG=function(c){c.F(this.gb)}; k.yB=function(c){c.Xa(this.target)};k.ju=function(c){c.F(this.value)};k.Ah=function(c){c.ca(this.Ah?1:0)}})();function xd(m){this.b=m;this.Po=this.yl=this.Xh=this.Oo=0} (function(){function m(){}var k=xd.prototype;k.T=function(f){this.behavior=f;this.b=f.b};k.T.prototype.J=function(){};k.M=function(f,c){this.type=f;this.behavior=f.behavior;this.e=c;this.b=f.b};var h=k.M.prototype;h.J=function(){this.enabled=0!==this.u[0]};h.$a=function(){return{smg:this.behavior.Oo,ss:this.behavior.Xh,se:this.behavior.yl,smd:this.behavior.Po}};h.eb=function(f){this.behavior.Oo=f.smg;this.behavior.Xh=f.ss;this.behavior.yl=f.se;this.behavior.Po=f.smd};h.Qa=function(){};h.ci=function(){if(this.enabled){var f= this.behavior.Zk.ke(),c=0,b=0,g,a,d,h=0;g=0;for(a=f.length;g<a;g++){a:{d=f[g];for(var e=void 0,k=void 0,m=void 0,e=0,k=d.da.length;e<k;++e)if(m=d.da[e],m.behavior instanceof xd){d=m;break a}d=null}d&&d.enabled&&(c+=f[g].x,b+=f[g].y,++h)}f=this.e.B.Kb;a=this.b.zb.W;d=g=0;a>=this.behavior.Xh&&a<this.behavior.yl&&(g=this.behavior.Oo*Math.min(this.b.$g,1),0===this.behavior.Po&&(g*=1-(a-this.behavior.Xh)/(this.behavior.yl-this.behavior.Xh)),a=Math.random()*Math.PI*2,d=Math.random()*g,g=Math.cos(a)*d,d*= Math.sin(a));f.Es(c/h+g);f.Fs(b/h+d)}};m.prototype.kB=function(f,c,b){this.behavior.Oo=f;this.behavior.Xh=this.b.zb.W;this.behavior.yl=this.behavior.Xh+c;this.behavior.Po=b};m.prototype.ng=function(f){this.enabled=0!==f};k.n=new m})();function wc(m){this.b=m} (function(){function m(){}var k=wc.prototype;k.T=function(f){this.behavior=f;this.b=f.b};k.T.prototype.J=function(){};k.M=function(f,c){this.type=f;this.behavior=f.behavior;this.e=c;this.b=f.b};var h=k.M.prototype;h.J=function(){this.e.Z.solidEnabled=0!==this.u[0]};h.Qa=function(){};k.j=new function(){};m.prototype.ng=function(f){this.e.Z.solidEnabled=!!f};k.n=new m})(); function vc(){return[Cc,Gc,Bc,M,xc,Y,Lc,Kc,Mc,Hc,Ac,yc,zc,Jc,Ic,Oc,ud,Vc,Pc,Nc,Tc,Rc,Qc,vd,Uc,xd,wc,Sc,Kc.prototype.j.yf,Kc.prototype.j.Yl,Kc.prototype.n.Rp,Kc.prototype.n.hm,L.prototype.A.KF,L.prototype.A.LF,Kc.prototype.n.Np,Pc.prototype.n.SA,L.prototype.j.Ot,xc.prototype.n.CallFunction,L.prototype.n.TA,L.prototype.n.hB,L.prototype.n.DB,zc.prototype.n.Play,L.prototype.j.Ny,L.prototype.j.sA,M.prototype.n.Op,ud.prototype.n.du,M.prototype.n.RA,M.prototype.j.Iy,ud.prototype.n.Qp,M.prototype.A.jm,M.prototype.A.km, L.prototype.j.oz,L.prototype.j.AB,M.prototype.n.hm,L.prototype.A.EE,L.prototype.A.CE,L.prototype.j.qz,M.prototype.n.Mj,L.prototype.A.abs,L.prototype.A.jG,L.prototype.A.kG,L.prototype.A.lG,L.prototype.A.iG,L.prototype.n.$A,L.prototype.j.ot,L.prototype.A.cF,L.prototype.A.dF,Kc.prototype.n.Mj,M.prototype.A.ku,xc.prototype.j.cm,ud.prototype.n.Tp,Pc.prototype.n.rB,ud.prototype.j.am,Nc.prototype.n.ng,M.prototype.A.Zl,M.prototype.n.MA,M.prototype.j.Yl,Jc.prototype.j.Yl,Jc.prototype.n.hm,M.prototype.A.qt, Lc.prototype.j.Yl,Lc.prototype.n.hm,M.prototype.A.xy,Ic.prototype.n.lu,ud.prototype.n.gu,L.prototype.n.Py,Lc.prototype.n.Mj,L.prototype.j.uA,Lc.prototype.A.km,L.prototype.j.Vy,M.prototype.n.lu,L.prototype.j.Uy,L.prototype.j.Gy,L.prototype.A.KE,Lc.prototype.n.fB,L.prototype.A.Ku,L.prototype.j.BA,M.prototype.j.yf,M.prototype.n.cu,M.prototype.n.IA,M.prototype.A.qy,Ic.prototype.n.Op,M.prototype.n.im,L.prototype.A.FE,L.prototype.A.cC,Oc.prototype.n.ng,Oc.prototype.n.WA,Cc.prototype.j.pz,Mc.prototype.j.Bz, Oc.prototype.n.nB,M.prototype.n.Np,Oc.prototype.A.CB,Oc.prototype.A.iu,Oc.prototype.A.Iz,M.prototype.j.Tz,M.prototype.j.mt,M.prototype.A.zy,Oc.prototype.n.iB,M.prototype.A.yy,M.prototype.n.Rp,M.prototype.n.qB,M.prototype.n.LA,M.prototype.A.ty,xd.prototype.n.kB,xc.prototype.A.rA,Lc.prototype.n.Sp,M.prototype.n.zt,Pc.prototype.n.FA,M.prototype.A.BB,L.prototype.j.Sy,L.prototype.A.floor,L.prototype.A.Jf,Ic.prototype.n.cB,Ic.prototype.n.XA,L.prototype.j.Ty,L.prototype.j.tA,L.prototype.A.random,Lc.prototype.j.nt, Lc.prototype.A.jm,Lc.prototype.A.Zl,M.prototype.j.sz,M.prototype.n.hu,M.prototype.j.rz,M.prototype.j.nt,M.prototype.j.lz,ud.prototype.j.tt,M.prototype.n.OA,M.prototype.j.wA,zc.prototype.n.tB,ud.prototype.n.pg,Tc.prototype.n.ng,L.prototype.A["int"],Mc.prototype.A.Yy,Mc.prototype.j.Ky,Oc.prototype.n.HA,L.prototype.j.Hy,Oc.prototype.n.bB,M.prototype.j.yA,Vc.prototype.n.eu,Vc.prototype.n.JA,M.prototype.A.iz,M.prototype.A.jz,Vc.prototype.n.pg,Jc.prototype.n.eB,L.prototype.A.XF,L.prototype.n.ny,xc.prototype.j.Ly, M.prototype.n.NA,Mc.prototype.j.Kp,Cc.prototype.j.Kt,M.prototype.j.Jy,L.prototype.j.Fz,M.prototype.n.Pp,M.prototype.j.Bt,M.prototype.n.VA,L.prototype.n.gB,zc.prototype.n.aB,L.prototype.n.az,Jc.prototype.n.zt,Jc.prototype.n.Np,Ac.prototype.j.wz,Ac.prototype.j.xB,ud.prototype.n.ki,ud.prototype.j.St,zc.prototype.n.dB,Bc.prototype.n.ZA,M.prototype.j.yt,Mc.prototype.j.Xt,Ac.prototype.j.nz,Ac.prototype.n.By,Ac.prototype.n.CA,M.prototype.A.uy,Bc.prototype.A.Zy,L.prototype.A.round,M.prototype.n.ky,Sc.prototype.n.sB, Sc.prototype.j.pA,M.prototype.n.Jz,L.prototype.j.xA,M.prototype.j.uz,M.prototype.j.vA,Sc.prototype.n.vB,Jc.prototype.j.yf,yc.prototype.n.Dp,yc.prototype.A.Zl,Jc.prototype.n.QA,yc.prototype.A.wy,Rc.prototype.n.zA,Qc.prototype.j.cz,M.prototype.j.vz,ud.prototype.j.yz,L.prototype.A.q,Vc.prototype.j.xt,zc.prototype.j.Az,ud.prototype.n.au,ud.prototype.n.fu,ud.prototype.n.Mp,Kc.prototype.n.Op,Kc.prototype.j.yt,Ic.prototype.n.KA,zc.prototype.j.Lj,L.prototype.j.Nt,yc.prototype.n.Mj,L.prototype.A.DE,L.prototype.A.bG, yc.prototype.n.im,L.prototype.A.trim,L.prototype.A.aG,Y.prototype.A.fz,L.prototype.j.xz,Gc.prototype.n.Fy,Gc.prototype.n.Cy,Gc.prototype.j.Jt,Bc.prototype.n.ly,L.prototype.A.left,Ac.prototype.A.Ez,Gc.prototype.j.Ht,Gc.prototype.n.$y,Gc.prototype.j.It,Bc.prototype.n.Dp,Gc.prototype.A.Cz,Bc.prototype.j.lt,Gc.prototype.n.YA,Bc.prototype.A.Xl,L.prototype.j.Fp,Bc.prototype.j.ut,Hc.prototype.j.Oy,Hc.prototype.n.Sp,L.prototype.A.Hh,Y.prototype.j.zz,Y.prototype.n.lB,Y.prototype.n.mB,Y.prototype.n.DA,Y.prototype.n.EA, Y.prototype.j.fm,Y.prototype.j.Dt,Y.prototype.j.ne,Y.prototype.j.Gt,Y.prototype.A.dz,Y.prototype.A.ez,Y.prototype.j.Ep,M.prototype.n.oB,Jc.prototype.n.UA,Jc.prototype.n.Pp,Jc.prototype.n.Sp,Jc.prototype.n.im,Jc.prototype.A.jm,Jc.prototype.n.hu,Jc.prototype.A.km,Jc.prototype.n.cu,L.prototype.A.dG,Y.prototype.A.hz,Jc.prototype.n.vy,Y.prototype.A.gz,L.prototype.A.rG,Jc.prototype.n.Rp,L.prototype.A["float"],Y.prototype.n.wB,ud.prototype.A.ju,L.prototype.n.GA,Ac.prototype.n.bz,M.prototype.n.Kz,M.prototype.n.uB, Tc.prototype.n.my,M.prototype.n.Ry,Tc.prototype.j.Vt,zc.prototype.n.pg,M.prototype.j.At,L.prototype.A.BE]};
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0.01 |
proxy
|
phpinfo
|
�а�тройка