/*! * pixi-compressed-textures - v1.1.8 * Compiled Sun, 11 Mar 2018 12:30:26 UTC * * pixi-compressed-textures is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,(t.pixiCompressedTextures||(t.pixiCompressedTextures={})).min=e()}}(function(){var define,module,exports;return function e(t,r,i){function n(f,o){if(!r[f]){if(!t[f]){var s="function"==typeof require&&require;if(!o&&s)return s(f,!0);if(a)return a(f,!0);var c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[f]={exports:{}};t[f][0].call(u.exports,function(e){var r=t[f][1][e];return n(r||e)},u,u.exports,e,t,r,i)}return r[f].exports}for(var a="function"==typeof require&&require,f=0;f>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":pa=[t>>>0,(oa=t,1<=+xa(oa)?0>>0:~~+Aa((oa-+(~~oa>>>0))/4294967296)>>>0:0)],C[e>>2]=pa[0],C[e+4>>2]=pa[1];break;case"float":Ba[e>>2]=t;break;case"double":Ca[e>>3]=t;break;default:x("invalid type for setValue: "+r)}}function Da(e,t){switch(t=t||"i8","*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":case"i64":return C[e>>2];case"float":return Ba[e>>2];case"double":return Ca[e>>3];default:x("invalid type for setValue: "+t)}return null}function D(e,t,r,i){var a,f;"number"==typeof e?(a=!0,f=e):(a=!1,f=e.length);var o="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(f,o?1:t.length)),a){for(i=r,assert(0==(3&r)),e=r+(-4&f);i>2]=0;for(e=r+f;i>0]=0;return r}if("i8"===o)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;i=0;for(var s,c;i>0],n|=i,0!=i||r)&&(a++,!r||a!=r););if(r||(r=a),i="",128>n){for(;0r?s+=String.fromCharCode(r):(r-=65536,s+=String.fromCharCode(55296|r>>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,i){if(!(0=f&&(f=65536+((1023&f)<<10)|1023&e.charCodeAt(++a)),127>=f){if(r>=i)break;t[r++]=f}else{if(2047>=f){if(r+1>=i)break;t[r++]=192|f>>6}else{if(65535>=f){if(r+2>=i)break;t[r++]=224|f>>12}else{if(2097151>=f){if(r+3>=i)break;t[r++]=240|f>>18}else{if(67108863>=f){if(r+4>=i)break;t[r++]=248|f>>24}else{if(r+5>=i)break;t[r++]=252|f>>30,t[r++]=128|f>>24&63}t[r++]=128|f>>18&63}t[r++]=128|f>>12&63}t[r++]=128|f>>6&63}t[r++]=128|63&f}}return t[r]=0,r-n}function La(e){for(var t=0,r=0;r=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++r)),127>=i?++t:t=2047>=i?t+2:65535>=i?t+3:2097151>=i?t+4:67108863>=i?t+5:t+6}return t}function Ma(t){function r(e,i,n){i=i||1/0;var a,f="",o=[];if("N"===t[s]){for(s++,"K"===t[s]&&s++,a=[];"E"!==t[s];)if("S"===t[s]){s++;var d=t.indexOf("_",s);a.push(u[t.substring(s,d)||0]||"?"),s=d+1}else if("C"===t[s])a.push(a[a.length-1]),s+=2;else{var d=parseInt(t.substr(s)),l=d.toString().length;if(!d||!l){s--;break}var b=t.substr(s+l,d);a.push(b),u.push(b),s+=l+d}if(s++,a=a.join("::"),0===--i)return e?[a]:a}else("K"===t[s]||h&&"L"===t[s])&&s++,(d=parseInt(t.substr(s)))&&(l=d.toString().length,a=t.substr(s+l,d),s+=l+d);h=!1,"I"===t[s]?(s++,d=r(!0),l=r(!0,1,!0),f+=l[0]+" "+a+"<"+d.join(", ")+">"):f=a;e:for(;s=i)return!1;for(;t<=r;)if(t=i)return!1;try{if(ArrayBuffer.p)buffer=ArrayBuffer.p(buffer,t);else{var a=y;buffer=new ArrayBuffer(t)}}catch(e){return!1}return!!Xa(buffer)&&(e.buffer=buffer,e.HEAP8=y=new Int8Array(buffer),e.HEAP16=z=new Int16Array(buffer),e.HEAP32=C=new Int32Array(buffer),e.HEAPU8=E=new Uint8Array(buffer),e.HEAPU16=Ra=new Uint16Array(buffer),e.HEAPU32=Sa=new Uint32Array(buffer),e.HEAPF32=Ba=new Float32Array(buffer),e.HEAPF64=Ca=new Float64Array(buffer),ArrayBuffer.p||y.set(a),!0)}function ab(e){for(;0>0]=e[r],r+=1}function ta(e,t){for(var r=0;r>0]=e[r]}function Ia(e,t,r){for(var i=0;i>0]=e.charCodeAt(i);r||(y[t>>0]=0)}function kb(){I++,e.monitorRunDependencies&&e.monitorRunDependencies(I)}function lb(){if(I--,e.monitorRunDependencies&&e.monitorRunDependencies(I),0==I&&(null!==ib&&(clearInterval(ib),ib=null),jb)){var t=jb;jb=null,t()}}function ob(t){return e.___errno_location&&(C[e.___errno_location()>>2]=t),t}function pb(e,t){H.push(function(){n.L("vi",e,[t])}),pb.level=H.length}function tb(){return!!tb.p}function wb(e,t){wb.p||(wb.p={}),e in wb.p||(n.L("v",t),wb.p[e]=1)}function yb(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function zb(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Ab(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function Bb(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)}function Cb(){return zb(Array.prototype.slice.call(arguments,0).join("/"))}function K(e,t){return zb(e+"/"+t)}function Db(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."}function Fb(e,t){Eb[e]={input:[],output:[],N:t},Gb(e,Hb)}function S(e,t){if(e=Db("/",e),t=t||{},!e)return{path:"",g:null};var r,i={Ia:!0,ra:0};for(r in i)void 0===t[r]&&(t[r]=i[r]);if(8>>0)%Q.length}function Xb(e){var t=Wb(e.parent.id,e.name);e.M=Q[t],Q[t]=e}function Nb(e,t){var r;if(r=(r=Yb(e,"x"))?r:e.k.lookup?0:J.da)throw new L(r,e);for(r=Q[Wb(e.id,t)];r;r=r.M){var i=r.name;if(r.parent.id===e.id&&i===t)return r}return e.k.lookup(e,t)}function Lb(e,t,r,i){return Zb||(Zb=function(e,t,r,i){e||(e=this),this.parent=e,this.A=e.A,this.U=null,this.id=Sb++,this.name=t,this.mode=r,this.k={},this.n={},this.rdev=i},Zb.prototype={},Object.defineProperties(Zb.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},kb:{get:function(){return N(this.mode)}},jb:{get:function(){return 8192==(61440&this.mode)}}})),e=new Zb(e,t,r,i),Xb(e),e}function N(e){return 16384==(61440&e)}function Yb(e,t){return Tb?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:J.da}function ac(e,t){try{return Nb(e,t),J.wa}catch(e){}return Yb(e,"wx")}function bc(){var e;e=4096;for(var t=0;t<=e;t++)if(!Rb[t])return t;throw new L(J.Sa)}function cc(e){dc||(dc=function(){},dc.prototype={},Object.defineProperties(dc.prototype,{object:{get:function(){return this.g},set:function(e){this.g=e}},Ld:{get:function(){return 1!=(2097155&this.flags)}},Md:{get:function(){return 0!=(2097155&this.flags)}},Kd:{get:function(){return 1024&this.flags}}}));var t,r=new dc;for(t in e)r[t]=e[t];return e=r,r=bc(),e.fd=r,Rb[r]=e}function Gb(e,t){Qb[e]={n:t}}function ec(e,t){var r,i="/"===t,n=!t;if(i&&Pb)throw new L(J.fa);if(!i&&!n){if(r=S(t,{Ia:!1}),t=r.path,r=r.g,r.U)throw new L(J.fa);if(!N(r.mode))throw new L(J.ya)}var n={type:e,pa:{},Oa:t,lb:[]},a=e.A(n);a.A=n,n.root=a,i?Pb=a:r&&(r.U=n,r.A&&r.A.lb.push(n))}function fc(e,t,r){var i=S(e,{parent:!0}).g;if(!(e=Bb(e))||"."===e||".."===e)throw new L(J.q);var n=ac(i,e);if(n)throw new L(n);if(!i.k.T)throw new L(J.I);return i.k.T(i,e,t,r)}function gc(e,t){return t=4095&(void 0!==t?t:438),t|=32768,fc(e,t,0)}function V(e,t){return t=1023&(void 0!==t?t:511),t|=16384,fc(e,t,0)}function hc(e,t,r){return void 0===r&&(r=t,t=438),fc(e,8192|t,r)}function ic(e,t){if(!Db(e))throw new L(J.F);var r=S(t,{parent:!0}).g;if(!r)throw new L(J.F);var i=Bb(t),n=ac(r,i);if(n)throw new L(n);if(!r.k.symlink)throw new L(J.I);return r.k.symlink(r,i,e)}function Vb(e){if(!(e=S(e).g))throw new L(J.F);if(!e.k.readlink)throw new L(J.q);return Db(T(e.parent),e.k.readlink(e))}function jc(e,t){var r;if(r="string"==typeof e?S(e,{la:!0}).g:e,!r.k.u)throw new L(J.I);r.k.u(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})}function kc(t,r){var i;if(""===t)throw new L(J.F);var n;if("string"==typeof r){if(void 0===(n=$b[r]))throw Error("Unknown file open mode: "+r)}else n=r;r=n,i=64&r?4095&(void 0===i?438:i)|32768:0;var a;if("object"==typeof t)a=t;else{t=zb(t);try{a=S(t,{la:!(131072&r)}).g}catch(e){}}if(n=!1,64&r)if(a){if(128&r)throw new L(J.wa)}else a=fc(t,i,0),n=!0;if(!a)throw new L(J.F);if(8192==(61440&a.mode)&&(r&=-513),65536&r&&!N(a.mode))throw new L(J.ya);if(!n&&(a?40960==(61440&a.mode)?i=J.ga:N(a.mode)&&(0!=(2097155&r)||512&r)?i=J.P:(i=["r","w","rw"][3&r],512&r&&(i+="w"),i=Yb(a,i)):i=J.F,i))throw new L(i);if(512&r){i=a;var f;if(f="string"==typeof i?S(i,{la:!0}).g:i,!f.k.u)throw new L(J.I);if(N(f.mode))throw new L(J.P);if(32768!=(61440&f.mode))throw new L(J.q);if(i=Yb(f,"w"))throw new L(i);f.k.u(f,{size:0,timestamp:Date.now()})}r&=-641,a=cc({g:a,path:T(a),flags:r,seekable:!0,position:0,n:a.n,tb:[],error:!1}),a.n.open&&a.n.open(a),!e.logReadFiles||1&r||(lc||(lc={}),t in lc||(lc[t]=1,e.printErr("read file: "+t)));try{R.onOpenFile&&(f=0,1!=(2097155&r)&&(f|=1),0!=(2097155&r)&&(f|=2),R.onOpenFile(t,f))}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+t+"', flags) threw an exception: "+e.message)}return a}function mc(e){e.na&&(e.na=null);try{e.n.close&&e.n.close(e)}catch(e){throw e}finally{Rb[e.fd]=null}}function nc(e,t,r){if(!e.seekable||!e.n.G)throw new L(J.ia);e.position=e.n.G(e,t,r),e.tb=[]}function oc(e,t,r,i,n,a){if(0>i||0>n)throw new L(J.q);if(0==(2097155&e.flags))throw new L(J.ea);if(N(e.g.mode))throw new L(J.P);if(!e.n.write)throw new L(J.q);1024&e.flags&&nc(e,0,2);var f=!0;if(void 0===n)n=e.position,f=!1;else if(!e.seekable)throw new L(J.ia);t=e.n.write(e,t,r,i,n,a),f||(e.position+=t);try{e.path&&R.onWriteToFile&&R.onWriteToFile(e.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return t}function pc(){L||(L=function(e,t){this.g=t,this.qb=function(e){this.S=e;for(var t in J)if(J[t]===e){this.code=t;break}},this.qb(e),this.message=xb[e]},L.prototype=Error(),L.prototype.constructor=L,[J.F].forEach(function(e){Mb[e]=new L(e),Mb[e].stack=""}))}function rc(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}function sc(e,t,r,i){return e=K("string"==typeof e?e:T(e),t),gc(e,rc(r,i))}function tc(e,t,r,i,n,a){if(e=t?K("string"==typeof e?e:T(e),t):e,i=rc(i,n),n=gc(e,i),r){if("string"==typeof r){e=Array(r.length),t=0;for(var f=r.length;t>2]}function xc(){var e;if(e=X(),!(e=Rb[e]))throw new L(J.ea);return e}function Ga(e){Ga.p||(r=Qa(r),Ga.p=!0,assert(n.R),Ga.bb=n.R,n.R=function(){x("cannot dynamically allocate, sbrk now has control")});var t=r;return 0==e||Ga.bb(e)?t:4294967295}function Cc(e,t){if(Dc=e,Ec=t,!Fc)return 1;if(0==e)Y=function(){setTimeout(Gc,t)},Hc="timeout";else if(1==e)Y=function(){Ic(Gc)},Hc="rAF";else if(2==e){if(!window.setImmediate){var r=[];window.addEventListener("message",function(e){e.source===window&&"__emcc"===e.data&&(e.stopPropagation(),r.shift()())},!0),window.setImmediate=function(e){r.push(e),window.postMessage("__emcc","*")}}Y=function(){window.setImmediate(Gc)},Hc="immediate"}return 0}function Jc(t,r,i,a,f){e.noExitRuntime=!0,assert(!Fc,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Fc=t,Kc=a;var o=Lc;if(Gc=function(){if(!na)if(0>n-6&63,n=n-6,e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[s];2==n?(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&i)<<4],e+="=="):4==n&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&i)<<2],e+="="),c.src="data:audio/x-"+r.substr(-3)+";base64,"+e,a(c)}},c.src=s,ad(function(){a(c)})}});var r=e.canvas;r&&(r.sa=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||function(){},r.Fa=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},r.Fa=r.Fa.bind(document),document.addEventListener("pointerlockchange",t,!1),document.addEventListener("mozpointerlockchange",t,!1),document.addEventListener("webkitpointerlockchange",t,!1),document.addEventListener("mspointerlockchange",t,!1),e.elementPointerLock&&r.addEventListener("click",function(e){!Tc&&r.sa&&(r.sa(),e.preventDefault())},!1))}}function bd(t,r,i,n){if(r&&e.ka&&t==e.canvas)return e.ka;var a,f;if(r){if(f={antialias:!1,alpha:!1},n)for(var o in n)f[o]=n[o];(f=GL.createContext(t,f))&&(a=GL.getContext(f).td),t.style.backgroundColor="black"}else a=t.getContext("2d");return a?(i&&(r||assert("undefined"==typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.ka=a,r&&GL.Od(f),e.Td=r,Uc.forEach(function(e){e()}),Vc()),a):null}function fd(t,r,i){function n(){Sc=!1;var t=a.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t?(a.Da=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},a.Da=a.Da.bind(document),dd&&a.sa(),Sc=!0,ed&&gd()):(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t),ed&&hd()),e.onFullScreen&&e.onFullScreen(Sc),id(a)}dd=t,ed=r,jd=i,void 0===dd&&(dd=!0),void 0===ed&&(ed=!1),void 0===jd&&(jd=null);var a=e.canvas;cd||(cd=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var f=document.createElement("div");a.parentNode.insertBefore(f,a),f.appendChild(a),f.p=f.requestFullScreen||f.mozRequestFullScreen||f.msRequestFullscreen||(f.webkitRequestFullScreen?function(){f.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),i?f.p({Ud:i}):f.p()}function ld(e){var t=Date.now();if(0===kd)kd=t+1e3/60;else for(;t+2>=kd;)kd+=1e3/60;t=Math.max(kd-t,0),setTimeout(e,t)}function Ic(e){"undefined"==typeof window?ld(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||ld),window.requestAnimationFrame(e))}function ad(t){e.noExitRuntime=!0,setTimeout(function(){na||t()},1e4)}function $c(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}function md(e,t,r){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=function(){200==i.status||0==i.status&&i.response?t(i.response):r()},i.onerror=r,i.send(null)}function nd(e,t,r){md(e,function(r){assert(r,'Loading data file "'+e+'" failed (no arrayBuffer).'),t(new Uint8Array(r)),lb()},function(){if(!r)throw'Loading data file "'+e+'" failed.';r()}),kb()}function pd(){var t=e.canvas;od.forEach(function(e){e(t.width,t.height)})}function gd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=8388608|e}pd()}function hd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=-8388609&e}pd()}function id(t,r,i){r&&i?(t.ub=r,t.hb=i):(r=t.ub,i=t.hb);var n=r,a=i;if(e.forcedAspectRatio&&0 0) var gc = undefined");else{if(!ba&&!ca)throw"Unknown runtime environment. Where are we?";e.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},void 0!==arguments&&(e.arguments=arguments),"undefined"!=typeof console?(e.print||(e.print=function(e){console.log(e)}),e.printErr||(e.printErr=function(e){console.log(e)})):e.print||(e.print=function(){}),ca&&(e.load=importScripts),void 0===e.setWindowTitle&&(e.setWindowTitle=function(e){document.title=e})}!e.load&&e.read&&(e.load=function(t){ha(e.read(t))}),e.print||(e.print=function(){}),e.printErr||(e.printErr=e.print),e.arguments||(e.arguments=[]),e.thisProgram||(e.thisProgram="./this.program"),e.print=e.print,e.W=e.printErr,e.preRun=[],e.postRun=[];for(k in aa)aa.hasOwnProperty(k)&&(e[k]=aa[k]);var n={rb:function(e){ka=e},fb:function(){return ka},ua:function(){return m},ba:function(e){m=e},Ka:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return"*"===e[e.length-1]?n.J:"i"===e[0]?(e=parseInt(e.substr(1)),assert(0==e%8),e/8):0}},eb:function(e){return Math.max(n.Ka(e),n.J)},ud:16,Qd:function(e,t){return"double"===t||"i64"===t?7&e&&(assert(4==(7&e)),e+=4):assert(0==(3&e)),e},Ed:function(e,t,r){return r||"i64"!=e&&"double"!=e?e?Math.min(t||(e?n.eb(e):0),n.J):Math.min(t,8):8},L:function(t,r,i){return i&&i.length?(i.splice||(i=Array.prototype.slice.call(i)),i.splice(0,0,r),e["dynCall_"+t].apply(null,i)):e["dynCall_"+t].call(null,r)},Z:[],Xa:function(e){for(var t=0;t=t&&!ma()?(r=i,0):i},ja:function(e,t){return Math.ceil(e/(t||16))*(t||16)},Nd:function(e,t,r){return r?+(e>>>0)+4294967296*+(t>>>0):+(e>>>0)+4294967296*+(0|t)},Ua:8,J:4,vd:0};e.Runtime=n,n.addFunction=n.Xa,n.removeFunction=n.nb;var na=!1,oa,pa,ka,ra,sa;!function(){function a(e){return e=e.toString().match(d).slice(1),{arguments:e[0],body:e[1],returnValue:e[2]}}var b={stackSave:function(){n.ua()},stackRestore:function(){n.ba()},arrayToC:function(e){var t=n.aa(e.length);return ta(e,t),t},stringToC:function(e){var t=0;return null!==e&&void 0!==e&&0!==e&&(t=n.aa(1+(e.length<<2)),ua(e,t)),t}},c={string:b.stringToC,array:b.arrayToC};sa=function(e,t,r,i,a){e=qa(e);var f=[],o=0;if(i)for(var s=0;s>0];if(!r)return t;t+=String.fromCharCode(r)}},e.stringToAscii=function(e,t){return Ia(e,t,!1)},e.UTF8ArrayToString=Ja,e.UTF8ToString=function(e){return Ja(E,e)},e.stringToUTF8Array=Ka,e.stringToUTF8=function(e,t,r){return Ka(e,E,t,r)},e.lengthBytesUTF8=La,e.UTF16ToString=function(e){for(var t=0,r="";;){var i=z[e+2*t>>1];if(0==i)return r;++t,r+=String.fromCharCode(i)}},e.stringToUTF16=function(e,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;r-=2;var i=t;r=r<2*e.length?r/2:e.length;for(var n=0;n>1]=e.charCodeAt(n),t+=2;return z[t>>1]=0,t-i},e.lengthBytesUTF16=function(e){return 2*e.length},e.UTF32ToString=function(e){for(var t=0,r="";;){var i=C[e+4*t>>2];if(0==i)return r;++t,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i)):r+=String.fromCharCode(i)}},e.stringToUTF32=function(e,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var i=t;r=i+r-4;for(var n=0;n=a)var f=e.charCodeAt(++n),a=65536+((1023&a)<<10)|1023&f;if(C[t>>2]=a,(t+=4)+4>r)break}return C[t>>2]=0,t-i},e.lengthBytesUTF32=function(e){for(var t=0,r=0;r=i&&++r,t+=4}return t},e.stackTrace=function(){return Oa()};var y,E,z,Ra,C,Sa,Ba,Ca,Ta=0,la=0,Fa=!1,Ua=0,m=0,Va=0,Wa=0,r=0,Ya;try{(Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get))(new ArrayBuffer(4))}catch(e){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536;FF?2*F:F+16777216;F=Math.max(F,16777216),F!==t&&(t=F),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support");var buffer;buffer=new ArrayBuffer(t),y=new Int8Array(buffer),z=new Int16Array(buffer),C=new Int32Array(buffer),E=new Uint8Array(buffer),Ra=new Uint16Array(buffer),Sa=new Uint32Array(buffer),Ba=new Float32Array(buffer),Ca=new Float64Array(buffer),C[0]=255,assert(255===E[0]&&0===E[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=void 0,e.buffer=buffer,e.HEAP8=y,e.HEAP16=z,e.HEAP32=C,e.HEAPU8=E,e.HEAPU16=Ra,e.HEAPU32=Sa,e.HEAPF32=Ba,e.HEAPF64=Ca;var bb=[],cb=[],db=[],H=[],eb=[],Ha=!1;e.addOnPreRun=fb,e.addOnInit=function(e){cb.unshift(e)},e.addOnPreMain=function(e){db.unshift(e)},e.addOnExit=function(e){H.unshift(e)},e.addOnPostRun=gb,e.intArrayFromString=hb,e.intArrayToString=function(e){for(var t=[],r=0;r>>16)*i+r*(t>>>16)<<16)|0}),Math.Jd=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;32>t;t++)if(e&1<<31-t)return t;return 32}),Math.Ad=Math.clz32;var xa=Math.abs,Aa=Math.ceil,za=Math.floor,ya=Math.min,I=0,ib=null,jb=null;e.addRunDependency=kb,e.removeRunDependency=lb,e.preloadedImages={},e.preloadedAudios={},Ta=8,la=Ta+5888,cb.push(),D([124,0,0,0,98,7,0,0,124,0,0,0,111,7,0,0,164,0,0,0,124,7,0,0,16,0,0,0,0,0,0,0,164,0,0,0,157,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,227,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,191,7,0,0,56,0,0,0,0,0,0,0,164,0,0,0,5,8,0,0,40,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,40,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,88,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,114,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,1,0,0,236,1,0,0,236,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,239,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,4,0,0,0,231,16,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,40,37,117,41,58,32,65,115,115,101,114,116,105,111,110,32,102,97,105,108,117,114,101,58,32,34,37,115,34,10,0,109,95,115,105,122,101,32,60,61,32,109,95,99,97,112,97,99,105,116,121,0,46,47,99,114,110,95,100,101,99,111,109,112,46,104,0,109,105,110,95,110,101,119,95,99,97,112,97,99,105,116,121,32,60,32,40,48,120,55,70,70,70,48,48,48,48,85,32,47,32,101,108,101,109,101,110,116,95,115,105,122,101,41,0,110,101,119,95,99,97,112,97,99,105,116,121,32,38,38,32,40,110,101,119,95,99,97,112,97,99,105,116,121,32,62,32,109,95,99,97,112,97,99,105,116,121,41,0,110,117,109,95,99,111,100,101,115,91,99,93,0,115,111,114,116,101,100,95,112,111,115,32,60,32,116,111,116,97,108,95,117,115,101,100,95,115,121,109,115,0,112,67,111,100,101,115,105,122,101,115,91,115,121,109,95,105,110,100,101,120,93,32,61,61,32,99,111,100,101,115,105,122,101,0,116,32,60,32,40,49,85,32,60,60,32,116,97,98,108,101,95,98,105,116,115,41,0,109,95,108,111,111,107,117,112,91,116,93,32,61,61,32,99,85,73,78,84,51,50,95,77,65,88,0,99,114,110,100,95,109,97,108,108,111,99,58,32,115,105,122,101,32,116,111,111,32,98,105,103,0,99,114,110,100,95,109,97,108,108,111,99,58,32,111,117,116,32,111,102,32,109,101,109,111,114,121,0,40,40,117,105,110,116,51,50,41,112,95,110,101,119,32,38,32,40,67,82,78,68,95,77,73,78,95,65,76,76,79,67,95,65,76,73,71,78,77,69,78,84,32,45,32,49,41,41,32,61,61,32,48,0,99,114,110,100,95,114,101,97,108,108,111,99,58,32,98,97,100,32,112,116,114,0,99,114,110,100,95,102,114,101,101,58,32,98,97,100,32,112,116,114,0,102,97,108,115,101,0,40,116,111,116,97,108,95,115,121,109,115,32,62,61,32,49,41,32,38,38,32,40,116,111,116,97,108,95,115,121,109,115,32,60,61,32,112,114,101,102,105,120,95,99,111,100,105,110,103,58,58,99,77,97,120,83,117,112,112,111,114,116,101,100,83,121,109,115,41,0,17,18,19,20,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,16,48,0,110,117,109,95,98,105,116,115,32,60,61,32,51,50,85,0,109,95,98,105,116,95,99,111,117,110,116,32,60,61,32,99,66,105,116,66,117,102,83,105,122,101,0,116,32,33,61,32,99,85,73,78,84,51,50,95,77,65,88,0,109,111,100,101,108,46,109,95,99,111,100,101,95,115,105,122,101,115,91,115,121,109,93,32,61,61,32,108,101,110,0,0,2,3,1,0,2,3,4,5,6,7,1,40,108,101,110,32,62,61,32,49,41,32,38,38,32,40,108,101,110,32,60,61,32,99,77,97,120,69,120,112,101,99,116,101,100,67,111,100,101,83,105,122,101,41,0,105,32,60,32,109,95,115,105,122,101,0,110,101,120,116,95,108,101,118,101,108,95,111,102,115,32,62,32,99,117,114,95,108,101,118,101,108,95,111,102,115,0,1,2,2,3,3,3,3,4,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,2,1,2,0,0,0,1,0,2,1,0,2,0,0,1,2,3,110,117,109,32,38,38,32,40,110,117,109,32,61,61,32,126,110,117,109,95,99,104,101,99,107,41,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,57,116,121,112,101,95,105,110,102,111,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,116,101,114,109,105,110,97,116,105,110,103,0,117,110,99,97,117,103,104,116,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0],"i8",4,n.Ua);var mb=n.ja(D(12,"i8",2),8);assert(0==mb%8),e._i64Subtract=nb;var J={I:1,F:2,ed:3,bc:4,H:5,Aa:6,vb:7,zc:8,ea:9,Jb:10,va:11,qd:11,Ta:12,da:13,Vb:14,Lc:15,fa:16,wa:17,rd:18,ha:19,ya:20,P:21,q:22,uc:23,Sa:24,Q:25,nd:26,Wb:27,Hc:28,ia:29,bd:30,nc:31,Vc:32,Sb:33,Zc:34,Dc:42,Zb:43,Kb:44,ec:45,fc:46,gc:47,mc:48,od:49,xc:50,dc:51,Pb:35,Ac:37,Bb:52,Eb:53,sd:54,vc:55,Fb:56,Gb:57,Qb:35,Hb:59,Jc:60,yc:61,kd:62,Ic:63,Ec:64,Fc:65,ad:66,Bc:67,yb:68,gd:69,Lb:70,Wc:71,pc:72,Tb:73,Db:74,Qc:76,Cb:77,$c:78,hc:79,ic:80,lc:81,kc:82,jc:83,Kc:38,za:39,qc:36,ga:40,Rc:95,Uc:96,Ob:104,wc:105,zb:97,Yc:91,Oc:88,Gc:92,cd:108,Nb:111,wb:98,Mb:103,tc:101,rc:100,ld:110,Xb:112,Yb:113,ac:115,Ab:114,Rb:89,oc:90,Xc:93,dd:94,xb:99,sc:102,cc:106,Mc:107,md:109,pd:87,Ub:122,hd:116,Pc:95,Cc:123,$b:84,Sc:75,Ib:125,Nc:131,Tc:130,jd:86};e._memset=qb,e._bitshift64Lshr=rb,e._bitshift64Shl=sb;var ub=[],vb={},xb={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"},Eb=[],Hb={open:function(e){var t=Eb[e.g.rdev];if(!t)throw new L(J.ha);e.tty=t,e.seekable=!1},close:function(e){e.tty.N.flush(e.tty)},flush:function(e){e.tty.N.flush(e.tty)},read:function(e,t,r,i){if(!e.tty||!e.tty.N.La)throw new L(J.Aa);for(var n=0,a=0;ae.e.length&&(e.e=M.cb(e),e.o=e.e.length),!e.e||e.e.subarray){var r=e.e?e.e.buffer.byteLength:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)|0),0!=r&&(t=Math.max(t,256)),r=e.e,e.e=new Uint8Array(t),0t)e.e.length=t;else for(;e.e.length=e.g.o)return 0;if(e=Math.min(e.g.o-n,i),assert(0<=e),8t)throw new L(J.q);return t},Ba:function(e,t,r){M.Ga(e.g,t+r),e.g.o=Math.max(e.g.o,t+r)},Na:function(e,t,r,i,n,a,f){if(32768!=(61440&e.g.mode))throw new L(J.ha);if(r=e.g.e,2&f||r.buffer!==t&&r.buffer!==t.buffer){if((0>1)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return t.mode},B:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.A.pa.root),t.reverse(),Cb.apply(null,t)},Ha:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},$a:function(e){if((e&=-32769)in P.Ha)return P.Ha[e];throw new L(J.q)},k:{D:function(e){e=P.B(e);var t;try{t=fs.lstatSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return P.$&&!t.K&&(t.K=4096),P.$&&!t.blocks&&(t.blocks=(t.size+t.K-1)/t.K|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,K:t.K,blocks:t.blocks}},u:function(e,t){var r=P.B(e);try{void 0!==t.mode&&(fs.chmodSync(r,t.mode),e.mode=t.mode),void 0!==t.size&&fs.truncateSync(r,t.size)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},lookup:function(e,t){var r=K(P.B(e),t),r=P.Ja(r);return P.createNode(e,t,r)},T:function(e,t,r,i){e=P.createNode(e,t,r,i),t=P.B(e);try{N(e.mode)?fs.mkdirSync(t,e.mode):fs.writeFileSync(t,"",{mode:e.mode})}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return e},rename:function(e,t,r){e=P.B(e),t=K(P.B(t),r);try{fs.renameSync(e,t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},unlink:function(e,t){var r=K(P.B(e),t);try{fs.unlinkSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},rmdir:function(e,t){var r=K(P.B(e),t);try{fs.rmdirSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readdir:function(e){e=P.B(e);try{return fs.readdirSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},symlink:function(e,t,r){e=K(P.B(e),t);try{fs.symlinkSync(r,e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readlink:function(e){var t=P.B(e);try{return t=fs.readlinkSync(t),t=Ob.relative(Ob.resolve(e.A.pa.root),t) }catch(e){if(!e.code)throw e;throw new L(J[e.code])}}},n:{open:function(e){var t=P.B(e.g);try{32768==(61440&e.g.mode)&&(e.V=fs.openSync(t,P.$a(e.flags)))}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},read:function(e,t,r,i,n){if(0===i)return 0;var a,f=new Buffer(i);try{a=fs.readSync(e.V,f,0,i,n)}catch(e){throw new L(J[e.code])}if(0t)throw new L(J.q);return t}}};D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2);var Pb=null,Qb=[null],Rb=[],Sb=1,Q=null,Tb=!0,R={},L=null,Mb={},$b={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},Kb={open:function(e){e.n=Qb[e.g.rdev].n,e.n.open&&e.n.open(e)},G:function(){throw new L(J.ia)}},qc,vc={},Zb,dc,lc,wc=0,yc={};e._i64Add=zc;var Ac=1;e._memcpy=Bc;var Y=null,Hc="",Lc=0,Fc=null,Kc=0,Dc=0,Ec=0,Pc=0,Mc=[],Rc={},Gc,Nc,Sc=!1,Tc=!1,Uc=[],cd=!1,dd=void 0,ed=void 0,kd=0,od=[],Wc,Xc,Yc,Zc,jd;if(pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),function(){V("/dev"),Gb(259,{read:function(){return 0},write:function(e,t,r,i){return i}}),hc("/dev/null",259),Fb(1280,Ib),Fb(1536,Jb),hc("/dev/tty",1280),hc("/dev/tty1",1536);var e;if("undefined"!=typeof crypto){var t=new Uint8Array(1);e=function(){return crypto.getRandomValues(t),t[0]}}else e=da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0};W("/dev","random",e),W("/dev","urandom",e),V("/dev/shm"),V("/dev/shm/tmp")}(),V("/proc"),V("/proc/self"),V("/proc/self/fd"),ec({A:function(){var e=Lb("/proc/self","fd",16895,73);return e.k={lookup:function(e,t){var r=Rb[+t];if(!r)throw new L(J.ea);var i={parent:null,A:{Oa:"fake"},k:{readlink:function(){return r.path}}};return i.parent=i}},e}},"/proc/self/fd"),cb.unshift(function(){if(!e.noFSInit&&!qc){assert(!qc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),qc=!0,pc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?W("/dev","stdin",e.stdin):ic("/dev/tty","/dev/stdin"),e.stdout?W("/dev","stdout",null,e.stdout):ic("/dev/tty","/dev/stdout"),e.stderr?W("/dev","stderr",null,e.stderr):ic("/dev/tty1","/dev/stderr");var t=kc("/dev/stdin","r");assert(0===t.fd,"invalid handle for stdin ("+t.fd+")"),t=kc("/dev/stdout","w"),assert(1===t.fd,"invalid handle for stdout ("+t.fd+")"),t=kc("/dev/stderr","w"),assert(2===t.fd,"invalid handle for stderr ("+t.fd+")")}}),db.push(function(){Tb=!1}),H.push(function(){qc=!1;var t=e._fflush;for(t&&t(0),t=0;tthis.length-1||0>e)){var t=e%this.chunkSize;return this.gb(e/this.chunkSize|0)[t]}},a.prototype.pb=function(e){this.gb=e},a.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(200<=e.status&&300>e.status||304===e.status))throw Error("Couldn't load "+r+". Status: "+e.status);var t,i=Number(e.getResponseHeader("Content-length")),n=1048576;(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t||(n=i);var a=this;a.pb(function(e){var t=e*n,f=(e+1)*n-1,f=Math.min(f,i-1);if(void 0===a.Y[e]){var o=a.Y;if(t>f)throw Error("invalid range ("+t+", "+f+") or no bytes requested!");if(f>i-1)throw Error("only "+i+" bytes available! programmer error!");var s=new XMLHttpRequest;if(s.open("GET",r,!1),i!==n&&s.setRequestHeader("Range","bytes="+t+"-"+f),"undefined"!=typeof Uint8Array&&(s.responseType="arraybuffer"),s.overrideMimeType&&s.overrideMimeType("text/plain; charset=x-user-defined"),s.send(null),!(200<=s.status&&300>s.status||304===s.status))throw Error("Couldn't load "+r+". Status: "+s.status);t=void 0!==s.response?new Uint8Array(s.response||[]):hb(s.responseText||"",!0),o[e]=t}if(void 0===a.Y[e])throw Error("doXHR failed!");return a.Y[e]}),this.Wa=i,this.Va=n,this.oa=!0},"undefined"!=typeof XMLHttpRequest){if(!ca)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";f=new a,Object.defineProperty(f,"length",{get:function(){return this.oa||this.Ca(),this.Wa}}),Object.defineProperty(f,"chunkSize",{get:function(){return this.oa||this.Ca(),this.Va}}),o=void 0}else o=r,f=void 0;var s=sc(e,t,i,n);f?s.e=f:o&&(s.e=null,s.url=o),Object.defineProperty(s,"usedBytes",{get:function(){return this.e.length}});var c={};return Object.keys(s.n).forEach(function(e){var t=s.n[e];c[e]=function(){if(!uc(s))throw new L(J.H);return t.apply(null,arguments)}}),c.read=function(e,t,r,i,n){if(!uc(s))throw new L(J.H);if(e=e.g.e,n>=e.length)return 0;if(i=Math.min(e.length-n,i),assert(0<=i),e.slice)for(var a=0;a>2]=0;case 21520:return r.tty?-J.q:-J.Q;case 21531:if(n=X(),!r.n.ib)throw new L(J.Q);return r.n.ib(r,i,n);default:x("bad ioctl syscall "+i)}}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall6:function(e,t){wc=t;try{return mc(xc()),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},_emscripten_set_main_loop_timing:Cc,__ZSt18uncaught_exceptionv:tb,___setErrNo:ob,_sbrk:Ga,___cxa_begin_catch:function(e){tb.p--,ub.push(e);var t;e:{if(e&&!vb[e])for(t in vb)if(vb[t].wd===e)break e;t=e}return t&&vb[t].Sd++,e},_emscripten_memcpy_big:function(e,t,r){return E.set(E.subarray(t,t+r),e),e},_sysconf:function(e){switch(e){case 30:return 4096;case 85:return F/4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator?navigator.hardwareConcurrency||1:1}return ob(J.q),-1},_pthread_getspecific:function(e){return yc[e]||0},_pthread_self:function(){return 0},_pthread_once:wb,_pthread_key_create:function(e){return 0==e?J.q:(C[e>>2]=Ac,yc[Ac]=0,Ac++,0)},___unlock:function(){},_emscripten_set_main_loop:Jc,_pthread_setspecific:function(e,t){return e in yc?(yc[e]=t,0):J.q},___lock:function(){},_abort:function(){e.abort()},_pthread_cleanup_push:pb,_time:function(e){var t=Date.now()/1e3|0;return e&&(C[e>>2]=t),t},___syscall140:function(e,t){wc=t;try{var r=xc(),i=X(),n=X(),a=X(),f=X();return assert(0===i),nc(r,n,f),C[a>>2]=r.position,r.na&&0===n&&0===f&&(r.na=null),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall146:function(e,t){wc=t;try{var r,i=xc(),n=X();e:{for(var a=X(),f=0,o=0;o>2],C[n+(8*o+4)>>2],void 0);if(0>s){r=-1;break e}f+=s}r=f}return r}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},STACKTOP:m,STACK_MAX:Va,tempDoublePtr:mb,ABORT:na,cttz_i8:qd};var Z=function(e,t,r){"use asm";var i=e.Int8Array;var n=e.Int16Array;var a=e.Int32Array;var f=e.Uint8Array;var o=e.Uint16Array;var s=e.Uint32Array;var c=e.Float32Array;var u=e.Float64Array;var h=new i(r);var d=new n(r);var l=new a(r);var b=new f(r);var p=new o(r);var m=new s(r);var v=new c(r);var y=new u(r);var g=e.byteLength;var w=t.STACKTOP|0;var _=t.STACK_MAX|0;var k=t.tempDoublePtr|0;var S=t.ABORT|0;var M=t.cttz_i8|0;var E=0;var A=0;var x=0;var I=0;var R=e.NaN,B=e.Infinity;var C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0;var N=0;var z=0;var F=0;var H=0;var K=0;var J=0;var X=0;var Y=0;var V=0;var W=0;var G=e.Math.floor;var Z=e.Math.abs;var Q=e.Math.sqrt;var $=e.Math.pow;var ee=e.Math.cos;var te=e.Math.sin;var re=e.Math.tan;var ie=e.Math.acos;var ne=e.Math.asin;var ae=e.Math.atan;var fe=e.Math.atan2;var oe=e.Math.exp;var se=e.Math.log;var ce=e.Math.ceil;var ue=e.Math.imul;var he=e.Math.min;var de=e.Math.clz32;var le=t.abort;var be=t.assert;var pe=t.invoke_iiii;var me=t.invoke_viiiii;var ve=t.invoke_vi;var ye=t.invoke_ii;var ge=t.invoke_viii;var we=t.invoke_v;var _e=t.invoke_viiiiii;var ke=t.invoke_iiiiii;var Se=t.invoke_viiii;var Me=t._pthread_cleanup_pop;var Ee=t.___syscall54;var Ae=t.___syscall6;var xe=t._emscripten_set_main_loop_timing;var Ie=t.__ZSt18uncaught_exceptionv;var Re=t.___setErrNo;var Be=t._sbrk;var Ce=t.___cxa_begin_catch;var Pe=t._emscripten_memcpy_big;var Le=t._sysconf;var Te=t._pthread_getspecific;var je=t._pthread_self;var De=t._pthread_once;var Ue=t._pthread_key_create;var Oe=t.___unlock;var qe=t._emscripten_set_main_loop;var Ne=t._pthread_setspecific;var ze=t.___lock;var Fe=t._abort;var He=t._pthread_cleanup_push;var Ke=t._time;var Je=t.___syscall140;var Xe=t.___syscall146;var Ye=0;function Ve(e){if(g(e)&16777215||g(e)<=16777215||g(e)>2147483648)return false;h=new i(e);d=new n(e);l=new a(e);b=new f(e);p=new o(e);m=new s(e);v=new c(e);y=new u(e);r=e;return true}function We(e){e=e|0;var t=0;t=w;w=w+e|0;w=w+15&-16;return t|0}function Ge(){return w|0}function Ze(e){e=e|0;w=e}function Qe(e,t){e=e|0;t=t|0;w=e;_=t}function $e(e,t){e=e|0;t=t|0;if(!E){E=e;A=t}}function et(e){e=e|0;h[k>>0]=h[e>>0];h[k+1>>0]=h[e+1>>0];h[k+2>>0]=h[e+2>>0];h[k+3>>0]=h[e+3>>0]}function tt(e){e=e|0;h[k>>0]=h[e>>0];h[k+1>>0]=h[e+1>>0];h[k+2>>0]=h[e+2>>0];h[k+3>>0]=h[e+3>>0];h[k+4>>0]=h[e+4>>0];h[k+5>>0]=h[e+5>>0];h[k+6>>0]=h[e+6>>0];h[k+7>>0]=h[e+7>>0]}function rt(e){e=e|0;N=e}function it(){return N|0}function nt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0,m=0;m=w;w=w+608|0;d=m+88|0;h=m+72|0;s=m+64|0;o=m+48|0;f=m+24|0;a=m;u=m+96|0;b=m+92|0;c=e+4|0;p=e+8|0;if((l[c>>2]|0)>>>0>(l[p>>2]|0)>>>0){l[a>>2]=1154;l[a+4>>2]=2120;l[a+8>>2]=1133;wr(u,1100,a)|0;gr(u,m+16|0)|0}if((2147418112/(i>>>0)|0)>>>0<=t>>>0){l[f>>2]=1154;l[f+4>>2]=2121;l[f+8>>2]=1169;wr(u,1100,f)|0;gr(u,m+40|0)|0}f=l[p>>2]|0;if(f>>>0>=t>>>0){p=1;w=m;return p|0}do{if(r){if(t){a=t+-1|0;if(!(a&t)){a=11;break}else t=a}else t=-1;t=t>>>16|t;t=t>>>8|t;t=t>>>4|t;t=t>>>2|t;t=(t>>>1|t)+1|0;a=10}else a=10}while(0);if((a|0)==10)if(!t){t=0;a=12}else a=11;if((a|0)==11)if(t>>>0<=f>>>0)a=12;if((a|0)==12){l[o>>2]=1154;l[o+4>>2]=2130;l[o+8>>2]=1217;wr(u,1100,o)|0;gr(u,s)|0}r=ue(t,i)|0;do{if(!n){a=at(l[e>>2]|0,r,b,1)|0;if(!a){p=0;w=m;return p|0}else{l[e>>2]=a;break}}else{f=ft(r,b)|0;if(!f){p=0;w=m;return p|0}Bi[n&0](f,l[e>>2]|0,l[c>>2]|0);a=l[e>>2]|0;do{if(a)if(!(a&7)){Li[l[104>>2]&1](a,0,0,1,l[27]|0)|0;break}else{l[h>>2]=1154;l[h+4>>2]=2499;l[h+8>>2]=1516;wr(u,1100,h)|0;gr(u,d)|0;break}}while(0);l[e>>2]=f}}while(0);a=l[b>>2]|0;if(a>>>0>r>>>0)t=(a>>>0)/(i>>>0)|0;l[p>>2]=t;p=1;w=m;return p|0}function at(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,f=0,o=0,s=0,c=0;c=w;w=w+592|0;s=c+48|0;a=c+24|0;n=c;o=c+72|0;f=c+68|0;if(e&7){l[n>>2]=1154;l[n+4>>2]=2499;l[n+8>>2]=1494;wr(o,1100,n)|0;gr(o,c+16|0)|0;s=0;w=c;return s|0}if(t>>>0>2147418112){l[a>>2]=1154;l[a+4>>2]=2499;l[a+8>>2]=1387;wr(o,1100,a)|0;gr(o,c+40|0)|0;s=0;w=c;return s|0}l[f>>2]=t;i=Li[l[104>>2]&1](e,t,f,i,l[27]|0)|0;if(r)l[r>>2]=l[f>>2];if(!(i&7)){s=i;w=c;return s|0}l[s>>2]=1154;l[s+4>>2]=2551;l[s+8>>2]=1440;wr(o,1100,s)|0;gr(o,c+64|0)|0;s=i;w=c;return s|0}function ft(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0;s=w;w=w+592|0;f=s+48|0;o=s+24|0;r=s;a=s+72|0;n=s+68|0;i=e+3&-4;i=(i|0)!=0?i:4;if(i>>>0>2147418112){l[r>>2]=1154;l[r+4>>2]=2499;l[r+8>>2]=1387;wr(a,1100,r)|0;gr(a,s+16|0)|0;o=0;w=s;return o|0}l[n>>2]=i;r=Li[l[104>>2]&1](0,i,n,1,l[27]|0)|0;e=l[n>>2]|0;if(t)l[t>>2]=e;if((r|0)==0|e>>>0>>0){l[o>>2]=1154;l[o+4>>2]=2499;l[o+8>>2]=1413;wr(a,1100,o)|0;gr(a,s+40|0)|0;o=0;w=s;return o|0}if(!(r&7)){o=r;w=s;return o|0}l[f>>2]=1154;l[f+4>>2]=2526;l[f+8>>2]=1440;wr(a,1100,f)|0;gr(a,s+64|0)|0;o=r;w=s;return o|0}function ot(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,f=0,o=0,s=0,c=0,u=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0,N=0,z=0,F=0,H=0,K=0;K=w;w=w+960|0;z=K+232|0;N=K+216|0;q=K+208|0;O=K+192|0;U=K+184|0;D=K+168|0;j=K+160|0;T=K+144|0;C=K+136|0;B=K+120|0;R=K+112|0;I=K+96|0;E=K+88|0;M=K+72|0;S=K+64|0;k=K+48|0;m=K+40|0;y=K+24|0;v=K+16|0;u=K;L=K+440|0;F=K+376|0;H=K+304|0;_=K+236|0;if((t|0)==0|i>>>0>11){e=0;w=K;return e|0}l[e>>2]=t;n=H;a=n+68|0;do{l[n>>2]=0;n=n+4|0}while((n|0)<(a|0));a=0;do{n=h[r+a>>0]|0;if(n<<24>>24){P=H+((n&255)<<2)|0;l[P>>2]=(l[P>>2]|0)+1}a=a+1|0}while((a|0)!=(t|0));a=0;c=1;f=0;o=-1;s=0;while(1){n=l[H+(c<<2)>>2]|0;if(!n)l[e+28+(c+-1<<2)>>2]=0;else{P=c+-1|0;l[F+(P<<2)>>2]=a;a=n+a|0;x=16-c|0;l[e+28+(P<<2)>>2]=(a+-1<>2]=s;l[_+(c<<2)>>2]=s;f=f>>>0>c>>>0?f:c;o=o>>>0>>0?o:c;s=n+s|0}c=c+1|0;if((c|0)==17){P=f;break}else a=a<<1}l[e+4>>2]=s;a=e+172|0;do{if(s>>>0>(l[a>>2]|0)>>>0){l[a>>2]=s;if(s){n=s+-1|0;if(n&s)g=14}else{n=-1;g=14}if((g|0)==14){x=n>>>16|n;x=x>>>8|x;x=x>>>4|x;x=x>>>2|x;x=(x>>>1|x)+1|0;l[a>>2]=x>>>0>t>>>0?t:x}f=e+176|0;n=l[f>>2]|0;do{if(n){x=l[n+-4>>2]|0;n=n+-8|0;if(!((x|0)!=0?(x|0)==(~l[n>>2]|0):0)){l[u>>2]=1154;l[u+4>>2]=644;l[u+8>>2]=1863;wr(L,1100,u)|0;gr(L,v)|0}if(!(n&7)){Li[l[104>>2]&1](n,0,0,1,l[27]|0)|0;break}else{l[y>>2]=1154;l[y+4>>2]=2499;l[y+8>>2]=1516;wr(L,1100,y)|0;gr(L,m)|0;break}}}while(0);a=l[a>>2]|0;a=(a|0)!=0?a:1;n=ft((a<<1)+8|0,0)|0;if(!n){l[f>>2]=0;n=0;break}else{l[n+4>>2]=a;l[n>>2]=~a;l[f>>2]=n+8;g=25;break}}else g=25}while(0);e:do{if((g|0)==25){x=e+24|0;h[x>>0]=o;h[e+25>>0]=P;a=e+176|0;f=0;do{A=h[r+f>>0]|0;n=A&255;if(A<<24>>24){if(!(l[H+(n<<2)>>2]|0)){l[k>>2]=1154;l[k+4>>2]=2273;l[k+8>>2]=1261;wr(L,1100,k)|0;gr(L,S)|0}A=_+(n<<2)|0;n=l[A>>2]|0;l[A>>2]=n+1;if(n>>>0>=s>>>0){l[M>>2]=1154;l[M+4>>2]=2277;l[M+8>>2]=1274;wr(L,1100,M)|0;gr(L,E)|0}d[(l[a>>2]|0)+(n<<1)>>1]=f}f=f+1|0}while((f|0)!=(t|0));n=h[x>>0]|0;E=(n&255)>>>0>>0?i:0;A=e+8|0;l[A>>2]=E;M=(E|0)!=0;if(M){S=1<>>0>(l[n>>2]|0)>>>0){l[n>>2]=S;f=e+168|0;n=l[f>>2]|0;do{if(n){k=l[n+-4>>2]|0;n=n+-8|0;if(!((k|0)!=0?(k|0)==(~l[n>>2]|0):0)){l[I>>2]=1154;l[I+4>>2]=644;l[I+8>>2]=1863;wr(L,1100,I)|0;gr(L,R)|0}if(!(n&7)){Li[l[104>>2]&1](n,0,0,1,l[27]|0)|0;break}else{l[B>>2]=1154;l[B+4>>2]=2499;l[B+8>>2]=1516;wr(L,1100,B)|0;gr(L,C)|0;break}}}while(0);n=S<<2;a=ft(n+8|0,0)|0;if(!a){l[f>>2]=0;n=0;break e}else{C=a+8|0;l[a+4>>2]=S;l[a>>2]=~S;l[f>>2]=C;a=C;break}}else{a=e+168|0;n=S<<2;f=a;a=l[a>>2]|0}}while(0);Vr(a|0,-1,n|0)|0;g=e+176|0;k=1;do{if(l[H+(k<<2)>>2]|0){t=E-k|0;_=1<>2]|0;if(a>>>0>=16){l[T>>2]=1154;l[T+4>>2]=1953;l[T+8>>2]=1737;wr(L,1100,T)|0;gr(L,j)|0}n=l[e+28+(a<<2)>>2]|0;if(!n)y=-1;else y=(n+-1|0)>>>(16-k|0);if(o>>>0<=y>>>0){m=(l[e+96+(a<<2)>>2]|0)-o|0;v=k<<16;do{n=p[(l[g>>2]|0)+(m+o<<1)>>1]|0;if((b[r+n>>0]|0|0)!=(k|0)){l[D>>2]=1154;l[D+4>>2]=2319;l[D+8>>2]=1303;wr(L,1100,D)|0;gr(L,U)|0}u=o<>>0>=S>>>0){l[O>>2]=1154;l[O+4>>2]=2325;l[O+8>>2]=1337;wr(L,1100,O)|0;gr(L,q)|0}n=l[f>>2]|0;if((l[n+(s<<2)>>2]|0)!=-1){l[N>>2]=1154;l[N+4>>2]=2327;l[N+8>>2]=1360;wr(L,1100,N)|0;gr(L,z)|0;n=l[f>>2]|0}l[n+(s<<2)>>2]=a;c=c+1|0}while(c>>>0<_>>>0);o=o+1|0}while(o>>>0<=y>>>0)}}k=k+1|0}while(E>>>0>=k>>>0);n=h[x>>0]|0}a=e+96|0;l[a>>2]=(l[a>>2]|0)-(l[F>>2]|0);a=e+100|0;l[a>>2]=(l[a>>2]|0)-(l[F+4>>2]|0);a=e+104|0;l[a>>2]=(l[a>>2]|0)-(l[F+8>>2]|0);a=e+108|0;l[a>>2]=(l[a>>2]|0)-(l[F+12>>2]|0);a=e+112|0;l[a>>2]=(l[a>>2]|0)-(l[F+16>>2]|0);a=e+116|0;l[a>>2]=(l[a>>2]|0)-(l[F+20>>2]|0);a=e+120|0;l[a>>2]=(l[a>>2]|0)-(l[F+24>>2]|0);a=e+124|0;l[a>>2]=(l[a>>2]|0)-(l[F+28>>2]|0);a=e+128|0;l[a>>2]=(l[a>>2]|0)-(l[F+32>>2]|0);a=e+132|0;l[a>>2]=(l[a>>2]|0)-(l[F+36>>2]|0);a=e+136|0;l[a>>2]=(l[a>>2]|0)-(l[F+40>>2]|0);a=e+140|0;l[a>>2]=(l[a>>2]|0)-(l[F+44>>2]|0);a=e+144|0;l[a>>2]=(l[a>>2]|0)-(l[F+48>>2]|0);a=e+148|0;l[a>>2]=(l[a>>2]|0)-(l[F+52>>2]|0);a=e+152|0;l[a>>2]=(l[a>>2]|0)-(l[F+56>>2]|0);a=e+156|0;l[a>>2]=(l[a>>2]|0)-(l[F+60>>2]|0);a=e+16|0;l[a>>2]=0;f=e+20|0;l[f>>2]=n&255;t:do{if(M){while(1){if(!i)break t;n=i+-1|0;if(!(l[H+(i<<2)>>2]|0))i=n;else break}l[a>>2]=l[e+28+(n<<2)>>2];n=E+1|0;l[f>>2]=n;if(n>>>0<=P>>>0){while(1){if(l[H+(n<<2)>>2]|0)break;n=n+1|0;if(n>>>0>P>>>0)break t}l[f>>2]=n}}}while(0);l[e+92>>2]=-1;l[e+160>>2]=1048575;l[e+12>>2]=32-(l[A>>2]|0);n=1}}while(0);e=n;w=K;return e|0}function st(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0;if(!e){n=Nr(t)|0;if(!r){r=n;return r|0}if(!n)a=0;else a=Hr(n)|0;l[r>>2]=a;r=n;return r|0}if(!t){zr(e);if(!r){r=0;return r|0}l[r>>2]=0;r=0;return r|0}n=Fr(e,t)|0;a=(n|0)!=0;if(a|i^1)a=a?n:e;else{n=Fr(e,t)|0;a=(n|0)==0?e:n}if(!r){r=n;return r|0}t=Hr(a)|0;l[r>>2]=t;r=n;return r|0}function ct(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if(!((e|0)!=0&t>>>0>73&(r|0)!=0)){r=0;return r|0}if((l[r>>2]|0)!=40|t>>>0<74){r=0;return r|0}if(((b[e>>0]|0)<<8|(b[e+1>>0]|0)|0)!=18552){r=0;return r|0}if(((b[e+2>>0]|0)<<8|(b[e+3>>0]|0))>>>0<74){r=0;return r|0}if(((b[e+7>>0]|0)<<16|(b[e+6>>0]|0)<<24|(b[e+8>>0]|0)<<8|(b[e+9>>0]|0))>>>0>t>>>0){r=0;return r|0}l[r+4>>2]=(b[e+12>>0]|0)<<8|(b[e+13>>0]|0);l[r+8>>2]=(b[e+14>>0]|0)<<8|(b[e+15>>0]|0);l[r+12>>2]=b[e+16>>0];l[r+16>>2]=b[e+17>>0];t=e+18|0;i=r+32|0;l[i>>2]=b[t>>0];l[i+4>>2]=0;t=h[t>>0]|0;l[r+20>>2]=t<<24>>24==0|t<<24>>24==9?8:16;l[r+24>>2]=(b[e+26>>0]|0)<<16|(b[e+25>>0]|0)<<24|(b[e+27>>0]|0)<<8|(b[e+28>>0]|0);l[r+28>>2]=(b[e+30>>0]|0)<<16|(b[e+29>>0]|0)<<24|(b[e+31>>0]|0)<<8|(b[e+32>>0]|0);r=1;return r|0}function ut(e){e=e|0;Ce(e|0)|0;zt()}function ht(e){e=e|0;var t=0,r=0,i=0,n=0,a=0;a=w;w=w+544|0;n=a;i=a+24|0;t=l[e+20>>2]|0;if(t)dt(t);t=e+4|0;r=l[t>>2]|0;if(!r){n=e+16|0;h[n>>0]=0;w=a;return}if(!(r&7))Li[l[104>>2]&1](r,0,0,1,l[27]|0)|0;else{l[n>>2]=1154;l[n+4>>2]=2499;l[n+8>>2]=1516;wr(i,1100,n)|0;gr(i,a+16|0)|0}l[t>>2]=0;l[e+8>>2]=0;l[e+12>>2]=0;n=e+16|0;h[n>>0]=0;w=a;return}function dt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0;b=w;w=w+640|0;d=b+112|0;h=b+96|0;u=b+88|0;c=b+72|0;s=b+64|0;o=b+48|0;i=b+40|0;a=b+24|0;n=b+16|0;r=b;f=b+120|0;if(!e){w=b;return}t=l[e+168>>2]|0;do{if(t){p=l[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~l[t>>2]|0):0)){l[r>>2]=1154;l[r+4>>2]=644;l[r+8>>2]=1863;wr(f,1100,r)|0;gr(f,n)|0}if(!(t&7)){Li[l[104>>2]&1](t,0,0,1,l[27]|0)|0;break}else{l[a>>2]=1154;l[a+4>>2]=2499;l[a+8>>2]=1516;wr(f,1100,a)|0;gr(f,i)|0;break}}}while(0);t=l[e+176>>2]|0;do{if(t){p=l[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~l[t>>2]|0):0)){l[o>>2]=1154;l[o+4>>2]=644;l[o+8>>2]=1863;wr(f,1100,o)|0;gr(f,s)|0}if(!(t&7)){Li[l[104>>2]&1](t,0,0,1,l[27]|0)|0;break}else{l[c>>2]=1154;l[c+4>>2]=2499;l[c+8>>2]=1516;wr(f,1100,c)|0;gr(f,u)|0;break}}}while(0);if(!(e&7)){Li[l[104>>2]&1](e,0,0,1,l[27]|0)|0;w=b;return}else{l[h>>2]=1154;l[h+4>>2]=2499;l[h+8>>2]=1516;wr(f,1100,h)|0;gr(f,d)|0;w=b;return}}function lt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0;u=w;w=w+560|0;f=u+40|0;o=u+24|0;t=u;a=u+48|0;n=e+8|0;r=l[n>>2]|0;if((r+-1|0)>>>0>=8192){l[t>>2]=1154;l[t+4>>2]=2997;l[t+8>>2]=1541;wr(a,1100,t)|0;gr(a,u+16|0)|0}l[e>>2]=r;i=e+20|0;t=l[i>>2]|0;if(!t){t=ft(180,0)|0;if(!t)t=0;else{c=t+164|0;l[c>>2]=0;l[c+4>>2]=0;l[c+8>>2]=0;l[c+12>>2]=0}l[i>>2]=t;c=t;s=l[e>>2]|0}else{c=t;s=r}if(!(l[n>>2]|0)){l[o>>2]=1154;l[o+4>>2]=903;l[o+8>>2]=1781;wr(a,1100,o)|0;gr(a,f)|0;a=l[e>>2]|0}else a=s;n=l[e+4>>2]|0;if(a>>>0>16){r=a;t=0}else{e=0;c=ot(c,s,n,e)|0;w=u;return c|0}while(1){i=t+1|0;if(r>>>0>3){r=r>>>1;t=i}else{r=i;break}}e=t+2+((r|0)!=32&1<>>0>>0&1)|0;e=e>>>0<11?e&255:11;c=ot(c,s,n,e)|0;w=u;return c|0}function bt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,d=0,p=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0;q=w;w=w+800|0;T=q+256|0;L=q+240|0;P=q+232|0;C=q+216|0;B=q+208|0;R=q+192|0;I=q+184|0;x=q+168|0;A=q+160|0;E=q+144|0;M=q+136|0;S=q+120|0;k=q+112|0;_=q+96|0;g=q+88|0;y=q+72|0;d=q+64|0;u=q+48|0;o=q+40|0;s=q+24|0;a=q+16|0;n=q;U=q+288|0;O=q+264|0;j=pt(e,14)|0;if(!j){l[t>>2]=0;r=t+4|0;i=l[r>>2]|0;if(i){if(!(i&7))Li[l[104>>2]&1](i,0,0,1,l[27]|0)|0;else{l[n>>2]=1154;l[n+4>>2]=2499;l[n+8>>2]=1516;wr(U,1100,n)|0;gr(U,a)|0}l[r>>2]=0;l[t+8>>2]=0;l[t+12>>2]=0}h[t+16>>0]=0;r=t+20|0;i=l[r>>2]|0;if(!i){t=1;w=q;return t|0}dt(i);l[r>>2]=0;t=1;w=q;return t|0}m=t+4|0;v=t+8|0;r=l[v>>2]|0;if((r|0)!=(j|0)){if(r>>>0<=j>>>0){do{if((l[t+12>>2]|0)>>>0>>0){if(nt(m,j,(r+1|0)==(j|0),1,0)|0){r=l[v>>2]|0;break}h[t+16>>0]=1;t=0;w=q;return t|0}}while(0);Vr((l[m>>2]|0)+r|0,0,j-r|0)|0}l[v>>2]=j}Vr(l[m>>2]|0,0,j|0)|0;p=e+20|0;r=l[p>>2]|0;if((r|0)<5){a=e+4|0;f=e+8|0;n=e+16|0;do{i=l[a>>2]|0;if((i|0)==(l[f>>2]|0))i=0;else{l[a>>2]=i+1;i=b[i>>0]|0}r=r+8|0;l[p>>2]=r;if((r|0)>=33){l[s>>2]=1154;l[s+4>>2]=3199;l[s+8>>2]=1650;wr(U,1100,s)|0;gr(U,o)|0;r=l[p>>2]|0}i=i<<32-r|l[n>>2];l[n>>2]=i}while((r|0)<5)}else{i=e+16|0;n=i;i=l[i>>2]|0}c=i>>>27;l[n>>2]=i<<5;l[p>>2]=r+-5;if((c+-1|0)>>>0>20){t=0;w=q;return t|0}l[O+20>>2]=0;l[O>>2]=0;l[O+4>>2]=0;l[O+8>>2]=0;l[O+12>>2]=0;h[O+16>>0]=0;r=O+4|0;i=O+8|0;e:do{if(nt(r,21,0,1,0)|0){o=l[i>>2]|0;s=l[r>>2]|0;Vr(s+o|0,0,21-o|0)|0;l[i>>2]=21;if(c){n=e+4|0;a=e+8|0;f=e+16|0;o=0;do{r=l[p>>2]|0;if((r|0)<3)do{i=l[n>>2]|0;if((i|0)==(l[a>>2]|0))i=0;else{l[n>>2]=i+1;i=b[i>>0]|0}r=r+8|0;l[p>>2]=r;if((r|0)>=33){l[u>>2]=1154;l[u+4>>2]=3199;l[u+8>>2]=1650;wr(U,1100,u)|0;gr(U,d)|0;r=l[p>>2]|0}i=i<<32-r|l[f>>2];l[f>>2]=i}while((r|0)<3);else i=l[f>>2]|0;l[f>>2]=i<<3;l[p>>2]=r+-3;h[s+(b[1611+o>>0]|0)>>0]=i>>>29;o=o+1|0}while((o|0)!=(c|0))}if(lt(O)|0){o=e+4|0;s=e+8|0;c=e+16|0;i=0;t:while(1){f=j-i|0;r=mt(e,O)|0;r:do{if(r>>>0<17){if((l[v>>2]|0)>>>0<=i>>>0){l[y>>2]=1154;l[y+4>>2]=903;l[y+8>>2]=1781;wr(U,1100,y)|0;gr(U,g)|0}h[(l[m>>2]|0)+i>>0]=r;r=i+1|0}else switch(r|0){case 17:{r=l[p>>2]|0;if((r|0)<3)do{n=l[o>>2]|0;if((n|0)==(l[s>>2]|0))n=0;else{l[o>>2]=n+1;n=b[n>>0]|0}r=r+8|0;l[p>>2]=r;if((r|0)>=33){l[_>>2]=1154;l[_+4>>2]=3199;l[_+8>>2]=1650;wr(U,1100,_)|0;gr(U,k)|0;r=l[p>>2]|0}n=n<<32-r|l[c>>2];l[c>>2]=n}while((r|0)<3);else n=l[c>>2]|0;l[c>>2]=n<<3;l[p>>2]=r+-3;r=(n>>>29)+3|0;if(r>>>0>f>>>0){r=0;break e}r=r+i|0;break r}case 18:{r=l[p>>2]|0;if((r|0)<7)do{n=l[o>>2]|0;if((n|0)==(l[s>>2]|0))n=0;else{l[o>>2]=n+1;n=b[n>>0]|0}r=r+8|0;l[p>>2]=r;if((r|0)>=33){l[S>>2]=1154;l[S+4>>2]=3199;l[S+8>>2]=1650;wr(U,1100,S)|0;gr(U,M)|0;r=l[p>>2]|0}n=n<<32-r|l[c>>2];l[c>>2]=n}while((r|0)<7);else n=l[c>>2]|0;l[c>>2]=n<<7;l[p>>2]=r+-7;r=(n>>>25)+11|0;if(r>>>0>f>>>0){r=0;break e}r=r+i|0;break r}default:{if((r+-19|0)>>>0>=2){D=90;break t}a=l[p>>2]|0;if((r|0)==19){if((a|0)<2){n=a;while(1){r=l[o>>2]|0;if((r|0)==(l[s>>2]|0))a=0;else{l[o>>2]=r+1;a=b[r>>0]|0}r=n+8|0;l[p>>2]=r;if((r|0)>=33){l[E>>2]=1154;l[E+4>>2]=3199;l[E+8>>2]=1650;wr(U,1100,E)|0;gr(U,A)|0;r=l[p>>2]|0}n=a<<32-r|l[c>>2];l[c>>2]=n;if((r|0)<2)n=r;else break}}else{n=l[c>>2]|0;r=a}l[c>>2]=n<<2;l[p>>2]=r+-2;a=(n>>>30)+3|0}else{if((a|0)<6){n=a;while(1){r=l[o>>2]|0;if((r|0)==(l[s>>2]|0))a=0;else{l[o>>2]=r+1;a=b[r>>0]|0}r=n+8|0;l[p>>2]=r;if((r|0)>=33){l[x>>2]=1154;l[x+4>>2]=3199;l[x+8>>2]=1650;wr(U,1100,x)|0;gr(U,I)|0;r=l[p>>2]|0}n=a<<32-r|l[c>>2];l[c>>2]=n;if((r|0)<6)n=r;else break}}else{n=l[c>>2]|0;r=a}l[c>>2]=n<<6;l[p>>2]=r+-6;a=(n>>>26)+7|0}if((i|0)==0|a>>>0>f>>>0){r=0;break e}r=i+-1|0;if((l[v>>2]|0)>>>0<=r>>>0){l[R>>2]=1154;l[R+4>>2]=903;l[R+8>>2]=1781;wr(U,1100,R)|0;gr(U,B)|0}n=h[(l[m>>2]|0)+r>>0]|0;if(!(n<<24>>24)){r=0;break e}r=a+i|0;if(i>>>0>=r>>>0){r=i;break r}do{if((l[v>>2]|0)>>>0<=i>>>0){l[C>>2]=1154;l[C+4>>2]=903;l[C+8>>2]=1781;wr(U,1100,C)|0;gr(U,P)|0}h[(l[m>>2]|0)+i>>0]=n;i=i+1|0}while((i|0)!=(r|0))}}}while(0);if(j>>>0>r>>>0)i=r;else break}if((D|0)==90){l[L>>2]=1154;l[L+4>>2]=3140;l[L+8>>2]=1632;wr(U,1100,L)|0;gr(U,T)|0;r=0;break}if((j|0)==(r|0))r=lt(t)|0;else r=0}else r=0}else{h[O+16>>0]=1;r=0}}while(0);ht(O);t=r;w=q;return t|0}function pt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0;u=w;w=w+544|0;o=u+16|0;f=u;a=u+24|0;if(!t){c=0;w=u;return c|0}if(t>>>0<=16){c=vt(e,t)|0;w=u;return c|0}s=vt(e,t+-16|0)|0;c=e+20|0;t=l[c>>2]|0;if((t|0)<16){i=e+4|0;n=e+8|0;r=e+16|0;do{e=l[i>>2]|0;if((e|0)==(l[n>>2]|0))e=0;else{l[i>>2]=e+1;e=b[e>>0]|0}t=t+8|0;l[c>>2]=t;if((t|0)>=33){l[f>>2]=1154;l[f+4>>2]=3199;l[f+8>>2]=1650;wr(a,1100,f)|0;gr(a,o)|0;t=l[c>>2]|0}e=e<<32-t|l[r>>2];l[r>>2]=e}while((t|0)<16)}else{e=e+16|0;r=e;e=l[e>>2]|0}l[r>>2]=e<<16;l[c>>2]=t+-16;c=e>>>16|s<<16;w=u;return c|0}function mt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0;S=w;w=w+608|0;y=S+88|0;v=S+72|0;d=S+64|0;h=S+48|0;u=S+40|0;m=S+24|0;c=S+16|0;s=S;_=S+96|0;g=l[t+20>>2]|0;k=e+20|0;o=l[k>>2]|0;do{if((o|0)<24){f=e+4|0;i=l[f>>2]|0;n=l[e+8>>2]|0;r=i>>>0>>0;if((o|0)>=16){if(r){l[f>>2]=i+1;r=b[i>>0]|0}else r=0;l[k>>2]=o+8;f=e+16|0;a=r<<24-o|l[f>>2];l[f>>2]=a;break}if(r){a=(b[i>>0]|0)<<8;r=i+1|0}else{a=0;r=i}if(r>>>0>>0){i=b[r>>0]|0;r=r+1|0}else i=0;l[f>>2]=r;l[k>>2]=o+16;f=e+16|0;a=(i|a)<<16-o|l[f>>2];l[f>>2]=a}else{a=e+16|0;f=a;a=l[a>>2]|0}}while(0);n=(a>>>16)+1|0;do{if(n>>>0<=(l[g+16>>2]|0)>>>0){i=l[(l[g+168>>2]|0)+(a>>>(32-(l[g+8>>2]|0)|0)<<2)>>2]|0;if((i|0)==-1){l[s>>2]=1154;l[s+4>>2]=3244;l[s+8>>2]=1677;wr(_,1100,s)|0;gr(_,c)|0}r=i&65535;i=i>>>16;if((l[t+8>>2]|0)>>>0<=r>>>0){l[m>>2]=1154;l[m+4>>2]=902;l[m+8>>2]=1781;wr(_,1100,m)|0;gr(_,u)|0}if((b[(l[t+4>>2]|0)+r>>0]|0|0)!=(i|0)){l[h>>2]=1154;l[h+4>>2]=3248;l[h+8>>2]=1694;wr(_,1100,h)|0;gr(_,d)|0}}else{i=l[g+20>>2]|0;while(1){r=i+-1|0;if(n>>>0>(l[g+28+(r<<2)>>2]|0)>>>0)i=i+1|0;else break}r=(a>>>(32-i|0))+(l[g+96+(r<<2)>>2]|0)|0;if(r>>>0<(l[t>>2]|0)>>>0){r=p[(l[g+176>>2]|0)+(r<<1)>>1]|0;break}l[v>>2]=1154;l[v+4>>2]=3266;l[v+8>>2]=1632;wr(_,1100,v)|0;gr(_,y)|0;k=0;w=S;return k|0}}while(0);l[f>>2]=l[f>>2]<>2]=(l[k>>2]|0)-i;k=r;w=S;return k|0}function vt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0;u=w;w=w+560|0;o=u+40|0;s=u+24|0;r=u;f=u+48|0;if(t>>>0>=33){l[r>>2]=1154;l[r+4>>2]=3190;l[r+8>>2]=1634;wr(f,1100,r)|0;gr(f,u+16|0)|0}c=e+20|0;r=l[c>>2]|0;if((r|0)>=(t|0)){a=e+16|0;f=a;a=l[a>>2]|0;o=r;s=32-t|0;s=a>>>s;a=a<>2]=a;t=o-t|0;l[c>>2]=t;w=u;return s|0}n=e+4|0;a=e+8|0;i=e+16|0;do{e=l[n>>2]|0;if((e|0)==(l[a>>2]|0))e=0;else{l[n>>2]=e+1;e=b[e>>0]|0}r=r+8|0;l[c>>2]=r;if((r|0)>=33){l[s>>2]=1154;l[s+4>>2]=3199;l[s+8>>2]=1650;wr(f,1100,s)|0;gr(f,o)|0;r=l[c>>2]|0}e=e<<32-r|l[i>>2];l[i>>2]=e}while((r|0)<(t|0));s=32-t|0;s=e>>>s;o=e<>2]=o;t=r-t|0;l[c>>2]=t;w=u;return s|0}function yt(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,d=0,p=0,m=0,v=0,y=0,g=0;v=w;w=w+544|0;p=v+16|0;d=v;u=v+24|0;if((e|0)==0|t>>>0<62){m=0;w=v;return m|0}c=ft(300,0)|0;if(!c){m=0;w=v;return m|0}l[c>>2]=519686845;r=c+4|0;l[r>>2]=0;i=c+8|0;l[i>>2]=0;s=c+88|0;n=c+136|0;a=c+160|0;f=s;o=f+44|0;do{l[f>>2]=0;f=f+4|0}while((f|0)<(o|0));h[s+44>>0]=0;y=c+184|0;f=c+208|0;o=c+232|0;g=c+252|0;l[g>>2]=0;l[g+4>>2]=0;l[g+8>>2]=0;h[g+12>>0]=0;g=c+268|0;l[g>>2]=0 ;l[g+4>>2]=0;l[g+8>>2]=0;h[g+12>>0]=0;g=c+284|0;l[g>>2]=0;l[g+4>>2]=0;l[g+8>>2]=0;h[g+12>>0]=0;l[n>>2]=0;l[n+4>>2]=0;l[n+8>>2]=0;l[n+12>>2]=0;l[n+16>>2]=0;h[n+20>>0]=0;l[a>>2]=0;l[a+4>>2]=0;l[a+8>>2]=0;l[a+12>>2]=0;l[a+16>>2]=0;h[a+20>>0]=0;l[y>>2]=0;l[y+4>>2]=0;l[y+8>>2]=0;l[y+12>>2]=0;l[y+16>>2]=0;h[y+20>>0]=0;l[f>>2]=0;l[f+4>>2]=0;l[f+8>>2]=0;l[f+12>>2]=0;l[f+16>>2]=0;h[f+20>>0]=0;l[o>>2]=0;l[o+4>>2]=0;l[o+8>>2]=0;l[o+12>>2]=0;h[o+16>>0]=0;do{if(((t>>>0>=74?((b[e>>0]|0)<<8|(b[e+1>>0]|0)|0)==18552:0)?((b[e+2>>0]|0)<<8|(b[e+3>>0]|0))>>>0>=74:0)?((b[e+7>>0]|0)<<16|(b[e+6>>0]|0)<<24|(b[e+8>>0]|0)<<8|(b[e+9>>0]|0))>>>0<=t>>>0:0){l[s>>2]=e;l[r>>2]=e;l[i>>2]=t;if(xt(c)|0){r=l[s>>2]|0;if((b[r+39>>0]|0)<<8|(b[r+40>>0]|0)){if(!(It(c)|0))break;if(!(Rt(c)|0))break;r=l[s>>2]|0}if(!((b[r+55>>0]|0)<<8|(b[r+56>>0]|0))){g=c;w=v;return g|0}if(Bt(c)|0?Ct(c)|0:0){g=c;w=v;return g|0}}}else m=7}while(0);if((m|0)==7)l[s>>2]=0;Dt(c);if(!(c&7)){Li[l[104>>2]&1](c,0,0,1,l[27]|0)|0;g=0;w=v;return g|0}else{l[d>>2]=1154;l[d+4>>2]=2499;l[d+8>>2]=1516;wr(u,1100,d)|0;gr(u,p)|0;g=0;w=v;return g|0}return 0}function gt(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0,s=0,c=0,u=0;u=w;w=w+544|0;c=u;s=u+24|0;a=l[e+88>>2]|0;o=(b[a+70+(n<<2)+1>>0]|0)<<16|(b[a+70+(n<<2)>>0]|0)<<24|(b[a+70+(n<<2)+2>>0]|0)<<8|(b[a+70+(n<<2)+3>>0]|0);f=n+1|0;if(f>>>0<(b[a+16>>0]|0)>>>0)a=(b[a+70+(f<<2)+1>>0]|0)<<16|(b[a+70+(f<<2)>>0]|0)<<24|(b[a+70+(f<<2)+2>>0]|0)<<8|(b[a+70+(f<<2)+3>>0]|0);else a=l[e+8>>2]|0;if(a>>>0>o>>>0){s=e+4|0;s=l[s>>2]|0;s=s+o|0;c=a-o|0;c=wt(e,s,c,t,r,i,n)|0;w=u;return c|0}l[c>>2]=1154;l[c+4>>2]=3704;l[c+8>>2]=1792;wr(s,1100,c)|0;gr(s,u+16|0)|0;s=e+4|0;s=l[s>>2]|0;s=s+o|0;c=a-o|0;c=wt(e,s,c,t,r,i,n)|0;w=u;return c|0}function wt(e,t,r,i,n,a,f){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;f=f|0;var o=0,s=0,c=0,u=0;u=l[e+88>>2]|0;s=((b[u+12>>0]|0)<<8|(b[u+13>>0]|0))>>>f;c=((b[u+14>>0]|0)<<8|(b[u+15>>0]|0))>>>f;s=s>>>0>1?(s+3|0)>>>2:1;c=c>>>0>1?(c+3|0)>>>2:1;u=u+18|0;f=h[u>>0]|0;f=ue(f<<24>>24==0|f<<24>>24==9?8:16,s)|0;if(a)if((a&3|0)==0&f>>>0<=a>>>0)f=a;else{e=0;return e|0}if((ue(f,c)|0)>>>0>n>>>0){e=0;return e|0}a=(s+1|0)>>>1;o=(c+1|0)>>>1;if(!r){e=0;return e|0}l[e+92>>2]=t;l[e+96>>2]=t;l[e+104>>2]=r;l[e+100>>2]=t+r;l[e+108>>2]=0;l[e+112>>2]=0;switch(b[u>>0]|0|0){case 0:{Pt(e,i,n,f,s,c,a,o)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{Lt(e,i,n,f,s,c,a,o)|0;e=1;return e|0}case 9:{Tt(e,i,n,f,s,c,a,o)|0;e=1;return e|0}case 8:case 7:{jt(e,i,n,f,s,c,a,o)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function _t(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+4>>2]|0}function kt(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+8>>2]|0}function St(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+12>>2]|0}function Mt(e,t){e=e|0;t=t|0;var r=0,i=0;i=w;w=w+48|0;r=i;l[r>>2]=40;ct(e,t,r)|0;w=i;return l[r+32>>2]|0}function Et(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0,o=0,s=0,c=0;s=w;w=w+576|0;f=s+56|0;a=s+40|0;n=s+64|0;c=s;l[c>>2]=40;ct(e,t,c)|0;i=(((l[c+4>>2]|0)>>>r)+3|0)>>>2;t=(((l[c+8>>2]|0)>>>r)+3|0)>>>2;r=c+32|0;e=l[r+4>>2]|0;do{switch(l[r>>2]|0){case 0:{if(!e)e=8;else o=13;break}case 1:{if(!e)o=12;else o=13;break}case 2:{if(!e)o=12;else o=13;break}case 3:{if(!e)o=12;else o=13;break}case 4:{if(!e)o=12;else o=13;break}case 5:{if(!e)o=12;else o=13;break}case 6:{if(!e)o=12;else o=13;break}case 7:{if(!e)o=12;else o=13;break}case 8:{if(!e)o=12;else o=13;break}case 9:{if(!e)e=8;else o=13;break}default:o=13}}while(0);if((o|0)==12)e=16;else if((o|0)==13){l[a>>2]=1154;l[a+4>>2]=2663;l[a+8>>2]=1535;wr(n,1100,a)|0;gr(n,f)|0;e=0}c=ue(ue(t,i)|0,e)|0;w=s;return c|0}function At(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0,m=0;p=w;w=w+608|0;d=p+80|0;b=p+64|0;o=p+56|0;f=p+40|0;u=p+88|0;m=p;h=p+84|0;l[m>>2]=40;ct(e,t,m)|0;s=(((l[m+4>>2]|0)>>>n)+3|0)>>>2;m=m+32|0;a=l[m+4>>2]|0;do{switch(l[m>>2]|0){case 0:{if(!a)a=8;else c=13;break}case 1:{if(!a)c=12;else c=13;break}case 2:{if(!a)c=12;else c=13;break}case 3:{if(!a)c=12;else c=13;break}case 4:{if(!a)c=12;else c=13;break}case 5:{if(!a)c=12;else c=13;break}case 6:{if(!a)c=12;else c=13;break}case 7:{if(!a)c=12;else c=13;break}case 8:{if(!a)c=12;else c=13;break}case 9:{if(!a)a=8;else c=13;break}default:c=13}}while(0);if((c|0)==12)a=16;else if((c|0)==13){l[f>>2]=1154;l[f+4>>2]=2663;l[f+8>>2]=1535;wr(u,1100,f)|0;gr(u,o)|0;a=0}o=ue(a,s)|0;f=yt(e,t)|0;l[h>>2]=r;a=(f|0)==0;if(!(n>>>0>15|(i>>>0<8|a))?(l[f>>2]|0)==519686845:0)gt(f,h,i,o,n)|0;if(a){w=p;return}if((l[f>>2]|0)!=519686845){w=p;return}Dt(f);if(!(f&7)){Li[l[104>>2]&1](f,0,0,1,l[27]|0)|0;w=p;return}else{l[b>>2]=1154;l[b+4>>2]=2499;l[b+8>>2]=1516;wr(u,1100,b)|0;gr(u,d)|0;w=p;return}}function xt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0;f=e+92|0;i=l[e+4>>2]|0;a=e+88|0;n=l[a>>2]|0;t=(b[n+68>>0]|0)<<8|(b[n+67>>0]|0)<<16|(b[n+69>>0]|0);r=i+t|0;n=(b[n+65>>0]|0)<<8|(b[n+66>>0]|0);if(!n){e=0;return e|0}l[f>>2]=r;l[e+96>>2]=r;l[e+104>>2]=n;l[e+100>>2]=i+(n+t);l[e+108>>2]=0;l[e+112>>2]=0;if(!(bt(f,e+116|0)|0)){e=0;return e|0}t=l[a>>2]|0;do{if(!((b[t+39>>0]|0)<<8|(b[t+40>>0]|0))){if(!((b[t+55>>0]|0)<<8|(b[t+56>>0]|0))){e=0;return e|0}}else{if(!(bt(f,e+140|0)|0)){e=0;return e|0}if(bt(f,e+188|0)|0){t=l[a>>2]|0;break}else{e=0;return e|0}}}while(0);if((b[t+55>>0]|0)<<8|(b[t+56>>0]|0)){if(!(bt(f,e+164|0)|0)){e=0;return e|0}if(!(bt(f,e+212|0)|0)){e=0;return e|0}}e=1;return e|0}function It(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,d=0,p=0,m=0,v=0;v=w;w=w+592|0;s=v+16|0;o=v;f=v+72|0;m=v+24|0;i=e+88|0;t=l[i>>2]|0;p=(b[t+39>>0]|0)<<8|(b[t+40>>0]|0);u=e+236|0;a=e+240|0;r=l[a>>2]|0;if((r|0)!=(p|0)){if(r>>>0<=p>>>0){do{if((l[e+244>>2]|0)>>>0

>>0){if(nt(u,p,(r+1|0)==(p|0),4,0)|0){t=l[a>>2]|0;break}h[e+248>>0]=1;m=0;w=v;return m|0}else t=r}while(0);Vr((l[u>>2]|0)+(t<<2)|0,0,p-t<<2|0)|0;t=l[i>>2]|0}l[a>>2]=p}c=e+92|0;r=l[e+4>>2]|0;i=(b[t+34>>0]|0)<<8|(b[t+33>>0]|0)<<16|(b[t+35>>0]|0);n=r+i|0;t=(b[t+37>>0]|0)<<8|(b[t+36>>0]|0)<<16|(b[t+38>>0]|0);if(!t){m=0;w=v;return m|0}l[c>>2]=n;l[e+96>>2]=n;l[e+104>>2]=t;l[e+100>>2]=r+(t+i);l[e+108>>2]=0;l[e+112>>2]=0;l[m+20>>2]=0;l[m>>2]=0;l[m+4>>2]=0;l[m+8>>2]=0;l[m+12>>2]=0;h[m+16>>0]=0;e=m+24|0;l[m+44>>2]=0;l[e>>2]=0;l[e+4>>2]=0;l[e+8>>2]=0;l[e+12>>2]=0;h[e+16>>0]=0;if(bt(c,m)|0?(d=m+24|0,bt(c,d)|0):0){if(!(l[a>>2]|0)){l[o>>2]=1154;l[o+4>>2]=903;l[o+8>>2]=1781;wr(f,1100,o)|0;gr(f,s)|0}if(!p)t=1;else{i=0;n=0;a=0;t=0;f=0;e=0;o=0;r=l[u>>2]|0;while(1){i=(mt(c,m)|0)+i&31;n=(mt(c,d)|0)+n&63;a=(mt(c,m)|0)+a&31;t=(mt(c,m)|0)+t|0;f=(mt(c,d)|0)+f&63;e=(mt(c,m)|0)+e&31;l[r>>2]=n<<5|i<<11|a|t<<27|f<<21|e<<16;o=o+1|0;if((o|0)==(p|0)){t=1;break}else{t=t&31;r=r+4|0}}}}else t=0;ht(m+24|0);ht(m);m=t;w=v;return m|0}function Rt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,d=0,p=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0;R=w;w=w+1024|0;o=R+16|0;f=R;a=R+504|0;I=R+480|0;A=R+284|0;x=R+88|0;E=R+24|0;n=l[e+88>>2]|0;M=(b[n+47>>0]|0)<<8|(b[n+48>>0]|0);S=e+92|0;t=l[e+4>>2]|0;r=(b[n+42>>0]|0)<<8|(b[n+41>>0]|0)<<16|(b[n+43>>0]|0);i=t+r|0;n=(b[n+45>>0]|0)<<8|(b[n+44>>0]|0)<<16|(b[n+46>>0]|0);if(!n){I=0;w=R;return I|0}l[S>>2]=i;l[e+96>>2]=i;l[e+104>>2]=n;l[e+100>>2]=t+(n+r);l[e+108>>2]=0;l[e+112>>2]=0;l[I+20>>2]=0;l[I>>2]=0;l[I+4>>2]=0;l[I+8>>2]=0;l[I+12>>2]=0;h[I+16>>0]=0;if(bt(S,I)|0){r=0;i=-3;n=-3;while(1){l[A+(r<<2)>>2]=i;l[x+(r<<2)>>2]=n;t=(i|0)>2;r=r+1|0;if((r|0)==49)break;else{i=t?-3:i+1|0;n=(t&1)+n|0}}t=E;r=t+64|0;do{l[t>>2]=0;t=t+4|0}while((t|0)<(r|0));k=e+252|0;r=e+256|0;t=l[r>>2]|0;e:do{if((t|0)==(M|0))s=13;else{if(t>>>0<=M>>>0){do{if((l[e+260>>2]|0)>>>0>>0)if(nt(k,M,(t+1|0)==(M|0),4,0)|0){t=l[r>>2]|0;break}else{h[e+264>>0]=1;t=0;break e}}while(0);Vr((l[k>>2]|0)+(t<<2)|0,0,M-t<<2|0)|0}l[r>>2]=M;s=13}}while(0);do{if((s|0)==13){if(!M){l[f>>2]=1154;l[f+4>>2]=903;l[f+8>>2]=1781;wr(a,1100,f)|0;gr(a,o)|0;t=1;break}i=E+4|0;n=E+8|0;e=E+12|0;a=E+16|0;f=E+20|0;o=E+24|0;s=E+28|0;c=E+32|0;u=E+36|0;d=E+40|0;p=E+44|0;m=E+48|0;v=E+52|0;y=E+56|0;g=E+60|0;_=0;r=l[k>>2]|0;while(1){t=0;do{B=mt(S,I)|0;k=t<<1;C=E+(k<<2)|0;l[C>>2]=(l[C>>2]|0)+(l[A+(B<<2)>>2]|0)&3;k=E+((k|1)<<2)|0;l[k>>2]=(l[k>>2]|0)+(l[x+(B<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);l[r>>2]=(b[1725+(l[i>>2]|0)>>0]|0)<<2|(b[1725+(l[E>>2]|0)>>0]|0)|(b[1725+(l[n>>2]|0)>>0]|0)<<4|(b[1725+(l[e>>2]|0)>>0]|0)<<6|(b[1725+(l[a>>2]|0)>>0]|0)<<8|(b[1725+(l[f>>2]|0)>>0]|0)<<10|(b[1725+(l[o>>2]|0)>>0]|0)<<12|(b[1725+(l[s>>2]|0)>>0]|0)<<14|(b[1725+(l[c>>2]|0)>>0]|0)<<16|(b[1725+(l[u>>2]|0)>>0]|0)<<18|(b[1725+(l[d>>2]|0)>>0]|0)<<20|(b[1725+(l[p>>2]|0)>>0]|0)<<22|(b[1725+(l[m>>2]|0)>>0]|0)<<24|(b[1725+(l[v>>2]|0)>>0]|0)<<26|(b[1725+(l[y>>2]|0)>>0]|0)<<28|(b[1725+(l[g>>2]|0)>>0]|0)<<30;_=_+1|0;if((_|0)==(M|0)){t=1;break}else r=r+4|0}}}while(0)}else t=0;ht(I);C=t;w=R;return C|0}function Bt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,p=0,m=0;m=w;w=w+560|0;s=m+16|0;o=m;f=m+48|0;p=m+24|0;n=l[e+88>>2]|0;u=(b[n+55>>0]|0)<<8|(b[n+56>>0]|0);c=e+92|0;t=l[e+4>>2]|0;r=(b[n+50>>0]|0)<<8|(b[n+49>>0]|0)<<16|(b[n+51>>0]|0);i=t+r|0;n=(b[n+53>>0]|0)<<8|(b[n+52>>0]|0)<<16|(b[n+54>>0]|0);if(!n){p=0;w=m;return p|0}l[c>>2]=i;l[e+96>>2]=i;l[e+104>>2]=n;l[e+100>>2]=t+(n+r);l[e+108>>2]=0;l[e+112>>2]=0;l[p+20>>2]=0;l[p>>2]=0;l[p+4>>2]=0;l[p+8>>2]=0;l[p+12>>2]=0;h[p+16>>0]=0;e:do{if(bt(c,p)|0){a=e+268|0;r=e+272|0;t=l[r>>2]|0;if((t|0)!=(u|0)){if(t>>>0<=u>>>0){do{if((l[e+276>>2]|0)>>>0>>0)if(nt(a,u,(t+1|0)==(u|0),2,0)|0){t=l[r>>2]|0;break}else{h[e+280>>0]=1;t=0;break e}}while(0);Vr((l[a>>2]|0)+(t<<1)|0,0,u-t<<1|0)|0}l[r>>2]=u}if(!u){l[o>>2]=1154;l[o+4>>2]=903;l[o+8>>2]=1781;wr(f,1100,o)|0;gr(f,s)|0;t=1;break}r=0;i=0;n=0;t=l[a>>2]|0;while(1){s=mt(c,p)|0;r=s+r&255;i=(mt(c,p)|0)+i&255;d[t>>1]=i<<8|r;n=n+1|0;if((n|0)==(u|0)){t=1;break}else t=t+2|0}}else t=0}while(0);ht(p);p=t;w=m;return p|0}function Ct(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,p=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0;B=w;w=w+2432|0;o=B+16|0;f=B;a=B+1912|0;R=B+1888|0;x=B+988|0;I=B+88|0;A=B+24|0;n=l[e+88>>2]|0;E=(b[n+63>>0]|0)<<8|(b[n+64>>0]|0);M=e+92|0;t=l[e+4>>2]|0;r=(b[n+58>>0]|0)<<8|(b[n+57>>0]|0)<<16|(b[n+59>>0]|0);i=t+r|0;n=(b[n+61>>0]|0)<<8|(b[n+60>>0]|0)<<16|(b[n+62>>0]|0);if(!n){R=0;w=B;return R|0}l[M>>2]=i;l[e+96>>2]=i;l[e+104>>2]=n;l[e+100>>2]=t+(n+r);l[e+108>>2]=0;l[e+112>>2]=0;l[R+20>>2]=0;l[R>>2]=0;l[R+4>>2]=0;l[R+8>>2]=0;l[R+12>>2]=0;h[R+16>>0]=0;if(bt(M,R)|0){r=0;i=-7;n=-7;while(1){l[x+(r<<2)>>2]=i;l[I+(r<<2)>>2]=n;t=(i|0)>6;r=r+1|0;if((r|0)==225)break;else{i=t?-7:i+1|0;n=(t&1)+n|0}}t=A;r=t+64|0;do{l[t>>2]=0;t=t+4|0}while((t|0)<(r|0));S=e+284|0;r=E*3|0;i=e+288|0;t=l[i>>2]|0;e:do{if((t|0)==(r|0))s=13;else{if(t>>>0<=r>>>0){do{if((l[e+292>>2]|0)>>>0>>0)if(nt(S,r,(t+1|0)==(r|0),2,0)|0){t=l[i>>2]|0;break}else{h[e+296>>0]=1;t=0;break e}}while(0);Vr((l[S>>2]|0)+(t<<1)|0,0,r-t<<1|0)|0}l[i>>2]=r;s=13}}while(0);do{if((s|0)==13){if(!E){l[f>>2]=1154;l[f+4>>2]=903;l[f+8>>2]=1781;wr(a,1100,f)|0;gr(a,o)|0;t=1;break}i=A+4|0;n=A+8|0;e=A+12|0;a=A+16|0;f=A+20|0;o=A+24|0;s=A+28|0;c=A+32|0;u=A+36|0;p=A+40|0;m=A+44|0;v=A+48|0;y=A+52|0;g=A+56|0;_=A+60|0;k=0;r=l[S>>2]|0;while(1){t=0;do{C=mt(M,R)|0;S=t<<1;P=A+(S<<2)|0;l[P>>2]=(l[P>>2]|0)+(l[x+(C<<2)>>2]|0)&7;S=A+((S|1)<<2)|0;l[S>>2]=(l[S>>2]|0)+(l[I+(C<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);C=b[1729+(l[f>>2]|0)>>0]|0;d[r>>1]=(b[1729+(l[i>>2]|0)>>0]|0)<<3|(b[1729+(l[A>>2]|0)>>0]|0)|(b[1729+(l[n>>2]|0)>>0]|0)<<6|(b[1729+(l[e>>2]|0)>>0]|0)<<9|(b[1729+(l[a>>2]|0)>>0]|0)<<12|C<<15;P=b[1729+(l[p>>2]|0)>>0]|0;d[r+2>>1]=(b[1729+(l[o>>2]|0)>>0]|0)<<2|C>>>1|(b[1729+(l[s>>2]|0)>>0]|0)<<5|(b[1729+(l[c>>2]|0)>>0]|0)<<8|(b[1729+(l[u>>2]|0)>>0]|0)<<11|P<<14;d[r+4>>1]=(b[1729+(l[m>>2]|0)>>0]|0)<<1|P>>>2|(b[1729+(l[v>>2]|0)>>0]|0)<<4|(b[1729+(l[y>>2]|0)>>0]|0)<<7|(b[1729+(l[g>>2]|0)>>0]|0)<<10|(b[1729+(l[_>>2]|0)>>0]|0)<<13;k=k+1|0;if((k|0)==(E|0)){t=1;break}else r=r+6|0}}}while(0)}else t=0;ht(R);P=t;w=B;return P|0}function Pt(e,t,r,i,n,a,f,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;f=f|0;o=o|0;var s=0,c=0,u=0,d=0,p=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0,N=0,z=0,F=0,H=0,K=0,J=0,X=0,Y=0,V=0,W=0,G=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,fe=0,oe=0,se=0,ce=0,he=0,de=0,le=0,be=0,pe=0,me=0,ve=0;pe=w;w=w+720|0;be=pe+184|0;de=pe+168|0;he=pe+160|0;ce=pe+144|0;se=pe+136|0;oe=pe+120|0;fe=pe+112|0;ne=pe+96|0;ie=pe+88|0;re=pe+72|0;te=pe+64|0;ee=pe+48|0;$=pe+40|0;le=pe+24|0;ae=pe+16|0;Q=pe;G=pe+208|0;Z=pe+192|0;H=e+240|0;K=l[H>>2]|0;Y=e+256|0;V=l[Y>>2]|0;r=h[(l[e+88>>2]|0)+17>>0]|0;W=i>>>2;if(!(r<<24>>24)){w=pe;return 1}J=(o|0)==0;X=o+-1|0;D=(a&1|0)!=0;U=i<<1;O=e+92|0;q=e+116|0;N=e+140|0;z=e+236|0;F=f+-1|0;j=(n&1|0)!=0;T=e+188|0;R=e+252|0;B=W+1|0;C=W+2|0;P=W+3|0;L=F<<4;x=r&255;r=0;a=0;n=1;I=0;do{if(!J){E=l[t+(I<<2)>>2]|0;A=0;while(1){k=A&1;s=(k|0)==0;_=(k<<5^32)+-16|0;k=(k<<1^2)+-1|0;M=s?f:-1;c=s?0:F;e=(A|0)==(X|0);S=D&e;if((c|0)!=(M|0)){g=D&e^1;y=s?E:E+L|0;while(1){if((n|0)==1)n=mt(O,q)|0|512;v=n&7;n=n>>>3;s=b[1823+v>>0]|0;e=0;do{p=(mt(O,N)|0)+a|0;m=p-K|0;a=m>>31;a=a&p|m&~a;if((l[H>>2]|0)>>>0<=a>>>0){l[Q>>2]=1154;l[Q+4>>2]=903;l[Q+8>>2]=1781;wr(G,1100,Q)|0;gr(G,ae)|0}l[Z+(e<<2)>>2]=l[(l[z>>2]|0)+(a<<2)>>2];e=e+1|0}while(e>>>0>>0);m=j&(c|0)==(F|0);if(S|m){p=0;do{u=ue(p,i)|0;e=y+u|0;s=(p|0)==0|g;d=p<<1;ve=(mt(O,T)|0)+r|0;me=ve-V|0;r=me>>31;r=r&ve|me&~r;do{if(m){if(!s){me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r;break}l[e>>2]=l[Z+((b[1831+(v<<2)+d>>0]|0)<<2)>>2];if((l[Y>>2]|0)>>>0<=r>>>0){l[ce>>2]=1154;l[ce+4>>2]=903;l[ce+8>>2]=1781;wr(G,1100,ce)|0;gr(G,he)|0}l[y+(u+4)>>2]=l[(l[R>>2]|0)+(r<<2)>>2];me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r}else{if(!s){me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r;break}l[e>>2]=l[Z+((b[1831+(v<<2)+d>>0]|0)<<2)>>2];if((l[Y>>2]|0)>>>0<=r>>>0){l[oe>>2]=1154;l[oe+4>>2]=903;l[oe+8>>2]=1781;wr(G,1100,oe)|0;gr(G,se)|0}l[y+(u+4)>>2]=l[(l[R>>2]|0)+(r<<2)>>2];me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r;l[y+(u+8)>>2]=l[Z+((b[(d|1)+(1831+(v<<2))>>0]|0)<<2)>>2];if((l[Y>>2]|0)>>>0<=r>>>0){l[de>>2]=1154;l[de+4>>2]=903;l[de+8>>2]=1781;wr(G,1100,de)|0;gr(G,be)|0}l[y+(u+12)>>2]=l[(l[R>>2]|0)+(r<<2)>>2]}}while(0);p=p+1|0}while((p|0)!=2)}else{l[y>>2]=l[Z+((b[1831+(v<<2)>>0]|0)<<2)>>2];me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r;if((l[Y>>2]|0)>>>0<=r>>>0){l[le>>2]=1154;l[le+4>>2]=903;l[le+8>>2]=1781;wr(G,1100,le)|0;gr(G,$)|0}l[y+4>>2]=l[(l[R>>2]|0)+(r<<2)>>2];l[y+8>>2]=l[Z+((b[1831+(v<<2)+1>>0]|0)<<2)>>2];me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r;if((l[Y>>2]|0)>>>0<=r>>>0){l[ee>>2]=1154;l[ee+4>>2]=903;l[ee+8>>2]=1781;wr(G,1100,ee)|0;gr(G,te)|0}l[y+12>>2]=l[(l[R>>2]|0)+(r<<2)>>2];l[y+(W<<2)>>2]=l[Z+((b[1831+(v<<2)+2>>0]|0)<<2)>>2];me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r;if((l[Y>>2]|0)>>>0<=r>>>0){l[re>>2]=1154;l[re+4>>2]=903;l[re+8>>2]=1781;wr(G,1100,re)|0;gr(G,ie)|0}l[y+(B<<2)>>2]=l[(l[R>>2]|0)+(r<<2)>>2];l[y+(C<<2)>>2]=l[Z+((b[1831+(v<<2)+3>>0]|0)<<2)>>2];me=(mt(O,T)|0)+r|0;ve=me-V|0;r=ve>>31;r=r&me|ve&~r;if((l[Y>>2]|0)>>>0<=r>>>0){l[ne>>2]=1154;l[ne+4>>2]=903;l[ne+8>>2]=1781;wr(G,1100,ne)|0;gr(G,fe)|0}l[y+(P<<2)>>2]=l[(l[R>>2]|0)+(r<<2)>>2]}c=c+k|0;if((c|0)==(M|0))break;else y=y+_|0}}A=A+1|0;if((A|0)==(o|0))break;else E=E+U|0}}I=I+1|0}while((I|0)!=(x|0));w=pe;return 1}function Lt(e,t,r,i,n,a,f,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;f=f|0;o=o|0;var s=0,c=0,u=0,d=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0,N=0,z=0,F=0,H=0,K=0,J=0,X=0,Y=0,V=0,W=0,G=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,fe=0,oe=0,se=0,ce=0,ue=0,he=0,de=0,le=0,be=0,pe=0,me=0,ve=0;me=w;w=w+640|0;le=me+88|0;de=me+72|0;he=me+64|0;ue=me+48|0;ce=me+40|0;pe=me+24|0;be=me+16|0;se=me;fe=me+128|0;oe=me+112|0;ae=me+96|0;K=e+240|0;J=l[K>>2]|0;V=e+256|0;re=l[V>>2]|0;ie=e+272|0;ne=l[ie>>2]|0;r=l[e+88>>2]|0;X=(b[r+63>>0]|0)<<8|(b[r+64>>0]|0);r=h[r+17>>0]|0;if(!(r<<24>>24)){w=me;return 1}Y=(o|0)==0;W=o+-1|0;G=i<<1;Z=e+92|0;Q=e+116|0;$=f+-1|0;ee=e+212|0;te=e+188|0;H=(n&1|0)==0;F=(a&1|0)==0;D=e+288|0;U=e+284|0;O=e+252|0;q=e+140|0;N=e+236|0;z=e+164|0;T=e+268|0;j=$<<5;P=r&255;r=0;n=0;a=0;e=0;s=1;L=0;do{if(!Y){B=l[t+(L<<2)>>2]|0;C=0;while(1){I=C&1;c=(I|0)==0;x=(I<<6^64)+-32|0;I=(I<<1^2)+-1|0;R=c?f:-1;u=c?0:$;if((u|0)!=(R|0)){A=F|(C|0)!=(W|0);E=c?B:B+j|0;while(1){if((s|0)==1)s=mt(Z,Q)|0|512;M=s&7;s=s>>>3;d=b[1823+M>>0]|0;c=0;do{k=(mt(Z,z)|0)+n|0;S=k-ne|0;n=S>>31;n=n&k|S&~n;if((l[ie>>2]|0)>>>0<=n>>>0){l[se>>2]=1154;l[se+4>>2]=903;l[se+8>>2]=1781;wr(fe,1100,se)|0;gr(fe,be)|0}l[ae+(c<<2)>>2]=p[(l[T>>2]|0)+(n<<1)>>1];c=c+1|0}while(c>>>0>>0);c=0;do{k=(mt(Z,q)|0)+e|0;S=k-J|0;e=S>>31;e=e&k|S&~e;if((l[K>>2]|0)>>>0<=e>>>0){l[pe>>2]=1154;l[pe+4>>2]=903;l[pe+8>>2]=1781;wr(fe,1100,pe)|0;gr(fe,ce)|0}l[oe+(c<<2)>>2]=l[(l[N>>2]|0)+(e<<2)>>2];c=c+1|0}while(c>>>0>>0);S=H|(u|0)!=($|0);_=0;k=E;while(1){g=A|(_|0)==0;y=_<<1;m=0;v=k;while(1){d=(mt(Z,ee)|0)+r|0;c=d-X|0;r=c>>31;r=r&d|c&~r;c=(mt(Z,te)|0)+a|0;d=c-re|0;a=d>>31;a=a&c|d&~a;if((S|(m|0)==0)&g){c=b[m+y+(1831+(M<<2))>>0]|0;d=r*3|0;if((l[D>>2]|0)>>>0<=d>>>0){l[ue>>2]=1154;l[ue+4>>2]=903;l[ue+8>>2]=1781;wr(fe,1100,ue)|0;gr(fe,he)|0}ve=l[U>>2]|0;l[v>>2]=(p[ve+(d<<1)>>1]|0)<<16|l[ae+(c<<2)>>2];l[v+4>>2]=(p[ve+(d+2<<1)>>1]|0)<<16|(p[ve+(d+1<<1)>>1]|0);l[v+8>>2]=l[oe+(c<<2)>>2];if((l[V>>2]|0)>>>0<=a>>>0){l[de>>2]=1154;l[de+4>>2]=903;l[de+8>>2]=1781;wr(fe,1100,de)|0;gr(fe,le)|0}l[v+12>>2]=l[(l[O>>2]|0)+(a<<2)>>2]}m=m+1|0;if((m|0)==2)break;else v=v+16|0}_=_+1|0;if((_|0)==2)break;else k=k+i|0}u=u+I|0;if((u|0)==(R|0))break;else E=E+x|0}}C=C+1|0;if((C|0)==(o|0))break;else B=B+G|0}}L=L+1|0}while((L|0)!=(P|0));w=me;return 1}function Tt(e,t,r,i,n,a,f,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;f=f|0;o=o|0;var s=0,c=0,u=0,d=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0,N=0,z=0,F=0,H=0,K=0,J=0,X=0,Y=0,V=0,W=0,G=0,Z=0,Q=0,$=0,ee=0,te=0,re=0;re=w;w=w+608|0;$=re+64|0;Q=re+48|0;Z=re+40|0;te=re+24|0;ee=re+16|0;G=re;W=re+88|0;V=re+72|0;O=e+272|0;q=l[O>>2]|0;r=l[e+88>>2]|0;N=(b[r+63>>0]|0)<<8|(b[r+64>>0]|0);r=h[r+17>>0]|0;if(!(r<<24>>24)){w=re;return 1}z=(o|0)==0;F=o+-1|0;H=i<<1;K=e+92|0;J=e+116|0;X=f+-1|0;Y=e+212|0;U=(a&1|0)==0;T=e+288|0;j=e+284|0;D=e+164|0;P=e+268|0;L=X<<4;C=r&255;B=(n&1|0)!=0;r=0;a=0;e=1;R=0;do{if(!z){x=l[t+(R<<2)>>2]|0;I=0;while(1){E=I&1;n=(E|0)==0;M=(E<<5^32)+-16|0;E=(E<<1^2)+-1|0;A=n?f:-1;s=n?0:X;if((s|0)!=(A|0)){S=U|(I|0)!=(F|0);k=n?x:x+L|0;while(1){if((e|0)==1)e=mt(K,J)|0|512;_=e&7;e=e>>>3;c=b[1823+_>>0]|0;n=0;do{y=(mt(K,D)|0)+a|0;g=y-q|0;a=g>>31;a=a&y|g&~a;if((l[O>>2]|0)>>>0<=a>>>0){l[G>>2]=1154;l[G+4>>2]=903;l[G+8>>2]=1781;wr(W,1100,G)|0;gr(W,ee)|0}l[V+(n<<2)>>2]=p[(l[P>>2]|0)+(a<<1)>>1];n=n+1|0}while(n>>>0>>0);g=(s|0)==(X|0)&B;v=0;y=k;while(1){m=S|(v|0)==0;d=v<<1;n=(mt(K,Y)|0)+r|0;u=n-N|0;c=u>>31;c=c&n|u&~c;if(m){r=b[1831+(_<<2)+d>>0]|0;n=c*3|0;if((l[T>>2]|0)>>>0<=n>>>0){l[te>>2]=1154;l[te+4>>2]=903;l[te+8>>2]=1781;wr(W,1100,te)|0;gr(W,Z)|0}u=l[j>>2]|0;l[y>>2]=(p[u+(n<<1)>>1]|0)<<16|l[V+(r<<2)>>2];l[y+4>>2]=(p[u+(n+2<<1)>>1]|0)<<16|(p[u+(n+1<<1)>>1]|0)}u=y+8|0;n=(mt(K,Y)|0)+c|0;c=n-N|0;r=c>>31;r=r&n|c&~r;if(!(g|m^1)){n=b[(d|1)+(1831+(_<<2))>>0]|0;c=r*3|0;if((l[T>>2]|0)>>>0<=c>>>0){l[Q>>2]=1154;l[Q+4>>2]=903;l[Q+8>>2]=1781;wr(W,1100,Q)|0;gr(W,$)|0}m=l[j>>2]|0;l[u>>2]=(p[m+(c<<1)>>1]|0)<<16|l[V+(n<<2)>>2];l[y+12>>2]=(p[m+(c+2<<1)>>1]|0)<<16|(p[m+(c+1<<1)>>1]|0)}v=v+1|0;if((v|0)==2)break;else y=y+i|0}s=s+E|0;if((s|0)==(A|0))break;else k=k+M|0}}I=I+1|0;if((I|0)==(o|0))break;else x=x+H|0}}R=R+1|0}while((R|0)!=(C|0));w=re;return 1}function jt(e,t,r,i,n,a,f,o){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;f=f|0;o=o|0;var s=0,c=0,u=0,d=0,m=0,v=0,y=0,g=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0,N=0,z=0,F=0,H=0,K=0,J=0,X=0,Y=0,V=0,W=0,G=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,fe=0,oe=0,se=0,ce=0,ue=0,he=0;he=w;w=w+640|0;se=he+88|0;oe=he+72|0;fe=he+64|0;ae=he+48|0;ne=he+40|0;ue=he+24|0;ce=he+16|0;ie=he;re=he+128|0;ee=he+112|0;te=he+96|0;K=e+272|0;J=l[K>>2]|0;r=l[e+88>>2]|0;X=(b[r+63>>0]|0)<<8|(b[r+64>>0]|0);r=h[r+17>>0]|0;if(!(r<<24>>24)){w=he;return 1}Y=(o|0)==0;V=o+-1|0;W=i<<1;G=e+92|0;Z=e+116|0;Q=f+-1|0;$=e+212|0;H=(n&1|0)==0;F=(a&1|0)==0;q=e+288|0;N=e+284|0;z=e+164|0;U=e+268|0;O=Q<<5;j=r&255;r=0;n=0;a=0;e=0;s=1;D=0;do{if(!Y){L=l[t+(D<<2)>>2]|0;T=0;while(1){C=T&1;c=(C|0)==0;B=(C<<6^64)+-32|0;C=(C<<1^2)+-1|0;P=c?f:-1;u=c?0:Q;if((u|0)!=(P|0)){R=F|(T|0)!=(V|0);I=c?L:L+O|0;while(1){if((s|0)==1)s=mt(G,Z)|0|512;x=s&7;s=s>>>3;d=b[1823+x>>0]|0;c=0;do{E=(mt(G,z)|0)+e|0;A=E-J|0;e=A>>31;e=e&E|A&~e;if((l[K>>2]|0)>>>0<=e>>>0){l[ie>>2]=1154;l[ie+4>>2]=903;l[ie+8>>2]=1781;wr(re,1100,ie)|0;gr(re,ce)|0}l[ee+(c<<2)>>2]=p[(l[U>>2]|0)+(e<<1)>>1];c=c+1|0}while(c>>>0>>0);c=0;do{E=(mt(G,z)|0)+n|0;A=E-J|0;n=A>>31;n=n&E|A&~n;if((l[K>>2]|0)>>>0<=n>>>0){l[ue>>2]=1154;l[ue+4>>2]=903;l[ue+8>>2]=1781;wr(re,1100,ue)|0;gr(re,ne)|0}l[te+(c<<2)>>2]=p[(l[U>>2]|0)+(n<<1)>>1];c=c+1|0}while(c>>>0>>0);A=H|(u|0)!=(Q|0);M=0;E=I;while(1){S=R|(M|0)==0;k=M<<1;g=0;_=E;while(1){y=(mt(G,$)|0)+a|0;v=y-X|0;a=v>>31;a=a&y|v&~a;v=(mt(G,$)|0)+r|0;y=v-X|0;r=y>>31;r=r&v|y&~r;if((A|(g|0)==0)&S){v=b[g+k+(1831+(x<<2))>>0]|0;y=a*3|0;c=l[q>>2]|0;if(c>>>0<=y>>>0){l[ae>>2]=1154;l[ae+4>>2]=903;l[ae+8>>2]=1781;wr(re,1100,ae)|0;gr(re,fe)|0;c=l[q>>2]|0}d=l[N>>2]|0;m=r*3|0;if(c>>>0>m>>>0)c=d;else{l[oe>>2]=1154;l[oe+4>>2]=903;l[oe+8>>2]=1781;wr(re,1100,oe)|0;gr(re,se)|0;c=l[N>>2]|0}l[_>>2]=(p[d+(y<<1)>>1]|0)<<16|l[ee+(v<<2)>>2];l[_+4>>2]=(p[d+(y+2<<1)>>1]|0)<<16|(p[d+(y+1<<1)>>1]|0);l[_+8>>2]=(p[c+(m<<1)>>1]|0)<<16|l[te+(v<<2)>>2];l[_+12>>2]=(p[c+(m+2<<1)>>1]|0)<<16|(p[c+(m+1<<1)>>1]|0)}g=g+1|0;if((g|0)==2)break;else _=_+16|0}M=M+1|0;if((M|0)==2)break;else E=E+i|0}u=u+C|0;if((u|0)==(P|0))break;else I=I+B|0}}T=T+1|0;if((T|0)==(o|0))break;else L=L+W|0}}D=D+1|0}while((D|0)!=(j|0));w=he;return 1}function Dt(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,d=0,b=0;b=w;w=w+608|0;d=b+88|0;u=b+72|0;s=b+64|0;o=b+48|0;a=b+40|0;f=b+24|0;n=b+16|0;i=b;c=b+96|0;l[e>>2]=0;t=e+284|0;r=l[t>>2]|0;if(r){if(!(r&7))Li[l[104>>2]&1](r,0,0,1,l[27]|0)|0;else{l[i>>2]=1154;l[i+4>>2]=2499;l[i+8>>2]=1516;wr(c,1100,i)|0;gr(c,n)|0}l[t>>2]=0;l[e+288>>2]=0;l[e+292>>2]=0}h[e+296>>0]=0;t=e+268|0;r=l[t>>2]|0;if(r){if(!(r&7))Li[l[104>>2]&1](r,0,0,1,l[27]|0)|0;else{l[f>>2]=1154;l[f+4>>2]=2499;l[f+8>>2]=1516;wr(c,1100,f)|0;gr(c,a)|0}l[t>>2]=0;l[e+272>>2]=0;l[e+276>>2]=0}h[e+280>>0]=0;t=e+252|0;r=l[t>>2]|0;if(r){if(!(r&7))Li[l[104>>2]&1](r,0,0,1,l[27]|0)|0;else{l[o>>2]=1154;l[o+4>>2]=2499;l[o+8>>2]=1516;wr(c,1100,o)|0;gr(c,s)|0}l[t>>2]=0;l[e+256>>2]=0;l[e+260>>2]=0}h[e+264>>0]=0;t=e+236|0;r=l[t>>2]|0;if(!r){d=e+248|0;h[d>>0]=0;d=e+212|0;ht(d);d=e+188|0;ht(d);d=e+164|0;ht(d);d=e+140|0;ht(d);d=e+116|0;ht(d);w=b;return}if(!(r&7))Li[l[104>>2]&1](r,0,0,1,l[27]|0)|0;else{l[u>>2]=1154;l[u+4>>2]=2499;l[u+8>>2]=1516;wr(c,1100,u)|0;gr(c,d)|0}l[t>>2]=0;l[e+240>>2]=0;l[e+244>>2]=0;d=e+248|0;h[d>>0]=0;d=e+212|0;ht(d);d=e+188|0;ht(d);d=e+164|0;ht(d);d=e+140|0;ht(d);d=e+116|0;ht(d);w=b;return}function Ut(e,t){e=e|0;t=t|0;var r=0;r=w;w=w+16|0;l[r>>2]=t;t=l[63]|0;_r(t,e,r)|0;vr(10,t)|0;Fe()}function Ot(){var e=0,t=0;e=w;w=w+16|0;if(!(De(200,2)|0)){t=Te(l[49]|0)|0;w=e;return t|0}else Ut(2090,e);return 0}function qt(e){e=e|0;zr(e);return}function Nt(e){e=e|0;var t=0;t=w;w=w+16|0;Ci[e&3]();Ut(2139,t)}function zt(){var e=0,t=0;e=Ot()|0;if(((e|0)!=0?(t=l[e>>2]|0,(t|0)!=0):0)?(e=t+48|0,(l[e>>2]&-256|0)==1126902528?(l[e+4>>2]|0)==1129074247:0):0)Nt(l[t+12>>2]|0);t=l[28]|0;l[28]=t+0;Nt(t)}function Ft(e){e=e|0;return}function Ht(e){e=e|0;return}function Kt(e){e=e|0;return}function Jt(e){e=e|0;return}function Xt(e){e=e|0;qt(e);return}function Yt(e){e=e|0;qt(e);return}function Vt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0;f=w;w=w+64|0;a=f;if((e|0)!=(t|0))if((t|0)!=0?(n=Qt(t,24,40,0)|0,(n|0)!=0):0){t=a;i=t+56|0;do{l[t>>2]=0;t=t+4|0}while((t|0)<(i|0));l[a>>2]=n;l[a+8>>2]=e;l[a+12>>2]=-1;l[a+48>>2]=1;Ti[l[(l[n>>2]|0)+28>>2]&3](n,a,l[r>>2]|0,1);if((l[a+24>>2]|0)==1){l[r>>2]=l[a+16>>2];t=1}else t=0}else t=0;else t=1;w=f;return t|0}function Wt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0;e=t+16|0;n=l[e>>2]|0;do{if(n){if((n|0)!=(r|0)){i=t+36|0;l[i>>2]=(l[i>>2]|0)+1;l[t+24>>2]=2;h[t+54>>0]=1;break}e=t+24|0;if((l[e>>2]|0)==2)l[e>>2]=i}else{l[e>>2]=r;l[t+24>>2]=i;l[t+36>>2]=1}}while(0);return}function Gt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(l[t+8>>2]|0))Wt(0,t,r,i);return}function Zt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if((e|0)==(l[t+8>>2]|0))Wt(0,t,r,i);else{e=l[e+8>>2]|0;Ti[l[(l[e>>2]|0)+28>>2]&3](e,t,r,i)}return}function Qt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,f=0,o=0,s=0,c=0,u=0,b=0,p=0,m=0;m=w;w=w+64|0;p=m;b=l[e>>2]|0;u=e+(l[b+-8>>2]|0)|0;b=l[b+-4>>2]|0;l[p>>2]=r;l[p+4>>2]=e;l[p+8>>2]=t;l[p+12>>2]=i;i=p+16|0;e=p+20|0;t=p+24|0;n=p+28|0;a=p+32|0;f=p+40|0;o=(b|0)==(r|0);s=i;c=s+36|0;do{l[s>>2]=0;s=s+4|0}while((s|0)<(c|0));d[i+36>>1]=0;h[i+38>>0]=0;e:do{if(o){l[p+48>>2]=1;Pi[l[(l[r>>2]|0)+20>>2]&3](r,p,u,u,1,0);i=(l[t>>2]|0)==1?u:0}else{xi[l[(l[b>>2]|0)+24>>2]&3](b,p,u,1,0);switch(l[p+36>>2]|0){case 0:{i=(l[f>>2]|0)==1&(l[n>>2]|0)==1&(l[a>>2]|0)==1?l[e>>2]|0:0;break e}case 1:break;default:{i=0;break e}}if((l[t>>2]|0)!=1?!((l[f>>2]|0)==0&(l[n>>2]|0)==1&(l[a>>2]|0)==1):0){i=0;break}i=l[i>>2]|0}}while(0);w=m;return i|0}function $t(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;h[t+53>>0]=1;do{if((l[t+4>>2]|0)==(i|0)){h[t+52>>0]=1;i=t+16|0;e=l[i>>2]|0;if(!e){l[i>>2]=r;l[t+24>>2]=n;l[t+36>>2]=1;if(!((n|0)==1?(l[t+48>>2]|0)==1:0))break;h[t+54>>0]=1;break}if((e|0)!=(r|0)){n=t+36|0;l[n>>2]=(l[n>>2]|0)+1;h[t+54>>0]=1;break}e=t+24|0;i=l[e>>2]|0;if((i|0)==2){l[e>>2]=n;i=n}if((i|0)==1?(l[t+48>>2]|0)==1:0)h[t+54>>0]=1}}while(0);return}function er(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0,s=0;e:do{if((e|0)==(l[t+8>>2]|0)){if((l[t+4>>2]|0)==(r|0)?(a=t+28|0,(l[a>>2]|0)!=1):0)l[a>>2]=i}else{if((e|0)!=(l[t>>2]|0)){o=l[e+8>>2]|0;xi[l[(l[o>>2]|0)+24>>2]&3](o,t,r,i,n);break}if((l[t+16>>2]|0)!=(r|0)?(f=t+20|0,(l[f>>2]|0)!=(r|0)):0){l[t+32>>2]=i;i=t+44|0;if((l[i>>2]|0)==4)break;a=t+52|0;h[a>>0]=0;s=t+53|0;h[s>>0]=0;e=l[e+8>>2]|0;Pi[l[(l[e>>2]|0)+20>>2]&3](e,t,r,r,1,n);if(h[s>>0]|0){if(!(h[a>>0]|0)){a=1;o=13}}else{a=0;o=13}do{if((o|0)==13){l[f>>2]=r;s=t+40|0;l[s>>2]=(l[s>>2]|0)+1;if((l[t+36>>2]|0)==1?(l[t+24>>2]|0)==2:0){h[t+54>>0]=1;if(a)break}else o=16;if((o|0)==16?a:0)break;l[i>>2]=4;break e}}while(0);l[i>>2]=3;break}if((i|0)==1)l[t+32>>2]=1}}while(0);return}function tr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0;do{if((e|0)==(l[t+8>>2]|0)){if((l[t+4>>2]|0)==(r|0)?(f=t+28|0,(l[f>>2]|0)!=1):0)l[f>>2]=i}else if((e|0)==(l[t>>2]|0)){if((l[t+16>>2]|0)!=(r|0)?(a=t+20|0,(l[a>>2]|0)!=(r|0)):0){l[t+32>>2]=i;l[a>>2]=r;n=t+40|0;l[n>>2]=(l[n>>2]|0)+1;if((l[t+36>>2]|0)==1?(l[t+24>>2]|0)==2:0)h[t+54>>0]=1;l[t+44>>2]=4;break}if((i|0)==1)l[t+32>>2]=1}}while(0);return}function rr(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;if((e|0)==(l[t+8>>2]|0))$t(0,t,r,i,n);else{e=l[e+8>>2]|0;Pi[l[(l[e>>2]|0)+20>>2]&3](e,t,r,i,n,a)}return}function ir(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;if((e|0)==(l[t+8>>2]|0))$t(0,t,r,i,n);return}function nr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=w;w=w+16|0;i=n;l[i>>2]=l[r>>2];e=Ai[l[(l[e>>2]|0)+16>>2]&7](e,t,i)|0;if(e)l[r>>2]=l[i>>2];w=n;return e&1|0}function ar(e){e=e|0;if(!e)e=0;else e=(Qt(e,24,72,0)|0)!=0;return e&1|0}function fr(){var e=0,t=0,r=0,i=0,n=0,a=0,f=0,o=0;n=w;w=w+48|0;f=n+32|0;r=n+24|0;o=n+16|0;a=n;n=n+36|0;e=Ot()|0;if((e|0)!=0?(i=l[e>>2]|0,(i|0)!=0):0){e=i+48|0;t=l[e>>2]|0;e=l[e+4>>2]|0;if(!((t&-256|0)==1126902528&(e|0)==1129074247)){l[r>>2]=l[51];Ut(2368,r)}if((t|0)==1126902529&(e|0)==1129074247)e=l[i+44>>2]|0;else e=i+80|0;l[n>>2]=e;i=l[i>>2]|0;e=l[i+4>>2]|0;if(Ai[l[(l[8>>2]|0)+16>>2]&7](8,i,n)|0){o=l[n>>2]|0;n=l[51]|0;o=Ri[l[(l[o>>2]|0)+8>>2]&1](o)|0;l[a>>2]=n;l[a+4>>2]=e;l[a+8>>2]=o;Ut(2282,a)}else{l[o>>2]=l[51];l[o+4>>2]=e;Ut(2327,o)}}Ut(2406,f)}function or(){var e=0;e=w;w=w+16|0;if(!(Ue(196,6)|0)){w=e;return}else Ut(2179,e)}function sr(e){e=e|0;var t=0;t=w;w=w+16|0;zr(e);if(!(Ne(l[49]|0,0)|0)){w=t;return}else Ut(2229,t)}function cr(e){e=e|0;var t=0,r=0;t=0;while(1){if((b[2427+t>>0]|0)==(e|0)){r=2;break}t=t+1|0;if((t|0)==87){t=87;e=2515;r=5;break}}if((r|0)==2)if(!t)e=2515;else{e=2515;r=5}if((r|0)==5)while(1){r=e;while(1){e=r+1|0;if(!(h[r>>0]|0))break;else r=e}t=t+-1|0;if(!t)break;else r=5}return e|0}function ur(){var e=0;if(!(l[52]|0))e=264;else{e=(je()|0)+60|0;e=l[e>>2]|0}return e|0}function hr(e){e=e|0;var t=0;if(e>>>0>4294963200){t=ur()|0;l[t>>2]=0-e;e=-1}return e|0}function dr(e,t){e=+e;t=t|0;var r=0,i=0,n=0;y[k>>3]=e;r=l[k>>2]|0;i=l[k+4>>2]|0;n=Wr(r|0,i|0,52)|0;n=n&2047;switch(n|0){case 0:{if(e!=0){e=+dr(e*0x10000000000000000,t);r=(l[t>>2]|0)+-64|0}else r=0;l[t>>2]=r;break}case 2047:break;default:{l[t>>2]=n+-1022;l[k>>2]=r;l[k+4>>2]=i&-2146435073|1071644672;e=+y[k>>3]}}return+e}function lr(e,t){e=+e;t=t|0;return+ +dr(e,t)}function br(e,t,r){e=e|0;t=t|0;r=r|0;do{if(e){if(t>>>0<128){h[e>>0]=t;e=1;break}if(t>>>0<2048){h[e>>0]=t>>>6|192;h[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){h[e>>0]=t>>>12|224;h[e+1>>0]=t>>>6&63|128;h[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){h[e>>0]=t>>>18|240;h[e+1>>0]=t>>>12&63|128;h[e+2>>0]=t>>>6&63|128;h[e+3>>0]=t&63|128;e=4;break}else{e=ur()|0;l[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function pr(e,t){e=e|0;t=t|0;if(!e)e=0;else e=br(e,t,0)|0;return e|0}function mr(e){e=e|0;var t=0,r=0;do{if(e){if((l[e+76>>2]|0)<=-1){t=Lr(e)|0;break}r=(Mr(e)|0)==0;t=Lr(e)|0;if(!r)Er(e)}else{if(!(l[65]|0))t=0;else t=mr(l[65]|0)|0;ze(236);e=l[58]|0;if(e)do{if((l[e+76>>2]|0)>-1)r=Mr(e)|0;else r=0;if((l[e+20>>2]|0)>>>0>(l[e+28>>2]|0)>>>0)t=Lr(e)|0|t;if(r)Er(e);e=l[e+56>>2]|0}while((e|0)!=0);Oe(236)}}while(0);return t|0}function vr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0;if((l[t+76>>2]|0)>=0?(Mr(t)|0)!=0:0){if((h[t+75>>0]|0)!=(e|0)?(i=t+20|0,n=l[i>>2]|0,n>>>0<(l[t+16>>2]|0)>>>0):0){l[i>>2]=n+1;h[n>>0]=e;r=e&255}else r=Ar(t,e)|0;Er(t)}else f=3;do{if((f|0)==3){if((h[t+75>>0]|0)!=(e|0)?(a=t+20|0,r=l[a>>2]|0,r>>>0<(l[t+16>>2]|0)>>>0):0){l[a>>2]=r+1;h[r>>0]=e;r=e&255;break}r=Ar(t,e)|0}}while(0);return r|0}function yr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0;i=r+16|0;n=l[i>>2]|0;if(!n)if(!(Cr(r)|0)){n=l[i>>2]|0;a=4}else i=0;else a=4;e:do{if((a|0)==4){f=r+20|0;a=l[f>>2]|0;if((n-a|0)>>>0>>0){i=Ai[l[r+36>>2]&7](r,e,t)|0;break}t:do{if((h[r+75>>0]|0)>-1){i=t;while(1){if(!i){n=a;i=0;break t}n=i+-1|0;if((h[e+n>>0]|0)==10)break;else i=n}if((Ai[l[r+36>>2]&7](r,e,i)|0)>>>0>>0)break e;t=t-i|0;e=e+i|0;n=l[f>>2]|0}else{n=a;i=0}}while(0);Qr(n|0,e|0,t|0)|0;l[f>>2]=(l[f>>2]|0)+t;i=i+t|0}}while(0);return i|0}function gr(e,t){e=e|0;t=t|0;var r=0,i=0;r=w;w=w+16|0;i=r;l[i>>2]=t;t=_r(l[64]|0,e,i)|0;w=r;return t|0}function wr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=w;w=w+16|0;n=i;l[n>>2]=r;r=Sr(e,t,n)|0;w=i;return r|0}function _r(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,d=0,b=0,p=0,m=0,v=0;v=w;w=w+224|0;d=v+120|0;m=v+80|0;p=v;b=v+136|0;i=m;n=i+40|0;do{l[i>>2]=0;i=i+4|0}while((i|0)<(n|0));l[d>>2]=l[r>>2];if((Tr(0,t,d,p,m)|0)<0)r=-1;else{if((l[e+76>>2]|0)>-1)c=Mr(e)|0;else c=0;r=l[e>>2]|0;u=r&32;if((h[e+74>>0]|0)<1)l[e>>2]=r&-33;r=e+48|0;if(!(l[r>>2]|0)){n=e+44|0;a=l[n>>2]|0;l[n>>2]=b;f=e+28|0;l[f>>2]=b;o=e+20|0;l[o>>2]=b;l[r>>2]=80;s=e+16|0;l[s>>2]=b+80;i=Tr(e,t,d,p,m)|0;if(a){Ai[l[e+36>>2]&7](e,0,0)|0;i=(l[o>>2]|0)==0?-1:i;l[n>>2]=a;l[r>>2]=0;l[s>>2]=0;l[f>>2]=0;l[o>>2]=0}}else i=Tr(e,t,d,p,m)|0;r=l[e>>2]|0;l[e>>2]=r|u;if(c)Er(e);r=(r&32|0)==0?i:-1}w=v;return r|0}function kr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,f=0,o=0,s=0,c=0,u=0;u=w;w=w+128|0;n=u+112|0;c=u;a=c;f=268;o=a+112|0;do{l[a>>2]=l[f>>2];a=a+4|0;f=f+4|0}while((a|0)<(o|0));if((t+-1|0)>>>0>2147483646)if(!t){t=1;s=4}else{t=ur()|0;l[t>>2]=75;t=-1}else{n=e;s=4}if((s|0)==4){s=-2-n|0;s=t>>>0>s>>>0?s:t;l[c+48>>2]=s;e=c+20|0;l[e>>2]=n;l[c+44>>2]=n;t=n+s|0;n=c+16|0;l[n>>2]=t;l[c+28>>2]=t;t=_r(c,r,i)|0;if(s){r=l[e>>2]|0;h[r+(((r|0)==(l[n>>2]|0))<<31>>31)>>0]=0}}w=u;return t|0}function Sr(e,t,r){e=e|0;t=t|0;r=r|0;return kr(e,2147483647,t,r)|0}function Mr(e){e=e|0;return 0}function Er(e){ e=e|0;return}function Ar(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0;s=w;w=w+16|0;o=s;f=t&255;h[o>>0]=f;i=e+16|0;n=l[i>>2]|0;if(!n)if(!(Cr(e)|0)){n=l[i>>2]|0;a=4}else r=-1;else a=4;do{if((a|0)==4){i=e+20|0;a=l[i>>2]|0;if(a>>>0>>0?(r=t&255,(r|0)!=(h[e+75>>0]|0)):0){l[i>>2]=a+1;h[a>>0]=f;break}if((Ai[l[e+36>>2]&7](e,o,1)|0)==1)r=b[o>>0]|0;else r=-1}}while(0);w=s;return r|0}function xr(e){e=e|0;var t=0,r=0;t=w;w=w+16|0;r=t;l[r>>2]=l[e+60>>2];e=hr(Ae(6,r|0)|0)|0;w=t;return e|0}function Ir(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0;n=w;w=w+32|0;a=n;i=n+20|0;l[a>>2]=l[e+60>>2];l[a+4>>2]=0;l[a+8>>2]=t;l[a+12>>2]=i;l[a+16>>2]=r;if((hr(Je(140,a|0)|0)|0)<0){l[i>>2]=-1;e=-1}else e=l[i>>2]|0;w=n;return e|0}function Rr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0;p=w;w=w+48|0;h=p+16|0;u=p;i=p+32|0;d=e+28|0;n=l[d>>2]|0;l[i>>2]=n;b=e+20|0;n=(l[b>>2]|0)-n|0;l[i+4>>2]=n;l[i+8>>2]=t;l[i+12>>2]=r;s=e+60|0;c=e+44|0;t=2;n=n+r|0;while(1){if(!(l[52]|0)){l[h>>2]=l[s>>2];l[h+4>>2]=i;l[h+8>>2]=t;f=hr(Xe(146,h|0)|0)|0}else{He(7,e|0);l[u>>2]=l[s>>2];l[u+4>>2]=i;l[u+8>>2]=t;f=hr(Xe(146,u|0)|0)|0;Me(0)}if((n|0)==(f|0)){n=6;break}if((f|0)<0){n=8;break}n=n-f|0;a=l[i+4>>2]|0;if(f>>>0<=a>>>0)if((t|0)==2){l[d>>2]=(l[d>>2]|0)+f;o=a;t=2}else o=a;else{o=l[c>>2]|0;l[d>>2]=o;l[b>>2]=o;o=l[i+12>>2]|0;f=f-a|0;i=i+8|0;t=t+-1|0}l[i>>2]=(l[i>>2]|0)+f;l[i+4>>2]=o-f}if((n|0)==6){h=l[c>>2]|0;l[e+16>>2]=h+(l[e+48>>2]|0);e=h;l[d>>2]=e;l[b>>2]=e}else if((n|0)==8){l[e+16>>2]=0;l[d>>2]=0;l[b>>2]=0;l[e>>2]=l[e>>2]|32;if((t|0)==2)r=0;else r=r-(l[i+4>>2]|0)|0}w=p;return r|0}function Br(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;n=w;w=w+80|0;i=n;l[e+36>>2]=3;if((l[e>>2]&64|0)==0?(l[i>>2]=l[e+60>>2],l[i+4>>2]=21505,l[i+8>>2]=n+12,(Ee(54,i|0)|0)!=0):0)h[e+75>>0]=-1;i=Rr(e,t,r)|0;w=n;return i|0}function Cr(e){e=e|0;var t=0,r=0;t=e+74|0;r=h[t>>0]|0;h[t>>0]=r+255|r;t=l[e>>2]|0;if(!(t&8)){l[e+8>>2]=0;l[e+4>>2]=0;t=l[e+44>>2]|0;l[e+28>>2]=t;l[e+20>>2]=t;l[e+16>>2]=t+(l[e+48>>2]|0);t=0}else{l[e>>2]=t|32;t=-1}return t|0}function Pr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0;a=t&255;i=(r|0)!=0;e:do{if(i&(e&3|0)!=0){n=t&255;while(1){if((h[e>>0]|0)==n<<24>>24){f=6;break e}e=e+1|0;r=r+-1|0;i=(r|0)!=0;if(!(i&(e&3|0)!=0)){f=5;break}}}else f=5}while(0);if((f|0)==5)if(i)f=6;else r=0;e:do{if((f|0)==6){n=t&255;if((h[e>>0]|0)!=n<<24>>24){i=ue(a,16843009)|0;t:do{if(r>>>0>3)while(1){a=l[e>>2]^i;if((a&-2139062144^-2139062144)&a+-16843009)break;e=e+4|0;r=r+-4|0;if(r>>>0<=3){f=11;break t}}else f=11}while(0);if((f|0)==11)if(!r){r=0;break}while(1){if((h[e>>0]|0)==n<<24>>24)break e;e=e+1|0;r=r+-1|0;if(!r){r=0;break}}}}}while(0);return((r|0)!=0?e:0)|0}function Lr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0;t=e+20|0;a=e+28|0;if((l[t>>2]|0)>>>0>(l[a>>2]|0)>>>0?(Ai[l[e+36>>2]&7](e,0,0)|0,(l[t>>2]|0)==0):0)t=-1;else{f=e+4|0;r=l[f>>2]|0;i=e+8|0;n=l[i>>2]|0;if(r>>>0>>0)Ai[l[e+40>>2]&7](e,r-n|0,1)|0;l[e+16>>2]=0;l[a>>2]=0;l[t>>2]=0;l[i>>2]=0;l[f>>2]=0;t=0}return t|0}function Tr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0,s=0,c=0,u=0,p=0,m=0,v=0,g=0,_=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0,q=0,z=0,F=0,H=0,K=0,J=0,X=0,Y=0,V=0,W=0,G=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ie=0,ne=0,ae=0,fe=0;fe=w;w=w+624|0;te=fe+24|0;ie=fe+16|0;re=fe+588|0;G=fe+576|0;ee=fe;Y=fe+536|0;ae=fe+8|0;ne=fe+528|0;U=(e|0)!=0;O=Y+40|0;X=O;Y=Y+39|0;V=ae+4|0;W=G+12|0;G=G+11|0;Z=re;Q=W;$=Q-Z|0;q=-2-Z|0;z=Q+2|0;F=te+288|0;H=re+9|0;K=H;J=re+8|0;a=0;_=t;f=0;t=0;e:while(1){do{if((a|0)>-1)if((f|0)>(2147483647-a|0)){a=ur()|0;l[a>>2]=75;a=-1;break}else{a=f+a|0;break}}while(0);f=h[_>>0]|0;if(!(f<<24>>24)){D=245;break}else o=_;t:while(1){switch(f<<24>>24){case 37:{f=o;D=9;break t}case 0:{f=o;break t}default:{}}j=o+1|0;f=h[j>>0]|0;o=j}t:do{if((D|0)==9)while(1){D=0;if((h[f+1>>0]|0)!=37)break t;o=o+1|0;f=f+2|0;if((h[f>>0]|0)==37)D=9;else break}}while(0);M=o-_|0;if(U?(l[e>>2]&32|0)==0:0)yr(_,M,e)|0;if((o|0)!=(_|0)){_=f;f=M;continue}u=f+1|0;o=h[u>>0]|0;s=(o<<24>>24)+-48|0;if(s>>>0<10){j=(h[f+2>>0]|0)==36;u=j?f+3|0:u;o=h[u>>0]|0;v=j?s:-1;t=j?1:t}else v=-1;f=o<<24>>24;t:do{if((f&-32|0)==32){s=0;while(1){if(!(1<>24)+-32|s;u=u+1|0;o=h[u>>0]|0;f=o<<24>>24;if((f&-32|0)!=32){p=s;f=u;break}}}else{p=0;f=u}}while(0);do{if(o<<24>>24==42){s=f+1|0;o=(h[s>>0]|0)+-48|0;if(o>>>0<10?(h[f+2>>0]|0)==36:0){l[n+(o<<2)>>2]=10;t=1;f=f+3|0;o=l[i+((h[s>>0]|0)+-48<<3)>>2]|0}else{if(t){a=-1;break e}if(!U){S=p;f=s;t=0;j=0;break}t=(l[r>>2]|0)+(4-1)&~(4-1);o=l[t>>2]|0;l[r>>2]=t+4;t=0;f=s}if((o|0)<0){S=p|8192;j=0-o|0}else{S=p;j=o}}else{s=(o<<24>>24)+-48|0;if(s>>>0<10){o=0;do{o=(o*10|0)+s|0;f=f+1|0;s=(h[f>>0]|0)+-48|0}while(s>>>0<10);if((o|0)<0){a=-1;break e}else{S=p;j=o}}else{S=p;j=0}}}while(0);t:do{if((h[f>>0]|0)==46){s=f+1|0;o=h[s>>0]|0;if(o<<24>>24!=42){u=(o<<24>>24)+-48|0;if(u>>>0<10){f=s;o=0}else{f=s;u=0;break}while(1){o=(o*10|0)+u|0;f=f+1|0;u=(h[f>>0]|0)+-48|0;if(u>>>0>=10){u=o;break t}}}s=f+2|0;o=(h[s>>0]|0)+-48|0;if(o>>>0<10?(h[f+3>>0]|0)==36:0){l[n+(o<<2)>>2]=10;f=f+4|0;u=l[i+((h[s>>0]|0)+-48<<3)>>2]|0;break}if(t){a=-1;break e}if(U){f=(l[r>>2]|0)+(4-1)&~(4-1);u=l[f>>2]|0;l[r>>2]=f+4;f=s}else{f=s;u=0}}else u=-1}while(0);m=0;while(1){o=(h[f>>0]|0)+-65|0;if(o>>>0>57){a=-1;break e}s=f+1|0;o=h[5359+(m*58|0)+o>>0]|0;p=o&255;if((p+-1|0)>>>0<8){f=s;m=p}else{T=s;break}}if(!(o<<24>>24)){a=-1;break}s=(v|0)>-1;do{if(o<<24>>24==19)if(s){a=-1;break e}else D=52;else{if(s){l[n+(v<<2)>>2]=p;P=i+(v<<3)|0;L=l[P+4>>2]|0;D=ee;l[D>>2]=l[P>>2];l[D+4>>2]=L;D=52;break}if(!U){a=0;break e}Ur(ee,p,r)}}while(0);if((D|0)==52?(D=0,!U):0){_=T;f=M;continue}v=h[f>>0]|0;v=(m|0)!=0&(v&15|0)==3?v&-33:v;s=S&-65537;L=(S&8192|0)==0?S:s;t:do{switch(v|0){case 110:switch(m|0){case 0:{l[l[ee>>2]>>2]=a;_=T;f=M;continue e}case 1:{l[l[ee>>2]>>2]=a;_=T;f=M;continue e}case 2:{_=l[ee>>2]|0;l[_>>2]=a;l[_+4>>2]=((a|0)<0)<<31>>31;_=T;f=M;continue e}case 3:{d[l[ee>>2]>>1]=a;_=T;f=M;continue e}case 4:{h[l[ee>>2]>>0]=a;_=T;f=M;continue e}case 6:{l[l[ee>>2]>>2]=a;_=T;f=M;continue e}case 7:{_=l[ee>>2]|0;l[_>>2]=a;l[_+4>>2]=((a|0)<0)<<31>>31;_=T;f=M;continue e}default:{_=T;f=M;continue e}}case 112:{m=L|8;u=u>>>0>8?u:8;v=120;D=64;break}case 88:case 120:{m=L;D=64;break}case 111:{s=ee;o=l[s>>2]|0;s=l[s+4>>2]|0;if((o|0)==0&(s|0)==0)f=O;else{f=O;do{f=f+-1|0;h[f>>0]=o&7|48;o=Wr(o|0,s|0,3)|0;s=N}while(!((o|0)==0&(s|0)==0))}if(!(L&8)){o=L;m=0;p=5839;D=77}else{m=X-f+1|0;o=L;u=(u|0)<(m|0)?m:u;m=0;p=5839;D=77}break}case 105:case 100:{o=ee;f=l[o>>2]|0;o=l[o+4>>2]|0;if((o|0)<0){f=Yr(0,0,f|0,o|0)|0;o=N;s=ee;l[s>>2]=f;l[s+4>>2]=o;s=1;p=5839;D=76;break t}if(!(L&2048)){p=L&1;s=p;p=(p|0)==0?5839:5841;D=76}else{s=1;p=5840;D=76}break}case 117:{o=ee;f=l[o>>2]|0;o=l[o+4>>2]|0;s=0;p=5839;D=76;break}case 99:{h[Y>>0]=l[ee>>2];_=Y;o=1;m=0;v=5839;f=O;break}case 109:{f=ur()|0;f=cr(l[f>>2]|0)|0;D=82;break}case 115:{f=l[ee>>2]|0;f=(f|0)!=0?f:5849;D=82;break}case 67:{l[ae>>2]=l[ee>>2];l[V>>2]=0;l[ee>>2]=ae;u=-1;D=86;break}case 83:{if(!u){qr(e,32,j,0,L);f=0;D=98}else D=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{c=+y[ee>>3];l[ie>>2]=0;y[k>>3]=c;if((l[k+4>>2]|0)>=0)if(!(L&2048)){P=L&1;C=P;P=(P|0)==0?5857:5862}else{C=1;P=5859}else{c=-c;C=1;P=5856}y[k>>3]=c;B=l[k+4>>2]&2146435072;do{if(B>>>0<2146435072|(B|0)==2146435072&0<0){g=+lr(c,ie)*2;o=g!=0;if(o)l[ie>>2]=(l[ie>>2]|0)+-1;I=v|32;if((I|0)==97){_=v&32;M=(_|0)==0?P:P+9|0;S=C|2;f=12-u|0;do{if(!(u>>>0>11|(f|0)==0)){c=8;do{f=f+-1|0;c=c*16}while((f|0)!=0);if((h[M>>0]|0)==45){c=-(c+(-g-c));break}else{c=g+c-c;break}}else c=g}while(0);o=l[ie>>2]|0;f=(o|0)<0?0-o|0:o;f=Or(f,((f|0)<0)<<31>>31,W)|0;if((f|0)==(W|0)){h[G>>0]=48;f=G}h[f+-1>>0]=(o>>31&2)+43;m=f+-2|0;h[m>>0]=v+15;p=(u|0)<1;s=(L&8|0)==0;o=re;while(1){P=~~c;f=o+1|0;h[o>>0]=b[5823+P>>0]|_;c=(c-+(P|0))*16;do{if((f-Z|0)==1){if(s&(p&c==0))break;h[f>>0]=46;f=o+2|0}}while(0);if(!(c!=0))break;else o=f}u=(u|0)!=0&(q+f|0)<(u|0)?z+u-m|0:$-m+f|0;s=u+S|0;qr(e,32,j,s,L);if(!(l[e>>2]&32))yr(M,S,e)|0;qr(e,48,j,s,L^65536);f=f-Z|0;if(!(l[e>>2]&32))yr(re,f,e)|0;o=Q-m|0;qr(e,48,u-(f+o)|0,0,0);if(!(l[e>>2]&32))yr(m,o,e)|0;qr(e,32,j,s,L^8192);f=(s|0)<(j|0)?j:s;break}f=(u|0)<0?6:u;if(o){o=(l[ie>>2]|0)+-28|0;l[ie>>2]=o;c=g*268435456}else{c=g;o=l[ie>>2]|0}B=(o|0)<0?te:F;R=B;o=B;do{x=~~c>>>0;l[o>>2]=x;o=o+4|0;c=(c-+(x>>>0))*1e9}while(c!=0);s=o;o=l[ie>>2]|0;if((o|0)>0){p=B;while(1){m=(o|0)>29?29:o;u=s+-4|0;do{if(u>>>0

>>0)u=p;else{o=0;do{x=Gr(l[u>>2]|0,0,m|0)|0;x=Zr(x|0,N|0,o|0,0)|0;o=N;A=fi(x|0,o|0,1e9,0)|0;l[u>>2]=A;o=ai(x|0,o|0,1e9,0)|0;u=u+-4|0}while(u>>>0>=p>>>0);if(!o){u=p;break}u=p+-4|0;l[u>>2]=o}}while(0);while(1){if(s>>>0<=u>>>0)break;o=s+-4|0;if(!(l[o>>2]|0))s=o;else break}o=(l[ie>>2]|0)-m|0;l[ie>>2]=o;if((o|0)>0)p=u;else break}}else u=B;if((o|0)<0){M=((f+25|0)/9|0)+1|0;E=(I|0)==102;_=u;while(1){S=0-o|0;S=(S|0)>9?9:S;do{if(_>>>0>>0){o=(1<>>S;u=0;m=_;do{x=l[m>>2]|0;l[m>>2]=(x>>>S)+u;u=ue(x&o,p)|0;m=m+4|0}while(m>>>0>>0);o=(l[_>>2]|0)==0?_+4|0:_;if(!u){u=o;break}l[s>>2]=u;u=o;s=s+4|0}else u=(l[_>>2]|0)==0?_+4|0:_}while(0);o=E?B:u;s=(s-o>>2|0)>(M|0)?o+(M<<2)|0:s;o=(l[ie>>2]|0)+S|0;l[ie>>2]=o;if((o|0)>=0){_=u;break}else _=u}}else _=u;do{if(_>>>0>>0){o=(R-_>>2)*9|0;p=l[_>>2]|0;if(p>>>0<10)break;else u=10;do{u=u*10|0;o=o+1|0}while(p>>>0>=u>>>0)}else o=0}while(0);A=(I|0)==103;x=(f|0)!=0;u=f-((I|0)!=102?o:0)+((x&A)<<31>>31)|0;if((u|0)<(((s-R>>2)*9|0)+-9|0)){m=u+9216|0;E=(m|0)/9|0;u=B+(E+-1023<<2)|0;m=((m|0)%9|0)+1|0;if((m|0)<9){p=10;do{p=p*10|0;m=m+1|0}while((m|0)!=9)}else p=10;S=l[u>>2]|0;M=(S>>>0)%(p>>>0)|0;if((M|0)==0?(B+(E+-1022<<2)|0)==(s|0):0)p=_;else D=163;do{if((D|0)==163){D=0;g=(((S>>>0)/(p>>>0)|0)&1|0)==0?9007199254740992:9007199254740994;m=(p|0)/2|0;do{if(M>>>0>>0)c=.5;else{if((M|0)==(m|0)?(B+(E+-1022<<2)|0)==(s|0):0){c=1;break}c=1.5}}while(0);do{if(C){if((h[P>>0]|0)!=45)break;g=-g;c=-c}}while(0);m=S-M|0;l[u>>2]=m;if(!(g+c!=g)){p=_;break}I=m+p|0;l[u>>2]=I;if(I>>>0>999999999){o=_;while(1){p=u+-4|0;l[u>>2]=0;if(p>>>0>>0){o=o+-4|0;l[o>>2]=0}I=(l[p>>2]|0)+1|0;l[p>>2]=I;if(I>>>0>999999999)u=p;else{_=o;u=p;break}}}o=(R-_>>2)*9|0;m=l[_>>2]|0;if(m>>>0<10){p=_;break}else p=10;do{p=p*10|0;o=o+1|0}while(m>>>0>=p>>>0);p=_}}while(0);I=u+4|0;_=p;s=s>>>0>I>>>0?I:s}M=0-o|0;while(1){if(s>>>0<=_>>>0){E=0;I=s;break}u=s+-4|0;if(!(l[u>>2]|0))s=u;else{E=1;I=s;break}}do{if(A){f=(x&1^1)+f|0;if((f|0)>(o|0)&(o|0)>-5){v=v+-1|0;f=f+-1-o|0}else{v=v+-2|0;f=f+-1|0}s=L&8;if(s)break;do{if(E){s=l[I+-4>>2]|0;if(!s){u=9;break}if(!((s>>>0)%10|0)){p=10;u=0}else{u=0;break}do{p=p*10|0;u=u+1|0}while(((s>>>0)%(p>>>0)|0|0)==0)}else u=9}while(0);s=((I-R>>2)*9|0)+-9|0;if((v|32|0)==102){s=s-u|0;s=(s|0)<0?0:s;f=(f|0)<(s|0)?f:s;s=0;break}else{s=s+o-u|0;s=(s|0)<0?0:s;f=(f|0)<(s|0)?f:s;s=0;break}}else s=L&8}while(0);S=f|s;p=(S|0)!=0&1;m=(v|32|0)==102;if(m){o=(o|0)>0?o:0;v=0}else{u=(o|0)<0?M:o;u=Or(u,((u|0)<0)<<31>>31,W)|0;if((Q-u|0)<2)do{u=u+-1|0;h[u>>0]=48}while((Q-u|0)<2);h[u+-1>>0]=(o>>31&2)+43;R=u+-2|0;h[R>>0]=v;o=Q-R|0;v=R}M=C+1+f+p+o|0;qr(e,32,j,M,L);if(!(l[e>>2]&32))yr(P,C,e)|0;qr(e,48,j,M,L^65536);do{if(m){u=_>>>0>B>>>0?B:_;o=u;do{s=Or(l[o>>2]|0,0,H)|0;do{if((o|0)==(u|0)){if((s|0)!=(H|0))break;h[J>>0]=48;s=J}else{if(s>>>0<=re>>>0)break;do{s=s+-1|0;h[s>>0]=48}while(s>>>0>re>>>0)}}while(0);if(!(l[e>>2]&32))yr(s,K-s|0,e)|0;o=o+4|0}while(o>>>0<=B>>>0);do{if(S){if(l[e>>2]&32)break;yr(5891,1,e)|0}}while(0);if((f|0)>0&o>>>0>>0){s=o;while(1){o=Or(l[s>>2]|0,0,H)|0;if(o>>>0>re>>>0)do{o=o+-1|0;h[o>>0]=48}while(o>>>0>re>>>0);if(!(l[e>>2]&32))yr(o,(f|0)>9?9:f,e)|0;s=s+4|0;o=f+-9|0;if(!((f|0)>9&s>>>0>>0)){f=o;break}else f=o}}qr(e,48,f+9|0,9,0)}else{m=E?I:_+4|0;if((f|0)>-1){p=(s|0)==0;u=_;do{o=Or(l[u>>2]|0,0,H)|0;if((o|0)==(H|0)){h[J>>0]=48;o=J}do{if((u|0)==(_|0)){s=o+1|0;if(!(l[e>>2]&32))yr(o,1,e)|0;if(p&(f|0)<1){o=s;break}if(l[e>>2]&32){o=s;break}yr(5891,1,e)|0;o=s}else{if(o>>>0<=re>>>0)break;do{o=o+-1|0;h[o>>0]=48}while(o>>>0>re>>>0)}}while(0);s=K-o|0;if(!(l[e>>2]&32))yr(o,(f|0)>(s|0)?s:f,e)|0;f=f-s|0;u=u+4|0}while(u>>>0>>0&(f|0)>-1)}qr(e,48,f+18|0,18,0);if(l[e>>2]&32)break;yr(v,Q-v|0,e)|0}}while(0);qr(e,32,j,M,L^8192);f=(M|0)<(j|0)?j:M}else{m=(v&32|0)!=0;p=c!=c|0!=0;o=p?0:C;u=o+3|0;qr(e,32,j,u,s);f=l[e>>2]|0;if(!(f&32)){yr(P,o,e)|0;f=l[e>>2]|0}if(!(f&32))yr(p?m?5883:5887:m?5875:5879,3,e)|0;qr(e,32,j,u,L^8192);f=(u|0)<(j|0)?j:u}}while(0);_=T;continue e}default:{s=L;o=u;m=0;v=5839;f=O}}}while(0);t:do{if((D|0)==64){s=ee;o=l[s>>2]|0;s=l[s+4>>2]|0;p=v&32;if(!((o|0)==0&(s|0)==0)){f=O;do{f=f+-1|0;h[f>>0]=b[5823+(o&15)>>0]|p;o=Wr(o|0,s|0,4)|0;s=N}while(!((o|0)==0&(s|0)==0));D=ee;if((m&8|0)==0|(l[D>>2]|0)==0&(l[D+4>>2]|0)==0){o=m;m=0;p=5839;D=77}else{o=m;m=2;p=5839+(v>>4)|0;D=77}}else{f=O;o=m;m=0;p=5839;D=77}}else if((D|0)==76){f=Or(f,o,O)|0;o=L;m=s;D=77}else if((D|0)==82){D=0;L=Pr(f,0,u)|0;P=(L|0)==0;_=f;o=P?u:L-f|0;m=0;v=5839;f=P?f+u|0:L}else if((D|0)==86){D=0;o=0;f=0;p=l[ee>>2]|0;while(1){s=l[p>>2]|0;if(!s)break;f=pr(ne,s)|0;if((f|0)<0|f>>>0>(u-o|0)>>>0)break;o=f+o|0;if(u>>>0>o>>>0)p=p+4|0;else break}if((f|0)<0){a=-1;break e}qr(e,32,j,o,L);if(!o){f=0;D=98}else{s=0;u=l[ee>>2]|0;while(1){f=l[u>>2]|0;if(!f){f=o;D=98;break t}f=pr(ne,f)|0;s=f+s|0;if((s|0)>(o|0)){f=o;D=98;break t}if(!(l[e>>2]&32))yr(ne,f,e)|0;if(s>>>0>=o>>>0){f=o;D=98;break}else u=u+4|0}}}}while(0);if((D|0)==98){D=0;qr(e,32,j,f,L^8192);_=T;f=(j|0)>(f|0)?j:f;continue}if((D|0)==77){D=0;s=(u|0)>-1?o&-65537:o;o=ee;o=(l[o>>2]|0)!=0|(l[o+4>>2]|0)!=0;if((u|0)!=0|o){o=(o&1^1)+(X-f)|0;_=f;o=(u|0)>(o|0)?u:o;v=p;f=O}else{_=O;o=0;v=p;f=O}}p=f-_|0;o=(o|0)<(p|0)?p:o;u=m+o|0;f=(j|0)<(u|0)?u:j;qr(e,32,f,u,s);if(!(l[e>>2]&32))yr(v,m,e)|0;qr(e,48,f,u,s^65536);qr(e,48,o,p,0);if(!(l[e>>2]&32))yr(_,p,e)|0;qr(e,32,f,u,s^8192);_=T}e:do{if((D|0)==245)if(!e)if(t){a=1;while(1){t=l[n+(a<<2)>>2]|0;if(!t)break;Ur(i+(a<<3)|0,t,r);a=a+1|0;if((a|0)>=10){a=1;break e}}if((a|0)<10)while(1){if(l[n+(a<<2)>>2]|0){a=-1;break e}a=a+1|0;if((a|0)>=10){a=1;break}}else a=1}else a=0}while(0);w=fe;return a|0}function jr(e){e=e|0;if(!(l[e+68>>2]|0))Er(e);return}function Dr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0;i=e+20|0;n=l[i>>2]|0;e=(l[e+16>>2]|0)-n|0;e=e>>>0>r>>>0?r:e;Qr(n|0,t|0,e|0)|0;l[i>>2]=(l[i>>2]|0)+e;return r|0}function Ur(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{i=(l[r>>2]|0)+(4-1)&~(4-1);t=l[i>>2]|0;l[r>>2]=i+4;l[e>>2]=t;break e}case 10:{i=(l[r>>2]|0)+(4-1)&~(4-1);t=l[i>>2]|0;l[r>>2]=i+4;i=e;l[i>>2]=t;l[i+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{i=(l[r>>2]|0)+(4-1)&~(4-1);t=l[i>>2]|0;l[r>>2]=i+4;i=e;l[i>>2]=t;l[i+4>>2]=0;break e}case 12:{i=(l[r>>2]|0)+(8-1)&~(8-1);t=i;n=l[t>>2]|0;t=l[t+4>>2]|0;l[r>>2]=i+8;i=e;l[i>>2]=n;l[i+4>>2]=t;break e}case 13:{n=(l[r>>2]|0)+(4-1)&~(4-1);i=l[n>>2]|0;l[r>>2]=n+4;i=(i&65535)<<16>>16;n=e;l[n>>2]=i;l[n+4>>2]=((i|0)<0)<<31>>31;break e}case 14:{n=(l[r>>2]|0)+(4-1)&~(4-1);i=l[n>>2]|0;l[r>>2]=n+4;n=e;l[n>>2]=i&65535;l[n+4>>2]=0;break e}case 15:{n=(l[r>>2]|0)+(4-1)&~(4-1);i=l[n>>2]|0;l[r>>2]=n+4;i=(i&255)<<24>>24;n=e;l[n>>2]=i;l[n+4>>2]=((i|0)<0)<<31>>31;break e}case 16:{n=(l[r>>2]|0)+(4-1)&~(4-1);i=l[n>>2]|0;l[r>>2]=n+4;n=e;l[n>>2]=i&255;l[n+4>>2]=0;break e}case 17:{n=(l[r>>2]|0)+(8-1)&~(8-1);a=+y[n>>3];l[r>>2]=n+8;y[e>>3]=a;break e}case 18:{n=(l[r>>2]|0)+(8-1)&~(8-1);a=+y[n>>3];l[r>>2]=n+8;y[e>>3]=a;break e}default:break e}}while(0)}while(0);return}function Or(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if(t>>>0>0|(t|0)==0&e>>>0>4294967295)while(1){i=fi(e|0,t|0,10,0)|0;r=r+-1|0;h[r>>0]=i|48;i=ai(e|0,t|0,10,0)|0;if(t>>>0>9|(t|0)==9&e>>>0>4294967295){e=i;t=N}else{e=i;break}}if(e)while(1){r=r+-1|0;h[r>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}return r|0}function qr(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0;o=w;w=w+256|0;f=o;do{if((r|0)>(i|0)&(n&73728|0)==0){n=r-i|0;Vr(f|0,t|0,(n>>>0>256?256:n)|0)|0;t=l[e>>2]|0;a=(t&32|0)==0;if(n>>>0>255){i=r-i|0;do{if(a){yr(f,256,e)|0;t=l[e>>2]|0}n=n+-256|0;a=(t&32|0)==0}while(n>>>0>255);if(a)n=i&255;else break}else if(!a)break;yr(f,n,e)|0}}while(0);w=o;return}function Nr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0,m=0,v=0,y=0,g=0,w=0,_=0,k=0,S=0,M=0,E=0,A=0,x=0,I=0,R=0,B=0,C=0,P=0,L=0,T=0,j=0,D=0,U=0,O=0;do{if(e>>>0<245){b=e>>>0<11?16:e+11&-8;e=b>>>3;o=l[151]|0;r=o>>>e;if(r&3){e=(r&1^1)+e|0;i=e<<1;r=644+(i<<2)|0;i=644+(i+2<<2)|0;n=l[i>>2]|0;a=n+8|0;f=l[a>>2]|0;do{if((r|0)!=(f|0)){if(f>>>0<(l[155]|0)>>>0)Fe();t=f+12|0;if((l[t>>2]|0)==(n|0)){l[t>>2]=r;l[i>>2]=f;break}else Fe()}else l[151]=o&~(1<>2]=O|3;O=n+(O|4)|0;l[O>>2]=l[O>>2]|1;O=a;return O|0}f=l[153]|0;if(b>>>0>f>>>0){if(r){i=2<>>12&16;i=i>>>s;n=i>>>5&8;i=i>>>n;a=i>>>2&4;i=i>>>a;r=i>>>1&2;i=i>>>r;e=i>>>1&1;e=(n|s|a|r|e)+(i>>>e)|0;i=e<<1;r=644+(i<<2)|0;i=644+(i+2<<2)|0;a=l[i>>2]|0;s=a+8|0;n=l[s>>2]|0;do{if((r|0)!=(n|0)){if(n>>>0<(l[155]|0)>>>0)Fe();t=n+12|0;if((l[t>>2]|0)==(a|0)){l[t>>2]=r;l[i>>2]=n;c=l[153]|0;break}else Fe()}else{l[151]=o&~(1<>2]=b|3;o=a+b|0;l[a+(b|4)>>2]=f|1;l[a+O>>2]=f;if(c){n=l[156]|0;r=c>>>3;t=r<<1;i=644+(t<<2)|0;e=l[151]|0;r=1<>2]|0;if(t>>>0<(l[155]|0)>>>0)Fe();else{u=e;h=t}}else{l[151]=e|r;u=644+(t+2<<2)|0;h=i}l[u>>2]=n;l[h+12>>2]=n;l[n+8>>2]=h;l[n+12>>2]=i}l[153]=f;l[156]=o;O=s;return O|0}e=l[152]|0;if(e){r=(e&0-e)+-1|0;U=r>>>12&16;r=r>>>U;D=r>>>5&8;r=r>>>D;O=r>>>2&4;r=r>>>O;e=r>>>1&2;r=r>>>e;i=r>>>1&1;i=l[908+((D|U|O|e|i)+(r>>>i)<<2)>>2]|0;r=(l[i+4>>2]&-8)-b|0;e=i;while(1){t=l[e+16>>2]|0;if(!t){t=l[e+20>>2]|0;if(!t){s=r;break}}e=(l[t+4>>2]&-8)-b|0;O=e>>>0>>0;r=O?e:r;e=t;i=O?t:i}a=l[155]|0;if(i>>>0>>0)Fe();o=i+b|0;if(i>>>0>=o>>>0)Fe();f=l[i+24>>2]|0;r=l[i+12>>2]|0;do{if((r|0)==(i|0)){e=i+20|0;t=l[e>>2]|0;if(!t){e=i+16|0;t=l[e>>2]|0;if(!t){d=0;break}}while(1){r=t+20|0;n=l[r>>2]|0;if(n){t=n;e=r;continue}r=t+16|0;n=l[r>>2]|0;if(!n)break;else{t=n;e=r}}if(e>>>0>>0)Fe();else{l[e>>2]=0;d=t;break}}else{n=l[i+8>>2]|0;if(n>>>0>>0)Fe();t=n+12|0;if((l[t>>2]|0)!=(i|0))Fe();e=r+8|0;if((l[e>>2]|0)==(i|0)){l[t>>2]=r;l[e>>2]=n;d=r;break}else Fe()}}while(0);do{if(f){t=l[i+28>>2]|0;e=908+(t<<2)|0;if((i|0)==(l[e>>2]|0)){l[e>>2]=d;if(!d){l[152]=l[152]&~(1<>>0<(l[155]|0)>>>0)Fe();t=f+16|0;if((l[t>>2]|0)==(i|0))l[t>>2]=d;else l[f+20>>2]=d;if(!d)break}e=l[155]|0;if(d>>>0>>0)Fe();l[d+24>>2]=f;t=l[i+16>>2]|0;do{if(t)if(t>>>0>>0)Fe();else{l[d+16>>2]=t;l[t+24>>2]=d;break}}while(0);t=l[i+20>>2]|0;if(t)if(t>>>0<(l[155]|0)>>>0)Fe();else{l[d+20>>2]=t;l[t+24>>2]=d;break}}}while(0);if(s>>>0<16){O=s+b|0;l[i+4>>2]=O|3;O=i+(O+4)|0;l[O>>2]=l[O>>2]|1}else{l[i+4>>2]=b|3;l[i+(b|4)>>2]=s|1;l[i+(s+b)>>2]=s;t=l[153]|0;if(t){a=l[156]|0;r=t>>>3;t=r<<1;n=644+(t<<2)|0;e=l[151]|0;r=1<>2]|0;if(e>>>0<(l[155]|0)>>>0)Fe();else{p=t;m=e}}else{l[151]=e|r;p=644+(t+2<<2)|0;m=n}l[p>>2]=a;l[m+12>>2]=a;l[a+8>>2]=m;l[a+12>>2]=n}l[153]=s;l[156]=o}O=i+8|0;return O|0}else m=b}else m=b}else if(e>>>0<=4294967231){e=e+11|0;h=e&-8;u=l[152]|0;if(u){r=0-h|0;e=e>>>8;if(e)if(h>>>0>16777215)c=31;else{m=(e+1048320|0)>>>16&8;_=e<>>16&4;_=_<>>16&2;c=14-(p|m|c)+(_<>>15)|0;c=h>>>(c+7|0)&1|c<<1}else c=0;e=l[908+(c<<2)>>2]|0;e:do{if(!e){n=0;e=0;_=86}else{f=r;n=0;o=h<<((c|0)==31?0:25-(c>>>1)|0);s=e;e=0;while(1){a=l[s+4>>2]&-8;r=a-h|0;if(r>>>0>>0)if((a|0)==(h|0)){a=s;e=s;_=90;break e}else e=s;else r=f;_=l[s+20>>2]|0;s=l[s+16+(o>>>31<<2)>>2]|0;n=(_|0)==0|(_|0)==(s|0)?n:_;if(!s){_=86;break}else{f=r;o=o<<1}}}}while(0);if((_|0)==86){if((n|0)==0&(e|0)==0){e=2<>>12&16;e=e>>>d;u=e>>>5&8;e=e>>>u;p=e>>>2&4;e=e>>>p;m=e>>>1&2;e=e>>>m;n=e>>>1&1;n=l[908+((u|d|p|m|n)+(e>>>n)<<2)>>2]|0;e=0}if(!n){o=r;s=e}else{a=n;_=90}}if((_|0)==90)while(1){_=0;m=(l[a+4>>2]&-8)-h|0;n=m>>>0>>0;r=n?m:r;e=n?a:e;n=l[a+16>>2]|0;if(n){a=n;_=90;continue}a=l[a+20>>2]|0;if(!a){o=r;s=e;break}else _=90}if((s|0)!=0?o>>>0<((l[153]|0)-h|0)>>>0:0){n=l[155]|0;if(s>>>0>>0)Fe();f=s+h|0;if(s>>>0>=f>>>0)Fe();a=l[s+24>>2]|0;r=l[s+12>>2]|0;do{if((r|0)==(s|0)){e=s+20|0;t=l[e>>2]|0;if(!t){e=s+16|0;t=l[e>>2]|0;if(!t){b=0;break}}while(1){r=t+20|0;i=l[r>>2]|0;if(i){t=i;e=r;continue}r=t+16|0;i=l[r>>2]|0;if(!i)break;else{t=i;e=r}}if(e>>>0>>0)Fe();else{l[e>>2]=0;b=t;break}}else{i=l[s+8>>2]|0;if(i>>>0>>0)Fe();t=i+12|0;if((l[t>>2]|0)!=(s|0))Fe();e=r+8|0;if((l[e>>2]|0)==(s|0)){l[t>>2]=r;l[e>>2]=i;b=r;break}else Fe()}}while(0);do{if(a){t=l[s+28>>2]|0;e=908+(t<<2)|0;if((s|0)==(l[e>>2]|0)){l[e>>2]=b;if(!b){l[152]=l[152]&~(1<>>0<(l[155]|0)>>>0)Fe();t=a+16|0;if((l[t>>2]|0)==(s|0))l[t>>2]=b;else l[a+20>>2]=b;if(!b)break}e=l[155]|0;if(b>>>0>>0)Fe();l[b+24>>2]=a;t=l[s+16>>2]|0;do{if(t)if(t>>>0>>0)Fe();else{l[b+16>>2]=t;l[t+24>>2]=b;break}}while(0);t=l[s+20>>2]|0;if(t)if(t>>>0<(l[155]|0)>>>0)Fe();else{l[b+20>>2]=t;l[t+24>>2]=b;break}}}while(0);e:do{if(o>>>0>=16){l[s+4>>2]=h|3;l[s+(h|4)>>2]=o|1;l[s+(o+h)>>2]=o;t=o>>>3;if(o>>>0<256){e=t<<1;i=644+(e<<2)|0;r=l[151]|0;t=1<>2]|0;if(e>>>0<(l[155]|0)>>>0)Fe();else{y=t;g=e}}else{l[151]=r|t;y=644+(e+2<<2)|0;g=i}l[y>>2]=f;l[g+12>>2]=f;l[s+(h+8)>>2]=g;l[s+(h+12)>>2]=i;break}t=o>>>8;if(t)if(o>>>0>16777215)i=31;else{U=(t+1048320|0)>>>16&8;O=t<>>16&4;O=O<>>16&2;i=14-(D|U|i)+(O<>>15)|0;i=o>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;l[s+(h+28)>>2]=i;l[s+(h+20)>>2]=0;l[s+(h+16)>>2]=0;e=l[152]|0;r=1<>2]=f;l[s+(h+24)>>2]=t;l[s+(h+12)>>2]=f;l[s+(h+8)>>2]=f;break}t=l[t>>2]|0;t:do{if((l[t+4>>2]&-8|0)!=(o|0)){i=o<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=l[e>>2]|0;if(!r)break;if((l[r+4>>2]&-8|0)==(o|0)){M=r;break t}else{i=i<<1;t=r}}if(e>>>0<(l[155]|0)>>>0)Fe();else{l[e>>2]=f;l[s+(h+24)>>2]=t;l[s+(h+12)>>2]=f;l[s+(h+8)>>2]=f;break e}}else M=t}while(0);t=M+8|0;e=l[t>>2]|0;O=l[155]|0;if(e>>>0>=O>>>0&M>>>0>=O>>>0){l[e+12>>2]=f;l[t>>2]=f;l[s+(h+8)>>2]=e;l[s+(h+12)>>2]=M;l[s+(h+24)>>2]=0;break}else Fe()}else{O=o+h|0;l[s+4>>2]=O|3;O=s+(O+4)|0;l[O>>2]=l[O>>2]|1}}while(0);O=s+8|0;return O|0}else m=h}else m=h}else m=-1}while(0);r=l[153]|0;if(r>>>0>=m>>>0){t=r-m|0;e=l[156]|0;if(t>>>0>15){l[156]=e+m;l[153]=t;l[e+(m+4)>>2]=t|1;l[e+r>>2]=t;l[e+4>>2]=m|3}else{l[153]=0;l[156]=0;l[e+4>>2]=r|3;O=e+(r+4)|0;l[O>>2]=l[O>>2]|1}O=e+8|0;return O|0}e=l[154]|0;if(e>>>0>m>>>0){U=e-m|0;l[154]=U;O=l[157]|0;l[157]=O+m;l[O+(m+4)>>2]=U|1;l[O+4>>2]=m|3;O=O+8|0;return O|0}do{if(!(l[269]|0)){e=Le(30)|0;if(!(e+-1&e)){l[271]=e;l[270]=e;l[272]=-1;l[273]=-1;l[274]=0;l[262]=0;M=(Ke(0)|0)&-16^1431655768;l[269]=M;break}else Fe()}}while(0);s=m+48|0;o=l[271]|0;c=m+47|0;f=o+c|0;o=0-o|0;u=f&o;if(u>>>0<=m>>>0){O=0;return O|0}e=l[261]|0;if((e|0)!=0?(g=l[259]|0,M=g+u|0,M>>>0<=g>>>0|M>>>0>e>>>0):0){O=0;return O|0}e:do{if(!(l[262]&4)){e=l[157]|0;t:do{if(e){n=1052;while(1){r=l[n>>2]|0;if(r>>>0<=e>>>0?(v=n+4|0,(r+(l[v>>2]|0)|0)>>>0>e>>>0):0){a=n;e=v;break}n=l[n+8>>2]|0;if(!n){_=174;break t}}r=f-(l[154]|0)&o;if(r>>>0<2147483647){n=Be(r|0)|0;M=(n|0)==((l[a>>2]|0)+(l[e>>2]|0)|0);e=M?r:0;if(M){if((n|0)!=(-1|0)){k=n;p=e;_=194;break e}}else _=184}else e=0}else _=174}while(0);do{if((_|0)==174){a=Be(0)|0;if((a|0)!=(-1|0)){e=a;r=l[270]|0;n=r+-1|0;if(!(n&e))r=u;else r=u-e+(n+e&0-r)|0;e=l[259]|0;n=e+r|0;if(r>>>0>m>>>0&r>>>0<2147483647){M=l[261]|0;if((M|0)!=0?n>>>0<=e>>>0|n>>>0>M>>>0:0){e=0;break}n=Be(r|0)|0;M=(n|0)==(a|0);e=M?r:0;if(M){k=a;p=e;_=194;break e}else _=184}else e=0}else e=0}}while(0);t:do{if((_|0)==184){a=0-r|0;do{if(s>>>0>r>>>0&(r>>>0<2147483647&(n|0)!=(-1|0))?(w=l[271]|0,w=c-r+w&0-w,w>>>0<2147483647):0)if((Be(w|0)|0)==(-1|0)){Be(a|0)|0;break t}else{r=w+r|0;break}}while(0);if((n|0)!=(-1|0)){k=n;p=r;_=194;break e}}}while(0);l[262]=l[262]|4;_=191}else{e=0;_=191}}while(0);if((((_|0)==191?u>>>0<2147483647:0)?(k=Be(u|0)|0,S=Be(0)|0,k>>>0>>0&((k|0)!=(-1|0)&(S|0)!=(-1|0))):0)?(E=S-k|0,A=E>>>0>(m+40|0)>>>0,A):0){p=A?E:e;_=194}if((_|0)==194){e=(l[259]|0)+p|0;l[259]=e;if(e>>>0>(l[260]|0)>>>0)l[260]=e;f=l[157]|0;e:do{if(f){a=1052;do{e=l[a>>2]|0;r=a+4|0;n=l[r>>2]|0;if((k|0)==(e+n|0)){x=e;I=r;R=n;B=a;_=204;break}a=l[a+8>>2]|0}while((a|0)!=0);if(((_|0)==204?(l[B+12>>2]&8|0)==0:0)?f>>>0>>0&f>>>0>=x>>>0:0){l[I>>2]=R+p;O=(l[154]|0)+p|0;U=f+8|0;U=(U&7|0)==0?0:0-U&7;D=O-U|0;l[157]=f+U;l[154]=D;l[f+(U+4)>>2]=D|1;l[f+(O+4)>>2]=40;l[158]=l[273];break}e=l[155]|0;if(k>>>0>>0){l[155]=k;e=k}r=k+p|0;a=1052;while(1){if((l[a>>2]|0)==(r|0)){n=a;r=a;_=212;break}a=l[a+8>>2]|0;if(!a){r=1052;break}}if((_|0)==212)if(!(l[r+12>>2]&8)){l[n>>2]=k;d=r+4|0;l[d>>2]=(l[d>>2]|0)+p;d=k+8|0;d=(d&7|0)==0?0:0-d&7;c=k+(p+8)|0;c=(c&7|0)==0?0:0-c&7;t=k+(c+p)|0;h=d+m|0;b=k+h|0;u=t-(k+d)-m|0;l[k+(d+4)>>2]=m|3;t:do{if((t|0)!=(f|0)){if((t|0)==(l[156]|0)){O=(l[153]|0)+u|0;l[153]=O;l[156]=b;l[k+(h+4)>>2]=O|1;l[k+(O+h)>>2]=O;break}o=p+4|0;r=l[k+(o+c)>>2]|0;if((r&3|0)==1){s=r&-8;a=r>>>3;r:do{if(r>>>0>=256){f=l[k+((c|24)+p)>>2]|0;i=l[k+(p+12+c)>>2]|0;do{if((i|0)==(t|0)){n=c|16;i=k+(o+n)|0;r=l[i>>2]|0;if(!r){i=k+(n+p)|0;r=l[i>>2]|0;if(!r){j=0;break}}while(1){n=r+20|0;a=l[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=l[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0>>0)Fe();else{l[i>>2]=0;j=r;break}}else{n=l[k+((c|8)+p)>>2]|0;if(n>>>0>>0)Fe();e=n+12|0;if((l[e>>2]|0)!=(t|0))Fe();r=i+8|0;if((l[r>>2]|0)==(t|0)){l[e>>2]=i;l[r>>2]=n;j=i;break}else Fe()}}while(0);if(!f)break;e=l[k+(p+28+c)>>2]|0;r=908+(e<<2)|0;do{if((t|0)!=(l[r>>2]|0)){if(f>>>0<(l[155]|0)>>>0)Fe();e=f+16|0;if((l[e>>2]|0)==(t|0))l[e>>2]=j;else l[f+20>>2]=j;if(!j)break r}else{l[r>>2]=j;if(j)break;l[152]=l[152]&~(1<>>0>>0)Fe();l[j+24>>2]=f;t=c|16;e=l[k+(t+p)>>2]|0;do{if(e)if(e>>>0>>0)Fe();else{l[j+16>>2]=e;l[e+24>>2]=j;break}}while(0);t=l[k+(o+t)>>2]|0;if(!t)break;if(t>>>0<(l[155]|0)>>>0)Fe();else{l[j+20>>2]=t;l[t+24>>2]=j;break}}else{i=l[k+((c|8)+p)>>2]|0;n=l[k+(p+12+c)>>2]|0;r=644+(a<<1<<2)|0;do{if((i|0)!=(r|0)){if(i>>>0>>0)Fe();if((l[i+12>>2]|0)==(t|0))break;Fe()}}while(0);if((n|0)==(i|0)){l[151]=l[151]&~(1<>>0>>0)Fe();e=n+8|0;if((l[e>>2]|0)==(t|0)){C=e;break}Fe()}}while(0);l[i+12>>2]=n;l[C>>2]=i}}while(0);t=k+((s|c)+p)|0;n=s+u|0}else n=u;t=t+4|0;l[t>>2]=l[t>>2]&-2;l[k+(h+4)>>2]=n|1;l[k+(n+h)>>2]=n;t=n>>>3;if(n>>>0<256){e=t<<1;i=644+(e<<2)|0;r=l[151]|0;t=1<>2]|0;if(e>>>0>=(l[155]|0)>>>0){D=t;U=e;break}Fe()}}while(0);l[D>>2]=b;l[U+12>>2]=b;l[k+(h+8)>>2]=U;l[k+(h+12)>>2]=i;break}t=n>>>8;do{if(!t)i=0;else{if(n>>>0>16777215){i=31;break}D=(t+1048320|0)>>>16&8;U=t<>>16&4;U=U<>>16&2;i=14-(j|D|i)+(U<>>15)|0;i=n>>>(i+7|0)&1|i<<1}}while(0);t=908+(i<<2)|0;l[k+(h+28)>>2]=i;l[k+(h+20)>>2]=0;l[k+(h+16)>>2]=0;e=l[152]|0;r=1<>2]=b;l[k+(h+24)>>2]=t;l[k+(h+12)>>2]=b;l[k+(h+8)>>2]=b;break}t=l[t>>2]|0;r:do{if((l[t+4>>2]&-8|0)!=(n|0)){i=n<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=l[e>>2]|0;if(!r)break;if((l[r+4>>2]&-8|0)==(n|0)){O=r;break r}else{i=i<<1;t=r}}if(e>>>0<(l[155]|0)>>>0)Fe();else{l[e>>2]=b;l[k+(h+24)>>2]=t;l[k+(h+12)>>2]=b;l[k+(h+8)>>2]=b;break t}}else O=t}while(0);t=O+8|0;e=l[t>>2]|0;U=l[155]|0;if(e>>>0>=U>>>0&O>>>0>=U>>>0){l[e+12>>2]=b;l[t>>2]=b;l[k+(h+8)>>2]=e;l[k+(h+12)>>2]=O;l[k+(h+24)>>2]=0;break}else Fe()}else{O=(l[154]|0)+u|0;l[154]=O;l[157]=b;l[k+(h+4)>>2]=O|1}}while(0);O=k+(d|8)|0;return O|0}else r=1052;while(1){e=l[r>>2]|0;if(e>>>0<=f>>>0?(t=l[r+4>>2]|0,i=e+t|0,i>>>0>f>>>0):0)break;r=l[r+8>>2]|0}n=e+(t+-39)|0;e=e+(t+-47+((n&7|0)==0?0:0-n&7))|0;n=f+16|0;e=e>>>0>>0?f:e;t=e+8|0;r=k+8|0;r=(r&7|0)==0?0:0-r&7;O=p+-40-r|0;l[157]=k+r;l[154]=O;l[k+(r+4)>>2]=O|1;l[k+(p+-36)>>2]=40;l[158]=l[273];r=e+4|0;l[r>>2]=27;l[t>>2]=l[263];l[t+4>>2]=l[264];l[t+8>>2]=l[265];l[t+12>>2]=l[266];l[263]=k;l[264]=p;l[266]=0;l[265]=t;t=e+28|0;l[t>>2]=7;if((e+32|0)>>>0>>0)do{O=t;t=t+4|0;l[t>>2]=7}while((O+8|0)>>>0>>0);if((e|0)!=(f|0)){a=e-f|0;l[r>>2]=l[r>>2]&-2;l[f+4>>2]=a|1;l[e>>2]=a;t=a>>>3;if(a>>>0<256){e=t<<1;i=644+(e<<2)|0;r=l[151]|0;t=1<>2]|0;if(e>>>0<(l[155]|0)>>>0)Fe();else{P=t;L=e}}else{l[151]=r|t;P=644+(e+2<<2)|0;L=i}l[P>>2]=f;l[L+12>>2]=f;l[f+8>>2]=L;l[f+12>>2]=i;break}t=a>>>8;if(t)if(a>>>0>16777215)i=31;else{U=(t+1048320|0)>>>16&8;O=t<>>16&4;O=O<>>16&2;i=14-(D|U|i)+(O<>>15)|0;i=a>>>(i+7|0)&1|i<<1}else i=0;r=908+(i<<2)|0;l[f+28>>2]=i;l[f+20>>2]=0;l[n>>2]=0;t=l[152]|0;e=1<>2]=f;l[f+24>>2]=r;l[f+12>>2]=f;l[f+8>>2]=f;break}t=l[r>>2]|0;t:do{if((l[t+4>>2]&-8|0)!=(a|0)){i=a<<((i|0)==31?0:25-(i>>>1)|0);while(1){e=t+16+(i>>>31<<2)|0;r=l[e>>2]|0;if(!r)break;if((l[r+4>>2]&-8|0)==(a|0)){T=r;break t}else{i=i<<1;t=r}}if(e>>>0<(l[155]|0)>>>0)Fe();else{l[e>>2]=f;l[f+24>>2]=t;l[f+12>>2]=f;l[f+8>>2]=f;break e}}else T=t}while(0);t=T+8|0;e=l[t>>2]|0;O=l[155]|0;if(e>>>0>=O>>>0&T>>>0>=O>>>0){l[e+12>>2]=f;l[t>>2]=f;l[f+8>>2]=e;l[f+12>>2]=T;l[f+24>>2]=0;break}else Fe()}}else{O=l[155]|0;if((O|0)==0|k>>>0>>0)l[155]=k;l[263]=k;l[264]=p;l[266]=0;l[160]=l[269];l[159]=-1;t=0;do{O=t<<1;U=644+(O<<2)|0;l[644+(O+3<<2)>>2]=U;l[644+(O+2<<2)>>2]=U;t=t+1|0}while((t|0)!=32);O=k+8|0;O=(O&7|0)==0?0:0-O&7;U=p+-40-O|0;l[157]=k+O;l[154]=U;l[k+(O+4)>>2]=U|1;l[k+(p+-36)>>2]=40;l[158]=l[273]}}while(0);t=l[154]|0;if(t>>>0>m>>>0){U=t-m|0;l[154]=U;O=l[157]|0;l[157]=O+m;l[O+(m+4)>>2]=U|1;l[O+4>>2]=m|3;O=O+8|0;return O|0}}O=ur()|0;l[O>>2]=12;O=0;return O|0}function zr(e){e=e|0;var t=0,r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0,m=0,v=0,y=0,g=0,w=0;if(!e)return;t=e+-8|0;o=l[155]|0;if(t>>>0>>0)Fe();r=l[e+-4>>2]|0;i=r&3;if((i|0)==1)Fe();b=r&-8;m=e+(b+-8)|0;do{if(!(r&1)){t=l[t>>2]|0;if(!i)return;s=-8-t|0;u=e+s|0;h=t+b|0;if(u>>>0>>0)Fe();if((u|0)==(l[156]|0)){t=e+(b+-4)|0;r=l[t>>2]|0;if((r&3|0)!=3){w=u;a=h;break}l[153]=h;l[t>>2]=r&-2;l[e+(s+4)>>2]=h|1;l[m>>2]=h;return}n=t>>>3;if(t>>>0<256){i=l[e+(s+8)>>2]|0;r=l[e+(s+12)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0>>0)Fe();if((l[i+12>>2]|0)!=(u|0))Fe()}if((r|0)==(i|0)){l[151]=l[151]&~(1<>>0>>0)Fe();t=r+8|0;if((l[t>>2]|0)==(u|0))f=t;else Fe()}else f=r+8|0;l[i+12>>2]=r;l[f>>2]=i;w=u;a=h;break}f=l[e+(s+24)>>2]|0;i=l[e+(s+12)>>2]|0;do{if((i|0)==(u|0)){r=e+(s+20)|0;t=l[r>>2]|0;if(!t){r=e+(s+16)|0;t=l[r>>2]|0;if(!t){c=0;break}}while(1){i=t+20|0;n=l[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=l[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0>>0)Fe();else{l[r>>2]=0;c=t;break}}else{n=l[e+(s+8)>>2]|0;if(n>>>0>>0)Fe();t=n+12|0;if((l[t>>2]|0)!=(u|0))Fe();r=i+8|0;if((l[r>>2]|0)==(u|0)){l[t>>2]=i;l[r>>2]=n;c=i;break}else Fe()}}while(0);if(f){t=l[e+(s+28)>>2]|0;r=908+(t<<2)|0;if((u|0)==(l[r>>2]|0)){l[r>>2]=c;if(!c){l[152]=l[152]&~(1<>>0<(l[155]|0)>>>0)Fe();t=f+16|0;if((l[t>>2]|0)==(u|0))l[t>>2]=c;else l[f+20>>2]=c;if(!c){w=u;a=h;break}}r=l[155]|0;if(c>>>0>>0)Fe();l[c+24>>2]=f;t=l[e+(s+16)>>2]|0;do{if(t)if(t>>>0>>0)Fe();else{l[c+16>>2]=t;l[t+24>>2]=c;break}}while(0);t=l[e+(s+20)>>2]|0;if(t)if(t>>>0<(l[155]|0)>>>0)Fe();else{l[c+20>>2]=t;l[t+24>>2]=c;w=u;a=h;break}else{w=u;a=h}}else{w=u;a=h}}else{w=t;a=b}}while(0);if(w>>>0>=m>>>0)Fe();t=e+(b+-4)|0;r=l[t>>2]|0;if(!(r&1))Fe();if(!(r&2)){if((m|0)==(l[157]|0)){g=(l[154]|0)+a|0;l[154]=g;l[157]=w;l[w+4>>2]=g|1;if((w|0)!=(l[156]|0))return;l[156]=0;l[153]=0;return}if((m|0)==(l[156]|0)){g=(l[153]|0)+a|0;l[153]=g;l[156]=w;l[w+4>>2]=g|1;l[w+g>>2]=g;return}a=(r&-8)+a|0;n=r>>>3;do{if(r>>>0>=256){f=l[e+(b+16)>>2]|0;t=l[e+(b|4)>>2]|0;do{if((t|0)==(m|0)){r=e+(b+12)|0;t=l[r>>2]|0;if(!t){r=e+(b+8)|0;t=l[r>>2]|0;if(!t){p=0;break}}while(1){i=t+20|0;n=l[i>>2]|0;if(n){t=n;r=i;continue}i=t+16|0;n=l[i>>2]|0;if(!n)break;else{t=n;r=i}}if(r>>>0<(l[155]|0)>>>0)Fe();else{l[r>>2]=0;p=t;break}}else{r=l[e+b>>2]|0;if(r>>>0<(l[155]|0)>>>0)Fe();i=r+12|0;if((l[i>>2]|0)!=(m|0))Fe();n=t+8|0;if((l[n>>2]|0)==(m|0)){l[i>>2]=t;l[n>>2]=r;p=t;break}else Fe()}}while(0);if(f){t=l[e+(b+20)>>2]|0;r=908+(t<<2)|0;if((m|0)==(l[r>>2]|0)){l[r>>2]=p;if(!p){l[152]=l[152]&~(1<>>0<(l[155]|0)>>>0)Fe();t=f+16|0;if((l[t>>2]|0)==(m|0))l[t>>2]=p;else l[f+20>>2]=p ;if(!p)break}r=l[155]|0;if(p>>>0>>0)Fe();l[p+24>>2]=f;t=l[e+(b+8)>>2]|0;do{if(t)if(t>>>0>>0)Fe();else{l[p+16>>2]=t;l[t+24>>2]=p;break}}while(0);t=l[e+(b+12)>>2]|0;if(t)if(t>>>0<(l[155]|0)>>>0)Fe();else{l[p+20>>2]=t;l[t+24>>2]=p;break}}}else{i=l[e+b>>2]|0;r=l[e+(b|4)>>2]|0;t=644+(n<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<(l[155]|0)>>>0)Fe();if((l[i+12>>2]|0)!=(m|0))Fe()}if((r|0)==(i|0)){l[151]=l[151]&~(1<>>0<(l[155]|0)>>>0)Fe();t=r+8|0;if((l[t>>2]|0)==(m|0))d=t;else Fe()}else d=r+8|0;l[i+12>>2]=r;l[d>>2]=i}}while(0);l[w+4>>2]=a|1;l[w+a>>2]=a;if((w|0)==(l[156]|0)){l[153]=a;return}}else{l[t>>2]=r&-2;l[w+4>>2]=a|1;l[w+a>>2]=a}t=a>>>3;if(a>>>0<256){r=t<<1;n=644+(r<<2)|0;i=l[151]|0;t=1<>2]|0;if(r>>>0<(l[155]|0)>>>0)Fe();else{v=t;y=r}}else{l[151]=i|t;v=644+(r+2<<2)|0;y=n}l[v>>2]=w;l[y+12>>2]=w;l[w+8>>2]=y;l[w+12>>2]=n;return}t=a>>>8;if(t)if(a>>>0>16777215)n=31;else{v=(t+1048320|0)>>>16&8;y=t<>>16&4;y=y<>>16&2;n=14-(m|v|n)+(y<>>15)|0;n=a>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;l[w+28>>2]=n;l[w+20>>2]=0;l[w+16>>2]=0;r=l[152]|0;i=1<>2]|0;t:do{if((l[t+4>>2]&-8|0)!=(a|0)){n=a<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;i=l[r>>2]|0;if(!i)break;if((l[i+4>>2]&-8|0)==(a|0)){g=i;break t}else{n=n<<1;t=i}}if(r>>>0<(l[155]|0)>>>0)Fe();else{l[r>>2]=w;l[w+24>>2]=t;l[w+12>>2]=w;l[w+8>>2]=w;break e}}else g=t}while(0);t=g+8|0;r=l[t>>2]|0;y=l[155]|0;if(r>>>0>=y>>>0&g>>>0>=y>>>0){l[r+12>>2]=w;l[t>>2]=w;l[w+8>>2]=r;l[w+12>>2]=g;l[w+24>>2]=0;break}else Fe()}else{l[152]=r|i;l[t>>2]=w;l[w+24>>2]=t;l[w+12>>2]=w;l[w+8>>2]=w}}while(0);w=(l[159]|0)+-1|0;l[159]=w;if(!w)t=1060;else return;while(1){t=l[t>>2]|0;if(!t)break;else t=t+8|0}l[159]=-1;return}function Fr(e,t){e=e|0;t=t|0;var r=0,i=0;if(!e){e=Nr(t)|0;return e|0}if(t>>>0>4294967231){e=ur()|0;l[e>>2]=12;e=0;return e|0}r=Kr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=Nr(t)|0;if(!r){e=0;return e|0}i=l[e+-4>>2]|0;i=(i&-8)-((i&3|0)==0?8:4)|0;Qr(r|0,e|0,(i>>>0>>0?i:t)|0)|0;zr(e);e=r;return e|0}function Hr(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=l[e+-4>>2]|0;t=e&3;if((t|0)==1){t=0;return t|0}t=(e&-8)-((t|0)==0?8:4)|0;return t|0}function Kr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0;b=e+4|0;p=l[b>>2]|0;s=p&-8;u=e+s|0;o=l[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=o>>>0&e>>>0>>0))Fe();i=e+(s|4)|0;n=l[i>>2]|0;if(!(n&1))Fe();if(!r){if(t>>>0<256){e=0;return e|0}if(s>>>0>=(t+4|0)>>>0?(s-t|0)>>>0<=l[271]<<1>>>0:0)return e|0;e=0;return e|0}if(s>>>0>=t>>>0){r=s-t|0;if(r>>>0<=15)return e|0;l[b>>2]=p&1|t|2;l[e+(t+4)>>2]=r|3;l[i>>2]=l[i>>2]|1;Jr(e+t|0,r);return e|0}if((u|0)==(l[157]|0)){r=(l[154]|0)+s|0;if(r>>>0<=t>>>0){e=0;return e|0}d=r-t|0;l[b>>2]=p&1|t|2;l[e+(t+4)>>2]=d|1;l[157]=e+t;l[154]=d;return e|0}if((u|0)==(l[156]|0)){i=(l[153]|0)+s|0;if(i>>>0>>0){e=0;return e|0}r=i-t|0;if(r>>>0>15){l[b>>2]=p&1|t|2;l[e+(t+4)>>2]=r|1;l[e+i>>2]=r;i=e+(i+4)|0;l[i>>2]=l[i>>2]&-2;i=e+t|0}else{l[b>>2]=p&1|i|2;i=e+(i+4)|0;l[i>>2]=l[i>>2]|1;i=0;r=0}l[153]=r;l[156]=i;return e|0}if(n&2){e=0;return e|0}h=(n&-8)+s|0;if(h>>>0>>0){e=0;return e|0}d=h-t|0;a=n>>>3;do{if(n>>>0>=256){f=l[e+(s+24)>>2]|0;a=l[e+(s+12)>>2]|0;do{if((a|0)==(u|0)){i=e+(s+20)|0;r=l[i>>2]|0;if(!r){i=e+(s+16)|0;r=l[i>>2]|0;if(!r){c=0;break}}while(1){n=r+20|0;a=l[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=l[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0>>0)Fe();else{l[i>>2]=0;c=r;break}}else{n=l[e+(s+8)>>2]|0;if(n>>>0>>0)Fe();r=n+12|0;if((l[r>>2]|0)!=(u|0))Fe();i=a+8|0;if((l[i>>2]|0)==(u|0)){l[r>>2]=a;l[i>>2]=n;c=a;break}else Fe()}}while(0);if(f){r=l[e+(s+28)>>2]|0;i=908+(r<<2)|0;if((u|0)==(l[i>>2]|0)){l[i>>2]=c;if(!c){l[152]=l[152]&~(1<>>0<(l[155]|0)>>>0)Fe();r=f+16|0;if((l[r>>2]|0)==(u|0))l[r>>2]=c;else l[f+20>>2]=c;if(!c)break}i=l[155]|0;if(c>>>0>>0)Fe();l[c+24>>2]=f;r=l[e+(s+16)>>2]|0;do{if(r)if(r>>>0>>0)Fe();else{l[c+16>>2]=r;l[r+24>>2]=c;break}}while(0);r=l[e+(s+20)>>2]|0;if(r)if(r>>>0<(l[155]|0)>>>0)Fe();else{l[c+20>>2]=r;l[r+24>>2]=c;break}}}else{n=l[e+(s+8)>>2]|0;i=l[e+(s+12)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0>>0)Fe();if((l[n+12>>2]|0)!=(u|0))Fe()}if((i|0)==(n|0)){l[151]=l[151]&~(1<>>0>>0)Fe();r=i+8|0;if((l[r>>2]|0)==(u|0))f=r;else Fe()}else f=i+8|0;l[n+12>>2]=i;l[f>>2]=n}}while(0);if(d>>>0<16){l[b>>2]=h|p&1|2;t=e+(h|4)|0;l[t>>2]=l[t>>2]|1;return e|0}else{l[b>>2]=p&1|t|2;l[e+(t+4)>>2]=d|3;p=e+(h|4)|0;l[p>>2]=l[p>>2]|1;Jr(e+t|0,d);return e|0}return 0}function Jr(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0,m=0,v=0,y=0,g=0;m=e+t|0;r=l[e+4>>2]|0;do{if(!(r&1)){c=l[e>>2]|0;if(!(r&3))return;d=e+(0-c)|0;h=c+t|0;s=l[155]|0;if(d>>>0>>0)Fe();if((d|0)==(l[156]|0)){i=e+(t+4)|0;r=l[i>>2]|0;if((r&3|0)!=3){g=d;f=h;break}l[153]=h;l[i>>2]=r&-2;l[e+(4-c)>>2]=h|1;l[m>>2]=h;return}a=c>>>3;if(c>>>0<256){n=l[e+(8-c)>>2]|0;i=l[e+(12-c)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0>>0)Fe();if((l[n+12>>2]|0)!=(d|0))Fe()}if((i|0)==(n|0)){l[151]=l[151]&~(1<>>0>>0)Fe();r=i+8|0;if((l[r>>2]|0)==(d|0))o=r;else Fe()}else o=i+8|0;l[n+12>>2]=i;l[o>>2]=n;g=d;f=h;break}o=l[e+(24-c)>>2]|0;n=l[e+(12-c)>>2]|0;do{if((n|0)==(d|0)){n=16-c|0;i=e+(n+4)|0;r=l[i>>2]|0;if(!r){i=e+n|0;r=l[i>>2]|0;if(!r){u=0;break}}while(1){n=r+20|0;a=l[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=l[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0>>0)Fe();else{l[i>>2]=0;u=r;break}}else{a=l[e+(8-c)>>2]|0;if(a>>>0>>0)Fe();r=a+12|0;if((l[r>>2]|0)!=(d|0))Fe();i=n+8|0;if((l[i>>2]|0)==(d|0)){l[r>>2]=n;l[i>>2]=a;u=n;break}else Fe()}}while(0);if(o){r=l[e+(28-c)>>2]|0;i=908+(r<<2)|0;if((d|0)==(l[i>>2]|0)){l[i>>2]=u;if(!u){l[152]=l[152]&~(1<>>0<(l[155]|0)>>>0)Fe();r=o+16|0;if((l[r>>2]|0)==(d|0))l[r>>2]=u;else l[o+20>>2]=u;if(!u){g=d;f=h;break}}n=l[155]|0;if(u>>>0>>0)Fe();l[u+24>>2]=o;r=16-c|0;i=l[e+r>>2]|0;do{if(i)if(i>>>0>>0)Fe();else{l[u+16>>2]=i;l[i+24>>2]=u;break}}while(0);r=l[e+(r+4)>>2]|0;if(r)if(r>>>0<(l[155]|0)>>>0)Fe();else{l[u+20>>2]=r;l[r+24>>2]=u;g=d;f=h;break}else{g=d;f=h}}else{g=d;f=h}}else{g=e;f=t}}while(0);s=l[155]|0;if(m>>>0>>0)Fe();r=e+(t+4)|0;i=l[r>>2]|0;if(!(i&2)){if((m|0)==(l[157]|0)){y=(l[154]|0)+f|0;l[154]=y;l[157]=g;l[g+4>>2]=y|1;if((g|0)!=(l[156]|0))return;l[156]=0;l[153]=0;return}if((m|0)==(l[156]|0)){y=(l[153]|0)+f|0;l[153]=y;l[156]=g;l[g+4>>2]=y|1;l[g+y>>2]=y;return}f=(i&-8)+f|0;a=i>>>3;do{if(i>>>0>=256){o=l[e+(t+24)>>2]|0;n=l[e+(t+12)>>2]|0;do{if((n|0)==(m|0)){i=e+(t+20)|0;r=l[i>>2]|0;if(!r){i=e+(t+16)|0;r=l[i>>2]|0;if(!r){p=0;break}}while(1){n=r+20|0;a=l[n>>2]|0;if(a){r=a;i=n;continue}n=r+16|0;a=l[n>>2]|0;if(!a)break;else{r=a;i=n}}if(i>>>0>>0)Fe();else{l[i>>2]=0;p=r;break}}else{a=l[e+(t+8)>>2]|0;if(a>>>0>>0)Fe();r=a+12|0;if((l[r>>2]|0)!=(m|0))Fe();i=n+8|0;if((l[i>>2]|0)==(m|0)){l[r>>2]=n;l[i>>2]=a;p=n;break}else Fe()}}while(0);if(o){r=l[e+(t+28)>>2]|0;i=908+(r<<2)|0;if((m|0)==(l[i>>2]|0)){l[i>>2]=p;if(!p){l[152]=l[152]&~(1<>>0<(l[155]|0)>>>0)Fe();r=o+16|0;if((l[r>>2]|0)==(m|0))l[r>>2]=p;else l[o+20>>2]=p;if(!p)break}i=l[155]|0;if(p>>>0>>0)Fe();l[p+24>>2]=o;r=l[e+(t+16)>>2]|0;do{if(r)if(r>>>0>>0)Fe();else{l[p+16>>2]=r;l[r+24>>2]=p;break}}while(0);r=l[e+(t+20)>>2]|0;if(r)if(r>>>0<(l[155]|0)>>>0)Fe();else{l[p+20>>2]=r;l[r+24>>2]=p;break}}}else{n=l[e+(t+8)>>2]|0;i=l[e+(t+12)>>2]|0;r=644+(a<<1<<2)|0;if((n|0)!=(r|0)){if(n>>>0>>0)Fe();if((l[n+12>>2]|0)!=(m|0))Fe()}if((i|0)==(n|0)){l[151]=l[151]&~(1<>>0>>0)Fe();r=i+8|0;if((l[r>>2]|0)==(m|0))b=r;else Fe()}else b=i+8|0;l[n+12>>2]=i;l[b>>2]=n}}while(0);l[g+4>>2]=f|1;l[g+f>>2]=f;if((g|0)==(l[156]|0)){l[153]=f;return}}else{l[r>>2]=i&-2;l[g+4>>2]=f|1;l[g+f>>2]=f}r=f>>>3;if(f>>>0<256){i=r<<1;a=644+(i<<2)|0;n=l[151]|0;r=1<>2]|0;if(i>>>0<(l[155]|0)>>>0)Fe();else{v=r;y=i}}else{l[151]=n|r;v=644+(i+2<<2)|0;y=a}l[v>>2]=g;l[y+12>>2]=g;l[g+8>>2]=y;l[g+12>>2]=a;return}r=f>>>8;if(r)if(f>>>0>16777215)a=31;else{v=(r+1048320|0)>>>16&8;y=r<>>16&4;y=y<>>16&2;a=14-(m|v|a)+(y<>>15)|0;a=f>>>(a+7|0)&1|a<<1}else a=0;r=908+(a<<2)|0;l[g+28>>2]=a;l[g+20>>2]=0;l[g+16>>2]=0;i=l[152]|0;n=1<>2]=g;l[g+24>>2]=r;l[g+12>>2]=g;l[g+8>>2]=g;return}r=l[r>>2]|0;e:do{if((l[r+4>>2]&-8|0)!=(f|0)){a=f<<((a|0)==31?0:25-(a>>>1)|0);while(1){i=r+16+(a>>>31<<2)|0;n=l[i>>2]|0;if(!n)break;if((l[n+4>>2]&-8|0)==(f|0)){r=n;break e}else{a=a<<1;r=n}}if(i>>>0<(l[155]|0)>>>0)Fe();l[i>>2]=g;l[g+24>>2]=r;l[g+12>>2]=g;l[g+8>>2]=g;return}}while(0);i=r+8|0;n=l[i>>2]|0;y=l[155]|0;if(!(n>>>0>=y>>>0&r>>>0>=y>>>0))Fe();l[n+12>>2]=g;l[i>>2]=g;l[g+8>>2]=n;l[g+12>>2]=r;l[g+24>>2]=0;return}function Xr(){}function Yr(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;i=t-i-(r>>>0>e>>>0|0)>>>0;return(N=i,e-r>>>0|0)|0}function Vr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,n=0,a=0,f=0;i=e+r|0;if((r|0)>=20){t=t&255;a=e&3;f=t|t<<8|t<<16|t<<24;n=i&~3;if(a){a=e+4-a|0;while((e|0)<(a|0)){h[e>>0]=t;e=e+1|0}}while((e|0)<(n|0)){l[e>>2]=f;e=e+4|0}}while((e|0)<(i|0)){h[e>>0]=t;e=e+1|0}return e-r|0}function Wr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){N=t>>>r;return e>>>r|(t&(1<>>r-32|0}function Gr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){N=t<>>32-r;return e<>>0;return(N=t+i+(r>>>0>>0|0)>>>0,r|0)|0}function Qr(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if((r|0)>=4096)return Pe(e|0,t|0,r|0)|0;i=e|0;if((e&3)==(t&3)){while(e&3){if(!r)return i|0;h[e>>0]=h[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}while((r|0)>=4){l[e>>2]=l[t>>2];e=e+4|0;t=t+4|0;r=r-4|0}}while((r|0)>0){h[e>>0]=h[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}return i|0}function $r(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){N=t>>r;return e>>>r|(t&(1<>r-32|0}function ei(e){e=e|0;var t=0;t=h[M+(e&255)>>0]|0;if((t|0)<8)return t|0;t=h[M+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=h[M+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(h[M+(e>>>24)>>0]|0)+24|0}function ti(e,t){e=e|0;t=t|0;var r=0,i=0,n=0,a=0;a=e&65535;n=t&65535;r=ue(n,a)|0;i=e>>>16;e=(r>>>16)+(ue(n,i)|0)|0;n=t>>>16;t=ue(n,a)|0;return(N=(e>>>16)+(ue(n,i)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|r&65535|0)|0}function ri(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,f=0,o=0,s=0,c=0;c=t>>31|((t|0)<0?-1:0)<<1;s=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;a=i>>31|((i|0)<0?-1:0)<<1;n=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;o=Yr(c^e,s^t,c,s)|0;f=N;e=a^c;t=n^s;return Yr((oi(o,f,Yr(a^r,n^i,a,n)|0,N,0)|0)^e,N^t,e,t)|0}function ii(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,f=0,o=0,s=0,c=0;n=w;w=w+16|0;o=n|0;f=t>>31|((t|0)<0?-1:0)<<1;a=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;c=i>>31|((i|0)<0?-1:0)<<1;s=((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1;e=Yr(f^e,a^t,f,a)|0;t=N;oi(e,t,Yr(c^r,s^i,c,s)|0,N,o)|0;i=Yr(l[o>>2]^f,l[o+4>>2]^a,f,a)|0;r=N;w=n;return(N=r,i)|0}function ni(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0;n=e;a=r;r=ti(n,a)|0;e=N;return(N=(ue(t,a)|0)+(ue(i,n)|0)+e|e&0,r|0|0)|0}function ai(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return oi(e,t,r,i,0)|0}function fi(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0;a=w;w=w+16|0;n=a|0;oi(e,t,r,i,n)|0;w=a;return(N=l[n+4>>2]|0,l[n>>2]|0)|0}function oi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;var a=0,f=0,o=0,s=0,c=0,u=0,h=0,d=0,b=0,p=0;u=e;s=t;c=s;f=r;d=i;o=d;if(!c){a=(n|0)!=0;if(!o){if(a){l[n>>2]=(u>>>0)%(f>>>0);l[n+4>>2]=0}d=0;n=(u>>>0)/(f>>>0)>>>0;return(N=d,n)|0}else{if(!a){d=0;n=0;return(N=d,n)|0}l[n>>2]=e|0;l[n+4>>2]=t&0;d=0;n=0;return(N=d,n)|0}}a=(o|0)==0;do{if(f){if(!a){a=(de(o|0)|0)-(de(c|0)|0)|0;if(a>>>0<=31){h=a+1|0;o=31-a|0;t=a-31>>31;f=h;e=u>>>(h>>>0)&t|c<>>(h>>>0)&t;a=0;o=u<>2]=e|0;l[n+4>>2]=s|t&0;d=0;n=0;return(N=d,n)|0}a=f-1|0;if(a&f){o=(de(f|0)|0)+33-(de(c|0)|0)|0;p=64-o|0;h=32-o|0;s=h>>31;b=o-32|0;t=b>>31;f=o;e=h-1>>31&c>>>(b>>>0)|(c<>>(o>>>0))&t;t=t&c>>>(o>>>0);a=u<>>(b>>>0))&s|u<>31;break}if(n){l[n>>2]=a&u;l[n+4>>2]=0}if((f|0)==1){b=s|t&0;p=e|0|0;return(N=b,p)|0}else{p=ei(f|0)|0;b=c>>>(p>>>0)|0;p=c<<32-p|u>>>(p>>>0)|0;return(N=b,p)|0}}else{if(a){if(n){l[n>>2]=(c>>>0)%(f>>>0);l[n+4>>2]=0}b=0;p=(c>>>0)/(f>>>0)>>>0;return(N=b,p)|0}if(!u){if(n){l[n>>2]=0;l[n+4>>2]=(c>>>0)%(o>>>0)}b=0;p=(c>>>0)/(o>>>0)>>>0;return(N=b,p)|0}a=o-1|0;if(!(a&o)){if(n){l[n>>2]=e|0;l[n+4>>2]=a&c|t&0}b=0;p=c>>>((ei(o|0)|0)>>>0);return(N=b,p)|0}a=(de(o|0)|0)-(de(c|0)|0)|0;if(a>>>0<=30){t=a+1|0;o=31-a|0;f=t;e=c<>>(t>>>0);t=c>>>(t>>>0);a=0;o=u<>2]=e|0;l[n+4>>2]=s|t&0;b=0;p=0;return(N=b,p)|0}}while(0);if(!f){c=o;s=0;o=0}else{h=r|0|0;u=d|i&0;c=Zr(h|0,u|0,-1,-1)|0;r=N;s=o;o=0;do{i=s;s=a>>>31|s<<1;a=o|a<<1;i=e<<1|i>>>31|0;d=e>>>31|t<<1|0;Yr(c,r,i,d)|0;p=N;b=p>>31|((p|0)<0?-1:0)<<1;o=b&1;e=Yr(i,d,b&h,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&u)|0;t=N;f=f-1|0}while((f|0)!=0);c=s;s=0}f=0;if(n){l[n>>2]=e;l[n+4>>2]=t}b=(a|0)>>>31|(c|f)<<1|(f<<1|a>>>31)&0|s;p=(a<<1|0>>>31)&-2|o;return(N=b,p)|0}function si(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;return Ai[e&7](t|0,r|0,i|0)|0}function ci(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;xi[e&3](t|0,r|0,i|0,n|0,a|0)}function ui(e,t){e=e|0;t=t|0;Ii[e&7](t|0)}function hi(e,t){e=e|0;t=t|0;return Ri[e&1](t|0)|0}function di(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;Bi[e&0](t|0,r|0,i|0)}function li(e){e=e|0;Ci[e&3]()}function bi(e,t,r,i,n,a,f){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;f=f|0;Pi[e&3](t|0,r|0,i|0,n|0,a|0,f|0)}function pi(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;return Li[e&1](t|0,r|0,i|0,n|0,a|0)|0}function mi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;Ti[e&3](t|0,r|0,i|0,n|0)}function vi(e,t,r){e=e|0;t=t|0;r=r|0;le(0);return 0}function yi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;le(1)}function gi(e){e=e|0;le(2)}function wi(e){e=e|0;le(3);return 0}function _i(e,t,r){e=e|0;t=t|0;r=r|0;le(4)}function ki(){le(5)}function Si(e,t,r,i,n,a){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;a=a|0;le(6)}function Mi(e,t,r,i,n){e=e|0;t=t|0;r=r|0;i=i|0;n=n|0;le(7);return 0}function Ei(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;le(8)}var Ai=[vi,Vt,Dr,Rr,Ir,Br,vi,vi];var xi=[yi,tr,er,yi];var Ii=[gi,Ht,Xt,Kt,Jt,Yt,sr,jr];var Ri=[wi,xr];var Bi=[_i];var Ci=[ki,fr,or,ki];var Pi=[Si,ir,rr,Si];var Li=[Mi,st];var Ti=[Ei,Gt,Zt,Ei];return{___cxa_can_catch:nr,_crn_get_levels:St,_crn_get_uncompressed_size:Et,_crn_decompress:At,_i64Add:Zr,_crn_get_width:_t,___cxa_is_pointer_type:ar,_i64Subtract:Yr,_memset:Vr,_malloc:Nr,_free:zr,_memcpy:Qr,_bitshift64Lshr:Wr,_fflush:mr,_bitshift64Shl:Gr,_crn_get_height:kt,___errno_location:ur,_crn_get_dxt_format:Mt,runPostSets:Xr,_emscripten_replace_memory:Ve,stackAlloc:We,stackSave:Ge,stackRestore:Ze,establishStackSpace:Qe,setThrew:$e,setTempRet0:rt,getTempRet0:it,dynCall_iiii:si,dynCall_viiiii:ci,dynCall_vi:ui,dynCall_ii:hi,dynCall_viii:di,dynCall_v:li,dynCall_viiiiii:bi,dynCall_iiiiii:pi,dynCall_viiii:mi}}(e.Ya,e.Za,buffer);e.___cxa_can_catch=Z.___cxa_can_catch,e._crn_get_levels=Z._crn_get_levels,e.runPostSets=Z.runPostSets,e._crn_get_uncompressed_size=Z._crn_get_uncompressed_size,e._crn_decompress=Z._crn_decompress;var zc=e._i64Add=Z._i64Add;e._crn_get_height=Z._crn_get_height,e.___cxa_is_pointer_type=Z.___cxa_is_pointer_type;var nb=e._i64Subtract=Z._i64Subtract,qb=e._memset=Z._memset,Ea=e._malloc=Z._malloc,Bc=e._memcpy=Z._memcpy,Xa=e._emscripten_replace_memory=Z._emscripten_replace_memory;e._crn_get_dxt_format=Z._crn_get_dxt_format;var rb=e._bitshift64Lshr=Z._bitshift64Lshr,Na=e._free=Z._free;e._fflush=Z._fflush,e._crn_get_width=Z._crn_get_width,e.___errno_location=Z.___errno_location;var sb=e._bitshift64Shl=Z._bitshift64Shl;e.dynCall_iiii=Z.dynCall_iiii,e.dynCall_viiiii=Z.dynCall_viiiii,e.dynCall_vi=Z.dynCall_vi,e.dynCall_ii=Z.dynCall_ii,e.dynCall_viii=Z.dynCall_viii,e.dynCall_v=Z.dynCall_v,e.dynCall_viiiiii=Z.dynCall_viiiiii,e.dynCall_iiiiii=Z.dynCall_iiiiii,e.dynCall_viiii=Z.dynCall_viiii,n.aa=Z.stackAlloc,n.ua=Z.stackSave,n.ba=Z.stackRestore,n.Cd=Z.establishStackSpace,n.rb=Z.setTempRet0,n.fb=Z.getTempRet0,ia.prototype=Error(),ia.prototype.constructor=ia;var rd=null,jb=function t(){e.calledRun||td(),e.calledRun||(jb=t)};e.callMain=e.zd=function(t){function r(){for(var e=0;3>e;e++)n.push(0)}assert(0==I,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),assert(0==bb.length,"cannot call main when preRun functions remain to be called"),t=t||[],Ha||(Ha=!0,ab(cb));var i=t.length+1,n=[D(hb(e.thisProgram),"i8",0)];r();for(var a=0;a>6],n=0==(32&r) ;if(31==(31&r)){var a=r;for(r=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:h.tag[r]}}function f(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if(0==(128&i))return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=h.tagClassByName[r||"universal"]<<6)}var o=e("inherits"),s=e("buffer").Buffer,c=e("../../asn1"),u=c.base,h=c.constants.der;t.exports=i,i.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},o(n,u.Node),n.prototype._encodeComposite=function(e,t,r,i){var n=f(e,t,r,this.reporter);if(i.length<128){var a=new s(2);return a[0]=n,a[1]=i.length,this._createEncoderBuffer([a,i])}for(var o=1,c=i.length;c>=256;c>>=8)o++;var a=new s(2+o);a[0]=n,a[1]=128|o;for(var c=1+o,u=i.length;u>0;c--,u>>=8)a[c]=255&u;return this._createEncoderBuffer([a,i])},n.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new s(2*e.length),i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var n=0,i=0;i=128;a>>=7)n++}for(var f=new s(n),o=f.length-1,i=e.length-1;i>=0;i--){var a=e[i];for(f[o--]=127&a;(a>>=7)>0;)f[o--]=128|127&a}return this._createEncoderBuffer(f)},n.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=[a(i.getFullYear()),a(i.getUTCMonth()+1),a(i.getUTCDate()),a(i.getUTCHours()),a(i.getUTCMinutes()),a(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[a(i.getFullYear()%100),a(i.getUTCMonth()+1),a(i.getUTCDate()),a(i.getUTCHours()),a(i.getUTCMinutes()),a(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},n.prototype._encodeNull=function(){return this._createEncoderBuffer("")},n.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new s(r)}if(s.isBuffer(e)){var i=e.length;0===e.length&&i++;var n=new s(i);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,a=e;a>=256;a>>=8)i++;for(var n=new Array(i),a=n.length-1;a>=0;a--)n[a]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new s(n))},n.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},n.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},n.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),a.length!==n.defaultBuffer.length)return!1;for(i=0;i0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function n(e){return 3*e.length/4-i(e)}function a(e){var t,r,n,a,f,o=e.length;a=i(e),f=new h(3*o/4-a),r=a>0?o-4:o;var s=0;for(t=0;t>16&255,f[s++]=n>>8&255,f[s++]=255&n;return 2===a?(n=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,f[s++]=255&n):1===a&&(n=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,f[s++]=n>>8&255,f[s++]=255&n),f}function f(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function o(e,t,r){for(var i,n=[],a=t;as?s:f+16383));return 1===i?(t=e[r-1],n+=c[t>>2],n+=c[t<<4&63],n+="=="):2===i&&(t=(e[r-2]<<8)+e[r-1],n+=c[t>>10],n+=c[t>>4&63],n+=c[t<<2&63],n+="="),a.push(n),a.join("")}r.byteLength=n,r.toByteArray=a,r.fromByteArray=s;for(var c=[],u=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,b=d.length;l=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:15&f}return i}function o(e,t,r,i){for(var n=0,a=Math.min(e.length,r),f=t;f=49?o-49+10:o>=17?o-17+10:o}return n}function s(e){for(var t=new Array(e.bitLength()),r=0;r>>n}return t}function c(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],f=n*a,o=67108863&f,s=f/67108864|0;r.words[0]=o;for(var c=1;c>>26,h=67108863&s,d=Math.min(c,t.length-1),l=Math.max(0,c-e.length+1);l<=d;l++){var b=c-l|0;n=0|e.words[b],a=0|t.words[l],f=n*a+h,u+=f/67108864|0,h=67108863&f}r.words[c]=0|h,s=0|u}return 0!==s?r.words[c]=0|s:r.length--,r.strip()}function u(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a>>26)|0,n+=f>>>26,f&=67108863}r.words[a]=o,i=f,f=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}function h(e,t,r){return(new d).mulp(e,t,r)}function d(e,t){this.x=e,this.y=t}function l(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){l.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function p(){l.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function m(){l.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){l.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function g(e){y.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var w;try{w=e("buffer").Buffer}catch(e){}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;"-"===e[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)f=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[a]|=f<>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===r)for(n=0,a=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)n=f(e,r,r+6),this.words[i]|=n<>>26-a&4194303,(a+=24)>=26&&(a-=26,i++);r+6!==t&&(n=f(e,t,r+6),this.words[i]|=n<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,f=a%i,s=Math.min(a,a-f)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e=e||10,t=0|t||1;var r;if(16===e||"hex"===e){r="";for(var n=0,a=0,f=0;f>>24-n&16777215,r=0!==a||f!==this.length-1?_[6-s.length]+s+r:s+r,n+=2,n>=26&&(n-=26,f--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=k[e],u=S[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var d=h.modn(u).toString(e);h=h.idivn(u),r=h.isZero()?d+r:_[c-d.length]+d+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==w),this.toArrayLike(w,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),a=r||Math.max(1,n);i(n<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var f,o,s="le"===t,c=new e(a),u=this.clone();if(s){for(o=0;!u.isZero();o++)f=u.andln(255),u.iushrn(8),c[o]=f;for(;o=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var i,n;r>0?(i=this,n=e):(i=e,n=this);for(var a=0,f=0;f>26,this.words[f]=67108863&t;for(;0!==a&&f>26,this.words[f]=67108863&t;if(0===a&&f>>13,l=0|f[1],b=8191&l,p=l>>>13,m=0|f[2],v=8191&m,y=m>>>13,g=0|f[3],w=8191&g,_=g>>>13,k=0|f[4],S=8191&k,M=k>>>13,E=0|f[5],A=8191&E,x=E>>>13,I=0|f[6],R=8191&I,B=I>>>13,C=0|f[7],P=8191&C,L=C>>>13,T=0|f[8],j=8191&T,D=T>>>13,U=0|f[9],O=8191&U,q=U>>>13,N=0|o[0],z=8191&N,F=N>>>13,H=0|o[1],K=8191&H,J=H>>>13,X=0|o[2],Y=8191&X,V=X>>>13,W=0|o[3],G=8191&W,Z=W>>>13,Q=0|o[4],$=8191&Q,ee=Q>>>13,te=0|o[5],re=8191&te,ie=te>>>13,ne=0|o[6],ae=8191&ne,fe=ne>>>13,oe=0|o[7],se=8191&oe,ce=oe>>>13,ue=0|o[8],he=8191&ue,de=ue>>>13,le=0|o[9],be=8191&le,pe=le>>>13;r.negative=e.negative^t.negative,r.length=19,i=Math.imul(h,z),n=Math.imul(h,F),n=n+Math.imul(d,z)|0,a=Math.imul(d,F);var me=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(me>>>26)|0,me&=67108863,i=Math.imul(b,z),n=Math.imul(b,F),n=n+Math.imul(p,z)|0,a=Math.imul(p,F),i=i+Math.imul(h,K)|0,n=n+Math.imul(h,J)|0,n=n+Math.imul(d,K)|0,a=a+Math.imul(d,J)|0;var ve=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(v,z),n=Math.imul(v,F),n=n+Math.imul(y,z)|0,a=Math.imul(y,F),i=i+Math.imul(b,K)|0,n=n+Math.imul(b,J)|0,n=n+Math.imul(p,K)|0,a=a+Math.imul(p,J)|0,i=i+Math.imul(h,Y)|0,n=n+Math.imul(h,V)|0,n=n+Math.imul(d,Y)|0,a=a+Math.imul(d,V)|0;var ye=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(w,z),n=Math.imul(w,F),n=n+Math.imul(_,z)|0,a=Math.imul(_,F),i=i+Math.imul(v,K)|0,n=n+Math.imul(v,J)|0,n=n+Math.imul(y,K)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(b,Y)|0,n=n+Math.imul(b,V)|0,n=n+Math.imul(p,Y)|0,a=a+Math.imul(p,V)|0,i=i+Math.imul(h,G)|0,n=n+Math.imul(h,Z)|0,n=n+Math.imul(d,G)|0,a=a+Math.imul(d,Z)|0;var ge=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(S,z),n=Math.imul(S,F),n=n+Math.imul(M,z)|0,a=Math.imul(M,F),i=i+Math.imul(w,K)|0,n=n+Math.imul(w,J)|0,n=n+Math.imul(_,K)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(v,V)|0,n=n+Math.imul(y,Y)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(b,G)|0,n=n+Math.imul(b,Z)|0,n=n+Math.imul(p,G)|0,a=a+Math.imul(p,Z)|0,i=i+Math.imul(h,$)|0,n=n+Math.imul(h,ee)|0,n=n+Math.imul(d,$)|0,a=a+Math.imul(d,ee)|0;var we=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(A,z),n=Math.imul(A,F),n=n+Math.imul(x,z)|0,a=Math.imul(x,F),i=i+Math.imul(S,K)|0,n=n+Math.imul(S,J)|0,n=n+Math.imul(M,K)|0,a=a+Math.imul(M,J)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(w,V)|0,n=n+Math.imul(_,Y)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(v,G)|0,n=n+Math.imul(v,Z)|0,n=n+Math.imul(y,G)|0,a=a+Math.imul(y,Z)|0,i=i+Math.imul(b,$)|0,n=n+Math.imul(b,ee)|0,n=n+Math.imul(p,$)|0,a=a+Math.imul(p,ee)|0,i=i+Math.imul(h,re)|0,n=n+Math.imul(h,ie)|0,n=n+Math.imul(d,re)|0,a=a+Math.imul(d,ie)|0;var _e=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(R,z),n=Math.imul(R,F),n=n+Math.imul(B,z)|0,a=Math.imul(B,F),i=i+Math.imul(A,K)|0,n=n+Math.imul(A,J)|0,n=n+Math.imul(x,K)|0,a=a+Math.imul(x,J)|0,i=i+Math.imul(S,Y)|0,n=n+Math.imul(S,V)|0,n=n+Math.imul(M,Y)|0,a=a+Math.imul(M,V)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(w,Z)|0,n=n+Math.imul(_,G)|0,a=a+Math.imul(_,Z)|0,i=i+Math.imul(v,$)|0,n=n+Math.imul(v,ee)|0,n=n+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(b,re)|0,n=n+Math.imul(b,ie)|0,n=n+Math.imul(p,re)|0,a=a+Math.imul(p,ie)|0,i=i+Math.imul(h,ae)|0,n=n+Math.imul(h,fe)|0,n=n+Math.imul(d,ae)|0,a=a+Math.imul(d,fe)|0;var ke=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(P,z),n=Math.imul(P,F),n=n+Math.imul(L,z)|0,a=Math.imul(L,F),i=i+Math.imul(R,K)|0,n=n+Math.imul(R,J)|0,n=n+Math.imul(B,K)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(A,V)|0,n=n+Math.imul(x,Y)|0,a=a+Math.imul(x,V)|0,i=i+Math.imul(S,G)|0,n=n+Math.imul(S,Z)|0,n=n+Math.imul(M,G)|0,a=a+Math.imul(M,Z)|0,i=i+Math.imul(w,$)|0,n=n+Math.imul(w,ee)|0,n=n+Math.imul(_,$)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(v,re)|0,n=n+Math.imul(v,ie)|0,n=n+Math.imul(y,re)|0,a=a+Math.imul(y,ie)|0,i=i+Math.imul(b,ae)|0,n=n+Math.imul(b,fe)|0,n=n+Math.imul(p,ae)|0,a=a+Math.imul(p,fe)|0,i=i+Math.imul(h,se)|0,n=n+Math.imul(h,ce)|0,n=n+Math.imul(d,se)|0,a=a+Math.imul(d,ce)|0;var Se=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(j,z),n=Math.imul(j,F),n=n+Math.imul(D,z)|0,a=Math.imul(D,F),i=i+Math.imul(P,K)|0,n=n+Math.imul(P,J)|0,n=n+Math.imul(L,K)|0,a=a+Math.imul(L,J)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(R,V)|0,n=n+Math.imul(B,Y)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(A,G)|0,n=n+Math.imul(A,Z)|0,n=n+Math.imul(x,G)|0,a=a+Math.imul(x,Z)|0,i=i+Math.imul(S,$)|0,n=n+Math.imul(S,ee)|0,n=n+Math.imul(M,$)|0,a=a+Math.imul(M,ee)|0,i=i+Math.imul(w,re)|0,n=n+Math.imul(w,ie)|0,n=n+Math.imul(_,re)|0,a=a+Math.imul(_,ie)|0,i=i+Math.imul(v,ae)|0,n=n+Math.imul(v,fe)|0,n=n+Math.imul(y,ae)|0,a=a+Math.imul(y,fe)|0,i=i+Math.imul(b,se)|0,n=n+Math.imul(b,ce)|0,n=n+Math.imul(p,se)|0,a=a+Math.imul(p,ce)|0,i=i+Math.imul(h,he)|0,n=n+Math.imul(h,de)|0,n=n+Math.imul(d,he)|0,a=a+Math.imul(d,de)|0;var Me=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(O,z),n=Math.imul(O,F),n=n+Math.imul(q,z)|0,a=Math.imul(q,F),i=i+Math.imul(j,K)|0,n=n+Math.imul(j,J)|0,n=n+Math.imul(D,K)|0,a=a+Math.imul(D,J)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(P,V)|0,n=n+Math.imul(L,Y)|0,a=a+Math.imul(L,V)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(R,Z)|0,n=n+Math.imul(B,G)|0,a=a+Math.imul(B,Z)|0,i=i+Math.imul(A,$)|0,n=n+Math.imul(A,ee)|0,n=n+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,i=i+Math.imul(S,re)|0,n=n+Math.imul(S,ie)|0,n=n+Math.imul(M,re)|0,a=a+Math.imul(M,ie)|0,i=i+Math.imul(w,ae)|0,n=n+Math.imul(w,fe)|0,n=n+Math.imul(_,ae)|0,a=a+Math.imul(_,fe)|0,i=i+Math.imul(v,se)|0,n=n+Math.imul(v,ce)|0,n=n+Math.imul(y,se)|0,a=a+Math.imul(y,ce)|0,i=i+Math.imul(b,he)|0,n=n+Math.imul(b,de)|0,n=n+Math.imul(p,he)|0,a=a+Math.imul(p,de)|0,i=i+Math.imul(h,be)|0,n=n+Math.imul(h,pe)|0,n=n+Math.imul(d,be)|0,a=a+Math.imul(d,pe)|0;var Ee=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(O,K),n=Math.imul(O,J),n=n+Math.imul(q,K)|0,a=Math.imul(q,J),i=i+Math.imul(j,Y)|0,n=n+Math.imul(j,V)|0,n=n+Math.imul(D,Y)|0,a=a+Math.imul(D,V)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(P,Z)|0,n=n+Math.imul(L,G)|0,a=a+Math.imul(L,Z)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(R,ee)|0,n=n+Math.imul(B,$)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(A,re)|0,n=n+Math.imul(A,ie)|0,n=n+Math.imul(x,re)|0,a=a+Math.imul(x,ie)|0,i=i+Math.imul(S,ae)|0,n=n+Math.imul(S,fe)|0,n=n+Math.imul(M,ae)|0,a=a+Math.imul(M,fe)|0,i=i+Math.imul(w,se)|0,n=n+Math.imul(w,ce)|0,n=n+Math.imul(_,se)|0,a=a+Math.imul(_,ce)|0,i=i+Math.imul(v,he)|0,n=n+Math.imul(v,de)|0,n=n+Math.imul(y,he)|0,a=a+Math.imul(y,de)|0,i=i+Math.imul(b,be)|0,n=n+Math.imul(b,pe)|0,n=n+Math.imul(p,be)|0,a=a+Math.imul(p,pe)|0;var Ae=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(O,Y),n=Math.imul(O,V),n=n+Math.imul(q,Y)|0,a=Math.imul(q,V),i=i+Math.imul(j,G)|0,n=n+Math.imul(j,Z)|0,n=n+Math.imul(D,G)|0,a=a+Math.imul(D,Z)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(P,ee)|0,n=n+Math.imul(L,$)|0,a=a+Math.imul(L,ee)|0,i=i+Math.imul(R,re)|0,n=n+Math.imul(R,ie)|0,n=n+Math.imul(B,re)|0,a=a+Math.imul(B,ie)|0,i=i+Math.imul(A,ae)|0,n=n+Math.imul(A,fe)|0,n=n+Math.imul(x,ae)|0,a=a+Math.imul(x,fe)|0,i=i+Math.imul(S,se)|0,n=n+Math.imul(S,ce)|0,n=n+Math.imul(M,se)|0,a=a+Math.imul(M,ce)|0,i=i+Math.imul(w,he)|0,n=n+Math.imul(w,de)|0,n=n+Math.imul(_,he)|0,a=a+Math.imul(_,de)|0,i=i+Math.imul(v,be)|0,n=n+Math.imul(v,pe)|0,n=n+Math.imul(y,be)|0,a=a+Math.imul(y,pe)|0;var xe=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(O,G),n=Math.imul(O,Z),n=n+Math.imul(q,G)|0,a=Math.imul(q,Z),i=i+Math.imul(j,$)|0,n=n+Math.imul(j,ee)|0,n=n+Math.imul(D,$)|0,a=a+Math.imul(D,ee)|0,i=i+Math.imul(P,re)|0,n=n+Math.imul(P,ie)|0,n=n+Math.imul(L,re)|0,a=a+Math.imul(L,ie)|0,i=i+Math.imul(R,ae)|0,n=n+Math.imul(R,fe)|0,n=n+Math.imul(B,ae)|0,a=a+Math.imul(B,fe)|0,i=i+Math.imul(A,se)|0,n=n+Math.imul(A,ce)|0,n=n+Math.imul(x,se)|0,a=a+Math.imul(x,ce)|0,i=i+Math.imul(S,he)|0,n=n+Math.imul(S,de)|0,n=n+Math.imul(M,he)|0,a=a+Math.imul(M,de)|0,i=i+Math.imul(w,be)|0,n=n+Math.imul(w,pe)|0,n=n+Math.imul(_,be)|0,a=a+Math.imul(_,pe)|0;var Ie=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(O,$),n=Math.imul(O,ee),n=n+Math.imul(q,$)|0,a=Math.imul(q,ee),i=i+Math.imul(j,re)|0, n=n+Math.imul(j,ie)|0,n=n+Math.imul(D,re)|0,a=a+Math.imul(D,ie)|0,i=i+Math.imul(P,ae)|0,n=n+Math.imul(P,fe)|0,n=n+Math.imul(L,ae)|0,a=a+Math.imul(L,fe)|0,i=i+Math.imul(R,se)|0,n=n+Math.imul(R,ce)|0,n=n+Math.imul(B,se)|0,a=a+Math.imul(B,ce)|0,i=i+Math.imul(A,he)|0,n=n+Math.imul(A,de)|0,n=n+Math.imul(x,he)|0,a=a+Math.imul(x,de)|0,i=i+Math.imul(S,be)|0,n=n+Math.imul(S,pe)|0,n=n+Math.imul(M,be)|0,a=a+Math.imul(M,pe)|0;var Re=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,i=Math.imul(O,re),n=Math.imul(O,ie),n=n+Math.imul(q,re)|0,a=Math.imul(q,ie),i=i+Math.imul(j,ae)|0,n=n+Math.imul(j,fe)|0,n=n+Math.imul(D,ae)|0,a=a+Math.imul(D,fe)|0,i=i+Math.imul(P,se)|0,n=n+Math.imul(P,ce)|0,n=n+Math.imul(L,se)|0,a=a+Math.imul(L,ce)|0,i=i+Math.imul(R,he)|0,n=n+Math.imul(R,de)|0,n=n+Math.imul(B,he)|0,a=a+Math.imul(B,de)|0,i=i+Math.imul(A,be)|0,n=n+Math.imul(A,pe)|0,n=n+Math.imul(x,be)|0,a=a+Math.imul(x,pe)|0;var Be=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,i=Math.imul(O,ae),n=Math.imul(O,fe),n=n+Math.imul(q,ae)|0,a=Math.imul(q,fe),i=i+Math.imul(j,se)|0,n=n+Math.imul(j,ce)|0,n=n+Math.imul(D,se)|0,a=a+Math.imul(D,ce)|0,i=i+Math.imul(P,he)|0,n=n+Math.imul(P,de)|0,n=n+Math.imul(L,he)|0,a=a+Math.imul(L,de)|0,i=i+Math.imul(R,be)|0,n=n+Math.imul(R,pe)|0,n=n+Math.imul(B,be)|0,a=a+Math.imul(B,pe)|0;var Ce=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(O,se),n=Math.imul(O,ce),n=n+Math.imul(q,se)|0,a=Math.imul(q,ce),i=i+Math.imul(j,he)|0,n=n+Math.imul(j,de)|0,n=n+Math.imul(D,he)|0,a=a+Math.imul(D,de)|0,i=i+Math.imul(P,be)|0,n=n+Math.imul(P,pe)|0,n=n+Math.imul(L,be)|0,a=a+Math.imul(L,pe)|0;var Pe=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(O,he),n=Math.imul(O,de),n=n+Math.imul(q,he)|0,a=Math.imul(q,de),i=i+Math.imul(j,be)|0,n=n+Math.imul(j,pe)|0,n=n+Math.imul(D,be)|0,a=a+Math.imul(D,pe)|0;var Le=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,i=Math.imul(O,be),n=Math.imul(O,pe),n=n+Math.imul(q,be)|0,a=Math.imul(q,pe);var Te=(c+i|0)+((8191&n)<<13)|0;return c=(a+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,s[0]=me,s[1]=ve,s[2]=ye,s[3]=ge,s[4]=we,s[5]=_e,s[6]=ke,s[7]=Se,s[8]=Me,s[9]=Ee,s[10]=Ae,s[11]=xe,s[12]=Ie,s[13]=Re,s[14]=Be,s[15]=Ce,s[16]=Pe,s[17]=Le,s[18]=Te,0!==c&&(s[19]=c,r.length++),r};Math.imul||(M=c),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?M(this,e,t):r<63?c(this,e,t):r<1024?u(this,e,t):h(this,e,t)},d.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},d.prototype.permute=function(e,t,r,i,n,a){for(var f=0;f>>=1)n++;return 1<>>=13,r[2*f+1]=8191&a,a>>>=13;for(f=2*t;f>=26,t+=n/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=s(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var f=0;for(t=0;t>>26-r}f&&(this.words[t]=f,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0);var n;n=t?(t-t%26)/26:0;var a=e%26,f=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<f)for(this.length-=f,c=0;c=0&&(0!==u||c>=n);c--){var h=0|this.words[c];this.words[c]=u<<26-a|h>>>a,u=h&o}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[n+r]=67108863&f}for(;n>26,this.words[n+r]=67108863&f;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&f;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=this.length-e.length,i=this.clone(),n=e,f=0|n.words[n.length-1];0!==(r=26-this._countBits(f))&&(n=n.ushln(r),i.iushln(r),f=0|n.words[n.length-1]);var o,s=i.length-n.length;if("mod"!==t){o=new a(null),o.length=s+1,o.words=new Array(o.length);for(var c=0;c=0;h--){var d=67108864*(0|i.words[n.length+h])+(0|i.words[n.length+h-1]);for(d=Math.min(d/f|0,67108863),i._ishlnsubmul(n,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(n,1,h),i.isZero()||(i.negative^=1);o&&(o.words[h]=d)}return o&&o.strip(),i.strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:o||null,mod:i}},a.prototype.divmod=function(e,t,r){if(i(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var n,f,o;return 0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(f=o.mod.neg(),r&&0!==f.negative&&f.iadd(e)),{div:n,mod:f}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(f=o.mod.neg(),r&&0!==f.negative&&f.isub(e)),{div:o.div,mod:f}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),f=new a(0),o=new a(0),s=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),h=t.clone();!t.isZero();){for(var d=0,l=1;0==(t.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(n.isOdd()||f.isOdd())&&(n.iadd(u),f.isub(h)),n.iushrn(1),f.iushrn(1);for(var b=0,p=1;0==(r.words[0]&p)&&b<26;++b,p<<=1);if(b>0)for(r.iushrn(b);b-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(u),s.isub(h)),o.iushrn(1),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),f.isub(s)):(r.isub(t),o.isub(n),s.isub(f))}return{a:o,b:s,gcd:r.iushln(c)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),f=new a(0),o=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var s=0,c=1;0==(t.words[0]&c)&&s<26;++s,c<<=1);if(s>0)for(t.iushrn(s);s-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);for(var u=0,h=1;0==(r.words[0]&h)&&u<26;++u,h<<=1);if(u>0)for(r.iushrn(u);u-- >0;)f.isOdd()&&f.iadd(o),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(f)):(r.isub(t),f.isub(n))}var d;return d=0===t.cmpn(1)?n:f,d.cmpn(0)<0&&d.iadd(e),d},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[f]=o}return 0!==a&&(this.words[f]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var r;if(this.length>1)r=1;else{t&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new y(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};l.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},l.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),t=r.bitLength()}while(t>this.n);var i=t0?r.isub(this.p):r.strip(),r},l.prototype.split=function(e,t){e.iushrn(this.n,0,t)},l.prototype.imulK=function(e){return e.imul(this.k)},n(b,l),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(E[e])return E[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new p;else if("p192"===e)t=new m;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new v}return E[e]=t,t},y.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},y.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},y.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},y.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},y.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},y.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},y.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},y.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},y.prototype.isqr=function(e){return this.imul(e,e.clone())},y.prototype.sqr=function(e){return this.mul(e,e)},y.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),f=0;!n.isZero()&&0===n.andln(1);)f++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),s=o.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(s);)u.redIAdd(s);for(var h=this.pow(u,n),d=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),b=f;0!==l.cmp(o);){for(var p=l,m=0;0!==p.cmp(o);m++)p=p.redSqr();i(m=0;i--){for(var c=t.words[i],u=s-1;u>=0;u--){var h=c>>u&1;n!==r[0]&&(n=this.sqr(n)),0!==h||0!==f?(f<<=1,f|=h,(4===++o||0===i&&0===u)&&(n=this.mul(n,r[f]),o=0,f=0)):o=0}s=26}return n},y.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},y.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new g(e)},n(g,y),g.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},g.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},g.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},g.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),f=n;return n.cmp(this.m)>=0?f=n.isub(this.m):n.cmpn(0)<0&&(f=n.iadd(this.m)),f._forceRed(this)},g.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:19}],18:[function(e,t,r){function i(e){this.rand=e}var n;if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>24]^u[b>>>16&255]^h[p>>>8&255]^d[255&m]^t[v++],f=c[b>>>24]^u[p>>>16&255]^h[m>>>8&255]^d[255&l]^t[v++],o=c[p>>>24]^u[m>>>16&255]^h[l>>>8&255]^d[255&b]^t[v++],s=c[m>>>24]^u[l>>>16&255]^h[b>>>8&255]^d[255&p]^t[v++],l=a,b=f,p=o,m=s;return a=(i[l>>>24]<<24|i[b>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^t[v++],f=(i[b>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&l])^t[v++],o=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[l>>>8&255]<<8|i[255&b])^t[v++],s=(i[m>>>24]<<24|i[l>>>16&255]<<16|i[b>>>8&255]<<8|i[255&p])^t[v++],a>>>=0,f>>>=0,o>>>=0,s>>>=0,[a,f,o,s]}function f(e){this._key=i(e),this._reset()}var o=e("safe-buffer").Buffer,s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],f=0,o=0,s=0;s<256;++s){var c=o^o<<1^o<<2^o<<3^o<<4;c=c>>>8^255&c^99,r[f]=c,i[c]=f;var u=e[f],h=e[u],d=e[h],l=257*e[c]^16843008*c;n[0][f]=l<<24|l>>>8,n[1][f]=l<<16|l>>>16,n[2][f]=l<<8|l>>>24,n[3][f]=l,l=16843009*d^65537*h^257*u^16843008*f,a[0][c]=l<<24|l>>>8,a[1][c]=l<<16|l>>>16,a[2][c]=l<<8|l>>>24,a[3][c]=l,0===f?f=o=1:(f=u^e[e[e[d^u]]],o^=e[e[o]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}}();f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=4*(r+1),n=[],a=0;a>>24,f=c.SBOX[f>>>24]<<24|c.SBOX[f>>>16&255]<<16|c.SBOX[f>>>8&255]<<8|c.SBOX[255&f],f^=s[a/t|0]<<24):t>6&&a%t==4&&(f=c.SBOX[f>>>24]<<24|c.SBOX[f>>>16&255]<<16|c.SBOX[f>>>8&255]<<8|c.SBOX[255&f]),n[a]=n[a-t]^f}for(var o=[],u=0;u>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=o},f.prototype.encryptBlockRaw=function(e){return e=i(e),a(e,this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=o.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){e=i(e);var t=e[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),n=o.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n},f.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=f},{"safe-buffer":143}],21:[function(e,t,r){function i(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},n.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=o,r.createDecipheriv=f},{"./aes":20,"./authCipher":21,"./modes":33,"./streamCipher":36,"cipher-base":50,evp_bytestokey:86,inherits:103,"safe-buffer":143}],24:[function(e,t,r){function i(e,t,r){h.call(this),this._cache=new n,this._cipher=new d.AES(t),this._prev=c.from(r),this._mode=e,this._autopadding=!0}function n(){this.cache=c.allocUnsafe(0)}function a(e,t,r){var n=o[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=c.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=c.from(r)),"GCM"!==n.mode&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===n.type?new u(n.module,t,r):"auth"===n.type?new s(n.module,t,r):new i(n.module,t,r)}function f(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=l(t,!1,r.key,r.iv);return a(e,i.key,i.iv)}var o=e("./modes"),s=e("./authCipher"),c=e("safe-buffer").Buffer,u=e("./streamCipher"),h=e("cipher-base"),d=e("./aes"),l=e("evp_bytestokey");e("inherits")(i,h),i.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return c.concat(i)};var b=c.alloc(16,16);i.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(b))throw this._cipher.scrub(),new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},n.prototype.add=function(e){this.cache=c.concat([this.cache,e])},n.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},n.prototype.flush=function(){for(var e=16-this.cache.length,t=c.allocUnsafe(e),r=-1;++r>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=f.alloc(16,0),this.cache=f.allocUnsafe(0)}var f=e("safe-buffer").Buffer,o=f.alloc(16,0);a.prototype.ghash=function(e){for(var t=-1;++t0;e--)a[e]=a[e]>>>1|(1&a[e-1])<<31;a[0]=a[0]>>>1,r&&(a[0]=a[0]^225<<24)}this.state=n(f)},a.prototype.update=function(e){this.cache=f.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(f.concat([this.cache,o],16)),this.ghash(n([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":143}],26:[function(e,t,r){function i(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}t.exports=i},{}],27:[function(e,t,r){var i=e("buffer-xor");r.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return i(n,r)}},{"buffer-xor":48}],28:[function(e,t,r){function i(e,t,r){var i=t.length,f=a(t,e._cache);return e._cache=e._cache.slice(i),e._prev=n.concat([e._prev,r?t:f]),f}var n=e("safe-buffer").Buffer,a=e("buffer-xor");r.encrypt=function(e,t,r){for(var a,f=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){f=n.concat([f,i(e,t,r)]);break}a=e._cache.length,f=n.concat([f,i(e,t.slice(0,a),r)]),t=t.slice(a)}return f}},{"buffer-xor":48,"safe-buffer":143}],29:[function(e,t,r){function i(e,t,r){for(var i,a,f,o=-1,s=0;++o<8;)i=e._cipher.encryptBlock(e._prev),a=t&1<<7-o?128:0,f=i[0]^a,s+=(128&f)>>o%8,e._prev=n(e._prev,r?a:f);return s}function n(e,t){var r=e.length,i=-1,n=a.allocUnsafe(e.length);for(e=a.concat([e,a.from([t])]);++i>7;return n}var a=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var n=t.length,f=a.allocUnsafe(n),o=-1;++o=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new f(o(t));return r}var f=e("bn.js"),o=e("randombytes");t.exports=n,n.getr=a}).call(this,e("buffer").Buffer)},{"bn.js":17,buffer:49,randombytes:130}],41:[function(e,t,r){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":42}],42:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],43:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],44:[function(e,t,r){(function(r){function i(e){s.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function n(e){s.Writable.call(this);var t=d[e];if(!t)throw new Error("Unknown message digest");this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function a(e){return new i(e)}function f(e){return new n(e)}var o=e("create-hash"),s=e("stream"),c=e("inherits"),u=e("./sign"),h=e("./verify"),d=e("./algorithms.json");Object.keys(d).forEach(function(e){d[e].id=new r(d[e].id,"hex"),d[e.toLowerCase()]=d[e]}),c(i,s.Writable),i.prototype._write=function(e,t,r){this._hash.update(e),r()},i.prototype.update=function(e,t){return"string"==typeof e&&(e=new r(e,t)),this._hash.update(e),this},i.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),i=u(r,e,this._hashType,this._signType,this._tag);return t?i.toString(t):i},c(n,s.Writable),n.prototype._write=function(e,t,r){this._hash.update(e),r()},n.prototype.update=function(e,t){return"string"==typeof e&&(e=new r(e,t)),this._hash.update(e),this},n.prototype.verify=function(e,t,i){"string"==typeof t&&(t=new r(t,i)),this.end();var n=this._hash.digest();return h(t,n,e,this._signType,this._tag)},t.exports={Sign:a,Verify:f,createSign:a,createVerify:f}}).call(this,e("buffer").Buffer)},{"./algorithms.json":42,"./sign":45,"./verify":46,buffer:49,"create-hash":53,inherits:103,stream:152}],45:[function(e,t,r){(function(r){function i(e,t,i,f,o){var s=m(t);if(s.curve){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");return n(e,s)}if("dsa"===s.type){if("dsa"!==f)throw new Error("wrong private key type");return a(e,s,i)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");e=r.concat([o,e]);for(var c=s.modulus.byteLength(),u=[0,1];e.length+u.length+10&&r.ishrn(i),r}function c(e,t){e=s(e,t),e=e.mod(t);var i=new r(e.toArray());if(i.length=t)throw new Error("invalid sig")}var o=e("bn.js"),s=e("elliptic").ec,c=e("parse-asn1"),u=e("./curves.json");t.exports=i}).call(this,e("buffer").Buffer)},{"./curves.json":43,"bn.js":17,buffer:49,elliptic:69,"parse-asn1":115}],47:[function(e,t,r){arguments[4][19][0].apply(r,arguments)},{dup:19}],48:[function(e,t,r){(function(e){t.exports=function(t,r){for(var i=Math.min(t.length,r.length),n=new e(i),a=0;a=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function p(e){return+e!=e&&(e=0),a.alloc(+e)}function m(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(i)return K(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return B(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function g(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:w(e,t,r,i,n);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,i,n){function a(e,t){return 1===f?e[t]:e.readUInt16BE(t*f)}var f=1,o=e.length,s=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;f=2,o/=2,s/=2,r/=2}var c;if(n){var u=-1;for(c=r;co&&(r=o-s),c=r;c>=0;c--){for(var h=!0,d=0;dn&&(i=n):i=n;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var f=0;f239?4:a>223?3:a>191?2:1;if(n+o<=r){var s,c,u,h;switch(o){case 1:a<128&&(f=a);break;case 2:s=e[n+1],128==(192&s)&&(h=(31&a)<<6|63&s)>127&&(f=h);break;case 3:s=e[n+1],c=e[n+2],128==(192&s)&&128==(192&c)&&(h=(15&a)<<12|(63&s)<<6|63&c)>2047&&(h<55296||h>57343)&&(f=h);break;case 4:s=e[n+1],c=e[n+2],u=e[n+3],128==(192&s)&&128==(192&c)&&128==(192&u)&&(h=(15&a)<<18|(63&s)<<12|(63&c)<<6|63&u)>65535&&h<1114112&&(f=h)}}null===f?(f=65533,o=1):f>65535&&(f-=65536,i.push(f>>>10&1023|55296),f=56320|1023&f),i.push(f),n+=o}return R(i)}function R(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",i=0;ii)&&(r=i);for(var n="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,i,n,f){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function D(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,a=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function U(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,a=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function O(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,i,n){return n||O(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,r,i,23,4),r+4}function N(e,t,r,i,n){return n||O(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,r,i,52,8),r+8}function z(e){if(e=F(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function F(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],f=0;f55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(f+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function J(e){for(var t=[],r=0;r>8,n=r%256,a.push(n),a.push(i);return a}function Y(e){return G.toByteArray(z(e))}function V(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function W(e){return e!==e}var G=e("base64-js"),Z=e("ieee754"),Q=e("isarray");r.Buffer=a,r.SlowBuffer=p,r.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,r){return f(null,e,t,r)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,r){return s(null,e,t,r)},a.allocUnsafe=function(e){return c(null,e)},a.allocUnsafeSlow=function(e){return c(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,n=0,f=Math.min(r,i);n0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},a.prototype.compare=function(e,t,r,i,n){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var f=n-i,o=r-t,s=Math.min(f,o),c=this.slice(i,n),u=e.slice(t,r),h=0;hn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return M(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(n*=256);)i+=this[e+--t]*n;return i},a.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e|=0,t|=0, r||T(e,t,this.length);for(var i=this[e],n=1,a=0;++a=n&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return n*=128,a>=n&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),Z.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),Z.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),Z.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),Z.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t|=0,r|=0,!i){j(this,e,t,r,Math.pow(2,8*r)-1,0)}var n=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+n]=e/a&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}var a=0,f=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},a.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}var a=r-1,f=1,o=0;for(this[t+a]=255&e;--a>=0&&(f*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/f>>0)-o&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(f<1e3||!a.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var f;if("number"==typeof e)for(f=t;f>>2),f=0,o=0;f>5]|=128<>>9<<4)]=t;for(var r=1732584193,i=-271733879,n=-1732584194,u=271733878,h=0;h>16)+(t>>16)+(r>>16)<<16|65535&r}function u(e,t){return e<>>32-t}var h=e("./make-hash");t.exports=function(e){return h(e,i)}},{"./make-hash":54}],56:[function(e,t,r){"use strict";function i(e,t){f.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var r="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>r){t=("rmd160"===e?new c:u(e)).update(t).digest()}else t.lengths?t=e(t):t.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},i.prototype.final=function(e){var t;e&&(t=this.update(e));var r;return r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=s.r28shl(r,f),i=s.r28shl(i,f),s.pc2(r,i,e.keys,n)}},n.prototype._update=function(e,t,r,i){var n=this._desState,a=s.readUInt32BE(e,t),f=s.readUInt32BE(e,t+4);s.ip(a,f,n.tmp,0),a=n.tmp[0],f=n.tmp[1],"encrypt"===this.type?this._encrypt(n,a,f,n.tmp,0):this._decrypt(n,a,f,n.tmp,0),a=n.tmp[0],f=n.tmp[1],s.writeUInt32BE(r,a,i),s.writeUInt32BE(r,f,i+4)},n.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,a=l}s.rip(f,a,i,n)},n.prototype._decrypt=function(e,t,r,i,n){for(var a=r,f=t,o=e.keys.length-2;o>=0;o-=2){var c=e.keys[o],u=e.keys[o+1];s.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var h=s.substitute(c,u),d=s.permute(h),l=a;a=(f^d)>>>0,f=l}s.rip(a,f,i,n)}},{"../des":59,inherits:103,"minimalistic-assert":109}],63:[function(e,t,r){"use strict";function i(e,t){a.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);this.ciphers="encrypt"===e?[c.create({type:"encrypt",key:r}),c.create({type:"decrypt",key:i}),c.create({type:"encrypt",key:n})]:[c.create({type:"decrypt",key:n}),c.create({type:"encrypt",key:i}),c.create({type:"decrypt",key:r})]}function n(e){s.call(this,e);var t=new i(this.type,this.options.key);this._edeState=t}var a=e("minimalistic-assert"),f=e("inherits"),o=e("../des"),s=o.Cipher,c=o.DES;f(n,s),t.exports=n,n.create=function(e){return new n(e)},n.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},n.prototype._pad=c.prototype._pad,n.prototype._unpad=c.prototype._unpad},{"../des":59,inherits:103,"minimalistic-assert":109}],64:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,i){for(var n=0,a=0,f=6;f>=0;f-=2){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>>o+f&1;for(var o=0;o<=24;o+=8)n<<=1,n|=e>>>o+f&1}for(var f=6;f>=0;f-=2){for(var o=1;o<=25;o+=8)a<<=1,a|=t>>>o+f&1;for(var o=1;o<=25;o+=8)a<<=1,a|=e>>>o+f&1}r[i+0]=n>>>0,r[i+1]=a>>>0},r.rip=function(e,t,r,i){for(var n=0,a=0,f=0;f<4;f++)for(var o=24;o>=0;o-=8)n<<=1,n|=t>>>o+f&1,n<<=1,n|=e>>>o+f&1;for(var f=4;f<8;f++)for(var o=24;o>=0;o-=8)a<<=1,a|=t>>>o+f&1,a<<=1,a|=e>>>o+f&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.pc1=function(e,t,r,i){for(var n=0,a=0,f=7;f>=5;f--){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+f&1;for(var o=0;o<=24;o+=8)n<<=1,n|=e>>o+f&1}for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+f&1;for(var f=1;f<=3;f++){for(var o=0;o<=24;o+=8)a<<=1,a|=t>>o+f&1;for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+f&1}for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+f&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.r28shl=function(e,t){return e<>>28-t};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,n){for(var a=0,f=0,o=i.length>>>1,s=0;s>>i[s]&1;for(var s=o;s>>i[s]&1;r[n+0]=a>>>0,r[n+1]=f>>>0},r.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)i<<=6,i|=e>>>a&63;for(var a=11;a>=3;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var a=e>>>18-6*i&63,f=n[64*i+a];r<<=4,r|=f}for(var i=0;i<4;i++){var a=t>>>18-6*i&63,f=n[256+64*i+a];r<<=4,r|=f}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var i=e.toString(2);i.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(d),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(b))for(;r.mod(p).cmp(m);)r.iadd(y)}else for(;r.mod(c).cmp(v);)r.iadd(y);if(i=r.shrn(1),n(i)&&n(r)&&a(i)&&a(r)&&h.test(i)&&h.test(r))return r}}var o=e("randombytes");t.exports=f,f.simpleSieve=n,f.fermatTest=a;var s=e("bn.js"),c=new s(24),u=e("miller-rabin"),h=new u,d=new s(1),l=new s(2),b=new s(5),p=(new s(16),new s(8),new s(10)),m=new s(3),v=(new s(7),new s(11)),y=new s(4),g=(new s(12),null)},{"bn.js":17,"miller-rabin":108,randombytes:130}],68:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02", prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],69:[function(e,t,r){"use strict";var i=r;i.version=e("../package.json").version,i.utils=e("./elliptic/utils"),i.rand=e("brorand"),i.curve=e("./elliptic/curve"),i.curves=e("./elliptic/curves"),i.ec=e("./elliptic/ec"),i.eddsa=e("./elliptic/eddsa")},{"../package.json":84,"./elliptic/curve":72,"./elliptic/curves":75,"./elliptic/ec":76,"./elliptic/eddsa":79,"./elliptic/utils":83,brorand:18}],70:[function(e,t,r){"use strict";function i(e,t){this.type=e,this.p=new a(t.p,16),this.red=t.prime?a.red(t.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=t.n&&new a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function n(e,t){this.curve=e,this.type=t,this.precomputed=null}var a=e("bn.js"),f=e("../../elliptic"),o=f.utils,s=o.getNAF,c=o.getJSF,u=o.assert;t.exports=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(e,t){u(e.precomputed);var r=e._getDoubles(),i=s(t,1),n=(1<=f;t--)o=(o<<1)+i[t];a.push(o)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=n;d>0;d--){for(var f=0;f=0;o--){for(var t=0;o>=0&&0===a[o];o--)t++;if(o>=0&&t++,f=f.dblp(t),o<0)break;var c=a[o];u(0!==c),f="affine"===e.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},i.prototype._wnafMulAdd=function(e,t,r,i,n){for(var a=this._wnafT1,f=this._wnafT2,o=this._wnafT3,u=0,h=0;h=1;h-=2){var b=h-1,p=h;if(1===a[b]&&1===a[p]){var m=[t[b],null,null,t[p]];0===t[b].y.cmp(t[p].y)?(m[1]=t[b].add(t[p]),m[2]=t[b].toJ().mixedAdd(t[p].neg())):0===t[b].y.cmp(t[p].y.redNeg())?(m[1]=t[b].toJ().mixedAdd(t[p]),m[2]=t[b].add(t[p].neg())):(m[1]=t[b].toJ().mixedAdd(t[p]),m[2]=t[b].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=c(r[b],r[p]);u=Math.max(y[0].length,u),o[b]=new Array(u),o[p]=new Array(u);for(var g=0;g=0;h--){for(var M=0;h>=0;){for(var E=!0,g=0;g=0&&M++,k=k.dblp(M),h<0)break;for(var g=0;g0?d=f[g][A-1>>1]:A<0&&(d=f[g][-A-1>>1].neg()),k="affine"===d.type?k.mixedAdd(d):k.add(d))}}for(var h=0;h=Math.ceil((e.bitLength()+1)/t.step)},n.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n":""},n.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},n.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),f=a.redSub(r),o=i.redSub(t),s=n.redMul(f),c=a.redMul(o),u=n.redMul(o),h=f.redMul(a);return this.curve.point(s,c,h,u)},n.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var f=this.curve._mulA(n),o=f.redAdd(a);if(this.zOne)e=i.redSub(n).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(f.redSub(a)),r=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),c=o.redSub(s).redISub(s);e=i.redSub(n).redISub(a).redMul(c),t=o.redMul(f.redSub(a)),r=o.redMul(c)}}else{var f=n.redAdd(a),s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=f.redSub(s).redSub(s);e=this.curve._mulC(i.redISub(f)).redMul(c),t=this.curve._mulC(f).redMul(n.redISub(a)),r=f.redMul(c)}return this.curve.point(e,t,r)},n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},n.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),f=n.redSub(i),o=n.redAdd(i),s=r.redAdd(t),c=a.redMul(f),u=o.redMul(s),h=a.redMul(s),d=f.redMul(o);return this.curve.point(c,u,d,h)},n.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),f=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(f),s=n.redSub(o),c=n.redAdd(o),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(f),h=i.redMul(s).redMul(u);return this.curve.twisted?(t=i.redMul(c).redMul(f.redSub(this.curve._mulA(a))),r=s.redMul(c)):(t=i.redMul(c).redMul(f.redSub(a)),r=this.curve._mulC(s).redMul(c)),this.curve.point(h,t,r)},n.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},n.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},n.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},n.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},n.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},n.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()},n.prototype.getY=function(){return this.normalize(),this.y.fromRed()},n.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},n.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}return!1},n.prototype.toP=n.prototype.normalize,n.prototype.mixedAdd=n.prototype.add},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],72:[function(e,t,r){"use strict";var i=r;i.base=e("./base"),i.short=e("./short"),i.mont=e("./mont"),i.edwards=e("./edwards")},{"./base":70,"./edwards":71,"./mont":73,"./short":74}],73:[function(e,t,r){"use strict";function i(e){s.call(this,"mont",e),this.a=new f(e.a,16).toRed(this.red),this.b=new f(e.b,16).toRed(this.red),this.i4=new f(4).toRed(this.red).redInvm(),this.two=new f(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(e,t,r){s.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new f(t,16),this.z=new f(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var a=e("../curve"),f=e("bn.js"),o=e("inherits"),s=a.base,c=e("../../elliptic"),u=c.utils;o(i,s),t.exports=i,i.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},o(n,s.BasePoint),i.prototype.decodePoint=function(e,t){return this.point(u.toArray(e,t),1)},i.prototype.point=function(e,t){return new n(this,e,t)},i.prototype.pointFromJSON=function(e){return n.fromJSON(this,e)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(e,t){return new n(e,t[0],t[1]||e.one)},n.prototype.inspect=function(){return this.isInfinity()?"":""},n.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},n.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),r=this.x.redSub(this.z),i=r.redSqr(),n=t.redSub(i),a=t.redMul(i),f=n.redMul(i.redAdd(this.curve.a24.redMul(n)));return this.curve.point(a,f)},n.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z),f=a.redMul(r),o=n.redMul(i),s=t.z.redMul(f.redAdd(o).redSqr()),c=t.x.redMul(f.redISub(o).redSqr());return this.curve.point(s,c)},n.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=this,a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var f=a.length-1;f>=0;f--)0===a[f]?(r=r.diffAdd(i,n),i=i.dbl()):(i=r.diffAdd(i,n),r=r.dbl());return i},n.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],74:[function(e,t,r){"use strict";function i(e){u.call(this,"short",e),this.a=new s(e.a,16).toRed(this.red),this.b=new s(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function n(e,t,r,i){u.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new s(t,16),this.y=new s(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function a(e,t,r,i){u.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new s(0)):(this.x=new s(t,16),this.y=new s(r,16),this.z=new s(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}var f=e("../curve"),o=e("../../elliptic"),s=e("bn.js"),c=e("inherits"),u=f.base,h=o.utils.assert;c(i,u),t.exports=i,i.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new s(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);t=i[0].cmp(i[1])<0?i[0]:i[1],t=t.toRed(this.red)}if(e.lambda)r=new s(e.lambda,16);else{var n=this._getEndoRoots(this.n);0===this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))?r=n[0]:(r=n[1],h(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}var a;return a=e.basis?e.basis.map(function(e){return{a:new s(e.a,16),b:new s(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:a}}},i.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:s.mont(e),r=new s(2).toRed(t).redInvm(),i=r.redNeg(),n=new s(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},i.prototype._getEndoBasis=function(e){for(var t,r,i,n,a,f,o,c,u,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,l=this.n.clone(),b=new s(1),p=new s(0),m=new s(0),v=new s(1),y=0;0!==d.cmpn(0);){var g=l.div(d);c=l.sub(g.mul(d)),u=m.sub(g.mul(b));var w=v.sub(g.mul(p));if(!i&&c.cmp(h)<0)t=o.neg(),r=b,i=c.neg(),n=u;else if(i&&2==++y)break;o=c,l=d,d=c,m=b,b=u,v=p,p=w}a=c.neg(),f=u;var _=i.sqr().add(n.sqr());return a.sqr().add(f.sqr()).cmp(_)>=0&&(a=t,f=r),i.negative&&(i=i.neg(),n=n.neg()),a.negative&&(a=a.neg(),f=f.neg()),[{a:i,b:n},{a:a,b:f}]},i.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),f=n.mul(r.a),o=a.mul(i.a),s=n.mul(r.b),c=a.mul(i.b);return{k1:e.sub(f).sub(o),k2:s.add(c).neg()}},i.prototype.pointFromX=function(e,t){e=new s(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},i.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},i.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},n.prototype.isInfinity=function(){return this.inf},n.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},n.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),f=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,f)},n.prototype.getX=function(){return this.x.fromRed()},n.prototype.getY=function(){return this.y.fromRed()},n.prototype.mul=function(e){return e=new s(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},n.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},n.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},n.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},n.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},n.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},c(a,u.BasePoint),i.prototype.jpoint=function(e,t,r){return new a(this,e,t,r)},a.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},a.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},a.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),f=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),s=a.redSub(f);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),h=i.redMul(c),d=s.redSqr().redIAdd(u).redISub(h).redISub(h),l=s.redMul(h.redISub(d)).redISub(a.redMul(u)),b=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(d,l,b)},a.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),f=r.redSub(i),o=n.redSub(a);if(0===f.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=f.redSqr(),c=s.redMul(f),u=r.redMul(s),h=o.redSqr().redIAdd(c).redISub(u).redISub(u),d=o.redMul(u.redISub(h)).redISub(n.redMul(c)),l=this.z.redMul(f);return this.curve.jpoint(h,d,l)},a.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}return!1}, a.prototype.inspect=function(){return this.isInfinity()?"":""},a.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],75:[function(e,t,r){"use strict";function i(e){"short"===e.type?this.curve=new o.curve.short(e):"edwards"===e.type?this.curve=new o.curve.edwards(e):this.curve=new o.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function n(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var r=new i(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:r}),r}})}var a=r,f=e("hash.js"),o=e("../elliptic"),s=o.utils.assert;a.PresetCurve=i,n("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:f.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),n("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:f.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),n("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:f.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),n("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:f.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),n("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:f.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),n("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f.sha256,gRed:!1,g:["9"]}),n("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var c;try{c=e("./precomputed/secp256k1")}catch(e){c=void 0}n("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:f.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},{"../elliptic":69,"./precomputed/secp256k1":82,"hash.js":88}],76:[function(e,t,r){"use strict";function i(e){if(!(this instanceof i))return new i(e);"string"==typeof e&&(s(f.curves.hasOwnProperty(e),"Unknown curve "+e),e=f.curves[e]),e instanceof f.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var n=e("bn.js"),a=e("hmac-drbg"),f=e("../../elliptic"),o=f.utils,s=o.assert,c=e("./key"),u=e("./signature");t.exports=i,i.prototype.keyPair=function(e){return new c(this,e)},i.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},i.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},i.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||f.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new n(2));;){var o=new n(t.generate(r));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},i.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},i.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var f=this.n.byteLength(),o=t.getPrivate().toArray("be",f),s=e.toArray("be",f),c=new a({hash:this.hash,entropy:o,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),h=this.n.sub(new n(1)),d=0;!0;d++){var l=i.k?i.k(d):new n(c.generate(this.n.byteLength()));if(l=this._truncateToN(l,!0),!(l.cmpn(1)<=0||l.cmp(h)>=0)){var b=this.g.mul(l);if(!b.isInfinity()){var p=b.getX(),m=p.umod(this.n);if(0!==m.cmpn(0)){var v=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(v=v.umod(this.n),0!==v.cmpn(0)){var y=(b.getY().isOdd()?1:0)|(0!==p.cmp(m)?2:0);return i.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:m,s:v,recoveryParam:y})}}}}}},i.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i),t=new u(t,"hex");var a=t.r,f=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(f.cmpn(1)<0||f.cmp(this.n)>=0)return!1;var o=f.invm(this.n),s=o.mul(e).umod(this.n),c=o.mul(a).umod(this.n);if(!this.curve._maxwellTrick){var h=this.g.mulAdd(s,r.getPublic(),c);return!h.isInfinity()&&0===h.getX().umod(this.n).cmp(a)}var h=this.g.jmulAdd(s,r.getPublic(),c);return!h.isInfinity()&&h.eqXToP(a)},i.prototype.recoverPubKey=function(e,t,r,i){s((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,f=new n(e),o=t.r,c=t.s,h=1&r,d=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");o=d?this.curve.pointFromX(o.add(this.curve.n),h):this.curve.pointFromX(o,h);var l=t.r.invm(a),b=a.sub(f).mul(l).umod(a),p=c.mul(l).umod(a);return this.g.mulAdd(b,o,p)},i.prototype.getKeyRecoveryParam=function(e,t,r,i){if(t=new u(t,i),null!==t.recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var a;try{a=this.recoverPubKey(e,t,n)}catch(e){continue}if(a.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":69,"./key":77,"./signature":78,"bn.js":17,"hmac-drbg":100}],77:[function(e,t,r){"use strict";function i(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var n=e("bn.js"),a=e("../../elliptic"),f=a.utils,o=f.assert;t.exports=i,i.fromPublic=function(e,t,r){return t instanceof i?t:new i(e,{pub:t,pubEnc:r})},i.fromPrivate=function(e,t,r){return t instanceof i?t:new i(e,{priv:t,privEnc:r})},i.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},i.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},i.prototype.derive=function(e){return e.mul(this.priv).getX()},i.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},i.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},i.prototype.inspect=function(){return""}},{"../../elliptic":69,"bn.js":17}],78:[function(e,t,r){"use strict";function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(h(e.r&&e.s,"Signature without r or s"),this.r=new s(e.r,16),this.s=new s(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function n(){this.place=0}function a(e,t){var r=e[t.place++];if(!(128&r))return r;for(var i=15&r,n=0,a=0,f=t.place;a>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}var s=e("bn.js"),c=e("../../elliptic"),u=c.utils,h=u.assert;t.exports=i,i.prototype._importDER=function(e,t){e=u.toArray(e,t);var r=new n;if(48!==e[r.place++])return!1;if(a(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=a(e,r),f=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var o=a(e,r);if(e.length!==o+r.place)return!1;var c=e.slice(r.place,o+r.place);return 0===f[0]&&128&f[1]&&(f=f.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new s(f),this.s=new s(c),this.recoveryParam=null,!0},i.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];o(i,t.length),i=i.concat(t),i.push(2),o(i,r.length);var n=i.concat(r),a=[48];return o(a,n.length),a=a.concat(n),u.encode(a,e)}},{"../../elliptic":69,"bn.js":17}],79:[function(e,t,r){"use strict";function i(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof i))return new i(e);var e=a.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}var n=e("hash.js"),a=e("../../elliptic"),f=a.utils,o=f.assert,s=f.parseBytes,c=e("./key"),u=e("./signature");t.exports=i,i.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),f=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),o=i.add(f).umod(this.curve.n);return this.makeSignature({R:n,S:o,Rencoded:a})},i.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},i.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=0;){var a;if(n.isOdd()){var f=n.andln(i-1);a=f>(i>>1)-1?(i>>1)-f:f,n.isubn(a)}else a=0;r.push(a);for(var o=0!==n.cmpn(0)&&0===n.andln(i-1)?t+1:1,s=1;s0||t.cmpn(-n)>0;){var a=e.andln(3)+i&3,f=t.andln(3)+n&3;3===a&&(a=-1),3===f&&(f=-1);var o;if(0==(1&a))o=0;else{var s=e.andln(7)+i&7;o=3!==s&&5!==s||2!==f?a:-a}r[0].push(o);var c;if(0==(1&f))c=0;else{var s=t.andln(7)+n&7;c=3!==s&&5!==s||2!==a?f:-f}r[1].push(c),2*i===o+1&&(i=1-i),2*n===c+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r}function a(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}}function f(e){return"string"==typeof e?s.toArray(e,"hex"):e}function o(e){return new c(e,"hex","le")}var s=r,c=e("bn.js"),u=e("minimalistic-assert"),h=e("minimalistic-crypto-utils");s.assert=u,s.toArray=h.toArray,s.zero2=h.zero2,s.toHex=h.toHex,s.encode=h.encode,s.getNAF=i,s.getJSF=n,s.cachedProperty=a,s.parseBytes=f,s.intFromLE=o},{"bn.js":17,"minimalistic-assert":109,"minimalistic-crypto-utils":110}],84:[function(e,t,r){t.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"d:\\pixi-games\\pixi-compressed-textures\\node_modules\\browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],85:[function(e,t,r){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function a(e){return"number"==typeof e}function f(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!a(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,r,i,a,s,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||f(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(r=this._events[e],o(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(f(r))for(a=Array.prototype.slice.call(arguments,1),c=r.slice(),i=c.length,s=0;s0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},i.prototype.removeListener=function(e,t){var r,i,a,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(f(r)){for(o=a;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){i=o;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},{}],86:[function(e,t,r){function i(e,t,r,i){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var f=r/8,o=n.alloc(f),s=n.alloc(i||0),c=n.alloc(0);f>0||i>0;){var u=new a;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var h=0;if(f>0){var d=o.length-f;h=Math.min(f,c.length),c.copy(o,d,0,h),f-=h}if(h0){var l=s.length-i,b=Math.min(i,c.length-h);c.copy(s,l,h,h+b),i-=b}}return c.fill(0),{key:o,iv:s}}var n=e("safe-buffer").Buffer,a=e("md5.js");t.exports=i},{"md5.js":106,"safe-buffer":143}],87:[function(e,t,r){(function(r){"use strict";function i(e){n.call(this),this._block=new r(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var n=e("stream").Transform;e("inherits")(i,n),i.prototype._transform=function(e,t,i){var n=null;try{"buffer"!==t&&(e=new r(e,t)),this.update(e)}catch(e){n=e}i(n)},i.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=new r(e,t||"binary"));for(var i=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++f)this._length[f]+=o,(o=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*o);return this},i.prototype._update=function(e){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i}).call(this,e("buffer").Buffer)},{buffer:49,inherits:103,stream:152}],88:[function(e,t,r){var i=r;i.utils=e("./hash/utils"),i.common=e("./hash/common"),i.sha=e("./hash/sha"),i.ripemd=e("./hash/ripemd"),i.hmac=e("./hash/hmac"),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},{"./hash/common":89,"./hash/hmac":90,"./hash/ripemd":91,"./hash/sha":92,"./hash/utils":99}],89:[function(e,t,r){"use strict";function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var n=e("./utils"),a=e("minimalistic-assert");r.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,a=8;athis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3}function u(e){return d(e,17)^d(e,19)^e>>>10}var h=e("../utils"),d=h.rotr32;r.ft_1=i,r.ch32=n,r.maj32=a,r.p32=f,r.s0_256=o,r.s1_256=s,r.g0_256=c,r.g1_256=u},{"../utils":99}],99:[function(e,t,r){"use strict";function i(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),i=0;i>8,f=255&n;a?r.push(a,f):r.push(f)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function f(e,t){for(var r="",i=0;i>>0}return a}function u(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=a>>>16&255,r[n+2]=a>>>8&255,r[n+3]=255&a):(r[n+3]=a>>>24,r[n+2]=a>>>16&255,r[n+1]=a>>>8&255,r[n]=255&a)}return r}function h(e,t){return e>>>t|e<<32-t}function d(e,t){return e<>>32-t}function l(e,t){return e+t>>>0}function b(e,t,r){return e+t+r>>>0}function p(e,t,r,i){return e+t+r+i>>>0}function m(e,t,r,i,n){return e+t+r+i+n>>>0}function v(e,t,r,i){var n=e[t],a=e[t+1],f=i+a>>>0,o=(f>>0,e[t+1]=f}function y(e,t,r,i){return(t+i>>>0>>0}function g(e,t,r,i){return t+i>>>0}function w(e,t,r,i,n,a,f,o){var s=0,c=t;return c=c+i>>>0,s+=c>>0,s+=c>>0,s+=c>>0}function _(e,t,r,i,n,a,f,o){return t+i+a+o>>>0}function k(e,t,r,i,n,a,f,o,s,c){var u=0,h=t;return h=h+i>>>0,u+=h>>0,u+=h>>0,u+=h>>0,u+=h>>0}function S(e,t,r,i,n,a,f,o,s,c){return t+i+a+o+c>>>0}function M(e,t,r){return(t<<32-r|e>>>r)>>>0}function E(e,t,r){return(e<<32-r|t>>>r)>>>0}function A(e,t,r){return e>>>r}function x(e,t,r){return(e<<32-r|t>>>r)>>>0}var I=e("minimalistic-assert"),R=e("inherits");r.inherits=R,r.toArray=i,r.toHex=n,r.htonl=a,r.toHex32=f,r.zero2=o,r.zero8=s,r.join32=c,r.split32=u,r.rotr32=h,r.rotl32=d,r.sum32=l,r.sum32_3=b,r.sum32_4=p,r.sum32_5=m,r.sum64=v,r.sum64_hi=y,r.sum64_lo=g,r.sum64_4_hi=w,r.sum64_4_lo=_,r.sum64_5_hi=k,r.sum64_5_lo=S,r.rotr64_hi=M,r.rotr64_lo=E,r.shr64_hi=A,r.shr64_lo=x},{inherits:103,"minimalistic-assert":109}],100:[function(e,t,r){"use strict";function i(e){if(!(this instanceof i))return new i(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");f(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var n=e("hash.js"),a=e("minimalistic-crypto-utils"),f=e("minimalistic-assert");t.exports=i,i.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},i.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=a.toArray(r,i||"hex"),this._update(r));for(var n=[];n.length>1,u=-7,h=r?n-1:0,d=r?-1:1,l=e[t+h];for(h+=d,a=l&(1<<-u)-1,l>>=-u,u+=o;u>0;a=256*a+e[t+h],h+=d,u-=8);for(f=a&(1<<-u)-1,a>>=-u,u+=i;u>0;f=256*f+e[t+h],h+=d,u-=8);if(0===a)a=1-c;else{if(a===s)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,i),a-=c}return(l?-1:1)*f*Math.pow(2,a-i)},r.write=function(e,t,r,i,n,a){var f,o,s,c=8*a-n-1,u=(1<>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:a-1,b=i?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,f=u):(f=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-f))<1&&(f--,s*=2),t+=f+h>=1?d/s:d*Math.pow(2,1-h),t*s>=2&&(f++,s/=2),f+h>=u?(o=0,f=u):f+h>=1?(o=(t*s-1)*Math.pow(2,n),f+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,n),f=0));n>=8;e[r+l]=255&o,l+=b,o/=256,n-=8);for(f=f<0;e[r+l]=255&f,l+=b,f/=256,c-=8);e[r+l-b]|=128*p}},{}],102:[function(e,t,r){var i=[].indexOf;t.exports=function(e,t){if(i)return e.indexOf(t);for(var r=0;r>>32-t}function a(e,t,r,i,a,f,o){return n(e+(t&r|~t&i)+a+f|0,o)+t|0}function f(e,t,r,i,a,f,o){return n(e+(t&i|r&~i)+a+f|0,o)+t|0}function o(e,t,r,i,a,f,o){return n(e+(t^r^i)+a+f|0,o)+t|0}function s(e,t,r,i,a,f,o){return n(e+(r^(t|~i))+a+f|0,o)+t|0}var c=e("inherits"),u=e("hash-base"),h=new Array(16);c(i,u),i.prototype._update=function(){for(var e=h,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,c=this._d;r=a(r,i,n,c,e[0],3614090360,7),c=a(c,r,i,n,e[1],3905402710,12),n=a(n,c,r,i,e[2],606105819,17),i=a(i,n,c,r,e[3],3250441966,22),r=a(r,i,n,c,e[4],4118548399,7),c=a(c,r,i,n,e[5],1200080426,12),n=a(n,c,r,i,e[6],2821735955,17),i=a(i,n,c,r,e[7],4249261313,22),r=a(r,i,n,c,e[8],1770035416,7),c=a(c,r,i,n,e[9],2336552879,12),n=a(n,c,r,i,e[10],4294925233,17),i=a(i,n,c,r,e[11],2304563134,22),r=a(r,i,n,c,e[12],1804603682,7),c=a(c,r,i,n,e[13],4254626195,12),n=a(n,c,r,i,e[14],2792965006,17),i=a(i,n,c,r,e[15],1236535329,22),r=f(r,i,n,c,e[1],4129170786,5),c=f(c,r,i,n,e[6],3225465664,9),n=f(n,c,r,i,e[11],643717713,14),i=f(i,n,c,r,e[0],3921069994,20),r=f(r,i,n,c,e[5],3593408605,5),c=f(c,r,i,n,e[10],38016083,9),n=f(n,c,r,i,e[15],3634488961,14),i=f(i,n,c,r,e[4],3889429448,20),r=f(r,i,n,c,e[9],568446438,5),c=f(c,r,i,n,e[14],3275163606,9),n=f(n,c,r,i,e[3],4107603335,14),i=f(i,n,c,r,e[8],1163531501,20),r=f(r,i,n,c,e[13],2850285829,5),c=f(c,r,i,n,e[2],4243563512,9),n=f(n,c,r,i,e[7],1735328473,14),i=f(i,n,c,r,e[12],2368359562,20),r=o(r,i,n,c,e[5],4294588738,4),c=o(c,r,i,n,e[8],2272392833,11),n=o(n,c,r,i,e[11],1839030562,16),i=o(i,n,c,r,e[14],4259657740,23),r=o(r,i,n,c,e[1],2763975236,4),c=o(c,r,i,n,e[4],1272893353,11),n=o(n,c,r,i,e[7],4139469664,16),i=o(i,n,c,r,e[10],3200236656,23),r=o(r,i,n,c,e[13],681279174,4),c=o(c,r,i,n,e[0],3936430074,11),n=o(n,c,r,i,e[3],3572445317,16),i=o(i,n,c,r,e[6],76029189,23),r=o(r,i,n,c,e[9],3654602809,4),c=o(c,r,i,n,e[12],3873151461,11),n=o(n,c,r,i,e[15],530742520,16),i=o(i,n,c,r,e[2],3299628645,23),r=s(r,i,n,c,e[0],4096336452,6),c=s(c,r,i,n,e[7],1126891415,10),n=s(n,c,r,i,e[14],2878612391,15),i=s(i,n,c,r,e[5],4237533241,21),r=s(r,i,n,c,e[12],1700485571,6),c=s(c,r,i,n,e[3],2399980690,10),n=s(n,c,r,i,e[10],4293915773,15),i=s(i,n,c,r,e[1],2240044497,21),r=s(r,i,n,c,e[8],1873313359,6),c=s(c,r,i,n,e[15],4264355552,10),n=s(n,c,r,i,e[6],2734768916,15),i=s(i,n,c,r,e[13],1309151649,21),r=s(r,i,n,c,e[4],4149444226,6),c=s(c,r,i,n,e[11],3174756917,10),n=s(n,c,r,i,e[2],718787259,15),i=s(i,n,c,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+c|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new r(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=i}).call(this,e("buffer").Buffer)},{buffer:49,"hash-base":107,inherits:103}],107:[function(e,t,r){"use strict";function i(e,t){if(!a.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}function n(e){f.call(this),this._block=a.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var a=e("safe-buffer").Buffer,f=e("stream").Transform;e("inherits")(n,f),n.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},n.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,t){if(i(e,"Data"),this._finalized)throw new Error("Digest already called");a.isBuffer(e)||(e=a.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var f=this._blockOffset;f0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n},{inherits:103,"safe-buffer":143,stream:152}],108:[function(e,t,r){function i(e){this.rand=e||new a.Rand}var n=e("bn.js"),a=e("brorand");t.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},i.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},i.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),f=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),u=o.toRed(a);t>0;t--){var h=this._randrange(new n(2),o);r&&r(h);var d=h.toRed(a).redPow(c);if(0!==d.cmp(f)&&0!==d.cmp(u)){for(var l=1;l0;t--){var u=this._randrange(new n(2),f),h=e.gcd(u);if(0!==h.cmpn(1))return h;var d=u.toRed(i).redPow(s);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var l=1;l>8,f=255&n;a?r.push(a,f):r.push(f)}return r}function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r=0;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i=-1&&!n;a--){var f=a>=0?arguments[a]:e.cwd();if("string"!=typeof f)throw new TypeError("Arguments to path.resolve must be strings");f&&(r=f+"/"+r,n="/"===f.charAt(0))}return r=t(i(r.split("/"),function(e){return!!e}),!n).join("/"),(n?"/":"")+r||"."},r.normalize=function(e){var n=r.isAbsolute(e),a="/"===f(e,-1);return e=t(i(e.split("/"),function(e){return!!e}),!n).join("/"),e||n||(e="."),e&&a&&(e+="/"),(n?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},r.relative=function(e,t){function i(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var n=i(e.split("/")),a=i(t.split("/")),f=Math.min(n.length,a.length),o=f,s=0;s=6?"utf-8":"binary"}t.exports=r}).call(this,e("_process"))},{_process:123}],120:[function(e,t,r){var i=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>i||t!==t)throw new TypeError("Bad key length")}},{}],121:[function(e,t,r){function i(e,t,r){var i=n(e),a="sha512"===e||"sha384"===e?128:64;t.length>a?t=i(t):t.length1)for(var r=1;r=t.length){a++;break}var f=t.slice(2,n-1);t.slice(n-1,n);if(("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&a++,f.length<8&&a++,a)throw new Error("decryption error");return t.slice(n)}function a(e,t){e=new r(e),t=new r(t);var i=0,n=e.length;e.length!==t.length&&(i++,n=Math.min(e.length,t.length));for(var a=-1;++ah||new c(t).cmp(s.modulus)>=0)throw new Error("decryption error");var l;l=a?d(new c(t),s):u(t,s);var b=new r(h-l.length);if(b.fill(0),l=r.concat([b,l],h),4===o)return i(s,l);if(1===o)return n(s,l,a);if(3===o)return l;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":125,"./withPublic":128,"./xor":129,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hash":53,"parse-asn1":115}],127:[function(e,t,r){(function(r){function i(e,t){var i=e.modulus.byteLength(),n=t.length,a=s("sha1").update(new r("")).digest(),f=a.length,d=2*f;if(n>i-d-2)throw new Error("message too long");var l=new r(i-n-d-2);l.fill(0);var b=i-f-1,p=o(f),m=u(r.concat([a,l,new r([1]),t],b),c(p,b)),v=u(p,c(m,f));return new h(r.concat([new r([0]),v,m],i))}function n(e,t,i){var n=t.length,f=e.modulus.byteLength();if(n>f-11)throw new Error("message too long");var o;return i?(o=new r(f-n-3),o.fill(255)):o=a(f-n-3),new h(r.concat([new r([0,i?1:2]),o,new r([0]),t],f))}function a(e,t){for(var i,n=new r(e),a=0,f=o(2*e),s=0;a=0)throw new Error("data too long for modulus")}return r?l(o,s):d(o,s)}}).call(this,e("buffer").Buffer)},{"./mgf":125,"./withPublic":128,"./xor":129,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hash":53,"parse-asn1":115,randombytes:130}],128:[function(e,t,r){(function(r){function i(e,t){return new r(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}var n=e("bn.js");t.exports=i}).call(this,e("buffer").Buffer)},{"bn.js":17,buffer:49}],129:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,i=-1;++i65536)throw new Error("requested too many random bytes");var n=new i.Uint8Array(e);e>0&&o.getRandomValues(n);var a=f.from(n.buffer);return"function"==typeof t?r.nextTick(function(){t(null,a)}):a}var f=e("safe-buffer").Buffer,o=i.crypto||i.msCrypto;o&&o.getRandomValues?t.exports=a:t.exports=n}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:123,"safe-buffer":143}],131:[function(e,t,r){(function(t,i){"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function a(e,t){if("number"!=typeof e||e!==e)throw new TypeError("offset must be a number");if(e>p||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!==e)throw new TypeError("size must be a number");if(e>p||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>l)throw new RangeError("buffer too small")}function o(e,t,r,n){if(!(d.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return a(t,e.length),f(r,t,e.length),s(e,t,r,n)}function s(e,r,i,n){if(t.browser){var a=e.buffer,f=new Uint8Array(a,r,i);return b.getRandomValues(f),n?void t.nextTick(function(){n(null,e)}):e}return n?void h(i,function(t,i){if(t)return n(t);i.copy(e,r),n(null,e)}):(h(i).copy(e,r),e)}function c(e,t,r){if(void 0===t&&(t=0),!(d.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return a(t,e.length),void 0===r&&(r=e.length-t),f(r,t,e.length),s(e,t,r)}var u=e("safe-buffer"),h=e("randombytes"),d=u.Buffer,l=u.kMaxLength,b=i.crypto||i.msCrypto,p=Math.pow(2,32)-1;b&&b.getRandomValues||!t.browser?(r.randomFill=o,r.randomFillSync=c):(r.randomFill=n,r.randomFillSync=n)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:123,randombytes:130,"safe-buffer":143}],132:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":133}],133:[function(e,t,r){"use strict";function i(e){if(!(this instanceof i))return new i(e);c.call(this,e),u.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||o(a,this)}function a(e){e.end()}var f=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=i;var o=e("process-nextick-args"),s=e("core-util-is");s.inherits=e("inherits");var c=e("./_stream_readable"),u=e("./_stream_writable");s.inherits(i,c);for(var h=f(u.prototype),d=0;d0)if(t.ended&&!n){var o=new Error("stream.push() after EOF");e.emit("error",o)}else if(t.endEmitted&&n){var o=new Error("stream.unshift() after end event");e.emit("error",o)}else{var s;!t.decoder||n||i||(r=t.decoder.write(r),s=!t.objectMode&&0===r.length),n||(t.reading=!1),s||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&h(e))),l(e,t)}else n||(t.reading=!1);return f(t)}function f(e){return!e.ended&&(e.needReadable||e.length=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function s(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=o(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function c(e,t){var r=null;return x.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function u(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,h(e)}}function h(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(P("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?E(d,e):d(e))}function d(e){P("emit readable"),e.emit("readable"),g(e)}function l(e,t){t.readingMore||(t.readingMore=!0,E(b,e,t))}function b(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=n)r=a?i.join(""):1===i.length?i[0]:x.concat(i,n),i.length=0;else if(e0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,E(k,t,e))}function k(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function S(e,t){for(var r=0,i=e.length;r0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return P("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?_(this):h(this),null;if(0===(e=s(e,t))&&t.ended)return 0===t.length&&_(this),null;var i=t.needReadable;P("need readable",i),(0===t.length||t.length-e0?w(e,t):null,null===n&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&_(this),null!==n&&this.emit("data",n),n},n.prototype._read=function(e){this.emit("error",new Error("not implemented"))},n.prototype.pipe=function(e,t){function i(e){P("onunpipe"),e===h&&a()}function n(){P("onend"),e.end()}function a(){P("cleanup"),e.removeListener("close",s),e.removeListener("finish",c),e.removeListener("drain",m),e.removeListener("error",o),e.removeListener("unpipe",i),h.removeListener("end",n),h.removeListener("end",a),h.removeListener("data",f),v=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function f(t){P("ondata"),!1===e.write(t)&&(1!==d.pipesCount||d.pipes[0]!==e||1!==h.listenerCount("data")||v||(P("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++),h.pause())}function o(t){P("onerror",t),u(),e.removeListener("error",o),0===R(e,"error")&&e.emit("error",t)}function s(){e.removeListener("finish",c),u()}function c(){P("onfinish"),e.removeListener("close",s),u()}function u(){P("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,P("pipe count=%d opts=%j",d.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,b=l?n:a;d.endEmitted?E(b):h.once("end",b),e.on("unpipe",i);var m=p(h);e.on("drain",m);var v=!1;return h.on("data",f),e._events&&e._events.error?A(e._events.error)?e._events.error.unshift(o):e._events.error=[o,e._events.error]:e.on("error",o),e.once("close",s),e.once("finish",c),e.emit("pipe",h),d.flowing||(P("pipe resume"),h.resume()),e},n.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n-1?setImmediate:S,E=e("buffer").Buffer;f.WritableState=a;var A=e("core-util-is");A.inherits=e("inherits");var x,I={deprecate:e("util-deprecate")};!function(){try{x=e("stream")}catch(e){}finally{x||(x=e("events").EventEmitter)}}();var E=e("buffer").Buffer;A.inherits(f,x);var R;a.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(a.prototype,"buffer",{get:I.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var R;f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},f.prototype.write=function(e,t,r){var n=this._writableState,a=!1;return"function"==typeof t&&(r=t,t=null),E.isBuffer(e)?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=i),n.ended?o(this,r):s(this,n,e,r)&&(n.pendingcb++,a=u(this,n,e,t,r)),a},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},f.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e},f.prototype._write=function(e,t,r){r(new Error("not implemented"))},f.prototype._writev=null,f.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||_(this,i,r)}}).call(this,e("_process"))},{"./_stream_duplex":133,_process:123,buffer:49,"core-util-is":51,events:85,inherits:103,"process-nextick-args":122,"util-deprecate":154}],138:[function(e,t,r){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":134}],139:[function(e,t,r){var i=function(){try{return e("stream")}catch(e){}}();r=t.exports=e("./lib/_stream_readable.js"),r.Stream=i||r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":133,"./lib/_stream_passthrough.js":134,"./lib/_stream_readable.js":135,"./lib/_stream_transform.js":136,"./lib/_stream_writable.js":137}],140:[function(e,t,r){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":136}],141:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":137}],142:[function(e,t,r){(function(r){"use strict";function i(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function n(e,t){return e<>>32-t}function a(e,t,r,i,a,f,o,s){return n(e+(t^r^i)+f+o|0,s)+a|0}function f(e,t,r,i,a,f,o,s){return n(e+(t&r|~t&i)+f+o|0,s)+a|0}function o(e,t,r,i,a,f,o,s){return n(e+((t|~r)^i)+f+o|0,s)+a|0}function s(e,t,r,i,a,f,o,s){return n(e+(t&i|r&~i)+f+o|0,s)+a|0}function c(e,t,r,i,a,f,o,s){return n(e+(t^(r|~i))+f+o|0,s)+a|0}var u=e("inherits"),h=e("hash-base");u(i,h),i.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,u=this._c,h=this._d,d=this._e;r=a(r,i,u,h,d,e[0],0,11),u=n(u,10),d=a(d,r,i,u,h,e[1],0,14),i=n(i,10),h=a(h,d,r,i,u,e[2],0,15),r=n(r,10),u=a(u,h,d,r,i,e[3],0,12),d=n(d,10),i=a(i,u,h,d,r,e[4],0,5),h=n(h,10),r=a(r,i,u,h,d,e[5],0,8),u=n(u,10),d=a(d,r,i,u,h,e[6],0,7),i=n(i,10),h=a(h,d,r,i,u,e[7],0,9),r=n(r,10),u=a(u,h,d,r,i,e[8],0,11),d=n(d,10),i=a(i,u,h,d,r,e[9],0,13),h=n(h,10),r=a(r,i,u,h,d,e[10],0,14),u=n(u,10),d=a(d,r,i,u,h,e[11],0,15),i=n(i,10),h=a(h,d,r,i,u,e[12],0,6),r=n(r,10),u=a(u,h,d,r,i,e[13],0,7),d=n(d,10),i=a(i,u,h,d,r,e[14],0,9),h=n(h,10),r=a(r,i,u,h,d,e[15],0,8),u=n(u,10),d=f(d,r,i,u,h,e[7],1518500249,7),i=n(i,10),h=f(h,d,r,i,u,e[4],1518500249,6),r=n(r,10),u=f(u,h,d,r,i,e[13],1518500249,8),d=n(d,10),i=f(i,u,h,d,r,e[1],1518500249,13),h=n(h,10),r=f(r,i,u,h,d,e[10],1518500249,11),u=n(u,10),d=f(d,r,i,u,h,e[6],1518500249,9),i=n(i,10),h=f(h,d,r,i,u,e[15],1518500249,7),r=n(r,10),u=f(u,h,d,r,i,e[3],1518500249,15),d=n(d,10),i=f(i,u,h,d,r,e[12],1518500249,7),h=n(h,10),r=f(r,i,u,h,d,e[0],1518500249,12),u=n(u,10),d=f(d,r,i,u,h,e[9],1518500249,15),i=n(i,10), h=f(h,d,r,i,u,e[5],1518500249,9),r=n(r,10),u=f(u,h,d,r,i,e[2],1518500249,11),d=n(d,10),i=f(i,u,h,d,r,e[14],1518500249,7),h=n(h,10),r=f(r,i,u,h,d,e[11],1518500249,13),u=n(u,10),d=f(d,r,i,u,h,e[8],1518500249,12),i=n(i,10),h=o(h,d,r,i,u,e[3],1859775393,11),r=n(r,10),u=o(u,h,d,r,i,e[10],1859775393,13),d=n(d,10),i=o(i,u,h,d,r,e[14],1859775393,6),h=n(h,10),r=o(r,i,u,h,d,e[4],1859775393,7),u=n(u,10),d=o(d,r,i,u,h,e[9],1859775393,14),i=n(i,10),h=o(h,d,r,i,u,e[15],1859775393,9),r=n(r,10),u=o(u,h,d,r,i,e[8],1859775393,13),d=n(d,10),i=o(i,u,h,d,r,e[1],1859775393,15),h=n(h,10),r=o(r,i,u,h,d,e[2],1859775393,14),u=n(u,10),d=o(d,r,i,u,h,e[7],1859775393,8),i=n(i,10),h=o(h,d,r,i,u,e[0],1859775393,13),r=n(r,10),u=o(u,h,d,r,i,e[6],1859775393,6),d=n(d,10),i=o(i,u,h,d,r,e[13],1859775393,5),h=n(h,10),r=o(r,i,u,h,d,e[11],1859775393,12),u=n(u,10),d=o(d,r,i,u,h,e[5],1859775393,7),i=n(i,10),h=o(h,d,r,i,u,e[12],1859775393,5),r=n(r,10),u=s(u,h,d,r,i,e[1],2400959708,11),d=n(d,10),i=s(i,u,h,d,r,e[9],2400959708,12),h=n(h,10),r=s(r,i,u,h,d,e[11],2400959708,14),u=n(u,10),d=s(d,r,i,u,h,e[10],2400959708,15),i=n(i,10),h=s(h,d,r,i,u,e[0],2400959708,14),r=n(r,10),u=s(u,h,d,r,i,e[8],2400959708,15),d=n(d,10),i=s(i,u,h,d,r,e[12],2400959708,9),h=n(h,10),r=s(r,i,u,h,d,e[4],2400959708,8),u=n(u,10),d=s(d,r,i,u,h,e[13],2400959708,9),i=n(i,10),h=s(h,d,r,i,u,e[3],2400959708,14),r=n(r,10),u=s(u,h,d,r,i,e[7],2400959708,5),d=n(d,10),i=s(i,u,h,d,r,e[15],2400959708,6),h=n(h,10),r=s(r,i,u,h,d,e[14],2400959708,8),u=n(u,10),d=s(d,r,i,u,h,e[5],2400959708,6),i=n(i,10),h=s(h,d,r,i,u,e[6],2400959708,5),r=n(r,10),u=s(u,h,d,r,i,e[2],2400959708,12),d=n(d,10),i=c(i,u,h,d,r,e[4],2840853838,9),h=n(h,10),r=c(r,i,u,h,d,e[0],2840853838,15),u=n(u,10),d=c(d,r,i,u,h,e[5],2840853838,5),i=n(i,10),h=c(h,d,r,i,u,e[9],2840853838,11),r=n(r,10),u=c(u,h,d,r,i,e[7],2840853838,6),d=n(d,10),i=c(i,u,h,d,r,e[12],2840853838,8),h=n(h,10),r=c(r,i,u,h,d,e[2],2840853838,13),u=n(u,10),d=c(d,r,i,u,h,e[10],2840853838,12),i=n(i,10),h=c(h,d,r,i,u,e[14],2840853838,5),r=n(r,10),u=c(u,h,d,r,i,e[1],2840853838,12),d=n(d,10),i=c(i,u,h,d,r,e[3],2840853838,13),h=n(h,10),r=c(r,i,u,h,d,e[8],2840853838,14),u=n(u,10),d=c(d,r,i,u,h,e[11],2840853838,11),i=n(i,10),h=c(h,d,r,i,u,e[6],2840853838,8),r=n(r,10),u=c(u,h,d,r,i,e[15],2840853838,5),d=n(d,10),i=c(i,u,h,d,r,e[13],2840853838,6),h=n(h,10);var l=this._a,b=this._b,p=this._c,m=this._d,v=this._e;l=c(l,b,p,m,v,e[5],1352829926,8),p=n(p,10),v=c(v,l,b,p,m,e[14],1352829926,9),b=n(b,10),m=c(m,v,l,b,p,e[7],1352829926,9),l=n(l,10),p=c(p,m,v,l,b,e[0],1352829926,11),v=n(v,10),b=c(b,p,m,v,l,e[9],1352829926,13),m=n(m,10),l=c(l,b,p,m,v,e[2],1352829926,15),p=n(p,10),v=c(v,l,b,p,m,e[11],1352829926,15),b=n(b,10),m=c(m,v,l,b,p,e[4],1352829926,5),l=n(l,10),p=c(p,m,v,l,b,e[13],1352829926,7),v=n(v,10),b=c(b,p,m,v,l,e[6],1352829926,7),m=n(m,10),l=c(l,b,p,m,v,e[15],1352829926,8),p=n(p,10),v=c(v,l,b,p,m,e[8],1352829926,11),b=n(b,10),m=c(m,v,l,b,p,e[1],1352829926,14),l=n(l,10),p=c(p,m,v,l,b,e[10],1352829926,14),v=n(v,10),b=c(b,p,m,v,l,e[3],1352829926,12),m=n(m,10),l=c(l,b,p,m,v,e[12],1352829926,6),p=n(p,10),v=s(v,l,b,p,m,e[6],1548603684,9),b=n(b,10),m=s(m,v,l,b,p,e[11],1548603684,13),l=n(l,10),p=s(p,m,v,l,b,e[3],1548603684,15),v=n(v,10),b=s(b,p,m,v,l,e[7],1548603684,7),m=n(m,10),l=s(l,b,p,m,v,e[0],1548603684,12),p=n(p,10),v=s(v,l,b,p,m,e[13],1548603684,8),b=n(b,10),m=s(m,v,l,b,p,e[5],1548603684,9),l=n(l,10),p=s(p,m,v,l,b,e[10],1548603684,11),v=n(v,10),b=s(b,p,m,v,l,e[14],1548603684,7),m=n(m,10),l=s(l,b,p,m,v,e[15],1548603684,7),p=n(p,10),v=s(v,l,b,p,m,e[8],1548603684,12),b=n(b,10),m=s(m,v,l,b,p,e[12],1548603684,7),l=n(l,10),p=s(p,m,v,l,b,e[4],1548603684,6),v=n(v,10),b=s(b,p,m,v,l,e[9],1548603684,15),m=n(m,10),l=s(l,b,p,m,v,e[1],1548603684,13),p=n(p,10),v=s(v,l,b,p,m,e[2],1548603684,11),b=n(b,10),m=o(m,v,l,b,p,e[15],1836072691,9),l=n(l,10),p=o(p,m,v,l,b,e[5],1836072691,7),v=n(v,10),b=o(b,p,m,v,l,e[1],1836072691,15),m=n(m,10),l=o(l,b,p,m,v,e[3],1836072691,11),p=n(p,10),v=o(v,l,b,p,m,e[7],1836072691,8),b=n(b,10),m=o(m,v,l,b,p,e[14],1836072691,6),l=n(l,10),p=o(p,m,v,l,b,e[6],1836072691,6),v=n(v,10),b=o(b,p,m,v,l,e[9],1836072691,14),m=n(m,10),l=o(l,b,p,m,v,e[11],1836072691,12),p=n(p,10),v=o(v,l,b,p,m,e[8],1836072691,13),b=n(b,10),m=o(m,v,l,b,p,e[12],1836072691,5),l=n(l,10),p=o(p,m,v,l,b,e[2],1836072691,14),v=n(v,10),b=o(b,p,m,v,l,e[10],1836072691,13),m=n(m,10),l=o(l,b,p,m,v,e[0],1836072691,13),p=n(p,10),v=o(v,l,b,p,m,e[4],1836072691,7),b=n(b,10),m=o(m,v,l,b,p,e[13],1836072691,5),l=n(l,10),p=f(p,m,v,l,b,e[8],2053994217,15),v=n(v,10),b=f(b,p,m,v,l,e[6],2053994217,5),m=n(m,10),l=f(l,b,p,m,v,e[4],2053994217,8),p=n(p,10),v=f(v,l,b,p,m,e[1],2053994217,11),b=n(b,10),m=f(m,v,l,b,p,e[3],2053994217,14),l=n(l,10),p=f(p,m,v,l,b,e[11],2053994217,14),v=n(v,10),b=f(b,p,m,v,l,e[15],2053994217,6),m=n(m,10),l=f(l,b,p,m,v,e[0],2053994217,14),p=n(p,10),v=f(v,l,b,p,m,e[5],2053994217,6),b=n(b,10),m=f(m,v,l,b,p,e[12],2053994217,9),l=n(l,10),p=f(p,m,v,l,b,e[2],2053994217,12),v=n(v,10),b=f(b,p,m,v,l,e[13],2053994217,9),m=n(m,10),l=f(l,b,p,m,v,e[9],2053994217,12),p=n(p,10),v=f(v,l,b,p,m,e[7],2053994217,5),b=n(b,10),m=f(m,v,l,b,p,e[10],2053994217,15),l=n(l,10),p=f(p,m,v,l,b,e[14],2053994217,8),v=n(v,10),b=a(b,p,m,v,l,e[12],0,8),m=n(m,10),l=a(l,b,p,m,v,e[15],0,5),p=n(p,10),v=a(v,l,b,p,m,e[10],0,12),b=n(b,10),m=a(m,v,l,b,p,e[4],0,9),l=n(l,10),p=a(p,m,v,l,b,e[1],0,12),v=n(v,10),b=a(b,p,m,v,l,e[5],0,5),m=n(m,10),l=a(l,b,p,m,v,e[8],0,14),p=n(p,10),v=a(v,l,b,p,m,e[7],0,6),b=n(b,10),m=a(m,v,l,b,p,e[6],0,8),l=n(l,10),p=a(p,m,v,l,b,e[2],0,13),v=n(v,10),b=a(b,p,m,v,l,e[13],0,6),m=n(m,10),l=a(l,b,p,m,v,e[14],0,5),p=n(p,10),v=a(v,l,b,p,m,e[0],0,15),b=n(b,10),m=a(m,v,l,b,p,e[3],0,13),l=n(l,10),p=a(p,m,v,l,b,e[9],0,11),v=n(v,10),b=a(b,p,m,v,l,e[11],0,11),m=n(m,10);var y=this._b+u+m|0;this._b=this._c+h+v|0,this._c=this._d+d+l|0,this._d=this._e+r+b|0,this._e=this._a+i+p|0,this._a=y},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=i}).call(this,e("buffer").Buffer)},{buffer:49,"hash-base":87,inherits:103}],143:[function(e,t,r){function i(e,t){for(var r in e)t[r]=e[r]}function n(e,t,r){return f(e,t,r)}var a=e("buffer"),f=a.Buffer;f.from&&f.alloc&&f.allocUnsafe&&f.allocUnsafeSlow?t.exports=a:(i(a,r),r.Buffer=n),i(f,n),n.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return f(e,t,r)},n.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=f(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},n.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return f(e)},n.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a.SlowBuffer(e)}},{buffer:49}],144:[function(e,t,r){function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}var n=e("safe-buffer").Buffer;i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,f=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=4294967295&r,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":143}],145:[function(e,t,r){var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":146,"./sha1":147,"./sha224":148,"./sha256":149,"./sha384":150,"./sha512":151}],146:[function(e,t,r){function i(){this.init(),this._w=h,s.call(this,64,56)}function n(e){return e<<5|e>>>27}function a(e){return e<<30|e>>>2}function f(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}var o=e("inherits"),s=e("./hash"),c=e("safe-buffer").Buffer,u=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);o(i,s),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,h=0;h<16;++h)t[h]=e.readInt32BE(4*h);for(;h<80;++h)t[h]=t[h-3]^t[h-8]^t[h-14]^t[h-16];for(var d=0;d<80;++d){var l=~~(d/20),b=n(r)+f(l,i,o,s)+c+t[d]+u[l]|0;c=s,s=o,o=a(i),i=r,r=b}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},i.prototype._hash=function(){var e=c.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=i},{"./hash":144,inherits:103,"safe-buffer":143}],147:[function(e,t,r){function i(){this.init(),this._w=d,c.call(this,64,56)}function n(e){return e<<1|e>>>31}function a(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function o(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}var s=e("inherits"),c=e("./hash"),u=e("safe-buffer").Buffer,h=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);s(i,c),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,s=0|this._c,c=0|this._d,u=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=n(t[d-3]^t[d-8]^t[d-14]^t[d-16]);for(var l=0;l<80;++l){var b=~~(l/20),p=a(r)+o(b,i,s,c)+u+t[l]+h[b]|0;u=c,c=s,s=f(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=c+this._d|0,this._e=u+this._e|0},i.prototype._hash=function(){var e=u.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=i},{"./hash":144,inherits:103,"safe-buffer":143}],148:[function(e,t,r){function i(){this.init(),this._w=s,f.call(this,64,56)}var n=e("inherits"),a=e("./sha256"),f=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);n(i,a),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=i},{"./hash":144,"./sha256":149,inherits:103,"safe-buffer":143}],149:[function(e,t,r){function i(){this.init(),this._w=b,h.call(this,64,56)}function n(e,t,r){return r^e&(t^r)}function a(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function o(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function s(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function c(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var u=e("inherits"),h=e("./hash"),d=e("safe-buffer").Buffer,l=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],b=new Array(64);u(i,h),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,u=0|this._c,h=0|this._d,d=0|this._e,b=0|this._f,p=0|this._g,m=0|this._h,v=0;v<16;++v)t[v]=e.readInt32BE(4*v);for(;v<64;++v)t[v]=c(t[v-2])+t[v-7]+s(t[v-15])+t[v-16]|0;for(var y=0;y<64;++y){var g=m+o(d)+n(d,b,p)+l[y]+t[y]|0,w=f(r)+a(r,i,u)|0;m=p,p=b,b=d,d=h+g|0,h=u,u=i,i=r,r=g+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=u+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=b+this._f|0,this._g=p+this._g|0,this._h=m+this._h|0},i.prototype._hash=function(){var e=d.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=i},{"./hash":144,inherits:103,"safe-buffer":143}],150:[function(e,t,r){function i(){this.init(),this._w=s,f.call(this,128,112)}var n=e("inherits"),a=e("./sha512"),f=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);n(i,a),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){function e(e,r,i){t.writeInt32BE(e,i),t.writeInt32BE(r,i+4)}var t=o.allocUnsafe(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=i},{"./hash":144,"./sha512":151,inherits:103,"safe-buffer":143}],151:[function(e,t,r){function i(){this.init(),this._w=v,b.call(this,128,112)}function n(e,t,r){return r^e&(t^r)}function a(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function o(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function s(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function u(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function d(e,t){return e>>>0>>0?1:0}var l=e("inherits"),b=e("./hash"),p=e("safe-buffer").Buffer,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],v=new Array(160);l(i,b),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,l=0|this._ch,b=0|this._dh,p=0|this._eh,v=0|this._fh,y=0|this._gh,g=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,S=0|this._dl,M=0|this._el,E=0|this._fl,A=0|this._gl,x=0|this._hl,I=0;I<32;I+=2)t[I]=e.readInt32BE(4*I),t[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var R=t[I-30],B=t[I-30+1],C=s(R,B),P=c(B,R);R=t[I-4],B=t[I-4+1];var L=u(R,B),T=h(B,R),j=t[I-14],D=t[I-14+1],U=t[I-32],O=t[I-32+1],q=P+D|0,N=C+j+d(q,P)|0;q=q+T|0,N=N+L+d(q,T)|0,q=q+O|0,N=N+U+d(q,O)|0,t[I]=N,t[I+1]=q}for(var z=0;z<160;z+=2){N=t[z],q=t[z+1];var F=a(r,i,l),H=a(w,_,k),K=f(r,w),J=f(w,r),X=o(p,M),Y=o(M,p),V=m[z],W=m[z+1],G=n(p,v,y),Z=n(M,E,A),Q=x+Y|0,$=g+X+d(Q,x)|0;Q=Q+Z|0,$=$+G+d(Q,Z)|0,Q=Q+W|0,$=$+V+d(Q,W)|0,Q=Q+q|0,$=$+N+d(Q,q)|0;var ee=J+H|0,te=K+F+d(ee,J)|0;g=y,x=A,y=v,A=E,v=p,E=M,M=S+Q|0,p=b+$+d(M,S)|0,b=l,S=k,l=i,k=_,i=r,_=w,w=Q+ee|0,r=$+te+d(w,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+M|0,this._fl=this._fl+E|0,this._gl=this._gl+A|0,this._hl=this._hl+x|0,this._ah=this._ah+r+d(this._al,w)|0,this._bh=this._bh+i+d(this._bl,_)|0,this._ch=this._ch+l+d(this._cl,k)|0,this._dh=this._dh+b+d(this._dl,S)|0,this._eh=this._eh+p+d(this._el,M)|0,this._fh=this._fh+v+d(this._fl,E)|0,this._gh=this._gh+y+d(this._gl,A)|0,this._hh=this._hh+g+d(this._hl,x)|0},i.prototype._hash=function(){function e(e,r,i){t.writeInt32BE(e,i),t.writeInt32BE(r,i+4)}var t=p.allocUnsafe(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=i},{"./hash":144,inherits:103,"safe-buffer":143}],152:[function(e,t,r){function i(){n.call(this)}t.exports=i;var n=e("events").EventEmitter;e("inherits")(i,n),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&c.pause&&c.pause()}function i(){c.readable&&c.resume&&c.resume()}function a(){u||(u=!0,e.end())}function f(){u||(u=!0,"function"==typeof e.destroy&&e.destroy())}function o(e){if(s(),0===n.listenerCount(this,"error"))throw e}function s(){c.removeListener("data",r),e.removeListener("drain",i),c.removeListener("end",a),c.removeListener("close",f),c.removeListener("error",o),e.removeListener("error",o),c.removeListener("end",s),c.removeListener("close",s),e.removeListener("close",s)}var c=this;c.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(c.on("end",a),c.on("close",f));var u=!1;return c.on("error",o),e.on("error",o),c.on("end",s),c.on("close",s),e.on("close",s),e.emit("pipe",c),e}},{events:85,inherits:103,"readable-stream/duplex.js":132,"readable-stream/passthrough.js":138,"readable-stream/readable.js":139,"readable-stream/transform.js":140,"readable-stream/writable.js":141}],153:[function(e,t,r){function i(e){if(e&&!s(e))throw new Error("Unknown encoding: "+e)}function n(e){return e.toString(this.encoding)}function a(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function f(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var o=e("buffer").Buffer,s=o.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},c=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),i(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:return void(this.write=n)}this.charBuffer=new o(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived),t+=e.toString(this.encoding,0,n);var n=t.length-1,i=t.charCodeAt(n);if(i>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,n)}return t},c.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},c.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,i=this.charBuffer,n=this.encoding;t+=i.slice(0,r).toString(n)}return t}},{buffer:49}],154:[function(e,t,r){(function(e){function r(e,t){function r(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}if(i("noDeprecation"))return e;var n=!1;return r}function i(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],155:[function(require,module,exports){function Context(){}var indexOf=require("indexof"),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r>8&255,e>>16&255,e>>24&255)}function f(e,t,r){switch(e){case o:case u:case ce:return(t+3>>2)*(r+3>>2)*8;case s:case c:case h:case d:return(t+3>>2)*(r+3>>2)*16;case ae:case oe:return Math.floor((Math.max(t,8)*Math.max(r,8)*4+7)/8);case fe:case se:return Math.floor((Math.max(t,16)*Math.max(r,8)*2+7)/8);case l:case x:return Math.floor((t+3)/4)*Math.floor((r+3)/4)*16;case b:case I:return Math.floor((t+4)/5)*Math.floor((r+3)/4)*16;case p:case R:return Math.floor((t+4)/5)*Math.floor((r+4)/5)*16;case m:case B:return Math.floor((t+5)/6)*Math.floor((r+4)/5)*16;case v:case C:return Math.floor((t+5)/6)*Math.floor((r+5)/6)*16;case y:case P:return Math.floor((t+7)/8)*Math.floor((r+4)/5)*16;case g:case L:return Math.floor((t+7)/8)*Math.floor((r+5)/6)*16;case w:case T:return Math.floor((t+7)/8)*Math.floor((r+7)/8)*16;case _:case j:return Math.floor((t+9)/10)*Math.floor((r+4)/5)*16;case k:case D:return Math.floor((t+9)/10)*Math.floor((r+5)/6)*16;case S:case U:return Math.floor((t+9)/10)*Math.floor((r+7)/8)*16;case M:case O:return Math.floor((t+9)/10)*Math.floor((r+9)/10)*16;case E:case q:return Math.floor((t+11)/12)*Math.floor((r+9)/10)*16;case A:case N:return Math.floor((t+11)/12)*Math.floor((r+11)/12)*16;default:return 0}}t.exports=i,i.prototype.init=function(e,t,r,i,n,a,f,o){this.src=e,this.width=i,this.height=n,this.data=t,this.type=r,this.levels=a,this.internalFormat=f,this.isCompressedImage=!0,this.crunch=o,this.preserveSource=!0;var s=this.complete;return this.complete=!!t,!s&&this.complete&&this.onload&&this.onload({target:this}),this},i.prototype.dispose=function(){this.data=null},i.prototype.generateWebGLTexture=function(e){if(null===this.data)throw"Trying to create a second (or more) webgl texture from the same CompressedImage : "+this.src;for(var t=this.width,r=this.height,i=this.levels,n=0,a=0;a>=1,t<1&&(t=1),r>>=1,r<1&&(r=1),n+=o}i>1?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)),this.crunch&&(Module._free(this.crunch[0]),Module._free(this.crunch[1])),this.preserveSource||(this.data=null)},i.loadFromArrayBuffer=function(e,t){return new i(t).loadFromArrayBuffer(e)},i.prototype.loadFromArrayBuffer=function(e,t){var r=new Uint8Array(e,0,3);if(r[0]=="DDS".charCodeAt(0)&&r[1]=="DDS".charCodeAt(1)&&r[2]=="DDS".charCodeAt(2))return this._loadDDS(e);if(r[0]=="PVR".charCodeAt(0)&&r[1]=="PVR".charCodeAt(1)&&r[2]=="PVR".charCodeAt(2))return this._loadPVR(e);if(19==r[0]&&171==r[1]&&161==r[2])return this._loadASTC(e);if(t)return this._loadCRN(e);throw"Compressed texture format is not recognized: "+this.src},i.prototype.arrayBufferCopy=function(e,t,r,i){dst32Offset=r/4;for(var n=i%4,a=new Uint32Array(e.buffer,0,(i-n)/4),f=new Uint32Array(t.buffer),o=0;o=0))return i();e._baseUrl=a.substring(0,f)}for(var o=n.length-1;o>=0;o--){a=e._baseUrl+n[o];for(var s=0;s-1&&(c=c.replace(/@[0-9.]*x/,"")),f=c.indexOf("."),f>=0&&(c=c.substring(f+1)),e.extension=c,e.loadType=e._determineLoadType(),r(e,i)}}return r(e,i)}}t.exports=i},{"./imageParser":161}],160:[function(e,t,r){function i(e){return function(e,t){if(e.texture&&e._defaultUrlChoice&&e._defaultUrl!=e.url){var r=e.texture,i=r.baseTexture;delete a.BaseTextureCache[i.imageUrl],delete a.TextureCache[i.imageUrl],i.imageUrl=e._defaultUrlChoice,n.utils.BaseTextureCache[i.imageUrl]=i,n.utils.TextureCache[i.imageUrl]=r}t()}}var n=PIXI,a=n.utils;e("./CompressedImage");t.exports=i},{"./CompressedImage":156}],161:[function(e,t,r){function i(){return function(e,t){if(-1!=e.url.indexOf(".crn")||-1!=e.url.indexOf(".dds")||-1!=e.url.indexOf(".pvr")||-1!=e.url.indexOf(".etc1")||-1!=e.url.indexOf(".astc")){var r=e.compressedImage||new a(e.url);if(e.data)throw"compressedImageParser middleware must be specified in loader.before() and must have zero resource.data";e.isCompressedImage=!0,e.data=r,e.onComplete.add(function(){e.type=f.TYPE.IMAGE,r.loadFromArrayBuffer(e.data,e.url.includes(".crn")),e.data=r})}t()}}var n=PIXI,a=(n.utils,e("./CompressedImage")),f=n.loaders.Resource;f.setExtensionXhrType("dds",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("crn",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("pvr",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("etc1",f.XHR_RESPONSE_TYPE.BUFFER),f.setExtensionXhrType("astc",f.XHR_RESPONSE_TYPE.BUFFER),t.exports=i},{"./CompressedImage":156}],162:[function(e,t,r){(function(r){var i={CompressedImage:e("./CompressedImage"),CompressedTextureManager:e("./CompressedTextureManager"),imageParser:e("./imageParser"),extensionChooser:e("./extensionChooser"),extensionFixer:e("./extensionFixer"),GLTextureMixin:e("./GLTextureMixin"),detectExtensions:function(e,t){var r=[];if(e instanceof PIXI.WebGLRenderer){var i=e.plugins.compressedTextureManager.getSupportedExtensions();i.dxt&&r.push(".dds"),i.pvrtc&&r.push(".pvr"),i.atc&&r.push(".atc"),i.astc&&r.push(".astc"),i.etc1&&r.push(".etc1")}else PIXI.CanvasRenderer;t=t||e.resolution;for(var n="@"+t+"x",a=r.slice(0);a.length>0;)r.push(n+a.pop());return r.push(n+".png"),r.push(n+".jpg"),r.push(n+".json"),r.push(n+".atlas"),r}};try{i.crn=e("./../lib/crn_decomp")}catch(e){console.warn("Unable to load crn decompression in pixi-compressed-textures")}Object.assign(PIXI.glCore.GLTexture.prototype,i.GLTextureMixin),PIXI.loaders.Loader.addPixiMiddleware(i.extensionFixer),PIXI.loader.use(i.extensionFixer()),t.exports=r.PIXI.compressedTextures=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../lib/crn_decomp":1,"./CompressedImage":156,"./CompressedTextureManager":157,"./GLTextureMixin":158,"./extensionChooser":159,"./extensionFixer":160,"./imageParser":161}]},{},[162])(162)});