this.b.Gb.W)continue;k.Zb=e.nh;k.zc=e.zc;k.sb=0;for(a in e.vc)e.vc.hasOwnProperty(a)&&(d=this.b.C[parseInt(a,10)].ja(),h=e.vc[a],d.xa=h.Km,Ba(d.i,h.Le),d=h,S(d.Le),t.push(d));e.nh.qA();this.b.Vn(e.Oa);e.bo=
!0}a=b=0;for(c=this.Jc.length;ba.ra||b.top>a.la)},d.iB=function(){this.ca();var a=this.T,b=this.b.Ga;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.sB=function(a,b,c){var d=this.ja(),
g=d.Zc();if(!g.length)return!1;var e=g[0],h=e,k=Sa(e.x,e.y,b,c),v,p,t;v=1;for(p=g.length;vk)k=t,h=e;d.Oj(h);return!0},h.jw=function(a){this.x!==a&&(this.x=a,this.D())},h.kw=function(a){this.y!==a&&(this.y=a,this.D())},h.IB=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},h.JB=function(a,b){var c=a.Hy(this);if(c){var d;c.Si?(d=c.Si(b,!0),c=c.Si(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.D()}},h.lB=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.D())},h.wv=function(a,b){0!==b&&(this.x+=Math.cos(W(a))*b,this.y+=Math.sin(W(a))*b,this.D())},k.In=function(a){a.M(this.x)},k.Sq=function(a){a.M(this.y)},k.zf=function(a){a.M(this.b.Ri(this))});t&&(d.cB=function(a,b){return ec(this.width,a,b)},d.aB=function(a,b){return ec(this.height,a,b)},h.iw=function(a){this.width!==a&&(this.width=a,this.D())},h.EB=function(a){this.height!==a&&(this.height=a,this.D())},h.KB=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.D()},k.PB=function(a){a.M(this.width)},k.eB=function(a){a.M(this.height)},k.XA=function(a){this.ca();a.M(this.T.left)},k.ZA=function(a){this.ca();a.M(this.T.top)},k.YA=function(a){this.ca();a.M(this.T.right)},k.WA=function(a){this.ca();a.M(this.T.bottom)});b&&(d.Su=function(a,b){return Oa(this.n,W(b))<=W(a)},d.lv=function(a){return Qa(this.n,W(a))},d.kv=function(a,b){var c=Ma(a),d=Ma(b),g=Ka(this.n);return Qa(d,c)?Qa(g,c)&&!Qa(g,
d):!(!Qa(g,c)&&Qa(g,d))},h.AB=function(a){a=W(Ja(a));isNaN(a)||this.n===a||(this.n=a,this.D())},h.wB=function(a){0===a||isNaN(a)||(this.n+=W(a),this.n=Ka(this.n),this.D())},h.xB=function(a){0===a||isNaN(a)||(this.n-=W(a),this.n=Ka(this.n),this.D())},h.yB=function(a,b){var c=Pa(this.n,W(b),W(a));isNaN(c)||this.n===c||(this.n=c,this.D())},h.zB=function(a,b,c){a=Pa(this.n,Math.atan2(c-this.y,b-this.x),W(a));isNaN(a)||this.n===a||(this.n=a,this.D())},h.LB=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.n===c||(this.n=c,this.D())},k.VA=function(a){a.M(La(this.n))});q||(d.Yu=function(a,b,c){return ec(this.zb[a],b,c)},d.gB=function(a){return this.zb[a]},d.tB=function(a,b){var c=this.ja(),d=c.Zc();if(!d.length)return!1;var g=d[0],e=g,h=g.zb[b],k,v,p;k=1;for(v=d.length;kh)h=p,e=g;c.Oj(e);return!0},d.rB=function(a){var b,c,d,g,e;if(this.b.Qi().Ml){e=this.ja();if(e.xa)for(e.xa=!1,S(e.i),S(e.ba),d=this.i,b=0,c=d.length;ba?a=0:1g.k.index||d.k.index===g.k.index&&d.le()>g.le())g=d}else if(d.k.indexc)){var d=1===a;this.kf[c]!==d&&(this.kf[c]=d,this.Zd(),this.b.Y=!0)}}},h.DB=function(a,b,c){if(this.b.A){var d=this.type.Ao(a);0>d||(a=this.type.V[d],d=this.Za[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.A.Ly(a.qb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Cb&&(this.b.Y=!0))))}})};Kb=function(){this.Un=this.Kk=!0;this.type.Ck=!0;this.b.Y=!0;var e,l,q=this.Qn;e=0;for(l=q.length;eq;case 5:return e>=q;default:return!1}}})();var nc={};function rc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1a&&(a=.01);this.zm.gain.value=a;this.ym.gain.value=Math.pow(1/a,.6)*b};m.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=af;++f)g=f/32768,g=this.shape(g,c,d),this.dl[32768+f]=g,this.dl[32768-
f-1]=-g};m.prototype.ld=function(a){this.S.disconnect();this.S.connect(a);this.R.disconnect();this.R.connect(a)};m.prototype.remove=function(){this.ta.disconnect();this.zm.disconnect();this.sn.disconnect();this.ym.disconnect();this.S.disconnect();this.R.disconnect()};m.prototype.Yc=function(){return this.ta};u.prototype.ld=function(a){this.ua.disconnect();this.ua.connect(a)};u.prototype.remove=function(){this.ua.disconnect()};u.prototype.Yc=function(){return this.ua};g.prototype.Ra=function(){this.ua.getFloatFrequencyData(this.vy);
this.ua.getByteTimeDomainData(this.hu);for(var a=this.ua.fftSize,b=0,c=this.Mj=0,d=0;bd&&(d=-d),this.Mjb&&(c=b);return c};y.prototype.ij=function(){return!this.Pc&&!this.ke&&!this.Fc&&!this.sg()};y.prototype.EA=function(){return!this.ke&&!this.Fc&&!this.sg()};y.prototype.KA=function(){var a=this.volume*H;isFinite(a)||(a=0);
switch(this.ka){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.ka?this.wb.gain.value=a*this.Qh:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};y.prototype.jl=function(a){switch(this.ka){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.ka?(this.Qh=a?0:1,this.wb.gain.value=H*this.volume*this.Qh):this.u.muted!==!!a&&(this.u.muted=!!a)}};y.prototype.au=function(a){this.Bh=!!a;this.jl(this.Bh||
this.mj)};y.prototype.Qm=function(a){this.mj=!!a;this.jl(this.Bh||this.mj)};y.prototype.pn=function(){var a=this.playbackRate;this.yh&&(a*=K.ji);switch(this.ka){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.ka?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};y.prototype.BA=function(a){switch(this.ka){case 0:a?this.ij()?(this.dd=!0,this.u.pause()):this.dd=!1:this.dd&&(this.u.play(),this.dd=!1);break;
case 1:a?this.ij()?(this.dd=!0,1===this.buffer.ka?(this.Ec=this.Co(!0),this.ne&&(this.Ec=this.Ec%this.mg()),b(this.u)):this.u.pause()):this.dd=!1:this.dd&&(1===this.buffer.ka?(this.u=B.createBufferSource(),this.u.buffer=this.buffer.za,this.u.connect(this.wb),this.u.onended=this.Dp,this.zk=this.u,this.u.loop=this.ne,this.wb.gain.value=H*this.volume*this.Qh,this.pn(),this.startTime=(this.yh?K.Gb.W:K.ff.W)-this.Ec/(this.playbackRate||.001),t(this.u,this.Ec,this.mg())):this.u.play(),this.dd=!1);break;
case 2:a?this.ij()?(this.u.pause(),this.dd=!0):this.dd=!1:this.dd&&(this.dd=!1,this.u.play())}};O.Z=function(a){function b(){if(!ba&&B.createBuffer){var a=B.createBuffer(1,220,22050),c=B.createBufferSource();c.buffer=a;c.connect(B.destination);p(c)}}this.type=a;K=this.b=a.b;A=this;this.Qc=null;this.wj=-600;this.b.lj&&(Za=!0);!(this.b.xg||this.b.aj&&(this.b.bj||this.b.Nl))||this.b.cj||this.b.Ma||this.b.Vo||Za||(Ya=!0);B=null;"undefined"!==typeof AudioContext?(J=1,B=new AudioContext):"undefined"!==
typeof webkitAudioContext&&(J=1,B=new webkitAudioContext);this.b.xg&&B&&(B.close&&B.close(),"undefined"!==typeof AudioContext?B=new AudioContext:"undefined"!==typeof webkitAudioContext&&(B=new webkitAudioContext));Ya?document.addEventListener("touchend",function(){!qb&&B&&(b(),qb=!0);var a,c,d;if(Ya){if(!I)for(a=0,c=$a.length;a"!==b&&(a.vm=b,a.op=d,a.xq=g),null;m=new y(a,b);x.push(m);return m};var Ca=[];R.prototype.vk=function(a){return mb(L,a)};O.j=new R;z.prototype.Play=function(a,b,c,d){!I&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1",b,!1)}};z.prototype.qw=function(a){v(a);var b;a=0;for(b=Ca.length;ac;c++){var g=a[c];".."===g?b.pop():"."!==g&&b.push(g)}return b.join("/")}if(l.SB=q,p[e])return p[e];if(p[e]={},!q[e])throw Error("Could not find module "+e);for(var a,c=q[e],w=c.cx,c=c.Sw,d=[],h=0,k=w.length;k>h;h++)"exports"===w[h]?d.push(a={}):d.push(r(b(w[h])));w=c.apply(this,d);return p[e]=
a||w}}();e("promise/all",["./utils","exports"],function(e,p){var t=e.isArray,b=e.isFunction;p.all=function(a){if(!t(a))throw new TypeError("You must pass an array to all.");return new this(function(c,e){function d(a){return function(b){k[a]=b;0===--f&&c(k)}}var h,k=[],f=a.length;0===f&&c([]);for(var p=0;pc;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},e.prototype.Vq=function(){for(var a=0;ae;e++)g[e]=b.charCodeAt(e);return q([d],{type:a.type})}function w(a){var b=this,c=b.Kn().then(function(){var a=z[b.Ca.name];return a&&a.hh?a.hh:void 0});return c.then(a,a),c}function d(a){a=z[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Ar.push(b);a.hh?a.hh=a.hh.then(function(){return b.promise}):
a.hh=b.promise}function h(a){function b(){return Promise.resolve()}var c=this,d={db:null};if(a)for(var g in a)d[g]=a[g];z||(z={});var f=z[d.name];f||(f={yl:[],db:null,hh:null,Ar:[]},z[d.name]=f);f.yl.push(c);c.Kn||(c.Kn=c.ready,c.ready=w);a=[];for(g=0;gd.db.version;(d.versiond.version&&(d.version=b)),b=!0):b=!1}else b=!0;return b?k(d,!0):a}).then(function(a){d.db=f.db=a;c.Ca=d;for(a=0;a=b.oldVersion&&c.createObjectStore(O)}catch(d){if("ConstraintError"!==d.name)throw d;e.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ha+'" already exists.')}});h.onerror=function(){g(h.error)};h.onsuccess=function(){c(h.result);var b=z[a.name].Ar.pop();
b&&b.resolve()}})}function f(a,b){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=new Promise(function(b,g){d.ready().then(function(){var e=d.Ca,f=e.db.transaction(e.Ha,"readonly").objectStore(e.Ha).get(a);f.onsuccess=function(){var a=f.result;void 0===a&&(a=null);a&&a.Tq&&(a=c(a));b(a)};f.onerror=function(){g(f.error)}})["catch"](g)});return v(g,b),g}function r(a,b){var d=this,g=new Promise(function(b,g){d.ready().then(function(){var e=
d.Ca,f=e.db.transaction(e.Ha,"readonly").objectStore(e.Ha).openCursor(),h=1;f.onsuccess=function(){var d=f.result;if(d){var g=d.value;g&&g.Tq&&(g=c(g));g=a(g,d.key,h++);void 0!==g?b(g):d["continue"]()}else b()};f.onerror=function(){g(f.error)}})["catch"](g)});return v(g,b),g}function m(c,d,g){var f=this;"string"!=typeof c&&(e.console.warn(c+" used as a key, but it is not a string."),c=String(c));var h=new Promise(function(g,e){var h;f.ready().then(function(){return h=f.Ca,d instanceof Blob?b(h.db).then(function(b){return b?
d:a(d)}):d}).then(function(a){var b=h.db.transaction(h.Ha,"readwrite"),d=b.objectStore(h.Ha);null===a&&(a=void 0);b.oncomplete=function(){void 0===a&&(a=null);g(a)};b.onabort=b.onerror=function(){e(f.error?f.error:f.transaction.error)};var f=d.put(a,c)})["catch"](e)});return v(h,g),h}function u(a,b){var c=this;"string"!=typeof a&&(e.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 g=c.Ca,e=g.db.transaction(g.Ha,"readwrite"),
f=e.objectStore(g.Ha)["delete"](a);e.oncomplete=function(){b()};e.onerror=function(){d(f.error)};e.onabort=function(){d(f.error?f.error:f.transaction.error)}})["catch"](d)});return v(d,b),d}function g(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca,g=d.db.transaction(d.Ha,"readwrite"),e=g.objectStore(d.Ha).clear();g.oncomplete=function(){a()};g.onabort=g.onerror=function(){c(e.error?e.error:e.transaction.error)}})["catch"](c)});return v(c,a),c}function n(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca,g=d.db.transaction(d.Ha,"readonly").objectStore(d.Ha).count();g.onsuccess=function(){a(g.result)};g.onerror=function(){c(g.error)}})["catch"](c)});return v(c,a),c}function G(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var g=c.Ca,e=!1,f=g.db.transaction(g.Ha,"readonly").objectStore(g.Ha).openCursor();f.onsuccess=function(){var c=f.result;return c?void(0===a?b(c.key):e?b(c.key):(e=
!0,c.advance(a))):void b(null)};f.onerror=function(){d(f.error)}})["catch"](d)});return v(d,b),d}function y(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca,g=d.db.transaction(d.Ha,"readonly").objectStore(d.Ha).openCursor(),e=[];g.onsuccess=function(){var b=g.result;return b?(e.push(b.key),void b["continue"]()):void a(e)};g.onerror=function(){c(g.error)}})["catch"](c)});return v(c,a),c}function v(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var E=E||e.indexedDB||
e.webkitIndexedDB||e.mozIndexedDB||e.cs||e.msIndexedDB;if(E){var R,z,O="local-forage-detect-blob-support";return{xi:"asyncStorage",Ln:h,xs:r,getItem:f,setItem:m,removeItem:u,clear:g,length:n,key:G,keys:y}}}("undefined"!=typeof window?window:self);e.ie=r["default"]},function(e,r,l){r.wk=!0;r["default"]=function(e){function p(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var t=null;try{if(!(e.localStorage&&"setItem"in e.localStorage))return;t=e.localStorage}catch(b){return}return{xi:"localStorageWrapper",
Ln:function(a){var b={};if(a)for(var e in a)b[e]=a[e];return b.me=b.name+"/",b.Ha!==this.Jn.Ha&&(b.me+=b.Ha+"/"),this.Ca=b,(new Promise(function(a){a(l(3))})).then(function(a){return b.Rg=a,Promise.resolve()})},xs:function(a,b){var e=this,d=e.ready().then(function(){for(var b=e.Ca,c=b.me,d=c.length,p=t.length,m=1,u=0;p>u;u++){var g=t.key(u);if(0===g.indexOf(c)){var n=t.getItem(g);if(n&&(n=b.Rg.hl(n)),n=a(n,g.substring(d),m++),void 0!==n)return n}}});return p(d,b),d},getItem:function(a,b){var l=this;
"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=l.ready().then(function(){var b=l.Ca,c=t.getItem(b.me+a);return c&&(c=b.Rg.hl(c)),c});return p(d,b),d},setItem:function(a,b,l){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=d.ready().then(function(){void 0===b&&(b=null);var e=b;return new Promise(function(f,h){var m=d.Ca;m.Rg.serialize(b,function(b,c){if(c)h(c);else try{t.setItem(m.me+
a,b),f(e)}catch(d){"QuotaExceededError"!==d.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==d.name||h(d),h(d)}})})});return p(h,l),h},removeItem:function(a,b){var l=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=l.ready().then(function(){t.removeItem(l.Ca.me+a)});return p(d,b),d},clear:function(a){var b=this,e=b.ready().then(function(){for(var a=b.Ca.me,e=t.length-1;0<=e;e--){var k=t.key(e);0===k.indexOf(a)&&t.removeItem(k)}});return p(e,a),e},length:function(a){var b=
this.keys().then(function(a){return a.length});return p(b,a),b},key:function(a,b){var e=this,d=e.ready().then(function(){var b,c=e.Ca;try{b=t.key(a)}catch(d){b=null}return b&&(b=b.substring(c.me.length)),b});return p(d,b),d},keys:function(a){var b=this,e=b.ready().then(function(){for(var a=b.Ca,e=t.length,k=[],f=0;e>f;f++)0===t.key(f).indexOf(a.me)&&k.push(t.key(f).substring(a.me.length));return k});return p(e,a),e}}}("undefined"!=typeof window?window:self);e.ie=r["default"]},function(e,r){r.wk=!0;
r["default"]=function(e){function q(a){var b,e,d,h,k;b=.75*a.length;var f=a.length,p=0;"="===a[a.length-1]&&(b--,"="===a[a.length-2]&&b--);var m=new ArrayBuffer(b),u=new Uint8Array(m);for(b=0;f>b;b+=4)e=t.indexOf(a[b]),d=t.indexOf(a[b+1]),h=t.indexOf(a[b+2]),k=t.indexOf(a[b+3]),u[p++]=e<<2|d>>4,u[p++]=(15&d)<<4|h>>2,u[p++]=(3&h)<<6|63&k;return m}function p(a){var b=new Uint8Array(a),e="";for(a=0;a>2],e+=t[(3&b[a])<<4|b[a+1]>>4],e+=t[(15&b[a+1])<<2|b[a+2]>>6],e+=t[63&b[a+2]];
return 2===b.length%3?e=e.substring(0,e.length-1)+"=":1===b.length%3&&(e=e.substring(0,e.length-2)+"=="),e}var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var e="";if(a&&(e=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,h="__lfsc__:";a instanceof ArrayBuffer?(d=a,h+="arbf"):(d=a.buffer,"[object Int8Array]"===e?h+="si08":"[object Uint8Array]"===
e?h+="ui08":"[object Uint8ClampedArray]"===e?h+="uic8":"[object Int16Array]"===e?h+="si16":"[object Uint16Array]"===e?h+="ur16":"[object Int32Array]"===e?h+="si32":"[object Uint32Array]"===e?h+="ui32":"[object Float32Array]"===e?h+="fl32":"[object Float64Array]"===e?h+="fl64":b(Error("Failed to get type for BinaryArray")));b(h+p(d))}else if("[object Blob]"===e)e=new FileReader,e.onload=function(){var d="~~local_forage_type~"+a.type+"~"+p(this.result);b("__lfsc__:blob"+d)},e.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(k){console.error("Couldn't convert value into a JSON string: ",
a),b(null,k)}},hl:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var c,p=a.substring(13);a=a.substring(9,13);if("blob"===a&&b.test(p)){var d=p.match(b);c=d[1];p=p.substring(d[0].length)}p=q(p);switch(a){case "arbf":return p;case "blob":var h;p=[p];c={type:c};p=p||[];c=c||{};try{h=new Blob(p,c)}catch(k){if("TypeError"!==k.name)throw k;h=new (e.BlobBuilder||e.fe||e.co||e.WebKitBlobBuilder);for(a=0;ah;h++){var n=g.item(h),k=n.value;if(k&&(k=e.Rg.hl(k)),k=a(k,n.key,h+1),void 0!==k)return void b(k)}b()},function(a,b){d(b)})})})["catch"](d)});return f(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=new Promise(function(c,g){d.ready().then(function(){void 0===b&&(b=null);var e=b,f=d.Ca;f.Rg.serialize(b,function(b,d){d?g(d):f.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+f.Ha+
" (key, value) VALUES (?, ?)",[a,b],function(){c(e)},function(a,b){g(b)})},function(a){a.code===a.QUOTA_ERR&&g(a)})})})["catch"](g)});return f(h,c),h}function c(a,b){var c=this;"string"!=typeof a&&(e.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.Ca;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.Ha+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return f(d,b),d}function r(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ha,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return f(c,a),c}function d(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ha,[],function(b,c){var d=c.rows.item(0).Di;a(d)},function(a,b){c(b)})})})["catch"](c)});return f(c,a),c}function h(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ca;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ha+" 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 f(d,b),d}function k(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ha,[],function(b,c){for(var d=[],g=0;gthis.size?this.Cb=!1:(0!==l.tj&&(this.n+=Math.random()*l.tj*e-l.tj*e/2),0!==l.vj&&(this.speed+=Math.random()*l.vj*e-l.vj*e/2),0!==l.uj&&(this.opacity+=Math.random()*l.uj*e-l.uj*e/2,0>this.opacity?this.opacity=0:1=l.jh&&this.nf>=l.timeout&&(this.Cb=!1),2===l.jh&&0>=this.speed&&(this.Cb=!1))};e.prototype.mc=
function(e){var l=this.Qa.opacity*this.opacity;if(0!==l){0===this.Qa.jh&&(l*=1-this.nf/this.Qa.timeout);e.globalAlpha=l;var l=this.x-this.size/2,b=this.y-this.size/2;this.Qa.b.ec&&(l=l+.5|0,b=b+.5|0);e.drawImage(this.Qa.type.B,l,b,this.size,this.size)}};e.prototype.jb=function(e){var l=this.Qa.opacity*this.opacity;0===this.Qa.jh&&(l*=1-this.nf/this.Qa.timeout);var b=this.size,a=b*this.Qa.It,c=this.x-b/2,q=this.y-b/2;this.Qa.b.ec&&(c=c+.5|0,q=q+.5|0);1>a||0===l||(ae.pp?(e.te(l),e.Zh(c,q,c+
b,q,c+b,q+b,c,q+b)):e.Zz(this.x,this.y,a,l))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};r.Z=function(e){this.type=e;this.b=e.b};var l=r.Z.prototype,q=[];l.N=function(){var e=this.q;this.Em=e[0];this.Xm=W(e[1]);this.ei=e[2];this.dq=!0;this.So=e[3];this.Ro=e[4];this.Qo=e[5]/100;this.Ho=e[6];this.un=e[7];this.xn=e[8];this.Wm=
e[9];this.Vm=e[10];this.Hl=e[11];this.de=e[12];this.Xc=e[13];this.tj=e[14];this.vj=e[15];this.uj=e[16];this.jh=e[17];this.timeout=e[18];this.Ng=0;this.It=1;this.pm=this.x;this.rm=this.y;this.qm=this.x;this.om=this.y;this.Ew(function(e){e.T.set(e.pm,e.rm,e.qm,e.om);e.Mb.di(e.T);e.Kk=!1;e.vq();e.Ju()});this.Ub||(this.tc=[]);this.b.Wg(this);this.type.Lh();if(1===this.ei)for(e=0;ethis.qm&&(this.qm=a.right()),a.top()this.om&&(this.om=a.bottom()),c++):q.push(a);Aa(this.tc,c);this.D();this.tl=
!1;1===this.ei&&0===this.tc.length&&this.b.ye(this)};l.mc=function(e){var l,b,a,c=this.k;l=0;for(b=this.tc.length;l=c.ma&&a.bottom()>=c.fa&&a.left()<=c.ra&&a.top()<=c.la&&a.mc(e)};l.jb=function(e){this.It=this.k.nc();e.fc(this.type.J);var l,b,a,c=this.k;l=0;for(b=this.tc.length;l=c.ma&&a.bottom()>=c.fa&&a.left()<=c.ra&&a.top()<=c.la&&a.jb(e)};r.j=new function(){};r.G=new function(){};r.Ba=new function(){}})();function Y(e){this.b=e}
(function(){function e(){if(0===this.$n.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.fi?b.drawImage(this.B,this.Sh,this.Th,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.B,0,0,this.width,this.height);this.$n=a.toDataURL("image/png")}return this.$n}function r(){}function l(a){a[0]=0;a[1]=0;a[2]=0;k.push(a)}function q(a,b){return athis.K&&(this.K=0);this.K>=this.Ua.frames.length&&(this.K=this.Ua.frames.length-1);var a=this.Ua.frames[this.K];this.Da.$j(a.wm);this.oc=a.oc;this.pc=a.pc;this.fh=this.Ua.speed;this.xf=this.Ua.Sp;1===this.type.Kc.length&&1===this.type.Kc[0].frames.length||0===this.fh||(this.b.Wg(this),this.kj=!0);this.Ub?this.ee.reset():this.ee=new eb;this.Je=this.ee.W;this.Wf=!0;this.Ae=0;this.Vf=!0;this.Rk=this.er="";this.pr=0;this.Qk=-1;this.type.Lh();var b,c,d,e,g,f,h,a=0;for(b=this.type.Kc.length;a<
b;a++)for(e=this.type.Kc[a],c=0,d=e.frames.length;cthis.K&&(this.K=0);this.K>=this.Ua.frames.length&&(this.K=this.Ua.frames.length-1);this.fh=a.cas;this.Je=a.fs;this.Ae=a.ar;this.ee.reset();this.ee.W=a.at;this.Wf=a.hasOwnProperty("ap")?a.ap:!0;this.Vf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.xf=a.rt:this.xf=this.Ua.Sp;this.Nb=this.Ua.frames[this.K];this.al=this.Nb.J;this.Da.$j(this.Nb.wm);this.oc=this.Nb.oc;this.pc=this.Nb.pc};h.Pn=function(a){this.K=
a?0:this.Ua.frames.length-1;this.Wf=!1;this.er=this.Ua.name;this.Kl=!0;this.b.trigger(Y.prototype.j.Bq,this);this.b.trigger(Y.prototype.j.yv,this);this.Kl=!1;this.Ae=0};h.fe=function(){return this.ee.W};h.Ra=function(){this.ee.add(this.b.Ri(this));this.Rk.length&&this.Br();0<=this.Qk&&this.Cr();var a=this.ee.W,b=this.Ua,c=b.frames[this.K],d=c.duration/this.fh;this.Wf&&a>=this.Je+d&&(this.Vf?this.K++:this.K--,this.Je+=d,this.K>=b.frames.length&&(b.Jt?(this.Vf=!1,this.K=b.frames.length-2):b.loop?this.K=
this.xf:(this.Ae++,this.Ae>=b.Rp?this.Pn(!1):this.K=this.xf)),0>this.K&&(b.Jt?(this.K=1,this.Vf=!0,b.loop||(this.Ae++,this.Ae>=b.Rp&&this.Pn(!0))):b.loop?this.K=this.xf:(this.Ae++,this.Ae>=b.Rp?this.Pn(!0):this.K=this.xf)),0>this.K?this.K=0:this.K>=b.frames.length&&(this.K=b.frames.length-1),a>this.Je+b.frames[this.K].duration/this.fh&&(this.Je=a),a=b.frames[this.K],this.$g(c,a),this.b.Y=!0)};h.Pr=function(a){var b,c,d;b=0;for(c=this.type.Kc.length;bthis.K&&(this.K=0),this.K>=this.Ua.frames.length&&(this.K=this.Ua.frames.length-1),1===this.pr&&(this.K=0),this.Wf=!0,this.Je=this.ee.W,this.Vf=!0,this.$g(a,this.Ua.frames[this.K]),this.b.Y=!0)};h.Cr=function(){var a=
this.Ua.frames[this.K],b=this.K;this.K=D(this.Qk);0>this.K&&(this.K=0);this.K>=this.Ua.frames.length&&(this.K=this.Ua.frames.length-1);b!==this.K&&(this.$g(a,this.Ua.frames[this.K]),this.Je=this.ee.W,this.b.Y=!0);this.Qk=-1};h.$g=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.oc=b.oc;this.pc=b.pc;this.Da.$j(b.wm);this.D();this.Nb=b;this.al=b.J;c=0;for(d=this.U.length;ce||e>=d.length)return b?this.x:this.y;var g=(d[e][1]-c.oc)*this.width,d=d[e][2],d=(d-c.pc)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var f=g*c-d*e,d=d*c+g*e,g=f+this.x,d=d+this.y;return b?g:d};var k=[],f=-2,M=[];r.prototype.Dv=function(a){if(!a)return!1;var c=this.b,d=c.Qi(),e=d.type,g=null;d.I.collmemory?g=d.I.collmemory:
(g={},d.I.collmemory=g);d.I.spriteCreatedDestroyCallback||(d.I.spriteCreatedDestroyCallback=!0,c.Ak(function(a){var b=d.I.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(l(b[c]),delete b[c])}));var h=e.ja(),n=a.ja(),h=h.Zc(),k,m,u,q,r,G,w,C=this.b.Wd,F=C-1,N=c.lb().Zb;for(m=0;m=h.length&&h.push(e(a,Object));c=h[c];c.text=d;c.width=b.up(d);b.cf=pa(b.cf,c.width)}function q(){}var p=xc.prototype;p.N=function(){};p.na=function(a){this.wa=a;this.b=a.b};var t=p.na.prototype;t.N=function(){this.F||
(this.B=new Image,this.b.rk(this.B,this.hi),this.J=null)};t.Mg=function(){this.F||(this.J=null)};t.Uh=function(){if(!this.F&&this.i.length){this.J||(this.J=this.b.A.Hf(this.B,!1,this.b.Ia,this.Vg));var a,b;a=0;for(b=this.i.length;a=b*d);l++){var p=l%b,q=Math.floor(l/b),t=n.charAt(l);if(this.b.A){var r=this.Uk,z=p*u,O=q*g,p=(p+1)*u,q=(q+1)*g;void 0===r[t]&&(r[t]=e(w,wa));r[t].left=z;r[t].top=O;r[t].right=p;r[t].bottom=q}else r=this.Tk,p=p*a,q=q*h,z=a,O=h,void 0===r[t]&&(r[t]=e(c,Object)),r[t].x=p,r[t].y=q,r[t].rn=z,r[t].Il=O}};var d=
[];p.Fn=function(a){S(d);for(var b="",c,e=0;e=h)r(a,d,!0);else{var u=b.sf,g=b.dh;if(c.length*(b.Sk*u+g)-g<=h&&-1===c.indexOf("\n")&&(g=b.up(c),g<=h)){r(a,d,!0);d.push(e(a,
Object));d[0].text=c;d[0].width=g;b.cf=g;b.ve=b.rf*u+b.lineHeight;return}this.Hn(b);b.ve=d.length*(b.rf*u+b.lineHeight)}}else r(a,d,!0)};p.Hn=function(c){var e=c.uk,h=c.text,m=c.rc,u=c.width;e&&(this.Fn(h),h=d);var g="",n,p,q,t=0,r=!1;for(q=0;qu&&(""===n?(l(c,t,g),g="",r=!0):(l(c,t,n),g=h[q]),t++,e||" "!==g||(g="")));g.replace(/\s\s*$/,"").length&&(l(c,t,g),t++);for(q=t;qthis.width+1E-5)break;void 0!==F&&(J=U,B=L,0===l&&(J=Math.round(J),B=Math.round(B)),a.drawImage(this.B,F.x,F.y,F.rn,F.Il,J,B,F.rn*q,F.Il*q));U+=K*q+w;if(0===l&&b+U>g)break}}L+=t;if(0===l&&(L+t+r>this.height||c+L>h))break}}a.restore()}};var h=new xa;t.jb=function(a){a.fc(this.J);a.te(this.opacity);if(this.text&&(this.Qt(),!(this.heightthis.width+1E-5)break;if(void 0!==N){var I=
this.Sk*r,H=this.rf*r;x=V;C=t;0===p&&(x=Math.round(x),C=Math.round(C));h.Sa=x;h.Ta=C;h.hb=x+I;h.ib=C;h.bb=x;h.cb=C+H;h.eb=x+I;h.fb=C+H;0!==p&&(x=h,C=J,I=B,H=void 0,H=x.Sa*C-x.Ta*I,x.Ta=x.Ta*C+x.Sa*I,x.Sa=H,H=x.hb*C-x.ib*I,x.ib=x.ib*C+x.hb*I,x.hb=H,H=x.bb*C-x.cb*I,x.cb=x.cb*C+x.bb*I,x.bb=H,H=x.eb*C-x.fb*I,x.fb=x.fb*C+x.eb*I,x.eb=H);h.offset(c,b);a.wd(h.Sa,h.Ta,h.hb,h.ib,h.eb,h.fb,h.bb,h.cb,N)}V+=U*r+K;if(0===p&&c+V>n)break}}t+=w;if(0===p&&(t+w+O>this.height||b+t>l))break}}};p.j=new function(){};q.prototype.En=
function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.fd=!0,this.b.Y=!0)};t.fe=function(a,b){var c=parseInt(b,10);this.tf[a]!==c&&(this.tf[a]=c,this.fd=!0,this.b.Y=!0)};p.G=new q;p.Ba=new function(){}})();function yc(e){this.b=e}
(function(){function e(){return a.length?a.pop():{}}function r(b){var e,d;e=0;for(d=b.length;ea.ra||b.top>a.la)this.b.A.deleteTexture(this.Rc),this.oe=this.Kg=this.Rc=null}};t.td=function(){this.oe=this.Kg=null;this.b.A&&
this.Rc&&this.b.A.deleteTexture(this.Rc);this.Rc=null};t.fe=function(){this.font=this.xl+" "+this.Rj.toString()+"pt "+this.oh;this.fd=!0;this.b.Y=!0};t.mc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=Math.abs(this.k.nc()),a.save(),a.scale(d,d));if(this.fd||this.width!==this.Eg)this.type.wa.Gn(this.text,this.rc,a,this.width,this.uk),this.fd=!1,this.Eg=this.width;this.ca();var d=b?0:this.Mb.Sa,e=b?0:this.Mb.Ta;this.b.ec&&(d=
d+.5|0,e=e+.5|0);0===this.n||b||(a.save(),a.translate(d,e),a.rotate(this.n),e=d=0);var k=e+this.height,f=this.Np,f=f+this.hp,l,m;1===this.ef?e+=Math.max(this.height/2-this.rc.length*f/2,0):2===this.ef&&(e+=Math.max(this.height-this.rc.length*f-2,0));for(m=0;m=k-f);m++);(0!==this.n||b)&&a.restore();this.Dg=this.b.Wd};t.jb=function(a){if(!(1>
this.width||1>this.height)){var b=this.fd||this.it;this.it=!1;var d=this.k.nc(),e=this.k.xb(),k=this.Mf,f=d*this.width,l=d*this.height,m=Math.ceil(f),u=Math.ceil(l),g=Math.abs(m),n=Math.abs(u),p=this.b.P/2,q=this.b.O/2;this.Kg||(this.oe=document.createElement("canvas"),this.oe.width=g,this.oe.height=n,this.Re=g,this.Qe=n,b=!0,this.Kg=this.oe.getContext("2d"));if(g!==this.Re||n!==this.Qe)this.oe.width=g,this.oe.height=n,this.Rc&&(a.deleteTexture(this.Rc),this.Rc=null),b=!0;b&&(this.Kg.clearRect(0,
0,g,n),this.mc(this.Kg,!0),this.Rc||(this.Rc=a.Mc(g,n,this.b.Ia,this.b.Df)),a.Mu(this.oe,this.Rc,this.b.Df));this.Re=g;this.Qe=n;a.fc(this.Rc);a.te(this.opacity);a.xd();a.translate(-p,-q);a.gd();var t=this.Mb,b=this.k.Ka(t.Sa,t.Ta,!0,!0),g=this.k.Ka(t.Sa,t.Ta,!1,!0),n=this.k.Ka(t.hb,t.ib,!0,!0),p=this.k.Ka(t.hb,t.ib,!1,!0),q=this.k.Ka(t.eb,t.fb,!0,!0),r=this.k.Ka(t.eb,t.fb,!1,!0),R=this.k.Ka(t.bb,t.cb,!0,!0),t=this.k.Ka(t.bb,t.cb,!1,!0);if(this.b.ec||0===this.n&&0===e)var z=(b+.5|0)-b,O=(g+.5|0)-
g,b=b+z,g=g+O,n=n+z,p=p+O,q=q+z,r=r+O,R=R+z,t=t+O;0===this.n&&0===e?(n=b+m,p=g,q=n,r=g+u,R=b,t=r,k.right=1,k.bottom=1):(k.right=f/m,k.bottom=l/u);a.wd(b,g,n,p,q,r,R,t,k);a.xd();a.scale(d,d);a.Im(-this.k.xb());a.translate((this.k.ma+this.k.ra)/-2,(this.k.fa+this.k.la)/-2);a.gd();this.Dg=this.b.Wd}};var b=[];p.Fn=function(a){S(b);for(var e="",d,h=0;h=h)r(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var f=d.measureText(a).width;if(f<=h){r(b);b.push(e());b[0].text=a;b[0].width=f;return}}this.Hn(a,b,d,h,k)}else r(b)};p.Hn=function(c,p,d,h,k){k&&(this.Fn(c),c=b);var f="",q,m,u,g=0;for(u=0;u=p.length&&p.push(e()),f=l(f),m=p[g],m.text=f,m.width=d.measureText(f).width,
g++,f=""):(q=f,f+=c[u],m=d.measureText(f).width,m>=h&&(g>=p.length&&p.push(e()),q=l(q),m=p[g],m.text=q,m.width=d.measureText(q).width,g++,f=c[u],k||" "!==f||(f="")));f.length&&(g>=p.length&&p.push(e()),f=l(f),m=p[g],m.text=f,m.width=d.measureText(f).width,g++);for(u=g;ua&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.fd=!0,this.b.Y=!0)};p.G=new q;p.Ba=new function(){}})();
function Ac(e){this.b=e}
(function(){function e(){}function r(){}var l=Ac.prototype;l.na=function(e){this.wa=e;this.b=e.b};l.na.prototype.N=function(){};l.Z=function(e){this.type=e;this.b=e.b};var q=l.Z.prototype,p="text password email number tel url".split(" ");-1=c||0>=l||b>=d||a>=h?(this.gg||jQuery(this.L).hide(),this.gg=!0):(1>b&&(b=1),1>a&&(a=1),c>=d&&(c=d-1),l>=h&&(l=h-1),d=window.innerWidth,h=window.innerHeight,e||this.Bs!==b||this.Fs!==a||this.Ds!==c||this.zs!==l||this.Hs!==d||this.Gs!==h?(this.Bs=b,this.Fs=a,this.Ds=c,this.zs=l,this.Hs=d,this.Gs=h,this.gg&&(jQuery(this.L).show(),this.gg=!1),e=Math.round(b)+jQuery(this.b.canvas).offset().left,
d=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.L).css("position","absolute"),jQuery(this.L).offset({left:e,top:d}),jQuery(this.L).width(Math.round(c-b)),jQuery(this.L).height(Math.round(l-a)),this.Nw&&jQuery(this.L).css("font-size",this.k.nc(!0)/this.b.devicePixelRatio-.2+"em")):this.gg&&(jQuery(this.L).show(),this.gg=!1))}};q.mc=function(){};q.jb=function(){};e.prototype.Sv=function(){return!0};e.prototype.Cv=function(){return!0};e.prototype.Ev=function(){return!0};l.j=new e;r.prototype.En=
function(e){this.b.Ma||(this.L.value=e)};r.prototype.Rq=function(e){this.b.Ma||(this.visible=0!==e)};r.prototype.vi=function(e){this.b.Ma||(this.L.disabled=0===e)};l.G=new r;l.Ba=new function(){}})();function Bc(e){this.b=e}
(function(){var e=Bc.prototype;e.na=function(e){this.wa=e;this.b=e.b};var r=e.na.prototype;r.N=function(){this.F||(this.B=new Image,this.B.Yk=this.ik,this.b.rk(this.B,this.hi),this.J=this.pattern=null)};r.Mg=function(){this.F||(this.J=null)};r.Uh=function(){if(!this.F&&this.i.length){this.J||(this.J=this.b.A.Hf(this.B,!0,this.b.Ia,this.Vg));var e,q;e=0;for(q=this.i.length;ea&&(a+=this.B.width);0>c&&(c+=this.B.height);e.translate(q,p);e.rotate(this.n);e.translate(a,c);e.fillRect(t-a,b-c,this.width,this.height);e.restore()};r.yf=function(e){this.jb(e)};r.jb=function(e){e.fc(this.J);
e.te(this.opacity);var q=this.Mf;q.right=this.width/this.B.width;q.bottom=this.height/this.B.height;var p=this.Mb;if(this.b.ec){var t=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;e.wd(p.Sa+t,p.Ta+b,p.hb+t,p.ib+b,p.eb+t,p.fb+b,p.bb+t,p.cb+b,q)}else e.wd(p.Sa,p.Ta,p.hb,p.ib,p.eb,p.fb,p.bb,p.cb,q)};e.j=new function(){};e.G=new function(){};e.Ba=new function(){}})();function Cc(e){this.b=e}
(function(){function e(){this.jn=this.id=-1;this.hr=this.kh=this.ok=this.Xi=!1;this.Fa=new wa(0,0,0,0)}function r(a){1E4>k.length&&k.push(a)}function l(){this.id=-1;this.Fa=new wa(0,0,0,0);this.Ve=null}function q(a){1E4>f.length&&f.push(a)}function p(a,b,c){var d;return M.length?(d=M.pop(),d.e=a,d.x=b,d.y=c,d.left=d.x*d.e.rb*d.e.ic,d.top=d.y*d.e.Db*d.e.hc,d.clear(),d.Tj=!1,d):new t(a,b,c)}function t(a,b,c){this.e=a;this.x=b;this.y=c;this.left=this.x*this.e.rb*this.e.ic;this.top=this.y*this.e.Db*this.e.hc;
this.we=[];this.Tb=[];this.kc=[];this.Tj=!1;var d,e;a=0;for(b=this.e.Db;aa||a>=this.Xd.length)&&this.Xd[a]){var h=this.Xd[a].ul;a=new gb(this.Xd[a].Ve);a.$f(b,c,0);f&&a.hx();d&&a.Hz(b/2);e&&a.ty(c/2);h[d?1:0][e?1:0][f?1:0]=a}};a.Ny=function(a){if(-1===a)return null;var b=a&h;return 0>b||b>=this.Xd.length||!this.Xd[b]?null:this.Xd[b].ul[a&c?1:0][a&w?1:0][a&d?1:0]};a.qo=function(){var a,b,c=this.b.A;if(c)for(a=0,b=this.bg.length;a=a||0>=b)){this.qo();var m=this.B.width,k=this.B.height,p;for(p=d;p+b<=k;p+=b+f)for(d=c;d+a<=m;d+=a+e)this.bg.push(this.cv(d,p,a,b,h));this.Zn=!0}};a.cv=function(a,b,c,d,e){if(this.b.A)return this.An(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.An(a,b,c,d,!1,!1,!1,e);return{ul:f,x:a,y:b,rn:c,Il:d}};a.Aq=function(a,b,c,d,e){if(0>a||a>=this.bg.length)return null;a=this.bg[a];var f=a.ul;b=b?1:0;c=c?1:0;d=d?1:0;var h=f[b][c][d];
if(h)return h;h=this.An(a.x,a.y,a.rn,a.Il,0!==b,0!==c,0!==d,e);return f[b][c][d]=h};a.An=function(a,b,c,d,e,f,h,m){var k=c,p=d;this.b.A&&!m&&(ma(k)||(k=na(k)),ma(p)||(p=na(p)));var l=document.createElement("canvas");l.width=k;l.height=p;var q=l.getContext("2d");if(this.b.Pa)return e?f?(h?(q.rotate(Math.PI/2),q.scale(-1,1)):q.scale(-1,-1),q.translate(-k,-p)):h?(q.rotate(Math.PI/2),q.translate(0,-p)):(q.scale(-1,1),q.translate(-k,0)):f?h?(q.rotate(-Math.PI/2),q.translate(-k,0)):(q.scale(1,-1),q.translate(0,
-p)):h&&(q.scale(-1,1),q.rotate(Math.PI/2)),q.drawImage(this.B,a,b,c,d,0,0,k,p),m?l:this.b.Pa.createPattern(l,"repeat");q.drawImage(this.B,a,b,c,d,0,0,k,p);a=this.b.A.Mc(k,p,this.b.Ia,!1,!m);this.b.A.Mu(l,a);return a};a.Mg=function(){this.F||this.qo()};a.Uh=function(){};a.Lh=function(){};a.li=function(){this.F||this.i.length||this.qo()};a.Yh=function(){};b.Z=function(a){this.type=a;this.b=a.b};var a=b.Z.prototype,c=-2147483648,w=1073741824,d=536870912,h=536870911,k=[],f=[],M=[];t.prototype.clear=
function(){var a,b,c,d,e;this.we.length=this.e.Db;a=0;for(b=this.we.length;a=a||0>=b)){var n,m,p,t,E,R;n=0;for(m=this.Tb.length;nthis.e.rb&&(z=this.e.rb);O>this.e.Db&&(O=this.e.Db);var K=this.e.Nf,A=null;n=0;for(m=O;nt.Fa.bottom)break;if(p.Fa.right>t.Fa.right||p.Fa.left>t.Fa.left)break;
p.id===t.id&&p.Fa.left===t.Fa.left&&p.Fa.right===t.Fa.right&&(r(this.Tb[a]),this.Tb.splice(a,1),--m,t.Fa.bottom+=b,--a)}m=this.kc.length;for(n=0;nE.bottom)break;if(t.right>E.right||t.left>E.left)break;p.Ve||t.left!==E.left||t.right!==E.right||(q(this.kc[a]),this.kc.splice(a,1),--m,E.bottom+=b,--a)}this.Tj=!0}}};t.prototype.aq=function(a,b,c){this.we[b][a]!==c&&(this.we[b][a]=c,this.Tj=!1,this.e.Ek=
!0,this.e.Nj=!0,this.e.b.Y=!0)};a.N=function(){var a,b,c;this.visible=0===this.q[0];this.ic=this.q[1];this.hc=this.q[2];this.iq=this.q[3];this.kq=this.q[4];this.jq=this.q[5];this.lq=this.q[6];this.Nf=0!==this.q[7];this.sd=this.wu;this.Pd=this.vu;this.Re=this.width;this.Qe=this.height;var d=this.ic,e=this.hc;0===d&&(d=1);0===e&&(e=1);this.rb=Math.ceil(this.b.Wa/d);this.Db=Math.ceil(this.b.Va/e);if(!this.type.tu)for(this.type.tu=!0,a=0,b=this.type.Xd.length;athis.Pd&&(this.Pd=c,a=Math.ceil(this.Pd/this.Db)),b>this.sd&&(this.sd=b,d=Math.ceil(this.sd/this.rb)),this.Mm(),this.Nj=!0,this.b.Y=!0);for(var e,b=0;b<
a;++b)if(e=this.wc[b])for(c=e.length;ca||0>b)return null;var c=D(b/this.Db);if(c>=this.wc.length)return null;var c=this.wc[c],d=D(a/this.rb);return d>=c.length?null:c[d]};a.Tn=function(a,b){if(0>a||0>b||b>=this.wc.length)return null;var c=this.wc[b];return a>=c.length?null:c[a]};a.bu=function(a){var b=[];a=a.split(",");var e,f,h,m,k;e=0;for(f=a.length;e=this.sd||0>=this.Pd)return a;var b=1,e=this.Xr(0,0),f,m,k,p,l,q,t,r;p=D(this.width/this.ic);
m=D(this.height/this.hc);for(f=0;fa||0>b||a>=this.sd||b>=this.Pd)return-1;var c=this.Sn(a,b);
return c?c.we[b%this.Db][a%this.rb]:-1};a.aq=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.sd||b>=this.Pd)return-1;var d=this.Sn(a,b);if(!d)return-1;d.aq(a%this.rb,b%this.Db,c)};a.Ou=function(a){return Math.floor((a-this.x)/(this.rb*this.ic))};a.Pu=function(a){return Math.floor((a-this.y)/(this.Db*this.hc))};a.Ay=function(a,b){var c=this.Pu(a.top),d=this.Ou(a.right),e=this.Pu(a.bottom),f,h,m;for(f=this.Ou(a.left);f<=d;++f)for(h=c;h<=e;++h)if(m=this.Tn(f,h))m.Fj(),Da(b,m.kc)};
a.fe=function(a){var b,c,d,e,f,h;b=0;for(c=this.wc.length;bM.length&&M.push(f)}S(e)}S(this.wc)};a.pb=function(){this.sp();return{w:D(this.width/this.ic),h:D(this.height/this.hc),d:this.Oy()}};
a.Ib=function(a){this.sd=a.w;this.Pd=a.h;this.sp(!0);this.bu(a.d);this.Nj=!0;this.Mm()};a.mc=function(a){if(!(0>=this.ic||0>=this.hc)){this.type.rp(this.ic,this.hc,this.iq,this.kq,this.jq,this.lq,this.Nf);if(this.width!==this.Re||this.height!==this.Qe)this.Nj=!0,this.Mm(),this.qp(),this.Re=this.width,this.Qe=this.height;a.globalAlpha=this.opacity;var b=this.k,c=b.ma,d=b.fa,e=b.ra,b=b.la,f=this.x,h=this.y,m=this.Nf,k;this.b.ec&&(f=Math.round(f),h=Math.round(h));var p=this.rb*this.ic,l=this.Db*this.hc,
q=Math.floor((c-f)/p),p=Math.floor((e-f)/p),t=Math.floor((d-h)/l),l=Math.floor((b-h)/l),r=f%this.ic,w=h%this.hc;this.Nf&&(w=r=0);if(0!==r||0!==w)a.save(),a.translate(r,w),f-=r,h-=w,c-=r,d-=w,e-=r,b-=w;for(var B,M,x,C,F,N,I,H,P;q<=p;++q)for(B=t;B<=l;++B)if(M=this.Tn(q,B))for(M.Fj(),x=0,C=M.Tb.length;xe||Hb||k=this.ic||0>=this.hc)){this.type.rp(this.ic,this.hc,this.iq,this.kq,this.jq,this.lq,this.Nf);if(this.width!==this.Re||this.height!==this.Qe)this.Nj=!0,this.Mm(),this.qp(),this.Re=this.width,this.Qe=this.height;a.te(this.opacity);var b=this.type.bg,c=this.k,d=c.ma,e=c.fa,f=c.ra,c=c.la,h=this.x,k=this.y,p;this.b.ec&&(h=Math.round(h),k=Math.round(k));var l=
this.rb*this.ic,q=this.Db*this.hc,t=Math.floor((f-h)/l),r=Math.floor((e-k)/q),q=Math.floor((c-k)/q),w,J,B,M,x,C,F,N,I,H,P,T,ba,Q,ia,fa,sa;for(ia=Math.floor((d-h)/l);ia<=t;++ia)for(fa=r;fa<=q;++fa)if(sa=this.Tn(ia,fa))for(sa.Fj(),l=0,w=sa.Tb.length;lf||xc||pSa(this.Zm,this.$m,this.x,this.y)&&(this.ln=!0,a.xe=this.dk,a.ki=this.id,a.uh=b,a.b.trigger(Z.prototype.j.Kv,a),a.Ee=this.x,a.Fe=this.y,a.b.trigger(Z.prototype.j.Lv,a),a.uh=0)};var k=-1E3,f=-1E3,M=-1E4;l.prototype.ct=function(a,b){if(!this.ln){var c=Wa();333>=c-this.gq&&!this.kk&&15>Sa(this.Zm,this.$m,this.x,this.y)&&(a.xe=this.dk,a.ki=this.id,a.uh=b,666>=c-M&&25>Sa(k,f,this.x,this.y)?(a.b.trigger(Z.prototype.j.Fv,a),a.Ee=this.x,a.Fe=this.y,a.b.trigger(Z.prototype.j.Gv,
a),f=k=-1E3,M=-1E4):(a.b.trigger(Z.prototype.j.Nq,a),a.Ee=this.x,a.Fe=this.y,a.b.trigger(Z.prototype.j.Oq,a),k=this.x,f=this.y,M=c),a.uh=0)}};b.N=function(){this.wz=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.uh=this.ki=this.xe=this.Fe=this.Ee=this.Yq=this.Xq=this.Wq=this.Bw=this.Aw=this.zw=this.nm=this.mm=this.lm=0;this.NA=0!==this.q[0];var a=0d-c.time||c.update(d,b.pageX-e.left,b.pageY-e.top,b.width||0,b.height||0,b.pressure||0)}}};b.ut=
function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ma?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;Wa();this.xe=this.touches.length;this.ki=b.pointerId;this.touches.push(r(d,c,b.pointerId,this.xe));this.b.Oc=!0;this.b.trigger(Z.prototype.j.Lq,this);this.b.trigger(Z.prototype.j.Qq,this);this.Ee=d;this.Fe=c;this.b.trigger(Z.prototype.j.Dn,this);this.b.Oc=!1}};b.km=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Pi(a.pointerId);this.xe=0<=c?this.touches[c].dk:-1;this.ki=0<=c?this.touches[c].id:-1;this.b.Oc=!0;this.b.trigger(Z.prototype.j.Kq,this);this.b.trigger(Z.prototype.j.Pq,this);0<=c&&(b||this.touches[c].ct(this,c),100>h.length&&h.push(this.touches[c]),this.touches.splice(c,1));this.b.Oc=!1}};b.xt=function(b){b.preventDefault&&b.preventDefault();var c=Wa(),d,e,f,h;d=0;for(e=b.changedTouches.length;d<
e;d++)if(f=b.changedTouches[d],h=this.Pi(f.identifier),0<=h){var k=this.b.Ma?a:jQuery(this.b.canvas).offset();h=this.touches[h];2>c-h.time||h.update(c,f.pageX-k.left,f.pageY-k.top,2*(f.iC||f.oC||f.aC||f.dC||0),2*(f.jC||f.pC||f.bC||f.eC||0),f.WB||f.nC||f.$B||f.cC||0)}};b.yt=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ma?a:jQuery(this.b.canvas).offset();Wa();this.b.Oc=!0;var d,e,f,h;d=0;for(e=b.changedTouches.length;dh.length&&h.push(this.touches[e]),this.touches.splice(e,1));this.b.Oc=!1};b.fe=function(){return this.b.Nc&&0===this.lm&&0!==d?90*d:this.lm};b.co=function(){return this.b.Nc&&0===this.mm&&0!==w?90*w:this.mm};b.cs=function(){return this.b.Nc&&0===this.nm&&0!==c?90*c:this.nm};b.Pz=function(a){this.yt({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.wp=!0};b.Qz=function(a){this.wp&&
this.xt({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Rz=function(a){a.preventDefault&&this.b.Zr&&!this.b.Df&&a.preventDefault();this.b.Zr=!0;this.Cp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.wp=!1};b.gn=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.M(0);else{var d,e,f,h,k;ja(b)?(d=this.b.sh(0),e=d.scale,f=d.ae,h=d.ud,k=d.n,d.scale=1,d.ae=1,d.ud=1,d.n=0,a.M(d.jc(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.ae=f,d.ud=h,d.n=k):(d=ka(b)?this.b.sh(b):this.b.Dl(b))?a.M(d.jc(this.touches[c].x,this.touches[c].y,!0)):a.M(0)}};p.prototype.Sq=function(a,b){var c=this.uh;if(0>c||c>=this.touches.length)a.M(0);else{var d,e,f,h,k;ja(b)?(d=this.b.sh(0),e=d.scale,f=d.ae,h=d.vd,
k=d.n,d.scale=1,d.ae=1,d.vd=1,d.n=0,a.M(d.jc(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.ae=f,d.vd=h,d.n=k):(d=ka(b)?this.b.sh(b):this.b.Dl(b))?a.M(d.jc(this.touches[c].x,this.touches[c].y,!1)):a.M(0)}};t.Ba=new p})();function Dc(e){this.b=e}
(function(){function e(){}function r(){}var l=Dc.prototype;l.na=function(e){this.wa=e;this.b=e.b};l.na.prototype.N=function(){};l.Z=function(e){this.type=e;this.b=e.b};var q=!1;l.Z.prototype.N=function(){if(window.admob){q=!0;this.Lb=window.admob;this.Lb.setLicenseKey&&this.Lb.setLicenseKey("support@scirra.com","2ba99d4ff8c219cf7331c88fb3344f80");var e=0!==this.q[0],l=0!==this.q[1];this.Jw=this.q[2];this.Kw=this.q[3];this.lz=this.q[4];this.mz=this.q[5];this.SA=this.q[6];this.TA=this.q[7];this.b.aj?
(this.Fk=this.Jw,this.Ll=this.Kw):this.b.xg?(this.Fk=this.lz,this.Ll=this.mz):this.b.wg||this.b.Ql?(this.Fk=this.SA,this.Ll=this.TA):this.Ll=this.Fk="";this.Pl=!1;this.Lb.setUp(this.Fk,this.Ll,e,l);var b=this;this.Lb.onFullScreenAdLoaded=function(){b.b.trigger(Dc.prototype.j.Gq,b)};this.Lb.onInterstitialAdLoaded=function(){b.b.trigger(Dc.prototype.j.Gq,b)};this.Lb.onFullScreenAdShown=function(){b.Pl=!0;b.b.trigger(Dc.prototype.j.Fq,b)};this.Lb.onInterstitialAdShown=function(){b.Pl=!0;b.b.trigger(Dc.prototype.j.Fq,
b)};this.Lb.onFullScreenAdClosed=function(){b.Pl=!1;b.b.trigger(Dc.prototype.j.Eq,b)};this.Lb.onInterstitialAdHidden=function(){b.Pl=!1;b.b.trigger(Dc.prototype.j.Eq,b)};this.Lb.onBannerAdPreloaded=function(){b.b.trigger(Dc.prototype.j.Av,b)}}else ga("[Construct 2] com.cranberrygame.phonegap.plugin.ad.admob plugin is required to show Admob ads with Cordova; other platforms are not supported")};e.prototype.Gq=function(){return!0};e.prototype.Fq=function(){return!0};e.prototype.Eq=function(){return!0};
e.prototype.Av=function(){return!0};l.j=new e;r.prototype.Wv=function(){q&&(this.Lb.preloadInterstitialAd?this.Lb.preloadInterstitialAd():this.Lb.preloadFullScreenAd&&this.Lb.preloadFullScreenAd())};r.prototype.lw=function(){q&&(this.Lb.showInterstitialAd?this.Lb.showInterstitialAd():this.Lb.showFullScreenAd&&this.Lb.showFullScreenAd())};l.G=new r;l.Ba=new function(){}})();function Ec(e){this.b=e}
(function(){function e(){}var r=Ec.prototype;r.na=function(e){this.behavior=e;this.b=e.b};r.na.prototype.N=function(){};r.Z=function(e,p){this.type=e;this.behavior=e.behavior;this.e=p;this.b=e.b};var l=r.Z.prototype;l.N=function(){this.cr=this.q[0];this.dr=this.q[1];this.Iw=this.q[2];this.Hw=this.q[3];this.e.ca();this.tn=this.e.T.left;this.yn=this.e.T.top;this.vn=this.b.Wa-this.e.T.left;this.wn=this.b.Va-this.e.T.top;this.Fm=this.b.Wa-this.e.T.right;this.Lk=this.b.Va-this.e.T.bottom;this.enabled=
0!==this.q[4]};l.pb=function(){return{xleft:this.tn,ytop:this.yn,xright:this.vn,ybottom:this.wn,rdiff:this.Fm,bdiff:this.Lk,enabled:this.enabled}};l.Ib=function(e){this.tn=e.xleft;this.yn=e.ytop;this.vn=e.xright;this.wn=e.ybottom;this.Fm=e.rdiff;this.Lk=e.bdiff;this.enabled=e.enabled};l.Ra=function(){if(this.enabled){var e,p=this.e.k,l=this.e,b=this.e.T;0===this.cr?(l.ca(),e=p.ma+this.tn-b.left,0!==e&&(l.x+=e,l.D())):1===this.cr&&(l.ca(),e=p.ra-this.vn-b.left,0!==e&&(l.x+=e,l.D()));0===this.dr?(l.ca(),
e=p.fa+this.yn-b.top,0!==e&&(l.y+=e,l.D())):1===this.dr&&(l.ca(),e=p.la-this.wn-b.top,0!==e&&(l.y+=e,l.D()));1===this.Iw&&(l.ca(),e=p.ra-this.Fm-b.right,0!==e&&(l.width+=e,0>l.width&&(l.width=0),l.D()));1===this.Hw&&(l.ca(),e=p.la-this.Lk-b.bottom,0!==e&&(l.height+=e,0>l.height&&(l.height=0),l.D()))}};r.j=new function(){};e.prototype.vi=function(e){this.enabled&&0===e?this.enabled=!1:this.enabled||0===e||(this.e.ca(),this.tn=this.e.T.left,this.yn=this.e.T.top,this.vn=this.b.Wa-this.e.T.left,this.wn=
this.b.Va-this.e.T.top,this.Fm=this.b.Wa-this.e.T.right,this.Lk=this.b.Va-this.e.T.bottom,this.enabled=!0)};r.G=new e;r.Ba=new function(){}})();function Fc(e){this.b=e}
(function(){function e(){}var r=Fc.prototype;r.na=function(e){this.behavior=e;this.b=e.b};r.na.prototype.N=function(){};r.Z=function(e,p){this.type=e;this.behavior=e.behavior;this.e=p;this.b=e.b};var l=r.Z.prototype;l.N=function(){this.Zq=1===this.q[0];this.Ni=this.q[1];this.sk=this.q[2];this.ll=this.q[3];this.gx=this.q[4];this.ed=this.Zq?0:3;this.Ub?this.zd.reset():this.zd=new eb;this.Jg=this.e.opacity?this.e.opacity:1;this.Zq&&(0===this.Ni?(this.ed=1,0===this.sk&&(this.ed=2)):(this.e.opacity=0,
this.b.Y=!0))};l.pb=function(){return{fit:this.Ni,wt:this.sk,fot:this.ll,s:this.ed,st:this.zd.W,mo:this.Jg}};l.Ib=function(e){this.Ni=e.fit;this.sk=e.wt;this.ll=e.fot;this.ed=e.s;this.zd.reset();this.zd.W=e.st;this.Jg=e.mo};l.Ra=function(){this.zd.add(this.b.Ri(this.e));0===this.ed&&(this.e.opacity=this.zd.W/this.Ni*this.Jg,this.b.Y=!0,this.e.opacity>=this.Jg&&(this.e.opacity=this.Jg,this.ed=1,this.zd.reset(),this.b.trigger(Fc.prototype.j.Hv,this.e)));1===this.ed&&this.zd.W>=this.sk&&(this.ed=2,this.zd.reset(),
this.b.trigger(Fc.prototype.j.Tv,this.e));2===this.ed&&0!==this.ll&&(this.e.opacity=this.Jg-this.zd.W/this.ll*this.Jg,this.b.Y=!0,0>this.e.opacity&&(this.e.opacity=0,this.ed=3,this.zd.reset(),this.b.trigger(Fc.prototype.j.Iv,this.e),1===this.gx&&this.b.ye(this.e)))};l.fe=function(){this.ed=0;this.zd.reset();0===this.Ni?(this.ed=1,0===this.sk&&(this.ed=2)):(this.e.opacity=0,this.b.Y=!0)};e.prototype.Iv=function(){return!0};e.prototype.Hv=function(){return!0};e.prototype.Tv=function(){return!0};r.j=
new e;r.G=new function(){};r.Ba=new function(){}})();function Gc(e){this.b=e}
(function(){function e(){}var r=Gc.prototype;r.na=function(e){this.behavior=e;this.b=e.b};r.na.prototype.N=function(){};r.Z=function(e,p){this.type=e;this.behavior=e.behavior;this.e=p;this.b=e.b};var l=r.Z.prototype;l.N=function(){this.Bb=null;this.um=-1;this.mode=this.Gh=this.cn=this.Rh=this.Ue=this.Pj=0;var e=this;this.Ub||(this.Gj=function(p){e.Kj(p)});this.b.Ak(this.Gj)};l.pb=function(){return{uid:this.Bb?this.Bb.uid:-1,pa:this.Pj,pd:this.Ue,msa:this.Rh,tsa:this.cn,lka:this.Gh,m:this.mode}};l.Ib=
function(e){this.um=e.uid;this.Pj=e.pa;this.Ue=e.pd;this.Rh=e.msa;this.cn=e.tsa;this.Gh=e.lka;this.mode=e.m};l.Ed=function(){-1===this.um?this.Bb=null:this.Bb=this.b.ng(this.um);this.um=-1};l.Kj=function(e){this.Bb==e&&(this.Bb=null)};l.td=function(){this.Bb=null;this.b.St(this.Gj)};l.Ra=function(){};l.gn=function(){if(this.Bb){this.Gh!==this.e.n&&(this.Rh=Ka(this.Rh+(this.e.n-this.Gh)));var e=this.e.x,p=this.e.y;if(3===this.mode||4===this.mode){var l=Sa(this.e.x,this.e.y,this.Bb.x,this.Bb.y);if(l>
this.Ue||4===this.mode&<his.Xc&&(this.tb*=-1,this.ub*=-1,this.Xc=Math.abs(this.Xc))};q.N=function(){this.Oh=this.q[0];this.de=this.q[1];this.ih=this.q[2];this.qj=this.q[3];this.uo=this.Xc=this.q[4];this.Ig=this.q[5];this.fo=0!==this.q[6];this.bp=this.q[7]/1E3;this.ax=1===this.q[8];this.enabled=0!==this.q[9];this.qi=!1;this.ri=this.b.bf(this.e);this.jp=-1;this.Ug=0;this.rh=W(90);
this.Hu();var e=this;this.ax&&!this.b.Ma&&(jQuery(document).keydown(function(l){e.Nz(l)}),jQuery(document).keyup(function(l){e.Oz(l)}));this.Ub||(this.Gj=function(l){e.Kj(l)});this.b.Ak(this.Gj);this.e.I.isPlatformBehavior=!0};q.pb=function(){return{ii:this.Mo,lfx:this.yg,lfy:this.zg,lfo:this.Cc?this.Cc.uid:-1,am:this.Gd,en:this.enabled,fall:this.kg,ft:this.sl,dx:this.aa,dy:this.Aa,ms:this.Oh,acc:this.de,dec:this.ih,js:this.qj,g:this.Xc,g1:this.uo,mf:this.Ig,wof:this.qi,woj:this.ri?this.ri.uid:-1,
ga:this.rh,edj:this.fo,cdj:this.Ei,dj:this.Ki,sus:this.bp}};q.Ib=function(e){this.Mo=e.ii;this.yg=e.lfx;this.zg=e.lfy;this.ip=e.lfo;this.Gd=e.am;this.enabled=e.en;this.kg=e.fall;this.sl=e.ft;this.aa=e.dx;this.Aa=e.dy;this.Oh=e.ms;this.de=e.acc;this.ih=e.dec;this.qj=e.js;this.Xc=e.g;this.uo=e.g1;this.Ig=e.mf;this.qi=e.wof;this.jp=e.woj;this.rh=e.ga;this.fo=e.edj;this.Ei=e.cdj;this.Ki=e.dj;this.bp=e.sus;this.bk=this.Tm=this.Sm=this.Eh=this.Fh=this.Wj=this.sj=!1;this.Ug=0;this.Hu()};q.Ed=function(){-1===
this.ip?this.Cc=null:this.Cc=this.b.ng(this.ip);-1===this.jp?this.ri=null:this.ri=this.b.ng(this.jp)};q.Kj=function(e){this.Cc==e&&(this.Cc=null)};q.td=function(){this.Cc=null;this.b.St(this.Gj)};q.Nz=function(e){switch(e.which){case 38:e.preventDefault();this.Fh=!0;break;case 37:e.preventDefault();this.sj=!0;break;case 39:e.preventDefault(),this.Wj=!0}};q.Oz=function(e){switch(e.which){case 38:e.preventDefault();this.Eh=this.Fh=!1;break;case 37:e.preventDefault();this.sj=!1;break;case 39:e.preventDefault(),
this.Wj=!1}};q.Vh=function(){this.Fh=this.Wj=this.sj=!1};q.fe=function(){return 0>this.Xc?-1:1};q.qs=function(){var e=null,l=null,b,a;b=this.e.x;a=this.e.y;this.e.x+=this.tb;this.e.y+=this.ub;this.e.D();if(this.Cc&&this.b.Hc(this.e,this.Cc))return this.e.x=b,this.e.y=a,this.e.D(),this.Cc;(e=this.b.Ic(this.e))||0!==this.kg||(l=this.b.bf(this.e,!0));this.e.x=b;this.e.y=a;this.e.D();if(e){if(this.b.Hc(this.e,e))return null;this.wl=!1;return e}if(l&&l.length){a=e=0;for(b=l.length;ethis.Ig&&(this.Aa=this.Ig)),m&&(this.Eh=!0));this.qi=!!u;r==a&&(0>this.aa?(this.aa+=this.ih*e,0this.aa&&(this.aa=0)));r&&!a&&(this.aa=0this.aa?this.aa+(this.de+this.ih)*e:this.aa+this.de*e);this.aa>this.Oh?this.aa=this.Oh:this.aa<-this.Oh&&(this.aa=-this.Oh);r=!1;0!==this.aa&&(k=this.e.x,f=this.e.y,l=this.aa*e*this.Pg,
b=this.aa*e*this.Qg,this.e.x+=this.Pg*(1
this.aa?1:-1),this.Qg*(0>this.aa?1:-1),l,!1)?!u||c||this.wl||(k=this.e.x,f=this.e.y,this.e.x+=this.tb,this.e.y+=this.ub,this.b.Ic(this.e)?this.b.Td(this.e,-this.tb,-this.ub,3,!1)||(this.e.x=k,this.e.y=f,this.e.D()):(this.e.x=k,this.e.y=f,this.e.D())):(this.e.x=k,this.e.y=f,this.e.D()),c||(this.aa=0)):!q&&!m&&Math.abs(this.Aa)this.Aa?1:-1),this.ub*(0>this.Aa?1:-1),l,c,b)?(this.Cc=b,this.yg=b.x,this.zg=b.y,(this.wl=c)&&(r=!0),this.Aa=0):(this.e.x=k,this.e.y=f,this.e.D(),this.qi=!0,c||(this.Aa=0)))}3!==this.Gd&&0this.Aa};e.prototype.mv=function(){return 0this.Ig&&(this.Ig=0)};r.prototype.mw=
function(e){switch(e){case 0:this.Sm=!0;break;case 1:this.Tm=!0;break;case 2:this.bk=!0}};r.prototype.vi=function(e){this.enabled!==(1===e)&&(this.enabled=1===e,this.enabled||(this.Cc=null))};l.G=new r;l.Ba=new function(){}})();function qc(e){this.b=e}
(function(){function e(){}var r=qc.prototype;r.na=function(e){this.behavior=e;this.b=e.b};r.na.prototype.N=function(){};r.Z=function(e,l){this.type=e;this.behavior=e.behavior;this.e=l;this.b=e.b};var l=r.Z.prototype;l.N=function(){this.e.I.jumpthruEnabled=0!==this.q[0]};l.Ra=function(){};r.j=new function(){};e.prototype.vi=function(e){this.e.I.jumpthruEnabled=!!e};r.G=new e})();function pc(e){this.b=e}
(function(){function e(){}var r=pc.prototype;r.na=function(e){this.behavior=e;this.b=e.b};r.na.prototype.N=function(){};r.Z=function(e,l){this.type=e;this.behavior=e.behavior;this.e=l;this.b=e.b};var l=r.Z.prototype;l.N=function(){this.e.I.solidEnabled=0!==this.q[0]};l.Ra=function(){};r.j=new function(){};e.prototype.vi=function(e){this.e.I.solidEnabled=!!e};r.G=new e})();
function oc(){return[Dc,rc,vc,wc,Y,xc,Z,Bc,Cc,yc,Ac,Ic,qc,pc,Gc,Fc,Ec,Y.prototype.j.av,X.prototype.G.hw,Y.prototype.Ba.Sq,X.prototype.j.Wu,X.prototype.Ba.QA,X.prototype.G.bv,X.prototype.Ba.random,X.prototype.Ba.Az,X.prototype.j.iv,X.prototype.G.Xv,Y.prototype.j.rv,X.prototype.Ba.round,xc.prototype.G.En,X.prototype.j.Iq,rc.prototype.G.Vv,Gc.prototype.G.Uv,X.prototype.G.Ru,X.prototype.j.nv,Z.prototype.j.ov,X.prototype.Ba.ix,Y.prototype.Ba.In,Z.prototype.Ba.In,X.prototype.Ba.zf,Ic.prototype.j.qv,Y.prototype.G.wv,
X.prototype.Ba.n,Z.prototype.j.Nq,Ic.prototype.j.pv,Ic.prototype.j.mv,Ic.prototype.G.mw,rc.prototype.G.Play,X.prototype.Ba.PA,Y.prototype.G.dv,Y.prototype.j.$u,Y.prototype.G.jw,X.prototype.j.hv,X.prototype.j.Zu,Y.prototype.j.sv,Y.prototype.G.ow,Y.prototype.G.Zv,X.prototype.G.bw,Y.prototype.j.Dv,Y.prototype.G.Qu,X.prototype.G.sw,X.prototype.j.uw,Y.prototype.j.Yu,Y.prototype.G.Yv,Y.prototype.j.Tf,Y.prototype.j.Cq,Y.prototype.G.Rq,X.prototype.G.vw,X.prototype.G.jv,Dc.prototype.G.lw,Y.prototype.G.kw,
Y.prototype.j.Bq,Ic.prototype.G.vi,Ic.prototype.G.dw,Z.prototype.j.Dn,Y.prototype.G.ew,vc.prototype.G.aw,Z.prototype.j.Oq,X.prototype.j.Hq,rc.prototype.G.qw,Dc.prototype.G.Wv,rc.prototype.G.rw,Y.prototype.j.tv,Y.prototype.j.Xu,X.prototype.G.$v,rc.prototype.G.gw,rc.prototype.G.fw]};